This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project. See the GDB home page for more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: support for ARM GNU/Linux


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.