aboutsummaryrefslogtreecommitdiffstats
path: root/src/grt
diff options
context:
space:
mode:
authorBen Reynwar <ben@reynwar.net>2020-05-19 22:35:27 -0700
committerGitHub <noreply@github.com>2020-05-20 07:35:27 +0200
commit4ae38ebfb077263cc24d63e84707322af39d0b0b (patch)
treed78e73c7b9eedf7417e3b5a77bd2839dab4b56db /src/grt
parent0e39a575da602ee833996c6ac30adc7c9069622e (diff)
downloadghdl-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/grt')
-rw-r--r--src/grt/ghwlib.c2
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. */