Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ gdb: this means what?

gdb: this means what?

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Zeno   USA  (2,871 posts)  Bio
Date Tue 08 Apr 2008 10:57 PM (UTC)

Amended on Tue 08 Apr 2008 10:58 PM (UTC) by Zeno

Message
I had -O on by accident:
(gdb) f 0
#0  0x0000000000408b0b in talk_channel (ch=0x16af620, argument=0x7fffb238b73c ">.>", channel=41, verb=<value optimized out>)
    at act_comm.c:617
617         if ( (vch->pcdata && vch->pcdata->bestowments
(gdb) p vch
No symbol "vch" in current context.


So I turned it off (new core):
(gdb) p vch
$1 = (CHAR_DATA *) 0x171f9d0
Missing separate debuginfos, use: debuginfo-install e2fsprogs.x86_64 glibc.x86_64 keyutils.x86_64 krb5.x86_64 libselinux.x86_64 mysql.x86_64 openssl.x86_64 zlib.x86_64


Very confused.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #1 on Tue 08 Apr 2008 11:17 PM (UTC)
Message
OK, so now it found the symbol, and it is trying to print it. So you have advanced.

Have you compiled with the -g3 flag to output symbol information?

If so, you could always try running the suggested install. That might fix it.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #2 on Wed 09 Apr 2008 02:30 AM (UTC)
Message
Hm, I had -g2 on not -g3.

Still a bit confused why it told me "No symbol "vch" in current context."

I have never had that issue in the past. If I'm in the frame, I was always able to print all local vars.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #3 on Wed 09 Apr 2008 02:35 AM (UTC)
Message
See: http://www.gammon.com.au/forum/?id=8584&page=1

Half-way down the page I quote from the gcc manual. With optimization on "some variables you declared may not exist at all".

That is "some variables", not all variables. You were lucky last time.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


13,863 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.