This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[ob] Clean up output of overlay bkpt insertion error message
- From: dje at google dot com (Doug Evans)
- To: gdb-patches at sourceware dot org
- Date: Wed, 25 Feb 2009 17:17:10 -0800 (PST)
- Subject: [ob] Clean up output of overlay bkpt insertion error message
Hi.
I checked this in under the obvious rule.
Without the patch I was getting:
Warning:
Overlay breakpoint 1 failed: in ROM?Cannot insert breakpoint 1.
Error accessing memory address 0x102e0: Input/output error.
Both the line I changed and the preceding line had a trailing space,
so I removed that too.
2009-02-25 Doug Evans <dje@google.com>
* breakpoint.c (insert_bp_location): Add \n to overlay breakpoint
error message.
diff -u -p -u -p -r1.379 breakpoint.c
--- breakpoint.c 25 Feb 2009 21:43:04 -0000 1.379
+++ breakpoint.c 26 Feb 2009 01:12:37 -0000
@@ -1135,8 +1135,8 @@ Note: automatically using hardware break
bpt->overlay_target_info.placed_address = addr;
val = target_insert_breakpoint (&bpt->overlay_target_info);
if (val != 0)
- fprintf_unfiltered (tmp_error_stream,
- "Overlay breakpoint %d failed: in ROM?",
+ fprintf_unfiltered (tmp_error_stream,
+ "Overlay breakpoint %d failed: in ROM?\n",
bpt->owner->number);
}
}