This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/17627] In MI all-stop/mi-async off mode, a thread exit make the prompt (kind of) return, but it shouldn't


https://sourceware.org/bugzilla/show_bug.cgi?id=17627

Mihai CÃrÃc <mihai.ciric at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mihai.ciric at gmail dot com

--- Comment #2 from Mihai CÃrÃc <mihai.ciric at gmail dot com> ---
Am currently facing this same problem myself.

Running GDB 7.8

Am trying to debug an application which has it's own prompt. It reaches my
prompt however after receiving an event it runs it but silently returns to the
gdb prompt.

myprompt> anycommand
=thread-created,id="67",group-id="i1"
                                     *running,thread-id="all"
*application does what it's supposed to do*
myprompt> 

*here i press enter* <-but anything else is the same, basically reaches gdb
&"\n"
^done

*this is where it gets odd, because it doesn't always react the same,
sometimes after gdb responds once, it returns to normal and, for example, after
another enter, myprompt is back up
other times i don't get returned to my application, however all threads are
still running. And if i hold enter pressed :
&"\n"
^done
&"\n"
^done
&"\n"
^done
&"\n"
^done
&"\n"
^done
&"\n"
^done
&"\n"
^done
&"\n"
^done
&"\n"
^done
&"\n"
^done
myprompt> 

I get back inside my application

Here's the same part with debug lwp:

 =thread-exited,id="68",group-id="i1"
&"LNW: waitpid(-1, ...) returned 0, ERRNO-OK\n"
&"LLW: exit (ignore)\n"

&"\n"
^done

&"\n"
^done

&"\n"
^done

&"\n"
^done

&"\n"
^done

&"\n"
^done

&"\n"
^done

&"\n"
^done

&"\n"
^done
&"linux_nat_wait: [process -1], [TARGET_WNOHANG]\n"
&"LLW: enter\n"
&"LNW: waitpid(-1, ...) returned 3442, ERRNO-OK\n"
&"LLW: waitpid 3442 received Stopped (tty input) (stopped)\n"
&"LLTA: KILL(SIG0) Thread 0xe5945b70 (LWP 3442) (OK)\n"
&"LLW: Candidate event Stopped (tty input) (stopped) in Thread 0xe5945b70 (LWP
3442).\n"


Tell me if i there's any more information i can provide
Mihai

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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