diff options
author | Bob Rossi <bob@brasko.net> | 2004-06-10 20:05:45 +0000 |
---|---|---|
committer | Bob Rossi <bob@brasko.net> | 2004-06-10 20:05:45 +0000 |
commit | 57c22c6ce1e294fcec9653c0cf2c37eb77225fe6 (patch) | |
tree | 1cf1db59680a0f24ebb22438fa5ef981bf8d8c74 /gdb/dbxread.c | |
parent | 239ae8c7556347fead17ce5caef2e9a441e89e05 (diff) | |
download | gdb-57c22c6ce1e294fcec9653c0cf2c37eb77225fe6.zip gdb-57c22c6ce1e294fcec9653c0cf2c37eb77225fe6.tar.gz gdb-57c22c6ce1e294fcec9653c0cf2c37eb77225fe6.tar.bz2 |
Add the -file-list-exec-source-files command to MI.
Diffstat (limited to 'gdb/dbxread.c')
-rw-r--r-- | gdb/dbxread.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gdb/dbxread.c b/gdb/dbxread.c index c71b0c8..a505c77 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -1457,6 +1457,7 @@ read_dbx_symtab (struct objfile *objfile) static int prev_so_symnum = -10; static int first_so_symnum; char *p; + static char *dirname_nso; int prev_textlow_not_set; valu = nlist.n_value + ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile)); @@ -1514,18 +1515,27 @@ read_dbx_symtab (struct objfile *objfile) p = strrchr (namestring, '/'); if (p && *(p + 1) == '\000') - continue; /* Simply ignore directory name SOs */ + { + /* Save the directory name SOs locally, then save it into + the psymtab when it's created below. */ + dirname_nso = namestring; + continue; + } /* Some other compilers (C++ ones in particular) emit useless SOs for non-existant .c files. We ignore all subsequent SOs that immediately follow the first. */ if (!pst) + { pst = start_psymtab (objfile, namestring, valu, first_so_symnum * symbol_size, objfile->global_psymbols.next, objfile->static_psymbols.next); + pst->dirname = dirname_nso; + dirname_nso = NULL; + } continue; } |