Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "XCV" <xcviscool@gmail.com>
To: "gdb" <gdb@sourceware.org>
Subject: problem with gdb stub compiling
Date: Mon, 25 Feb 2008 13:03:00 -0000	[thread overview]
Message-ID: <47c2b144.16048e0a.4eb0.fffff261@mx.google.com> (raw)

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.


             reply	other threads:[~2008-02-25 12:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-25 13:03 XCV [this message]
2008-02-26  1:49 ` Michael Snyder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47c2b144.16048e0a.4eb0.fffff261@mx.google.com \
    --to=xcviscool@gmail.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox