Avoid string_file in tui_make_status_line
tui_make_status_line uses string_file where a simple std::string constructor would do. This makes this change. gdb/ChangeLog 2019-08-15 Tom Tromey <tom@tromey.com> * tui/tui-stack.c (tui_make_status_line): Use string constructor.
This commit is contained in:
parent
f2dda47784
commit
e2a678a557
@ -1,3 +1,7 @@
|
||||
2019-08-15 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* tui/tui-stack.c (tui_make_status_line): Use string constructor.
|
||||
|
||||
2019-08-15 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* tui/tui-wingeneral.c: Include tui-stack.h.
|
||||
|
@ -128,11 +128,9 @@ tui_make_status_line (struct tui_locator_window *loc)
|
||||
line_width = MIN_LINE_WIDTH;
|
||||
|
||||
/* Translate PC address. */
|
||||
string_file pc_out;
|
||||
|
||||
fputs_filtered (loc->gdbarch? paddress (loc->gdbarch, loc->addr) : "??",
|
||||
&pc_out);
|
||||
|
||||
std::string pc_out (loc->gdbarch
|
||||
? paddress (loc->gdbarch, loc->addr)
|
||||
: "??");
|
||||
const char *pc_buf = pc_out.c_str ();
|
||||
int pc_width = pc_out.size ();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user