This is the mail archive of the 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]

Re: Avoid potential crashes with --gc-sections and low addresses

Daniel Jacobowitz wrote:
> On Fri, Jun 27, 2008 at 04:37:50PM +0100, Jonathan Larmour wrote:
>> --- gdb/dwarf2-frame.c~	2008-05-04 00:24:17.000000000 +0100
>> +++ gdb/dwarf2-frame.c	2008-06-20 17:06:04.000000000 +0100
>> @@ -1795,7 +1795,8 @@ decode_frame_entry_1 (struct comp_unit *
>>        fde->eh_frame_p = eh_frame_p;
>> -      add_fde (unit, fde);
>> +      if (fde->initial_location)
>> +          add_fde (unit, fde);
>>      }
>>    return end;
> This won't work if there is code actually at zero.  Take a look at the
> .debug_info reader to see how we handled this case for symbolic debug info.

I've had a look, and got lost in a twisty maze of passages. The learning
curve for that stuff is probably steeper than I can manage at the moment.
If you don't mind, in that case I'll submit it to GNATS so it isn't lost.

eCosCentric Limited     The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK.       Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
------["Si fractum non sit, noli id reficere"]------       Opinions==mine

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