[prev in list] [next in list] [prev in thread] [next in thread]
List: linuxppc-embedded
Subject: Re: ppc/powerpc, remote debugging (ptrace), floating point variables
From: Kumar Gala <galak () kernel ! crashing ! org>
Date: 2007-08-29 22:31:14
Message-ID: 35461E70-20B4-4459-A76A-9519DCCE310A () kernel ! crashing ! org
[Download RAW message or body]
On Aug 28, 2007, at 4:40 AM, Visser, Udo RD-IS-E23 wrote:
>
> Hello world, ;-)
>
> when stepping through my own software, which is using floating
> point variables, gdb showed weird results (mostly NANīs) for these
> variables. Running the software without gdb did not show any
> problems. The software is compiled with floating point instructions
> and the results (without gdb) are OK.
>
> My setup:
>
> MPC8349 target, "home grown", much like the MPC8349EMDS, running
> 2.6.16 (ppc)
> GDB, gdbserver 6.3 connected via ethernet with my Linux Host.
>
>
> What I did to get rid of the described problem:
>
> In module: arch/powerpc/kernel/process.c
> In function: void flush_fp_to_thread(struct tast_struct *tsk)
>
> I changed the line: giveup_fpu(current);
> to: giveup_fpu(tsk);
>
>
> Now my questions: Has anybody else had such problems?
> Have I found a bug, or will I encounter any yet
> unknown problems in the near future?
>
> I would appreciate any comment on my changes, especially from the
> maintainers.
I have a patch to fix just this issue.
take a look at:
http://patchwork.ozlabs.org/linuxppc/patch?id=13219
- k
_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic