From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Shenli Zhu Newsgroups: gmane.emacs.devel Subject: Re: Emacs C debug help function? Date: Fri, 10 Sep 2010 16:43:02 +0800 Message-ID: References: <87occ61d79.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=000e0cd2dbe219a9dd048fe3bc03 X-Trace: dough.gmane.org 1284108201 29644 80.91.229.12 (10 Sep 2010 08:43:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Sep 2010 08:43:21 +0000 (UTC) Cc: emacs-devel To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 10 10:43:19 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OtzCY-0006c9-K2 for ged-emacs-devel@m.gmane.org; Fri, 10 Sep 2010 10:43:18 +0200 Original-Received: from localhost ([127.0.0.1]:46541 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OtzCX-0004wq-Lx for ged-emacs-devel@m.gmane.org; Fri, 10 Sep 2010 04:43:17 -0400 Original-Received: from [140.186.70.92] (port=54658 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OtzCL-0004ts-L0 for emacs-devel@gnu.org; Fri, 10 Sep 2010 04:43:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OtzCK-0001Pm-0i for emacs-devel@gnu.org; Fri, 10 Sep 2010 04:43:05 -0400 Original-Received: from mail-pw0-f41.google.com ([209.85.160.41]:34590) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OtzCJ-0001Pg-R8 for emacs-devel@gnu.org; Fri, 10 Sep 2010 04:43:03 -0400 Original-Received: by pwj6 with SMTP id 6so1660979pwj.0 for ; Fri, 10 Sep 2010 01:43:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=gNCVZpjjhaHPy40xQ67i7PQQ6dnmO/+WeBvI6UKdTl4=; b=Bcyajsp4wEN/qkWwCcCIFrVWVaeAryuat+WHwR6rC5+fNuW5DgZuUAyQZljteTKAxS ARFyG41addecW5fLNhUiTWOJ+MEQatR3guByFf4JM9gWtKr1JyWxhtG8/JD6iwAWEhBN K81zliqoHkDaA0UuuPkt7LzcC4Q1uwn919K/4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=mAieORhS3Ln0xwudgGaln7lUoaLt1Kk/dZW3vSVjwSBlNDS2imFy8fqg/mI+wz5oy3 IbXN1hYT+PSB02UjSc9GhrpzAVQFrsv96PZ/qERseOlYovbjlvyQWx/KJMi2kTt7+tiO pJFE4MAE3FoZzW6xUQaOIzAJimyz1xI+I1M1c= Original-Received: by 10.142.185.8 with SMTP id i8mr580996wff.31.1284108182988; Fri, 10 Sep 2010 01:43:02 -0700 (PDT) Original-Received: by 10.142.72.2 with HTTP; Fri, 10 Sep 2010 01:43:02 -0700 (PDT) In-Reply-To: <87occ61d79.fsf@uwakimon.sk.tsukuba.ac.jp> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:129870 Archived-At: --000e0cd2dbe219a9dd048fe3bc03 Content-Type: text/plain; charset=ISO-8859-1 On Fri, Sep 10, 2010 at 11:37 AM, Stephen J. Turnbull wrote: > Shenli Zhu writes: > > > Is there any help function to display form, etc? > > Yes. Type "help user" to gdb for an annotated list. If you don't > understand how to use them from that list, or need help interpreting > results, please ask specifically. > > > And is there any instruction files on hacking C files? > > For advice on writing code, as far as I know there is a little bit in > the Emacs Lisp Reference, and for the general structure of C support > for Lisp, online there's > > http://www.xemacs.org/Documentation/21.5/html/internals.html > > Warning: Emacs and XEmacs redisplays are completely different, as are > text properties and extents. The Lisp language implementation is > pretty similar, as are the buffer and string structures. (You need to > be a little careful with text as XEmacs still uses Mule code > internally, but it has the same formal properties, eg, finding > character boundaries in O(1), etc, and many of the same higher-level > APIs for actually handling encoding as used in Emacs.) > > For the style you should use in writing code, there is the GNU coding > standard, which I believe is distributed somewhere with Emacs. If > not, you can install XEmacs and throw away everything except the > "standards.info" file. :-) (Sorry, we don't provide an online > version. Probably somewhere on the GNU site?) > Hi Stephen, it's what I need, thank you. --000e0cd2dbe219a9dd048fe3bc03 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Fri, Sep 10, 2010 at 11:37 AM, Stephe= n J. Turnbull <s= tephen@xemacs.org> wrote:
Shenli Zhu writes:

=A0> Is there any help function to display form, etc?

Yes. =A0Type "help user" to gdb for an annotated list. =A0I= f you don't
understand how to use them from that list, or need help interpreting
results, please ask specifically.

=A0> And is there any instruction files on hacking C files?

For advice on writing code, as far as I know there is a little bit in=
the Emacs Lisp Reference, and for the general structure of C support
for Lisp, online there's

=A0 =A0http://www.xemacs.org/Documentation/21.5/html/inter= nals.html

Warning: Emacs and XEmacs redisplays are completely different, as are
text properties and extents. =A0The Lisp language implementation is
pretty similar, as are the buffer and string structures. =A0(You need to be a little careful with text as XEmacs still uses Mule code
internally, but it has the same formal properties, eg, finding
character boundaries in O(1), etc, and many of the same higher-level
APIs for actually handling encoding as used in Emacs.)

For the style you should use in writing code, there is the GNU coding
standard, which I believe is distributed somewhere with Emacs. =A0If
not, you can install XEmacs and throw away everything except the
"standards.info" file. :-) =A0(Sorry, we don't provide an online
version. =A0Probably somewhere on the GNU site?)

Hi Stephen, it's what I need, thank you.
--000e0cd2dbe219a9dd048fe3bc03--