gcc question

Sang-Kil Lee sklee@synopsys.COM
Tue Feb 1 23:25:00 GMT 2000


Hello,

I have a question.

I wrote a simple C program and then compiled it using gcc with an option

'-g' got a binary code.
I ran it and it finished successfully but didn't invoke a debugger(ex.
gdb).
Of course, I know that I can invoke the binary code using gdb(ex.
unix_prompt> gdb <binary_code>).
But what I want is that the debugger is invoked as soon as I run the
binary code.
Is it possible to attach the debugger to the binary code? If so, Please
let me know a method.

Regards,
Sang-Kil





More information about the Gcc mailing list