help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

getting gdb init work on emacs


From: Sanjeev Kumar.S
Subject: getting gdb init work on emacs
Date: Wed, 2 Apr 2008 01:56:50 -0700 (PDT)

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.
reply via email to

[Prev in Thread] Current Thread [Next in Thread]