aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli/cli-cmds.c
diff options
context:
space:
mode:
authorMarkus Deuling <deuling@de.ibm.com>2008-05-23 04:31:40 +0000
committerMarkus Deuling <deuling@de.ibm.com>2008-05-23 04:31:40 +0000
commit50ee75353252ec07aa1f062a2b409a2f6eb0d48d (patch)
tree057e55d93271c95eb756cb7967b455aafd14156b /gdb/cli/cli-cmds.c
parentd44e847372bc71608d46402a65034c8d40ba2e80 (diff)
downloadgdb-50ee75353252ec07aa1f062a2b409a2f6eb0d48d.zip
gdb-50ee75353252ec07aa1f062a2b409a2f6eb0d48d.tar.gz
gdb-50ee75353252ec07aa1f062a2b409a2f6eb0d48d.tar.bz2
* annotate.c (annotate_source, annotate_frame_begin): Replace
deprecated_print_address_numeric with paddress. * cli/cli-cmds.c (list_command, edit_command): Likewise. * tui/tui-stack.c (tui_make_status_line): Likewise. * defs.h (deprecated_print_address_numeric): Remove. * printcmd.c (deprecated_print_address_numeric): Remove. * maint.c (maint_print_section_info): Fix comment.
Diffstat (limited to 'gdb/cli/cli-cmds.c')
-rw-r--r--gdb/cli/cli-cmds.c32
1 files changed, 10 insertions, 22 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c
index 3cde3fc..b0f5fa0 100644
--- a/gdb/cli/cli-cmds.c
+++ b/gdb/cli/cli-cmds.c
@@ -668,18 +668,12 @@ edit_command (char *arg, int from_tty)
hex_string ((unsigned long) sal.pc));
sym = find_pc_function (sal.pc);
if (sym)
- {
- deprecated_print_address_numeric (sal.pc, 1, gdb_stdout);
- printf_filtered (" is in ");
- fputs_filtered (SYMBOL_PRINT_NAME (sym), gdb_stdout);
- printf_filtered (" (%s:%d).\n", sal.symtab->filename, sal.line);
- }
+ printf_filtered ("%s is in %s (%s:%d).\n", paddress (sal.pc),
+ SYMBOL_PRINT_NAME (sym), sal.symtab->filename,
+ sal.line);
else
- {
- deprecated_print_address_numeric (sal.pc, 1, gdb_stdout);
- printf_filtered (" is at %s:%d.\n",
- sal.symtab->filename, sal.line);
- }
+ printf_filtered ("%s is at %s:%d.\n", paddress (sal.pc),
+ sal.symtab->filename, sal.line);
}
/* If what was given does not imply a symtab, it must be an undebuggable
@@ -838,18 +832,12 @@ list_command (char *arg, int from_tty)
hex_string ((unsigned long) sal.pc));
sym = find_pc_function (sal.pc);
if (sym)
- {
- deprecated_print_address_numeric (sal.pc, 1, gdb_stdout);
- printf_filtered (" is in ");
- fputs_filtered (SYMBOL_PRINT_NAME (sym), gdb_stdout);
- printf_filtered (" (%s:%d).\n", sal.symtab->filename, sal.line);
- }
+ printf_filtered ("%s is in %s (%s:%d).\n",
+ paddress (sal.pc), SYMBOL_PRINT_NAME (sym),
+ sal.symtab->filename, sal.line);
else
- {
- deprecated_print_address_numeric (sal.pc, 1, gdb_stdout);
- printf_filtered (" is at %s:%d.\n",
- sal.symtab->filename, sal.line);
- }
+ printf_filtered ("%s is at %s:%d.\n", paddress (sal.pc),
+ sal.symtab->filename, sal.line);
}
/* If line was not specified by just a line number,