Re: [GDB] Debugging

From: Dan Egli (dan@adsl60.slkc.uswest.net)
Date: 12/17/98


On Thu, 17 Dec 1998, Christoffer Lundberg wrote:

> Hello...
>
> I am putting up a MUD, but it seems to be crashing whenever I try
> to enter. It gives me a coredump. Now, I have a problem. How do I
> debug a core file with gdb?
>
> I have tried gdb circle.core, gdb circle, gdb everything.....
> What should I type?
>

gbd circle circle.core

gbd wants the executable name first, followed by any core files, followed
by any map files generated by the compiler.

When you do that, it will read the core file and the executable, and tell
you in what function (and often what line!) the crash occured in.


     +------------------------------------------------------------+
     | 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