aboutsummaryrefslogtreecommitdiff
path: root/gdb/tracepoint.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/tracepoint.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/tracepoint.c')
-rw-r--r--gdb/tracepoint.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index cb8b4cb..f88968a 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -2267,7 +2267,7 @@ tfind_command_1 (const char *args, int from_tty)
{ /* TFIND with no args means find NEXT trace frame. */
if (traceframe_number == -1)
frameno = 0; /* "next" is first one. */
- else
+ else
frameno = traceframe_number + 1;
}
else if (0 == strcmp (args, "-"))
@@ -2408,11 +2408,13 @@ tfind_line_command (const char *args, int from_tty)
}
}
else
- /* Is there any case in which we get here, and have an address
- which the user would want to see? If we have debugging
- symbols and no line numbers? */
- error (_("Line number %d is out of range for \"%s\"."),
- sal.line, symtab_to_filename_for_display (sal.symtab));
+ {
+ /* Is there any case in which we get here, and have an address
+ which the user would want to see? If we have debugging
+ symbols and no line numbers? */
+ error (_("Line number %d is out of range for \"%s\"."),
+ sal.line, symtab_to_filename_for_display (sal.symtab));
+ }
/* Find within range of stated line. */
if (args && *args)