aboutsummaryrefslogtreecommitdiff
path: root/gdb/stack.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-05-27 15:01:28 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2021-05-27 15:01:28 -0400
commit01add95bed9afd5e7815439c3967db976be53f80 (patch)
treea0239dcf29375bf6e4382d419d17117b1665d8ab /gdb/stack.c
parent055c879fcf242e43a6ef8190f83905109922da93 (diff)
downloadgdb-01add95bed9afd5e7815439c3967db976be53f80.zip
gdb-01add95bed9afd5e7815439c3967db976be53f80.tar.gz
gdb-01add95bed9afd5e7815439c3967db976be53f80.tar.bz2
gdb: fix some indentation issues
I wrote a small script to spot a pattern of indentation mistakes I saw happened in breakpoint.c. And while at it I ran it on all files and fixed what I found. No behavior changes intended, just indentation and addition / removal of curly braces. gdb/ChangeLog: * Fix some indentation mistakes throughout. gdbserver/ChangeLog: * Fix some indentation mistakes throughout. Change-Id: Ia01990c26c38e83a243d8f33da1d494f16315c6e
Diffstat (limited to 'gdb/stack.c')
-rw-r--r--gdb/stack.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/stack.c b/gdb/stack.c
index 66a4610..a38fa4d 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -1005,11 +1005,11 @@ print_pc (struct ui_out *uiout, struct gdbarch *gdbarch, frame_info *frame,
std::string flags = gdbarch_get_pc_address_flags (gdbarch, frame, pc);
if (!flags.empty ())
- {
- uiout->text (" [");
- uiout->field_string ("addr_flags", flags);
- uiout->text ("]");
- }
+ {
+ uiout->text (" [");
+ uiout->field_string ("addr_flags", flags);
+ uiout->text ("]");
+ }
}
/* See stack.h. */
@@ -1927,7 +1927,7 @@ public:
struct frame_info *fid;
if (args == NULL)
- error (_("Missing address argument to view a frame"));
+ error (_("Missing address argument to view a frame"));
gdb_argv argv (args);