This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
another gdb question
- From: Andrew Haley <aph at redhat dot com>
- To: Nic Ferrier <nferrier at tapsellferrier dot co dot uk>
- Cc: java at gcc dot gnu dot org
- Date: Sat, 16 Nov 2002 13:58:30 +0000 (GMT)
- Subject: another gdb question
- References: <877kfdlin2.fsf@pooh-sticks-bridge.tapsellferrier.co.uk>
Nic Ferrier writes:
> Getting paperclips to work natively is like pulling teeth.
>
> Paperclips uses gnujaxp: compiled natively (either from byte code or
> source) it gives an IO error. It's the sort of error that needs
> tracing with the debugger.
>
> I can load paperclips in the debugger easily, but when I try to set a
> break point I get all sorts of problems.
>
> I seem to be able to complete a class name from the paperclips binary
> (but not from the gnujaxp library).
>
> I cannot seem to complete a method name, or get GDB to accept it in
> any form.
You can't set a breakpoint in a DSO until it has been loaded. If your
executable is linked against the DSO you should be able to set a
breakpoint once main has started.
So:
gdb> b foo
gdb> r
... break
gdb> b 'gnu::jaxp::whatever'
Also see 'info share' to see if the DSO has been loaded.
Andrew.