diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2024-09-20 11:41:16 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2024-09-20 11:41:16 +0000 |
commit | d42f00ba27f8e181dba22ce0646b13ab8de6a7c2 (patch) | |
tree | 42ee176b8ca5992f1d2d7841dafa0aa430d1930b /gnu | |
parent | 28fbdb179ab29808a4ad0930d7a695d2f35720e3 (diff) |
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).
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/binutils/gdb/cli/cli-cmds.c | 51 | ||||
-rw-r--r-- | gnu/usr.bin/binutils/gdb/doc/gdb.texinfo | 2 |
2 files changed, 28 insertions, 25 deletions
diff --git a/gnu/usr.bin/binutils/gdb/cli/cli-cmds.c b/gnu/usr.bin/binutils/gdb/cli/cli-cmds.c index 9378ac87064..40ff739f722 100644 --- a/gnu/usr.bin/binutils/gdb/cli/cli-cmds.c +++ b/gnu/usr.bin/binutils/gdb/cli/cli-cmds.c @@ -600,7 +600,7 @@ edit_command (char *arg, int from_tty) if (sal.symtab == 0) /* FIXME-32x64--assumes sal.pc fits in long. */ error ("No source file for address %s.", - local_hex_string((unsigned long) sal.pc)); + hex_string ((unsigned long) sal.pc)); sym = find_pc_function (sal.pc); if (sym) { @@ -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); @@ -767,7 +767,7 @@ list_command (char *arg, int from_tty) if (sal.symtab == 0) /* FIXME-32x64--assumes sal.pc fits in long. */ error ("No source file for address %s.", - local_hex_string ((unsigned long) sal.pc)); + hex_string ((unsigned long) sal.pc)); sym = find_pc_function (sal.pc); if (sym) { @@ -858,7 +858,7 @@ disassemble_command (char *arg, int from_tty) /* FIXME: cagney/2004-02-07: This should be an observer. */ low = tui_get_low_disassembly_address (low, pc); #endif - low += FUNCTION_START_OFFSET; + low += DEPRECATED_FUNCTION_START_OFFSET; } else if (!(space_index = (char *) strchr (arg, ' '))) { @@ -873,7 +873,7 @@ disassemble_command (char *arg, int from_tty) /* FIXME: cagney/2004-02-07: This should be an observer. */ low = tui_get_low_disassembly_address (low, pc); #endif - low += FUNCTION_START_OFFSET; + low += DEPRECATED_FUNCTION_START_OFFSET; } else { @@ -1119,7 +1119,7 @@ when gdb is started.", &cmdlist); c = add_set_cmd ("verbose", class_support, var_boolean, (char *) &info_verbose, "Set ", &setlist), - add_show_from_set (c, &showlist); + deprecated_add_show_from_set (c, &showlist); set_cmd_sfunc (c, set_verbose); set_verbose (NULL, 0, c); @@ -1130,7 +1130,7 @@ when gdb is started.", &cmdlist); "Generic command for showing command history parameters.", &showhistlist, "show history ", 0, &showlist); - add_show_from_set + deprecated_add_show_from_set (add_set_cmd ("expansion", no_class, var_boolean, (char *) &history_expansion_p, "Set history expansion on command input.\n\ Without an argument, history expansion is enabled.", &sethistlist), @@ -1174,9 +1174,10 @@ is used, the same rules apply to its nested commands as to the first ones."); /* If target is open when baud changes, it doesn't take effect until the next open (I think, not sure). */ - add_show_from_set (add_set_cmd ("remotebaud", no_class, - var_zinteger, (char *) &baud_rate, - "Set baud rate for remote serial I/O.\n\ + deprecated_add_show_from_set + (add_set_cmd ("remotebaud", no_class, + var_zinteger, (char *) &baud_rate, + "Set baud rate for remote serial I/O.\n\ This value is used to set the speed of the serial port when debugging\n\ using remote targets.", &setlist), &showlist); @@ -1187,21 +1188,23 @@ using remote targets.", &setlist), When enabled, each packet sent or received with the remote target\n\ is displayed.", &setlist); deprecate_cmd (c, "set debug remote"); - deprecate_cmd (add_show_from_set (c, &showlist), "show debug remote"); + deprecate_cmd (deprecated_add_show_from_set (c, &showlist), + "show debug remote"); - add_show_from_set (add_set_cmd ("remote", no_class, var_zinteger, - (char *) &remote_debug, - "Set debugging of remote protocol.\n\ + deprecated_add_show_from_set + (add_set_cmd ("remote", no_class, var_zinteger, + (char *) &remote_debug, + "Set debugging of remote protocol.\n\ When enabled, each packet sent or received with the remote target\n\ is displayed.", &setdebuglist), &showdebuglist); - add_show_from_set ( - add_set_cmd ("remotetimeout", no_class, var_integer, (char *) &remote_timeout, - "Set timeout limit to wait for target to respond.\n\ + deprecated_add_show_from_set + (add_set_cmd ("remotetimeout", no_class, var_integer, (char *) &remote_timeout, + "Set timeout limit to wait for target to respond.\n\ This value is used to set the time limit for gdb to wait for a response\n\ from the target.", &setlist), - &showlist); + &showlist); add_prefix_cmd ("debug", no_class, set_debug, "Generic command for setting gdb debugging flags", @@ -1279,10 +1282,10 @@ Argument is the name of the user defined command.\n\ With no argument, show definitions of all user defined commands.", &showlist); add_com ("apropos", class_support, apropos_command, "Search for commands matching a REGEXP"); - add_show_from_set ( - add_set_cmd ("max-user-call-depth", no_class, var_integer, - (char *) &max_user_call_depth, - "Set the max call depth for user-defined commands.\n", - &setlist), - &showlist); + deprecated_add_show_from_set + (add_set_cmd ("max-user-call-depth", no_class, var_integer, + (char *) &max_user_call_depth, + "Set the max call depth for user-defined commands.\n", + &setlist), + &showlist); } 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. |