From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CD39E385BF81; Fri, 10 Apr 2020 16:33:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CD39E385BF81 From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug ada/25811] New: [ada] start attempts to set breakpoint on main of previous exec Date: Fri, 10 Apr 2020 16:33:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: ada X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW 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: Fri, 10 Apr 2020 16:33:06 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D25811 Bug ID: 25811 Summary: [ada] start attempts to set breakpoint on main of previous exec Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: ada Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- Consider the execs first and second from test-case gdb.ada/exec_changed.exp. If we load first, and start it, and then subsequently load and start second: ... $ gdb -ex "file first" -ex start -ex "file second" -ex start Reading symbols from first... Temporary breakpoint 1 at 0x401f88: file exec_changed/first.adb, line 16. Starting program: /data/gdb_versions/devel/first=20 Temporary breakpoint 1, first () at exec_changed/first.adb:16 16 procedure First is A program is being debugged already. Are you sure you want to change the file? (y or n) y Load new symbol table from "second"? (y or n) y Reading symbols from second... The program being debugged has been started already. Start it from the beginning? (y or n) y Function "_ada_first" not defined. Make breakpoint pending on future shared library load? (y or [n]) y Temporary breakpoint 2 (-qualified _ada_first) pending. Starting program: /data/gdb_versions/devel/second=20 [Inferior 1 (process 1069) exited normally] ... the second start attempts to set a breakpoint on the main of first, which fails, after we don't stop at main but just run to exit. --=20 You are receiving this mail because: You are on the CC list for the bug.=