Page MenuHomePhabricator

Please use GitHub pull requests for new patches. Phabricator shutdown timeline

Feed Advanced Search

Fri, Sep 22

jasonmolenda committed rG5ba239fe2a33: Remove expected-fail for Linux on TestStepOverWatchpoint.py (authored by jasonmolenda).
Remove expected-fail for Linux on TestStepOverWatchpoint.py
Fri, Sep 22, 6:22 PM · Restricted Project
jasonmolenda committed rG4a43ee08e732: Re-enable StepOverWatchpoint test, make it more focused (authored by jasonmolenda).
Re-enable StepOverWatchpoint test, make it more focused
Fri, Sep 22, 6:11 PM · Restricted Project

Thu, Sep 21

jasonmolenda committed rG35e3939cb06d: watch set expression's default type was wrong with new modify type (authored by jasonmolenda).
watch set expression's default type was wrong with new modify type
Thu, Sep 21, 2:50 PM · Restricted Project

Wed, Sep 20

jasonmolenda committed rG1a784444b32c: Temoprarily stop running this test on Intel macs (authored by jasonmolenda).
Temoprarily stop running this test on Intel macs
Wed, Sep 20, 9:49 PM · Restricted Project
jasonmolenda committed rG933ad5c897ee: [lldb] Add 'modify' type watchpoints, make it default (#66308) (authored by jasonmolenda).
[lldb] Add 'modify' type watchpoints, make it default (#66308)
Wed, Sep 20, 1:42 PM · Restricted Project

Tue, Sep 19

jasonmolenda added inline comments to D159101: [RISC-V] Add RISC-V ABI plugin.
Tue, Sep 19, 4:35 PM · Restricted Project, Restricted Project

Mon, Sep 18

jasonmolenda added a reverting change for rG3692267ca8f9: [lldb] Add 'modify' type watchpoints, make it default (#66308): rG44532a9dd4a0: Revert "[lldb] Add 'modify' type watchpoints, make it default (#66308)".
Mon, Sep 18, 10:50 PM · Restricted Project
jasonmolenda committed rG44532a9dd4a0: Revert "[lldb] Add 'modify' type watchpoints, make it default (#66308)" (authored by jasonmolenda).
Revert "[lldb] Add 'modify' type watchpoints, make it default (#66308)"
Mon, Sep 18, 10:50 PM · Restricted Project

Mon, Sep 11

jasonmolenda committed rG2cab996192cf: Add "process metadata" Mach-O LC_NOTE for corefiles (authored by jasonmolenda).
Add "process metadata" Mach-O LC_NOTE for corefiles
Mon, Sep 11, 4:46 PM · Restricted Project
jasonmolenda closed D158785: [lldb] Add a "thread extrainfo" LC_NOTE for Mach-O corefiles, to store the thread IDs of the threads.
Mon, Sep 11, 4:46 PM · Restricted Project, Restricted Project
jasonmolenda updated the diff for D158785: [lldb] Add a "thread extrainfo" LC_NOTE for Mach-O corefiles, to store the thread IDs of the threads.

Update patch to not use malloc/free for a temporary heap allocation; a std::string works fine. One caveat is that the c-strings we read in may have a nul byte terminator, and left alone the std::string will consider that part of the string; that can be preserved when using a string_view etc representation.

Mon, Sep 11, 4:40 PM · Restricted Project, Restricted Project

Fri, Sep 8

jasonmolenda updated the diff for D158785: [lldb] Add a "thread extrainfo" LC_NOTE for Mach-O corefiles, to store the thread IDs of the threads.

All of the feedback is addressed at this point. I had one decision I didn't like - the LC_NOTE has an explicit size in the load command, but I said that the JSON string needed to be nul byte ('\0') terminated, which is redundant. I've changed the implementation to (1) in the producer side, don't add a nul byte at the end of the string, and (2) in the consumer side, add the nul byte to the read buffer, before treating it as a c-string. To help emphasize that the size of the LC_NOTE is sufficient.

Fri, Sep 8, 5:22 PM · Restricted Project, Restricted Project
jasonmolenda added inline comments to D158035: [lldb] Protect RNBRemote from a data race.
Fri, Sep 8, 4:00 PM · Restricted Project, Restricted Project

Wed, Aug 30

jasonmolenda committed rG394e52a0bb57: [lldb] NFC reflow comments in WatchpointLocations (authored by jasonmolenda).
[lldb] NFC reflow comments in WatchpointLocations
Wed, Aug 30, 6:00 PM · Restricted Project
jasonmolenda committed rG3621f8380480: Don't enable stdin/out with a no-output test program (authored by jasonmolenda).
Don't enable stdin/out with a no-output test program
Wed, Aug 30, 3:13 PM · Restricted Project
jasonmolenda accepted D159164: [lldb] Add assembly syntax highlighting.

LGTM this is just mechanical passing around of the user's setting though the layers.

Wed, Aug 30, 1:45 PM · Restricted Project, Restricted Project

Tue, Aug 29

jasonmolenda added a comment to D158785: [lldb] Add a "thread extrainfo" LC_NOTE for Mach-O corefiles, to store the thread IDs of the threads.

Oh, and I did change the LC_NOTE name that I'm adding to "process metadata" and specified that it *may* contain a threads key, instead of *shall* contain a threads key.

Tue, Aug 29, 6:17 PM · Restricted Project, Restricted Project
jasonmolenda updated the diff for D158785: [lldb] Add a "thread extrainfo" LC_NOTE for Mach-O corefiles, to store the thread IDs of the threads.

Address feedback from Alex and Jonas. Most significantly, add a ObjectFileMachO::FindLC_NOTEByName method which all the LC_NOTE readers in ObjectFileMachO call. One of them specifically needs to iterate over multiple LC_NOTEs with the same name ("load binary"), so it returns a vector of offset & sizes of matching LC_NOTEs which looks a little unusual for the "there will only be one of these" LC_NOTEs. I also simplified the tid_t creation for missing tid_t values in ProcessMachCore when only some threads were given specified tid_t values.

Tue, Aug 29, 6:16 PM · Restricted Project, Restricted Project
jasonmolenda added a comment to D158785: [lldb] Add a "thread extrainfo" LC_NOTE for Mach-O corefiles, to store the thread IDs of the threads.

Thanks for the feedback Alex & Jonas. Jonas' comment that we have a lot of different methods manually stepping over load commands to find their LC_NOTEs was something I'd been meaning to deal with some day, but hadn't done yet. I shouldn't complicate this patch by also doing that but ... I did. Updating the patch in a minute.

Tue, Aug 29, 5:39 PM · Restricted Project, Restricted Project
jasonmolenda added inline comments to D159101: [RISC-V] Add RISC-V ABI plugin.
Tue, Aug 29, 3:15 PM · Restricted Project, Restricted Project

Mon, Aug 28

jasonmolenda added a comment to D158785: [lldb] Add a "thread extrainfo" LC_NOTE for Mach-O corefiles, to store the thread IDs of the threads.

Thanks for the feedback @bulbazord & @JDevlieghere , I will address those points.

Mon, Aug 28, 10:45 AM · Restricted Project, Restricted Project

Aug 25 2023

jasonmolenda added a comment to D158785: [lldb] Add a "thread extrainfo" LC_NOTE for Mach-O corefiles, to store the thread IDs of the threads.

One interesting question about the basic design of this LC_NOTE. If I call it "thread extrainfo" and it is a JSON dictionary with a threads array -- how long before someone wants to stick some non-thread specific piece of data in here. Should it be a proc metadata with a threads array, and it doesn't become confusing as it is extended over years.

Aug 25 2023, 2:10 PM · Restricted Project, Restricted Project
jasonmolenda added a reviewer for D158785: [lldb] Add a "thread extrainfo" LC_NOTE for Mach-O corefiles, to store the thread IDs of the threads: jingham.
Aug 25 2023, 2:09 PM · Restricted Project, Restricted Project
jasonmolenda updated the summary of D158785: [lldb] Add a "thread extrainfo" LC_NOTE for Mach-O corefiles, to store the thread IDs of the threads.
Aug 25 2023, 10:47 AM · Restricted Project, Restricted Project

Aug 24 2023

jasonmolenda updated the diff for D158785: [lldb] Add a "thread extrainfo" LC_NOTE for Mach-O corefiles, to store the thread IDs of the threads.

After thinking about this more, and talking with @jingham I rewrote the patch so LC_NOTE "thread extrainfo" is a JSON dictionary with a key threads that has an array. The number of entries in the array must match the number of LC_THREADs in the Mach-O corefile. Each array entry may have a thread_id key with a thread id for that LC_THREAD, or lldb will create a thread_id for it. I expect we will add more per-thread keys in the future.

Aug 24 2023, 6:21 PM · Restricted Project, Restricted Project
jasonmolenda added a comment to D158785: [lldb] Add a "thread extrainfo" LC_NOTE for Mach-O corefiles, to store the thread IDs of the threads.

As soon as I started thinking about thread names and queue names and mach exception data, all variable length things, a binary format doesn't seem ideal. We do already send a lot of thread information about processes in JSON in gdb remote serial protocol from debugserver today. It's the first time we'd use JSON in a Mach-O LC_NOTE though, so I'm interested to hear other people's thoughts.

Aug 24 2023, 3:30 PM · Restricted Project, Restricted Project
jasonmolenda added a comment to D158785: [lldb] Add a "thread extrainfo" LC_NOTE for Mach-O corefiles, to store the thread IDs of the threads.

Or possibly we should just make "thread extrainfo" a JSON blob with a dictionary for each thread, which would make it easier to extend, instead of a binary format. I'm not sure I have a strong opinion.

Aug 24 2023, 3:21 PM · Restricted Project, Restricted Project
jasonmolenda requested review of D158785: [lldb] Add a "thread extrainfo" LC_NOTE for Mach-O corefiles, to store the thread IDs of the threads.
Aug 24 2023, 3:10 PM · Restricted Project, Restricted Project

Aug 22 2023

jasonmolenda added a comment to D158506: [lldb][AArch64] Add release notes and documentation for SME.

LGTM, fwiw.

Aug 22 2023, 5:44 PM · Restricted Project, Restricted Project, Restricted Project
jasonmolenda added a comment to D157764: [LLDB] Allow expression evaluators to set arbitrary timeouts.

@jasonmolenda , yep. I have already reverted this patch. I'll figure out how to make that work nicely with these changes.

Aug 22 2023, 2:36 PM · Restricted Project, Restricted Project
jasonmolenda added a comment to D157764: [LLDB] Allow expression evaluators to set arbitrary timeouts.

@wallace this is breaking TestIRInterpreter.py on macOS now; https://green.lab.llvm.org/green/view/LLDB/job/lldb-cmake/ has been failing since it went in (there was another llvm issue causing failures right before this went in, so it was easy to miss). On my desktop this change results in TestIRInterpreter.py running without end; I think the bots kill tests that run for more than 5 minutes.

Aug 22 2023, 2:33 PM · Restricted Project, Restricted Project

Aug 21 2023

jasonmolenda updated subscribers of D157907: [NFC] Refactor X86TargetLowering::getGlobalWrapperKind().

Hi, this is causing a regression on the greendragon x86_64 lldb bot, it took a little while to repo and narrow down today. https://green.lab.llvm.org/green/view/LLDB/job/lldb-cmake/ is failing on TestDequeFromStdModule.py, I can repo it on an intel mac. We're crashing under

Aug 21 2023, 11:22 PM · Restricted Project, Restricted Project

Aug 18 2023

jasonmolenda committed rG18b211cb1521: Disable stdin/stdout for environment_check inferior process (authored by jasonmolenda).
Disable stdin/stdout for environment_check inferior process
Aug 18 2023, 4:28 PM · Restricted Project
jasonmolenda closed D158237: Change LLGSTest.cpp to run environment_check inferior with stdin/stdout disabled, to work around ASAN CI bot issue.
Aug 18 2023, 4:28 PM · Restricted Project, Restricted Project
jasonmolenda committed rG1a2122e9e9d1: Align mach exception data before accessing it (authored by jasonmolenda).
Align mach exception data before accessing it
Aug 18 2023, 3:35 PM · Restricted Project
jasonmolenda added a reverting change for rGb10c2f846d93: Align mach exception data before accessing it: rGef70f5c6bbda: Revert "Align mach exception data before accessing it".
Aug 18 2023, 3:35 PM · Restricted Project
jasonmolenda committed rGef70f5c6bbda: Revert "Align mach exception data before accessing it" (authored by jasonmolenda).
Revert "Align mach exception data before accessing it"
Aug 18 2023, 3:35 PM · Restricted Project
jasonmolenda closed D158312: [debugserver] align received mach exception data before accessing it as array of uint64_t's, fix UB sanitizer failure.
Aug 18 2023, 3:34 PM · Restricted Project, Restricted Project
jasonmolenda committed rGb10c2f846d93: Align mach exception data before accessing it (authored by jasonmolenda).
Align mach exception data before accessing it
Aug 18 2023, 3:32 PM · Restricted Project
jasonmolenda added a comment to D158312: [debugserver] align received mach exception data before accessing it as array of uint64_t's, fix UB sanitizer failure.

I'm going to land this one sans-approval to fix the CI bot. but I still think

self.runCmd("settings set target.process.extra-startup-command QSetLogging:bitmask=LOG_PROCESS|LOG_EXCEPTIONS|LOG_RNB_PACKETS|LOG_STEP;")
Aug 18 2023, 3:28 PM · Restricted Project, Restricted Project
jasonmolenda requested review of D158312: [debugserver] align received mach exception data before accessing it as array of uint64_t's, fix UB sanitizer failure.
Aug 18 2023, 2:21 PM · Restricted Project, Restricted Project

Aug 17 2023

jasonmolenda committed rG10f494d2896b: Only set the "low" address masks when only one adressable bits specified (authored by jasonmolenda).
Only set the "low" address masks when only one adressable bits specified
Aug 17 2023, 6:16 PM · Restricted Project
jasonmolenda requested review of D158237: Change LLGSTest.cpp to run environment_check inferior with stdin/stdout disabled, to work around ASAN CI bot issue.
Aug 17 2023, 5:22 PM · Restricted Project, Restricted Project
jasonmolenda committed rGd37642b4a261: Simplify address mask setting logic in AddressableBits (authored by jasonmolenda).
Simplify address mask setting logic in AddressableBits
Aug 17 2023, 4:24 PM · Restricted Project
jasonmolenda added inline comments to D158205: [lldb] Fix performance regression after adding GNUstep ObjC runtime.
Aug 17 2023, 1:06 PM · Restricted Project, Restricted Project
jasonmolenda accepted D158205: [lldb] Fix performance regression after adding GNUstep ObjC runtime.

Looks good!

Aug 17 2023, 12:51 PM · Restricted Project, Restricted Project

Aug 16 2023

jasonmolenda committed rG6f4a0c762fe2: hi/low addr space bits can be sent in stop-rely packet (authored by jasonmolenda).
hi/low addr space bits can be sent in stop-rely packet
Aug 16 2023, 4:12 PM · Restricted Project
jasonmolenda closed D158041: [lldb] [gdb-remote] Also handle high/low memory addressable bits setting in the stop info packet.
Aug 16 2023, 4:12 PM · Restricted Project, Restricted Project
jasonmolenda updated the diff for D155905: lldb RFC: Exposing set/get address masks, Fix*Address methods in SBProcess.

Updated back to my most recent version of this patch, thanks for the help all.

Aug 16 2023, 4:05 PM · Restricted Project, Restricted Project
jasonmolenda updated the diff for D158041: [lldb] [gdb-remote] Also handle high/low memory addressable bits setting in the stop info packet.

Update patch to remove the HasValue/IsValue and Clear methods from AddressableBits. Change methods that may fill in an AddressableBits object with values to return an AddressableBits object unconditionally. Change AddressableBits::SetProcessMasks so it can be called unconditionally, and it only sets mask values in Process if values were set.

Aug 16 2023, 3:56 PM · Restricted Project, Restricted Project
jasonmolenda added a comment to D155905: lldb RFC: Exposing set/get address masks, Fix*Address methods in SBProcess.

ah dangit, I meant to update the patch in https://reviews.llvm.org/D158041 and accidentally blew away the last patch I had for this one. let's see if I can extract it from here somehow.

Aug 16 2023, 3:55 PM · Restricted Project, Restricted Project
jasonmolenda updated the diff for D155905: lldb RFC: Exposing set/get address masks, Fix*Address methods in SBProcess.

Update patch to remove the HasValue/IsValue and Clear methods from AddressableBits. Change methods that may fill in an AddressableBits object with values to return an AddressableBits object unconditionally. Change AddressableBits::SetProcessMasks so it can be called unconditionally, and it only sets mask values in Process if values were set.

Aug 16 2023, 3:54 PM · Restricted Project, Restricted Project
jasonmolenda added inline comments to D158041: [lldb] [gdb-remote] Also handle high/low memory addressable bits setting in the stop info packet.
Aug 16 2023, 1:58 PM · Restricted Project, Restricted Project
jasonmolenda updated the diff for D158041: [lldb] [gdb-remote] Also handle high/low memory addressable bits setting in the stop info packet.

Update patch to change the AddressableBits::IsValid to AddressableBits::HasValue which is a clearer description. The IsValid methods are used across the lldb_private classes everywhere. I tried changing this to operator bool but I thought that was less clear in use. I compromised by changing it to HasValue - this is a POD class so "IsValid" seemed a little questionable, but I didn't like operator bool. Let's try this out.

Aug 16 2023, 1:43 PM · Restricted Project, Restricted Project
jasonmolenda added inline comments to D158041: [lldb] [gdb-remote] Also handle high/low memory addressable bits setting in the stop info packet.
Aug 16 2023, 1:28 PM · Restricted Project, Restricted Project
jasonmolenda added inline comments to D158041: [lldb] [gdb-remote] Also handle high/low memory addressable bits setting in the stop info packet.
Aug 16 2023, 1:12 PM · Restricted Project, Restricted Project

Aug 15 2023

jasonmolenda requested review of D158041: [lldb] [gdb-remote] Also handle high/low memory addressable bits setting in the stop info packet.
Aug 15 2023, 4:58 PM · Restricted Project, Restricted Project
jasonmolenda committed rG5ed62c7bc99a: Added a use of uuid_t, need to incl AppleUuidCompatibility.h (authored by jasonmolenda).
Added a use of uuid_t, need to incl AppleUuidCompatibility.h
Aug 15 2023, 1:53 PM · Restricted Project
jasonmolenda committed rGd70d5e9f6fa2: Get binary UUID from fixed location in special Mach-O corefiles (authored by jasonmolenda).
Get binary UUID from fixed location in special Mach-O corefiles
Aug 15 2023, 1:50 PM · Restricted Project
jasonmolenda closed D157756: Support corefiles that put the uuid of their binary in a fixed address in low memory; load that binary.
Aug 15 2023, 1:50 PM · Restricted Project, Restricted Project
jasonmolenda committed rG3ad618f4aea1: Update qHostInfo/LC_NOTE so multiple address bits can be specified (authored by jasonmolenda).
Update qHostInfo/LC_NOTE so multiple address bits can be specified
Aug 15 2023, 1:22 PM · Restricted Project
jasonmolenda closed D157667: Define qHostInfo and Mach-O LC_NOTE "addrable bits" methods to describe high and low memory addressing bits.
Aug 15 2023, 1:21 PM · Restricted Project, Restricted Project

Aug 14 2023

jasonmolenda updated the diff for D157667: Define qHostInfo and Mach-O LC_NOTE "addrable bits" methods to describe high and low memory addressing bits.

Incorporate Jonas' suggestion of a AddressableBits class that GDBRemoteCommunicationClient and ObjectFileMachO could use to store the zero/one/two addressable bits values back to a Process, and centralizing the logic for how those 0-2 values are used to set the Process address masks.

Aug 14 2023, 5:10 PM · Restricted Project, Restricted Project

Aug 11 2023

jasonmolenda committed rGebf249066ac5: [lldb] SBTarget::AddModule do all searches by UUID, set Target arch (authored by jasonmolenda).
[lldb] SBTarget::AddModule do all searches by UUID, set Target arch
Aug 11 2023, 2:21 PM · Restricted Project
jasonmolenda closed D157659: Have SBTarget::AddModule force a possibly-slow search for the binary, and if the Target has no arch, initialize it with the binary's arch.
Aug 11 2023, 2:20 PM · Restricted Project, Restricted Project
jasonmolenda updated the diff for D157756: Support corefiles that put the uuid of their binary in a fixed address in low memory; load that binary.

Fix size check when making sure there's enough data.

Aug 11 2023, 2:02 PM · Restricted Project, Restricted Project
jasonmolenda requested review of D157756: Support corefiles that put the uuid of their binary in a fixed address in low memory; load that binary.
Aug 11 2023, 1:52 PM · Restricted Project, Restricted Project
jasonmolenda updated the diff for D157659: Have SBTarget::AddModule force a possibly-slow search for the binary, and if the Target has no arch, initialize it with the binary's arch.

Incorporate Alex's suggestions, not sure about using llvm-dwarfdump yet tho.

Aug 11 2023, 1:09 PM · Restricted Project, Restricted Project
jasonmolenda added inline comments to D157659: Have SBTarget::AddModule force a possibly-slow search for the binary, and if the Target has no arch, initialize it with the binary's arch.
Aug 11 2023, 1:08 PM · Restricted Project, Restricted Project
jasonmolenda updated the diff for D157667: Define qHostInfo and Mach-O LC_NOTE "addrable bits" methods to describe high and low memory addressing bits.

Fix the problems Alex found on review, thanks Alex.

Aug 11 2023, 1:03 PM · Restricted Project, Restricted Project
jasonmolenda accepted D156086: [lldb][NFC] Use MCInstrAnalysis when available in the disassembler plugin.

The lldb side looks good to me, and I think you've addressed the llvm parts.

Aug 11 2023, 10:21 AM · Restricted Project, Restricted Project, Restricted Project

Aug 10 2023

jasonmolenda updated the diff for D157667: Define qHostInfo and Mach-O LC_NOTE "addrable bits" methods to describe high and low memory addressing bits.

update comments a tiny bit.

Aug 10 2023, 6:05 PM · Restricted Project, Restricted Project
jasonmolenda requested review of D157667: Define qHostInfo and Mach-O LC_NOTE "addrable bits" methods to describe high and low memory addressing bits.
Aug 10 2023, 5:57 PM · Restricted Project, Restricted Project
jasonmolenda added a comment to D157659: Have SBTarget::AddModule force a possibly-slow search for the binary, and if the Target has no arch, initialize it with the binary's arch.

One more bit of explanation about the changes: There is an SBTarget::AddModule which takes individual parts of a module spec, and an SBTarget::AddModule which takes an SBModuleSpec. I was going to need to duplicate my code to force the expensive search & update the Target's arch if it didn't have one in both, so I had the first method create an SBModuleSpec with its information and call the second.

Aug 10 2023, 4:24 PM · Restricted Project, Restricted Project
jasonmolenda requested review of D157659: Have SBTarget::AddModule force a possibly-slow search for the binary, and if the Target has no arch, initialize it with the binary's arch.
Aug 10 2023, 3:05 PM · Restricted Project, Restricted Project
jasonmolenda added a comment to D157640: [lldb] Improve error message when trying to debug a non-debuggable process.

Maybe

const char *ent_name = 
#if TARGET_OS_OSX
"com.apple.security.get-task-allow";
#else
"get-task-allow";
#endif
Aug 10 2023, 12:59 PM · Restricted Project, Restricted Project
jasonmolenda accepted D157640: [lldb] Improve error message when trying to debug a non-debuggable process.
Aug 10 2023, 12:51 PM · Restricted Project, Restricted Project
jasonmolenda added a comment to D157640: [lldb] Improve error message when trying to debug a non-debuggable process.

Maybe get-task-allow is allowed (lol) on macOS too.

Aug 10 2023, 12:51 PM · Restricted Project, Restricted Project
jasonmolenda added a comment to D157640: [lldb] Improve error message when trying to debug a non-debuggable process.

I'm fine with this but on macOS I believe it's com.apple.security.get-task-allow v. "Entitlements on macOS"
https://developer.apple.com/documentation/technotes/tn3125-inside-code-signing-provisioning-profiles

Aug 10 2023, 12:51 PM · Restricted Project, Restricted Project

Aug 8 2023

jasonmolenda committed rG0d8d31bbf55c: When loading kernel binary, use DownloadObjectAndSymbolFile last (authored by jasonmolenda).
When loading kernel binary, use DownloadObjectAndSymbolFile last
Aug 8 2023, 5:31 PM · Restricted Project
jasonmolenda closed D157165: [lldb] [darwin kernel debug] When looking for a Darwin kernel symbol file, call GetSharedModules before DownloadObjectAndSymbolFile.
Aug 8 2023, 5:31 PM · Restricted Project, Restricted Project
jasonmolenda updated the diff for D157165: [lldb] [darwin kernel debug] When looking for a Darwin kernel symbol file, call GetSharedModules before DownloadObjectAndSymbolFile.

Rebase patch on current top of tree sources.

Aug 8 2023, 5:28 PM · Restricted Project, Restricted Project
jasonmolenda committed rG1290869ef2f7: Show error messages from DebugSymbols DBGShellCommand agent (authored by jasonmolenda).
Show error messages from DebugSymbols DBGShellCommand agent
Aug 8 2023, 5:10 PM · Restricted Project
jasonmolenda closed D157160: Surface error messages from the DebugSymbols DBGShellCommands external agent; add logging for LC_NOTEs in Mach-O corefiles.
Aug 8 2023, 5:10 PM · Restricted Project, Restricted Project
jasonmolenda committed rGc5f81100e447: When ProcessMachCore has metadata for a binary, don't scan (authored by jasonmolenda).
When ProcessMachCore has metadata for a binary, don't scan
Aug 8 2023, 3:50 PM · Restricted Project
jasonmolenda closed D157168: [lldb] [mach-o corefiles] If we have LC_NOTE metadata and can't find a binary, don't fall back to an exhaustive scan.
Aug 8 2023, 3:50 PM · Restricted Project, Restricted Project
jasonmolenda updated the diff for D157168: [lldb] [mach-o corefiles] If we have LC_NOTE metadata and can't find a binary, don't fall back to an exhaustive scan.

Rebase on current TOT sources, and add a comment to the ProcessMachCore::LoadBinariesViaMetadata prototype in the header documenting the meaning of the return value, I agree with Alex I should make this a little clearer.

Aug 8 2023, 2:52 PM · Restricted Project, Restricted Project

Aug 7 2023

jasonmolenda updated the diff for D157160: Surface error messages from the DebugSymbols DBGShellCommands external agent; add logging for LC_NOTEs in Mach-O corefiles.

Update patch to send these error messages to the ErrorStream not OutputStream. Also change LocateSymbolFileMacOSX.cpp so the full command that was used to find the binary is included in the error message, to make it clearer exactly where the error message originated.

Aug 7 2023, 6:27 PM · Restricted Project, Restricted Project
jasonmolenda added inline comments to D157160: Surface error messages from the DebugSymbols DBGShellCommands external agent; add logging for LC_NOTEs in Mach-O corefiles.
Aug 7 2023, 5:42 PM · Restricted Project, Restricted Project
jasonmolenda updated the diff for D157160: Surface error messages from the DebugSymbols DBGShellCommands external agent; add logging for LC_NOTEs in Mach-O corefiles.

fix typeo

Aug 7 2023, 5:41 PM · Restricted Project, Restricted Project
jasonmolenda updated the diff for D157160: Surface error messages from the DebugSymbols DBGShellCommands external agent; add logging for LC_NOTEs in Mach-O corefiles.

Change calls to Log::Printf to use LLDB_LOGF().

Aug 7 2023, 5:18 PM · Restricted Project, Restricted Project
jasonmolenda committed rG57cbd26a68ab: Flag for LoadBinaryWithUUIDAndAddress, to create memory image or not (authored by jasonmolenda).
Flag for LoadBinaryWithUUIDAndAddress, to create memory image or not
Aug 7 2023, 3:20 PM · Restricted Project
jasonmolenda closed D157167: [lldb] Add flag to DynamicLoader::LoadBinaryWithUUIDAndAddress to control whether we fall back to reading the binary out of memory.
Aug 7 2023, 3:19 PM · Restricted Project, Restricted Project
jasonmolenda updated the diff for D157167: [lldb] Add flag to DynamicLoader::LoadBinaryWithUUIDAndAddress to control whether we fall back to reading the binary out of memory.

Fix my script print's to just print, I can't repo a buffering problem that I thought I had seen in the past.

Aug 7 2023, 11:07 AM · Restricted Project, Restricted Project
jasonmolenda added inline comments to D157167: [lldb] Add flag to DynamicLoader::LoadBinaryWithUUIDAndAddress to control whether we fall back to reading the binary out of memory.
Aug 7 2023, 11:05 AM · Restricted Project, Restricted Project
jasonmolenda updated the diff for D157167: [lldb] Add flag to DynamicLoader::LoadBinaryWithUUIDAndAddress to control whether we fall back to reading the binary out of memory.

Incorporate Jonas' feedback about the naming of the new DynamicLoader method argument.

Aug 7 2023, 10:56 AM · Restricted Project, Restricted Project
jasonmolenda added inline comments to D157167: [lldb] Add flag to DynamicLoader::LoadBinaryWithUUIDAndAddress to control whether we fall back to reading the binary out of memory.
Aug 7 2023, 10:55 AM · Restricted Project, Restricted Project

Aug 4 2023

jasonmolenda requested review of D157168: [lldb] [mach-o corefiles] If we have LC_NOTE metadata and can't find a binary, don't fall back to an exhaustive scan.
Aug 4 2023, 5:41 PM · Restricted Project, Restricted Project
jasonmolenda requested review of D157167: [lldb] Add flag to DynamicLoader::LoadBinaryWithUUIDAndAddress to control whether we fall back to reading the binary out of memory.
Aug 4 2023, 5:36 PM · Restricted Project, Restricted Project
jasonmolenda requested review of D157165: [lldb] [darwin kernel debug] When looking for a Darwin kernel symbol file, call GetSharedModules before DownloadObjectAndSymbolFile.
Aug 4 2023, 5:20 PM · Restricted Project, Restricted Project