Files
Jacob Lalonde 5709f9560f [LLDB] Expose enumerator for separate-debug-info in SBModule (#144119)
Today we can run `target modules dump separate-debug-info --json` to get
a json blob of all the separate debug info, but it has a few
shortcomings when developing some scripting against it. Namely, the
caller has to know the structure of the JSON per architecture that will
be returned.

I've been working on a Minidump packing utility where we enumerate
symbols and source and put them in a package so we can debug with
symbols portably, and it's been difficult to maintain multiple
architectures due to the above shortcomings. To address this for myself,
I've exposed a simple iterator for the SBModule to get all the
separate-debug-info as list of filespecs with no need for the caller to
have context on what kind of data it is.

I also extened the swig interfaces to make writing my test easier and as
a nice to have.
2026-06-08 15:18:41 -07:00

8 lines
91 B
C++

extern int bar(void);
int main() {
int x = bar();
x += 2; // break here
return x;
}