This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Connecting to PSIM from GDB on NT platform


Hello,

I am trying to connect to PSIM simulator from GDB. Previously installed 
ECOS 1-3-1,
cygwin,gdb5.0.1,gcc2.95.2,binutils2.1.0 on Windows NT.

 From a cygwin bash shell, entered gdb <return>. a GUI based debugger 
Window appeared.
Under file menu,selected  target settings and selected exec in target 
choice in the dialog box that came up. Back to main debug window(Source 
Window),under the view menu,clicked on console submenu. A console window 
appaeared with a gdb prompt.

Per ecos documentation,modified gdb.ini with following macro:
        define psim
        target sim -o '/iobus/pal@0xf0001000/regt 0xf0001000 32 '
        rbreak cyg_test_exit
        rbreak cyg_assert_fail
        end
then from gdb prompt in console window,tried to connect to simulator by 
issuing following
commands:
        (gdb) psim
        (gdb) target sim
        (gdb) target eabisim
        (gdb) target power-eabisim
        (gdb) target simulator
        (gdb) target psim

All of these returned a undefined target command error message.

Has anybody experiienced similar problems.Can PSIM run on NT machine

On the web, I read that the following macro should be defined in gdb.ini:
        define psimtarget sim -f 
BASE_DIR/packages/hal/powerpc/sim/v1_2_1/runtime/tree
        rbreak cyg_test_exit
        rbreak cyg_assert_fail
        end

I did not see all of that directory path on my system - in particular the 
runtime/tree portion is
missing. Does PSIM come with gdb5.0.1??

I do not know if there is a more appropriate mailing list to address my 
questions to. I could not
find one for PSIM. If there is one,please tell me.

Any comments would be greatly appreciated!



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]