From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 988A83858409; Wed, 9 Nov 2022 15:40:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 988A83858409 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1668008450; bh=Xa4uwb6nP5rpT9uC/+/bDvIbigXl28l1QWpzia+tKCU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=iBSHIi5cjBmyowAfwJKHYLpXt6DP3cs5OCb6pMz+vfFqJNeRSOrXIMBX1QDCsLShU 87Ng6/tRepodQWJdMNLEPhnMLN1lhTYxcZMh25GnkWbHAgQo0Q0u7G7BZDUJV+4Wzj sdL++Za+4X3vl0vthnvMr2L2KDjunNFZZOoUK+xY= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug exp/28359] ptype/o does not show offset if the current language is asm Date: Wed, 09 Nov 2022 15:40:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: exp X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: tromey 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=3D28359 --- Comment #4 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Tom Tromey : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D97e20099d3b0= 2baafe244e975aebe09020d2ab34 commit 97e20099d3b02baafe244e975aebe09020d2ab34 Author: Tom Tromey Date: Mon Nov 7 11:12:35 2022 -0700 Allow 'ptype/o' for assembly PR exp/28359 points out that 'ptype/o' does not work when the current language is "asm". I tracked this down to a hard-coded list of languages in typeprint.c. This patch replaces this list with a method on 'language_defn' instead. If all languages are ever updated to have this feature, the method could be removed; but in the meantime this lets each language control what happens. I looked at having each print_type method simply modify the flags itself, but this doesn't work very well with the feature that disables method-printing by default (but allows it via a flag). Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D28359 Approved-By: Andrew Burgess Approved-By: Keith Seitz --=20 You are receiving this mail because: You are on the CC list for the bug.=