diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-11-11 01:35:42 +0700 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-11-11 01:40:53 +0700 |
commit | ef7c5fd15dbe0937a2b5c729d88263beec507b42 (patch) | |
tree | 131f815a806ffc7e0f7c4402e8210683f4b912ff | |
parent | 16cceb84be19a46c0f25cf96aeeea808420a4b70 (diff) | |
download | gdb-ef7c5fd15dbe0937a2b5c729d88263beec507b42.zip gdb-ef7c5fd15dbe0937a2b5c729d88263beec507b42.tar.gz gdb-ef7c5fd15dbe0937a2b5c729d88263beec507b42.tar.bz2 |
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.
-rw-r--r-- | sim/igen/ld-decode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sim/igen/ld-decode.c b/sim/igen/ld-decode.c index d1c9046..51bb3e0 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); } } |