From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28355 invoked by alias); 17 Jan 2009 19:29:10 -0000 Received: (qmail 28347 invoked by uid 22791); 17 Jan 2009 19:29:10 -0000 X-SWARE-Spam-Status: No, hits=-3.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from e24smtp02.br.ibm.com (HELO e24smtp02.br.ibm.com) (32.104.18.86) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 17 Jan 2009 19:29:04 +0000 Received: from d24relay01.br.ibm.com (d24relay01.br.ibm.com [9.8.31.16]) by e24smtp02.br.ibm.com (8.13.1/8.13.1) with ESMTP id n0HJXHtH030055 for ; Sat, 17 Jan 2009 17:33:17 -0200 Received: from d24av01.br.ibm.com (d24av01.br.ibm.com [9.18.232.46]) by d24relay01.br.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id n0HKSUMi3969104 for ; Sat, 17 Jan 2009 17:28:30 -0300 Received: from d24av01.br.ibm.com (loopback [127.0.0.1]) by d24av01.br.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n0HJSx2M012300 for ; Sat, 17 Jan 2009 17:29:00 -0200 Received: from [9.8.5.251] ([9.8.5.251]) by d24av01.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id n0HJSxUC012297; Sat, 17 Jan 2009 17:28:59 -0200 Subject: Re: [PATCH 1/4] catch syscall -- try 3 -- Architecture-independent part From: =?ISO-8859-1?Q?S=E9rgio?= Durigan =?ISO-8859-1?Q?J=FAnior?= To: teawater Cc: gdb-patches@sourceware.org In-Reply-To: References: <1226987117.5454.32.camel@miki> <1227066396.5454.51.camel@miki> Content-Type: text/plain; charset=iso-8859-1 Date: Sat, 17 Jan 2009 19:29:00 -0000 Message-Id: <1232220531.6191.24.camel@miki> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-01/txt/msg00403.txt.bz2 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