public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug mi/26014] New: Ctrl-C is not being passed to remote gdbserver
@ 2020-05-20  8:20 equationssolver at yahoo dot com
  2022-12-23 20:36 ` [Bug mi/26014] " tromey at sourceware dot org
  0 siblings, 1 reply; 2+ messages in thread
From: equationssolver at yahoo dot com @ 2020-05-20  8:20 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 26014
           Summary: Ctrl-C is not being passed to remote gdbserver
           Product: gdb
           Version: HEAD
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: mi
          Assignee: unassigned at sourceware dot org
          Reporter: equationssolver at yahoo dot com
  Target Milestone: ---

Ctrl-C is not being passed to remote gdbserver and hence there is no remote
stopped packet from the remote gdbserver.
Remote stop packet is require to generate MI record to tell the Eclipse IDE
that target has stopped.

This is an issue related to eclipse IDE where,  if user suspend the remote
gdbserver connection with dprint , then IDE infinitely waits and expect of stop
remote packet reply from gdbserver,  but there is no MI stopped remote packet
and hence IDE suspend button grayed out and user cannot do further debugging.

Looking into gdb traces shows that ^C is not passed to gdbserver that's why
there is no MI record stopped packet in an reply of ^C.  
This is only happened under Windows OS with latest GDB.

This can be reproduce with CLI

i.e
C test program

#1 #include <stdio.h>
#2
#3 int main ()
#4 {
#5   while(1)
#6     printf ("hello world! \n");
#7  return 0;
#8 }

$ gcc -ggdb -g3 -O0  -o test test.c

Launch gdbserver
$ gdbserver :10000 test

Launch gdb
(gdb) file test
Reading symbols from test...done.
(gdb) set dprintf-style call
(gdb) dprintf 6, "print dprintf\n"
Dprintf 1 at 0x63e: file test.c, line 6.
(gdb) set debug remote 1
(gdb) tar rem :10000
(gdb) c

press ^C on terminal

Sending packet:
$G0e0000000000000000000000000000005441aff7ff7f0000c018ddf7ff7f00006062755555550000010000000000000080dbffffff7f000080dbffffff7f0000c0c4fdf7ff7f0000800dddf7ff7f000002000000000000004602000000000000304555555555000060dcffffff7f0000000000000000000000000000000000003e4655555555000002020000330000002b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b080000065d70000dfdd00...^CPacket
received: OK
Sending packet:
$G0e0000000000000000000000000000005441aff7ff7f0000c018ddf7ff7f00006062755555550000010000000000000080dbffffff7f000080dbffffff7f0000c0c4fdf7ff7f0000800dddf7ff7f000002000000000000004602000000000000304555555555000060dcffffff7f0000000000000000000000000000000000003e4655555555000002020000330000002b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000b080000065d70000dfdd00...Packet
received: OK
Sending packet: $z0,7ffff7a22c93,1#cd...Packet received: OK
Sending packet: $z0,7ffff7b18bc3,1#fc...Packet received: OK
Sending packet: $z0,7ffff7a22c20,1#c3...Packet received: OK
Sending packet: $z0,7fffffffdaff,1#c5...Packet received: OK
Quit
(gdb)

In above reproduce able scenario, pressing the ^C, "Quit" the gdb debugging and
^C is not passed to remote gdbserver. 
So how we can improve GDB that it always pass ^C to remote target in order to
create remote stop packet.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug mi/26014] Ctrl-C is not being passed to remote gdbserver
  2020-05-20  8:20 [Bug mi/26014] New: Ctrl-C is not being passed to remote gdbserver equationssolver at yahoo dot com
@ 2022-12-23 20:36 ` tromey at sourceware dot org
  0 siblings, 0 replies; 2+ messages in thread
From: tromey at sourceware dot org @ 2022-12-23 20:36 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
                 CC|                            |tromey at sourceware dot org
   Last reconfirmed|                            |2022-12-23
             Status|UNCONFIRMED                 |WAITING

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
> This is only happened under Windows OS with latest GDB.

Can you try with the gdb 13 pre-release?
There have been various fixes in this area this year.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-12-23 20:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-20  8:20 [Bug mi/26014] New: Ctrl-C is not being passed to remote gdbserver equationssolver at yahoo dot com
2022-12-23 20:36 ` [Bug mi/26014] " tromey at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).