diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/ada-lang.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7149bbf..cf0b129 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-03-07 Andreas Schwab <schwab@linux-m68k.org> + + * ada-lang.c (compare_names): Call is_name_suffix with string1 + instead of string2. + 2011-03-07 Tom Tromey <tromey@redhat.com> * xcoffread.c (xcoff_sym_fns): Update. diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 3c24b4c..ed51ab0 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -4757,7 +4757,7 @@ compare_names (const char *string1, const char *string2) case '_': if (*string2 == '\0') { - if (is_name_suffix (string2)) + if (is_name_suffix (string1)) return 0; else return -1; |