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

Re: [PATCH][PR breakpoints/16606] AVR8 breakpoint out of range, decrement pc after break


On 03/10/2014 11:08 AM, Joel Brobecker wrote:

>> @@ -1436,6 +1439,7 @@ avr_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
>>    set_gdbarch_inner_than (gdbarch, core_addr_lessthan);
>>  
>>    set_gdbarch_breakpoint_from_pc (gdbarch, avr_breakpoint_from_pc);
>> +  set_gdbarch_decr_pc_after_break (gdbarch, 2);
> 
> This part seems fine, but it would be good if you could submit it
> separately, with an explanation of the problem you are seeing
> (a copy of the gdb debugging session is often useful).

Yes please.  I'm quite mystified that only 'b *0xaddr' exposed the need
for this.  If PC adjustment is really necessary on this architecture,
then I can't imagine how the port managed to be functional thus
far without this.

-- 
Pedro Alves


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