<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - "f s <#>" fails as short form for "frame select <#>""
   href="https://llvm.org/bugs/show_bug.cgi?id=25847">25847</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>"f s <#>" fails as short form for "frame select <#>"
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>FreeBSD
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>emaste@freebsd.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>"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)</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>