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 cli/19918] New: assertion complaint on printf %-16p


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

            Bug ID: 19918
           Summary: assertion complaint on printf %-16p
           Product: gdb
           Version: 7.11
            Status: NEW
          Severity: minor
          Priority: P2
         Component: cli
          Assignee: unassigned at sourceware dot org
          Reporter: raeburn at permabit dot com
  Target Milestone: ---

Created attachment 9158
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9158&action=edit
patch to printf %p support

(gdb) printf "<%-16p>\n", 0x12345
<../../gdb/printcmd.c:2242: internal-error: printf_pointer: Assertion `*p ==
'p' && *(p + 1) == '\0'' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n)


The attached patch enables "-" to be copied into the generated %...x format
string. I'm not sure if any of the other standard C format specifier characters
make sense for pointers, but left-justifying the output certainly does.

-- 
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]