From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B5BEB3A4B834; Tue, 10 Nov 2020 21:06:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B5BEB3A4B834 From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug gdb/26863] GDB crash when opening PowerPC core on x86-64 machine Date: Tue, 10 Nov 2020 21:06:41 +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: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot 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: cc 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, 10 Nov 2020 21:06:41 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26863 Tom Tromey changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at sourceware dot o= rg --- Comment #3 from Tom Tromey --- It's difficult to know if this papers over anything. The old code probably just worked by mistake: - struct target_section *p; - - for (p =3D solib->sections; p < solib->sections_end; p++) - if (p->addr <=3D address && address < p->endaddr) The loop will presumably not run because both pointers are null. Tom de Vries checked in the null check a while back. commit 76547ab31b16b521e29892cab5a29b60b52291a5 Author: Tom de Vries Date: Wed Oct 14 12:24:42 2020 +0200 [gdb] Fix segfault in solib_contains_address_p So maybe this is just a dup of PR 26733. --=20 You are receiving this mail because: You are on the CC list for the bug.=