From: "Salman Khilji" <salmankhilji@hotmail.com>
To: gdb@sources.redhat.com
Subject: An install question and a bug
Date: Mon, 28 Jan 2002 11:06:00 -0000 [thread overview]
Message-ID: <F84bDsHMtauAeDiIRSw0001a2a4@hotmail.com> (raw)
Mandrake Linux 8.1, gcc 2.96, gdb 5.1.1
When I configure the source code for gdb 5.1.1, it says after a while . . .
...
...
checking for tgetent in -lterminfo... no
configure: error: Could not find a term library
Configure in /home/salman/softdev/gdb/gdb-5.1.1/gdb failed, exiting.
What is term library? Where do I install this from?
Here is a bug that I just submitted through the bug reporting database on
the gdb homepage. I searched for it in the archives and someone asked the
exact same question but didn't receive a reply. Anyone has a solution or
patch to this?:
Cannot look at global variables inside a C++ namespace
======================================================
reproducable on 5.0 and 5.1 of gdb
Assuming the code:
#include <iostream>
using namespace std;
namespace FOO{
float fSomeVar = 67.8;
}
namespace BAR{
float fSomeVar = 27.2;
}
float fSomeVar = 23.0;
int main()
{
FOO::fSomeVar = 100.0;
BAR::fSomeVar = 200.0;
fSomeVar = 300.0;
cout << FOO::fSomeVar << endl;
cout << BAR::fSomeVar << endl;
cout << fSomeVar << endl;
return 0;
}
The gdb output as is follows---Please note that I have tried the string with
and without single-quotes. GDB doesn't find the symbol without the
quotes---with the quotes it is giving me a junk value:
Current directory is ~/softdev/nbug/
GNU gdb 20010813 (MI_OUT)
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-mandrake-linux"...
(gdb) b main
Breakpoint 1 at 0x8048656: file main.cpp, line 17.
(gdb) run
Starting program: /home/salman/softdev/nbug/hello
Breakpoint 1, main () at main.cpp:17
(gdb) n
(gdb)
(gdb)
(gdb) p fSomeVar
$1 = 300
(gdb) p FOO::fSomeVar
No symbol "FOO" in current context.
(gdb) p 'FOO::fSomeVar'
$2 = 1120403456
(gdb) p 'BAR::fSomeVar'
$3 = 1128792064
(gdb)c
Continuing.
100
200
300
Program exited normally.
(gdb)
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
next reply other threads:[~2002-01-28 19:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-28 11:06 Salman Khilji [this message]
2002-01-28 14:31 ` Andrew Cagney
2002-01-28 16:00 Salman Khilji
2002-01-29 6:33 Salman Khilji
2002-01-29 7:37 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=F84bDsHMtauAeDiIRSw0001a2a4@hotmail.com \
--to=salmankhilji@hotmail.com \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox