This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: gdb help needed


On Fri, Jun 01, 2001 at 04:35:38PM -0700, Tan, Eugene wrote:
> Dear Support:

Ehm, the gcc mailing list is not a support list. This list is about the
development of GCC, not about answering basic questions about gdb
(which is not even part of GCC).

> I have used gcc 2.95.2 to build debug version of my_program (executable)
> which dynamically load in several shared libraries (lib***.so) on UNIX
> (Solaris).
> 
> Question 1: 
> After I start gdb 4x, "gdb my_program", which command I can use to set the
> path (like setenv $LD_LIBRARY_PATH) so that when I enter "run", my_program
> can find the shared libraries?

set environment LD_LIBRARY_PATH=whatever

> Question 2: 
> After I start gdb 4x, "gdb my_program", how can I load in the shared library
> source table information so that if I enter "info sources" I can view the
> shared library information? (Is it possible to do so before "run"
> my_program?)

no idea

> Question 3: 
> After I start gdb 4x, "gdb my_program", how can I set a break point in a
> shared library .cpp file, before I "run" my_program?

break wherever-you-like
run

> Question 4: 
> Would you please provide me some sources (documentation, web sites or books)
> that answer the above questions?

See the gdb info files (info gdb).


Erik

-- 
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031,  2600 GA Delft, The Netherlands
Phone: +31-15-2783635  Fax: +31-15-2781843  Email: J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/


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