aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.c
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1994-08-19 20:44:18 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1994-08-19 20:44:18 +0000
commitf3806e3b6ceead276a3acba85ff944fde6668e39 (patch)
tree72ce83c769f8c1772c6044e540e2c78567abc0e4 /gdb/stabsread.c
parent8e3641719ba57f7b6e88330c12a1d59628e7efa4 (diff)
downloadgdb-f3806e3b6ceead276a3acba85ff944fde6668e39.zip
gdb-f3806e3b6ceead276a3acba85ff944fde6668e39.tar.gz
gdb-f3806e3b6ceead276a3acba85ff944fde6668e39.tar.bz2
* c-typeprint.c (c_print_type): Assume demangled arguments
if a '(' is found in varstring, Looking for ')' at the end of varstring did fail with demangled const member functions, which have a trailing `const'. * remote.c (get_offsets, putpkt): Change to `char' buffers, to avoid errors when compiling with DEC c89. (remote_wait): Cast to `char *' before passing buffer to fputs_filtered, to avoid errors when compiling with DEC c89. (remote_wait): Do not return inferior_pid by default, this statement is never reached, which causes warnings from some compilers. * stabsread.c (scan_file_globals): Ignore static minimal symbols. * symfile.c (load_command): If called with no argument, try to get the filename from the executable file. (generic_load): Remove check for NULL filename, it is done in load_command now.
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r--gdb/stabsread.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index 58778e0..fa5c31f 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -3818,6 +3818,15 @@ scan_file_globals (objfile)
{
QUIT;
+ /* Skip static symbols. */
+ switch (MSYMBOL_TYPE (msymbol))
+ {
+ case mst_file_text:
+ case mst_file_data:
+ case mst_file_bss:
+ continue;
+ }
+
prev = NULL;
/* Get the hash index and check all the symbols