Re: read target register to decide breakpoint size

Antoine Tremblay <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
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...
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.