From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1879) id 9542D3858426; Thu, 2 Feb 2023 15:09:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9542D3858426 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1675350542; bh=fzJAIGK17LWK8R8E0D2aZqbWkd4owg2eU0IcGxPyAMk=; h=From:To:Subject:Date:From; b=MjNj4T6BxekdktaTG9nS3YPJAH2OpRbdkP5cTru96HxlgJep/2zsU3ycOBepl10bX jJEt0UmYto5Bk8S2H/qGAazKSxWIZpv4prb2lp8sdWzZEgM3iIogvTQMrIgd3n1riJ gu4yfCtkZZvTbIjEV9I5GnsrU+UHlIsuOjnHQRNI= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Simon Marchi To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb: make gdb_printing_disassembler::stream public X-Act-Checkin: binutils-gdb X-Git-Author: Simon Marchi X-Git-Refname: refs/heads/master X-Git-Oldrev: 17467c103073ae0ec7bc43ffa35cb488cd2a97ed X-Git-Newrev: 8b588f42120f1a39d32116c2bf3e53981d906a02 Message-Id: <20230202150902.9542D3858426@sourceware.org> Date: Thu, 2 Feb 2023 15:09:02 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D8b588f42120f= 1a39d32116c2bf3e53981d906a02 commit 8b588f42120f1a39d32116c2bf3e53981d906a02 Author: Simon Marchi Date: Wed Nov 30 09:46:09 2022 -0500 gdb: make gdb_printing_disassembler::stream public =20 In the ROCm port, we need to access the underlying stream of a gdb_printing_disassembler, so make it public. The reason we need to access it is to know whether it supports style escape code. We then pass that information to a temporary string_file we use while symbolizing addresses. =20 Change-Id: Ib95755a4a45b8f6478787993e9f904df60dd8dc1 Approved-By: Andrew Burgess Diff: --- gdb/disasm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/disasm.h b/gdb/disasm.h index 86d8eed61e9..02d94081077 100644 --- a/gdb/disasm.h +++ b/gdb/disasm.h @@ -123,12 +123,12 @@ struct gdb_printing_disassembler : public gdb_disasse= mble_info { DISABLE_COPY_AND_ASSIGN (gdb_printing_disassembler); =20 -protected: - /* The stream that disassembler output is being written too. */ struct ui_file *stream () { return m_stream; } =20 +protected: + /* Constructor. All the arguments are just passed to the parent class. We also add the two print functions to the arguments passed to the parent. See gdb_disassemble_info for a description of how the