Author Topic: question about exit the debugee when debugging  (Read 6129 times)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5247
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
question about exit the debugee when debugging
« on: August 02, 2011, 07:43:37 am »
I noticed that when using a 201107xx version of MinGw gdb. When the debuggee exit, I always get halted in the C::B, then I need to press the "run" button to exit the debugging status. (I'm testing this on debugger branch).

Here is the debug-log:
Code: [Select]
[Inferior 1 (process 2400) exited normally]
>>>>>>cb_gdb:
> cont
The program is not being run.
>>>>>>cb_gdb:
> quit

I always get halted when I received the "[Inferior 1 (process 2400) exited normally]" message, then I need to press the "run" button then let the c::b to send the "cont" command to GDB, then I'm truly leaving the debugging status.

Any ideas?

If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12121
    • Travis build status
Re: question about exit the debugee when debugging
« Reply #1 on: August 02, 2011, 03:05:20 pm »
Yes, gdb-7.3's output has changed, I will fix it, when I get back home. Until then install gdb-7.2.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5247
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: question about exit the debugee when debugging
« Reply #2 on: August 02, 2011, 03:08:24 pm »
Yes, gdb-7.3's output has changed, I will fix it, when I get back home. Until then install gdb-7.2.
thanks, I still use 7.3, I do not bother to extra click after the debugee exits. :D
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.