From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6523F3858C62; Thu, 1 Feb 2024 10:04:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6523F3858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1706781847; bh=3QXEztlaSVNoQXzUI+RFLxDxhJWPgxQOkSMC9lCL1uI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=BWCv3NVwp4SDiS/UDTCFpVLWgf2DGiLc8wTenByw9EnVjgpGXvEHXzrRRVTg0aD3m Hy17AyQFqjG1fCjsNTOUitdAWElLpzgQJwk7xGswH0cuvsotf+ZCTJpLP/EalTuo44 z4oBgO7xKHmY4/B/73BfI1MqmU2hFPsq0c8/7sy4= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/31254] [gdb, arm] FAIL: gdb.threads/staticthreads.exp: up 10 Date: Thu, 01 Feb 2024 10:04:01 +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: 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: 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31254 --- Comment #18 from Tom de Vries --- (In reply to Thiago Jung Bauermann from comment #17) > I'll see if I can make arm-tdep.c add a hook in objfiles_changed () so th= at > it can detect that the objfiles where reloaded and re-read the exception > tables. Or perhaps it's cleaner to convert objfiles_changed () into an > observer. I triggered the reread using "shell touch " in the gdb script, and th= en set a breakpoint on arm_exidx_new_objfile. It triggered on the file comman= d, and on the reread at run command. So I'm not sure this approach is necessa= ry. Perhaps we're looking at a regression since this commit: ... commit a2726d4ff80168a8134c68cb798e3f5f537b0eba Author: Luis Machado Date: Thu Oct 31 16:30:44 2019 -0300 [ARM] Store exception handling information per-bfd instead of per-objfi= le ... I wonder if this fixes it: ... diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index ecffb9223e1..4f68af75a4b 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -2704,7 +2704,7 @@ arm_exidx_new_objfile (struct objfile *objfile) if (n_bytes || n_words) { gdb_byte *p =3D entry - =3D (gdb_byte *) obstack_alloc (&objfile->objfile_obstack, + =3D (gdb_byte *) obstack_alloc (&objfile->per_bfd->storage_obst= ack, n_bytes + n_words * 4 + 1); while (n_bytes--) ... --=20 You are receiving this mail because: You are on the CC list for the bug.=