From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cagney To: gdb-patches@cygnus.com Subject: Re: support for ARM GNU/Linux Date: Tue, 13 Apr 1999 23:56:00 -0000 Message-id: <37143C2A.9340FF5B@cygnus.com> References: <37142B16.B43B5200.cygnus.patches.gdb@cygnus.com> X-SW-Source: 1999-q2/msg00024.html 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.