Commit: ARM SIM: Add tracing support.
Nick Clifton
nickc@redhat.com
Fri Mar 14 15:21:00 GMT 2014
Hi Guys,
I am applying the attached patch to add tracing support to the ARM
simulator. With the patch applied three new command line options are
now supported: -t enables tracing, -d enables disassembly and -z
enables a limited form of tracing which just reports function entry
and exits.
In the course of testing this patch I also came across a variety of
compile time warning messages. So the patch also tidies these up,
just to make things clean and proper.
Cheers
Nick
sim/arm/ChangeLog
2014-03-14 Nick Clifton <nickc@redhat.com>
* wrapper.c (op_print): New function.
(sim_dis_read): New function.
(print_insn): New function - disassembles the given instruction.
(sim_trace): Note that tracing is now allowed.
(sim_create_inferior): Default to emulating v6.
Initialise the disassembler machinery.
(sim_target_parse_command_line): Add support for -t -d and -z
options.
(sim_target_display_usage): Note existence of -d and -z options.
(sim_open): Parse -t -d and -z options.
* armemu.h: Add exports of trace, disas and trace_funcs.
Add prototype for print_insn.
* armemu.c (ARMul_Emulate26): Add tracing code.
Delete unused variables.
* thumbemu (handle_v6_thumb_insn): Delete unused variable Rd.
Move Rm variable into switch cases.
Add tracing code.
* armcopro.c (XScale_cp15_init): Add a return value.
(XScale_cp13_init): Likewise.
(XScale_cp14_init): Likewise.
(XScale_cp15_LDC): Delete unused function.
(XScale_cp15_STC): Likewise.
* maverick.c: Delete comment inside comment.
(DSPInit): Delete unused function.
(DSPMCR4): Fix compile time warning about missing parenthesis.
(DSPMCR5): Likewise.
(DSPCDP6): Delete unused variable opcode2.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arm.sim.patch
Type: text/x-patch
Size: 15217 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20140314/f00f8dea/attachment.bin>
More information about the Gdb-patches
mailing list