From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Sanjeev Kumar.S" Newsgroups: gmane.emacs.help Subject: getting gdb init work on emacs Date: Wed, 2 Apr 2008 01:56:50 -0700 (PDT) Message-ID: <179478.4948.qm@web57711.mail.re3.yahoo.com> References: <18384.25918.2128.237860@kahikatea.snap.net.nz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1882419106-1207126610=:4948" Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1207126667 14945 80.91.229.12 (2 Apr 2008 08:57:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Apr 2008 08:57:47 +0000 (UTC) Cc: gnu-emacs-help@gnu.org To: Nick Roberts , Francis Moreau Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 02 10:58:18 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JgynP-0002RC-WF for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Apr 2008 10:58:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jgymn-0001fM-Ry for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Apr 2008 04:57:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JgymB-0001IB-GK for help-gnu-emacs@gnu.org; Wed, 02 Apr 2008 04:56:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jgym9-0001Fz-4V for help-gnu-emacs@gnu.org; Wed, 02 Apr 2008 04:56:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jgym8-0001Fe-ND for help-gnu-emacs@gnu.org; Wed, 02 Apr 2008 04:56:56 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jgym8-0003i2-E4 for help-gnu-emacs@gnu.org; Wed, 02 Apr 2008 04:56:56 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Jgym7-0007Sw-VM for gnu-emacs-help@gnu.org; Wed, 02 Apr 2008 04:56:56 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Jgym4-0003gg-63 for gnu-emacs-help@gnu.org; Wed, 02 Apr 2008 04:56:55 -0400 Original-Received: from web57711.mail.re3.yahoo.com ([68.142.236.74]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Jgym3-0003gU-T0 for gnu-emacs-help@gnu.org; Wed, 02 Apr 2008 04:56:52 -0400 Original-Received: (qmail 7061 invoked by uid 60001); 2 Apr 2008 08:56:51 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=vpHCHQZTQOwHishdJ2US13etwPkbt2S1VbaR3Ph8oZ8xEFtn8U+2x5dLZeKL4BK/TOY4WWFFcbJRVdGQKecJSCFcKGEMHcVzuOONa5iOJQRIyMc9txO71zyw3JcGPl6XwzrmULwjHLoL5Qc8mG3wLcSjXTf18ol7brk7el1nP8E=; X-YMail-OSG: c533xSAVM1nNBBpki2L4KwiZx_.sJAPOCI.4jZECK2FcYxc1_s5NfWEtV2oM_w9bgfcbRwzSsG1OP9C6UUZQfbEFMNSJPDxkk0Jof151NnlAmrmB69f_Yb2_8LsW Original-Received: from [124.30.112.50] by web57711.mail.re3.yahoo.com via HTTP; Wed, 02 Apr 2008 01:56:50 PDT In-Reply-To: <18384.25918.2128.237860@kahikatea.snap.net.nz> X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:52964 Archived-At: --0-1882419106-1207126610=:4948 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi, I am trying to setup gdb init so that I don't have to lookup add and load the module everytime so I am trying to automate it. I'm new to this and i am facing this problem can anyone suggest a solution ? 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 is there any other syntax ? thanks, sanjeev. --------------------------------- You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. --0-1882419106-1207126610=:4948 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi,
     I am trying to setup gdb init so that I don't
have to lookup add and load the module everytime
so I am trying to automate it. I'm new to this
and i am facing this problem can anyone suggest
a solution ?

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
is there any other syntax ?

thanks,
sanjeev.


You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. --0-1882419106-1207126610=:4948--