This is the mail archive of the gdb-patches@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: [PATCH 1/4] catch syscall -- try 3 -- Architecture-independent part


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


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