* ARM VFP support
@ 2009-04-01 20:25 Matt Fischer
2009-04-01 20:38 ` Daniel Jacobowitz
0 siblings, 1 reply; 10+ messages in thread
From: Matt Fischer @ 2009-04-01 20:25 UTC (permalink / raw)
To: gdb
I'm working on an embedded Linux project, and recently had to debug
some floating-point code. It would seem that ARM's VFP co-processor
isn't currently supported in GDB on Linux, due to a lack of support in
both GDB proper as well as a lack of kernel facilities to retrieve the
appropriate register data. I did find that a patch has recently been
accepted upstream in the kernel to add the necessary ptrace()
infrastructure for it
(http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=3d1228ead618b88e8606015cbabc49019981805d),
but this is obviously quite new.
Has anyone yet attempted to add VFP support to GDB, now that the
kernel support for it exists? I'm considering trying to hack in at
least some basic register viewing support to assist in my debugging
here, but if somebody happens to already have a work-in-progress of
this I'd be interested in seeing it.
Thanks,
Matt
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: ARM VFP support
2009-04-01 20:25 ARM VFP support Matt Fischer
@ 2009-04-01 20:38 ` Daniel Jacobowitz
2009-04-01 20:41 ` Matt Fischer
2009-05-19 23:25 ` Peter Nordstrom
0 siblings, 2 replies; 10+ messages in thread
From: Daniel Jacobowitz @ 2009-04-01 20:38 UTC (permalink / raw)
To: Matt Fischer; +Cc: gdb
On Wed, Apr 01, 2009 at 03:25:46PM -0500, Matt Fischer wrote:
> Has anyone yet attempted to add VFP support to GDB, now that the
> kernel support for it exists? I'm considering trying to hack in at
> least some basic register viewing support to assist in my debugging
> here, but if somebody happens to already have a work-in-progress of
> this I'd be interested in seeing it.
CodeSourcery was working with ARM on this (way too long-standing)
limitation; that led to the ptrace patch and to GDB support.
The GDB work is in the latest Sourcery G++ releases, which does not
necessarily do you any good... it will be in Lite in a couple of weeks
too. We're not sitting on it intentionally; I just haven't had time
to separate out the patch for submission yet. Hassle me about it if
you don't hear about this again in the next couple weeks.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: ARM VFP support
2009-04-01 20:38 ` Daniel Jacobowitz
@ 2009-04-01 20:41 ` Matt Fischer
2009-05-19 23:25 ` Peter Nordstrom
1 sibling, 0 replies; 10+ messages in thread
From: Matt Fischer @ 2009-04-01 20:41 UTC (permalink / raw)
To: Matt Fischer, gdb
Ah, fantastic. Thanks for the information.
--Matt
On Wed, Apr 1, 2009 at 3:38 PM, Daniel Jacobowitz <drow@false.org> wrote:
> On Wed, Apr 01, 2009 at 03:25:46PM -0500, Matt Fischer wrote:
>> Has anyone yet attempted to add VFP support to GDB, now that the
>> kernel support for it exists? I'm considering trying to hack in at
>> least some basic register viewing support to assist in my debugging
>> here, but if somebody happens to already have a work-in-progress of
>> this I'd be interested in seeing it.
>
> CodeSourcery was working with ARM on this (way too long-standing)
> limitation; that led to the ptrace patch and to GDB support.
>
> The GDB work is in the latest Sourcery G++ releases, which does not
> necessarily do you any good... it will be in Lite in a couple of weeks
> too. We're not sitting on it intentionally; I just haven't had time
> to separate out the patch for submission yet. Hassle me about it if
> you don't hear about this again in the next couple weeks.
>
> --
> Daniel Jacobowitz
> CodeSourcery
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: ARM VFP support
2009-04-01 20:38 ` Daniel Jacobowitz
2009-04-01 20:41 ` Matt Fischer
@ 2009-05-19 23:25 ` Peter Nordstrom
2009-05-19 23:31 ` Daniel Jacobowitz
1 sibling, 1 reply; 10+ messages in thread
From: Peter Nordstrom @ 2009-05-19 23:25 UTC (permalink / raw)
To: gdb
Daniel,
Did this make it into the arm-2009q1 lite release?
-Peter
Daniel Jacobowitz-2 wrote:
>
> On Wed, Apr 01, 2009 at 03:25:46PM -0500, Matt Fischer wrote:
>> Has anyone yet attempted to add VFP support to GDB, now that the
>> kernel support for it exists? I'm considering trying to hack in at
>> least some basic register viewing support to assist in my debugging
>> here, but if somebody happens to already have a work-in-progress of
>> this I'd be interested in seeing it.
>
> CodeSourcery was working with ARM on this (way too long-standing)
> limitation; that led to the ptrace patch and to GDB support.
>
> The GDB work is in the latest Sourcery G++ releases, which does not
> necessarily do you any good... it will be in Lite in a couple of weeks
> too. We're not sitting on it intentionally; I just haven't had time
> to separate out the patch for submission yet. Hassle me about it if
> you don't hear about this again in the next couple weeks.
>
> --
> Daniel Jacobowitz
> CodeSourcery
>
>
--
View this message in context: http://www.nabble.com/ARM-VFP-support-tp22835058p23626267.html
Sent from the Sourceware - gdb list mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: ARM VFP support
2009-05-19 23:25 ` Peter Nordstrom
@ 2009-05-19 23:31 ` Daniel Jacobowitz
2009-05-20 0:31 ` Peter Nordstrom
0 siblings, 1 reply; 10+ messages in thread
From: Daniel Jacobowitz @ 2009-05-19 23:31 UTC (permalink / raw)
To: Peter Nordstrom; +Cc: gdb
On Tue, May 19, 2009 at 04:25:17PM -0700, Peter Nordstrom wrote:
>
> Daniel,
>
> Did this make it into the arm-2009q1 lite release?
Yes. And I'm still planning to post it for GDB as soon as I get a
chance :-(
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: ARM VFP support
2009-05-19 23:31 ` Daniel Jacobowitz
@ 2009-05-20 0:31 ` Peter Nordstrom
2009-05-20 13:17 ` Daniel Jacobowitz
0 siblings, 1 reply; 10+ messages in thread
From: Peter Nordstrom @ 2009-05-20 0:31 UTC (permalink / raw)
To: gdb
I'm still getting:
/scratch/maxim/arm-lite/obj-4.3-arm-none-linux-gnueabi-lite/gdb-src-2009q1-176-arm-none-linux-gnueabi-i686-mingw32/gdb/regcache.c:178:
internal-error: register_size: Assertion `regnum >= 0 && regnum <
(gdbarch_num_regs (gdbarch) + gdbarch_num_pseudo_regs (gdbarch))' failed.
any ideas?
Daniel Jacobowitz-2 wrote:
>
>
>> Did this make it into the arm-2009q1 lite release?
>
> Yes. And I'm still planning to post it for GDB as soon as I get a
> chance :-(
>
> --
> Daniel Jacobowitz
> CodeSourcery
>
>
--
View this message in context: http://www.nabble.com/ARM-VFP-support-tp22835058p23626852.html
Sent from the Sourceware - gdb list mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: ARM VFP support
2009-05-20 0:31 ` Peter Nordstrom
@ 2009-05-20 13:17 ` Daniel Jacobowitz
2009-05-28 21:31 ` Peter Nordstrom
0 siblings, 1 reply; 10+ messages in thread
From: Daniel Jacobowitz @ 2009-05-20 13:17 UTC (permalink / raw)
To: Peter Nordstrom; +Cc: gdb
On Tue, May 19, 2009 at 05:31:48PM -0700, Peter Nordstrom wrote:
>
> I'm still getting:
>
> /scratch/maxim/arm-lite/obj-4.3-arm-none-linux-gnueabi-lite/gdb-src-2009q1-176-arm-none-linux-gnueabi-i686-mingw32/gdb/regcache.c:178:
> internal-error: register_size: Assertion `regnum >= 0 && regnum <
> (gdbarch_num_regs (gdbarch) + gdbarch_num_pseudo_regs (gdbarch))' failed.
>
> any ideas?
Do you need a target to reproduce this bug? If not, can you send me
the binary?
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: ARM VFP support
2009-05-20 13:17 ` Daniel Jacobowitz
@ 2009-05-28 21:31 ` Peter Nordstrom
2009-05-28 22:36 ` Peter Nordstrom
0 siblings, 1 reply; 10+ messages in thread
From: Peter Nordstrom @ 2009-05-28 21:31 UTC (permalink / raw)
To: gdb
Yes, target is needed. I'm running on a Marvell Feroceon.
The problem seems to be that mach gets set to bfd_mach_arm_unknown instead
of bfd_mach_arm_5TE.
Daniel Jacobowitz-2 wrote:
>
> On Tue, May 19, 2009 at 05:31:48PM -0700, Peter Nordstrom wrote:
>>
>> I'm still getting:
>>
>> /scratch/maxim/arm-lite/obj-4.3-arm-none-linux-gnueabi-lite/gdb-src-2009q1-176-arm-none-linux-gnueabi-i686-mingw32/gdb/regcache.c:178:
>> internal-error: register_size: Assertion `regnum >= 0 && regnum <
>> (gdbarch_num_regs (gdbarch) + gdbarch_num_pseudo_regs (gdbarch))' failed.
>>
>> any ideas?
>
> Do you need a target to reproduce this bug? If not, can you send me
> the binary?
>
> --
> Daniel Jacobowitz
> CodeSourcery
>
>
--
View this message in context: http://www.nabble.com/ARM-VFP-support-tp22835058p23770517.html
Sent from the Sourceware - gdb list mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: ARM VFP support
2009-05-28 21:31 ` Peter Nordstrom
@ 2009-05-28 22:36 ` Peter Nordstrom
2009-05-29 16:42 ` Peter Nordstrom
0 siblings, 1 reply; 10+ messages in thread
From: Peter Nordstrom @ 2009-05-28 22:36 UTC (permalink / raw)
To: gdb
Playing around with the target description files make the assertion go away,
but not able to read anything useful.
Peter Nordstrom wrote:
>
> Yes, target is needed. I'm running on a Marvell Feroceon.
>
> The problem seems to be that mach gets set to bfd_mach_arm_unknown instead
> of bfd_mach_arm_5TE.
>
>
> Daniel Jacobowitz-2 wrote:
>>
>> On Tue, May 19, 2009 at 05:31:48PM -0700, Peter Nordstrom wrote:
>>>
>>> I'm still getting:
>>>
>>> /scratch/maxim/arm-lite/obj-4.3-arm-none-linux-gnueabi-lite/gdb-src-2009q1-176-arm-none-linux-gnueabi-i686-mingw32/gdb/regcache.c:178:
>>> internal-error: register_size: Assertion `regnum >= 0 && regnum <
>>> (gdbarch_num_regs (gdbarch) + gdbarch_num_pseudo_regs (gdbarch))'
>>> failed.
>>>
>>> any ideas?
>>
>> Do you need a target to reproduce this bug? If not, can you send me
>> the binary?
>>
>> --
>> Daniel Jacobowitz
>> CodeSourcery
>>
>>
>
>
--
View this message in context: http://www.nabble.com/ARM-VFP-support-tp22835058p23771374.html
Sent from the Sourceware - gdb list mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: ARM VFP support
2009-05-28 22:36 ` Peter Nordstrom
@ 2009-05-29 16:42 ` Peter Nordstrom
0 siblings, 0 replies; 10+ messages in thread
From: Peter Nordstrom @ 2009-05-29 16:42 UTC (permalink / raw)
To: gdb
Ignore all my previous posts. It's a kernel problem.
--
View this message in context: http://www.nabble.com/ARM-VFP-support-tp22835058p23783262.html
Sent from the Sourceware - gdb list mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2009-05-29 16:42 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-01 20:25 ARM VFP support Matt Fischer
2009-04-01 20:38 ` Daniel Jacobowitz
2009-04-01 20:41 ` Matt Fischer
2009-05-19 23:25 ` Peter Nordstrom
2009-05-19 23:31 ` Daniel Jacobowitz
2009-05-20 0:31 ` Peter Nordstrom
2009-05-20 13:17 ` Daniel Jacobowitz
2009-05-28 21:31 ` Peter Nordstrom
2009-05-28 22:36 ` Peter Nordstrom
2009-05-29 16:42 ` Peter Nordstrom
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox