[Bug 211516] lldb: single stepping does not work on arm

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Aug 1 22:16:43 UTC 2016


            Bug ID: 211516
           Summary: lldb: single stepping does not work on arm
           Product: Base System
           Version: CURRENT
          Hardware: arm
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: emaste at freebsd.org

Testing lldb in head on FreeBSD/arm shows that breakpoints work as expected,
but single stepping does not.

root@:~ # lldb --version
lldb version 3.8.0 clang revision 262564

Example program:

root@:~ # cat hello.c
#include <stdio.h>

main(int argc, char *argv[])
        printf("Hello, world\n");
        printf("Another line\n");
        return 0;
root@:~ # cc -g hello.c
root@:~ #

Breakpoints work as expected:

root@:~ # lldb ./a.out
(lldb) target create "./a.out"
Current executable set to './a.out' (arm).
(lldb) b 6
Breakpoint 1: where = a.out`main + 36 at hello.c:6, address = 0x00008648
(lldb) run
Process 533 launching
Process 533 launched: '/root/a.out' (arm)
Process 533 stopped
* thread #1: tid = 100045, 0x00008648 a.out`main(argc=1, argv=0xbfbfed74) + 36
at hello.c:6, stop reason = breakpoint 1.1
    frame #0: 0x00008648 a.out`main(argc=1, argv=0xbfbfed74) + 36 at hello.c:6
   3    int
   4    main(int argc, char *argv[])
   5    {
-> 6            printf("Hello, world\n");
   7            printf("Another line\n");
   8            return 0;
   9    }

But stepping does not; the program just continues.

(lldb) step
(lldb) Hello, world
Another line
Process 533 exited with status = 0 (0x00000000) 

Instruction step (stepi) fails the same way.

You are receiving this mail because:
You are the assignee for the bug.

More information about the freebsd-bugs mailing list