List Info

Thread: problem with gdb stub compiling




problem with gdb stub compiling
country flaguser name
China
2008-02-25 06:14:52
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.


Re: problem with gdb stub compiling
country flaguser name
United States
2008-02-25 13:29:28
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.




[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )