Dear Jacobowitz:
I have had a try according to your approach, things
has become
better, but some fatal problem has come.
In our debug solution, If I want to debug a program
named
example.out, then first I must run simulator with -g option
to make it
like a gdbserver:
PACDSPISS -g example.out (PACDSPISS is our
simulator)
The simulator then will listening on port 2002.
( this port number 2002 has been hardcoded within
simulator and
there is no way to change it, I don't have sourcecode).
If I run this simulator on another terminal
PACDSPISS -g another.out, it will not work
[wangjiong b1sys1 ~]$ PACDSPISS -g another.out
PACDSPv31ISS Version:v3.3d (Build:20061117)
Waiting for connection from GDB. (timeout after 60
seconds)
PACDSP GDB utility uses socket...
GDB utility can not bind to TCP 2002!! Abort!
There should only be one copy of this simultor
running, but
dejagnu environment will try to run many copy of the
simultor so it can
not work.
Wish any advices
Thanks.
Wang Jiong
tel:2254
|