diff options
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/objc-lang.c | 10 |
2 files changed, 9 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7261b9a..c3eb14f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2011-03-07 Joel Brobecker <brobecker@adacore.com> + * objc-lang.c (selectors_info): Minor reformatting. + +2011-03-07 Joel Brobecker <brobecker@adacore.com> + * ada-lang.c (compare_names): Add FALLTHROUGH comment. 2011-03-07 Joel Brobecker <brobecker@adacore.com> diff --git a/gdb/objc-lang.c b/gdb/objc-lang.c index 280751f..90b881f 100644 --- a/gdb/objc-lang.c +++ b/gdb/objc-lang.c @@ -743,19 +743,19 @@ selectors_info (char *regexp, int from_tty) { QUIT; name = SYMBOL_NATURAL_NAME (msymbol); - if (name && - (name[0] == '-' || name[0] == '+') && - name[1] == '[') /* Got a method name. */ + if (name + && (name[0] == '-' || name[0] == '+') + && name[1] == '[') /* Got a method name. */ { /* Filter for class/instance methods. */ if (plusminus && name[0] != plusminus) continue; /* Find selector part. */ - name = (char *) strchr(name+2, ' '); + name = (char *) strchr (name+2, ' '); if (regexp == NULL || re_exec(++name) != 0) { char *mystart = name; - char *myend = (char *) strchr(mystart, ']'); + char *myend = (char *) strchr (mystart, ']'); if (myend && (myend - mystart > maxlen)) maxlen = myend - mystart; /* Get longest selector. */ |