summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDima Kogan <dima@secretsauce.net>2014-04-22 15:15:55 -0700
committerChanho Park <chanho61.park@samsung.com>2014-08-22 20:38:25 +0900
commit3c02f3967d49caad8d605484f8fbe5a6c1585eaa (patch)
tree2e2a20e51071e460ed5f83d255a565c88a016f5b
parent8983bb237f024b50e6cb6addc0375bf19fcae538 (diff)
downloadltrace-3c02f3967d49caad8d605484f8fbe5a6c1585eaa.tar.gz
ltrace-3c02f3967d49caad8d605484f8fbe5a6c1585eaa.tar.bz2
ltrace-3c02f3967d49caad8d605484f8fbe5a6c1585eaa.zip
added a disabled stub for complex float support
-rw-r--r--dwarf_prototypes.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/dwarf_prototypes.c b/dwarf_prototypes.c
index 449a750..64d7820 100644
--- a/dwarf_prototypes.c
+++ b/dwarf_prototypes.c
@@ -236,6 +236,23 @@ static enum arg_type get_base_type(Dwarf_Die* die)
}
}
+#if 0
+ if (encoding == DW_ATE_complex_float) {
+ switch (attr_numeric(die, DW_AT_byte_size)) {
+ case 2*sizeof(float):
+ return ARGTYPE_FLOAT;
+
+ case 2*sizeof(double):
+ return ARGTYPE_DOUBLE;
+
+ default:
+ // things like long doubles. ltrace has no support yet, so I just
+ // say "void"
+ return ARGTYPE_VOID;
+ }
+ }
+#endif
+
// Unknown encoding. I just say void
complain(die, "Unknown base type. Returning 'void'");
return ARGTYPE_VOID;