Questions tagged [lldb]

1

votes
1

answer
430

Views

LLDB - Qt missing debug info

I've installed Qt 5.10.0 through the macOS installer. I'm currently running OSX El Capitan 10.11.6. Whenever I try to load any of the Qt libraries/ frameworks, I get the following warning: warning: (x86_64) /Users/randomuser/Qt/5.10.0/clang_64/lib/QtWidgets.framework/QtWidgets empty dSYM file detect...
vejmartin
1

votes
1

answer
186

Views

State of process is Launching when using lldb module in python

I am learning to use the LLDB.py module in python and am trying to run the following example I found on http://lldb.llvm.org/python-reference. I already added lldb.so to PYTHONPATH. Here is the result I got: Creating a target for './a.out' a.out SBBreakpoint: id = 1, name = 'main', module = a.out, l...
gzheng
1

votes
1

answer
336

Views

LLDB exception after updating to Android Studio 3.1

After updating to Android Studio from 3.0.1 to 3.1, and updating all plugins and SDK tools i am no longer able to debug my native application. The error is 'Execution finished' (ExecutionFinishedException) which is raised in LLDB. LLDB version is 3.1.4508709 (which is the latest). If i try and debug...
user3197291
1

votes
0

answer
43

Views

XCode lldb CoreData objects debugging

Does anyone know how to debug CoreData objects in this case? Debugger screenshot In the screenshot in the beginning there is the print(cardTemplate) output. Then I tried to print somehow the object from the debugger but no success.
Andriy Trubchanin
1

votes
0

answer
62

Views

android studio lldb display std::vector's incorrect value

I debug JNI std:: vector code in the android studio, LLDB display std:: vector's element incorrect value, but the std:: vector memory is correct. the effect is below image: https://i.stack.imgur.com/9BVgF.png develop environment: MacBook Pro 10.12.6 Android Studio:3.1.1 LLDB: 3.1 The 'hello-libs' de...
king 王
1

votes
1

answer
462

Views

XCode 9.3 console not showing logs

Since the moment we added several swift classes to our Xcode project, the console stopped reporting logs. Crash stack traces are missing and so the start up logs when launching the app. Instead, there are showing few random errors with a [objc] prefix related to pods. Nothing meaningful. Before add...
CRoig
1

votes
1

answer
150

Views

How do I make the debugger break when an exception is thrown in D?

When debugging D code that fails due to an uncaught exception, the exception mechanism unrolls the stack all the way back and then prints a stack trace, leaving us with the somewhat less than helpful: (gdb) bt No stack. The stack trace gives us the line the exception was thrown from, but that's not...
Ray
1

votes
0

answer
127

Views

How to keep LLDB running with redirected stdin, stdout and stderr

I'm working on an automation task where I need to check whether some application is debuggable or not. So my workflow is: Attach LLDB to a process Set some breakpoints Perform some action in a target App Check a frame in LLDB for some expected expressions Detach debugger from App. Since my test...
1

votes
1

answer
317

Views

How to update the lldb in macosx

My mac is 10.13.4 Beta and the version of the lldb is 'lldb-902.0.79.7 switf-4.1'.I want to update the lldb but I didn't found any solution.
huangweiwei
1

votes
0

answer
37

Views

Is there a Swiftier way to access a multi-tiered JSON object in lldb?

I finally managed to access a tiered structure based on a JSON API return. Now that I was at least successful, I was wondering if anyone can suggest a better way with lldb to access values. I am old-school. I need to be able to break a run and pick apart my variables. I have included three tiers of...
drew..
1

votes
0

answer
180

Views

Cannot debug Rust code using LLDB in VS Code: UnicodeEncodeError: 'ascii' codec can't encode characters

I want to debug Rust with VS Code. I have installed LLDB 6.0.0 and Rust 1.27.1 but I can't debug Rust code with LLDB: Display settings: variable format=auto, show disassembly=auto, numeric pointer values=off, container summaries=on. Internal debugger error: Traceback (most recent call last): File '/...
kwebi
1

votes
1

answer
162

Views

LLDB remote debug for server side Swift is failed between Linux in docker and macOS

I am trying to remote debug server side swift from macOS. lldb-server run on Ubuntu 16.04 on Docker on macOS. I am using swift-4.1-RELEASE binaries. [email protected]:/var/vapor# lldb-server version lldb version 5.0.0 ([email protected]:apple/swift-lldb.git revision 76dfa56ed35eaa392f7e51088c08f08f1150...
omochimetaru
1

votes
1

answer
54

Views

Terminating app due to uncaught exception when I make 2 scenes

I am trying to create 2 scenes in my maze game and this is the error message that I get. There is no sprite in any of my SKS files with these coordinates, so I am very confused as to what physics body it cannot load... mazeGame[18879:890324] *** Terminating app due to uncaught exception 'Cant add b...
AglaiaZ
1

votes
2

answer
88

Views

How do you create a LLDB script to ignore SIGSEGV and SIGBUS

