Questions tagged [lldb]

LLDB is a debugger built as a set of reusable components which highly leverage existing libraries in the larger LLVM Project, such as the Clang expression parser and LLVM disassembler.

LLDB is a debugger built as a set of reusable components which highly leverage existing libraries in the larger LLVM Project, such as the Clang expression parser and LLVM disassembler. It is distributed with the Xcode development environment. Home page is http://lldb.llvm.org/

1918 questions
0
votes
1 answer

How to make LLDB work with STL in CLion on MacOS as I would expect on Linux

What I want to accomplish is to debug C++ code in CLion hassle-free, just like I would on Linux. I am going to be using the following code for illustration further on: set time; time.insert(1); size_t qq = time.size(); I attach screenshots of…
1ncend1ary
  • 23
  • 6
0
votes
1 answer

lldb reports my remote aarch64 paltform as x86_64 (AOSP)

I'm trying to remotely debug a process on my aarch64 hardware. Why does the triplet start with x86_64? I would expect aarch64 (lldb) platform select remote-android Platform: remote-android Connected: no (lldb) platform connect…
Matt
  • 1,928
  • 24
  • 44
0
votes
1 answer

Why "error: Unable to create requested alias" upon "command alias pcs call ..." in lldb?

In lldb, I wanted to create an alias for call printCallStack(). I got an error that did not explain much: (lldb) command alias pcs call printCallStack() error: Unable to create requested alias. How to do it correctly?
Vass
  • 431
  • 2
  • 4
0
votes
1 answer

Xcode debugging C++ view global variables

No trouble viewing self/local variables, but can't view global variables in the debugging window while running C++ programs. For example: int global = 0; void func(int arg1, int arg2) { page_table_base_register = nullptr; // defined globally…
shest
  • 1
  • 1
0
votes
1 answer

How can I pretty-print a data member char array as a string (as in boost::static_string) with lldb?

I am trying to define a custom summary for Boosts static_string class template. Example source file: #include const boost::static_string<5> s{"abc"}; Without any formatters, frame variable -R s gives…
lubgr
  • 37,368
  • 3
  • 66
  • 117
0
votes
1 answer

Unable to view a passing SwiftUI parameter value via debugger

Scenario: I want to look at a parameter of the CountryRegionListModel() in the debugger. The following are the view and it's dependent model snippets: import Combine import UIKit protocol URLResource { associatedtype DataModel: Decodable …
Frederick C. Lee
  • 9,019
  • 17
  • 64
  • 105
0
votes
1 answer

conditional watchpoint monitor the contents of a pointer in lldb

I would like to stop my execution when the content of the aux pointer to struct is "AAAAA". typedef struct Matriz { string *usuario; string *produto; string nota; Matriz *proxima_linha, *proxima_coluna; } Matriz; Matriz *aux = new…
0
votes
1 answer

LLDB Target Language - Swift Only Available in Xcode

When I use LLDB on a Swift application in Xcode (e.g. by setting a breakpoint), I can call settings set target.language swift to have LLDB understand Swift code in commands like expression (and therefore po and print). When I run lldb from the…
Marcus Rossel
  • 3,196
  • 1
  • 26
  • 41
0
votes
2 answers

Call the previous command in lldb inside Xcode

I have a basic question on lldb in Xcode. When using lldb in Xcode, how you guys call the command previously executed ? Typing the same command every time is very frustrated to me, and now looking the way to call them in efficient way. I know…
John
  • 41
  • 6
0
votes
1 answer

How to do 'settings set target.env-vars' in LLDB Python?

I would like to create an LLDB alias/macro in Python that includes settings an environment variable to be passed to future processes. How to do that? If it were just Python, I would update os.environ. However, lldb's script does not propagate that…
Vass
  • 431
  • 2
  • 4
0
votes
0 answers

Illegal hardware instruction with clang LLVM compiler while Cairo creates png files

I've tried to execute a C program. And it has compiled right however when I execute the output binary, it displays: [16] 70041 illegal hardware instruction ./create So, I add -g option to look like this: cc create.c $(pkg-config --cflags --libs…
Karl
  • 53
  • 3
0
votes
1 answer

how to use lldb sbapi in xcode

`lldb::SBDebugger::Initialize(); lldb::SBListener sbListener; lldb::SBTarget sbTarget; lldb::SBError sbError; sbTarget.ConnectRemote(sbListener, "connect://127.0.0.1:3333", nullptr, sbError); if (sbError.IsValid()) { printf("%s\n",…
0
votes
2 answers

LLDB for Mediaplayer debugging

I'am trying to debug native library used by MediaPlayer class: import androidx.appcompat.app.AppCompatActivity; import android.media.MediaPlayer; import android.os.Bundle; public class MainActivity extends AppCompatActivity { @Override …
destrudos
  • 27
  • 6
0
votes
1 answer

Debugging glib/gtree in lldb

Apparently due to my penchant for self-abuse, I'm writing a BASIC interpreter in yacc/lex/glib/c. The BASIC program is stored as an array of GLists, each entry in the array representing a line in the source. Each line is GList of statement_ts,…
Maury Markowitz
  • 9,082
  • 11
  • 46
  • 98
0
votes
2 answers

In lldb debugger, why does program counter go backwards?

The problem I am facing is that on constantly hitting step over command, without being in a loop, you can expect the program counter arrow (->) to move to the bottom one (or more) lines at a time. I have a piece of software that makes lldb not work…