mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 22:07:58 +08:00
* nm-hp300bsd.h (PTRACE_ARG3_TYPE): FSF's hp300's have int* not caddr_t.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Thu Feb 18 16:13:28 1993 K. Richard Pixley (rich@rtl.cygnus.com)
|
||||||
|
|
||||||
|
* nm-hp300bsd.h (PTRACE_ARG3_TYPE): FSF's hp300's have int* not
|
||||||
|
caddr_t.
|
||||||
|
|
||||||
Thu Feb 18 04:10:06 1993 John Gilmore (gnu@cygnus.com)
|
Thu Feb 18 04:10:06 1993 John Gilmore (gnu@cygnus.com)
|
||||||
|
|
||||||
* c-lang.c (c_printstr): Bugfix for length==0 case.
|
* c-lang.c (c_printstr): Bugfix for length==0 case.
|
||||||
|
@ -41,12 +41,23 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|||||||
addr = (int) &((struct user *)0)->u_pcb.pcb_fpregs.fpf_fpiar; \
|
addr = (int) &((struct user *)0)->u_pcb.pcb_fpregs.fpf_fpiar; \
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We can attach to processes using ptrace. */
|
/* This is a hack. This is only a hack. Were this a common source file,
|
||||||
|
rather than a config file specific to BSD on HP 68k's, you would have
|
||||||
|
been instructed to clean this up. As it is, clean it up if FSF's
|
||||||
|
HP's-running-ancient-BSD ever go away. */
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
|
#ifdef EPROCUNAVAIL
|
||||||
|
/* BSD 4.4 alpha or better */
|
||||||
|
|
||||||
|
/* We can attach to processes using ptrace. */
|
||||||
|
|
||||||
#define ATTACH_DETACH
|
#define ATTACH_DETACH
|
||||||
#define PTRACE_ATTACH 10
|
#define PTRACE_ATTACH 10
|
||||||
#define PTRACE_DETACH 11
|
#define PTRACE_DETACH 11
|
||||||
|
|
||||||
/* The third argument of ptrace is declared as this type. */
|
/* The third argument of ptrace is declared as this type. */
|
||||||
|
|
||||||
#define PTRACE_ARG3_TYPE caddr_t
|
#define PTRACE_ARG3_TYPE caddr_t
|
||||||
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user