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
?