This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug symtab/11796] New: `list' and `info line' fail on `struct typename'
- From: "jan dot kratochvil at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 8 Jul 2010 08:22:23 -0000
- Subject: [Bug symtab/11796] New: `list' and `info line' fail on `struct typename'
- Reply-to: sourceware-bugzilla at sourceware dot org
It works for single-word types:
(gdb) info line htab_t
Line number 144 is out of range for "./../include/hashtab.h".
(gdb) list htab_t
144 typedef struct htab *htab_t;
But not for multi-word types:
(gdb) info line struct symbol
Function "struct" not defined.
(gdb) list struct symbol
Function "struct" not defined.
Despite:
(gdb) ptype struct symbol
type = struct symbol {
struct general_symbol_info ginfo;
[...]
}
I believe `list', `info line' (others?) should not take just the first word.
--
Summary: `list' and `info line' fail on `struct typename'
Product: gdb
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: symtab
AssignedTo: unassigned at sourceware dot org
ReportedBy: jan dot kratochvil at redhat dot com
CC: gdb-prs at sourceware dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=11796
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.