From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F1F663858430; Tue, 28 Dec 2021 10:47:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F1F663858430 From: "qwertytmp1 at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/28717] GDB steps twice on a single stepi Date: Tue, 28 Dec 2021 10:47:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 11.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: qwertytmp1 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Dec 2021 10:47:40 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28717 --- Comment #4 from lol lol --- @Tom Tromey Thank you for this hint command! I've tried to reproduce the problem with "set debug infrun 1". Unfortunately, I'm not as proficient at GDB internals as I would like to be. Maybe you see something weird from the log I've got: ``` (gdb) set debug infrun 1 (gdb) si [infrun] clear_proceed_status_thread: Thread 1 [infrun] proceed: enter [infrun] proceed: addr=3D0xffffffffffffffff, signal=3DGDB_SIGNAL_DEFAULT [infrun] scoped_disable_commit_resumed: reason=3Dproceeding [infrun] start_step_over: enter [infrun] start_step_over: stealing global queue of threads to step, len= gth =3D 0 [infrun] operator(): step-over queue now empty [infrun] start_step_over: exit [infrun] resume_1: step=3D1, signal=3DGDB_SIGNAL_0, trap_expected=3D0, cu= rrent thread [Thread 1] at 0x1e514 PUTPKT: 'm1e514,4' GETPKT: 'm1e514,4' PUTPKT: 'vCont?' GETPKT: 'vCont?' PUTPKT: 'vCont;s:1;c' [infrun] prepare_to_wait: prepare_to_wait [infrun] reset: reason=3Dproceeding [infrun] maybe_set_commit_resumed_all_targets: enabling commit-resumed for target remote [infrun] maybe_call_commit_resumed_all_targets: calling commit_resumed for target remote [infrun] proceed: exit [infrun] fetch_inferior_event: enter [infrun] scoped_disable_commit_resumed: reason=3Dhandling event [infrun] print_target_wait_results: target_wait (-1.0.0 [Thread 0], statu= s) =3D [infrun] print_target_wait_results: 42000.1.0 [Thread 1], [infrun] print_target_wait_results: status->kind =3D stopped, signal =3D GDB_SIGNAL_TRAP [infrun] handle_inferior_event: status->kind =3D stopped, signal =3D GDB_SIGNAL_TRAP PUTPKT: 'g' GETPKT: 'g' [infrun] context_switch: Switching context from process 0 to Thread 1 [infrun] handle_signal_stop: stop_pc=3D0x1e518 [infrun] handle_signal_stop: stopped by watchpoint [infrun] handle_signal_stop: stopped data address=3D0x1f [infrun] resume_1: step=3D1, signal=3DGDB_SIGNAL_0, trap_expected=3D1, cu= rrent thread [Thread 1] at 0x1e518 PUTPKT: 'm1e518,4' GETPKT: 'm1e518,4' PUTPKT: 'vCont;s:1' [infrun] prepare_to_wait: prepare_to_wait [infrun] reset: reason=3Dhandling event [infrun] maybe_set_commit_resumed_all_targets: enabling commit-resumed for target remote [infrun] maybe_call_commit_resumed_all_targets: calling commit_resumed for target remote [infrun] fetch_inferior_event: exit [infrun] fetch_inferior_event: enter [infrun] scoped_disable_commit_resumed: reason=3Dhandling event [infrun] print_target_wait_results: target_wait (-1.0.0 [Thread 0], statu= s) =3D [infrun] print_target_wait_results: 42000.1.0 [Thread 1], [infrun] print_target_wait_results: status->kind =3D stopped, signal =3D GDB_SIGNAL_TRAP [infrun] handle_inferior_event: status->kind =3D stopped, signal =3D GDB_SIGNAL_TRAP [infrun] clear_step_over_info: clearing step over info PUTPKT: 'g' GETPKT: 'g' [infrun] context_switch: Switching context from process 0 to Thread 1 [infrun] handle_signal_stop: stop_pc=3D0x1e51c [infrun] handle_signal_stop: stopped by watchpoint [infrun] handle_signal_stop: stopped data address=3D0x1f PUTPKT: 'm1e51c,4' GETPKT: 'm1e51c,4' PUTPKT: 'm1e518,4' GETPKT: 'm1e518,4' PUTPKT: 'm1e51c,4' GETPKT: 'm1e51c,4' [infrun] process_event_stop_test: stepi/nexti [infrun] stop_waiting: stop_waiting GETPKT: 'fd7b02a9' GETPKT: 'm1' PUTPKT: 'm1e51c,4' GETPKT: 'm1e51c,4' PUTPKT: 'm1e518,4' GETPKT: 'm1e518,4' PUTPKT: 'm1e51c,4' GETPKT: 'm1e51c,4' 0x000000000001e51c in ?? () [infrun] infrun_async: enable=3D0 [infrun] reset: reason=3Dhandling event [infrun] maybe_set_commit_resumed_all_targets: not requesting commit-resu= med for target remote, no resumed threads (gdb) [infrun] fetch_inferior_event: exit ``` --=20 You are receiving this mail because: You are on the CC list for the bug.=