xdje42 at gmail dot com
2015-04-18 20:08:40 UTC
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.
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.
You are receiving this mail because:
You are on the CC list for the bug.