libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libunwind] misc. DWARF2-fixes


From: David Mosberger
Subject: Re: [libunwind] misc. DWARF2-fixes
Date: Fri, 22 Oct 2004 02:09:18 -0700

>>>>> On Thu, 21 Oct 2004 17:30:37 -0700, Max Asbock <address@hidden> said:

  Max> I pulled down the latest bk tree. It fails to compile for me. There is a
  Max> change in apply_reg_state in dwarf/Gparser.c that uses the
  Max> DWARF_IS_REG_LOC macro. This is not defined for UNW_LOCAL_ONLY. So the
  Max> compiler says:
  Max> In file included from dwarf/Lparser.c:4:
  Max> dwarf/Gparser.c: In function `apply_reg_state':
  Max> dwarf/Gparser.c:552: warning: implicit declaration of function
  Max> `DWARF_IS_REG_LOC'

Ah, that's because this patch is missing for tdep-x86_64.h:

@@ -70,6 +70,7 @@
 # define DWARF_NULL_LOC                DWARF_LOC (0, 0)
 # define DWARF_IS_NULL_LOC(l)  (DWARF_GET_LOC (l) == 0)
 # define DWARF_LOC(r, t)       ((dwarf_loc_t) { .val = (r) })
+# define DWARF_IS_REG_LOC(l)   0
 # define DWARF_REG_LOC(c,r)    (DWARF_LOC((unw_word_t)                      \
                                 tdep_uc_addr((c)->as_arg, (r)), 0))
 # define DWARF_MEM_LOC(c,m)    DWARF_LOC ((m), 0)

        --david


reply via email to

[Prev in Thread] Current Thread [Next in Thread]