Hi all, this is a first part of my attempt to enable use of dwarf3 .debug_loc sections (as generated by GCC's rtlopt-branch) for variable tracking. With this patch GDB at least doesn't segfault as it did when trying to debug a binary with .debug_loc section. It can already read and parse .debug_loc and then use the appropriate first block found for a given DIE for obtaining the SYMBOL_VALUE() in newsymbol(). So now it behaves exactly like it did with GCCs that didn't emit .debug_loc. I hope to have a full support (ie. SYMBOL_VALUE that depends on PC) available soon. This was developped in gdb-5.3 but should be usable with mainline with no problems. Comments? Approvals? Michal Ludvig -- * SuSE CR, s.r.o * mludvig@suse.cz * (+420) 296.545.373 * http://www.suse.cz