This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug python/18280] New: pointer values returned from pretty-printers are not printed


https://sourceware.org/bugzilla/show_bug.cgi?id=18280

            Bug ID: 18280
           Summary: pointer values returned from pretty-printers are not
                    printed
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: python
          Assignee: unassigned at sourceware dot org
          Reporter: xdje42 at gmail dot com

>From #gdb:
https://gist.github.com/TheWug/16b47181a7907b7a7539

The pretty-printer is returning an int * value but gdb isn't printing it.

The problem seems to be in c_val_print, case TYPE_CODE_PTR
and print_address_demangle.

If we end up here:

int
print_address_demangle (const struct value_print_options *opts,
                        struct gdbarch *gdbarch, CORE_ADDR addr,
                        struct ui_file *stream, int do_demangle)
{
  if (opts->addressprint)
    {
      fputs_filtered (paddress (gdbarch, addr), stream);
      print_address_symbolic (gdbarch, addr, stream, do_demangle, " ");
    }
  else
    {
=>    return print_address_symbolic (gdbarch, addr, stream, do_demangle, "");
    }
  return 1;
}

nothing gets printed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]