I frequently run matlab in lldb to debug some shared libraries and would like to make a lldb script so rather than typing out the following two lines. process handle --pass true --stop false --notify true SIGSEGV process handle --pass true --stop false --notify true SIGBUS I could create a file at ~...
Sam P
1

votes
0

answer
70

Views

Getting .NET Core stack traces on Linux without suspending the process

On Windows Microsoft.Diagnostics.Runtime (ClrMd) allows 'attaching' to a .NET process (including .NET Core) without really attaching a debugger and gettings the stack traces of all its managed threads without suspending it. Is there a way to do this on Linux with .NET Core 2.1? I know LLDB with libs...
EM0
1

votes
1

answer
32

Views

Passing characters and non-printable values into LLDB as arguments

With lldb, how can I pass in a long string - which includes hex characters - as a command line argument ? Some of the hex characters may be non-printable. (lldb) setting set target.run-args 'AAAA\\x66\\x6f\\x6f' (lldb) settings show target.run-args target.run-args (array of strings) = [0]: 'AAAA\x6...
rustyMagnet
1

votes
0

answer
87

Views

Does clang 7.0.0 windows not include LLDB?

In the pre-built windows binaries, LLDB was present in clang version 6.0.x. I downloaded version 7.0.0 and I can't find it.
SedatedSnail
1

votes
0

answer
598

Views

Xcode 10.0 error: Couldn't IRGen expression, no additional error

When I'm running the app and want to debug something the response is: expression produced error: error: Couldn't IRGen expression, no additional error How can I make it evaluate my expression instead?
Luigi Marino
1

votes
1

answer
119

Views

LLDB “Fix-it applied” seems to be incorrect about what I wanted to print

I am using Xcode 10 and Swift and I have a breakpoint in my code: let logoWPoints = logoUIImage.size.width let logoHPoints = logoUIImage.size.height let logoScale = logoUIImage.scale let logoWPixels = logoWPoints * logoScale let logoHPixels = logoHPoints * logoScale //
Chewie The Chorkie
1

votes
0

answer
90

Views

Unity Firebase Analytics gives lldb error on scene loads

I have added firebase into my unity project. Everything works when I opened the app. It sends data succesfully to firebase dashboard. However, sometimes I'm passing to another scene. And app crashes. When I debug with Xcode, it gives lldb error with this stacktrace: * thread #4, queue = 'APMAnalytic...
Ali Avcı
1

votes
0

answer
66

Views

How do I scan memory for an array of hex values in LLDB?

I want to find N (for example, 16) bytes of hex in memory. In gdb, I simply do: find /b memrange_start, memrange_end, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f And it works flawlessly. What's the equivalent in lldb? I tried: (lldb) me find -e '0x0...
karyna
1

votes
1

answer
30

Views

android NDK : cannot find execution point

I'm debugging my Android app in Android Studio, and it failed to find execution point of native code, as a result, variables also cannot be shown: World::flush looks like this: void World::flush() { LOGE_LS('Flushing cached chunks...'); for (chunk_lru_li *i = lru, *j; i != nullptr; i = j) { if (i-...
Meow Cat 2012
1

votes
0

answer
52

Views

How to track EXC_BAD_ACCESS (SIGSEGV) error?

