Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Getting source file and line number of a function.
- X-seq: zsh-workers 25339
- From: "Rocky Bernstein" <rocky.bernstein@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Getting source file and line number of a function.
- Date: Sat, 26 Jul 2008 21:06:33 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=wUGHP6XXaHEDZmCG8ce8tzd/HALQ3SqWIK/j5EzuENs=; b=EOzWQL05cp+5/FS34winuHZs95tPBoN8SWPH8sKgptkh5Z6cZGl72/QYxQ8xF79SSU Gjz7ZbGk9Hm/C0Jyv9ZmFfZFpHLWqiNSCEFdg8ShIp/1/QUSJs94rmUbSSV1mBOllEw3 3msGZ1Q0JfpeD+hUZoOrBZBoLCNSKfFHJM3Ww=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=YLRjFdMImYMfPvC/8jZ7H2+omoBmqSxqA1pLHhs6eFKzhj1jvaRLnUlW6I0JYYmKe9 478hWYWz7cC1MBo90y4CBZLKh/qvRfeuU1s0bUN+zQNZaJty7rYVEEkhMW3lSBZxe4SN 0SD1NkQYMzyxzLpy3Ncuqi2mCn+hZiQUzIUP4=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
I see that zsh has now has array variables functrace and
funcstack. Functrace stack gives a function name and a line offset
from the function. But for many things involving location reporting,
it would more be desirable to have a filename and absolute line
location.
Alternatively, if there were a way to get the filename and line number
of the beginning of a given function, one can do some arithmetic to
get the absolute position.
Is there currently a way to get this information. Should I try at
submitting a patch?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author