List Info

Thread: A question about dejagnu for something like gdbsever




A question about dejagnu for something like gdbsever
user name
2007-09-21 04:19:33
Dear all:

        Recently I am constructing dejagnu environment for
pac-dsp-gdb, 
whick is a gdb target for a vliw chip. We have write a
simulator, and our 
debug solution is 
       something like gdbserver.

        When debug a program first you should run the
simulator with -g 
option, for example we want to debug a executable file named
example.out, 
then you should go through the following step:
 
        (PACDSPv31ISS is our simulator's name, pp_intrnl_4
is a tool for 
encapsulating the gdb remote protocal)
 
        1.  [wangjiongb1sys1 bin]$ ./PACDSPv31ISS -g
~/example.out
                PACDSPv31ISS Version:v3.3d (Build:20070410)

                Waiting for connection from GDB. (timeout
after 60 
seconds)
                PACDSP GDB utility uses socket...

        2.  [wangjiongb1sys1 bin]$ ./pacdsp-elf-gdb
~/example.out
             GNU gdb 6.1.1 (build 20070320 for PACDSP 3.0)
             Copyright 2004 Free Software Foundation, Inc.
             GDB is free software, covered by the GNU
General Public 
License, and you are
             welcome to change it and/or distribute copies
of it under 
certain conditions.
             Type "show copying" to see the
conditions.
             There is absolutely no warranty for GDB.  Type
"show 
warranty" for details.
             This GDB was configured as
"--host=i686-pc-linux-gnu 
--target=pacdsp-elf"...
             (gdb) target remote | ./pp_intrnl_4 localhost
            Remote debugging using | ./pp_intrnl_4
localhost
            0x00000000 in A_1_3 ()
            (gdb)

      How should I write the target_board file for this
situation, wish 
your help .
 
Wang Jiong 

  tel:2254

Re: A question about dejagnu for something like gdbsever
country flaguser name
United States
2007-09-21 06:16:41
On Fri, Sep 21, 2007 at 05:19:33PM +0800, ???? wrote:
>       How should I write the target_board file for this
situation, wish 
> your help .

This is the same as running gdbserver, just with different
commands.
You should be able to copy gdbserver-support.exp and
gdbserver.exp
from the GDB source and make the copies use your tools
instead.

This may be helpful:

  http://sourceware.org/gdb/wiki/Native_gdbserver_testing

-- 
Daniel Jacobowitz
CodeSourcery

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )