From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 417853858C20; Tue, 20 Dec 2022 10:39:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 417853858C20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1671532785; bh=1YyhlbX/wS5OLY9Fo1R+kEDTa+WYGm3/Tn9QBW3GUHw=; h=From:To:Subject:Date:From; b=oPnS1AIKwOxcrRto3kVaqPS55BktARd8T6ODxICbDL1iSzn70Okq9gyt1LHzqWs8Q NPZgrhVhFSYac5rEnDUjiIRth6Rc4AG0DHAAOL7f30HuiCKBgPF3S6GpPdwtV0Iy2t Ei1phvhMF3otvF4ZFjBRmL7MxeFeJ4HTIV7kJMnM= From: "abdulrahman.mahmoud75 at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/29921] New: GDB steps into printf() when including "cstdio" Date: Tue, 20 Dec 2022 10:39:44 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 7.10 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: abdulrahman.mahmoud75 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29921 Bug ID: 29921 Summary: GDB steps into printf() when including "cstdio" Product: gdb Version: 7.10 Status: UNCONFIRMED Severity: critical Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: abdulrahman.mahmoud75 at gmail dot com Target Milestone: --- I have noticed that gdb is now able to step into printf function when inclu= ding cstdio starting gdb-7.10. Here is my small app: #include int main() { printf("test\n"); return 0; } when using GDB-7.10 to step in printf the normal behavior that it should st= op at the return line but instead it stops inside the printf function: "printf (__format=3D0x409050 "test\n") at e:/win64-assert/modeltech/gcc-7.4.0-mingw64vc16/x86_64-w64-mingw32/include/= stdio.h:351 351 __builtin_va_list __local_argv; __builtin_va_start( __local_argv, __format );"=20 This behavior happens only on Windows. --=20 You are receiving this mail because: You are on the CC list for the bug.=