diff options
author | Stu Grossman <grossman@cygnus> | 1992-06-25 22:46:04 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1992-06-25 22:46:04 +0000 |
commit | cf79373a1098e4cdd77fec9861c4b09dffdd97b7 (patch) | |
tree | d6a0f6c25a57923ee6dfeaf2a9dc047043cef202 | |
parent | 50a11e493374d5c39c8e3855e0f574bb46ac19a2 (diff) | |
download | gdb-cf79373a1098e4cdd77fec9861c4b09dffdd97b7.zip gdb-cf79373a1098e4cdd77fec9861c4b09dffdd97b7.tar.gz gdb-cf79373a1098e4cdd77fec9861c4b09dffdd97b7.tar.bz2 |
* partial-stab.h (N_SO): Rearrange code a little so that all SO
stabs cause end_psymtab to be called.
-rw-r--r-- | gdb/ChangeLog | 3 | ||||
-rw-r--r-- | gdb/partial-stab.h | 20 |
2 files changed, 13 insertions, 10 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index be38bcf..ee2981d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ Thu Jun 25 15:18:42 1992 Stu Grossman (grossman at cygnus.com) + * partial-stab.h (N_SO): Rearrange code a little so that all SO + stabs cause end_psymtab to be called. + * buildsym.c (read_sun_builtin_type): Handle new FCS Sun CC compiler feature of putting 'c' into basic type descriptors for all forms of char. diff --git a/gdb/partial-stab.h b/gdb/partial-stab.h index c48141a..29c7716 100644 --- a/gdb/partial-stab.h +++ b/gdb/partial-stab.h @@ -204,6 +204,16 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ valu += addr; /* Relocate */ + if (pst) + { + END_PSYMTAB (pst, psymtab_include_list, includes_used, + symnum * symbol_size, valu, + dependency_list, dependencies_used); + pst = (struct partial_symtab *) 0; + includes_used = 0; + dependencies_used = 0; + } + /* Some compilers (including gcc) emit a pair of initial N_SOs. The first one is a directory name; the second the file name. If pst exists, is empty, and has a filename ending in '/', @@ -223,16 +233,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ continue; /* Ignore repeated SOs */ last_so_symnum = symnum; - if (pst) - { - END_PSYMTAB (pst, psymtab_include_list, includes_used, - symnum * symbol_size, valu, - dependency_list, dependencies_used); - pst = (struct partial_symtab *) 0; - includes_used = 0; - dependencies_used = 0; - } - past_first_source_file = 1; if (dir_so_symnum == symnum - 1) /* Was prev. SO a directory? */ |