Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* problem with gdb stub compiling
@ 2008-02-25 13:03 XCV
  2008-02-26  1:49 ` Michael Snyder
  0 siblings, 1 reply; 2+ messages in thread
From: XCV @ 2008-02-25 13:03 UTC (permalink / raw)
  To: gdb

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: problem with gdb stub compiling
  2008-02-25 13:03 problem with gdb stub compiling XCV
@ 2008-02-26  1:49 ` Michael Snyder
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Snyder @ 2008-02-26  1:49 UTC (permalink / raw)
  To: XCV; +Cc: gdb

On Mon, 2008-02-25 at 20:14 +0800, XCV wrote:
> hello!i've got a problem while try to run a simple example with i386-stub:

Wow, this stub code is really ancient, and (evidently) not well
maintained.  Overlooking one simple textual patch, the last changelog
reference is from 2001, nearly 7 years ago.

What's your target?  Is it a bare board, without an operating system?

If it's Linux or something, you could probably use gdbserver.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-02-25 19:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-25 13:03 problem with gdb stub compiling XCV
2008-02-26  1:49 ` Michael Snyder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox