This is the mail archive of the gdb-patches@sources.redhat.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]
Other format: [Raw text]

Re: Add support for RedBoot SWIs to ARM Simulator


Hi Guys,

  I am applying the patch below to add support for the SWI used by
  RedBoot to implement some of its system calls.  The patch only
  supports those system calls already supported by the simulator's
  Angel and Demon SWI protocol support.

  Note - it is not possible to support the RedBoot SWI in Thumb mode,
  since this SWI value - 0x18 - is also the thumb breakpoint value
  used by GDB.


This may trample on the toes of somebody using that SWI as a real trap 
into an OS.  We probably should have a way of configuring the simulator at 
run-time to allow emulation of a set of SWI values.  Either from a 
command-line switch (for the arm-...-run command) or a gdb hook (for use 
within gdb).


Something like:

	arm-elf-run -emul-swi={redboot|angel|demon|none}

R.




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