Re: struct char_data *ch in GDB

From: Sammy (samedi@DHC.NET)
Date: 05/02/98


On Sat, 2 May 1998, Ed Wrotniewski wrote:

> Under GDB, when it reports the contents of a variable that is a pointer
> (struct char_data *ch) it obviously shows you the memory address that ch
> pointed to. Is there any way to examine that memory address and see what
> exactly ch was? So if a mob is crashing the mud by doing something, I can
> see what mob it was exactly.
>
> An6yone know about this? I'm not too gdb savvy.

Same goes for a lot of people.  That's why the official circle FAQ has
lots of good info in it, including this:

print *ch (prints the contents of ch, rather than the pointer address)

I'd suggest reading the whole thing when you're not too busy.

Sam


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST