diff options
author | Michael Snyder <msnyder@vmware.com> | 2000-06-06 20:00:33 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2000-06-06 20:00:33 +0000 |
commit | e0ebfc612d21c7aac1f506af3405c1ca3bd58505 (patch) | |
tree | baf5fc73c3e213fbc483d6d5c771c8d644bb970b /bfd/elf.c | |
parent | 9cc28cc8a9f9bc9e918dff150f8d88b64d31e657 (diff) | |
download | gdb-e0ebfc612d21c7aac1f506af3405c1ca3bd58505.zip gdb-e0ebfc612d21c7aac1f506af3405c1ca3bd58505.tar.gz gdb-e0ebfc612d21c7aac1f506af3405c1ca3bd58505.tar.bz2 |
2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
* elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r-- | bfd/elf.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -5127,11 +5127,13 @@ elfcore_grok_prstatus (abfd, note) char buf[100]; char* name; asection* sect; + int raw_size; if (note->descsz == sizeof (prstatus_t)) { prstatus_t prstat; + raw_size = sizeof (prstat.pr_reg); memcpy (&prstat, note->descdata, sizeof (prstat)); elf_tdata (abfd)->core_signal = prstat.pr_cursig; @@ -5153,6 +5155,7 @@ elfcore_grok_prstatus (abfd, note) /* 64-bit host, 32-bit corefile */ prstatus32_t prstat; + raw_size = sizeof (prstat.pr_reg); memcpy (&prstat, note->descdata, sizeof (prstat)); elf_tdata (abfd)->core_signal = prstat.pr_cursig; @@ -5190,13 +5193,13 @@ elfcore_grok_prstatus (abfd, note) 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); } #if defined (__sparcv9) 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); } #endif |