Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

gdb break points for imported c file

Status
Not open for further replies.

keak

Programmer
Sep 12, 2005
247
CA
Please forgive me if this was a biginners question....

I have an application named mainfile.c and this file imports imported.c.

Lets say if imported.c has a function named "import" and my mainfile.c is calling this function, and I want to set a break point to the 5th line of this "import" function when executing my mainfile program, does anyone know what the command i'd type in gdb to do this?


 
Crap, ignore the first part of my post. I could have sworn I was in the other forum...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top