public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] sim: igen: fix hang when decoding boolean rule constants
@ 2022-11-10 18:41 Michael Frysinger
0 siblings, 0 replies; only message in thread
From: Michael Frysinger @ 2022-11-10 18:41 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ef7c5fd15dbe0937a2b5c729d88263beec507b42
commit ef7c5fd15dbe0937a2b5c729d88263beec507b42
Author: Mike Frysinger <vapier@gentoo.org>
Date: Fri Nov 11 01:35:42 2022 +0700
sim: igen: fix hang when decoding boolean rule constants
The parser for boolean rules fails to skip over the , separator in
the options which makes it hang forever. No dc files in the tree
use boolean rules atm which is why no one noticed.
Diff:
---
sim/igen/ld-decode.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sim/igen/ld-decode.c b/sim/igen/ld-decode.c
index d1c90463ca3..51bb3e0b0a3 100644
--- a/sim/igen/ld-decode.c
+++ b/sim/igen/ld-decode.c
@@ -131,6 +131,8 @@ load_decode_table (const char *file_name)
break;
}
chp = skip_to_separator (chp, ",");
+ if (*chp == ',')
+ ++chp;
chp = skip_spaces (chp);
}
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-11-10 18:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-10 18:41 [binutils-gdb] sim: igen: fix hang when decoding boolean rule constants Michael Frysinger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).