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]

gdb help needed



Dear Support:

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?

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?)
 
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?

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

Your help is very much appreciated.

Regards,
Eugene Tan


****************************************************************************
This e-mail message is the property of Rosetta Inpharmatics 
and may contain information that is confidential and/or 
privileged.  If you are not the intended recipient, any use, 
disclosure, copying, or communication of the contents of this 
message is prohibited.  If this message was received in error, 
please forward a copy to mail_admin@rii.com and delete the 
message and any attachments from your computer.  Thank you. 
****************************************************************************


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