Fixed .debug_types handling in hrev46998. Hypothetically our gcc could still be configured to pass -fdebug-types-section by default, but that isn't a hurdle for this ticket.
Debugger: Handle DW_AT_signature. - Per DWARF4's specification, if a type's complete definition is contained in a .debug_types unit, it should be referenced via the DW_AT_signature attribute. 4.8 now actually does this rather than setting e.g. DW_AT_attribute_origin to a signature ref, and consequently we weren't finding said reference any more. Gets .debug_types section support working again.
Debugger: Partly rework hrev46696. - Various other places in Debugger expect the highpc attribute to be an address rather than an offset. As such, resolve it to one when setting the attribute in the corresponding DIE so the resolved value is available everywhere. Fixes variable scopes not being computed properly, and consequently the missing variables mentioned in the previous commit. This gets things working properly again under gcc4.8.
Debugger: Fix program counter handling issue. - For DWARF4, lowpc/highpc can be specified as constants in addition to addresses. Furthermore, they can also be specified such that highpc is a relative offset from lowpc rather than an absolute address. We weren't handling this case, which gcc4.8 is now using when emitting version 4 debug information. Fixes another part of #10659. There still remains a problem with regards to class/structure variables not showing up in the local variables view.
Applied in hrev46995, thanks!
Fix mismatching allocation and deallocation Fixes ticket #10374 Signed-off-by: Philippe Saint-Pierre
I had two Terminal windows open, and one of them (not sure about the other, now) for some reason would no longer respond to keypresses, even though it was just sitting at the bash prompt. No CPU peg or anything like that. Anyway, I held down the special keys and clicked Terminal in the Deskbar, at which point Deskbar crashed. Attached is the crash report. hrev46922.
Fixed in hrev46994.