diff options
author | Dima Kogan <dima@secretsauce.net> | 2014-04-30 04:10:52 -0700 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-08-22 20:38:26 +0900 |
commit | f27f9a4968c7ac7c7848eb522c263b75fe91f97e (patch) | |
tree | a3c58f80000818b0bf21fcfc680545b74dd9af7d | |
parent | 1cf72c97626b03d56e9a6f0dd6090228e23a56ec (diff) | |
download | ltrace-f27f9a4968c7ac7c7848eb522c263b75fe91f97e.tar.gz ltrace-f27f9a4968c7ac7c7848eb522c263b75fe91f97e.tar.bz2 ltrace-f27f9a4968c7ac7c7848eb522c263b75fe91f97e.zip |
fixed broken diagnostic output
-rw-r--r-- | dwarf_prototypes.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dwarf_prototypes.c b/dwarf_prototypes.c index 48d2673..ef71f9e 100644 --- a/dwarf_prototypes.c +++ b/dwarf_prototypes.c @@ -339,7 +339,7 @@ static struct arg_type_info* get_enum(Dwarf_Die* parent, struct dict* type_dieof result = calloc(1, sizeof(struct arg_type_info)); if (result == NULL) { - complain(type_die, "alloc error"); + complain(parent, "alloc error"); CLEANUP_AND_RETURN_ERROR(NULL); } @@ -467,7 +467,7 @@ static struct arg_type_info* get_array( Dwarf_Die* parent, struct protolib* plib result = calloc(1, sizeof(struct arg_type_info)); if (result == NULL) { - complain(type_die, "alloc error"); + complain(parent, "alloc error"); CLEANUP_AND_RETURN_ERROR(NULL); } @@ -582,7 +582,7 @@ static struct arg_type_info* get_structure(Dwarf_Die* parent, struct protolib* p result = calloc(1, sizeof(struct arg_type_info)); if (result == NULL) { - complain(type_die, "alloc error"); + complain(parent, "alloc error"); CLEANUP_AND_RETURN_ERROR(NULL); } type_init_struct(result); @@ -717,7 +717,7 @@ static struct arg_type_info* get_type(int* newly_allocated_result, } dict_insert(type_dieoffset_hash, &die_offset, &result); pointee = get_type(&newly_allocated_pointee, - &next_die, plib, type_dieoffset_hash); + &next_die, plib, type_dieoffset_hash); if(pointee == NULL) CLEANUP_AND_RETURN_ERROR(NULL); @@ -814,7 +814,7 @@ static struct prototype* get_prototype( Dwarf_Die* subroutine, struct protolib* result = calloc(1, sizeof(struct prototype)); if (result == NULL) { - complain(die, "couldn't alloc prototype"); + complain(subroutine, "couldn't alloc prototype"); CLEANUP_AND_RETURN_ERROR(NULL); } prototype_init(result); |