public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Re: Regarding shared library and GDB
       [not found] <1190876904.724372.33360@r29g2000hsg.googlegroups.com>
@ 2007-10-03 20:37 ` Thiago Jung Bauermann
  0 siblings, 0 replies; only message in thread
From: Thiago Jung Bauermann @ 2007-10-03 20:37 UTC (permalink / raw)
  To: sunil; +Cc: gdb ml

Hi,

Changing the discussion to this mailing list since it seems more
appropriate.

On Thu, 2007-09-27 at 00:08 -0700, sunil wrote:
> Am interested to debug one shared library using GDB.This shared
> libarry is used by a binary (for which i doesn't have the code).I am
> aware about at what point of time the library will be called.
> Can i debug that library iusing GDB.If yes please let me know the
> steps how to proceed further.

If the library has debug information, you should be able to set a
pending breakpoint on a function in the library. It will be resolved by
GDB when it gets loaded by the binary. You don't need source code or
debug information for the main program if all you are interested in is
the library.
-- 
[]'s
Thiago Jung Bauermann
Software Engineer
IBM Linux Technology Center

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-10-03 20:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1190876904.724372.33360@r29g2000hsg.googlegroups.com>
2007-10-03 20:37 ` Regarding shared library and GDB Thiago Jung Bauermann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).