Re: Gdb at "Feb 28, 98 07:18:49 pm"

From: Shadowdancer (sg618lo@UNIDUI.UNI-DUISBURG.DE)
Date: 02/28/98


> When I do a "print ch" in gdb is there any way to see actually WHAT
> player/mob it is?
>
> gdb) print ch
> $3 = (struct char_data *) 0x4f3600
> (gdb) print victim
> $4 = (struct char_data *) 0x63aa00

Try:

(gdb) ptype ch

to get how ch really looks (the single fields).

Then type:

(gdb) print ch.<whateverfieldnameyouwant>

- Chris


--
/----------------------------------------------------------------------------\
| Christian Loth                      | Meet me as the >Shadowdancer< in the |
| chris@rom.mud.de                    |           REALM OF MAGIC             |
| http://privat.schlund.de/Loth       | telnet rom.mud.de 4000               |
|                                     | http://rom.mud.de/                   |
|               "The road goes ever on and on!" - Bilbo Baggins              |
\----------------------------------------------------------------------------/


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