Hi All,
User defined commands gets messed up if a definition has a name starting with "ws" and called from another definition. Is it a known defect? Any workarounds?
bash-3.2$ cat test.gdb
define wsbaz
printf "wsbaz\n"
end
define foo
wsbaz
end
define bar
printf "bar\n"
end
bash-3.2$ ./gdb
GNU gdb (GDB) 7.5.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <
http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<
http://www.gnu.org/software/gdb/bugs/>.
(gdb) source ./test.gdb
(gdb) foo
warning: Invalid control type in canned commands structure.
warning: Error executing canned sequence of commands.
(gdb) bar
Undefined command: "bar". Try "help".
(gdb) show user foo
User command "foo":
wsfoo
end
define bar
printf "bar\n"
(gdb) show user bar
Undefined command: "bar". Try "help".
(gdb) show user wsfoo
User command "wsfoo":
printf "wsfoo\n"
(gdb) wsfoo
wsfoo
(gdb)
Cheers,
Mohan.