2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
* elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
This commit is contained in:
parent
9cc28cc8a9
commit
e0ebfc612d
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
|
||||||
|
|
||||||
|
* elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
|
||||||
|
|
||||||
2000-06-05 H.J. Lu <hjl@gnu.org>
|
2000-06-05 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
* elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
|
* elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
|
||||||
|
|
|
@ -5127,11 +5127,13 @@ elfcore_grok_prstatus (abfd, note)
|
||||||
char buf[100];
|
char buf[100];
|
||||||
char* name;
|
char* name;
|
||||||
asection* sect;
|
asection* sect;
|
||||||
|
int raw_size;
|
||||||
|
|
||||||
if (note->descsz == sizeof (prstatus_t))
|
if (note->descsz == sizeof (prstatus_t))
|
||||||
{
|
{
|
||||||
prstatus_t prstat;
|
prstatus_t prstat;
|
||||||
|
|
||||||
|
raw_size = sizeof (prstat.pr_reg);
|
||||||
memcpy (&prstat, note->descdata, sizeof (prstat));
|
memcpy (&prstat, note->descdata, sizeof (prstat));
|
||||||
|
|
||||||
elf_tdata (abfd)->core_signal = prstat.pr_cursig;
|
elf_tdata (abfd)->core_signal = prstat.pr_cursig;
|
||||||
|
@ -5153,6 +5155,7 @@ elfcore_grok_prstatus (abfd, note)
|
||||||
/* 64-bit host, 32-bit corefile */
|
/* 64-bit host, 32-bit corefile */
|
||||||
prstatus32_t prstat;
|
prstatus32_t prstat;
|
||||||
|
|
||||||
|
raw_size = sizeof (prstat.pr_reg);
|
||||||
memcpy (&prstat, note->descdata, sizeof (prstat));
|
memcpy (&prstat, note->descdata, sizeof (prstat));
|
||||||
|
|
||||||
elf_tdata (abfd)->core_signal = prstat.pr_cursig;
|
elf_tdata (abfd)->core_signal = prstat.pr_cursig;
|
||||||
|
@ -5190,13 +5193,13 @@ elfcore_grok_prstatus (abfd, note)
|
||||||
|
|
||||||
if (note->descsz == sizeof (prstatus_t))
|
if (note->descsz == sizeof (prstatus_t))
|
||||||
{
|
{
|
||||||
sect->_raw_size = sizeof (prgregset_t);
|
sect->_raw_size = raw_size;
|
||||||
sect->filepos = note->descpos + offsetof (prstatus_t, pr_reg);
|
sect->filepos = note->descpos + offsetof (prstatus_t, pr_reg);
|
||||||
}
|
}
|
||||||
#if defined (__sparcv9)
|
#if defined (__sparcv9)
|
||||||
else if (note->descsz == sizeof (prstatus32_t))
|
else if (note->descsz == sizeof (prstatus32_t))
|
||||||
{
|
{
|
||||||
sect->_raw_size = sizeof (prgregset32_t);
|
sect->_raw_size = raw_size;
|
||||||
sect->filepos = note->descpos + offsetof (prstatus32_t, pr_reg);
|
sect->filepos = note->descpos + offsetof (prstatus32_t, pr_reg);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue