Debugger: Call the GCC2 get_next_argument directly.

This codepath is only hit when we are using the GCC2 demangler,
so we should not use get_next_argument which tries to autodetect
what kind of symbol this is.
This commit is contained in:
Augustin Cavalier 2019-04-03 10:42:35 -04:00
parent eae1e95256
commit 95587710d1

View File

@ -39,7 +39,7 @@ Demangler::Demangle(const BString& mangledName)
int32 type;
int32 i = 0;
uint32 cookie = 0;
while (get_next_argument(&cookie, mangledName.String(), buffer,
while (get_next_argument_gcc2(&cookie, mangledName.String(), buffer,
sizeof(buffer), &type, &length) == B_OK) {
if (i++ > 0)
demangledName << ", ";