aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-04-16 12:40:33 -0600
committerTom Tromey <tom@tromey.com>2023-05-02 09:14:11 -0600
commite29e63040dd09449a21762bcacabdf31d580beee (patch)
treeb70a9d3c5d5970c9cb8454f3e28ac41b32d85883 /gdb/breakpoint.c
parentb545d4239bedf9001926efd55da2aa2bd2bbb94a (diff)
downloadfsf-binutils-gdb-e29e63040dd09449a21762bcacabdf31d580beee.zip
fsf-binutils-gdb-e29e63040dd09449a21762bcacabdf31d580beee.tar.gz
fsf-binutils-gdb-e29e63040dd09449a21762bcacabdf31d580beee.tar.bz2
Remove error_stream
error_stream is trivial and only used in a couple of spots in breakpoint.c. This patch removes it in favor of just writing it out at the spots where it was used.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 5477500..30d438d 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -3138,7 +3138,7 @@ update_inserted_breakpoint_locations (void)
if (error_flag)
{
target_terminal::ours_for_output ();
- error_stream (tmp_error_stream);
+ error (("%s"), tmp_error_stream.c_str ());
}
}
@@ -3235,7 +3235,7 @@ insert_breakpoint_locations (void)
You may have requested too many hardware breakpoints/watchpoints.\n");
}
target_terminal::ours_for_output ();
- error_stream (tmp_error_stream);
+ error (("%s"), tmp_error_stream.c_str ());
}
}