I am starting to use GDB, It can take in only executable form programs as argument is it? Or there are other options. I need to use gdb on a non-exe program directly.Can I do it?

Recommended Answers

All 3 Replies

I am starting to use GDB, It can take in only executable form programs as argument is it? Or there are other options. I need to use gdb on a non-exe program directly.Can I do it?

Read the manual, but I think it takes only the executable (*.out, offcourse you must build it with debug option).

its been a long time, but I think you can use it on core files too. If your program produces a core dump you can use gdb on that core file.

Andor and AD are correct. What exactly are you trying to do?
If you can give us an exact requirment, we can tell you what to do.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.