From 2f9403d1431dec08827f7aa1b212d84370dcae10 Mon Sep 17 00:00:00 2001 From: Giles Atkinson <“gatk555@gmail.com”> Date: Thu, 8 Sep 2022 21:14:59 +0100 Subject: [PATCH] Prevent overwriting of previous debug output when expanding auto-bridge deck. --- src/xspice/evt/evtcheck_nodes.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/xspice/evt/evtcheck_nodes.c b/src/xspice/evt/evtcheck_nodes.c index 80c94f6ad..2983d3b1a 100644 --- a/src/xspice/evt/evtcheck_nodes.c +++ b/src/xspice/evt/evtcheck_nodes.c @@ -187,10 +187,15 @@ static struct card *expand_deck(struct card *head) struct card *card, *next; char **pointers; int i, dico; + bool save_debug; - /* Save the current parameter symbol table. */ + /* Save the current parameter symbol table and debug global. + * Prevent overwriting of debug output in inp_readall(). + */ dico = nupa_add_dicoslist(); + save_debug = ft_ngdebug; + ft_ngdebug = FALSE; /* Count the cards, allocate and fill a pointer array. */ @@ -213,6 +218,7 @@ static struct card *expand_deck(struct card *head) circarray = pointers; card = inp_readall(NULL, Infile_Path, FALSE, TRUE, NULL); card = inp_subcktexpand(card); + ft_ngdebug = save_debug; /* Destroy the parameter table that was created in subcircuit/parameter * expansion and restore the previous version.