Tom: You may need re-read the man pages. Also, I highly recommend the book "Programming with GNU Software" by O'Reilly & Associates (http://www.oreilly.com/catalog/prognu/) as a very good starting point for understanding gdb, GNU make, gcc, etc. To answer your question, To start up gdb, use gdb executable core Put your executable file name (i.e. ./circle) in as "executable" and then put in the core dump (i.e. ../lib/core) as "core". That will open the debugger and point you to the line that caused the crash and core dump. From there, you will use commands like backtrace, print, up, down, etc. The commands are probably best learned from the man pages or a book. Good luck, -Cj ----- Original Message ----- From: Tom Dailey <tomd@waymark.net> To: <CIRCLE@post.queensu.ca> Sent: Thursday, February 11, 1999 12:48 PM Subject: [NEWBIE] - GDB >Hello, > >I am new to gdb and am trying to figure out how to use it. I've >read the man pages for it, and am still stumped. >I thought I would type gdb core from within the /lib directory, >but I get an error saying that core is in an unrecognized format. >Any help would be appreciated. > >Tom > > > +------------------------------------------------------------+ > | Ensure that you have read the CircleMUD Mailing List FAQ: | > | http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | > +------------------------------------------------------------+ > +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST