|
From: | Mohanasundaram Chandran |
Subject: | RE: Problem with user defined commands |
Date: | Wed, 30 Jan 2013 16:22:02 +0530 |
A small correction in the test.gdb file which I pasted earlier. This is the correct one...
bash-3.2$ cat test.gdb define wsfoo printf "wsfoo\n" end define foo wsfoo end define bar printf "bar\n" end From: address@hidden To: address@hidden Subject: Problem with user defined commands Date: Wed, 30 Jan 2013 16:18:25 +0530 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. _______________________________________________ bug-gdb mailing list address@hidden https://lists.gnu.org/mailman/listinfo/bug-gdb |
[Prev in Thread] | Current Thread | [Next in Thread] |