This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

problem with gdb stub compiling


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]