* Fix PR1659
@ 2005-09-28 7:41 Alan Modra
2005-10-02 22:27 ` Daniel Jacobowitz
0 siblings, 1 reply; 4+ messages in thread
From: Alan Modra @ 2005-09-28 7:41 UTC (permalink / raw)
To: gdb-patches
Obvious fixes. OK to apply?
PR 1659
* rs6000-tdep.c (rs6000_push_dummy_call): Correct size of
backchain write.
(rs6000_convert_from_func_ptr_addr): Correct comment
Index: gdb/rs6000-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/rs6000-tdep.c,v
retrieving revision 1.243
diff -u -p -r1.243 rs6000-tdep.c
--- gdb/rs6000-tdep.c 19 Sep 2005 17:38:03 -0000 1.243
+++ gdb/rs6000-tdep.c 28 Sep 2005 07:36:48 -0000
@@ -1629,8 +1629,8 @@ ran_out_of_registers_for_arguments:
regcache_raw_write_signed (regcache, SP_REGNUM, sp);
/* Set back chain properly. */
- store_unsigned_integer (tmp_buffer, 4, saved_sp);
- write_memory (sp, tmp_buffer, 4);
+ store_unsigned_integer (tmp_buffer, wordsize, saved_sp);
+ write_memory (sp, tmp_buffer, wordsize);
/* Point the inferior function call's return address at the dummy's
breakpoint. */
@@ -2241,13 +2241,13 @@ rs6000_create_inferior (int pid)
Usually a function pointer's representation is simply the address
of the function. On the RS/6000 however, a function pointer is
- represented by a pointer to a TOC entry. This TOC entry contains
+ represented by a pointer to an OPD entry. This OPD entry contains
three words, the first word is the address of the function, the
second word is the TOC pointer (r2), and the third word is the
static chain value. Throughout GDB it is currently assumed that a
function pointer contains the address of the function, which is not
easy to fix. In addition, the conversion of a function address to
- a function pointer would require allocation of a TOC entry in the
+ a function pointer would require allocation of an OPD entry in the
inferior's memory space, with all its drawbacks. To be able to
call C++ virtual methods in the inferior (which are called via
function pointers), find_function_addr uses this function to get the
--
Alan Modra
IBM OzLabs - Linux Technology Centre
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Fix PR1659
2005-09-28 7:41 Fix PR1659 Alan Modra
@ 2005-10-02 22:27 ` Daniel Jacobowitz
2005-10-06 0:39 ` Alan Modra
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Jacobowitz @ 2005-10-02 22:27 UTC (permalink / raw)
To: Alan Modra; +Cc: gdb-patches
On Wed, Sep 28, 2005 at 05:11:18PM +0930, Alan Modra wrote:
> Obvious fixes. OK to apply?
>
> PR 1659
> * rs6000-tdep.c (rs6000_push_dummy_call): Correct size of
> backchain write.
> (rs6000_convert_from_func_ptr_addr): Correct comment
I can't get at gnatsweb at the moment to read the PR, but the fix
is definitely obvious. OK.
--
Daniel Jacobowitz
CodeSourcery, LLC
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Fix PR1659
2005-10-02 22:27 ` Daniel Jacobowitz
@ 2005-10-06 0:39 ` Alan Modra
2005-10-06 0:41 ` Daniel Jacobowitz
0 siblings, 1 reply; 4+ messages in thread
From: Alan Modra @ 2005-10-06 0:39 UTC (permalink / raw)
To: gdb-patches
On Sun, Oct 02, 2005 at 06:27:32PM -0400, Daniel Jacobowitz wrote:
> On Wed, Sep 28, 2005 at 05:11:18PM +0930, Alan Modra wrote:
> > Obvious fixes. OK to apply?
> >
> > PR 1659
> > * rs6000-tdep.c (rs6000_push_dummy_call): Correct size of
> > backchain write.
> > (rs6000_convert_from_func_ptr_addr): Correct comment
>
> I can't get at gnatsweb at the moment to read the PR, but the fix
> is definitely obvious. OK.
Applied. Would someone please close the bug report? I don't have
gnatsweb access.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Fix PR1659
2005-10-06 0:39 ` Alan Modra
@ 2005-10-06 0:41 ` Daniel Jacobowitz
0 siblings, 0 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2005-10-06 0:41 UTC (permalink / raw)
To: gdb-patches
On Thu, Oct 06, 2005 at 10:09:45AM +0930, Alan Modra wrote:
> On Sun, Oct 02, 2005 at 06:27:32PM -0400, Daniel Jacobowitz wrote:
> > On Wed, Sep 28, 2005 at 05:11:18PM +0930, Alan Modra wrote:
> > > Obvious fixes. OK to apply?
> > >
> > > PR 1659
> > > * rs6000-tdep.c (rs6000_push_dummy_call): Correct size of
> > > backchain write.
> > > (rs6000_convert_from_func_ptr_addr): Correct comment
> >
> > I can't get at gnatsweb at the moment to read the PR, but the fix
> > is definitely obvious. OK.
>
> Applied. Would someone please close the bug report? I don't have
> gnatsweb access.
Sure, done.
--
Daniel Jacobowitz
CodeSourcery, LLC
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-10-06 0:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-28 7:41 Fix PR1659 Alan Modra
2005-10-02 22:27 ` Daniel Jacobowitz
2005-10-06 0:39 ` Alan Modra
2005-10-06 0:41 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox