This is the mail archive of the gdb@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: read target register to decide breakpoint size


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...


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