beautypg.com

Alternate approach, Using another port on the same machine, Using two separate machines – AMD SimNow Simulator 4.4.4 User Manual

Page 165: Linux host serial port communication

background image

AMD Confidential

User Manual

September 12

th

, 2008

Chapter 11: Debug Interface

153

Run the following automation command:

1 simnow> shell.gdb

Start gdb

gdb> set architecture i386:x86-64
gdb> target remote:2222

11.2.2 Alternate Approach

This assumes you are running the simualtor and gdb on the same machine.

Start the simulator

Run the following automation command:

1 simnow> shell.gdb

Add the following to your .gdbinit file

define simnow

set architecture i386:x86-64

target remote:2222

end

Start gdb

gdb> simnow

11.2.3 Using Another Port on the Same Machine

The simualtor defaults to using port 2222 but can be directed to use another port.

Start the simulator

Run the following automation command:

1 simnow> shell.gdb 2233

Start gdb

gdb> set architecture i386:x86-64
gdb> target remote:2233

11.2.4 Using Two Separate Machines

Start the simualtor on simnow-host

Run the following automation command:

1 simnow> shell.gdb

Start gdb on gdb-host

gdb> set architecture i386:x86-64
gdb> target remote simnow-host:2222

11.3 Linux Host Serial Port Communication

When running the simulator on a Linux host, the serial port is able to communicate with
external host applications via either a named-pipe or the host serial port. If the user has
configuired named-pipe communication, the simualtor will set up an input pipe and an