This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/13483] New: gdb not taking 0 for pointer and boolean values
- From: "dnovillo at google dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 07 Dec 2011 19:35:58 +0000
- Subject: [Bug gdb/13483] New: gdb not taking 0 for pointer and boolean values
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=13483
Bug #: 13483
Summary: gdb not taking 0 for pointer and boolean values
Product: gdb
Version: unknown
Status: NEW
Severity: normal
Priority: P2
Component: gdb
AssignedTo: unassigned@sourceware.org
ReportedBy: dnovillo@google.com
Classification: Unclassified
I'm debugging cc1plus from GCC trunk (as of 2-3 weeks ago). I'm trying to make
an inferior call to the function libcpp/line-map.c:linemap_dump:
1160 void
1161 linemap_dump (FILE *stream, struct line_maps *set, unsigned ix, bool
is_macro)
(gdb) call linemap_dump(0,line_table,ix,0)
Cannot resolve function linemap_dump to any overloaded instance
But if I use typecasts, it works:
(gdb) call linemap_dump((FILE *)0,line_table,ix,(bool)0)
Map #0 [0x7ffff7fc2000] - LOC: 2 - REASON: LC_ENTER - SYSP: no
File: /usr/include/bits/posix1_lim.h:1
Included from: [-1] None
I suppose this is intended behaviour, but it is rather irritating. There is
exactly one linemap_dump function, and I would expect 0 to be trivially
convertible to those types:
(gdb) l linemap_dum<TAB>
linemap_dump(_IO_FILE*, line_maps*, unsigned int, bool)
linemap_dump_location(line_maps*, unsigned int, _IO_FILE*)
Thanks. Diego.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.