* About the breakpoint for arm-linux(ARM920T)
@ 2002-07-10 22:13 たなか みほ
2002-07-11 5:53 ` Daniel Jacobowitz
0 siblings, 1 reply; 4+ messages in thread
From: たなか みほ @ 2002-07-10 22:13 UTC (permalink / raw)
To: gdb
Hi all,
I'am trying to remote debugging with gdbserver.
Target is arm-linux for ARM920T.
Using environment is the following.
+------------------+ +--------------------+
| HostPC | TCP/IP | target board |
| (i386 RedHat7.2) |------------------- | (ARM920T arm-linux)|
| gdb | | gdbserver |
+------------------+ +--------------------+
For remote debugging, I tried to compile gdb and gdbserver(gdb-5.2)
following the README and it was success.
Then I started to remote debugging .
The gdbserver attached debugging program and stopped at first instruction
of debugging program.
But when I set a breakpoint and executed the debugging program, SIGILL
occurred in the address where I set a breakpoint.
So checked the instruction in that address.
There are "0xe7 0xff 0xde 0xfe".
The instruction "0xe7 0xff 0xde 0xfe" are the breakpoint instruction for
arm-linux?
and...
in gdb/gdb/arm-linux-tdep.c
line 38
/* Under ARM GNU/Linux the traditional way of performing a breakpoint
is to execute a particular software interrupt, rather than use a
particular undefined instruction to provoke a trap. Upon exection
of the software interrupt the kernel stops the inferior with a
SIGTRAP, and wakes the debugger. Since ARM GNU/Linux is little
endian, and doesn't support Thumb at the moment we only override
the ARM little-endian breakpoint. */
static const char arm_linux_arm_le_breakpoint[] = {0x01,0x00,0x9f,0xef};
-----------------
How to use this "arm_linux_arm_le_breakpoint" ?
I think.. if I can use this breakpoint instruction ,the debugging program
will stop at breakpoint which I set.
Please teach me.
_________________________________________________________________
最新のファイナンス情報とライフプランのアドバイス MSN マネー
http://money.msn.co.jp/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: About the breakpoint for arm-linux(ARM920T)
2002-07-10 22:13 About the breakpoint for arm-linux(ARM920T) たなか みほ
@ 2002-07-11 5:53 ` Daniel Jacobowitz
0 siblings, 0 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2002-07-11 5:53 UTC (permalink / raw)
To: ?$B$?$J$+ ?$B$_$[; +Cc: gdb
On Thu, Jul 11, 2002 at 02:13:35PM +0900, ?$B$?$J$+ ?$B$_$[ wrote:
>
> Hi all,
>
> I'am trying to remote debugging with gdbserver.
> Target is arm-linux for ARM920T.
>
> Using environment is the following.
>
> +------------------+ +--------------------+
> | HostPC | TCP/IP | target board |
> | (i386 RedHat7.2) |------------------- | (ARM920T arm-linux)|
> | gdb | | gdbserver |
> +------------------+ +--------------------+
>
> For remote debugging, I tried to compile gdb and gdbserver(gdb-5.2)
> following the README and it was success.
> Then I started to remote debugging .
> The gdbserver attached debugging program and stopped at first instruction
> of debugging program.
>
> But when I set a breakpoint and executed the debugging program, SIGILL
> occurred in the address where I set a breakpoint.
> So checked the instruction in that address.
> There are "0xe7 0xff 0xde 0xfe".
>
> The instruction "0xe7 0xff 0xde 0xfe" are the breakpoint instruction for
> arm-linux?
No, that's the breakpoint instruction for arm-elf, which is different.
How did you configure GDB?
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: About the breakpoint for arm-linux(ARM920T)
@ 2002-07-12 19:38 Tanaka Miho
0 siblings, 0 replies; 4+ messages in thread
From: Tanaka Miho @ 2002-07-12 19:38 UTC (permalink / raw)
To: drow; +Cc: gdb
Hello.
Yesterday,I missed writing.
Sorry.
> > The instruction "0xe7 0xff 0xde 0xfe" are the breakpoint instruction
for
> > arm-linux?
>
>No, that's the breakpoint instruction for arm-elf, which is different.
>
>How did you configure GDB?
>
>--
>Daniel Jacobowitz Carnegie Mellon University
>MontaVista Software Debian GNU/Linux Developer
Correctly,
I did configure as follows...
-- GDB for host ---
1. $ tar zxvf gdb-5.2.tar.gz
2. $ mkdir /home/tanaka/work
3. $ cd /home/tanaka/work
4. $ ./../gdb-5.2/configure --target=arm-linux --host=i586-linux
--prefix=/tools
5. $ make
6. $ su
7. # make install
-- GDBserver ---
1. $ export CC=arm-linux-gcc <--- cross compiler name
2. $ mkdir /home/tanaka/work_server
3. $ cd /home/tanaka/work_server
4. $ ./../gdb-5.2/gdb/gdbserver/configure arm-linux
5. $ make
This process is not correct?
_________________________________________________________________
会員登録は無料・充実した出品アイテムなら MSN オークション
http://auction.msn.co.jp/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: About the breakpoint for arm-linux(ARM920T)
@ 2002-07-11 17:57 TANAKA MIHO
0 siblings, 0 replies; 4+ messages in thread
From: TANAKA MIHO @ 2002-07-11 17:57 UTC (permalink / raw)
To: drow; +Cc: gdb
Hello.
Thanks for your reply.
>From: Daniel Jacobowitz <drow@mvista.com>
>To: "?$B$?$J$+ ?$B$_$[" <kamakuran@hotmail.com>
>CC: gdb@sources.redhat.com
>Subject: Re: About the breakpoint for arm-linux(ARM920T)
>Date: Thu, 11 Jul 2002 08:52:53 -0400
>
>On Thu, Jul 11, 2002 at 02:13:35PM +0900, ?$B$?$J$+ ?$B$_$[ wrote:
> >
> > Hi all,
> >
> > I'am trying to remote debugging with gdbserver.
> > Target is arm-linux for ARM920T.
> >
> > Using environment is the following.
> >
> > +------------------+ +--------------------+
> > | HostPC | TCP/IP | target board |
> > | (i386 RedHat7.2) |------------------- | (ARM920T arm-linux)|
> > | gdb | | gdbserver |
> > +------------------+ +--------------------+
> >
> > For remote debugging, I tried to compile gdb and gdbserver(gdb-5.2)
> > following the README and it was success.
> > Then I started to remote debugging .
> > The gdbserver attached debugging program and stopped at first
instruction
> > of debugging program.
> >
> > But when I set a breakpoint and executed the debugging program, SIGILL
> > occurred in the address where I set a breakpoint.
> > So checked the instruction in that address.
> > There are "0xe7 0xff 0xde 0xfe".
> >
> > The instruction "0xe7 0xff 0xde 0xfe" are the breakpoint instruction
for
> > arm-linux?
>
>No, that's the breakpoint instruction for arm-elf, which is different.
>
>How did you configure GDB?
>
>--
>Daniel Jacobowitz Carnegie Mellon University
>MontaVista Software Debian GNU/Linux Developer
I did configure as follows...
-- GDB for host ---
1. $ tar zxvf gdb-5.2.tar.gz
2. $ mkdir /home/tanaka/work
3. $ cd /home/tanaka/work
4. $ ./../gdb-5.2/configure --target=arm-linux --host=i586-linux
--prefix=/tools
5. $ make
6. $ su
7. # make install
-- GDBserver ---
1. $ mkdir /home/tanaka/work_server
2. $ cd /home/tanaka/work_server
3. $ ./../gdb-5.2/gdb/gdbserver/configure arm-linux
4. $ make
5. $ su
6. # make install
I missed doing configure?
_________________________________________________________________
ハイセンスな商品を気軽に購入 MSN ショッピング http://shopping.msn.co.jp/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-07-13 2:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-10 22:13 About the breakpoint for arm-linux(ARM920T) たなか みほ
2002-07-11 5:53 ` Daniel Jacobowitz
2002-07-11 17:57 TANAKA MIHO
2002-07-12 19:38 Tanaka Miho
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox