diff options
author | Nick Clifton <nickc@redhat.com> | 2012-03-30 12:51:07 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2012-03-30 12:51:07 +0000 |
commit | a9f1e697601956799661701007c289e16e20d9e8 (patch) | |
tree | cb29b8cad0fc250dcf5eb1596b48dfdc1e4cfa61 /binutils/stabs.c | |
parent | cb2105823858b91b93c6ef5e7b60b1243a44a48e (diff) | |
download | binutils-redhat-a9f1e697601956799661701007c289e16e20d9e8.tar.gz |
PR binutils/13925
* stabs.c (stab_demangle_v3_arglist): Cope with the demangler
returning an empty context for a function with no arguments.
Diffstat (limited to 'binutils/stabs.c')
-rw-r--r-- | binutils/stabs.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/binutils/stabs.c b/binutils/stabs.c index 9534d6616a..04c345252d 100644 --- a/binutils/stabs.c +++ b/binutils/stabs.c @@ -5169,6 +5169,11 @@ stab_demangle_v3_arglist (void *dhandle, struct stab_handle *info, return NULL; } + /* PR 13925: Cope if the demangler returns an empty + context for a function with no arguments. */ + if (dc->u.s_binary.left == NULL) + break; + arg = stab_demangle_v3_arg (dhandle, info, dc->u.s_binary.left, NULL, &varargs); if (arg == NULL) |