aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-09-01 23:43:07 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-09-01 23:43:07 +0000
commit6b510f8feb52a4702b0b260fc7065645c539dcb6 (patch)
tree318a90019cd791e886f9d40b54e89f3faa2ba72e
parent3ffb74b9ab078a2dc51cd1bddcf99b5c13894653 (diff)
downloadgdb-6b510f8feb52a4702b0b260fc7065645c539dcb6.zip
gdb-6b510f8feb52a4702b0b260fc7065645c539dcb6.tar.gz
gdb-6b510f8feb52a4702b0b260fc7065645c539dcb6.tar.bz2
* coffread.c: Re-work a lot of the coff-specific stuff to use stuff
in buildsym.c. This includes coff_finish_block, coff_context_stack, coff_local_symbols, coff_file_symbols, coff_global_symbols, coff_end_symtab and coff_add_symbol_to_list. (read_enum_type): Deal with it now that we have a "struct pending" not a "struct coff_pending".
-rw-r--r--gdb/coffread.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/coffread.c b/gdb/coffread.c
index 7c714c2..7668682 100644
--- a/gdb/coffread.c
+++ b/gdb/coffread.c
@@ -347,8 +347,9 @@ static void
coff_start_symtab ()
{
start_symtab (
- /* We fill in the filename later. But start_symtab
- expects something we can later free() (in end_symtab).
+ /* We fill in the filename later. start_symtab
+ puts this pointer into last_source file and in
+ coff_end_symtab we assume we can free() it.
FIXME: leaks memory. */
savestring ("", 0),
/* We never know the directory name for COFF. */