aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorThiago Jung Bauermann <bauerman@br.ibm.com>2007-10-15 20:20:08 +0000
committerThiago Jung Bauermann <bauerman@br.ibm.com>2007-10-15 20:20:08 +0000
commit6a16c02972b9ffa9d5b489868560a9543beca0db (patch)
tree19e922dbb117760c35cd45de50d8ec30fe0e13ef /gdb
parentd71340b87391e3dba1f40f101c18941a2d9f6d0a (diff)
downloadgdb-6a16c02972b9ffa9d5b489868560a9543beca0db.zip
gdb-6a16c02972b9ffa9d5b489868560a9543beca0db.tar.gz
gdb-6a16c02972b9ffa9d5b489868560a9543beca0db.tar.bz2
* rs6000-tdep.c (skip_prologue): Restore comment with
function description to its proper place.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/rs6000-tdep.c46
2 files changed, 28 insertions, 23 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 18607ed..ac6f3e2 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2007-10-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
+
+ * rs6000-tdep.c (skip_prologue): Restore comment with
+ function description to its proper place.
+
2007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
* NEWS: Mention gdbserver PowerPC improvements.
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index 4b43bcf..379272a 100644
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -974,29 +974,6 @@ rs6000_software_single_step (struct frame_info *frame)
}
-/* 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)) \
@@ -1108,6 +1085,29 @@ bl_to_blrl_insn_p (CORE_ADDR pc, int insn)
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)
{