mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-15 05:01:13 +08:00
* 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:
@ -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, " ");
|
||||
|
Reference in New Issue
Block a user