This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: "Question On Usage of Debbuger"
- To: mallela keshav rao <mallelakeshavrao at usa dot net>
- Subject: Re: "Question On Usage of Debbuger"
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Fri, 14 Jul 2000 18:39:23 +1000
- CC: gdb at sourceware dot cygnus dot com
- References: <20000713152308.23435.qmail@nwcst323.netaddress.usa.net>
mallela keshav rao wrote:
>
> Hi
> my problem is
> i want to debug my program which is having user defined header files and
> when i am debugging it using NEXT(n) it is doing well. I wanted to debug
> a function which is in header file using STEP (s) to compile single line
> at a time.
> so where i am supposed to keep debugger option for that.
> i am using Makefile for compling the program.
>
> Hope to see ur mail soon
> thank u
> u can mail the solution to mallelakeshavrao@usa.net
I can see two possible causes of the problem:
o Some debug formats (from memory dwarf-1)
simply do not include source code
information for included files
o given the function is in a header file
the compiler may have eliminated it.
Perhaphs provide more detail about your example - compiler, host/target
system, ... If you're using GCC then you can force the debug info type
-- gcc -gstabs ....
Andrew