From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1643 invoked by alias); 2 May 2013 13:11:17 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 1619 invoked by uid 9514); 2 May 2013 13:11:17 -0000 Date: Thu, 02 May 2013 13:11:00 -0000 Message-ID: <20130502131117.1573.qmail@sourceware.org> From: pmuldoon@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] pmuldoon/python-backtrace: Merge remote-tracking branch 'gdb/master' into pmuldoon/python-backtrace X-Git-Refname: refs/heads/pmuldoon/python-backtrace X-Git-Reftype: branch X-Git-Oldrev: f27449c171726af57bcd94a7f70d3b6b3396a5cb X-Git-Newrev: ead3607d488a25b15cf8e010afb6308d3f14bc55 X-SW-Source: 2013-q2/txt/msg00051.txt.bz2 List-Id: The branch, pmuldoon/python-backtrace has been updated via ead3607d488a25b15cf8e010afb6308d3f14bc55 (commit) via b78790fc3bd1677ea0825df100c5bf524846053a (commit) via 9c081aa6576570099ede776f98678bd0f7345928 (commit) via c343590706cffe0cb91c6efda33ad32f9a11d092 (commit) via d910abfa3b84b0b89abf9039596d783ff00e766d (commit) via 86398324bfc747b2e5ad4689f5fdd2448dbd9fb1 (commit) via 7de1158dc2a54a50bf2d47c2674fa80214ebe36b (commit) via 9ba6e858651d1a124dc20a2e772090669f47e7f0 (commit) via 7742f4f5e38efacdb8b0c018c2837fcb4a1ec8b7 (commit) via abd8ed39e861452889728d3fc970af008866f11d (commit) via 79cef858b75b1eaf117a952ea6d6825c4d237e02 (commit) via e33a3f1a2e9dedab71d27c029beba8815bcebd1f (commit) via 7278f246a92191c8fae5abd0c45bc00e6c35b1ca (commit) via 9fcd69680e6da8bd60cc1073d69d4604c63f3bd7 (commit) via 77664a6d7cfa893614de5d28b9ca8b26e6b5a874 (commit) via e96330f8a0b100e9c264977ccd36cecfad66888f (commit) via b66173eafa56bfa8ddfbfc2bb7c66d97c56046b0 (commit) via 1bb9f1a19b407289a832608705980821074cd84d (commit) from f27449c171726af57bcd94a7f70d3b6b3396a5cb (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit ead3607d488a25b15cf8e010afb6308d3f14bc55 Merge: f27449c b78790f Author: Phil Muldoon Date: Thu May 2 14:11:05 2013 +0100 Merge remote-tracking branch 'gdb/master' into pmuldoon/python-backtrace commit b78790fc3bd1677ea0825df100c5bf524846053a Author: gdbadmin Date: Thu May 2 00:00:33 2013 +0000 *** empty log message *** commit 9c081aa6576570099ede776f98678bd0f7345928 Author: Alan Modra Date: Thu May 2 00:00:05 2013 +0000 daily update commit c343590706cffe0cb91c6efda33ad32f9a11d092 Author: Maciej W. Rozycki Date: Wed May 1 17:27:46 2013 +0000 bfd/ * config.bfd: Replace alpha*-*-linuxecoff* pattern with alpha*-*-linux*ecoff*. binutils/testsuite/ * lib/binutils-common.exp (is_elf_format): Also exclude *-*-linux*ecoff*. gas/ * configure.tgt: Replace alpha*-*-linuxecoff* pattern with alpha*-*-linux*ecoff*. ld/ * configure.tgt: Replace alpha*-*-linuxecoff* pattern with alpha*-*-linux*ecoff*. Update the `sed' pattern used to convert from alpha*-*-linux-* to alpha*-*-linux*ecoff*. commit d910abfa3b84b0b89abf9039596d783ff00e766d Author: Joel Brobecker Date: Wed May 1 14:54:18 2013 +0000 Fix various -Wpointer-sign warnings in darwin-nat.c gdb/ChangeLog: * darwin-nat.c (darwin_read_write_inferior): Change types of parameters rdaddr and wraddr to "gdb_byte *". Change type of copy_count to "mach_msg_type_number_t". (darwin_read_dyld_info): Change type of parameter rdaddr to "gdb_byte *". commit 86398324bfc747b2e5ad4689f5fdd2448dbd9fb1 Author: Joel Brobecker Date: Wed May 1 14:33:00 2013 +0000 Fix -Wpointer-sign errors in solib-ia64-hpux.c gdb/ChangeLog: * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast of &info->load_map from "char *" to "gdb_byte *". commit 7de1158dc2a54a50bf2d47c2674fa80214ebe36b Author: Joel Brobecker Date: Wed May 1 14:31:55 2013 +0000 Fix -Wpointer-sign errors in ia64-tdep.c gdb/ChangeLog: * ia64-tdep.c (ia64_access_fpreg): Change cast of val from "char *" to "gdb_byte *". (ia64_access_rse_fpreg, ia64_access_mem): Likewise. commit 9ba6e858651d1a124dc20a2e772090669f47e7f0 Author: Alan Modra Date: Wed May 1 00:00:05 2013 +0000 daily update commit 7742f4f5e38efacdb8b0c018c2837fcb4a1ec8b7 Author: gdbadmin Date: Wed May 1 00:00:02 2013 +0000 *** empty log message *** commit abd8ed39e861452889728d3fc970af008866f11d Author: Doug Evans Date: Tue Apr 30 23:19:41 2013 +0000 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found. (init_cutu_and_read_dies): Flag a complaint, not error, for bad DWO stub. If DWO isn't found, just use stub. (lookup_dwo_cutu): Don't try DWO if there's a DWP file. commit 79cef858b75b1eaf117a952ea6d6825c4d237e02 Author: Doug Evans Date: Tue Apr 30 21:11:50 2013 +0000 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before calling init_cutu_and_read_dies. commit e33a3f1a2e9dedab71d27c029beba8815bcebd1f Author: Jan-Benedict Glaw Date: Tue Apr 30 12:40:41 2013 +0000 2013-04-30 Jan-Benedict Glaw config/ * picflag.m4: Merge from GCC. * dfp.m4: Ditto. * bootstrap-asan.mk: Ditto. * ChangeLog: Ditto. commit 7278f246a92191c8fae5abd0c45bc00e6c35b1ca Author: wtedeschi Date: Tue Apr 30 12:33:51 2013 +0000 Fix display of structures/bitfields in register description. Add support for displaying structures and bitfields for registers when executing "maint print c-tdesc". This command is also used when converting the xml target description file into c file. Example of the behaviour is given below reporting a snipet of the xml file and a snippet of the c code generated. XML file contains: ... ... Setting this xml file as target description file and issuing the maintenance print c-tdesc the following output is obtained: feature = tdesc_create_feature (result, "extra"); field_type = tdesc_named_type (feature, "int8"); tdesc_create_vector (feature, "v4int8", field_type, 4); field_type = tdesc_named_type (feature, "int16"); tdesc_create_vector (feature, "v2int16", field_type, 2); type = tdesc_create_union (feature, "vecint"); field_type = tdesc_named_type (feature, "v4int8"); tdesc_add_field (type, "v4", field_type); field_type = tdesc_named_type (feature, "v2int16"); tdesc_add_field (type, "v2", field_type); C output is not supported type "struct1". This is finally the issue. 2013-03-27 Walfred Tedeschi * target-descriptions.c (maint_print_c_tdesc_cmd): Add case to parse structures as register types and bitfields. testsuite/ * gdb.xml/maint_print_struct.exp: New file. * gdb.xml/maint_print_struct.xml: New file. Change-Id: I2e20b095d508319c80275e724a9452c7e2834067 Signed-off-by: Walfred Tedeschi commit 9fcd69680e6da8bd60cc1073d69d4604c63f3bd7 Author: Nick Clifton Date: Tue Apr 30 12:13:09 2013 +0000 PR binutils/15417 * elflink.c (elf_link_add_object_symbols): Initialise 'idx' to zero. commit 77664a6d7cfa893614de5d28b9ca8b26e6b5a874 Author: Joel Brobecker Date: Tue Apr 30 11:56:23 2013 +0000 Fix date in some of my recent ChangeLog entries... commit e96330f8a0b100e9c264977ccd36cecfad66888f Author: Joel Brobecker Date: Tue Apr 30 11:52:13 2013 +0000 Fix -Wpointer-sign warning in sol-thread.c This fixes a couple of compiler warnings in rw_common when calling target_read_memory/target_write_memory due to the type of parameter "buf" (char *) not matching what these function expect (gdb_byte *). gdb/ChangeLog: * sol-thread.c (rw_common): Change type of parameter "buf" to "gdb_byte *". (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to rw_common to "gdb_byte *" instead of "char *". commit b66173eafa56bfa8ddfbfc2bb7c66d97c56046b0 Author: Joel Brobecker Date: Tue Apr 30 11:36:45 2013 +0000 Fix build error in sol-thread.c:info_cb gdb/ChangeLog: * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type of local variable msym to const struct bound_minimal_symbol. Adjust use accordingly. [ti.ti_state == TD_THR_SLEEP]: Likewise. commit 1bb9f1a19b407289a832608705980821074cd84d Author: wtedeschi Date: Tue Apr 30 11:17:20 2013 +0000 Add myself as a maintainer. Change-Id: Ie1b0cb082a384144eef327e9294949e9bacc4415 ----------------------------------------------------------------------- Summary of changes: bfd/ChangeLog | 11 +++ bfd/config.bfd | 2 +- bfd/elflink.c | 2 +- bfd/version.h | 2 +- config/ChangeLog | 10 ++ config/bootstrap-asan.mk | 1 + config/dfp.m4 | 2 +- config/picflag.m4 | 4 +- gdb/ChangeLog | 59 ++++++++++++- gdb/MAINTAINERS | 1 + gdb/darwin-nat.c | 8 +- gdb/dwarf2read.c | 125 ++++++++++++++----------- gdb/ia64-tdep.c | 8 +- gdb/sol-thread.c | 24 +++--- gdb/solib-ia64-hpux.c | 3 +- gdb/target-descriptions.c | 33 +++++++- gdb/testsuite/ChangeLog | 5 + gdb/testsuite/gdb.xml/maint_print_struct.exp | 35 +++++++ gdb/testsuite/gdb.xml/maint_print_struct.xml | 26 ++++++ gdb/version.in | 2 +- 20 files changed, 279 insertions(+), 84 deletions(-) create mode 100644 gdb/testsuite/gdb.xml/maint_print_struct.exp create mode 100644 gdb/testsuite/gdb.xml/maint_print_struct.xml First 500 lines of diff: diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 49e2e16..2a0ee47 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,14 @@ +2013-05-01 Maciej W. Rozycki + + * config.bfd: Replace alpha*-*-linuxecoff* pattern with + alpha*-*-linux*ecoff*. + +2013-04-30 Olaf Flebbe + + PR binutils/15417 + * elflink.c (elf_link_add_object_symbols): Initialise 'idx' to + zero. + 2013-04-30 Alan Modra * elflink.c (bfd_elf_record_link_assignment): Dont make diff --git a/bfd/config.bfd b/bfd/config.bfd index 228e7c1..5634154 100644 --- a/bfd/config.bfd +++ b/bfd/config.bfd @@ -202,7 +202,7 @@ case "${targ}" in targ_selvecs=nlm32_alpha_vec want64=true ;; - alpha*-*-linuxecoff*) + alpha*-*-linux*ecoff*) targ_defvec=ecoffalpha_little_vec targ_selvecs=bfd_elf64_alpha_vec want64=true diff --git a/bfd/elflink.c b/bfd/elflink.c index 363abed..7cfc379 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -4665,7 +4665,7 @@ error_free_dyn: struct elf_link_hash_entry *hlook; asection *slook; bfd_vma vlook; - size_t i, j, idx; + size_t i, j, idx = 0; hlook = weaks; weaks = hlook->u.weakdef; diff --git a/bfd/version.h b/bfd/version.h index 40c26c8..65cb86a 100644 --- a/bfd/version.h +++ b/bfd/version.h @@ -1,4 +1,4 @@ -#define BFD_VERSION_DATE 20130430 +#define BFD_VERSION_DATE 20130502 #define BFD_VERSION @bfd_version@ #define BFD_VERSION_STRING @bfd_version_package@ @bfd_version_string@ #define REPORT_BUGS_TO @report_bugs_to@ diff --git a/config/ChangeLog b/config/ChangeLog index c6e8b25..cdc733c 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,13 @@ +2013-03-27 Kai Tietz + + * dfp.m4: Add support for cygwin x64 target. + * picflag.m4: Likewise. + +2013-02-25 H.J. Lu + + * bootstrap-asan.mk (POSTSTAGE1_LDFLAGS): Add + -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/asan/. + 2013-01-15 Richard Biener PR other/55973 diff --git a/config/bootstrap-asan.mk b/config/bootstrap-asan.mk index d37a9da..e3f34f5 100644 --- a/config/bootstrap-asan.mk +++ b/config/bootstrap-asan.mk @@ -3,4 +3,5 @@ STAGE2_CFLAGS += -fsanitize=address STAGE3_CFLAGS += -fsanitize=address POSTSTAGE1_LDFLAGS += -fsanitize=address -static-libasan \ + -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/asan/ \ -B$$r/prev-$(TARGET_SUBDIR)/libsanitizer/asan/.libs diff --git a/config/dfp.m4 b/config/dfp.m4 index e971db4..48683f0 100644 --- a/config/dfp.m4 +++ b/config/dfp.m4 @@ -23,7 +23,7 @@ Valid choices are 'yes', 'bid', 'dpd', and 'no'.]) ;; powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \ i?86*-*-gnu* | \ i?86*-*-mingw* | x86_64*-*-mingw* | \ - i?86*-*-cygwin*) + i?86*-*-cygwin* | x86_64*-*-cygwin*) enable_decimal_float=yes ;; *) diff --git a/config/picflag.m4 b/config/picflag.m4 index bd81812..2ee5cd0 100644 --- a/config/picflag.m4 +++ b/config/picflag.m4 @@ -17,7 +17,9 @@ case "${$2}" in hppa*64*-*-hpux*) # PIC is the default for 64-bit PA HP-UX. ;; - i[[34567]]86-*-cygwin* | i[[34567]]86-*-mingw* | x86_64-*-mingw*) + i[[34567]]86-*-cygwin* | x86_64-*-cygwin*) + ;; + i[[34567]]86-*-mingw* | x86_64-*-mingw*) ;; i[[34567]]86-*-interix[[3-9]]*) # Interix 3.x gcc -fpic/-fPIC options generate broken code. diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 12254b7..654e4fc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,21 +1,74 @@ +2013-05-01 Joel Brobecker + + * darwin-nat.c (darwin_read_write_inferior): Change types + of parameters rdaddr and wraddr to "gdb_byte *". Change type + of copy_count to "mach_msg_type_number_t". + (darwin_read_dyld_info): Change type of parameter + rdaddr to "gdb_byte *". + +2013-05-01 Joel Brobecker + + * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast + of &info->load_map from "char *" to "gdb_byte *". + +2013-05-01 Joel Brobecker + + * ia64-tdep.c (ia64_access_fpreg): Change cast of val + from "char *" to "gdb_byte *". + (ia64_access_rse_fpreg, ia64_access_mem): Likewise. + +2013-04-30 Doug Evans + + * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found. + (init_cutu_and_read_dies): Flag a complaint, not error, for bad + DWO stub. If DWO isn't found, just use stub. + (lookup_dwo_cutu): Don't try DWO if there's a DWP file. + + * dwarf2read.c (dw2_find_symbol_file): Initialize filename before + calling init_cutu_and_read_dies. + +2013-03-27 Walfred Tedeschi + + * target-descriptions.c (maint_print_c_tdesc_cmd): + Add case to parse structures as register types and + bitfields. + +2013-04-30 Walfred Tedeschi + + * MAINTAINERS (Write After Approval): Add myself to the list. + +2013-04-30 Joel Brobecker + + * sol-thread.c (rw_common): Change type of parameter "buf" + to "gdb_byte *". + (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to + rw_common to "gdb_byte *" instead of "char *". + +2013-04-30 Joel Brobecker + + * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type + of local variable msym to const struct bound_minimal_symbol. + Adjust use accordingly. + [ti.ti_state == TD_THR_SLEEP]: Likewise. + 2013-04-30 Samuel Thibault * i386gnu-nat.c (CREG_OFFSET): New macro. (creg_offset): New array. (CREG_ADDR): Use creg_offset instead of reg_offset. -2013-04-29 Joel Brobecker +2013-04-30 Joel Brobecker * mep-tdep.c (mep_write_pc): Delete. (mep_gdbarch_init): Remove call to set_gdbarch_write_pc. Add call to set_gdbarch_pc_regnum. -2013-04-29 Joel Brobecker +2013-04-30 Joel Brobecker * common/filestuff.c: Replace #include by #include "gdb_dirent.h". -2013-04-29 Joel Brobecker +2013-04-30 Joel Brobecker * common/filestuff.c: Replace #include by #include "gdb_stat.h". diff --git a/gdb/MAINTAINERS b/gdb/MAINTAINERS index 53c5e7c..400742d 100644 --- a/gdb/MAINTAINERS +++ b/gdb/MAINTAINERS @@ -627,6 +627,7 @@ Petr Sorfa petrs@caldera.com Andrew Stubbs ams@codesourcery.com Emi Suzuki emi-suzuki@tjsys.co.jp Ian Lance Taylor ian@airs.com +Walfred Tedeschi walfred.tedeschi@intel.com Gary Thomas gthomas@redhat.com Jason Thorpe thorpej@netbsd.org Caroline Tice ctice@apple.com diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c index 1344101..c4280a4 100644 --- a/gdb/darwin-nat.c +++ b/gdb/darwin-nat.c @@ -1688,14 +1688,15 @@ darwin_thread_alive (struct target_ops *ops, ptid_t ptid) Return 0 on failure; number of bytes read / writen otherwise. */ static int darwin_read_write_inferior (task_t task, CORE_ADDR addr, - char *rdaddr, const char *wraddr, int length) + gdb_byte *rdaddr, const gdb_byte *wraddr, + int length) { kern_return_t kret; mach_vm_address_t offset = addr & (mach_page_size - 1); mach_vm_address_t low_address = (mach_vm_address_t) (addr - offset); mach_vm_size_t aligned_length = (mach_vm_size_t) PAGE_ROUND (offset + length); pointer_t copied; - int copy_count; + mach_msg_type_number_t copy_count; mach_vm_size_t remaining_length; mach_vm_address_t region_address; mach_vm_size_t region_length; @@ -1821,7 +1822,8 @@ out: #ifdef TASK_DYLD_INFO_COUNT /* This is not available in Darwin 9. */ static int -darwin_read_dyld_info (task_t task, CORE_ADDR addr, char *rdaddr, int length) +darwin_read_dyld_info (task_t task, CORE_ADDR addr, gdb_byte *rdaddr, + int length) { struct task_dyld_info task_dyld_info; mach_msg_type_number_t count = TASK_DYLD_INFO_COUNT; diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 8dcf971..2b4d8ad 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -3465,6 +3465,9 @@ dw2_find_symbol_file (struct objfile *objfile, const char *name) return per_cu->v.quick->symtab->filename; } + /* Initialize filename in case there's a problem reading the DWARF, + dw2_get_primary_filename_reader may not get called. */ + filename = NULL; init_cutu_and_read_dies (per_cu, NULL, 0, 0, dw2_get_primary_filename_reader, &filename); @@ -4602,7 +4605,7 @@ read_cutu_die_from_dwo (struct dwarf2_per_cu_data *this_cu, /* Subroutine of init_cutu_and_read_dies to simplify it. Look up the DWO unit specified by COMP_UNIT_DIE of THIS_CU. - If the specified DWO unit cannot be found an error is thrown. */ + Returns NULL if the specified DWO unit cannot be found. */ static struct dwo_unit * lookup_dwo_unit (struct dwarf2_per_cu_data *this_cu, @@ -4647,14 +4650,6 @@ lookup_dwo_unit (struct dwarf2_per_cu_data *this_cu, signature); } - if (dwo_unit == NULL) - { - error (_("Dwarf Error: CU at offset 0x%x references unknown DWO" - " with ID %s [in module %s]"), - this_cu->offset.sect_off, hex_string (signature), - this_cu->objfile->name); - } - return dwo_unit; } @@ -4831,21 +4826,35 @@ init_cutu_and_read_dies (struct dwarf2_per_cu_data *this_cu, struct die_info *dwo_comp_unit_die; if (has_children) - error (_("Dwarf Error: compilation unit with DW_AT_GNU_dwo_name" - " has children (offset 0x%x) [in module %s]"), - this_cu->offset.sect_off, bfd_get_filename (abfd)); + { + complaint (&symfile_complaints, + _("compilation unit with DW_AT_GNU_dwo_name" + " has children (offset 0x%x) [in module %s]"), + this_cu->offset.sect_off, bfd_get_filename (abfd)); + } dwo_unit = lookup_dwo_unit (this_cu, comp_unit_die); - if (read_cutu_die_from_dwo (this_cu, dwo_unit, - abbrev_table != NULL, - comp_unit_die, - &reader, &info_ptr, - &dwo_comp_unit_die, &has_children) == 0) + if (dwo_unit != NULL) { - /* Dummy die. */ - do_cleanups (cleanups); - return; + if (read_cutu_die_from_dwo (this_cu, dwo_unit, + abbrev_table != NULL, + comp_unit_die, + &reader, &info_ptr, + &dwo_comp_unit_die, &has_children) == 0) + { + /* Dummy die. */ + do_cleanups (cleanups); + return; + } + comp_unit_die = dwo_comp_unit_die; + } + else + { + /* Yikes, we couldn't find the rest of the DIE, we only have + the stub. A complaint has already been logged. There's + not much more we can do except pass on the stub DIE to + die_reader_func. We don't want to throw an error on bad + debug info. */ } - comp_unit_die = dwo_comp_unit_die; } /* All of the above is setup for this call. Yikes. */ @@ -9291,7 +9300,10 @@ lookup_dwo_cutu (struct dwarf2_per_cu_data *this_unit, struct dwo_file *dwo_file; struct dwp_file *dwp_file; - /* Have we already read SIGNATURE from a DWP file? */ + /* First see if there's a DWP file. + If we have a DWP file but didn't find the DWO inside it, don't + look for the original DWO file. It makes gdb behave differently + depending on whether one is debugging in the build tree. */ dwp_file = get_dwp_file (); if (dwp_file != NULL) @@ -9318,45 +9330,47 @@ lookup_dwo_cutu (struct dwarf2_per_cu_data *this_unit, } } } - - /* Have we already seen DWO_NAME? */ - - dwo_file_slot = lookup_dwo_file_slot (dwo_name, comp_dir); - if (*dwo_file_slot == NULL) - { - /* Read in the file and build a table of the DWOs it contains. */ - *dwo_file_slot = open_and_init_dwo_file (this_unit, dwo_name, comp_dir); - } - /* NOTE: This will be NULL if unable to open the file. */ - dwo_file = *dwo_file_slot; - - if (dwo_file != NULL) + else { - struct dwo_unit *dwo_cutu = NULL; + /* No DWP file, look for the DWO file. */ - if (is_debug_types && dwo_file->tus) + dwo_file_slot = lookup_dwo_file_slot (dwo_name, comp_dir); + if (*dwo_file_slot == NULL) { - struct dwo_unit find_dwo_cutu; - - memset (&find_dwo_cutu, 0, sizeof (find_dwo_cutu)); - find_dwo_cutu.signature = signature; - dwo_cutu = htab_find (dwo_file->tus, &find_dwo_cutu); - } - else if (!is_debug_types && dwo_file->cu) - { - if (signature == dwo_file->cu->signature) - dwo_cutu = dwo_file->cu; + /* Read in the file and build a table of the CUs/TUs it contains. */ + *dwo_file_slot = open_and_init_dwo_file (this_unit, dwo_name, comp_dir); } + /* NOTE: This will be NULL if unable to open the file. */ + dwo_file = *dwo_file_slot; - if (dwo_cutu != NULL) + if (dwo_file != NULL) { - if (dwarf2_read_debug) + struct dwo_unit *dwo_cutu = NULL; + + if (is_debug_types && dwo_file->tus) + { + struct dwo_unit find_dwo_cutu; + + memset (&find_dwo_cutu, 0, sizeof (find_dwo_cutu)); + find_dwo_cutu.signature = signature; + dwo_cutu = htab_find (dwo_file->tus, &find_dwo_cutu); + } + else if (!is_debug_types && dwo_file->cu) { - fprintf_unfiltered (gdb_stdlog, "DWO %s %s(%s) found: @%s\n", - kind, dwo_name, hex_string (signature), - host_address_to_string (dwo_cutu)); + if (signature == dwo_file->cu->signature) + dwo_cutu = dwo_file->cu; + } + + if (dwo_cutu != NULL) + { + if (dwarf2_read_debug) + { + fprintf_unfiltered (gdb_stdlog, "DWO %s %s(%s) found: @%s\n", + kind, dwo_name, hex_string (signature), + host_address_to_string (dwo_cutu)); + } + return dwo_cutu; } - return dwo_cutu; } } @@ -9371,9 +9385,10 @@ lookup_dwo_cutu (struct dwarf2_per_cu_data *this_unit, } complaint (&symfile_complaints, - _("Could not find DWO %s referenced by CU at offset 0x%x" + _("Could not find DWO %s %s(%s) referenced by CU at offset 0x%x" " [in module %s]"), - kind, this_unit->offset.sect_off, objfile->name); + kind, dwo_name, hex_string (signature), + this_unit->offset.sect_off, objfile->name); return NULL; } diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c index 7d440e4..44000b9 100644 --- a/gdb/ia64-tdep.c +++ b/gdb/ia64-tdep.c @@ -2558,7 +2558,7 @@ ia64_access_fpreg (unw_addr_space_t as, unw_regnum_t uw_regnum, /* We never call any libunwind routines that need to write registers. */ gdb_assert (!write); - get_frame_register (this_frame, regnum, (char *) val); + get_frame_register (this_frame, regnum, (gdb_byte *) val); return 0; } @@ -2639,7 +2639,7 @@ ia64_access_rse_fpreg (unw_addr_space_t as, unw_regnum_t uw_regnum, /* We never call any libunwind routines that need to write registers. */ gdb_assert (!write); - regcache_cooked_read (regcache, regnum, (char *) val); + regcache_cooked_read (regcache, regnum, (gdb_byte *) val); return 0; } @@ -2664,9 +2664,9 @@ ia64_access_mem (unw_addr_space_t as, /* XXX do we need to normalize byte-order here? */ if (write) - return target_write_memory (addr, (char *) val, sizeof (unw_word_t)); + return target_write_memory (addr, (gdb_byte *) val, sizeof (unw_word_t)); else - return target_read_memory (addr, (char *) val, sizeof (unw_word_t)); + return target_read_memory (addr, (gdb_byte *) val, sizeof (unw_word_t)); } /* Call low-level function to access the kernel unwind table. */ diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c index ec3df83..969bfaf 100644 --- a/gdb/sol-thread.c +++ b/gdb/sol-thread.c @@ -782,7 +782,7 @@ ps_pglobal_lookup (gdb_ps_prochandle_t ph, const char *ld_object_name, static ps_err_e rw_common (int dowrite, const struct ps_prochandle *ph, gdb_ps_addr_t addr, - char *buf, int size) + gdb_byte *buf, int size) { int ret; struct cleanup *old_chain; @@ -831,7 +831,7 @@ ps_err_e ps_pdwrite (gdb_ps_prochandle_t ph, gdb_ps_addr_t addr, gdb_ps_write_buf_t buf, gdb_ps_size_t size) { - return rw_common (1, ph, addr, (char *) buf, size); + return rw_common (1, ph, addr, (gdb_byte *) buf, size); } /* Copies SIZE bytes from target process .text segment to debugger memory. */ @@ -849,7 +849,7 @@ ps_err_e ps_ptwrite (gdb_ps_prochandle_t ph, gdb_ps_addr_t addr, gdb_ps_write_buf_t buf, gdb_ps_size_t size) { - return rw_common (1, ph, addr, (char *) buf, size); + return rw_common (1, ph, addr, (gdb_byte *) buf, size); } /* Get general-purpose registers for LWP. */ @@ -1115,11 +1115,12 @@ info_cb (const td_thrhandle_t *th, void *s) /* Print thr_create start function. */ if (ti.ti_startfunc != 0) { - struct minimal_symbol *msym; - msym = lookup_minimal_symbol_by_pc (ti.ti_startfunc); - if (msym) + const struct bound_minimal_symbol msym hooks/post-receive -- Repository for Project Archer.