Re: [CODE] Oasis and structs...

From: Chris Proctor (cjp@minotaur.labyrinth.net.au)
Date: 09/28/99


At 10:37 PM 9/28/1999 +0100, you wrote:
>Emil Nilimaa wrote:
>
> > >what value does d have, is it NULL?  what about the contents of ch? does
> > >it look ok?  what's the value of ch->desc?  What version of oasis is
> > >this?  1.5,1.6,1.7, 2.0? (I think it's stock 2.0?)  if you step the code
> > >does it set the value of d correcly to ch->desc a few lines back?  Your
> > >alteration of the structs should have no bearing on this problem (but
> > >circle can sometimes do odd things :)
> >
> > yup oasis 2.0,
> >
> > d is null yup, and ch->desc is null..  (0x0)
> >
> > ch is (struct char_data *) 0x82e3270
> >
> > Am not that good with gdb, so no clue how to step the code.. *chuckle*
>
>gdb bin\circle

Except, should be gdb bin/circle
:)
Unless this is on windows, but I haven't heard of gdb for windows . . .

>that'll start up gdb with your circle binary (This is from the dir above
>src and lib)
>
>type
>break do_oasis
>then:
>run
>
>this'll stop the game when you enter the do_oasis cmd (any *edit cmd)
>
>for more details on it there's a quick guide about gdb on
>developer.circlemud.org:
>http://developer.circlemud.org/pub/CircleMUD/contrib/docs/GDB/debug.txt

Regards,
Chris Proctor (Deathblade, Implementor of DominiaMUD)
MUD Homepage: http://www.labyrinth.net.au/~cjp


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