From: tb Date: Fri, 20 Sep 2024 11:41:15 +0000 (+0000) Subject: gdb: fix path to ex X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a3ee596dd5cad4b36befb02c5e41f75af3999ca7;p=openbsd gdb: fix path to ex from Nir Lichtman ok pascal sthen (they okayed the ports version which I take to be an agreement with this). --- diff --git a/gnu/usr.bin/binutils/gdb/cli/cli-cmds.c b/gnu/usr.bin/binutils/gdb/cli/cli-cmds.c index fbe93c9020d..40ff739f722 100644 --- a/gnu/usr.bin/binutils/gdb/cli/cli-cmds.c +++ b/gnu/usr.bin/binutils/gdb/cli/cli-cmds.c @@ -625,7 +625,7 @@ edit_command (char *arg, int from_tty) } if ((editor = (char *) getenv ("EDITOR")) == NULL) - editor = "/bin/ex"; + editor = "/usr/bin/ex"; /* Approximate base-10 log of line to 1 unit for digit count */ for(log10=32, m=0x80000000; !(sal.line & m) && log10>0; log10--, m=m>>1); diff --git a/gnu/usr.bin/binutils/gdb/doc/gdb.texinfo b/gnu/usr.bin/binutils/gdb/doc/gdb.texinfo index 6af8d37896b..3de22cbc60a 100644 --- a/gnu/usr.bin/binutils/gdb/doc/gdb.texinfo +++ b/gnu/usr.bin/binutils/gdb/doc/gdb.texinfo @@ -32,7 +32,7 @@ @set EDITION Ninth @c !!set GDB edit command default editor -@set EDITOR /bin/ex +@set EDITOR /usr/bin/ex @c THIS MANUAL REQUIRES TEXINFO 4.0 OR LATER.