aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2011-03-07 18:29:13 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2011-03-07 18:29:13 +0000
commit052874e8a4698786ff07ce9d681275318905d1af (patch)
tree395365bbd0cc560322d7d45ebe776808b3f0627a /gdb/ada-lang.c
parent6bf58e63b731f1edfa66c6914117ad286736185c (diff)
downloadgdb-052874e8a4698786ff07ce9d681275318905d1af.zip
gdb-052874e8a4698786ff07ce9d681275318905d1af.tar.gz
gdb-052874e8a4698786ff07ce9d681275318905d1af.tar.bz2
* ada-lang.c (compare_names): Call is_name_suffix with string1
instead of string2.
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r--gdb/ada-lang.c2
1 files changed, 1 insertions, 1 deletions
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;