This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

gcc question


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




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