Re: [Qemu-devel] [PATCH v3 5/7] tests/guest-debug: don't use symbol resolution for PC checks

2018-11-11 Thread Richard Henderson
On 11/9/18 4:21 PM, Alex Bennée wrote: > It turns out symbol resolution isn't enough as modern kernels are > often padded with check code at the start of functions. GDB seems to > put the breakpoint at the first non-check instruction which causes > comparisons with the symbol resolution to fail.

[Qemu-devel] [PATCH v3 5/7] tests/guest-debug: don't use symbol resolution for PC checks

2018-11-09 Thread Alex Bennée
It turns out symbol resolution isn't enough as modern kernels are often padded with check code at the start of functions. GDB seems to put the breakpoint at the first non-check instruction which causes comparisons with the symbol resolution to fail. For normal breakpoints we can detect the hit