This is the mail archive of the gdb@sources.redhat.com 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]

Calling debugger from program on Sparc Solaris


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

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