mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-11 14:14:23 +00:00
2010-08-11 Brad Roberts <braddr@puremagic.com>
* d-lang.c (extract_identifiers): Handle multiple digits.
This commit is contained in:
parent
39d7b0e292
commit
62183e15d8
@ -1,3 +1,7 @@
|
||||
2010-08-11 Brad Roberts <braddr@puremagic.com>
|
||||
|
||||
* d-lang.c (extract_identifiers): Handle multiple digits.
|
||||
|
||||
2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
Code cleanup.
|
||||
|
@ -37,9 +37,11 @@ extract_identifiers (const char *mangled_str, struct obstack *tempbuf)
|
||||
|
||||
while (isdigit (*mangled_str))
|
||||
{
|
||||
i = strtol (mangled_str, NULL, 10);
|
||||
mangled_str++;
|
||||
if (i <= 0 && strlen (mangled_str) < i)
|
||||
char *end_ptr;
|
||||
|
||||
i = strtol (mangled_str, &end_ptr, 10);
|
||||
mangled_str = end_ptr;
|
||||
if (i <= 0 || strlen (mangled_str) < i)
|
||||
return 0;
|
||||
obstack_grow (tempbuf, mangled_str, i);
|
||||
mangled_str += i;
|
||||
|
Loading…
Reference in New Issue
Block a user