From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 83D10385841F; Sat, 2 Oct 2021 03:45:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 83D10385841F From: "peffyd at yahoo dot com" To: gdb-prs@sourceware.org Subject: [Bug breakpoints/28411] New: breakpoint sets in wrong line and crashes when attempting to RUN or START Date: Sat, 02 Oct 2021 03:45:17 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: breakpoints X-Bugzilla-Version: 10.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: peffyd at yahoo 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 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: Sat, 02 Oct 2021 03:45:17 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28411 Bug ID: 28411 Summary: breakpoint sets in wrong line and crashes when attempting to RUN or START Product: gdb Version: 10.1 Status: UNCONFIRMED Severity: critical Priority: P2 Component: breakpoints Assignee: unassigned at sourceware dot org Reporter: peffyd at yahoo dot com Target Milestone: --- Surface Book 2 Using windows 10 pro 20H2 installed with mysys2=20 GCC version 10.3 GDB version 10.2 I was successfully able to debug the same file in Mac but, when I attempt on windows it crashes. MAC compiled using with -ggdb flag. NOTE Mac is running GDB version 11.0 Windows compiled using GCC with -g flag. Also tried -g -O0 but it still cra= shed In windows GDB is able to start and I am able to view the file, layout src.= =20 When attempting to add breakpoint such as break main or break = sets breakpoint to wrong line. It sets it a few lines below and does not allow m= e to set a breakpoint above the line number that is selected. When attempting to= run or start GDB it crashes the terminal. I have attempted to run from command prompt and powershell. Both crash! --=20 You are receiving this mail because: You are on the CC list for the bug.=