aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1999-04-26 18:34:20 +0000
committerStan Shebs <shebs@codesourcery.com>1999-04-26 18:34:20 +0000
commit7a292a7adf506b866905b06b3024c0fd411c4583 (patch)
tree5b208bb48269b8a82d5c3a5f19c87b45a62a22f4 /gdb/symtab.c
parent1996fae84682e8ddd146215dd2959ad1ec924c09 (diff)
downloadgdb-7a292a7adf506b866905b06b3024c0fd411c4583.zip
gdb-7a292a7adf506b866905b06b3024c0fd411c4583.tar.gz
gdb-7a292a7adf506b866905b06b3024c0fd411c4583.tar.bz2
import gdb-19990422 snapshot
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index fb3c8f7..5c4af53 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -2852,6 +2852,14 @@ decode_line_1 (argptr, funfirstline, default_symtab, default_line, canonical)
while (*p == ' ' || *p == '\t') p++;
*argptr = p;
}
+#if 0
+ /* No one really seems to know why this was added. It certainly
+ breaks the command line, though, whenever the passed
+ name is of the form ClassName::Method. This bit of code
+ singles out the class name, and if funfirstline is set (for
+ example, you are setting a breakpoint at this function),
+ you get an error. This did not occur with earlier
+ verions, so I am ifdef'ing this out. 3/29/99 */
else {
/* Check if what we have till now is a symbol name */
@@ -2880,6 +2888,7 @@ decode_line_1 (argptr, funfirstline, default_symtab, default_line, canonical)
/* Otherwise fall out from here and go to file/line spec
processing, etc. */
}
+#endif
/* S is specified file's symtab, or 0 if no file specified.
arg no longer contains the file name. */
@@ -4374,6 +4383,16 @@ make_symbol_overload_list (fsym)
sym_return_val = (struct symbol **) xmalloc ((sym_return_val_size + 1) * sizeof (struct symbol *));
sym_return_val[0] = NULL;
+ /* Comment and #if 0 from Rajiv Mirani <mirani@cup.hp.com>.
+ However, leaving #if 0's around is uncool. We need to figure out
+ what this is really trying to do, decide whether we want that,
+ and either fix it or delete it. --- Jim Blandy, Mar 1999 */
+
+ /* ??? RM: What in hell is this? overload_list_add_symbol expects a symbol,
+ * not a partial_symbol or a minimal_symbol. And it looks at the type field
+ * of the symbol, and we don't know the type of minimal and partial symbols
+ */
+#if 0
/* Look through the partial symtabs for all symbols which begin
by matching OLOAD_NAME. Add each one that you find to the list. */
@@ -4413,6 +4432,7 @@ make_symbol_overload_list (fsym)
QUIT;
overload_list_add_symbol (msymbol, oload_name);
}
+#endif
/* Search upwards from currently selected frame (so that we can
complete on local vars. */