1 /* GNU/Linux/ARM specific low level interface, for the remote server for GDB.
2 Copyright (C) 1995-1996, 1998-2012 Free Software Foundation, Inc.
4 This file is part of GDB.
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>. */
20 #include "linux-low.h"
22 /* Don't include elf.h if linux/elf.h got included by gdb_proc_service.h.
23 On Bionic elf.h and linux/elf.h have conflicting definitions. */
27 #include <sys/ptrace.h>
30 /* Defined in auto-generated files. */
31 void init_registers_arm (void);
32 void init_registers_arm_with_iwmmxt (void);
33 void init_registers_arm_with_vfpv2 (void);
34 void init_registers_arm_with_vfpv3 (void);
35 void init_registers_arm_with_neon (void);
37 #ifndef PTRACE_GET_THREAD_AREA
38 #define PTRACE_GET_THREAD_AREA 22
41 #ifndef PTRACE_GETWMMXREGS
42 # define PTRACE_GETWMMXREGS 18
43 # define PTRACE_SETWMMXREGS 19
46 #ifndef PTRACE_GETVFPREGS
47 # define PTRACE_GETVFPREGS 27
48 # define PTRACE_SETVFPREGS 28
51 #ifndef PTRACE_GETHBPREGS
52 #define PTRACE_GETHBPREGS 29
53 #define PTRACE_SETHBPREGS 30
56 /* Information describing the hardware breakpoint capabilities. */
60 unsigned char max_wp_length
;
61 unsigned char wp_count
;
62 unsigned char bp_count
;
65 /* Enum describing the different types of ARM hardware break-/watch-points. */
74 /* Type describing an ARM Hardware Breakpoint Control register value. */
75 typedef unsigned int arm_hwbp_control_t
;
77 /* Structure used to keep track of hardware break-/watch-points. */
78 struct arm_linux_hw_breakpoint
80 /* Address to break on, or being watched. */
82 /* Control register for break-/watch- point. */
83 arm_hwbp_control_t control
;
86 /* Since we cannot dynamically allocate subfields of arch_process_info,
87 assume a maximum number of supported break-/watchpoints. */
91 /* Per-process arch-specific data we want to keep. */
92 struct arch_process_info
94 /* Hardware breakpoints for this process. */
95 struct arm_linux_hw_breakpoint bpts
[MAX_BPTS
];
96 /* Hardware watchpoints for this process. */
97 struct arm_linux_hw_breakpoint wpts
[MAX_WPTS
];
100 /* Per-thread arch-specific data we want to keep. */
103 /* Non-zero if our copy differs from what's recorded in the thread. */
104 char bpts_changed
[MAX_BPTS
];
105 char wpts_changed
[MAX_WPTS
];
106 /* Cached stopped data address. */
107 CORE_ADDR stopped_data_address
;
110 static unsigned long arm_hwcap
;
112 /* These are in <asm/elf.h> in current kernels. */
114 #define HWCAP_IWMMXT 512
115 #define HWCAP_NEON 4096
116 #define HWCAP_VFPv3 8192
117 #define HWCAP_VFPv3D16 16384
119 #ifdef HAVE_SYS_REG_H
123 #define arm_num_regs 26
125 static int arm_regmap
[] = {
126 0, 4, 8, 12, 16, 20, 24, 28,
127 32, 36, 40, 44, 48, 52, 56, 60,
128 -1, -1, -1, -1, -1, -1, -1, -1, -1,
133 arm_cannot_store_register (int regno
)
135 return (regno
>= arm_num_regs
);
139 arm_cannot_fetch_register (int regno
)
141 return (regno
>= arm_num_regs
);
145 arm_fill_gregset (struct regcache
*regcache
, void *buf
)
149 for (i
= 0; i
< arm_num_regs
; i
++)
150 if (arm_regmap
[i
] != -1)
151 collect_register (regcache
, i
, ((char *) buf
) + arm_regmap
[i
]);
155 arm_store_gregset (struct regcache
*regcache
, const void *buf
)
160 memset (zerobuf
, 0, 8);
161 for (i
= 0; i
< arm_num_regs
; i
++)
162 if (arm_regmap
[i
] != -1)
163 supply_register (regcache
, i
, ((char *) buf
) + arm_regmap
[i
]);
165 supply_register (regcache
, i
, zerobuf
);
169 arm_fill_wmmxregset (struct regcache
*regcache
, void *buf
)
173 if (!(arm_hwcap
& HWCAP_IWMMXT
))
176 for (i
= 0; i
< 16; i
++)
177 collect_register (regcache
, arm_num_regs
+ i
, (char *) buf
+ i
* 8);
179 /* We only have access to wcssf, wcasf, and wcgr0-wcgr3. */
180 for (i
= 0; i
< 6; i
++)
181 collect_register (regcache
, arm_num_regs
+ i
+ 16,
182 (char *) buf
+ 16 * 8 + i
* 4);
186 arm_store_wmmxregset (struct regcache
*regcache
, const void *buf
)
190 if (!(arm_hwcap
& HWCAP_IWMMXT
))
193 for (i
= 0; i
< 16; i
++)
194 supply_register (regcache
, arm_num_regs
+ i
, (char *) buf
+ i
* 8);
196 /* We only have access to wcssf, wcasf, and wcgr0-wcgr3. */
197 for (i
= 0; i
< 6; i
++)
198 supply_register (regcache
, arm_num_regs
+ i
+ 16,
199 (char *) buf
+ 16 * 8 + i
* 4);
203 arm_fill_vfpregset (struct regcache
*regcache
, void *buf
)
207 if (!(arm_hwcap
& HWCAP_VFP
))
210 if ((arm_hwcap
& (HWCAP_VFPv3
| HWCAP_VFPv3D16
)) == HWCAP_VFPv3
)
215 base
= find_regno ("d0");
216 for (i
= 0; i
< num
; i
++)
217 collect_register (regcache
, base
+ i
, (char *) buf
+ i
* 8);
219 collect_register_by_name (regcache
, "fpscr", (char *) buf
+ 32 * 8);
223 arm_store_vfpregset (struct regcache
*regcache
, const void *buf
)
227 if (!(arm_hwcap
& HWCAP_VFP
))
230 if ((arm_hwcap
& (HWCAP_VFPv3
| HWCAP_VFPv3D16
)) == HWCAP_VFPv3
)
235 base
= find_regno ("d0");
236 for (i
= 0; i
< num
; i
++)
237 supply_register (regcache
, base
+ i
, (char *) buf
+ i
* 8);
239 supply_register_by_name (regcache
, "fpscr", (char *) buf
+ 32 * 8);
242 extern int debug_threads
;
245 arm_get_pc (struct regcache
*regcache
)
248 collect_register_by_name (regcache
, "pc", &pc
);
250 fprintf (stderr
, "stop pc is %08lx\n", pc
);
255 arm_set_pc (struct regcache
*regcache
, CORE_ADDR pc
)
257 unsigned long newpc
= pc
;
258 supply_register_by_name (regcache
, "pc", &newpc
);
261 /* Correct in either endianness. */
262 static const unsigned long arm_breakpoint
= 0xef9f0001;
263 #define arm_breakpoint_len 4
264 static const unsigned short thumb_breakpoint
= 0xde01;
265 static const unsigned short thumb2_breakpoint
[] = { 0xf7f0, 0xa000 };
267 /* For new EABI binaries. We recognize it regardless of which ABI
268 is used for gdbserver, so single threaded debugging should work
269 OK, but for multi-threaded debugging we only insert the current
270 ABI's breakpoint instruction. For now at least. */
271 static const unsigned long arm_eabi_breakpoint
= 0xe7f001f0;
274 arm_breakpoint_at (CORE_ADDR where
)
276 struct regcache
*regcache
= get_thread_regcache (current_inferior
, 1);
279 collect_register_by_name (regcache
, "cpsr", &cpsr
);
286 (*the_target
->read_memory
) (where
, (unsigned char *) &insn
, 2);
287 if (insn
== thumb_breakpoint
)
290 if (insn
== thumb2_breakpoint
[0])
292 (*the_target
->read_memory
) (where
+ 2, (unsigned char *) &insn
, 2);
293 if (insn
== thumb2_breakpoint
[1])
302 (*the_target
->read_memory
) (where
, (unsigned char *) &insn
, 4);
303 if (insn
== arm_breakpoint
)
306 if (insn
== arm_eabi_breakpoint
)
313 /* We only place breakpoints in empty marker functions, and thread locking
314 is outside of the function. So rather than importing software single-step,
315 we can just run until exit. */
317 arm_reinsert_addr (void)
319 struct regcache
*regcache
= get_thread_regcache (current_inferior
, 1);
321 collect_register_by_name (regcache
, "lr", &pc
);
325 /* Fetch the thread-local storage pointer for libthread_db. */
328 ps_get_thread_area (const struct ps_prochandle
*ph
,
329 lwpid_t lwpid
, int idx
, void **base
)
331 if (ptrace (PTRACE_GET_THREAD_AREA
, lwpid
, NULL
, base
) != 0)
334 /* IDX is the bias from the thread pointer to the beginning of the
335 thread descriptor. It has to be subtracted due to implementation
336 quirks in libthread_db. */
337 *base
= (void *) ((char *)*base
- idx
);
343 /* Query Hardware Breakpoint information for the target we are attached to
344 (using PID as ptrace argument) and set up arm_linux_hwbp_cap. */
346 arm_linux_init_hwbp_cap (int pid
)
350 if (ptrace (PTRACE_GETHBPREGS
, pid
, 0, &val
) < 0)
353 arm_linux_hwbp_cap
.arch
= (unsigned char)((val
>> 24) & 0xff);
354 if (arm_linux_hwbp_cap
.arch
== 0)
357 arm_linux_hwbp_cap
.max_wp_length
= (unsigned char)((val
>> 16) & 0xff);
358 arm_linux_hwbp_cap
.wp_count
= (unsigned char)((val
>> 8) & 0xff);
359 arm_linux_hwbp_cap
.bp_count
= (unsigned char)(val
& 0xff);
361 if (arm_linux_hwbp_cap
.wp_count
> MAX_WPTS
)
362 internal_error (__FILE__
, __LINE__
, "Unsupported number of watchpoints");
363 if (arm_linux_hwbp_cap
.bp_count
> MAX_BPTS
)
364 internal_error (__FILE__
, __LINE__
, "Unsupported number of breakpoints");
367 /* How many hardware breakpoints are available? */
369 arm_linux_get_hw_breakpoint_count (void)
371 return arm_linux_hwbp_cap
.bp_count
;
374 /* How many hardware watchpoints are available? */
376 arm_linux_get_hw_watchpoint_count (void)
378 return arm_linux_hwbp_cap
.wp_count
;
381 /* Maximum length of area watched by hardware watchpoint. */
383 arm_linux_get_hw_watchpoint_max_length (void)
385 return arm_linux_hwbp_cap
.max_wp_length
;
388 /* Initialize an ARM hardware break-/watch-point control register value.
389 BYTE_ADDRESS_SELECT is the mask of bytes to trigger on; HWBP_TYPE is the
390 type of break-/watch-point; ENABLE indicates whether the point is enabled.
392 static arm_hwbp_control_t
393 arm_hwbp_control_initialize (unsigned byte_address_select
,
394 arm_hwbp_type hwbp_type
,
397 gdb_assert ((byte_address_select
& ~0xffU
) == 0);
398 gdb_assert (hwbp_type
!= arm_hwbp_break
399 || ((byte_address_select
& 0xfU
) != 0));
401 return (byte_address_select
<< 5) | (hwbp_type
<< 3) | (3 << 1) | enable
;
404 /* Does the breakpoint control value CONTROL have the enable bit set? */
406 arm_hwbp_control_is_enabled (arm_hwbp_control_t control
)
408 return control
& 0x1;
411 /* Is the breakpoint control value CONTROL initialized? */
413 arm_hwbp_control_is_initialized (arm_hwbp_control_t control
)
418 /* Change a breakpoint control word so that it is in the disabled state. */
419 static arm_hwbp_control_t
420 arm_hwbp_control_disable (arm_hwbp_control_t control
)
422 return control
& ~0x1;
425 /* Are two break-/watch-points equal? */
427 arm_linux_hw_breakpoint_equal (const struct arm_linux_hw_breakpoint
*p1
,
428 const struct arm_linux_hw_breakpoint
*p2
)
430 return p1
->address
== p2
->address
&& p1
->control
== p2
->control
;
433 /* Initialize the hardware breakpoint structure P for a breakpoint or
434 watchpoint at ADDR to LEN. The type of watchpoint is given in TYPE.
435 Returns -1 if TYPE is unsupported, 0 if TYPE represents a breakpoint,
436 and 1 if type represents a watchpoint. */
438 arm_linux_hw_point_initialize (char type
, CORE_ADDR addr
, int len
,
439 struct arm_linux_hw_breakpoint
*p
)
441 arm_hwbp_type hwbp_type
;
444 /* Breakpoint/watchpoint types (GDB terminology):
445 0 = memory breakpoint for instructions
446 (not supported; done via memory write instead)
447 1 = hardware breakpoint for instructions (supported)
448 2 = write watchpoint (supported)
449 3 = read watchpoint (supported)
450 4 = access watchpoint (supported). */
454 hwbp_type
= arm_hwbp_break
;
457 hwbp_type
= arm_hwbp_store
;
460 hwbp_type
= arm_hwbp_load
;
463 hwbp_type
= arm_hwbp_access
;
470 if (hwbp_type
== arm_hwbp_break
)
472 /* For breakpoints, the length field encodes the mode. */
475 case 2: /* 16-bit Thumb mode breakpoint */
476 case 3: /* 32-bit Thumb mode breakpoint */
477 mask
= 0x3 << (addr
& 2);
479 case 4: /* 32-bit ARM mode breakpoint */
491 CORE_ADDR max_wp_length
= arm_linux_get_hw_watchpoint_max_length ();
492 CORE_ADDR aligned_addr
;
494 /* Can not set watchpoints for zero or negative lengths. */
497 /* The current ptrace interface can only handle watchpoints that are a
499 if ((len
& (len
- 1)) != 0)
502 /* Test that the range [ADDR, ADDR + LEN) fits into the largest address
503 range covered by a watchpoint. */
504 aligned_addr
= addr
& ~(max_wp_length
- 1);
505 if (aligned_addr
+ max_wp_length
< addr
+ len
)
508 mask
= (1 << len
) - 1;
511 p
->address
= (unsigned int) addr
;
512 p
->control
= arm_hwbp_control_initialize (mask
, hwbp_type
, 1);
514 return hwbp_type
!= arm_hwbp_break
;
517 /* Callback to mark a watch-/breakpoint to be updated in all threads of
518 the current process. */
520 struct update_registers_data
527 update_registers_callback (struct inferior_list_entry
*entry
, void *arg
)
529 struct lwp_info
*lwp
= (struct lwp_info
*) entry
;
530 struct update_registers_data
*data
= (struct update_registers_data
*) arg
;
532 /* Only update the threads of the current process. */
533 if (pid_of (lwp
) == pid_of (get_thread_lwp (current_inferior
)))
535 /* The actual update is done later just before resuming the lwp,
536 we just mark that the registers need updating. */
538 lwp
->arch_private
->wpts_changed
[data
->i
] = 1;
540 lwp
->arch_private
->bpts_changed
[data
->i
] = 1;
542 /* If the lwp isn't stopped, force it to momentarily pause, so
543 we can update its breakpoint registers. */
545 linux_stop_lwp (lwp
);
551 /* Insert hardware break-/watchpoint. */
553 arm_insert_point (char type
, CORE_ADDR addr
, int len
)
555 struct process_info
*proc
= current_process ();
556 struct arm_linux_hw_breakpoint p
, *pts
;
559 watch
= arm_linux_hw_point_initialize (type
, addr
, len
, &p
);
568 count
= arm_linux_get_hw_watchpoint_count ();
569 pts
= proc
->private->arch_private
->wpts
;
573 count
= arm_linux_get_hw_breakpoint_count ();
574 pts
= proc
->private->arch_private
->bpts
;
577 for (i
= 0; i
< count
; i
++)
578 if (!arm_hwbp_control_is_enabled (pts
[i
].control
))
580 struct update_registers_data data
= { watch
, i
};
582 find_inferior (&all_lwps
, update_registers_callback
, &data
);
586 /* We're out of watchpoints. */
590 /* Remove hardware break-/watchpoint. */
592 arm_remove_point (char type
, CORE_ADDR addr
, int len
)
594 struct process_info
*proc
= current_process ();
595 struct arm_linux_hw_breakpoint p
, *pts
;
598 watch
= arm_linux_hw_point_initialize (type
, addr
, len
, &p
);
607 count
= arm_linux_get_hw_watchpoint_count ();
608 pts
= proc
->private->arch_private
->wpts
;
612 count
= arm_linux_get_hw_breakpoint_count ();
613 pts
= proc
->private->arch_private
->bpts
;
616 for (i
= 0; i
< count
; i
++)
617 if (arm_linux_hw_breakpoint_equal (&p
, pts
+ i
))
619 struct update_registers_data data
= { watch
, i
};
620 pts
[i
].control
= arm_hwbp_control_disable (pts
[i
].control
);
621 find_inferior (&all_lwps
, update_registers_callback
, &data
);
625 /* No watchpoint matched. */
629 /* Return whether current thread is stopped due to a watchpoint. */
631 arm_stopped_by_watchpoint (void)
633 struct lwp_info
*lwp
= get_thread_lwp (current_inferior
);
636 /* We must be able to set hardware watchpoints. */
637 if (arm_linux_get_hw_watchpoint_count () == 0)
640 /* Retrieve siginfo. */
642 ptrace (PTRACE_GETSIGINFO
, lwpid_of (lwp
), 0, &siginfo
);
646 /* This must be a hardware breakpoint. */
647 if (siginfo
.si_signo
!= SIGTRAP
648 || (siginfo
.si_code
& 0xffff) != 0x0004 /* TRAP_HWBKPT */)
651 /* If we are in a positive slot then we're looking at a breakpoint and not
653 if (siginfo
.si_errno
>= 0)
656 /* Cache stopped data address for use by arm_stopped_data_address. */
657 lwp
->arch_private
->stopped_data_address
658 = (CORE_ADDR
) (uintptr_t) siginfo
.si_addr
;
663 /* Return data address that triggered watchpoint. Called only if
664 arm_stopped_by_watchpoint returned true. */
666 arm_stopped_data_address (void)
668 struct lwp_info
*lwp
= get_thread_lwp (current_inferior
);
669 return lwp
->arch_private
->stopped_data_address
;
672 /* Called when a new process is created. */
673 static struct arch_process_info
*
674 arm_new_process (void)
676 struct arch_process_info
*info
= xcalloc (1, sizeof (*info
));
680 /* Called when a new thread is detected. */
681 static struct arch_lwp_info
*
682 arm_new_thread (void)
684 struct arch_lwp_info
*info
= xcalloc (1, sizeof (*info
));
687 for (i
= 0; i
< MAX_BPTS
; i
++)
688 info
->bpts_changed
[i
] = 1;
689 for (i
= 0; i
< MAX_WPTS
; i
++)
690 info
->wpts_changed
[i
] = 1;
695 /* Called when resuming a thread.
696 If the debug regs have changed, update the thread's copies. */
698 arm_prepare_to_resume (struct lwp_info
*lwp
)
700 int pid
= lwpid_of (lwp
);
701 struct process_info
*proc
= find_process_pid (pid_of (lwp
));
702 struct arch_process_info
*proc_info
= proc
->private->arch_private
;
703 struct arch_lwp_info
*lwp_info
= lwp
->arch_private
;
706 for (i
= 0; i
< arm_linux_get_hw_breakpoint_count (); i
++)
707 if (lwp_info
->bpts_changed
[i
])
711 if (arm_hwbp_control_is_enabled (proc_info
->bpts
[i
].control
))
712 if (ptrace (PTRACE_SETHBPREGS
, pid
,
713 (PTRACE_ARG3_TYPE
) ((i
<< 1) + 1),
714 &proc_info
->bpts
[i
].address
) < 0)
715 perror_with_name ("Unexpected error setting breakpoint address");
717 if (arm_hwbp_control_is_initialized (proc_info
->bpts
[i
].control
))
718 if (ptrace (PTRACE_SETHBPREGS
, pid
,
719 (PTRACE_ARG3_TYPE
) ((i
<< 1) + 2),
720 &proc_info
->bpts
[i
].control
) < 0)
721 perror_with_name ("Unexpected error setting breakpoint");
723 lwp_info
->bpts_changed
[i
] = 0;
726 for (i
= 0; i
< arm_linux_get_hw_watchpoint_count (); i
++)
727 if (lwp_info
->wpts_changed
[i
])
731 if (arm_hwbp_control_is_enabled (proc_info
->wpts
[i
].control
))
732 if (ptrace (PTRACE_SETHBPREGS
, pid
,
733 (PTRACE_ARG3_TYPE
) -((i
<< 1) + 1),
734 &proc_info
->wpts
[i
].address
) < 0)
735 perror_with_name ("Unexpected error setting watchpoint address");
737 if (arm_hwbp_control_is_initialized (proc_info
->wpts
[i
].control
))
738 if (ptrace (PTRACE_SETHBPREGS
, pid
,
739 (PTRACE_ARG3_TYPE
) -((i
<< 1) + 2),
740 &proc_info
->wpts
[i
].control
) < 0)
741 perror_with_name ("Unexpected error setting watchpoint");
743 lwp_info
->wpts_changed
[i
] = 0;
749 arm_get_hwcap (unsigned long *valp
)
751 unsigned char *data
= alloca (8);
754 while ((*the_target
->read_auxv
) (offset
, data
, 8) == 8)
756 unsigned int *data_p
= (unsigned int *)data
;
757 if (data_p
[0] == AT_HWCAP
)
771 arm_arch_setup (void)
773 int pid
= lwpid_of (get_thread_lwp (current_inferior
));
775 /* Query hardware watchpoint/breakpoint capabilities. */
776 arm_linux_init_hwbp_cap (pid
);
779 if (arm_get_hwcap (&arm_hwcap
) == 0)
781 init_registers_arm ();
785 if (arm_hwcap
& HWCAP_IWMMXT
)
787 init_registers_arm_with_iwmmxt ();
791 if (arm_hwcap
& HWCAP_VFP
)
795 /* NEON implies either no VFP, or VFPv3-D32. We only support
797 if (arm_hwcap
& HWCAP_NEON
)
798 init_registers_arm_with_neon ();
799 else if ((arm_hwcap
& (HWCAP_VFPv3
| HWCAP_VFPv3D16
)) == HWCAP_VFPv3
)
800 init_registers_arm_with_vfpv3 ();
802 init_registers_arm_with_vfpv2 ();
804 /* Now make sure that the kernel supports reading these
805 registers. Support was added in 2.6.30. */
807 buf
= xmalloc (32 * 8 + 4);
808 if (ptrace (PTRACE_GETVFPREGS
, pid
, 0, buf
) < 0
812 init_registers_arm ();
819 /* The default configuration uses legacy FPA registers, probably
821 init_registers_arm ();
824 struct regset_info target_regsets
[] = {
825 { PTRACE_GETREGS
, PTRACE_SETREGS
, 0, 18 * 4,
827 arm_fill_gregset
, arm_store_gregset
},
828 { PTRACE_GETWMMXREGS
, PTRACE_SETWMMXREGS
, 0, 16 * 8 + 6 * 4,
830 arm_fill_wmmxregset
, arm_store_wmmxregset
},
831 { PTRACE_GETVFPREGS
, PTRACE_SETVFPREGS
, 0, 32 * 8 + 4,
833 arm_fill_vfpregset
, arm_store_vfpregset
},
834 { 0, 0, 0, -1, -1, NULL
, NULL
}
837 struct linux_target_ops the_low_target
= {
842 arm_cannot_fetch_register
,
843 arm_cannot_store_register
,
844 NULL
, /* fetch_register */
848 /* Define an ARM-mode breakpoint; we only set breakpoints in the C
849 library, which is most likely to be ARM. If the kernel supports
850 clone events, we will never insert a breakpoint, so even a Thumb
851 C library will work; so will mixing EABI/non-EABI gdbserver and
854 (const unsigned char *) &arm_breakpoint
,
856 (const unsigned char *) &arm_eabi_breakpoint
,
864 arm_stopped_by_watchpoint
,
865 arm_stopped_data_address
,
866 NULL
, /* collect_ptrace_register */
867 NULL
, /* supply_ptrace_register */
868 NULL
, /* siginfo_fixup */
871 arm_prepare_to_resume
,