This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gdb help needed
- To: "Tan, Eugene" <ETan at rii dot com>
- Subject: Re: gdb help needed
- From: Erik Mouw <J dot A dot K dot Mouw at ITS dot TUDelft dot NL>
- Date: Sat, 2 Jun 2001 02:33:26 +0200
- Cc: "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>
- Organization: Eric Conspiracy Secret Labs
- References: <D1EE400517F1C84CA4AF90700755BCE122F9C3@PEGASUS.rii.com>
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/