* config/i386/*aix*, i386aix-nat.c: New files.
* configure.in: Use them. * alldeps.mak: List them. * coffread.c (decode_base_type): Deal with anonymous enum type. * i387-tdep.c (print_387_status_word): Add comment re "top". * i386-tdep.c [I386_AIX_TARGET] (i386_extract_return_value): New func. * dbxread.c: Use SEEK_SET and SEEK_CUR, not L_*. Define them if and only if not defined by a header file. * mipsread.c: Don't define L_SET or L_INCR.
This commit is contained in:
parent
2b63dbfefd
commit
2c7ab4ca35
|
@ -115,6 +115,7 @@ hppah-nat.c
|
||||||
i386-pinsn.c
|
i386-pinsn.c
|
||||||
i386-stub.c
|
i386-stub.c
|
||||||
i386-tdep.c
|
i386-tdep.c
|
||||||
|
i386aix-nat.c
|
||||||
i386b-nat.c
|
i386b-nat.c
|
||||||
i386mach-nat.c
|
i386mach-nat.c
|
||||||
i386v-nat.c
|
i386v-nat.c
|
||||||
|
|
|
@ -1,7 +1,14 @@
|
||||||
Mon Jun 21 16:09:46 1993 Jim Kingdon (kingdon@cygnus.com)
|
Mon Jun 21 16:09:46 1993 Jim Kingdon (kingdon@cygnus.com)
|
||||||
|
|
||||||
* config/i386/*aix*: New files.
|
* config/i386/*aix*, i386aix-nat.c: New files.
|
||||||
|
* configure.in: Use them.
|
||||||
* alldeps.mak: List them.
|
* alldeps.mak: List them.
|
||||||
|
* coffread.c (decode_base_type): Deal with anonymous enum type.
|
||||||
|
* i387-tdep.c (print_387_status_word): Add comment re "top".
|
||||||
|
* i386-tdep.c [I386_AIX_TARGET] (i386_extract_return_value): New func.
|
||||||
|
* dbxread.c: Use SEEK_SET and SEEK_CUR, not L_*. Define them if and
|
||||||
|
only if not defined by a header file.
|
||||||
|
* mipsread.c: Don't define L_SET or L_INCR.
|
||||||
|
|
||||||
Mon Jun 21 15:10:07 1993 Fred Fish (fnf@cygnus.com)
|
Mon Jun 21 15:10:07 1993 Fred Fish (fnf@cygnus.com)
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,7 @@ ${srcdir}/i386-tdep.c\
|
||||||
${srcdir}/i386b-nat.c\
|
${srcdir}/i386b-nat.c\
|
||||||
${srcdir}/i386mach-nat.c\
|
${srcdir}/i386mach-nat.c\
|
||||||
${srcdir}/i386v-nat.c\
|
${srcdir}/i386v-nat.c\
|
||||||
|
${srcdir}/i386aix-nat.c\
|
||||||
${srcdir}/i386v4-nat.c\
|
${srcdir}/i386v4-nat.c\
|
||||||
${srcdir}/i387-tdep.c\
|
${srcdir}/i387-tdep.c\
|
||||||
${srcdir}/i960-pinsn.c\
|
${srcdir}/i960-pinsn.c\
|
||||||
|
|
|
@ -37,6 +37,7 @@ hppa*-hp-hpux*) gdb_host=hppahpux ;;
|
||||||
i[34]86-ncr-*) gdb_host=ncr3000 ;;
|
i[34]86-ncr-*) gdb_host=ncr3000 ;;
|
||||||
i[34]86-sequent-*) gdb_host=symmetry ;;
|
i[34]86-sequent-*) gdb_host=symmetry ;;
|
||||||
|
|
||||||
|
i[34]86-*-aix*) gdb_host=i386aix ;;
|
||||||
i[34]86-*-bsd*) gdb_host=i386bsd ;;
|
i[34]86-*-bsd*) gdb_host=i386bsd ;;
|
||||||
i[34]86-*-go32) gdb_host=go32 ;;
|
i[34]86-*-go32) gdb_host=go32 ;;
|
||||||
i[34]86-*-linux) gdb_host=linux ;;
|
i[34]86-*-linux) gdb_host=linux ;;
|
||||||
|
@ -168,6 +169,7 @@ i[34]86-*-aout) gdb_target=i386aout ;;
|
||||||
i[34]86-*-coff) gdb_target=i386v ;;
|
i[34]86-*-coff) gdb_target=i386v ;;
|
||||||
i[34]86-*-elf) gdb_target=i386v ;;
|
i[34]86-*-elf) gdb_target=i386v ;;
|
||||||
|
|
||||||
|
i[34]86-*-aix*) gdb_target=i386aix ;;
|
||||||
i[34]86-*-bsd*) gdb_target=i386bsd ;;
|
i[34]86-*-bsd*) gdb_target=i386bsd ;;
|
||||||
i[34]86-*-go32) gdb_target=i386aout ;;
|
i[34]86-*-go32) gdb_target=i386aout ;;
|
||||||
i[34]86-*-lynxos*) gdb_target=i386lynx
|
i[34]86-*-lynxos*) gdb_target=i386lynx
|
||||||
|
|
|
@ -38,8 +38,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||||
#if defined(USG) || defined(__CYGNUSCLIB__)
|
#if defined(USG) || defined(__CYGNUSCLIB__)
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#define L_SET 0
|
|
||||||
#define L_INCR 1
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <obstack.h>
|
#include <obstack.h>
|
||||||
|
@ -68,6 +66,11 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||||
#include "aout/aout64.h"
|
#include "aout/aout64.h"
|
||||||
#include "aout/stab_gnu.h" /* We always use GNU stabs, not native, now */
|
#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
|
||||||
|
|
||||||
/* Each partial symbol table entry contains a pointer to private data for the
|
/* Each partial symbol table entry contains a pointer to private data for the
|
||||||
read_symtab() function to use when expanding a partial symbol table entry
|
read_symtab() function to use when expanding a partial symbol table entry
|
||||||
to a full symbol table entry.
|
to a full symbol table entry.
|
||||||
|
@ -455,7 +458,7 @@ dbx_symfile_read (objfile, section_offsets, mainline)
|
||||||
int val;
|
int val;
|
||||||
|
|
||||||
sym_bfd = objfile->obfd;
|
sym_bfd = objfile->obfd;
|
||||||
val = bfd_seek (objfile->obfd, DBX_SYMTAB_OFFSET (objfile), L_SET);
|
val = bfd_seek (objfile->obfd, DBX_SYMTAB_OFFSET (objfile), SEEK_SET);
|
||||||
if (val < 0)
|
if (val < 0)
|
||||||
perror_with_name (objfile->name);
|
perror_with_name (objfile->name);
|
||||||
|
|
||||||
|
@ -572,7 +575,7 @@ dbx_symfile_init (objfile)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
val = bfd_seek (sym_bfd, STRING_TABLE_OFFSET, L_SET);
|
val = bfd_seek (sym_bfd, STRING_TABLE_OFFSET, SEEK_SET);
|
||||||
if (val < 0)
|
if (val < 0)
|
||||||
perror_with_name (name);
|
perror_with_name (name);
|
||||||
|
|
||||||
|
@ -612,7 +615,7 @@ dbx_symfile_init (objfile)
|
||||||
|
|
||||||
/* Now read in the string table in one big gulp. */
|
/* Now read in the string table in one big gulp. */
|
||||||
|
|
||||||
val = bfd_seek (sym_bfd, STRING_TABLE_OFFSET, L_SET);
|
val = bfd_seek (sym_bfd, STRING_TABLE_OFFSET, SEEK_SET);
|
||||||
if (val < 0)
|
if (val < 0)
|
||||||
perror_with_name (name);
|
perror_with_name (name);
|
||||||
val = bfd_read (DBX_STRINGTAB (objfile), DBX_STRINGTAB_SIZE (objfile), 1,
|
val = bfd_read (DBX_STRINGTAB (objfile), DBX_STRINGTAB_SIZE (objfile), 1,
|
||||||
|
@ -1232,7 +1235,7 @@ dbx_psymtab_to_symtab_1 (pst)
|
||||||
symbol_size = SYMBOL_SIZE (pst);
|
symbol_size = SYMBOL_SIZE (pst);
|
||||||
|
|
||||||
/* Read in this file's symbols */
|
/* Read in this file's symbols */
|
||||||
bfd_seek (pst->objfile->obfd, SYMBOL_OFFSET (pst), L_SET);
|
bfd_seek (pst->objfile->obfd, SYMBOL_OFFSET (pst), SEEK_SET);
|
||||||
read_ofile_symtab (pst);
|
read_ofile_symtab (pst);
|
||||||
sort_symtab_syms (pst->symtab);
|
sort_symtab_syms (pst->symtab);
|
||||||
|
|
||||||
|
@ -1331,7 +1334,7 @@ read_ofile_symtab (pst)
|
||||||
would slow down initial readin, so we look for it here instead. */
|
would slow down initial readin, so we look for it here instead. */
|
||||||
if (!processing_acc_compilation && sym_offset >= (int)symbol_size)
|
if (!processing_acc_compilation && sym_offset >= (int)symbol_size)
|
||||||
{
|
{
|
||||||
bfd_seek (symfile_bfd, sym_offset - symbol_size, L_INCR);
|
bfd_seek (symfile_bfd, sym_offset - symbol_size, SEEK_CUR);
|
||||||
fill_symbuf (abfd);
|
fill_symbuf (abfd);
|
||||||
bufp = &symbuf[symbuf_idx++];
|
bufp = &symbuf[symbuf_idx++];
|
||||||
SWAP_SYMBOL (bufp, abfd);
|
SWAP_SYMBOL (bufp, abfd);
|
||||||
|
@ -1363,7 +1366,7 @@ read_ofile_symtab (pst)
|
||||||
/* The N_SO starting this symtab is the first symbol, so we
|
/* The N_SO starting this symtab is the first symbol, so we
|
||||||
better not check the symbol before it. I'm not this can
|
better not check the symbol before it. I'm not this can
|
||||||
happen, but it doesn't hurt to check for it. */
|
happen, but it doesn't hurt to check for it. */
|
||||||
bfd_seek (symfile_bfd, sym_offset, L_INCR);
|
bfd_seek (symfile_bfd, sym_offset, SEEK_CUR);
|
||||||
processing_gcc_compilation = 0;
|
processing_gcc_compilation = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1990,7 +1993,7 @@ elfstab_build_psymtabs (objfile, section_offsets, mainline,
|
||||||
|
|
||||||
/* Now read in the string table in one big gulp. */
|
/* Now read in the string table in one big gulp. */
|
||||||
|
|
||||||
val = bfd_seek (sym_bfd, stabstroffset, L_SET);
|
val = bfd_seek (sym_bfd, stabstroffset, SEEK_SET);
|
||||||
if (val < 0)
|
if (val < 0)
|
||||||
perror_with_name (name);
|
perror_with_name (name);
|
||||||
val = bfd_read (DBX_STRINGTAB (objfile), stabstrsize, 1, sym_bfd);
|
val = bfd_read (DBX_STRINGTAB (objfile), stabstrsize, 1, sym_bfd);
|
||||||
|
|
|
@ -107,6 +107,9 @@ print_387_status_word (status)
|
||||||
(status & 0x0400) != 0,
|
(status & 0x0400) != 0,
|
||||||
(status & 0x0200) != 0,
|
(status & 0x0200) != 0,
|
||||||
(status & 0x0100) != 0);
|
(status & 0x0100) != 0);
|
||||||
|
|
||||||
|
/* FIXME: Someone claims this should be 7 - (status >> 11) & 7 for AIX.
|
||||||
|
What's the story? Is the following just wrong or are differing
|
||||||
|
notations in use? */
|
||||||
printf ("top %d\n", (status >> 11) & 7);
|
printf ("top %d\n", (status >> 11) & 7);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue