From 96ce45cadbfd1ccb332d451612e38d533416b3db Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Sat, 19 Mar 2005 19:44:10 +0000 Subject: [PATCH] * dwarf2loc.c (dwarf_expr_tls_address): Initialize ADDR. * gnu-v3-abi.c (gnuv3_baseclass_offset): Update type of VALADDR. --- gdb/ChangeLog | 6 ++++++ gdb/dwarf2loc.c | 2 +- gdb/gnu-v3-abi.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c7622cf762c..3157c35d005 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2005-03-19 Daniel Jacobowitz + + * dwarf2loc.c (dwarf_expr_tls_address): Initialize ADDR. + * gnu-v3-abi.c (gnuv3_baseclass_offset): Update type of + VALADDR. + 2005-03-18 Kevin Buettner * Makefile.in (dwarf2loc.o, linux-thread-db.o): Add dependencies. diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c index fc864701739..d9b1271ad48 100644 --- a/gdb/dwarf2loc.c +++ b/gdb/dwarf2loc.c @@ -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 ()) { diff --git a/gdb/gnu-v3-abi.c b/gdb/gnu-v3-abi.c index b4973474785..9dc0232a64d 100644 --- a/gdb/gnu-v3-abi.c +++ b/gdb/gnu-v3-abi.c @@ -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, -- 2.30.2