This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


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

Re: Add support for WinCE toolchains


Nick Clifton wrote:
> 
> Hi Guys,
> 
>   May I have permission to apply the following patch please ?  It adds
>   support for toolchains which are targeted at Microsoft's WinCE
>   execution environment.  For the moment this means the sh-pe, mips-pe
>   and arm-wince-pe toolchains.
> 
> Cheers
>         Nick
> 
> 2000-02-22  Nick Clifton  <nickc@cygnus.com> Chris Faylor <cgf@cygnus.com>

>         * config/arm/tm-arm.h: Add WinCE support.
>         * config/mips/tm-mips.h: Add WinCE support.
>         * config/sh/tm-sh.h: Add WinCE support.

Nick,

I'm not sure about these changes.  Would having
config/{arm,mips,sh}/tm-wince.h files be better?
The patches look very wince specific.

	Andrew

PS Don't forget to put any new files through GNU indent and to touch up
the contributor notices.


> Index: config/arm/tm-arm.h
> ===================================================================
> RCS file: /cvs/src//src/gdb/config/arm/tm-arm.h,v
> retrieving revision 1.1.1.9
> diff -p -r1.1.1.9 tm-arm.h
> *** tm-arm.h    2000/02/05 07:29:52     1.1.1.9
> --- tm-arm.h    2000/02/22 23:31:33
> *************** void arm_fix_call_dummy (char *dummy, CO
> *** 475,480 ****
> --- 475,491 ----
> 
>   CORE_ADDR arm_get_next_pc (CORE_ADDR pc);
> 
> + /* Windows CE needs to do single stepping by forcing a trap into memory and
> +    it is little-endian. */
> +
> + #ifdef _WIN32_WCE
> + #define SOFTWARE_SINGLE_STEP_P 1
> + #define SOFTWARE_SINGLE_STEP(sig, bp_p) wince_software_single_step (sig, bp_p)
> + void wince_software_single_step (unsigned int, int);
> + #undef TARGET_BYTE_ORDER_SELECTABLE
> + #define TARGET_BYTE_ORDER LITTLE_ENDIAN
> + #endif
> +
>   /* Macros for setting and testing a bit in a minimal symbol that marks
>      it as Thumb function.  The MSB of the minimal symbol's "info" field
>      is used for this purpose. This field is already being used to store
> 
> Index: config/mips/tm-mips.h
> ===================================================================
> RCS file: /cvs/src//src/gdb/config/mips/tm-mips.h,v
> retrieving revision 1.1.1.11
> diff -p -r1.1.1.11 tm-mips.h
> *** tm-mips.h   1999/12/22 21:45:14     1.1.1.11
> --- tm-mips.h   2000/02/22 23:31:34
> *************** struct value;
> *** 45,50 ****
> --- 45,61 ----
>   #define MIPS_EABI 0
>   #endif
> 
> + /* Windows CE needs to do single stepping by forcing a trap into memory and
> +    it is little-endian. */
> +
> + #ifdef _WIN32_WCE
> + #define SOFTWARE_SINGLE_STEP_P 1
> + #define SOFTWARE_SINGLE_STEP(sig, bp_p) wince_software_single_step (sig, bp_p)
> + void wince_software_single_step (unsigned int, int);
> + #undef TARGET_BYTE_ORDER_SELECTABLE
> + #define TARGET_BYTE_ORDER LITTLE_ENDIAN
> + #endif
> +
>   #if !defined (TARGET_MONITOR_PROMPT)
>   #define TARGET_MONITOR_PROMPT "<IDT>"
>   #endif
> 
> Index: config/sh/tm-sh.h
> ===================================================================
> RCS file: /cvs/src//src/gdb/config/sh/tm-sh.h,v
> retrieving revision 1.1.1.8
> diff -p -r1.1.1.8 tm-sh.h
> *** tm-sh.h     1999/12/14 01:05:42     1.1.1.8
> --- tm-sh.h     2000/02/22 23:31:35
> *************** extern CORE_ADDR sh_skip_prologue PARAMS
> *** 54,59 ****
> --- 54,70 ----
> 
>   #define SAVED_PC_AFTER_CALL(frame) (ADDR_BITS_REMOVE(read_register(PR_REGNUM)))
> 
> + /* Windows CE needs to do single stepping by forcing a trap into memory and
> +    it is little-endian. */
> +
> + #ifdef _WIN32_WCE
> + #define SOFTWARE_SINGLE_STEP_P 1
> + #define SOFTWARE_SINGLE_STEP(sig, bp_p) wince_software_single_step (sig, bp_p)
> + void wince_software_single_step (unsigned int, int);
> + #undef TARGET_BYTE_ORDER_SELECTABLE
> + #define TARGET_BYTE_ORDER LITTLE_ENDIAN
> + #endif
> +
>   /* Stack grows downward.  */
> 
>   #define INNER_THAN(lhs,rhs) ((lhs) < (rhs))

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