diff options
author | Edgar E. Iglesias <edgar@axis.com> | 2012-10-04 15:26:38 +0200 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2012-10-14 00:21:52 +0200 |
commit | 5b5c256d0e9076e745908a43acc46353265a5608 (patch) | |
tree | b56b366fbc00cdb3750fc925910eaa94bbf32e33 /sysdeps/linux-gnu/ia64 | |
parent | 3a8a91ca57f66d664b3fbd19882e6d163c7ad496 (diff) | |
download | ltrace-5b5c256d0e9076e745908a43acc46353265a5608.tar.gz |
Abort on unsupported value types in the backends
Makes it easier to add new types.
Signed-off-by: Edgar E. Iglesias <edgar@axis.com>
Diffstat (limited to 'sysdeps/linux-gnu/ia64')
-rw-r--r-- | sysdeps/linux-gnu/ia64/fetch.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sysdeps/linux-gnu/ia64/fetch.c b/sysdeps/linux-gnu/ia64/fetch.c index 2163801..54dc5b8 100644 --- a/sysdeps/linux-gnu/ia64/fetch.c +++ b/sysdeps/linux-gnu/ia64/fetch.c @@ -438,11 +438,10 @@ arch_fetch_arg_next(struct fetch_context *ctx, enum tof type, case ARGTYPE_ARRAY: /* Arrays decay into pointers. XXX Fortran? */ - assert(info->type != ARGTYPE_ARRAY); + default: + assert(info->type != info->type); abort(); } - assert("unhandled type"); - abort(); } int |