From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3085 invoked by alias); 23 Sep 2007 21:59:35 -0000 Received: (qmail 3075 invoked by uid 22791); 23 Sep 2007 21:59:35 -0000 X-Spam-Check-By: sourceware.org Received: from igw1.br.ibm.com (HELO igw1.br.ibm.com) (32.104.18.24) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 23 Sep 2007 21:59:33 +0000 Received: from mailhub1.br.ibm.com (mailhub1 [9.18.232.109]) by igw1.br.ibm.com (Postfix) with ESMTP id E8E571480C8 for ; Sun, 23 Sep 2007 18:40:47 -0300 (BRT) Received: from d24av02.br.ibm.com (d24av02.br.ibm.com [9.18.232.47]) by mailhub1.br.ibm.com (8.13.8/8.13.8/NCO v8.5) with ESMTP id l8NLxUNF2998440 for ; Sun, 23 Sep 2007 18:59:30 -0300 Received: from d24av02.br.ibm.com (loopback [127.0.0.1]) by d24av02.br.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l8NLxUAr030374 for ; Sun, 23 Sep 2007 18:59:30 -0300 Received: from hactar.local ([9.18.201.110]) by d24av02.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l8NLxTia030367 for ; Sun, 23 Sep 2007 18:59:30 -0300 Subject: [patch] restore skip_prologue comments From: Thiago Jung Bauermann To: GDB Patches Content-Type: multipart/mixed; boundary="=-OmznVL73uCkeInb4w91b" Date: Sun, 23 Sep 2007 21:59:00 -0000 Message-Id: <1190584767.8479.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-09/txt/msg00331.txt.bz2 --=-OmznVL73uCkeInb4w91b Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-length: 227 Hi, For some reason, the comment explaining skip_prologue in rs6000-tdep.c was separated from the function. This patch restores it to its due place. -- []'s Thiago Jung Bauermann Software Engineer IBM Linux Technology Center --=-OmznVL73uCkeInb4w91b Content-Disposition: attachment; filename=rs6000-skip-prologue-comment.patch Content-Type: text/x-patch; name=rs6000-skip-prologue-comment.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-length: 3123 2007-09-23 Thiago Jung Bauermann * rs6000-tdep.c (skip_prologue): Restore comment with function description to its proper place. Index: src-git/gdb/rs6000-tdep.c =================================================================== --- src-git.orig/gdb/rs6000-tdep.c 2007-09-12 23:33:14.000000000 -0300 +++ src-git/gdb/rs6000-tdep.c 2007-09-12 23:34:14.000000000 -0300 @@ -943,29 +943,6 @@ rs6000_software_single_step (struct fram } -/* return pc value after skipping a function prologue and also return - information about a function frame. - - in struct rs6000_framedata fdata: - - frameless is TRUE, if function does not have a frame. - - nosavedpc is TRUE, if function does not save %pc value in its frame. - - offset is the initial size of this stack frame --- the amount by - which we decrement the sp to allocate the frame. - - saved_gpr is the number of the first saved gpr. - - saved_fpr is the number of the first saved fpr. - - saved_vr is the number of the first saved vr. - - saved_ev is the number of the first saved ev. - - alloca_reg is the number of the register used for alloca() handling. - Otherwise -1. - - gpr_offset is the offset of the first saved gpr from the previous frame. - - fpr_offset is the offset of the first saved fpr from the previous frame. - - vr_offset is the offset of the first saved vr from the previous frame. - - ev_offset is the offset of the first saved ev from the previous frame. - - lr_offset is the offset of the saved lr - - cr_offset is the offset of the saved cr - - vrsave_offset is the offset of the saved vrsave register - */ - #define SIGNED_SHORT(x) \ ((sizeof (short) == 2) \ ? ((int)(short)(x)) \ @@ -1077,6 +1054,29 @@ bl_to_blrl_insn_p (CORE_ADDR pc, int ins return 0; } +/* return pc value after skipping a function prologue and also return + information about a function frame. + + in struct rs6000_framedata fdata: + - frameless is TRUE, if function does not have a frame. + - nosavedpc is TRUE, if function does not save %pc value in its frame. + - offset is the initial size of this stack frame --- the amount by + which we decrement the sp to allocate the frame. + - saved_gpr is the number of the first saved gpr. + - saved_fpr is the number of the first saved fpr. + - saved_vr is the number of the first saved vr. + - saved_ev is the number of the first saved ev. + - alloca_reg is the number of the register used for alloca() handling. + Otherwise -1. + - gpr_offset is the offset of the first saved gpr from the previous frame. + - fpr_offset is the offset of the first saved fpr from the previous frame. + - vr_offset is the offset of the first saved vr from the previous frame. + - ev_offset is the offset of the first saved ev from the previous frame. + - lr_offset is the offset of the saved lr + - cr_offset is the offset of the saved cr + - vrsave_offset is the offset of the saved vrsave register + */ + static CORE_ADDR skip_prologue (CORE_ADDR pc, CORE_ADDR lim_pc, struct rs6000_framedata *fdata) { --=-OmznVL73uCkeInb4w91b--