[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: gdb



Pete Poff <ppoff01@mail.coin.missouri.edu> writes:

> When I try out gdb on my program, all I can get is 'Program recieved
> signal SIGSEGV, Segmentation fault.
> 0x8096baa in ? (). 
> Does anyone know how I can use that to find out what code is causing the
> crash?  I've read the helps, but can seem to what to use.

First of all, you have to compile your program with '-g'.

'bt' in gdb shows you what functions were called on the way. Just try
all commands there is in the help and you'll figure it out.


Tomas - tomas[@.]nocrew.org


--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: