OSDN Git Service

* dwarf2loc.c (dwarf_expr_tls_address): Initialize ADDR.
authordrow <drow>
Sat, 19 Mar 2005 19:44:07 +0000 (19:44 +0000)
committerdrow <drow>
Sat, 19 Mar 2005 19:44:07 +0000 (19:44 +0000)
* gnu-v3-abi.c (gnuv3_baseclass_offset): Update type of
VALADDR.

gdb/ChangeLog
gdb/dwarf2loc.c
gdb/gnu-v3-abi.c

index c7622cf..3157c35 100644 (file)
@@ -1,3 +1,9 @@
+2005-03-19  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * dwarf2loc.c (dwarf_expr_tls_address): Initialize ADDR.
+       * gnu-v3-abi.c (gnuv3_baseclass_offset): Update type of
+       VALADDR.
+
 2005-03-18  Kevin Buettner  <kevinb@redhat.com>
 
        * Makefile.in (dwarf2loc.o, linux-thread-db.o): Add dependencies.
index fc86470..d9b1271 100644 (file)
@@ -186,7 +186,7 @@ static CORE_ADDR
 dwarf_expr_tls_address (void *baton, CORE_ADDR offset)
 {
   struct dwarf_expr_baton *debaton = (struct dwarf_expr_baton *) baton;
-  CORE_ADDR addr;
+  CORE_ADDR addr = 0;
 
   if (target_get_thread_local_address_p ())
     {
index b497347..9dc0232 100644 (file)
@@ -355,7 +355,7 @@ gnuv3_virtual_fn_field (struct value **value_p,
 
    -1 is returned on error. */
 static int
-gnuv3_baseclass_offset (struct type *type, int index, char *valaddr,
+gnuv3_baseclass_offset (struct type *type, int index, const bfd_byte *valaddr,
                        CORE_ADDR address)
 {
   struct type *vtable_type = gdbarch_data (current_gdbarch,