aboutsummaryrefslogtreecommitdiff
path: root/gdb/valops.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/valops.c')
-rw-r--r--gdb/valops.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index e6fb6c8..8be9ce6 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -35,6 +35,7 @@
#include "cp-abi.h"
#include "block.h"
#include "infcall.h"
+#include "dictionary.h"
#include <errno.h>
#include "gdb_string.h"
@@ -2475,7 +2476,6 @@ value_of_local (const char *name, int complain)
{
struct symbol *func, *sym;
struct block *b;
- int i;
struct value * ret;
if (deprecated_selected_frame == 0)
@@ -2496,8 +2496,7 @@ value_of_local (const char *name, int complain)
}
b = SYMBOL_BLOCK_VALUE (func);
- i = BLOCK_NSYMS (b);
- if (i <= 0)
+ if (dict_empty (BLOCK_DICT (b)))
{
if (complain)
error ("no args, no `%s'", name);