aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>1995-11-28 23:45:17 +0000
committerDavid Edelsohn <dje.gcc@gmail.com>1995-11-28 23:45:17 +0000
commit4588619966469ca01cda47a27a0adb1debbf46a1 (patch)
treed7e22a98a1bff932d174f486cb06f8a461789d77
parent4f0ad91b9b7e87e9eb207e6d4dc89a8532bfb46c (diff)
downloadgdb-4588619966469ca01cda47a27a0adb1debbf46a1.zip
gdb-4588619966469ca01cda47a27a0adb1debbf46a1.tar.gz
gdb-4588619966469ca01cda47a27a0adb1debbf46a1.tar.bz2
* dbxread.c (dbx_symfile_read): Set block_address_function_relative
for `pe' format files.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/dbxread.c7
2 files changed, 7 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9640b9d..33c8c6b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+Tue Nov 28 15:25:28 1995 Doug Evans <dje@canuck.cygnus.com>
+
+ * dbxread.c (dbx_symfile_read): Set block_address_function_relative
+ for `pe' format files.
+
Tue Nov 28 11:17:47 1995 Fred Fish <fnf@cygnus.com>
* magic.h: Renamed to gmagic.h to avoid <magic.h> conflict.
diff --git a/gdb/dbxread.c b/gdb/dbxread.c
index 97c3d3c..f6714ea 100644
--- a/gdb/dbxread.c
+++ b/gdb/dbxread.c
@@ -16,7 +16,7 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
/* This module provides three functions: dbx_symfile_init,
which initializes to read a symbol file; dbx_new_init, which
@@ -65,10 +65,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "aout/aout64.h"
#include "aout/stab_gnu.h" /* We always use GNU stabs, not native, now */
-#if !defined (SEEK_SET)
-#define SEEK_SET 0
-#define SEEK_CUR 1
-#endif
/* We put a pointer to this structure in the read_symtab_private field
of the psymtab. */
@@ -546,6 +542,7 @@ dbx_symfile_read (objfile, section_offsets, mainline)
((0 == strncmp (bfd_get_target (objfile->obfd), "elf", 3))
|| (0 == strncmp (bfd_get_target (objfile->obfd), "som", 3))
|| (0 == strncmp (bfd_get_target (objfile->obfd), "coff", 4))
+ || (0 == strncmp (bfd_get_target (objfile->obfd), "pe", 2))
|| (0 == strncmp (bfd_get_target (objfile->obfd), "nlm", 3)));
sym_bfd = objfile->obfd;