From: Dmitry Samersoff <dms@samersoff.net>
To: Hui Zhu <teawater@gmail.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: How to write native (i.e. C/C++) plugin for gdb?
Date: Tue, 24 Dec 2013 14:13:00 -0000 [thread overview]
Message-ID: <52B9966B.8050104@samersoff.net> (raw)
In-Reply-To: <CANFwon3gOuaopfsJ_Eord=14U__zD2JrBorKz_4bMBYPtZy4cQ@mail.gmail.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hui,
Thank you for the pointer. It useful information but not exactly what
I need.
I need to implement scenario like one below:
(gdb) load-plugin libgdbjvm.so
(gdb) attach PID
(gdb) jvm show loaded-classes
(gdb) jvm show java-threads
(gdb) jvm show code-cache
etc.
- -Dmitry
On 2013-12-24 17:15, Hui Zhu wrote:
> https://sourceware.org/gdb/current/onlinedocs/gdb/JIT-Interface.html
>
>
Maybe this is helpful.
>
> On Tue, Dec 24, 2013 at 8:31 PM, Dmitry Samersoff
> <dms@samersoff.net> wrote: Hi Everybody,
>
> I'm about to write a plugin to deal with complicated data (Java VM
> coredump).
>
> Unfortunately, python is not an option, as I plan to re-use
> already existing C++ code of JVM to access internal structures.
>
> Is there API, documentation, examples of such plugin?
>
> Any advice is much appreciated.
>
> -Dmitry
>
- --
Dmitry Samersoff
Saint Petersburg, Russia, http://devnull.samersoff.net
* There will come soft rains ...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQEcBAEBAgAGBQJSuZZrAAoJEHEy08c4gIABfj0H/0biEiP4M41rS2NgiSaVmS6k
ttJFi8y3Sb3llU9m/p16CmbK+CRw9bNmLFy1BXETjL+2F2JHTnrn/CDh8Ffotpi6
ZBDDhlPsVQ2Cr+cpk8PKd4omAwj2S+2DYSl4CG9mvnxNqKG4MNVpPRSFnAUlx4WZ
rBFODdj1miLUon4X8fbip9wcfpHGP4m8E0DE0uVFWjKTnYCvhBJkSjLTQOvnZOaN
nA66YjPR72LvQFFHbH4Ry07Vhh6Lx7uUCQ0nV9ZFUSoHOq1IhgA5I04Z0BzUpJpD
dZ3FtKy2xUz3WT+dG3c/HLS1IDJiwksrS1gQ1pUuFYlGzzO5Zru27ehcuRenzg0=
=96XW
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2013-12-24 14:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-24 12:31 Dmitry Samersoff
2013-12-24 13:16 ` Hui Zhu
2013-12-24 14:13 ` Dmitry Samersoff [this message]
2013-12-24 14:47 ` Joel Brobecker
2013-12-25 15:32 ` Dmitry Samersoff
2013-12-25 16:51 ` Dmitry Samersoff
2013-12-26 22:55 ` Doug Evans
2013-12-27 14:15 ` Dmitry Samersoff
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=52B9966B.8050104@samersoff.net \
--to=dms@samersoff.net \
--cc=gdb@sourceware.org \
--cc=teawater@gmail.com \
/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