On 7/18/07, Jose Flavio Aguilar Paulino <[EMAIL PROTECTED]> wrote:

Well, I couldnt get rid of the vector registers.
Does anyone have any approach?
I hope its close to be put mainstream.


I needed the attached patch to compile on x86-64.

-Arun
diff --git a/include/libunwind-x86_64.h b/include/libunwind-x86_64.h
index a87b57e..bfc1f15 100644
--- a/include/libunwind-x86_64.h
+++ b/include/libunwind-x86_64.h
@@ -52,6 +52,12 @@ typedef int64_t unw_sword_t;
 
 typedef long double unw_tdep_fpreg_t;
 
+/*
+ * Vector register (in PowerPC64 used for AltiVec registers)
+ */
+typedef struct {
+} unw_tdep_vreg_t;
+
 typedef enum
   {
     UNW_X86_64_RAX,
diff --git a/include/tdep-x86_64/libunwind_i.h b/include/tdep-x86_64/libunwind_i.h
index 04a3c37..bd98ff8 100644
--- a/include/tdep-x86_64/libunwind_i.h
+++ b/include/tdep-x86_64/libunwind_i.h
@@ -152,6 +152,7 @@ #define tdep_uc_addr			UNW_ARCH_OBJ(uc_a
 #define tdep_get_elf_image		UNW_ARCH_OBJ(get_elf_image)
 #define tdep_access_reg			UNW_OBJ(access_reg)
 #define tdep_access_fpreg		UNW_OBJ(access_fpreg)
+#define tdep_access_vreg		UNW_OBJ(access_vreg)
 
 #ifdef UNW_LOCAL_ONLY
 # define tdep_find_proc_info(c,ip,n)				\
diff --git a/src/x86_64/Gregs.c b/src/x86_64/Gregs.c
index ddf7b7e..91c5b93 100644
--- a/src/x86_64/Gregs.c
+++ b/src/x86_64/Gregs.c
@@ -132,3 +132,10 @@ tdep_access_fpreg (struct cursor *c, unw
 {
       return -UNW_EBADREG;
 }
+
+HIDDEN int
+tdep_access_vreg (struct cursor *c, unw_regnum_t reg, unw_vreg_t *valp,
+		  int write)
+{
+  return -UNW_EBADREG;
+}
_______________________________________________
Libunwind-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/libunwind-devel

Reply via email to