From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11197 invoked by alias); 17 Nov 2005 20:13:57 -0000 Received: (qmail 11187 invoked by uid 22791); 17 Nov 2005 20:13:51 -0000 Received: from mailgw2a.lmco.com (HELO mailgw2a.lmco.com) (192.91.147.7) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 17 Nov 2005 20:13:51 +0000 Received: from emss01g01.ems.lmco.com (relay1.ems.lmco.com [129.197.181.54]) by mailgw2a.lmco.com (8.12.10/8.12.10) with ESMTP id jAHKDnle018412 for ; Thu, 17 Nov 2005 15:13:49 -0500 (EST) Received: from CONVERSION-DAEMON.lmco.com by lmco.com (PMDF V6.1-1X6 #30875) id <0IQ400D01871UE@lmco.com> for gdb@sources.redhat.com; Thu, 17 Nov 2005 12:13:49 -0800 (PST) Received: from EMSS01I00.us.lmco.com ([129.197.181.70]) by lmco.com (PMDF V6.1-1X6 #30875) with ESMTP id <0IQ400G4V870B6@lmco.com> for gdb@sources.redhat.com; Thu, 17 Nov 2005 12:13:48 -0800 (PST) Received: from EMSS01M10.us.lmco.com ([129.197.181.75]) by EMSS01I00.us.lmco.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 17 Nov 2005 12:13:49 -0800 Date: Thu, 17 Nov 2005 20:13:00 -0000 From: "Newman, Sarah R" Subject: single stepping mips remote programs built with gcc 4.0 To: gdb@sources.redhat.com Message-id: <5990BE666D0436419054489CDD9D505409EE88E9@emss01m10.us.lmco.com> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT content-class: urn:content-classes:message Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2005-11/txt/msg00353.txt.bz2 Hi, I have a version of gdb from CVS on 8/29/2005. I have configured with the target as mips-elf and the host as cygwin and I am using it to connect to a remote mips system. All of my programs I am trying to run remotely have been built with GCC 4+. I am single stepping through code where part of it consists of something like the following in the disassembly listing: 00003dac : 00003dac: 24040001 li a0,1 00003db0: 08000deb j 000037ac 00003db4: 24050001 li a1,1 00003db8 : 00003db8: 3c02bd00 lui v0,0xbd00 When stopped at the beginning of the function, I can tell by looking at the remote protocol debug output that a breakpoint is being set in memory at the location of getCurrentBuffer2, not setArraySize. We suspect that this may have to do with GCC 4+ doing straight jumps to other functions and not jump and link followed by jump register to leave the function. Has anyone else encountered this or found a solution? Thank you, Sarah Newman