* read_command_lines should reset control_level
1999-04-01 0:00 read_command_lines should reset control_level Andreas Schwab
@ 1999-02-03 1:38 ` Andreas Schwab
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 1999-02-03 1:38 UTC (permalink / raw)
To: gdb-patches
Since control_level is a static variable it is impossible for all callers
of read_command_lines to reset it.
1999-02-02 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* top.c (read_command_lines): Reset control_level.
(define_command): Don't do it here.
--- gdb-19990121/gdb/top.c.~1~ Sat Jan 23 16:14:04 1999
+++ gdb-19990121/gdb/top.c Tue Feb 2 09:27:01 1999
@@ -2466,6 +2466,7 @@
enum command_control_type ret;
enum misc_command_type val;
+ control_level = 0;
if (readline_begin_hook)
{
/* Note - intentional to merge messages with no newline */
@@ -2764,7 +2765,6 @@
for (tem = comname; *tem; tem++)
if (isupper(*tem)) *tem = tolower(*tem);
- control_level = 0;
sprintf (tmpbuf, "Type commands for definition of \"%s\".", comname);
cmds = read_command_lines (tmpbuf, from_tty);
^ permalink raw reply [flat|nested] 2+ messages in thread
* read_command_lines should reset control_level
@ 1999-04-01 0:00 Andreas Schwab
1999-02-03 1:38 ` Andreas Schwab
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Schwab @ 1999-04-01 0:00 UTC (permalink / raw)
To: gdb-patches
Since control_level is a static variable it is impossible for all callers
of read_command_lines to reset it.
1999-02-02 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* top.c (read_command_lines): Reset control_level.
(define_command): Don't do it here.
--- gdb-19990121/gdb/top.c.~1~ Sat Jan 23 16:14:04 1999
+++ gdb-19990121/gdb/top.c Tue Feb 2 09:27:01 1999
@@ -2466,6 +2466,7 @@
enum command_control_type ret;
enum misc_command_type val;
+ control_level = 0;
if (readline_begin_hook)
{
/* Note - intentional to merge messages with no newline */
@@ -2764,7 +2765,6 @@
for (tem = comname; *tem; tem++)
if (isupper(*tem)) *tem = tolower(*tem);
- control_level = 0;
sprintf (tmpbuf, "Type commands for definition of \"%s\".", comname);
cmds = read_command_lines (tmpbuf, from_tty);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-04-01 0:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-04-01 0:00 read_command_lines should reset control_level Andreas Schwab
1999-02-03 1:38 ` Andreas Schwab
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox