This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


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

Re: "Question On Usage of Debbuger"


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

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