gdb.info: OpenRISC 1000

Go forward to PA
Go backward to MIPS Embedded
Go up to Embedded Processors
Go to the top op gdb

OpenRISC 1000

See OR1k Architecture document (`www.opencores.org') for more
information about platform and commands.
`target jtag jtag://HOST:PORT'
     Connects to remote JTAG server.  JTAG remote server can be either
     an or1ksim or JTAG server, connected via parallel port to the
     board.
     Example: `target jtag jtag://localhost:9999'
`or1ksim COMMAND'
     If connected to `or1ksim' OpenRISC 1000 Architectural Simulator,
     proprietary commands can be executed.
`info or1k spr'
     Displays spr groups.
`info or1k spr GROUP'
`info or1k spr GROUPNO'
     Displays register names in selected group.
`info or1k spr GROUP REGISTER'
`info or1k spr REGISTER'
`info or1k spr GROUPNO REGISTERNO'
`info or1k spr REGISTERNO'
     Shows information about specified spr register.
`spr GROUP REGISTER VALUE'
`spr REGISTER VALUE'
`spr GROUPNO REGISTERNO VALUE'
`spr REGISTERNO VALUE'
     Writes VALUE to specified spr register.
   Some implementations of OpenRISC 1000 Architecture also have
hardware trace.  It is very similar to GDB trace, except it does not
interfere with normal program execution and is thus much faster.
Hardware breakpoints/watchpoint triggers can be set using:
`$LEA/$LDATA'
     Load effective address/data
`$SEA/$SDATA'
     Store effective address/data
`$AEA/$ADATA'
     Access effective address ($SEA or $LEA) or data ($SDATA/$LDATA)
`$FETCH'
     Fetch data
   When triggered, it can capture low level data, like: `PC', `LSEA',
`LDATA', `SDATA', `READSPR', `WRITESPR', `INSTR'.
   `htrace' commands:
`hwatch CONDITIONAL'
     Set hardware watchpoint on combination of Load/Store Effecive
     Address(es) or Data.  For example:

`hwatch ($LEA == my_var) && ($LDATA < 50) || ($SEA == my_var) && ($SDATA >= 50)'

`hwatch ($LEA == my_var) && ($LDATA < 50) || ($SEA == my_var) && ($SDATA >= 50)'

`htrace info'
     Display information about current HW trace configuration.
`htrace trigger CONDITIONAL'
     Set starting criteria for HW trace.
`htrace qualifier CONDITIONAL'
     Set acquisition qualifier for HW trace.
`htrace stop CONDITIONAL'
     Set HW trace stopping criteria.
`htrace record [DATA]*'
     Selects the data to be recorded, when qualifier is met and HW
     trace was triggered.
`htrace enable'
`htrace disable'
     Enables/disables the HW trace.
`htrace rewind [FILENAME]'
     Clears currently recorded trace data.
     If filename is specified, new trace file is made and any newly
     collected data will be written there.
`htrace print [START [LEN]]'
     Prints trace buffer, using current record configuration.
`htrace mode continuous'
     Set continuous trace mode.
`htrace mode suspend'
     Set suspend trace mode.