Allow GDB to read general-purpose registers from Linux S/390 core files.
This commit is contained in:
parent
b6af0555b5
commit
979f4a38ff
|
@ -1,3 +1,8 @@
|
||||||
|
2001-12-07 Jim Blandy <jimb@redhat.com>
|
||||||
|
|
||||||
|
* elf32-s390.c (elf32_s390_grok_prstatus): New function.
|
||||||
|
(elf_backend_grok_prstatus): Define.
|
||||||
|
|
||||||
2001-12-07 Jakub Jelinek <jakub@redhat.com>
|
2001-12-07 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
* elf32-sparc.c (elf32_sparc_relocate_section): Revert
|
* elf32-sparc.c (elf32_sparc_relocate_section): Revert
|
||||||
|
@ -161,7 +166,7 @@
|
||||||
* elflink.h (elf_bfd_discard_info): Skip if the input bfd isn't
|
* elflink.h (elf_bfd_discard_info): Skip if the input bfd isn't
|
||||||
ELF.
|
ELF.
|
||||||
|
|
||||||
Mon Nov 26 12:33:44 2001 Jeffrey A Law (law@cygnus.com)
|
2001-11-26 Jeffrey A Law (law@cygnus.com)
|
||||||
|
|
||||||
* stabs.c (_bfd_discard_section_stabs): Use PARAMS in function
|
* stabs.c (_bfd_discard_section_stabs): Use PARAMS in function
|
||||||
prototypes.
|
prototypes.
|
||||||
|
@ -383,7 +388,7 @@ Mon Nov 26 12:33:44 2001 Jeffrey A Law (law@cygnus.com)
|
||||||
* elf-strtab.c (_bfd_elf_strtab_finalize): Make first variable i
|
* elf-strtab.c (_bfd_elf_strtab_finalize): Make first variable i
|
||||||
size_t. Rename second i to j.
|
size_t. Rename second i to j.
|
||||||
|
|
||||||
Sat Nov 10 08:56:02 2001 Jeffrey A Law (law@cygnus.com)
|
2001-11-10 Jeffrey A Law (law@cygnus.com)
|
||||||
|
|
||||||
* binary.c: Include safe-ctype.h after bfd.h and sysdep.h.
|
* binary.c: Include safe-ctype.h after bfd.h and sysdep.h.
|
||||||
|
|
||||||
|
@ -2359,7 +2364,7 @@ Sat Nov 10 08:56:02 2001 Jeffrey A Law (law@cygnus.com)
|
||||||
* config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for
|
* config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for
|
||||||
aix4.3 and above.
|
aix4.3 and above.
|
||||||
|
|
||||||
Wed Aug 29 02:27:36 2001 J"orn Rennecke <amylaar@redhat.com>
|
2001-08-29 J"orn Rennecke <amylaar@redhat.com>
|
||||||
|
|
||||||
* Makefile.am (elf32-h8300.lo): New target.
|
* Makefile.am (elf32-h8300.lo): New target.
|
||||||
* config.bfd (h8300*-*-elf): New case.
|
* config.bfd (h8300*-*-elf): New case.
|
||||||
|
@ -8003,10 +8008,10 @@ Wed Aug 29 02:27:36 2001 J"orn Rennecke <amylaar@redhat.com>
|
||||||
|
|
||||||
* config.bfd: Add NetBSD/sparc64 support.
|
* config.bfd: Add NetBSD/sparc64 support.
|
||||||
|
|
||||||
Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
|
2000-04-21 Richard Henderson <rth@cygnus.com>
|
||||||
David Mosberger <davidm@hpl.hp.com>
|
David Mosberger <davidm@hpl.hp.com>
|
||||||
Timothy Wall <twall@cygnus.com>
|
Timothy Wall <twall@cygnus.com>
|
||||||
Jim Wilson <wilson@cygnus.com>
|
Jim Wilson <wilson@cygnus.com>
|
||||||
|
|
||||||
* Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
|
* Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
|
||||||
(ALL_MACHINES_CFILES): Add cpu-ia64.c.
|
(ALL_MACHINES_CFILES): Add cpu-ia64.c.
|
||||||
|
@ -8049,7 +8054,7 @@ Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
|
||||||
* dwarf2.c (concat_filename): Avoid string literal concatenation.
|
* dwarf2.c (concat_filename): Avoid string literal concatenation.
|
||||||
* ieee.c (ieee_get_symtab): Don't initialise union in struct.
|
* ieee.c (ieee_get_symtab): Don't initialise union in struct.
|
||||||
|
|
||||||
Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
|
2000-04-11 David Mosberger <davidm@hpl.hp.com>
|
||||||
|
|
||||||
* Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
|
* Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
|
||||||
(BFD64_BACKENDS_CFILES): Mention coff-ia64.c
|
(BFD64_BACKENDS_CFILES): Mention coff-ia64.c
|
||||||
|
@ -8154,7 +8159,7 @@ Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
|
||||||
* coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
|
* coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
|
||||||
unitialized variable.
|
unitialized variable.
|
||||||
|
|
||||||
Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
|
2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
|
||||||
|
|
||||||
* configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
|
* configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
|
||||||
--enable-build-warnings option.
|
--enable-build-warnings option.
|
||||||
|
@ -8189,7 +8194,7 @@ Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
|
||||||
and restore it on failure. Release newly allocated tdata on
|
and restore it on failure. Release newly allocated tdata on
|
||||||
failure.
|
failure.
|
||||||
|
|
||||||
Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
|
2000-04-07 Jim Wilson <wilson@cygnus.com>
|
||||||
|
|
||||||
* dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
|
* dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
|
||||||
(decode_line_info): Set it. Report error if unit->line_offset is
|
(decode_line_info): Set it. Report error if unit->line_offset is
|
||||||
|
@ -8234,7 +8239,7 @@ Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
|
||||||
(elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
|
(elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
|
||||||
if the EABI version number is unknown.
|
if the EABI version number is unknown.
|
||||||
|
|
||||||
Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
|
2000-04-05 J"orn Rennecke <amylaar@cygnus.co.uk>
|
||||||
|
|
||||||
* reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
|
* reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
|
||||||
BFD_RELOC_SH_LOOP_END.
|
BFD_RELOC_SH_LOOP_END.
|
||||||
|
@ -8279,7 +8284,7 @@ Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
|
||||||
relative relocations for non-loaded sections in shared objects.
|
relative relocations for non-loaded sections in shared objects.
|
||||||
(elf64_alpha_check_relocs): Similarly.
|
(elf64_alpha_check_relocs): Similarly.
|
||||||
|
|
||||||
Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
|
2000-04-03 Hans-Peter Nilsson <hp@axis.com>
|
||||||
|
|
||||||
* aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
|
* aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
|
||||||
BFD_RELOC_16 to switch for extended relocs.
|
BFD_RELOC_16 to switch for extended relocs.
|
||||||
|
@ -8302,7 +8307,7 @@ Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
|
||||||
on some targets.
|
on some targets.
|
||||||
* ihex.c : Ditto.
|
* ihex.c : Ditto.
|
||||||
|
|
||||||
Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
|
2000-03-30 Donald Lindsay <dlindsay@cygnus.com>
|
||||||
|
|
||||||
* elf32-m32r.c (m32r_elf_generic_reloc): new function. All
|
* elf32-m32r.c (m32r_elf_generic_reloc): new function. All
|
||||||
HOWTO references to bfd_elf_generic_reloc, that have
|
HOWTO references to bfd_elf_generic_reloc, that have
|
||||||
|
@ -8614,7 +8619,7 @@ Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
|
||||||
name of the libtool directory.
|
name of the libtool directory.
|
||||||
* Makefile.in: Rebuild.
|
* Makefile.in: Rebuild.
|
||||||
|
|
||||||
Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
|
2000-02-25 Rodney Brown (RodneyBrown@pmsc.com)
|
||||||
|
|
||||||
* som.c (SOM_HOWTO): Define.
|
* som.c (SOM_HOWTO): Define.
|
||||||
(som_hppa_howto_table): Use it.
|
(som_hppa_howto_table): Use it.
|
||||||
|
@ -8782,7 +8787,7 @@ Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
|
||||||
Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
|
Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
|
||||||
core_dumpx structure.
|
core_dumpx structure.
|
||||||
|
|
||||||
Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
|
2000-02-17 J"orn Rennecke <amylaar@cygnus.co.uk>
|
||||||
|
|
||||||
* archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
|
* archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
|
||||||
(bfd_mach_sh3_dsp): Likewise.
|
(bfd_mach_sh3_dsp): Likewise.
|
||||||
|
@ -8853,7 +8858,7 @@ Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
|
||||||
SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
|
SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
|
||||||
symbol index should be set to -1.
|
symbol index should be set to -1.
|
||||||
|
|
||||||
Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
|
2000-02-10 Toshiyasu Morita (toshi.morita@sega.com)
|
||||||
|
|
||||||
* coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
|
* coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
|
||||||
USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
|
USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
|
||||||
|
|
|
@ -2378,6 +2378,37 @@ elf_s390_object_p (abfd)
|
||||||
return bfd_default_set_arch_mach (abfd, bfd_arch_s390, bfd_mach_s390_esa);
|
return bfd_default_set_arch_mach (abfd, bfd_arch_s390, bfd_mach_s390_esa);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static boolean
|
||||||
|
elf_s390_grok_prstatus (abfd, note)
|
||||||
|
bfd * abfd;
|
||||||
|
Elf_Internal_Note * note;
|
||||||
|
{
|
||||||
|
int offset;
|
||||||
|
unsigned int raw_size;
|
||||||
|
|
||||||
|
switch (note->descsz)
|
||||||
|
{
|
||||||
|
default:
|
||||||
|
return false;
|
||||||
|
|
||||||
|
case 224: /* S/390 Linux. */
|
||||||
|
/* pr_cursig */
|
||||||
|
elf_tdata (abfd)->core_signal = bfd_get_16 (abfd, note->descdata + 12);
|
||||||
|
|
||||||
|
/* pr_pid */
|
||||||
|
elf_tdata (abfd)->core_pid = bfd_get_32 (abfd, note->descdata + 24);
|
||||||
|
|
||||||
|
/* pr_reg */
|
||||||
|
offset = 72;
|
||||||
|
raw_size = 144;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Make a ".reg/999" section. */
|
||||||
|
return _bfd_elfcore_make_pseudosection (abfd, ".reg",
|
||||||
|
raw_size, note->descpos + offset);
|
||||||
|
}
|
||||||
|
|
||||||
#define TARGET_BIG_SYM bfd_elf32_s390_vec
|
#define TARGET_BIG_SYM bfd_elf32_s390_vec
|
||||||
#define TARGET_BIG_NAME "elf32-s390"
|
#define TARGET_BIG_NAME "elf32-s390"
|
||||||
#define ELF_ARCH bfd_arch_s390
|
#define ELF_ARCH bfd_arch_s390
|
||||||
|
@ -2411,6 +2442,7 @@ elf_s390_object_p (abfd)
|
||||||
#define elf_backend_relocate_section elf_s390_relocate_section
|
#define elf_backend_relocate_section elf_s390_relocate_section
|
||||||
#define elf_backend_size_dynamic_sections elf_s390_size_dynamic_sections
|
#define elf_backend_size_dynamic_sections elf_s390_size_dynamic_sections
|
||||||
#define elf_backend_reloc_type_class elf_s390_reloc_type_class
|
#define elf_backend_reloc_type_class elf_s390_reloc_type_class
|
||||||
|
#define elf_backend_grok_prstatus elf_s390_grok_prstatus
|
||||||
|
|
||||||
#define elf_backend_object_p elf_s390_object_p
|
#define elf_backend_object_p elf_s390_object_p
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue