Your message dated Wed, 19 Oct 2016 14:46:39 +0100
with message-id <[email protected]>
and subject line Bug#286813: 'next' command does not work on mips/mipsel
has caused the Debian Bug report #286813,
regarding 'next' command does not work on mips/mipsel
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
286813: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=286813
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: gdb
Version: 6.1-3
The 'next' command does not work for this simple program on mips/mipsel.
#include <stdio.h>
int main(int argc, char **argv)
{
printf("Hello world.\n");
return 0;
}
debian:~# gcc -o hello hello.c -g
evb49-le:~# gdb ./hello
GNU gdb 6.1-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "mipsel-linux"...Using host libthread_db library
"/lib/libthread_db.so.1".
(gdb) b 4
Breakpoint 1 at 0x40081c: file hello.c, line 4.
(gdb) run
Starting program: /root/hello
Breakpoint 1, main (argc=1, argv=0x7fff7e14) at hello.c:4
4 printf("Hello world.\n");
(gdb) n
warning: Warning: GDB can't find the start of the function at 0x400a40.
GDB is unable to find the start of the function at 0x400a40
and thus can't determine the size of that function's stack frame.
This means that GDB may be unable to access that stack frame, or
the frames below it.
This problem is most likely caused by an invalid program counter or
stack pointer.
However, if you think GDB should simply search farther back
from 0x400a40 for code which looks like the beginning of a
function, you can increase the range of the search using the `set
heuristic-fence-post' command.
warning: Warning: GDB can't find the start of the function at 0x400a40.
warning: Warning: GDB can't find the start of the function at 0x400a40.
warning: Warning: GDB can't find the start of the function at 0x400a40.
warning: Warning: GDB can't find the start of the function at 0x400a40.
warning: Warning: GDB can't find the start of the function at 0x400a40.
warning: Warning: GDB can't find the start of the function at 0x400a40.
warning: Warning: GDB can't find the start of the function at 0x400a40.
...
Program received signal SIGINT, Interrupt.
0x00400a40 in ?? ()
(gdb) disassemble 0x400a40 0x400a60
Dump of assembler code from 0x400a40 to 0x400a60:
0x00400a40 <printf+0>: lw t9,-32752(gp)
0x00400a44 <printf+4>: move t7,ra
0x00400a48 <printf+8>: jalr t9
0x00400a4c <printf+12>: li t8,9
0x00400a50 <printf+16>: nop
0x00400a54 <printf+20>: nop
0x00400a58 <printf+24>: nop
0x00400a5c <printf+28>: nop
End of assembler dump.
Toolchain versions are:
||/ Name Version Description
+++-==============-==============-============================================
ii gcc 3.3.4-2 The GNU C compiler
ii binutils 2.15-5 The GNU assembler, linker and binary utiliti
ii libc6 2.3.2.ds1-18 GNU C Library: Shared libraries and Timezone
ii gdb 6.1-3 The GNU Debugger
This may be gdb PR#1716.
--- End Message ---
--- Begin Message ---
Version: 7.7.1+dfsg-5
I suspect this bug was fixed a loooooong time ago. It's definitely fixed
in jessie.
Thanks,
James
signature.asc
Description: OpenPGP digital signature
--- End Message ---