public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/26642] New: "maintenance set target-async off" is broken on GNU/Linux
@ 2020-09-21 19:52 simark at simark dot ca
  2020-09-21 19:52 ` [Bug gdb/26642] " simark at simark dot ca
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: simark at simark dot ca @ 2020-09-21 19:52 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 26642
           Summary: "maintenance set target-async off" is broken on
                    GNU/Linux
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: simark at simark dot ca
  Target Milestone: ---

Before commit 5b6d1e4fa4fc ("Multi-target support"), I'm able to run to main
when using "maintenance set target-async off".  With the commit, it just hangs.

Before:

$ ./gdb -q --data-directory=data-directory/ -nx test  -ex "set debug infrun 1"
-ex "maintenance set target-async off"
Reading symbols from test...
(gdb) b main
Breakpoint 1 at 0x4004e8: file test.c, line 6.
(gdb) r
Starting program: /home/smarchi/build/binutils-gdb/gdb/test 
infrun: proceed (addr=0x7ffff7dd7c30, signal=GDB_SIGNAL_0)
infrun: proceed: resuming process 15009
infrun: resume (step=0, signal=GDB_SIGNAL_0), trap_expected=0, current thread
[process 15009] at 0x7ffff7dd7c30
infrun: prepare_to_wait
infrun: target_wait (-1.0.0, status) =
infrun:   15009.15009.0 [process 15009],
infrun:   status->kind = stopped, signal = GDB_SIGNAL_TRAP
infrun: handle_inferior_event status->kind = stopped, signal = GDB_SIGNAL_TRAP
infrun: stop_pc = 0x7ffff7ddb120
infrun: BPSTAT_WHAT_SINGLE
infrun: no stepping, continue
infrun: resume (step=1, signal=GDB_SIGNAL_0), trap_expected=1, current thread
[process 15009] at 0x7ffff7ddb120
infrun: prepare_to_wait
infrun: target_wait (-1.0.0, status) =
infrun:   15009.15009.0 [process 15009],
infrun:   status->kind = stopped, signal = GDB_SIGNAL_TRAP
infrun: handle_inferior_event status->kind = stopped, signal = GDB_SIGNAL_TRAP
infrun: stop_pc = 0x7ffff7ddb121
infrun: no stepping, continue
infrun: resume (step=0, signal=GDB_SIGNAL_0), trap_expected=0, current thread
[process 15009] at 0x7ffff7ddb121
infrun: prepare_to_wait
infrun: target_wait (-1.0.0, status) =
infrun:   15009.15009.0 [process 15009],
infrun:   status->kind = stopped, signal = GDB_SIGNAL_TRAP
infrun: handle_inferior_event status->kind = stopped, signal = GDB_SIGNAL_TRAP
infrun: stop_pc = 0x4004e8
infrun: BPSTAT_WHAT_STOP_NOISY
infrun: stop_waiting
infrun: stop_all_threads
infrun: stop_all_threads, pass=0, iterations=0
infrun:   process 15009 not executing
infrun: stop_all_threads, pass=1, iterations=1
infrun:   process 15009 not executing
infrun: stop_all_threads done

Breakpoint 1, main () at test.c:6
6           for (int i = 0; i < 2; i++) {
(gdb) 


After:

$ ./gdb -q --data-directory=data-directory/ -nx test  -ex "set debug infrun 1"
-ex "maintenance set target-async off"
Reading symbols from test...
(gdb) b main
Breakpoint 1 at 0x4004e8: file test.c, line 6.
(gdb) r
Starting program: /home/smarchi/build/binutils-gdb/gdb/test 
infrun: proceed (addr=0x7ffff7dd7c30, signal=GDB_SIGNAL_0)
infrun: proceed: resuming process 17528
infrun: resume (step=0, signal=GDB_SIGNAL_0), trap_expected=0, current thread
[process 17528] at 0x7ffff7dd7c30
infrun: prepare_to_wait
<hangs>

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

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

end of thread, other threads:[~2020-10-13 18:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-21 19:52 [Bug gdb/26642] New: "maintenance set target-async off" is broken on GNU/Linux simark at simark dot ca
2020-09-21 19:52 ` [Bug gdb/26642] " simark at simark dot ca
2020-09-21 22:03 ` simark at simark dot ca
2020-09-21 22:08 ` simark at simark dot ca
2020-10-13 16:01 ` cvs-commit at gcc dot gnu.org
2020-10-13 16:04 ` simark at simark dot ca
2020-10-13 18:32 ` cvs-commit at gcc dot gnu.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).