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: Emacs C debug help function? Date: Fri, 10 Sep 2010 10:11:22 +0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00221532cc5c627389048fde43fc X-Trace: dough.gmane.org 1284084915 19481 80.91.229.12 (10 Sep 2010 02:15:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Sep 2010 02:15:15 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 10 04:15:13 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 1Ott8y-0002YV-TC for ged-emacs-devel@m.gmane.org; Fri, 10 Sep 2010 04:15:13 +0200 Original-Received: from localhost ([127.0.0.1]:54980 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ott8y-0000AA-74 for ged-emacs-devel@m.gmane.org; Thu, 09 Sep 2010 22:15:12 -0400 Original-Received: from [140.186.70.92] (port=45039 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ott5J-0007jl-3C for emacs-devel@gnu.org; Thu, 09 Sep 2010 22:11:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ott5I-0007FE-2j for emacs-devel@gnu.org; Thu, 09 Sep 2010 22:11:25 -0400 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:54783) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ott5H-0007F8-TE for emacs-devel@gnu.org; Thu, 09 Sep 2010 22:11:24 -0400 Original-Received: by iwn33 with SMTP id 33so2449342iwn.0 for ; Thu, 09 Sep 2010 19:11:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=SRmOX7tsLieAesJuJLtKAzT8gyFz3uu26xPFsQZD1+Q=; b=VrNPGYV2ua2Q6lELiaE7KrXkIz6NLXARMNSOfpFOLc/FQ8aP4zVz5RvMHyIZIEoiXY QK7hPsqmYHubtxMkEoRiZKNY9HDIyAXFKJYqDz0ClYmGwjO8rjGI8CK3KqE4OkQTuSvI yCTi1C76LtAHW8U+KgWmkBp3gYqT5v9WKG058= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=IC6KMGZ4zkhcNkMgnEwYf0dZJ06+CFH7ncbC3+1IkX+lhkQDe9t3TRERCtg9WhyJGn 99e5kAd+T1mi214YnjtOgvqFVaerBNL/WxELiHyW9Ur1JNb+ZbSfXoG+rncUhFBYBmja UpH+PFRC8Efyb52flQat6t4ZC2gVu6TvLPfek= Original-Received: by 10.231.19.3 with SMTP id y3mr86195iba.156.1284084682875; Thu, 09 Sep 2010 19:11:22 -0700 (PDT) Original-Received: by 10.231.154.2 with HTTP; Thu, 9 Sep 2010 19:11:22 -0700 (PDT) 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:129851 --00221532cc5c627389048fde43fc Content-Type: text/plain; charset=ISO-8859-1 Hi Emacs hackers. I have tried to understand function (debug) on elisp level, and find some details on C level(e.g. debugger-step-after-exit). So, I attach emacs process to gdb. Backtrace is like: ... #14 0x0818f78b in Ffuncall (nargs=1, args=0xbfa63a00) at eval.c:3021 #15 0x081c8d21 in Fbyte_code (bytestr=154800713, vector=166927821, maxdepth=16) at bytecode.c:680 #16 0x081911b2 in Feval (form=165809550) at eval.c:2352 ... Is there any help function to display form, etc? And is there any instruction files on hacking C files? Thanks, Davy --00221532cc5c627389048fde43fc Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Emacs hackers.

I have tried to understand function (debug) on eli= sp level, and find some details on C level(e.g. debugger-step-after-exit). =
So, I attach emacs process to gdb.

Backtrace is like:
... #14 0x0818f78b in Ffuncall (nargs=3D1, args=3D0xbfa63a00) at eval.c:3021#15 0x081c8d21 in Fbyte_code (bytestr=3D154800713, vector=3D166927821, max= depth=3D16)
=A0=A0=A0 at bytecode.c:680
#16 0x081911b2 in Feval (form= =3D165809550) at eval.c:2352
...

Is there any help function to display form, etc? And is there an= y instruction files on hacking C files?

Thanks,
Davy
--00221532cc5c627389048fde43fc--