From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 38CAD38618D1; Sat, 3 Jul 2021 18:35:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 38CAD38618D1 From: "Samuel.r.warner at me dot com" To: gdb-prs@sourceware.org Subject: [Bug c++/26912] "file" command causes core dump while specifying the executable on the command line does not Date: Sat, 03 Jul 2021 18:35:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: c++ X-Bugzilla-Version: 10.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Samuel.r.warner at me dot com 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: 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: Sat, 03 Jul 2021 18:35:50 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26912 --- Comment #14 from Sam Warner --- Success - null-pointer gone when using =E2=80=98-file=E2=80=99 command. I hand edited solid-darwin.c, and used the following: // // from Simon Marchi, put in here by Sam Warner as couldn't find the patch // /* Everything below only makes sense if we have a running inferior. */ if (!target_has_execution_current() ) return; I used target_has_execution_current() to get around some header file issue where target_has_execution wasn=E2=80=99t being defined in my environment. = I=E2=80=99ll go research that next. After solving the header so I use the exact changes Si= mon had, then I=E2=80=99ll run the test-suite. Thank you Simon, Sam =E2=80=A6. edited from command shell =E2=80=A6 (make it easier to read) sam@gdbdev--1- gdb-10.2 % gdb --data-directory=3D/Users/sam/Documents/gdb-10.2/gdb/data-directory gdb GNU gdb (GDB) 10.2 Copyright (C) 2021 Free Software Foundation, Inc. (top-gdb) run -q (gdb) file /Users/sam/Documents/gdb-10.2/gdb/gdb Reading symbols from /Users/sam/Documents/gdb-10.2/gdb/gdb... (top-gdb)=20 > On Jul 3, 2021, at 10:25 AM, Sam Warner wrote: >=20 > Hi Simon, > I=E2=80=99ve been unable to find this patch on https://sourceware.org/= git/gitweb.cgi?p=3Dbinutils-gdb.git I tried searching based on Change-ID, and other ite= ms listed within the thread, and even your name. Can you point me to the p= atch? >=20 > You do show the source changes you made. I will go make the source ch= anges to solid-darwin.c and test. If you can point me to the patch that=E2= =80=99d be great. >=20 > Sam >=20 >> On Jul 2, 2021, at 3:51 PM, simark at simark dot ca > wrote: >>=20 >> https://sourceware.org/bugzilla/show_bug.cgi?id=3D26912 >>=20 >> --- Comment #11 from Simon Marchi --- >> (In reply to Sam Warner from comment #9) >>> Can I change the bug to Confirmed and assign myself (WIP on using Simon= 's >>> source modifications (simark), and if not resolved by these continue to >>> investigate-resolve)? >>=20 >> Here's the patch in question: >>=20 >> https://sourceware.org/pipermail/gdb-patches/2021-June/180396.html >>=20 >> Can you just verify if this fixes the problem for you? If so I'll commi= t it to >> the master branch. >>=20 >> --=20 >> You are receiving this mail because: >> You are on the CC list for the bug. > --=20 You are receiving this mail because: You are on the CC list for the bug.=