[llvm-bugs] [Bug 25847] New: "f s <#>" fails as short form for "frame select <#>"

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Dec 15 19:43:37 PST 2015


https://llvm.org/bugs/show_bug.cgi?id=25847

            Bug ID: 25847
           Summary: "f s <#>" fails as short form for "frame select <#>"
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: emaste at freebsd.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

"f s 2" reports "error: invalid arguments." and "error: Frame index
(4294967295) out of range." while "frame select 2" is successful.

Session transcript:

(lldb) target create "/bin/sleep"
Current executable set to '/bin/sleep' (x86_64).
(lldb) settings set -- target.run-args  "3600"
(lldb) run
Process 24755 launching
Process 24755 launched: '/bin/sleep' (x86_64)
Process 24755 stopped
* thread #1: tid = 100103, 0x0000000800b0925a libc.so.7`__sys_nanosleep + 10 at
_nanosleep.S:3, stop reason = signal SIGSTOP
    frame #0: 0x0000000800b0925a libc.so.7`__sys_nanosleep + 10 at
_nanosleep.S:3
   1    #include "compat.h"
   2    #include "SYS.h"
-> 3    PSEUDO(nanosleep)
   4            .section .note.GNU-stack,"",%progbits
(lldb) bt
* thread #1: tid = 100103, 0x0000000800b0925a libc.so.7`__sys_nanosleep + 10 at
_nanosleep.S:3, stop reason = signal SIGSTOP
  * frame #0: 0x0000000800b0925a libc.so.7`__sys_nanosleep + 10 at
_nanosleep.S:3
    frame #1: 0x0000000000400ae6 sleep`main(argc=<unavailable>,
argv=<unavailable>) + 150 at sleep.c:91 [opt]
    frame #2: 0x000000000040091f sleep`_start(ap=<unavailable>,
cleanup=<unavailable>) + 367 at crt1.c:78 [opt]
(lldb) f s 2
error: invalid arguments.


Command Options Usage:
  frame select [-r <offset>] [<frame-index>]

       -r <offset> ( --relative <offset> )
            A relative frame index offset from the current frame index.
error: Frame index (4294967295) out of range.
(lldb) frame select 2
sleep was compiled with optimization - stepping may behave oddly; variables may
not be available.
frame #2: 0x000000000040091f sleep`_start(ap=<unavailable>,
cleanup=<unavailable>) + 367 at crt1.c:78 [opt]
   75   #endif
   76  
   77           handle_static_init(argc, argv, env);
-> 78           exit(main(argc, argv, env));
   79   }
(lldb)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151216/248434af/attachment.html>


More information about the llvm-bugs mailing list