This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Calling debugger from program on Sparc Solaris
- To: gdb at sources dot redhat dot com
- Subject: Calling debugger from program on Sparc Solaris
- From: Axel Hecht <ah at numerik dot uni-kiel dot de>
- Date: Tue, 01 Aug 2000 16:08:21 +0200
- Organization: Institute of Mathematics, Section 2
Hi,
I wanted to support a nifty feature available on intel linux on sparc
solaris. This is to get into the debugger from the program.
This is used in mozilla at the following place:
http://lxr.mozilla.org/seamonkey/source/xpcom/components/xcDll.cpp#483
By setting XPCOM_BREAK_ON_LOAD, you get into the debugger, when your
module is loaded.
For linux it does a int $3, and following the sources from gdb 5.0,
I added the following to make this work on solaris:
#elif defined(SOLARIS) && defined(sparc)
asm(" .globl _breakinst
_breakinst: ta 1
");
starting at line 512.
This calls the debugger allright, and I can examine the local data. I
just didn't find a way to procede execution of the program. cont will
just trigger the breakpoint again, and next,step,stepi all freeze.
For a full discussion on this, please see
http://bugzilla.mozilla.org/show_bug.cgi?id=46543
Could anyone on this list shed some light on us?
Axel
PS: As I didn't subscribe to this list, I'd be thankfull for a CC to my
email address ah@numerik.uni-kiel.de