mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-10-13 10:55:46 +08:00
Avoid PT_WDUSER because it crashes H-PUX.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Fri Jun 26 19:03:23 1992 John Gilmore (gnu at cygnus.com)
|
||||||
|
|
||||||
|
* hppahpux-xdep.c (child_xfer_memory): Avoid PT_WDUSER because it
|
||||||
|
crashes H-PUX.
|
||||||
|
|
||||||
Fri Jun 26 11:09:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
|
Fri Jun 26 11:09:10 1992 Steve Chamberlain (sac@thepub.cygnus.com)
|
||||||
|
|
||||||
* source.c (print_source_lines): for DOS interoperability; don't
|
* source.c (print_source_lines): for DOS interoperability; don't
|
||||||
|
@ -382,10 +382,16 @@ child_xfer_memory (memaddr, myaddr, len, write, target)
|
|||||||
|
|
||||||
for (i = 0; i < count; i++, addr += sizeof (int))
|
for (i = 0; i < count; i++, addr += sizeof (int))
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
|
/* The HP-UX kernel crashes if you use PT_WDUSER to write into the text
|
||||||
|
segment. FIXME -- does it work to write into the data segment using
|
||||||
|
WIUSER, or do these idiots really expect us to figure out which segment
|
||||||
|
the address is in, so we can use a separate system call for it??! */
|
||||||
errno = 0;
|
errno = 0;
|
||||||
ptrace (PT_WDUSER, inferior_pid, (PTRACE_ARG3_TYPE) addr,
|
ptrace (PT_WDUSER, inferior_pid, (PTRACE_ARG3_TYPE) addr,
|
||||||
buffer[i], 0);
|
buffer[i], 0);
|
||||||
if (errno)
|
if (errno)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
/* Using the appropriate one (I or D) is necessary for
|
/* Using the appropriate one (I or D) is necessary for
|
||||||
Gould NP1, at least. */
|
Gould NP1, at least. */
|
||||||
|
Reference in New Issue
Block a user