Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "たなか みほ" <kamakuran@hotmail.com>
To: gdb@sources.redhat.com
Subject: About the breakpoint for arm-linux(ARM920T)
Date: Wed, 10 Jul 2002 22:13:00 -0000	[thread overview]
Message-ID: <F223Xaz5Fi071cgx6js0000d729@hotmail.com> (raw)


 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/


             reply	other threads:[~2002-07-11  5:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-10 22:13 たなか みほ [this message]
2002-07-11  5:53 ` Daniel Jacobowitz
2002-07-11 17:57 TANAKA MIHO
2002-07-12 19:38 Tanaka Miho

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=F223Xaz5Fi071cgx6js0000d729@hotmail.com \
    --to=kamakuran@hotmail.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox