read target register to decide breakpoint size

Antoine Tremblay antoine.tremblay@ericsson.com
Wed Dec 14 18:15:00 GMT 2016


Yao Qi writes:

> On 16-12-14 09:01:53, Tim Newsome wrote:
>> 
>> Thank you, sounds like reading MISA from kind_from_pc should work out
>> fine then (unless Yao has an objection we didn't consider).
>
> You can't set breakpoint without the live inferior in this way.
>
> ./gdb a.out
> (gdb) b main

I wonder if GDB could fallback to ELF if the register can't be read ?

Not sure how that would be done...



More information about the Gdb mailing list