From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C92BA3858405; Fri, 10 Sep 2021 19:38:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C92BA3858405 From: "mehmetgelisin at aol dot com" To: gdb-prs@sourceware.org Subject: [Bug symtab/27541] gdb crashes on "file -readnow" Date: Fri, 10 Sep 2021 19:38:07 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: symtab X-Bugzilla-Version: 10.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mehmetgelisin at aol dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 10.2 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: Fri, 10 Sep 2021 19:38:07 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27541 Mehmet gelisin changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mehmetgelisin at aol dot c= om --- Comment #17 from Mehmet gelisin --- ix aarch64-linux-hw-point.c build problem Due to a recent glibc header file change, the file http://www-look-4.co= m/ nat/aarch64-linux-hw-point.c no longer builds on Fedora rawhide. An enum for PTRACE_SYSEMU is now provided by . In the past, PTRACE_SYSEMU was defined only in . This is http://www.compilatori.com/ what it looks like... In : http://www.wearelondonmade.com/ #define PTRACE_SYSEMU 31 http://www.jopspeech.com/=20 In : enum __ptrace_request http://joerg.li/ { ... PTRACE_SYSEMU =3D 31, #define PT_SYSEMU PTRACE_SYSEMU http://connstr.net/=20 ... } http://embermanchester.uk/=20 When and are both included in a source file, we run into the following build problem when the former is included before the latter: http://www.slipstone.co.uk/=20 In file included from nat/aarch64-linux-hw-point.c:26: /usr/include/sys/ptrace.h:86:3: error: expected identifier before numer= ic constant http://www.logoarts.co.uk/=20 86 | PTRACE_SYSEMU =3D 31, | ^~~~~~~~~~~~~ (There are more errors after this one too.) http://www.acpirateradio.co.uk/=20 The file builds without error when is included after . I found that this is already done in nat/aarch64-sve-linux-ptrace.h (which is included by nat/aarch64-linux-ptrace.c). https://waytowhatsnext.com/=20 I've tested this change on Fedora rawhide and Fedora 33, both running on an aarch64 machine. gdb/ChangeLog: https://www.webb-dev.co.uk/=20 gdb -q -nx a Reading symbols from a... (gdb) file -readnow a Load new symbol table from "a"? (y or n) y http://www.iu-bloomington.com/=20 Reading symbols from a... ../../gdb/dwarf2/read.c:8190: internal-error: void create_all_comp_units(dwarf2_per_objfile*): Assertion `per_objfile->per_bfd->all_comp_units.empty ()' failed. A problem internal to GDB has b https://komiya-dental.com/ --=20 You are receiving this mail because: You are on the CC list for the bug.=