public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gdb: make gdb_printing_disassembler::stream public
@ 2023-02-02 15:09 Simon Marchi
  0 siblings, 0 replies; only message in thread
From: Simon Marchi @ 2023-02-02 15:09 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8b588f42120f1a39d32116c2bf3e53981d906a02

commit 8b588f42120f1a39d32116c2bf3e53981d906a02
Author: Simon Marchi <simon.marchi@efficios.com>
Date:   Wed Nov 30 09:46:09 2022 -0500

    gdb: make gdb_printing_disassembler::stream public
    
    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.
    
    Change-Id: Ib95755a4a45b8f6478787993e9f904df60dd8dc1
    Approved-By: Andrew Burgess <aburgess@redhat.com>

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_disassemble_info
 {
   DISABLE_COPY_AND_ASSIGN (gdb_printing_disassembler);
 
-protected:
-
   /* The stream that disassembler output is being written too.  */
   struct ui_file *stream ()
   { return m_stream; }
 
+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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-02 15:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-02 15:09 [binutils-gdb] gdb: make gdb_printing_disassembler::stream public Simon Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).