This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug backtrace/16721] New: Erroneous backtrace on AVR
- From: "pierre.langlois at embecosm dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 18 Mar 2014 14:48:49 +0000
- Subject: [Bug backtrace/16721] New: Erroneous backtrace on AVR
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=16721
Bug ID: 16721
Summary: Erroneous backtrace on AVR
Product: gdb
Version: 7.7
Status: NEW
Severity: normal
Priority: P2
Component: backtrace
Assignee: pierre.langlois at embecosm dot com
Reporter: pierre.langlois at embecosm dot com
CC: jeremy.bennett at embecosm dot com
Target: avr
Created attachment 7480
--> https://sourceware.org/bugzilla/attachment.cgi?id=7480&action=edit
Test program and elf file.
Stack unwinding is not working with this small program:
(gdb) bt
#0 multiply (a=25, b=8) at ../src/main.c:4
#1 *0x01e00000 in ?? ()
This was tested running against simulator models with the atmega2560 chip.
------------------------------------------------------------------------------
GNU gdb (AVR 8-bit toolchain (built 20140310)) 7.7.50.20140318-cvs
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=avr".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.atmel.com>.
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".
(gdb) file atmega-test.elf
Reading symbols from atmega-test.elf...done.
(gdb) target d[Kremote :51000
Remote debugging using :51000
0x00000116 in multiply (a=25, b=8) at main.c:4
4 return a * b;
(gdb) monitor reset
(gdb) load
Loading section .text, size 0x1a4 lma 0x0
Start address 0x0, load size 420
Transfer rate: 3360 bits in <1 sec, 210 bytes/write.
(gdb) b multiply
Breakpoint 1 at 0x114: file main.c, line 4.
(gdb) c
Continuing.
Program received signal SIGTRAP, Trace/breakpoint trap.
0x00000116 in multiply (a=25, b=8) at main.c:4
4 return a * b;
(gdb) bt
#0 0x00000116 in multiply (a=25, b=8) at main.c:4
#1 0x01e00000 in ?? ()
(gdb) q
A debugging session is active.
Inferior 1 [Remote target] will be killed.
Quit anyway? (y or n)
--
You are receiving this mail because:
You are on the CC list for the bug.