[Ltrace-devel] Error in last patch for ltrace ABIv2

Thierry@vnet thierry at linux.vnet.ibm.com
Sun Feb 23 17:09:58 UTC 2014


1) The change to config.guess and libtool.m4 are supposed to be done, if
not let me know.

2) There was an error in making the patch, here is the correction
Sorry about that
Thierry

diff --git a/ltrace-0.7.3-v2b/sysdeps/linux-gnu/ppc/fetch.c
b/ltrace-0.7.3/sysdep
index 1e5a584..ebbf693 100644
--- a/ltrace-0.7.3-v2b/sysdeps/linux-gnu/ppc/fetch.c
+++ b/ltrace-0.7.3/sysdeps/linux-gnu/ppc/fetch.c
@@ -406,8 +406,6 @@ arch_type_get_fp_equivalent(struct arg_type_info
*info, struc
                   ((elm_type == ARGTYPE_FLOAT) ||
                    (elm_type == ARGTYPE_DOUBLE)))
                        info = struct_attr.info;
-                   (elm_type == ARGTYPE_DOUBLE)))
-                       info = struct_attr.info;
                else
                        return NULL;
        }
@@ -513,8 +511,7 @@ allocate_argument(struct fetch_context *ctx, struct
Process *
        unsigned char *buf = value_reserve(valuep, slots * width);
        if (buf == NULL)
                return -1;
-       struct arg_type_info *long_info =
arch_type_get_simple(ARGTYPE_LONG,proc)
-
+       struct arg_type_info *long_info = type_get_simple(ARGTYPE_LONG);
        unsigned char *ptr = buf;
        while (slots-- > 0) {
                struct value val;
@@ -527,7 +524,7 @@ allocate_argument(struct fetch_context *ctx, struct
Process *
                   aggregates within aggregates ad infinitum.  */
                int rc;
                struct arg_type_info *fp_info
-                       = type_get_fp_equivalent(valuep->type);
+                       = arch_type_get_fp_equivalent(valuep->type,proc);
                if (fp_info != NULL)
                        rc = allocate_float(ctx, proc, fp_info, &val);
                else



-- 
Thierry Fauck on linux.vnet.ibm.com




More information about the Ltrace-devel mailing list