aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2013-06-20 06:49:06 +0000
committerYao Qi <yao@codesourcery.com>2013-06-20 06:49:06 +0000
commit0878d0fa8e7277461d5c524f7ee689e8f11f7750 (patch)
tree4db24163451814857d32d70d4fed72588d2759b6
parent023fa29bf44892bf841e5b2ad5618fb25d1cf0e3 (diff)
downloadgdb-0878d0fa8e7277461d5c524f7ee689e8f11f7750.zip
gdb-0878d0fa8e7277461d5c524f7ee689e8f11f7750.tar.gz
gdb-0878d0fa8e7277461d5c524f7ee689e8f11f7750.tar.bz2
gdb/
* breakpoint.c (create_breakpoint): Fix code indentation.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/breakpoint.c58
2 files changed, 33 insertions, 29 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index fb27f4c..0810369 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2013-06-20 Yao Qi <yao@codesourcery.com>
+ * breakpoint.c (create_breakpoint): Fix code indentation.
+
+2013-06-20 Yao Qi <yao@codesourcery.com>
+
* breakpoint.c (create_breakpoints_sal_default): Remove
parameter 'lsal'. Update declaration.
(bkpt_create_breakpoints_sal): Caller update.
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index b86484a..0ff5a4e 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -9625,38 +9625,38 @@ create_breakpoint (struct gdbarch *gdbarch,
if (parse_arg)
{
- char *rest;
- /* Here we only parse 'arg' to separate condition
- from thread number, so parsing in context of first
- sal is OK. When setting the breakpoint we'll
- re-parse it in context of each sal. */
-
- find_condition_and_thread (arg, lsal->sals.sals[0].pc, &cond_string,
- &thread, &task, &rest);
- if (cond_string)
- make_cleanup (xfree, cond_string);
- if (rest)
- make_cleanup (xfree, rest);
- if (rest)
- extra_string = rest;
+ char *rest;
+ /* Here we only parse 'arg' to separate condition
+ from thread number, so parsing in context of first
+ sal is OK. When setting the breakpoint we'll
+ re-parse it in context of each sal. */
+
+ find_condition_and_thread (arg, lsal->sals.sals[0].pc, &cond_string,
+ &thread, &task, &rest);
+ if (cond_string)
+ make_cleanup (xfree, cond_string);
+ if (rest)
+ make_cleanup (xfree, rest);
+ if (rest)
+ extra_string = rest;
}
else
{
- if (*arg != '\0')
- error (_("Garbage '%s' at end of location"), arg);
-
- /* Create a private copy of condition string. */
- if (cond_string)
- {
- cond_string = xstrdup (cond_string);
- make_cleanup (xfree, cond_string);
- }
- /* Create a private copy of any extra string. */
- if (extra_string)
- {
- extra_string = xstrdup (extra_string);
- make_cleanup (xfree, extra_string);
- }
+ if (*arg != '\0')
+ error (_("Garbage '%s' at end of location"), arg);
+
+ /* Create a private copy of condition string. */
+ if (cond_string)
+ {
+ cond_string = xstrdup (cond_string);
+ make_cleanup (xfree, cond_string);
+ }
+ /* Create a private copy of any extra string. */
+ if (extra_string)
+ {
+ extra_string = xstrdup (extra_string);
+ make_cleanup (xfree, extra_string);
+ }
}
ops->create_breakpoints_sal (gdbarch, &canonical, lsal,