From 4588619966469ca01cda47a27a0adb1debbf46a1 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Tue, 28 Nov 1995 23:45:17 +0000 Subject: [PATCH] * dbxread.c (dbx_symfile_read): Set block_address_function_relative for `pe' format files. --- gdb/ChangeLog | 5 +++++ gdb/dbxread.c | 7 ++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9640b9dc281..33c8c6b1189 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Tue Nov 28 15:25:28 1995 Doug Evans + + * dbxread.c (dbx_symfile_read): Set block_address_function_relative + for `pe' format files. + Tue Nov 28 11:17:47 1995 Fred Fish * magic.h: Renamed to gmagic.h to avoid conflict. diff --git a/gdb/dbxread.c b/gdb/dbxread.c index 97c3d3cbed2..f6714ea4579 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; -- 2.30.2