This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[obvious][commit] Fix indentation
- From: Phil Muldoon <pmuldoon at redhat dot com>
- To: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Wed, 12 Jun 2013 13:19:38 +0100
- Subject: [obvious][commit] Fix indentation
With the frame filters patch recently, I introduced an incorrectly
indented block of code into stack.c.
Checking in under the obvious rule.
Cheers,
Phil
2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
* stack.c (backtrace_command_1): Fix indentation.
--
diff --git a/gdb/stack.c b/gdb/stack.c
index a4b392e..08431bb 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -1766,20 +1766,20 @@ backtrace_command_1 (char *count_exp, int show_locals, int no_filters,
print_frame_info (fi, 1, LOCATION, 1);
if (show_locals)
- {
- struct frame_id frame_id = get_frame_id (fi);
+ {
+ struct frame_id frame_id = get_frame_id (fi);
- print_frame_local_vars (fi, 1, gdb_stdout);
+ print_frame_local_vars (fi, 1, gdb_stdout);
- /* print_frame_local_vars invalidates FI. */
- fi = frame_find_by_id (frame_id);
- if (fi == NULL)
- {
- trailing = NULL;
- warning (_("Unable to restore previously selected frame."));
- break;
+ /* print_frame_local_vars invalidates FI. */
+ fi = frame_find_by_id (frame_id);
+ if (fi == NULL)
+ {
+ trailing = NULL;
+ warning (_("Unable to restore previously selected frame."));
+ break;
+ }
+ }
- }
/* Save the last frame to check for error conditions. */
trailing = fi;