Equivalent LLDB command for GDB's `return <expr>` command
| Originator: | nathan | ||
| Number: | rdar://11252719 | Date Originated: | 16-Apr-2012 12:04 PM |
| Status: | Open | Resolved: | No |
| Product: | Developer Tools | Product Version: | 4.3.2 (1177) |
| Classification: | Feature (New) | Reproducible: | Yes |
Summary: While debugging, I'll often use breakpoint actions or the debugger REPL to return early from functions/methods with a particular return value. Under GDB, this is possible by setting a continuing breakpoint with a breakpoint action, where the action is `return <expr>`. There is no such `return` command available under LLDB. There was some discussion of a `frame-return` or `thread-return` on the LLDB-dev mailing list in July 2011, however I'm not sure if the patch was ever accepted. Email thread starts here: http://lists.cs.uiuc.edu/pipermail/lldb-dev/2011-July/000493.html Thanks! Steps to Reproduce: Look for an equivalent to GDB's `return <expr>` command. Expected Results: Find an equivalent. Actual Results: Dont' find an equivalent :-) Regression: This is a regression, because something that was previously possible under GDB is no longer possible under LLDB. Notes: N/A
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!