Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2005:
[Freeciv-Dev] Re: (PR#13342) pubserver 2.0 crash in found_new_tech
Home

[Freeciv-Dev] Re: (PR#13342) pubserver 2.0 crash in found_new_tech

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#13342) pubserver 2.0 crash in found_new_tech
From: "Benoit Hudson" <bh@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 27 Jun 2005 07:30:54 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13342 >

On Mon, Jun 27, 2005 at 01:05:38AM -0700, Mateusz Stefek wrote:
> I'm not so good at gdb.
> Can anyone tell me why these values differ?

Probably optimisation.  Multiple variables go into the same register (at
different times), and gdb just prints out the value of the register, which
may now be holding some different variable.

gcc-4 has location lists, which gdb-6.1 and up can use, which help quite a
bit (although it's aggravating to get "I don't know" as an answer).

        -- Benoît





[Prev in Thread] Current Thread [Next in Thread]