I got this crash when debugging my project using Xcode, but I cannot find the way to resolve this issue. The app itself didn't force close, but my xcode stop debugging when this problem showing. I've tested on another mac (same Xcode version) and it do same thing (debugger crash, xcode stop the runn...
Renzrz
1

votes
1

answer
63

Views

How to know what global variables or static variales are referred by what functions? (C)

I'd like to know what functions refer (read or write) global or static variables in an executable compiled from C. I don't think gdb or lldb offer such a function out-of-the-box. Is there some other tool that can do this? Alternatively, one can get all the global and static variables from gdb/lldb...
user1424739
1

votes
0

answer
31

Views

How to use hardware breakpoints in LLDB?

I'm playing with the lldb Python API to set a watchpoint and printing it: Watchpoint 1: addr = 0x700005451ff0 size = 8 state = enabled type = w declare @ '/Users/stringer/test.c:945' new value: 0x000000011a4b1000 hw_index = -1 hit_count = 0 ignore_count = 0 From the source code: With -1 repres...
Stringer
1

votes
0

answer
48

Views

lldb cannot find iOS app running in Simulator in order to attach

This is a follow-up question to How can I use Swift REPL with iOS SDK. I have an app named Venmo which is already running on a simulator: and I can see it in the Activity Monitor: I would like to open a Swift REPL in which can use classes defined in the Venmo project. Following the instructions in t...
Kurt Peek
1

votes
0

answer
32

Views

Swift 5 LLDB error: warning: <EXPR>:12:9: warning: initialization of variable '$__lldb_error_result' was never used

Full Error Message: error: warning: :12:9: warning: initialization of variable '$__lldb_error_result' was never used; consider replacing with assignment to '_' or removing it var $__lldb_error_result = __lldb_tmp_error ~~~~^~~~~~~~~~~~~~~~~~~~ _ error: :19:5: error: use of unresolved identifier '$__...
andrewbuilder
1

votes
1

answer
1.1k

Views

Xcode: error: failed to launch with duplicated target. Original target runs fine in Xcode/gdb

I have an app that I want to be able to build two different versions. One a 'test' version that hits test databases, populates a test analytics backend, etc, and then the 'live' version which its the production database and analytics backend. So I duplicated my target, made appropriate changes, an...
chadbag
1

votes
1

answer
267

Views

Strange output of LLDB

(char *) text = 0x0dbf3c50 '\x91\xde\x91\xf4\x90\xc1\x90\xc0\x91\xff\x91\xfc\x91\xf1\x91\xfa\x90\xcd\x91\xfc\x91\xf1\x90\xcea\x91\xf3\x91\xf4\x90\xc1\x90\xc0\x91\xf9\x90\xcea\x91\xd1\x91\xfa\x91\xf4\x91\xfb\xd1' What does \xcea really mean? Supposed to be \xce and a in a raw. I expect valid C (Obj-C...
Valeriy Van
1

votes
2

answer
253

Views

Calling instance method in iphone to set value causing crash by printing “(lldb)” in iOS Xcode

I am calling by button click in class SFAViewController -(IBAction)uploadselector:(id)sender // Notes and Attachments { SFAUploadController *uploadcontroller = [[SFAUploadController alloc] initWithNibName:@'SFAUploadController' bundle:nil]; //[SFAUploadController setRecordId:selectedrecordid]; [sel...
Ashwani
1

votes
2

answer
1.7k

Views

How debug non-xcode process with XCode 4.6.2 and lldb?

I have a process running (not an app) built with GNU make, clang, etc. with full debug info. I want to attach to it with lldb and a GUI debugger that shows me source code, variable bindings etc. Is there a way to do this with lldb on OS X 10.8 with XCode 4.6.2 or any other tool (e.g. a working lldb...
Per Mildner
1

votes
1

answer
280

Views

How do I set a conditional breakpoint on a specific table row using lldb?

In Xcode, I want to breakpoint on a specific table row request in the method tableView:cellForRowAtIndexPath: using lldb: For example, let's say I want to breakpoint on the 44th row of indexPath.row. How can I do that?
Max MacLeod
1

votes
1

answer
233

Views

lldb cannot evaluate function because of unknown identifier

I have an optimized binary that has c++ structures and classes for which I was able to export the symbol of and set breakpoints for class functions, however, I cannot seem to do something basic like this: expr ((ns::SomeClass*)$r0)->toString() lldb reports unknown identifier for ns. From some google...
Trent Ahrens
1

votes
2

answer
808

Views

lldb cant find SDK

I am trying to connect with lldb to my remote-ios device . (lldb) platform select remote-ios Platform: remote-ios Connected: no SDK Path: error: unable to locate SDK (lldb) I am using MacOS 10.8.4 and xCode 5.0.2. Any one know a solution ?
user3001909
0

votes
0

answer
4

Views

What exactly is 'lldb' in android studio?

I am trying to understand what exactly is lldb in Android Studio.I am new to Android Studio and it's a bit puzzling as to if I should install this on an AMD system.
Candice Dick
1

votes
1

answer
4.1k

Views

Backtrace for osx core dump using lldb

My kernel extension crash a several times so I want to get the correct backtrace (with function names) from the crash Accroding to the article https://developer.apple.com/library/mac/technotes/tn2004/tn2118.html I wanted to use gdb for this, but it seems that GDB does not understand the dump dhcp80-...
Georgy Buranov
1

votes
1

answer
4.1k

Views

(lldb) error code not working in Xcode with C++

Im just starting with C++ and I wanted to try running this test... When I try compiling the code it just gives an error saying (lldb): #include using namespace std; //---------My Function--------//` int addNums(int x, int y){ int answer = x + y; return answer; } int main(int argc, const char * argv...
user3597140
1

votes
1

answer
502

Views

How to define a stop-hook for lldb in .lldbinit?

I would like to define the following stop hook: target stop-hook add --one-liner 'frame variable' in my .lldbinit so that frame variables are shown by default on every stop. While entering this in lldb after start works but it has no effect being in my .lldbinit. I do not want to enter it every time...
0ax1
1

votes
1

answer
346

Views

Loading lldb breakpoint commands from a file

I would like to load my breakpoint commands from a file at startup using the '-s' flag to lldb, but it does not appear to accept the usual multiline input syntax of 'br command add' (a series of commands followed by 'DONE'). Is there a way to set a multiline breakpoint command from a script file? I...
dacunni
1

votes
1

answer
1.1k

Views

LLDB GUI in swift REPL

swift command line tool path: /Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin When I using swift in shell like python interpreter, I found a option gui >:gui It look like this: Anybody who knowns how to debub a REPL program using it in swift? By the way,...
6david9

View additional questions