Problems printing variables in sparc-rtems4.11-gdb 7.6
Joel Sherrill
joel.sherrill at OARcorp.com
Mon Jun 9 23:15:21 UTC 2014
On 6/9/2014 5:57 AM, Daniel Hellstrom wrote:
> Hi,
>
> Have you seen a fix or update on this issue?
I have gdb 7.7 on Centos 6.x built using the RSB and it handles
your case fine. I don't recall seeing those type of messages
from it.
--joel
> Regards,
> Daniel\
>
> On 05/29/2013 07:30 PM, Jiri Gaisler wrote:
>> On 05/29/2013 01:42 PM, Ralf Kirchner wrote:
>>> Hi All,
>>> I noticed a strange problem with gdb version 7.6 (our current RPM version)
>>> Printing variables in in gdb is not possible.
>> I have the same problem on both gdb-7.5 and 7.6 (ubuntu 12.04 x64).
>> Some variables print OK, some get the 'can't compute CFA' error.
>> Gdb version 7.4 and earlier cannot read the symbol table at all, probably
>> due to unsupported dwarf version 4 produced by sparc-rtems4.11-gcc (gcc-4.8).
>> Most annoying ....
>>
>>
>> Jiri.
>>
>>> Scenario:
>>> rk at linux-aiv4:~/git-rtems-testing/rtems/build-sparc-sis-rtems/sparc-rtems4.11/c/sis/testsuites/fstests/fsdosfsname01
>>>> sparc-rtems4.11-gdb *.exe
>>> GNU gdb (GDB) 7.6
>>> Copyright (C) 2013 Free Software Foundation, Inc.
>>> License GPLv3+: GNU GPL version 3 or later
>>> <http://gnu.org/licenses/gpl.html>
>>> This is free software: you are free to change and redistribute it.
>>> There is NO WARRANTY, to the extent permitted by law. Type "show copying"
>>> and "show warranty" for details.
>>> This GDB was configured as "--host=x86_64-suse-linux-gnu
>>> --target=sparc-rtems4.11".
>>> For bug reporting instructions, please see:
>>> <http://www.gnu.org/software/gdb/bugs/>...
>>> Reading symbols from
>>> /scratch/git-rtems-testing/rtems/build-sparc-sis-rtems/sparc-rtems4.11/c/sis/testsuites/fstests/fsdosfsname01/fsdosfsname01.exe...done.
>>> (gdb) tar sim
>>> Connected to the simulator.
>>> (gdb) load
>>> (gdb) break Init
>>> Breakpoint 1 at 0x2004338: file
>>> ../../../../../../../git-rtems/c/src/../../testsuites/fstests/fsdosfsname01/init.c,
>>> line 1295.
>>> (gdb) run
>>> Starting program:
>>> /scratch/git-rtems-testing/rtems/build-sparc-sis-rtems/sparc-rtems4.11/c/sis/testsuites/fstests/fsdosfsname01/fsdosfsname01.exe
>>>
>>>
>>> Breakpoint 1, Init (arg=<error reading variable: can't compute CFA for
>>> this frame>) at
>>> ../../../../../../../git-rtems/c/src/../../testsuites/fstests/fsdosfsname01/init.c:1295
>>> 1295 puts( "\n\n*** TEST fsdosfsname01 ***" );
>>> (gdb) p arg
>>> can't compute CFA for this frame
>>> (gdb)
>>>
>>> Has anybody else seen such problems with gdb 7.6?
>>> Am I doing anything wrong? Does version 7.6 need any special treatment
>>> to work correctly?
>>>
>>> Kind Regards
>>> Ralf Kirchner
>>>
>> _______________________________________________
>> rtems-devel mailing list
>> rtems-devel at rtems.org
>> http://www.rtems.org/mailman/listinfo/rtems-devel
> _______________________________________________
> rtems-devel mailing list
> rtems-devel at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-devel
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the devel
mailing list