This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: gdb with python support still get crash on showing uninitialized local variables
- From: asmwarrior <asmwarrior at gmail dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Eli Zaretskii <eliz at gnu dot org>, gdb at sourceware dot org
- Date: Tue, 14 Dec 2010 10:12:27 +0800
- Subject: Re: gdb with python support still get crash on showing uninitialized local variables
- References: <4CB66700.3000907@gmail.com> <m3tykn2id8.fsf@fleche.redhat.com> <m3fww2ued0.fsf_-_@fleche.redhat.com> <4CBE7B08.9060905@gmail.com> <m3eibidolr.fsf@fleche.redhat.com> <83bp6l9b4l.fsf@gnu.org> <4CD8ABA4.2090304@gmail.com> <m3eiaq5s59.fsf@fleche.redhat.com> <4CE0C149.6090609@gmail.com> <m3wroemp9v.fsf@fleche.redhat.com>
On 2010-11-16 2:10, Tom Tromey wrote:
Apparently HAVE_STDLIB_H is defined after all.
So, I'm afraid I don't know what is going on.
Tom
Hi, Tom, After struggling with the building gdb, I finally found a very
strange build problem.
under MSYS and MinGW 4.4.5.
Today, I can build the gdb source from the snapshot:
gdb-7.2.50.20101213.tar.bz2
I have already released in the codeblocks' forum post:
http://forums.codeblocks.org/index.php/topic,11301.0.html
But the real strange thing is: I failed build the gdb from the git
working copy.
The error is just like the same as I reported several days ago. that is:
--------------------------------------------------------------------------------
of built-in function 'free'
../../gdb/libiberty/fibheap.c: In function 'fibheap_extract_min':
../../gdb/libiberty/fibheap.c:
190:7: warning: incompatible implicit declaration
of built-in function 'free'
../../gdb/libiberty/fibheap.c: In function 'fibheap_replace_key_data':
../../gdb/libiberty/fibheap.c:220:30: error: 'LONG_MIN' undeclared
(first use in
this function)
../../gdb/libiberty/fibheap.c:220:30: note: each undeclared identifier
is report
ed only once for each function it appears in
../../gdb/libiberty/fibheap.c: In function 'fibheap_delete_node':
../../gdb/libiberty/fibheap.c:261:36: error: 'LONG_MIN' undeclared
(first use in
this function)
../../gdb/libiberty/fibheap.c:265:7: warning: implicit declaration of
function '
abort'
../../gdb/libiberty/fibheap.c:265:7: warning: incompatible implicit
declaration
of built-in function 'abort'
../../gdb/libiberty/fibheap.c: In function 'fibheap_delete':
../../gdb/libiberty/fibheap.c:277:5: warning: incompatible implicit
declaration
of built-in function 'free'
../../gdb/libiberty/fibheap.c: In function 'fibheap_consolidate':
../../gdb/libiberty/fibheap.c:368:3: warning: implicit declaration of
function '
memset'
../../gdb/libiberty/fibheap.c:368:3: warning: incompatible implicit
declaration
of built-in function 'memset'
make[2]: *** [fibheap.o] Error 1
make[2]: Leaving directory `/e/test/build/libiberty'
make[1]: *** [all-libiberty] Error 2
make[1]: Leaving directory `/e/test/build'
make: *** [all] Error 2
--------------------------------------------------------------------------------
I have both a folder named "gdb" (this is the git working copy)
and a folder named "gdb-7.2.50.20101213" (this is unzipped snapshot)
Then this command works:
cd build
../gdb-7.2.50.20101213/configure --prefix=/E/test/install
--build=mingw32 --host=mingw32 --target=mingw32 \
CFLAGS="-s -L/python/libs -I/python/include
-I/E/test/expat/install/include -static -L/E/test/expat/install/lib" \
--with-python \
--with-expat
make
---------------------------------------------------------------------------------
But this command failed with the error I shown above:
cd build
../gdb/configure --prefix=/E/test/install --build=mingw32 --host=mingw32
--target=mingw32 \
CFLAGS="-s -L/python/libs -I/python/include
-I/E/test/expat/install/include -static -L/E/test/expat/install/lib" \
--with-python \
--with-expat
make
----------------------------------------------------------------------------------
by the way, the gdb git address I'm using is:
git clone git://sourceware.org/git/gdb.git
list here:
http://www.gnu.org/software/gdb/current/
Any ideas?
thanks.
asmwarrior