This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/18280] New: pointer values returned from pretty-printers are not printed
- From: "xdje42 at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sat, 18 Apr 2015 20:08:40 +0000
- Subject: [Bug python/18280] New: pointer values returned from pretty-printers are not printed
- Auto-submitted: auto-generated
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.