This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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]

another gdb question


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.


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