diff options
author | Tom Tromey <tom@tromey.com> | 2022-12-16 07:56:57 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-24 11:52:48 -0700 |
commit | 873a185be258ad2552b9579005852815b4da5baf (patch) | |
tree | b413b5b174cc4e4dc283ff64dc492126b66046e2 /gdbserver/target.h | |
parent | c9d9117a12be1ff0d86a6d5bd0c9380ee5107858 (diff) | |
download | binutils-gdb-873a185be258ad2552b9579005852815b4da5baf.tar.gz |
Don't use struct buffer in handle_qxfer_btrace
This changes handle_qxfer_btrace and handle_qxfer_btrace_conf, in
gdbserver, to use std::string rather than struct buffer.
Diffstat (limited to 'gdbserver/target.h')
-rw-r--r-- | gdbserver/target.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gdbserver/target.h b/gdbserver/target.h index 01002c2d6aa..d993e361b76 100644 --- a/gdbserver/target.h +++ b/gdbserver/target.h @@ -33,7 +33,6 @@ #include "gdbsupport/byte-vector.h" struct emit_ops; -struct buffer; struct process_info; /* This structure describes how to resume a particular thread (or all @@ -403,14 +402,14 @@ public: /* Read branch trace data into buffer. Return 0 on success; print an error message into BUFFER and return -1, otherwise. */ - virtual int read_btrace (btrace_target_info *tinfo, buffer *buf, + virtual int read_btrace (btrace_target_info *tinfo, std::string *buf, enum btrace_read_type type); /* Read the branch trace configuration into BUFFER. Return 0 on success; print an error message into BUFFER and return -1 otherwise. */ virtual int read_btrace_conf (const btrace_target_info *tinfo, - buffer *buf); + std::string *buf); /* Return true if target supports range stepping. */ virtual bool supports_range_stepping (); @@ -636,7 +635,7 @@ target_disable_btrace (struct btrace_target_info *tinfo) static inline int target_read_btrace (struct btrace_target_info *tinfo, - struct buffer *buffer, + std::string *buffer, enum btrace_read_type type) { return the_target->read_btrace (tinfo, buffer, type); @@ -644,7 +643,7 @@ target_read_btrace (struct btrace_target_info *tinfo, static inline int target_read_btrace_conf (struct btrace_target_info *tinfo, - struct buffer *buffer) + std::string *buffer) { return the_target->read_btrace_conf (tinfo, buffer); } |