diff options
author | David Carlton <carlton@bactrian.org> | 2004-03-05 17:32:25 +0000 |
---|---|---|
committer | David Carlton <carlton@bactrian.org> | 2004-03-05 17:32:25 +0000 |
commit | 1198ecbe719975c4549f5cae42f1150e6f75a950 (patch) | |
tree | 13e0f1a14b80e5c26e9784eab568ecb7fc3e4d98 /gdb/cp-namespace.c | |
parent | bae25f1962ed5d93828900ab046d4f0de6898db9 (diff) | |
download | gdb-1198ecbe719975c4549f5cae42f1150e6f75a950.zip gdb-1198ecbe719975c4549f5cae42f1150e6f75a950.tar.gz gdb-1198ecbe719975c4549f5cae42f1150e6f75a950.tar.bz2 |
2004-03-05 David Carlton <carlton@kealia.com>
* cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
bug.
2004-03-05 David Carlton <carlton@kealia.com>
* gdb.cp/rtti.exp: Add 'print *obj3' test.
* gdb.cp/rtti.h: Update copyright.
(namespace n2::n3): New.
* gdb.cp/rtti1.cc: (refer_to (n2::n3::C3 *)): New.
(n2::n3::func3): New.
(main): Call n2::n3::func3.
* gdb.cp/rtti2.cc: Update copyright.
(n2::create3): New.
Diffstat (limited to 'gdb/cp-namespace.c')
-rw-r--r-- | gdb/cp-namespace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c index a731352..910289f 100644 --- a/gdb/cp-namespace.c +++ b/gdb/cp-namespace.c @@ -603,7 +603,7 @@ static struct type * cp_lookup_transparent_type_loop (const char *name, const char *scope, int length) { - int scope_length = cp_find_first_component (scope + length); + int scope_length = length + cp_find_first_component (scope + length); char *full_name; /* If the current scope is followed by "::", look in the next |