Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]tlug: debugging shared objects
- To: tlug@example.com
- Subject: tlug: debugging shared objects
- From: Marcus Metzler <mocm@example.com>
- Date: Mon, 7 Dec 1998 09:18:09 +0100 (MET)
- Content-Type: text/plain; charset=US-ASCII
- In-Reply-To: <Pine.LNX.3.96LJ1.1b7.981207152901.7898O-100000@example.com>
- References: <Pine.LNX.3.96LJ1.1b7.981207152901.7898O-100000@example.com>
- Reply-To: tlug@example.com
- Sender: owner-tlug@example.com
Scott Stone writes: > > OK, if I have a known-stable program A and an in-development shared object > B, which is designed to be dlopen()'ed by A, how do I set breakpoints > inside object B's code with GDB? ie, everything is built with -g and is > not stripped.. so I run 'gdb A' and then...? What's the command to set > the breakpoint inside the code for shared object module B? > You should be able to set a breakpoint via the name of one of the subroutines in module B, i.e. b subroutine. Then you can run the program until it gets to that subroutine and it should show you the line numbers of module B when you use list. Then you can set the breakpoint by using line numbers. I think it is also possible to tell gdb to "load" the source code of module B and than use "b linenumber" to set the breakpoint, but I haven`t tried that. Marcus ---------------------------------------------------------------------------- Dr. Marcus Metzler ZPR Universitaet zu Koeln Tel. : +49 221 470 6039 Weyertal 80 Fax : +49 221 470 5160 D-50931 Koeln, Germany e-mail : mocm@example.com ---------------------------------------------------------------------------- ------------------------------------------------------------------ Next Technical Meeting: 12 December, 12:30 at Temple Univ. Japan *NEW LOCATION* a map is available at http://www.tuj.ac.jp/maps.html Next Nomikai: 15 January 1999, 19:30 Tengu TokyoEkiMae 03-3275-3691 ------------------------------------------------------------------ more info: http://tlug.linux.or.jp Sponsor: PHT
- Follow-Ups:
- Re: tlug: debugging shared objects
- From: Scott Stone <sstone@example.com>
- References:
- tlug: debugging shared objects
- From: Scott Stone <sstone@example.com>
Home | Main Index | Thread Index
- Prev by Date: tlug: debugging shared objects
- Next by Date: Re: tlug: debugging shared objects
- Prev by thread: tlug: debugging shared objects
- Next by thread: Re: tlug: debugging shared objects
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links