support for ARM GNU/Linux
Andrew Cagney
ac131313@cygnus.com
Tue Apr 13 23:56:00 GMT 1999
Andrew Cagney wrote:
> The file gdb/config/arm/tm-linux.h #defines OS_BKPT_SWI. That is in
> turn used by the ARM version of CALL_DUMMY. CALL_DUMMY has just been
> replaced with CALL_DUMMY_WORDS and SIZEOF_CALL_DUMMY_WORDS (see
> gdb/doc/gdbint.texi in the *next* snapshot). Rather than define
> OS_BKPT_SWI could I strongly encourage you to instead use these new
> macros. Like for BREAKPOINT_FROM_PC, I would suggest using a global
> initialized from __initialize_arm_tdep().
FYI,
Below is the relevant section of the internals manual.
Andrew
@item CALL_DUMMY_P
A C expresson that is non-zero when the target suports inferior function
calls.
@item CALL_DUMMY_WORDS
Pointer to an array of @var{LONGEST} words of data containing
host-byte-ordered @var{REGISTER_BYTES} sized values that partially
specify the sequence of instructions needed for an inferior function
call.
Should be deprecated in favour of a macro that uses target-byte-ordered
data.
@item SIZEOF_CALL_DUMMY_WORDS
The size of @var{CALL_DUMMY_WORDS}. When @var{CALL_DUMMY_P} this must
return a positive value. See also @var{CALL_DUMMY_LENGTH}.
@item CALL_DUMMY
A static initializer for @var{CALL_DUMMY_WORDS}. Deprecated.
More information about the Gdb-patches
mailing list