This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb with python support still get crash on showing uninitialized local variables


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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]