This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


-----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-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]