9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Sascha Retzki" <sretzki@gmx.de>
To: 9fans@cse.psu.edu
Subject: [9fans] An acid-question
Date: Sat, 15 Jul 2006 12:55:21 +0200	[thread overview]
Message-ID: <466b269ce739adc433673872f2a17422@mail.gmx.net> (raw)


Hi folks,

I got a function which goes like this:
void
m00(...)
{
	int i,j = 0;

	if(foo) {

		for(i=0;i<=n;i++) {
			some_data[j++] = srcdata[i]
		}

	} else {
		...
	}
}

(ignore the errors)

I get a fault write. Jippie. Starting to acid arround, I came across this:

acid: *m00:j
0x00000000
acid: *m00:i
<stdin>:3: (error) colon: local variable not found
acid:

so obviously acid does not 'see' i because it is first used in a new block (the if()), at least I guess so. How do I display the value of i in acid?


Mfg, Sascha



             reply	other threads:[~2006-07-15 10:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-15 10:55 Sascha Retzki [this message]
2006-07-15 11:22 ` erik quanstrom
2006-07-15 15:28   ` Sascha Retzki
2006-07-15 12:15     ` erik quanstrom
2006-07-15 12:36       ` Sascha Retzki
2006-07-15 12:39         ` erik quanstrom
2006-07-15 17:02         ` jmk
2006-07-15 17:09           ` Sascha Retzki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=466b269ce739adc433673872f2a17422@mail.gmx.net \
    --to=sretzki@gmx.de \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).