Debugging with GDB

Node:H8/300, Next:H8/500, Previous:ARM, Up:Embedded Processors

#### Hitachi H8/300

`target hms` dev``
  A Hitachi SH, H8/300, or H8/500 board, attached via serial line to your host. Use special commands `device` and `speed` to control the serial line and the communications speed used.
`target e7000` dev``
  E7000 emulator for Hitachi H8 and SH.
`target sh3` dev``
`target sh3e` dev``
  Hitachi SH-3 and SH-3E target systems.

When you select remote debugging to a Hitachi SH, H8/300, or H8/500 board, the `load` command downloads your program to the Hitachi board and also opens it as the current executable target for GDB on your host (like the `file` command). GDB needs to know these things to talk to your Hitachi SH, H8/300, or H8/500:

1. that you want to use `target hms`, the remote debugging interface for Hitachi microprocessors, or `target e7000`, the in-circuit emulator for the Hitachi SH and the Hitachi 300H. (`target hms` is the default when GDB is configured specifically for the Hitachi SH, H8/300, or H8/500.)
2. what serial device connects your host to your Hitachi board (the first serial device available on your host is the default).
3. what speed to use over the serial device.