aboutsummaryrefslogtreecommitdiff
path: root/gdb/xcoffread.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-09-01 21:15:27 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-09-01 21:15:27 +0000
commitc438b3af2a58c099512730b460c9298149548de6 (patch)
treebc31f63bdeb179b91e5e9f4d1f32e22bc8e418fd /gdb/xcoffread.c
parentade40d3153e344521d48bddf744bc2b8a1792d06 (diff)
downloadgdb-c438b3af2a58c099512730b460c9298149548de6.zip
gdb-c438b3af2a58c099512730b460c9298149548de6.tar.gz
gdb-c438b3af2a58c099512730b460c9298149548de6.tar.bz2
* symtab.h (struct linetable), xcoffread.c (arrange_linetable):
Revise comments re linetable sorting. * buildsym.c (compare_line_numbers): Sort by pc, not by line. * coffread.c: Tell end_symtab to sort the line table. * 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". * buildsym.c (end_symtab): Don't realloc subfile->linetable.
Diffstat (limited to 'gdb/xcoffread.c')
-rw-r--r--gdb/xcoffread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index 28948d5..4abaee9 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -295,6 +295,8 @@ compare_lte (lte1, lte2)
/* Give a line table with function entries are marked, arrange its functions
in assending order and strip off function entry markers and return it in
a newly created table. If the old one is good enough, return the old one. */
+/* FIXME: I think all this stuff can be replaced by just passing
+ sort_linevec = 1 to end_symtab. */
static struct linetable *
arrange_linetable (oldLineTb)