From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28732 invoked by alias); 9 May 2005 03:36:38 -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 28718 invoked by uid 22791); 9 May 2005 03:36:35 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 09 May 2005 03:36:34 +0000 Received: from drow by nevyn.them.org with local (Exim 4.50) id 1DUz4J-0008DF-2h; Sun, 08 May 2005 23:36:31 -0400 Date: Mon, 09 May 2005 03:36:00 -0000 From: Daniel Jacobowitz To: Atsushi Nemoto , gdb-patches@sources.redhat.com Cc: jvh@tivo.com, gdb@sources.redhat.com Subject: Re: gdb 6.x 'next' does not work on mips-linux/mipsel-linux Message-ID: <20050509033631.GA31464@nevyn.them.org> Mail-Followup-To: Atsushi Nemoto , gdb-patches@sources.redhat.com, jvh@tivo.com, gdb@sources.redhat.com References: <20050427141714.GB10305@nevyn.them.org> <20050509.121635.85420824.nemoto@toshiba-tops.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050509.121635.85420824.nemoto@toshiba-tops.co.jp> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-05/txt/msg00099.txt.bz2 On Mon, May 09, 2005 at 12:16:35PM +0900, Atsushi Nemoto wrote: > >>>>> On Wed, 27 Apr 2005 10:17:14 -0400, Daniel Jacobowitz said: > drow> 2005-04-27 Daniel Jacobowitz > > drow> * mips-tdep.c (mips_stub_frame_sniffer): Handle .MIPS.stubs > drow> section like .plt. > > This fix still not be checked in. Is there any problem with this > patch? None; I forgot about it! Sorry. I have checked in the attached. -- Daniel Jacobowitz CodeSourcery, LLC 2005-05-08 Daniel Jacobowitz * mips-tdep.c (mips_stub_frame_sniffer): Handle .MIPS.stubs section like .plt. Index: mips-tdep.c =================================================================== RCS file: /big/fsf/rsync/src-cvs/src/gdb/mips-tdep.c,v retrieving revision 1.379 diff -u -p -r1.379 mips-tdep.c --- mips-tdep.c 17 Mar 2005 18:07:46 -0000 1.379 +++ mips-tdep.c 27 Apr 2005 14:12:21 -0000 @@ -2091,11 +2091,21 @@ static const struct frame_unwind mips_st static const struct frame_unwind * mips_stub_frame_sniffer (struct frame_info *next_frame) { + struct obj_section *s; CORE_ADDR pc = frame_pc_unwind (next_frame); + if (in_plt_section (pc, NULL)) return &mips_stub_frame_unwind; - else - return NULL; + + /* Binutils for MIPS puts lazy resolution stubs into .MIPS.stubs. */ + s = find_pc_section (pc); + + if (s != NULL + && strcmp (bfd_get_section_name (s->objfile->obfd, s->the_bfd_section), + ".MIPS.stubs") == 0) + return &mips_stub_frame_unwind; + + return NULL; } static CORE_ADDR