RFR: JDK-8305782: Provide MacroAssembler::breakpoint on aarch64 [v2]

Erik Österlund eosterlund at openjdk.org
Sun Apr 30 12:04:59 UTC 2023


On Sun, 30 Apr 2023 09:53:35 GMT, Andrew Haley <aph at openjdk.org> wrote:

> The best way is like this:
> 
> 
> 
> ```
> 
> address poo;
> 
> 
> 
> void stuff() {
> 
>   ... instructions ...
> 
>   poo = pc();
> 
>   ... instructions ...
> 
> }
> 
> ```
> 
> 
> 
> then, in gdb:
> 
> 
> 
> ```
> 
> (gdb) b <somewhere after startup>
> 
> breakpoint 2 at 0xabcedf
> 
> (gdb) comm 2
> 
> Type commands for breakpoint(s) 2, one per line.
> 
> End with a line saying just "end".
> 
> >b *poo
> 
> >c 
> 
> >end
> 
> (gdb)
> 
> ```
> 
> 
> 
> Now, every time you run the program, a breakpoint will be set at `*poo`. And you can continue after the breakpoint.

That doesn't work with code relocation, does it?

-------------

PR Comment: https://git.openjdk.org/jdk/pull/13401#issuecomment-1529007868


More information about the hotspot-compiler-dev mailing list