aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2012-05-15 14:33:31 +0000
committerJoel Brobecker <brobecker@gnat.com>2012-05-15 14:33:31 +0000
commitd634f2de8fedbe4bfa79b24d71c0f29515412d48 (patch)
tree249b74fe578db7799b6d38b8bbdb946b85718dc3 /gdb
parent54115cd45b690ab1a320e98fd37842364cd22158 (diff)
downloadgdb-d634f2de8fedbe4bfa79b24d71c0f29515412d48.zip
gdb-d634f2de8fedbe4bfa79b24d71c0f29515412d48.tar.gz
gdb-d634f2de8fedbe4bfa79b24d71c0f29515412d48.tar.bz2
Minor style fixes in breakpoint.c:find_condition_and_thread
Mostly removing trailing spaces at end of lines, and also adding an empty line after the function's documentation. gdb/ChangeLog: * breakpoint.c (find_condition_and_thread): Minor reformatting.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/breakpoint.c14
2 files changed, 11 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9cd6ddb..1611160 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2012-05-15 Joel Brobecker <brobecker@adacore.com>
+
+ * breakpoint.c (find_condition_and_thread): Minor reformatting.
+
2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
* NEWS (show auto-load scripts-directory): Add forgotten command.
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index b060e74..d4ce038 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -8875,8 +8875,9 @@ check_fast_tracepoint_sals (struct gdbarch *gdbarch,
PC identifies the context at which the condition should be parsed.
If no condition is found, *COND_STRING is set to NULL.
If no thread is found, *THREAD is set to -1. */
-static void
-find_condition_and_thread (char *tok, CORE_ADDR pc,
+
+static void
+find_condition_and_thread (char *tok, CORE_ADDR pc,
char **cond_string, int *thread, int *task,
char **rest)
{
@@ -8898,9 +8899,9 @@ find_condition_and_thread (char *tok, CORE_ADDR pc,
}
end_tok = skip_to_space (tok);
-
+
toklen = end_tok - tok;
-
+
if (toklen >= 1 && strncmp (tok, "if", toklen) == 0)
{
struct expression *expr;
@@ -8909,13 +8910,12 @@ find_condition_and_thread (char *tok, CORE_ADDR pc,
expr = parse_exp_1 (&tok, block_for_pc (pc), 0);
xfree (expr);
cond_end = tok;
- *cond_string = savestring (cond_start,
- cond_end - cond_start);
+ *cond_string = savestring (cond_start, cond_end - cond_start);
}
else if (toklen >= 1 && strncmp (tok, "thread", toklen) == 0)
{
char *tmptok;
-
+
tok = end_tok + 1;
tmptok = tok;
*thread = strtol (tok, &tok, 0);