public inbox for archer-commits@sourceware.org help / color / mirror / Atom feed
From: jkratoch@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] master: Merge remote-tracking branch 'gdb/master' Date: Tue, 08 Mar 2011 08:16:00 -0000 [thread overview] Message-ID: <20110308081629.14313.qmail@sourceware.org> (raw) The branch, master has been updated via ce7aa233c596554237c08fdb4667563908c28685 (commit) via a8a24381ad7d678a1407c5aac0119fe6f2bb44d5 (commit) via 26beb4ff92e886ed8f3b7e72a9578d97861cce6c (commit) via 2493a1c3a1d73b5f38205f65ece3fa27ab25932e (commit) via e195a4ceb1ab452b27fc9564338fccc20f878bf1 (commit) via c6e18bb82bf2c38c32a676961cd318dd92def2e9 (commit) via 7e5e52fb6509b772d8e8d9ffb18c91f7b9e9c0ac (commit) via fb4eb6f59b41b325cc55c79ef7f621832d404b96 (commit) via 4a8232486713495005ddb6a5a55852ef700d75c6 (commit) via e3e944cf879ee5f1b73091d21f1519b0f29bc15c (commit) via 1e487dd491198f245f53f4a912fe09293d7cc50c (commit) via c102e38a31fbf19b82193e5da19f05136c67f2ba (commit) via e519d312866adab5a38c2ddf6cd6c19a9c8e9025 (commit) via 86eea50bade7cf59f53b9b9b44c928962e8c3c33 (commit) via 865acd2c34063108064d99db373473e8f6d83ce4 (commit) via a175fb966a6b301b97b11f5906ec0e52a1c4baf7 (commit) via 67f954c319369009fa2f4262ec07bca10589f964 (commit) via ee34b00175d8e9ba4d2f5fd3c92e9759bb4458b9 (commit) via 528e3f0dd8575f77fd686822ca9762a68b792da6 (commit) via 9a5782ef78308aca91b7cb1629aa10189c1fc52d (commit) via 1c84b4e7ca1cf3aedc94dd3a0d20184691f32fa9 (commit) via 128551d755e7bf034db311e280d88f3e8a042769 (commit) via 197423bc2e1280911452b2066ed7acf35e6a0c71 (commit) from 990ed04e24edcb0c508fb6343eed8421c3fed988 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit ce7aa233c596554237c08fdb4667563908c28685 Merge: 990ed04 a8a2438 Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Tue Mar 8 09:16:19 2011 +0100 Merge remote-tracking branch 'gdb/master' commit a8a24381ad7d678a1407c5aac0119fe6f2bb44d5 Author: Joel Brobecker <brobecker@gnat.com> Date: Tue Mar 8 04:53:32 2011 +0000 minor reformatting for target.c:read_whatever_is_readable gdb/ChangeLog: * target.c (read_whatever_is_readable): Reformat comment, with a minor typo fix. Minor reformatting of the code. commit 26beb4ff92e886ed8f3b7e72a9578d97861cce6c Author: qiyao <qiyao> Date: Tue Mar 8 01:04:33 2011 +0000 2011-03-08 Yao Qi <yao@codesourcery.com> * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode. (displaced_read_reg): Add `dsc' parameter, remove `from' parameter. Use cached result instead of calling displaced_in_arm_mode again. (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter. (displaced_write_reg, copy_preload, copy_preload_reg): Callers update. (cleanup_copro_load_store, copy_copro_load_store): Likewise. (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise. (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise. (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise. (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise. (cleanup_block_load_all, cleanup_block_store_pc): Likewise. (cleanup_block_load_pc, copy_block_xfer): Likewise. * arm-linux-tdep.c (arm_linux_copy_svc): Callers update. (arm_catch_kernel_helper_return): Likewise. * gdb/arm-tdep.h : Update function declarations. commit 2493a1c3a1d73b5f38205f65ece3fa27ab25932e Author: gdbadmin <gdbadmin@sourceware.org> Date: Tue Mar 8 00:00:03 2011 +0000 *** empty log message *** commit e195a4ceb1ab452b27fc9564338fccc20f878bf1 Author: Alan Modra <amodra@bigpond.net.au> Date: Mon Mar 7 23:00:05 2011 +0000 daily update commit c6e18bb82bf2c38c32a676961cd318dd92def2e9 Author: Tom Tromey <tromey@redhat.com> Date: Mon Mar 7 22:02:45 2011 +0000 * Makefile.in (TAGS): Rewrite. commit 7e5e52fb6509b772d8e8d9ffb18c91f7b9e9c0ac Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Mon Mar 7 20:25:57 2011 +0000 gdb/testsuite/ * gdb.trace/report.exp (12.1: trace report #1): New match for the initial commands echo. New match for `Found trace'. Anchor all the other matches. Anchor and match for `No trace frame found' the final match. commit fb4eb6f59b41b325cc55c79ef7f621832d404b96 Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Mon Mar 7 20:15:12 2011 +0000 gdb/gdbserver/ * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically. commit 4a8232486713495005ddb6a5a55852ef700d75c6 Author: Michael Snyder <msnyder@specifix.com> Date: Mon Mar 7 20:06:11 2011 +0000 2011-03-04 Michael Snyder <msnyder@vmware.com> * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null. commit e3e944cf879ee5f1b73091d21f1519b0f29bc15c Author: Michael Snyder <msnyder@specifix.com> Date: Mon Mar 7 19:53:32 2011 +0000 2011-03-05 Michael Snyder <msnyder@vmware.com> * ser-unix.c (hardwire_get_tty_state): Stop memory leak. commit 1e487dd491198f245f53f4a912fe09293d7cc50c Author: Michael Snyder <msnyder@specifix.com> Date: Mon Mar 7 19:50:22 2011 +0000 2011-03-05 Michael Snyder <msnyder@vmware.com> * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment. commit c102e38a31fbf19b82193e5da19f05136c67f2ba Author: Michael Snyder <msnyder@specifix.com> Date: Mon Mar 7 19:44:18 2011 +0000 2011-03-05 Michael Snyder <msnyder@vmware.com> * elfread.c (elf_symtab_read): Stop memory leak. commit e519d312866adab5a38c2ddf6cd6c19a9c8e9025 Author: Michael Snyder <msnyder@specifix.com> Date: Mon Mar 7 18:34:30 2011 +0000 2011-03-06 Michael Snyder <msnyder@vmware.com> * main.c (captured_main): Fix memory leak. commit 86eea50bade7cf59f53b9b9b44c928962e8c3c33 Author: Andreas Schwab <schwab@suse.de> Date: Mon Mar 7 18:29:12 2011 +0000 * ada-lang.c (compare_names): Call is_name_suffix with string1 instead of string2. commit 865acd2c34063108064d99db373473e8f6d83ce4 Author: Tom Tromey <tromey@redhat.com> Date: Mon Mar 7 17:03:51 2011 +0000 * Makefile.in (TAGS): New target. commit a175fb966a6b301b97b11f5906ec0e52a1c4baf7 Author: Tom Tromey <tromey@redhat.com> Date: Mon Mar 7 16:17:25 2011 +0000 * xcoffread.c (xcoff_sym_fns): Update. * symfile.h (struct sym_fns) <sym_read_psymbols>: New field. (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant. * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ. (symbol_file_add_with_addrs_or_offsets): Likewise. (reread_symbols): Handle OBJF_PSYMTABS_READ. * somread.c (som_sym_fns): Update. * psymtab.h (require_partial_symbols): Declare. * psymtab.c (require_partial_symbols): New function. (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro. (ALL_OBJFILE_PSYMTABS): Undef. (ALL_PSYMTABS): Move from psympriv.h. (lookup_partial_symtab, find_pc_sect_psymtab) (lookup_symbol_aux_psymtabs, relocate_psymtabs) (find_last_source_symtab_from_partial) (forget_cached_source_info_partial) (print_psymtab_stats_for_objfile, read_symtabs_for_function) (expand_partial_symbol_tables, read_psymtabs_with_filename) (map_symbol_names_psymtab, map_symbol_filenames_psymtab) (find_symbol_file_from_partial, map_matching_symbols_psymtab) (expand_symtabs_matching_via_partial, maintenance_info_psymtabs): Use ALL_OBJFILE_PSYMTABS_REQUIRED. * psympriv.h (ALL_PSYMTABS): Move to psymtab.c. * objfiles.h (OBJF_PSYMTABS_READ): New macro. * objfiles.c (objfile_has_partial_symbols): Handle lazily-read psymtabs. * mipsread.c (ecoff_sym_fns): Update. * machoread.c (macho_sym_fns): Update. * elfread.c (elf_symfile_read): Set up for lazy psymtab reading. (read_psyms): New function. (elf_sym_fns, elf_sym_fns_gdb_index): Update. (elf_sym_fns_lazy_psyms): New global. * dwarf2read.c (dwarf2_initialize_objfile): Don't call dwarf2_build_psymtabs. * dbxread.c (aout_sym_fns): Update. * coffread.c (coff_sym_fns): Update. commit 67f954c319369009fa2f4262ec07bca10589f964 Author: Tom Tromey <tromey@redhat.com> Date: Mon Mar 7 16:02:58 2011 +0000 gdb * infrun.c (print_exited_reason): Include inferior id and pid in message. gdb/testsuite * lib/opencl.exp (skip_opencl_tests): Update for exit message change. * lib/mi-support.exp (mi_gdb_test): Update for exit message change. * lib/gdb.exp (gdb_test_multiple): Update comment. Update for exit message change. (skip_altivec_tests): Update for exit message change. (skip_vsx_tests): Likewise. (gdb_continue_to_end): Likewise. Add 'command' argument. * lib/cell.exp (skip_cell_tests): Update for exit message change. * gdb.threads/tls.exp: Update for exit message change. * gdb.threads/thread-unwindonsignal.exp: Use gdb_continue_to_end. * gdb.threads/step.exp (step_it): Update for exit message change. (continue_all): Likewise. * gdb.threads/print-threads.exp (test_all_threads): Update for exit message change. * gdb.threads/interrupted-hand-call.exp: Use gdb_continue_to_end. * gdb.threads/execl.exp: Use gdb_continue_to_end. * gdb.python/py-prettyprint.exp (run_lang_tests): Use gdb_continue_to_end. * gdb.hp/gdb.objdbg/objdbg02.exp: Use gdb_continue_to_end. * gdb.hp/gdb.objdbg/objdbg01.exp: Use gdb_continue_to_end. * gdb.hp/gdb.defects/solib-d.exp: Update for exit message change. * gdb.cp/method.exp: Update for exit message change. * gdb.cp/mb-templates.exp: Update for exit message change. * gdb.cp/mb-inline.exp: Use gdb_continue_to_end. * gdb.cp/annota3.exp: Update for exit message change. * gdb.cp/annota2.exp: Update for exit message change. * gdb.cell/fork.exp: Use gdb_continue_to_end. * gdb.base/term.exp: Update for exit message change. * gdb.base/step-test.exp (test_i): Update for exit message change. * gdb.base/sigstep.exp (advance): Update for exit message change. (advancei): Likewise. * gdb.base/siginfo.exp: Update for exit message change. * gdb.base/shlib-call.exp: Use gdb_continue_to_end. * gdb.base/reread.exp: Use gdb_continue_to_end. * gdb.base/langs.exp: Use gdb_continue_to_end. * gdb.base/interrupt.exp: Update for exit message change. * gdb.base/gdb1555.exp: Update for exit message change. * gdb.base/exe-lock.exp: Use gdb_continue_to_end. * gdb.base/ending-run.exp: Update for exit message change. * gdb.base/chng-syms.exp: Update for exit message change. * gdb.base/checkpoint.exp: Update for exit message change. * gdb.base/catch-syscall.exp (check_for_program_end): Use gdb_continue_to_end. (test_catch_syscall_with_wrong_args): Likewise. * gdb.base/call-signal-resume.exp: Use gdb_continue_to_end. * gdb.base/break-interp.exp (test_ld): Update for exit message change. * gdb.base/bang.exp: Update for exit message change. * gdb.base/attach.exp (do_attach_tests): Use gdb_continue_to_end. (do_call_attach_tests): Likewise. * gdb.base/a2-run.exp: Update for exit message change. * gdb.arch/ppc-dfp.exp: Update for exit message change. * gdb.ada/tasks.exp: Use gdb_continue_to_end. * gdb.ada/catch_ex.exp: Use gdb_continue_to_end. commit ee34b00175d8e9ba4d2f5fd3c92e9759bb4458b9 Author: Tom Tromey <tromey@redhat.com> Date: Mon Mar 7 15:58:12 2011 +0000 * target.h (struct target_ops) <to_has_execution>: Add ptid_t parameter. (target_has_execution_1): Update. (target_has_execution_current): Declare. (target_has_execution): Call target_has_execution_current. (default_child_has_execution): Update. * target.c (default_child_has_execution): Add 'the_ptid' parameter. (target_has_execution_1): Likewise. (target_has_execution_current): New function. (add_target): Update. (init_dummy_target): Update. * remote-m32r-sdi.c (m32r_has_execution): New function. (init_m32r_ops): Use it. * record.c (record_core_has_execution): Now static. Add 'the_ptid' parameter. * inferior.c (have_live_inferiors): Don't save current thread. Use target_has_execution_1. commit 528e3f0dd8575f77fd686822ca9762a68b792da6 Author: qiyao <qiyao> Date: Mon Mar 7 11:42:53 2011 +0000 2011-03-07 Yao Qi <yao@codesourcery.com> * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4. commit 9a5782ef78308aca91b7cb1629aa10189c1fc52d Author: Joel Brobecker <brobecker@gnat.com> Date: Mon Mar 7 11:13:07 2011 +0000 Minor reformatting in elfread.c:elf_symtab_read gdb/ChangeLog: * elfread.c (elf_symtab_read): Minor reformatting. commit 1c84b4e7ca1cf3aedc94dd3a0d20184691f32fa9 Author: Joel Brobecker <brobecker@gnat.com> Date: Mon Mar 7 10:41:34 2011 +0000 minor reformatting in objc-lang.c:selectors_info gdb/ChangeLog: * objc-lang.c (selectors_info): Minor reformatting. commit 128551d755e7bf034db311e280d88f3e8a042769 Author: Joel Brobecker <brobecker@gnat.com> Date: Mon Mar 7 10:05:18 2011 +0000 add FALLTHROUGH comment in ada-lang.c:compare_names gdb/ChangeLog: * ada-lang.c (compare_names): Add FALLTHROUGH comment. commit 197423bc2e1280911452b2066ed7acf35e6a0c71 Author: Joel Brobecker <brobecker@gnat.com> Date: Mon Mar 7 08:57:08 2011 +0000 simplify ada-valprint.c:ada_val_print_array Two things: - Move the declaration of a couple of variables inside the block where they are actually used; - Remove some code that checks against NULL/zero, because the condition should always be false. Add some gdb_asserts to make sure we never fail those assumptions. gdb/ChangeLog: * ada-valprint.c (ada_val_print_array): Move the declaration of "byte_order" and "elttype" inside the block where these variables are actually used. Remove some special handling for the case where "elttype" and "eltlen" are null. Replace by a comment and a couple of assertion checks. ----------------------------------------------------------------------- Summary of changes: bfd/version.h | 2 +- gdb/ChangeLog | 130 ++++++++++++++++ gdb/Makefile.in | 1 - gdb/ada-lang.c | 3 +- gdb/ada-valprint.c | 20 ++-- gdb/arm-linux-tdep.c | 5 +- gdb/arm-tdep.c | 162 +++++++++----------- gdb/arm-tdep.h | 3 +- gdb/coffread.c | 1 + gdb/dbxread.c | 1 + gdb/dwarf2loc.c | 1 + gdb/dwarf2read.c | 1 - gdb/elfread.c | 56 ++++++- gdb/gdbserver/ChangeLog | 4 + gdb/gdbserver/remote-utils.c | 2 +- gdb/inferior.c | 14 +-- gdb/infrun.c | 17 ++- gdb/machoread.c | 1 + gdb/main.c | 13 +- gdb/mi/mi-cmd-env.c | 1 + gdb/mipsread.c | 1 + gdb/objc-lang.c | 10 +- gdb/objfiles.c | 9 +- gdb/objfiles.h | 5 + gdb/psympriv.h | 6 - gdb/psymtab.c | 88 +++++++++-- gdb/psymtab.h | 8 + gdb/record.c | 4 +- gdb/remote-m32r-sdi.c | 10 +- gdb/ser-unix.c | 5 +- gdb/somread.c | 1 + gdb/symfile.c | 26 +++- gdb/symfile.h | 13 ++- gdb/target.c | 60 ++++--- gdb/target.h | 14 ++- gdb/testsuite/ChangeLog | 76 +++++++++ gdb/testsuite/Makefile.in | 4 + gdb/testsuite/gdb.ada/catch_ex.exp | 4 +- gdb/testsuite/gdb.ada/tasks.exp | 4 +- gdb/testsuite/gdb.arch/ppc-dfp.exp | 2 +- gdb/testsuite/gdb.base/a2-run.exp | 18 +- gdb/testsuite/gdb.base/attach.exp | 4 +- gdb/testsuite/gdb.base/bang.exp | 2 +- gdb/testsuite/gdb.base/break-interp.exp | 4 +- gdb/testsuite/gdb.base/call-signal-resume.exp | 3 +- gdb/testsuite/gdb.base/catch-syscall.exp | 5 +- gdb/testsuite/gdb.base/checkpoint.exp | 10 +- gdb/testsuite/gdb.base/chng-syms.exp | 2 +- gdb/testsuite/gdb.base/ending-run.exp | 8 +- gdb/testsuite/gdb.base/exe-lock.exp | 4 +- gdb/testsuite/gdb.base/gdb1555.exp | 2 +- gdb/testsuite/gdb.base/interrupt.exp | 2 +- gdb/testsuite/gdb.base/langs.exp | 8 +- gdb/testsuite/gdb.base/reread.exp | 3 +- gdb/testsuite/gdb.base/shlib-call.exp | 4 +- gdb/testsuite/gdb.base/siginfo.exp | 2 +- gdb/testsuite/gdb.base/sigstep.exp | 10 +- gdb/testsuite/gdb.base/step-test.exp | 2 +- gdb/testsuite/gdb.base/term.exp | 2 +- gdb/testsuite/gdb.cell/fork.exp | 3 +- gdb/testsuite/gdb.cp/annota2.exp | 2 +- gdb/testsuite/gdb.cp/annota3.exp | 3 +- gdb/testsuite/gdb.cp/mb-inline.exp | 4 +- gdb/testsuite/gdb.cp/mb-templates.exp | 2 +- gdb/testsuite/gdb.cp/method.exp | 4 +- gdb/testsuite/gdb.hp/gdb.defects/solib-d.exp | 4 +- gdb/testsuite/gdb.hp/gdb.objdbg/objdbg01.exp | 4 +- gdb/testsuite/gdb.hp/gdb.objdbg/objdbg02.exp | 4 +- gdb/testsuite/gdb.python/py-prettyprint.exp | 2 +- gdb/testsuite/gdb.threads/execl.exp | 3 +- .../gdb.threads/interrupted-hand-call.exp | 3 +- gdb/testsuite/gdb.threads/print-threads.exp | 4 +- gdb/testsuite/gdb.threads/step.exp | 6 +- .../gdb.threads/thread-unwindonsignal.exp | 3 +- gdb/testsuite/gdb.threads/tls.exp | 2 +- gdb/testsuite/gdb.trace/report.exp | 20 ++- gdb/testsuite/lib/cell.exp | 6 +- gdb/testsuite/lib/gdb.exp | 37 +++-- gdb/testsuite/lib/mi-support.exp | 3 +- gdb/testsuite/lib/opencl.exp | 5 +- gdb/version.in | 2 +- gdb/xcoffread.c | 1 + 82 files changed, 690 insertions(+), 320 deletions(-) First 500 lines of diff: diff --git a/bfd/version.h b/bfd/version.h index 6765a93..901c240 100644 --- a/bfd/version.h +++ b/bfd/version.h @@ -1,4 +1,4 @@ -#define BFD_VERSION_DATE 20110307 +#define BFD_VERSION_DATE 20110308 #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/gdb/ChangeLog b/gdb/ChangeLog index 4887026..135a161 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,133 @@ +2011-03-08 Joel Brobecker <brobecker@adacore.com> + + * target.c (read_whatever_is_readable): Reformat comment, + with a minor typo fix. Minor reformatting of the code. + +2011-03-08 Yao Qi <yao@codesourcery.com> + + * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode. + (displaced_read_reg): Add `dsc' parameter, remove `from' parameter. + Use cached result instead of calling displaced_in_arm_mode again. + (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter. + (displaced_write_reg, copy_preload, copy_preload_reg): Callers update. + (cleanup_copro_load_store, copy_copro_load_store): Likewise. + (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise. + (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise. + (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise. + (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise. + (cleanup_block_load_all, cleanup_block_store_pc): Likewise. + (cleanup_block_load_pc, copy_block_xfer): Likewise. + * arm-linux-tdep.c (arm_linux_copy_svc): Callers update. + (arm_catch_kernel_helper_return): Likewise. + * gdb/arm-tdep.h : Update function declarations. + +2011-03-06 Michael Snyder <msnyder@vmware.com> + + * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null. + + * ser-unix.c (hardwire_get_tty_state): Stop memory leak. + + * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment. + + * elfread.c (elf_symtab_read): Stop memory leak. + + * main.c (captured_main): Fix memory leak. + +2011-03-07 Andreas Schwab <schwab@linux-m68k.org> + + * ada-lang.c (compare_names): Call is_name_suffix with string1 + instead of string2. + +2011-03-07 Tom Tromey <tromey@redhat.com> + + * xcoffread.c (xcoff_sym_fns): Update. + * symfile.h (struct sym_fns) <sym_read_psymbols>: New field. + (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant. + * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ. + (symbol_file_add_with_addrs_or_offsets): Likewise. + (reread_symbols): Handle OBJF_PSYMTABS_READ. + * somread.c (som_sym_fns): Update. + * psymtab.h (require_partial_symbols): Declare. + * psymtab.c (require_partial_symbols): New function. + (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro. + (ALL_OBJFILE_PSYMTABS): Undef. + (ALL_PSYMTABS): Move from psympriv.h. + (lookup_partial_symtab, find_pc_sect_psymtab) + (lookup_symbol_aux_psymtabs, relocate_psymtabs) + (find_last_source_symtab_from_partial) + (forget_cached_source_info_partial) + (print_psymtab_stats_for_objfile, read_symtabs_for_function) + (expand_partial_symbol_tables, read_psymtabs_with_filename) + (map_symbol_names_psymtab, map_symbol_filenames_psymtab) + (find_symbol_file_from_partial, map_matching_symbols_psymtab) + (expand_symtabs_matching_via_partial, maintenance_info_psymtabs): + Use ALL_OBJFILE_PSYMTABS_REQUIRED. + * psympriv.h (ALL_PSYMTABS): Move to psymtab.c. + * objfiles.h (OBJF_PSYMTABS_READ): New macro. + * objfiles.c (objfile_has_partial_symbols): Handle lazily-read + psymtabs. + * mipsread.c (ecoff_sym_fns): Update. + * machoread.c (macho_sym_fns): Update. + * elfread.c (elf_symfile_read): Set up for lazy psymtab reading. + (read_psyms): New function. + (elf_sym_fns, elf_sym_fns_gdb_index): Update. + (elf_sym_fns_lazy_psyms): New global. + * dwarf2read.c (dwarf2_initialize_objfile): Don't call + dwarf2_build_psymtabs. + * dbxread.c (aout_sym_fns): Update. + * coffread.c (coff_sym_fns): Update. + +2011-03-07 Tom Tromey <tromey@redhat.com> + + * infrun.c (print_exited_reason): Include inferior id and pid in + message. + +2011-03-07 Tom Tromey <tromey@redhat.com> + + * target.h (struct target_ops) <to_has_execution>: Add ptid_t + parameter. + (target_has_execution_1): Update. + (target_has_execution_current): Declare. + (target_has_execution): Call target_has_execution_current. + (default_child_has_execution): Update. + * target.c (default_child_has_execution): Add 'the_ptid' + parameter. + (target_has_execution_1): Likewise. + (target_has_execution_current): New function. + (add_target): Update. + (init_dummy_target): Update. + * remote-m32r-sdi.c (m32r_has_execution): New function. + (init_m32r_ops): Use it. + * record.c (record_core_has_execution): Now static. Add + 'the_ptid' parameter. + * inferior.c (have_live_inferiors): Don't save current thread. + Use target_has_execution_1. + +2011-03-07 Yao Qi <yao@codesourcery.com> + + * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4. + +2011-03-07 Joel Brobecker <brobecker@adacore.com> + + * elfread.c (elf_symtab_read): Minor reformatting. + +2011-03-07 Joel Brobecker <brobecker@adacore.com> + + * objc-lang.c (selectors_info): Minor reformatting. + +2011-03-07 Joel Brobecker <brobecker@adacore.com> + + * ada-lang.c (compare_names): Add FALLTHROUGH comment. + +2011-03-07 Joel Brobecker <brobecker@adacore.com> + Michael Snyder <msnyder@vmware.com> + + * ada-valprint.c (ada_val_print_array): Move the declaration of + "byte_order" and "elttype" inside the block where these variables + are actually used. Remove some special handling for the case + where "elttype" and "eltlen" are null. Replace by a comment + and a couple of assertion checks. + 2011-03-05 Michael Snyder <msnyder@vmware.com> * source.c (add_path): Replace semicolon at end of block. diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 00d624f..db69d97 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -1330,7 +1330,6 @@ aclocal_m4_deps = \ gnulib/m4/include_next.m4 \ gnulib/m4/longlong.m4 \ gnulib/m4/memchr.m4 \ - gnulib/m4/memcmp.m4 \ gnulib/m4/memmem.m4 \ gnulib/m4/onceonly_2_57.m4 \ gnulib/m4/stdint.m4 \ diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index d0a1014..ed51ab0 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -4757,11 +4757,12 @@ compare_names (const char *string1, const char *string2) case '_': if (*string2 == '\0') { - if (is_name_suffix (string2)) + if (is_name_suffix (string1)) return 0; else return -1; } + /* FALLTHROUGH */ default: if (*string2 == '(') return strcmp_iw_ordered (string1, string2); diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c index 9381ecc..09266ce 100644 --- a/gdb/ada-valprint.c +++ b/gdb/ada-valprint.c @@ -605,25 +605,25 @@ ada_val_print_array (struct type *type, const gdb_byte *valaddr, const struct value *val, const struct value_print_options *options) { - enum bfd_endian byte_order = gdbarch_byte_order (get_type_arch (type)); - struct type *elttype = TYPE_TARGET_TYPE (type); int result = 0; /* For an array of chars, print with string syntax. */ if (ada_is_string_type (type) && (options->format == 0 || options->format == 's')) { + enum bfd_endian byte_order = gdbarch_byte_order (get_type_arch (type)); + struct type *elttype = TYPE_TARGET_TYPE (type); unsigned int eltlen; unsigned int len; - if (elttype == NULL) - eltlen = 0; - else - eltlen = TYPE_LENGTH (elttype); - if (eltlen == 0) - len = 0; - else - len = TYPE_LENGTH (type) / eltlen; + /* We know that ELTTYPE cannot possibly be null, because we found + that TYPE is a string-like type. Similarly, the size of ELTTYPE + should also be non-null, since it's a character-like type. */ + gdb_assert (elttype != NULL); + gdb_assert (TYPE_LENGTH (elttype) != 0); + + eltlen = TYPE_LENGTH (elttype); + len = TYPE_LENGTH (type) / eltlen; if (options->prettyprint_arrays) print_spaces_filtered (2 + 2 * recurse, stream); diff --git a/gdb/arm-linux-tdep.c b/gdb/arm-linux-tdep.c index f60ecc3..2f3109c 100644 --- a/gdb/arm-linux-tdep.c +++ b/gdb/arm-linux-tdep.c @@ -801,11 +801,10 @@ static int arm_linux_copy_svc (struct gdbarch *gdbarch, uint32_t insn, CORE_ADDR to, struct regcache *regs, struct displaced_step_closure *dsc) { - CORE_ADDR from = dsc->insn_addr; CORE_ADDR return_to = 0; struct frame_info *frame; - unsigned int svc_number = displaced_read_reg (regs, from, 7); + unsigned int svc_number = displaced_read_reg (regs, dsc, 7); int is_sigreturn = 0; if (debug_displaced) @@ -918,7 +917,7 @@ arm_catch_kernel_helper_return (struct gdbarch *gdbarch, CORE_ADDR from, Insn: ldr pc, [r14, #4] Cleanup: r14 <- tmp[0], pc <- tmp[0]. */ - dsc->tmp[0] = displaced_read_reg (regs, from, ARM_LR_REGNUM); + dsc->tmp[0] = displaced_read_reg (regs, dsc, ARM_LR_REGNUM); displaced_write_reg (regs, dsc, ARM_LR_REGNUM, (ULONGEST) to + 4, CANNOT_WRITE_PC); write_memory_unsigned_integer (to + 8, 4, byte_order, from); diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 2cf2eec..7796176 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -5111,16 +5111,16 @@ arm_adjust_breakpoint_address (struct gdbarch *gdbarch, CORE_ADDR bpaddr) /* NOP instruction (mov r0, r0). */ #define ARM_NOP 0xe1a00000 -static int displaced_in_arm_mode (struct regcache *regs); - /* Helper for register reads for displaced stepping. In particular, this returns the PC as it would be seen by the instruction at its original location. */ ULONGEST -displaced_read_reg (struct regcache *regs, CORE_ADDR from, int regno) +displaced_read_reg (struct regcache *regs, struct displaced_step_closure *dsc, + int regno) { ULONGEST ret; + CORE_ADDR from = dsc->insn_addr; if (regno == ARM_PC_REGNUM) { @@ -5130,7 +5130,7 @@ displaced_read_reg (struct regcache *regs, CORE_ADDR from, int regno) - When executing a Thumb instruction, PC reads as the address of the current instruction plus 4. */ - if (displaced_in_arm_mode (regs)) + if (!dsc->is_thumb) from += 8; else from += 4; @@ -5164,9 +5164,10 @@ displaced_in_arm_mode (struct regcache *regs) /* Write to the PC as from a branch instruction. */ static void -branch_write_pc (struct regcache *regs, ULONGEST val) +branch_write_pc (struct regcache *regs, struct displaced_step_closure *dsc, + ULONGEST val) { - if (displaced_in_arm_mode (regs)) + if (!dsc->is_thumb) /* Note: If bits 0/1 are set, this branch would be unpredictable for architecture versions < 6. */ regcache_cooked_write_unsigned (regs, ARM_PC_REGNUM, @@ -5209,23 +5210,25 @@ bx_write_pc (struct regcache *regs, ULONGEST val) /* Write to the PC as if from a load instruction. */ static void -load_write_pc (struct regcache *regs, ULONGEST val) +load_write_pc (struct regcache *regs, struct displaced_step_closure *dsc, + ULONGEST val) { if (DISPLACED_STEPPING_ARCH_VERSION >= 5) bx_write_pc (regs, val); else - branch_write_pc (regs, val); + branch_write_pc (regs, dsc, val); } /* Write to the PC as if from an ALU instruction. */ static void -alu_write_pc (struct regcache *regs, ULONGEST val) +alu_write_pc (struct regcache *regs, struct displaced_step_closure *dsc, + ULONGEST val) { - if (DISPLACED_STEPPING_ARCH_VERSION >= 7 && displaced_in_arm_mode (regs)) + if (DISPLACED_STEPPING_ARCH_VERSION >= 7 && !dsc->is_thumb) bx_write_pc (regs, val); else - branch_write_pc (regs, val); + branch_write_pc (regs, dsc, val); } /* Helper for writing to registers for displaced stepping. Writing to the PC @@ -5244,7 +5247,7 @@ displaced_write_reg (struct regcache *regs, struct displaced_step_closure *dsc, switch (write_pc) { case BRANCH_WRITE_PC: - branch_write_pc (regs, val); + branch_write_pc (regs, dsc, val); break; case BX_WRITE_PC: @@ -5252,11 +5255,11 @@ displaced_write_reg (struct regcache *regs, struct displaced_step_closure *dsc, break; case LOAD_WRITE_PC: - load_write_pc (regs, val); + load_write_pc (regs, dsc, val); break; case ALU_WRITE_PC: - alu_write_pc (regs, val); + alu_write_pc (regs, dsc, val); break; case CANNOT_WRITE_PC: @@ -5346,7 +5349,6 @@ copy_preload (struct gdbarch *gdbarch, uint32_t insn, struct regcache *regs, { unsigned int rn = bits (insn, 16, 19); ULONGEST rn_val; - CORE_ADDR from = dsc->insn_addr; if (!insn_references_pc (insn, 0x000f0000ul)) return copy_unmodified (gdbarch, insn, "preload", dsc); @@ -5361,8 +5363,8 @@ copy_preload (struct gdbarch *gdbarch, uint32_t insn, struct regcache *regs, -> {pli/pld} [r0, #+/-imm]. */ - dsc->tmp[0] = displaced_read_reg (regs, from, 0); - rn_val = displaced_read_reg (regs, from, rn); + dsc->tmp[0] = displaced_read_reg (regs, dsc, 0); + rn_val = displaced_read_reg (regs, dsc, rn); displaced_write_reg (regs, dsc, 0, rn_val, CANNOT_WRITE_PC); dsc->u.preload.immed = 1; @@ -5384,7 +5386,6 @@ copy_preload_reg (struct gdbarch *gdbarch, uint32_t insn, unsigned int rn = bits (insn, 16, 19); unsigned int rm = bits (insn, 0, 3); ULONGEST rn_val, rm_val; - CORE_ADDR from = dsc->insn_addr; if (!insn_references_pc (insn, 0x000f000ful)) return copy_unmodified (gdbarch, insn, "preload reg", dsc); @@ -5399,10 +5400,10 @@ copy_preload_reg (struct gdbarch *gdbarch, uint32_t insn, -> {pli/pld} [r0, r1 {, shift}]. */ - dsc->tmp[0] = displaced_read_reg (regs, from, 0); - dsc->tmp[1] = displaced_read_reg (regs, from, 1); - rn_val = displaced_read_reg (regs, from, rn); - rm_val = displaced_read_reg (regs, from, rm); + dsc->tmp[0] = displaced_read_reg (regs, dsc, 0); + dsc->tmp[1] = displaced_read_reg (regs, dsc, 1); + rn_val = displaced_read_reg (regs, dsc, rn); + rm_val = displaced_read_reg (regs, dsc, rm); displaced_write_reg (regs, dsc, 0, rn_val, CANNOT_WRITE_PC); displaced_write_reg (regs, dsc, 1, rm_val, CANNOT_WRITE_PC); @@ -5422,7 +5423,7 @@ cleanup_copro_load_store (struct gdbarch *gdbarch, struct regcache *regs, struct displaced_step_closure *dsc) { - ULONGEST rn_val = displaced_read_reg (regs, dsc->insn_addr, 0); + ULONGEST rn_val = displaced_read_reg (regs, dsc, 0); displaced_write_reg (regs, dsc, 0, dsc->tmp[0], CANNOT_WRITE_PC); @@ -5437,7 +5438,6 @@ copy_copro_load_store (struct gdbarch *gdbarch, uint32_t insn, { unsigned int rn = bits (insn, 16, 19); ULONGEST rn_val; - CORE_ADDR from = dsc->insn_addr; if (!insn_references_pc (insn, 0x000f0000ul)) return copy_unmodified (gdbarch, insn, "copro load/store", dsc); @@ -5454,8 +5454,8 @@ copy_copro_load_store (struct gdbarch *gdbarch, uint32_t insn, ldc/ldc2 are handled identically. */ - dsc->tmp[0] = displaced_read_reg (regs, from, 0); - rn_val = displaced_read_reg (regs, from, rn); + dsc->tmp[0] = displaced_read_reg (regs, dsc, 0); + rn_val = displaced_read_reg (regs, dsc, rn); displaced_write_reg (regs, dsc, 0, rn_val, CANNOT_WRITE_PC); dsc->u.ldst.writeback = bit (insn, 25); @@ -5475,8 +5475,7 @@ static void cleanup_branch (struct gdbarch *gdbarch, struct regcache *regs, struct displaced_step_closure *dsc) { - ULONGEST from = dsc->insn_addr; - uint32_t status = displaced_read_reg (regs, from, ARM_PS_REGNUM); + uint32_t status = displaced_read_reg (regs, dsc, ARM_PS_REGNUM); int branch_taken = condition_true (dsc->u.branch.cond, status); enum pc_write_style write_pc = dsc->u.branch.exchange ? BX_WRITE_PC : BRANCH_WRITE_PC; @@ -5486,7 +5485,7 @@ cleanup_branch (struct gdbarch *gdbarch, struct regcache *regs, if (dsc->u.branch.link) { - ULONGEST pc = displaced_read_reg (regs, from, ARM_PC_REGNUM); + ULONGEST pc = displaced_read_reg (regs, dsc, ARM_PC_REGNUM); displaced_write_reg (regs, dsc, ARM_LR_REGNUM, pc - 4, CANNOT_WRITE_PC); } @@ -5551,7 +5550,6 @@ copy_bx_blx_reg (struct gdbarch *gdbarch, uint32_t insn, BLX: x12xxx3x. */ int link = bit (insn, 5); unsigned int rm = bits (insn, 0, 3); - CORE_ADDR from = dsc->insn_addr; if (debug_displaced) fprintf_unfiltered (gdb_stdlog, "displaced: copying %s register insn " @@ -5566,7 +5564,7 @@ copy_bx_blx_reg (struct gdbarch *gdbarch, uint32_t insn, Don't set r14 in cleanup for BX. */ - dsc->u.branch.dest = displaced_read_reg (regs, from, rm); + dsc->u.branch.dest = displaced_read_reg (regs, dsc, rm); dsc->u.branch.cond = cond; dsc->u.branch.link = link; @@ -5585,7 +5583,7 @@ static void cleanup_alu_imm (struct gdbarch *gdbarch, struct regcache *regs, struct displaced_step_closure *dsc) { - ULONGEST rd_val = displaced_read_reg (regs, dsc->insn_addr, 0); + ULONGEST rd_val = displaced_read_reg (regs, dsc, 0); displaced_write_reg (regs, dsc, 0, dsc->tmp[0], CANNOT_WRITE_PC); displaced_write_reg (regs, dsc, 1, dsc->tmp[1], CANNOT_WRITE_PC); displaced_write_reg (regs, dsc, dsc->rd, rd_val, ALU_WRITE_PC); @@ -5600,7 +5598,6 @@ copy_alu_imm (struct gdbarch *gdbarch, uint32_t insn, struct regcache *regs, unsigned int op = bits (insn, 21, 24); int is_mov = (op == 0xd); ULONGEST rd_val, rn_val; - CORE_ADDR from = dsc->insn_addr; if (!insn_references_pc (insn, 0x000ff000ul)) return copy_unmodified (gdbarch, insn, "ALU immediate", dsc); @@ -5622,10 +5619,10 @@ copy_alu_imm (struct gdbarch *gdbarch, uint32_t insn, struct regcache *regs, Cleanup: rd <- r0; r0 <- tmp1; r1 <- tmp2 */ - dsc->tmp[0] = displaced_read_reg (regs, from, 0); - dsc->tmp[1] = displaced_read_reg (regs, from, 1); - rn_val = displaced_read_reg (regs, from, rn); - rd_val = displaced_read_reg (regs, from, rd); + dsc->tmp[0] = displaced_read_reg (regs, dsc, 0); + dsc->tmp[1] = displaced_read_reg (regs, dsc, 1); + rn_val = displaced_read_reg (regs, dsc, rn); + rd_val = displaced_read_reg (regs, dsc, rd); displaced_write_reg (regs, dsc, 0, rd_val, CANNOT_WRITE_PC); displaced_write_reg (regs, dsc, 1, rn_val, CANNOT_WRITE_PC); dsc->rd = rd; @@ -5649,7 +5646,7 @@ cleanup_alu_reg (struct gdbarch *gdbarch, ULONGEST rd_val; int i; - rd_val = displaced_read_reg (regs, dsc->insn_addr, 0); + rd_val = displaced_read_reg (regs, dsc, 0); for (i = 0; i < 3; i++) displaced_write_reg (regs, dsc, i, dsc->tmp[i], CANNOT_WRITE_PC); @@ -5667,7 +5664,6 @@ copy_alu_reg (struct gdbarch *gdbarch, uint32_t insn, struct regcache *regs, unsigned int op = bits (insn, 21, 24); int is_mov = (op == 0xd); ULONGEST rd_val, rn_val, rm_val; - CORE_ADDR from = dsc->insn_addr; if (!insn_references_pc (insn, 0x000ff00ful)) return copy_unmodified (gdbarch, insn, "ALU reg", dsc); @@ -5688,12 +5684,12 @@ copy_alu_reg (struct gdbarch *gdbarch, uint32_t insn, struct regcache *regs, hooks/post-receive -- Repository for Project Archer.
next reply other threads:[~2011-03-08 8:16 UTC|newest] Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-03-08 8:16 jkratoch [this message] -- strict thread matches above, loose matches on Subject: below -- 2011-09-02 18:41 kseitz 2011-08-08 14:41 gary 2011-05-12 8:04 jkratoch 2011-05-11 20:42 jkratoch 2011-05-11 17:20 jkratoch 2011-05-09 15:58 jkratoch 2011-05-05 15:23 jkratoch 2011-05-04 20:47 muller 2011-05-01 15:49 jkratoch 2011-04-30 14:57 jkratoch 2011-04-25 19:24 jkratoch 2011-04-24 16:32 jkratoch 2011-04-16 21:05 jkratoch 2011-04-16 17:04 jkratoch 2011-04-11 13:53 jkratoch 2011-04-11 12:13 muller 2011-04-08 6:48 muller 2011-04-07 22:52 muller 2011-04-07 22:32 muller 2011-03-30 13:34 muller 2011-03-28 16:11 jkratoch 2011-03-20 12:45 jkratoch 2011-03-19 8:35 jkratoch 2011-03-17 15:12 jkratoch 2011-03-16 9:39 pmuldoon 2011-03-16 7:11 jkratoch 2011-03-15 20:19 jkratoch 2011-03-14 16:49 pmuldoon 2011-03-13 19:23 pmuldoon 2011-03-09 22:49 jkratoch 2011-03-09 10:57 muller 2011-03-07 8:47 pmuldoon 2011-03-05 7:15 jkratoch 2011-02-25 10:51 muller 2011-02-24 10:06 muller 2011-02-24 1:29 jkratoch 2011-02-22 22:54 jkratoch 2011-02-21 21:35 muller 2011-02-21 10:54 pmuldoon 2011-02-19 20:17 jkratoch 2011-02-17 22:03 jkratoch 2011-02-16 22:30 jkratoch 2011-02-13 17:49 jkratoch 2011-02-06 19:15 jkratoch
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20110308081629.14313.qmail@sourceware.org \ --to=jkratoch@sourceware.org \ --cc=archer-commits@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).