diff options
Diffstat (limited to 'gdb/partial-stab.h')
-rw-r--r-- | gdb/partial-stab.h | 20 |
1 files changed, 10 insertions, 10 deletions
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? */ |