public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
From: jkratoch@sourceware.org
To: archer-commits@sourceware.org
Subject: [SCM]  archer-jankratochvil-watchpoint3: Merge branch 'f-cleanup-fork-multifix' into archer-jankratochvil-watchpoint3
Date: Mon, 30 Jan 2012 16:58:00 -0000	[thread overview]
Message-ID: <20120130165841.24093.qmail@sourceware.org> (raw)

The branch, archer-jankratochvil-watchpoint3 has been updated
       via  34f233a27f4c5d6e91c54eae496174bf38a13108 (commit)
       via  fb50be371cd4b87d0eefdc50d0b6df78630ecd25 (commit)
       via  329d1908c717b0a7894f789f2948c46f659d6f9a (commit)
       via  026d4ecc54b517e40e3069e4e06a3c5d9a68b8cf (commit)
       via  1ed984854142d2f3818003f1161d462e55150729 (commit)
       via  412372917d53d4f3ebfa0c4ac018e2f8277f3685 (commit)
       via  076b1d71ac16e305d01401ef4673396494b13e05 (commit)
       via  e2be17a4c473430c4e2302a77dd5b1a92db36d8f (commit)
       via  99f113ff5b11cf246c26786763f9490a0878f5a7 (commit)
       via  e6f058ed796923b320e1d42a5de22bc1de487f5d (commit)
       via  31dea735962bd80e5833724437ee955f3d481b34 (commit)
       via  dd400555f7c883a26fb5e1c913cd1e23154b2455 (commit)
       via  8465d0d71a4e0bdbd49fc2296d2e92cb1ecc2a2c (commit)
       via  6cea5d88f6196bb8ba383f12e3030c7cd8d6877b (commit)
       via  0708ebd80509c20345fdc9bc298c0b533e4b6a2e (commit)
       via  08da960a5136e12b5573560ab0f2e62a4026f8d9 (commit)
       via  4e689d94a21ff6c83c22721a19c1d685eb44c6e3 (commit)
       via  71a04ea59ac04013447eabf5855483fa124531fe (commit)
       via  a7a67b88a024c25a205c087972ba722f8e3f8d02 (commit)
       via  b0bf37d71a4011f968e1dc04cc686ccefe22cfd0 (commit)
       via  771cd540cc4721040859984e27529c7ab5141b06 (commit)
       via  cfcedca708a8d6f091a1a400f1406f42c2cfe3f8 (commit)
       via  01e5af691aa847b8e6b853df7f9c9645bac51397 (commit)
       via  110fe2deb915fd1f762d2bfda972b4604c9c4c81 (commit)
       via  e60ba65060c309301f2ef4778e34bc0f8c2a0820 (commit)
       via  d1b2bee5000560fc041c417154ae1bd191c87407 (commit)
       via  21a6d7afd48a5f51a1678c932e43813d8ebe9a45 (commit)
       via  3942fcb1003d1ce3f3eae417582e9b24cada6d37 (commit)
       via  cf14fc79d83e7cb42b5c7682e0894dbc8bd27eb0 (commit)
       via  62ab2c58e1b3e58276f066447778d756f7558f9d (commit)
       via  06445993974c0281e92e2c308afcc6fb3da988eb (commit)
       via  4acfdb244dd842436b4a39273eeffa192a301224 (commit)
       via  6edacbcdf68ffd77495496e4b222e273fa24bcbd (commit)
       via  67c29b3c71dde294f27a4b1f08e5a3c3f538272c (commit)
       via  653f8dce354d750135d2eeddd70d9a45141407ff (commit)
       via  c2b50820e445b5ba1315899f8ac929b214769aa8 (commit)
       via  1631be601fd08553b087c77e7ca0fb0bfbb22666 (commit)
       via  8f01ee478b8a66f11754c2331dcd84adf7ba0928 (commit)
       via  f6f8515fb708026463c84749424096a9b45a38c7 (commit)
       via  edd5dfe523dbbfe252d8386e29092983d4ef3b9c (commit)
       via  facd11c8873e61e8f8834b6268b6b94608e54f44 (commit)
       via  4ddccbc58b822b0c35f0f46891a2d276d095ec2a (commit)
       via  8eb4602788d1c0b3da11b9383492a7cdb5657f9d (commit)
       via  0ada00d6182dce5160f8893a842f1ce6c8c96569 (commit)
       via  0d5b49f34332c76234f7bcbc64fa67fe6872ad54 (commit)
       via  4c6c0519ab462f6f69c2942e1857cb42a7d80066 (commit)
       via  01f83aeea8f8b58b54eb7e1acaf2f056d4b14f07 (commit)
       via  74ce40a2187959252051f46f9988f1dbec6d6393 (commit)
       via  eb317823c809dd8781672e9d34d5eb663d65153d (commit)
       via  98b6395f8ed8a558c9e8b8d261680d0a95dc6010 (commit)
       via  098e388b18b0d6e75e916f68f875d8ab4073ef59 (commit)
       via  23be81b20039c057ad0af30082f6f8a16a7643e9 (commit)
       via  a2127f5b008cc30a6949ac111fb460c1e91650b3 (commit)
       via  011ad04db6bd4938623a2d3fb1ec95d360db4387 (commit)
       via  59d922bc748faf76b7f7477953ae34fe7d043e11 (commit)
       via  5eb09c030ab6d18adeea75261b148ed325c51cc0 (commit)
       via  ee3529349cce157cbef4833203fd0912a89e9d73 (commit)
       via  711a646b7940a7b7cc49c31a5a267b0e2371938f (commit)
       via  55ebf19b5083ffb66350d1111b18bbdc745187fe (commit)
       via  9aac6fcf549f3f5779287df68d4344c1cc0cd352 (commit)
      from  0d1f36cdfdab40bbb8ba6de77c33b4c31e2fbd4c (commit)

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

