diff options
author | Ben Reynwar <ben@reynwar.net> | 2020-05-19 22:35:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-20 07:35:27 +0200 |
commit | 4ae38ebfb077263cc24d63e84707322af39d0b0b (patch) | |
tree | d78e73c7b9eedf7417e3b5a77bd2839dab4b56db /src | |
parent | 0e39a575da602ee833996c6ac30adc7c9069622e (diff) | |
download | ghdl-4ae38ebfb077263cc24d63e84707322af39d0b0b.tar.gz ghdl-4ae38ebfb077263cc24d63e84707322af39d0b0b.tar.bz2 ghdl-4ae38ebfb077263cc24d63e84707322af39d0b0b.zip |
ghwdump should handle zero-length signals (#1327)
* Adding a test for issue #1326 to check that ghwdump doesn't crash with a zero-length signal.
* Remove an assertion from ghwlib that prevents zero-length signals.
Diffstat (limited to 'src')
-rw-r--r-- | src/grt/ghwlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/grt/ghwlib.c b/src/grt/ghwlib.c index 0e3a07568..8d1fd8ddf 100644 --- a/src/grt/ghwlib.c +++ b/src/grt/ghwlib.c @@ -1313,7 +1313,7 @@ ghw_disp_hie (struct ghw_handler *h, struct ghw_hie *top) ghw_disp_subtype_indication (h, hie->u.sig.type); printf (":"); k = 0; - assert (sigs[0] != GHW_NO_SIG); + while (1) { /* First signal of the range. */ |