This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/4] catch syscall -- try 3 -- Architecture-independent part
- From: Sérgio Durigan Júnior <sergiodj at linux dot vnet dot ibm dot com>
- To: teawater <teawater at gmail dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Sat, 17 Jan 2009 17:28:51 -0200
- Subject: Re: [PATCH 1/4] catch syscall -- try 3 -- Architecture-independent part
- References: <1226987117.5454.32.camel@miki> <1227066396.5454.51.camel@miki> <daef60380901170841nf1ec400q73c2b3e7db92ef06@mail.gmail.com>
On Sun, 2009-01-18 at 00:41 +0800, teawater wrote:
> I got:
> gcc -g -I. -I../../src/gdb -I../../src/gdb/config
> -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H
> -I../../src/gdb/../include/opcode -I../../src/gdb/../readline/..
> -I../bfd -I../../src/gdb/../bfd -I../../src/gdb/../include
> -I../libdecnumber -I../../src/gdb/../libdecnumber
> -I../../src/gdb/gnulib -Ignulib -DMI_OUT=1 -DTUI=1 -Wall
> -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral
> -Wno-pointer-sign -Wno-unused -Wno-switch -Wno-char-subscripts -Werror
> -c -o main.o -MT main.o -MMD -MP -MF .deps/main.Tpo
> -DTARGET_SYSTEM_ROOT=\"\" -DBINDIR=\"/usr/local/bin\"
> ../../src/gdb/main.c
> ../../src/gdb/main.c: In function 'captured_main':
> ../../src/gdb/main.c:300: error: 'GDB_DATADIR' undeclared (first use
> in this function)
> ../../src/gdb/main.c:300: error: (Each undeclared identifier is
> reported only once
> ../../src/gdb/main.c:300: error: for each function it appears in.)
> make: *** [main.o] Error 1
>
> with this patch.
Hi Hui,
It happens because I did not include the regenerated configure script
for GDB. That's one of the useful things that Jan asked me to do in the
next patch submission, but for now if you want to compile GDB with the
catch syscall patch you gotta regenerate the build scripts. There's one
tutorial here:
http://sourceware.org/gdb/wiki/Developer_Tips
Look in the "Editing configure.ac" topic. Remembering: this is gonna be
"fixed" in the next submission :-).
Thanks for your help,
--
Sérgio Durigan Júnior
Linux on Power Toolchain - Software Engineer
Linux Technology Center - LTC
IBM Brazil