* 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.
This commit is contained in:
Tom Tromey 2012-05-18 15:28:24 +00:00
parent edf0c1b7ca
commit 1d51a733d5
8 changed files with 25 additions and 14 deletions

View file

@ -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, " ");