[Vm-dev] NoDbgRegParms "Fix" testing
Eliot Miranda
eliot.miranda at gmail.com
Wed Apr 1 04:18:35 UTC 2015
Tim,
the way I'd test it is a) look at the preprocessed output via -E to
check that the attributes were included in the souerce, and b) I'd open the
executable in gdb, disassemble some of the funcitons with the attribute
that take arguments and look at the disassembly to verify that the
functions take their arguments from the stack and not from registers. I
might then try and run the VM under gdb, put a breakpoint some where in the
VM (or just interrupt it after it ran for a while) and then try and call
one of the funcitons in a suitable state. Of course getting the VM to a
suitable state and knowing which function to call is not trivial. So
better is probably looking at the disassembly between an Assert compile
(-O1) with the attributes and an Assert compile without the attributes.
On Tue, Mar 31, 2015 at 5:09 AM, gettimothy <gettimothy at zoho.com> wrote:
>
> @Tim
>
> Is there a way to test the 'fix' I emailed about several weeks ago where I
> wrote putting the empty #define NoDbgRegParms in config.h.in "fixes" the
> problem?
>
> Running the cog --version command shows an Assert VM, but I wonder if that
> is just an artefact and what is really there is a production VM and the
> __attribute__((regparm(0)))__ functiona attributes where never put in place.
>
>
> gdb?
> something else?
>
> thx.
>
> tty
>
>
>
>
>
>
>
>
>
>
--
best,
Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20150331/d6866d14/attachment.htm
More information about the Vm-dev
mailing list