From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6414 invoked by alias); 11 Jul 2002 05:13:37 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 6407 invoked from network); 11 Jul 2002 05:13:36 -0000 Received: from unknown (HELO hotmail.com) (64.4.15.223) by sources.redhat.com with SMTP; 11 Jul 2002 05:13:36 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 10 Jul 2002 22:13:36 -0700 Received: from 203.179.167.4 by lw10fd.law10.hotmail.msn.com with HTTP; Thu, 11 Jul 2002 05:13:35 GMT X-Originating-IP: [203.179.167.4] From: =?iso-2022-jp?B?GyRCJD8kSiQrGyhCIBskQiRfJFsbKEI=?= To: gdb@sources.redhat.com Bcc: Subject: About the breakpoint for arm-linux(ARM920T) Date: Wed, 10 Jul 2002 22:13:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp; format=flowed Message-ID: X-OriginalArrivalTime: 11 Jul 2002 05:13:36.0345 (UTC) FILETIME=[B5B52490:01C22899] X-SW-Source: 2002-07/txt/msg00114.txt.bz2 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/