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 symtab/11796] New: `list' and `info line' fail on `struct typename'


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]