From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@9fans.net From: "Grant R. Mather" Date: Wed, 12 Feb 2014 09:21:42 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] Strings in acid, what am I missing? Topicbox-Message-UUID: b91b072a-ead8-11e9-9d60-3106f5b1d025 I've been trying to learn how to use the acid debugger for a few days now, but there are a few things I'm having trouble understanding. One of which is the syntax for dealing with strings. I have the following program: #include #include void main(void) { int x = 10; int *ip = &x; int ia[] = { 1, 2, 3 }; char ca[] = "Hello"; char *cp = "World"; exits(0); } In acid, I get the following values: *main:x\d = 10 **main:ip\d = 10 *main:ia\d = 1 *main:ca\s = *s* *(main:ca\s) = Hello *(main:cp\s) = $ The first three values are expected, but when it gets to strings, I fail to understand what's happening. What is the purpose of the parenthenses? Why does 'cp' not give me the correct value and just gives me garbage instead? Any help would be much appreciated.