Problems printing variables in sparc-rtems4.11-gdb 7.6

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Jun 10 07:43:21 UTC 2014


On 2014-06-10 01:15, Joel Sherrill wrote:
> 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.

With GDB 7.7.1 and GCC 4.8.3 it doesn't work for me:

GNU gdb (GDB) 7.7.1
Copyright (C) 2014 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-unknown-linux-gnu 
--target=sparc-rtems4.11".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ticker.exe...done.
Connected to the simulator.
Breakpoint 1 at 0x2005b10: file 
/home/sh/rtems-4.11/c/src/../../cpukit/libcsupport/src/__assert.c, line 38.
Breakpoint 2 at 0x201c244: file 
/home/sh/rtems-4.11/c/src/../../cpukit/score/src/interr.c, line 39.
Breakpoint 3 at 0x2001160: file 
/home/sh/rtems-4.11/c/src/lib/libbsp/sparc/erc32/../../sparc/shared/start/start.S, 
line 379.
(gdb) b rtems_clock_tick
Breakpoint 4 at 0x2010ba4: file 
/home/sh/rtems-4.11/c/src/../../cpukit/rtems/src/clocktick.c, line 30.
(gdb) r
Starting program: 
/scratch/git-build/b-sis/sparc-rtems4.11/c/sis/testsuites/samples/ticker/ticker.exe 


Breakpoint 4, rtems_clock_tick () at 
/home/sh/rtems-4.11/c/src/../../cpukit/rtems/src/clocktick.c:30
30        _Thread_Disable_dispatch();
(gdb) where
#0  rtems_clock_tick () at 
/home/sh/rtems-4.11/c/src/../../cpukit/rtems/src/clocktick.c:30
#1  0x02002bf4 in Clock_isr (vector=<error reading variable: can't compute CFA 
for this frame>) at 
/home/sh/rtems-4.11/c/src/lib/libbsp/sparc/erc32/clock/../../../shared/clockdrv_shell.h:115
#2  0x020437a4 in dont_fix_pil2 () at 
/home/sh/rtems-4.11/c/src/lib/libbsp/sparc/erc32/../../sparc/shared/irq_asm.S:457
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

See also:

https://sourceware.org/bugzilla/show_bug.cgi?id=16215

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list