aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2020-07-09 15:28:19 +0300
committerArnold D. Robbins <arnold@skeeve.com>2020-07-09 15:28:19 +0300
commit124712be30d752324e51f0e6b8e92c7e1b59bcc7 (patch)
treeb525553db42d6e09a6e99cce5f7a22edce37e7d4
parent2a3d876938d39d03cf563d1bd8382c316839c08d (diff)
downloadegawk-124712be30d752324e51f0e6b8e92c7e1b59bcc7.tar.gz
egawk-124712be30d752324e51f0e6b8e92c7e1b59bcc7.tar.bz2
egawk-124712be30d752324e51f0e6b8e92c7e1b59bcc7.zip
Fix dbugeval2 test for -M.
-rw-r--r--ChangeLog7
-rw-r--r--debug.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 45c2de22..d0b5bd3a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2020-07-09 Arnold D. Robbins <arnold@skeeve.com>
+
+ Fix dbugeval2 test for MPFR.
+
+ * debug.c (do_eval): Preserve DO_MPFR flag in do_flags before
+ parsing the string to be evaluated.
+
2020-07-08 Arnold D. Robbins <arnold@skeeve.com>
* str_array.c (str_lookup): If a pure number, copy to a string. Fixes
diff --git a/debug.c b/debug.c
index 61e21a58..4ca93735 100644
--- a/debug.c
+++ b/debug.c
@@ -5602,7 +5602,7 @@ do_eval(CMDARG *arg, int cmd ATTRIBUTE_UNUSED)
ctxt->install_func = append_symbol; /* keep track of newly installed globals */
push_context(ctxt);
the_source = add_srcfile(SRC_CMDLINE, arg->a_string, srcfiles, NULL, NULL);
- do_flags = false;
+ do_flags &= DO_MPFR; // preserve this flag only
ret = parse_program(&code, true);
do_flags = save_flags;
remove_params(this_func);