Re: NTH_INSN macro like NEXT_INSN?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

On Tue, Nov 12, 2019 at 10:28:33AM +0000, Maxim Blinov wrote:
> I have an `rtx_insn`, and would like to view the Nth insn in that
> list. From the debugger, I can do
> 
> (gdb) p debug_rtx (NEXT_INSN (first))
> (gdb) p debug_rtx (NEXT_INSN (NEXT_INSN (first)))
> 
> and so on. Is there a macro I can use to get the Nth insn? E.g.
> 
> (gdb) p debug_rtx (NTH_INSN (first, 2))

It's not exactly the same, but debug_rtx_list (prl in our gdbinit) might
help you?


Segher



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux