From 1d51a733d5f20fe7ad6e89103f50742da2991586 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 18 May 2012 15:28:24 +0000 Subject: * printcmd.c (print_address_demangle): Remove special case for 0. testsuite * gdb.mi/mi2-var-display.exp: Update. * gdb.mi/mi-var-display.exp: Update. * gdb.mi/mi-var-child.exp: Update. * gdb.cp/expand-psymtabs-cxx.exp: Update. * gdb.cp/cp-relocate.exp (get_func_address): Update. --- gdb/printcmd.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'gdb/printcmd.c') diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 3bb43bd..523fad2 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -771,11 +771,7 @@ print_address_demangle (const struct value_print_options *opts, struct gdbarch *gdbarch, CORE_ADDR addr, struct ui_file *stream, int do_demangle) { - if (addr == 0) - { - fprintf_filtered (stream, "0"); - } - else if (opts->addressprint) + if (opts->addressprint) { fputs_filtered (paddress (gdbarch, addr), stream); print_address_symbolic (gdbarch, addr, stream, do_demangle, " "); -- cgit v1.1