From: Edd Barrett <edd@theunixzoo.co.uk>
To: gdb@sourceware.org
Subject: Breakpoints on JITted code
Date: Wed, 5 Jun 2024 14:06:37 +0100 [thread overview]
Message-ID: <ZmBi3SdoAsRj-yeu@arrakis.home> (raw)
Hi,
I've recently implemented a simple gdb plugin [0] for a JIT I'm working on.
Lineinfo is working well, but I was expecting to be able to set breakpoints on
the names of JITted code functions (where the name is the one passed to the
`name` argument of block_open()), but this doesn't appear to be the case. gdb
allows me to set a pending breakpoint, but doesn't stop when a JITted function
of that name is reached.
Should I be able to set breakpoints by name for JITted code functions?
I'm using gdb-13.1 on Debian/amd64. I tried with gdb-14.2, but something about
my plugin causes gdb to crash with:
```
internal-error: sect_index_text not initialized".
```
Applying this patch [1] doesn't make that go away:
Cheers
[0] https://github.com/ykjit/yk/blob/master/ykrt/yk_gdb_plugin/yk_gdb_plugin.c
[1] https://sourceware.org/bugzilla/show_bug.cgi?id=25678#c5
--
Best Regards
Edd Barrett
https://www.theunixzoo.co.uk
next reply other threads:[~2024-06-05 13:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-05 13:06 Edd Barrett [this message]
2024-06-26 17:32 ` Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZmBi3SdoAsRj-yeu@arrakis.home \
--to=edd@theunixzoo.co.uk \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox