This is the mail archive of the archer-commits@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[SCM] archer-pmuldoon-python-breakpoints: Merge branch 'master' into archer-pmuldoon-python-breakpoints


The branch, archer-pmuldoon-python-breakpoints has been updated
       via  81d36efbe8718d9008bf4b1ea05838ff371c849e (commit)
       via  eda758390ec0bfb07d0bef4d1908d1d98ad75eb9 (commit)
       via  9862d4c58573fd4246b37695c67dc2c5b8193ec5 (commit)
       via  2e53e44e0cb91ff00728269ad125a3418605ee62 (commit)
       via  ab6369b0d22d96562d1f15b9755485f31d3a9222 (commit)
       via  d19a50e0bcc1bf4316e0df63d5f2ca1c2ea97c46 (commit)
       via  d14b65ef095e070c19a028facf85c4db75c4b667 (commit)
       via  029fb512f2fd983b7084a7278d2b1a3ff35c054e (commit)
       via  142db50201b1b1c69ebdc2dcdb1181cde1db3b08 (commit)
       via  7403e6b3f0f7d4c4f80703486f602ee5e2c9a3dd (commit)
       via  ced522c57802f46649858b0806fa92ff1707388a (commit)
       via  7c12a511f3c4438048a30e6349422c48a4d805a1 (commit)
       via  c605b1f257af096a6c70d339d4eac095da31d466 (commit)
       via  09754d64667f5ec959f76ca7db3de7a4e8446bd4 (commit)
       via  f9bde0f4211bd630d4d0aa196b1cb7f59679e9c6 (commit)
       via  21d4b6aaf60b144cccbd4be1d90f739f1e7c1491 (commit)
       via  727034a49af27bfc02ad16fff45dd246780da779 (commit)
       via  74b5d5fa3979c6484694cecc2110ec241362a80d (commit)
       via  63fad560276d7cf2d64b9b39d92d91d888f6d9b7 (commit)
       via  dd42de82161332ffe79d44f74c951f4c2b8988e6 (commit)
       via  3235fb4a49d2ca8b7bb8e87766c75464ef9f60e1 (commit)
       via  9e77697f31fb2d3c177875a37b441fef46f02fe1 (commit)
       via  137ec8749ab129f4e1986f4f7cd22094705f20da (commit)
       via  c6d83c5f92852cbc86baf79e4d0a400de5cafad7 (commit)
       via  91abe80f701d38f24eb9fb4118bd842c315605f9 (commit)
       via  ad726b2e37bf67fc1545b496310c62dab216fa86 (commit)
       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  30a9c263e61fa56df113230d5ef06775edc38e85 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 81d36efbe8718d9008bf4b1ea05838ff371c849e
Merge: 30a9c26 eda7583
Author: Phil Muldoon <pmuldoon@redhat.com>
Date:   Thu Mar 10 15:11:00 2011 +0000

    Merge branch 'master' into archer-pmuldoon-python-breakpoints

-----------------------------------------------------------------------

Summary of changes:
 bfd/version.h                                      |    2 +-
 gdb/ChangeLog                                      |  264 ++
 gdb/Makefile.in                                    |   28 +-
 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/cli/cli-cmds.c                                 |    7 +-
 gdb/coffread.c                                     |   16 +-
 gdb/common/Makefile.in                             |  115 -
 gdb/common/configure                               | 4115 --------------------
 gdb/common/configure.ac                            |   74 -
 gdb/configure                                      |    3 -
 gdb/configure.ac                                   |    1 -
 gdb/dbxread.c                                      |    1 +
 gdb/dwarf2loc.c                                    |    1 +
 gdb/dwarf2read.c                                   |    1 -
 gdb/elfread.c                                      |   56 +-
 gdb/fbsd-nat.c                                     |    2 +-
 gdb/frame.c                                        |    8 +
 gdb/frame.h                                        |    3 +
 gdb/gdbserver/ChangeLog                            |   24 +
 gdb/gdbserver/Makefile.in                          |   61 +-
 gdb/gdbserver/configure                            |   93 -
 gdb/gdbserver/configure.ac                         |    1 -
 gdb/gdbserver/remote-utils.c                       |    2 +-
 gdb/gdbserver/tracepoint.c                         |    2 +-
 gdb/i386-tdep.c                                    |   62 +-
 gdb/inferior.c                                     |   14 +-
 gdb/infrun.c                                       |   17 +-
 gdb/linux-fork.c                                   |    9 +-
 gdb/linux-nat.c                                    |    2 +-
 gdb/machoread.c                                    |    1 +
 gdb/main.c                                         |   13 +-
 gdb/mi/mi-cmd-disas.c                              |    4 +
 gdb/mi/mi-cmd-env.c                                |    1 +
 gdb/minsyms.c                                      |    7 +-
 gdb/mipsread.c                                     |    1 +
 gdb/nto-tdep.c                                     |   11 +-
 gdb/objc-lang.c                                    |   10 +-
 gdb/objfiles.c                                     |    9 +-
 gdb/objfiles.h                                     |    5 +
 gdb/procfs.c                                       |    2 +-
 gdb/psympriv.h                                     |    6 -
 gdb/psymtab.c                                      |   88 +-
 gdb/psymtab.h                                      |    8 +
 gdb/record.c                                       |    4 +-
 gdb/remote-m32r-sdi.c                              |   10 +-
 gdb/remote.c                                       |   11 +-
 gdb/ser-unix.c                                     |    5 +-
 gdb/somread.c                                      |    1 +
 gdb/symfile.c                                      |   26 +-
 gdb/symfile.h                                      |   13 +-
 gdb/target.c                                       |   66 +-
 gdb/target.h                                       |   14 +-
 gdb/testsuite/ChangeLog                            |  109 +
 gdb/testsuite/Makefile.in                          |    4 +
 gdb/testsuite/gdb.ada/catch_ex.exp                 |    2 +-
 gdb/testsuite/gdb.ada/tasks.exp                    |    5 +-
 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      |    2 +-
 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/memattr.exp                 |   80 +-
 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                   |    8 +-
 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.server/ext-run.exp               |    5 +
 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                          |   52 +-
 gdb/testsuite/lib/mi-support.exp                   |    3 +-
 gdb/testsuite/lib/opencl.exp                       |    5 +-
 gdb/thread.c                                       |   16 +-
 gdb/tui/tui-io.c                                   |   22 +-
 gdb/version.in                                     |    2 +-
 gdb/xcoffread.c                                    |    1 +
 gdb/xtensa-tdep.c                                  |  552 +++-
 gdb/xtensa-tdep.h                                  |    2 +-
 109 files changed, 1572 insertions(+), 4961 deletions(-)
 delete mode 100644 gdb/common/Makefile.in
 delete mode 100755 gdb/common/configure
 delete mode 100644 gdb/common/configure.ac

First 500 lines of diff:
diff --git a/bfd/version.h b/bfd/version.h
index 6765a93..fa3bbd0 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20110307
+#define BFD_VERSION_DATE 20110309
 #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..c6472e8 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,267 @@
+2011-03-09  Michael Snyder  <msnyder@vmware.com>
+
+	* mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
+
+2011-03-09  Pedro Alves  <pedro@codesourcery.com>
+
+	* nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
+
+2011-03-09  Tom Tromey  <tromey@redhat.com>
+
+	* thread.c (restore_selected_frame): Handle frame_level == -1.
+	(make_cleanup_restore_current_thread): Use
+	get_selected_frame_if_set.
+	* frame.h (get_selected_frame_if_set): Declare.
+	* frame.c (get_selected_frame_if_set): New function.
+
+2011-03-09  Pedro Alves  <pedro@codesourcery.com>
+
+	* cli/cli-cmds.c (shell_escape): Use lbasename.
+	* coffread.c (coff_start_symtab): Constify parameter.
+	(complete_symtab): Constify `name' parameter.
+	(coff_symtab_read): Constify `filestring' local.
+	(coff_getfilename): Constify return and `result' local.
+	Use lbasename.
+	* fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
+	* linux-fork.c (info_checkpoints_command): Use lbasename.
+	* linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
+	* minsyms.c (lookup_minimal_symbol): Use lbasename.
+	* nto-tdep.c (nto_find_and_open_solib): Use lbasename.
+	* procfs.c (procfs_make_note_section): Use lbasename.
+	* tui/tui-io.c (printable_part): Constity return and parameter.
+	Use lbasename.
+	(print_filename): Constify parameters, and local `s'.
+	(tui_rl_display_match_list): Constify local `temp'.
+
+2011-03-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	Revert:
+	2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
+	Fix DWARF-3+ DW_AT_accessibility default assumption.
+	* dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
+	cu->header.version >= 3.
+
+2011-03-09  Yao Qi  <yao@codesourcery.com>
+
+	* common/Makefile.in: Remove.
+	* common/configure: Remove.
+	* common/configure.ac: Remove.
+
+2011-03-09  Yao Qi  <yao@codesourcery.com>
+
+	Revert:
+	2011-02-11  Yao Qi  <yao@codesourcery.com>
+
+	* common/Makefile.in: Add copyright header.
+
+	2011-02-11  Yao Qi  <yao@codesourcery.com>
+
+	* Makefile.in: Remove signals.o from COMMON_OBS.  Link
+	libcommon.a.
+	* configure.ac: Add common to sub dir.
+	* configure: Regenerate.
+
+2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
+
+	* xtensa-tdep.c (call0_ret): New function.
+	(xtensa_skip_prologue): Speed up analysis.
+
+2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
+
+	* xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
+	while executing MI command -data-list-changed-registers.
+
+2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
+
+	* xtensa-tdep.c (xtensa_read_register): New function.
+	(xtensa_write_register): New function.
+	(xtensa_find_register_by_name): New function.
+	(xtensa_windowed_frame_cache): Update comments in type description.
+	(xtensa_frame_cache): Likewise.
+	(xtensa_window_interrupt_insn): New function.
+	(xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
+	(xtensa_insn_kind): Add new instructions.
+	(rwx_special_register): New function.
+	(call0_classify_opcode): Add new instructions to the analysis.
+	(a0_saved, a7_saved, a11_saved): New variables.
+	(a0_was_saved, a7_was_saved, a11_was_saved): New variables.
+	(execute_l32e): New function.
+	(execute_s32e): New function.
+	(xtensa_exception_handler_t): New type.
+	(execute_code): New function.
+	(xtensa_window_interrupt_frame_cache): New function to conduct frame
+	analysis for Xtensa Window Exception handlers.
+
+2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
+
+	* xtensa-tdep.c (TX_PS): New.
+	(windowing_enabled): Update to count for Call0 ABI.
+	(xtensa_hextochar): New.
+	(xtensa_init_reggroups): Make algorithm generic.
+	(xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
+
+2011-03-08  Maxim Grigoriev  <maxim2405@gmail.com>
+
+	* xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
+
+2011-03-08  Michael Snyder  <msnyder@vmware.com>
+
+	* i386-tdep.c (i386_follow_jump): Check return value of
+	target_read_memory.
+	(i386_analyze_struct_return): Ditto.
+	(i386_skip_probe): Ditto.
+	(i386_match_insn): Ditto.
+	(i386_skip_noop): Ditto.
+	(i386_analyze_frame_setup): Ditto.
+	(i386_analyze_register_saves): Ditto.
+	(i386_skip_prologue): Ditto.
+	(i386_skip_main_prologue): Ditto.
+
+	* target.c (read_whatever_is_readable): Fix memory leak.
+
+	* i386-tdep.c (i386_process_record): Document fall through.
+
+2011-03-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	Fix DWARF-3+ DW_AT_accessibility default assumption.
+	* dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
+	cu->header.version >= 3.
+
+2011-03-08  Pedro Alves  <pedro@codesourcery.com>
+
+	* remote.c (remote_check_symbols): Skip if the target has no
+	execution.
+
+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-07  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..489b1e9 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -88,8 +88,6 @@ DEPMODE = @CCDEPMODE@
 DEPDIR = @DEPDIR@
 depcomp = $(SHELL) $(srcdir)/../depcomp
 
-PWD_COMMAND = $${PWDCMD-pwd}
-
 # Note that these are overridden by GNU make-specific code below if
 # GNU make is used.  The overrides implement dependency tracking.
 COMPILE.pre = $(CC)
@@ -142,10 +140,6 @@ LIBDECNUMBER = $(LIBDECNUMBER_DIR)/libdecnumber.a
 LIBDECNUMBER_SRC = $(srcdir)/$(LIBDECNUMBER_DIR)
 LIBDECNUMBER_CFLAGS = -I$(LIBDECNUMBER_DIR) -I$(LIBDECNUMBER_SRC)
 
-LIBCOMMON_DIR = common
-LIBCOMMON = $(LIBCOMMON_DIR)/libcommon.a
-LIBCOMMON_SRC = $(srcdir)/$(LIBCOMMON_DIR)
-
 # Where is the READLINE library?  Typically in ../readline.
 READLINE_DIR = ../readline
 READLINE_SRC = $(srcdir)/$(READLINE_DIR)
@@ -473,10 +467,9 @@ INTERNAL_LDFLAGS = $(CFLAGS) $(GLOBAL_CFLAGS) $(MH_LDFLAGS) $(LDFLAGS) $(CONFIG_
 CLIBS = $(SIM) $(READLINE) $(OPCODES) $(BFD) $(INTL) $(LIBIBERTY) $(LIBDECNUMBER) \
 	$(XM_CLIBS) $(NAT_CLIBS) $(GDBTKLIBS) @LIBS@ @PYTHON_LIBS@ \
 	$(LIBEXPAT) \
-	$(LIBIBERTY) $(WIN32LIBS) $(LIBGNU) $(LIBCOMMON)
+	$(LIBIBERTY) $(WIN32LIBS) $(LIBGNU)
 CDEPS = $(XM_CDEPS) $(NAT_CDEPS) $(SIM) $(BFD) $(READLINE_DEPS) \
-	$(OPCODES) $(INTL_DEPS) $(LIBIBERTY) $(CONFIG_DEPS) $(LIBGNU) \
-        $(LIBCOMMON)
+	$(OPCODES) $(INTL_DEPS) $(LIBIBERTY) $(CONFIG_DEPS) $(LIBGNU)
 
 ADD_FILES = $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES)
 ADD_DEPS = $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES)
@@ -861,6 +854,7 @@ COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \
 	memattr.o mem-break.o target.o parse.o language.o buildsym.o \
 	findcmd.o \
 	std-regs.o \
+	signals.o \
 	exec.o reverse.o \
 	bcache.o objfiles.o observer.o minsyms.o maint.o demangle.o \
 	dbxread.o coffread.o coff-pe-read.o \
@@ -903,7 +897,7 @@ CLEANDIRS = $(SUBDIRS) gnulib
 # This is used to force build failures in existing trees when
 # a new directory is added.
 # The format here is for the `case' shell command.
-REQUIRED_SUBDIRS = doc | testsuite | gnulib | data-directory | common
+REQUIRED_SUBDIRS = doc | testsuite | gnulib | data-directory
 
 # For now, shortcut the "configure GDB for fewer languages" stuff.
 YYFILES = c-exp.c \
@@ -1170,10 +1164,6 @@ all-lib: gnulib/Makefile
 	@$(MAKE) $(FLAGS_TO_PASS) DO=all DODIRS=gnulib subdir_do
 .PHONY: all-lib
 
-# 
-$(LIBCOMMON): $(LIBCOMMON_DIR)/Makefile
-	@$(MAKE) $(FLAGS_TO_PASS) DO=all DODIRS=common subdir_do
-
 # Convenience rule to handle recursion.
 .PHONY: all-data-directory
 all-data-directory: data-directory/Makefile
@@ -1330,7 +1320,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 \
@@ -1913,6 +1902,15 @@ mi-common.o: $(srcdir)/mi/mi-common.c
 	$(COMPILE) $(srcdir)/mi/mi-common.c
 	$(POSTCOMPILE)
 
+# gdb/common/ dependencies
+#
+# Need to explicitly specify the compile rule as make will do nothing
+# or try to compile the object file into the sub-directory.
+
+signals.o: $(srcdir)/common/signals.c
+	$(COMPILE) $(srcdir)/common/signals.c
+	$(POSTCOMPILE)
+
 #
 # gdb/tui/ dependencies
 #
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.  */


hooks/post-receive
--
Repository for Project Archer.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]