- Log -----------------------------------------------------------------
commit 34f233a27f4c5d6e91c54eae496174bf38a13108
Merge: 0d1f36c fb50be3
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Jan 30 17:58:23 2012 +0100

    Merge branch 'f-cleanup-fork-multifix' into archer-jankratochvil-watchpoint3

commit fb50be371cd4b87d0eefdc50d0b6df78630ecd25
Merge: 1ed9848 329d190
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Jan 30 17:56:45 2012 +0100

    Merge branch 'f-cleanup-fork' into f-cleanup-fork-multifix

commit 329d1908c717b0a7894f789f2948c46f659d6f9a
Merge: 75412c4 026d4ec
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Jan 30 17:56:44 2012 +0100

    Merge branch 'f-cleanup' into f-cleanup-fork

commit 026d4ecc54b517e40e3069e4e06a3c5d9a68b8cf
Merge: 2b1a2b7 4123729
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Jan 30 17:56:44 2012 +0100

    Merge branch 'f' into f-cleanup

commit 1ed984854142d2f3818003f1161d462e55150729
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Jan 30 17:55:44 2012 +0100

    .

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

Summary of changes:
 bfd/ChangeLog                                      |    5 +
 bfd/elf32-microblaze.c                             |    3 +-
 bfd/version.h                                      |    2 +-
 gdb/ChangeLog                                      |  239 +++++++++
 gdb/NEWS                                           |    8 +
 gdb/ada-lang.c                                     |   20 +-
 gdb/arch-utils.c                                   |    2 +-
 gdb/arm-tdep.c                                     |    6 +-
 gdb/breakpoint.c                                   |  539 +++++++++++++++++---
 gdb/breakpoint.h                                   |   19 +-
 gdb/c-lang.c                                       |    8 +-
 gdb/charset.c                                      |    3 +-
 gdb/cli/cli-cmds.c                                 |   13 +-
 gdb/cli/cli-decode.c                               |    4 +-
 gdb/cli/cli-decode.h                               |    2 +-
 gdb/cli/cli-script.c                               |    4 +-
 gdb/command.h                                      |    4 +-
 gdb/configure                                      |    2 +-
 gdb/configure.ac                                   |    2 +-
 gdb/corelow.c                                      |   21 +-
 gdb/cris-tdep.c                                    |    2 +-
 gdb/d-lang.c                                       |    2 +-
 gdb/doc/ChangeLog                                  |   16 +
 gdb/doc/gdb.texinfo                                |   43 +-
 gdb/dwarf2read.c                                   |    5 +-
 gdb/f-lang.c                                       |    2 +-
 gdb/filesystem.c                                   |    2 +-
 gdb/gdb_vecs.h                                     |   28 +
 gdb/gdbserver/ChangeLog                            |   18 +
 gdb/gdbserver/linux-low.c                          |   49 +--
 gdb/gdbserver/linux-low.h                          |    3 +-
 gdb/gdbserver/linux-x86-low.c                      |    5 +-
 gdb/i386-tdep.c                                    |    4 +-
 gdb/infrun.c                                       |  148 ++----
 gdb/jv-lang.c                                      |    2 +-
 gdb/language.c                                     |   10 +-
 gdb/language.h                                     |   29 +-
 gdb/linespec.c                                     |   27 +-
 gdb/m2-lang.c                                      |    2 +-
 gdb/mips-tdep.c                                    |    2 +-
 gdb/objc-lang.c                                    |    2 +-
 gdb/opencl-lang.c                                  |    2 +-
 gdb/p-lang.c                                       |    2 +-
 gdb/progspace.c                                    |   17 +
 gdb/progspace.h                                    |   17 +
 gdb/psympriv.h                                     |   13 +-
 gdb/psymtab.c                                      |   24 +-
 gdb/psymtab.h                                      |    3 +-
 gdb/python/py-auto-load.c                          |    4 +-
 gdb/python/python-internal.h                       |    4 +-
 gdb/python/python.c                                |   66 ++--
 gdb/python/python.h                                |    2 +-
 gdb/remote.c                                       |  113 +++--
 gdb/rs6000-tdep.c                                  |    2 +-
 gdb/serial.c                                       |    2 +-
 gdb/sh-tdep.c                                      |    2 +-
 gdb/solib.c                                        |    4 +
 gdb/stack.c                                        |   91 +----
 gdb/symfile.h                                      |   10 +-
 gdb/symtab.c                                       |   43 ++-
 gdb/testsuite/ChangeLog                            |  114 ++++
 gdb/testsuite/boards/native-extended-gdbserver.exp |  150 ++++++
 gdb/testsuite/config/extended-gdbserver.exp        |   27 +
 gdb/testsuite/gdb.base/break-interp.exp            |    2 +-
 gdb/testsuite/gdb.base/catch-load-so.c             |   22 +
 gdb/testsuite/gdb.base/catch-load.c                |   35 ++
 gdb/testsuite/gdb.base/catch-load.exp              |  120 +++++
 gdb/testsuite/gdb.base/default.exp                 |    2 -
 gdb/testsuite/gdb.base/gdb_history                 |    1 -
 gdb/testsuite/gdb.base/help.exp                    |    2 -
 gdb/testsuite/gdb.base/solib-disc.exp              |    4 +-
 gdb/testsuite/gdb.base/valgrind-db-attach.exp      |    2 +-
 gdb/testsuite/gdb.base/watchpoint.exp              |  486 ++++++++----------
 gdb/testsuite/gdb.mi/var-cmd.c                     |    6 +-
 gdb/testsuite/gdb.multi/watchpoint-multi.exp       |   24 +-
 gdb/testsuite/lib/gdbserver-support.exp            |   33 ++-
 gdb/testsuite/lib/mi-support.exp                   |    2 +
 gdb/tracepoint.h                                   |    3 +-
 gdb/tui/tui-win.c                                  |    4 +-
 gdb/utils.c                                        |    2 +-
 gdb/version.in                                     |    2 +-
 include/ChangeLog                                  |    5 +
 include/dwarf2.h                                   |   13 +-
 libiberty/ChangeLog                                |    5 +
 libiberty/make-relative-prefix.c                   |    7 +-
 opcodes/ChangeLog                                  |    5 +
 opcodes/rl78-decode.opc                            |    5 +
 87 files changed, 1947 insertions(+), 864 deletions(-)
 create mode 100644 gdb/gdb_vecs.h
 create mode 100644 gdb/testsuite/boards/native-extended-gdbserver.exp
 create mode 100644 gdb/testsuite/config/extended-gdbserver.exp
 create mode 100644 gdb/testsuite/gdb.base/catch-load-so.c
 create mode 100644 gdb/testsuite/gdb.base/catch-load.c
 create mode 100644 gdb/testsuite/gdb.base/catch-load.exp

