From: Nick Roberts <nickrob@snap.net.nz>
To: "Sanjeev Kumar.S" <sanjeevfiles@yahoo.com>
Cc: gnu-emacs-help@gnu.org
Subject: Re: getting gdb init work on emacs
Date: Thu, 3 Apr 2008 15:01:11 +1200 [thread overview]
Message-ID: <18420.18551.534227.789959@kahikatea.snap.net.nz> (raw)
In-Reply-To: <179478.4948.qm@web57711.mail.re3.yahoo.com>
> define lwlan
> set $kld = linker_files.tqh_first
> while ($kld != 0)
> if [$kld->filename=="wlan.ko"] \
> printf "0x%08x %s\n", $kld->address, $kld->filename
> end
> set $kld = $kld->link.tqe_next
> end
> end
>
> running it gives me this :
>
> (kgdb) lwlan
> A syntax error in expression, near `[$kld->filename=="wlan.ko"] printf "0x%08x %s\n", $kld->address, $kld->filename'.
>
> by the way does it follow the shell syntax or
No. Which is why square brackets don't work.
> is there any other syntax ?
See the Sequences node of the Gdb manual. The syntax is quite restricted and
expressions like $kld->filename won't work.
There is currently work being done on Python scripting. This is being reported
on the gdb mailing list (gdb@sourceware.org) which is where this question should
really go as it's about Gdb.
--
Nick http://www.inet.net.nz/~nickrob
next prev parent reply other threads:[~2008-04-03 3:01 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-06 14:43 Change the default behaviour when 2 files are open Francis Moreau
2008-03-06 15:07 ` Joel J. Adamson
2008-03-06 21:07 ` Francis Moreau
2008-03-06 15:33 ` Bastien
2008-03-06 16:13 ` Francis Moreau
2008-03-06 19:24 ` Peter Dyballa
2008-03-06 21:04 ` Francis Moreau
2008-03-06 21:42 ` Nick Roberts
2008-03-07 8:17 ` Francis Moreau
2008-03-07 9:57 ` Thierry Volpiatto
2008-04-02 8:56 ` getting gdb init work on emacs Sanjeev Kumar.S
2008-04-03 3:01 ` Nick Roberts [this message]
[not found] ` <mailman.8460.1204837472.18990.help-gnu-emacs@gnu.org>
2008-03-06 21:48 ` Change the default behaviour when 2 files are open Sven Joachim
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=18420.18551.534227.789959@kahikatea.snap.net.nz \
--to=nickrob@snap.net.nz \
--cc=gnu-emacs-help@gnu.org \
--cc=sanjeevfiles@yahoo.com \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.