Re: How to write native (i.e. C/C++) plugin for gdb?

Dmitry Samersoff <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
-----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
> <[email protected]> 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-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.