First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 23c33a1..6fc3466 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2012-01-27  Michael Eager  <eager@eagercon.com>
+
+	* bfd/elf32-microblaze.c (create_got_section):
+	Reuse existing .rela.got section.
+
 2012-01-23  Alan Modra  <amodra@gmail.com>
 
 	* elf-bfd.h: Formatting.
diff --git a/bfd/elf32-microblaze.c b/bfd/elf32-microblaze.c
index b180dc4..a58f7b3 100644
--- a/bfd/elf32-microblaze.c
+++ b/bfd/elf32-microblaze.c
@@ -1880,7 +1880,8 @@ create_got_section (bfd *dynobj, struct bfd_link_info *info)
   if (!htab->sgot || !htab->sgotplt)
     return FALSE;
 
-  htab->srelgot = bfd_make_section (dynobj, ".rela.got");
+  if (!(htab->srelgot = bfd_get_section_by_name (dynobj, ".rela.got")))
+    htab->srelgot = bfd_make_section (dynobj, ".rela.got");
   if (htab->srelgot == NULL
       || ! bfd_set_section_flags (dynobj, htab->srelgot, SEC_ALLOC
                                   | SEC_LOAD
diff --git a/bfd/version.h b/bfd/version.h
index 82b9845..2edff00 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20120124
+#define BFD_VERSION_DATE 20120130
 #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 bc1ea09..4bc591f 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,242 @@
+2012-01-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	Code cleanup: Make 1440 bytes of data segment read-only.
+	* arch-utils.c (endian_enum): Make it const char *const [].
+	* arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
+	Likewise.
+	* breakpoint.c (always_inserted_enums): Likewise.
+	* cli/cli-cmds.c (script_ext_enums): Likewise.
+	* cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
+	enumlist parameter const char *const *.
+	* cli/cli-decode.h (struct cmd_list_element): Make the enums field
+	const char *const *.
+	* command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
+	parameter const char *const *.
+	* cris-tdep.c (cris_modes): Make it const char *const [].
+	* filesystem.c (target_file_system_kinds): Likewise.
+	* i386-tdep.c (valid_flavors, valid_conventions): Likewise.
+	* infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
+	(can_use_displaced_stepping_enum, scheduler_enums)
+	(exec_direction_names): Likewise.
+	* language.c (_initialize_language): Make the type_or_range_names and
+	case_sensitive_names variables const char *const [].
+	* mips-tdep.c (mips_abi_strings): Make it const char *const [].
+	* python/python.c (python_excp_enums): Likewise.
+	* remote.c (interrupt_sequence_modes): Likewise.
+	* rs6000-tdep.c (powerpc_vector_strings): Likewise.
+	* serial.c (logbase_enums): Likewise.
+	* sh-tdep.c (sh_cc_enum): Likewise.
+	* stack.c (print_frame_arguments_choices, print_entry_values_choices):
+	Likewise.
+	* symtab.c (multiple_symbols_modes): Likewise.
+	* tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
+	Likewise.
+	* utils.c (internal_problem_modes): Likewise.
+
+2012-01-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
+	* linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
+	result.
+
+2012-01-27  Doug Evans  <dje@google.com>
+
+	* configure.ac (with_python): Fix absolute path handling for win32.
+	* configure: Regenerate.
+
+2012-01-26  Doug Evans  <dje@google.com>
+
+	* symtab.c: Whitespace cleanup, no code changes.
+
+	* symtab.c (lookup_symbol_in_language): Improve comment.
+	(lookup_symbol_aux): Fix comment.
+
+	* psymtab.c (add_psymbol_to_list): Result is now "void".
+	* psympriv.h (add_psymbol_to_list): Update.
+
+	* dwarf2read.c (add_partial_symbol): Delete local psym, unused.
+
+2012-01-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	Do not open script filenames twice.
+	* cli/cli-cmds.c (source_script_from_stream): Pass to
+	source_python_script also STREAM.
+	* python/py-auto-load.c (source_section_scripts): Pass to
+	source_python_script_for_objfile also STREAM.
+	(auto_load_objfile_script): Pass to source_python_script_for_objfile
+	also INPUT.
+	* python/python-internal.h (source_python_script_for_objfile): New
+	parameter file, rename parameter file to filename.
+	* python/python.c (python_run_simple_file): Call PyRun_SimpleFile
+	instead if !_WIN32.  Update the function comment.
+	(source_python_script, source_python_script_for_objfile)
+	(source_python_script): New parameter file, rename parameter file to
+	filename.  Pass FILENAME to python_run_simple_file.
+	* python/python.h (source_python_script): New parameter file, rename
+	parameter file to filename.
+
+2012-01-26  Pedro Alves  <palves@redhat.com>
+
+	* corelow.c (core_has_fake_pid): Delete.
+	(core_close): Delete references to `core_has_fake_pid'.
+	(add_to_thread_list): Adjust to mark the inferior's pid as fake.
+	(core_open): Delete references to `core_has_fake_pid'.
+	(core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
+	the removed global.
+
+2012-01-26  Joel Brobecker  <brobecker@adacore.com>
+
+	* symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
+	Remove language parameter from name_matcher.  Adjust the comment.
+	* symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
+	Remove language parameter.
+	* ada-lang.c (ada_expand_partial_symbol_name): Likewise.
+	* linespec.c (iterate_name_matcher): Likewise.
+	* dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
+	name_matcher.  Adjust call accordingly.
+	* psymtab.c (expand_symtabs_matching_via_partial): Likewise.
+	(maintenance_check_symtabs): Adjust type of parameter "fun".
+	* psymtab.h (maintenance_check_symtabs): Likewise.
+
+2012-01-26  Joel Brobecker  <brobecker@adacore.com>
+
+	* language.h (symbol_name_match_p_ftype): New typedef.
+	(struct language_defn): Replace field la_symbol_name_compare
+	by la_get_symbol_name_match_p.
+	* ada-lang.c (ada_get_symbol_name_match_p): New function.
+	(ada_language_defn): Use it.
+	* linespec.c (struct symbol_matcher_data): New type.
+	(iterate_name_matcher): Rewrite.
+	(iterate_over_all_matching_symtabs): Pass a pointer to
+	a symbol_matcher_data struct to expand_symtabs_matching
+	instead of just the lookup name.
+	* c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
+	opencl-lang.c, p-lang.c, language.c: Delete field
+	la_symbol_name_compare, and replace by NULL for new field
+	la_get_symbol_name_match_p.
+	* symfile.h (struct quick_symbol_functions): Update comment.
+
+2012-01-25  Tom Tromey  <tromey@redhat.com>
+
+	* breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
+	dereferencing.
+
+2012-01-24  Tom Tromey  <tromey@redhat.com>
+
+	PR symtab/12406:
+	* solib.c (update_solib_list): Update the program space's
+	added_solibs and deleted_solibs fields.
+	* progspace.h (struct program_space) <added_solibs,
+	deleted_solibs>: New fields.
+	(clear_program_space_solib_cache): Declare.
+	* progspace.c (release_program_space): Call
+	clear_program_space_solib_cache.
+	(clear_program_space_solib_cache): New function.
+	* infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
+	bpstat_stop_status.  Use handle_solib_event.
+	* breakpoint.c: Include gdb_regex.h.
+	(print_solib_event): New function.
+	(bpstat_print): Use print_solib_event.
+	(bpstat_stop_status): Add special case for bp_shlib_event.
+	(handle_solib_event): New function.
+	(bpstat_what): Use handle_solib_event.
+	(struct solib_catchpoint): New.
+	(dtor_catch_solib, insert_catch_solib, remove_catch_solib)
+	(breakpoint_hit_catch_solib, check_status_catch_solib)
+	(print_it_catch_solib, print_one_catch_solib)
+	(print_mention_catch_solib, print_recreate_catch_solib): New
+	functions.
+	(catch_solib_breakpoint_ops): New global.
+	(catch_load_or_unload, catch_load_command_1)
+	(catch_unload_command_1): New functions.
+	(internal_bkpt_check_status): Add special case for
+	bp_shlib_event.
+	(internal_bkpt_print_it): Use print_solib_event.
+	(initialize_breakpoint_ops): Initialize
+	catch_solib_breakpoint_ops.
+	(_initialize_breakpoint): Register "catch load" and "catch
+	unload".
+	* breakpoint.h (handle_solib_event): Declare.
+	* NEWS: Add entry for "catch load" and "catch unload".
+
+2012-01-24  Tom Tromey  <tromey@redhat.com>
+
+	* ada-lang.c: Include gdb_vecs.h.
+	* charset.c: Include gdb_vecs.h.
+	* tracepoint.h: Include gdb_vecs.h.
+	* gdb_vecs.h: New file.
+
+2012-01-24  Pedro Alves  <pedro@codesourcery.com>
+
+	* breakpoint.c (breakpoint_hit_catch_fork)
+	(breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
+	(breakpoint_hit_catch_exec): Make use of the `ws' argument.
+	* infrun.c (inferior_has_forked, inferior_has_vforked)
+	(inferior_has_execd, inferior_has_called_syscall): Delete.
+	(handle_syscall_event): Get syscall_number from the execution
+	control state's wait status.
+	(wait_for_inferior): Don't clear syscall_number.
+
+2012-01-24  Pedro Alves  <palves@redhat.com>
+
+	* breakpoint.c (bpstat_check_location, bpstat_stop_status,
+	pc_at_non_inline_function): Add `ws' parameter, and pass it down.
+	(breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
+	(breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
+	`ws' parameter.
+	(breakpoint_hit_ranged_breakpoint): Add `ws' parameter.  Return
+	false for events other than TARGET_SIGNAL_TRAP.
+	(breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
+	Add `ws' parameter.
+	(bkpt_breakpoint_hit): Add `ws' parameter.  Return false for
+	events other than TARGET_SIGNAL_TRAP.
+	(tracepoint_breakpoint_hit): Add `ws' parameter.
+	* breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
+	parameter.
+	(bpstat_stop_status): Same.
+	(pc_at_non_inline_function): Same.
+	* infrun.c (handle_syscall_event, handle_inferior_event): Adjust
+	to pass the current event's waitstatus to bpstat_stop_status
+	and pc_at_non_inline_function.
+
+2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	Code cleanup.
+	* cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
+	Update the function comment for it.
+	(source_script_with_search): Call make_cleanup_fclose for STREAM.
+	* cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
+	for STREAM.
+
+2012-01-24  Pedro Alves  <palves@redhat.com>
+
+	* breakpoint.c (bpstat_stop_status): Moving clearing print_it
+	outside `bs->stop' block.
+	(bpstat_what): Rework bp_shlib_event handling.
+	(internal_bkpt_check_status): If the breakpoint is a
+	bp_shlib_event, then set bs->stop and bs->print if
+	stop_on_solib_events is set.
+
+2012-01-24  Gary Benson  <gbenson@redhat.com>
+
+	Delete #if 0'd out code.
+	* stack.c (print_frame_label_vars): Remove.
+	(catch_info): Likewise.
+	(_initialize_stack): Remove "info catch" command.
+	* NEWS: Mention the above.
+
+2012-01-24  Pedro Alves  <palves@redhat.com>
+
+	* remote.c (remote_add_inferior): New `fake_pid_p' parameter.  Use
+	it.
+	(remote_notice_new_inferior): If the remote end doesn't support
+	the multiprocess extensions, then the PID is fake.
+	(add_current_inferior_and_thread): New.
+	(remote_start_remote): Use it.
+	(extended_remote_attach_1): Adjust.
+	(extended_remote_create_inferior_1): Use
+	add_current_inferior_and_thread.
+
 2012-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
 	Fix watchpoints to be specific for each inferior.
diff --git a/gdb/NEWS b/gdb/NEWS
index 128825e..4798b7b 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -31,6 +31,14 @@
 * The "info proc" and "generate-core-file" commands will now also
   work on remote targets connected to GDBserver on Linux.
 
+* The command "info catch" has been removed.  It has been disabled
+  since December 2007.
+
+* New commands
+
+  ** "catch load" and "catch unload" can be used to stop when a shared
+     library is loaded or unloaded, respectively.
+
 *** Changes in GDB 7.4
 
 * GDB now handles ambiguous linespecs more consistently; the existing
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 29956d7..55e318f 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -57,6 +57,7 @@
 #include "observer.h"
 #include "vec.h"
 #include "stack.h"
+#include "gdb_vecs.h"
 
 #include "psymtab.h"
 #include "value.h"
@@ -5628,8 +5629,6 @@ symbol_completion_match (const char *sym_name,
   return sym_name;
 }
 
-DEF_VEC_P (char_ptr);
-
 /* A companion function to ada_make_symbol_completion_list().
    Check if SYM_NAME represents a symbol which name would be suitable
    to complete TEXT (TEXT_LEN is the length of TEXT), in which case
@@ -5700,8 +5699,7 @@ struct add_partial_datum
 
 /* A callback for expand_partial_symbol_names.  */
 static int
-ada_expand_partial_symbol_name (const struct language_defn *language,
-				const char *name, void *user_data)
+ada_expand_partial_symbol_name (const char *name, void *user_data)
 {
   struct add_partial_datum *data = user_data;
   
@@ -12320,6 +12318,18 @@ static const struct exp_descriptor ada_exp_descriptor = {
   ada_evaluate_subexp
 };
 
+/* Implement the "la_get_symbol_name_match_p" language_defn method
+   for Ada.  */
+
+static symbol_name_match_p_ftype
+ada_get_symbol_name_match_p (const char *lookup_name)
+{
+  if (should_use_wild_match (lookup_name))
+    return wild_match;
+  else
+    return compare_names;
+}
+
 const struct language_defn ada_language_defn = {
   "ada",                        /* Language name */
   language_ada,
@@ -12356,7 +12366,7 @@ const struct language_defn ada_language_defn = {
   ada_print_array_index,
   default_pass_by_reference,
   c_get_string,
-  compare_names,
+  ada_get_symbol_name_match_p,	/* la_get_symbol_name_match_p */
   ada_iterate_over_symbols,
   LANG_MAGIC
 };
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c
index 45dccad..916a3ef 100644
--- a/gdb/arch-utils.c
+++ b/gdb/arch-utils.c
@@ -251,7 +251,7 @@ static int target_byte_order_user = BFD_ENDIAN_UNKNOWN;
 static const char endian_big[] = "big";
 static const char endian_little[] = "little";
 static const char endian_auto[] = "auto";
-static const char *endian_enum[] =
+static const char *const endian_enum[] =
 {
   endian_big,
   endian_little,
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 1820451..532abc2 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -97,7 +97,7 @@ static struct cmd_list_element *showarmcmdlist = NULL;
 
 /* The type of floating-point to use.  Keep this in sync with enum
    arm_float_model, and the help string in _initialize_arm_tdep.  */
-static const char *fp_model_strings[] =
+static const char *const fp_model_strings[] =
 {
   "auto",
   "softfpa",
@@ -112,7 +112,7 @@ static enum arm_float_model arm_fp_model = ARM_FLOAT_AUTO;
 static const char *current_fp_model = "auto";
 
 /* The ABI to use.  Keep this in sync with arm_abi_kind.  */
-static const char *arm_abi_strings[] =
+static const char *const arm_abi_strings[] =
 {
   "auto",
   "APCS",
@@ -125,7 +125,7 @@ static enum arm_abi_kind arm_abi_global = ARM_ABI_AUTO;
 static const char *arm_abi_string = "auto";
 
 /* The execution mode to assume.  */
-static const char *arm_mode_strings[] =
+static const char *const arm_mode_strings[] =
   {
     "auto",
     "arm",
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 573a49c..7d363b2 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -65,6 +65,7 @@
 #include "stack.h"
 #include "skip.h"
 #include "record.h"
+#include "gdb_regex.h"
 
 /* readline include files */
 #include "readline/readline.h"
@@ -259,6 +260,11 @@ static int is_masked_watchpoint (const struct breakpoint *b);
 
 static int strace_marker_p (struct breakpoint *b);
 
+static void init_catchpoint (struct breakpoint *b,
+			     struct gdbarch *gdbarch, int tempflag,
+			     char *cond_string,
+			     const struct breakpoint_ops *ops);
+
 /* The abstract base class all breakpoint_ops structures inherit
    from.  */
 static struct breakpoint_ops base_breakpoint_ops;
@@ -367,7 +373,7 @@ show_automatic_hardware_breakpoints (struct ui_file *file, int from_tty,
 static const char always_inserted_auto[] = "auto";
 static const char always_inserted_on[] = "on";
 static const char always_inserted_off[] = "off";
-static const char *always_inserted_enums[] = {
+static const char *const always_inserted_enums[] = {
   always_inserted_auto,
   always_inserted_off,
   always_inserted_on,
@@ -3490,6 +3496,78 @@ print_bp_stop_message (bpstat bs)
     }
 }
 
+/* A helper function that prints a shared library stopped event.  */
+
+static void
+print_solib_event (int is_catchpoint)
+{
+  int any_deleted
+    = !VEC_empty (char_ptr, current_program_space->deleted_solibs);
+  int any_added
+    = !VEC_empty (so_list_ptr, current_program_space->added_solibs);
+
+  if (!is_catchpoint)
+    {
+      if (any_added || any_deleted)
+	ui_out_text (current_uiout,
+		     _("Stopped due to shared library event:\n"));
+      else
+	ui_out_text (current_uiout,
+		     _("Stopped due to shared library event (no "
+		       "libraries added or removed)\n"));
+    }
+
+  if (ui_out_is_mi_like_p (current_uiout))
+    ui_out_field_string (current_uiout, "reason",
+			 async_reason_lookup (EXEC_ASYNC_SOLIB_EVENT));
+
+  if (any_deleted)
+    {
+      struct cleanup *cleanup;
+      char *name;
+      int ix;
+
+      ui_out_text (current_uiout, _("  Inferior unloaded "));
+      cleanup = make_cleanup_ui_out_list_begin_end (current_uiout,
+						    "removed");
+      for (ix = 0;
+	   VEC_iterate (char_ptr, current_program_space->deleted_solibs,
+			ix, name);
+	   ++ix)
+	{
+	  if (ix > 0)
+	    ui_out_text (current_uiout, "    ");
+	  ui_out_field_string (current_uiout, "library", name);
+	  ui_out_text (current_uiout, "\n");
+	}
+
+      do_cleanups (cleanup);
+    }
+
+  if (any_added)
+    {
+      struct so_list *iter;
+      int ix;
+      struct cleanup *cleanup;
+
+      ui_out_text (current_uiout, _("  Inferior loaded "));
+      cleanup = make_cleanup_ui_out_list_begin_end (current_uiout,
+						    "added");


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


             reply	other threads:[~2012-01-30 16:58 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-30 16:58 jkratoch [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-01-24 14:19 jkratoch
2012-01-20 20:16 jkratoch
2012-01-20 11:07 jkratoch
2012-01-20  1:30 jkratoch
2012-01-20  1:20 jkratoch
2012-01-05  9:18 jkratoch
2012-01-02 22:43 jkratoch
2012-01-02 16:46 jkratoch
2012-01-02 15:19 jkratoch
2011-12-26 23:24 jkratoch
2011-12-26 22:04 jkratoch
2011-12-26 20:32 jkratoch
2011-12-26 19:28 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=20120130165841.24093.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: link
Be 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).