From: Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
To: gdb-patches@cygnus.com
Subject: read_command_lines should reset control_level
Date: Wed, 03 Feb 1999 01:38:00 -0000 [thread overview]
Message-ID: <vyzk8xzn7yj.fsf@issan.cs.uni-dortmund.de> (raw)
Message-ID: <19990203013800.KccwiIdKoqwGGju5cqfVU-s5bvItZ5wXxvU8su7K8GA@z> (raw)
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);
next reply other threads:[~1999-02-03 1:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-04-01 0:00 Andreas Schwab [this message]
1999-02-03 1:38 ` Andreas Schwab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=vyzk8xzn7yj.fsf@issan.cs.uni-dortmund.de \
--to=schwab@issan.informatik.uni-dortmund.de \
--cc=gdb-patches@cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox