aboutsummaryrefslogtreecommitdiff
path: root/gdb/printcmd.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-05-18 15:28:24 +0000
committerTom Tromey <tromey@redhat.com>2012-05-18 15:28:24 +0000
commit1d51a733d5f20fe7ad6e89103f50742da2991586 (patch)
treebdda359166f7b83a6321ed3c3dee9b7d6bae95a4 /gdb/printcmd.c
parentedf0c1b7caed4e2bfb9a84fd9c226c6720da1d97 (diff)
downloadgdb-1d51a733d5f20fe7ad6e89103f50742da2991586.zip
gdb-1d51a733d5f20fe7ad6e89103f50742da2991586.tar.gz
gdb-1d51a733d5f20fe7ad6e89103f50742da2991586.tar.bz2
* 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.
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r--gdb/printcmd.c6
1 files changed, 1 insertions, 5 deletions
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, " ");