Re: How do I set a watchpoint?
Re: How do I set a watchpoint?
- Subject: Re: How do I set a watchpoint?
- From: Kate Stone <email@hidden>
- Date: Thu, 28 May 2015 18:15:11 -0700
Please go ahead and file the bug that describes what you’re trying to accomplish. The conjunction of watchpoint setting, register addresses, and Swift language sounds like it may need attention.
Xcode Runtime Analysis Tools
On May 28, 2015, at 5:16 PM, Jens Alfke < email@hidden> wrote:
On May 28, 2015, at 4:24 PM, Kate Stone < email@hidden> wrote:
Register values can be readily used in C-based languages as if they were pointers, but they have far less obvious meaning in a Swift context where everything is more strongly typed and is safe by design.
I think Swift syntax is actively getting in the way in LLDB. When debugging you want to be able to look at data in a more free-form way and get a bit closer to the metal. The C _expression_ syntax works pretty well for that, but in Swift mode I was stymied.
It does, when I enable MallocScribble. Could you explain the syntax to set a watchpoint, too? Thanks again…
Per LLDB’s command line help:
We’re going around in circles now. :/ Please look at my original message, wherein I was unable to get LLDB to accept any variant of “watch set _expression_”. It kept giving errors like "_expression_ evaluation of address to watch failed”. That’s why I posted in the first place.
This might be another instance of Swift syntax not working well. I was stepping through assembly code and had the address of an object in a register, and wanted to detect when that object was modified. LLDB may have been rejecting my commands because the Swift mode wasn’t recognizing a numeric value as an address.
—Jens
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden