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 gdb/11966] New: gdb reports wrong type for array after a while


1. Load a symbol file using "symbol SYMBOL_FILE"
2. Query about different symbols in the file using "whatis SYMBOL"
3. After querying around 100 DIFFERENT symbols, the gdb starts to report wrong 
values for arrays:
e.g:
In my C program I have: BYTE SymbolName[4];
gdb console:
> whatis SymbolName
< &"whatis SymbolName\n"
< ~"type = BYTE [0]\n"
< ^done

instead of type = BYTE [4].

Only after clearing the symbol file using "symbol" and loading it again using 
"symbol SYMBOL_FILE" I get the correct type: BYTE [4].

-- 
           Summary: gdb reports wrong type for array after a while
           Product: gdb
           Version: 7.1
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: gdb
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: eldad dot moneta at nuvoton dot com
                CC: gdb-prs at sourceware dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=11966

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