gdb problems when debugging
Hi @ all:
I am using the gcc compiler on a windows platform.now i want to debug my program using gdb. i can start it with gdb main. But as soon as I want to type
break jmphere
//command line
(gdb) break jmphere
it says: "Function jmphere not defined".
Does anybody know whats going wrong ?
Well, is jmphere a function in your program or not? If it is, did you instruct gcc to generate debugging symbols?
jmphere is a label (where I want the debugger to stop)
I am quite new to gcc. Also I do not compile C-Code. I used NASM to assemble some quite simple asm code.
When I use: gcc -g -o main.exe main.o its giving me an error:
main.c: undefined reference to `WinMain@16'
so i used the linker directly with: ld -g -o main.exe main.o
This builds the program but i cant use gdb (see post above)
I am quite new to gcc. Also I do not compile C-Code. I used NASM to assemble some quite simple asm code.
When I use: gcc -g -o main.exe main.o its giving me an error:
main.c: undefined reference to `WinMain@16'
so i used the linker directly with: ld -g -o main.exe main.o
This builds the program but i cant use gdb (see post above)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement