aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2008-04-24 08:46:19 +0000
committerVladimir Prus <vladimir@codesourcery.com>2008-04-24 08:46:19 +0000
commitd24317b4805503c9a018e77ee4683c87678f11ff (patch)
tree981f80990040cea599ebdfba3192cbe7637677aa /gdb/breakpoint.c
parent879d3736b8868261db20ec0720af378e8a37365a (diff)
downloadgdb-d24317b4805503c9a018e77ee4683c87678f11ff.zip
gdb-d24317b4805503c9a018e77ee4683c87678f11ff.tar.gz
gdb-d24317b4805503c9a018e77ee4683c87678f11ff.tar.bz2
* breakpoint.c (print_one_breakpoint_location): In MI
mode, report the location string the breakpoint was originally created with.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 0c97792..1ba9570 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -3696,6 +3696,15 @@ print_one_breakpoint_location (struct breakpoint *b,
print_command_lines (uiout, l, 4);
do_cleanups (script_chain);
}
+
+ if (ui_out_is_mi_like_p (uiout) && !part_of_multiple)
+ {
+ if (b->addr_string)
+ ui_out_field_string (uiout, "original-location", b->addr_string);
+ else if (b->exp_string)
+ ui_out_field_string (uiout, "original-location", b->exp_string);
+ }
+
do_cleanups (bkpt_chain);
do_cleanups (old_chain);
}