aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-07-08 03:32:00 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-07-08 03:32:00 +0000
commit54023465250e1fb98fdb5bad7f8ebb0d95b55556 (patch)
tree85cd115aa89ff97d1e7071746f34a53e1d5638bc /gdb/symtab.h
parentcb747ec55b1bde41cab4fd3cf052d15cc0408398 (diff)
downloadgdb-54023465250e1fb98fdb5bad7f8ebb0d95b55556.zip
gdb-54023465250e1fb98fdb5bad7f8ebb0d95b55556.tar.gz
gdb-54023465250e1fb98fdb5bad7f8ebb0d95b55556.tar.bz2
* infcmd.c (run_stack_dummy): New argument name.
Change error message in (another) attempt to make it comprehensible. * valops.c (call_function_by_hand): Pass name to run_stack_dummy. * symtab.h: Declare demangle and asm_demangle since macros use them.
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r--gdb/symtab.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h
index de0d110..489e4d9 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -214,6 +214,10 @@ extern int demangle; /* We reference it, so go ahead and declare it. */
? SYMBOL_DEMANGLED_NAME (symbol) \
: SYMBOL_NAME (symbol))
+/* From utils.c. */
+extern int demangle;
+extern int asm_demangle;
+
/* Macro that tests a symbol for a match against a specified name string.
First test the unencoded name, then looks for and test a C++ encoded
name if it exists. Note that whitespace is ignored while attempting to
@@ -372,7 +376,8 @@ struct block
int nsyms;
- /* The symbols. */
+ /* The symbols. If some of them are arguments, then they must be
+ in the order in which we would like to print them. */
struct symbol *sym[1];
};
@@ -385,9 +390,12 @@ struct block
#define BLOCK_SUPERBLOCK(bl) (bl)->superblock
#define BLOCK_GCC_COMPILED(bl) (bl)->gcc_compile_flag
-/* Nonzero if symbols of block BL should be sorted alphabetically. */
+/* Nonzero if symbols of block BL should be sorted alphabetically.
+ Don't sort a block which corresponds to a function. If we did the
+ sorting would have to preserve the order of the symbols for the
+ arguments. */
-#define BLOCK_SHOULD_SORT(bl) ((bl)->nsyms >= 40)
+#define BLOCK_SHOULD_SORT(bl) ((bl)->nsyms >= 40 && BLOCK_FUNCTION (bl) == NULL)
/* Represent one symbol name; a variable, constant, function or typedef. */