From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24895 invoked by alias); 25 Feb 2008 12:15:29 -0000 Received: (qmail 24881 invoked by uid 22791); 25 Feb 2008 12:15:27 -0000 X-Spam-Check-By: sourceware.org Received: from gv-out-0910.google.com (HELO gv-out-0910.google.com) (216.239.58.186) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 25 Feb 2008 12:15:05 +0000 Received: by gv-out-0910.google.com with SMTP id n40so494372gve.39 for ; Mon, 25 Feb 2008 04:15:02 -0800 (PST) Received: by 10.142.80.7 with SMTP id d7mr2141218wfb.60.1203941701183; Mon, 25 Feb 2008 04:15:01 -0800 (PST) Received: from 4412d98499f5482 ( [219.224.191.235]) by mx.google.com with ESMTPS id 22sm8139955wfd.4.2008.02.25.04.14.59 (version=SSLv3 cipher=RC4-MD5); Mon, 25 Feb 2008 04:15:00 -0800 (PST) Date: Mon, 25 Feb 2008 13:03:00 -0000 From: "XCV" To: "gdb" Subject: problem with gdb stub compiling X-mailer: Foxmail 5.0 [cn] Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 7bit Message-ID: <47c2b144.16048e0a.4eb0.fffff261@mx.google.com> Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-02/txt/msg00208.txt.bz2 hello!i've got a problem while try to run a simple example with i386-stub:while i implemented the subroutines:putDebugChar();getDebugChar();exceptionHandler(); in gdb.c ,and then compile it with i386-stub.c and my test.c with command: gcc -O -c i386-stub.c gdb.c test.c and then gcc -o test i386-stub.o gdb.o test.o . i got lots of "undefined reference": i386-stub.c:(.text+0x955): undefined reference to `_stackPtr' i386-stub.c:(.text+0x95b): undefined reference to `_handle_exception' i386-stub.o: In function `_returnFromException': i386-stub.c:(.text+0x966): undefined reference to `return_to_prog' i386-stub.o: In function `set_debug_traps': i386-stub.c:(.text+0x1290): undefined reference to `_catchException0' i386-stub.c:(.text+0x12a4): undefined reference to `_catchException1' i386-stub.c:(.text+0x12b8): undefined reference to `_catchException3' i386-stub.c:(.text+0x12cc): undefined reference to `_catchException4' i386-stub.c:(.text+0x12e0): undefined reference to `_catchException5' i386-stub.c:(.text+0x12f4): undefined reference to `_catchException6' i386-stub.c:(.text+0x1308): undefined reference to `_catchException7' i386-stub.c:(.text+0x131c): undefined reference to `_catchException8' i386-stub.c:(.text+0x1330): undefined reference to `_catchException9' i386-stub.c:(.text+0x1344): undefined reference to `_catchException10' i386-stub.c:(.text+0x1358): undefined reference to `_catchException11' i386-stub.c:(.text+0x136c): undefined reference to `_catchException12' i386-stub.c:(.text+0x1380): undefined reference to `_catchException13' i386-stub.c:(.text+0x1394): undefined reference to `_catchException14' i386-stub.c:(.text+0x13a8): undefined reference to `_catchException16' i386-stub.c:(.text+0x13b9): undefined reference to `exceptionHook' i386-stub.c:(.text+0x13be): undefined reference to `remcomHandler' i386-stub.c:(.text+0x13c5): undefined reference to `exceptionHook' i386-stub.c:(.text+0x13d0): undefined reference to `exceptionHook' i386-stub.c:(.text+0x13d4): undefined reference to `remcomHandler' can any body help me out?Any information will be very much appreciated. Thank you in advance.