Fix build with Python 3.4 (PR python/16784)
[external/binutils.git] / gdb / ChangeLog
1 2014-12-15  Simon Marchi  <simon.marchi@ericsson.com>
2
3         * defs.h (gdb_readline): Constify argument.
4         (gdb_readline_wrapper): Same.
5         (command_line_input): Same.
6         (deprecated_readline_hook): Same.
7         * top.c (deprecated_readline_hook): Same.
8         (gdb_readline): Same.
9         (gdb_readline_wrapper): Same.
10         (command_line_input): Constify argument. Pass prompt_arg to called
11         functions instead of local_prompt, overwriting prompt_arg if necessary.
12         * event-top.h (display_gdb_prompt): Constify argument.
13         * event-top.c (display_gdb_prompt): Same.
14         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Constify argument
15         if building with Python 3.4 and up.
16
17 2014-12-15  Simon Marchi  <simon.marchi@ericsson.com>
18
19         * python/lib/gdb/prompt.py (_prompt_pwd): Use os.getcwd() instead of
20         os.getcwdu().
21
22 2014-12-15  Catalin Udma  <catalin.udma@freescale.com>
23
24         PR gdb/15684
25         * memattr.c (mem_info_command): Remove "unsigned long" casts.
26
27 2014-12-13  Doug Evans  <xdje42@gmail.com>
28
29         * utils.c (make_hex_string): Fix off-by-one error.
30
31 2014-12-13  Joel Brobecker  <brobecker@adacore.com>
32
33         * ada-lang.h (ada_ensure_varsize_limit): Declare.
34         * ada-lang.c (check_size): Remove advance declaration.
35         (ada_ensure_varsize_limit): Renames check_size.
36         Replace calls to check_size by calls to ada_ensure_varsize_limit
37         throughout.
38         * ada-valprint.c (ada_val_print_ref): Add call to
39         ada_ensure_varsize_limit.  Add comment explaining why.
40
41 2014-12-13  Joel Brobecker  <brobecker@adacore.com>
42
43         * utils.c (make_hex_string): Replace use of sprintf by use of
44         xsnprintf.
45
46 2014-12-13  Joel Brobecker  <brobecker@adacore.com>
47
48         * compile/compile-object-load.c (link_callbacks_multiple_definition)
49         (link_callbacks_warning, link_callbacks_einfo): Remove trailing
50         newline at end of warning message.
51
52 2014-12-13  Joel Brobecker  <brobecker@adacore.com>
53
54         * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
55         new "EXTRA-ARGS" parameter.
56         * configure.ac: If large-file support is disabled in GDB,
57         pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
58         * configure: Regenerate.
59
60 2014-12-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
61
62         PR symtab/17642
63         * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
64         TYPE if not TYPE_CODE_TYPEDEF.
65
66 2014-12-13  Joel Brobecker  <brobecker@adacore.com>
67
68         PR backtrace/16215:
69         * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction
70         the frame unwinder must either be the dwarf2_frame_unwind
71         or the dwarf2_tailcall_frame_unwind.  Verify that this_frame's
72         stack_addr is valid before calling get_frame_base.  Throw
73         an error if not valid.
74
75 2014-12-12  Doug Evans  <xdje42@gmail.com>
76
77         * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
78         result != NULL.
79
80 2014-12-12  Doug Evans  <xdje42@gmail.com>
81
82         * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
83         All callers updated.  Rename arg "namespace" to "symbol_name".
84
85 2014-12-12  Doug Evans  <xdje42@gmail.com>
86
87         * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
88         partial_map_symtabs_matching_filename.  All uses updated.
89         (psym_find_pc_sect_compunit_symtab): Renamed from
90         find_pc_sect_compunit_symtab_from_partial.  All uses updated.
91         Add function comment.
92         (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
93         All uses updated.  Add function comment.
94         (psym_relocate): Renamed from relocate_psymtabs.  All uses updated.
95         Add function comment.
96         (psym_find_last_source_symtab): Renamed from
97         find_last_source_symtab_from_partial.  All uses updated.
98         Add function comment.
99         (psym_forget_cached_source_info): Renamed from
100         forget_cached_source_info_partial.  All uses updated.
101         Add function comment.
102         (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
103         All uses updated.  Add function comment.
104         (psym_dump): Renamed from dump_psymtabs_for_objfile.  All uses
105         updated.  Add function comment.
106         (psym_expand_symtabs_for_function): Renamed from
107         read_symtabs_for_function.  All uses updated.  Update function comment.
108         (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
109         All uses updated.  Add function comment.
110         (psym_expand_symtabs_with_fullname): Renamed from
111         read_psymtabs_with_fullname.  All uses updated.  Add function comment.
112         (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
113         All uses updated.  Add function comment.
114         (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
115         All uses updated.
116         (psym_expand_symtabs_matching): Renamed from
117         expand_symtabs_matching_via_partial.  All uses updated.
118         Add function comment.
119         (psym_has_symbols): Renamed from objfile_has_psyms.  All uses updated.
120         Add function comment.
121
122 2014-12-12  Phil Muldoon  <pmuldoon@redhat.com>
123             Jan Kratochvil  <jan.kratochvil@redhat.com>
124             Tom Tromey  <tromey@redhat.com>
125
126         * NEWS: Update.
127         * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
128         field.
129         * p-lang.c (pascal_language_defn): Update.
130         * opencl-lang.c (opencl_language_defn): Update.
131         * objc-lang.c (objc_language_defn): Update.
132         * m2-lang.c (m2_language_defn): Update.
133         * language.h (struct language_defn) <la_get_compile_instance,
134         la_compute_program>: New fields.
135         * language.c (unknown_language_defn, auto_language_defn)
136         (local_language_defn): Update.
137         * jv-lang.c (java_language_defn): Update.
138         * go-lang.c (go_language_defn): Update.
139         * f-lang.c (f_language_defn): Update.
140         * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
141         * dwarf2loc.c (dwarf2_compile_property_to_c)
142         (locexpr_generate_c_location, loclist_generate_c_location): New
143         functions.
144         (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
145         * defs.h (enum compile_i_scope_types): New.
146         (enum command_control_type) <compile_control>: New constant.
147         (struct command_line) <control_u>: New field.
148         * d-lang.c (d_language_defn): Update.
149         * compile/compile.c: New file.
150         * compile/compile-c-support.c: New file.
151         * compile/compile-c-symbols.c: New file.
152         * compile/compile-c-types.c: New file.
153         * compile/compile.h: New file.
154         * compile/compile-internal.h: New file.
155         * compile/compile-loc2c.c: New file.
156         * compile/compile-object-load.c: New file.
157         * compile/compile-object-load.h: New file.
158         * compile/compile-object-run.c: New file.
159         * compile/compile-object-run.h: New file.
160         * cli/cli-script.c (multi_line_command_p, print_command_lines)
161         (execute_control_command, process_next_line)
162         (recurse_read_control_structure): Handle compile_control.
163         * c-lang.h (c_get_compile_context, c_compute_program): Declare.
164         * c-lang.c (c_language_defn, cplus_language_defn)
165         (asm_language_defn, minimal_language_defn): Update.
166         * ada-lang.c (ada_language_defn): Update.
167         * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
168         New variables.
169         (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
170         (HFILES_NO_SRCDIR): Add compile.h.
171         (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
172         (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
173         (compile.o, compile-c-types.o, compile-c-symbols.o)
174         (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
175         (compile-c-support.o): New targets.
176
177 2014-12-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
178
179         * s390-linux-tdep.c (s390_gcc_target_options): New function.
180         (s390_gdbarch_init): Add it to gdbarch.
181
182 2014-12-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
183
184         * linux-tdep.c: Include objfiles.h and infcall.h.
185         (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
186         function.
187         (linux_init_abi): Add linux_infcall_mmap to gdbarch.
188
189 2014-12-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
190
191         * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
192         * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
193         translate_register.  Now public.
194         (dwarf2_compile_expr_to_ax): Update.
195
196 2014-12-12  Tom Tromey  <tromey@redhat.com>
197             Jan Kratochvil  <jan.kratochvil@redhat.com>
198
199         * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
200         (dwarf_expr_frame_base): Update caller.
201         (dwarf_expr_frame_base_1): Rename to ...
202         (func_get_frame_base_dwarf_block): ... this and make it public.
203         (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
204         callers.
205         * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
206
207 2014-12-12  Tom Tromey  <tromey@redhat.com>
208
209         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
210         Update.
211         * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
212         dwarf2_compile_cfa_to_ax.
213         (dwarf2_compile_cfa_to_ax): Remove.
214         * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
215         (dwarf2_compile_cfa_to_ax): Remove.
216
217 2014-12-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
218
219         * infcall.h (call_function_by_hand_dummy): Declare.
220         * infcall.c (call_function_by_hand): Use
221         call_function_by_hand_dummy.
222         (call_function_by_hand_dummy): Rename from call_function_by_hand.
223         Add arguments.  Register a destructor.
224
225 2014-12-12  Tom Tromey  <tromey@redhat.com>
226             Jan Kratochvil  <jan.kratochvil@redhat.com>
227
228         * osabi.h (osabi_triplet_regexp): Declare.
229         * osabi.c (struct osabi_names): New.
230         (gdb_osabi_names): Change type to struct osabi_names.  Update
231         values.
232         (gdbarch_osabi_name): Update.
233         (osabi_triplet_regexp): New function.
234         (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
235         * i386-tdep.c (i386_gnu_triplet_regexp): New method.
236         (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
237         set_gdbarch_gnu_triplet_regexp.
238         * gdbarch.sh (gnu_triplet_regexp): New method.
239         * gdbarch.c, gdbarch.h: Rebuild.
240         * arch-utils.h (default_gnu_triplet_regexp): Declare.
241         * arch-utils.c (default_gnu_triplet_regexp): New function.
242
243 2014-12-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
244
245         * arch-utils.c (default_infcall_mmap)
246         (default_gcc_target_options): New functions.
247         * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
248         (GDB_MMAP_PROT_EXEC): Define.
249         (default_infcall_mmap, default_gcc_target_options): Declare.
250         * gdbarch.h: Rebuild.
251         * gdbarch.c: Rebuild.
252         * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
253
254 2014-12-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
255
256         * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
257         fields.
258         (pop_dummy_frame): Call the destructor if it exists.
259         (register_dummy_frame_dtor, find_dummy_frame_dtor): New
260         functions.
261         * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
262         (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
263
264 2014-12-12  Tom Tromey  <tromey@redhat.com>
265
266         * gdbtypes.h (make_unqualified_type): Declare.
267         * gdbtypes.c (make_unqualified_type): New function.
268
269 2014-12-12  Tom Tromey  <tromey@redhat.com>
270
271         * ui-file.h (ui_file_write_for_put): Declare.
272         * ui-file.c (ui_file_write_for_put): New function.
273         * mi/mi-out.c (do_write): Remove.
274         (mi_out_put): Use ui_file_write_for_put.
275
276 2014-12-12  Doug Evans  <dje@google.com>
277
278         * NEWS: Mention gdb.lookup_objfile.
279         * python/python.c (GdbMethods): Add lookup_objfile.
280         * python/python-internal.h (gdbpy_lookup_objfile): Declare.
281         * python/py-objfile.c: #include "symtab.h".
282         (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
283         (objfpy_lookup_objfile_by_name): New function.
284         (objfpy_lookup_objfile_by_build_id): New function.
285         (gdbpy_lookup_objfile): New function.
286
287 2014-12-12  Maciej W. Rozycki  <macro@codesourcery.com>
288
289         * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
290         (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
291         * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
292         macros.
293         (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
294         Likewise.
295
296 2014-12-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
297
298         * completer.c: Include "target.h", "reggroups.h", and
299         "user-regs.h".
300         (reg_or_group_completer): New.
301         * completer.h (reg_or_group_completer): Declare.
302         * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
303         the "info registers" and "info all-registers" commands and the
304         dbx-mode "lr" command.
305
306 2014-12-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
307
308         * user-regs.c: Include "arch-utils.h", "command.h", and
309         "cli/cli-cmds.h".
310         (maintenance_print_user_registers): New.
311         (_initialize_user_regs): Register new "maint print user-registers"
312         subcommand.
313         * NEWS: Mention new GDB command "maint print user-registers".
314
315 2014-12-12  Maciej W. Rozycki  <macro@codesourcery.com>
316             Maciej W. Rozycki  <macro@mips.com>
317             Pedro Alves  <pedro@codesourcery.com>
318
319         * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
320         remove `predefault' and `invalid_p' initializers.
321         (make_symbol_special): New architecture method.
322         (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
323         (objfile, symbol): New declarations.
324         * arch-utils.h (default_elf_make_msymbol_special): Remove
325         prototype.
326         (default_make_symbol_special): New prototype.
327         (default_adjust_dwarf2_addr): Likewise.
328         (default_adjust_dwarf2_line): Likewise.
329         * mips-tdep.h (mips_unmake_compact_addr): New prototype.
330         * arch-utils.c (default_elf_make_msymbol_special): Remove
331         function.
332         (default_make_symbol_special): New function.
333         (default_adjust_dwarf2_addr): Likewise.
334         (default_adjust_dwarf2_line): Likewise.
335         * dwarf2-frame.c (decode_frame_entry_1): Call
336         `gdbarch_adjust_dwarf2_addr'.
337         * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
338         * dwarf2read.c (create_addrmap_from_index): Likewise.
339         (process_psymtab_comp_unit_reader): Likewise.
340         (add_partial_symbol): Likewise.
341         (add_partial_subprogram): Likewise.
342         (process_full_comp_unit): Likewise.
343         (read_file_scope): Likewise.
344         (read_func_scope): Likewise.  Call `gdbarch_make_symbol_special'.
345         (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
346         (read_call_site_scope): Likewise.
347         (dwarf2_ranges_read): Likewise.
348         (dwarf2_record_block_ranges): Likewise.
349         (read_attribute_value): Likewise.
350         (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
351         (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
352         * elfread.c (elf_symtab_read): Don't call
353         `gdbarch_elf_make_msymbol_special' if unset.
354         * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
355         the ISA bit from the PC.
356         * mips-tdep.c (mips_unmake_compact_addr): New function.
357         (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
358         address appropriately.
359         (mips_make_symbol_special): New function.
360         (mips_pc_is_mips): Set the ISA bit before symbol lookup.
361         (mips_pc_is_mips16): Likewise.
362         (mips_pc_is_micromips): Likewise.
363         (mips_pc_isa): Likewise.
364         (mips_adjust_dwarf2_addr): New function.
365         (mips_adjust_dwarf2_line): Likewise.
366         (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
367         (mips_addr_bits_remove): Likewise.
368         (mips_skip_trampoline_code): Likewise.
369         (mips_write_pc): Don't set the ISA bit.
370         (mips_eabi_push_dummy_call): Likewise.
371         (mips_o64_push_dummy_call): Likewise.
372         (mips_gdbarch_init): Install `mips_make_symbol_special',
373         `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
374         handlers.
375         * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
376         target-specific symbol address adjustments.
377         * gdbarch.h: Regenerate.
378         * gdbarch.c: Regenerate.
379
380 2014-12-12  Yao Qi  <yao@codesourcery.com>
381
382         PR tdep/14261
383         * arm-tdep.c (arm_skip_prologue): Remove unused local variable
384         'skip_pc'.  Remove code skipping prologue instructions, use
385         arm_analyze_prologue instead.
386         (arm_analyze_prologue): Stop the scanning for unrecognized
387         instruction when skipping prologue.
388
389 2014-12-12  Yao Qi  <yao@codesourcery.com>
390
391         * arm-tdep.c (arm_instruction_restores_sp): New function.
392         (arm_analyze_prologue): Call arm_instruction_restores_sp.
393         (arm_in_function_epilogue_p): Move code to
394         arm_instruction_restores_sp.
395
396 2014-12-11  Doug Evans  <xdje42@gmail.com>
397
398         * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
399
400 2014-12-11  Doug Evans  <xdje42@gmail.com>
401
402         * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
403         (symbol *lookup_symbol_via_quick_fns): Ditto.
404         (lookup_symbol_in_objfile): Add forward decl.
405         (lookup_global_symbol_from_objfile): Simplify, call
406         lookup_symbol_in_objfile.
407
408 2014-12-11  Doug Evans  <xdje42@gmail.com>
409
410         * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
411
412 2014-12-10  Simon Marchi  <simon.marchi@ericsson.com>
413
414         PR breakpoints/17012
415         * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
416         it is marked as persistent.
417
418 2014-12-10  Doug Evans  <xdje42@gmail.com>
419
420         * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
421         closer to its subroutines.
422
423 2014-12-10  Doug Evans  <xdje42@gmail.com>
424
425         * cp-namespace.c (lookup_symbol_file): Move next to only caller.
426
427 2014-12-10  Doug Evans  <xdje42@gmail.com>
428
429         * cp-namespace.c (cp_lookup_symbol_imports): Make static.
430         * cp-support.c (cp_lookup_symbol_imports): Delete.
431
432 2014-12-10  Simon Marchi  <simon.marchi@ericsson.com>
433
434         PR gdb/17627
435         * target.c (cleanup_restore_target_terminal): New function.
436         (make_cleanup_restore_target_terminal): New function.
437         * target.h (make_cleanup_restore_target_terminal): New declaration.
438         * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
439
440 2014-12-08  Doug Evans  <dje@google.com>
441
442         * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
443
444 2014-12-08  Doug Evans  <dje@google.com>
445
446         * NEWS: Mention gdb.Objfile.owner.
447         * python/py-objfile.c (objfpy_get_owner): New function.
448         (objfile_getset): Add "owner".
449
450 2014-12-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
451
452         * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
453         (lookup_global_symbol_from_objfile): Call it.
454
455 2014-12-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
456
457         Remove const from struct objfile *.
458         * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
459         symtab.c, symtab.h: In these files.
460
461 2014-12-05  Andreas From  <andreas.from@ericsson.com>
462
463         * MAINTAINERS (Write After Approval): Add "Andreas From"
464
465 2014-12-05  Doug Evans  <xdje42@gmail.com>
466
467         Revert:
468         PR symtab/17602
469         * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
470
471 2014-12-04  Doug Evans  <dje@google.com>
472
473         * NEWS: Mention gdb.Objfile.add_separate_debug_file.
474         * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
475         (objfile_getset): Add "add_separate_debug_file".
476
477 2014-12-04  Doug Evans  <dje@google.com>
478
479         * NEWS: Mention gdb.Objfile.build_id.
480         * build-id.c (build_id_bfd_get): Make non-static.
481         * build-id.h (build_id_bfd_get): Add declaration.
482         * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
483         (OBJFPY_REQUIRE_VALID): New macro.
484         (objfpy_get_build_id): New function.
485         (objfile_getset): Add "build_id".
486         * utils.c (make_hex_string): New function.
487         * utils.h (make_hex_string): Add declaration.
488
489 2014-12-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
490
491         * block.c (block_lookup_symbol_primary): New function.
492         * block.h (block_lookup_symbol_primary): New declaration.
493         * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
494         Call block_lookup_symbol_primary.
495
496 2014-12-03  Maciej W. Rozycki  <macro@codesourcery.com>
497
498         * tramp-frame.h (tramp_frame): Add `validate' member.
499         * tramp-frame.c (tramp_frame_start): Validate trampoline before
500         scanning.
501         * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
502         (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
503         (mips_linux_o32_sigframe): Initialize `validate' member.
504         (mips_linux_o32_rt_sigframe): Likewise.
505         (mips_linux_n32_rt_sigframe): Likewise.
506         (mips_linux_n64_rt_sigframe): Likewise.
507         (micromips_linux_o32_sigframe): New variable.
508         (micromips_linux_o32_rt_sigframe): Likewise.
509         (micromips_linux_n32_rt_sigframe): Likewise.
510         (micromips_linux_n64_rt_sigframe): Likewise.
511         (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
512         (mips_linux_n32n64_sigframe_init): Likewise.
513         (mips_linux_sigframe_validate): New function.
514         (micromips_linux_sigframe_validate): Likewise.
515         (mips_linux_init_abi): Install microMIPS trampoline unwinders.
516
517 2014-12-03  Ulrich Weigand  <uweigand@de.ibm.com>
518
519         * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
520         * sparc-sol2-tdep.c: Include "regset.h".
521         (sparc32_sol2_supply_core_gregset): New function.
522         (sparc32_sol2_collect_core_gregset): Likewise.
523         (sparc32_sol2_supply_core_fpregset): Likewise.
524         (sparc32_sol2_collect_core_fpregset): Likewise.
525         (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
526         (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
527         tdep->fpregset/sizeof_fpregset.
528         * sparc64-sol2-tdep.c: Include "regset.h".
529         (sparc64_sol2_supply_core_gregset): New function.
530         (sparc64_sol2_collect_core_gregset): Likewise.
531         (sparc64_sol2_supply_core_fpregset): Likewise.
532         (sparc64_sol2_collect_core_fpregset): Likewise.
533         (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
534         (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
535         tdep->fpregset/sizeof_fpregset.
536
537 2014-12-03  Simon Marchi  <simon.marchi@ericsson.com>
538
539         * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
540         type.
541
542 2014-12-02  Doug Evans  <dje@google.com>
543
544         * symtab.c (symbol_init_cplus_specific): Delete.
545         (symbol_set_demangled_name): Remove special c++ support.
546         (symbol_get_demangled_name, symbol_set_language): Ditto.
547         * symtab.h (struct cplus_specific): Delete.
548         (struct general_symbol_info) <language_specific>: Remove
549         cplus_specific.
550
551 2014-12-02  Doug Evans  <dje@google.com>
552
553         PR symtab/17602
554         * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
555
556 2014-12-02  Doug Evans  <dje@google.com>
557
558         PR symtab/17591
559         * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
560         to strip parameters.
561
562 2014-12-02  Doug Evans  <dje@google.com>
563
564         * dwarf2read.c (peek_die_abbrev): Improve error message text.
565
566 2014-12-02  Doug Evans  <dje@google.com>
567
568         * valops.c (do_search_struct_field): Remove remnant of Chill support.
569         Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
570
571 2014-12-02  Simon Marchi  <simon.marchi@ericsson.com>
572
573         * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
574
575 2014-12-02  Nick Bull  <nicholaspbull@gmail.com>
576
577         * NEWS: Mention new Python events.
578         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
579         (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
580         (py-infevents.o): New rule.
581         * doc/observer.texi (inferior_call_pre, inferior_call_post)
582         (memory_changed, register_changed): New observers.
583         * infcall.c (call_function_by_hand): Notify observer before and
584         after inferior call.
585         * python/py-event.h (inferior_call_kind): New enum.
586         (emit_inferior_call_event): New prototype.
587         (emit_register_changed_event): New prototype.
588         (emit_memory_changed_event): New prototype.
589         * python/py-events.h (events_object): New registries
590         inferior_call, memory_changed and register_changed.
591         * python/py-evts.c (gdbpy_initialize_py_events): Add the
592         inferior_call, memory_changed and register_changed registries.
593         * python/py-infevents.c: New.
594         * python/py-inferior.c (python_on_inferior_call_pre)
595         (python_on_inferior_call_post, python_on_register_change)
596         (python_on_memory_change): New functions.
597         (gdbpy_initialize_inferior): Attach python handler to new
598         observers.
599         * python/py-infthread.c(gdbpy_create_ptid_object): New.
600         (thpy_get_ptid) Use gdbpy_create_ptid_object.
601         * python/python-internal.h:
602         (gdbpy_create_ptid_object)
603         (gdbpy_initialize_inferior_call_pre_event)
604         (gdbpy_initialize_inferior_call_post_event)
605         (gdbpy_initialize_register_changed_event)
606         (gdbpy_initialize_memory_changed_event): New prototypes.
607         * python/python.c (_initialize_python): Initialize new events.
608         * valops.c (value_assign): Notify register_changed observer.
609
610 2014-12-02  Doug Evans  <dje@google.com>
611
612         * python/py-infthread.c: Whitespace fixes.
613
614 2014-12-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
615
616         * features/Makefile (s390-te-linux64-expedite): Replace
617         non-existant r14 and r15 by r14l and r15l, respectively.
618         * regformats/s390-te-linux64.dat: Regenerate.
619
620 2014-12-01  Simon Marchi  <simon.marchi@ericsson.com>
621
622         * objfiles.c (allocate_objfile): Remove duplicate comment.
623
624 2014-12-01  Ulrich Weigand  <uweigand@de.ibm.com>
625
626         * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
627         * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
628         (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
629         (supply_gregset, supply_fpregset): Remove.
630         * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
631         (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
632         and sizeof_gregset.
633
634 2014-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
635
636         Add add-auto-load-scripts-directory.
637         * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
638         * auto-load.c (add_auto_load_dir): New function.
639         (_initialize_auto_load): Install it.
640
641 2014-11-30  Martin Galvan  <martin.galvan@tallertechnologies.com>  (tiny patch, obvious)
642
643         Pushed by Joel Brobecker  <brobecker@adacore.com>.
644         * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
645
646 2014-11-29  Siva Chandra Reddy  <sivachandra@google.com>
647
648         * eval.c (evaluate_subexp): Check that the thread stack temporaries
649         are not already enabled before enabling them.
650
651 2014-11-29  Yao Qi  <yao@codesourcery.com>
652
653         * arm-tdep.c (arm_analyze_prologue): Move local variables
654         'framereg' and 'framesize' to inner block.  Move code to
655         inner block too.
656
657 2014-11-28  Siva Chandra Reddy  <sivachandra@google.com>
658
659         * eval.c: Include gdbthread.h.
660         (evaluate_subexp): Enable thread stack temporaries before
661         evaluating a complete expression and clean them up after the
662         evaluation is complete.
663         * gdbthread.h: Include common/vec.h.
664         (value_ptr): New typedef.
665         (VEC (value_ptr)): New vector type.
666         (value_vec): New typedef.
667         (struct thread_info): Add new fields stack_temporaries_enabled
668         and stack_temporaries.
669         (enable_thread_stack_temporaries)
670         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
671         (get_last_thread_stack_temporary)
672         (value_in_thread_stack_temporaries): Declare.
673         * gdbtypes.c (class_or_union_p): New function.
674         * gdbtypes.h (class_or_union_p): Declare.
675         * infcall.c (call_function_by_hand): Store return values of class
676         type as temporaries on stack.
677         * thread.c (enable_thread_stack_temporaries): New function.
678         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
679         (get_last_thread_stack_temporary): Likewise.
680         (value_in_thread_stack_temporaries): Likewise.
681         * value.c (value_force_lval): New function.
682         * value.h (value_force_lval): Declare.
683
684 2014-11-28  Pierre Muller  <muller@sourceware.org>
685
686         Pushed by Joel Brobecker  <brobecker@adacore.com>.
687         * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
688         registers.
689
690 2014-11-28  Ulrich Weigand  <uweigand@de.ibm.com>
691
692         * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
693         * config/sparc/linux.mh (NATDEPFILES): Likewise.
694         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
695         * m68klinux-nat.c (fetch_core_registers): Remove.
696         (linux_elf_core_fns): Remove.
697         (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
698
699 2014-11-28  Joel Brobecker  <brobecker@adacore.com>
700
701         * utils.c (gdb_realpath): Rework comment about handling on
702         Windows.
703
704 2014-11-28  Yao Qi  <yao@codesourcery.com>
705
706         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
707         rename.
708         * gnulib/aclocal.m4: Re-generated.
709         * gnulib/config.in: Re-generated.
710         * gnulib/configure: Re-generated.
711         * gnulib/import/Makefile.am: Re-generated.
712         * gnulib/import/Makefile.in: Re-generated.
713         * gnulib/import/m4/gnulib-cache.m4: Re-generated.
714         * gnulib/import/m4/gnulib-comp.m4: Re-generated.
715         * import/basename-lgpl.c: New file.
716         * import/dirname-lgpl.c: New file.
717         * import/dirname.h: New file.
718         * import/m4/dirname.m4: New file.
719         * import/m4/malloc.m4: New file.
720         * import/m4/rename.m4: New file.
721         * import/m4/rmdir.m4: New file.
722         * import/m4/stdio_h.m4: New file.
723         * import/malloc.c: New file.
724         * import/rename.c: New file.
725         * import/rmdir.c: New file.
726         * import/same-inode.h: New file.
727         * import/stdio.c: New file.
728         * import/stdio.in.h: New file.
729         * import/stripslash.c: New file.
730
731 2014-11-28  Yao Qi  <yao@codesourcery.com>
732
733         * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
734         and realpath.
735         * config.in: Re-generated.
736         * configure: Re-generated.
737         * utils.c (gdb_realpath): Remove code calling realpath,
738         canonicalize_file_name and pathconf.
739         [!_WIN32]: Call canonicalize_file_name.
740
741 2014-11-28  Yao Qi  <yao@codesourcery.com>
742
743         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
744         canonicalize-lgpl.
745         * aclocal.m4: Re-generated.
746         * config.in: Re-generated.
747         * configure: Re-generated.
748         * import/Makefile.am: Re-generated.
749         * import/Makefile.in: Re-generated.
750         * import/m4/gnulib-cache.m4: Re-generated.
751         * import/m4/gnulib-comp.m4: Re-generated.
752         * import/canonicalize-lgpl.c: New file.
753         * import/extra/snippet/_Noreturn.h: New file.
754         * import/m4/canonicalize.m4: New file.
755         * import/m4/double-slash-root.m4: New file.
756         * import/m4/eealloc.m4: New file.
757         * import/m4/malloca.m4: New file.
758         * import/m4/nocrash.m4: New file.
759         * import/m4/stdlib_h.m4: New file.
760         * import/malloca.c: New file.
761         * import/malloca.h: New file.
762         * import/malloca.valgrind: New file.
763
764 2014-11-28  Yao Qi  <yao@codesourcery.com>
765
766         * configure.ac (AC_CHECK_FUNCS): Remove lstat.
767         * config.in, configure: Regenerate.
768         * symfile.c (find_separate_debug_file_by_debuglink): Remove
769         code checking HAVE_LSTAT is defined.
770
771 2014-11-28  Yao Qi  <yao@codesourcery.com>
772
773         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
774         lstat.
775         * gnulib/aclocal.m4: Re-generated.
776         * gnulib/config.in: Re-generated.
777         * gnulib/configure: Re-generated.
778         * gnulib/import/Makefile.am: Re-generated.
779         * gnulib/import/Makefile.in: Re-generated.
780         * gnulib/import/m4/gnulib-cache.m4: Re-generated.
781         * gnulib/import/m4/gnulib-comp.m4: Re-generated.
782         * gnulib/import/lstat.c: New file.
783         * gnulib/import/m4/lstat.m4: New file.
784
785 2014-11-28  Yao Qi  <yao@codesourcery.com>
786
787         * configure.ac (AC_CHECK_FUNCS): Remove readlink.
788         * config.in, configure: Re-generate.
789         * inf-child.c (inf_child_fileio_readlink): Don't check
790         HAVE_READLINK is defined.
791
792 2014-11-28  Yao Qi  <yao@codesourcery.com>
793
794         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
795         * gnulib/aclocal.m4: Re-generated.
796         * gnulib/config.in: Likewise.
797         * gnulib/configure: Likewise.
798         * gnulib/import/Makefile.am: Likewise.
799         * gnulib/import/Makefile.in: Likewise.
800         * gnulib/import/m4/gnulib-cache.m4: Likewise.
801         * gnulib/import/m4/gnulib-comp.m4: Likewise.
802         * gnulib/import/dosname.h: New file
803         * gnulib/import/m4/largefile.m4: New file.
804         * gnulib/import/m4/readlink.m4: New file.
805         * gnulib/import/m4/stat.m4: New file.
806         * gnulib/import/readlink.c: New file.
807         * gnulib/import/stat.c: New file.
808
809 2014-11-26  Mark Wielaard  <mjw@redhat.com>
810
811         * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
812         DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
813
814 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
815
816         * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
817         that there can be only one stack adjustment in the prologue
818         with tests to detect specific disallowed stack adjustments.
819
820 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
821
822         * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
823         adjustments.
824
825 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
826
827         * nios2-tdep.c (nios2_fetch_insn): Move up in file.  Disassemble
828         the instruction as well as reading it from memory.
829         (nios2_match_add): New.
830         (nios2_match_sub): New.
831         (nios2_match_addi): New.
832         (nios2_match_orhi): New.
833         (nios2_match_stw): New.
834         (nios2_match_ldw): New.
835         (nios2_match_rdctl): New.
836         (enum branch_condition): New.
837         (nios2_match_branch): New.
838         (nios2_match_jmpi): New.
839         (nios2_match_calli): New.
840         (nios2_match_jmpr): New.
841         (nios2_match_callr): New.
842         (nios2_match_break): New.
843         (nios2_match_trap): New.
844         (nios2_in_epilogue_p): Rewrite to use new functions.
845         (nios2_analyze_prologue): Likewise.
846         (nios2_skip_prologue): Delete unused local limit_pc.
847         (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
848         (nios2_get_next_pc): Rewrite to use new functions.
849
850 2014-11-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
851
852         * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
853
854 2014-11-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
855
856         Pushed by Joel Brobecker  <brobecker@adacore.com>
857         * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
858         elements pi_len by the size of the elements before calling
859         vm_deallocate.
860         (inf_validate_task_sc): Likewise, and properly deallocate the
861         noise array.
862
863 2014-11-23  Doug Evans  <xdje42@gmail.com>
864
865         * gdbtypes.c (print_args): Renamed from print_arg_types.  Print arg
866         number and name if present.  All callers updated.
867         (dump_fn_fieldlists): Fix indentation of args.
868
869 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
870
871         * MAINTAINERS (Write After Approval): Add myself.
872
873 2014-11-23  Joel Brobecker  <brobecker@adacore.com>
874
875         * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
876         to a bp_call_dummy breakpoint type.
877
878 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
879
880         * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
881         registering the signal handler.
882
883 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
884
885         * event-top.h (call_stdin_event_handler_again_p): Declare.
886         * event-top.c (call_stdin_event_handler_again_p): Define.
887         (stdin_event_handler): Use it.
888         * tui/tui-io.c (tui_getc): Prepare to call the stdin event
889         handler again if there is pending input following a
890         start sequence.
891
892 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
893
894         Pushed by Joel Brobecker  <brobecker@adacore.com>
895         * linux-fork.c (checkpoint_command): Print index of new
896         checkpoint in response message.
897
898 2014-11-23  Yao Qi  <yao@codesourcery.com>
899
900         * valprint.c (read_string): Move local variables 'found_nul',
901         'chunksize' and 'limit' to inner scope.  Update comments.
902
903 2014-11-22  Doug Evans  <xdje42@gmail.com>
904
905         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
906         function comment.
907         (search_symbols): Fix comments and whitespace.
908
909 2014-11-22  Doug Evans  <xdje42@gmail.com>
910
911         * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
912
913 2014-11-21  Doug Evans  <dje@google.com>
914
915         * psymtab.c (psymtab_search_name): Fix whitespace.
916
917 2014-11-21  Yao Qi  <yao@codesourcery.com>
918
919         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
920         errno.
921         * gnulib/import/Makefile.am: Re-generated.
922         * gnulib/import/Makefile.in: Likewise.
923         * gnulib/import/m4/gnulib-cache.m4: Likewise.
924
925 2014-11-21  Yao Qi  <yao@codesourcery.com>
926
927         * gdb_wchar.h: Include wchar.h and wctype.h.
928         [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
929         include wchar.h and wctype.h.
930         Don't check HAVE_WCHAR_H.
931
932 2014-11-21  Yao Qi  <yao@codesourcery.com>
933
934         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
935         and wctype-h.
936         * gnulib/import/Makefile.am: Re-generated.
937         * gnulib/import/Makefile.in: Likewise.
938         * gnulib/import/m4/gnulib-cache.m4: Likewise.
939
940 2014-11-21  Yao Qi  <yao@codesourcery.com>
941
942         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
943         memchr.
944         * gnulib/import/Makefile.am: Re-generated.
945         * gnulib/import/Makefile.in: Likewise.
946         * gnulib/import/m4/gnulib-cache.m4: Likewise.
947
948 2014-11-21  Yao Qi  <yao@codesourcery.com>
949
950         * common/common-defs.h: Include alloca.h
951         * configure.ac: Don't invoke AC_FUNC_ALLOCA.
952         * configure: Re-generated.
953         * defs.h: Remove code handling alloca.
954         * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
955         or not.
956
957 2014-11-21  Yao Qi  <yao@codesourcery.com>
958
959         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
960         alloca.
961         * gnulib/import/Makefile.am: Re-generated.
962         * gnulib/import/Makefile.in: Likewise..
963         * gnulib/import/m4/gnulib-cache.m4: Likewise.
964
965 2014-11-21  Yao Qi  <yao@codesourcery.com>
966
967         * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
968         alphabetical order.
969
970 2014-11-21  Joel Brobecker  <brobecker@adacore.com>
971
972         * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
973         flag_unsigned if HIGH_BOUND is constant and negative.
974
975 2014-11-20  Sergio Durigan Junior  <sergiodj@redhat.com>
976
977         PR breakpoints/10737
978         * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
979         modifier from "struct gdbarch" when compiling without Expat (XML)
980         support.
981         (get_syscall_by_number): Likewise.
982         (get_syscall_by_name): Likewise.
983         (get_syscall_names): Likewise.
984
985 2014-11-20  Sergio Durigan Junior  <sergiodj@redhat.com>
986
987         PR breakpoints/10737
988         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
989         set_xml_syscall_file_name to provide gdbarch.
990         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
991         * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
992         * breakpoint.c (print_it_catch_syscall): Adjust call to
993         get_syscall_by_number to provide gdbarch.
994         (print_one_catch_syscall): Likewise.
995         (print_mention_catch_syscall): Likewise.
996         (print_recreate_catch_syscall): Likewise.
997         (catch_syscall_split_args): Adjust calls to get_syscall_by_number
998         and get_syscall_by_name to provide gdbarch.
999         (catch_syscall_completer): Adjust call to get_syscall_names to
1000         provide gdbarch.
1001         * gdbarch.c: Regenerate.
1002         * gdbarch.h: Likewise.
1003         * gdbarch.sh: Forward declare "struct syscalls_info".
1004         (xml_syscall_file): New variable.
1005         (syscalls_info): Likewise.
1006         * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
1007         set_xml_syscall_file_name to provide gdbarch.
1008         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1009         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1010         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1011         * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1012         * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
1013         * xml-syscall.c: Include gdbarch.h.
1014         (set_xml_syscall_file_name): Accept gdbarch parameter.
1015         (get_syscall_by_number): Likewise.
1016         (get_syscall_by_name): Likewise.
1017         (get_syscall_names): Likewise.
1018         (my_gdb_datadir): Delete global variable.
1019         (struct syscalls_info) <my_gdb_datadir>: New variable.
1020         (struct syscalls_info) <sysinfo>: Rename variable to
1021         "syscalls_info".
1022         (sysinfo): Delete global variable.
1023         (have_initialized_sysinfo): Likewise.
1024         (xml_syscall_file): Likewise.
1025         (sysinfo_free_syscalls_desc): Rename to...
1026         (syscalls_info_free_syscalls_desc): ... this.
1027         (free_syscalls_info): Rename "sysinfo" to "syscalls_info".  Adjust
1028         code to the new layout of "struct syscalls_info".
1029         (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
1030         "syscalls_info".
1031         (syscall_create_syscall_desc): Likewise.
1032         (syscall_start_syscall): Likewise.
1033         (syscall_parse_xml): Likewise.
1034         (xml_init_syscalls_info): Likewise.  Drop "const" from return value.
1035         (init_sysinfo): Rename to...
1036         (init_syscalls_info): ...this.  Add gdbarch as a parameter.
1037         Adjust function to deal with gdbarch.
1038         (xml_get_syscall_number): Delete parameter sysinfo.  Accept
1039         gdbarch as a parameter.  Adjust code.
1040         (xml_get_syscall_name): Likewise.
1041         (xml_list_of_syscalls): Likewise.
1042         (set_xml_syscall_file_name): Accept gdbarch as parameter.
1043         (get_syscall_by_number): Likewise.
1044         (get_syscall_by_name): Likewise.
1045         (get_syscall_names): Likewise.
1046         * xml-syscall.h (set_xml_syscall_file_name): Likewise.
1047         (get_syscall_by_number): Likewise.
1048         (get_syscall_by_name): Likewise.
1049         (get_syscall_names): Likewise.
1050
1051 2014-11-20  Doug Evans  <xdje42@gmail.com>
1052
1053         Split struct symtab into two: struct symtab and compunit_symtab.
1054         * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
1055         * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
1056         to "struct compunit_symtab *".  All callers updated.
1057         (set_block_compunit_symtab): Renamed from set_block_symtab.  Change
1058         "struct symtab *" argument to "struct compunit_symtab *".
1059         All callers updated.
1060         (get_block_compunit_symtab): Renamed from get_block_symtab.  Change
1061         result to "struct compunit_symtab *".  All callers updated.
1062         (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
1063         Change result to "struct compunit_symtab *".  All callers updated.
1064         * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
1065         hange type to "struct compunit_symtab *".  All uses updated.
1066         (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
1067         Change type to "struct compunit_symtab *".  All uses updated.
1068         * buildsym.c (struct buildsym_compunit): New struct.
1069         (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
1070         (buildsym_compunit): New static global.
1071         (finish_block_internal): Update to fetch objfile from
1072         buildsym_compunit.
1073         (make_blockvector): Delete objfile argument.
1074         (start_subfile): Rewrite to use buildsym_compunit.  Don't initialize
1075         debugformat, producer.
1076         (start_buildsym_compunit): New function.
1077         (free_buildsym_compunit): Renamed from free_subfiles_list.
1078         All callers updated.
1079         (patch_subfile_names): Rewrite to use buildsym_compunit.
1080         (get_compunit_symtab): New function.
1081         (get_macro_table): Delete argument comp_dir.  All callers updated.
1082         (start_symtab): Change result to "struct compunit_symtab *".
1083         All callers updated.  Create the subfile of the main source file.
1084         (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1085         (reset_symtab_globals): Update.
1086         (end_symtab_get_static_block): Update to use buildsym_compunit.
1087         (end_symtab_without_blockvector): Rewrite.
1088         (end_symtab_with_blockvector): Change result to
1089         "struct compunit_symtab *".  All callers updated.
1090         Update to use buildsym_compunit.  Don't set symtab->dirname,
1091         instead set it in the compunit.
1092         Explicitly make sure main symtab is first in its list.
1093         Set debugformat, producer, blockvector, block_line_section, and
1094         macrotable in the compunit.
1095         (end_symtab_from_static_block): Change result to
1096         "struct compunit_symtab *".  All callers updated.
1097         (end_symtab, end_expandable_symtab): Ditto.
1098         (set_missing_symtab): Change symtab argument to
1099         "struct compunit_symtab *".  All callers updated.
1100         (augment_type_symtab): Ditto.
1101         (record_debugformat): Update to use buildsym_compunit.
1102         (record_producer): Update to use buildsym_compunit.
1103         * buildsym.h (struct subfile) <dirname>: Delete.
1104         <producer, debugformat>: Delete.
1105         <buildsym_compunit>: New member.
1106         (get_compunit_symtab): Declare.
1107         * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1108         from primary_symtab.  Change type to "struct compunit_symtab *".
1109         All uses updated.
1110         (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1111         All callers updated.
1112         (dwarf_decode_macros): Delete comp_dir argument.  All callers updated.
1113         (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1114         symtab.  Change type to "struct compunit_symtab *".  All uses updated.
1115         (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1116         All callers updated.
1117         (dw2_find_last_source_symtab): Ditto.
1118         (dw2_lookup_symbol): Ditto.
1119         (recursively_find_pc_sect_compunit_symtab): Renamed from
1120         recursively_find_pc_sect_symtab.  Change result to
1121         "struct compunit_symtab *".  All callers updated.
1122         (dw2_find_pc_sect_compunit_symtab): Renamed from
1123         dw2_find_pc_sect_symtab.  Change result to
1124         "struct compunit_symtab *".  All callers updated.
1125         (get_compunit_symtab): Renamed from get_symtab.  Change result to
1126         "struct compunit_symtab *".  All callers updated.
1127         (recursively_compute_inclusions): Change type of immediate_parent
1128         argument to "struct compunit_symtab *".  All callers updated.
1129         (compute_compunit_symtab_includes): Renamed from
1130         compute_symtab_includes.  All callers updated.  Rewrite to compute
1131         includes of compunit_symtabs and not symtabs.
1132         (process_full_comp_unit): Update to work with struct compunit_symtab.
1133         (process_full_type_unit): Ditto.
1134         (dwarf_decode_lines_1): Delete argument comp_dir.  All callers updated.
1135         (dwarf_decode_lines): Remove special case handling of main subfile.
1136         (macro_start_file): Delete argument comp_dir.  All callers updated.
1137         (dwarf_decode_macro_bytes): Ditto.
1138         * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1139         use struct compunit_symtab.
1140         * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1141         * jit.c (finalize_symtab): Build compunit_symtab.
1142         * jv-lang.c (get_java_class_symtab): Change result to
1143         "struct compunit_symtab *".  All callers updated.
1144         * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1145         * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1146         comp_dir.  Change type to "struct compunit_symtab *".
1147         All uses updated.
1148         (new_macro_table): Change comp_dir argument to cust,
1149         "struct compunit_symtab *".  All callers updated.
1150         * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1151         nr_primary_symtabs.  All uses updated.
1152         (count_symtabs_and_blocks): Update to handle compunits.
1153         (report_command_stats): Update output, "primary symtabs" renamed to
1154         "compunits".
1155         * mdebugread.c (new_symtab): Change result to
1156         "struct compunit_symtab *".  All callers updated.
1157         (parse_procedure): Change type of search_symtab argument to
1158         "struct compunit_symtab *".  All callers updated.
1159         * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1160         separate loop.
1161         * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1162         symtabs.  Change type to "struct compunit_symtab *".  All uses updated.
1163         (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1164         All uses updated.
1165         (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1166         All uses updated.
1167         (ALL_FILETABS): Renamed from ALL_SYMTABS.  All uses updated.
1168         (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS.  All uses updated.
1169         * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1170         symtab.  Change type to "struct compunit_symtab *".  All uses updated.
1171         * psymtab.c (psymtab_to_symtab): Change result type to
1172         "struct compunit_symtab *".  All callers updated.
1173         (find_pc_sect_compunit_symtab_from_partial): Renamed from
1174         find_pc_sect_symtab_from_partial.  Change result type to
1175         "struct compunit_symtab *".  All callers updated.
1176         (lookup_symbol_aux_psymtabs): Change result type to
1177         "struct compunit_symtab *".  All callers updated.
1178         (find_last_source_symtab_from_partial): Ditto.
1179         * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1180         * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1181         and macro_table from compunit.
1182         * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1183         type to "struct compunit_symtab *".  All callers updated.
1184         (debug_qf_lookup_symbol): Ditto.
1185         (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1186         debug_qf_find_pc_sect_symtab, change result type to
1187         "struct compunit_symtab *".  All callers updated.
1188         * symfile.c (allocate_symtab): Delete objfile argument.
1189         New argument cust.
1190         (allocate_compunit_symtab): New function.
1191         (add_compunit_symtab_to_objfile): New function.
1192         * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1193         Change result type to "struct compunit_symtab *".  All uses updated.
1194         <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1195         Change result type to "struct compunit_symtab *".  All uses updated.
1196         * symmisc.c (print_objfile_statistics): Compute blockvector count in
1197         separate loop.
1198         (dump_symtab_1): Update test for primary source symtab.
1199         (maintenance_info_symtabs): Update to handle compunit symtabs.
1200         (maintenance_check_symtabs): Ditto.
1201         * symtab.c (set_primary_symtab): Delete.
1202         (compunit_primary_filetab): New function.
1203         (compunit_language): New function.
1204         (iterate_over_some_symtabs): Change type of arguments "first",
1205         "after_last" to "struct compunit_symtab *".  All callers updated.
1206         Update to loop over symtabs in each compunit.
1207         (error_in_psymtab_expansion): Rename symtab argument to cust,
1208         and change type to "struct compunit_symtab *".  All callers updated.
1209         (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1210         Change result type to "struct compunit_symtab *".  All callers updated.
1211         (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1212         Change result type to "struct compunit_symtab *".  All callers updated.
1213         (find_pc_sect_line): Only loop over symtabs within selected compunit
1214         instead of all symtabs in the objfile.
1215         * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1216         <compunit_symtab> New member.
1217         <block_line_section>: Moved to compunit_symtab.
1218         <locations_valid>: Ditto.
1219         <epilogue_unwind_valid>: Ditto.
1220         <macro_table>: Ditto.
1221         <dirname>: Ditto.
1222         <debugformat>: Ditto.
1223         <producer>: Ditto.
1224         <objfile>: Ditto.
1225         <call_site_htab>: Ditto.
1226         <includes>: Ditto.
1227         <user>: Ditto.
1228         <primary>: Delete
1229         (SYMTAB_COMPUNIT): New macro.
1230         (SYMTAB_BLOCKVECTOR): Update definition.
1231         (SYMTAB_OBJFILE): Update definition.
1232         (SYMTAB_DIRNAME): Update definition.
1233         (struct compunit_symtab): New type.  Common members among all source
1234         symtabs within a compilation unit moved here.  All uses updated.
1235         (COMPUNIT_OBJFILE): New macro.
1236         (COMPUNIT_FILETABS): New macro.
1237         (COMPUNIT_DEBUGFORMAT): New macro.
1238         (COMPUNIT_PRODUCER): New macro.
1239         (COMPUNIT_DIRNAME): New macro.
1240         (COMPUNIT_BLOCKVECTOR): New macro.
1241         (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1242         (COMPUNIT_LOCATIONS_VALID): New macro.
1243         (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1244         (COMPUNIT_CALL_SITE_HTAB): New macro.
1245         (COMPUNIT_MACRO_TABLE): New macro.
1246         (ALL_COMPUNIT_FILETABS): New macro.
1247         (compunit_symtab_ptr): New typedef.
1248         (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1249
1250 2014-11-20  Joel Brobecker  <brobecker@adacore.com>
1251
1252         * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1253         if the TYPE_CODE of range_type's base type does not match
1254         the TYPE_CODE of encoding_type's base type.
1255
1256 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
1257
1258         * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1259         it starts with '<'.
1260
1261 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
1262
1263         * ada-lang.c (ada_is_redundant_range_encoding): New function.
1264         (ada_is_redundant_index_type_desc): New function.
1265         (to_fixed_array_type): Ignore parallel XA type if redundant.
1266
1267 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
1268
1269         * ada-lang.c (constrained_packed_array_type): Set the length
1270         of the return array as if both bounds where zero if that
1271         returned array's index type is dynamic.
1272
1273 2014-11-19  Yao Qi  <yao@codesourcery.com>
1274
1275         * config/i386/go32.mh (CC): Remove.
1276
1277 2014-11-18  Doug Evans  <xdje42@gmail.com>
1278
1279         * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR.  All uses
1280         updated.
1281
1282 2014-11-18  Doug Evans  <xdje42@gmail.com>
1283
1284         * buildsym.c (buildsym_objfile): New static global.
1285         (buildsym_comp_dir): New static global.
1286         (finish_block_internal): Delete arg objfile.  All callers updated.
1287         (finish_block): Delete arg objfile.  All callers updated.
1288         (start_subfile): Delete arg dirname.  All callers updated.
1289         (patch_subfile_names): Update buildsym_comp_dir.
1290         (get_macro_table): Delete arg objfile.  All callers updated.
1291         (start_symtab): New arg objfile.  All callers updated.
1292         Rename arg dirname to comp_dir.
1293         (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1294         (end_symtab_get_static_block): Delete arg objfile.  All callers
1295         updated.
1296         (end_symtab_without_blockvector): Ditto.
1297         (end_symtab_with_blockvector): Ditto.
1298         (end_symtab_from_static_block): Ditto.
1299         (end_symtab): Ditto.
1300         (end_expandable_symtab): Ditto.
1301         (augment_type_symtab): Ditto.
1302         * coffread.c (coff_start_symtab): New arg objfile.  All callers
1303         updated.
1304
1305 2014-11-18  Doug Evans  <xdje42@gmail.com>
1306
1307         * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE.  All uses
1308         updated.
1309
1310 2014-11-18  Doug Evans  <xdje42@gmail.com>
1311
1312         * symtab.h (SYMTAB_DIRNAME): New macro.  All uses of member
1313         symtab.dirname updated to use it.
1314
1315 2014-11-18  Doug Evans  <xdje42@gmail.com>
1316
1317         * symtab.h (SYMTAB_OBJFILE): New macro.  All uses of member
1318         symtab.objfile updated to use it.
1319
1320 2014-11-18  Doug Evans  <xdje42@gmail.com>
1321
1322         * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1323
1324 2014-11-18  Doug Evans  <xdje42@gmail.com>
1325
1326         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1327         SYMBOL_OBJFILE.
1328         * findvar.c (default_read_var_value): Ditto.
1329         * jv-lang.c (add_class_symtab_symbol): Ditto.
1330         * parse.c (operator_check_standard): Ditto.
1331         * printcmd.c (address_info): Ditto.
1332         * symtab.c (fixup_symbol_section): Ditto.
1333         (skip_prologue_sal): Ditto.
1334         * tracepoint.c (scope_info): Ditto.
1335         * valops.c (find_function_in_inferior): Ditto.
1336         * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1337         * python/py-symbol.c (set_symbol): Ditto.
1338
1339 2014-11-18  Doug Evans  <xdje42@gmail.com>
1340
1341         * buildsym.c (main_subfile): New static global.
1342         (free_subfiles_list): New function.
1343         (start_symtab): Set main_subfile.
1344         (restart_symtab): Replace init of subfiles, current_subfile with
1345         call to free_subfiles_list.
1346         (watch_main_source_file_lossage): Use main_subfile.
1347         (reset_symtab_globals): Replace init of current_subfile with call
1348         to free_subfiles_list.
1349         (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1350         functions, split out from ...
1351         (end_symtab_from_static_block): ... here.  Rewrite to call them.
1352
1353 2014-11-18  Doug Evans  <xdje42@gmail.com>
1354
1355         The result of symtab expansion is always a primary symtab.
1356         * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1357         (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1358         * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1359         (psymtab_to_symtab): Add comment and assert.
1360         (map_matching_symbols_psymtab): Remove unnecessary test for
1361         non-primary symtab.
1362
1363 2014-11-15  Doug Evans  <xdje42@gmail.com>
1364
1365         PR symtab/17559
1366         * symtab.c (find_pc_line_symtab): New function.
1367         * symtab.h (find_pc_line_symtab): Declare.
1368         * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1369         find_pc_symtab.
1370         * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1371         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1372         * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1373         * tui/tui-win.c (make_visible_with_new_height): Ditto.
1374         * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1375         (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1376
1377 2014-11-15  Doug Evans  <xdje42@gmail.com>
1378
1379         * symtab.c (expand_symtab_containing_pc): Renamed from
1380         find_pc_sect_symtab_via_partial.  All callers updated.
1381
1382 2014-11-15  Yao Qi  <yao@codesourcery.com>
1383
1384         * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1385
1386 2014-11-14  Joel Brobecker  <brobecker@adacore.com>
1387
1388         * common/common-defs.h: Move <stdarg.h> #include ahead of
1389         <stdio.h> #include.
1390
1391 2014-11-14  Pedro Alves  <palves@redhat.com>
1392
1393         * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1394         [!PHONY_ICONV] (gdb_iconv): New function.
1395         [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1396
1397 2014-11-13  Doug Evans  <dje@google.com>
1398
1399         PR symtab/17591
1400         * dwarf2read.c (find_slot_in_mapped_hash): Handle
1401         "(anonymous namespace)".
1402
1403 2014-11-13  Doug Evans  <dje@google.com>
1404
1405         * dwarf2read.c (update_enumeration_type_from_children): Avoid
1406         infinite loop.
1407
1408 2014-11-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1409
1410         * NEWS (maint set target-async): Fix typo.
1411
1412 2014-11-12  Pedro Alves  <palves@redhat.com>
1413
1414         * infrun.c (enum infwait_states, infwait_state): Delete.
1415
1416 2014-11-12  Pedro Alves  <palves@redhat.com>
1417
1418         * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1419         Rewrite stepping over a permanent breakpoint.
1420         (thread_still_needs_step_over, proceed): Don't set
1421         stepping_over_breakpoint for permanent breakpoints.
1422         (handle_signal_stop): Don't clear stepped_breakpoint.  Also pull
1423         single-step breakpoints out of the target on hardware step
1424         targets.
1425         (process_event_stop_test): If stepping a permanent breakpoint
1426         doesn't hit the step-resume breakpoint, delete the step-resume
1427         breakpoint.
1428         (switch_back_to_stepped_thread): Also check if the stepped thread
1429         has advanced already on hardware step targets.
1430         (currently_stepping): Return true if the thread stepped a
1431         breakpoint.
1432
1433 2014-11-12  Pedro Alves  <palves@redhat.com>
1434
1435         Mark locations as permanent, not the whole breakpoint.
1436         * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1437         (mark_breakpoints_out): Don't mark permanent breakpoints as
1438         uninserted.
1439         (breakpoint_init_inferior): Use mark_breakpoints_out.
1440         (breakpoint_here_p): Adjust.
1441         (bpstat_stop_status, describe_other_breakpoints): Remove handling
1442         of permanent breakpoints.
1443         (make_breakpoint_permanent): Mark each location as permanent,
1444         instead of marking the breakpoint.
1445         (add_location_to_breakpoint): If the location is permanent, mark
1446         it as such, and as inserted.
1447         (init_breakpoint_sal): Don't make the breakpoint permanent here.
1448         (bp_location_compare, update_global_location_list): Adjust.
1449         (update_breakpoint_locations): Don't make the breakpoint permanent
1450         here.
1451         (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1452         breakpoints.
1453         * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1454         (struct bp_location) <permanent>: New field.
1455         * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1456         reference to bp_permanent.
1457
1458 2014-11-12  Pedro Alves  <palves@redhat.com>
1459
1460         * arch-utils.c (default_skip_permanent_breakpoint): New function.
1461         * arch-utils.h (default_skip_permanent_breakpoint): New
1462         declaration.
1463         * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1464         Install default_skip_permanent_breakpoint as default method.
1465         * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1466         (i386_gdbarch_init): Don't install it.
1467         * infrun.c (resume): Assume there's always a
1468         gdbarch_skip_permanent_breakpoint implementation.
1469         * gdbarch.h, gdbarch.c: Regenerate.
1470
1471 2014-11-11  Daniel Colascione  <dancol@dancol.org>
1472
1473         Warn about cross-PID-namespace debugging.
1474         * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1475         * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1476         * linux-thread-db.c (check_pid_namespace_match): New function.
1477         (thread_db_inferior_created): Call it.
1478
1479 2014-11-10  Doug Evans  <xdje42@gmail.com>
1480
1481         * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1482         (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1483
1484 2014-11-10  Doug Evans  <xdje42@gmail.com>
1485
1486         * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1487
1488 2014-11-10  Doug Evans  <xdje42@gmail.com>
1489
1490         PR symtab/17564
1491         * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1492         (lookup_static_symbol): Move definition to new location and rewrite.
1493         (lookup_symbol_in_objfile): New function.
1494         (lookup_symbol_global_iterator_cb): Call it.
1495
1496 2014-11-10  Ulrich Weigand  <uweigand@de.ibm.com>
1497
1498         * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1499
1500 2014-11-07  Pedro Alves  <palves@redhat.com>
1501
1502         * infrun.c (process_event_stop_test) <subroutine check>: Don't
1503         check if we did a "nexti" inside a prologue.
1504         * symtab.c (in_prologue): Delete function.
1505         * symtab.h (in_prologue): Delete declaration.
1506
1507 2014-11-06  Doug Evans  <xdje42@gmail.com>
1508
1509         * symtab.h (lookup_global_symbol): Improve function comment.
1510
1511 2014-11-06  Doug Evans  <xdje42@gmail.com>
1512
1513         * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1514         All callers updated.
1515         * symtab.h (lookup_global_symbol): Update decl.
1516         (lookup_static_symbol): Move decl to better location.
1517
1518 2014-11-06  Doug Evans  <xdje42@gmail.com>
1519
1520         * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1521
1522 2014-11-06  Doug Evans  <xdje42@gmail.com>
1523
1524         * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1525         All callers updated.
1526         (lookup_symbol_in_all_objfiles): Renamed from
1527         lookup_symbol_aux_symtabs.  All callers updated.
1528         (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1529         All callers updated.
1530         (lookup_symbol_in_objfile_symtabs): Renamed from
1531         lookup_symbol_aux_objfile.  All callers updated.
1532
1533 2014-11-06  Doug Evans  <xdje42@gmail.com>
1534
1535         * symtab.c (lookup_symbol_in_block): Renamed from
1536         lookup_symbol_aux_block.  All callers updated.
1537
1538 2014-11-06  Doug Evans  <xdje42@gmail.com>
1539
1540         * symtab.c (lookup_static_symbol): Renamed from
1541         lookup_static_symbol_aux.  All callers updated.
1542         (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1543         All callers updated.
1544
1545 2014-11-06  Doug Evans  <xdje42@gmail.com>
1546
1547         * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1548         * block.c (block_lookup_symbol): Use it.
1549         * cp-support.c (make_symbol_overload_list_block): Use it.
1550         * symtab.c (iterate_over_symbols): Use it.
1551
1552 2014-11-06  Doug Evans  <xdje42@gmail.com>
1553
1554         * symtab.c (lookup_block_symbol): Moved to ...
1555         * block.c (block_lookup_symbol):  ... here and renamed.
1556         All callers updated.
1557         * block.h (block_lookup_symbol): Declare.
1558         * symtab.h (lookup_block_symbol): Delete.
1559
1560 2014-11-06  Doug Evans  <xdje42@gmail.com>
1561
1562         * ada-lang.c (ada_make_symbol_completion_list): Use
1563         ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1564         * symtab.c (lookup_objfile_from_block): Ditto.
1565
1566 2014-11-06  Doug Evans  <xdje42@gmail.com>
1567
1568         * gdbtypes.h (TYPE_CODE_CLASS): Delete.  All uses changed to use
1569         TYPE_CODE_STRUCT.
1570
1571 2014-11-06  Doug Evans  <xdje42@gmail.com>
1572
1573         * objfiles.c (get_objfile_arch): Constify.
1574         * objfiles.h (get_objfile_arch): Update prototype.
1575         * solib.c (solib_global_lookup): Fetch arch from objfile,
1576         not target_gdbarch.
1577
1578 2014-11-06  Sandra Loosemore  <sandra@codesourcery.com>
1579
1580         * nios2-tdep.c (wild_insn): Delete.
1581         (profiler_insn, irqentry_insn): Delete.
1582         (nios2_match_sequence): Delete.
1583         (nios2_analyze_prologue): Update comments.  Remove matching
1584         of obsolete profiler_insn and irqentry_insn sequences.
1585
1586 2014-11-05  Alan Modra  <amodra@gmail.com>
1587
1588         * charset.c (convert_between_encodings): Shrink obstack using
1589         obstack_blank_fast.
1590         * minsyms.c (install_minimal_symbols): Likewise.
1591         * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1592         to char* before doing pointer arithmetic.
1593
1594 2014-11-04  Simon Marchi  <simon.marchi@ericsson.com>
1595
1596         * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1597
1598 2014-11-04  Pedro Alves  <palves@redhat.com>
1599
1600         * breakpoint.c (breakpoint_thread_match): Delete function.
1601         * breakpoint.h (breakpoint_thread_match): Delete declaration.
1602
1603 2014-11-03  Siva Chandra Reddy  <sivachandra@google.com>
1604
1605         PR c++/17494
1606         * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1607         the method args also under EVAL_SKIP when evaluating method
1608         calls under EVAL_SKIP.
1609
1610 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
1611
1612         * dwarf2loc.c (read_pieced_value): Do big endian
1613         processing only if gdb_regnum is not -1.
1614         (write_pieced_value): Ditto.
1615
1616 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
1617
1618         * arm-linux-tdep.c (arm_linux_init_abi): Use
1619         info.byte_order_for_code to choose endianity of breakpoint
1620         instructions snippets.
1621
1622 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
1623
1624         * arm-tdep.c (extract_arm_insn): Use
1625         gdbarch_byte_order_for_code to read arm instruction.
1626
1627 2014-11-02  Doug Evans  <xdje42@gmail.com>
1628
1629         * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1630
1631 2014-11-02  Doug Evans  <xdje42@gmail.com>
1632
1633         * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1634         main_subfile before returning.
1635
1636 2014-10-31  Doug Evans  <xdje42@gmail.com>
1637
1638         * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1639         (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1640
1641 2014-10-31  Doug Evans  <xdje42@gmail.com>
1642
1643         * valops.c (value_cast_pointers): Fix whitespace.
1644         (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1645         Ditto.
1646
1647 2014-10-30  Doug Evans  <dje@google.com>
1648
1649         * NEWS: Mention ability add attributes to gdb.Objfile and
1650         gdb.Progspace objects.
1651         * python/py-objfile.c (objfile_object): New member dict.
1652         (objfpy_dealloc): Py_XDECREF dict.
1653         (objfpy_initialize): Initialize dict.
1654         (objfile_getset): Add __dict__.
1655         (objfile_object_type): Set tp_dictoffset member.
1656         * python/py-progspace.c (progspace_object): New member dict.
1657         (pspy_dealloc): Py_XDECREF dict.
1658         (pspy_initialize): Initialize dict.
1659         (pspace_getset): Add __dict__.
1660         (pspace_object_type): Set tp_dictoffset member.
1661
1662 2014-10-30  Yao Qi  <yao@codesourcery.com>
1663
1664         * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1665         replace '\\' with '\\\\'.
1666
1667 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
1668
1669         GDB 7.8.1 released.
1670
1671 2014-10-29  Pedro Alves  <palves@redhat.com>
1672
1673         PR gdb/17408
1674         * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1675         instead of assuming a thread with a stepping range is always
1676         stepping.
1677
1678 2014-10-29  Pedro Alves  <palves@redhat.com>
1679
1680         PR python/17372
1681         * event-top.c (change_line_handler): Call
1682         gdb_rl_callback_handler_remove instead of
1683         rl_callback_handler_remove.
1684         (callback_handler_installed): New global.
1685         (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1686         (gdb_rl_callback_handler_reinstall): New functions.
1687         (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1688         gdb_rl_callback_handler_install instead of
1689         rl_callback_handler_remove and rl_callback_handler_install.
1690         (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1691         instead of rl_callback_handler_remove.
1692         * event-top.h (gdb_rl_callback_handler_remove)
1693         (gdb_rl_callback_handler_install)
1694         (gdb_rl_callback_handler_reinstall): New declarations.
1695         * infrun.c (reinstall_readline_callback_handler_cleanup): New
1696         cleanup function.
1697         (fetch_inferior_event): Install it.
1698         * top.c (gdb_readline_wrapper_line) Call
1699         gdb_rl_callback_handler_remove instead of
1700         rl_callback_handler_remove.
1701         (gdb_readline_wrapper_cleanup): Don't call
1702         rl_callback_handler_install.
1703
1704 2014-10-29  Pedro Alves  <palves@redhat.com>
1705
1706         * event-top.c (command_line_handler): Clear the first byte of
1707         linebuffer, when it is first allocated.
1708
1709 2014-10-29  Pedro Alves  <palves@redhat.com>
1710
1711         * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1712         TRY_CATCH.
1713
1714 2014-10-29  Pedro Alves  <palves@redhat.com>
1715
1716         PR tui/16138
1717         PR tui/17519
1718         * tui/tui-interp.c (tui_is_toplevel): Delete global.
1719         (tui_allowed_p): Delete function.
1720         * tui/tui.c: Include "interps.h".
1721         (tui_enable): Don't use tui_allowed_p.  Error out here with
1722         detailed error messages if the TUI is the top level interpreter,
1723         or if output is not a terminal.  Use newterm instead of initscr,
1724         and error out if initializing the terminal fails.  Also error out if
1725         the terminal doesn't support cursor addressing.
1726         * tui/tui.h (tui_allowed_p): Delete declaration.
1727
1728 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
1729
1730         * arm-tdep.c (arm_skip_stack_protector): Return early if
1731         address loaded by first "ldr" instruction does not have
1732         a corresponding minimal symbol.  Update comment.
1733
1734 2014-10-29  Yao Qi  <yao@codesourcery.com>
1735
1736         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1737         loaded address correctly of ldr instruction.
1738
1739 2014-10-28  Pedro Alves  <palves@redhat.com>
1740
1741         PR gdb/12623
1742         * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1743         field.
1744         * infrun.c (resume) <stepping breakpoint instruction>: Set the
1745         thread's stepped_breakpoint field.  Skip if reverse debugging.
1746         Add comment.
1747         (init_thread_stepping_state, handle_signal_stop): Clear the
1748         thread's stepped_breakpoint field.
1749
1750 2014-10-27  Pedro Alves  <palves@redhat.com>
1751
1752         * remote.c (remote_thread_alive): New, factored out from ...
1753         (remote_thread_alive): ... this.
1754         (remote_update_thread_list): Bail out before deleting threads if
1755         the target returned an empty list, and, the current thread has a
1756         magic/fake ptid.
1757
1758 2014-10-27  Pedro Alves  <palves@redhat.com>
1759
1760         * infrun.c (handle_signal_stop): Also skip handlers when a random
1761         signal arrives while handling a "stepi" or a "nexti".  Set the
1762         thread's 'step_after_step_resume_breakpoint' flag.
1763
1764 2014-10-27  Luis Machado  <lgustavo@codesourcery.com>
1765
1766         * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1767         (arm_record_ld_st_imm_offset): Reimplement to cover all
1768         load/store cases for ARM opcode 010.
1769         (arm_record_ld_st_multiple): Reimplement to cover all
1770         load/store cases for ARM opcode 100.
1771
1772 2014-10-26  Doug Evans  <xdje42@gmail.com>
1773
1774         * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1775
1776 2014-10-26  Doug Evans  <xdje42@gmail.com>
1777
1778         * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1779         parameter "kind" to "block_index".
1780         * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1781         "block_index".
1782         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1783
1784 2014-10-26  Doug Evans  <xdje42@gmail.com>
1785
1786         * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1787
1788 2014-10-26  Doug Evans  <xdje42@gmail.com>
1789
1790         * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1791         obstack_alloc.
1792
1793 2014-10-26  Doug Evans  <xdje42@gmail.com>
1794
1795         * parser-defs.h (block_found): Move decl from here ...
1796         * symtab.h (block_found): ... to here.
1797
1798 2014-10-26  Doug Evans  <xdje42@gmail.com>
1799
1800         * symtab.h (struct field_of_this_result): Fix typo in comment.
1801         (lookup_symbol_in_language): Move function comment here.
1802         (lookup_symbol): Improve function comment.
1803         (basic_lookup_symbol_nonlocal): Ditto.
1804         (lookup_symbol_static, lookup_symbol_global): Ditto.
1805         (lookup_symbol_aux_block): Ditto.
1806         (lookup_language_this): Add function comment.
1807         (lookup_static_symbol_aux): Explicitly mark as extern.  Improve
1808         function comment.
1809         (lookup_block_symbol): Improve function comment.
1810         (lookup_struct): Fix capitalization in function comment.
1811         (lookup_transparent_type): Add function comment.
1812         (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1813         Improve function comment.
1814         (lookup_objfile_from_block): Add function comment.
1815         * symtab.c (lookup_symbol_in_language): Update function comment.
1816         (lookup_symbol, lookup_language_this): Ditto.
1817         (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1818         (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1819         (basic_lookup_symbol_nonlocal): Ditto.
1820         (lookup_symbol_static, lookup_symbol_global): Ditto.
1821         (lookup_transparent_type, lookup_block_symbol): Ditto.
1822
1823 2014-10-25  Doug Evans  <xdje42@gmail.com>
1824
1825         * symtab.c (types_info): Delete forward decl.
1826         (functions_info, variables_info, sources_info): Ditto.
1827         (_initialize_symtab): Rewrite forward decl to use
1828         initialize_file_ftype.
1829
1830 2014-10-25  Doug Evans  <xdje42@gmail.com>
1831
1832         * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1833
1834 2014-10-25  Doug Evans  <xdje42@gmail.com>
1835
1836         * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1837         of local var child_die.
1838
1839 2014-10-24  Don Breazeal  <donb@codesourcery.com>
1840
1841         * infrun.c (follow_fork_inferior): Update fork message printing
1842         to use target_terminal_ours_for_output instead of
1843         target_terminal_ours, to use _() for all format strings, to print
1844         "vfork" instead of "fork" for vforks, and to add a detach message.
1845         (handle_vfork_child_exec_or_exit): Update message printing to use
1846         target_terminal_ours_for_output instead of target_terminal_ours, to
1847         use _() for all format strings, and to fix some formatting.
1848
1849 2014-10-24  Pedro Alves  <palves@redhat.com>
1850
1851         * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1852         * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1853         * config/vax/vax.mh: Delete.
1854         * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1855         obsolete configurations section.
1856         * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1857         * vax-nat.c: Delete file.
1858
1859 2014-10-24  Pedro Alves  <palves@redhat.com>
1860
1861         * NEWS (Removed targets): Add OS/arch column.
1862
1863 2014-10-24  Siva Chandra Reddy  <sivachandra@google.com>
1864
1865         * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1866         on the arg type of a constructor only if it is of reference type.
1867
1868 2014-10-23  Sandra Loosemore  <sandra@codesourcery.com>
1869
1870         * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1871         accessors and constants from nios2 opcodes update.
1872         (nios2_get_next_pc): Likewise.
1873
1874 2014-10-19  Doug Evans  <xdje42@gmail.com>
1875
1876         * gdbthread.h (set_running): Fix comment.
1877         (set_executing, finish_thread_state): Fix comment.
1878
1879 2014-10-18  Doug Evans  <xdje42@gmail.com>
1880
1881         * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1882
1883 2014-10-17  Doug Evans  <dje@google.com>
1884
1885         * NEWS: Mention new event gdb.clear_objfiles.
1886         * python/py-event.h (emit_clear_objfiles_event): Clear
1887         * python/py-events.h (events_object): New member clear_objfiles.
1888         * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1889         event.
1890         * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1891         emit clear_objfiles event.
1892         * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1893         function.
1894         (emit_clear_objfiles_event): New function.
1895         (clear_objfiles): New event.
1896         * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1897         Declare.
1898         * python/python.c (_initialize_python): Call
1899         gdbpy_initialize_clear_objfiles_event.
1900
1901 2014-10-17  Doug Evans  <dje@google.com>
1902
1903         * NEWS: Mention new gdb.Objfile.progspace attribute.
1904         * python/py-objfile.c (objfpy_get_progspace): New function.
1905         (objfile_getset): New entry for "progspace".
1906
1907 2014-10-17  Pedro Alves  <palves@redhat.com>
1908
1909         PR gdb/17471
1910         * infcmd.c (strip_bg_char): Change prototype and rewrite.  Now
1911         returns a copy of the input.
1912         (run_command_1, continue_command, step_1, jump_command)
1913         (signal_command, until_command, advance_command, finish_command)
1914         (attach_command): Adjust and install a cleanup to free the
1915         stripped args.
1916
1917 2014-10-17  Pedro Alves  <palves@redhat.com>
1918
1919         PR gdb/17300
1920         * infcmd.c (continue_1): If continuing all threads in the
1921         foreground, make sure the inferior's terminal settings are put in
1922         effect.
1923
1924 2014-10-17  Pedro Alves  <palves@redhat.com>
1925
1926         PR gdb/17472
1927         * annotate.c (annotate_breakpoints_invalid): Use
1928         target_terminal_our_for_output instead of target_terminal_ours.
1929         Give back the terminal to the target.
1930         (annotate_frames_invalid): Likewise.
1931
1932 2014-10-17  Pedro Alves  <palves@redhat.com>
1933
1934         * target.c (enum terminal_state): New enum.
1935         (terminal_state): New global.
1936         (target_terminal_init): New function.
1937         (target_terminal_inferior): Skip if inferior already owns the
1938         terminal.
1939         (target_terminal_ours, target_terminal_ours_for_output): New
1940         functions.
1941         * target.h (target_terminal_init): Convert to function prototype.
1942         (target_terminal_ours_for_output): Convert to function prototype
1943         and tweak comment.
1944         (target_terminal_ours): Convert to function prototype and tweak
1945         comment.
1946         * windows-nat.c (do_initial_windows_stuff): Call
1947         target_terminal_init instead of child_terminal_init_with_pgrp.
1948
1949 2014-10-17  Pedro Alves  <palves@redhat.com>
1950
1951         * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1952         (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1953         (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1954         solib-osf.c.
1955         * NEWS: Mention that support for alpha*-*-osf* has been removed.
1956         * ada-lang.h [__alpha__ && __osf__]
1957         (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1958         * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1959         * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1960         GDB_OSABI_OSF1.
1961         * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1962         files.
1963         * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1964         (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1965         * configure: Regenerate.
1966         * configure.ac: Remove references to osf.
1967         * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1968         section.  Remove all other references to osf.
1969         * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1970         Remove all other references to osf.
1971         * dec-thread.c: Delete file.
1972         * defs.h (GDB_OSABI_OSF1): Delete.
1973         * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1974         defined.
1975         * osabi.c (gdb_osabi_names): Delete "OSF/1".
1976         * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1977         Delete code.
1978         (unconditionally_kill_inferior)
1979         [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1980         * solib-osf.c: Delete file.
1981
1982 2014-10-17  Pedro Alves  <palves@redhat.com>
1983
1984         * remote.c (clear_threads_listing_context): Move higher up, out of
1985         the HAVE_LIBEXPAT guard.
1986
1987 2014-10-16  Tristan Gingold  <gingold@adacore.com>
1988
1989         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1990         (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1991         on amd64.
1992
1993 2014-10-15  Pedro Alves  <palves@redhat.com>
1994
1995         * dec-thread.c (dec_thread_count_gdb_threads)
1996         (dec_thread_add_gdb_thread): Delete.
1997         (dec_thread_update_thread_list): Delete.
1998         (dec_thread_find_new_threads): Rename to ...
1999         (dec_thread_update_thread_list): ... this.  Delete GDB-size
2000         threads that are no longer found in dec_thread_list.
2001         (resync_thread_list): Delete.
2002         (dec_thread_wait): Call dec_thread_update_thread_list instead of
2003         resync_thread_list.
2004
2005 2014-10-15  Pedro Alves  <palves@redhat.com>
2006
2007         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
2008         * remote.c (remote_update_thread_list): Skip calling prune_threads
2009         if any thread listing method is supported, and instead walk over
2010         the set of remote threads listed, deleting those that are not
2011         found in GDB's thread list.
2012
2013 2014-10-15  Pedro Alves  <palves@redhat.com>
2014
2015         * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
2016         * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
2017         (bsd_uthread_update_thread_list): ... this.  Call prune_threads.
2018         (bsd_uthread_target): Adjust.
2019         * corelow.c (core_open): Adjust.
2020         * dec-thread.c (dec_thread_find_new_threads): Update comment.
2021         (dec_thread_update_thread_list): New function.
2022         (init_dec_thread_ops): Adjust.
2023         * gdbthread.h (prune_threads): New declaration.
2024         * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
2025         (thread_db_update_thread_list): ... this.  Call prune_threads.
2026         (init_thread_db_ops): Adjust.
2027         * nto-procfs.c (procfs_find_new_threads): Rename to ...
2028         (procfs_update_thread_list): ... this.  Call prune_threads.
2029         (procfs_attach, procfs_create_inferior, init_procfs_targets):
2030         Adjust.
2031         * obsd-nat.c (obsd_find_new_threads): Rename to ...
2032         (obsd_update_thread_list): ... this.  Call prune_threads.
2033         (obsd_add_target): Adjust.
2034         * procfs.c (procfs_target): Adjust.
2035         (procfs_notice_thread): Update comment.
2036         (procfs_find_new_threads): Rename to ...
2037         (procfs_update_thread_list): ... this.  Call prune_threads.
2038         * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
2039         comment.
2040         (ravenscar_wait): Adjust.
2041         (ravenscar_find_new_threads): Rename to ...
2042         (ravenscar_update_thread_list): ... this.  Call prune_threads.
2043         (init_ravenscar_thread_ops): Adjust.
2044         * record-btrace.c (record_btrace_find_new_threads): Rename to ...
2045         (record_btrace_update_thread_list): ... this.  Adjust comment.
2046         (init_record_btrace_ops): Adjust.
2047         * remote.c (remote_threads_info): Rename to ...
2048         (remote_update_thread_list): ... this.  Call prune_threads.
2049         (remote_start_remote, extended_remote_attach_1, init_remote_ops):
2050         Adjust.
2051         * sol-thread.c (check_for_thread_db): Adjust.
2052         (sol_find_new_threads_callback): Rename to ...
2053         (sol_update_thread_list_callback): ... this.
2054         (sol_find_new_threads): Rename to ...
2055         (sol_update_thread_list): ... this.  Call prune_threads.  Adjust.
2056         (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
2057         * target-delegates.c: Regenerate.
2058         * target.c (target_find_new_threads): Rename to ...
2059         (target_update_thread_list): ... this.
2060         * target.h (struct target_ops): Rename to_find_new_threads field
2061         to to_update_thread_list.
2062         (target_find_new_threads): Rename to ...
2063         (target_update_thread_list): ... this.
2064         * thread.c (prune_threads): Make extern.
2065         (update_thread_list): Adjust.
2066
2067 2014-10-15  Pedro Alves  <palves@redhat.com>
2068
2069         * remote.c (remote_get_threadlist, remote_threadlist_iterator):
2070         Add describing comment.  Return -1 if the qL packet is not
2071         supported.
2072         (struct thread_item, thread_item_t): Move higher up in
2073         the file.  Add comments.
2074         (struct threads_parsing_context): Move higher up in
2075         the file, add comments, and remote to ...
2076         (struct threads_listing_context): ... this.
2077         (remote_newthread_step): Don't add the thread to GDB's thread
2078         database here.  Instead push it to the thread_listing_context
2079         list.
2080         (remote_find_new_threads): Rename to ...
2081         (remote_get_threads_with_ql): ... this.  Add target_ops and
2082         targets_listing_context parameters.  Pass down context.
2083         (start_thread): Adjust.
2084         (clear_threads_parsing_context): Rename to ...
2085         (clear_threads_listing_context): ... this.
2086         (remote_get_threads_with_qxfer): New, with parts salvaged from old
2087         remote_threads_info.
2088         (remote_get_threads_with_qthreadinfo): Ditto.
2089         (remote_threads_info): Reimplement.
2090
2091 2014-10-15  Pedro Alves  <palves@redhat.com>
2092
2093         * infrun.c (resume): Don't force displaced-stepping for all
2094         single-steps on software single-stepping archs.
2095
2096 2014-10-15  Pedro Alves  <palves@redhat.com>
2097
2098         * breakpoint.c (single_step_breakpoints): Delete global.
2099         (insert_single_step_breakpoint): Adjust to store the breakpoint
2100         pointer in the current thread.
2101         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2102         (cancel_single_step_breakpoints): Delete functions.
2103         (breakpoint_has_location_inserted_here): Make extern.
2104         (single_step_breakpoint_inserted_here_p): Adjust to walk the
2105         breakpoint list.
2106         * breakpoint.h (breakpoint_has_location_inserted_here): New
2107         declaration.
2108         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2109         (cancel_single_step_breakpoints): Remove declarations.
2110         * gdbthread.h (struct thread_control_state)
2111         <single_step_breakpoints>: New field.
2112         (delete_single_step_breakpoints)
2113         (thread_has_single_step_breakpoints_set)
2114         (thread_has_single_step_breakpoint_here): New declarations.
2115         * infrun.c (follow_exec): Also clear the single-step breakpoints.
2116         (singlestep_breakpoints_inserted_p, singlestep_ptid)
2117         (singlestep_pc): Delete globals.
2118         (infrun_thread_ptid_changed): Remove references to removed
2119         globals.
2120         (resume_cleanups): Delete the current thread's single-step
2121         breakpoints.
2122         (maybe_software_singlestep): Remove references to removed globals.
2123         (resume): Adjust to use thread_has_single_step_breakpoints_set and
2124         delete_single_step_breakpoints.
2125         (init_wait_for_inferior): Remove references to removed globals.
2126         (delete_thread_infrun_breakpoints): Delete the thread's
2127         single-step breakpoints too.
2128         (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2129         single-step breakpoints here.
2130         (delete_stopped_threads_single_step_breakpoints): New function.
2131         (adjust_pc_after_break): Adjust to use
2132         thread_has_single_step_breakpoints_set.
2133         (handle_inferior_event): Remove references to removed globals.
2134         Use delete_stopped_threads_single_step_breakpoints.
2135         (handle_signal_stop): Adjust to per-thread single-step
2136         breakpoints.  Swap test order to do cheaper tests first.
2137         (switch_back_to_stepped_thread): Extend debug output.  Remove
2138         references to removed globals.
2139         * record-full.c (record_full_wait_1): Adjust to per-thread
2140         single-step breakpoints.
2141         * thread.c (delete_single_step_breakpoints)
2142         (thread_has_single_step_breakpoints_set)
2143         (thread_has_single_step_breakpoint_here): New functions.
2144         (clear_thread_inferior_resources): Also delete the thread's
2145         single-step breakpoints.
2146
2147 2014-10-15  Pedro Alves  <palves@redhat.com>
2148
2149         * thread.c (delete_thread_breakpoint): New function.
2150         (delete_step_resume_breakpoint)
2151         (delete_exception_resume_breakpoint): Use it.
2152         (delete_at_next_stop): New function.
2153         (clear_thread_inferior_resources): Use delete_at_next_stop.
2154
2155 2014-10-15  Pedro Alves  <palves@redhat.com>
2156
2157         * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2158         (breakpoint_inserted_here_p): ... here.  Remove special case for
2159         software single-step breakpoints.
2160         (find_non_raw_software_breakpoint_inserted_here): Inline ...
2161         (software_breakpoint_inserted_here_p): ... here.  Remove special
2162         case for software single-step breakpoints.
2163         (bp_target_info_copy_insertion_state)
2164         (deprecated_insert_raw_breakpoint)
2165         (deprecated_remove_raw_breakpoint): Delete functions.
2166         * breakpoint.h (deprecated_insert_raw_breakpoint)
2167         (deprecated_remove_raw_breakpoint): Remove declarations.
2168
2169 2014-10-15  Pedro Alves  <palves@redhat.com>
2170
2171         PR breakpoints/9649
2172         * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2173         Delete array globals.
2174         (single_step_breakpoints): New global.
2175         (breakpoint_xfer_memory): Remove special handling for single-step
2176         breakpoints.
2177         (update_breakpoints_after_exec): Delete bp_single_step
2178         breakpoints.
2179         (detach_breakpoints): Remove special handling for single-step
2180         breakpoints.
2181         (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2182         (bpstat_stop_status): Add comment.
2183         (bpstat_what, bptype_string, print_one_breakpoint_location)
2184         (adjust_breakpoint_address, init_bp_location): Handle
2185         bp_single_step.
2186         (new_single_step_breakpoint): New function.
2187         (set_momentary_breakpoint, bkpt_remove_location): Remove special
2188         handling for single-step breakpoints.
2189         (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2190         (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2191         Rewrite.
2192         (detach_single_step_breakpoints, find_single_step_breakpoint):
2193         Delete functions.
2194         (breakpoint_has_location_inserted_here): New function.
2195         (single_step_breakpoint_inserted_here_p): Rewrite.
2196         * breakpoint.h: Remove FIXME.
2197         (enum bptype) <bp_single_step>: New enum value.
2198         (insert_single_step_breakpoint): Update comment.
2199         * infrun.c (resume_cleanups)
2200         (delete_step_thread_step_resume_breakpoint): Remove single-step
2201         breakpoints.
2202         (fetch_inferior_event): Install a cleanup that removes infrun
2203         breakpoints.
2204         (switch_back_to_stepped_thread) <expect thread advanced also>:
2205         Clear step-over info.
2206
2207 2014-10-15  Pedro Alves  <palves@redhat.com>
2208
2209         * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2210         (delete_thread_infrun_breakpoints): New function, with parts
2211         salvaged from delete_step_resume_breakpoint_callback.
2212         (delete_step_thread_step_resume_breakpoint): Delete.
2213         (for_each_just_stopped_thread_callback_func): New typedef.
2214         (for_each_just_stopped_thread): New function.
2215         (delete_just_stopped_threads_infrun_breakpoints): New function.
2216         (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2217         (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2218         ... this.  Adjust.
2219         (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2220
2221 2014-10-15  Pedro Alves  <palves@redhat.com>
2222
2223         * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2224         trying to step past a non-steppable watchpoint.
2225         * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2226         field.
2227         * infrun.c (struct step_over_info): Add new field
2228         'nonsteppable_watchpoint_p' and adjust comments.
2229         (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2230         Adjust.
2231         (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2232         (stepping_past_nonsteppable_watchpoint): New function.
2233         (step_over_info_valid_p): Also return true if stepping past a
2234         nonsteppable watchpoint.
2235         (proceed): Adjust call to set_step_over_info.  Remove reference to
2236         init_infwait_state.
2237         (init_wait_for_inferior): Remove reference to init_infwait_state.
2238         (waiton_ptid): Delete global.
2239         (struct execution_control_state)
2240         <stepped_after_stopped_by_watchpoint>: Delete field.
2241         (wait_for_inferior, fetch_inferior_event): Always pass
2242         minus_one_ptid to target_wait.
2243         (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2244         field.
2245         (init_infwait_state): Delete function.
2246         (handle_inferior_event): Remove infwait_state handling.
2247         (handle_signal_stop) <watchpoints handling>: Adjust after
2248         stepped_after_stopped_by_watchpoint removal.  Don't remove
2249         breakpoints here nor set infwait_state.  Set the thread's
2250         stepping_over_watchpoint flag, and call keep_going instead.
2251         (keep_going): Handle stepping_over_watchpoint.  Adjust
2252         set_step_over_info calls.
2253         * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2254         function.
2255
2256 2014-10-15  Pedro Alves  <palves@redhat.com>
2257
2258         * infrun.c (step_over_info_valid_p): New function.
2259         (resume): Use step_over_info_valid_p instead of checking the
2260         threads's trap_expected flag.
2261
2262 2014-10-15  Doug Evans  <dje@google.com>
2263             Walfred Tedeschi  <walfred.tedeschi@intel.com>
2264
2265         PR python/17364
2266         * python/lib/gdb/__init__.py (packages): Add "printer".
2267         * python/lib/gdb/command/bound_registers.py: Moved to ...
2268         * python/lib/gdb/printer/bound_registers.py: ... here.
2269         Add printer to global set of builtin printers.  Rename printer from
2270         "bound" to "mpx_bound128".
2271         * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2272         registered as global "builtin" printer.
2273         (add_builtin_pretty_printer): New function.
2274         * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2275         gdb/printer/__init__.py.
2276
2277 2014-10-15  Iain Buclaw  <ibuclaw@gdcproject.org>
2278
2279         * Makefile.in (SFILES): Remove d-support.c.
2280         (COMMON_OBS): Remove d-support.o.
2281         * d-lang.h (d_parse_symbol): Remove declaration.
2282         * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2283         * d-support.c: Remove file.
2284
2285 2014-10-15  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2286
2287         * gdb/infrun.c (process_event_stop_test): Apply
2288         gdbarch_addr_bits_remove to longjmp resume address.
2289
2290 2014-10-15  Pedro Alves  <palves@redhat.com>
2291
2292         * regformats/microblaze.dat: Delete file.
2293
2294 2014-10-15  Ajit Agarwal  <ajitkum@xilinx.com>
2295
2296         * features/Makefile (microblaze-expedite): Replace pc with rpc.
2297         * regformats/microblaze-with-stack-protect.dat: Regenerate.
2298
2299 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
2300
2301         * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2302         as non-trivial.
2303
2304 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
2305
2306         PR c++/13403
2307         PR c++/15154
2308         * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2309         with qualified args.
2310
2311 2014-10-14  Joel Brobecker  <brobecker@adacore.com>
2312
2313         * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2314         of the case where the second operand is a pointer.
2315         <BINOP_SUB>: Likewise.
2316
2317 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
2318
2319         * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2320         only if it is not NULL.
2321         (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2322         * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2323         (struct probe_ops) <clear_semaphore>: Likewise.
2324         * tracepoint.c (start_tracing): Call set_semaphore only if it is
2325         not NULL.
2326         (stop_tracing): Likewise, for clear_semaphore.
2327
2328 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
2329
2330         * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2331         using language_c, instead of current_language.
2332
2333 2014-10-13  Doug Evans  <dje@google.com>
2334
2335         * python/py-objfile.c (objfpy_initialize): New function.
2336         (objfpy_new, objfile_to_objfile_object): Call it.
2337         * python/py-progspace.c (pspy_initialize): New function.
2338         (pspy_new, pspace_to_pspace_object): Call it.
2339
2340 2014-10-13  Miroslav Franc  <mfranc@redhat.com>
2341             Jan Kratochvil  <jan.kratochvil@redhat.com>
2342
2343         Fix "save breakpoints" for "catch" command.
2344         * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2345         newline.
2346
2347 2014-10-12  Miroslav Franc  <mfranc@redhat.com>
2348
2349         Fix "save breakpoints" for "disable $bpnum" command.
2350         * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2351
2352 2014-10-10  Pedro Alves  <palves@redhat.com>
2353
2354         * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2355         (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2356         (HFILES_NO_SRCDIR): Remove solib-irix.h.
2357         * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2358         and been removed.
2359         * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2360         * configure.ac: Remove references to IRIX.
2361         * configure.host: Add *-*-irix* to the obsolete hosts section.
2362         Remove all other references to irix.
2363         * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2364         Delete files.
2365
2366 2014-10-10  Ajit Agarwal  <ajitkum@xilinx.com>
2367
2368         * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2369         isn't valid, release the tdesc arch data and return NULL.
2370
2371 2014-10-10  Pedro Alves  <palves@redhat.com>
2372
2373         * linux-tdep.c: Include observer.h.
2374         (linux_inferior_data): New global.
2375         (struct linux_info): New structure.
2376         (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2377         (get_linux_inferior_data): New functions.
2378         (linux_vsyscall_range): Rename to ...
2379         (linux_vsyscall_range_raw): ... this.
2380         (linux_vsyscall_range): New function; handles caching.
2381         (_initialize_linux_tdep): Register linux_inferior_data.  Install
2382         inferior_exit and inferior_appeared observers.
2383
2384 2014-10-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
2385             Pedro Alves  <palves@redhat.com>
2386
2387         PR symtab/14466
2388         * solib-svr4.c (svr4_read_so_list): Rename to ...
2389         (svr4_current_sos_1): ... this and change the function comment.
2390         (svr4_current_sos): New function.
2391
2392 2014-10-10  Pedro Alves  <palves@redhat.com>
2393
2394         * arch-utils.c (default_vsyscall_range): New function.
2395         * arch-utils.h (default_vsyscall_range): New declaration.
2396         * gdbarch.sh (vsyscall_range): New hook.
2397         * gdbarch.h, gdbarch.c: Regenerate.
2398         * linux-tdep.c (linux_vsyscall_range): New function.
2399         (linux_init_abi): Install linux_vsyscall_range as
2400         vsyscall_range gdbarch hook.
2401         * memrange.c (address_in_mem_range): New function.
2402         * memrange.h (address_in_mem_range): New declaration.
2403         * symfile-mem.c (find_vdso_size): Delete function.
2404         (add_vsyscall_page): Use gdbarch_vsyscall_range.
2405
2406 2014-10-10  Pedro Alves  <palves@redhat.com>
2407
2408         * infrun.c (normal_stop): Fix typo in comment.
2409
2410 2014-10-09  Sergio Durigan Junior  <sergiodj@redhat.com>
2411
2412         PR tdep/9390
2413         * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2414         typo when using logical AND to determine instruction type.
2415
2416 2014-10-09  Yao Qi  <yao@codesourcery.com>
2417
2418         * infrun.c (handle_signal_stop): Remove local variable
2419         'printed'.
2420
2421 2014-10-08  Stan Shebs  <stan@codesourcery.com>
2422
2423         * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2424
2425 2014-10-08  Gary Benson  <gbenson@redhat.com>
2426
2427         * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2428
2429 2014-10-08  Gary Benson  <gbenson@redhat.com>
2430
2431         * common/common-defs.h: Include common-exceptions.h.
2432         * exceptions.h: Do not include common-exceptions.h.
2433
2434 2014-10-08  Gary Benson  <gbenson@redhat.com>
2435
2436         * common/common-defs.h: Include cleanups.h.
2437         * common/common-exceptions.c: Do not include cleanups.h.
2438         * utils.h: Likewise.
2439
2440 2014-10-08  Gary Benson  <gbenson@redhat.com>
2441
2442         * ada-lang.c: Do not include exceptions.h.
2443         * ada-valprint.c: Likewise.
2444         * amd64-tdep.c: Likewise.
2445         * auto-load.c: Likewise.
2446         * block.c: Likewise.
2447         * break-catch-throw.c: Likewise.
2448         * breakpoint.c: Likewise.
2449         * btrace.c: Likewise.
2450         * c-lang.c: Likewise.
2451         * cli/cli-cmds.c: Likewise.
2452         * cli/cli-interp.c: Likewise.
2453         * cli/cli-script.c: Likewise.
2454         * completer.c: Likewise.
2455         * corefile.c: Likewise.
2456         * corelow.c: Likewise.
2457         * cp-abi.c: Likewise.
2458         * cp-support.c: Likewise.
2459         * cp-valprint.c: Likewise.
2460         * darwin-nat.c: Likewise.
2461         * dwarf2-frame-tailcall.c: Likewise.
2462         * dwarf2-frame.c: Likewise.
2463         * dwarf2loc.c: Likewise.
2464         * dwarf2read.c: Likewise.
2465         * eval.c: Likewise.
2466         * event-loop.c: Likewise.
2467         * event-top.c: Likewise.
2468         * f-valprint.c: Likewise.
2469         * frame-unwind.c: Likewise.
2470         * frame.c: Likewise.
2471         * gdbtypes.c: Likewise.
2472         * gnu-v2-abi.c: Likewise.
2473         * gnu-v3-abi.c: Likewise.
2474         * guile/scm-auto-load.c: Likewise.
2475         * guile/scm-breakpoint.c: Likewise.
2476         * guile/scm-cmd.c: Likewise.
2477         * guile/scm-frame.c: Likewise.
2478         * guile/scm-lazy-string.c: Likewise.
2479         * guile/scm-param.c: Likewise.
2480         * guile/scm-symbol.c: Likewise.
2481         * guile/scm-type.c: Likewise.
2482         * hppa-hpux-tdep.c: Likewise.
2483         * i386-tdep.c: Likewise.
2484         * inf-loop.c: Likewise.
2485         * infcall.c: Likewise.
2486         * infcmd.c: Likewise.
2487         * infrun.c: Likewise.
2488         * interps.c: Likewise.
2489         * interps.h: Likewise.
2490         * jit.c: Likewise.
2491         * linespec.c: Likewise.
2492         * linux-nat.c: Likewise.
2493         * linux-thread-db.c: Likewise.
2494         * m32r-rom.c: Likewise.
2495         * main.c: Likewise.
2496         * memory-map.c: Likewise.
2497         * mi/mi-cmd-break.c: Likewise.
2498         * mi/mi-cmd-stack.c: Likewise.
2499         * mi/mi-interp.c: Likewise.
2500         * mi/mi-main.c: Likewise.
2501         * monitor.c: Likewise.
2502         * nto-procfs.c: Likewise.
2503         * objc-lang.c: Likewise.
2504         * p-valprint.c: Likewise.
2505         * parse.c: Likewise.
2506         * ppc-linux-tdep.c: Likewise.
2507         * printcmd.c: Likewise.
2508         * probe.c: Likewise.
2509         * python/py-auto-load.c: Likewise.
2510         * python/py-breakpoint.c: Likewise.
2511         * python/py-cmd.c: Likewise.
2512         * python/py-finishbreakpoint.c: Likewise.
2513         * python/py-frame.c: Likewise.
2514         * python/py-framefilter.c: Likewise.
2515         * python/py-function.c: Likewise.
2516         * python/py-gdb-readline.c: Likewise.
2517         * python/py-inferior.c: Likewise.
2518         * python/py-infthread.c: Likewise.
2519         * python/py-lazy-string.c: Likewise.
2520         * python/py-linetable.c: Likewise.
2521         * python/py-param.c: Likewise.
2522         * python/py-prettyprint.c: Likewise.
2523         * python/py-symbol.c: Likewise.
2524         * python/py-type.c: Likewise.
2525         * python/py-value.c: Likewise.
2526         * python/python-internal.h: Likewise.
2527         * python/python.c: Likewise.
2528         * record-btrace.c: Likewise.
2529         * record-full.c: Likewise.
2530         * regcache.c: Likewise.
2531         * remote-fileio.c: Likewise.
2532         * remote-mips.c: Likewise.
2533         * remote.c: Likewise.
2534         * rs6000-aix-tdep.c: Likewise.
2535         * rs6000-nat.c: Likewise.
2536         * skip.c: Likewise.
2537         * solib-darwin.c: Likewise.
2538         * solib-dsbt.c: Likewise.
2539         * solib-frv.c: Likewise.
2540         * solib-ia64-hpux.c: Likewise.
2541         * solib-spu.c: Likewise.
2542         * solib-svr4.c: Likewise.
2543         * solib.c: Likewise.
2544         * spu-tdep.c: Likewise.
2545         * stack.c: Likewise.
2546         * stap-probe.c: Likewise.
2547         * symfile-mem.c: Likewise.
2548         * symmisc.c: Likewise.
2549         * target.c: Likewise.
2550         * thread.c: Likewise.
2551         * top.c: Likewise.
2552         * tracepoint.c: Likewise.
2553         * tui/tui-interp.c: Likewise.
2554         * typeprint.c: Likewise.
2555         * utils.c: Likewise.
2556         * valarith.c: Likewise.
2557         * valops.c: Likewise.
2558         * valprint.c: Likewise.
2559         * value.c: Likewise.
2560         * varobj.c: Likewise.
2561         * windows-nat.c: Likewise.
2562         * xml-support.c: Likewise.
2563
2564 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
2565
2566         * mips-tdep.c (add_offset_16): Rewrite to implement what the
2567         name implies.
2568         (extended_mips16_next_pc): Update accordingly.
2569
2570 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
2571
2572         * mips-tdep.c (mips16_instruction_is_compact_branch): New
2573         function.
2574         (micromips_instruction_is_compact_branch): Likewise.
2575         (mips16_scan_prologue): Terminate scanning upon seeing a branch
2576         or a compact jump, reaching a jump delay slot, or seeing a
2577         second non-prologue instruction.
2578         (micromips_scan_prologue): Also terminate scanning upon seeing a
2579         compact branch or jump, or reaching a branch or jump delay slot.
2580         (mips32_scan_prologue): Terminate scanning upon reaching a branch
2581         or jump delay slot, or seeing a second non-prologue instruction.
2582         (mips32_instruction_has_delay_slot): Retain instruction
2583         examination code only, update arguments accordingly and move
2584         instruction fetch pieces to...
2585         (mips32_insn_at_pc_has_delay_slot): ... this new function.
2586         (micromips_instruction_has_delay_slot): Likewise and to...
2587         (micromips_insn_at_pc_has_delay_slot): ... this new function.
2588         (mips16_instruction_has_delay_slot): Likewise and to...
2589         (mips16_insn_at_pc_has_delay_slot): ... this new function.
2590         (mips_single_step_through_delay): Update accordingly.
2591         (mips_adjust_breakpoint_address): Likewise.
2592
2593 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
2594
2595         * mips-tdep.c (micromips_instruction_has_delay_slot): When
2596         !mustbe32 also return 1 for 32-bit instructions.
2597         (mips16_instruction_has_delay_slot): Likewise.  Add an
2598         explanatory comment.
2599
2600 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
2601
2602         * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2603         symbols special.
2604
2605 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
2606
2607         * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2608         update comments.
2609         * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2610         for the breakpoint's address.  Don't preinitialize `placed_size'.
2611         (insert_bp_location): Set `reqstd_address' rather than
2612         `placed_address'.
2613         (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2614         (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2615         address.
2616         (bkpt_remove_location): Likewise.
2617         (deprecated_insert_raw_breakpoint): Likewise.
2618         (deprecated_remove_raw_breakpoint): Likewise.
2619         (find_single_step_breakpoint): Likewise.
2620         * mem-break.c (default_memory_insert_breakpoint): Use
2621         `reqstd_address' for the breakpoint's address.  Don't set
2622         `placed_address' or `placed_size' if breakpoint contents couldn't
2623         have been determined.
2624         * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2625         the breakpoint's address.
2626         (remote_insert_hw_breakpoint): Likewise.  Don't set
2627         `placed_address' or `placed_size' if breakpoint couldn't have been
2628         set.
2629         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2630         `reqstd_address' for the breakpoint's address.
2631         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2632         * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2633         * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2634         * microblaze-linux-tdep.c
2635         (microblaze_linux_memory_remove_breakpoint): Likewise.
2636         * monitor.c (monitor_insert_breakpoint): Likewise.
2637         * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2638         (procfs_insert_hw_breakpoint): Likewise.
2639         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2640         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2641         * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2642         * remote-mips.c (mips_insert_breakpoint): Likewise.
2643         * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2644
2645 2014-10-03  Luis Machado  <lgustavo@codesourcery.com>
2646
2647         * valops.c (value_assign): Check for bit field assignments
2648         before calling architecture-specific register value
2649         conversion functions.
2650
2651 2014-10-03  Pierre Muller  <muller@sourceware.org>
2652
2653         * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2654
2655 2014-10-02  Pedro Alves  <palves@redhat.com>
2656
2657         * breakpoint.c (breakpoints_should_be_inserted_now): Use
2658         threads_are_executing.
2659         * breakpoint.h (breakpoints_should_be_inserted_now): Add
2660         describing comment.
2661         * gdbthread.h (threads_are_executing): Declare.
2662         (handle_signal_stop) <random signals>: Don't print about the
2663         signal here if stopping.
2664         (end_stepping_range): Don't notify observers here.
2665         (normal_stop): Update the thread list.  If stopped by a random
2666         signal or a stepping range ended, notify observers.
2667         * thread.c (threads_executing): New global.
2668         (init_thread_list): Clear 'threads_executing'.
2669         (set_executing): Set or clear 'threads_executing'.
2670         (threads_are_executing): New function.
2671         (update_threads_executing): New function.
2672         (update_thread_list): Use it.
2673
2674 2014-10-02  Pedro Alves  <palves@redhat.com>
2675
2676         PR breakpoints/17431
2677         * breakpoint.c (update_breakpoints_after_exec): Don't create
2678         overlay, longjmp, std terminate nor exception breakpoints here.
2679
2680 2014-10-02  Pedro Alves  <palves@redhat.com>
2681
2682         * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2683         Adjust comments.
2684         * inferior.c (find_inferior_for_program_space): Give preference to
2685         the current inferior.
2686         * inferior.h (find_inferior_for_program_space): Update comment.
2687         * progspace.c (switch_to_program_space_and_thread): Prefer the
2688         current inferior if it's bound to the program space requested.  If
2689         the inferior found doesn't have a PID yet, don't bother looking up
2690         a thread.
2691         * progspace.h (switch_to_program_space_and_thread): Adjust
2692         comment.
2693         * thread.c (any_thread_of_process, any_live_thread_of_process):
2694         Give preference to the current thread.
2695
2696 2014-10-01  Pedro Alves  <palves@redhat.com>
2697
2698         * breakpoint.c (insert_bp_location): Error out if inserting a
2699         software breakpoint at a read-only address.
2700         * target.c (memory_xfer_check_region): New function, factored out
2701         from ...
2702         (memory_xfer_partial_1): ... this.  Make the 'reg_len' local a
2703         ULONGEST.
2704         (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2705         against the memory region attributes.
2706
2707 2014-10-01  Simon Marchi  <simon.marchi@ericsson.com>
2708
2709         * NEWS: Announce new exit-code field in -list-thread-groups
2710         output.
2711         * inferior.c (exit_inferior_1): Don't clear exit code.
2712         (inferior_appeared): Clear exit code.
2713         * mi/mi-main.c (print_one_inferior): Add printing of the exit
2714         code.
2715
2716 2014-10-01  Pedro Alves  <palves@redhat.com>
2717
2718         * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2719         GENERATED" along with emacs/vi read-only markers.
2720         * regformats/aarch64.dat: Regenerate.
2721         * regformats/arm-with-iwmmxt.dat: Regenerate.
2722         * regformats/arm-with-neon.dat: Regenerate.
2723         * regformats/arm-with-vfpv2.dat: Regenerate.
2724         * regformats/arm-with-vfpv3.dat: Regenerate.
2725         * regformats/i386/amd64-avx-linux.dat: Regenerate.
2726         * regformats/i386/amd64-avx.dat: Regenerate.
2727         * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2728         * regformats/i386/amd64-avx512.dat: Regenerate.
2729         * regformats/i386/amd64-linux.dat: Regenerate.
2730         * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2731         * regformats/i386/amd64-mpx.dat: Regenerate.
2732         * regformats/i386/amd64.dat: Regenerate.
2733         * regformats/i386/i386-avx-linux.dat: Regenerate.
2734         * regformats/i386/i386-avx.dat: Regenerate.
2735         * regformats/i386/i386-avx512-linux.dat: Regenerate.
2736         * regformats/i386/i386-avx512.dat: Regenerate.
2737         * regformats/i386/i386-linux.dat: Regenerate.
2738         * regformats/i386/i386-mmx-linux.dat: Regenerate.
2739         * regformats/i386/i386-mmx.dat: Regenerate.
2740         * regformats/i386/i386-mpx-linux.dat: Regenerate.
2741         * regformats/i386/i386-mpx.dat: Regenerate.
2742         * regformats/i386/i386.dat: Regenerate.
2743         * regformats/i386/x32-avx-linux.dat: Regenerate.
2744         * regformats/i386/x32-avx.dat: Regenerate.
2745         * regformats/i386/x32-avx512-linux.dat: Regenerate.
2746         * regformats/i386/x32-avx512.dat: Regenerate.
2747         * regformats/i386/x32-linux.dat: Regenerate.
2748         * regformats/i386/x32.dat: Regenerate.
2749         * regformats/microblaze-with-stack-protect.dat: Regenerate.
2750         * regformats/mips-dsp-linux.dat: Regenerate.
2751         * regformats/mips-linux.dat: Regenerate.
2752         * regformats/mips64-dsp-linux.dat: Regenerate.
2753         * regformats/mips64-linux.dat: Regenerate.
2754         * regformats/nios2-linux.dat: Regenerate.
2755         * regformats/rs6000/powerpc-32.dat: Regenerate.
2756         * regformats/rs6000/powerpc-32l.dat: Regenerate.
2757         * regformats/rs6000/powerpc-64l.dat: Regenerate.
2758         * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2759         * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2760         * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2761         * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2762         * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2763         * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2764         * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2765         * regformats/s390-linux32.dat: Regenerate.
2766         * regformats/s390-linux32v1.dat: Regenerate.
2767         * regformats/s390-linux32v2.dat: Regenerate.
2768         * regformats/s390-linux64.dat: Regenerate.
2769         * regformats/s390-linux64v1.dat: Regenerate.
2770         * regformats/s390-linux64v2.dat: Regenerate.
2771         * regformats/s390-te-linux64.dat: Regenerate.
2772         * regformats/s390x-linux64.dat: Regenerate.
2773         * regformats/s390x-linux64v1.dat: Regenerate.
2774         * regformats/s390x-linux64v2.dat: Regenerate.
2775         * regformats/s390x-te-linux64.dat: Regenerate.
2776         * regformats/tic6x-c62x-linux.dat: Regenerate.
2777         * regformats/tic6x-c62x.dat: Regenerate.
2778         * regformats/tic6x-c64x-linux.dat: Regenerate.
2779         * regformats/tic6x-c64x.dat: Regenerate.
2780         * regformats/tic6x-c64xp-linux.dat: Regenerate.
2781         * regformats/tic6x-c64xp.dat: Regenerate.
2782
2783 2014-10-01  Pedro Alves  <palves@redhat.com>
2784
2785         * features/Makefile: Update comments.
2786         (XMLTOC): List all xml files we build C files from.
2787         (clean-cfiles): New rule.
2788
2789 2014-10-01  Pedro Alves  <palves@redhat.com>
2790
2791         * features/i386/amd64-avx512-linux.c: Regenerate.
2792         * features/i386/amd64-avx512.c: Regenerate.
2793         * features/i386/x32-avx512-linux.c: Regenerate.
2794         * features/i386/x32-avx512.c: Regenerate.
2795
2796 2014-10-01  Pedro Alves  <palves@redhat.com>
2797
2798         * features/Makefile (WHICH): Remove arm-with-m,
2799         arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2800
2801 2014-10-01  Pedro Alves  <palves@redhat.com>
2802
2803         * features/Makefile (clean): New rule.
2804
2805 2014-10-01  Pedro Alves  <palves@redhat.com>
2806
2807         * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2808         (zmm14h): Add missing end quotes.
2809
2810 2014-10-01  Pedro Alves  <palves@redhat.com>
2811
2812         * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2813         * features/aarch64.c: Regenerate.
2814
2815 2014-09-30  Don Breazeal  <donb@codesourcery.com>
2816
2817         * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2818         code so as to work with follow_fork_inferior.
2819         * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2820         (inf_ttrace_create_inferior): Remove reference to
2821         inf_ttrace_vfork_ppid.
2822         (inf_ttrace_attach): Ditto.
2823         (inf_ttrace_detach): Ditto.
2824         (inf_ttrace_kill): Use current_inferior instead of
2825         inf_ttrace_vfork_ppid.
2826         (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2827         TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2828         inferior away from the parent.
2829         * infrun.c (follow_fork): Call follow_fork_inferior instead of
2830         target_follow_fork.
2831         (follow_fork_inferior): New function.
2832         (follow_inferior_reset_breakpoints): Make function static.
2833         * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2834         * linux-nat.c (linux_child_follow_fork): Move target-independent
2835         code to infrun.c:follow_fork_inferior.
2836
2837 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2838
2839         * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2840         * gdbarch.c: Regenerate.
2841         * gdbarch.h: Likewise.
2842         * corelow.c (sniff_core_bfd): Drop presence check for deleted
2843         gdbarch method 'regset_from_core_section'.
2844         (get_core_register_section): Remove handling for the case that
2845         regset == NULL and regset_from_core_section is defined.
2846         (get_core_registers): Drop check for deleted method.
2847         * procfs.c (procfs_do_thread_registers): Adjust comment.
2848
2849 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2850
2851         * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2852         (linux_nat_make_corefile_notes): Remove.
2853         (linux_target_install_ops): Do not set target method
2854         'make_corefile_notes'.
2855         * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2856         Remove field.
2857         (linux_corefile_thread_callback): Instead of args->collect, call
2858         linux_collect_thread_registers.
2859         (linux_make_corefile_notes): Remove 'collect' parameter.  Return
2860         NULL unless there is a regset iterator.
2861         (linux_make_corefile_notes_1): Remove.
2862         (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2863         by linux_make_corefile_notes.
2864         * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2865
2866 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2867
2868         * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2869         (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2870         Remove.
2871         * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2872
2873 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2874
2875         * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2876         (xtensa_iterate_over_regset_sections): New.
2877         (xtensa_gdbarch_init): Adjust gdbarch initialization.
2878
2879 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2880
2881         * vax-tdep.c (vax_regset_from_core_section): Remove.
2882         (vax_iterate_over_regset_sections): New.
2883         (vax_gdbarch_init): Adjust gdbarch initialization.
2884
2885 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2886
2887         * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2888         (tilegx_regset_from_core_section): Remove.
2889         (tilegx_iterate_over_regset_sections): New.
2890         (tilegx_linux_init_abi): Adjust gdbarch initialization.
2891
2892 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2893
2894         * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2895         (sparc_iterate_over_regset_sections): New.
2896         (sparc32_gdbarch_init): Adjust gdbarch initialization.
2897         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2898         targets.
2899         * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2900         (sparc64fbsd_init_abi): Call fbsd_init_abi.
2901         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2902         target method 'make_corefile_notes'.
2903
2904 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2905
2906         * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2907         'sizeof_gregset' and 'sizeof_fpregset'.
2908         * sh-tdep.c (sh_regset_from_core_section): Remove.
2909         (sh_iterate_over_regset_sections): New.
2910         (sh_gdbarch_init): Adjust gdbarch initialization.
2911         * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2912         sizeof_fpregset.
2913         * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2914         'sizeof_gregset'.
2915
2916 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2917
2918         * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2919         (score7_linux_iterate_over_regset_sections): New.
2920         (score_gdbarch_init): Adjust gdbarch initialization.
2921
2922 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2923
2924         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2925         FreeBSD targets.
2926         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2927         method 'make_corefile_notes'.
2928         * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2929         (ppcfbsd_regset_from_core_section): Remove.
2930         (ppcfbsd_iterate_over_regset_sections): New.
2931         (ppcfbsd_init_abi): Call fbsd_init_abi.  Adjust gdbarch
2932         initialization.
2933         * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2934         (ppcnbsd_iterate_over_regset_sections): New.
2935         (ppcnbsd_init_abi): Adjust.
2936         * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2937         (ppcobsd_iterate_over_regset_sections): New.
2938         (ppcobsd_init_abi): Adjust.
2939         * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2940         (rs6000_aix_iterate_over_regset_sections): New.
2941         (rs6000_aix_init_osabi): Adjust.
2942
2943 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2944
2945         * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2946         (nios2_regset_from_core_section): Remove.
2947         (nios2_iterate_over_regset_sections): New.
2948         (nios2_linux_init_abi): Adjust gdbarch initialization.
2949
2950 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2951
2952         * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2953         (am33_iterate_over_regset_sections): New.
2954         (am33_linux_init_osabi): Adjust gdbarch initialization.
2955
2956 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2957
2958         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2959         (mips_linux_iterate_over_regset_sections): New.
2960         (mips_linux_init_abi): Adjust gdbarch initialization.
2961         * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2962         (mips64obsd_iterate_over_regset_sections): New.
2963         (mips64obsd_init_abi): Adjust.
2964         * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2965         (mipsnbsd_iterate_over_regset_sections): New.
2966         (mipsnbsd_init_abi): Adjust.
2967
2968 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2969
2970         * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2971         (m88k_iterate_over_regset_sections): New.
2972         (m88k_gdbarch_init): Adjust gdbarch initialization.
2973
2974 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2975
2976         * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2977         (ia64_linux_iterate_over_regset_sections): New.
2978         (ia64_linux_init_abi): Adjust gdbarch initialization.
2979
2980 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2981
2982         * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2983         (m68kbsd_iterate_over_regset_sections): New.
2984         (m68kbsd_init_abi): Adjust gdbarch initialization.
2985         * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2986         (m68k_linux_iterate_over_regset_sections): New.
2987         (m68k_linux_init_abi): Adjust gdbarch initialization.
2988
2989 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2990
2991         * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2992         (m32r_linux_regset_from_core_section): Remove.
2993         (m32r_linux_iterate_over_regset_sections): New.
2994         (m32r_linux_init_abi): Adjust gdbarch initialization.
2995
2996 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2997
2998         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2999         (amd64obsd_iterate_over_regset_sections): New.
3000         (amd64obsd_core_init_abi): Adjust gdbarch initialization.
3001         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3002         Remove.
3003         (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset.  Drop
3004         regset_from_core_section initialization.
3005         * i386-tdep.c (i386_regset_from_core_section): Remove.
3006         (i386_iterate_over_regset_sections): New.
3007         (i386_gdbarch_init): Adjust gdbarch initialization.
3008         * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
3009         (i386_iterate_over_regset_sections): New prototype.
3010         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
3011         Remove.
3012         (i386obsd_aout_iterate_over_regset_sections): New.
3013         (i386obsd_aout_init_abi): Adjust gdbarch initialization.
3014         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
3015         targets.
3016         * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
3017         (amd64fbsd_init_abi): Call fbsd_init_abi.
3018         * i386fbsd-tdep.c (fbsd-tdep.h): Include.
3019         (i386fbsd4_init_abi): Call fbsd_init_abi.
3020         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
3021         target method 'make_corefile_notes'.
3022         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3023
3024 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3025
3026         * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
3027         (hppa_hpux_iterate_over_regset_sections): New.
3028         (hppa_hpux_init_abi): Adjust gdbarch initialization.
3029         * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
3030         (hppa_linux_iterate_over_regset_sections): New.
3031         (hppa_linux_init_abi): Adjust.
3032         * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3033         (hppanbsd_iterate_over_regset_sections): New.
3034         (hppanbsd_init_abi): Adjust.
3035         * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3036         (hppaobsd_iterate_over_regset_sections): New.
3037         (hppaobsd_init_abi): Adjust.
3038
3039 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3040
3041         * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
3042         (frv_linux_iterate_over_regset_sections): New.
3043         (frv_linux_init_abi): Adjust gdbarch initialization.
3044
3045 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3046
3047         * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
3048         (armbsd_iterate_over_regset_sections): New prototype.
3049         * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
3050         (armbsd_iterate_over_regset_sections): New.
3051         * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
3052         initialization.
3053
3054 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3055
3056         * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
3057         (alpha_linux_iterate_over_regset_sections): New.
3058         (alpha_linux_init_abi): Adjust gdbarch initialization.
3059         * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
3060         prototype.
3061         (alphanbsd_iterate_over_regset_sections): New prototype.
3062
3063 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3064
3065         * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
3066         Remove.
3067         (aarch64_linux_iterate_over_regset_sections): New.
3068         (aarch64_linux_init_abi): Adjust gdbarch initialization.
3069
3070 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3071
3072         * fbsd-tdep.c: New file.
3073         * fbsd-tdep.h: New file.
3074         * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3075         (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3076         (ALLDEPFILES): Add fbsd-tdep.c.
3077
3078 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3079
3080         * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3081         parameter.
3082         * gdbarch.h: Regenerate.
3083         * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3084         iterator.
3085         (get_core_register_section): Add parameter 'regset' and use it, if
3086         set.  Add parameter 'min_size' and verify the bfd section size
3087         against it.
3088         (get_core_registers_cb): Add parameter 'regset' and pass it to
3089         get_core_register section.  For the "standard" register sections
3090         ".reg" and ".reg2", set an appropriate default for human_name.
3091         (get_core_registers): Don't abort when the gdbarch has an iterator
3092         but no regset_from_core_section.  Add NULL/0 for parameters
3093         'regset'/'min_size' in calls to get_core_register_section.
3094         * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3095         'regset' and use it instead of calling the
3096         regset_from_core_section gdbarch method.
3097         * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3098         * i386-tdep.c (i386_supply_xstateregset)
3099         (i386_collect_xstateregset, i386_xstateregset): Moved to
3100         i386-linux-tdep.c.
3101         (i386_regset_from_core_section): Drop handling for .reg-xfp and
3102         .reg-xstate.
3103         (i386_gdbarch_init): Set tdep field 'fpregset'.  Enable generic
3104         core file support only if the regset iterator hasn't been set.
3105         * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3106         (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3107         Moved from i386-tdep.c and renamed to *_linux*.
3108         (i386_linux_iterate_over_regset_sections): Add regset parameter to
3109         each callback invocation.  Allow any .reg-xstate size when reading
3110         from a core file.
3111         * amd64-tdep.c (amd64_supply_xstateregset)
3112         (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3113         amd64-linux-tdep.c.
3114         (amd64_regset_from_core_section): Remove.
3115         (amd64_init_abi): Set new tdep field 'fpregset'.  No longer
3116         install an amd64-specific regset_from_core_section gdbarch method.
3117         * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3118         (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3119         Moved from amd64-tdep.c and renamed to *_linux*.
3120         (amd64_linux_iterate_over_regset_sections): Add regset parameter
3121         to each callback invocation.  Allow any .reg-xstate size when
3122         reading from a core file.
3123         * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3124         (arm_linux_iterate_over_regset_sections): Add regset parameter to
3125         each callback invocation.
3126         (arm_linux_init_abi): No longer set the regset_from_core_section
3127         gdbarch method.
3128         * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3129         (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3130         each callback invocation.
3131         (ppc_linux_init_abi): No longer set the regset_from_core_section
3132         gdbarch method.
3133         * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3134         gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3135         (s390_regset_from_core_section): Remove.
3136         (s390_iterate_over_regset_sections): Add regset parameter to each
3137         callback invocation.
3138         (s390_gdbarch_init): No longer set the regset_from_core_section
3139         gdbarch method.  Drop initialization of deleted tdep fields.
3140
3141 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3142
3143         * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3144         (amd64_linux_iterate_over_regset_sections): New.
3145         (amd64_linux_init_abi_common): Don't install the regset section
3146         list, but the new iterator in gdbarch.
3147         * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3148         (arm_linux_vfp_regset_sections): Remove.  Move combined logic...
3149         (arm_linux_iterate_over_regset_sections): ...here.  New function.
3150         (arm_linux_init_abi): Set iterator instead of section list.
3151         * corelow.c (get_core_registers_cb): New function, logic moved
3152         from...
3153         (get_core_registers): ...loop body here.  Use new iterator method
3154         instead of walking through the regset section list.
3155         * gdbarch.sh: Remove 'core_regset_sections'.  New method
3156         'iterate_over_regset_sections'.  New typedef
3157         'iterate_over_regset_sections_cb'.
3158         * gdbarch.c: Regenerate.
3159         * gdbarch.h: Likewise.
3160         * i386-linux-tdep.c (i386_linux_regset_sections)
3161         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3162         Remove.
3163         (i386_linux_iterate_over_regset_sections): New.
3164         (i386_linux_init_abi): Don't choose a regset section list, but
3165         install new iterator in gdbarch.
3166         * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3167         (linux_collect_regset_section_cb): New function, logic moved
3168         from...
3169         (linux_collect_thread_registers): ...loop body here.  Use iterator
3170         method instead of walking through list.
3171         (linux_make_corefile_notes_1): Check for presence of iterator
3172         method instead of regset section list.
3173         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3174         (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3175         (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3176         (ppc64_linux_fp_regset_sections): Remove.  Move combined logic...
3177         (ppc_linux_iterate_over_regset_sections): ...here.  New function.
3178         (ppc_linux_init_abi): Don't choose from above regset section
3179         lists, but install new iterator in gdbarch.
3180         * regset.h (struct core_regset_section): Remove.
3181         * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3182         have_linux_v1, have_linux_v2, and have_tdb.
3183         (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3184         (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3185         (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3186         (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3187         (s390x_linux64v2_regset_sections): Remove.  Move combined logic...
3188         (s390_iterate_over_regset_sections): ...here.  New function.  Use
3189         new tdep fields.
3190         (s390_gdbarch_init): Set new tdep fields.  Don't choose from above
3191         regset section lists, but install new iterator.
3192
3193 2014-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
3194
3195         * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3196
3197 2014-09-26  Simon Marchi  <simon.marchi@ericsson.com>
3198
3199         * progspace.c (print_program_space): Don't prune program spaces
3200         before printing them.
3201
3202 2014-09-25  Pedro Alves  <palves@redhat.com>
3203
3204         * infrun.c (user_visible_resume_ptid): Don't check
3205         singlestep_breakpoints_inserted_p.
3206
3207 2014-09-25  Pedro Alves  <palves@redhat.com>
3208
3209         * breakpoint.c (should_be_inserted): Add debug output.
3210
3211 2014-09-25  Pedro Alves  <palves@redhat.com>
3212
3213         * infrun.c (stepping_past_instruction_at)
3214         (clear_exit_convenience_vars): Point at infrun.h instead of
3215         inferior.h.
3216         (handle_signal_stop): Fix typo.
3217
3218 2014-09-24  Yao Qi  <yao@codesourcery.com>
3219
3220         * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3221         bitmask.
3222
3223 2014-09-22  Gary Benson  <gbenson@redhat.com>
3224
3225         * target.c (target_stop): Updated comment.
3226
3227 2014-09-22  Gary Benson  <gbenson@redhat.com>
3228
3229         * target/target.h (target_stop_ptid): Renamed as...
3230         (target_stop_and_wait): New function.  Updated comment.
3231         All uses updated.
3232         (target_continue_ptid): Renamed as...
3233         (target_continue_no_signal): New function.  Updated comment.
3234         All uses updated.
3235
3236 2014-09-22  Pedro Alves  <palves@redhat.com>
3237
3238         * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3239         and "auto" merged.
3240         * breakpoint.c (enum ugll_insert_mode): New enum.
3241         (always_inserted_mode): Now a plain boolean.
3242         (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3243         (breakpoints_always_inserted_mode): Delete.
3244         (breakpoints_should_be_inserted_now): New function.
3245         (insert_breakpoints): Pass UGLL_INSERT to
3246         update_global_location_list instead of calling
3247         insert_breakpoint_locations manually.
3248         (create_solib_event_breakpoint_1): New, factored out from ...
3249         (create_solib_event_breakpoint): ... this.
3250         (create_and_insert_solib_event_breakpoint): Use
3251         create_solib_event_breakpoint_1 instead of calling
3252         insert_breakpoint_locations manually.
3253         (update_global_location_list): Change parameter type from boolean
3254         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
3255         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3256         (update_global_location_list_nothrow): Change parameter type from
3257         boolean to enum ugll_insert_mode.
3258         (_initialize_breakpoint): "breakpoint always-inserted" option is
3259         now a boolean command.  Update help text.
3260         * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3261         (breakpoints_should_be_inserted_now): New declaration.
3262         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3263         Remove breakpoints_always_inserted_mode check.
3264         (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3265         * remote.c (remote_start_remote): Likewise.
3266
3267 2014-09-22  Pedro Alves  <palves@redhat.com>
3268
3269         * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3270         (insert_breakpoints): Don't call insert_breakpoint_locations here.
3271         Instead, pass UGLL_INSERT to update_global_location_list.
3272         (update_global_location_list): Change parameter type from boolean
3273         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
3274         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3275         (create_solib_event_breakpoint_1): New, factored out from ...
3276         (create_solib_event_breakpoint): ... this.
3277         (create_and_insert_solib_event_breakpoint): Use
3278         create_solib_event_breakpoint_1 instead of calling
3279         insert_breakpoint_locations manually.
3280         (update_global_location_list): Handle UGLL_INSERT.
3281
3282 2014-09-22  Pedro Alves  <palves@redhat.com>
3283
3284         * breakpoint.c (enum ugll_insert_mode): New enum.
3285         (update_global_location_list)
3286         (update_global_location_list_nothrow): Change parameter type from
3287         boolean to enum ugll_insert_mode.  All callers adjusted.
3288
3289 2014-09-19  Joel Brobecker  <brobecker@adacore.com>
3290
3291         * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3292         SystemTap support in GDB.
3293
3294 2014-09-19  Don Breazeal  <donb@codesourcery.com>
3295
3296         * linux-nat.c (linux_handle_extended_wait): Call
3297         linux_ptrace_get_extended_event.
3298         (wait_lwp): Call linux_is_extended_waitstatus.
3299         (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3300         and linux_is_extended_waitstatus.
3301         * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3302         linux_ptrace_get_extended_event.
3303         (linux_ptrace_get_extended_event): New function.
3304         (linux_is_extended_waitstatus): New function.
3305         * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3306         (linux_is_extended_waitstatus): New declarations.
3307
3308 2014-09-19  Yao Qi  <yao@codesourcery.com>
3309
3310         * dwarf2read.c (dwarf_decode_lines): Update declaration.
3311         (handle_DW_AT_stmt_list): Add argument 'lowpc'.  Update
3312         comments.  Callers update.
3313         (dwarf_decode_lines): Likewise.
3314         (dwarf_decode_lines_1): Add argument 'lowpc'.  Update
3315         comments.  Skip the line table if  'lowpc' is greater than
3316         'address'.  Don't check
3317         dwarf2_per_objfile->has_section_at_zero.
3318
3319 2014-09-18  Doug Evans  <dje@google.com>
3320
3321         * NEWS: Mention new "producer" attribute of gdb.Symtab.
3322         * python/py-symtab.c (stpy_get_producer): New function.
3323         (symtab_object_getset): Add "producer" attribute.
3324
3325 2014-09-17  Ulrich Weigand  <uweigand@de.ibm.com>
3326
3327         PR gdb/17384
3328         * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3329         (do_captured_read_memory_integer): Remove.
3330         (safe_read_memory_integer): Use target_read_memory directly instead
3331         of catching errors in do_captured_read_memory_integer.
3332
3333 2014-09-16  Maciej W. Rozycki  <macro@codesourcery.com>
3334
3335         * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3336         not gdb/doc.
3337
3338 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
3339
3340         * objc-lang.c (find_implementation_from_class): Remove dead code.
3341
3342 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
3343
3344         PR cli/7233
3345         * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3346         "fprintf_unfiltered (gdb_stdlog...)".
3347
3348 2014-09-16  Patrick Palka  <patrick@parcs.ath.cx>
3349
3350         PR breakpoints/12526
3351         * breakpoint.h (struct watchpoint): New fields val_bitpos and
3352         val_bitsize.
3353         * breakpoint.c (watch_command_1): Use these fields to retain
3354         bitfield information.
3355         (extract_bitfield_from_watchpoint_value): New function.
3356         (watchpoint_check): Use it.
3357         (update_watchpoint): Use it.  Optimize the address and length of a
3358         HW watchpoint pointing to a bitfield.
3359         * value.h (unpack_value_bitfield): New prototype.
3360         * value.c (unpack_value_bitfield): Make extern.
3361
3362 2014-09-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3363
3364         * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3365         x86-dregs.o.
3366         * gnu-nat.c (inf_threads): New function.
3367         * gnu-nat.h (inf_threads_ftype): New typedef.
3368         (inf_threads): New declaration.
3369         * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3370         [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3371         (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3372         (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3373         (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3374         (i386_gnu_dr_get_control): New functions.
3375         (reg_addr): New structure.
3376         (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3377         i386 debugging register hooks.
3378         * NEWS: Mention this.
3379
3380 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
3381
3382         * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3383         vector data transfer instructions.
3384         (arm_record_coproc_data_proc): Updated.
3385
3386 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
3387
3388         * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3389         arm_record_exreg_ld_st_insn.
3390         (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3391         load/store insns.
3392
3393 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
3394
3395         * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3396         (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3397         processing instructions.
3398
3399 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
3400
3401         * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3402         for advance SIMD struct ld/st insn.
3403         (thumb2_record_decode_insn_handler): Replace stub handler with
3404         thumb2_record_asimd_struct_ld_st.
3405
3406 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
3407
3408         * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3409         for asimd, vfp and coprocessor insns.
3410         (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3411         and coprocessor insns.
3412         (thumb2_record_coproc_insn): New function.
3413         (thumb2_record_decode_insn_handler): Update coprocessor insns record
3414         handlers.
3415         (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3416         opcode 110 insns.
3417
3418 2014-09-13  Doug Evans  <xdje42@gmail.com>
3419
3420         * NEWS: Mention new "queue-signal" command.
3421         * infcmd.c (queue_signal_command): New function.
3422         (_initialize_infcmd): Add new queue-signal command.
3423
3424 2014-09-13  Doug Evans  <xdje42@gmail.com>
3425
3426         * linux-nat.c (wait_lwp): Add debugging printf.
3427         (linux_nat_wait_1): Ditto.
3428
3429 2014-09-12  Pedro Alves  <palves@redhat.com>
3430
3431         * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3432         (create_and_insert_solib_event_breakpoint): New functions.
3433         * breakpoint.h (create_and_insert_solib_event_breakpoint)
3434         (remove_solib_event_breakpoints_at_next_stop): New declarations.
3435         * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3436         (remove_dbx_link_breakpoint): Delete function.
3437         (insert_dbx_link_bpt_in_file): Use
3438         create_and_insert_solib_event_breakpoint instead of
3439         deprecated_insert_raw_breakpoint.
3440         (procfs_wait): Don't check whether we hit __dbx_link here.
3441         (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3442         here.
3443         * solib-irix.c (base_breakpoint): Delete global.
3444         (disable_break): Delete function.
3445         (enable_break): Use create_solib_event_breakpoint
3446         instead of deprecated_insert_raw_breakpoint.
3447         (irix_solib_handle_event): New function.
3448         (irix_solib_create_inferior_hook): Don't run the target or disable
3449         the mapping-complete breakpoint here.
3450         (_initialize_irix_solib): Install irix_solib_handle_event as
3451         so_ops->handle_event hook.
3452
3453 2014-09-12  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
3454             Ulrich Weigand  <uweigand@de.ibm.com>
3455
3456         PR tdep/17379
3457         * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3458         instead of read_memory_unsigned_integer.
3459
3460 2014-09-12  Gary Benson  <gbenson@redhat.com>
3461
3462         * nat/linux-waitpid.c: Include common-defs.h.
3463         [GDBSERVER]: Add FIXME comment.
3464         [!GDBSERVER]: Don't include defs.h or signal.h.
3465         (linux_debug) [!GDBSERVER]: Remove empty block.
3466
3467 2014-09-12  Gary Benson  <gbenson@redhat.com>
3468
3469         * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3470         Don't include defs.h or server.h.
3471
3472 2014-09-12  Gary Benson  <gbenson@redhat.com>
3473
3474         * nat/linux-btrace.c: Include common-defs.h.
3475         Don't include defs.h, server.h or gdbthread.h.
3476         * nat/linux-btrace.h (struct target_ops): New forward declaration.
3477
3478 2014-09-12  Gary Benson  <gbenson@redhat.com>
3479
3480         * common/agent.c: Include common-defs.h.
3481         Don't include defs.h or server.h.
3482         * common/buffer.c: Likewise.
3483         * common/common-debug.c: Likewise.
3484         * common/common-utils.c: Likewise.
3485         * common/errors.c: Likewise.
3486         * common/filestuff.c: Likewise.
3487         * common/format.c: Likewise.
3488         * common/gdb_vecs.c: Likewise.
3489         * common/print-utils.c: Likewise.
3490         * common/ptid.c: Likewise.
3491         * common/rsp-low.c: Likewise.
3492         * common/signals.c: Likewise.
3493         * common/vec.c: Likewise.
3494         * common/xml-utils.c: Likewise.
3495         * nat/linux-osdata.c: Likewise.
3496         * nat/linux-procfs.c: Likewise.
3497         * nat/linux-ptrace.c: Likewise.
3498         * nat/mips-linux-watch.c: Likewise.
3499         * target/waitstatus.c: Likewise.
3500
3501 2014-09-12  Tom Tromey  <tromey@redhat.com>
3502             Gary Benson  <gbenson@redhat.com>
3503
3504         * common/common-regcache.h: New file.
3505         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3506         * regcache.h: Include common-regcache.h.
3507         (regcache_read_pc): Don't declare.
3508         * regcache.c (get_thread_regcache_for_ptid): New function.
3509         * nat/linux-btrace.c: Don't include regcache.h.
3510         Include common-regcache.h.
3511         (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3512
3513 2014-09-11  Thomas Schwinge  <thomas@codesourcery.com>
3514
3515         * regcache.h (struct regset): Declare.
3516
3517 2014-09-11  Pedro Alves  <palves@redhat.com>
3518
3519         PR gdb/17347
3520         * main.c: Include "infrun.h".
3521         (catch_command_errors, catch_command_errors_const): Wait for the
3522         foreground command to complete.
3523         * top.c (maybe_wait_sync_command_done): New function, factored out
3524         from ...
3525         (maybe_wait_sync_command_done): ... here.
3526         * top.h (maybe_wait_sync_command_done): New declaration.
3527
3528 2014-09-11  Tom Tromey  <tromey@redhat.com>
3529             Gary Benson  <gbenson@redhat.com>
3530
3531         * common/symbol.h: New file.
3532         * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3533         * minsyms.c (find_minimal_symbol_address): New function.
3534         * common/agent.c: Include common/symbol.h.
3535         [!GDBSERVER]: Don't include objfiles.h.
3536         (agent_look_up_symbols): Use find_minimal_symbol_address.
3537
3538 2014-09-11  Gary Benson  <gbenson@redhat.com>
3539
3540         * target/target.h (target_stop_ptid, target_continue_ptid):
3541         Declare.
3542         * target.c (target_stop_ptid, target_continue_ptid): New
3543         functions.
3544         * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3545         (agent_run_command): Always use target_stop_ptid and
3546         target_continue_ptid.
3547
3548 2014-09-11  Tom Tromey  <tromey@redhat.com>
3549             Gary Benson  <gbenson@redhat.com>
3550
3551         * target/target.h: New file.
3552         * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3553         * target.h: Include target/target.h.
3554         (target_read_memory, target_write_memory): Don't declare.
3555         * target.c (target_read_uint32): New function.
3556         * common/agent.c: Include target/target.h.
3557         [!GDBSERVER]: Don't include target.h.
3558         (helper_thread_id): Type changed to uint32_t.
3559         (agent_get_helper_thread_id): Use target_read_uint32.
3560         (agent_run_command): Always use target_read_memory and
3561         target_write_memory.
3562         (agent_capability): Type changed to uint32_t.
3563         (agent_capability_check): Use target_read_uint32.
3564
3565 2014-09-11  Gary Benson  <gbenson@redhat.com>
3566
3567         * common/common-debug.h (show_debug_regs): Declare.
3568         * common/common-debug.c (show_debug_regs): Define.
3569         * aarch64-linux-nat.c (debug_hw_points): Don't define.  Replace
3570         all uses with show_debug_regs.  Replace all uses that considered
3571         debug_hw_points as a multi-value integer with straight boolean
3572         uses.
3573         * x86-nat.c (debug_hw_points): Don't define.  Replace all uses
3574         with show_debug_regs.
3575         * nat/x86-dregs.c (debug_hw_points): Don't declare.  Replace
3576         all uses with show_debug_regs.
3577         * mips-linux-nat.c (maint_show_dr): Don't define.  Replace all
3578         uses with show_debug_regs.
3579
3580 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
3581
3582         * findvar.c (address_from_register): Handle targets requiring
3583         a special conversion routine even for plain pointer types.
3584
3585 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
3586
3587         * rs6000-nat.c (exec_one_dummy_insn): Remove.
3588         (store_register): Do not call exec_one_dummy_insn.
3589
3590 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
3591
3592         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3593         dereference it first.  Use value_enclosing_type instead of
3594         value_type.
3595         (ada_array_length): Likewise.
3596
3597 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
3598
3599         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3600         Adjust function implementation and documentation accordingly.
3601         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3602         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3603         Update call to ada_value_ptr_subscript.
3604
3605 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
3606
3607         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3608         instead of VAL's type.
3609
3610 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
3611
3612         * amd64-linux-nat.c: Add <sys/uio.h> #include.
3613
3614 2014-09-09  Doug Evans  <xdje42@gmail.com>
3615
3616         PR guile/17367
3617         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3618         last parameter to pkg-config, not first.
3619         * configure.ac: Pass --with-guile provided pkg-config path to
3620         GDB_GUILE_PROGRAM_NAMES.
3621         * configure: Regenerate.
3622
3623 2014-09-09  Gabriel Krisman Bertazi  <gabriel@krisman.be>
3624
3625         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3626         Bertazi".
3627
3628 2014-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
3629
3630         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3631         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3632         the list of sections determining GDB_OSABI_IRIX.
3633
3634 2014-09-09  James Hogan  <james.hogan@imgtec.com>
3635
3636         * MAINTAINERS (Write After Approval): Add "James Hogan".
3637
3638 2014-09-09  James Hogan  <james.hogan@imgtec.com>
3639
3640         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3641
3642 2014-09-09  Joel Brobecker  <brobecker@adacore.com>
3643
3644         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3645
3646 2014-09-08  Doug Evans  <xdje42@gmail.com>
3647
3648         PR 17247
3649         * guile.c: #include <signal.h>.
3650         (_initialize_guile): Block SIGCHLD while initializing Guile.
3651
3652         Replaces the following, which is reverted.
3653
3654         2014-07-26  Doug Evans  <xdje42@gmail.com>
3655
3656         PR 17185
3657         * configure.ac: Add check for header gc/gc.h.
3658         Add check for function setenv.
3659         * configure: Regenerate.
3660         * config.in: Regenerate.
3661         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3662
3663 2014-09-08  Doug Evans  <xdje42@gmail.com>
3664
3665         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3666         with named constant.  Fix style of pointer comparison.
3667         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3668
3669 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
3670
3671         PR gdb/17035
3672         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3673         decide whether we display the command on "show user".
3674         * cli/cli-script.c (show_user_1): Only verify cmdlines after
3675         printing command name.
3676         * cli/cli-decode.h (cli_user_command_p): Declare new function.
3677         * cli/cli-decode.c (cli_user_command_p): Create helper function
3678         to verify whether cmd_list_element is a user-defined command.
3679
3680 2014-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3681
3682         PR python/17355
3683         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3684         Fix goto out of TRY_CATCH.
3685
3686 2014-09-06  Doug Evans  <xdje42@gmail.com>
3687             Tom Tromey  <tromey@redhat.com>
3688
3689         PR 15276
3690         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3691         $_any_caller_matches.
3692         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3693         * python/lib/gdb/function/caller_is.py: New file.
3694
3695 2014-09-06  Doug Evans  <xdje42@gmail.com>
3696
3697         * infcmd.c (program_info): Fix typo.
3698
3699 2014-09-05  Sergio Durigan Junior  <sergiodj@redhat.com>
3700
3701         PR gdb/17235
3702         * stap-probe.c (stap_parse_single_operand): Delete unused variable
3703         'number'.  New variable 'has_digit'.  Rewrite code to deal with
3704         subexpressions on SDT probes.
3705
3706 2014-09-04  Pedro Alves  <palves@redhat.com>
3707
3708         * c-exp.y (parse_number): Skip handling base-switching prefixes if
3709         the input is only one character long.
3710
3711 2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
3712
3713         PR fortran/17237
3714         * f-valprint.c (f_val_print): Specify the correct print option to
3715         use when printing integer values.
3716
3717 2014-09-04  Gary Benson  <gbenson@redhat.com>
3718
3719         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3720         Remove code to cope with LWPs wrapped as PIDs.
3721         Add assertions to ensure no wrapped LWPs are passed.
3722
3723 2014-09-04  Pedro Alves  <palves@redhat.com>
3724
3725         * value.c (value_ranges_copy_adjusted): New function, factored out
3726         from ...
3727         (value_contents_copy_raw): ... here.
3728         (unpack_value_bits_as_long_1): Rename back to ...
3729         (unpack_bits_as_long): ... this.  Remove 'original_value' and
3730         'result' parameters.  Change return type to LONGEST.
3731         (unpack_value_bits_as_long): Delete.
3732         (unpack_value_field_as_long_1): Delete.
3733         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3734         (unpack_value_bitfield): New function.
3735         (value_field_bitfield): Reimplement using unpack_value_bitfield.
3736         (value_fetch_lazy): Use unpack_value_bitfield.
3737         * value.h (unpack_value_bits_as_long): Delete declaration.
3738
3739 2014-09-03  Sasha Smundak  <asmundak@google.com>
3740
3741         * python/py-frame.c (frapy_read_register): New function.
3742
3743 2014-09-03  James Hogan  <james.hogan@imgtec.com>
3744
3745         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3746         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3747
3748 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
3749
3750         PR python/16699
3751         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3752         function.
3753         (add_cmd): Set "completer_handle_brkchars" to NULL.
3754         * cli/cli-decode.h (struct cmd_list_element)
3755         <completer_handle_brkchars>: New field.
3756         * command.h (completer_ftype_void): New typedef.
3757         (set_cmd_completer_handle_brkchars): New prototype.
3758         * completer.c (set_gdb_completion_word_break_characters): New
3759         function.
3760         (complete_line_internal): Call "completer_handle_brkchars"
3761         callback from command.
3762         * completer.h: Include "command.h".
3763         (set_gdb_completion_word_break_characters): New prototype.
3764         * python/py-cmd.c (cmdpy_completer_helper): New function.
3765         (cmdpy_completer_handle_brkchars): New function.
3766         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3767         (cmdpy_init): Set completer_handle_brkchars to
3768         cmdpy_completer_handle_brkchars.
3769
3770 2014-09-03  Gary Benson  <gbenson@redhat.com>
3771
3772         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3773         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
3774         Loop conditions changed to equivalent form.
3775         (struct x86_debug_reg_state): Updated dr_ref_count comment.
3776         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3777         ALL_DEBUG_ADDRESS_REGISTERS.
3778
3779 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
3780
3781         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3782         description fix.
3783
3784 2014-09-02  Doug Evans  <dje@google.com>
3785
3786         * typeprint.c (find_global_typedef): Fix comment.
3787
3788 2014-09-02  Gary Benson  <gbenson@redhat.com>
3789
3790         * i386-nat.h: Renamed as...
3791         * x86-nat.h: New file.  All type, function and variable name
3792         prefixes changed from "i386_" to "x86_".  All references updated.
3793         * i386-nat.c: Renamed as...
3794         * x86-nat.c: New file.  All type, function and variable name
3795         prefixes changed from "i386_" to "x86_".  All references updated.
3796         * common/i386-xstate.h: Renamed as...
3797         * common/x86-xstate.h: New file.  All type, function and variable
3798         name prefixes changed from "i386_" to "x86_".  All references
3799         updated.
3800         * nat/i386-cpuid.h: Renamed as...
3801         * nat/x86-cpuid.h: New file.  All type, function and variable name
3802         prefixes changed from "i386_" to "x86_".  All references updated.
3803         * nat/i386-gcc-cpuid.h: Renamed as...
3804         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
3805         name prefixes changed from "i386_" to "x86_".  All references
3806         updated.
3807         * nat/i386-dregs.h: Renamed as...
3808         * nat/x86-dregs.h: New file.  All type, function and variable name
3809         prefixes changed from "i386_" to "x86_".  All references updated.
3810         * nat/i386-dregs.c: Renamed as...
3811         * nat/x86-dregs.c: New file.  All type, function and variable name
3812         prefixes changed from "i386_" to "x86_".  All references updated.
3813
3814 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
3815
3816         * varobj.c (_initialize_varobj): Move to the end of file.
3817
3818 2014-08-29  Gary Benson  <gbenson@redhat.com>
3819
3820         * common/common-exceptions.h: New file.
3821         * common/common-exceptions.c: Likewise.
3822         * Makefile.in (SFILES): Add common/common-exceptions.c.
3823         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3824         (COMMON_OBS): Add common-exceptions.o.
3825         (common-exceptions.o): New rule.
3826         * exceptions.h (common-exceptions.h): Include.
3827         (gdb_setjmp.h): Do not include.
3828         (return_reason): Moved to common-exceptions.h.
3829         (enum return_reason): Likewise.
3830         (RETURN_MASK): Likewise.
3831         (typedef return_mask): Likewise.
3832         (enum errors): Likewise.
3833         (struct gdb_exception): Likewise.
3834         (exceptions_state_mc_init): Likewise.
3835         (exceptions_state_mc_action_iter): Likewise.
3836         (exceptions_state_mc_action_iter_1): Likewise.
3837         (TRY_CATCH): Likewise.
3838         (throw_exception): Likewise.
3839         (throw_verror): Likewise.
3840         (throw_vquit): Likewise.
3841         (throw_error): Likewise.
3842         (throw_quit): Likewise.
3843         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3844         (enum catcher_action): Likewise.
3845         (struct catcher): Likewise.
3846         (current_catcher): Likewise.
3847         (catcher_list_size): Likewise.
3848         (exceptions_state_mc_init): Likewise.
3849         (catcher_pop): Likewise.
3850         (exceptions_state_mc): Likewise.
3851         (exceptions_state_mc_action_iter): Likewise.
3852         (exceptions_state_mc_action_iter_1): Likewise.
3853         (throw_exception): Likewise.
3854         (exception_messages): Likewise.
3855         (exception_messages_size): Likewise.
3856         (throw_it): Likewise.
3857         (throw_verror): Likewise.
3858         (throw_vquit): Likewise.
3859         (throw_error): Likewise.
3860         (throw_quit): Likewise.
3861         (prepare_to_throw_exception): New function.
3862
3863 2014-08-29  Gary Benson  <gbenson@redhat.com>
3864
3865         * common/gdb_setjmp.h: New file.
3866         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3867         * configure.ac: Move sigsetjmp check...
3868         * common/common.m4: ...here.
3869         * configure: Regenerate.
3870         * cp-support.c (SIGJMP_BUF): Delete.
3871         (SIGSETJMP): Likewise.
3872         (SIGLONGJMP): Likewise.
3873         * exceptions.h (gdb_setjmp.h): Include.
3874         (setjmp.h): Do not include.
3875         (EXCEPTIONS_SIGJMP_BUF): Delete.
3876         (EXCEPTIONS_SIGSETJMP): Likewise.
3877         (EXCEPTIONS_SIGLONGJMP): Likewise.
3878         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3879         from gdb_setjmp.h.
3880         * exceptions.c: Likewise.
3881
3882 2014-08-29  Gary Benson  <gbenson@redhat.com>
3883
3884         * cleanups.h: Moved to...
3885         * common/cleanups.h: New file.
3886         * cleanups.c: Moved to...
3887         * common/cleanups.c: New file.  Include common-defs.h and
3888         cleanups.h.  Do not include defs.h.
3889         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3890         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3891         (cleanups.o): New rule.
3892
3893 2014-08-29  Gary Benson  <gbenson@redhat.com>
3894
3895         * common/errors.h (internal_warning): New declaration.
3896         (internal_vwarning): Likewise.
3897         * common/errors.c (internal_warning): New function.
3898         * utils.h (internal_warning): Don't declare.
3899         (internal_vwarning): Likewise.
3900         * utils.c (internal_warning): Removed.
3901
3902 2014-08-29  Gary Benson  <gbenson@redhat.com>
3903
3904         * main.c (captured_main): Use warning during startup.
3905         Prefix startup warning messages with command name.
3906
3907 2014-08-29  Gary Benson  <gbenson@redhat.com>
3908
3909         * main.c (captured_main): Handle usage errors with error.
3910
3911 2014-08-29  Gary Benson  <gbenson@redhat.com>
3912
3913         * go32-nat.c (go32_create_inferior): Replace a fprintf/
3914         exit pair with a call to error.  Wrap the message with _().
3915
3916 2014-08-29  Gary Benson  <gbenson@redhat.com>
3917
3918         * main.c (captured_main): Replace a fprintf/exit
3919         pair with a call to error.  Wrap the message with _().
3920
3921 2014-08-29  Gary Benson  <gbenson@redhat.com>
3922
3923         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3924         pairs with calls to error.  Wrap the message with _().
3925
3926 2014-08-29  Gary Benson  <gbenson@redhat.com>
3927
3928         * utils.c (vwarning): Protect calls to target_terminal_ours
3929         and wrap_here.
3930
3931 2014-08-29  Gary Benson  <gbenson@redhat.com>
3932
3933         * exceptions.c (print_flush): Protect calls to
3934         target_terminal_ours and wrap_here.
3935
3936 2014-08-29  Gary Benson  <gbenson@redhat.com>
3937
3938         * utils.h (filtered_printing_initialized): New declaration.
3939         * utils.c (abort_with_message): New function.
3940         (internal_vproblem): Use abort_with_message for first level
3941         recursive internal problems, and if gdb_stderr is not set up.
3942         Protect calls to target_terminal_ours, begin_line and query.
3943
3944 2014-08-28  Doug Evans  <dje@google.com>
3945
3946         * symtab.c (in_prologue): Move definition to better spot.
3947         (skip_prologue_using_sal): Ditto.
3948
3949 2014-08-28  Doug Evans  <dje@google.com>
3950
3951         * symtab.c (find_function_start_sal): Move definition to better spot.
3952
3953 2014-08-28  Yao Qi  <yao@codesourcery.com>
3954
3955         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3956         found_stack_adjust in forward scan.  Remove condition check
3957         on found_stack_adjust which is always true.  Indent the code.
3958
3959 2014-08-28  Yao Qi  <yao@codesourcery.com>
3960
3961         * dwarf2read.c (dwarf_decode_lines): Update declaration.
3962         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3963         (dwarf_decode_lines): Remove argument
3964         want_line_info.  Remove condition check on want_line_info.
3965         Callers update.
3966
3967 2014-08-27  Doug Evans  <dje@google.com>
3968
3969         * dwarf2read.c (dwarf_record_line): Fix typo.
3970
3971 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
3972
3973         * target.h (struct target_ops::to_terminal_save_ours): Remove
3974         declaration.
3975         (target_terminal_save_ours): Remove macro.
3976         * target-delegates.c: Regenerate.
3977         * inf-child.c (inf_child_target): Don't set the nonexistent
3978         field to_terminal_save_ours.
3979         * inferior.h (child_terminal_save_ours): Remove declaration.
3980         * terminal.h (gdb_save_tty_state): New declaration.
3981         * inflow.c (child_terminal_save_ours): Rename to ...
3982         (gdb_save_tty_state): ... this.
3983         * tui/tui.c: Include terminal.h.
3984         (tui_enable): Use gdb_save_tty_state instead of
3985         target_terminal_save_ours.
3986         (tui_disable): Likewise.
3987
3988 2014-08-25  Doug Evans  <dje@google.com>
3989
3990         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3991         Pass NULL instead of 0 for context pointer.
3992
3993 2014-08-25  Yao Qi  <yao@codesourcery.com>
3994
3995         * dwarf2read.c: Fix grammatical error.
3996
3997 2014-08-24  Yao Qi  <yao@codesourcery.com>
3998
3999         * dwarf2read.c (scan_partial_symbols):  Update comments.
4000         Rename argument 'need_pc' with 'set_addrmap'.
4001         ï¼ˆadd_partial_namespace): Rename argument 'need_pc' with
4002         'set_addrmap'.
4003         (add_partial_module): Likewise.
4004         (add_partial_subprogram): Likewise.  Update comments.
4005         (dwarf2_name): Fix typo.
4006
4007 2014-08-22  Doug Evans  <dje@google.com>
4008
4009         PR 17276
4010         * dwarf2read.c (dwarf_record_line_p): New function.
4011         (dwarf_decode_lines_1): Ignore subsequent line number entries
4012         for the same line if any entry had a non-zero discriminator.
4013
4014 2014-08-22  Doug Evans  <dje@google.com>
4015
4016         * buildsym.h (record_line_ftype): New typedef.
4017         (record_line): Use it.
4018         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
4019         (dwarf_decode_lines_1): Call them.
4020
4021 2014-08-22  Yao Qi  <yao@codesourcery.com>
4022
4023         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
4024         (ctf_end): Remove code.
4025
4026 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
4027
4028         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
4029         (linux_make_corefile_notes): call update_thread_list, protected against
4030         exceptions.
4031
4032 2014-08-21  Pedro Alves  <palves@redhat.com>
4033
4034         * infcmd.c (attach_command): Remove comment.
4035
4036 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
4037
4038         * aarch64-linux-nat.c (dr_changed_t): Change the type from
4039         unsigned LONGEST to ULONGEST.
4040
4041 2014-08-20  Pedro Alves  <palves@redhat.com>
4042
4043         * Makefile.in (check-read1): New rule.
4044
4045 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
4046
4047         * value.c (value_from_contents_and_address): Strip resolved_type's
4048         typedef layers before checking its TYPE_DATA_LOCATION.
4049
4050 2014-08-20  Pedro Alves  <palves@redhat.com>
4051
4052         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
4053
4054 2014-08-20  Yao Qi  <yao@codesourcery.com>
4055
4056         * amd64-tdep.c (amd64_classify): Add a blank line after the
4057         example.  Move "*/" to a new line.
4058         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
4059         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
4060         * dwarf2read.c (psymtab_include_file_name): Likewise.
4061
4062 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
4063             Pedro Alves  <palves@redhat.com>
4064
4065         PR symtab/14604
4066         PR symtab/14605
4067         * ada-lang.c (coerce_unspec_val_to_type): Use
4068         value_contents_copy_raw.
4069         * ada-valprint.c (val_print_packed_array_elements): Adjust.
4070         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
4071         * cp-valprint.c (cp_print_value_fields): Let the common printing
4072         code handle optimized out values.
4073         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4074         * d-valprint.c (dynamic_array_type): Use
4075         value_bits_any_optimized_out.
4076         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4077         check_any_valid fields.
4078         (check_pieced_value_bits): Delete and inline ...
4079         (check_pieced_synthetic_pointer): ... here.
4080         (check_pieced_value_validity): Delete.
4081         (check_pieced_value_invalid): Delete.
4082         (pieced_value_funcs): Remove check_validity and check_any_valid
4083         fields.
4084         (read_pieced_value): Use mark_value_bits_optimized_out.
4085         (write_pieced_value): Switch to use
4086         mark_value_bytes_optimized_out.
4087         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4088         of assuming the whole value is optimized out.
4089         * findvar.c (read_frame_register_value): Remove special handling
4090         of optimized out registers.
4091         (value_from_register): Use mark_value_bytes_optimized_out.
4092         * frame-unwind.c (frame_unwind_got_optimized): Use
4093         mark_value_bytes_optimized_out.
4094         * jv-valprint.c (java_value_print): Adjust.
4095         (java_print_value_fields): Let the common printing code handle
4096         optimized out values.
4097         * mips-tdep.c (mips_print_register): Remove special handling of
4098         optimized out registers.
4099         * opencl-lang.c (lval_func_check_validity): Delete.
4100         (lval_func_check_any_valid): Delete.
4101         (opencl_value_funcs): Remove check_validity and check_any_valid
4102         fields.
4103         * p-valprint.c (pascal_object_print_value_fields): Let the common
4104         printing code handle optimized out values.
4105         * stack.c (read_frame_arg): Remove special handling of optimized
4106         out values.  Fetch both VAL and ENTRYVAL before comparing
4107         contents.  Adjust to value_available_contents_eq rename.
4108         * valprint.c (valprint_check_validity)
4109         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4110         (val_print_array_elements): Adjust.
4111         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4112         (value_bits_any_optimized_out): New function.
4113         (value_entirely_covered_by_range_vector): New function, factored
4114         out from value_entirely_unavailable.
4115         (value_entirely_unavailable): Reimplement.
4116         (value_entirely_optimized_out): New function.
4117         (insert_into_bit_range_vector): New function, factored out from
4118         mark_value_bits_unavailable.
4119         (mark_value_bits_unavailable): Reimplement.
4120         (struct ranges_and_idx): New struct.
4121         (find_first_range_overlap_and_match): New function, factored out
4122         from value_available_contents_bits_eq.
4123         (value_available_contents_bits_eq): Rename to ...
4124         (value_contents_bits_eq): ... this.  Check both unavailable
4125         contents and optimized out contents.
4126         (value_available_contents_eq): Rename to ...
4127         (value_contents_eq): ... this.
4128         (allocate_value_lazy): Remove reference to the old optimized_out
4129         boolean.
4130         (allocate_optimized_out_value): Use
4131         mark_value_bytes_optimized_out.
4132         (require_not_optimized_out): Adjust to check whether the
4133         optimized_out vec is empty.
4134         (ranges_copy_adjusted): New function, factored out from
4135         value_contents_copy_raw.
4136         (value_contents_copy_raw): Also copy the optimized out ranges.
4137         Assert the destination ranges aren't optimized out.
4138         (value_contents_copy): Update comment, remove call to
4139         require_not_optimized_out.
4140         (value_contents_equal): Adjust to check whether the optimized_out
4141         vec is empty.
4142         (set_value_optimized_out, value_optimized_out_const): Delete.
4143         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4144         New functions.
4145         (value_entirely_optimized_out, value_bits_valid): Delete.
4146         (value_copy): Take a VEC copy of the 'optimized_out' field.
4147         (value_primitive_field): Remove special handling of optimized out.
4148         (value_fetch_lazy): Assert that lazy values have no unavailable
4149         regions.  Use value_bits_any_optimized_out.  Remove some special
4150         handling for optimized out values.
4151         * value.h: Add intro comment about <optimized out> and
4152         <unavailable>.
4153         (struct lval_funcs): Remove check_validity and check_any_valid
4154         fields.
4155         (set_value_optimized_out, value_optimized_out_const): Remove.
4156         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4157         New declarations.
4158         (value_bits_any_optimized_out): New declaration.
4159         (value_bits_valid): Delete declaration.
4160         (value_available_contents_eq): Rename to ...
4161         (value_contents_eq): ... this, and extend comments.
4162
4163 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
4164
4165         Fix -fsanitize=address on unreadable inferior strings.
4166         * valprint.c (val_print_string): Fix access before BUFFER.
4167
4168 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
4169
4170         * target.c (target_struct_size): Remove.
4171         (target_struct_allocsize): Remove.
4172         (DEFAULT_ALLOCSIZE): Remove.
4173         (target_ops_p): New typedef.
4174         (DEF_VEC_P (target_ops_p)): New vector type.
4175         (target_structs): Change type to VEC (target_ops_p).
4176         (add_target_with_completer): Replace "push" code by VEC_safe_push.
4177         (find_default_run_target): Rewrite for loop following changes to
4178         target_structs.
4179
4180 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
4181
4182         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4183         Adjust code accordingly.  Adjust function description comment.
4184
4185 2014-08-19  Yao Qi  <yao@codesourcery.com>
4186
4187         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4188         types.
4189
4190 2014-08-19  Alan Modra  <amodra@gmail.com>
4191
4192         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4193         * config.in: Regenerate.
4194         * configure: Regenerate.
4195
4196 2014-08-19  Tom Tromey  <tromey@redhat.com>
4197             Gary Benson  <gbenson@redhat.com>
4198
4199         * common/common-debug.h: New file.
4200         * common/common-debug.c: Likewise.
4201         * debug.c: Likewise.
4202         * Makefile.in (SFILES): Add common/common-debug.c.
4203         (HFILES_NO_SRCDIR): Add common/common-debug.h.
4204         (COMMON_OBS): Add common-debug.o and debug.o.
4205         (common-debug.o): New rule.
4206         * common/common-defs.h: Include common-debug.h.
4207         * common/agent.c (debug_agent_printf): New function.
4208         (DEBUG_AGENT): Redefine.
4209         * nat/i386-dregs.c (debug_printf): Undefine.
4210
4211 2014-08-19  Gary Benson  <gbenson@redhat.com>
4212
4213         * common/common-defs.h: Include print-utils.h.
4214         * utils.h: Do not include print-utils.h.
4215
4216 2014-08-19  Tom Tromey  <tromey@redhat.com>
4217             Gary Benson  <gbenson@redhat.com>
4218
4219         * common/common-types.h: New file.
4220         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4221         * common/common-defs.h: Include common-types.h.
4222         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4223         (ULONGEST): Remove.
4224
4225 2014-08-19  Tom Tromey  <tromey@redhat.com>
4226             Gary Benson  <gbenson@redhat.com>
4227
4228         * common/errors.h: New file.
4229         * common/errors.c: Likewise.
4230         * Makefile.in (SFILES): Add common/errors.c.
4231         (HFILES_NO_SRCDIR): Add common/errors.h.
4232         (COMMON_OBS): Add errors.o.
4233         (errors.o): New rule.
4234         * common/common-defs.h: Include errors.h.
4235         * utils.h (perror_with_name, error, verror, warning, vwarning):
4236         Don't declare.
4237         * common/common-utils.h: (malloc_failure, internal_error):
4238         Likewise.
4239
4240 2014-08-19  Gary Benson  <gbenson@redhat.com>
4241
4242         * utils.c (internal_vproblem): Always print the message.
4243
4244 2014-08-18  Doug Evans  <dje@google.com>
4245
4246         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4247
4248 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
4249
4250         * ada-typeprint.c (type_is_full_subrange_of_target_type):
4251         Return 0 if TYPE is dynamic.
4252         (print_range): Add handling of dynamic ranges.
4253
4254 2014-08-18  Keven Boell  <keven.boell@intel.com>
4255             Joel Brobecker  <brobecker@adacore.com>
4256
4257         * gdbtypes.h (struct main_type): Add field "data_location".
4258         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4259         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4260         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4261         a dynamic data location.
4262         (resolve_dynamic_type): Add DW_AT_data_location handling.
4263         (copy_recursive, copy_type): Copy the data_location information
4264         when present.
4265         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4266         * value.c (value_from_contents_and_address): Add
4267         DW_AT_data_location handling.
4268
4269 2014-08-18  Keven Boell  <keven.boell@intel.com>
4270             Joel Brobecker  <brobecker@adacore.com>
4271
4272         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4273         field "get_object_address".
4274         * dwarf2expr.c (execute_stack_op): Add handling for
4275         DW_OP_push_object_address.
4276         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4277         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4278         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4279         (dwarf_expr_get_obj_addr): New function.
4280         (dwarf_expr_ctx_funcs): Add get_object_address field.
4281         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4282         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
4283         (dwarf2_evaluate_property): Add parameter "address".  Use it.
4284         (needs_get_obj_addr): New function.
4285         (needs_frame_ctx_funcs): Add get_object_address field.
4286         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4287         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
4288         (resolve_dynamic_array): Likewise.
4289
4290 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
4291
4292         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4293         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4294         fixed value for records and unions for which some GNAT encodings
4295         are present.
4296
4297 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
4298
4299         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4300         rewrite to avoid "else if" and "else" constructs.  Should be
4301         a no-op in practice.
4302
4303 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
4304
4305         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4306         of lexical block.
4307
4308 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
4309
4310         PR c++/17132
4311         * eval.c: Update all calls to find_overload_match.
4312         * valarith.c: Likewise.
4313         (value_user_defined_cpp_op, value_user_defined_op): New
4314         argument NOSIDE.  Update all callers.
4315         * valops.c (find_overload_match): New argument NOSIDE.
4316         * value.h (find_overload_match): Update signature.
4317
4318 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
4319
4320         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4321         'items' methods instead of 'iteritems' method on dictionaries.
4322
4323 2014-08-15  Doug Evans  <dje@google.com>
4324
4325         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4326         closer to use.
4327
4328 2014-08-15  Doug Evans  <dje@google.com>
4329
4330         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4331
4332 2014-08-15  Doug Evans  <dje@google.com>
4333
4334         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4335
4336 2014-08-15  Doug Evans  <dje@google.com>
4337
4338         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4339         unused.
4340
4341 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
4342
4343         * dcache.h: Include target.h, to avoid compile time warnings.
4344
4345 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
4346
4347         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
4348         frame_info" partial declaration.
4349         * gdbarch.h: Regenerate.
4350
4351 2014-08-15  Yao Qi  <yao@codesourcery.com>
4352
4353         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4354         Add parameter 'decode_for_pst_p'.  Callers update.
4355
4356 2014-08-13  Yao Qi  <yao@codesourcery.com>
4357
4358         PR build/17104
4359         * configure.ac: Use local variable 'pos'.
4360         * configure: Regenerated.
4361
4362 2014-08-11  Doug Evans  <dje@google.com>
4363
4364         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4365         message, it is redundant with "Reading symbols from ..." message.
4366
4367 2014-08-10  Doug Evans  <xdje42@gmail.com>
4368
4369         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4370
4371 2014-08-09  Yao Qi  <yao@codesourcery.com>
4372
4373         PR remote/9053
4374         * remote.c (remote_xfer_partial): Remove dead code.
4375
4376 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4377
4378         * ia64-linux-tdep.c: Include "regset.h".
4379         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4380         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4381         (ia64_linux_supply_fpregset): New function.
4382         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4383         (ia64_linux_regset_from_core_section): New function.
4384         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4385         method.
4386
4387 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4388
4389         * m68klinux-tdep.c: Include "regset.h".
4390         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4391         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4392         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4393         (m68k_linux_regset_from_core_section): New function.
4394         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4395         method.
4396
4397 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4398
4399         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4400         function.  Move logic to...
4401         (tilegx_linux_regmap): ... this new register map.
4402         (tilegx_linux_regset): Refer to register map, replace supply
4403         method by regcache_supply_regset, and add collect method.
4404         * tilegx-tdep.h (enum tilegx_regnum): New enum value
4405         TILEGX_FIRST_EASY_REGNUM.
4406
4407 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4408
4409         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4410         that calls regcache_supply_regset and handles the EPC register
4411         separately.  Move main logic to...
4412         (score7_linux_gregmap): ... this new register map.
4413         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4414         (score7_linux_gregset): Refer to register map.  Add collect method.
4415         (score7_linux_regset_from_core_section): Replace
4416         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4417         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4418         (struct regset): Delete unused forward declaraction.
4419         (struct pt_regs): Delete structure definition.
4420         (elf_gregset_t): Delete typedef.
4421
4422 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4423
4424         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4425         (nios2_core_regset): Add collect method.
4426
4427 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4428
4429         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4430         platform-independent and don't write to read-only input buffer.
4431         (m32r_linux_collect_gregset): New function.
4432         (m32r_linux_gregset): Add collect method.
4433
4434 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4435
4436         * hppa-linux-tdep.c (greg_map): Rename to...
4437         (hppa_linux_gregmap): ... this.  Also convert to
4438         regcache_map_entry format.
4439         (hppa_linux_supply_regset): Delete function.
4440         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
4441         (hppa_linux_fpregmap): ... this new register map.
4442         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4443         register map, replace supply method by regcache_supply_regset, and
4444         add collect method regcache_collect_regset.
4445
4446 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4447
4448         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4449         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4450         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4451         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4452         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4453         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4454         (frv_linux_supply_gregset): Replace main logic by call to
4455         regcache_supply_regset, but keep clearing gr32-gr63.
4456         (frv_linux_supply_fpregset): Delete function.
4457         (frv_linux_gregset): Refer to appropriate register map and add
4458         regcache_collect_regset as the collect method.
4459         (frv_linux_fpregset): Likewise.  Also exchange the supply method
4460         by regcache_supply_regset.
4461
4462 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4463
4464         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4465         by call to alpha_supply_int_regs.
4466         (alpha_linux_collect_gregset): New function.
4467         (alpha_linux_supply_fpregset): Replace logic by call to
4468         alpha_supply_fp_regs.
4469         (alpha_linux_collect_fpregset): New function.
4470         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4471
4472 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4473
4474         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4475         by call to regcache_collect_regset.
4476         (supply_gregset, supply_fpregset): Call regcache_supply_regset
4477         instead of aarch64_linux_supply_gregset/_fpregset.
4478         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4479         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4480         header file instead.
4481         (aarch64_linux_supply_gregset, supply_gregset_from_core)
4482         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4483         functions.  Move logic to ...
4484         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4485         register maps.
4486         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4487         refer to new register maps, replace *_regset_from_core by
4488         regcache_supply_regset, and also use regcache_collect_regset.
4489         * aarch64-linux-tdep.h: Include "regset.h".
4490         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4491         Delete prototypes.
4492         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4493         macros, moved from C source file.
4494         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4495         variable declarations.
4496
4497 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4498
4499         * s390-linux-nat.c: Include "regset.h".
4500         (regmap_gregset): Delete macro.
4501         (s390_64_regmap_gregset): New register map for
4502         regcache_supply/_collect_regset.
4503         (s390_64_gregset): New regset.
4504         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4505         (regmap_fpregset): Delete macro.
4506         (s390_native_supply, s390_native_collect): Delete functions.
4507         (supply_gregset, fill_gregset): Replace s390-specific regmap
4508         handling by a call to regcache_supply/_collect_regset.
4509         (supply_fpregset, fill_fpregset): Call regcache_supply/
4510         _collect_regset instead of s390_native_supply/_collect.
4511         (fetch_regset, store_regset): Likewise.  Also change the last
4512         parameter to a regset instead of a regmap.
4513         (s390_linux_fetch_inferior_registers)
4514         (390_linux_store_inferior_registers): Adjust last parameter in
4515         calls to fetch_regset and store_regset.
4516         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4517         (s390_gregmap): ... this.  Also make static const and convert to
4518         regcache_map_entry format.
4519         (s390x_regmap_gregset): Delete.
4520         (s390_regmap_fpregset): Rename to...
4521         (s390_fpregmap): ... this.  Make static const and convert to
4522         regcache_map_entry format.
4523         (s390_regmap_upper, s390_regmap_last_break)
4524         (s390x_regmap_last_break, s390_regmap_system_call)
4525         (s390_regmap_tdb): Likewise.
4526         (s390_supply_regset, s390_collect_regset): Remove functions.
4527         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4528         s390_supply_regset.
4529         (s390_gregset, s390_fpregset, s390_upper_regset)
4530         (s390_last_break_regset, s390x_last_break_regset)
4531         (s390_system_call_regset, s390_tdb_regset): Make global and
4532         replace s390_supply/_collect_regset by regcache_supply/
4533         _collect_regset.
4534         (s390x_gregset): Delete.
4535         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4536         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4537         (s390_regmap_fpregset, s390_regmap_last_break)
4538         (s390x_regmap_last_break, s390_regmap_system_call)
4539         (s390_regmap_tdb): Delete global variable declarations.
4540         (s390_gregset, s390_fpregset, s390_last_break_regset)
4541         (s390x_last_break_regset, s390_system_call_regset)
4542         (s390_tdb_regset): New global variable declarations.
4543
4544 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4545
4546         * regcache.c: Include "regset.h".
4547         (regcache_transfer_regset): New local function.
4548         (regcache_supply_regset, regcache_collect_regset): New functions.
4549         * regcache.h (struct regcache_map_entry): New structure.
4550         (REGCACHE_MAP_SKIP): New enum value.
4551         (regcache_supply_regset, regcache_collect_regset): New prototypes.
4552
4553 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4554
4555         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4556         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4557         (ppc_linux_collect_gregset ): Likewise.
4558         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4559         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4560         (ppc_collect_vrregset): Likewise.
4561         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4562         Likewise.
4563
4564 2014-08-07  Yao Qi  <yao@codesourcery.com>
4565
4566         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4567         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4568         * remote.c (remote_read_bytes): Likewise.
4569
4570 2014-08-07  Yao Qi  <yao@codesourcery.com>
4571
4572         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4573
4574 2014-08-07  Yao Qi  <yao@codesourcery.com>
4575
4576         PR remote/17230
4577         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4578         TARGET_XFER_OK instead of 0.
4579
4580 2014-08-07  Gary Benson  <gbenson@redhat.com>
4581
4582         * common/common-defs.h: Include errno.h.
4583         * defs.h: Do not include errno.h.
4584         * ada-typeprint.c: Likewise.
4585         * c-typeprint.c: Likewise.
4586         * core-regset.c: Likewise.
4587         * corefile.c: Likewise.
4588         * corelow.c: Likewise.
4589         * event-loop.c: Likewise.
4590         * f-typeprint.c: Likewise.
4591         * gnu-nat.c: Likewise.
4592         * go32-nat.c: Likewise.
4593         * i386gnu-nat.c: Likewise.
4594         * m2-typeprint.c: Likewise.
4595         * nat/linux-btrace.c: Likewise.
4596         * p-typeprint.c: Likewise.
4597         * procfs.c: Likewise.
4598         * remote-sim.c: Likewise.
4599         * rs6000-nat.c: Likewise.
4600         * target.c: Likewise.
4601         * typeprint.c: Likewise.
4602         * ui-file.c: Likewise.
4603         * valops.c: Likewise.
4604         * valprint.c: Likewise.
4605
4606 2014-08-07  Gary Benson  <gbenson@redhat.com>
4607
4608         * common/common-defs.h: Include string.h.
4609         * aarch64-tdep.c: Do not include string.h.
4610         * ada-exp.y: Likewise.
4611         * ada-lang.c: Likewise.
4612         * ada-lex.l: Likewise.
4613         * ada-typeprint.c: Likewise.
4614         * ada-valprint.c: Likewise.
4615         * aix-thread.c: Likewise.
4616         * alpha-linux-tdep.c: Likewise.
4617         * alpha-mdebug-tdep.c: Likewise.
4618         * alpha-nat.c: Likewise.
4619         * alpha-osf1-tdep.c: Likewise.
4620         * alpha-tdep.c: Likewise.
4621         * alphanbsd-tdep.c: Likewise.
4622         * amd64-dicos-tdep.c: Likewise.
4623         * amd64-linux-tdep.c: Likewise.
4624         * amd64-nat.c: Likewise.
4625         * amd64-sol2-tdep.c: Likewise.
4626         * amd64fbsd-tdep.c: Likewise.
4627         * amd64obsd-tdep.c: Likewise.
4628         * arch-utils.c: Likewise.
4629         * arm-linux-nat.c: Likewise.
4630         * arm-linux-tdep.c: Likewise.
4631         * arm-tdep.c: Likewise.
4632         * arm-wince-tdep.c: Likewise.
4633         * armbsd-tdep.c: Likewise.
4634         * armnbsd-nat.c: Likewise.
4635         * armnbsd-tdep.c: Likewise.
4636         * armobsd-tdep.c: Likewise.
4637         * avr-tdep.c: Likewise.
4638         * ax-gdb.c: Likewise.
4639         * ax-general.c: Likewise.
4640         * bcache.c: Likewise.
4641         * bfin-tdep.c: Likewise.
4642         * breakpoint.c: Likewise.
4643         * build-id.c: Likewise.
4644         * buildsym.c: Likewise.
4645         * c-exp.y: Likewise.
4646         * c-lang.c: Likewise.
4647         * c-typeprint.c: Likewise.
4648         * c-valprint.c: Likewise.
4649         * charset.c: Likewise.
4650         * cli-out.c: Likewise.
4651         * cli/cli-cmds.c: Likewise.
4652         * cli/cli-decode.c: Likewise.
4653         * cli/cli-dump.c: Likewise.
4654         * cli/cli-interp.c: Likewise.
4655         * cli/cli-logging.c: Likewise.
4656         * cli/cli-script.c: Likewise.
4657         * cli/cli-setshow.c: Likewise.
4658         * cli/cli-utils.c: Likewise.
4659         * coffread.c: Likewise.
4660         * common/agent.c: Likewise.
4661         * common/buffer.c: Likewise.
4662         * common/buffer.h: Likewise.
4663         * common/common-utils.c: Likewise.
4664         * common/filestuff.c: Likewise.
4665         * common/filestuff.c: Likewise.
4666         * common/format.c: Likewise.
4667         * common/print-utils.c: Likewise.
4668         * common/rsp-low.c: Likewise.
4669         * common/signals.c: Likewise.
4670         * common/vec.h: Likewise.
4671         * common/xml-utils.c: Likewise.
4672         * core-regset.c: Likewise.
4673         * corefile.c: Likewise.
4674         * corelow.c: Likewise.
4675         * cp-abi.c: Likewise.
4676         * cp-name-parser.y: Likewise.
4677         * cp-support.c: Likewise.
4678         * cp-valprint.c: Likewise.
4679         * cris-tdep.c: Likewise.
4680         * d-exp.y: Likewise.
4681         * darwin-nat.c: Likewise.
4682         * dbxread.c: Likewise.
4683         * dcache.c: Likewise.
4684         * demangle.c: Likewise.
4685         * dicos-tdep.c: Likewise.
4686         * disasm.c: Likewise.
4687         * doublest.c: Likewise.
4688         * dsrec.c: Likewise.
4689         * dummy-frame.c: Likewise.
4690         * dwarf2-frame.c: Likewise.
4691         * dwarf2loc.c: Likewise.
4692         * dwarf2read.c: Likewise.
4693         * elfread.c: Likewise.
4694         * environ.c: Likewise.
4695         * eval.c: Likewise.
4696         * event-loop.c: Likewise.
4697         * exceptions.c: Likewise.
4698         * exec.c: Likewise.
4699         * expprint.c: Likewise.
4700         * f-exp.y: Likewise.
4701         * f-lang.c: Likewise.
4702         * f-typeprint.c: Likewise.
4703         * f-valprint.c: Likewise.
4704         * fbsd-nat.c: Likewise.
4705         * findcmd.c: Likewise.
4706         * findvar.c: Likewise.
4707         * fork-child.c: Likewise.
4708         * frame.c: Likewise.
4709         * frv-linux-tdep.c: Likewise.
4710         * frv-tdep.c: Likewise.
4711         * gdb.c: Likewise.
4712         * gdb_bfd.c: Likewise.
4713         * gdbarch.c: Likewise.
4714         * gdbarch.sh: Likewise.
4715         * gdbtypes.c: Likewise.
4716         * gnu-nat.c: Likewise.
4717         * gnu-v2-abi.c: Likewise.
4718         * gnu-v3-abi.c: Likewise.
4719         * go-exp.y: Likewise.
4720         * go-lang.c: Likewise.
4721         * go32-nat.c: Likewise.
4722         * guile/guile.c: Likewise.
4723         * guile/scm-auto-load.c: Likewise.
4724         * hppa-hpux-tdep.c: Likewise.
4725         * hppa-linux-nat.c: Likewise.
4726         * hppanbsd-tdep.c: Likewise.
4727         * hppaobsd-tdep.c: Likewise.
4728         * i386-cygwin-tdep.c: Likewise.
4729         * i386-dicos-tdep.c: Likewise.
4730         * i386-linux-tdep.c: Likewise.
4731         * i386-nto-tdep.c: Likewise.
4732         * i386-sol2-tdep.c: Likewise.
4733         * i386-tdep.c: Likewise.
4734         * i386bsd-tdep.c: Likewise.
4735         * i386gnu-nat.c: Likewise.
4736         * i386nbsd-tdep.c: Likewise.
4737         * i386obsd-tdep.c: Likewise.
4738         * i387-tdep.c: Likewise.
4739         * ia64-libunwind-tdep.c: Likewise.
4740         * ia64-linux-nat.c: Likewise.
4741         * inf-child.c: Likewise.
4742         * inf-ptrace.c: Likewise.
4743         * inf-ttrace.c: Likewise.
4744         * infcall.c: Likewise.
4745         * infcmd.c: Likewise.
4746         * inflow.c: Likewise.
4747         * infrun.c: Likewise.
4748         * interps.c: Likewise.
4749         * iq2000-tdep.c: Likewise.
4750         * irix5-nat.c: Likewise.
4751         * jv-exp.y: Likewise.
4752         * jv-lang.c: Likewise.
4753         * jv-typeprint.c: Likewise.
4754         * jv-valprint.c: Likewise.
4755         * language.c: Likewise.
4756         * linux-fork.c: Likewise.
4757         * linux-nat.c: Likewise.
4758         * lm32-tdep.c: Likewise.
4759         * m2-exp.y: Likewise.
4760         * m2-typeprint.c: Likewise.
4761         * m32c-tdep.c: Likewise.
4762         * m32r-linux-nat.c: Likewise.
4763         * m32r-linux-tdep.c: Likewise.
4764         * m32r-rom.c: Likewise.
4765         * m32r-tdep.c: Likewise.
4766         * m68hc11-tdep.c: Likewise.
4767         * m68k-tdep.c: Likewise.
4768         * m68kbsd-tdep.c: Likewise.
4769         * m68klinux-nat.c: Likewise.
4770         * m68klinux-tdep.c: Likewise.
4771         * m88k-tdep.c: Likewise.
4772         * machoread.c: Likewise.
4773         * macrocmd.c: Likewise.
4774         * main.c: Likewise.
4775         * mdebugread.c: Likewise.
4776         * mem-break.c: Likewise.
4777         * memattr.c: Likewise.
4778         * memory-map.c: Likewise.
4779         * mep-tdep.c: Likewise.
4780         * mi/mi-cmd-break.c: Likewise.
4781         * mi/mi-cmd-disas.c: Likewise.
4782         * mi/mi-cmd-env.c: Likewise.
4783         * mi/mi-cmd-stack.c: Likewise.
4784         * mi/mi-cmd-var.c: Likewise.
4785         * mi/mi-cmds.c: Likewise.
4786         * mi/mi-console.c: Likewise.
4787         * mi/mi-getopt.c: Likewise.
4788         * mi/mi-interp.c: Likewise.
4789         * mi/mi-main.c: Likewise.
4790         * mi/mi-parse.c: Likewise.
4791         * microblaze-rom.c: Likewise.
4792         * microblaze-tdep.c: Likewise.
4793         * mingw-hdep.c: Likewise.
4794         * minidebug.c: Likewise.
4795         * minsyms.c: Likewise.
4796         * mips-irix-tdep.c: Likewise.
4797         * mips-linux-tdep.c: Likewise.
4798         * mips-tdep.c: Likewise.
4799         * mips64obsd-tdep.c: Likewise.
4800         * mipsnbsd-tdep.c: Likewise.
4801         * mipsread.c: Likewise.
4802         * mn10300-linux-tdep.c: Likewise.
4803         * mn10300-tdep.c: Likewise.
4804         * monitor.c: Likewise.
4805         * moxie-tdep.c: Likewise.
4806         * mt-tdep.c: Likewise.
4807         * nat/linux-btrace.c: Likewise.
4808         * nat/linux-osdata.c: Likewise.
4809         * nat/linux-procfs.c: Likewise.
4810         * nat/linux-ptrace.c: Likewise.
4811         * nat/linux-waitpid.c: Likewise.
4812         * nbsd-tdep.c: Likewise.
4813         * nios2-linux-tdep.c: Likewise.
4814         * nto-procfs.c: Likewise.
4815         * nto-tdep.c: Likewise.
4816         * objc-lang.c: Likewise.
4817         * objfiles.c: Likewise.
4818         * opencl-lang.c: Likewise.
4819         * osabi.c: Likewise.
4820         * osdata.c: Likewise.
4821         * p-exp.y: Likewise.
4822         * p-lang.c: Likewise.
4823         * p-typeprint.c: Likewise.
4824         * parse.c: Likewise.
4825         * posix-hdep.c: Likewise.
4826         * ppc-linux-nat.c: Likewise.
4827         * ppc-sysv-tdep.c: Likewise.
4828         * ppcfbsd-tdep.c: Likewise.
4829         * ppcnbsd-tdep.c: Likewise.
4830         * ppcobsd-tdep.c: Likewise.
4831         * printcmd.c: Likewise.
4832         * procfs.c: Likewise.
4833         * prologue-value.c: Likewise.
4834         * python/py-auto-load.c: Likewise.
4835         * python/py-gdb-readline.c: Likewise.
4836         * ravenscar-thread.c: Likewise.
4837         * regcache.c: Likewise.
4838         * registry.c: Likewise.
4839         * remote-fileio.c: Likewise.
4840         * remote-m32r-sdi.c: Likewise.
4841         * remote-mips.c: Likewise.
4842         * remote-notif.c: Likewise.
4843         * remote-sim.c: Likewise.
4844         * remote.c: Likewise.
4845         * reverse.c: Likewise.
4846         * rs6000-aix-tdep.c: Likewise.
4847         * ser-base.c: Likewise.
4848         * ser-go32.c: Likewise.
4849         * ser-mingw.c: Likewise.
4850         * ser-pipe.c: Likewise.
4851         * ser-tcp.c: Likewise.
4852         * ser-unix.c: Likewise.
4853         * serial.c: Likewise.
4854         * sh-tdep.c: Likewise.
4855         * sh64-tdep.c: Likewise.
4856         * shnbsd-tdep.c: Likewise.
4857         * skip.c: Likewise.
4858         * sol-thread.c: Likewise.
4859         * solib-dsbt.c: Likewise.
4860         * solib-frv.c: Likewise.
4861         * solib-osf.c: Likewise.
4862         * solib-som.c: Likewise.
4863         * solib-spu.c: Likewise.
4864         * solib-target.c: Likewise.
4865         * solib.c: Likewise.
4866         * somread.c: Likewise.
4867         * source.c: Likewise.
4868         * sparc-nat.c: Likewise.
4869         * sparc-sol2-tdep.c: Likewise.
4870         * sparc-tdep.c: Likewise.
4871         * sparc64-tdep.c: Likewise.
4872         * sparc64fbsd-tdep.c: Likewise.
4873         * sparc64nbsd-tdep.c: Likewise.
4874         * sparcnbsd-tdep.c: Likewise.
4875         * spu-linux-nat.c: Likewise.
4876         * spu-multiarch.c: Likewise.
4877         * spu-tdep.c: Likewise.
4878         * stabsread.c: Likewise.
4879         * stack.c: Likewise.
4880         * std-regs.c: Likewise.
4881         * symfile.c: Likewise.
4882         * symmisc.c: Likewise.
4883         * symtab.c: Likewise.
4884         * target.c: Likewise.
4885         * thread.c: Likewise.
4886         * tilegx-linux-nat.c: Likewise.
4887         * tilegx-tdep.c: Likewise.
4888         * top.c: Likewise.
4889         * tracepoint.c: Likewise.
4890         * tui/tui-command.c: Likewise.
4891         * tui/tui-data.c: Likewise.
4892         * tui/tui-disasm.c: Likewise.
4893         * tui/tui-file.c: Likewise.
4894         * tui/tui-layout.c: Likewise.
4895         * tui/tui-out.c: Likewise.
4896         * tui/tui-regs.c: Likewise.
4897         * tui/tui-source.c: Likewise.
4898         * tui/tui-stack.c: Likewise.
4899         * tui/tui-win.c: Likewise.
4900         * tui/tui-windata.c: Likewise.
4901         * tui/tui-winsource.c: Likewise.
4902         * typeprint.c: Likewise.
4903         * ui-file.c: Likewise.
4904         * ui-out.c: Likewise.
4905         * user-regs.c: Likewise.
4906         * utils.c: Likewise.
4907         * v850-tdep.c: Likewise.
4908         * valarith.c: Likewise.
4909         * valops.c: Likewise.
4910         * valprint.c: Likewise.
4911         * value.c: Likewise.
4912         * varobj.c: Likewise.
4913         * vax-tdep.c: Likewise.
4914         * vaxnbsd-tdep.c: Likewise.
4915         * vaxobsd-tdep.c: Likewise.
4916         * windows-nat.c: Likewise.
4917         * xcoffread.c: Likewise.
4918         * xml-support.c: Likewise.
4919         * xstormy16-tdep.c: Likewise.
4920         * xtensa-linux-nat.c: Likewise.
4921
4922 2014-08-07  Gary Benson  <gbenson@redhat.com>
4923
4924         * common/common-defs.h: Include gdb_assert.h.
4925         * aarch64-tdep.c: Do not include gdb_assert.h.
4926         * addrmap.c: Likewise.
4927         * aix-thread.c: Likewise.
4928         * alpha-linux-tdep.c: Likewise.
4929         * alpha-mdebug-tdep.c: Likewise.
4930         * alphanbsd-tdep.c: Likewise.
4931         * amd64-nat.c: Likewise.
4932         * amd64-tdep.c: Likewise.
4933         * amd64bsd-nat.c: Likewise.
4934         * amd64fbsd-nat.c: Likewise.
4935         * amd64fbsd-tdep.c: Likewise.
4936         * amd64nbsd-nat.c: Likewise.
4937         * amd64nbsd-tdep.c: Likewise.
4938         * amd64obsd-nat.c: Likewise.
4939         * amd64obsd-tdep.c: Likewise.
4940         * arch-utils.c: Likewise.
4941         * arm-tdep.c: Likewise.
4942         * armbsd-tdep.c: Likewise.
4943         * auxv.c: Likewise.
4944         * bcache.c: Likewise.
4945         * bfin-tdep.c: Likewise.
4946         * blockframe.c: Likewise.
4947         * breakpoint.c: Likewise.
4948         * bsd-kvm.c: Likewise.
4949         * bsd-uthread.c: Likewise.
4950         * buildsym.c: Likewise.
4951         * c-exp.y: Likewise.
4952         * c-lang.c: Likewise.
4953         * charset.c: Likewise.
4954         * cleanups.c: Likewise.
4955         * cli-out.c: Likewise.
4956         * cli/cli-decode.c: Likewise.
4957         * cli/cli-dump.c: Likewise.
4958         * cli/cli-logging.c: Likewise.
4959         * cli/cli-script.c: Likewise.
4960         * cli/cli-utils.c: Likewise.
4961         * coffread.c: Likewise.
4962         * common/common-utils.c: Likewise.
4963         * common/queue.h: Likewise.
4964         * common/signals.c: Likewise.
4965         * common/vec.h: Likewise.
4966         * complaints.c: Likewise.
4967         * completer.c: Likewise.
4968         * corelow.c: Likewise.
4969         * cp-abi.c: Likewise.
4970         * cp-name-parser.y: Likewise.
4971         * cp-namespace.c: Likewise.
4972         * cp-support.c: Likewise.
4973         * cris-tdep.c: Likewise.
4974         * dbxread.c: Likewise.
4975         * dictionary.c: Likewise.
4976         * doublest.c: Likewise.
4977         * dsrec.c: Likewise.
4978         * dummy-frame.c: Likewise.
4979         * dwarf2-frame-tailcall.c: Likewise.
4980         * dwarf2-frame.c: Likewise.
4981         * dwarf2expr.c: Likewise.
4982         * dwarf2loc.c: Likewise.
4983         * dwarf2read.c: Likewise.
4984         * eval.c: Likewise.
4985         * event-loop.c: Likewise.
4986         * exceptions.c: Likewise.
4987         * expprint.c: Likewise.
4988         * f-valprint.c: Likewise.
4989         * fbsd-nat.c: Likewise.
4990         * findvar.c: Likewise.
4991         * frame-unwind.c: Likewise.
4992         * frame.c: Likewise.
4993         * frv-tdep.c: Likewise.
4994         * gcore.c: Likewise.
4995         * gdb-dlfcn.c: Likewise.
4996         * gdb_bfd.c: Likewise.
4997         * gdbarch.c: Likewise.
4998         * gdbarch.sh: Likewise.
4999         * gdbtypes.c: Likewise.
5000         * gnu-nat.c: Likewise.
5001         * gnu-v3-abi.c: Likewise.
5002         * go-lang.c: Likewise.
5003         * guile/scm-exception.c: Likewise.
5004         * guile/scm-gsmob.c: Likewise.
5005         * guile/scm-lazy-string.c: Likewise.
5006         * guile/scm-math.c: Likewise.
5007         * guile/scm-pretty-print.c: Likewise.
5008         * guile/scm-safe-call.c: Likewise.
5009         * guile/scm-utils.c: Likewise.
5010         * guile/scm-value.c: Likewise.
5011         * h8300-tdep.c: Likewise.
5012         * hppa-hpux-nat.c: Likewise.
5013         * hppa-tdep.c: Likewise.
5014         * hppanbsd-tdep.c: Likewise.
5015         * hppaobsd-tdep.c: Likewise.
5016         * i386-darwin-nat.c: Likewise.
5017         * i386-darwin-tdep.c: Likewise.
5018         * i386-nto-tdep.c: Likewise.
5019         * i386-tdep.c: Likewise.
5020         * i386bsd-nat.c: Likewise.
5021         * i386fbsd-tdep.c: Likewise.
5022         * i386gnu-nat.c: Likewise.
5023         * i386nbsd-tdep.c: Likewise.
5024         * i386obsd-tdep.c: Likewise.
5025         * i387-tdep.c: Likewise.
5026         * ia64-libunwind-tdep.c: Likewise.
5027         * ia64-tdep.c: Likewise.
5028         * inf-ptrace.c: Likewise.
5029         * inf-ttrace.c: Likewise.
5030         * infcall.c: Likewise.
5031         * infcmd.c: Likewise.
5032         * infrun.c: Likewise.
5033         * inline-frame.c: Likewise.
5034         * interps.c: Likewise.
5035         * jv-lang.c: Likewise.
5036         * jv-typeprint.c: Likewise.
5037         * linux-fork.c: Likewise.
5038         * linux-nat.c: Likewise.
5039         * linux-thread-db.c: Likewise.
5040         * m32c-tdep.c: Likewise.
5041         * m32r-linux-nat.c: Likewise.
5042         * m32r-tdep.c: Likewise.
5043         * m68k-tdep.c: Likewise.
5044         * m68kbsd-nat.c: Likewise.
5045         * m68kbsd-tdep.c: Likewise.
5046         * m88k-tdep.c: Likewise.
5047         * machoread.c: Likewise.
5048         * macroexp.c: Likewise.
5049         * macrotab.c: Likewise.
5050         * maint.c: Likewise.
5051         * mdebugread.c: Likewise.
5052         * memory-map.c: Likewise.
5053         * mep-tdep.c: Likewise.
5054         * mi/mi-common.c: Likewise.
5055         * microblaze-tdep.c: Likewise.
5056         * mingw-hdep.c: Likewise.
5057         * mips-linux-nat.c: Likewise.
5058         * mips-linux-tdep.c: Likewise.
5059         * mips-tdep.c: Likewise.
5060         * mips64obsd-tdep.c: Likewise.
5061         * mipsnbsd-tdep.c: Likewise.
5062         * mn10300-linux-tdep.c: Likewise.
5063         * mn10300-tdep.c: Likewise.
5064         * moxie-tdep.c: Likewise.
5065         * mt-tdep.c: Likewise.
5066         * nat/linux-btrace.c: Likewise.
5067         * nat/linux-osdata.c: Likewise.
5068         * nat/linux-ptrace.c: Likewise.
5069         * nat/mips-linux-watch.c: Likewise.
5070         * nios2-linux-tdep.c: Likewise.
5071         * nios2-tdep.c: Likewise.
5072         * objc-lang.c: Likewise.
5073         * objfiles.c: Likewise.
5074         * obsd-nat.c: Likewise.
5075         * opencl-lang.c: Likewise.
5076         * osabi.c: Likewise.
5077         * parse.c: Likewise.
5078         * ppc-linux-nat.c: Likewise.
5079         * ppc-sysv-tdep.c: Likewise.
5080         * ppcfbsd-nat.c: Likewise.
5081         * ppcfbsd-tdep.c: Likewise.
5082         * ppcnbsd-nat.c: Likewise.
5083         * ppcnbsd-tdep.c: Likewise.
5084         * ppcobsd-nat.c: Likewise.
5085         * ppcobsd-tdep.c: Likewise.
5086         * printcmd.c: Likewise.
5087         * procfs.c: Likewise.
5088         * prologue-value.c: Likewise.
5089         * psymtab.c: Likewise.
5090         * python/py-lazy-string.c: Likewise.
5091         * python/py-value.c: Likewise.
5092         * regcache.c: Likewise.
5093         * reggroups.c: Likewise.
5094         * registry.c: Likewise.
5095         * remote-sim.c: Likewise.
5096         * remote.c: Likewise.
5097         * rs6000-aix-tdep.c: Likewise.
5098         * rs6000-tdep.c: Likewise.
5099         * s390-linux-tdep.c: Likewise.
5100         * score-tdep.c: Likewise.
5101         * ser-base.c: Likewise.
5102         * ser-mingw.c: Likewise.
5103         * sh-tdep.c: Likewise.
5104         * sh64-tdep.c: Likewise.
5105         * solib-darwin.c: Likewise.
5106         * solib-spu.c: Likewise.
5107         * solib-svr4.c: Likewise.
5108         * source.c: Likewise.
5109         * sparc-nat.c: Likewise.
5110         * sparc-sol2-tdep.c: Likewise.
5111         * sparc-tdep.c: Likewise.
5112         * sparc64-sol2-tdep.c: Likewise.
5113         * sparc64-tdep.c: Likewise.
5114         * sparc64fbsd-tdep.c: Likewise.
5115         * sparc64nbsd-tdep.c: Likewise.
5116         * sparc64obsd-tdep.c: Likewise.
5117         * sparcnbsd-tdep.c: Likewise.
5118         * sparcobsd-tdep.c: Likewise.
5119         * spu-multiarch.c: Likewise.
5120         * spu-tdep.c: Likewise.
5121         * stabsread.c: Likewise.
5122         * stack.c: Likewise.
5123         * symfile.c: Likewise.
5124         * symtab.c: Likewise.
5125         * target-descriptions.c: Likewise.
5126         * target-memory.c: Likewise.
5127         * target.c: Likewise.
5128         * tic6x-linux-tdep.c: Likewise.
5129         * tic6x-tdep.c: Likewise.
5130         * tilegx-linux-nat.c: Likewise.
5131         * tilegx-tdep.c: Likewise.
5132         * top.c: Likewise.
5133         * tramp-frame.c: Likewise.
5134         * tui/tui-out.c: Likewise.
5135         * tui/tui-winsource.c: Likewise.
5136         * ui-out.c: Likewise.
5137         * user-regs.c: Likewise.
5138         * utils.c: Likewise.
5139         * v850-tdep.c: Likewise.
5140         * valops.c: Likewise.
5141         * value.c: Likewise.
5142         * varobj.c: Likewise.
5143         * vax-nat.c: Likewise.
5144         * xml-syscall.c: Likewise.
5145         * xml-tdesc.c: Likewise.
5146         * xstormy16-tdep.c: Likewise.
5147         * xtensa-linux-nat.c: Likewise.
5148         * xtensa-tdep.c: Likewise.
5149
5150 2014-08-07  Gary Benson  <gbenson@redhat.com>
5151
5152         * common/common-defs.h: Include common-utils.h.
5153         * defs.h: Do not include common-utils.h.
5154         * common/gdb_assert.h: Likewise.
5155         * darwin-nat.h: Likewise.
5156         * nat/linux-btrace.c: Likewise.
5157         * target/waitstatus.h: Likewise.
5158
5159 2014-08-07  Gary Benson  <gbenson@redhat.com>
5160
5161         * common/common-defs.h: Include ptid.h.
5162         * defs.h: Do not include ptid.h.
5163         * inferior.h: Likewise.
5164         * infrun.h: Likewise.
5165         * nat/linux-btrace.h: Likewise.
5166         * nat/linux-osdata.h: Likewise.
5167         * target/waitstatus.h: Likewise.
5168
5169 2014-08-07  Gary Benson  <gbenson@redhat.com>
5170
5171         * common/common-defs.h: Include gdb_locale.h.
5172         * defs.h: Do not include gdb_locale.h.
5173
5174 2014-08-07  Gary Benson  <gbenson@redhat.com>
5175
5176         * common/common-defs.h: Include gdb/signals.h.
5177         * defs.h: Do not include gdb/signals.h.
5178
5179 2014-08-07  Gary Benson  <gbenson@redhat.com>
5180
5181         * common/common-defs.h: Include pathmax.h.
5182         * defs.h: Do not include pathmax.h.
5183
5184 2014-08-07  Gary Benson  <gbenson@redhat.com>
5185
5186         * common/common-defs.h: Include libiberty.h.
5187         * defs.h: Do not include libiberty.h.
5188         * common/queue.h: Likewise.
5189         * cp-name-parser.y: Likewise.
5190         * mi/mi-cmd-catch.c: Likewise.
5191         * python/python.c: Likewise.
5192
5193 2014-08-07  Gary Benson  <gbenson@redhat.com>
5194
5195         * common/common-defs.h: Include ansidecl.h.
5196         * defs.h: Do not include ansidecl.h.
5197         * common/buffer.h: Likewise.
5198         * common/common-utils.h: Likewise.
5199
5200 2014-08-07  Gary Benson  <gbenson@redhat.com>
5201
5202         * common/common-defs.h: Include stddef.h.
5203         * defs.h: Do not include stddef.h.
5204         * common/common-utils.h: Likewise.
5205         * amd64fbsd-nat.c: Likewise.
5206         * bcache.c: Likewise.
5207         * charset.c: Likewise.
5208         * common/buffer.h: Likewise.
5209         * common/vec.h: Likewise.
5210         * i386bsd-nat.c: Likewise.
5211         * nat/linux-btrace.h: Likewise.
5212         * ppcfbsd-nat.c: Likewise.
5213         * ppcnbsd-tdep.h: Likewise.
5214         * ppcobsd-nat.c: Likewise.
5215         * ppcobsd-tdep.h: Likewise.
5216         * python/py-gdb-readline.c: Likewise.
5217
5218 2014-08-07  Gary Benson  <gbenson@redhat.com>
5219
5220         * common/common-defs.h: Include stdarg.h.
5221         * defs.h: Do not include stdarg.h.
5222         * ada-lang.c: Likewise.
5223         * common/common-utils.h: Likewise.
5224         * guile/scm-string.c: Likewise.
5225         * guile/scm-utils.c: Likewise.
5226         * m32c-tdep.c: Likewise.
5227
5228 2014-08-07  Gary Benson  <gbenson@redhat.com>
5229
5230         * common/common-defs.h: Include stdlib.h.
5231         * defs.h: Do not include stdlib.h.
5232         * addrmap.c: Likewise.
5233         * bcache.c: Likewise.
5234         * common/buffer.c: Likewise.
5235         * common/common-utils.c: Likewise.
5236         * cp-name-parser.y: Likewise.
5237         * go32-nat.c: Likewise.
5238         * mn10300-linux-tdep.c: Likewise.
5239         * nat/linux-osdata.c: Likewise.
5240         * tui/tui.c: Likewise.
5241         * windows-nat.c: Likewise.
5242
5243 2014-08-07  Gary Benson  <gbenson@redhat.com>
5244
5245         * common/common-defs.h: Include stdio.h.
5246         * defs.h: Do not include stdio.h.
5247         * ada-lang.c: Likewise.
5248         * common/buffer.c: Likewise.
5249         * common/common-utils.c: Likewise.
5250         * cp-name-parser.y: Likewise.
5251         * gnu-nat.c: Likewise.
5252         * go32-nat.c: Likewise.
5253         * i386gnu-nat.c: Likewise.
5254         * proc-api.c: Likewise.
5255         * proc-events.c: Likewise.
5256         * proc-flags.c: Likewise.
5257         * proc-why.c: Likewise.
5258         * python/python-internal.h: Likewise.
5259         * target-memory.c: Likewise.
5260         * tui/tui-io.c: Likewise.
5261         * tui/tui.c: Likewise.
5262
5263 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5264
5265         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5266         (scan_dyntag_auxv): Same.
5267
5268 2014-08-06  Yao Qi  <yao@codesourcery.com>
5269
5270         * amd64-linux-nat.c: Remove duplicated include
5271         "x86-linux-nat.h".
5272         * i386-linux-nat.c: Likewise.
5273
5274 2014-08-06  Yao Qi  <yao@codesourcery.com>
5275
5276         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5277         operand" with "Special opcode" in comments.
5278
5279 2014-08-05  Gary Benson  <gbenson@redhat.com>
5280
5281         * interps.c (initialize_interps): Remove prototype.
5282         (interpreter_initialized): Remove static global.
5283         (interp_add): Do not call initialize_interps.
5284         (initialize_interps): Remove function.
5285
5286 2014-08-05  Gary Benson  <gbenson@redhat.com>
5287
5288         * utils.c (vwarning): Remove spurious va_end.
5289
5290 2014-08-05  Alan Modra  <amodra@gmail.com>
5291
5292         * charset.c (convert_between_encodings): Cast result of obstack_base.
5293         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5294         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5295         (read_unwind_info): Use size_t for some locals.
5296         * jit.c (finalize_symtab): Likewise.
5297         * utils.c (hashtab_obstack_allocate): Likewise.
5298         * symmisc.c (print_objfile_statistics): Update format strings.
5299
5300 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5301
5302         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5303         (Changes in GDB 7.8): ... here.
5304
5305 2014-08-04  Tom Tromey  <tromey@redhat.com>
5306
5307         * target.c (set_targetdebug): New function.
5308         (initialize_targets): Pass set_targetdebug when creating "set
5309         debug target".
5310
5311 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
5312
5313         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5314         if detecting a variable-sized field that is not the last field.
5315         Fix struct type length computation.
5316
5317 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
5318
5319         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5320         Add debug trace.
5321
5322 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
5323
5324         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5325         Remove "+ 8" offset in computation of CHAIN_VMA.
5326
5327 2014-07-31  Doug Evans  <dje@google.com>
5328
5329         * inflow.c (child_terminal_inferior): Add comment.
5330         (child_terminal_ours_for_output): Add comment.
5331         (child_terminal_ours): Add comment.
5332         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5333         (linux_nat_terminal_ours): Add comment.
5334
5335 2014-07-31  Gary Benson  <gbenson@redhat.com>
5336
5337         * common/btrace-common.h: Do not include defs.h or server.h.
5338         * nat/mips-linux-watch.h: Likewise.
5339         * gdb-dlfcn.h: Do not include defs.h.
5340         * tracefile.h: Likewise.
5341
5342 2014-07-30  Roland McGrath  <mcgrathr@google.com>
5343
5344         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5345
5346 2014-07-30  Tom Tromey  <tromey@redhat.com>
5347
5348         * bsd-kvm.c (bsd_kvm_open): Constify.
5349         * corelow.c (core_open): Constify.
5350         * ctf.c (ctf_open): Constify.
5351         * dbug-rom.c (dbug_open): Constify.
5352         * exec.c (exec_open): Constify.
5353         * m32r-rom.c (m32r_open, mon2000_open): Constify.
5354         * microblaze-rom.c (picobug_open): Constify.
5355         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5356         Constify.
5357         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5358         * record-btrace.c (record_btrace_open): Constify.
5359         * record-full.c (record_full_core_open_1, record_full_open_1)
5360         (record_full_open): Constify.
5361         * remote-m32r-sdi.c (m32r_open): Constify.
5362         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5363         (rockhopper_open, lsi_open): Constify.
5364         * remote-sim.c (gdbsim_open): Constify.
5365         * remote.c (remote_open, extended_remote_open, remote_open_1):
5366         Constify.
5367         * target.h (struct target_ops) <to_open>: Make "arg" const.
5368         * tracefile-tfile.c (tfile_open): Constify.
5369
5370 2014-07-30  Tom Tromey  <tromey@redhat.com>
5371
5372         * breakpoint.c (map_breakpoint_numbers): Update.
5373         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
5374         (get_number_const): New function.
5375         (get_number): Rewrite using get_number_const.
5376         (init_number_or_range): Make "string" const.
5377         (number_is_in_list): Make "list" const.
5378         * cli/cli-utils.h (get_number_const): Declare.
5379         (struct get_number_or_range_state) <string, end_ptr>: Now const.
5380         (init_number_or_range, number_is_in_list): Update.
5381         * printcmd.c (map_display_numbers): Update.
5382         * value.c (value_from_history_ref): Constify.
5383         * value.h (value_from_history_ref): Update.
5384
5385 2014-07-30  Tom Tromey  <tromey@redhat.com>
5386
5387         * corefile.c (hook_type, call_extra_exec_file_hooks)
5388         (specify_exec_file_hook): Constify.
5389         * exec.c (exec_file_attach): Make "filename" const.
5390         * gdbcore.h (deprecated_exec_file_display_hook)
5391         (specify_exec_file_hook, exec_file_attach): Constify.
5392         * main.c (captured_main): Use catch_command_errors_const.
5393
5394 2014-07-30  Tom Tromey  <tromey@redhat.com>
5395
5396         * target.c (open_target): New function.
5397         (add_target_with_completer, add_deprecated_target_alias): Use
5398         set_cmd_sfunc, set_cmd_context.
5399         (debug_to_open): Remove.
5400         (setup_target_debug): Update.
5401
5402 2014-07-30  Yao Qi  <yao@codesourcery.com>
5403
5404         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5405         comments.
5406         * parse.c (exp_iterate): Update comments.
5407
5408 2014-07-30  Gary Benson  <gbenson@redhat.com>
5409
5410         * common/common-defs.h: New file.
5411         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5412         * defs.h: Include common-defs.h.
5413         Do not include config.h or build-gnulib/config.h.
5414
5415 2014-07-30  Gary Benson  <gbenson@redhat.com>
5416
5417         * common/common-utils.h: Do not include config.h.
5418         * nat/linux-btrace.h: Likewise.
5419
5420 2014-07-30  Gary Benson  <gbenson@redhat.com>
5421
5422         * btrace.c: Include defs.h.
5423         * common/ptid.c: Include defs.h or server.h as appropriate.
5424         * nat/mips-linux-watch.c: Likewise.
5425
5426 2014-07-29  Tom Tromey  <tromey@redhat.com>
5427
5428         * target.c (target_is_pushed): Simplify.
5429
5430 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
5431
5432         GDB 7.8 released.
5433
5434 2014-07-29  Yao Qi  <yao@codesourcery.com>
5435
5436         PR gdb/17206
5437         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5438
5439 2014-07-28  Doug Evans  <xdje42@gmail.com>
5440
5441         PR guile/17203
5442         * guile/scm-param.c (pascm_parameter_defined_p): New function.
5443         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
5444         parameters.
5445
5446 2014-07-28  Will Newton  <will.newton@linaro.org>
5447
5448         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5449         (THUMB2_SET_R7_SIGRETURN2): Likewise.
5450         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5451         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5452         (THUMB2_EABI_SYSCALL): Likewise.
5453         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5454         struct tramp_frame.
5455         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5456         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5457
5458 2014-07-27  Doug Evans  <xdje42@gmail.com>
5459
5460         * guile/scm-param.c (pascm_print_param_smob): Fix output.
5461
5462 2014-07-27  Doug Evans  <xdje42@gmail.com>
5463
5464         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5465
5466 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
5467             Doug Evans  <xdje42@gmail.com>
5468
5469         PR guile/17146
5470         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5471         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5472         * configure.ac: Try to use guild to compile an scm file, if it fails
5473         then disable guile support.
5474         * configure: Regenerate.
5475         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5476         GUILE_FILE_LIST.
5477         (GUILE_COMPILED_FILES): New variable.
5478         (GUILE_FILES) Update.
5479         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5480         (stamp-guile): Compile scm files.
5481         * guile/guile.c (boot_guile_support): New function.
5482         (standard_throw_args_p): New function.
5483         (print_standard_throw_error, print_throw_error): New functions.
5484         (handle_boot_error): New function.
5485         (initialize_scheme_side): Rewrite to call boot_guile_support.
5486         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
5487         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5488
5489 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
5490             Doug Evans  <xdje42@gmail.com>
5491
5492         PR guile/17146
5493         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5494         * guile/lib/gdb/support.scm: New file.
5495         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5496         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5497         All uses updated.
5498         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5499         All uses updated.
5500         (%assert-type): Ditto, and renamed to assert-type.
5501         (%exception-print-style): Delete.
5502
5503 2014-07-26  Doug Evans  <xdje42@gmail.com>
5504
5505         PR build/17105
5506         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5507         * configure: Regenerate.
5508         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5509         PYTHON_FILES.
5510         (PYTHON_FILES): New variable.
5511         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5512         (GUILE_FILES): New variable.
5513         (stamp-python, install-python, uninstall-python): Handle empty
5514         file list.
5515         (stamp-guile, install-guile, uninstall-guile): Ditto.
5516
5517 2014-07-26  Doug Evans  <xdje42@gmail.com>
5518
5519         PR guile/17177
5520         * guile/lib/gdb.scm (pretty-printers): Export.
5521         (set-pretty-printers!): Export.
5522         * guile/lib/gdb/printing.scm (gdb module): Update.
5523         (prepend-pretty-printer!, append-pretty-printer!): Update.
5524         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5525         (pretty_printer_list_var): Delete.
5526         (pretty_printer_list): New static global.
5527         (gdbscm_pretty_printers): New function.
5528         (gdbscm_set_pretty_printers_x): New function.
5529         (ppscm_find_pretty_printer_from_gdb): Update.
5530         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5531         (gdbscm_initialize_pretty_printers): Update.
5532
5533 2014-07-26  Doug Evans  <xdje42@gmail.com>
5534
5535         PR 17185
5536         * configure.ac: Add check for header gc/gc.h.
5537         Add check for function setenv.
5538         * configure: Regenerate.
5539         * config.in: Regenerate.
5540         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5541
5542 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
5543
5544         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5545         variation in gdbarch matching.
5546
5547 2014-07-25  Tom Tromey  <tromey@redhat.com>
5548
5549         * exec.c (using_exec_ops): Remove.
5550         (exec_close_1): Update.  Remove extraneous block, reindent.
5551         (add_target_sections): Use target_is_pushed.
5552
5553 2014-07-25  Pedro Alves  <palves@redhat.com>
5554
5555         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5556         * monitor.c (monitor_create_inferior): Likewise.
5557         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5558         * remote-sim.c (gdbsim_create_inferior): Likewise.
5559         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5560         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5561         * windows-nat.c (do_initial_windows_stuff): Likewise.
5562
5563 2014-07-25  Pedro Alves  <palves@redhat.com>
5564
5565         * NEWS: Mention signal passing and "signal" command changes.
5566         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5567         comment.
5568         * breakpoint.c (until_break_command): Adjust clear_proceed_status
5569         call.
5570         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5571         * infcmd.c (proceed_thread_callback, continue_1, step_once)
5572         (jump_command): Adjust clear_proceed_status call.
5573         (signal_command): Warn if other thread that are resumed have
5574         signals that will be delivered.  Adjust clear_proceed_status call.
5575         (until_next_command, finish_command)
5576         (proceed_after_attach_callback, attach_command_post_wait)
5577         (attach_command): Adjust clear_proceed_status call.
5578         * infrun.c (proceed_after_vfork_done): Likewise.
5579         (proceed_after_attach_callback): Adjust comment.
5580         (clear_proceed_status_thread): Clear stop_signal if not in pass
5581         state.
5582         (clear_proceed_status_callback): Delete.
5583         (clear_proceed_status): New 'step' parameter.  Only clear the
5584         proceed status of threads the command being prepared is about to
5585         resume.
5586         (proceed): If passed in an explicit signal, override stop_signal
5587         with it.  Don't pass the last stop signal to the thread we're
5588         resuming.
5589         (init_wait_for_inferior): Adjust clear_proceed_status call.
5590         (switch_back_to_stepped_thread): Clear the signal if it should not
5591         be passed.
5592         * infrun.h (clear_proceed_status): New 'step' parameter.
5593         (user_visible_resume_ptid): Add comment.
5594         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5595         signal is in pass state.
5596         * remote.c (append_pending_thread_resumptions): Likewise.
5597         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5598
5599 2014-07-25  Tom Tromey  <tromey@redhat.com>
5600
5601         * target.h (target_stopped_data_address)
5602         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
5603         parentheses.
5604
5605 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
5606
5607         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5608         comments.
5609         (avr_pointer_to_address): Likewise.
5610
5611 2014-07-24  Tom Tromey  <tromey@redhat.com>
5612
5613         * monitor.c (compile_pattern): Update.
5614         * target.h (struct target_ops) <to_shortname, to_longname,
5615         to_doc>: Now const.
5616
5617 2014-07-24  Tom Tromey  <tromey@redhat.com>
5618
5619         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5620         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5621         (add_info_alias, add_com): Make "doc" const.
5622         (print_doc_line): Make "str" const.
5623         (delete_cmd): Update.
5624         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5625         (print_doc_line): Update.
5626         * cli/cli-script.c (document_command): Update.
5627         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5628         (add_com, add_info, add_info_alias): Update.
5629         * guile/scm-cmd.c (cmdscm_destroyer): Update.
5630         * python/py-cmd.c (cmdpy_destroyer): Update.
5631
5632 2014-07-24  Tom Tromey  <tromey@redhat.com>
5633
5634         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5635         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5636         (help_cmd_list): Constify.
5637         (lookup_cmd): Update.
5638         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5639         const.
5640         (help_cmd_list, apropos_cmd): Update.
5641         * cli/cli-script.c (show_user): Update.
5642         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5643         * cli/cli-setshow.h (cmd_show_list): Update.
5644         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5645         (cmd_show_list): Update.
5646         * guile/scm-cmd.c (cmdscm_destroyer): Update.
5647         * python/py-cmd.c (cmdpy_destroyer): Update.
5648
5649 2014-07-24  Tom Tromey  <tromey@redhat.com>
5650
5651         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5652         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5653         const.
5654         * command.h (deprecate_cmd): Update.
5655         * maint.c (maintenance_do_deprecate): Add casts.
5656
5657 2014-07-24  Tom Tromey  <tromey@redhat.com>
5658
5659         * cli/cli-decode.c (help_cmd): Make parameter "const".
5660         * cli/cli-decode.h (help_cmd): Update.
5661
5662 2014-07-24  Tom Tromey  <tromey@redhat.com>
5663
5664         * stack.c (up_silently_base, down_silently_base): Make argument
5665         const.
5666
5667 2014-07-24  Tom Tromey  <tromey@redhat.com>
5668
5669         * solib.c (solib_add): Make "pattern" const.
5670         * solib.h (solib_add): Update.
5671
5672 2014-07-24  Tom Tromey  <tromey@redhat.com>
5673
5674         * remote.c (remote_serial_open, print_packet, putpkt)
5675         (putpkt_binary): Constify.
5676         * remote.h (putpkt): Update.
5677
5678 2014-07-24  Tom Tromey  <tromey@redhat.com>
5679
5680         * monitor.c (monitor_open): Make "args" const.
5681         * monitor.h (monitor_open): Update.
5682
5683 2014-07-24  Tom Tromey  <tromey@redhat.com>
5684
5685         * maint.c (match_bfd_flags): Make "string" const.
5686         (print_bfd_section_info): Remove casts.
5687         (print_objfile_section_info): Make "string" const.
5688
5689 2014-07-24  Tom Tromey  <tromey@redhat.com>
5690
5691         * inf-child.c (inf_child_open_target): Make "arg" const.
5692         * inf-child.h (inf_child_open_target): Update.
5693
5694 2014-07-24  Tom Tromey  <tromey@redhat.com>
5695
5696         * environ.c (unset_in_environ): Make "var" const.
5697         * environ.h (unset_in_environ): Update.
5698
5699 2014-07-24  Tom Tromey  <tromey@redhat.com>
5700
5701         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5702         Make "cmd" const.
5703         (scan_filename_with_cleanup): Likewise.
5704         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5705         Make arguments const.
5706         (restore_command): Update.
5707
5708 2014-07-24  Pedro Alves  <palves@redhat.com>
5709
5710         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5711
5712 2014-07-24  Tom Tromey  <tromey@redhat.com>
5713             Gary Benson  <gbenson@redhat.com>
5714
5715         * nat/linux-ptrace.c (additional_flags): New global.
5716         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5717         additional_flags; don't check GDBSERVER.
5718         (linux_ptrace_set_additional_flags): New function.
5719         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5720         Declare.
5721         * linux-nat.c (_initialize_linux_nat): Call
5722         linux_ptrace_set_additional_flags.
5723
5724 2014-07-24  Tom Tromey  <tromey@redhat.com>
5725
5726         * make-target-delegates (munge_type, write_debugmethod): New
5727         functions.
5728         (debug_names): New global.
5729         ($TARGET_DEBUG_PRINTER): New global.
5730         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5731         name.
5732         Write debug methods.  Generate init_debug_target.
5733         * target-debug.h: New file.
5734         * target-delegates.c: Rebuild.
5735         * target.c: Include target-debug.h.
5736         (debug_target): Hoist definition.
5737         (target_kill, target_get_section_table, target_memory_map)
5738         (target_flash_erase, target_flash_done, target_detach)
5739         (target_disconnect, target_wait, target_resume)
5740         (target_pass_signals, target_program_signals, target_follow_fork)
5741         (target_mourn_inferior, target_search_memory)
5742         (target_thread_address_space, target_close)
5743         (target_find_new_threads, target_core_of_thread)
5744         (target_verify_memory, target_insert_mask_watchpoint)
5745         (target_remove_mask_watchpoint): Remove targetdebug code.
5746         (debug_to_post_attach, debug_to_prepare_to_store)
5747         (debug_to_files_info, debug_to_insert_breakpoint)
5748         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5749         (debug_to_region_ok_for_hw_watchpoint)
5750         (debug_to_can_accel_watchpoint_condition)
5751         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5752         (debug_to_watchpoint_addr_within_range)
5753         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5754         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5755         (debug_to_terminal_init, debug_to_terminal_inferior)
5756         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5757         (debug_to_terminal_save_ours, debug_to_terminal_info)
5758         (debug_to_load, debug_to_post_startup_inferior)
5759         (debug_to_insert_fork_catchpoint)
5760         (debug_to_remove_fork_catchpoint)
5761         (debug_to_insert_vfork_catchpoint)
5762         (debug_to_remove_vfork_catchpoint)
5763         (debug_to_insert_exec_catchpoint)
5764         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5765         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5766         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5767         (setup_target_debug): Call init_debug_target.
5768         * target.h (TARGET_DEBUG_PRINTER): New macro.
5769         (struct target_ops) <to_resume, to_wait, to_pass_signals,
5770         to_program_signals>: Use TARGET_DEBUG_PRINTER.
5771
5772 2014-07-24  Gary Benson  <gbenson@redhat.com>
5773
5774         * exceptions.h (throw_vfatal): Renamed to...
5775         (throw_vquit): New declaration.
5776         (throw_quit): Likewise.
5777         * exceptions.c (throw_vfatal): Renamed to...
5778         (throw_vquit): New function.
5779         (throw_quit): Likewise.
5780         (throw_error): Call throw_verror rather than throw_it.
5781         * utils.h (vfatal): Removed.
5782         (fatal): Likewise.
5783         * utils.c (vfatal): Removed.
5784         (fatal): Likewise.
5785         (internal_verror): Replaced call to fatal with call to throw_quit.
5786         (quit): Replaced calls to fatal with calls to throw_quit.
5787
5788 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
5789
5790         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5791         target_read_code.
5792
5793 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
5794
5795         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5796         less than zero in conditional expression.
5797
5798 2014-07-23  Tom Tromey  <tromey@redhat.com>
5799
5800         * make-target-delegates ($ARGS_PART): Match trailing close paren.
5801         ($INTRO_PART): Don't match whitespace.
5802         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
5803         argument matching.
5804         ($METHOD): Add $METHOD_TRAILER.
5805         (trim): Rewrite.
5806         (scan_target_h): New sub.
5807         Change main loop not to collect state.
5808         * target-delegates.c: Rebuild.
5809
5810 2014-07-23  Gary Benson  <gbenson@redhat.com>
5811
5812         * cp-support.c (gdb_demangle): Fix build on systems without
5813         sigaltstack.
5814
5815 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
5816
5817         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5818         for reference entry value target data value.
5819
5820 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
5821
5822         * stack.c (read_frame_arg): Verify value_optimized_out before calling
5823         value_available_contents_eq.
5824
5825 2014-07-22  Pedro Alves  <palves@redhat.com>
5826
5827         * value.c (allocate_optimized_out_value): Don't mark value as
5828         non-lazy.
5829
5830 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
5831
5832         * MAINTAINERS (Write After Approval): Update my email address.
5833
5834 2014-07-20  Doug Evans  <dje@google.com>
5835
5836         PR server/17147
5837         * remote.c (putpkt_binary): Add text to error message.
5838
5839 2014-07-20  Yao Qi  <yao@codesourcery.com>
5840
5841         * eval.c: Remove "Chill" from comments.
5842         * gdbtypes.h: Likewise.
5843         * symtab.h: Likewise.
5844
5845 2014-07-20  Yao Qi  <yao@codesourcery.com>
5846
5847         * std-operator.def: Update comments to TERNOP_SLICE.
5848
5849 2014-07-20  Yao Qi  <yao@codesourcery.com>
5850
5851         * std-operator.def: Remove BINOP_RANGE.
5852         * breakpoint.c (watchpoint_exp_is_const): Update.
5853         * expprint.c (dump_subexp_body_standard): Likewise.
5854         * eval.c (init_array_element): Remove dead code.
5855         (evaluate_subexp_standard): Likewise.
5856
5857 2014-07-20  Yao Qi  <yao@codesourcery.com>
5858
5859         * std-operator.def: Remove BINOP_IN.
5860         * breakpoint.c (watchpoint_exp_is_const): Update.
5861         * eval.c (evaluate_subexp_standard): Likewise.
5862         * expprint.c (dump_subexp_body_standard): Likewise.
5863
5864 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
5865
5866         * microblaze-tdep.c (microblaze_register_names): Add
5867         the rshr and rslr register names.
5868         (microblaze_gdbarch_init): Use of tdesc_has_registers.
5869         Use of tdesc_find_feature. Use of tdesc_data_alloc.
5870         Use of tdesc_numbered_register. Use of
5871         microblaze_register_g_packet_guesses. Use of
5872         tdesc_use_registers. Use of set_gdbarch_register_type.
5873         (microblaze_register_g_packet_guesses): New.
5874         * microblaze-tdep.h (microblaze_reg_num): Add
5875         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5876         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5877         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5878         * features/microblaze-core.xml: New file.
5879         * features/microblaze-stack-protect.xml: New file.
5880         * features/microblaze-with-stack-protect.c: New file.
5881         * features/microblaze-with-stack-protect.xml: New file.
5882         * features/microblaze.xml: New file.
5883         * features/microblaze.c: New file.
5884         * features/Makefile (microblaze-with-stack-protect): Add
5885         microblaze-with-stack-protect microblaze and microblaze-expedite.
5886         * regformats/microblaze-with-stack-protect.dat: New file.
5887         * regformats/microblaze.dat: New file.
5888         * doc/gdb.texinfo (MicroBlaze Features): Added.
5889
5890 2014-07-18  Tom Tromey  <tromey@redhat.com>
5891
5892         * exec.c (exec_ops): Now static.
5893         * exec.h (exec_ops): Don't declare.
5894
5895 2014-07-18  Tom Tromey  <tromey@redhat.com>
5896
5897         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5898         to find_target_beneath.
5899         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5900         find_target_beneath.
5901         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5902
5903 2014-07-18  Tom Tromey  <tromey@redhat.com>
5904
5905         PR gdb/17130:
5906         * utils.c (quit): Use target_supports_terminal_ours.
5907         * target.h (target_supports_terminal_ours): Declare.
5908         * target.c (target_supports_delete_record): Don't check
5909         to_delete_record against NULL.
5910         (target_supports_terminal_ours): New function.
5911
5912 2014-07-18  Tom Tromey  <tromey@redhat.com>
5913
5914         PR gdb/17130:
5915         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5916         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5917         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5918         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5919         * windows-nat.c (windows_xfer_partial): Always delegate.
5920         * record-btrace.c (record_btrace_xfer_partial): Simplify
5921         delegation.
5922         (record_btrace_fetch_registers, record_btrace_store_registers)
5923         (record_btrace_prepare_to_store, record_btrace_resume)
5924         (record_btrace_wait, record_btrace_find_new_threads)
5925         (record_btrace_thread_alive): Likewise.
5926         * procfs.c (procfs_xfer_partial): Always delegate.
5927         * corelow.c (core_xfer_partial): Always delegate.
5928         * sol-thread.c (sol_find_new_threads): Simplify delegation.
5929
5930 2014-07-18  Tom Tromey  <tromey@redhat.com>
5931
5932         * exec.c (exec_make_note_section): Move earlier.
5933
5934 2014-07-17  Doug Evans  <dje@google.com>
5935
5936         PR gdb/17170
5937         * maint.c (count_symtabs_and_blocks): Handle NULL
5938         current_program_space.
5939         (report_command_stats): Check global enabled flag in addition to
5940         recorded enabled flag.
5941         (make_command_stats_cleanup): Handle msg_type == 0, startup.
5942
5943 2014-07-16  Pedro Alves  <palves@redhat.com>
5944
5945         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5946
5947 2014-07-16  Tom Tromey  <tromey@redhat.com>
5948
5949         * target.h (struct target_ops) <to_delete_record>: Reformat
5950         comment.
5951
5952 2014-07-16  Tom Tromey  <tromey@redhat.com>
5953
5954         * target-delegates.c: Rebuild.
5955
5956 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
5957
5958         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5959         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5960         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5961         (avr_pointer_to_address): Likewise.
5962         (avr_address_class_type_flags): New function.
5963         (avr_address_class_type_flags_to_name): Likewise.
5964         (avr_address_class_name_to_type_flags): Likewise.
5965         (avr_gdbarch_init): Set address_class_type_flags,
5966         address_class_type_flags_to_name and
5967         address_class_name_to_type_flags.
5968
5969 2014-07-15  Pedro Alves  <palves@redhat.com>
5970
5971         * linux-nat.c (kill_callback): Save errno and work with saved
5972         copy.
5973
5974 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
5975
5976         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5977
5978 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
5979
5980         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5981         breakpoint support correctly.
5982
5983 2014-07-14  Pedro Alves  <palves@redhat.com>
5984
5985         * utils.c (prompt_for_continue): Call target_terminal_ours.
5986
5987 2014-07-14  Pedro Alves  <palves@redhat.com>
5988
5989         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5990         catch_errors.  Don't re-enable stdin or notify observers where,
5991         and rethrow error.
5992         (fetch_inferior_event_wrapper): Delete.
5993
5994 2014-07-14  Pedro Alves  <palves@redhat.com>
5995
5996         PR gdb/17072
5997         * top.c: Include "inf-loop.h".
5998         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5999         field.
6000         (gdb_readline_wrapper_cleanup): Make the target async again, if it
6001         was async before.
6002         (gdb_readline_wrapper): Store whether the target is async, and
6003         make it sync.
6004
6005 2014-07-14  Pedro Alves  <palves@redhat.com>
6006
6007         PR gdb/17072
6008         * top.c (gdb_readline_wrapper_line): Tweak comment.
6009         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
6010         the input handler callback.
6011
6012 2014-07-14  Pedro Alves  <palves@redhat.com>
6013
6014         PR gdb/17072
6015         * main.c: Include event-top.h.
6016         (handle_command_errors): New function.
6017         (catch_command_errors, catch_command_errors_const): Use it.
6018
6019 2014-07-14  Pedro Alves  <palves@redhat.com>
6020
6021         * exceptions.c (catch_command_errors, catch_command_errors_const):
6022         Moved to main.c.
6023         * exceptions.h (catch_command_errors_ftype)
6024         (catch_command_errors_const_ftype): Moved to main.c.
6025         (catch_command_errors, catch_command_errors_const): Delete
6026         declarations.
6027         * main.c (catch_command_errors_ftype)
6028         (catch_command_errors_const_ftype): Moved here from exceptions.h.
6029         (catch_command_errors, catch_command_errors_const)): Moved here
6030         from exceptions.c and make static.
6031
6032 2014-07-14  Pedro Alves  <palves@redhat.com>
6033
6034         * exceptions.c (print_any_exception): Delete.
6035         (catch_exceptions_with_msg): Use exception_print instead of
6036         print_any_exception.
6037         (catch_errors): Use exception_fprintf instead of
6038         print_any_exception.
6039         (catch_command_errors, catch_command_errors_const): Use
6040         exception_print instead of print_any_exception.
6041
6042 2014-07-14  Pedro Alves  <palves@redhat.com>
6043
6044         * infcall.c (run_inferior_call): Set 'sync_execution' while
6045         running the inferior call.
6046
6047 2014-07-14  Pedro Alves  <palves@redhat.com>
6048
6049         * value.c (value_contents_equal): Delete function.
6050         * value.h (value_contents_equal): Delete declaration.
6051
6052 2014-07-14  Tom Tromey  <tromey@redhat.com>
6053
6054         PR exp/17106:
6055         * gdbtypes.c (is_dynamic_type_internal): New function, from
6056         is_dynamic_type.
6057         (is_dynamic_type): Rewrite.
6058         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
6059         (resolve_dynamic_struct): Likewise.
6060         (resolve_dynamic_type_internal): New function, from
6061         resolve_dynamic_type.
6062         (resolve_dynamic_type): Rewrite.
6063
6064 2014-07-14  Tom Tromey  <tromey@redhat.com>
6065
6066         * target.c (target_require_runnable): Also check record_stratum.
6067         Update comment.
6068
6069 2014-07-11  Yao Qi  <yao@codesourcery.com>
6070
6071         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
6072         thumb_instruction_restores_sp return true.
6073
6074 2014-07-11  Yao Qi  <yao@codesourcery.com>
6075
6076         * arm-tdep.c (thumb_instruction_restores_sp): New function.
6077         (thumb_in_function_epilogue_p): Call
6078         thumb_instruction_restores_sp.
6079
6080 2014-07-11  Yao Qi  <yao@codesourcery.com>
6081
6082         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6083         'add sp, #imm'.
6084         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6085
6086 2014-07-11  Gary Benson  <gbenson@redhat.com>
6087
6088         * amd64-linux-nat.c (gdbcore.h): Remove include.
6089         (regset.h): Likewise.
6090         (nat/linux-btrace.h): Likewise.
6091         (btrace.h): Likewise.
6092         (gdb_assert.h): Likewise.
6093         (string.h): Likewise.
6094         (sys/uio.h): Likewise.
6095         (sys/debugreg.h): Likewise.
6096         (sys/syscall.h): Likewise.
6097         (sys/procfs.h): Likewise.
6098         (sys/user.h): Likewise.
6099         (asm/ptrace.h): Likewise.
6100         (i386-nat.h): Likewise.
6101         * i386-linux-nat.c (i386-nat.h): Likewise.
6102         (regset.h): Likewise.
6103         (target.h): Likewise.
6104         (linux-nat.h): Likewise.
6105         (nat/linux-btrace.h): Likewise.
6106         (btrace.h): Likewise.
6107         (gdb_assert.h): Likewise.
6108         (string.h): Likewise.
6109         (sys/uio.h): Likewise.
6110         (sys/user.h): Likewise.
6111         (sys/procfs.h): Likewise.
6112         (sys/reg.h): Likewise.
6113         (sys/debugreg.h): Likewise.
6114         (ORIG_EAX): Remove definition.
6115
6116 2014-07-11  Gary Benson  <gbenson@redhat.com>
6117
6118         * i386-linux-nat.h: New file.
6119         * x86-linux-nat.h: Likewise.
6120         * x86-linux-nat.c: Likewise.
6121         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6122         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6123         * config/i386/linux64.mh (NATDEPFILES): Likewise.
6124         * amd64-linux-nat.c (x86-linux-nat.h): New include.
6125         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6126         (PTRACE_SETREGSET): Likewise.
6127         (arch_lwp_info): Now in x86-linux-nat.c.
6128         (have_ptrace_getregset): Now in x86-linux-nat.h.
6129         (x86_linux_dr_get): Now in x86-linux-nat.c.
6130         (x86_linux_dr_set): Likewise.
6131         (x86_linux_dr_get_addr): Likewise.
6132         (x86_linux_dr_get_control): Likewise.
6133         (x86_linux_dr_get_status): Likewise.
6134         (update_debug_registers_callback): Likewise.
6135         (x86_linux_dr_set_control): Likewise.
6136         (x86_linux_dr_set_addr): Likewise.
6137         (x86_linux_prepare_to_resume): Likewise.
6138         (x86_linux_new_thread): Likewise.
6139         (x86_linux_new_fork): Likewise.
6140         (x86_linux_get_thread_area): Likewise.
6141         (super_post_startup_inferior): Likewise.
6142         (x86_linux_child_post_startup_inferior): Likewise.
6143         (AMD64_LINUX_USER64_CS): Likewise.
6144         (AMD64_LINUX_X32_DS): Likewise.
6145         (x86_linux_read_description): Likewise.
6146         (x86_linux_enable_btrace): Likewise.
6147         (x86_linux_disable_btrace): Likewise.
6148         (x86_linux_teardown_btrace): Likewise.
6149         (x86_linux_read_btrace): Likewise.
6150         (x86_linux_create_target): Likewise.
6151         (x86_linux_add_target): Likewise.
6152         * i386-linux-nat.c (x86-linux-nat.h): New include.
6153         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6154         (PTRACE_SETREGSET): Likewise.
6155         (arch_lwp_info): Now in x86-linux-nat.c.
6156         (have_ptrace_getregset): Now in x86-linux-nat.h.
6157         (x86_linux_dr_get): Now in x86-linux-nat.c.
6158         (x86_linux_dr_set): Likewise.
6159         (x86_linux_dr_get_addr): Likewise.
6160         (x86_linux_dr_get_control): Likewise.
6161         (x86_linux_dr_get_status): Likewise.
6162         (update_debug_registers_callback): Likewise.
6163         (x86_linux_dr_set_control): Likewise.
6164         (x86_linux_dr_set_addr): Likewise.
6165         (x86_linux_prepare_to_resume): Likewise.
6166         (x86_linux_new_thread): Likewise.
6167         (x86_linux_new_fork): Likewise.
6168         (x86_linux_get_thread_area): Likewise.
6169         (super_post_startup_inferior): Likewise.
6170         (x86_linux_child_post_startup_inferior): Likewise.
6171         (AMD64_LINUX_USER64_CS): Likewise.
6172         (AMD64_LINUX_X32_DS): Likewise.
6173         (x86_linux_read_description): Likewise.
6174         (x86_linux_enable_btrace): Likewise.
6175         (x86_linux_disable_btrace): Likewise.
6176         (x86_linux_teardown_btrace): Likewise.
6177         (x86_linux_read_btrace): Likewise.
6178         (x86_linux_create_target): Likewise.
6179         (x86_linux_add_target): Likewise.
6180
6181 2014-07-11  Gary Benson  <gbenson@redhat.com>
6182
6183         * amd64-linux-nat.c: Comment and whitespace changes.
6184         * i386-linux-nat.c: Comment and whitespace changes.
6185
6186 2014-07-11  Gary Benson  <gbenson@redhat.com>
6187
6188         * amd64-linux-nat.c (x86_linux_create_target): New function.
6189         (x86_linux_add_target): Likewise.
6190         (_initialize_amd64_linux_nat): Delegate to the above new functions.
6191         * i386-linux-nat.c (x86_linux_create_target): New function.
6192         (x86_linux_add_target): Likewise.
6193         (_initialize_i386_linux_nat): Delegate to the above new functions.
6194
6195 2014-07-11  Gary Benson  <gbenson@redhat.com>
6196
6197         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6198         (ps_get_thread_area): Delegate to the above in 32-bit mode.
6199         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6200         (ps_get_thread_area): Delegate to the above.
6201
6202 2014-07-11  Gary Benson  <gbenson@redhat.com>
6203
6204         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6205         x86_linux_read_description.  All uses updated.  amd64-specific
6206         code conditionalized.  Conditionalized i386-specific code added.
6207         Redundant cast removed.
6208         * i386-linux-nat.c (i386_linux_read_description): Renamed to
6209         x86_linux_read_description.  All uses updated.  i386-specific
6210         code conditionalized.  Conditionalized amd64-specific code added.
6211         One sizeof replaced with the actual type it is describing.
6212
6213 2014-07-11  Gary Benson  <gbenson@redhat.com>
6214
6215         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6216         x86_linux_dr_get.  All uses updated.
6217         (amd64_linux_dr_set): Renamed to
6218         x86_linux_dr_set.  All uses updated.
6219         (amd64_linux_dr_get_addr): Renamed to
6220         x86_linux_dr_get_addr.  All uses updated.
6221         (amd64_linux_dr_get_control): Renamed to
6222         x86_linux_dr_get_control.  All uses updated.
6223         (amd64_linux_dr_get_status): Renamed to
6224         x86_linux_dr_get_status.  All uses updated.
6225         (amd64_linux_dr_set_control): Renamed to
6226         x86_linux_dr_set_control.  All uses updated.
6227         (amd64_linux_dr_set_addr): Renamed to
6228         x86_linux_dr_set_addr.  All uses updated.
6229         (amd64_linux_prepare_to_resume): Renamed to
6230         x86_linux_prepare_to_resume.  All uses updated.
6231         (amd64_linux_new_thread): Renamed to
6232         x86_linux_new_thread.  All uses updated.
6233         (amd64_linux_new_fork): Renamed to
6234         x86_linux_new_fork.  All uses updated.
6235         (amd64_linux_child_post_startup_inferior): Renamed to
6236         x86_linux_child_post_startup_inferior.  All uses updated.
6237         (amd64_linux_enable_btrace): Renamed to
6238         x86_linux_enable_btrace.  All uses updated.
6239         (amd64_linux_disable_btrace): Renamed to
6240         x86_linux_disable_btrace.  All uses updated.
6241         (amd64_linux_teardown_btrace): Renamed to
6242         x86_linux_teardown_btrace.  All uses updated.
6243         (amd64_linux_read_btrace): Renamed to
6244         x86_linux_read_btrace.  All uses updated.
6245         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6246         x86_linux_dr_get.  All uses updated.
6247         (i386_linux_dr_set): Renamed to
6248         x86_linux_dr_set.  All uses updated.
6249         (i386_linux_dr_get_addr): Renamed to
6250         x86_linux_dr_get_addr.  All uses updated.
6251         (i386_linux_dr_get_control): Renamed to
6252         x86_linux_dr_get_control.  All uses updated.
6253         (i386_linux_dr_get_status): Renamed to
6254         x86_linux_dr_get_status.  All uses updated.
6255         (i386_linux_dr_set_control): Renamed to
6256         x86_linux_dr_set_control.  All uses updated.
6257         (i386_linux_dr_set_addr): Renamed to
6258         x86_linux_dr_set_addr.  All uses updated.
6259         (i386_linux_prepare_to_resume): Renamed to
6260         x86_linux_prepare_to_resume.  All uses updated.
6261         (i386_linux_new_thread): Renamed to
6262         x86_linux_new_thread.  All uses updated.
6263         (i386_linux_new_fork): Renamed to
6264         x86_linux_new_fork.  All uses updated.
6265         (i386_linux_child_post_startup_inferior): Renamed to
6266         x86_linux_child_post_startup_inferior.  All uses updated.
6267         (i386_linux_enable_btrace): Renamed to
6268         x86_linux_enable_btrace.  All uses updated.
6269         (i386_linux_disable_btrace): Renamed to
6270         x86_linux_disable_btrace.  All uses updated.
6271         (i386_linux_teardown_btrace): Renamed to
6272         x86_linux_teardown_btrace.  All uses updated.
6273         (i386_linux_read_btrace): Renamed to
6274         x86_linux_read_btrace.  All uses updated.
6275
6276 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
6277
6278         * remote.c (extended_remote_post_attach): New function.
6279         (init_extended_remote_ops): Install it as to_post_attach method.
6280
6281 2014-07-09  Pedro Alves  <palves@redhat.com>
6282
6283         * infcmd.c (attach_command_post_wait): Don't call
6284         target_terminal_inferior here.
6285         (attach_command): Call it here instead.
6286
6287 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
6288
6289         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6290         field.
6291         * c-varobj.c (c_is_path_expr_parent): New function, moved core
6292         from varobj.c, with additional checks.
6293         (c_varobj_ops): Fill in is_path_expr_parent field.
6294         (cplus_varobj_ops): Fill in is_path_expr_parent field.
6295         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6296         field.
6297         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6298         ops method.
6299         (varobj_default_is_path_expr_parent): New function.
6300         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6301         (varobj_default_is_path_expr_parent): Declare new function.
6302
6303 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6304
6305         * infcmd.c (finish_backward): Turn internal error into normal error.
6306
6307 2014-07-07  Pedro Alves  <palves@redhat.com>
6308
6309         PR gdb/17096
6310         * remote.c (async_handle_remote_sigint)
6311         (async_handle_remote_sigint_twice): Call
6312         gdb_call_async_signal_handler instead of
6313         mark_async_signal_handler.
6314
6315 2014-07-07  Tom Tromey  <tromey@redhat.com>
6316
6317         * target-delegates.c: Rebuild.
6318         * target.c (target_info_record): Remove.
6319         * record.c (info_record_command): Unconditionally call
6320         to_info_record.
6321         * target.h (struct target_ops) <to_info_record>: Use
6322         TARGET_DEFAULT_IGNORE.
6323         (target_info_record): Remove.
6324
6325 2014-07-07  Tom Tromey  <tromey@redhat.com>
6326
6327         * target.h (struct target_ops) <to_get_thread_local_address>: Use
6328         TARGET_DEFAULT_NORETURN.
6329         * target.c (generic_tls_error): New function.
6330         (target_translate_tls_address): Don't search target stack.
6331         * target-delegates.c: Rebuild.
6332         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6333         stack.
6334         * linux-thread-db.c (thread_db_get_thread_local_address):
6335         Unconditionally call beneath target.
6336
6337 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
6338
6339         * cli/cli-logging.c (pop_output_files): Assign targerr to
6340         gdb_stdtargerr.
6341
6342 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
6343
6344         * MAINTAINERS (Write After Approval): Update my email address.
6345
6346 2014-07-02  Gary Benson  <gbenson@redhat.com>
6347
6348         * proc-service.c (ps_xfer_memory): Update comment.
6349         (ps_pstop): Remove unused function.
6350         (ps_pcontinue): Likewise.
6351         (ps_lstop): Likewise.
6352         (ps_lcontinue): Likewise.
6353         (ps_lgetxregsize): Likewise.
6354         (ps_lgetxregs): Likewise.
6355         (ps_lsetxregs): Likewise.
6356         (ps_plog): Likewise.
6357         (ps_ptread): Likewise.
6358         (ps_ptwrite): Likewise.
6359
6360 2014-07-01  Mark Wielaard  <mjw@redhat.com>
6361
6362         * dwarf2read.c (add_array_cv_type): New function.
6363         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6364         (read_tag_volatile_type): Likewise.
6365
6366 2014-07-01  Tom Tromey  <tromey@redhat.com>
6367
6368         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6369         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6370         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6371         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6372         * command.h (cmd_cfunc_ftype): Move earlier.
6373         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6374         (add_com, add_info): Use cmd_cfunc_ftype.
6375
6376 2014-06-30  Tom Tromey  <tromey@redhat.com>
6377
6378         * symtab.c (operator_chars): Make parameters and return type
6379         const.
6380         (file_matches): Make "files" const.
6381         (struct search_symbols_data) <files>: Now const.
6382         (search_symbols): Make "regexp" and "files" parameters const.
6383         Update.
6384         (symtab_symbol_info): Remove cast.
6385         (rbreak_command): Update.
6386         * symtab.h (search_symbols): Update.
6387
6388 2014-06-27  Yao Qi  <yao@codesourcery.com>
6389
6390         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6391         Change parameter type to 'struct thread_info *'.  Caller
6392         updated.
6393         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6394         Update declaration.
6395         * dummy-frame.c (struct dummy_frame_id): New.
6396         (dummy_frame_id_eq): New function.
6397         (struct dummy_frame) <id>: Change its type to 'struct
6398         dummy_frame_id'.
6399         (dummy_frame_push): Add parameter ptid and save it in
6400         dummy_frame_id.
6401         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6402         inferior_ptid.
6403         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6404         to inferior_ptid.
6405         (lookup_dummy_frame): Change parameter type to 'struct
6406         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
6407         instead of frame_id_eq.
6408         (dummy_frame_pop): Add parameter ptid.  Callers updated.
6409         Update comments.  Compose dummy_frame_id and pass it to
6410         lookup_dummy_frame.
6411         (dummy_frame_discard): Add parameter ptid.
6412         (dummy_frame_sniffer): Compose dummy_frame_id and call
6413         dummy_frame_id_eq instead of frame_id_eq.
6414         (fprint_dummy_frames): Print ptid.
6415         * dummy-frame.h: Remove comments.
6416         (dummy_frame_push): Add ptid in declaration.
6417         (dummy_frame_pop, dummy_frame_discard): Likewise.
6418
6419 2014-06-26  Tom Tromey  <tromey@redhat.com>
6420
6421         * cli/cli-cmds.c (error_no_arg): Make "why" const.
6422         * command.h (error_no_arg): Update.
6423
6424 2014-06-26  Tom Tromey  <tromey@redhat.com>
6425
6426         * cli/cli-setshow.c (do_set_command): Make "arg" const.
6427         (do_show_command): Make "arg" const.
6428         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6429
6430 2014-06-26  Tom Tromey  <tromey@redhat.com>
6431
6432         * record-full.c (record_full_get_bookmark): Make "args" const.
6433         (record_full_goto_bookmark): Make "raw_bookmark" const.
6434         * record.c (record_goto): New function.
6435         (cmd_record_goto): Use it.  Now static.
6436         * record.h (record_goto): Declare.
6437         (cmd_record_goto): Remove declaration.
6438         * target-delegates.c: Rebuild.
6439         * target.h (struct target_ops) <to_get_bookmark,
6440         to_goto_bookmark>: Make parameter const.
6441
6442 2014-06-26  Tom Tromey  <tromey@redhat.com>
6443
6444         * defs.h (generic_load): Update.
6445         * m32r-rom.c (m32r_load_gen): Make "filename" const.
6446         * monitor.c (monitor_load): Make "args" const.
6447         * remote-m32r-sdi.c (m32r_load): Make "args" const.
6448         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6449         const.
6450         (mips_load): Make "file" const.
6451         * remote-sim.c (gdbsim_load): Make "args" const.
6452         * remote.c (remote_load): Make "name" const.
6453         * symfile.c (generic_load): Make "args" const.
6454         * target-delegates.c: Rebuild.
6455         * target.c (target_load): Make "arg" const.
6456         (debug_to_load): Make "args" const.
6457         * target.h (struct target_ops) <to_load>: Make parameter const.
6458         (target_load): Update.
6459
6460 2014-06-26  Tom Tromey  <tromey@redhat.com>
6461
6462         PR symtab/16902:
6463         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6464         (dwarf2_physname, read_partial_die)
6465         (guess_partial_die_structure_name, fixup_partial_die)
6466         (guess_full_die_structure_name, anonymous_struct_prefix)
6467         (dwarf2_name): Use per-BFD obstack.
6468
6469 2014-06-26  Yao Qi  <yao@codesourcery.com>
6470
6471         * dummy-frame.c (dummy_frame_sniffer): Move local variables
6472         dummyframe and this_id into inner block below.
6473
6474 2014-06-26  Yao Qi  <yao@codesourcery.com>
6475
6476         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6477         with "signal_pass[0]" in the initialization of signal_pass.
6478
6479 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
6480
6481         * record-btrace.c (record_btrace_generating_corefile)
6482         (record_btrace_prepare_to_generate_core)
6483         (record_btrace_done_generating_core): New.
6484         (record_btrace_xfer_partial, record_btrace_fetch_registers)
6485         (record_btrace_store_registers, record_btrace_prepare_to_store):
6486         Forward request when generating a core file.
6487         (record_btrace_open): Set record_btrace_generating_corefile to zero.
6488         (init_record_btrace_ops): Set to_prepare_to_generate_core and
6489         to_done_generating_core.
6490
6491 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
6492
6493         * target.h (target_ops) <to_prepare_to_generate_core>
6494         <to_done_generating_core>: New.
6495         (target_prepare_to_generate_core, target_done_generating_core): New.
6496         * target.c (target_prepare_to_generate_core)
6497         (target_done_generating_core): New.
6498         * target-delegates.c: Regenerate.
6499         * gcore.c: (write_gcore_file): Rename to ...
6500         (write_gcore_file_1): ...this.
6501         (write_gcore_file): Call target_prepare_to_generate_core
6502         and target_done_generating_core.
6503
6504 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
6505
6506         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6507         * gcore.c (write_gcore_file): Free memory returned from
6508         make_corefile_notes.
6509         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6510         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6511
6512 2014-06-24  Yao Qi  <yao@codesourcery.com>
6513
6514         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6515         (arm_linux_init_abi): Set skip_trampoline_code with
6516         gdbarch_skip_trampoline_code instead of
6517         find_solib_trampoline_target.
6518
6519 2014-06-24  Yao Qi  <yao@codesourcery.com>
6520
6521         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6522         arm_skip_bx_reg returns non-zero.
6523
6524 2014-06-24  Yao Qi  <yao@codesourcery.com>
6525
6526         * arm-tdep.c (arm_skip_bx_reg): New function.
6527         (arm_skip_stub): Call arm_skip_bx_reg.
6528
6529 2014-06-23  Don Breazeal  <donb@codesourcery.com>
6530
6531         * MAINTAINERS: Add myself as write-after-approval maintainer.
6532
6533 2014-06-23  Pedro Alves  <palves@redhat.com>
6534
6535         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6536         DR_CONTROL before setting DR0..DR3.
6537         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6538         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6539         bits of DR_CONTROL related to the debug register slot being
6540         disabled.  If all slots are vacant, clear local slowdown as well,
6541         and assert DR_CONTROL is 0.
6542
6543 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
6544
6545         * python/lib/gdb/command/xmethods.py
6546         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
6547         current progspace only if the string "progspace" matches LOCUS_RE.
6548
6549 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6550
6551         Fix --with-system-readline with readline-6.3 patch 5.
6552         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6553         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6554         types.
6555
6556 2014-06-20  Tom Tromey  <tromey@redhat.com>
6557
6558         * dwarf2read.c (dw2_get_real_path): Use correct type in
6559         OBSTACK_CALLOC.
6560         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6561
6562 2014-06-20  Gary Benson  <gbenson@redhat.com>
6563
6564         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
6565         * common/glibc_thread_db.h: Likewise.
6566         * common/i386-cpuid.h: Likewise.
6567         * common/i386-gcc-cpuid.h: Likewise.
6568         * common/linux-btrace.h: Likewise.
6569         * common/linux-osdata.h: Likewise.
6570         * common/linux-procfs.h: Likewise.
6571         * common/linux-ptrace.h: Likewise.
6572         * common/mips-linux-watch.h: Likewise.
6573         * common/linux-btrace.c: Moved to nat.
6574         * common/linux-osdata.c: Likewise.
6575         * common/linux-procfs.c: Likewise.
6576         * common/linux-ptrace.c: Likewise.
6577         * common/mips-linux-watch.c: Likewise.
6578         * nat/gdb_thread_db.h: Moved from common.
6579         * nat/glibc_thread_db.h: Likewise.
6580         * nat/i386-cpuid.h: Likewise.
6581         * nat/i386-gcc-cpuid.h: Likewise.
6582         * nat/linux-btrace.c: Likewise.
6583         * nat/linux-btrace.h: Likewise.
6584         * nat/linux-osdata.c: Likewise.
6585         * nat/linux-osdata.h: Likewise.
6586         * nat/linux-procfs.c: Likewise.
6587         * nat/linux-procfs.h: Likewise.
6588         * nat/linux-ptrace.c: Likewise.
6589         * nat/linux-ptrace.h: Likewise.
6590         * nat/mips-linux-watch.c: Likewise.
6591         * nat/mips-linux-watch.h: Likewise.
6592         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6593         (object file files): Reordered.
6594         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6595         of glibc_thread_db.h.
6596
6597 2014-06-20  Gary Benson  <gbenson@redhat.com>
6598
6599         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6600         (i386_dr_low_type): Moved to nat/i386-dregs.h.
6601         (i386_dr_low): Likewise.
6602         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6603         (i386_dr_low_set_addr): Likewise.
6604         (i386_dr_low_get_addr): Likewise.
6605         (i386_dr_low_can_set_control): Likewise.
6606         (i386_dr_low_set_control): Likewise.
6607         (i386_dr_low_get_control): Likewise.
6608         (i386_dr_low_get_status): Likewise.
6609         (i386_get_debug_register_length): Likewise.
6610         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6611         (i386_dr_low): Likewise.
6612         * nat/i386-dregs.c (i386-low.h): Remove include.
6613         (i386-nat.h): Likewise.
6614         (nat/i386-dregs.h): New include.
6615         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6616         (i386_dr_low_set_addr): Likewise.
6617         (i386_dr_low_get_addr): Likewise.
6618         (i386_dr_low_can_set_control): Likewise.
6619         (i386_dr_low_set_control): Likewise.
6620         (i386_dr_low_get_control): Likewise.
6621         (i386_dr_low_get_status): Likewise.
6622         (i386_get_debug_register_length): Likewise.
6623         (debug_hw_points): Likewise.
6624
6625 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
6626
6627         * Makefile.in (SFILES): Add d-exp.y.
6628         (YYFILES): Add d-exp.c.
6629         (YYOBJ): Add d-exp.o.
6630         (local-maintainer-clean): Delete d-exp.c.
6631         * d-exp.y: New file.
6632         * d-lang.h (d_parse): New declaration.
6633         (d_error): New declaration.
6634         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6635         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6636         PREC_ORDER operators.
6637         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6638
6639 2014-06-19  Yao Qi  <yao@codesourcery.com>
6640
6641         * gdbthread.h (any_running): Remove the declaration.
6642         * thread.c (any_running): Remove.
6643
6644 2014-06-19  Yao Qi  <yao@codesourcery.com>
6645
6646         * gdbthread.h (struct thread_info) <state>: Change its type to
6647         'enum thread_state'.  Update comments.
6648
6649 2014-06-19  Pedro Alves  <palves@redhat.com>
6650
6651         * gdbthread.h (ALL_THREADS): Delete.
6652         (ALL_NON_EXITED_THREADS): New macro.
6653         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6654         instead of ALL_THREADS.
6655         * infrun.c (find_thread_needs_step_over)
6656         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6657         instead of ALL_THREADS.
6658         * record-btrace.c (record_btrace_open)
6659         (record_btrace_stop_recording, record_btrace_close)
6660         (record_btrace_is_replaying, record_btrace_resume)
6661         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6662         * remote.c (append_pending_thread_resumptions): Likewise.
6663         * thread.c (thread_apply_all_command): Likewise.
6664
6665 2014-06-19  Gary Benson  <gbenson@redhat.com>
6666
6667         * i386-nat.c (i386_stopped_by_watchpoint):
6668         Use i386_dr_stopped_by_watchpoint.
6669         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6670         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6671
6672 2014-06-19  Gary Benson  <gbenson@redhat.com>
6673
6674         * nat/i386-dregs.c: New file.
6675         * Makefile.in (i386-dregs.o): New rule.
6676         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6677         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6678         * config/i386/darwin.mh (NATDEPFILES): Likewise.
6679         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6680         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6681         * config/i386/go32.mh (NATDEPFILES): Likewise.
6682         * config/i386/linux.mh (NATDEPFILES): Likewise.
6683         * config/i386/linux64.mh (NATDEPFILES): Likewise.
6684         * config/i386/mingw.mh (NATDEPFILES): Likewise.
6685         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6686         * i386-nat.h (debug_hw_points): New declaration.
6687         * i386-nat.c (breakpoint.h): Remove include.
6688         (command.h): Likewise.
6689         (target.h): Likewise.
6690         (gdb_assert.h): Likewise.
6691         (debug_hw_points): Made nonstatic.
6692         (debug_printf): Now in i386-dregs.c.
6693         (TARGET_HAS_DR_LEN_8): Likewise.
6694         (DR_CONTROL_SHIFT): Likewise.
6695         (DR_CONTROL_SIZE): Likewise.
6696         (DR_RW_EXECUTE): Likewise.
6697         (DR_RW_WRITE): Likewise.
6698         (DR_RW_READ): Likewise.
6699         (DR_RW_IORW): Likewise.
6700         (DR_LEN_1): Likewise.
6701         (DR_LEN_2): Likewise.
6702         (DR_LEN_4): Likewise.
6703         (DR_LEN_8): Likewise.
6704         (DR_LOCAL_ENABLE_SHIFT): Likewise.
6705         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6706         (DR_ENABLE_SIZE): Likewise.
6707         (DR_LOCAL_SLOWDOWN): Likewise.
6708         (DR_GLOBAL_SLOWDOWN): Likewise.
6709         (DR_CONTROL_RESERVED): Likewise.
6710         (I386_DR_CONTROL_MASK): Likewise.
6711         (I386_DR_VACANT): Likewise.
6712         (I386_DR_LOCAL_ENABLE): Likewise.
6713         (I386_DR_GLOBAL_ENABLE): Likewise.
6714         (I386_DR_DISABLE): Likewise.
6715         (I386_DR_SET_RW_LEN): Likewise.
6716         (I386_DR_GET_RW_LEN): Likewise.
6717         (I386_DR_WATCH_HIT): Likewise.
6718         (i386_wp_op_t): Likewise.
6719         (i386_show_dr): Likewise.
6720         (i386_length_and_rw_bits): Likewise.
6721         (i386_insert_aligned_watchpoint): Likewise.
6722         (i386_remove_aligned_watchpoint): Likewise.
6723         (i386_handle_nonaligned_watchpoint): Likewise.
6724         (i386_update_inferior_debug_regs): Likewise.
6725         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6726         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6727         (i386_region_ok_for_watchpoint):
6728         Use i386_dr_region_ok_for_watchpoint.
6729         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6730
6731 2014-06-19  Gary Benson  <gbenson@redhat.com>
6732
6733         * i386-nat.c (i386_insert_hw_breakpoint): Use
6734         i386_insert_watchpoint.
6735         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6736
6737 2014-06-19  Gary Benson  <gbenson@redhat.com>
6738
6739         * i386-nat.c (i386_dr_show): Renamed to
6740         i386_show_dr and made static.  All uses updated.
6741         (i386_dr_length_and_rw_bits): Renamed to
6742         i386_length_and_rw_bits and made static.
6743         All uses updated.
6744         (i386_dr_insert_aligned_watchpoint): Renamed to
6745         i386_insert_aligned_watchpoint and made static.
6746         All uses updated.
6747         (i386_dr_remove_aligned_watchpoint): Renamed to
6748         i386_remove_aligned_watchpoint and made static.
6749         All uses updated.
6750         (i386_dr_update_inferior_debug_regs): Renamed to
6751         i386_update_inferior_debug_regs and made static.
6752         All uses updated.
6753         * nat/i386-dregs.h (i386_dr_show): Removed.
6754         (i386_dr_length_and_rw_bits): Likewise.
6755         (i386_dr_insert_aligned_watchpoint): Likewise.
6756         (i386_dr_remove_aligned_watchpoint): Likewise.
6757         (i386_dr_update_inferior_debug_regs): Likewise.
6758
6759 2014-06-19  Gary Benson  <gbenson@redhat.com>
6760
6761         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6762         * configure: Regenerate.
6763         * config.in: Likewise.
6764         * main.c (signal.h): New include.
6765         (setup_alternate_signal_stack): New function.
6766         (captured_main): Call the above.
6767         * cp-support.c (signal.h): New include.
6768         (catch_demangler_crashes): New flag.
6769         (SIGJMP_BUF): New define.
6770         (SIGSETJMP): Likewise.
6771         (SIGLONGJMP): Likewise.
6772         (gdb_demangle_jmp_buf): New static global.
6773         (gdb_demangle_attempt_core_dump): Likewise.
6774         (gdb_demangle_signal_handler): New function.
6775         (gdb_demangle): If catch_demangler_crashes is set, install the
6776         above signal handler before calling bfd_demangle, and restore
6777         the original signal handler afterwards.  Display the offending
6778         symbol and call demangler_warning the first time a segmentation
6779         fault is caught.
6780         (_initialize_cp_support): New maint set/show command.
6781
6782 2014-06-19  Gary Benson  <gbenson@redhat.com>
6783
6784         * utils.h (resource_limit_kind): New enum.
6785         (can_dump_core): New declaration.
6786         (warn_cant_dump_core): Likewise.
6787         (dump_core): Likewise.
6788         * utils.c (dump_core): Made nonstatic.  Added new
6789         parameter "limit_kind".
6790         (can_dump_core): Made nonstatic. Moved printing code to...
6791         (warn_cant_dump_core): New function.
6792         (can_dump_core_warn): Likewise.
6793         (internal_vproblem): Replace calls to can_dump_core with
6794         calls to can_dump_core_warn.  Supply new argument to each.
6795
6796 2014-06-19  Gary Benson  <gbenson@redhat.com>
6797
6798         * utils.h (demangler_vwarning): New declaration.
6799         (demangler_warning): Likewise.
6800         * utils.c (struct internal_problem)
6801         <user_settable_should_quit>: New field.
6802         <user_settable_should_dump_core>: Likewise
6803         (internal_error_problem): Add values for above new fields.
6804         (internal_warning_problem): Likewise.
6805         (demangler_warning_problem): New static global.
6806         (demangler_vwarning): New function.
6807         (demangler_warning): Likewise.
6808         (add_internal_problem_command): Selectively add commands.
6809         (_initialize_utils): New internal problem command.
6810         * maint.c (maintenance_demangler_warning): New function.
6811         (_initialize_maint_cmds): New command.
6812
6813 2014-06-18  Tom Tromey  <tromey@redhat.com>
6814
6815         * f-valprint.c (info_common_command_for_block): Update.
6816         * symtab.h (struct general_symbol_info) <common_block>: Now
6817         const.
6818
6819 2014-06-18  Tom Tromey  <tromey@redhat.com>
6820
6821         * symtab.h (struct symtab) <blockvector>: Now const.
6822         * ada-lang.c (ada_add_global_exceptions): Update.
6823         * buildsym.c (augment_type_symtab): Update.
6824         * dwarf2read.c (dw2_lookup_symbol): Update.
6825         * jit.c (finalize_symtab): Update.
6826         * jv-lang.c (add_class_symtab_symbol): Update.
6827         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6828         Update.
6829         * objfiles.c (objfile_relocate1): Update.
6830         * psymtab.c (lookup_symbol_aux_psymtabs)
6831         (maintenance_check_psymtabs): Update.
6832         * python/py-symtab.c (stpy_global_block, stpy_static_block):
6833         Update.
6834         * spu-tdep.c (spu_catch_start): Update.
6835         * symmisc.c (dump_symtab_1): Update.
6836         * symtab.c (lookup_global_symbol_from_objfile)
6837         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6838         (basic_lookup_transparent_type_quick)
6839         (basic_lookup_transparent_type, find_pc_sect_symtab)
6840         (find_pc_sect_line, search_symbols): Update.
6841         * block.c (find_block_in_blockvector): Make "bl" const.
6842         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6843         const.
6844         (blockvector_contains_pc): Make "bv" const.
6845         (block_for_pc_sect): Update.
6846         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6847         (blockvector_contains_pc): Update.
6848         * breakpoint.c (resolve_sal_pc): Update.
6849         * inline-frame.c (block_starting_point_at): Update.
6850
6851 2014-06-18  Tom Tromey  <tromey@redhat.com>
6852
6853         * completer.c (complete_line): Make "line_buffer" const.
6854         * completer.h (complete_line): Update.
6855
6856 2014-06-18  Tom Tromey  <tromey@redhat.com>
6857
6858         * symtab.c (add_macro_name): Remove unneeded cast.
6859
6860 2014-06-18  Tom Tromey  <tromey@redhat.com>
6861
6862         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6863         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6864
6865 2014-06-18  Tom Tromey  <tromey@redhat.com>
6866
6867         * probe.c (info_probes_for_ops): Make "arg" const.
6868         * probe.h (info_probes_for_ops): Update.
6869
6870 2014-06-18  Tom Tromey  <tromey@redhat.com>
6871
6872         * varobj.c (varobj_create): Update.
6873         * valops.c (value_of_this): Update.
6874         * tracepoint.c (add_local_symbols, scope_info): Update.
6875         * symtab.h (struct general_symbol_info) <block>: Now const.
6876         * symtab.c (skip_prologue_sal)
6877         (default_make_symbol_completion_list_break_on)
6878         (skip_prologue_using_sal): Update.
6879         * stack.h (iterate_over_block_locals)
6880         (iterate_over_block_local_vars): Update.
6881         * stack.c (print_frame_args): Update.
6882         (iterate_over_block_locals, iterate_over_block_local_vars): Make
6883         parameter const.
6884         (get_selected_block): Make return type const.
6885         * python/py-frame.c (frapy_block): Update.
6886         * python/py-block.c (gdbpy_block_for_pc): Update.
6887         * p-exp.y (%union) <bval>: Now const.
6888         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6889         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6890         * m2-exp.y (%union) <bval>: Now const.
6891         * linespec.c (get_current_search_block): Make return type const.
6892         (create_sals_line_offset, find_label_symbols): Update.
6893         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6894         Update.
6895         (block_starting_point_at): Make "block" const.
6896         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6897         (check_exception_resume): Update.
6898         * guile/scm-frame.c (gdbscm_frame_block): Update.
6899         * guile/scm-block.c (gdbscm_lookup_block): Update.
6900         * frame.h (get_frame_block): Update.
6901         (get_selected_block): Make return type const.
6902         * frame.c (frame_id_inner): Update.
6903         * f-valprint.c (info_common_command_for_block)
6904         (info_common_command): Update.
6905         * dwarf2loc.c (dwarf2_find_location_expression)
6906         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6907         (locexpr_describe_location_piece): Update.
6908         * c-exp.y (%union) <bval>: Now const.
6909         * breakpoint.c (resolve_sal_pc): Update.
6910         * blockframe.c (get_frame_block):Make return type const.
6911         (get_pc_function_start, get_frame_function, find_pc_sect_function)
6912         (block_innermost_frame): Update.
6913         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6914         (block_for_pc, block_for_pc_sect): Update.
6915         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6916         'pblock' const.
6917         (block_for_pc_sect, block_for_pc): Make return type const.
6918         * ax-gdb.c (gen_expr): Update.
6919         * alpha-mdebug-tdep.c (find_proc_desc): Update.
6920         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6921         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6922         (ada_read_var_value): Update.
6923         * ada-exp.y (struct name_info) <block>: Now const.
6924         (%union): Likewise.
6925         (block_lookup): Constify.
6926
6927 2014-06-18  Gary Benson  <gbenson@redhat.com>
6928
6929         * nat/i386-dregs.h: New file.
6930         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6931         * i386-nat.h (i386-dregs.h): New include.
6932         (DR_FIRSTADDR): Now in i386-dregs.h.
6933         (DR_LASTADDR): Likewise.
6934         (DR_NADDR): Likewise.
6935         (DR_STATUS): Likewise.
6936         (DR_CONTROL): Likewise.
6937         (i386_debug_reg_state): Likewise.
6938         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6939
6940 2014-06-18  Don Breazeal  <donb@codesourcery.com>
6941
6942         * breakpoint.c (set_longjmp_breakpoint): Call
6943         momentary_breakpoint_from_master with additional argument.
6944         (set_longjmp_breakpoint_for_call_dummy): Call
6945         momentary_breakpoint_from_master with additional argument.
6946         (set_std_terminate_breakpoint): Call
6947         momentary_breakpoint_from_master with additional argument.
6948         (momentary_breakpoint_from_master): Add argument to function
6949         definition and use it to initialize structure member flag.
6950         (clone_momentary_breakpoint): Call
6951         momentary_breakpoint_from_master with additional argument.
6952         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6953         member flags set in momentary_breakpoint_from_master.
6954
6955 2014-06-18  Gary Benson  <gbenson@redhat.com>
6956
6957         * i386-nat.c (i386_show_dr): Renamed to
6958         i386_dr_show and made nonstatic.  All uses updated.
6959         (i386_length_and_rw_bits): Renamed to
6960         i386_dr_length_and_rw_bits and made nonstatic.
6961         All uses updated.
6962         (i386_insert_aligned_watchpoint): Renamed to
6963         i386_dr_insert_aligned_watchpoint and made nonstatic.
6964         All uses updated.
6965         (i386_remove_aligned_watchpoint): Renamed to
6966         i386_dr_remove_aligned_watchpoint and made nonstatic.
6967         All uses updated.
6968         (i386_update_inferior_debug_regs): Renamed to
6969         i386_dr_update_inferior_debug_regs and made nonstatic.
6970         All uses updated.
6971
6972 2014-06-18  Gary Benson  <gbenson@redhat.com>
6973
6974         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6975         (i386_dr_low_can_set_control): Likewise.
6976         (i386_dr_low_set_addr): Likewise.
6977         (i386_dr_low_set_control): Likewise.
6978         (i386_dr_low_get_addr): Likewise.
6979         (i386_dr_low_get_status): Likewise.
6980         (i386_dr_low_get_control): Likewise.
6981         (i386_insert_aligned_watchpoint): Use new macros.
6982         (i386_update_inferior_debug_regs): Likewise.
6983         (i386_stopped_data_address): Likewise.
6984
6985 2014-06-18  Gary Benson  <gbenson@redhat.com>
6986
6987         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6988         New parameter.  All uses updated.
6989
6990 2014-06-18  Gary Benson  <gbenson@redhat.com>
6991
6992         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6993         All uses updated.
6994
6995 2014-06-18  Gary Benson  <gbenson@redhat.com>
6996
6997         * i386-nat.c (debug_printf): New macro.
6998         (i386_get_debug_register_length): Likewise.
6999         (TARGET_HAS_DR_LEN_8): Use above macro.
7000         (i386_show_dr): Use debug_printf instead of puts_unfiltered
7001         and printf_unfiltered.  Use phex to format values.
7002
7003 2014-06-18  Gary Benson  <gbenson@redhat.com>
7004
7005         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
7006         Make const.
7007
7008 2014-06-18  Gary Benson  <gbenson@redhat.com>
7009
7010         * i386-nat.c: Comment changes.
7011
7012 2014-06-18  Gary Benson  <gbenson@redhat.com>
7013
7014         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
7015
7016 2014-06-18  Gary Benson  <gbenson@redhat.com>
7017
7018         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
7019         (i386_insert_aligned_watchpoint): Likewise.
7020         (i386_remove_aligned_watchpoint): Likewise.
7021         (i386_handle_nonaligned_watchpoint): Likewise.
7022
7023 2014-06-18  Gary Benson  <gbenson@redhat.com>
7024
7025         * i386-nat.c: Whitespace changes.
7026
7027 2014-06-17  Samuel Bronson  <naesten@gmail.com>
7028
7029         * MAINTAINERS: Update Roland McGrath's email address.
7030         Thanks to Sergio Durigan Junior for pointing out that he left
7031         Red Hat a while ago, and giving me a current address.
7032
7033 2014-06-17  Tom Tromey  <tromey@redhat.com>
7034
7035         * utils.h (savestring): Remove declaration.
7036
7037 2014-06-17  Tom Tromey  <tromey@redhat.com>
7038
7039         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
7040
7041 2014-06-16  Keith Seitz  <keiths@redhat.com>
7042
7043         PR mi/15863
7044         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
7045         to update the varobj if inferior_ptid is null_ptid.
7046
7047 2014-06-16  Tom Tromey  <tromey@redhat.com>
7048
7049         * target.h (struct target_ops) <to_info_proc>: Make parameter
7050         const.
7051         (target_info_proc): Update.
7052         * target.c (target_info_proc): Make "args" const.
7053         * procfs.c (procfs_info_proc): Update.
7054         * linux-tdep.c (linux_info_proc): Update.
7055         (linux_core_info_proc_mappings): Make "args" const.
7056         (linux_core_info_proc): Update.
7057         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
7058         * gdbarch.c: Rebuild.
7059         * gdbarch.h: Rebuild.
7060         * corelow.c (core_info_proc): Update.
7061
7062 2014-06-16  Tom Tromey  <tromey@redhat.com>
7063
7064         * target.h (struct target_ops) <to_disconnect>: Make parameter
7065         const.
7066         (target_disconnect): Update.
7067         * target.c (target_disconnect): Make "args" const.
7068         * target-delegates.c: Rebuild.
7069         * remote.c (remote_disconnect): Update.
7070         * record.h (record_disconnect): Update.
7071         * record.c (record_disconnect): Update.
7072         * inf-child.c (inf_child_disconnect): Update.
7073
7074 2014-06-16  Tom Tromey  <tromey@redhat.com>
7075
7076         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7077         * target.c (debug_to_rcmd, default_rcmd): Update.
7078         * target-delegates.c: Rebuild.
7079         * remote.c (remote_rcmd): Update.
7080         * monitor.c (monitor_rcmd): Update.
7081
7082 2014-06-16  Pedro Alves  <palves@redhat.com>
7083
7084         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7085         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7086         have OBJF_SHARED set.
7087         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7088         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
7089         instead of OBJF_USERLOADED.
7090         * objfiles.h (OBJF_SHARED): Update comment.
7091         (userloaded_objfile_contains_address_p): Rename to ...
7092         (shared_objfile_contains_address_p): ... this, and update
7093         comments.
7094         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7095         new objfile.
7096         (remove_symbol_file_command): Skip objfiles that don't have
7097         OBJF_SHARED set.
7098
7099 2014-06-16  Tom Tromey  <tromey@redhat.com>
7100
7101         * minsyms.h (prim_record_minimal_symbol)
7102         (prim_record_minimal_symbol_and_info): Update comments.
7103
7104 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
7105
7106         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7107         or --without-guile, according to how GDB was built.
7108
7109 2014-06-13  Tom Tromey  <tromey@redhat.com>
7110
7111         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7112         to help_list.
7113         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7114         to help_list.
7115         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7116         help_list.
7117         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7118         help_list.Pass all_commands, not -1, to help_list.
7119         * cli/cli-dump.c (dump_command, append_command)
7120         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7121         (binary_dump_command, binary_append_command): Pass all_commands,
7122         not -1, to help_list.
7123         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7124         -1, to help_list.
7125         * valprint.c (set_print, set_print_raw): Pass all_commands, not
7126         -1, to help_list.
7127         * typeprint.c (set_print_type): Pass all_commands, not -1, to
7128         help_list.
7129         * top.c (set_history): Pass all_commands, not -1, to help_list.
7130         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7131         all_commands, not -1, to help_list.
7132         * symfile.c (overlay_command): Pass all_commands, not -1, to
7133         help_list.
7134         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7135         help_list.
7136         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7137         help_list.
7138         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7139         -1, to help_list.
7140         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7141         not -1, to help_list.
7142         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7143         not -1, to help_list.
7144         * maint.c (maintenance_command, maintenance_info_command)
7145         (maintenance_print_command, maintenance_set_cmd): Pass
7146         all_commands, not -1, to help_list.
7147         * macrocmd.c (macro_command): Pass all_commands, not -1, to
7148         help_list.
7149         * language.c (set_check): Pass all_commands, not -1, to help_list.
7150         * infcmd.c (unset_command): Pass all_commands, not -1, to
7151         help_list.
7152         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7153         help_list.
7154         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7155         help_list.
7156         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7157         help_list.
7158         * breakpoint.c (save_command): Pass all_commands, not -1, to
7159         help_list.
7160         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7161         all_commands, not -1, to help_list.
7162
7163 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
7164
7165         * regcache.c (struct register_to_invalidate): New structure.
7166         (do_register_invalidate, make_cleanup_regcache_invalidate): New
7167         functions.
7168         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7169
7170 2014-06-12  Yao Qi  <yao@codesourcery.com>
7171
7172         * varobj.c (varobj_get_num_children): Call
7173         varobj_is_dynamic_p.
7174         (varobj_list_children): Likewise.
7175         (varobj_update): Likewise.  Update comments.
7176
7177 2014-06-12  Yao Qi  <yao@codesourcery.com>
7178
7179         * varobj.c (varobj_pretty_printed_p): Rename to ...
7180         (varobj_is_dynamic_p): ... this.  New function.
7181         * varobj.h (varobj_pretty_printed_p): Remove declaration.
7182         (varobj_is_dynamic_p): Declare.
7183         * mi/mi-cmd-var.c (print_varobj): All callers updated.
7184         (mi_print_value_p, varobj_update_one): Likewise.
7185
7186 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
7187             Yao Qi  <yao@codesourcery.com>
7188
7189         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7190         (varobj_get_iterator): Wrap up code for pretty-printer by
7191         "#if HAVE_PYTHON" and "#endif".
7192         (update_dynamic_varobj_children): Likewise.
7193
7194 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
7195             Yao Qi  <yao@codesourcery.com>
7196
7197         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7198         gdb_python_initialized is false.  Move some code from varobj.c.
7199         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7200         * varobj.c: Move "varobj-iter.h" inclusion earlier.
7201         (struct varobj_item): Moved to varobj-iter.h".
7202         (varobj_clear_saved_item): New function.
7203         (update_dynamic_varobj_children): Move python-related code to
7204         py-varobj.c.
7205         (free_variable): Call varobj_clear_saved_item and
7206         varobj_iter_delete.
7207
7208 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
7209             Yao Qi  <yao@codesourcery.com>
7210
7211         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7212         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7213         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7214         (py-varobj.o): New rule.
7215         * python/py-varobj.c: New file.
7216         * python/python-internal.h (py_varobj_get_iterator): Declare.
7217         * varobj-iter.h: New file.
7218         * varobj.c: Include "varobj-iter.h"
7219         (struct varobj) <child_iter>: Change its type from "PyObject *"
7220         to "struct varobj_iter *".
7221         <saved_item>: Likewise.
7222         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7223         [HAVE_PYTHON] (varobj_get_iterator): New function.
7224         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7225         python-specific code to python/py-varobj.c.
7226         (install_visualizer): Call varobj_iter_delete instead of
7227         Py_XDECREF.
7228         * varobj.h (varobj_ensure_python_env): Declare.
7229
7230 2014-06-12  Yao Qi  <yao@codesourcery.com>
7231
7232         * varobj.c (struct varobj_item): New structure.
7233         (create_child_with_value): Update declaration.
7234         (varobj_add_child): Replace arguments 'name' and 'value' with
7235         'item'.  All callers updated.
7236         (install_dynamic_child): Likewise.
7237         (update_dynamic_varobj_children): Likewise.
7238         (varobj_add_child): Likewise.
7239         (create_child_with_value): Likewise.
7240
7241 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
7242
7243         * NEWS: Create a new section for the next release branch.
7244         Rename the section of the current branch, now that it has
7245         been cut.
7246
7247 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
7248
7249         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7250         * version.in: Bump version to 7.8.50.DATE-cvs.
7251
7252 2014-06-11  Pedro Alves  <palves@redhat.com>
7253
7254         PR remote/17028
7255         * ser-mingw.c (net_windows_socket_check_pending): New function.
7256         (net_windows_select_thread): Ignore spurious wakeups.  Use
7257         net_windows_socket_check_pending.
7258         (net_windows_wait_handle): Check for pending events with
7259         ioctlsocket, through net_windows_socket_check_pending, instead of
7260         checking the socket's event.
7261
7262 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
7263
7264         * python/python-internal.h (gdb_PyObject_GetAttrString)
7265         (gdb_PyObject_HasAttrString): New inline function definitions.
7266         * py-value.c (get_field_flag): Remove the now unnecessary cast to
7267         char * of the second argument to PyObject_GetAttrString.
7268
7269 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
7270
7271         * serial.c (serial_write): Fix index of character to be printed
7272         in call to serial_logchar when serial debug traces are enabled.
7273
7274 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
7275
7276         * gdbtypes (resolve_dynamic_range): Add function description.
7277
7278 2014-06-09  Pedro Alves  <palves@redhat.com>
7279
7280         * linux-nat.c (linux_child_follow_fork): Initialize status with
7281         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
7282         inner block.  Only pass the signal to PTRACE_DETACH if in pass
7283         state.
7284
7285 2014-06-09  Gary Benson  <gbenson@redhat.com>
7286
7287         * common/signals.c (gdb_signal_from_host): Reorder to separate
7288         the always-available ANSI-standard signals from the signals that
7289         require checking.
7290         (do_gdb_signal_to_host): Likewise.
7291         * proc-events.c (signal_table): Likewise.
7292
7293 2014-06-08  Hui Zhu  <hui@codesourcery.com>
7294
7295         * common/linux-ptrace.c (linux_disable_event_reporting): New
7296         function.
7297         * common/linux-ptrace.h (linux_disable_event_reporting): New
7298         declaration.
7299         * linux-nat.c (linux_child_follow_fork): Do a single step before
7300         detach.
7301
7302 2014-06-07  Keith Seitz  <keiths@redhat.com>
7303
7304         Revert:
7305         PR c++/16253
7306         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7307         from symbol_matches_domain in symtab.c. All local callers
7308         of symbol_matches_domain updated.
7309         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7310         search STRUCT_DOMAIN.
7311         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7312         independently.  standard_lookup will do that automatically.
7313         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7314         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7315         (cp_lookup_symbol_in_namespace): Likewise.
7316         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7317         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7318         may return a STRUCT_DOMAIN match.
7319         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7320         * cp-support.c: Include language.h.
7321         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7322         VAR_DOMAIN.
7323         * psymtab.c (match_partial_symbol): Compare the requested
7324         domain with the symbol's domain directly.
7325         (lookup_partial_symbol): Likewise.
7326         * symtab.c (lookup_symbol_in_language): Explain when/why
7327         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7328         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7329         appropriate languages.
7330         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7331         and moved to ada-lang.c
7332         (lookup_block_symbol): Explain that this function only returns
7333         symbol matching the requested DOMAIN.
7334         Compare the requested domain with the symbol's domain directly.
7335         (iterate_over_symbols): Compare the requested domain with the
7336         symbol's domain directly.
7337         * symtab.h (symbol_matches_domain): Remove.
7338
7339 2014-06-06  Doug Evans  <xdje42@gmail.com>
7340
7341         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7342         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7343         (gdbscm_guile_version_is_at_least): Declare.
7344         (gdbscm_scm_string_to_int): Declare.
7345         * guile/guile.c (gdbscm_guile_major_version): New global.
7346         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7347         (guile_datadir): New static global.
7348         (gdbscm_guile_data_directory): New function.
7349         (initialize_scheme_side): Update.
7350         (misc_guile_functions): Add guile-data-directory.
7351         (initialize_gdb_module): Fetch guile version number.
7352         * guile/lib/gdb.scm: Remove call to add-to-load-path.
7353         * guile/lib/gdb/init.scm (%initialize!): Ditto.
7354         * guile/lib/gdb/boot.scm: Use guile-data-directory.
7355         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7356         comments.
7357         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7358         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7359         * guile/scm-value.c (gdbscm_value_to_string): Only call
7360         scm_port_conversion_strategy if Guile version >= 2.0.6.
7361
7362 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
7363
7364         * main.c (print_gdb_help): Add -q and --silent.
7365
7366 2014-06-06  Gary Benson  <gbenson@redhat.com>
7367
7368         * common/signals.c: Remove preprocessor conditionals for
7369         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7370         SIGSEGV and SIGTERM.
7371         * proc-events.c: Likewise.
7372
7373 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
7374
7375         * symfile.c (symfile_free_objfile): Remove restriction to
7376         OBJF_USERLOADED.
7377         * symfile-mem.c (symbol_file_add_from_memory): Call
7378         add_target_sections_of_objfile.
7379
7380 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
7381
7382         * guile/scm-value.c (gdbscm_history_append_x): Use
7383         'vlscm_get_value_smob_arg_unsafe' instead of
7384         'vlscm_scm_to_value'.
7385
7386 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
7387
7388         PR mi/15806
7389         * utils.c (printchar): Don't escape at all if quoter is NUL.
7390         Update function documentation to clarify effect of parameter
7391         QUOTER.
7392         * remote.c (escape_buffer): Pass '\\' as the quoter to
7393         fputstrn_unfiltered.
7394         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7395         generate the output.
7396         (mi_solib_unloaded): Same.
7397
7398 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
7399
7400         * development.sh: Delete.
7401         * Makefile.in (config.status): Adjust dependency on development.sh.
7402         * configure.ac: Adjust development.sh source call.
7403         * configure: Regenerate.
7404
7405 2014-06-04  Doug Evans  <xdje42@gmail.com>
7406
7407         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7408         is_scheme_bkpt, spec.
7409         (bpscm_make_breakpoint_smob): Initialize new members.
7410         (gdbscm_create_breakpoint_x): Split into two ...
7411         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7412         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7413         (scheme_function breakpoint_functions): Update.
7414         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
7415         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
7416         register-breakpoint!.
7417
7418 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
7419
7420         PR server/17023
7421         * mem-break.c (z_type_supported): Return zero if
7422         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7423
7424 2014-06-04  Tom Tromey  <tromey@redhat.com>
7425
7426         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7427         value_from_contents_and_address_unresolved.
7428         (ada_template_to_fixed_record_type_1): Likewise.
7429         (ada_which_variant_applies): Likewise.
7430         * value.h (value_from_contents_and_address_unresolved): Declare.
7431         * value.c (value_from_contents_and_address_unresolved): New
7432         function.
7433         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7434         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7435         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7436
7437 2014-06-04  Tom Tromey  <tromey@redhat.com>
7438
7439         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7440
7441 2014-06-04  Tom Tromey  <tromey@redhat.com>
7442
7443         * procfs.c (procfs_attach): Make "args" const.
7444         * windows-nat.c (windows_attach): Make "args" const.
7445         * nto-procfs.c (procfs_attach): Make "args" const.
7446         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7447         * go32-nat.c (go32_attach): Make "args" const.
7448         * gnu-nat.c (gnu_attach): Make "args" const.
7449         * darwin-nat.c (darwin_attach): Make "args" const.
7450         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7451         * linux-nat.c (linux_nat_attach): Make "args" const.
7452         * remote.c (extended_remote_attach_1, extended_remote_attach):
7453         Make "args" const.
7454         * target.h (struct target_ops) <to_attach>: Make "args" const.
7455         (find_default_attach): Likewise.
7456         * utils.c (parse_pid_to_attach): Make "args" const.
7457         * utils.h (parse_pid_to_attach): Update.
7458
7459 2014-06-04  Tom Tromey  <tromey@redhat.com>
7460
7461         * target-delegates.c: Rebuild.
7462         * target.c (default_thread_address_space): New function.
7463         (target_thread_address_space): Simplify.
7464         * target.h (struct target_ops) <to_thread_address_space>: Add
7465         TARGET_DEFAULT_FUNC.
7466
7467 2014-06-04  Doug Evans  <xdje42@gmail.com>
7468
7469         * guile/scm-type.c (type_smob): Remove duplicate typedef.
7470
7471 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
7472
7473         * record-btrace.c: Include event-loop.h and inf-loop.h.
7474         (record_btrace_resume_exec_dir)
7475         (record_btrace_async_inferior_event_handler)
7476         (record_btrace_handle_async_inferior_event): New.
7477         (record_btrace_open): Create async event handler.
7478         (record_btrace_close): Delete async event handler.
7479         (record_btrace_resume): Set record_btrace_resume_exec_dir,
7480         Mark async event handler.
7481         (record_btrace_execution_direction): New.
7482         (init_record_btrace_ops): Initialize to_execution_direction.
7483
7484 2014-06-03  Doug Evans  <xdje42@gmail.com>
7485
7486         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7487         (gdbscm_make_parameter): Ditto.
7488
7489 2014-06-03  Doug Evans  <dje@google.com>
7490
7491         * exec.c (exec_close_1): Call clear_section_table instead of
7492         resize_section_table.
7493         (clear_section_table): New function.
7494         (resize_section_table): Make static.  Rename arg num_added to
7495         adjustment.
7496         * exec.h (clear_section_table): Declare.
7497         (resize_section_table): Delete.
7498         * progspace.c (release_program_space): Call clear_section_table
7499         instead of resize_section_table.
7500
7501 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
7502
7503         * NEWS (Python Scripting): Add entry about the new xmethods
7504         feature.
7505
7506 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
7507
7508         * python/py-xmethods.c: New file.
7509         * python/py-objfile.c (objfile_object): New field 'xmethods'.
7510         (objfpy_dealloc): XDECREF on the new xmethods field.
7511         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7512         field.
7513         (objfpy_get_xmethods): New function.
7514         (objfile_getset): New entry 'xmethods'.
7515         * python/py-progspace.c (pspace_object): New field 'xmethods'.
7516         (pspy_dealloc): XDECREF on the new xmethods field.
7517         (pspy_new, pspace_to_pspace_object): Initialize xmethods
7518         field.
7519         (pspy_get_xmethods): New function.
7520         (pspace_getset): New entry 'xmethods'.
7521         * python/python-internal.h: Add declarations for new functions.
7522         * python/python.c (_initialize_python): Invoke
7523         gdbpy_initialize_xmethods.
7524         * python/lib/gdb/__init__.py (xmethods): New
7525         attribute.
7526         * python/lib/gdb/xmethod.py: New file.
7527         * python/lib/gdb/command/xmethods.py: New file.
7528
7529 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
7530
7531         * eval.c (evaluate_subexp_standard): Call the xmethod if the
7532         best match method returned by find_overload_match is an xmethod.
7533         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7534         the best matching operator returned by find_overload_match is an
7535         xmethod.
7536         * valops.c: #include "extension.h".
7537         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7538         Return void.  The list of matching source methods is returned in
7539         "fn_list" and a vector of matching debug method workers is
7540         returned in "xm_worker_vec".  Update all callers.
7541         (value_find_oload_method_list): Likewise.
7542         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
7543         non-NULL, then the index of the best matching method in this
7544         vector is returned.  Update all callers.
7545         (find_overload_match): Include xmethods while performing overload
7546         resolution.
7547
7548 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
7549
7550         * defs.h (enum lval_type): New enumerator "lval_xcallable".
7551         * extension-priv.h (struct extension_language_ops): Add the
7552         xmethod interface.
7553         * extension.c (new_xmethod_worker, clone_xmethod_worker,
7554         get_matching_xmethod_workers, get_xmethod_argtypes,
7555         invoke_xmethod, free_xmethod_worker,
7556         free_xmethod_worker_vec): New functions.
7557         * extension.h: #include "common/vec.h".
7558         New function declarations.
7559         (struct xmethod_worker): New struct.
7560         (VEC (xmethod_worker_ptr)): New vector type.
7561         (xmethod_worker_ptr): New typedef.
7562         (xmethod_worker_vec): Likewise.
7563         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7564         builtin_type.
7565         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7566         (struct builtin_type): New field "xmethod".
7567         * valarith.c (value_ptradd): Assert that the value argument is not
7568         lval_xcallable.
7569         * valops.c (value_must_coerce_to_target): Return 0 for
7570         lval_xcallable values.
7571         * value.c (struct value): New field XM_WORKER in the field
7572         LOCATION.
7573         (value_address, value_raw_address): Return 0 for lval_xcallable
7574         values.
7575         (set_value_address): Assert that the value is not an
7576         lval_xcallable.
7577         (value_free): Free the associated xmethod worker when freeing
7578         lval_xcallable values.
7579         (set_value_component_location): Assert that the WHOLE value is not
7580         lval_xcallable.
7581         (value_of_xmethod, call_xmethod): New functions.
7582         * value.h: Declare "struct xmethod_worker".
7583         Declare new functions value_of_xmethod, call_xmethod.
7584
7585 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
7586             Pedro Alves  <palves@redhat.com>
7587
7588         PR breakpoints/17000
7589         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7590         New function, extracted from software_breakpoint_inserted_here_p.
7591         (software_breakpoint_inserted_here_p): Replace factored out code
7592         by call to find_non_raw_software_breakpoint_inserted_here.
7593         (bp_target_info_copy_insertion_state): New function.
7594         (bkpt_insert_location): Handle the case of a single-step
7595         breakpoint already inserted at the same address.
7596         (bkpt_remove_location): Handle the case of a single-step
7597         breakpoint still inserted at the same address.
7598         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7599         breakpoint already inserted at the same address.
7600         (deprecated_remove_raw_breakpoint): Handle the case of a
7601         non-raw breakpoint still inserted at the same address.
7602         (find_single_step_breakpoint): New function, extracted from
7603         single_step_breakpoint_inserted_here_p.
7604         (find_single_step_breakpoint): New function,
7605         factored out from single_step_breakpoint_inserted_here_p.
7606         (single_step_breakpoint_inserted_here_p): Reimplement.
7607
7608 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
7609
7610         Pushed by Joel Brobecker  <brobecker@adacore.com>
7611         * source.c (show_substitute_path_command): Fix display of matching
7612         substitution rules.
7613
7614 2014-06-03  Gary Benson  <gbenson@redhat.com>
7615
7616         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7617
7618 2014-06-02  Doug Evans  <xdje42@gmail.com>
7619
7620         Add parameter support for Guile.
7621         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7622         (SUBDIR_GUILE_SRCS): Add scm-param.c.
7623         (scm-param.o): New rule.
7624         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7625         (gdbscm_misc_error): Declare.
7626         (gdbscm_canonicalize_command_name): Declare.
7627         (gdbscm_scm_to_host_string): Declare.
7628         (gdbscm_scm_from_host_string): Declare.
7629         (gdbscm_initialize_parameters): Declare.
7630         * guile/guile.c (initialize_gdb_module): Call
7631         gdbscm_initialize_parameters.
7632         * guile/lib/gdb.scm: Export parameter symbols.
7633         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7634         cmdscm_canonicalize_name and made public.  All callers updated.
7635         * guile/scm-exception.c (gdbscm_misc_error): New function.
7636         * guile/scm-param.c: New file.
7637         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7638         (gdbscm_scm_to_host_string): New function.
7639         (gdbscm_scm_from_host_string): New function.
7640         * scm-utils.c (gdbscm_gc_dup_argv): New function.
7641
7642 2014-06-02  Doug Evans  <xdje42@gmail.com>
7643
7644         Add command support for Guile.
7645         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7646         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7647         (scm-cmd.o): New rule.
7648         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7649         (gdbscm_user_error_p): Declare.
7650         (gdbscm_parse_command_name): Declare.
7651         (gdbscm_valid_command_class_p): Declare.
7652         (gdbscm_initialize_commands): Declare.
7653         * guile/guile.c (initialize_gdb_module): Call
7654         gdbscm_initialize_commands.
7655         * guile/lib/gdb.scm: Export command symbols.
7656         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7657         (throw-user-error): New function.
7658         * guile/scm-cmd.c: New file.
7659         * guile/scm-exception.c (user_error_symbol): New static global.
7660         (gdbscm_user_error_p): New function.
7661         (gdbscm_initialize_exceptions): Set user_error_symbol.
7662         * scm-utils.c (gdbscm_gc_xstrdup): New function.
7663
7664 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
7665
7666         * top.c (command_loop): Handle comments here...
7667         (command_line_input): ... not here.
7668
7669 2014-06-02  Doug Evans  <xdje42@gmail.com>
7670
7671         Add progspace support for Guile.
7672         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7673         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7674         (scm-progspace.o): New rule.
7675         * guile/guile-internal.h (pspace_smob): New typedef.
7676         (psscm_pspace_smob_pretty_printers): Declare.
7677         (psscm_pspace_smob_from_pspace): Declare.
7678         (psscm_scm_from_pspace): Declare.
7679         * guile/guile.c (initialize_gdb_module): Call
7680         gdbscm_initialize_pspaces.
7681         * guile/lib/gdb.scm: Export progspace symbols.
7682         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7683         support.
7684         (append-pretty-printer!): Ditto.
7685         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7686         Implement.
7687         * guile/scm-progspace.c: New file.
7688
7689 2014-06-03  Alan Modra  <amodra@gmail.com>
7690
7691         * ppc64-tdep.c (ppc64_standard_linkage8): New.
7692         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7693
7694 2014-06-02  Doug Evans  <dje@google.com>
7695
7696         Add support for skeletonless type units.
7697         * dwarf2read.c (struct dwarf2_per_objfile): New member
7698         n_allocated_type_units.
7699         (struct dwarf2_per_objfile) <tu_stats>: New member
7700         nr_all_type_units_reallocs.
7701         (create_signatured_type_table_from_index): Initialize
7702         n_allocated_type_units
7703         (create_all_type_units): Ditto.
7704         (add_type_unit): Move up in file.  New arg slot.
7705         All callers updated.  Increase space for all_type_units more
7706         efficiently.
7707         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7708         (lookup_dwo_signatured_type): Handle skeletonless TUs.
7709         (lookup_dwp_signatured_type): Ditto.
7710         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7711         All callers updated.
7712         (build_type_psymtabs_1): Leave type_unit_groups as
7713         NULL if no TUs present.
7714         (print_tu_stats): New function.
7715         (process_skeletonless_type_unit): New function.
7716         (process_dwo_file_for_skeletonless_type_units): New
7717         function.
7718         (process_skeletonless_type_units): New function.
7719         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7720         Call print tu_stats if debugging enabled.
7721
7722 2014-06-02  Pedro Alves  <palves@redhat.com>
7723
7724         * breakpoint.c (build_target_command_list): Don't build a command
7725         list if we have any duplicate location that isn't a dprintf.
7726
7727 2014-06-02  Pedro Alves  <palves@redhat.com>
7728
7729         * breakpoint.c (dprintf_breakpoint_hit): New function.
7730         (initialize_breakpoint_ops): Install it as dprintf's
7731         breakpoint_hit method.
7732
7733 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
7734
7735         * source.c (substitute_path_rule_matches): Simplify using
7736         filename_ncmp instead of FILENAME_CMP.
7737
7738 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
7739
7740         * source.c (substitute_path_rule_matches): Remove trailing spaces.
7741
7742 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
7743
7744         * configure.ac: When Guile is available, check for the
7745         availability of 'scm_new_smob'.
7746         * configure, config.h.in: Regenerate.
7747         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7748         function.
7749
7750 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
7751
7752         * frame.c (struct frame_info): Add stop_string field.
7753         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7754         (get_prev_frame_always): Old content moved into
7755         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
7756         TRY_CATCH, handle MEMORY_ERROR exceptions.
7757         (frame_stop_reason_string): New function definition.
7758         * frame.h (unwind_stop_reason_to_string): Extend comment to
7759         mention frame_stop_reason_string.
7760         (frame_stop_reason_string): New function declaration.
7761         * stack.c (frame_info): Switch to frame_stop_reason_string.
7762         (backtrace_command_1): Switch to frame_stop_reason_string.
7763         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7764         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7765         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7766
7767 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
7768
7769         * frame.c (frame_stop_reason_string): Rename to ...
7770         (unwind_stop_reason_to_string): this.
7771         * frame.h (frame_stop_reason_string): Rename to ...
7772         (unwind_stop_reason_to_string): this.
7773         * stack.c (frame_info): Update call to frame_stop_reason_string.
7774         (backtrace_command_1): Likewise.
7775         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7776         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7777
7778 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
7779
7780         * frame.c (remove_prev_frame): New function.
7781         (get_prev_frame_if_no_cycle): Create / discard cleanup using
7782         remove_prev_frame.
7783
7784 2014-05-29  Pedro Alves  <palves@redhat.com>
7785
7786         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7787         and make it const.  When a single-step decays to a continue,
7788         clear 'step', not 'hw_step'.  Pass whether the caller wanted
7789         to step to user_visible_resume_ptid, not what we ask the
7790         target to do.
7791
7792 2014-05-29  Pedro Alves  <palves@redhat.com>
7793
7794         * infrun.c (process_event_stop_test, handle_step_into_function)
7795         (handle_step_into_function_backward): Adjust.
7796         Don't set the even thread's stop_step and call stop_waiting before
7797         calling end_stepping_range.  Instead do that ...
7798         (end_stepping_range): ... here.  Take an ecs pointer parameter.
7799
7800 2014-05-29  Pedro Alves  <palves@redhat.com>
7801
7802         * infrun.c (stop_stepping): Rename to ...
7803         (stop_waiting): ... this.
7804         (proceed): Update comment.
7805         (process_event_stop_test, handle_inferior_event)
7806         (handle_signal_stop, handle_step_into_function)
7807         (handle_step_into_function_backward): Update.
7808
7809 2014-05-29  Pedro Alves  <palves@redhat.com>
7810
7811         * infcall.c (run_inferior_call): Don't check whether the current
7812         thread is running after the proceed call.
7813
7814 2014-05-29  Pedro Alves  <palves@redhat.com>
7815             Tom Tromey  <tromey@redhat.com>
7816
7817         * NEWS: Mention "maint set target-async", "set mi-async", and that
7818         background execution commands are now always available.
7819         * target.h (target_async_permitted): Update comment.
7820         * target.c (target_async_permitted, target_async_permitted_1):
7821         Default to 1.
7822         (set_target_async_command): Rename to ...
7823         (maint_set_target_async_command): ... this.
7824         (show_target_async_command): Rename to ...
7825         (maint_show_target_async_command): ... this.
7826         (_initialize_target): Adjust.
7827         * infcmd.c (prepare_execution_command): Make extern.
7828         * inferior.h (prepare_execution_command): Declare.
7829         * infrun.c (set_observer_mode): Leave target async alone.
7830         * mi/mi-interp.c (mi_interpreter_init): Install
7831         mi_on_sync_execution_done as sync_execution_done observer.
7832         (mi_on_sync_execution_done): New function.
7833         (mi_execute_command_input_handler): Don't print the prompt if we
7834         just started a synchronous command with an async target.
7835         (mi_on_resume): Check sync_execution before printing prompt.
7836         * mi/mi-main.h (mi_async_p): Declare.
7837         * mi/mi-main.c: Include gdbcmd.h.
7838         (mi_async_p): New function.
7839         (mi_async, mi_async_1): New globals.
7840         (set_mi_async_command, show_mi_async_command, mi_async): New
7841         functions.
7842         (exec_continue): Call prepare_execution_command.
7843         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7844         (mi_execute_async_cli_command): Use mi_async_p.
7845         (_initialize_mi_main): Install "set mi-async".  Make
7846         "target-async" a deprecated alias.
7847
7848 2014-05-29  Pedro Alves  <palves@redhat.com>
7849
7850         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7851         (_initialize_cli_interp): Adjust.
7852         * event-loop.c: Include "observer.h".
7853         (start_event_loop): Notify 'command_error' observers instead of
7854         calling display_gdb_prompt.  Remove FIXME comment.
7855         * event-top.c (display_gdb_prompt): Remove call into the
7856         interpreters.
7857         * inf-loop.c: Include "observer.h".
7858         (inferior_event_handler): Notify 'command_error' observers instead
7859         of calling display_gdb_prompt.
7860         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7861         observers instead of calling display_gdb_prompt.
7862         * interps.c (interp_set): Don't call display_gdb_prompt.
7863         (current_interp_display_prompt_p): Delete.
7864         * interps.h (interp_prompt_p): Delete declaration.
7865         (interp_prompt_p_ftype): Delete.
7866         (struct interp_procs) <prompt_proc_p>: Delete field.
7867         (current_interp_display_prompt_p): Delete declaration.
7868         * mi-interp.c (mi_interpreter_prompt_p): Delete.
7869         (_initialize_mi_interp): Adjust.
7870         * tui-interp.c (tui_init): Install 'sync_execution_done' and
7871         'command_error' observers.
7872         (tui_on_sync_execution_done, tui_on_command_error): New
7873         functions.
7874         (tui_display_prompt_p): Delete.
7875         (_initialize_tui_interp): Adjust.
7876
7877 2014-05-29  Pedro Alves  <palves@redhat.com>
7878
7879         PR gdb/13860
7880         * cli/cli-interp.c: Include infrun.h and observer.h.
7881         (cli_uiout, cli_interp): New globals.
7882         (cli_on_signal_received, cli_on_end_stepping_range)
7883         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7884         functions.
7885         (cli_interpreter_init): Install them as 'end_stepping_range',
7886         'signal_received' 'signal_exited', 'exited' and 'no_history'
7887         observers.
7888         (_initialize_cli_interp): Remove cli_interp local.
7889         * infrun.c (handle_inferior_event): Call the several stop reason
7890         observers instead of printing the stop reason directly.
7891         (end_stepping_range): New function.
7892         (print_end_stepping_range_reason, print_signal_exited_reason)
7893         (print_exited_reason, print_signal_received_reason)
7894         (print_no_history_reason): Make static, and add an uiout
7895         parameter.  Print to that instead of to CURRENT_UIOUT.
7896         * infrun.h (print_end_stepping_range_reason)
7897         (print_signal_exited_reason, print_exited_reason)
7898         (print_signal_received_reason print_no_history_reason): New
7899         declarations.
7900         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7901         'mi_uiout'.
7902         <cli_uiout>: New field.
7903         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
7904         uiout for CLI output.  Install 'signal_received',
7905         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7906         observers.
7907         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7908         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7909         (mi_on_no_history): New functions.
7910         (ui_out_free_cleanup): Delete function.
7911         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7912         instead use the one already stored in the MI interpreter data.
7913         (mi_ui_out): Adjust.
7914         * tui/tui-interp.c: Include infrun.h and observer.h.
7915         (tui_interp): New global.
7916         (tui_on_signal_received, tui_on_end_stepping_range)
7917         (tui_on_signal_exited, tui_on_exited)
7918         (tui_on_no_history): New functions.
7919         (tui_init): Install them as 'end_stepping_range',
7920         'signal_received' 'signal_exited', 'exited' and 'no_history'
7921         observers.
7922         (_initialize_tui_interp): Delete tui_interp local.
7923
7924 2014-05-29  Pedro Alves  <palves@redhat.com>
7925
7926         PR gdb/15713
7927         * linux-nat.c (linux_nat_resume_callback): Rename the second
7928         parameter to 'except'.  Skip LP if it points to EXCEPT.
7929         (linux_nat_resume): Don't mark the event lwp as not stopped
7930         before resuming sibling lwps.  Instead ask
7931         linux_nat_resume_callback to skip the event lwp.  Mark it as not
7932         stopped after actually resuming it.
7933         (linux_handle_syscall_trap): Mark the lwp as not stopped after
7934         resuming it.
7935         (wait_lwp): Mark the lwp as stopped here.
7936         (stop_wait_callback): Mark the lwp as not stopped right after
7937         resuming it.  Don't mark lwps as stopped here.
7938         (linux_nat_filter_event): Mark the lwp as stopped earlier.
7939         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7940
7941 2014-05-29  Pedro Alves  <palves@redhat.com>
7942
7943         PR PR15693
7944         * infrun.c (resume): Determine how much to resume depending on
7945         whether the caller wanted a step, not whether we can hardware step
7946         the target.  Mark all threads that we intend to run as running,
7947         unless we're calling an inferior function.
7948         (normal_stop): If the thread is running an infcall, don't finish
7949         thread state.
7950         * target.c (target_resume): Don't mark threads as running here.
7951
7952 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
7953
7954         * serial.c (_initialize_serial): Remove support for
7955         the "set remotebaud" and "show remotebaud" commands.
7956         * NEWS: Add entry documenting the removal of that command.
7957
7958 2014-05-28  Yao Qi  <yao@codesourcery.com>
7959
7960         * charset.c: Fix typo in comments.
7961
7962 2014-05-27  Gary Benson  <gbenson@redhat.com>
7963
7964         * utils.c (internal_vproblem): Prompt for a bug report.
7965
7966 2014-05-26  Andy Wingo  <wingo@igalia.com>
7967
7968         * guile/scm-arch.c (arscm_mark_arch_smob):
7969         * guile/scm-block.c (bkscm_mark_block_smob)
7970         (bkscm_mark_block_syms_progress_smob):
7971         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7972         * guile/scm-exception.c (exscm_mark_exception_smob):
7973         * guile/scm-frame.c (frscm_mark_frame_smob):
7974         * guile/scm-iterator.c (itscm_mark_iterator_smob):
7975         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7976         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7977         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7978         (ppscm_mark_pretty_printer_worker_smob):
7979         * guile/scm-symbol.c (syscm_mark_symbol_smob):
7980         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7981         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7982         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7983         mark functions.
7984         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7985         function.
7986
7987 2014-05-26  Andy Wingo  <wingo@igalia.com>
7988             Doug Evans  <xdje42@gmail.com>
7989
7990         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7991         empty_base_class.  All uses updated.
7992         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7993         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7994         Adapt all callers.
7995         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7996         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7997         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7998         (gdbscm_gsmob_has_property_p, add_property_name)
7999         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
8000         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
8001         (gdb-object-has-property?, gdb-object-properties): Remove.
8002         (gdb-object-kind): Renamed from gsmob-kind.
8003
8004 2014-05-26  Andy Wingo  <wingo@igalia.com>
8005
8006         * configure.ac (try_guile_versions): Allow building with guile 2.2.
8007         * configure: Regenerate.
8008
8009 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
8010
8011         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
8012
8013 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
8014
8015         * record-btrace.c (record_btrace_allow_memory_access): Remove.
8016         (replay_memory_access_read_only, replay_memory_access_read_write)
8017         (replay_memory_access_types, replay_memory_access)
8018         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
8019         (cmd_set_record_btrace, cmd_show_record_btrace)
8020         (cmd_show_replay_memory_access): New.
8021         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8022         (record_btrace_remove_breakpoint): Replace
8023         record_btrace_allow_memory_access with replay_memory_access.
8024         (_initialize_record_btrace): Add commands.
8025         * NEWS: Announce it.
8026
8027 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8028
8029         * aarch64-linux-nat.c (asm/ptrace.h): Include.
8030
8031 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8032
8033         * MAINTAINERS (Write After Approval): Move self back from
8034         paper trail.
8035
8036 2014-05-22  Pedro Alves  <palves@redhat.com>
8037
8038         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
8039         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
8040         (disable_randomization, enum exec_direction_kind)
8041         (execution_direction, stop_registers, start_remote)
8042         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
8043         (wait_for_inferior, normal_stop, get_last_target_status)
8044         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
8045         (insert_step_resume_breakpoint_at_sal)
8046         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
8047         (set_step_info, print_stop_event, signal_stop_state)
8048         (signal_print_state, signal_pass_state, signal_stop_update)
8049         (signal_print_update, signal_pass_update)
8050         (update_signals_program_target, clear_exit_convenience_vars)
8051         (displaced_step_dump_bytes, update_observer_mode)
8052         (signal_catch_update, gdb_signal_from_command): Move
8053         declarations ...
8054         * infrun.h: ... to this new file.
8055         * amd64-tdep.c: Include infrun.h.
8056         * annotate.c: Include infrun.h.
8057         * arch-utils.c: Include infrun.h.
8058         * arm-linux-tdep.c: Include infrun.h.
8059         * arm-tdep.c: Include infrun.h.
8060         * break-catch-sig.c: Include infrun.h.
8061         * breakpoint.c: Include infrun.h.
8062         * common/agent.c: Include infrun.h instead of inferior.h.
8063         * corelow.c: Include infrun.h.
8064         * event-top.c: Include infrun.h.
8065         * go32-nat.c: Include infrun.h.
8066         * i386-tdep.c: Include infrun.h.
8067         * inf-loop.c: Include infrun.h.
8068         * infcall.c: Include infrun.h.
8069         * infcmd.c: Include infrun.h.
8070         * infrun.c: Include infrun.h.
8071         * linux-fork.c: Include infrun.h.
8072         * linux-nat.c: Include infrun.h.
8073         * linux-thread-db.c: Include infrun.h.
8074         * monitor.c: Include infrun.h.
8075         * nto-tdep.c: Include infrun.h.
8076         * procfs.c: Include infrun.h.
8077         * record-btrace.c: Include infrun.h.
8078         * record-full.c: Include infrun.h.
8079         * remote-m32r-sdi.c: Include infrun.h.
8080         * remote-mips.c: Include infrun.h.
8081         * remote-notif.c: Include infrun.h.
8082         * remote-sim.c: Include infrun.h.
8083         * remote.c: Include infrun.h.
8084         * reverse.c: Include infrun.h.
8085         * rs6000-tdep.c: Include infrun.h.
8086         * s390-linux-tdep.c: Include infrun.h.
8087         * solib-irix.c: Include infrun.h.
8088         * solib-osf.c: Include infrun.h.
8089         * solib-svr4.c: Include infrun.h.
8090         * target.c: Include infrun.h.
8091         * top.c: Include infrun.h.
8092         * windows-nat.c: Include infrun.h.
8093         * mi/mi-interp.c: Include infrun.h.
8094         * mi/mi-main.c: Include infrun.h.
8095         * python/py-threadevent.c: Include infrun.h.
8096
8097 2014-05-22  Pedro Alves  <palves@redhat.com>
8098
8099         * infrun.c (handle_inferior_event): Store the exit code for
8100         --return-child-result here, instead of ...
8101         (print_exited_reason): ... here.
8102
8103 2014-05-21  Pedro Alves  <palves@redhat.com>
8104
8105         PR gdb/13860
8106         * gdbthread.h (struct thread_control_state): New field
8107         `command_interp'.
8108         * infrun.c (follow_fork): Copy the new thread control field to the
8109         child fork thread.
8110         (clear_proceed_status_thread): Clear the new thread control field.
8111         (proceed): Set the new thread control field.
8112         * interps.h (command_interp): Declare.
8113         * interps.c (command_interpreter): New global.
8114         (command_interp): New function.
8115         (interp_exec): Set `command_interpreter' while here.
8116         * cli-out.c (cli_uiout_dtor): New function.
8117         (cli_ui_out_impl): Install it.
8118         * mi/mi-interp.c: Include cli-out.h.
8119         (mi_cmd_interpreter_exec): Add comment.
8120         (restore_current_uiout_cleanup): New function.
8121         (ui_out_free_cleanup): New function.
8122         (mi_on_normal_stop): If finishing an execution command started by
8123         a CLI command, or any kind of breakpoint-like event triggered,
8124         print the stop event to the output (CLI) stream.
8125         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8126
8127 2014-05-21  Pedro Alves  <palves@redhat.com>
8128
8129         * cli/cli-cmds.c (list_command): Handle the first "list" after the
8130         current source line having changed.
8131         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8132         * infrun.c (normal_stop): Adjust call to
8133         set_current_sal_from_frame.
8134         * source.c (clear_lines_listed_range): New function.
8135         (set_current_source_symtab_and_line, identify_source_line): Clear
8136         the lines listed range.
8137         (line_info): Handle the first "info line" after the current source
8138         line having changed.
8139         * stack.c (print_stack_frame): Remove center handling.
8140         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
8141         center sal.line.
8142
8143 2014-05-21  Pedro Alves  <palves@redhat.com>
8144
8145         * inf-child.c (inf_child_mourn_inferior): New function.
8146         * inf-child.h (inf_child_mourn_inferior): New declaration.
8147         * darwin-nat.c (darwin_mourn_inferior): Use
8148         inf_child_mourn_inferior.
8149         * gnu-nat.c (gnu_mourn_inferior): Likewise.
8150         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8151         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8152         * nto-procfs.c (procfs_mourn_inferior): Likewise.
8153         * windows-nat.c (windows_mourn_inferior): Likewise.
8154
8155 2014-05-21  Doug Evans  <xdje42@gmail.com>
8156
8157         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
8158
8159 2014-05-21  Doug Evans  <xdje42@gmail.com>
8160
8161         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
8162         (gdbscm_out_of_range_error): Ditto.
8163         (gdbscm_memory_error): Ditto.
8164         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8165         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
8166         (gdbscm_out_of_range_error): Update.
8167         (gdbscm_memory_error): Update.
8168         (gdbscm_scm_to_target_string_unsafe): Delete.
8169
8170 2014-05-21  Pedro Alves  <palves@redhat.com>
8171
8172         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8173         globals.
8174         (inf_child_open_target): New function.
8175         (inf_child_open): Use inf_child_open_target to push the target
8176         instead of erroring out.
8177         (inf_child_disconnect, inf_child_close)
8178         (inf_child_maybe_unpush_target): New functions.
8179         (inf_child_target): Install inf_child_disconnect and
8180         inf_child_close.  Store a pointer to the returned object.
8181         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8182         declarations.
8183         * target.c (auto_connect_native_target): New global.
8184         (show_default_run_target): New function.
8185         (find_default_run_target): Return NULL if automatically connecting
8186         to the native target is disabled.
8187         (_initialize_target): Install set/show auto-connect-native-target.
8188         * NEWS: Mention "set auto-connect-native-target", and "target
8189         native".
8190         * linux-nat.c (super_close): New global.
8191         (linux_nat_close): Call super_close.
8192         (linux_nat_add_target): Store a pointer to the base class's
8193         to_close method.
8194         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8195         inf_child_maybe_unpush.
8196         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8197         already pushed.
8198         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8199         the inferior.  Use inf_child_maybe_unpush_target.
8200         (inf_ttrace_attach): Don't push the target if it is already
8201         pushed.
8202         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8203         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8204         after mourning the inferior.  Use inf_child_maybe_unpush_target.
8205         (darwin_attach_pid): Don't push the target if it is already
8206         pushed.
8207         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8208         mourning the inferior.  Use inf_child_maybe_unpush_target.
8209         (gnu_detach): Use inf_child_maybe_unpush_target.
8210         * go32-nat.c (go32_create_inferior): Don't push the target if it
8211         is already pushed.
8212         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8213         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8214         (procfs_open): Rename to ...
8215         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
8216         comments.  Can target_preopen before changing node.  Call
8217         inf_child_open_target to push the target explicitly.
8218         (procfs_attach): Don't push the target if it is already pushed.
8219         (procfs_detach): Use inf_child_maybe_unpush_target.
8220         (procfs_create_inferior): Don't push the target if it is already
8221         pushed.
8222         (nto_native_ops): New global.
8223         (procfs_open): Reimplement.
8224         (procfs_native_open): New function.
8225         (init_procfs_targets): Install procfs_native_open as to_open of
8226         "target native".  Store a pointer to the "native" target in
8227         nto_native_ops.
8228         * procfs.c (procfs_attach): Don't push the target if it is already
8229         pushed.
8230         (procfs_detach): Use inf_child_maybe_unpush_target.
8231         (procfs_mourn_inferior): Only unpush the target after mourning the
8232         inferior.  Use inf_child_maybe_unpush_target.
8233         (procfs_init_inferior): Don't push the target if it is already
8234         pushed.
8235         * windows-nat.c (do_initial_windows_stuff): Don't push the target
8236         if it is already pushed.
8237
8238 2014-05-21  Pedro Alves  <palves@redhat.com>
8239
8240         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8241         and "procfs" targets are now called "native" instead.
8242
8243 2014-05-21  Pedro Alves  <palves@redhat.com>
8244
8245         * go32-nat.c (go32_open): Delete.
8246         (go32_target): Don't override the to_open method.
8247
8248 2014-05-21  Pedro Alves  <palves@redhat.com>
8249
8250         * nto-procfs.c (procfs_can_run): New function.
8251         (nto_procfs_ops): New global.
8252         (init_procfs_targets): New, based on procfs_target.  Install
8253         "target native" in addition to "target procfs".
8254         (_initialize_procfs): Call init_procfs_targets instead of adding
8255         the target here.
8256
8257 2014-05-21  Pedro Alves  <palves@redhat.com>
8258
8259         * windows-nat.c (windows_target): Don't override to_shortname,
8260         to_longname or to_doc.
8261
8262 2014-05-21  Pedro Alves  <palves@redhat.com>
8263
8264         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8265         to_doc.
8266
8267 2014-05-21  Pedro Alves  <palves@redhat.com>
8268
8269         * darwin-nat.c (_initialize_darwin_inferior): Don't override
8270         to_shortname, to_longname or to_doc.
8271
8272 2014-05-21  Pedro Alves  <palves@redhat.com>
8273
8274         * go32-nat.c (go32_target): Don't override to_shortname,
8275         to_longname or to_doc.
8276
8277 2014-05-21  Pedro Alves  <palves@redhat.com>
8278
8279         * inf-child.c (inf_child_open): Remove mention of "child".
8280         (inf_child_target): Rename target to "native" instead of "child".
8281
8282 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8283
8284         * Makefile.in (SFILES): Delete "regset.c".
8285         (COMMON_OBS): Delete "regset.o".
8286         * regset.c: Remove.
8287         * regset.h (regset_alloc): Delete prototype.
8288
8289 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8290
8291         * sparc-linux-tdep.c (sparc32_linux_gregset)
8292         (sparc32_linux_fpregset): New static regset structures.
8293         (sparc32_linux_init_abi): Drop dynamic regset allocations.
8294         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8295         'fpregset' fields.
8296         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8297         (sparc64_linux_fpregset): New static regset structures.
8298         (sparc64_linux_init_abi): Drop dynamic regset allocations.
8299         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8300         New static regset structures.
8301         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8302         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8303         New static regset structures.
8304         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8305         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8306         New static regset structures.
8307         (sparc64obsd_init_abi): Drop dynamic regset allocations.
8308         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8309         New static regset structures.
8310         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8311
8312 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8313
8314         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8315         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8316         register maps ("regmaps") from "*regset" to "*regmap".  Do this
8317         for all regmap types and variables.
8318         * sparc-linux-tdep.c (sparc32_linux_step_trap)
8319         (sparc32_linux_supply_core_gregset)
8320         (sparc32_linux_collect_core_gregset)
8321         (sparc32_linux_supply_core_fpregset)
8322         (sparc32_linux_collect_core_fpregset): Likewise.
8323         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8324         (sparc_gregmap, sparc_fpregmap): ... these.
8325         (sparc_supply_gregset, sparc_collect_gregset)
8326         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8327         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8328         (_initialize_sparc_nat): Rename regmaps.
8329         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8330         (sparc_gregmap, sparc_fpregmap): ... these.
8331         (sparc_supply_gregset, sparc_collect_gregset)
8332         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8333         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8334         Rename macros to...
8335         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8336         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8337         Likewise.
8338         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8339         Rename to...
8340         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8341         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8342         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8343         regmaps.
8344         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8345         (sparc32_bsd_fpregset): Rename to...
8346         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8347         (sparc32_bsd_fpregmap): ... these.
8348         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8349         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8350         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8351         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8352         (struct sparc_gregmap, struct sparc_fpregmap)
8353         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8354         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8355         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8356         (sparc32_supply_regset, sparc32_collect_gregset)
8357         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8358         prototypes.
8359         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8360         (sparc64_linux_ptrace_gregmap): ... this.
8361         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8362         (_initialize_sparc64_linux_nat): Rename regmaps.
8363         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8364         (sparc64_linux_core_gregmap): ... this.
8365         (sparc64_linux_supply_core_gregset)
8366         (sparc64_linux_collect_core_gregset)
8367         (sparc64_linux_supply_core_fpregset)
8368         (sparc64_linux_collect_core_fpregset): Rename regmaps.
8369         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8370         (sparc64_sol2_fpregset): Rename to...
8371         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8372         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8373         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8374         regmaps.
8375         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8376         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8377         (sparc64_bsd_fpregset): Rename to...
8378         (struct sparc_gregmap, sparc64_sol2_gregmap)
8379         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8380         (sparc64_bsd_fpregmap): ... these.
8381         (sparc64_supply_gregset, sparc64_collect_gregset)
8382         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8383         prototypes.
8384         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8385         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8386         (sparc64fbsd_gregmap): ... this.
8387         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8388         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8389         Rename regmaps.
8390         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8391         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8392         (sparc64nbsd_collect_fpregset): Likewise.
8393         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8394         (sparc64nbsd_gregmap): ... this.
8395         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8396         regmaps.
8397         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8398         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8399         (sparc64obsd_gregmap): ... this.
8400         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8401         regmaps.
8402         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8403         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8404         (sparc32nbsd_gregmap): ... this.
8405         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8406         regmaps.
8407
8408 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8409
8410         * score-tdep.c (score7_linux_gregset): New static regset
8411         structure.
8412         (score7_linux_regset_from_core_section): Remove dynamic regset
8413         allocation.
8414         (score_gdbarch_init): Drop allocation of tdep structure.
8415         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8416
8417 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8418
8419         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8420         regset structures.
8421         (am33_regset_from_core_section): Remove dynamic regset
8422         allocations.
8423
8424 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8425
8426         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8427         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8428         structures.
8429         (mips_linux_regset_from_core_section): Remove dynamic regset
8430         allocations.
8431         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8432         'gregset64', 'fpregset', and 'fpregset64'.
8433         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8434         deleted tdep fields.
8435
8436 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8437
8438         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8439         regset structures.
8440         (amd64_regset_from_core_section): Remove dynamic regset
8441         allocations.
8442         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8443         structure.
8444         (amd64obsd_regset_from_core_section): Remove dynamic regset
8445         allocation.
8446         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8447         Likewise.
8448         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8449         x86-common regset supply function.
8450         * i386-tdep.c (i386_collect_gregset): Make static.
8451         (i386_gregset): New global regset structure.
8452         (i386_fpregset, i386_xstateregset): New static regset structures.
8453         (i386_regset_from_core_section): Remove dynamic regset
8454         allocations.
8455         (i386_gdbarch_init): Remove initialization of tdep fields
8456         'gregset', 'fpregset', and 'xstateregset'.
8457         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8458         'fpregset', and 'xstateregset'.
8459         (i386_collect_gregset): Remove prototype.
8460         (i386_gregset): New declaration.
8461         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8462         structure.
8463         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8464         allocation.
8465
8466 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8467
8468         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8469         (arm_linux_vfpregset): New static regset structures.
8470         (arm_linux_regset_from_core_section): Remove dynamic allocation of
8471         regset structures.
8472         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8473         and 'vfpregset' fields.
8474
8475 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8476
8477         * aarch64-linux-tdep.c (aarch64_linux_gregset)
8478         (aarch64_linux_fpregset): New static regset structures.
8479         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8480         of regset structures.
8481         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8482         'fpregset' fields.
8483
8484 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8485
8486         * regset.h (struct regset): Remove gdbarch field.
8487         * regset.c (regset_alloc): Drop initialization of gdbarch field.
8488         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8489         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8490         Likewise.
8491         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8492         (ppc32_linux_fpregset, ppc32_linux_vrregset)
8493         (ppc32_linux_vsxregset): Likewise.
8494         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8495         via the regcache instead of the regset.
8496         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8497         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8498         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8499         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8500         Likewise.
8501
8502 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8503
8504         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8505         Constify structures.
8506         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8507         (alphanbsd_aout_gregset): Likewise.
8508         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8509         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8510         Likewise.
8511         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8512         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8513         Likewise.
8514         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8515         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8516         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8517         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8518         * m88k-tdep.c (m88k_gregset): Likewise.
8519         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8520         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8521         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8522         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8523         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8524         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8525         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8526         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8527         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8528         Likewise.
8529         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8530         * sh-tdep.h (sh_corefile_gregset): Likewise.
8531         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8532         * vax-tdep.c (vax_gregset): Likewise.
8533
8534 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8535
8536         Fix TLS access for -static -pthread.
8537         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8538         (try_thread_db_load_1): Initialize it.
8539         (thread_db_get_thread_local_address): Call it if LM is zero.
8540         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8541         * target.h (struct target_ops) (to_get_thread_local_address): Add
8542         load_module_addr comment.
8543
8544 2014-05-21  Pedro Alves  <palves@redhat.com>
8545
8546         * dcache.c (dcache_read_memory_partial): If reading the cache line
8547         fails, fallback to reading just the memory the caller wanted.
8548
8549 2014-05-20  Doug Evans  <dje@google.com>
8550
8551         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8552         instead of get_current_arch.
8553
8554 2014-05-20  Pedro Alves  <palves@redhat.com>
8555
8556         * NEWS: Mention that compare-sections now works with all targets.
8557
8558         * remote.c (PACKET_qCRC): New enum value.
8559         (remote_verify_memory): Don't send qCRC if the target has no
8560         execution.  Use packet_support/packet_ok.  If the target doesn't
8561         support the qCRC packet, fallback to a deep memory copy.
8562         (compare_sections_command): Say "target image" instead of "remote
8563         executable".
8564         (_initialize_remote): Add PACKET_qCRC to the list of config
8565         packets that have no associated command.  Extend comment.
8566         * target.c (simple_verify_memory, default_verify_memory): New
8567         function.
8568         * target.h (struct target_ops) <to_verify_memory>: Default to
8569         default_verify_memory.
8570         (simple_verify_memory): New declaration.
8571         * target-delegates.c: Regenerate.
8572
8573 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
8574
8575         * record-btrace.c (record_btrace_step_thread): Check for empty history.
8576
8577 2014-05-20  Hui Zhu  <hui@codesourcery.com>
8578             Yao Qi  <yao@codesourcery.com>
8579
8580         PR backtrace/16558
8581         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8582         and change address of sp and pc.
8583
8584 2014-05-19  Tom Tromey  <tromey@redhat.com>
8585
8586         * gdbtypes.c (rank_function): Use XNEWVEC.
8587         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8588
8589 2014-05-19  Doug Evans  <dje@google.com>
8590
8591         * dwarf2read.c (build_type_psymtabs_1): Renamed from
8592         build_type_unit_groups and moved closer to only caller.  Remove
8593         arguments.  All references updated.  Remove outdated .gdb_index
8594         comment.
8595         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8596         build_type_psymtabs_1.
8597
8598 2014-05-19  Doug Evans  <dje@google.com>
8599
8600         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8601         n_type_unit_groups, all_type_unit_groups.  All uses removed.
8602         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8603         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
8604         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
8605         (add_type_unit_group_to_table): Delete.
8606
8607 2014-05-19  Doug Evans  <dje@google.com>
8608
8609         * eval.c (evaluate_subexp_standard): Add some comments.
8610
8611 2014-05-17  Doug Evans  <xdje42@gmail.com>
8612
8613         * progspace.c (remove_program_space): Delete, unused.
8614         * progspace.h (remove_program_space): Ditto.
8615
8616 2014-05-17  Doug Evans  <xdje42@gmail.com>
8617
8618         * inferior.c (prune_inferiors): Fix comment.
8619         (remove_inferior_command): Call prune_program_spaces.
8620
8621 2014-05-16  Doug Evans  <dje@google.com>
8622
8623         New command line option -D.
8624         * NEWS: Mention it.
8625         * main.c (set_gdb_data_directory): New function.
8626         (captured_main): Recognize -D.  Flag error for --data-directory "".
8627         Call set_gdb_data_directory.
8628         (print_gdb_help): Print --data-directory, -D.
8629         * main.h (set_gdb_data_directory): Declare.
8630         * top.c (staged_gdb_datadir): New static global.
8631         (set_gdb_datadir): Call set_gdb_data_directory
8632         (show_gdb_datadir): New function.
8633         (init_main): Update init of data-directory parameter.
8634
8635 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
8636
8637         Import the "dirfd" gnulib module.
8638         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8639         * gnulib/aclocal.m4: Update.
8640         * gnulib/config.in: Update.
8641         * gnulib/configure: Update.
8642         * gnulib/import/Makefile.am: Update.
8643         * gnulib/import/Makefile.in: Update.
8644         * gnulib/import/dirfd.c: New.
8645         * gnulib/import/m4/dirfd.m4: New.
8646         * gnulib/import/m4/gnulib-cache.m4: Update.
8647         * gnulib/import/m4/gnulib-comp.m4: Update.
8648
8649 2014-05-16  Pierre Muller  <muller@sourceware.org>
8650             Yao Qi  <yao@codesourcery.com>
8651
8652         * valprint.c (print_wchar): Move the code on checking whether
8653         W is a printable wide char to the default branch of switch
8654         statement below.  Call wchar_printable instead of gdb_iswprint.
8655
8656 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
8657
8658         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8659         ldr.w and ldrd instructions.
8660
8661 2014-05-15  Doug Evans  <dje@google.com>
8662
8663         * dwarf2read.c (read_structure_type): Delete outdated comments.
8664
8665 2014-05-14  Tom Tromey  <tromey@redhat.com>
8666
8667         * macrocmd.c (print_macro_definition): Reindent.
8668
8669 2014-05-13  Doug Evans  <xdje42@gmail.com>
8670
8671         * python/py-cmd.c (cmdpy_completer): Add comment.
8672         (completers): Make const.
8673
8674 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
8675
8676         * infrun.c (resume): Remove should_resume (unused).  Move up
8677         declaration of resume_ptid.
8678
8679 2014-05-13  Tom Tromey  <tromey@redhat.com>
8680
8681         * language.h (unop_type_check): Remove.
8682         (binop_type_check): Don't declare.
8683
8684 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
8685
8686         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8687         call to regcache_raw_collect.
8688
8689 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
8690
8691         * mi/mi-console.c (mi_console_raw_packet): Use the value from
8692         mi_console->quote as the quoting character.
8693
8694 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
8695
8696         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8697
8698 2014-04-29  Tom Tromey  <tromey@redhat.com>
8699
8700         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8701         "show debug varobj".
8702
8703 2014-05-07  Kyle McMartin  <kyle@redhat.com>
8704
8705         Pushed by Joel Brobecker  <brobecker@adacore.com>.
8706         * aarch64-tdep.c (aarch64_software_single_step): New function.
8707         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8708         with aarch64_software_single_step.
8709
8710 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
8711
8712         GDB 7.7.1 released.
8713
8714 2014-05-05  Keith Seitz  <keiths@redhat.com>
8715
8716         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8717         variable or history value is successfully parsed.
8718
8719 2014-05-05  Yao Qi  <yao@codesourcery.com>
8720             Pedro Alves  <palves@redhat.com>
8721
8722         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8723         address of blocks that intersects the requested range.  Trim
8724         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8725         sections.
8726         * ctf.c (ctf_xfer_partial): Likewise.
8727
8728 2014-05-05  Yao Qi  <yao@codesourcery.com>
8729
8730         * printcmd.c (display_command): Remove the check to
8731         target_has_execution.
8732
8733 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
8734
8735         * ppcobsd-nat.c: Include "obsd-nat.h".
8736         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8737         add_target.
8738         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8739
8740 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
8741
8742         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8743         and 16-bit signed and unsigned arguments.  Update comment.
8744         (stap_parse_probe_arguments): Extend code to handle such
8745         arguments.  Use warning instead of complaint to notify about
8746         unrecognized bitness.
8747
8748 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
8749
8750         PR breakpoints/16889
8751         * stap-probe.c (stap_parse_probe_arguments): Simplify
8752         check for non-prefixed probes (i.e., probes whose
8753         arguments do not start with "N@").  Always set the
8754         argument type to a sane value.
8755
8756 2014-05-01  David Taylor  <dtaylor@emc.com>
8757
8758         * remote.c (compare_sections_command): Add -r option to compare
8759         all loadable read-only sections.
8760
8761 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
8762
8763         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8764         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8765         Update all callers.
8766         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8767         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8768         Remove unused CORE_ADDR argument.  Update all callers.
8769
8770 2014-04-29  Pedro Alves  <palves@redhat.com>
8771
8772         * remote.c (struct packet_config) <detect>: Extend comment.
8773         (add_packet_config_cmd): Don't set the config's detect or support
8774         fields here.
8775         (init_all_packet_configs): Also initialize the config's 'detect'
8776         field.
8777         (reset_all_packet_configs_support): New function.
8778         (remote_open_1): Call reset_all_packet_configs_support instead of
8779         init_all_packet_configs.
8780         (_initialize_remote): Initialize all packet configs.  Assert that
8781         all packets have an associated command, except a few known
8782         outliers.
8783
8784 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8785
8786         * dwarf2read.c (read_subrange_type): Handle dynamic
8787         DW_AT_lower_bound attributes.
8788
8789 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8790
8791         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8792         dynamic bounds before computing its upper bound.
8793         (ada_discrete_type_low_bound): Same as above with the lower bound.
8794
8795 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8796
8797         * dwarf2read.c (is_dynamic_type): Return true for dynamic
8798         range types.  Adjust the array handling implementation to
8799         take advantage of this change.
8800         (resolve_dynamic_range): New function, mostly extracted from
8801         resolve_dynamic_bounds.
8802         (resolve_dynamic_array): New function, mostly extracted from
8803         resolve_dynamic_bounds.
8804         (resolve_dynamic_bounds): Delete.
8805         (resolve_dynamic_type): Reimplement.  Add handling of
8806         TYPE_CODE_RANGE types.
8807
8808 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8809
8810         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8811         handling of parallel ___XA types.
8812
8813 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8814
8815         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8816         unnecessary second call to static_unwrap_type.
8817
8818 2014-04-27  Hui Zhu  <hui@codesourcery.com>
8819
8820         * stack.c (print_frame_info): Call do_gdb_disassembly with
8821         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8822
8823 2014-04-26  Doug Evans  <xdje42@gmail.com>
8824
8825         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8826
8827 2014-04-25  Pedro Alves  <palves@redhat.com>
8828
8829         PR server/16255
8830         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8831         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
8832         and newline from built string.
8833         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8834         (linux_ptrace_attach_fail_reason): ... this.
8835         * linux-nat.c (linux_nat_attach): Adjust to use
8836         linux_ptrace_attach_fail_reason.
8837
8838 2014-04-25  Pedro Alves  <palves@redhat.com>
8839
8840         * remote.c (struct remote_state): Remove multi_process_aware,
8841         non_stop_aware, cond_tracepoints, cond_breakpoints,
8842         breakpoint_commands, fast_tracepoints, static_tracepoints,
8843         install_in_trace, disconnected_tracing,
8844         enable_disable_tracepoints, string_tracing, and
8845         augmented_libraries_svr4_read fields.
8846         (remote_multi_process_p): Move further below in the file.
8847         (struct packet_config): Add comments.
8848         (update_packet_config): Delete function.
8849         (show_packet_config_cmd): Use packet_config_support.
8850         (add_packet_config_cmd): Use NULL as set callback.
8851         (packet_ok): "set remote foo-packet"-style commands no longer
8852         change config->supported -- adjust.
8853         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8854         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8855         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8856         (PACKET_QNonStop, PACKET_multiprocess_feature)
8857         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8858         (PACKET_DisconnectedTracing_feature)
8859         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8860         (set_remote_protocol_packet_cmd): Delete function.
8861         (packet_config_support, packet_support): New functions.
8862         (set_remote_protocol_Z_packet_cmd): Don't call
8863         update_packet_config.
8864         (remote_query_attached, remote_pass_signals)
8865         (remote_program_signals, remote_threads_info)
8866         (remote_threads_extra_info, remote_start_remote): Use
8867         packet_support.
8868         (remote_start_remote): Use packet_config_support and
8869         packet_support.
8870         (init_all_packet_configs): Set all packets to unknown support,
8871         instead of calling update_packet_config.
8872         (remote_check_symbols): Use packet_support.
8873         (remote_supported_packet): Unconditionally set the packet config's
8874         support status.
8875         (remote_multi_process_feature, remote_non_stop_feature)
8876         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8877         (remote_breakpoint_commands_feature)
8878         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8879         (remote_install_in_trace_feature)
8880         (remote_disconnected_tracing_feature)
8881         (remote_enable_disable_tracepoint_feature)
8882         (remote_string_tracing_feature)
8883         (remote_augmented_libraries_svr4_read_feature): Delete functions.
8884         (remote_protocol_features): Adjust to use remote_supported_packet
8885         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8886         "ConditionalTracepoints", "ConditionalBreakpoints",
8887         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8888         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8889         "EnableDisableTracepoints", and "tracenz".
8890         (remote_query_supported): Use packet_support.
8891         (remote_open_1): Adjust.
8892         (extended_remote_attach_1): Use packet_support.  Switch on the
8893         result of packet_ok instead of checking whether the packet ended
8894         up disabled.
8895         (remote_vcont_resume): Use packet_support.
8896         (remote_resume, remote_stop_ns, fetch_register_using_p)
8897         (remote_prepare_to_store, store_register_using_P)
8898         (check_binary_download, remote_write_bytes): Use packet_support.
8899         (remote_vkill): Use packet_support.  Switch on the result of
8900         packet_ok instead of checking whether the packet ended up
8901         disabled.
8902         (extended_remote_supports_disable_randomization): Use
8903         packet_support.
8904         (extended_remote_run): Switch on the result of packet_ok instead
8905         of checking whether the packet ended up disabled.
8906         (remote_insert_breakpoint, remote_remove_breakpoint)
8907         (remote_insert_watchpoint, remote_remove_watchpoint)
8908         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8909         packet_support.
8910         (remote_search_memory): Use packet_config_support.
8911         (remote_get_thread_local_address, remote_get_tib_address)
8912         (remote_hostio_send_command, remote_can_execute_reverse): Use
8913         packet_support.
8914         (remote_supports_cond_tracepoints)
8915         (remote_supports_cond_breakpoints)
8916         (remote_supports_fast_tracepoints)
8917         (remote_supports_static_tracepoints)
8918         (remote_supports_install_in_trace)
8919         (remote_supports_enable_disable_tracepoint)
8920         (remote_supports_string_tracing)
8921         (remote_can_run_breakpoint_commands): Rewrite, checking whether
8922         the packet config says the feature is enabled or disabled.
8923         (remote_download_tracepoint, remote_trace_set_readonly_regions)
8924         (remote_get_trace_status): Use packet_support.
8925         (remote_set_disconnected_tracing): Adjust to check whether the
8926         feature is enabled with packet_support.
8927         (remote_set_trace_buffer_size, remote_use_agent)
8928         (remote_can_use_agent, remote_supports_btrace): Use
8929         packet_support.
8930         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8931         Use packet_config_support.
8932         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8933         the packet config says the feature is enabled or disabled.
8934         (set_range_stepping): Use packet_support.
8935
8936 2014-04-25  Tom Tromey  <tromey@redhat.com>
8937
8938         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8939         argument.
8940
8941 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
8942
8943         * NEWS: Mention support for C99 variable length arrays.
8944
8945 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
8946
8947         * ada-lang.c (standard_exc): Expand introductory comment.
8948
8949 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
8950             Walfred Tedeschi  <walfred.tedeschi@intel.com>
8951
8952         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8953         AVX512 registers.
8954         (amd64_linux_read_description): Add code to handle AVX512 xstate
8955         mask and return respective tdesc.
8956         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8957         and features/i386/x32-avx512-linux.c.
8958         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8959         (amd64_linux_core_read_description): Add code to handle AVX512
8960         xstate mask and return respective tdesc.
8961         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8962         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8963         calculation.
8964         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8965         (tdesc_amd64_avx512_linux): New prototype.
8966         (tdesc_x32_avx512_linux): Likewise.
8967         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8968         features/i386/x32-avx512.c.
8969         (amd64_ymm_avx512_names): New register names for pseudo
8970         registers YMM16-31.
8971         (amd64_ymmh_avx512_names): New register names for raw registers
8972         YMMH16-31.
8973         (amd64_k_names): New register names for K registers.
8974         (amd64_zmmh_names): New register names for ZMM raw registers.
8975         (amd64_zmm_names): New registers names for ZMM pseudo registers.
8976         (amd64_xmm_avx512_names): New register names for XMM16-31
8977         registers.
8978         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8979         registers.
8980         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8981         if feature is present.
8982         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8983         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8984         (AMD64_NUM_REGS): Adjust to new number of registers.
8985         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8986         registers supplied via XSTATE by AVX512 registers.
8987         (i386_linux_read_description): Add case for AVX512.
8988         * i386-linux-tdep.c: Include i386-avx512-linux.c.
8989         (i386_linux_gregset_reg_offset): Add AVX512 registers.
8990         (i386_linux_core_read_description): Add case for AVX512.
8991         (i386_linux_init_abi): Install supported register note section
8992         for AVX512.
8993         (_initialize_i386_linux_tdep): Add call to tdesc init function for
8994         AVX512.
8995         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8996         registers to be number of zmm7h + 1.
8997         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8998         * i386-tdep.c: Include features/i386/i386-avx512.c.
8999         (i386_zmm_names): Add ZMM pseudo register names array.
9000         (i386_zmmh_names): Add ZMM raw register names array.
9001         (i386_k_names): Add K raw register names array.
9002         (num_lower_zmm_regs): Add constant for the number of lower ZMM
9003         registers. AVX512 has 16 more ZMM registers than there are YMM
9004         registers.
9005         (i386_zmmh_regnum_p): Add function to look up register number of
9006         ZMM raw registers.
9007         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
9008         (i386_k_regnum_p): Likewise for K raw registers.
9009         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
9010         registers added by AVX512.
9011         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
9012         registers added by AVX512.
9013         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
9014         added by AVX512.
9015         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
9016         (i386_pseudo_register_name): Add ZMM pseudo registers.
9017         (i386_zmm_type): Construct and return vector registers type for ZMM
9018         registers.
9019         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
9020         ZMM0-31 pseudo registers and K registers.
9021         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
9022         and YMM16-31 registers from register cache.
9023         (i386_pseudo_register_write): Add code to write  K, ZMM and
9024         YMM16-31 registers.
9025         (i386_register_reggroup_p): Add code to include/exclude AVX512
9026         registers in/from respective register groups.
9027         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
9028         registers if feature is present in xcr0.
9029         (i386_gdbarch_init): Add code to initialize AVX512 feature
9030         variables in tdep structure, wire in pseudo registers and call
9031         initialize_tdesc_i386_avx512.
9032         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
9033         variables.
9034         (i386_regnum): Add AVX512 registers.
9035         (I386_SSE_NUM_REGS): New define for number of SSE registers.
9036         (I386_AVX_NUM_REGS): Likewise for AVX registers.
9037         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
9038         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
9039         512 bits wide.
9040         (i386_xmm_avx512_regnum_p): New prototype for register look up.
9041         (i386_ymm_avx512_regnum_p): Likewise.
9042         (i386_k_regnum_p): Likewise.
9043         (i386_zmm_regnum_p): Likewise.
9044         (i386_zmmh_regnum_p): Likewise.
9045         * i387-tdep.c : Update year in copyright notice.
9046         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
9047         XSAVE buffer.
9048         (XSAVE_YMM_AVX512_ADDR): New macro.
9049         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
9050         XSAVE buffer.
9051         (XSAVE_XMM_AVX512_ADDR): New macro.
9052         (xsave_avx512_k_offset): New table for K register offsets in
9053         XSAVE buffer.
9054         (XSAVE_AVX512_K_ADDR): New macro.
9055         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
9056         in XSAVE buffer.
9057         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
9058         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
9059         buffer.
9060         (i387_collect_xsave): Add code to collect AVX512 registers from
9061         XSAVE buffer.
9062         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
9063         of XMM16-31 registers.
9064         (I387_NUM_K_REGS): New define for number of K registers.
9065         (I387_K0_REGNUM): New define for K0 register number.
9066         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
9067         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
9068         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
9069         registers.
9070         (I387_YMM16H_REGNUM): New define for YMM16H register number.
9071         (I387_XMM16_REGNUM): New define for XMM16 register number.
9072         (I387_YMM0_REGNUM): New define for YMM0 register number.
9073         (I387_KEND_REGNUM): New define for last K register number.
9074         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9075         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9076         number.
9077         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9078         number.
9079         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9080         size.
9081         * features/Makefile: Add AVX512 related files.
9082         * features/i386/32bit-avx512.xml: New file.
9083         * features/i386/64bit-avx512.xml: Likewise.
9084         * features/i386/amd64-avx512-linux.c: Likewise.
9085         * features/i386/amd64-avx512-linux.xml: Likewise.
9086         * features/i386/amd64-avx512.c: Likewise.
9087         * features/i386/amd64-avx512.xml: Likewise.
9088         * features/i386/i386-avx512-linux.c: Likewise.
9089         * features/i386/i386-avx512-linux.xml: Likewise.
9090         * features/i386/i386-avx512.c: Likewise.
9091         * features/i386/i386-avx512.xml: Likewise.
9092         * features/i386/x32-avx512-linux.c: Likewise.
9093         * features/i386/x32-avx512-linux.xml: Likewise.
9094         * features/i386/x32-avx512.c: Likewise.
9095         * features/i386/x32-avx512.xml: Likewise.
9096         * regformats/i386/amd64-avx512-linux.dat: New file.
9097         * regformats/i386/amd64-avx512.dat: Likewise.
9098         * regformats/i386/i386-avx512-linux.dat: Likewise.
9099         * regformats/i386/i386-avx512.dat: Likewise.
9100         * regformats/i386/x32-avx512-linux.dat: Likewise.
9101         * regformats/i386/x32-avx512.dat: Likewise.
9102         * NEWS: Add note about new support for AVX512.
9103
9104
9105 2014-04-23  Pedro Alves  <palves@redhat.com>
9106
9107         * breakpoint.c (insert_bp_location): Tolerate errors if the
9108         breakpoint is set in a user-loaded objfile.
9109         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
9110         location is marked shlib_disabled.  If the breakpoint is set in a
9111         user-loaded objfile is a GDB-side memory breakpoint, validate it
9112         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
9113         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
9114         flag.
9115         * mem-break.c (memory_validate_breakpoint): New function.
9116         * objfiles.c (userloaded_objfile_contains_address_p): New
9117         function.
9118         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9119         * target.h (memory_validate_breakpoint): New declaration.
9120
9121 2014-04-23  Pedro Alves  <palves@redhat.com>
9122
9123         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9124         the breakpoint is set in a shared library, only suppress
9125         errors for software breakpoints, not hardware breakpoints.
9126
9127 2014-04-22  Pedro Alves  <palves@redhat.com>
9128
9129         * infrun.c (schedlock_applies): New function, factored out from
9130         find_thread_needs_step_over.
9131         (find_thread_needs_step_over): Use it.
9132         (switch_back_to_stepped_thread): Always clear trap_expected if the
9133         step over is finished.  Return early if scheduler locking applies.
9134         Look for the stepping thread and a potential step-over thread with
9135         a single loop.
9136         (currently_stepping_or_nexting_callback): Delete.
9137
9138 2014-04-22  Nick Clifton  <nickc@redhat.com>
9139
9140         * NEWS: Mention that ARM sim now supports tracing.
9141
9142 2014-04-22  Yao Qi  <yao@codesourcery.com>
9143
9144         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9145         to ...
9146         * tracefile.c (tracefile_fetch_registers): ... it.  New
9147         function.
9148         * tracefile.h (tracefile_fetch_registers): Declare.
9149         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
9150         tracefile_fetch_registers.
9151
9152 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
9153
9154         PR gdb/14018
9155         * windows-nat.c (thread_rec): Don't display a warning when
9156         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
9157         fails for any reason, set th->suspended to -1, so that we don't
9158         try to resume such a thread.  Also, don't return NULL in these
9159         cases, to avoid completely ruin the session due to "PC register is
9160         not available" error.
9161         (do_windows_fetch_inferior_registers): Check errors in
9162         GetThreadContext call.
9163         (windows_continue): Accept an additional argument KILLED; if not
9164         zero, ignore errors in the SetThreadContext call, since the
9165         inferior was killed and is shutting down.
9166         (windows_resume, get_windows_debug_event)
9167         (windows_create_inferior, windows_mourn_inferior)
9168         (windows_kill_inferior): All callers of windows_continue changed
9169         to adjust to its new calling sequence.
9170
9171 2014-04-19  Yao Qi  <yao@codesourcery.com>
9172
9173         * ctf.c (ctf_open): Call post_create_inferior.
9174
9175 2014-04-19  Yao Qi  <yao@codesourcery.com>
9176
9177         * ctf.c (handle_id): New static variable.
9178         (ctf_open_dir): Get handle_id from bt_context_add_trace return
9179         value.  Get the declaration of event "register" and get length
9180         of field "contents".
9181
9182 2014-04-19  Yao Qi  <yao@codesourcery.com>
9183
9184         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9185
9186 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
9187
9188         * valops.c (oload_method_static): Remove unnecessary argument
9189         METHOD.  Update all callers.
9190
9191 2014-04-18  Pedro alves  <palves@redhat.com>
9192             Tom Tromey  <tromey@redhat.com>
9193
9194         PR backtrace/15558
9195         * frame.c (get_prev_frame_1): Rename to ...
9196         (get_prev_frame_always): ... this, and make extern.  Adjust.
9197         (skip_artificial_frames): Use get_prev_frame_always.
9198         (frame_unwind_caller_id, frame_pop, get_prev_frame)
9199         (get_frame_unwind_stop_reason): Adjust to rename.
9200         * frame.h (get_prev_frame_always): Declare.
9201         * inline-frame.c: Include frame.h.
9202         (inline_frame_this_id): Use get_prev_frame_always.
9203
9204 2014-04-18  Tristan Gingold  <gingold@adacore.com>
9205
9206         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9207         code by using bfd_mach_o_get_base_address.
9208
9209 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
9210
9211         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9212         (spu_ax_pseudo_register_collect): New function.
9213         (spu_ax_pseudo_register_push_stack): Likewise.
9214         (spu_dwarf_reg_to_regnum): Likewise.
9215         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
9216
9217 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
9218
9219         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9220         Replace FRAME argument with FRAME_ID.
9221         * gdbarch.c, gdbarch.h: Regenerate.
9222         * findvar.c (default_value_from_register): Add GDBARCH argument;
9223         replace FRAME by FRAME_ID.  No longer call get_frame_id.
9224         (value_from_register): Update call to gdbarch_value_from_register.
9225         * value.h (default_value_from_register): Update prototype.
9226         * s390-linux-tdep.c (s390_value_from_register): Update interface
9227         and call to default_value_from_register.
9228         * spu-tdep.c (spu_value_from_register): Likewise.
9229
9230         * findvar.c (address_from_register): Remove TYPE argument.
9231         Do not call value_from_register; use gdbarch_value_from_register
9232         with null_frame_id instead.
9233         * value.h (address_from_register): Update prototype.
9234         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9235         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9236         address_from_register interface change.
9237
9238 2014-04-17  Yao Qi  <yao@codesourcery.com>
9239
9240         * gdbtypes.h: Update comments to link to types and macros'
9241         definitions.
9242
9243 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
9244
9245         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9246
9247 2014-04-16  Keith Seitz  <keiths@redhat.com>
9248
9249         PR gdb/15827
9250         * dwarf2read.c (skip_one_die): Check that all relative-offset
9251         sibling DIEs fall within range of the current reader's buffer.
9252         (read_partial_die): Likewise.
9253
9254 2014-04-16  Keith Seitz  <keiths@redhat.com>
9255
9256         PR c++/16597
9257         * cp-namespace.c (lookup_symbol_file): If the type name of
9258         `this' is NULL, return immediately.
9259
9260 2014-04-14  Keith Seitz  <keiths@redhat.com>
9261
9262         PR c++/16253
9263         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9264         from symbol_matches_domain in symtab.c. All local callers
9265         of symbol_matches_domain updated.
9266         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9267         search STRUCT_DOMAIN.
9268         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9269         independently.  standard_lookup will do that automatically.
9270         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9271         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9272         (cp_lookup_symbol_in_namespace): Likewise.
9273         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9274         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9275         may return a STRUCT_DOMAIN match.
9276         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9277         * cp-support.c: Include language.h.
9278         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9279         VAR_DOMAIN.
9280         * psymtab.c (match_partial_symbol): Compare the requested
9281         domain with the symbol's domain directly.
9282         (lookup_partial_symbol): Likewise.
9283         * symtab.c (lookup_symbol_in_language): Explain when/why
9284         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9285         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9286         appropriate languages.
9287         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9288         and moved to ada-lang.c
9289         (lookup_block_symbol): Explain that this function only returns
9290         symbol matching the requested DOMAIN.
9291         Compare the requested domain with the symbol's domain directly.
9292         (iterate_over_symbols): Compare the requested domain with the
9293         symbol's domain directly.
9294         * symtab.h (symbol_matches_domain): Remove.
9295
9296 2014-04-14  Tom Tromey  <tromey@redhat.com>
9297
9298         PR c++/15246:
9299         * c-exp.y (type_aggregate_p): New function.
9300         (qualified_name, classify_inner_name): Use it.
9301         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9302         and TYPE_TARGET_TYPE of an enum type.
9303         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9304         an enum type.
9305         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9306         handle TYPE_DECLARED_CLASS.
9307         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9308         types.
9309         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9310         * valops.c (enum_constant_from_type): New function.
9311         (value_aggregate_elt): Use it.
9312         * cp-namespace.c (cp_lookup_nested_symbol): Handle
9313         TYPE_CODE_ENUM.
9314
9315 2014-04-14  Tom Tromey  <tromey@redhat.com>
9316
9317         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9318         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9319         const.
9320         * value.h (value_aggregate_elt): Update.
9321
9322 2014-04-14  Tom Tromey  <tromey@redhat.com>
9323
9324         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9325
9326 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9327
9328         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9329         (evaluate_subexp_standard): Pass noside argument.
9330         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9331         if noside equals EVAL_NORMAL. If the subscript yields a vla type
9332         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9333         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9334         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9335
9336 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9337
9338         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9339         points to a constant blob.
9340
9341 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9342
9343         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9344         property and store it as the high bound and flag the range accordingly.
9345         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9346         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9347         * gdbtypes.h (enum range_flags): New enum.
9348         (struct range_bounds): Add flags member.
9349
9350 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9351
9352         * c-typeprint.c (c_type_print_varspec_suffix): Added
9353         check for not yet resolved high bound. If unresolved, print
9354         "variable length" string to the console instead of random
9355         length.
9356
9357 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9358
9359         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9360         value.
9361         (ada_template_to_fixed_record_type_1): Likewise.
9362         (ada_to_fixed_type_1): Likewise.
9363         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9364         (cp_print_value): Likewise.
9365         * d-valprint.c (dynamic_array_type): Likewise.
9366         * findvar.c (address_of_variable): Likewise.
9367         * jv-valprint.c (java_value_print): Likewise.
9368         * valops.c (value_ind): Likewise.
9369         * value.c (coerce_ref): Likewise.
9370
9371 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9372
9373         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9374         value and retrieve the dynamic type size.
9375
9376 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9377
9378         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9379         passed to sizeof is dynamic evaluate the argument to compute the length.
9380
9381 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9382             Joel Brobecker  <brobecker@adacore.com>
9383
9384         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9385         (dwarf2_evaluate_property): New function.
9386         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9387         * dwarf2read.c (attr_to_dynamic_prop): New function.
9388         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9389         attribute.
9390         * gdbtypes.c: Include dwarf2loc.h.
9391         (is_dynamic_type): New function.
9392         (resolve_dynamic_type): New function.
9393         (resolve_dynamic_bounds): New function.
9394         (get_type_length): New function.
9395         (check_typedef): Use get_type_length to compute type length.
9396         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9397         (TYPE_LOW_BOUND_KIND): New macro.
9398         (is_dynamic_type): New function prototype.
9399         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9400         to resolve dynamic properties of the type. Update comment.
9401         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9402
9403 2014-04-14  Richard Henderson  <rth@redhat.com>
9404
9405         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9406
9407 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
9408             Doug Evans  <xdje42@gmail.com>
9409
9410         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9411         dereference TYPE_CODE_REF values.
9412
9413 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
9414
9415         Revert the following changes due to regressions:
9416
9417         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9418         (dwarf2_evaluate_property): New function.
9419         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9420         * dwarf2read.c (attr_to_dynamic_prop): New function.
9421         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9422         attribute.
9423         * gdbtypes.c: Include dwarf2loc.h.
9424         (is_dynamic_type): New function.
9425         (resolve_dynamic_type): New function.
9426         (resolve_dynamic_bounds): New function.
9427         (get_type_length): New function.
9428         (check_typedef): Use get_type_length to compute type length.
9429         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9430         (TYPE_LOW_BOUND_KIND): New macro.
9431         (is_dynamic_type): New function prototype.
9432         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9433         to resolve dynamic properties of the type. Update comment.
9434         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9435
9436         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9437         passed to sizeof is dynamic evaluate the argument to compute the length.
9438
9439         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9440         value and retrieve the dynamic type size.
9441
9442         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9443         (ada_template_to_fixed_record_type_1): Likewise.
9444         (ada_to_fixed_type_1): Likewise.
9445         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9446         (cp_print_value): Likewise.
9447         * d-valprint.c (dynamic_array_type): Likewise.
9448         * eval.c (evaluate_subexp_with_coercion): Likewise.
9449         * findvar.c (address_of_variable): Likewise.
9450         * jv-valprint.c (java_value_print): Likewise.
9451         * valops.c (value_ind): Likewise.
9452         * value.c (coerce_ref): Likewise.
9453
9454         * c-typeprint.c (c_type_print_varspec_suffix): Added
9455         check for not yet resolved high bound. If unresolved, print
9456         "variable length" string to the console instead of random
9457         length.
9458
9459         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9460         property and store it as the high bound and flag the range accordingly.
9461         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9462         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9463         * gdbtypes.h (enum range_flags): New enum.
9464         (struct range_bounds): Add flags member.
9465
9466         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9467         points to a constant blob.
9468
9469         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9470         (evaluate_subexp_standard): Pass noside argument.
9471         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9472         if noside equals EVAL_NORMAL. If the subscript yields a vla type
9473         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9474         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9475         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9476
9477 2014-04-11  Keith Seitz  <keiths@redhat.com>
9478
9479         PR c++/16675
9480         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9481         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9482         reference types.
9483
9484 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9485
9486         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9487         (evaluate_subexp_standard): Pass noside argument.
9488         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9489         if noside equals EVAL_NORMAL. If the subscript yields a vla type
9490         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9491         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9492         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9493
9494 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9495
9496         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9497         points to a constant blob.
9498
9499 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9500
9501         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9502         property and store it as the high bound and flag the range accordingly.
9503         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9504         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9505         * gdbtypes.h (enum range_flags): New enum.
9506         (struct range_bounds): Add flags member.
9507
9508 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9509
9510         * c-typeprint.c (c_type_print_varspec_suffix): Added
9511         check for not yet resolved high bound. If unresolved, print
9512         "variable length" string to the console instead of random
9513         length.
9514
9515 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9516
9517         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9518         (ada_template_to_fixed_record_type_1): Likewise.
9519         (ada_to_fixed_type_1): Likewise.
9520         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9521         (cp_print_value): Likewise.
9522         * d-valprint.c (dynamic_array_type): Likewise.
9523         * eval.c (evaluate_subexp_with_coercion): Likewise.
9524         * findvar.c (address_of_variable): Likewise.
9525         * jv-valprint.c (java_value_print): Likewise.
9526         * valops.c (value_ind): Likewise.
9527         * value.c (coerce_ref): Likewise.
9528
9529 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9530
9531         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9532         value and retrieve the dynamic type size.
9533
9534 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9535
9536         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9537         passed to sizeof is dynamic evaluate the argument to compute the length.
9538
9539 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9540
9541         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9542         (dwarf2_evaluate_property): New function.
9543         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9544         * dwarf2read.c (attr_to_dynamic_prop): New function.
9545         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9546         attribute.
9547         * gdbtypes.c: Include dwarf2loc.h.
9548         (is_dynamic_type): New function.
9549         (resolve_dynamic_type): New function.
9550         (resolve_dynamic_bounds): New function.
9551         (get_type_length): New function.
9552         (check_typedef): Use get_type_length to compute type length.
9553         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9554         (TYPE_LOW_BOUND_KIND): New macro.
9555         (is_dynamic_type): New function prototype.
9556         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9557         to resolve dynamic properties of the type. Update comment.
9558         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9559
9560 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9561
9562         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9563         declaring high/low bounds and change uses accordingly. Call
9564         create_range_type instead of create_static_range_type.
9565         * gdbtypes.c (create_range_type): New function.
9566         (create_range_type): Convert bounds into struct bound_prop and pass
9567         them to create_range_type.
9568         * gdbtypes.h (struct bound_prop): New struct.
9569         (create_range_type): New function prototype.
9570         (struct range_bounds): Use struct bound_prop instead of LONGEST for
9571         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9572         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9573         part of the bound.
9574         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9575
9576 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9577
9578         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9579         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9580         * ada-lang.c: All uses of create_range_type updated.
9581         * coffread.c: All uses of create_range_type updated.
9582         * dwarf2read.c: All uses of create_range_type updated.
9583         * f-exp.y: All uses of create_range_type updated.
9584         * m2-valprint.c: All uses of create_range_type updated.
9585         * mdebugread.c: All uses of create_range_type updated.
9586         * stabsread.c: All uses of create_range_type updated.
9587         * valops.c: All uses of create_range_type updated.
9588         * valprint.c: All uses of create_range_type updated.
9589
9590 2014-04-10  Pedro Alves  <palves@redhat.com>
9591
9592         * breakpoint.c (single_step_breakpoints)
9593         (single_step_gdbarch): Move up in the file.
9594         (one_breakpoint_xfer_memory): New function, factored out from ...
9595         (breakpoint_xfer_memory): ... here.  Also process single-step
9596         breakpoints.
9597
9598 2014-04-09  Tristan Gingold  <gingold@adacore.com>
9599
9600         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9601         comments.
9602         (darwin_decode_exception_message): Free port only after use.
9603
9604 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
9605
9606         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9607         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9608         when setting the size of call_length.
9609
9610 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
9611
9612         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9613         dereference TYPE_CODE_REF values.
9614
9615 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
9616
9617         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9618         end of warning message.
9619
9620 2014-04-03  Doug Evans  <dje@google.com>
9621
9622         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9623         of stub_comp_unit_die, stub_comp_dir is non-NULL.
9624
9625 2014-04-02  Alan Modra  <amodra@gmail.com>
9626
9627         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9628         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
9629         (struct symbol_file_add_from_memory_args): Add size field.
9630         (find_vdso_size): New function.
9631         (add_vsyscall_page): Attempt to find vdso size.
9632
9633 2014-04-01  Doug Evans  <dje@google.com>
9634
9635         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9636
9637 2014-04-01  Tristan Gingold  <gingold@adacore.com>
9638
9639         * darwin-nat.c (darwin_encode_reply): Add prototype.
9640         (darwin_decode_exception_message): Reply to unknown inferiors.
9641         (darwin_decode_message): Handle message by id.  Ignore message
9642         to unknown inferior.
9643         (darwin_wait): Discard unknown messages, add debug trace.
9644
9645 2014-03-31  Doug Evans  <dje@google.com>
9646
9647         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9648         comp_dir_string.
9649
9650 2014-03-31  Doug Evans  <dje@google.com>
9651
9652         New option "set print symbol-loading".
9653         * NEWS: Mention it.
9654         * solib.c (solib_read_symbols): Only print symbol loading messages
9655         if requested.
9656         (solib_add): If symbol loading is in "brief" mode, notify user
9657         symbols are being loaded.
9658         (reload_shared_libraries_1): Ditto.
9659         * symfile.c (print_symbol_loading_off): New static global.
9660         (print_symbol_loading_brief): New static global.
9661         (print_symbol_loading_full): New static global.
9662         (print_symbol_loading_enums): New static global.
9663         (print_symbol_loading): New static global.
9664         (print_symbol_loading_p): New function.
9665         (symbol_file_add_with_addrs): Only print symbol loading messages
9666         if requested.
9667         (_initialize_symfile): Register "print symbol-loading" set/show
9668         command.
9669         * symfile.h (print_symbol_loading_p): Declare.
9670
9671 2014-03-30  Doug Evans  <xdje42@gmail.com>
9672
9673         * infrun.c (set_last_target_status): New function.
9674         (handle_inferior_event): Call it.
9675
9676 2014-03-30  Doug Evans  <xdje42@gmail.com>
9677
9678         * inferior.h (enum stop_kind): Improve comment.
9679
9680 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
9681
9682         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9683         a reference, strip the reference layer before calling
9684         the lang_ops value_has_mutated callback.
9685
9686 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
9687
9688         Remove some globals from our parser.
9689         * language.c (unk_lang_parser): Add "struct parser_state"
9690         argument.
9691         * language.h (struct language_defn) <la_parser>: Likewise.
9692         * parse.c (expout, expout_size, expout_ptr): Remove variables.
9693         (initialize_expout): Add "struct parser_state" argument.
9694         Rewrite function to use the parser state.
9695         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9696         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9697         write_exp_elt_longcst, write_exp_elt_dblcst,
9698         write_exp_elt_decfloatcst, write_exp_elt_type,
9699         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9700         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9701         write_dollar_variable): Likewise.
9702         (parse_exp_in_context_1): Use parser state.
9703         (insert_type_address_space): Add "struct parser_state" argument.
9704         Use parser state.
9705         (increase_expout_size): New function.
9706         * parser-defs.h: Forward declare "struct language_defn" and
9707         "struct parser_state".
9708         (expout, expout_size, expout_ptr): Remove extern declarations.
9709         (parse_gdbarch, parse_language): Rewrite macro declarations to
9710         accept the parser state.
9711         (struct parser_state): New struct.
9712         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9713         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9714         write_exp_elt_decfloatcst, write_exp_elt_type,
9715         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9716         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9717         write_exp_msymbol, write_dollar_variable,
9718         mark_struct_expression, insert_type_address_space): Add "struct
9719         parser_state" argument.
9720         (increase_expout_size): New function.
9721         * utils.c (do_clear_parser_state): New function.
9722         (make_cleanup_clear_parser_state): Likewise.
9723         * utils.h (make_cleanup_clear_parser_state): New function
9724         prototype.
9725         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9726         Update calls to write_exp* in order to pass the parser state.
9727         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9728         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9729         (i386_stap_parse_special_token_three_arg_disp): Likewise.
9730         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9731         * stap-probe.c (stap_parse_register_operand): Likewise.
9732         (stap_parse_single_operand): Likewise.
9733         (stap_parse_argument_1): Likewise.
9734         (stap_parse_argument): Use parser state.
9735         * stap-probe.h: Include "parser-defs.h".
9736         (struct stap_parse_info) <pstate>: New field.
9737         * c-exp.y (parse_type): Rewrite to use parser state.
9738         (yyparse): Redefine to c_parse_internal.
9739         (pstate): New global variable.
9740         (parse_number): Add "struct parser_state" argument.
9741         (write_destructor_name): Likewise.
9742         (type_exp): Update calls to write_exp* and similars in order to
9743         use parser state.
9744         (exp1, exp, variable, qualified_name, space_identifier,
9745         typename, typebase): Likewise.
9746         (write_destructor_name, parse_number, lex_one_token,
9747         classify_name, classify_inner_name, c_parse): Add "struct
9748         parser_state" argument.  Update function to use parser state.
9749         * c-lang.h: Forward declare "struct parser_state".
9750         (c_parse): Add "struct parser_state" argument.
9751         * ada-exp.y (parse_type): Rewrite macro to use parser state.
9752         (yyparse): Redefine macro to ada_parse_internal.
9753         (pstate): New variable.
9754         (write_int, write_object_renaming, write_var_or_type,
9755         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9756         type_int, type_long, type_long_long, type_float, type_double,
9757         type_long_double, type_char, type_boolean, type_system_address):
9758         Add "struct parser_state" argument.
9759         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9760         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9761         var_or_type, aggregate, aggregate_component_list,
9762         positional_list, others, component_group,
9763         component_associations): Update calls to write_exp* and similar
9764         functions in order to use parser state.
9765         (ada_parse, write_var_from_sym, write_int,
9766         write_exp_op_with_string, write_object_renaming,
9767         find_primitive_type, write_selectors, write_ambiguous_var,
9768         write_var_or_type, write_name_assoc, type_int, type_long,
9769         type_long_long, type_float, type_double, type_long_double,
9770         type_char, type_boolean, type_system_address): Add "struct
9771         parser_state" argument.  Adjust function to use parser state.
9772         * ada-lang.c (parse): Likewise.
9773         * ada-lang.h: Forward declare "struct parser_state".
9774         (ada_parse): Add "struct parser_state" argument.
9775         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
9776         calls to both functions.
9777         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9778         parser state.
9779         (yyparse): Redefine macro to f_parse_internal.
9780         (pstate): New variable.
9781         (parse_number): Add "struct parser_state" argument.
9782         (type_exp, exp, subrange, typebase): Update calls to write_exp*
9783         and similars in order to use parser state.
9784         (parse_number): Adjust code to use parser state.
9785         (yylex): Likewise.
9786         (f_parse): New function.
9787         * f-lang.h: Forward declare "struct parser_state".
9788         (f_parse): Add "struct parser_state" argument.
9789         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9790         parser state.
9791         (yyparse): Redefine macro for java_parse_internal.
9792         (pstate): New variable.
9793         (push_expression_name, push_expression_name, insert_exp): Add
9794         "struct parser_state" argument.
9795         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9796         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9797         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9798         PostIncrementExpression, PostDecrementExpression,
9799         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9800         UnaryExpressionNotPlusMinus, CastExpression,
9801         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9802         RelationalExpression, EqualityExpression, AndExpression,
9803         ExclusiveOrExpression, InclusiveOrExpression,
9804         ConditionalAndExpression, ConditionalOrExpression,
9805         ConditionalExpression, Assignment, LeftHandSide): Update
9806         calls to write_exp* and similars in order to use parser state.
9807         (parse_number): Ajust code to use parser state.
9808         (yylex): Likewise.
9809         (java_parse): New function.
9810         (push_variable): Add "struct parser_state" argument.  Adjust
9811         code to user parser state.
9812         (push_fieldnames, push_qualified_expression_name,
9813         push_expression_name, insert_exp): Likewise.
9814         * jv-lang.h: Forward declare "struct parser_state".
9815         (java_parse): Add "struct parser_state" argument.
9816         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9817         parser state.
9818         (yyparse): Redefine macro to m2_parse_internal.
9819         (pstate): New variable.
9820         (type_exp, exp, fblock, variable, type): Update calls to
9821         write_exp* and similars to use parser state.
9822         (yylex): Likewise.
9823         (m2_parse): New function.
9824         * m2-lang.h: Forward declare "struct parser_state".
9825         (m2_parse): Add "struct parser_state" argument.
9826         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9827         * objc-lang.h: Forward declare "struct parser_state".
9828         (end_msglist): Add "struct parser_state" argument.
9829         * p-exp.y (parse_type): Rewrite macro to use parser state.
9830         (yyparse): Redefine macro to pascal_parse_internal.
9831         (pstate): New variable.
9832         (parse_number): Add "struct parser_state" argument.
9833         (type_exp, exp1, exp, qualified_name, variable): Update calls to
9834         write_exp* and similars in order to use parser state.
9835         (parse_number, yylex): Adjust code to use parser state.
9836         (pascal_parse): New function.
9837         * p-lang.h: Forward declare "struct parser_state".
9838         (pascal_parse): Add "struct parser_state" argument.
9839         * go-exp.y (parse_type): Rewrite macro to use parser state.
9840         (yyparse): Redefine macro to go_parse_internal.
9841         (pstate): New variable.
9842         (parse_number): Add "struct parser_state" argument.
9843         (type_exp, exp1, exp, variable, type): Update calls to
9844         write_exp* and similars in order to use parser state.
9845         (parse_number, lex_one_token, classify_name, yylex): Adjust code
9846         to use parser state.
9847         (go_parse): Likewise.
9848         * go-lang.h: Forward declare "struct parser_state".
9849         (go_parse): Add "struct parser_state" argument.
9850
9851 2014-03-27  Doug Evans  <dje@google.com>
9852
9853         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
9854
9855 2014-03-27  Doug Evans  <dje@google.com>
9856
9857         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9858         Remove argument abbrev_section.  All callers updated.
9859
9860 2014-03-27  Doug Evans  <dje@google.com>
9861
9862         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9863         addr_base, ranges_base.
9864
9865 2014-03-26  Keith Seitz  <keiths@redhat.com>
9866
9867         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9868         types, not VAR_DOMAIN.
9869
9870 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
9871
9872         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9873         "ra" registers.
9874         * features/nios2-linux.c: Regenerated.
9875         * features/nios2.c: Regenerated.
9876
9877 2014-03-25  Pedro Alves  <palves@redhat.com>
9878
9879         * cli/cli-script.c (script_from_file): Force the interpreter to
9880         sync mode.
9881
9882 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
9883
9884         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9885         small stack allocation.
9886
9887 2014-03-24  Tristan Gingold  <gingold@adacore.com>
9888
9889         * darwin-nat.c (exc_server): Remove unused prototype.
9890         (darwin_dump_message): Correctly display data on x86_64.
9891         (darwin_encode_reply): Fix style.
9892         Add comments and fix indentation.
9893
9894 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
9895
9896         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9897
9898 2014-03-22  Doug Evans  <xdje42@gmail.com>
9899
9900         * infcmd.c: Whitespace fixes.
9901         (interrupt_command): Merge two function comments into one.
9902
9903 2014-03-22  Doug Evans  <xdje42@gmail.com>
9904
9905         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9906         All uses updated.
9907
9908 2014-03-22  Yao Qi  <yao@codesourcery.com>
9909
9910         * remote.c (target_read_live_memory): Remove.
9911         (memory_xfer_live_readonly_partial): Rename it to
9912         remote_xfer_live_readonly_partial.  Remove argument 'object'.
9913         All callers updated.  Call remote_read_bytes_1
9914         instead of target_read_live_memory.
9915         * tracepoint.c (set_traceframe_number): Remove.
9916         (make_cleanup_restore_traceframe_number): Likewise .
9917         * tracepoint.h (set_traceframe_number): Remove declaration.
9918         (make_cleanup_restore_traceframe_number): Likewise.
9919
9920 2014-03-22  Yao Qi  <yao@codesourcery.com>
9921
9922         * remote.c (remote_read_bytes): Move code on reading from the
9923         remote stub to ...
9924         (remote_read_bytes_1): ... here.  New function.
9925
9926 2014-03-22  Yao Qi  <yao@codesourcery.com>
9927
9928         * ctf.c (ctf_xfer_partial): Check the return value of
9929         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9930         return TARGET_XFER_UNAVAILABLE.
9931         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9932         * target.c (target_read_live_memory): Move it to remote.c.
9933         (memory_xfer_live_readonly_partial): Likewise.
9934         (memory_xfer_partial_1): Move some code to remote_read_bytes.
9935         * remote.c (target_read_live_memory): Moved from target.c.
9936         (memory_xfer_live_readonly_partial): Likewise.
9937         (remote_read_bytes): Factored out from
9938         memory_xfer_partial_1.
9939
9940 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
9941
9942         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9943         NULL pointer.
9944
9945 2014-03-21  Pedro Alves  <palves@redhat.com>
9946
9947         * infrun.c (normal_stop): Extend comment.
9948
9949 2014-03-21  Hui Zhu  <hui@codesourcery.com>
9950             Pedro Alves  <palves@redhat.com>
9951
9952         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9953         static buffer.
9954         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9955         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9956         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9957
9958 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
9959
9960         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9961         `z' formatted output modifier.
9962
9963 2014-03-20  Tom Tromey  <tromey@redhat.com>
9964             Sergio Durigan Junior  <sergiodj@redhat.com>
9965
9966         * probe.c (parse_probes): Turn assert into an ordinary error.
9967         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9968         exceptions when parsing probes.  Rearrange the code for clarity.
9969
9970 2014-03-20  Tom Tromey  <tromey@redhat.com>
9971
9972         PR gdb/14135
9973         * top.c (execute_command): Only dispatch events if the command
9974         started the target.
9975
9976 2014-03-20  Tom Tromey  <tromey@redhat.com>
9977
9978         PR cli/15718
9979         * infcall.c: Include event-top.h.
9980         (run_inferior_call): Call async_disable_stdin if needed.
9981
9982 2014-03-20  Pedro Alves  <palves@redhat.com>
9983
9984         * infrun.c (prepare_to_proceed): Delete.
9985         (thread_still_needs_step_over): New function.
9986         (find_thread_needs_step_over): New function.
9987         (proceed): If the current thread needs a step-over, set its
9988         steping_over_breakpoint flag.  Adjust to use
9989         find_thread_needs_step_over instead of prepare_to_proceed.
9990         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9991         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9992         breakpoint.
9993         (switch_back_to_stepped_thread): Step over breakpoints of all
9994         threads not the stepping thread, before switching back to the
9995         stepping thread.
9996
9997 2014-03-20  Pedro Alves  <palves@redhat.com>
9998
9999         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
10000         extern.
10001         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
10002         * infrun.c (saved_singlestep_ptid)
10003         (stepping_past_singlestep_breakpoint): Delete.
10004         (resume): Remove stepping_past_singlestep_breakpoint handling.
10005         (proceed): Store the prev_pc of the stepping thread too.
10006         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
10007         singlestep_pc.
10008         (enum infwait_states): Delete infwait_thread_hop_state.
10009         (struct execution_control_state) <hit_singlestep_breakpoint>: New
10010         field.
10011         (handle_inferior_event): Adjust.
10012         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
10013         handling and the thread-hop code.  Before removing single-step
10014         breakpoints, check whether the thread hit a single-step breakpoint
10015         of another thread.  If it did, the trap is not a random signal.
10016         (switch_back_to_stepped_thread): If the event thread hit a
10017         single-step breakpoint, unblock it before switching to the
10018         stepping thread.  Handle the case of the stepped thread having
10019         advanced already.
10020         (keep_going): Handle the case of the current thread moving past a
10021         single-step breakpoint.
10022
10023 2014-03-20  Pedro Alves  <palves@redhat.com>
10024
10025         PR breakpoints/7143
10026         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
10027         are being stepped over.
10028         (breakpoint_address_match): Make extern.
10029         * breakpoint.h (breakpoint_address_match): New declaration.
10030         * inferior.h (stepping_past_instruction_at): New declaration.
10031         * infrun.c (struct step_over_info): New type.
10032         (step_over_info): New global.
10033         (set_step_over_info, clear_step_over_info)
10034         (stepping_past_instruction_at): New functions.
10035         (handle_inferior_event): Clear the step-over info when
10036         trap_expected is cleared.
10037         (resume): Remove now stale comment.
10038         (clear_proceed_status): Clear step-over info.
10039         (proceed): Adjust step-over handling to set or clear the step-over
10040         info instead of removing all breakpoints.
10041         (handle_signal_stop): When setting up a thread-hop, don't remove
10042         breakpoints here.
10043         (stop_stepping): Clear step-over info.
10044         (keep_going): Adjust step-over handling to set or clear step-over
10045         info and then always inserting breakpoints, instead of removing
10046         all breakpoints when stepping over one.
10047
10048 2014-03-20  Pedro Alves  <palves@redhat.com>
10049
10050         * infrun.c (previous_inferior_ptid): Adjust comment.
10051         (deferred_step_ptid): Delete.
10052         (infrun_thread_ptid_changed, prepare_to_proceed)
10053         (init_wait_for_inferior): Adjust.
10054         (handle_signal_stop): Delete deferred_step_ptid handling.
10055
10056 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
10057
10058         PR gdb/15358
10059         * defs.h (sync_quit_force_run): New declaration.
10060         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
10061         * event-top.c (async_sigterm_handler): New declaration.
10062         (async_sigterm_token): New variable.
10063         (async_init_signals): Create also async_sigterm_token.
10064         (async_sigterm_handler): New function.
10065         (sync_quit_force_run): New variable.
10066         (handle_sigterm): Replace quit_force call by other calls.
10067         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
10068
10069 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
10070
10071         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
10072         offset into SPE pseudo registers.
10073
10074 2014-03-18  Pedro Alves  <palves@redhat.com>
10075
10076         PR gdb/13860
10077         * inferior.h (print_stop_event): Declare.
10078         * infrun.c (print_stop_event): New, factored out from ...
10079         (normal_stop): ... this.
10080         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10081         of bpstat_print/print_stack_frame.
10082
10083 2014-03-17  Tom Tromey  <tromey@redhat.com>
10084
10085         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10086
10087 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
10088
10089         * ada-lang.c (decode_constrained_packed_array): Perform a
10090         minimal coercion for reference with coerce_ref instead of
10091         ada_coerce_ref.
10092
10093 2014-03-17  Tristan Gingold  <gingold@adacore.com>
10094
10095         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10096         (darwin_solib_create_inferior_hook): Emit a warning if version
10097         is unhandled.
10098
10099 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
10100
10101         * python/py-value.c (get_field_flag): Cast flag_name argument to
10102         PyObject_GetAttrString to support Python 2.4.
10103
10104 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10105
10106         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10107         (Global Maintainers): Remove Jan Kratochvil.
10108
10109 2014-03-14  Pedro Alves  <palves@redhat.com>
10110
10111         * inferior.h (terminal_ours_for_output): Rename to ...
10112         (child_terminal_ours_for_output): ... this.
10113         (terminal_save_ours): Rename to ...
10114         (child_terminal_save_ours): ... this.
10115         (terminal_ours): Rename to ...
10116         (child_terminal_ours): ... this.
10117         (terminal_inferior): Rename to ...
10118         (child_terminal_inferior): ... this.
10119         (terminal_init_inferior): Rename to ...
10120         (child_terminal_init_inferior): ... this.
10121         (terminal_init_inferior_with_pgrp): Rename to ...
10122         (child_terminal_init_inferior_with_pgrp): ... this.
10123         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10124         (child_terminal_init_with_pgrp): ... this.
10125         (terminal_save_ours): Rename to ...
10126         (child_terminal_save_ours): ... this.
10127         (terminal_init_inferior): Rename to ...
10128         (child_terminal_init): ... this.  Adjust.
10129         (terminal_inferior): Rename to ...
10130         (child_terminal_inferior): ... this.
10131         (terminal_ours_for_output): Rename to ...
10132         (child_terminal_ours_for_output): ... this.  Adjust.
10133         (terminal_ours): Rename to ...
10134         (child_terminal_ours): ... this.
10135         (terminal_ours_1): Rename to ...
10136         (child_terminal_ours_1): ... this.  Adjust.
10137         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10138         * windows-nat.c (do_initial_windows_stuff): Adjust.
10139         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10140         (gnu_terminal_init): ... this.  Adjust.
10141         (gnu_target): Adjust.
10142         * inf-child.c (inf_child_target): Adjust.
10143
10144 2014-03-13  Doug Evans  <xdje42@gmail.com>
10145
10146         PR guile/16612
10147         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10148         new eq?-hashtab.
10149
10150 2014-03-13  Doug Evans  <xdje42@gmail.com>
10151
10152         * value.c (record_latest_value): Call release_value_or_incref
10153         instead of release_value.
10154
10155 2014-03-13  Pedro Alves  <palves@redhat.com>
10156
10157         * procfs.c (procfs_target): Don't override to_shortname,
10158         to_longname or to_doc.
10159
10160 2014-03-13  Pedro Alves  <palves@redhat.com>
10161
10162         * inf-child.c (inf_child_open, inf_child_target): Don't mention
10163         Unix in user visible strings.
10164
10165 2014-03-12  Stan Shebs  <stan@codesourcery.com>
10166
10167         * gdbtypes.h: Annotate comments for Doxygen, add a page
10168         block comment with some general info.
10169
10170 2014-03-12  Pedro Alves  <palves@redhat.com>
10171
10172         * infcmd.c (prepare_execution_command): New function, factored out
10173         from several execution commands.
10174         (run_command_1, continue_command, step_1, jump_command)
10175         (signal_command, until_command, advance_command, finish_command)
10176         (attach_command): Use prepare_execution_command.
10177
10178 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
10179
10180         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10181         (MAX_BPTS): Define.
10182         (MAX_WPTS): Define.
10183         (struct arm_linux_thread_points): Removed.
10184         (struct arm_linux_process_info): New.
10185         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10186         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10187         (arm_linux_find_breakpoints_by_tid): Removed.
10188         (struct arch_lwp_info): New.
10189         (arm_linux_find_process_pid): New functions.
10190         (arm_linux_add_process): New functions.
10191         (arm_linux_process_info_get): New functions.
10192         (arm_linux_forget_process): New function.
10193         (arm_linux_get_debug_reg_state): New function.
10194         (struct update_registers_data): New.
10195         (update_registers_callback): New function.
10196         (arm_linux_insert_hw_breakpoint1): Updated.
10197         (arm_linux_remove_hw_breakpoint1): Updated.
10198         (arm_linux_insert_hw_breakpoint): Updated.
10199         (arm_linux_remove_hw_breakpoint): Updated.
10200         (arm_linux_insert_watchpoint): Updated.
10201         (arm_linux_remove_watchpoint): Updated.
10202         (arm_linux_new_thread): Updated.
10203         (arm_linux_prepare_to_resume): New function.
10204         (arm_linux_new_fork): New function.
10205         (_initialize_arm_linux_nat): Updated.
10206
10207 2014-03-12  Pedro Alves  <palves@redhat.com>
10208
10209         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10210
10211 2014-03-12  Tom Tromey  <tromey@redhat.com>
10212
10213         * inf-child.c (return_zero): New function.
10214         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10215         * aix-thread.c (aix_thread_inferior_created): New function.
10216         (aix_thread_attach): Remove.
10217         (init_aix_thread_ops): Don't set to_attach.
10218         (_initialize_aix_thread): Register inferior_created observer.
10219         * corelow.c (init_core_ops): Don't set to_attach or
10220         to_create_inferior.
10221         * exec.c (init_exec_ops): Don't set to_attach or
10222         to_create_inferior.
10223         * infcmd.c (run_command_1): Use find_run_target.  Make direct
10224         target calls.
10225         (attach_command): Use find_attach_target.  Make direct target
10226         calls.
10227         * record-btrace.c (init_record_btrace_ops): Don't set
10228         to_create_inferior.
10229         * record-full.c (record_full_can_async_p, record_full_is_async_p):
10230         Remove.
10231         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
10232         set to_create_inferior.
10233         * target.c (complete_target_initialization): Add assertion.
10234         (target_create_inferior): Remove.
10235         (find_default_attach, find_default_create_inferior): Remove.
10236         (find_attach_target, find_run_target): New functions.
10237         (find_default_is_async_p, find_default_can_async_p)
10238         (target_supports_non_stop, target_attach): Remove.
10239         (init_dummy_target): Don't set to_create_inferior or
10240         to_supports_non_stop.
10241         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
10242         TARGET_DEFAULT_FUNC.
10243         <to_create_inferior>: Add comment.
10244         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10245         TARGET_DEFAULT_RETURN.
10246         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10247         (find_attach_target, find_run_target): Declare.
10248         (target_create_inferior): Remove.
10249         (target_has_execution_1): Update comment.
10250         (target_supports_non_stop): Remove.
10251         * target-delegates.c: Rebuild.
10252
10253 2014-03-12  Pedro Alves  <palves@redhat.com>
10254
10255         * inf-child.h: Update comment to not mention Unix.
10256
10257 2014-03-12  Pedro Alves  <palves@redhat.com>
10258
10259         * inf-child.c: Update top comment to not mention Unix.  Add
10260         generic comment describing how this target is meant to be used.
10261         (inf_child_post_attach, inf_child_post_startup_inferior)
10262         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10263         Unix in comment.
10264
10265 2014-03-12  Pedro Alves  <palves@redhat.com>
10266
10267         * nto-procfs.c: Include inf-child.h.
10268         (procfs_ops): Delete global.
10269         (procfs_can_run): Delete method.
10270         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10271         target pointer instead of referencing procfs_ops.
10272         (procfs_prepare_to_store): Delete.
10273         (init_procfs_ops): Delete function.
10274         (procfs_target): New function, based on init_procfs_ops, but
10275         inherit inf_child_target.
10276         (_initialize_procfs): Use procfs_target.
10277
10278 2014-03-12  Pedro Alves  <palves@redhat.com>
10279
10280         * windows-nat.c: Include inf-child.h.
10281         (windows_ops): Delete global.
10282         (windows_open, windows_prepare_to_store, windows_can_run): Delete
10283         methods.
10284         (init_windows_ops): Delete function.
10285         (windows_target): New function, based on init_windows_ops, but
10286         inherit inf_child_target.
10287         (_initialize_windows_nat): Use windows_target.  Install x86
10288         specific target methods here.
10289
10290 2014-03-10  Doug Evans  <xdje42@gmail.com>
10291
10292         * guile/guile.c (call_initialize_gdb_module): New function.
10293         (initialize_guile): Replace call to scm_init_guile with call to
10294         scm_with_guile.
10295
10296 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
10297
10298         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10299         in call to TYPE_CODE macro.
10300
10301 2014-03-10  Jerome Guitton  <guitton@adacore.com>
10302
10303         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10304         Resolve tagged types to full view.
10305
10306 2014-03-10  Hui Zhu  <hui@codesourcery.com>
10307
10308         * target.h (target_insert_breakpoint): Remove "hardware" from its
10309         comments.
10310
10311 2014-03-07  Doug Evans  <dje@google.com>
10312
10313         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10314
10315 2014-03-07  Doug Evans  <dje@google.com>
10316
10317         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10318         Remove unused local comp_dir_attr.  Assert exactly one of
10319         stub_comp_unit_die, stub_comp_dir is non-NULL.
10320
10321 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
10322
10323         * target.h (complete_target_initialization, add_target):
10324         Add comment.
10325
10326 2014-03-07  Pedro Alves  <palves@redhat.com>
10327
10328         * go32-nat.c: Include inf-child.h.
10329         (go32_ops): Delete global.
10330         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10331         Delete methods.
10332         (go32_create_inferior): Push the passed in target pointer instead
10333         of referencing go32_ops.
10334         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
10335         (go32_target): New function, based on init_go32_ops, but inherit
10336         inf_child_target.
10337         (_initialize_go32_nat): Use go32_target.  Move parts of
10338         init_go32_ops here.
10339
10340 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
10341
10342         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10343         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10344         SYMBOL_VALUE_ADDRESS.
10345         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10346
10347 2014-03-06  Yao Qi  <yao@codesourcery.com>
10348
10349         * breakpoint.c (get_tracepoint_by_number): Remove argument
10350         optional_p.  All callers updated.  Adjust comments.  Update
10351         output message.
10352         * breakpoint.h (get_tracepoint_by_number): Update declaration.
10353
10354 2014-03-06  Yao Qi  <yao@codesourcery.com>
10355
10356         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
10357         early if get_number returns zero.  Use 'p' instead of 'args'.
10358
10359 2014-03-06  Yao Qi  <yao@codesourcery.com>
10360
10361         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10362         message.
10363
10364 2014-03-06  Yao Qi  <yao@codesourcery.com>
10365
10366         PR breakpoints/16508
10367         * tracepoint.c (check_trace_running): New function.
10368         (trace_find_command): Move code to check_trace_running and
10369         call check_trace_running.
10370         (trace_find_pc_command): Likewise.
10371         (trace_find_tracepoint_command): Likewise.
10372         (trace_find_line_command): Likewise.
10373         (trace_find_range_command): Likewise.
10374         * tracepoint.h (check_trace_running): Likewise.
10375         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10376
10377 2014-03-06  Yao Qi  <yao@codesourcery.com>
10378
10379         * target.h (struct target_ops) <to_traceframe_info>: Use
10380         TARGET_DEFAULT_NORETURN (tcomplain ()).
10381         * target-delegates.c: Regenerated.
10382
10383 2014-03-05  Pedro Alves  <palves@redhat.com>
10384
10385         PR gdb/16575
10386         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
10387         void.  Update comment.
10388         (dcache_xfer_memory): Delete.
10389         (dcache_read_memory_partial): New, based on the read bits of
10390         dcache_xfer_memory.
10391         (dcache_update): Add status parameter.  Use ULONGEST for len, and
10392         adjust.  Discard cache lines if the reason for the update was
10393         error.
10394         * dcache.h (dcache_xfer_memory): Delete declaration.
10395         (dcache_read_memory_partial): New declaration.
10396         (dcache_update): Update prototype.
10397         * target.c (raw_memory_xfer_partial): Update the dcache here.
10398         (memory_xfer_partial_1): Don't handle dcache writes here.
10399
10400 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
10401
10402         * remote-sim.c (gdbsim_load): Add const to prog.
10403
10404 2014-03-03  Tom Tromey  <tromey@redhat.com>
10405
10406         * elfread.c (probe_key): Change to bfd_data.
10407         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10408         now per-BFD, not per-objfile.
10409         * stap-probe.c (stap_probe_destroy): Update comment.
10410         (handle_stap_probe): Allocate on the per-BFD obstack.
10411
10412 2014-03-03  Tom Tromey  <tromey@redhat.com>
10413
10414         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10415         * breakpoint.c (create_longjmp_master_breakpoint): Use
10416         get_probe_address.
10417         (add_location_to_breakpoint, bkpt_probe_insert_location)
10418         (bkpt_probe_remove_location): Update.
10419         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10420         * elfread.c (elf_symfile_relocate_probe): Remove.
10421         (elf_probe_fns): Update.
10422         (insert_exception_resume_breakpoint): Change type of "probe"
10423         parameter to bound_probe.
10424         (check_exception_resume): Update.
10425         * objfiles.c (objfile_relocate1): Don't relocate probes.
10426         * probe.c (bound_probe_s): New typedef.
10427         (parse_probes): Use get_probe_address.  Set sal's objfile.
10428         (find_probe_by_pc): Return a bound_probe.
10429         (collect_probes): Return a VEC(bound_probe_s).
10430         (compare_probes): Update.
10431         (gen_ui_out_table_header_info): Change type of "probes"
10432         parameter.  Update.
10433         (info_probes_for_ops): Update.
10434         (get_probe_address): New function.
10435         (probe_safe_evaluate_at_pc): Update.
10436         * probe.h (struct probe_ops) <get_probe_address>: New field.
10437         <set_semaphore, clear_semaphore>: Add objfile parameter.
10438         (struct probe) <objfile>: Remove field.
10439         <arch>: New field.
10440         <address>: Update comment.
10441         (struct bound_probe): New.
10442         (find_probe_by_pc): Return a bound_probe.
10443         (get_probe_address): Declare.
10444         * solib-svr4.c (struct probe_and_action) <address>: New field.
10445         (hash_probe_and_action, equal_probe_and_action): Update.
10446         (register_solib_event_probe): Add address parameter.
10447         (solib_event_probe_at): Update.
10448         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
10449         get_probe_address.
10450         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10451         (stap_get_probe_address): New function.
10452         (stap_can_evaluate_probe_arguments, compute_probe_arg)
10453         (compile_probe_arg): Update.
10454         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10455         address.
10456         (handle_stap_probe): Don't relocate the probe.
10457         (stap_relocate): Remove.
10458         (stap_gen_info_probes_table_values): Update.
10459         (stap_probe_ops): Remove stap_relocate.
10460         * symfile-debug.c (debug_sym_relocate_probe): Remove.
10461         (debug_sym_probe_fns): Update.
10462         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10463         * symtab.c (init_sal): Use memset.
10464         * symtab.h (struct symtab_and_line) <objfile>: New field.
10465         * tracepoint.c (start_tracing, stop_tracing): Update.
10466
10467 2014-03-03  Tom Tromey  <tromey@redhat.com>
10468
10469         * probe.h (parse_probes, find_probe_by_pc)
10470         (find_probes_in_objfile): Fix comments.
10471
10472 2014-03-02  Doug Evans  <xdje42@gmail.com>
10473
10474         * infrun.c (handle_signal_stop): Replace test for
10475         TARGET_WAITKIND_STOPPED with an assert.
10476
10477 2014-03-02  Doug Evans  <xdje42@gmail.com>
10478
10479         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10480
10481 2014-03-02  Doug Evans  <xdje42@gmail.com>
10482
10483         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10484
10485 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10486
10487         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10488
10489 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10490
10491         * i386obsd-nat.c: Include "obsd-nat.h".
10492         (_initialize_i386obsd_nat): Call obsd_add_target instead of
10493         add_target.
10494         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10495
10496 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10497
10498         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10499
10500 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10501
10502         * mips64obsd-nat.c: Include "obsd-nath".
10503         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10504         add_target
10505         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10506
10507 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10508
10509         * amd64obsd-nat.c: Include "obsd-nat,h.
10510         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10511         add_target.
10512         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10513
10514 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
10515
10516         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10517         (find_overload_match): Update call to find_oload_champ.
10518         (find_oload_champ_namespace_loop): Likewise
10519
10520 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
10521
10522         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10523
10524         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10525         * config/sparc/obsd64.mh: New file.
10526         * sparc64obsd-nat.c: New file.
10527
10528         * obsd-nat.h: New file.
10529         * obsd-nat.c: New file.
10530         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10531         (ALLDEPFILES): Add obsd-nat.c.
10532
10533 2014-02-28  Tom Tromey  <tromey@redhat.com>
10534
10535         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
10536         * cli-out.h (cli_ui_out_impl): Now const.
10537         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
10538         * ui-out.c (struct ui_out) <impl>: Now const.
10539         (default_ui_out_impl): Now const.
10540         (ui_out_new): Make 'impl' parameter const.
10541         * ui-out.h (ui_out_new): Update.
10542
10543 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
10544
10545         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10546
10547 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
10548
10549         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10550
10551 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
10552
10553         Additional PR 8882 fix.
10554         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10555
10556 2014-02-27  Pedro Alves  <palves@redhat.com>
10557
10558         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10559         isn't set.
10560
10561 2014-02-27  Pedro Alves  <palves@redhat.com>
10562
10563         PR 12702
10564         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10565         * nat/linux-waitpid.c: Include string.h.
10566         (status_to_str): Moved here and made extern.
10567         * nat/linux-waitpid.h (status_to_str): New declaration.
10568
10569 2014-02-27  Hui Zhu  <hui@codesourcery.com>
10570
10571         PR 12702
10572         * infrun.c (ptid_match): Move ...
10573         * common/ptid.c (ptid_match): ... here.
10574         * inferior.h (ptid_match): Move ...
10575         * common/ptid.h (ptid_match): ... here.
10576
10577 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
10578
10579         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10580         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10581         gdb_target_obs.
10582
10583 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
10584
10585         * obsd-tdep.c (obsd_auxv_parse): New function.
10586         (obsd_init_abi): Set auxv_parse.
10587
10588         * gdbarch.sh (auxv_parse): New.
10589         * gdbarch.h: Regenerated.
10590         * gdbarch.c: Regenerated.
10591         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10592
10593 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
10594
10595         * guile/scm-value.c (gdbscm_history_append_x): New function.
10596         (value_functions): Add it.
10597
10598 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
10599
10600         * dwarf2read.c (attr_value_as_address): New function.
10601         (dwarf2_find_base_address, read_call_site_scope): Use
10602         attr_value_as_address in place of DW_ADDR.
10603         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10604         the low and high addresses.  Slight rework of the handling
10605         of the high pc being a constant form, and limit it to
10606         DWARF verson 4 or higher.
10607         (dwarf2_record_block_ranges): Likewise.
10608         (read_partial_die): Likewise.
10609         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10610
10611 2014-02-26  Tom Tromey  <tromey@redhat.com>
10612
10613         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10614
10615 2014-02-26  Tom Tromey  <tromey@redhat.com>
10616
10617         * elfread.c (elf_read_minimal_symbols): Return early if
10618         minimal symbols have already been read.  Add "ei" parameter.
10619         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10620         * minsyms.c (prim_record_minimal_symbol_full): Update.
10621         * objfiles.h (struct objstats) <n_minsyms>: Move...
10622         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10623         * symmisc.c (print_objfile_statistics): Update.
10624
10625 2014-02-26  Tom Tromey  <tromey@redhat.com>
10626
10627         * elfread.c (elf_read_minimal_symbols): New function, from
10628         elf_symfile_read.
10629         (elf_symfile_read): Call it.
10630
10631 2014-02-26  Tom Tromey  <tromey@redhat.com>
10632
10633         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10634         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10635         (lookup_minimal_symbol_solib_trampoline)
10636         (lookup_minimal_symbol_by_pc_section_1)
10637         (lookup_minimal_symbol_and_objfile): Update.
10638         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10639         Don't allocate a minimal symbol if minsyms have already been read.
10640         (build_minimal_symbol_hash_tables): Update.
10641         (install_minimal_symbols): Do nothing if minsyms already read.
10642         Use the per-BFD obstack.
10643         (terminate_minimal_symbol_table): Use the per-BFD obstack.
10644         * objfiles.c (allocate_objfile): Call
10645         terminate_minimal_symbol_table later.
10646         (have_minimal_symbols): Update.
10647         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10648         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10649         Move from struct objfile.
10650         <minsyms_read>: New field.
10651         (struct objfile) <msymbols, minimal_symbol_count,
10652         msymbol_hash, msymbol_demangled_hash>: Move.
10653         (ALL_OBJFILE_MSYMBOLS): Update.
10654         * symfile.c (read_symbols): Set minsyms_read.
10655         (reread_symbols): Update.
10656         * symmisc.c (dump_objfile, dump_msymbols): Update.
10657
10658 2014-02-26  Tom Tromey  <tromey@redhat.com>
10659
10660         * minsyms.c (msymbols_sort): Remove.
10661         * minsyms.h (msymbols_sort): Remove.
10662         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10663         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10664         * elfread.c (elf_symtab_read): Don't add section offsets.
10665         * xcoffread.c (record_minimal_symbol): Don't add section offset
10666         to minimal symbol address.
10667         * somread.c (text_offset, data_offset): Remove.
10668         (som_symtab_read): Don't add section offsets to minimal symbol
10669         addresses.
10670         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10671         Don't add section offsets to minimal symbols.
10672         * coffread.c (coff_symtab_read): Don't add section offsets
10673         to minimal symbol addresses.
10674         * machoread.c (macho_symtab_add_minsym): Don't add section offset
10675         to minimal symbol addresses.
10676         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10677         section offset to minimal symbol addresses.
10678         * mdebugread.c (parse_partial_symbols): Don't add section
10679         offset to minimal symbol addresses.
10680         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10681         offset to minimal symbol addresses.
10682
10683 2014-02-26  Tom Tromey  <tromey@redhat.com>
10684
10685         * ada-lang.c (ada_main_name): Update.
10686         (ada_add_standard_exceptions): Update.
10687         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10688         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10689         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10690         * auxv.c (ld_so_xfer_auxv): Update.
10691         * avr-tdep.c (avr_scan_prologue): Update.
10692         * ax-gdb.c (gen_var_ref): Update.
10693         * blockframe.c (get_pc_function_start)
10694         (find_pc_partial_function_gnu_ifunc): Update.
10695         * breakpoint.c (create_overlay_event_breakpoint)
10696         (create_longjmp_master_breakpoint)
10697         (create_std_terminate_master_breakpoint)
10698         (create_exception_master_breakpoint): Update.
10699         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10700         * c-valprint.c (c_val_print): Update.
10701         * coff-pe-read.c (add_pe_forwarded_sym): Update.
10702         * common/agent.c (agent_look_up_symbols): Update.
10703         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10704         * dwarf2loc.c (call_site_to_target_addr): Update.
10705         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10706         * elfread.c (elf_gnu_ifunc_record_cache)
10707         (elf_gnu_ifunc_resolve_by_got): Update.
10708         * findvar.c (default_read_var_value): Update.
10709         * frame.c (inside_main_func): Update.
10710         * frv-tdep.c (frv_frame_this_id): Update.
10711         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10712         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10713         Update.
10714         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10715         (hppa_hpux_find_dummy_bpaddr): Update.
10716         * hppa-tdep.c (hppa_symbol_address): Update.
10717         * infcmd.c (until_next_command): Update.
10718         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10719         Update.
10720         * linespec.c (minsym_found, add_minsym): Update.
10721         * linux-nat.c (get_signo): Update.
10722         * linux-thread-db.c (inferior_has_bug): Update.
10723         * m32c-tdep.c (m32c_return_value)
10724         (m32c_m16c_address_to_pointer): Update.
10725         * m32r-tdep.c (m32r_frame_this_id): Update.
10726         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10727         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10728         * maint.c (maintenance_translate_address): Update.
10729         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10730         (frob_address): New function.
10731         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10732         frob_address.  Rename parameter to "pc_in".
10733         (compare_minimal_symbols, compact_minimal_symbols): Use raw
10734         addresses.
10735         (find_solib_trampoline_target, minimal_symbol_upper_bound):
10736         Update.
10737         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10738         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10739         * objc-lang.c (find_objc_msgsend): Update.
10740         * objfiles.c (objfile_relocate1): Update.
10741         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10742         * p-valprint.c (pascal_val_print): Update.
10743         * parse.c (write_exp_msymbol): Update.
10744         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10745         (ppc_elfv2_skip_entrypoint): Update.
10746         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10747         * printcmd.c (build_address_symbolic, msym_info)
10748         (address_info): Update.
10749         * proc-service.c (ps_pglobal_lookup): Update.
10750         * psymtab.c (find_pc_sect_psymtab_closer)
10751         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10752         Change msymbol parameter to bound_minimal_symbol.
10753         * ravenscar-thread.c (get_running_thread_id): Update.
10754         * remote.c (remote_check_symbols): Update.
10755         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10756         address.
10757         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10758         * solib-dsbt.c (lm_base): Update.
10759         * solib-frv.c (lm_base, main_got): Update.
10760         * solib-irix.c (locate_base): Update.
10761         * solib-som.c (som_solib_create_inferior_hook)
10762         (link_map_start): Update.
10763         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10764         * solib-svr4.c (elf_locate_base, enable_break): Update.
10765         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10766         (flush_ea_cache): Update.
10767         * stabsread.c (define_symbol, scan_file_globals): Update.
10768         * stack.c (find_frame_funname): Update.
10769         * symfile-debug.c (debug_qf_expand_symtabs_matching)
10770         (debug_qf_find_pc_sect_symtab): Update.
10771         * symfile.c (simple_read_overlay_table)
10772         (simple_overlay_update): Update.
10773         * symfile.h (struct quick_symbol_functions)
10774         <find_pc_sect_symtab>: Change type of msymbol to
10775         bound_minimal_symbol.
10776         * symmisc.c (dump_msymbols): Update.
10777         * symtab.c (find_pc_sect_symtab_via_partial)
10778         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10779         (search_symbols, print_msymbol_info): Update.
10780         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10781         (MSYMBOL_VALUE_ADDRESS): Redefine.
10782         (BMSYMBOL_VALUE_ADDRESS): New macro.
10783         * tracepoint.c (scope_info): Update.
10784         * tui/tui-disasm.c (tui_find_disassembly_address)
10785         (tui_get_begin_asm_address): Update.
10786         * valops.c (find_function_in_inferior): Update.
10787         * value.c (value_static_field, value_fn_field): Update.
10788
10789 2014-02-26  Tom Tromey  <tromey@redhat.com>
10790
10791         * ada-lang.c (ada_update_initial_language): Update.
10792         (ada_main_name, ada_has_this_exception_support): Update.
10793         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10794         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10795         * arm-tdep.c (arm_skip_stub): Update.
10796         * auxv.c (ld_so_xfer_auxv): Update.
10797         * avr-tdep.c (avr_scan_prologue): Update.
10798         * ax-gdb.c (gen_var_ref): Update.
10799         * breakpoint.c (struct breakpoint_objfile_data)
10800         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10801         type to bound_minimal_symbol.
10802         (create_overlay_event_breakpoint)
10803         (create_longjmp_master_breakpoint)
10804         (create_std_terminate_master_breakpoint)
10805         (create_exception_master_breakpoint): Update.
10806         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10807         * c-exp.y (classify_name): Update.
10808         * coffread.c (coff_symfile_read): Update.
10809         * common/agent.c (agent_look_up_symbols): Update.
10810         * d-lang.c (d_main_name): Update.
10811         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10812         * dec-thread.c (enable_dec_thread): Update.
10813         * dwarf2loc.c (call_site_to_target_addr): Update.
10814         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10815         * eval.c (evaluate_subexp_standard): Update.
10816         * findvar.c (struct minsym_lookup_data) <result>: Change type
10817         to bound_minimal_symbol.
10818         <objfile>: Remove.
10819         (minsym_lookup_iterator_cb, default_read_var_value): Update.
10820         * frame.c (inside_main_func): Update.
10821         * frv-tdep.c (frv_frame_this_id): Update.
10822         * gcore.c (call_target_sbrk): Update.
10823         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10824         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10825         Update.
10826         * go-lang.c (go_main_name): Update.
10827         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10828         (hppa_hpux_find_import_stub_for_addr): Update.
10829         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10830         Update.  Change return type.
10831         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10832         type.
10833         * jit.c (jit_breakpoint_re_set_internal): Update.
10834         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10835         Update.
10836         * linux-nat.c (get_signo): Update.
10837         * linux-thread-db.c (inferior_has_bug): Update
10838         * m32c-tdep.c (m32c_return_value)
10839         (m32c_m16c_address_to_pointer): Update.
10840         * m32r-tdep.c (m32r_frame_this_id): Update.
10841         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10842         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10843         * minsyms.c (lookup_minimal_symbol_internal): Rename to
10844         lookup_minimal_symbol.  Change return type.
10845         (lookup_minimal_symbol): Remove.
10846         (lookup_bound_minimal_symbol): Update.
10847         (lookup_minimal_symbol_text): Change return type.
10848         (lookup_minimal_symbol_solib_trampoline): Change return type.
10849         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10850         (lookup_minimal_symbol_solib_trampoline): Change return type.
10851         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10852         * objc-lang.c (lookup_objc_class, lookup_child_selector)
10853         (value_nsstring, find_imps): Update.
10854         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10855         * p-lang.c (pascal_main_name): Update.
10856         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10857         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10858         * proc-service.c (ps_pglobal_lookup): Update.
10859         * ravenscar-thread.c (get_running_thread_msymbol): Change
10860         return type.
10861         (has_ravenscar_runtime, get_running_thread_id): Update.
10862         * remote.c (remote_check_symbols): Update.
10863         * sol-thread.c (ps_pglobal_lookup): Update.
10864         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10865         * solib-dsbt.c (lm_base): Update.
10866         * solib-frv.c (lm_base, frv_relocate_section_addresses):
10867         Update.
10868         * solib-irix.c (locate_base): Update.
10869         * solib-som.c (som_solib_create_inferior_hook)
10870         (som_solib_desire_dynamic_linker_symbols, link_map_start):
10871         Update.
10872         * solib-spu.c (spu_enable_break): Update.
10873         * solib-svr4.c (elf_locate_base, enable_break): Update.
10874         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10875         (flush_ea_cache): Update.
10876         * stabsread.c (define_symbol): Update.
10877         * symfile.c (simple_read_overlay_table): Update.
10878         * symtab.c (find_pc_sect_line): Update.
10879         * tracepoint.c (scope_info): Update.
10880         * tui-disasm.c (tui_get_begin_asm_address): Update.
10881         * value.c (value_static_field): Update.
10882
10883 2014-02-26  Tom Tromey  <tromey@redhat.com>
10884
10885         * minsyms.c (prim_record_minimal_symbol_full): Use
10886         SET_MSYMBOL_VALUE_ADDRESS.
10887         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10888         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10889         SET_MSYMBOL_VALUE_ADDRESS.
10890         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10891         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10892
10893 2014-02-26  Tom Tromey  <tromey@redhat.com>
10894
10895         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10896         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10897         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10898         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10899         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10900         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10901         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10902         * ada-lang.c (ada_main_name): Update.
10903         (ada_lookup_simple_minsym): Update.
10904         (ada_make_symbol_completion_list): Update.
10905         (ada_add_standard_exceptions): Update.
10906         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10907         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10908         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10909         * arm-tdep.c (skip_prologue_function): Update.
10910         (arm_skip_stack_protector, arm_skip_stub): Update.
10911         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10912         (arm_wince_skip_main_prologue): Update.
10913         * auxv.c (ld_so_xfer_auxv): Update.
10914         * avr-tdep.c (avr_scan_prologue): Update.
10915         * ax-gdb.c (gen_var_ref): Update.
10916         * block.c (call_site_for_pc): Update.
10917         * blockframe.c (get_pc_function_start): Update.
10918         (find_pc_partial_function_gnu_ifunc): Update.
10919         * breakpoint.c (create_overlay_event_breakpoint): Update.
10920         (create_longjmp_master_breakpoint): Update.
10921         (create_std_terminate_master_breakpoint): Update.
10922         (create_exception_master_breakpoint): Update.
10923         (resolve_sal_pc): Update.
10924         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10925         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10926         Update.
10927         * c-valprint.c (c_val_print): Update.
10928         * coff-pe-read.c (add_pe_forwarded_sym): Update.
10929         * coffread.c (coff_symfile_read): Update.
10930         * common/agent.c (agent_look_up_symbols): Update.
10931         * dbxread.c (find_stab_function_addr): Update.
10932         (end_psymtab): Update.
10933         * dwarf2loc.c (call_site_to_target_addr): Update.
10934         (func_verify_no_selftailcall): Update.
10935         (tailcall_dump): Update.
10936         (call_site_find_chain_1): Update.
10937         (dwarf_expr_reg_to_entry_parameter): Update.
10938         * elfread.c (elf_gnu_ifunc_record_cache): Update.
10939         (elf_gnu_ifunc_resolve_by_got): Update.
10940         * f-valprint.c (info_common_command): Update.
10941         * findvar.c (read_var_value): Update.
10942         * frame.c (get_prev_frame_1): Update.
10943         (inside_main_func): Update.
10944         * frv-tdep.c (frv_skip_main_prologue): Update.
10945         (frv_frame_this_id): Update.
10946         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10947         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10948         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10949         (gnuv3_skip_trampoline): Update.
10950         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10951         (hppa64_hpux_in_solib_call_trampoline): Update.
10952         (hppa_hpux_skip_trampoline_code): Update.
10953         (hppa64_hpux_search_dummy_call_sequence): Update.
10954         (hppa_hpux_find_import_stub_for_addr): Update.
10955         (hppa_hpux_find_dummy_bpaddr): Update.
10956         * hppa-tdep.c (hppa_symbol_address)
10957         (hppa_lookup_stub_minimal_symbol): Update.
10958         * i386-tdep.c (i386_skip_main_prologue): Update.
10959         (i386_pe_skip_trampoline_code): Update.
10960         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10961         * infcall.c (get_function_name): Update.
10962         * infcmd.c (until_next_command): Update.
10963         * jit.c (jit_breakpoint_re_set_internal): Update.
10964         (jit_inferior_init): Update.
10965         * linespec.c (minsym_found): Update.
10966         (add_minsym): Update.
10967         * linux-fork.c (info_checkpoints_command): Update.
10968         * linux-nat.c (get_signo): Update.
10969         * linux-thread-db.c (inferior_has_bug): Update.
10970         * m32c-tdep.c (m32c_return_value): Update.
10971         (m32c_m16c_address_to_pointer): Update.
10972         (m32c_m16c_pointer_to_address): Update.
10973         * m32r-tdep.c (m32r_frame_this_id): Update.
10974         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10975         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10976         * maint.c (maintenance_translate_address): Update.
10977         * minsyms.c (add_minsym_to_hash_table): Update.
10978         (add_minsym_to_demangled_hash_table): Update.
10979         (msymbol_objfile): Update.
10980         (lookup_minimal_symbol): Update.
10981         (iterate_over_minimal_symbols): Update.
10982         (lookup_minimal_symbol_text): Update.
10983         (lookup_minimal_symbol_by_pc_name): Update.
10984         (lookup_minimal_symbol_solib_trampoline): Update.
10985         (lookup_minimal_symbol_by_pc_section_1): Update.
10986         (lookup_minimal_symbol_and_objfile): Update.
10987         (prim_record_minimal_symbol_full): Update.
10988         (compare_minimal_symbols): Update.
10989         (compact_minimal_symbols): Update.
10990         (build_minimal_symbol_hash_tables): Update.
10991         (install_minimal_symbols): Update.
10992         (terminate_minimal_symbol_table): Update.
10993         (find_solib_trampoline_target): Update.
10994         (minimal_symbol_upper_bound): Update.
10995         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10996         * mips-tdep.c (mips_stub_frame_sniffer): Update.
10997         (mips_skip_pic_trampoline_code): Update.
10998         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10999         * objc-lang.c (selectors_info): Update.
11000         (classes_info): Update.
11001         (find_methods): Update.
11002         (find_imps): Update.
11003         (find_objc_msgsend): Update.
11004         * objfiles.c (objfile_relocate1): Update.
11005         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
11006         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11007         * p-valprint.c (pascal_val_print): Update.
11008         * parse.c (write_exp_msymbol): Update.
11009         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
11010         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
11011         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11012         * printcmd.c (build_address_symbolic): Update.
11013         (sym_info): Update.
11014         (address_info): Update.
11015         * proc-service.c (ps_pglobal_lookup): Update.
11016         * psymtab.c (find_pc_sect_psymtab_closer): Update.
11017         (find_pc_sect_psymtab): Update.
11018         * python/py-framefilter.c (py_print_frame): Update.
11019         * ravenscar-thread.c (get_running_thread_id): Update.
11020         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
11021         Update.
11022         * remote.c (remote_check_symbols): Update.
11023         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
11024         (rs6000_skip_trampoline_code): Update.
11025         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
11026         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11027         * solib-dsbt.c (lm_base): Update.
11028         * solib-frv.c (lm_base): Update.
11029         (main_got): Update.
11030         * solib-irix.c (locate_base): Update.
11031         * solib-som.c (som_solib_create_inferior_hook): Update.
11032         (som_solib_desire_dynamic_linker_symbols): Update.
11033         (link_map_start): Update.
11034         * solib-spu.c (spu_enable_break): Update.
11035         (ocl_enable_break): Update.
11036         * solib-svr4.c (elf_locate_base): Update.
11037         (enable_break): Update.
11038         * spu-tdep.c (spu_get_overlay_table): Update.
11039         (spu_catch_start): Update.
11040         (flush_ea_cache): Update.
11041         * stabsread.c (define_symbol): Update.
11042         (scan_file_globals): Update.
11043         * stack.c (find_frame_funname): Update.
11044         (frame_info): Update.
11045         * symfile.c (simple_read_overlay_table): Update.
11046         (simple_overlay_update): Update.
11047         * symmisc.c (dump_msymbols): Update.
11048         * symtab.c (fixup_section): Update.
11049         (find_pc_sect_line): Update.
11050         (skip_prologue_sal): Update.
11051         (search_symbols): Update.
11052         (print_msymbol_info): Update.
11053         (rbreak_command): Update.
11054         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
11055         (completion_list_objc_symbol): Update.
11056         (default_make_symbol_completion_list_break_on): Update.
11057         * tracepoint.c (scope_info): Update.
11058         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
11059         (tui_get_begin_asm_address): Update.
11060         * valops.c (find_function_in_inferior): Update.
11061         * value.c (value_static_field): Update.
11062         (value_fn_field): Update.
11063
11064 2014-02-26  Tom Tromey  <tromey@redhat.com>
11065
11066         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
11067         bound minimal symbols.  Move code that knows about minsym
11068         table layout...
11069         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
11070         function.
11071         * minsyms.h (minimal_symbol_upper_bound): Declare.
11072         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
11073         minimal_symbol_upper_bound.
11074
11075 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
11076
11077         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11078         Use the type's name if its basic type does not have a tag.
11079
11080 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
11081
11082         * dwarf2read.c (read_subrange_type): Add comment.
11083
11084 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
11085
11086         * dwarf2read.c (update_enumeration_type_from_children): New
11087         function, mostly extracted from process_structure_scope.
11088         (read_enumeration_type): Call update_enumeration_type_from_children.
11089         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11090         and flag_flag_enum fields.
11091
11092 2014-02-26  Pedro Alves  <palves@redhat.com>
11093
11094         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11095         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11096         to_xfer_partial method.
11097
11098 2014-02-26  Pedro Alves  <palves@redhat.com>
11099
11100         * target.c (complete_target_initialization): Don't install
11101         default_xfer_partial as to_xfer_partial hook.
11102         (nomemory): Delete.
11103         (update_current_target): Don't INHERIT nor de_fault
11104         deprecated_xfer_memory.  Delete de_fault macro.
11105         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11106         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11107         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11108         field.
11109
11110 2014-02-26  Pedro Alves  <palves@redhat.com>
11111
11112         * go32-nat.c (my_write_child): New function.
11113         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11114         (go32_xfer_partial): New function.
11115         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11116         Instead install a to_xfer_partial hook.
11117
11118 2014-02-26  Pedro Alves  <palves@redhat.com>
11119
11120         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11121         to_xfer_partial helper.  Rewrite.
11122         (procfs_xfer_partial): New function.
11123         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11124         Install a to_xfer_partial hook.
11125
11126 2014-02-26  Pedro Alves  <palves@redhat.com>
11127
11128         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11129         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11130         (m32r_xfer_partial): New function.
11131         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11132         Install a to_xfer_partial hook.
11133
11134 2014-02-26  Pedro Alves  <palves@redhat.com>
11135
11136         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11137         helper.
11138         (mips_xfer_partial): New function.
11139         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11140         hook.  Install a to_xfer_partial hook.
11141
11142 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
11143
11144         * gdbtypes.h (create_array_type_with_stride): Add declaration.
11145         * gdbtypes.c (create_array_type_with_stride): New function,
11146         renaming create_array_type, but with an added parameter
11147         called "bit_stride".
11148         (create_array_type): Re-implement using
11149         create_array_type_with_stride.
11150         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11151         and DW_AT_bit_stride attributes.
11152
11153 2014-02-26  Pedro Alves  <palves@redhat.com>
11154
11155         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11156         task-specific breakpoints.
11157
11158 2014-02-25  Pedro Alves  <palves@redhat.com>
11159
11160         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11161         handling of object == TARGET_OBJECT_UNWIND_TABLE.
11162
11163 2014-02-25  Stan Shebs  <stan@codesourcery.com>
11164
11165         * defs.h: Annotate comments for Doxygen.
11166
11167 2014-02-25  Tom Tromey  <tromey@redhat.com>
11168
11169         * target.h (target_ignore): Don't declare.
11170         * target.c (target_ignore): Remove.
11171
11172 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
11173
11174         PR gdb/16626
11175         * auto-load.c (auto_load_objfile_script_1): Change filename to
11176         debugfile.
11177
11178 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
11179
11180         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11181         documentation.  Adjust prototype to match the target_ops
11182         to_xfer_partial method.  Adjust implementation accordingly.
11183
11184 2014-02-25  Hui Zhu  <hui@codesourcery.com>
11185
11186         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11187         to_traceframe_info.
11188
11189 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
11190
11191         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
11192         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11193         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11194         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11195         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11196         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11197         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11198         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11199         New constants.
11200         (rl78_register_type): Use a data pointer type for SP and
11201         new pseudo registers mentioned above.  Use a 16 bit integer
11202         type for all other register pairs.
11203         (rl78_register_name, rl78_g10_register_name): Update for
11204         new pseudo registers.
11205         (rl78_pseudo_register_read): Likewise.
11206         (rl78_pseudo_register_write): Likewise.
11207         (rl78_dwarf_reg_to_regnum): Return register numbers representing
11208         to the newly added pseudo registers.
11209
11210 2014-02-24  Doug Evans  <dje@google.com>
11211
11212         * value.c (record_latest_value): Fix comment.
11213         * printcmd.c (print_command_1): Remove code to handle -1 return from
11214         record_latest_value.
11215
11216 2014-02-24  Pedro Alves  <palves@redhat.com>
11217
11218         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11219         deprecated_xfer_memory hook.
11220         (procfs_xfer_partial): Call procfs_xfer_memory instead
11221         of the deprecated_xfer_memory target hook.
11222         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11223         helper.
11224
11225 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
11226
11227         * windows-nat.c (windows_xfer_shared_libraries): Return
11228         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11229         requested object is TARGET_OBJECT_LIBRARIES.
11230
11231 2014-02-24  Yao Qi  <yao@codesourcery.com>
11232
11233         * target.h (enum target_xfer_status)
11234         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11235         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11236         explicitly.  New.
11237         * corefile.c (memory_error_message): User updated.
11238         * exec.c (section_table_read_available_memory): Likewise.
11239         * record-btrace.c (record_btrace_xfer_partial): Likewise.
11240         * target.c (target_xfer_status_to_string): Likewise.
11241         (raw_memory_xfer_partial): Likewise.
11242         (memory_xfer_partial_1, target_xfer_partial): Likewise.
11243         * valops.c (read_value_memory): Likewise.
11244         * exec.h: Update comments.
11245
11246 2014-02-24  Yao Qi  <yao@codesourcery.com>
11247
11248         * target.c (target_xfer_status_to_string): Rename argument err
11249         to status.
11250         * target.h (target_xfer_status_to_string): Update declaration.
11251         Replace target_xfer_error_to_string with
11252         target_xfer_status_to_string in comment.
11253
11254 2014-02-24  Yao Qi  <yao@codesourcery.com>
11255
11256         * mips-linux-nat.c (super_close): Update its type.
11257         (mips_linux_close): Pass 'self' to super_close.
11258
11259 2014-02-24  Yao Qi  <yao@codesourcery.com>
11260
11261         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11262         * corefile.c (read_memory): Adjusted.
11263         * target.c (target_write_with_progress): Adjusted.
11264
11265 2014-02-23  Yao Qi  <yao@codesourcery.com>
11266
11267         Revert two patches:
11268
11269         2013-10-25  Yao Qi  <yao@codesourcery.com>
11270
11271         * remote.c (remote_traceframe_info): Return early if
11272         traceframe is not selected.
11273
11274         2013-07-19  Yao Qi  <yao@codesourcery.com>
11275
11276         * target.c (update_current_target): Change the default action
11277         of 'to_traceframe_info' from tcomplain to return_zero.
11278         * target.h (struct target_ops) <to_traceframe_info>: Add more
11279         comments.
11280
11281 2014-02-23  Yao Qi  <yao@codesourcery.com>
11282
11283         * valops.c (read_value_memory): Rewrite it.  Call
11284         target_xfer_partial in a loop.
11285         * exec.h (section_table_available_memory): Remove declaration.
11286         Move comments to ...
11287         * exec.c (section_table_available_memory): ... here.  Make it
11288         static.
11289
11290 2014-02-23  Yao Qi  <yao@codesourcery.com>
11291
11292         * exec.c (section_table_read_available_memory): New function.
11293         * exec.h (section_table_read_available_memory): Declare.
11294         * ctf.c (ctf_xfer_partial): Call
11295         section_table_read_available_memory.
11296         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11297
11298 2014-02-23  Yao Qi  <yao@codesourcery.com>
11299
11300         * ctf.c (ctf_xfer_partial): Move code to ...
11301         * exec.c (exec_read_partial_read_only): ... it.  New function.
11302         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11303         * tracefile.c: Include "exec.h".
11304         * exec.h (exec_read_partial_read_only): Declare.
11305
11306 2014-02-23  Yao Qi  <yao@codesourcery.com>
11307
11308         * tracefile-tfile.c (tfile_has_all_memory): Remove.
11309         (tfile_has_memory): Remove.
11310         (init_tfile_ops): Don't set fields to_has_all_memory and
11311         to_has_memory of tfile_ops.
11312         * tracefile.c (tracefile_has_all_memory): New function.
11313         (tracefile_has_memory): New function.
11314         (init_tracefile_ops): Initialize fields to_has_all_memory and
11315         to_has_memory of 'ops'.
11316
11317 2014-02-23  Yao Qi  <yao@codesourcery.com>
11318
11319         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11320         (ctf_thread_alive, ctf_get_trace_status): Remove.
11321         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
11322         init_tracefile_ops.
11323         * tracefile-tfile.c (tfile_get_trace_status): Remove.
11324         (tfile_has_stack, tfile_has_registers): Remove.
11325         (tfile_thread_alive): Remove.
11326         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
11327         init_tracefile_ops.
11328         * tracefile.c (tracefile_has_stack): New function.
11329         (tracefile_has_registers): New function.
11330         (tracefile_thread_alive): New function.
11331         (tracefile_get_trace_status): New function.
11332         (init_tracefile_ops): New function.
11333         * tracefile.h (init_tracefile_ops): Declare.
11334
11335 2014-02-23  Yao Qi  <yao@codesourcery.com>
11336
11337         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11338         (O_LARGEFILE): Likewise.
11339         (tfile_ops): Likewise.
11340         (TRACE_HEADER_SIZE): Likewise.
11341         (trace_fd, trace_frames_offset, cur_offset): Likewise.
11342         (cur_data_size): Likewise.
11343         (tfile_read, tfile_open, tfile_interp_line): Likewise.
11344         (tfile_close, tfile_files_info): Likewise.
11345         (tfile_get_trace_status): Likewise.
11346         (tfile_get_tracepoint_status): Likewise.
11347         (tfile_get_traceframe_address): Likewise.
11348         (tfile_trace_find, match_blocktype): Likewise.
11349         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11350         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11351         (tfile_get_trace_state_variable_value): Likewise.
11352         (tfile_has_all_memory, tfile_has_memory): Likewise.
11353         (tfile_has_stack, tfile_has_registers): Likewise.
11354         (tfile_thread_alive, build_traceframe_info): Likewise.
11355         (tfile_traceframe_info, init_tfile_ops): Likewise.
11356         (_initialize_tracepoint): Don't call init_tfile_ops
11357         and add_target_with_completer.
11358         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11359         exec.h, completer.h and filenames.h.
11360         (_initialize_tracefile_tfile): New function.
11361
11362 2014-02-23  Yao Qi  <yao@codesourcery.com>
11363
11364         * Makefile.in (REMOTE_OBS): Append tracefile.o and
11365         tracefile-tfile.o.
11366         (HFILES_NO_SRCDIR): Add tracefile.h.
11367         * ctf.c: Include "tracefile.h".
11368         * tracefile.h: New file.
11369         * tracefile.c: New file
11370         * tracefile-tfile.c: New file.
11371         * tracepoint.c: Include "tracefile.h".
11372         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11373         (stop_reason_names): Add const.
11374         (trace_file_writer_xfree): Move it to tracefile.c.
11375         (trace_save, trace_save_command, trace_save_tfile): Likewise.
11376         (trace_save_ctf): Likewise.
11377         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11378         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11379         (tfile_write_header, tfile_write_regblock_type): Likewise.
11380         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11381         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11382         (tfile_write_raw_data, tfile_end): Likewise.
11383         (tfile_trace_file_writer_new): Likewise.
11384         (free_uploaded_tp): Make it extern.
11385         (free_uploaded_tsv): Make it extern.
11386         (_initialize_tracepoint): Move code to register command 'tsave'
11387         to tracefile.c.
11388         * tracepoint.h (stop_reason_names): Declare.
11389         (struct trace_frame_write_ops): Move it to tracefile.h.
11390         (struct trace_file_write_ops): Likewise.
11391         (struct trace_file_writer): Likewise.
11392         (free_uploaded_tsvs, free_uploaded_tps): Declare.
11393
11394 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
11395
11396         PR gdb/16594
11397         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11398         process name.
11399         (get_cores_used_by_process): New parameter num_cores, use it.
11400         (linux_xfer_osdata_processes): Pass num_cores to it.
11401         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11402         process name.
11403
11404 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
11405
11406         * target.c (memory_xfer_partial): Fix length arg in call to
11407         breakpoint_xfer_memory.
11408
11409 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
11410
11411         PR tdep/16397
11412         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11413         number comes after the + or - signs.  Adjust length of register
11414         name to be extracted.
11415
11416 2014-02-20  Tom Tromey  <tromey@redhat.com>
11417
11418         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11419         (ada_varobj_ops): Mark "extern".
11420
11421 2014-02-20  Tom Tromey  <tromey@redhat.com>
11422
11423         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11424
11425 2014-02-20  Doug Evans  <xdje42@gmail.com>
11426
11427         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11428         All callers updated.
11429         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11430         All callers updated.
11431         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11432         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11433
11434 2014-02-20  lin zuojian  <manjian2006@gmail.com>
11435             Joel Brobecker  <brobecker@adacore.com>
11436             Doug Evans  <xdje42@gmail.com>
11437
11438         PR symtab/16581
11439         * dwarf2read.c (struct die_info): New member in_process.
11440         (reset_die_in_process): New function.
11441         (process_die): Set it at the start, reset when returning.
11442         (inherit_abstract_dies): Only call process_die if origin_child_die
11443         not already being processed.
11444
11445 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11446
11447         * windows-nat.c (handle_unload_dll): Add function documentation.
11448         (do_initial_windows_stuff): Add comment explaining why we wait
11449         until after inferior initialization has finished before
11450         processing all DLLs.
11451
11452 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11453
11454         * windows-nat.c (get_module_name): Delete.
11455         (windows_get_exec_module_filename): New function, mostly
11456         inspired from get_module_name.
11457         (windows_pid_to_exec_file): Replace call to get_module_name
11458         by call to windows_get_exec_module_filename.
11459
11460 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11461
11462         * windows-nat.c (handle_load_dll): Rewrite this function's
11463         introductory comment.  Remove code using get_module_name
11464         to get the DLL's name.
11465
11466 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11467
11468         * windows-nat.c (get_windows_debug_event): Ignore
11469         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11470         if windows_initialization_done == 0.
11471         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11472         Adjust implementation to always load all DLLs.
11473         (do_initial_windows_stuff): Replace call to
11474         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11475
11476 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11477
11478         * windows-nat.c (_initialize_windows_nat): Deprecate the
11479         "dll-symbols" command.  Turn the "add-shared-symbol-files"
11480         and "assf" aliases into commands, and deprecate them as well.
11481         * NEWS: Add entry explaining that "dll-symbols" and its two
11482         aliases are now deprecated.
11483
11484 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11485
11486         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11487         new-line in debug string.  Remove trailing spaces.
11488
11489 2014-02-19  Stan Shebs  <stan@codesourcery.com>
11490
11491         * darwin-nat.c (darwin_xfer_partial): Fix return type.
11492
11493 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
11494
11495         * NEWS: Add entry for the new feature
11496         * python/py-value.c (valpy_binop): Call value_x_binop for struct
11497         and class values.
11498
11499 2014-02-19  Stan Shebs  <stan@codesourcery.com>
11500
11501         * MAINTAINERS: List Yao Qi as nios2 maintainer.
11502
11503 2014-02-19  Pedro Alves  <palves@redhat.com>
11504
11505         * common/ptid.h (struct ptid): Mention that process_stratum
11506         targets should prefer ptid.lwp.
11507
11508 2014-02-19  Pedro Alves  <palves@redhat.com>
11509
11510         * remote.c (remote_thread_alive, write_ptid, read_ptid)
11511         (read_ptid, remote_newthread_step, remote_threads_extra_info)
11512         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11513         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11514         store remote thread ids rather than ptid.tid.
11515         (_initialize_remote): Adjust.
11516
11517 2014-02-19  Tom Tromey  <tromey@redhat.com>
11518
11519         * target.c (target_get_unwinder): Rewrite.
11520         (target_get_tailcall_unwinder): Rewrite.
11521         * record-btrace.c (record_btrace_to_get_unwinder): New function.
11522         (record_btrace_to_get_tailcall_unwinder): New function.
11523         (init_record_btrace_ops): Update.
11524         * target.h (struct target_ops) <to_get_unwinder,
11525         to_get_tailcall_unwinder>: Now function pointers.  Use
11526         TARGET_DEFAULT_RETURN.
11527
11528 2014-02-19  Tom Tromey  <tromey@redhat.com>
11529
11530         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11531         argument.
11532         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11533
11534 2014-02-19  Tom Tromey  <tromey@redhat.com>
11535
11536         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11537         directly.
11538         * target-delegates.c: Rebuild.
11539         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11540         TARGET_DEFAULT_FUNC.
11541         * target.c (default_target_decr_pc_after_break): Rename from
11542         forward_target_decr_pc_after_break.  Simplify.
11543         (target_decr_pc_after_break): Rely on delegation.
11544
11545 2014-02-19  Tom Tromey  <tromey@redhat.com>
11546
11547         * target.c (update_current_target): Do not INHERIT to_doc or
11548         to_magic.  Do not de_fault to_open or to_close.
11549
11550 2014-02-19  Tom Tromey  <tromey@redhat.com>
11551
11552         * gcore.h (objfile_find_memory_regions): Declare.
11553         * gcore.c (objfile_find_memory_regions): No longer static.  Add
11554         "self" argument.
11555         (_initialize_gcore): Don't call exec_set_find_memory_regions.
11556         * exec.c: Include gcore.h.
11557         (exec_set_find_memory_regions): Remove.
11558         (exec_find_memory_regions): Remove.
11559         (exec_do_find_memory_regions): Remove.
11560         (init_exec_ops): Update.
11561         * defs.h (exec_set_find_memory_regions): Remove.
11562
11563 2014-02-19  Tom Tromey  <tromey@redhat.com>
11564
11565         * target-delegates.c: Rebuild.
11566         * target.h (struct target_ops) <to_extra_thread_info,
11567         to_thread_name, to_pid_to_exec_file, to_get_section_table,
11568         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11569         not 0, in TARGET_DEFAULT_RETURN.
11570
11571 2014-02-19  Tom Tromey  <tromey@redhat.com>
11572
11573         * target.c (complete_target_initialization): Remove casts.  Use
11574         return_zero_has_execution.
11575         (return_zero): Add "ignore" argument.
11576         (return_zero_has_execution): New function.
11577         (init_dummy_target): Remove casts.  Use
11578         return_zero_has_execution.
11579
11580 2014-02-19  Tom Tromey  <tromey@redhat.com>
11581
11582         * target.c (update_current_target): Update comments.  Do not
11583         INHERIT to_stratum.
11584
11585 2014-02-19  Tom Tromey  <tromey@redhat.com>
11586
11587         * arm-linux-nat.c (arm_linux_read_description): Delegate when
11588         needed.
11589         * corelow.c (core_read_description): Delegate when needed.
11590         * remote.c (remote_read_description): Delegate when needed.
11591         * target-delegates.c: Rebuild.
11592         * target.c (target_read_description): Rewrite.
11593         * target.h (struct target_ops) <to_read_description>: Update
11594         comment.  Use TARGET_DEFAULT_RETURN.
11595
11596 2014-02-19  Tom Tromey  <tromey@redhat.com>
11597
11598         * target-delegates.c: Rebuild.
11599         * target.c (update_current_target): Don't inherit or default
11600         to_can_run.
11601         (find_default_run_target): Check against delegate_can_run.
11602         * target.h (struct target_ops) <to_can_run>: Use
11603         TARGET_DEFAULT_RETURN.
11604
11605 2014-02-19  Tom Tromey  <tromey@redhat.com>
11606
11607         * target-delegates.c: Rebuild.
11608         * target.c (target_disconnect): Unconditionally delegate.
11609         * target.h (struct target_ops) <to_disconnect>: Use
11610         TARGET_DEFAULT_NORETURN.
11611
11612 2014-02-19  Tom Tromey  <tromey@redhat.com>
11613
11614         * record.c (record_stop): Unconditionally delegate.
11615         * target-delegates.c: Rebuild.
11616         * target.c (target_stop_recording): Unconditionally delegate.
11617         * target.h (struct target_ops) <to_stop_recording>: Use
11618         TARGET_DEFAULT_IGNORE.
11619
11620 2014-02-19  Tom Tromey  <tromey@redhat.com>
11621
11622         * target-delegates.c: Rebuild.
11623         * target.c (target_enable_btrace): Unconditionally delegate.
11624         * target.h (struct target_ops) <to_enable_btrace>: Use
11625         TARGET_DEFAULT_NORETURN.
11626
11627 2014-02-19  Tom Tromey  <tromey@redhat.com>
11628
11629         * target-delegates.c: Rebuild.
11630         * target.c (target_read_btrace): Unconditionally delegate.
11631         * target.h (struct target_ops) <to_read_btrace>: Use
11632         TARGET_DEFAULT_NORETURN.
11633
11634 2014-02-19  Tom Tromey  <tromey@redhat.com>
11635
11636         * target-delegates.c: Rebuild.
11637         * target.c (target_teardown_btrace): Unconditionally delegate.
11638         * target.h (struct target_ops) <to_teardown_btrace>: Use
11639         TARGET_DEFAULT_NORETURN.
11640
11641 2014-02-19  Tom Tromey  <tromey@redhat.com>
11642
11643         * target-delegates.c: Rebuild.
11644         * target.c (target_disable_btrace): Unconditionally delegate.
11645         * target.h (struct target_ops) <to_disable_btrace>: Use
11646         TARGET_DEFAULT_NORETURN.
11647
11648 2014-02-19  Tom Tromey  <tromey@redhat.com>
11649
11650         * target-delegates.c: Rebuild.
11651         * target.c (default_search_memory): New function.
11652         (simple_search_memory): Update comment.
11653         (target_search_memory): Unconditionally delegate.
11654         * target.h (struct target_ops) <to_search_memory>: Use
11655         TARGET_DEFAULT_FUNC.
11656
11657 2014-02-19  Tom Tromey  <tromey@redhat.com>
11658
11659         * auxv.c (default_auxv_parse): No longer static.
11660         (target_auxv_parse): Unconditionally delegate.
11661         * auxv.h (default_auxv_parse): Declare.
11662         * target-delegates.c: Rebuild.
11663         * target.c: Include auxv.h.
11664         * target.h (struct target_ops) <to_auxv_parse>: Use
11665         TARGET_DEFAULT_FUNC.
11666
11667 2014-02-19  Tom Tromey  <tromey@redhat.com>
11668
11669         * target-delegates.c: Rebuild.
11670         * target.c (target_memory_map): Unconditionally delegate.
11671         * target.h (struct target_ops) <to_memory_map>: Use
11672         TARGET_DEFAULT_RETURN.
11673
11674 2014-02-19  Tom Tromey  <tromey@redhat.com>
11675
11676         * target-delegates.c: Rebuild.
11677         * target.c (target_thread_alive): Unconditionally delegate.
11678         * target.h (struct target_ops) <to_thread_alive>: Use
11679         TARGET_DEFAULT_RETURN.
11680
11681 2014-02-19  Tom Tromey  <tromey@redhat.com>
11682
11683         * target-delegates.c: Rebuild.
11684         * target.c (target_save_record): Unconditionally delegate.
11685         * target.h (struct target_ops) <to_save_record>: Use
11686         TARGET_DEFAULT_NORETURN.
11687
11688 2014-02-19  Tom Tromey  <tromey@redhat.com>
11689
11690         * target-delegates.c: Rebuild.
11691         * target.c (target_delete_record): Unconditionally delegate.
11692         * target.h (struct target_ops) <to_delete_record>: Use
11693         TARGET_DEFAULT_NORETURN.
11694
11695 2014-02-19  Tom Tromey  <tromey@redhat.com>
11696
11697         * target-delegates.c: Rebuild.
11698         * target.c (target_record_is_replaying): Unconditionally
11699         delegate.
11700         * target.h (struct target_ops) <to_record_is_replaying>: Use
11701         TARGET_DEFAULT_RETURN.
11702
11703 2014-02-19  Tom Tromey  <tromey@redhat.com>
11704
11705         * target-delegates.c: Rebuild.
11706         * target.c (target_goto_record_begin): Unconditionally delegate.
11707         * target.h (struct target_ops) <to_goto_record_begin>: Use
11708         TARGET_DEFAULT_NORETURN.
11709
11710 2014-02-19  Tom Tromey  <tromey@redhat.com>
11711
11712         * target-delegates.c: Rebuild.
11713         * target.c (target_goto_record_end): Unconditionally delegate.
11714         * target.h (struct target_ops) <to_goto_record_end>: Use
11715         TARGET_DEFAULT_NORETURN.
11716
11717 2014-02-19  Tom Tromey  <tromey@redhat.com>
11718
11719         * target-delegates.c: Rebuild.
11720         * target.c (target_goto_record): Unconditionally delegate.
11721         * target.h (struct target_ops) <to_goto_record>: Use
11722         TARGET_DEFAULT_NORETURN.
11723
11724 2014-02-19  Tom Tromey  <tromey@redhat.com>
11725
11726         * target-delegates.c: Rebuild.
11727         * target.c (target_insn_history): Unconditionally delegate.
11728         * target.h (struct target_ops) <to_insn_history>: Use
11729         TARGET_DEFAULT_NORETURN.
11730
11731 2014-02-19  Tom Tromey  <tromey@redhat.com>
11732
11733         * target-delegates.c: Rebuild.
11734         * target.c (target_insn_history_from): Unconditionally delegate.
11735         * target.h (struct target_ops) <to_insn_history_from>: Use
11736         TARGET_DEFAULT_NORETURN.
11737
11738 2014-02-19  Tom Tromey  <tromey@redhat.com>
11739
11740         * target-delegates.c: Rebuild.
11741         * target.c (target_insn_history_range): Unconditionally delegate.
11742         * target.h (struct target_ops) <to_insn_history_range>: Use
11743         TARGET_DEFAULT_NORETURN.
11744
11745 2014-02-19  Tom Tromey  <tromey@redhat.com>
11746
11747         * target-delegates.c: Rebuild.
11748         * target.c (target_call_history): Unconditionally delegate.
11749         * target.h (struct target_ops) <to_call_history>: Use
11750         TARGET_DEFAULT_NORETURN.
11751
11752 2014-02-19  Tom Tromey  <tromey@redhat.com>
11753
11754         * target-delegates.c: Rebuild.
11755         * target.c (target_call_history_from): Unconditionally delegate.
11756         * target.h (struct target_ops) <to_call_history_from>: Use
11757         TARGET_DEFAULT_NORETURN.
11758
11759 2014-02-19  Tom Tromey  <tromey@redhat.com>
11760
11761         * target-delegates.c: Rebuild.
11762         * target.c (target_call_history_range): Unconditionally delegate.
11763         * target.h (struct target_ops) <to_call_history_range>: Use
11764         TARGET_DEFAULT_NORETURN.
11765
11766 2014-02-19  Tom Tromey  <tromey@redhat.com>
11767
11768         * target-delegates.c: Rebuild.
11769         * target.c (target_verify_memory): Unconditionally delegate.
11770         * target.h (struct target_ops) <to_verify_memory>: Use
11771         TARGET_DEFAULT_NORETURN.
11772
11773 2014-02-19  Tom Tromey  <tromey@redhat.com>
11774
11775         * target-delegates.c: Rebuild.
11776         * target.c (target_core_of_thread): Unconditionally delegate.
11777         * target.h (struct target_ops) <to_core_of_thread>: Use
11778         TARGET_DEFAULT_RETURN.
11779
11780 2014-02-19  Tom Tromey  <tromey@redhat.com>
11781
11782         * target-delegates.c: Rebuild.
11783         * target.c (target_flash_done): Unconditionally delegate.
11784         * target.h (struct target_ops) <to_flash_done>: Use
11785         TARGET_DEFAULT_NORETURN.
11786
11787 2014-02-19  Tom Tromey  <tromey@redhat.com>
11788
11789         * target-delegates.c: Rebuild.
11790         * target.c (target_flash_erase): Unconditionally delegate.
11791         * target.h (struct target_ops) <to_flash_erase>: Use
11792         TARGET_DEFAULT_NORETURN.
11793
11794 2014-02-19  Tom Tromey  <tromey@redhat.com>
11795
11796         * target-delegates.c: Rebuild.
11797         * target.c (target_get_section_table): Unconditionally delegate.
11798         * target.h (struct target_ops) <to_get_section_table>: Use
11799         TARGET_DEFAULT_RETURN.
11800
11801 2014-02-19  Tom Tromey  <tromey@redhat.com>
11802
11803         * target-delegates.c: Rebuild.
11804         * target.c (target_pid_to_str): Unconditionally delegate.
11805         (init_dummy_target): Don't initialize to_pid_to_str.
11806         (default_pid_to_str): Rename from dummy_pid_to_str.
11807         * target.h (struct target_ops) <to_pid_to_str>: Use
11808         TARGET_DEFAULT_FUNC.
11809
11810 2014-02-19  Tom Tromey  <tromey@redhat.com>
11811
11812         * target-delegates.c: Rebuild.
11813         * target.c (target_find_new_threads): Unconditionally delegate.
11814         * target.h (struct target_ops) <to_find_new_threads>: Use
11815         TARGET_DEFAULT_RETURN.
11816
11817 2014-02-19  Tom Tromey  <tromey@redhat.com>
11818
11819         * target-delegates.c: Rebuild.
11820         * target.c (target_program_signals): Unconditionally delegate.
11821         * target.h (struct target_ops) <to_program_signals>: Use
11822         TARGET_DEFAULT_IGNORE.
11823
11824 2014-02-19  Tom Tromey  <tromey@redhat.com>
11825
11826         * target-delegates.c: Rebuild.
11827         * target.c (target_pass_signals): Unconditionally delegate.
11828         * target.h (struct target_ops) <to_pass_signals>: Use
11829         TARGET_DEFAULT_IGNORE.
11830
11831 2014-02-19  Tom Tromey  <tromey@redhat.com>
11832
11833         * target-delegates.c: Rebuild.
11834         * target.c (default_mourn_inferior): New function.
11835         (target_mourn_inferior): Unconditionally delegate.
11836         * target.h (struct target_ops) <to_mourn_inferior>: Use
11837         TARGET_DEFAULT_FUNC.
11838
11839 2014-02-19  Tom Tromey  <tromey@redhat.com>
11840
11841         * target-delegates.c: Rebuild.
11842         * target.c (default_follow_fork): New function.
11843         (target_follow_fork): Unconditionally delegate.
11844         * target.h (struct target_ops) <to_follow_fork>: Use
11845         TARGET_DEFAULT_FUNC.
11846
11847 2014-02-19  Tom Tromey  <tromey@redhat.com>
11848
11849         * target-delegates.c: Rebuild.
11850         * target.c (target_kill): Unconditionally delegate.
11851         * target.h (struct target_ops) <to_kill>: Use
11852         TARGET_DEFAULT_NORETURN.
11853
11854 2014-02-19  Tom Tromey  <tromey@redhat.com>
11855
11856         * target-delegates.c: Rebuild.
11857         * target.c (target_masked_watch_num_registers): Unconditionally
11858         delegate.
11859         * target.h (struct target_ops) <to_masked_watch_num_registers>:
11860         Use TARGET_DEFAULT_RETURN.
11861
11862 2014-02-19  Tom Tromey  <tromey@redhat.com>
11863
11864         * target-delegates.c: Rebuild.
11865         * target.c (target_remove_mask_watchpoint): Unconditionally
11866         delegate.
11867         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11868         TARGET_DEFAULT_RETURN.
11869
11870 2014-02-19  Tom Tromey  <tromey@redhat.com>
11871
11872         * target-delegates.c: Rebuild.
11873         * target.c (target_insert_mask_watchpoint): Unconditionally
11874         delegate.
11875         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11876         TARGET_DEFAULT_RETURN.
11877
11878 2014-02-19  Tom Tromey  <tromey@redhat.com>
11879
11880         * target-delegates.c: Rebuild.
11881         * target.c (target_ranged_break_num_registers): Unconditionally
11882         delegate.
11883         * target.h (struct target_ops) <to_ranged_break_num_registers>:
11884         Use TARGET_DEFAULT_RETURN.
11885
11886 2014-02-19  Tom Tromey  <tromey@redhat.com>
11887
11888         * target-delegates.c: Rebuild.
11889         * target.c (target_fetch_registers): Unconditionally delegate.
11890         * target.h (struct target_ops) <to_fetch_registers>: Use
11891         TARGET_DEFAULT_NORETURN.
11892
11893 2014-02-19  Tom Tromey  <tromey@redhat.com>
11894
11895         * target-delegates.c: Rebuild.
11896         * target.c (update_current_target): Don't inherit or default
11897         to_stop.
11898         * target.h (struct target_ops) <to_stop>: Use
11899         TARGET_DEFAULT_IGNORE.
11900
11901 2014-02-19  Tom Tromey  <tromey@redhat.com>
11902
11903         * target-delegates.c: Rebuild.
11904         * target.c (update_current_target): Don't inherit or default
11905         to_can_run_breakpoint_commands.
11906         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11907         Use TARGET_DEFAULT_RETURN.
11908
11909 2014-02-19  Tom Tromey  <tromey@redhat.com>
11910
11911         * target-delegates.c: Rebuild.
11912         * target.c (update_current_target): Don't inherit or default
11913         to_supports_evaluation_of_breakpoint_conditions.
11914         * target.h (struct target_ops)
11915         <to_supports_evaluation_of_breakpoint_conditions>: Use
11916         TARGET_DEFAULT_RETURN.
11917
11918 2014-02-19  Tom Tromey  <tromey@redhat.com>
11919
11920         * target-delegates.c: Rebuild.
11921         * target.c (update_current_target): Don't inherit or default
11922         to_augmented_libraries_svr4_read.
11923         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11924         Use TARGET_DEFAULT_RETURN.
11925
11926 2014-02-19  Tom Tromey  <tromey@redhat.com>
11927
11928         * target-delegates.c: Rebuild.
11929         * target.c (update_current_target): Don't inherit or default
11930         to_can_use_agent.
11931         * target.h (struct target_ops) <to_can_use_agent>: Use
11932         TARGET_DEFAULT_RETURN.
11933
11934 2014-02-19  Tom Tromey  <tromey@redhat.com>
11935
11936         * target-delegates.c: Rebuild.
11937         * target.c (update_current_target): Don't inherit or default
11938         to_use_agent.
11939         * target.h (struct target_ops) <to_use_agent>: Use
11940         TARGET_DEFAULT_NORETURN.
11941
11942 2014-02-19  Tom Tromey  <tromey@redhat.com>
11943
11944         * target-delegates.c: Rebuild.
11945         * target.c (update_current_target): Don't inherit or default
11946         to_traceframe_info.
11947         (return_null): Remove.
11948         * target.h (struct target_ops) <to_traceframe_info>: Use
11949         TARGET_DEFAULT_RETURN.
11950
11951 2014-02-19  Tom Tromey  <tromey@redhat.com>
11952
11953         * target-delegates.c: Rebuild.
11954         * target.c (update_current_target): Don't inherit or default
11955         to_static_tracepoint_markers_by_strid.
11956         * target.h (struct target_ops)
11957         <to_static_tracepoint_markers_by_strid>: Use
11958         TARGET_DEFAULT_NORETURN.
11959
11960 2014-02-19  Tom Tromey  <tromey@redhat.com>
11961
11962         * target-delegates.c: Rebuild.
11963         * target.c (update_current_target): Don't inherit or default
11964         to_static_tracepoint_marker_at.
11965         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11966         Use TARGET_DEFAULT_RETURN.
11967
11968 2014-02-19  Tom Tromey  <tromey@redhat.com>
11969
11970         * target-delegates.c: Rebuild.
11971         * target.c (update_current_target): Don't inherit or default
11972         to_set_permissions.
11973         * target.h (struct target_ops) <to_set_permissions>: Use
11974         TARGET_DEFAULT_IGNORE.
11975
11976 2014-02-19  Tom Tromey  <tromey@redhat.com>
11977
11978         * target-delegates.c: Rebuild.
11979         * target.c (update_current_target): Don't inherit or default
11980         to_get_tib_address.
11981         * target.h (struct target_ops) <to_get_tib_address>: Use
11982         TARGET_DEFAULT_NORETURN.
11983
11984 2014-02-19  Tom Tromey  <tromey@redhat.com>
11985
11986         * target-delegates.c: Rebuild.
11987         * target.c (update_current_target): Don't inherit or default
11988         to_set_trace_notes.
11989         * target.h (struct target_ops) <to_set_trace_notes>: Use
11990         TARGET_DEFAULT_RETURN.
11991
11992 2014-02-19  Tom Tromey  <tromey@redhat.com>
11993
11994         * target-delegates.c: Rebuild.
11995         * target.c (update_current_target): Don't initialize
11996         to_set_trace_buffer_size.
11997         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11998         TARGET_DEFAULT_IGNORE.
11999
12000 2014-02-19  Tom Tromey  <tromey@redhat.com>
12001
12002         * target-delegates.c: Rebuild.
12003         * target.c (update_current_target): Don't inherit or default
12004         to_set_circular_trace_buffer.
12005         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
12006         TARGET_DEFAULT_IGNORE.
12007
12008 2014-02-19  Tom Tromey  <tromey@redhat.com>
12009
12010         * target-delegates.c: Rebuild.
12011         * target.c (update_current_target): Don't inherit or default
12012         to_set_disconnected_tracing.
12013         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
12014         TARGET_DEFAULT_IGNORE.
12015
12016 2014-02-19  Tom Tromey  <tromey@redhat.com>
12017
12018         * target-delegates.c: Rebuild.
12019         * target.c (update_current_target): Don't inherit or default
12020         to_get_min_fast_tracepoint_insn_len.
12021         (return_minus_one): Remove.
12022         * target.h (struct target_ops)
12023         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
12024
12025 2014-02-19  Tom Tromey  <tromey@redhat.com>
12026
12027         * target-delegates.c: Rebuild.
12028         * target.c (update_current_target): Don't inherit or default
12029         to_get_raw_trace_data.
12030         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
12031         TARGET_DEFAULT_NORETURN.
12032
12033 2014-02-19  Tom Tromey  <tromey@redhat.com>
12034
12035         * target-delegates.c: Rebuild.
12036         * target.c (update_current_target): Don't inherit or default
12037         to_upload_trace_state_variables.
12038         * target.h (struct target_ops) <to_upload_trace_state_variables>:
12039         Use TARGET_DEFAULT_RETURN.
12040
12041 2014-02-19  Tom Tromey  <tromey@redhat.com>
12042
12043         * target-delegates.c: Rebuild.
12044         * target.c (update_current_target): Don't inherit or default
12045         to_upload_tracepoints.
12046         * target.h (struct target_ops) <to_upload_tracepoints>: Use
12047         TARGET_DEFAULT_RETURN.
12048
12049 2014-02-19  Tom Tromey  <tromey@redhat.com>
12050
12051         * target-delegates.c: Rebuild.
12052         * target.c (update_current_target): Don't inherit or default
12053         to_save_trace_data.
12054         * target.h (struct target_ops) <to_save_trace_data>: Use
12055         TARGET_DEFAULT_NORETURN.
12056
12057 2014-02-19  Tom Tromey  <tromey@redhat.com>
12058
12059         * target-delegates.c: Rebuild.
12060         * target.c (update_current_target): Don't inherit or default
12061         to_get_trace_state_variable_value.
12062         * target.h (struct target_ops)
12063         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
12064
12065 2014-02-19  Tom Tromey  <tromey@redhat.com>
12066
12067         * target-delegates.c: Rebuild.
12068         * target.c (update_current_target): Don't inherit or default
12069         to_trace_find.
12070         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
12071
12072 2014-02-19  Tom Tromey  <tromey@redhat.com>
12073
12074         * target-delegates.c: Rebuild.
12075         * target.c (update_current_target): Don't inherit or default
12076         to_trace_stop.
12077         * target.h (struct target_ops) <to_trace_stop>: Use
12078         TARGET_DEFAULT_NORETURN.
12079
12080 2014-02-19  Tom Tromey  <tromey@redhat.com>
12081
12082         * target-delegates.c: Rebuild.
12083         * target.c (update_current_target): Don't inherit or default
12084         to_get_tracepoint_status.
12085         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12086         TARGET_DEFAULT_NORETURN.
12087
12088 2014-02-19  Tom Tromey  <tromey@redhat.com>
12089
12090         * target-delegates.c: Rebuild.
12091         * target.c (update_current_target): Don't inherit or default
12092         to_get_trace_status.
12093         * target.h (struct target_ops) <to_get_trace_status>: Use
12094         TARGET_DEFAULT_RETURN.
12095
12096 2014-02-19  Tom Tromey  <tromey@redhat.com>
12097
12098         * target-delegates.c: Rebuild.
12099         * target.c (update_current_target): Don't inherit or default
12100         to_trace_start.
12101         * target.h (struct target_ops) <to_trace_start>: Use
12102         TARGET_DEFAULT_NORETURN.
12103
12104 2014-02-19  Tom Tromey  <tromey@redhat.com>
12105
12106         * target-delegates.c: Rebuild.
12107         * target.c (update_current_target): Don't inherit or default
12108         to_trace_set_readonly_regions.
12109         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12110         Use TARGET_DEFAULT_NORETURN.
12111
12112 2014-02-19  Tom Tromey  <tromey@redhat.com>
12113
12114         * target-delegates.c: Rebuild.
12115         * target.c (update_current_target): Don't inherit or default
12116         to_disable_tracepoint.
12117         * target.h (struct target_ops) <to_disable_tracepoint>: Use
12118         TARGET_DEFAULT_NORETURN.
12119
12120 2014-02-19  Tom Tromey  <tromey@redhat.com>
12121
12122         * target-delegates.c: Rebuild.
12123         * target.c (update_current_target): Don't inherit or default
12124         to_enable_tracepoint.
12125         * target.h (struct target_ops) <to_enable_tracepoint>: Use
12126         TARGET_DEFAULT_NORETURN.
12127
12128 2014-02-19  Tom Tromey  <tromey@redhat.com>
12129
12130         * target-delegates.c: Rebuild.
12131         * target.c (update_current_target): Don't inherit or default
12132         to_download_trace_state_variable.
12133         * target.h (struct target_ops) <to_download_trace_state_variable>:
12134         Use TARGET_DEFAULT_NORETURN.
12135
12136 2014-02-19  Tom Tromey  <tromey@redhat.com>
12137
12138         * target-delegates.c: Rebuild.
12139         * target.c (update_current_target): Don't inherit or default
12140         to_can_download_tracepoint.
12141         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12142         TARGET_DEFAULT_RETURN.
12143
12144 2014-02-19  Tom Tromey  <tromey@redhat.com>
12145
12146         * target-delegates.c: Rebuild.
12147         * target.c (update_current_target): Don't inherit or default
12148         to_download_tracepoint.
12149         * target.h (struct target_ops) <to_download_tracepoint>: Use
12150         TARGET_DEFAULT_NORETURN.
12151
12152 2014-02-19  Tom Tromey  <tromey@redhat.com>
12153
12154         * target-delegates.c: Rebuild.
12155         * target.c (update_current_target): Don't inherit or default
12156         to_trace_init.
12157         * target.h (struct target_ops) <to_trace_init>: Use
12158         TARGET_DEFAULT_RETURN.
12159
12160 2014-02-19  Tom Tromey  <tromey@redhat.com>
12161
12162         * target-delegates.c: Rebuild.
12163         * target.c (update_current_target): Don't inherit or default
12164         to_supports_string_tracing.
12165         * target.h (struct target_ops) <to_supports_string_tracing>: Use
12166         TARGET_DEFAULT_RETURN.
12167
12168 2014-02-19  Tom Tromey  <tromey@redhat.com>
12169
12170         * target-delegates.c: Rebuild.
12171         * target.c (update_current_target): Don't inherit or default
12172         to_supports_enable_disable_tracepoint.
12173         * target.h (struct target_ops)
12174         <to_supports_enable_disable_tracepoint>: Use
12175         TARGET_DEFAULT_RETURN.
12176
12177 2014-02-19  Tom Tromey  <tromey@redhat.com>
12178
12179         * target-delegates.c: Rebuild.
12180         * target.c (update_current_target): Don't inherit or default
12181         to_supports_multi_process.
12182         * target.h (struct target_ops) <to_supports_multi_process>: Use
12183         TARGET_DEFAULT_RETURN.
12184
12185 2014-02-19  Tom Tromey  <tromey@redhat.com>
12186
12187         * target-delegates.c: Rebuild.
12188         * target.c (update_current_target): Don't inherit or default
12189         to_get_ada_task_ptid.
12190         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12191         TARGET_DEFAULT_FUNC.
12192
12193 2014-02-19  Tom Tromey  <tromey@redhat.com>
12194
12195         * target-delegates.c: Rebuild.
12196         * target.c (update_current_target): Don't inherit or default
12197         to_thread_architecture.
12198         * target.h (struct target_ops) <to_thread_architecture>: Use
12199         TARGET_DEFAULT_FUNC.
12200
12201 2014-02-19  Tom Tromey  <tromey@redhat.com>
12202
12203         * target-delegates.c: Rebuild.
12204         * target.c (update_current_target): Don't inherit or default
12205         to_execution_direction.
12206         * target.h (struct target_ops) <to_execution_direction>: Use
12207         TARGET_DEFAULT_FUNC.
12208
12209 2014-02-19  Tom Tromey  <tromey@redhat.com>
12210
12211         * target-delegates.c: Rebuild.
12212         * target.c (update_current_target): Don't inherit or default
12213         to_can_execute_reverse.
12214         * target.h (struct target_ops) <to_can_execute_reverse>: Use
12215         TARGET_DEFAULT_RETURN.
12216         (target_can_execute_reverse): Unconditionally delegate.
12217
12218 2014-02-19  Tom Tromey  <tromey@redhat.com>
12219
12220         * target-delegates.c: Rebuild.
12221         * target.c (update_current_target): Don't inherit or default
12222         to_goto_bookmark.
12223         (dummy_goto_bookmark): Remove.
12224         (init_dummy_target): Don't inherit or default to_goto_bookmark.
12225         * target.h (struct target_ops) <to_goto_bookmark>: Use
12226         TARGET_DEFAULT_NORETURN.
12227
12228 2014-02-19  Tom Tromey  <tromey@redhat.com>
12229
12230         * target-delegates.c: Rebuild.
12231         * target.c (update_current_target): Don't inherit or default
12232         to_get_bookmark.
12233         (dummy_get_bookmark): Remove.
12234         (init_dummy_target): Don't inherit or default to_get_bookmark.
12235         * target.h (struct target_ops) <to_get_bookmark>: Use
12236         TARGET_DEFAULT_NORETURN
12237
12238 2014-02-19  Tom Tromey  <tromey@redhat.com>
12239
12240         * target-delegates.c: Rebuild.
12241         * target.c (update_current_target): Don't inherit or default
12242         to_make_corefile_notes.
12243         (init_dummy_target): Don't initialize to_make_corefile_notes.
12244         * target.h (struct target_ops) <to_make_corefile_notes>: Use
12245         TARGET_DEFAULT_FUNC.
12246
12247 2014-02-19  Tom Tromey  <tromey@redhat.com>
12248
12249         * target-delegates.c: Rebuild.
12250         * target.c (update_current_target): Don't inherit or default
12251         to_find_memory_regions.
12252         (init_dummy_target): Don't initialize to_find_memory_regions.
12253         * target.h (struct target_ops) <to_find_memory_regions>: Use
12254         TARGET_DEFAULT_FUNC.
12255
12256 2014-02-19  Tom Tromey  <tromey@redhat.com>
12257
12258         * target-delegates.c: Rebuild.
12259         * target.c (update_current_target): Don't inherit or default
12260         to_log_command.
12261         * target.h (struct target_ops) <to_log_command>: Use
12262         TARGET_DEFAULT_IGNORE.
12263         (target_log_command): Unconditionally delegate.
12264
12265 2014-02-19  Tom Tromey  <tromey@redhat.com>
12266
12267         * target-delegates.c: Rebuild.
12268         * target.c (update_current_target): Don't inherit or default
12269         to_pid_to_exec_file.
12270         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12271         TARGET_DEFAULT_RETURN.
12272
12273 2014-02-19  Tom Tromey  <tromey@redhat.com>
12274
12275         * target-delegates.c: Rebuild.
12276         * target.c (update_current_target): Don't inherit or default
12277         to_thread_name.
12278         (target_thread_name): Unconditionally delegate.
12279         * target.h (struct target_ops) <to_thread_name>: Use
12280         TARGET_DEFAULT_RETURN.
12281
12282 2014-02-19  Tom Tromey  <tromey@redhat.com>
12283
12284         * target-delegates.c: Rebuild.
12285         * target.c (update_current_target): Don't inherit or default
12286         to_extra_thread_info.
12287         * target.h (struct target_ops) <to_extra_thread_info>: Use
12288         TARGET_DEFAULT_RETURN.
12289
12290 2014-02-19  Tom Tromey  <tromey@redhat.com>
12291
12292         * target-delegates.c: Rebuild.
12293         * target.c (update_current_target): Don't inherit or default
12294         to_has_exited.
12295         * target.h (struct target_ops) <to_has_exited>: Use
12296         TARGET_DEFAULT_RETURN..
12297
12298 2014-02-19  Tom Tromey  <tromey@redhat.com>
12299
12300         * target-delegates.c: Rebuild.
12301         * target.c (update_current_target): Don't inherit or default
12302         to_set_syscall_catchpoint.
12303         (return_one): Remove.
12304         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12305         TARGET_DEFAULT_RETURN.
12306
12307 2014-02-19  Tom Tromey  <tromey@redhat.com>
12308
12309         * target-delegates.c: Rebuild.
12310         * target.c (update_current_target): Don't inherit or default
12311         to_insert_exec_catchpoint.
12312         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12313         TARGET_DEFAULT_RETURN.
12314
12315 2014-01-08  Tom Tromey  <tromey@redhat.com>
12316
12317         * target-delegates.c: Rebuild.
12318         * target.c (update_current_target): Don't inherit or default
12319         to_insert_exec_catchpoint.
12320         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12321         TARGET_DEFAULT_RETURN.
12322
12323 2014-02-19  Tom Tromey  <tromey@redhat.com>
12324
12325         * target-delegates.c: Rebuild.
12326         * target.c (update_current_target): Don't inherit or default
12327         to_remove_vfork_catchpoint.
12328         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12329         TARGET_DEFAULT_RETURN.
12330
12331 2014-02-19  Tom Tromey  <tromey@redhat.com>
12332
12333         * target-delegates.c: Rebuild.
12334         * target.c (update_current_target): Don't inherit or default
12335         to_insert_vfork_catchpoint.
12336         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12337         TARGET_DEFAULT_RETURN.
12338
12339 2014-02-19  Tom Tromey  <tromey@redhat.com>
12340
12341         * target-delegates.c: Rebuild.
12342         * target.c (update_current_target): Don't inherit or default
12343         to_remove_fork_catchpoint.
12344         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12345         TARGET_DEFAULT_RETURN.
12346
12347 2014-02-19  Tom Tromey  <tromey@redhat.com>
12348
12349         * target-delegates.c: Rebuild.
12350         * target.c (update_current_target): Don't inherit or default
12351         to_insert_fork_catchpoint.
12352         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12353         TARGET_DEFAULT_RETURN.
12354
12355 2014-02-19  Tom Tromey  <tromey@redhat.com>
12356
12357         * target-delegates.c: Rebuild.
12358         * target.c (update_current_target): Don't inherit or default
12359         to_post_startup_inferior.
12360         * target.h (struct target_ops) <to_post_startup_inferior>: Use
12361         TARGET_DEFAULT_IGNORE.
12362
12363 2014-02-19  Tom Tromey  <tromey@redhat.com>
12364
12365         * target-delegates.c: Rebuild.
12366         * target.c (update_current_target): Don't inherit or default
12367         to_load.
12368         * target.h (struct target_ops) <to_load>: Use
12369         TARGET_DEFAULT_NORETURN.
12370
12371 2014-02-19  Tom Tromey  <tromey@redhat.com>
12372
12373         * target-delegates.c: Rebuild.
12374         * target.c (update_current_target): Don't inherit or default
12375         to_terminal_info.
12376         * target.h (struct target_ops) <to_terminal_info>: Use
12377         TARGET_DEFAULT_FUNC.
12378
12379 2014-02-19  Tom Tromey  <tromey@redhat.com>
12380
12381         * target-delegates.c: Rebuild.
12382         * target.c (update_current_target): Don't inherit or default
12383         to_terminal_save_ours.
12384         * target.h (struct target_ops) <to_terminal_save_ours>: Use
12385         TARGET_DEFAULT_IGNORE.
12386
12387 2014-02-19  Tom Tromey  <tromey@redhat.com>
12388
12389         * target-delegates.c: Rebuild.
12390         * target.c (update_current_target): Don't inherit or default
12391         to_terminal_ours.
12392         * target.h (struct target_ops) <to_terminal_ours>: Use
12393         TARGET_DEFAULT_IGNORE.
12394
12395 2014-02-19  Tom Tromey  <tromey@redhat.com>
12396
12397         * target-delegates.c: Rebuild.
12398         * target.c (update_current_target): Don't inherit or default
12399         to_terminal_ours_for_output.
12400         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12401         TARGET_DEFAULT_IGNORE.
12402
12403 2014-02-19  Tom Tromey  <tromey@redhat.com>
12404
12405         * target-delegates.c: Rebuild.
12406         * target.c (update_current_target): Don't inherit or default
12407         to_terminal_inferior.
12408         * target.h (struct target_ops) <to_terminal_inferior>: Use
12409         TARGET_DEFAULT_IGNORE.
12410
12411 2014-02-19  Tom Tromey  <tromey@redhat.com>
12412
12413         * target-delegates.c: Rebuild.
12414         * target.c (update_current_target): Don't inherit or default
12415         to_terminal_init.
12416         * target.h (struct target_ops) <to_terminal_init>: Use
12417         TARGET_DEFAULT_IGNORE.
12418
12419 2014-02-19  Tom Tromey  <tromey@redhat.com>
12420
12421         * target-delegates.c: Rebuild.
12422         * target.c (update_current_target): Don't inherit or default
12423         to_can_accel_watchpoint_condition.
12424         * target.h (struct target_ops)
12425         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12426
12427 2014-02-19  Tom Tromey  <tromey@redhat.com>
12428
12429         * target-delegates.c: Rebuild.
12430         * target.c (update_current_target): Don't inherit or default
12431         to_region_ok_for_hw_watchpoint.
12432         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12433         Use TARGET_DEFAULT_FUNC.
12434
12435 2014-02-19  Tom Tromey  <tromey@redhat.com>
12436
12437         * target-delegates.c: Rebuild.
12438         * target.c (update_current_target): Don't inherit or default
12439         to_watchpoint_addr_within_range.
12440         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12441         Use TARGET_DEFAULT_FUNC.
12442
12443 2014-02-19  Tom Tromey  <tromey@redhat.com>
12444
12445         * target-delegates.c: Rebuild.
12446         * target.c (update_current_target): Don't inherit or default
12447         to_remove_watchpoint.
12448         * target.h (struct target_ops) <to_remove_watchpoint>: Use
12449         TARGET_DEFAULT_NORETURN.
12450
12451 2014-02-19  Tom Tromey  <tromey@redhat.com>
12452
12453         * target-delegates.c: Rebuild.
12454         * target.c (update_current_target): Don't inherit or default
12455         to_insert_watchpoint.
12456         * target.h (struct target_ops) <to_insert_watchpoint>: Use
12457         TARGET_DEFAULT_RETURN.
12458
12459 2014-02-19  Tom Tromey  <tromey@redhat.com>
12460
12461         * target-delegates.c: Rebuild.
12462         * target.c (update_current_target): Don't inherit or default
12463         to_remove_hw_breakpoint.
12464         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12465         TARGET_DEFAULT_RETURN.
12466
12467 2014-02-19  Tom Tromey  <tromey@redhat.com>
12468
12469         * target-delegates.c: Rebuild.
12470         * target.c (update_current_target): Don't inherit or default
12471         to_insert_hw_breakpoint.
12472         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12473         TARGET_DEFAULT_RETURN.
12474
12475 2014-02-19  Tom Tromey  <tromey@redhat.com>
12476
12477         * target-delegates.c: Rebuild.
12478         * target.c (update_current_target): Don't inherit or default
12479         to_can_use_hw_breakpoint.
12480         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12481         TARGET_DEFAULT_RETURN.
12482
12483 2014-02-19  Tom Tromey  <tromey@redhat.com>
12484
12485         * target-delegates.c: Rebuild.
12486         * target.c (update_current_target): Don't inherit or default
12487         to_files_info.
12488         * target.h (struct target_ops) <to_files_info>: Use
12489         TARGET_DEFAULT_IGNORE.
12490
12491 2014-02-19  Tom Tromey  <tromey@redhat.com>
12492
12493         * target-delegates.c: Rebuild.
12494         * target.c (update_current_target): Don't inherit or default
12495         to_store.
12496         * target.h (struct target_ops) <to_store>: Use
12497         TARGET_DEFAULT_NORETURN.
12498
12499 2014-02-19  Tom Tromey  <tromey@redhat.com>
12500
12501         * target-delegates.c: Rebuild.
12502         * target.c (update_current_target): Don't inherit or default
12503         to_post_attach.
12504         * target.h (struct target_ops) <to_post_attach>: Use
12505         TARGET_DEFAULT_IGNORE.
12506
12507 2014-02-19  Tom Tromey  <tromey@redhat.com>
12508
12509         * target-delegates.c: Rebuild.
12510         * target.c (update_current_target): Don't inherit or default
12511         to_rcmd.
12512         (default_rcmd): New function.
12513         (do_monitor_command): Unconditionally delegate.
12514         * target.h (struct target_ops) <to_rmcd>: Use
12515         TARGET_DEFAULT_FUNC.
12516
12517 2014-02-19  Tom Tromey  <tromey@redhat.com>
12518
12519         * target-delegates.c: Rebuild.
12520         * target.c (init_dummy_target): Don't initialize to_attach.
12521         (target_attach): Unconditionally delegate.
12522         * target.h (struct target_ops) <to_attach>: Use
12523         TARGET_DEFAULT_FUNC.
12524
12525 2014-02-19  Tom Tromey  <tromey@redhat.com>
12526
12527         * target-delegates.c: Rebuild.
12528         * target.c (target_detach): Unconditionally delegate.
12529         (init_dummy_target): Don't initialize to_detach.
12530         * target.h (struct target_ops) <to_detach>: Use
12531         TARGET_DEFAULT_IGNORE.
12532
12533 2014-02-19  Tom Tromey  <tromey@redhat.com>
12534
12535         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12536         Add argument.
12537         (target_augmented_libraries_svr4_read): Add argument.
12538         * target.c (update_current_target): Update.
12539         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12540         argument.
12541
12542 2014-02-19  Tom Tromey  <tromey@redhat.com>
12543
12544         * target.h (struct target_ops) <to_call_history_range>: Add
12545         argument.
12546         * target.c (target_call_history_range): Add argument.
12547         * record-btrace.c (record_btrace_call_history_range): Add 'self'
12548         argument.
12549         (record_btrace_call_history_from): Update.
12550
12551 2014-02-19  Tom Tromey  <tromey@redhat.com>
12552
12553         * target.h (struct target_ops) <to_call_history_from>: Add
12554         argument.
12555         * target.c (target_call_history_from): Add argument.
12556         * record-btrace.c (record_btrace_call_history_from): Add 'self'
12557         argument.
12558
12559 2014-02-19  Tom Tromey  <tromey@redhat.com>
12560
12561         * target.h (struct target_ops) <to_call_history>: Add argument.
12562         * target.c (target_call_history): Add argument.
12563         * record-btrace.c (record_btrace_call_history): Add 'self'
12564         argument.
12565
12566 2014-02-19  Tom Tromey  <tromey@redhat.com>
12567
12568         * target.h (struct target_ops) <to_insn_history_range>: Add
12569         argument.
12570         * target.c (target_insn_history_range): Add argument.
12571         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12572         argument.
12573         (record_btrace_insn_history_from): Update.
12574
12575 2014-02-19  Tom Tromey  <tromey@redhat.com>
12576
12577         * target.h (struct target_ops) <to_insn_history_from>: Add
12578         argument.
12579         * target.c (target_insn_history_from): Add argument.
12580         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12581         argument.
12582
12583 2014-02-19  Tom Tromey  <tromey@redhat.com>
12584
12585         * target.h (struct target_ops) <to_insn_history>: Add argument.
12586         * target.c (target_insn_history): Add argument.
12587         * record-btrace.c (record_btrace_insn_history): Add 'self'
12588         argument.
12589
12590 2014-02-19  Tom Tromey  <tromey@redhat.com>
12591
12592         * target.h (struct target_ops) <to_goto_record>: Add argument.
12593         * target.c (target_goto_record): Add argument.
12594         * record-full.c (record_full_goto): Add 'self' argument.
12595         * record-btrace.c (record_btrace_goto): Add 'self' argument.
12596
12597 2014-02-19  Tom Tromey  <tromey@redhat.com>
12598
12599         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12600         * target.c (target_goto_record_end): Add argument.
12601         * record-full.c (record_full_goto_end): Add 'self' argument.
12602         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12603
12604 2014-02-19  Tom Tromey  <tromey@redhat.com>
12605
12606         * target.h (struct target_ops) <to_goto_record_begin>: Add
12607         argument.
12608         * target.c (target_goto_record_begin): Add argument.
12609         * record-full.c (record_full_goto_begin): Add 'self' argument.
12610         * record-btrace.c (record_btrace_goto_begin): Add 'self'
12611         argument.
12612
12613 2014-02-19  Tom Tromey  <tromey@redhat.com>
12614
12615         * target.h (struct target_ops) <to_record_is_replaying>: Add
12616         argument.
12617         * target.c (target_record_is_replaying): Add argument.
12618         * record-full.c (record_full_is_replaying): Add 'self' argument.
12619         * record-btrace.c (record_btrace_is_replaying): Add 'self'
12620         argument.
12621         (record_btrace_xfer_partial, record_btrace_store_registers)
12622         (record_btrace_prepare_to_store, record_btrace_resume)
12623         (record_btrace_wait, record_btrace_decr_pc_after_break)
12624         (record_btrace_find_new_threads, record_btrace_thread_alive):
12625         Update.
12626
12627 2014-02-19  Tom Tromey  <tromey@redhat.com>
12628
12629         * target.h (struct target_ops) <to_delete_record>: Add argument.
12630         * target.c (target_delete_record): Add argument.
12631         * record-full.c (record_full_delete): Add 'self' argument.
12632
12633 2014-02-19  Tom Tromey  <tromey@redhat.com>
12634
12635         * target.h (struct target_ops) <to_save_record>: Add argument.
12636         * target.c (target_save_record): Add argument.
12637         * record-full.c (record_full_save): Add 'self' argument.
12638         (record_full_save): Add 'self' argument.
12639
12640 2014-02-19  Tom Tromey  <tromey@redhat.com>
12641
12642         * target.h (struct target_ops) <to_info_record>: Add argument.
12643         * target.c (target_info_record): Add argument.
12644         * record.c (info_record_command): Add argument.
12645         * record-full.c (record_full_info): Add 'self' argument.
12646         * record-btrace.c (record_btrace_info): Add 'self' argument.
12647
12648 2014-02-19  Tom Tromey  <tromey@redhat.com>
12649
12650         * target.h (struct target_ops) <to_stop_recording>: Add argument.
12651         * target.c (target_stop_recording): Add argument.
12652         * record.c (record_stop): Add argument.
12653         * record-btrace.c (record_btrace_stop_recording): Add 'self'
12654         argument.
12655
12656 2014-02-19  Tom Tromey  <tromey@redhat.com>
12657
12658         * target.h (struct target_ops) <to_read_btrace>: Add argument.
12659         * target.c (struct target_ops) <to_read_btrace>: Add argument.
12660         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12661         argument.
12662         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12663         (_initialize_amd64_linux_nat): Use it.
12664         * i386-linux-nat.c (i386_linux_read_btrace): New function.
12665         (_initialize_i386_linux_nat): Use it.
12666
12667 2014-02-19  Tom Tromey  <tromey@redhat.com>
12668
12669         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12670         * target.c (target_teardown_btrace): Add argument.
12671         * remote.c (remote_teardown_btrace): Add 'self' argument.
12672         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12673         argument.
12674         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12675         argument.
12676
12677 2014-02-19  Tom Tromey  <tromey@redhat.com>
12678
12679         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12680         * target.c (target_disable_btrace): Add argument.
12681         * remote.c (remote_disable_btrace): Add 'self' argument.
12682         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12683         argument.
12684         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12685         argument.
12686
12687 2014-02-19  Tom Tromey  <tromey@redhat.com>
12688
12689         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12690         * target.c (target_enable_btrace): Add argument.
12691         * remote.c (remote_enable_btrace): Add 'self' argument.
12692         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12693         argument.
12694         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12695         argument.
12696
12697 2014-02-19  Tom Tromey  <tromey@redhat.com>
12698
12699         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12700         (target_can_use_agent): Add argument.
12701         * target.c (update_current_target): Update.
12702         * remote.c (remote_can_use_agent): Add 'self' argument.
12703         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12704
12705 2014-02-19  Tom Tromey  <tromey@redhat.com>
12706
12707         * target.h (struct target_ops) <to_use_agent>: Add argument.
12708         (target_use_agent): Add argument.
12709         * target.c (update_current_target): Update.
12710         * remote.c (remote_use_agent): Add 'self' argument.
12711         * inf-child.c (inf_child_use_agent): Add 'self' argument.
12712
12713 2014-02-19  Tom Tromey  <tromey@redhat.com>
12714
12715         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12716         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12717         (target_traceframe_info): Add argument.
12718         * target.c (update_current_target): Update.
12719         * remote.c (remote_traceframe_info): Add 'self' argument.
12720         * ctf.c (ctf_traceframe_info): Add 'self' argument.
12721
12722 2014-02-19  Tom Tromey  <tromey@redhat.com>
12723
12724         * target.h (target_static_tracepoint_markers_by_strid): Add
12725         argument.
12726         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12727         'self' argument.
12728         * target.c (update_current_target): Update.
12729         * remote.c (struct target_ops)
12730         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12731         * linux-nat.c (struct target_ops)
12732         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12733
12734 2014-02-19  Tom Tromey  <tromey@redhat.com>
12735
12736         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12737         Add argument.
12738         (target_static_tracepoint_marker_at): Add argument.
12739         * target.c (update_current_target): Update.
12740         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12741         argument.
12742
12743 2014-02-19  Tom Tromey  <tromey@redhat.com>
12744
12745         * target.h (struct target_ops) <to_set_permissions>: Add argument.
12746         (target_set_permissions): Add argument.
12747         * target.c (update_current_target): Update.
12748         * remote.c (remote_set_permissions): Add 'self' argument.
12749         (remote_start_remote): Update.
12750
12751 2014-02-19  Tom Tromey  <tromey@redhat.com>
12752
12753         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12754         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12755         (target_get_tib_address): Add argument.
12756         * target.c (update_current_target): Update.
12757         * remote.c (remote_get_tib_address): Add 'self' argument.
12758
12759 2014-02-19  Tom Tromey  <tromey@redhat.com>
12760
12761         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12762         (target_set_trace_notes): Add argument.
12763         * target.c (update_current_target): Update.
12764         * remote.c (remote_set_trace_notes): Add 'self' argument.
12765
12766 2014-02-19  Tom Tromey  <tromey@redhat.com>
12767
12768         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12769         argument.
12770         (target_set_trace_buffer_size): Add argument.
12771         * target.c (update_current_target): Update.
12772         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12773
12774 2014-02-19  Tom Tromey  <tromey@redhat.com>
12775
12776         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12777         argument.
12778         (target_set_circular_trace_buffer): Add argument.
12779         * target.c (update_current_target): Update.
12780         * remote.c (remote_set_circular_trace_buffer): Add 'self'
12781         argument.
12782
12783 2014-02-19  Tom Tromey  <tromey@redhat.com>
12784
12785         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12786         argument.
12787         (target_set_disconnected_tracing): Add argument.
12788         * target.c (update_current_target): Update.
12789         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12790
12791 2014-02-19  Tom Tromey  <tromey@redhat.com>
12792
12793         * target.h (struct target_ops)
12794         <to_get_min_fast_tracepoint_insn_len>: Add argument.
12795         (target_get_min_fast_tracepoint_insn_len): Add argument.
12796         * target.c (update_current_target): Update.
12797         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12798         argument.
12799
12800 2014-02-19  Tom Tromey  <tromey@redhat.com>
12801
12802         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12803         argument.
12804         (target_get_raw_trace_data): Add argument.
12805         * target.c (update_current_target): Update.
12806         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12807
12808 2014-02-19  Tom Tromey  <tromey@redhat.com>
12809
12810         * target.h (struct target_ops) <to_upload_trace_state_variables>:
12811         Add argument.
12812         (target_upload_trace_state_variables): Add argument.
12813         * target.c (update_current_target): Update.
12814         * remote.c (remote_upload_trace_state_variables): Add 'self'
12815         argument.
12816         (remote_start_remote): Update.
12817
12818 2014-02-19  Tom Tromey  <tromey@redhat.com>
12819
12820         * target.h (struct target_ops) <to_upload_tracepoints>: Add
12821         argument.
12822         (target_upload_tracepoints): Add argument.
12823         * target.c (update_current_target): Update.
12824         * remote.c (remote_upload_tracepoints): Add 'self' argument.
12825         (remote_start_remote): Update.
12826
12827 2014-02-19  Tom Tromey  <tromey@redhat.com>
12828
12829         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12830         (target_save_trace_data): Add argument.
12831         * target.c (update_current_target): Update.
12832         * remote.c (remote_save_trace_data): Add 'self' argument.
12833
12834 2014-02-19  Tom Tromey  <tromey@redhat.com>
12835
12836         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12837         argument.
12838         * target.h (struct target_ops)
12839         <to_get_trace_state_variable_value>: Add argument.
12840         (target_get_trace_state_variable_value): Add argument.
12841         * target.c (update_current_target): Update.
12842         * remote.c (remote_get_trace_state_variable_value): Add 'self'
12843         argument.
12844         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12845
12846 2014-02-19  Tom Tromey  <tromey@redhat.com>
12847
12848         * tracepoint.c (tfile_trace_find): Add 'self' argument.
12849         * target.h (struct target_ops) <to_trace_find>: Add argument.
12850         (target_trace_find): Add argument.
12851         * target.c (update_current_target): Update.
12852         * remote.c (remote_trace_find): Add 'self' argument.
12853         * ctf.c (ctf_trace_find): Add 'self' argument.
12854
12855 2014-02-19  Tom Tromey  <tromey@redhat.com>
12856
12857         * target.h (struct target_ops) <to_trace_stop>: Add argument.
12858         (target_trace_stop): Add argument.
12859         * target.c (update_current_target): Update.
12860         * remote.c (remote_trace_stop): Add 'self' argument.
12861
12862 2014-02-19  Tom Tromey  <tromey@redhat.com>
12863
12864         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12865         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12866         argument.
12867         (target_get_tracepoint_status): Add argument.
12868         * target.c (update_current_target): Update.
12869         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12870
12871 2014-02-19  Tom Tromey  <tromey@redhat.com>
12872
12873         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12874         * target.h (struct target_ops) <to_get_trace_status>: Add
12875         argument.
12876         (target_get_trace_status): Add argument.
12877         * target.c (update_current_target): Update.
12878         * remote.c (remote_get_trace_status): Add 'self' argument.
12879         (remote_start_remote, remote_can_download_tracepoint): Update.
12880         * ctf.c (ctf_get_trace_status): Add 'self' argument.
12881
12882 2014-02-19  Tom Tromey  <tromey@redhat.com>
12883
12884         * target.h (struct target_ops) <to_trace_start>: Add argument.
12885         (target_trace_start): Add argument.
12886         * target.c (update_current_target): Update.
12887         * remote.c (remote_trace_start): Add 'self' argument.
12888
12889 2014-02-19  Tom Tromey  <tromey@redhat.com>
12890
12891         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12892         Add argument.
12893         (target_trace_set_readonly_regions): Add argument.
12894         * target.c (update_current_target): Update.
12895         * remote.c (remote_trace_set_readonly_regions): Add 'self'
12896         argument.
12897
12898 2014-02-19  Tom Tromey  <tromey@redhat.com>
12899
12900         * target.h (struct target_ops) <to_disable_tracepoint>: Add
12901         argument.
12902         (target_disable_tracepoint): Add argument.
12903         * target.c (update_current_target): Update.
12904         * remote.c (remote_disable_tracepoint): Add 'self' argument.
12905
12906 2014-02-19  Tom Tromey  <tromey@redhat.com>
12907
12908         * target.h (struct target_ops) <to_enable_tracepoint>: Add
12909         argument.
12910         (target_enable_tracepoint): Add argument.
12911         * target.c (update_current_target): Update.
12912         * remote.c (remote_enable_tracepoint): Add 'self' argument.
12913
12914 2014-02-19  Tom Tromey  <tromey@redhat.com>
12915
12916         * target.h (struct target_ops) <to_download_trace_state_variable>:
12917         Add argument.
12918         (target_download_trace_state_variable): Add argument.
12919         * target.c (update_current_target): Update.
12920         * remote.c (remote_download_trace_state_variable): Add 'self'
12921         argument.
12922
12923 2014-02-19  Tom Tromey  <tromey@redhat.com>
12924
12925         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12926         argument.
12927         (target_can_download_tracepoint): Add argument.
12928         * target.c (update_current_target): Update.
12929         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12930
12931 2014-02-19  Tom Tromey  <tromey@redhat.com>
12932
12933         * target.h (struct target_ops) <to_download_tracepoint>: Add
12934         argument.
12935         (target_download_tracepoint): Add argument.
12936         * target.c (update_current_target): Update.
12937         * remote.c (remote_download_tracepoint): Add 'self' argument.
12938
12939 2014-02-19  Tom Tromey  <tromey@redhat.com>
12940
12941         * target.h (struct target_ops) <to_trace_init>: Add argument.
12942         (target_trace_init): Add argument.
12943         * target.c (update_current_target): Update.
12944         * remote.c (remote_trace_init): Add 'self' argument.
12945
12946 2014-02-19  Tom Tromey  <tromey@redhat.com>
12947
12948         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12949         * target.c (target_fileio_readlink): Add argument.
12950         * remote.c (remote_hostio_readlink): Add 'self' argument.
12951         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12952
12953 2014-02-19  Tom Tromey  <tromey@redhat.com>
12954
12955         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12956         * target.c (target_fileio_unlink): Add argument.
12957         * remote.c (remote_hostio_unlink): Add 'self' argument.
12958         (remote_file_delete): Update.
12959         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12960
12961 2014-02-19  Tom Tromey  <tromey@redhat.com>
12962
12963         * target.h (struct target_ops) <to_fileio_close>: Add argument.
12964         * target.c (target_fileio_close): Add argument.
12965         * remote.c (remote_hostio_close): Add 'self' argument.
12966         (remote_hostio_close_cleanup): Update.
12967         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12968         Update.
12969         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12970
12971 2014-02-19  Tom Tromey  <tromey@redhat.com>
12972
12973         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12974         * target.c (target_fileio_pread): Add argument.
12975         * remote.c (remote_hostio_pread): Add 'self' argument.
12976         (remote_bfd_iovec_pread, remote_file_get): Update.
12977         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12978
12979 2014-02-19  Tom Tromey  <tromey@redhat.com>
12980
12981         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12982         * target.c (target_fileio_pwrite): Add argument.
12983         * remote.c (remote_hostio_pwrite): Add 'self' argument.
12984         (remote_file_put): Update.
12985         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12986
12987 2014-02-19  Tom Tromey  <tromey@redhat.com>
12988
12989         * target.h (struct target_ops) <to_fileio_open>: Add argument.
12990         * target.c (target_fileio_open): Add argument.
12991         * remote.c (remote_hostio_open): Add 'self' argument.
12992         (remote_bfd_iovec_open): Add 'self' argument.
12993         (remote_file_put): Add 'self' argument.
12994         (remote_file_get): Add 'self' argument.
12995         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12996
12997 2014-02-19  Tom Tromey  <tromey@redhat.com>
12998
12999         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
13000         Add argument.
13001         (target_can_run_breakpoint_commands): Add argument.
13002         * target.c (update_current_target): Update.
13003         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
13004         argument.
13005         (remote_insert_breakpoint): Add 'self' argument.
13006         (remote_insert_hw_breakpoint): Add 'self' argument.
13007         (remote_can_run_breakpoint_commands): Add 'self' argument.
13008
13009 2014-02-19  Tom Tromey  <tromey@redhat.com>
13010
13011         * target.h (struct target_ops)
13012         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
13013         (target_supports_evaluation_of_breakpoint_conditions): Add
13014         argument.
13015         * target.c (update_current_target): Update.
13016         * remote.c (remote_supports_cond_breakpoints): Add 'self'
13017         argument.
13018         (remote_insert_breakpoint): Add 'self' argument.
13019         (remote_insert_hw_breakpoint): Add 'self' argument.
13020         (remote_supports_cond_breakpoints): Add 'self' argument.
13021
13022 2014-02-19  Tom Tromey  <tromey@redhat.com>
13023
13024         * target.h (struct target_ops) <to_supports_string_tracing>: Add
13025         argument.
13026         (target_supports_string_tracing): Add argument.
13027         * target.c (update_current_target): Update.
13028         * remote.c (remote_supports_string_tracing): Add 'self' argument.
13029
13030 2014-02-19  Tom Tromey  <tromey@redhat.com>
13031
13032         * target.h (struct target_ops)
13033         <to_supports_disable_randomization>: Add argument.
13034         * target.c (find_default_supports_disable_randomization): Add
13035         argument.
13036         (target_supports_disable_randomization): Add argument.
13037         (find_default_supports_disable_randomization): Add 'self'
13038         argument.
13039         * remote.c (extended_remote_supports_disable_randomization): Add
13040         'self' argument.
13041         (remote_supports_disable_randomization): Add 'self' argument.
13042         (extended_remote_create_inferior): Update.
13043         * linux-nat.c (linux_nat_supports_disable_randomization): Add
13044         'self' argument.
13045
13046 2014-02-19  Tom Tromey  <tromey@redhat.com>
13047
13048         * target.h (struct target_ops)
13049         <to_supports_enable_disable_tracepoint>: Add argument.
13050         (target_supports_enable_disable_tracepoint): Add argument.
13051         * target.c (update_current_target): Update.
13052         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
13053         argument.
13054
13055 2014-02-19  Tom Tromey  <tromey@redhat.com>
13056
13057         * target.h (struct target_ops) <to_supports_multi_process>: Add
13058         argument.
13059         (target_supports_multi_process): Add argument.
13060         * target.c (update_current_target): Update.
13061         * remote.c (remote_supports_multi_process): Add 'self' argument.
13062         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
13063         argument.
13064         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
13065         argument.
13066
13067 2014-02-19  Tom Tromey  <tromey@redhat.com>
13068
13069         * target.h (struct target_ops) <to_execution_direction>: Add
13070         argument.
13071         (target_execution_direction): Add argument.
13072         * target.c (default_execution_direction): Add 'self' argument.
13073         * record-full.c (record_full_execution_direction): Add 'self'
13074         argument.
13075
13076 2014-02-19  Tom Tromey  <tromey@redhat.com>
13077
13078         * target.h (struct target_ops) <to_can_execute_reverse>: Add
13079         argument.
13080         (target_can_execute_reverse): Add argument.
13081         * remote.c (remote_can_execute_reverse): Add 'self' argument.
13082         * record-full.c (record_full_can_execute_reverse): Add 'self'
13083         argument.
13084         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13085         argument.
13086
13087 2014-02-19  Tom Tromey  <tromey@redhat.com>
13088
13089         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13090         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13091         argument.
13092         (target_get_ada_task_ptid): Add argument.
13093         * target.c (update_current_target): Update.
13094         (default_get_ada_task_ptid): Add 'self' argument.
13095         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13096         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13097         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13098         argument.
13099         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13100         argument.
13101         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13102         argument.
13103         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13104         argument.
13105         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13106         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13107         argument.
13108
13109 2014-02-19  Tom Tromey  <tromey@redhat.com>
13110
13111         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13112         (target_goto_bookmark): Add argument.
13113         * target.c (dummy_goto_bookmark): Add 'self' argument.
13114         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13115
13116 2014-02-19  Tom Tromey  <tromey@redhat.com>
13117
13118         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13119         (target_get_bookmark): Add argument.
13120         * target.c (dummy_get_bookmark): Add 'self' argument.
13121         * record-full.c (record_full_get_bookmark): Add 'self' argument.
13122
13123 2014-02-19  Tom Tromey  <tromey@redhat.com>
13124
13125         * target.h (struct target_ops) <to_make_corefile_notes>: Add
13126         argument.
13127         (target_make_corefile_notes): Add argument.
13128         * target.c (dummy_make_corefile_notes): Add 'self' argument.
13129         * procfs.c (procfs_make_note_section): Add 'self' argument.
13130         (procfs_make_note_section): Add 'self' argument.
13131         (procfs_make_note_section): Add 'self' argument.
13132         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13133         argument.
13134         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13135         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13136         * exec.c (exec_make_note_section): Add 'self' argument.
13137         (exec_make_note_section): Add 'self' argument.
13138
13139 2014-02-19  Tom Tromey  <tromey@redhat.com>
13140
13141         * target.h (struct target_ops) <to_find_memory_regions>: Add
13142         argument.
13143         (target_find_memory_regions): Add argument.
13144         * target.c (dummy_find_memory_regions): Add 'self' argument.
13145         * procfs.c (proc_find_memory_regions): Add 'self' argument.
13146         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13147         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13148         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13149         * exec. (exec_do_find_memory_regions): New global.
13150         (exec_set_find_memory_regions): Rewrite.
13151         (exec_find_memory_regions): New function.
13152         (init_exec_ops): Use exec_find_memory_regions.
13153
13154 2014-02-19  Tom Tromey  <tromey@redhat.com>
13155
13156         * target.h (struct target_ops) <to_supports_non_stop>: Add
13157         argument.
13158         * target.c (find_default_supports_non_stop): Add argument.
13159         (target_supports_non_stop): Add argument.
13160         (find_default_supports_non_stop): Add 'self' argument.
13161         * remote.c (remote_supports_non_stop): Add 'self' argument.
13162         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13163
13164 2014-02-19  Tom Tromey  <tromey@redhat.com>
13165
13166         * target.h (struct target_ops) <to_log_command>: Add argument.
13167         (target_log_command): Add argument.
13168         * serial.h (serial_log_command): Add 'self' argument.
13169         * serial.c (serial_log_command): Add 'self' argument.
13170
13171 2014-02-19  Tom Tromey  <tromey@redhat.com>
13172
13173         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13174         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13175         argument.
13176         (target_pid_to_exec_file): Add argument.
13177         * target.c (debug_to_pid_to_exec_file): Add argument.
13178         (update_current_target): Update.
13179         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13180         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13181         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13182         (linux_handle_extended_wait): Update.
13183         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13184         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13185         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13186         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13187
13188 2014-02-19  Tom Tromey  <tromey@redhat.com>
13189
13190         * target.h (struct target_ops) <to_rcmd>: Add argument.
13191         (target_rcmd): Add argument.
13192         * target.c (debug_to_rcmd): Add argument.
13193         (update_current_target, do_monitor_command): Update.
13194         * remote.c (remote_rcmd): Add 'self' argument.
13195         * monitor.c (monitor_rcmd): Add 'self' argument.
13196
13197 2014-02-19  Tom Tromey  <tromey@redhat.com>
13198
13199         * windows-nat.c (windows_stop): Add 'self' argument.
13200         * target.h (struct target_ops) <to_stop>: Add argument.
13201         * target.c (target_stop): Add argument.
13202         (debug_to_stop): Add argument.
13203         (update_current_target): Update.
13204         * remote.c (remote_stop): Add 'self' argument.
13205         * remote-sim.c (gdbsim_stop): Add 'self' argument.
13206         (gdbsim_cntrl_c): Update.
13207         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13208         * procfs.c (procfs_stop): Add 'self' argument.
13209         * nto-procfs.c (procfs_stop): Add 'self' argument.
13210         * monitor.c (monitor_stop): Add 'self' argument.
13211         (monitor_open): Update.
13212         * linux-nat.c (linux_nat_stop): Add argument.
13213         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13214         * gnu-nat.c (gnu_stop): Add 'self' argument.
13215         * darwin-nat.c (darwin_stop): Add 'self' argument.
13216
13217 2014-02-19  Tom Tromey  <tromey@redhat.com>
13218
13219         * target.h (struct target_ops) <to_thread_name>: Add argument.
13220         * target.c (target_thread_name): Add argument.
13221         (update_current_target): Update.
13222         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13223
13224 2014-02-19  Tom Tromey  <tromey@redhat.com>
13225
13226         * target.h (struct target_ops) <to_extra_thread_info>: Add
13227         argument.
13228         (target_extra_thread_info): Add argument.
13229         * target.c (update_current_target): Update.
13230         * remote.c (remote_threads_extra_info): Add 'self' argument.
13231         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13232         argument.
13233         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13234         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13235         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13236         argument.
13237         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13238         argument.
13239         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13240         argument.
13241         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13242         argument.
13243
13244 2014-02-19  Tom Tromey  <tromey@redhat.com>
13245
13246         * target.h (struct target_ops) <to_program_signals>: Add argument.
13247         * target.c (target_program_signals): Add argument.
13248         * remote.c (remote_program_signals): Add 'self' argument.
13249
13250 2014-02-19  Tom Tromey  <tromey@redhat.com>
13251
13252         * target.h (struct target_ops) <to_pass_signals>: Add argument.
13253         * target.c (target_pass_signals): Add argument.
13254         * remote.c (remote_pass_signals): Add 'self' argument.
13255         (remote_start_remote): Update.
13256         * procfs.c (procfs_pass_signals): Add 'self' argument.
13257         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13258         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13259         (linux_nat_create_inferior, linux_nat_attach): Update.
13260
13261 2014-02-19  Tom Tromey  <tromey@redhat.com>
13262
13263         * windows-nat.c (windows_can_run): Add 'self' argument.
13264         * target.h (struct target_ops) <to_can_run>: Add argument.
13265         (target_can_run): Add argument.
13266         * target.c (debug_to_can_run): Add argument.
13267         (update_current_target): Update.
13268         * nto-procfs.c (procfs_can_run): Add 'self' argument.
13269         * inf-child.c (inf_child_can_run): Add 'self' argument.
13270         * go32-nat.c (go32_can_run): Add 'self' argument.
13271
13272 2014-02-19  Tom Tromey  <tromey@redhat.com>
13273
13274         * target.h (struct target_ops) <to_has_exited>: Add argument.
13275         (target_has_exited): Add argument.
13276         * target.c (debug_to_has_exited): Add argument.
13277         (update_current_target): Update.
13278
13279 2014-02-19  Tom Tromey  <tromey@redhat.com>
13280
13281         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13282         argument.
13283         (target_set_syscall_catchpoint): Add argument.
13284         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13285         argument.
13286         * target.c (update_current_target): Update.
13287
13288 2014-02-19  Tom Tromey  <tromey@redhat.com>
13289
13290         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13291         argument.
13292         (target_remove_exec_catchpoint): Add argument.
13293         * target.c (debug_to_remove_exec_catchpoint): Add argument.
13294         (update_current_target): Update.
13295         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13296         argument.
13297
13298 2014-02-19  Tom Tromey  <tromey@redhat.com>
13299
13300         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13301         argument.
13302         (target_insert_exec_catchpoint): Add argument.
13303         * target.c (debug_to_insert_exec_catchpoint): Add argument.
13304         (update_current_target): Update.
13305         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13306         argument.
13307
13308 2014-02-19  Tom Tromey  <tromey@redhat.com>
13309
13310         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13311         argument.
13312         (target_remove_vfork_catchpoint): Add argument.
13313         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13314         (update_current_target): Update.
13315         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13316         argument.
13317
13318 2014-02-19  Tom Tromey  <tromey@redhat.com>
13319
13320         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13321         argument.
13322         (target_insert_vfork_catchpoint): Add argument.
13323         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13324         (update_current_target): Update.
13325         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13326         argument.
13327
13328 2014-02-19  Tom Tromey  <tromey@redhat.com>
13329
13330         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13331         argument.
13332         (target_remove_fork_catchpoint): Add argument.
13333         * target.c (debug_to_remove_fork_catchpoint): Add argument.
13334         (update_current_target): Update.
13335         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13336         argument.
13337
13338 2014-02-19  Tom Tromey  <tromey@redhat.com>
13339
13340         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13341         argument.
13342         (target_insert_fork_catchpoint): Add argument.
13343         * target.c (debug_to_insert_fork_catchpoint): Add argument.
13344         (update_current_target): Update.
13345         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13346         argument.
13347
13348 2014-02-19  Tom Tromey  <tromey@redhat.com>
13349
13350         * target.h (struct target_ops) <to_post_startup_inferior>: Add
13351         argument.
13352         (target_post_startup_inferior): Add argument.
13353         * target.c (debug_to_post_startup_inferior): Add argument.
13354         (update_current_target): Update.
13355         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13356         argument.
13357         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13358         argument.
13359         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13360         argument.
13361         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13362         argument.
13363         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13364         'self' argument.
13365         (super_post_startup_inferior): Likewise.
13366         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13367         'self' argument.
13368         (super_post_startup_inferior): Likewise.
13369         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13370         Add 'self' argument.
13371         (super_post_startup_inferior): Likewise.
13372
13373 2014-02-19  Tom Tromey  <tromey@redhat.com>
13374
13375         * target.h (struct target_ops) <to_load>: Add argument.
13376         * target.c (target_load): Add argument.
13377         (debug_to_load): Add argument.
13378         (update_current_target): Update.
13379         * remote.c (remote_load): Add 'self' argument.
13380         * remote-sim.c (gdbsim_load): Add 'self' argument.
13381         * remote-mips.c (mips_load): Add 'self' argument.
13382         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13383         * monitor.c (monitor_load): Add 'self' argument.
13384         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13385
13386 2014-02-19  Tom Tromey  <tromey@redhat.com>
13387
13388         * target.h (struct target_ops) <to_terminal_info>: Add argument.
13389         (target_terminal_info): Add argument.
13390         * target.c (debug_to_terminal_info): Add argument.
13391         (default_terminal_info): Likewise.
13392         * inflow.c (child_terminal_info): Add 'self' argument.
13393         * inferior.h (child_terminal_info): Add 'self' argument.
13394         * go32-nat.c (go32_terminal_info): Add 'self' argument.
13395
13396 2014-02-19  Tom Tromey  <tromey@redhat.com>
13397
13398         * target.h (struct target_ops) <to_terminal_save_ours>: Add
13399         argument.
13400         (target_terminal_save_ours): Add argument.
13401         * target.c (debug_to_terminal_save_ours): Add argument.
13402         (update_current_target): Update.
13403         * inflow.c (terminal_save_ours): Add 'self' argument.
13404         * inferior.h (terminal_save_ours): Add 'self' argument.
13405
13406 2014-02-19  Tom Tromey  <tromey@redhat.com>
13407
13408         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13409         (target_terminal_ours): Add argument.
13410         * target.c (debug_to_terminal_ours): Add argument.
13411         (update_current_target): Update.
13412         * remote.c (remote_terminal_ours): Add 'self' argument.
13413         (remote_close): Update.
13414         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13415         * inflow.c (terminal_ours): Add 'self' argument.
13416         * inferior.h (terminal_ours): Add 'self' argument.
13417         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13418
13419 2014-02-19  Pedro Alves  <palves@redhat.com>
13420             Tom Tromey  <tromey@redhat.com>
13421
13422         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13423         argument.
13424         (target_terminal_ours_for_output): Add argument.
13425         * target.c (debug_to_terminal_ours_for_output): Add argument.
13426         (update_current_target): Update.
13427         * inflow.c (terminal_ours_for_output): Add 'self' argument.
13428         * inferior.h (terminal_ours_for_output): Add 'self' argument.
13429         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13430
13431 2014-02-19  Tom Tromey  <tromey@redhat.com>
13432
13433         * target.h (struct target_ops) <to_terminal_inferior>: Add
13434         argument.
13435         * target.c (target_terminal_inferior): Add argument.
13436         (update_current_target): Update.
13437         * remote.c (remote_terminal_inferior): Add 'self' argument.
13438         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13439         * inflow.c (terminal_inferior): Add 'self' argument.
13440         * inferior.h (terminal_inferior): Add 'self' argument.
13441         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13442         (go32_terminal_inferior): Add 'self' argument.
13443
13444 2014-02-19  Tom Tromey  <tromey@redhat.com>
13445
13446         * target.h (struct target_ops) <to_terminal_init>: Add argument.
13447         (target_terminal_init): Add argument.
13448         * target.c (debug_to_terminal_init): Add argument.
13449         (update_current_target): Update.
13450         * inflow.c (terminal_init_inferior): Add 'self' argument.
13451         * inferior.h (terminal_init_inferior): Add 'self' argument.
13452         * go32-nat.c (go32_terminal_init): Add 'self' argument.
13453         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13454
13455 2014-02-19  Tom Tromey  <tromey@redhat.com>
13456
13457         * target.h (struct target_ops)
13458         <to_can_accel_watchpoint_condition>: Add argument.
13459         (target_can_accel_watchpoint_condition): Add argument.
13460         * target.c (debug_to_can_accel_watchpoint_condition): Add
13461         argument.
13462         (update_current_target): Update.
13463         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13464         'self' argument.
13465
13466 2014-02-19  Tom Tromey  <tromey@redhat.com>
13467
13468         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13469         Add argument.
13470         (target_region_ok_for_hw_watchpoint): Add argument.
13471         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13472         (default_region_ok_for_hw_watchpoint): Add argument.
13473         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13474         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13475         argument.
13476         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13477         argument.
13478         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13479         argument.
13480         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13481         'self' argument.
13482         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13483         'self' argument.
13484         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13485         'self' argument.
13486         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13487         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13488         'self' argument.
13489         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13490         Add 'self' argument.
13491
13492 2014-02-19  Tom Tromey  <tromey@redhat.com>
13493
13494         * target.h (struct target_ops) <to_insert_watchpoint>: Add
13495         argument.
13496         (target_insert_watchpoint): Add argument.
13497         * target.c (debug_to_insert_watchpoint): Add argument.
13498         (update_current_target): Update.
13499         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13500         * remote.c (remote_insert_watchpoint): Add 'self' argument.
13501         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13502         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13503         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13504         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13505         argument.
13506         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13507         (procfs_insert_hw_watchpoint): Add 'self' argument.
13508         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13509         argument.
13510         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13511         argument.
13512         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13513         argument.
13514         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13515         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13516         argument.
13517         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13518         'self' argument.
13519
13520 2014-02-19  Tom Tromey  <tromey@redhat.com>
13521
13522         * target.h (struct target_ops) <to_remove_watchpoint>: Add
13523         argument.
13524         (target_remove_watchpoint): Add argument.
13525         * target.c (debug_to_remove_watchpoint): Add argument.
13526         (update_current_target): Update.
13527         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13528         * remote.c (remote_remove_watchpoint): Add 'self' argument.
13529         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13530         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13531         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13532         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13533         argument.
13534         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13535         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13536         argument.
13537         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13538         argument.
13539         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13540         argument.
13541         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13542         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13543         argument.
13544         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13545         'self' argument.
13546
13547 2014-02-19  Tom Tromey  <tromey@redhat.com>
13548
13549         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13550         argument.
13551         (target_remove_hw_breakpoint): Add argument.
13552         * target.c (debug_to_remove_hw_breakpoint): Add argument.
13553         (update_current_target): Update.
13554         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13555         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13556         argument.
13557         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13558         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13559         argument.
13560         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13561         'self' argument.
13562
13563 2014-02-19  Tom Tromey  <tromey@redhat.com>
13564
13565         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13566         argument.
13567         (target_insert_hw_breakpoint): Add argument.
13568         * target.c (debug_to_insert_hw_breakpoint): Add argument.
13569         (update_current_target): Update.
13570         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13571         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13572         argument.
13573         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13574         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13575         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13576         argument.
13577         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13578         'self' argument.
13579
13580 2014-02-19  Tom Tromey  <tromey@redhat.com>
13581
13582         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13583         argument.
13584         (target_can_use_hardware_watchpoint): Add argument.
13585         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13586         (update_current_target): Update.
13587         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13588         argument.
13589         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13590         argument.
13591         * remote.c (remote_check_watch_resources): Add 'self' argument.
13592         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13593         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13594         argument.
13595         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13596         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13597         argument.
13598         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13599         argument.
13600         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13601         argument.
13602         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13603         argument.
13604         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13605         argument.
13606         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13607         argument.
13608         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13609         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13610         argument.
13611         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13612         'self' argument.
13613
13614 2014-02-19  Tom Tromey  <tromey@redhat.com>
13615
13616         * target.h (struct target_ops) <to_post_attach>: Add argument.
13617         (target_post_attach): Add argument.
13618         * target.c (debug_to_post_attach): Add argument.
13619         (update_current_target): Update.
13620         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13621         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13622         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13623         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13624         * inf-child.c (inf_child_post_attach): Add 'self' argument.
13625
13626 2014-02-19  Tom Tromey  <tromey@redhat.com>
13627
13628         * windows-nat.c (windows_close): Add 'self' argument.
13629         * tracepoint.c (tfile_close): Add 'self' argument.
13630         * target.h (struct target_ops) <to_close>: Add argument.
13631         * target.c (target_close): Add argument.
13632         (update_current_target): Update.
13633         * remote.c (remote_close): Add 'self' argument.
13634         * remote-sim.c (gdbsim_close): Add 'self' argument.
13635         * remote-mips.c (mips_close): Add 'self' argument.
13636         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13637         * record-full.c (record_full_close): Add 'self' argument.
13638         * record-btrace.c (record_btrace_close): Add 'self' argument.
13639         * monitor.h (monitor_close): Add 'self' argument.
13640         * monitor.c (monitor_close): Add 'self' argument.
13641         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13642         * linux-nat.c (linux_nat_close): Add argument.
13643         * go32-nat.c (go32_close): Add 'self' argument.
13644         * exec.c (exec_close_1): Add 'self' argument.
13645         * ctf.c (ctf_close): Add 'self' argument.
13646         * corelow.c (core_close): Add 'self' argument.
13647         (core_close_cleanup): Update.
13648         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13649         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13650
13651 2014-02-19  Tom Tromey  <tromey@redhat.com>
13652
13653         * remote.c (remote_load): New function.
13654         (init_remote_ops): Use it.
13655
13656 2014-02-19  Tom Tromey  <tromey@redhat.com>
13657
13658         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13659         argument.
13660         * common/linux-btrace.h (linux_supports_btrace): Update.
13661         * remote.c (remote_supports_btrace): Add "self" argument.
13662         * target-delegates.c: Rebuild.
13663         * target.c (target_supports_btrace): Remove.
13664         * target.h (struct target_ops) <to_supports_btrace>: Add
13665         target_ops argument.
13666         (target_supports_btrace): New define.
13667
13668 2014-02-19  Tom Tromey  <tromey@redhat.com>
13669
13670         * record-full.c (record_full_beneath_to_resume_ops)
13671         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13672         (record_full_beneath_to_wait)
13673         (record_full_beneath_to_store_registers_ops)
13674         (record_full_beneath_to_store_registers)
13675         (record_full_beneath_to_xfer_partial_ops)
13676         (record_full_beneath_to_xfer_partial)
13677         (record_full_beneath_to_insert_breakpoint_ops)
13678         (record_full_beneath_to_insert_breakpoint)
13679         (record_full_beneath_to_remove_breakpoint_ops)
13680         (record_full_beneath_to_remove_breakpoint)
13681         (record_full_beneath_to_stopped_by_watchpoint)
13682         (record_full_beneath_to_stopped_data_address)
13683         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13684         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13685         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13686         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13687         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13688         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13689         (tmp_to_stopped_data_address, tmp_to_async): Remove.
13690         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
13691         (record_full_resume, record_full_wait_1)
13692         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13693         (record_full_store_registers, record_full_xfer_partial)
13694         (record_full_insert_breakpoint, record_full_remove_breakpoint)
13695         (record_full_async, record_full_core_xfer_partial): Use target
13696         delegation.
13697         * target-delegates.c: Rebuild.
13698         * target.c (current_xfer_partial): Remove.
13699         (update_current_target): Do not INHERIT or de_fault
13700         to_insert_breakpoint, to_remove_breakpoint,
13701         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13702         to_is_async_p, to_async.  Do not set to_xfer_partial field.
13703         (default_xfer_partial): Simplify.
13704         (current_xfer_partial): Remove.
13705         (target_wait, target_resume): Simplify.
13706         (find_default_can_async_p, find_default_is_async_p): Update.
13707         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13708         to_xfer_partial, to_stopped_by_watchpoint,
13709         to_stopped_data_address.
13710         (target_store_registers): Simplify.
13711         (forward_target_remove_breakpoint)
13712         (forward_target_insert_breakpoint): Remove.
13713         (target_remove_breakpoint, target_insert_breakpoint)
13714         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13715         * target.h (struct target_ops) <to_resume, to_wait,
13716         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13717         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13718         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13719         markup.
13720         (forward_target_remove_breakpoint)
13721         (forward_target_insert_breakpoint): Remove.
13722         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13723         directly.
13724         (record_btrace_insert_breakpoint): Delegate directly.
13725
13726 2014-02-19  Tom Tromey  <tromey@redhat.com>
13727
13728         PR build/7701:
13729         * target-delegates.c: New file.
13730         * target.c: Include target-delegates.c.
13731         (init_dummy_target): Call install_dummy_methods.
13732         (complete_target_initialization): Call install_delegators.
13733         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13734         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13735         * make-target-delegates: New file.
13736
13737 2014-02-19  Tom Tromey  <tromey@redhat.com>
13738
13739         * record.c (find_record_target): Use find_target_at.
13740         * target.c (find_target_at): New function.
13741         * target.h (find_target_at): Declare.
13742
13743 2014-02-19  Tom Tromey  <tromey@redhat.com>
13744
13745         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13746         Add 'ops' argument.
13747         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13748         'ops' argument.
13749         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13750         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13751         'ops' argument.
13752         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13753         argument.
13754         * linux-nat.c (save_sigtrap): Update.
13755         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13756         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13757         (linux_nat_close): Update.
13758         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13759         argument.
13760         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13761         argument.
13762         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13763         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13764         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13765         (tmp_to_async): Add 'ops' argument.
13766         (record_full_stopped_by_watchpoint, record_full_async)
13767         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13768         argument.
13769         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13770         (m32r_stopped_by_watchpoint): Add 'ops' argument.
13771         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13772         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13773         (remote_is_async_p, remote_async): Add 'ops' argument.
13774         (remote_stopped_data_address): Update.
13775         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13776         * target.c (update_current_target)
13777         (find_default_can_async_p, find_default_is_async_p): Update.
13778         (init_dummy_target): Update.
13779         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13780         * target.h (struct target_ops) <to_stopped_by_watchpoint,
13781         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13782         (target_can_async_p, target_is_async_p, target_async)
13783         (target_stopped_by_watchpoint): Update.
13784
13785 2014-02-19  Yao Qi  <yao@codesourcery.com>
13786
13787         PR gdb/16220
13788         * gdbarch.sh: Remove startup_gdbarch.
13789         * gdbarch.c: Regenerated.
13790         * gdbarch.h: Likewise.
13791
13792 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
13793
13794         * rl78-tdep.c (rl78_g10_register_name): New function.
13795         (rl78_return_value): Add g10 support.
13796         (rl78_gdbarch_init): Register rl78_g10_register_name for the
13797         g10.
13798
13799 2014-02-17  Doug Evans  <xdje42@gmail.com>
13800
13801         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13802         (SUBDIR_GUILE_SRCS): Ditto.
13803         (scm-gsmob.o): Ditto.
13804
13805 2014-02-17  Yao Qi  <yao@codesourcery.com>
13806
13807         * gnu-nat.c (ILL_RPC): Declare defined function.
13808
13809 2014-02-17  Yao Qi  <yao@codesourcery.com>
13810
13811         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13812         mach_msg_type_number_t.
13813         (gnu_write_inferior): Likewise.
13814
13815 2014-02-17  Yao Qi  <yao@codesourcery.com>
13816
13817         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13818         in format string.
13819         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13820         (inf_validate_procs, inf_signal): Likewise.
13821         (S_exception_raise_request): Likewise.
13822         (do_mach_notify_dead_name): Likewise.
13823         (steal_exc_port): Likewise.
13824         (gnu_read_inferior): Change 'copy_count''s type to
13825         mach_msg_type_number_t.
13826         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
13827         format string.
13828
13829 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
13830
13831         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13832         flag.  Adjust all users; in particular...
13833         (gnu_wait): ..., don't decrement its value in here...
13834         (gnu_create_inferior): ..., and instead set the flag in here,
13835         around the startup_inferior call, and call that one with
13836         START_INFERIOR_TRAPS_EXPECTED.
13837
13838         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13839         (ILL_RPC): ... new macro.
13840         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13841         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13842         (do_mach_notify_send_once, S_proc_setmsgport_reply)
13843         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13844         functions with ILL_RPC macro.
13845         (S_proc_pid2task_reply, S_proc_task2pid_reply)
13846         (S_proc_task2proc_reply, S_proc_proc2task_reply)
13847         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13848         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13849         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13850         (S_proc_getlogin_reply, S_proc_getsid_reply)
13851         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13852         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13853         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13854         (S_proc_getnports_reply, S_proc_is_important_reply)
13855         (S_proc_get_code_reply): New stub functions, generated with
13856         ILL_RPC macro.
13857
13858         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13859         collected the type check structures.
13860
13861         * reply_mig_hack.awk: Don't expect to see the auto keyword.
13862
13863 2014-02-14  Doug Evans  <dje@google.com>
13864
13865         * target.c (target_write_partial): Fix result type.
13866
13867 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
13868
13869         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13870         the proper offsets to access fpregset_t.
13871
13872 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
13873
13874         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13875         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13876         * h8300-tdep.c (setmachinelist): Remove global.
13877         * hppa-tdep.c (hppa_sigtramp): Remove global.
13878         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13879         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13880         * ravenscar-thread.c (update_target_observer): Remove global.
13881         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13882
13883 2014-02-12  Tom Tromey  <tromey@redhat.com>
13884
13885         * common/rsp-low.c: Update comments.
13886         * common/rsp-low.h: Update comments.
13887
13888 2014-02-12  Tom Tromey  <tromey@redhat.com>
13889
13890         * common/rsp-low.c (convert_ascii_to_int): Remove.
13891         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13892
13893 2014-02-12  Tom Tromey  <tromey@redhat.com>
13894
13895         * common/rsp-low.h (unhexify): Don't declare.
13896         * common/rsp-low.c (unhexify): Remove.
13897
13898 2014-02-12  Tom Tromey  <tromey@redhat.com>
13899
13900         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13901         * common/rsp-low.c (convert_int_to_ascii): Remove.
13902
13903 2014-02-12  Tom Tromey  <tromey@redhat.com>
13904
13905         * common/rsp-low.h (hexify): Don't declare.
13906         * common/rsp-low.c (hexify): Remove.
13907
13908 2014-02-12  Tom Tromey  <tromey@redhat.com>
13909
13910         * common/rsp-low.c (hexify): Never take strlen of argument.
13911
13912 2014-02-12  Tom Tromey  <tromey@redhat.com>
13913
13914         * common/rsp-low.c (bin2hex): Never take strlen of argument.
13915         * remote.c (extended_remote_run, remote_rcmd)
13916         (remote_download_trace_state_variable, remote_save_trace_data)
13917         (remote_set_trace_notes): Update.
13918         * tracepoint.c (encode_source_string, tfile_write_status)
13919         (tfile_write_uploaded_tsv): Update.
13920
13921 2014-02-12  Tom Tromey  <tromey@redhat.com>
13922
13923         * tracepoint.c: Include rsp-low.h.
13924         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13925         * remote.c: Include rsp-low.h.
13926         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13927         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13928         (remote_unescape_input): Move to common/rsp-low.c.
13929         * common/rsp-low.h: New file.
13930         * common/rsp-low.c: New file.
13931         * Makefile.in (SFILES): Add common/rsp-low.c.
13932         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13933         (COMMON_OBS): Add rsp-low.o.
13934         (rsp-low.o): New target.
13935
13936 2014-02-12  Tom Tromey  <tromey@redhat.com>
13937
13938         * utils.h: Include print-utils.h.
13939         (host_address_to_string, plongest, pulongest, phex, phex_nz)
13940         (int_string, core_addr_to_string, core_addr_to_string_nz)
13941         (hex_string, hex_string_custom): Don't declare.
13942         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13943         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13944         (hex_string_custom, int_string, core_addr_to_string)
13945         (core_addr_to_string_nz, host_address_to_string): Move to
13946         common/print-utils.c.
13947         * common/print-utils.h: New file.
13948         * common/print-utils.c: New file
13949         * Makefile.in (SFILES): Add common/print-utils.c.
13950         (HFILES_NO_SRCDIR): Add common/print-utils.h.
13951         (COMMON_OBS): Add print-utils.o.
13952         (print-utils.o): New target.
13953
13954 2014-02-12  Tom Tromey  <tromey@redhat.com>
13955
13956         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13957
13958 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
13959
13960         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13961
13962 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
13963
13964         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13965         if a PT_IO ptrace request returns sucessfully but indicates that 0
13966         bytes were transferred.
13967
13968 2014-02-12  Pedro Alves  <palves@redhat.com>
13969             Kevin Buettner <kevinb@redhat.com>
13970
13971         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13972         TYPE_INSTANCE_FLAG_CODE_SPACE.
13973
13974 2014-02-12  Pedro Alves  <palves@redhat.com>
13975
13976         * h8300-tdep.c (pseudo_from_raw_register)
13977         (raw_from_pseudo_register): New functions.
13978         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13979         them.
13980
13981 2014-02-12  Pedro Alves  <palves@redhat.com>
13982
13983         * h8300-tdep.c (h8300_register_sim_regno): New function.
13984         (h8300_gdbarch_init): Install h8300_register_sim_regno as
13985         gdbarch_register_sim_regno hook.
13986
13987 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
13988
13989         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13990
13991 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
13992
13993         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13994
13995 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
13996
13997         * obsd-tdep.h (obsd_init_abi): New prototype.
13998         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13999         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
14000         (obsd_init_abi): New functions.
14001         * i386obsd-tdep.c: Include "obsd-tdep.h".
14002         (i386obsd_init_abi): Call obsd_init_abi.
14003         * amd64obsd-tdep.c: Include "obsd-tdep.h".
14004         (amd64obsd_init_abi): Call obsd_init_abi.
14005         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
14006         obsd-tdep.c to gdb_target_obs.
14007
14008 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
14009
14010         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
14011         double float arguments to 16-byte in the argument slots.
14012
14013 2014-02-11  Doug Evans  <xdje42@gmail.com>
14014
14015         * configure.ac: Don't crash if pkg-config is not found and guile
14016         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
14017         in guile checks.
14018         * configure: Regenerate.
14019
14020 2014-02-11  Yao Qi  <yao@codesourcery.com>
14021
14022         * aix-thread.c (aix_thread_xfer_partial): Update comments.
14023         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
14024         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14025         * gnu-nat.c (gnu_xfer_memory): Likewise.
14026         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
14027         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14028         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14029         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14030
14031 2014-02-11  Yao Qi  <yao@codesourcery.com>
14032
14033         * target.h (enum target_xfer_error): Rename to ...
14034         (enum target_xfer_status): ... it.  New.  All users updated.
14035         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
14036         New.
14037         (TARGET_XFER_STATUS_ERROR_P): New macro.
14038         (target_xfer_error_to_string): Remove declaration.
14039         (target_xfer_status_to_string): Declare.
14040         (target_xfer_partial_ftype): Adjust it.
14041         (struct target_ops) <to_xfer_partial>: Return
14042         target_xfer_status.  Add argument xfered_len.  Update
14043         comments.
14044         * target.c (target_xfer_error_to_string): Rename to ...
14045         (target_xfer_status_to_string): ... it.  New.  All callers
14046         updated.
14047         (target_read_live_memory): Likewise.  Call target_xfer_partial
14048         instead of target_read.
14049         (memory_xfer_live_readonly_partial): Return
14050         target_xfer_status.  Add argument xfered_len.
14051         (raw_memory_xfer_partial): Likewise.
14052         (memory_xfer_partial_1): Likewise.
14053         (memory_xfer_partial): Likewise.
14054         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
14055         properly.  Update debug message.
14056         (default_xfer_partial, current_xfer_partial): Likewise.
14057         (target_write_partial): Likewise.
14058         (target_read_partial): Likewise.  All callers updated.
14059         (read_whatever_is_readable): Likewise.
14060         (target_write_with_progress): Likewise.
14061         (target_read_alloc_1): Likewise.
14062
14063         * aix-thread.c (aix_thread_xfer_partial): Likewise.
14064         * auxv.c (procfs_xfer_auxv): Likewise.
14065         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
14066         * bfd-target.c (target_bfd_xfer_partial): Likewise.
14067         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14068         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
14069         * corefile.c (read_memory): Adjust.
14070         * corelow.c (core_xfer_partial): Likewise.
14071         * ctf.c (ctf_xfer_partial): Likewise.
14072         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
14073         updated.
14074         (darwin_xfer_partial): Likewise.
14075         * exec.c (section_table_xfer_memory_partial): Likewise.  All
14076         callers updated.
14077         (exec_xfer_partial): Likewise.
14078         * exec.h (section_table_xfer_memory_partial): Update
14079         declaration.
14080         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
14081         negative.
14082         (gnu_xfer_partial): Likewise.
14083         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14084         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14085         (ia64_hpux_xfer_solib_got): Likewise.
14086         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
14087         type of 'partial_len' to ULONGEST.
14088         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14089         * linux-nat.c (linux_xfer_siginfo ): Likewise.
14090         (linux_nat_xfer_partial): Likewise.
14091         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14092         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14093         * monitor.c (monitor_xfer_memory): Likewise.
14094         (monitor_xfer_partial): Likewise.
14095         * procfs.c (procfs_xfer_partial): Likewise.
14096         * record-btrace.c (record_btrace_xfer_partial): Likewise.
14097         * record-full.c (record_full_xfer_partial): Likewise.
14098         (record_full_core_xfer_partial): Likewise.
14099         * remote-sim.c (gdbsim_xfer_memory): Likewise.
14100         (gdbsim_xfer_partial): Likewise.
14101         * remote.c (remote_write_bytes_aux): Likewise.  All callers
14102         updated.
14103         (remote_write_bytes, remote_read_bytes): Likewise.  All
14104         callers updated.
14105         (remote_flash_erase): Likewise.  All callers updated.
14106         (remote_write_qxfer): Likewise.  All callers updated.
14107         (remote_read_qxfer): Likewise.  All callers updated.
14108         (remote_xfer_partial): Likewise.
14109         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14110         (rs6000_xfer_shared_libraries): Likewise.
14111         * sol-thread.c (sol_thread_xfer_partial): Likewise.
14112         (sol_thread_xfer_partial): Likewise.
14113         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14114         (sparc_xfer_partial): Likewise.
14115         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
14116         updated.
14117         (spu_xfer_partial): Likewise.
14118         * spu-multiarch.c (spu_xfer_partial): Likewise.
14119         * tracepoint.c (tfile_xfer_partial): Likewise.
14120         * windows-nat.c (windows_xfer_memory): Likewise.
14121         (windows_xfer_shared_libraries): Likewise.
14122         (windows_xfer_partial): Likewise.
14123         * valprint.c: Replace 'target_xfer_error' with
14124         'target_xfer_status' in comments.
14125
14126 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
14127
14128         Checked in by Joel Brobecker <brobecker@adacore.com>.
14129         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14130
14131 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
14132
14133         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14134         function parameters.
14135
14136 2014-02-10  Will Newton  <will.newton@linaro.org>
14137
14138         * elfread.c (elf_rel_plt_read): Look for a .got section if
14139         looking up .got.plt fails.
14140         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14141         on address passed to elf_gnu_ifunc_record_cache.
14142         (elf_gnu_ifunc_resolve_addr): Likewise.
14143         (elf_gnu_ifunc_resolver_return_stop): Likewise.
14144
14145 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
14146
14147         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14148         (X_RETTURN): New macro.
14149         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14150
14151         * sparc64-tdep.c (sparc64_init_abi): Hook
14152         sparc_in_function_epilogue_p.
14153
14154 2014-02-10  Gary Benson  <gbenson@redhat.com>
14155
14156         * symfile-debug.c (debug_qf_expand_symtabs_matching):
14157         Rename name_matcher to symbol_matcher.
14158
14159 2014-02-10  Gary Benson  <gbenson@redhat.com>
14160
14161         * symfile-debug.c (debug_qf_expand_symtabs_matching):
14162         Use expand_symtabs_file_matcher_ftype and
14163         expand_symtabs_symbol_matcher_ftype.
14164
14165 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
14166
14167         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14168         (struct ada_symbol_cache): New.
14169         (ada_free_symbol_cache): Forward declare.
14170         (struct ada_pspace_data): New.
14171         (ada_pspace_data_handle): New static global.
14172         (get_ada_pspace_data, ada_pspace_data_cleanup)
14173         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14174         (cache_space, cache): Delete, now folded inside struct
14175         ada_pspace_data.
14176         (ada_get_symbol_cache): New function.
14177         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14178         implementation.
14179         (_initialize_ada_language): Remove initialization of cache_space.
14180         Move call to observer_attach_inferior_exit up, grouping it
14181         with the other observer registrations inside this function.
14182         Rename command to be more general.  Add call to
14183         register_program_space_data_with_cleanup.
14184
14185 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
14186
14187         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14188         ada_new_objfile_observer.
14189         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14190         (_initialize_tasks): Update uses of ada_new_objfile_observer
14191         and ada_tasks_normal_stop_observer.
14192
14193 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
14194
14195         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14196         returned by the 'Length attribute to integer.
14197
14198 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
14199
14200         * ada-lang.c (_initialize_ada_language): Initialize
14201         cache_space obstack.
14202
14203 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
14204
14205         * ada-lang.c (HASH_SIZE): New macro.
14206         (struct cache_entry): New type.
14207         (cache_space, cache): New static globals.
14208         (ada_clear_symbol_cache, find_entry): New functions.
14209         (lookup_cached_symbol, cache_symbol): Implement.
14210         (ada_new_objfile_observer, ada_free_objfile_observer): New.
14211         (_initialize_ada_language): Attach ada_new_objfile_observer
14212         and ada_free_objfile_observer.
14213
14214 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
14215
14216         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14217         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14218         struct block * parameter.
14219         (ada_lookup_symbol_list_worker): Constify local variable "block".
14220         Remove cast which is no longer necessary.
14221
14222 2014-02-10  Doug Evans  <xdje42@gmail.com>
14223
14224         Add Guile as an extension language.
14225         * NEWS: Mention Guile scripting.
14226         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14227         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14228         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14229         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14230         (CLIBS): Add GUILE_LIBS.
14231         (install-guile): New rule.
14232         (guile.o): New rule.
14233         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14234         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14235         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14236         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14237         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14238         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14239         (scm-type.o, scm-utils.o, scm-value.o): New rules.
14240         * configure.ac: New option --with-guile.
14241         * configure: Regenerate.
14242         * config.in: Regenerate.
14243         * auto-load.c: Remove #include "python/python.h".  Add #include
14244         "gdb/section-scripts.h".
14245         (source_section_scripts): Handle Guile scripts.
14246         (_initialize_auto_load): Add name of Guile objfile script to
14247         scripts-directory help text.
14248         * breakpoint.c (condition_command): Tweak comment to include Scheme.
14249         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14250         (struct breakpoint): New member scm_bp_object.
14251         * defs.h (enum command_control_type): New value guile_control.
14252         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
14253         "extension.h".
14254         (show_user): Update comment.
14255         (_initialize_cli_cmds): Update help text for "show user".  Update help
14256         text for max-user-call-depth.
14257         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
14258         "extension.h".
14259         (multi_line_command_p): Add guile_control.
14260         (print_command_lines): Handle guile_control.
14261         (execute_control_command, recurse_read_control_structure): Ditto.
14262         (process_next_line): Recognize "guile" commands.
14263         * disasm.c (gdb_disassemble_info): Make non-static.
14264         * disasm.h: #include "dis-asm.h".
14265         (struct gdbarch): Add forward decl.
14266         (gdb_disassemble_info): Declare.
14267         * extension.c: #include "guile/guile.h".
14268         (extension_languages): Add guile.
14269         (get_ext_lang_defn): Handle EXT_LANG_GDB.
14270         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14271         * gdbtypes.c (get_unsigned_type_max): New function.
14272         (get_signed_type_minmax): New function.
14273         * gdbtypes.h (get_unsigned_type_max): Declare.
14274         (get_signed_type_minmax): Declare.
14275         * guile/README: New file.
14276         * guile/guile-internal.h: New file.
14277         * guile/guile.c: New file.
14278         * guile/guile.h: New file.
14279         * guile/scm-arch.c: New file.
14280         * guile/scm-auto-load.c: New file.
14281         * guile/scm-block.c: New file.
14282         * guile/scm-breakpoint.c: New file.
14283         * guile/scm-disasm.c: New file.
14284         * guile/scm-exception.c: New file.
14285         * guile/scm-frame.c: New file.
14286         * guile/scm-gsmob.c: New file.
14287         * guile/scm-iterator.c: New file.
14288         * guile/scm-lazy-string.c: New file.
14289         * guile/scm-math.c: New file.
14290         * guile/scm-objfile.c: New file.
14291         * guile/scm-ports.c: New file.
14292         * guile/scm-pretty-print.c: New file.
14293         * guile/scm-safe-call.c: New file.
14294         * guile/scm-string.c: New file.
14295         * guile/scm-symbol.c: New file.
14296         * guile/scm-symtab.c: New file.
14297         * guile/scm-type.c: New file.
14298         * guile/scm-utils.c: New file.
14299         * guile/scm-value.c: New file.
14300         * guile/lib/gdb.scm: New file.
14301         * guile/lib/gdb/boot.scm: New file.
14302         * guile/lib/gdb/experimental.scm: New file.
14303         * guile/lib/gdb/init.scm: New file.
14304         * guile/lib/gdb/iterator.scm: New file.
14305         * guile/lib/gdb/printing.scm: New file.
14306         * guile/lib/gdb/types.scm: New file.
14307         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14308         (VPATH): Add $(GUILE_SRCDIR).
14309         (GUILE_DIR): New variable.
14310         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14311         (all): Add stamp-guile dependency.
14312         (stamp-guile): New rule.
14313         (clean-guile, install-guile, uninstall-guile): New rules.
14314         (install-only): Add install-guile dependency.
14315         (uninstall): Add uninstall-guile dependency.
14316         (clean): Add clean-guile dependency.
14317
14318 2014-02-09  Doug Evans  <xdje42@gmail.com>
14319
14320         Revert this patch (which I approved, mea culpa).
14321
14322         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
14323
14324         * Makefile.in (all-lib): Remove.
14325         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14326
14327 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
14328
14329         Fix Python stack corruption.
14330         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14331         gdb_py_longest.
14332
14333 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
14334
14335         * Makefile.in (all-lib): Remove.
14336         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14337
14338 2014-02-07  Doug Evans  <dje@google.com>
14339
14340         * extension-priv.h (extension_language_script_ops): Add comment.
14341         (extension_language_ops): Add comment.
14342         (active_ext_lang_state): Fix typo in comment.
14343
14344 2014-02-07  Pedro Alves  <palves@redhat.com>
14345
14346         PR breakpoints/16292
14347         * infrun.c (handle_signal_stop) <signal arrives while stepping
14348         over a breakpoint>: Switch back to the stepping thread.
14349
14350 2014-02-07  Yao Qi  <yao@codesourcery.com>
14351
14352         * target.c (target_xfer_partial): Return zero if LEN is zero.
14353
14354 2014-02-07  Yao Qi  <yao@codesourcery.com>
14355
14356         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14357         (ld_so_xfer_auxv): Likewise.
14358         * bfd-target.c (target_bfd_xfer_partial): Likewise.
14359         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14360         * corelow.c (core_xfer_partial): Likewise.
14361         * ctf.c (ctf_xfer_partial): Likewise.
14362         * darwin-nat.c (darwin_read_dyld_info): Likewise.
14363         (darwin_xfer_partial): Likewise.
14364         * exec.c (exec_xfer_partial): Likewise.
14365         * gnu-nat.c (gnu_xfer_partial): Likewise.
14366         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14367         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14368         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14369         * linux-nat.c (linux_xfer_siginfo): Likewise.
14370         (linux_proc_xfer_spu): Likewise.
14371         * procfs.c (procfs_xfer_partial): Likewise.
14372         * record-full.c (record_full_xfer_partial): Likewise.
14373         (record_full_core_xfer_partial): Likewise.
14374         * remote-sim.c (gdbsim_xfer_partial): Likewise.
14375         * remote.c (remote_write_qxfer): Likewise.
14376         (remote_write_qxfer, remote_read_qxfer): Likewise.
14377         (remote_xfer_partial): Likewise.
14378         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14379         (rs6000_xfer_shared_libraries): Likewise.
14380         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14381         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14382         (spu_xfer_partial): Likewise.
14383         * target.c (memory_xfer_partial_1): Likewise.
14384         * tracepoint.c (tfile_xfer_partial): Likewise.
14385         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14386         (windows_xfer_partial): Likewise.
14387
14388 2014-02-07  Yao Qi  <yao@codesourcery.com>
14389
14390         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
14391         comments.
14392         (core_xfer_shared_libraries_aix): Likewise.
14393         * gdbarch.c, gdbarch.h: Regenerated.
14394         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14395         ULONGEST.  Change 'len_avail' type to ULONGEST.
14396         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14397         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14398         declaration.
14399         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14400
14401 2014-02-07  Yao Qi  <yao@codesourcery.com>
14402
14403         * corefile.c (memory_error): Get 'exception' from ERR and pass
14404         'exception' to throw_error.
14405
14406 2014-02-06  Doug Evans  <xdje42@gmail.com>
14407
14408         * configure.ac (libpython checking): Remove all but python.o from
14409         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
14410         * configure: Regenerate.
14411
14412         * Makefile.in (SFILES): Add extension.c.
14413         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14414         (COMMON_OBS): Add extension.o.
14415         * extension.h: New file.
14416         * extension-priv.h: New file.
14417         * extension.c: New file.
14418
14419         * python/python-internal.h: #include "extension.h".
14420         (gdbpy_auto_load_enabled): Declare.
14421         (gdbpy_apply_val_pretty_printer): Declare.
14422         (gdbpy_apply_frame_filter): Declare.
14423         (gdbpy_preserve_values): Declare.
14424         (gdbpy_breakpoint_cond_says_stop): Declare.
14425         (gdbpy_breakpoint_has_cond): Declare.
14426         (void source_python_script_for_objfile): Delete.
14427         * python/python.c: #include "extension-priv.h".
14428         Delete inclusion of "observer.h".
14429         (extension_language_python): Moved here and renamed from
14430         script_language_python in py-auto-load.c.
14431         Redefined to be of type extension_language_defn.
14432         (python_extension_script_ops): New global.
14433         (python_extension_ops): New global.
14434         (struct python_env): New member previous_active.
14435         (restore_python_env): Call restore_active_ext_lang.
14436         (ensure_python_env): Call set_active_ext_lang.
14437         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14438         New arg extlang.
14439         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14440         New arg extlang.
14441         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14442         New arg extlang.
14443         (gdbpy_eval_from_control_command): Renamed from
14444         eval_python_from_control_command, made static.  New arg extlang.
14445         (gdbpy_source_script) Renamed from source_python_script, made static.
14446         New arg extlang.
14447         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
14448         result to int.  New arg extlang.
14449         (gdbpy_source_objfile_script): Renamed from
14450         source_python_script_for_objfile, made static.  New arg extlang.
14451         (gdbpy_start_type_printers): Renamed from start_type_printers, made
14452         static.  New args extlang, extlang_printers.  Change result type to
14453         "void".
14454         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14455         static.  New arg extlang.  Rename arg printers to extlang_printers
14456         and change type to ext_lang_type_printers *.
14457         (gdbpy_free_type_printers): Renamed from free_type_printers, made
14458         static.  Replace argument arg with extlang, extlang_printers.
14459         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14460         (!HAVE_PYTHON, source_python_script): Delete.
14461         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14462         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14463         (!HAVE_PYTHON, start_type_printers): Delete.
14464         (!HAVE_PYTHON, apply_type_printers): Delete.
14465         (!HAVE_PYTHON, free_type_printers): Delete.
14466         (_initialize_python): Delete call to observer_attach_before_prompt.
14467         (finalize_python): Set/restore active extension language.
14468         (gdbpy_finish_initialization) Renamed from
14469         finish_python_initialization, made static.  New arg extlang.
14470         (gdbpy_initialized): New function.
14471         * python/python.h: #include "extension.h".  Delete #include
14472         "value.h", "mi/mi-cmds.h".
14473         (extension_language_python): Declare.
14474         (GDBPY_AUTO_FILE_NAME): Delete.
14475         (enum py_bt_status): Moved to extension.h and renamed to
14476         ext_lang_bt_status.
14477         (enum frame_filter_flags): Moved to extension.h.
14478         (enum py_frame_args): Moved to extension.h and renamed to
14479         ext_lang_frame_args.
14480         (finish_python_initialization): Delete.
14481         (eval_python_from_control_command): Delete.
14482         (source_python_script): Delete.
14483         (apply_val_pretty_printer): Delete.
14484         (apply_frame_filter): Delete.
14485         (preserve_python_values): Delete.
14486         (gdbpy_script_language_defn): Delete.
14487         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14488         (start_type_printers, apply_type_printers, free_type_printers): Delete.
14489
14490         * auto-load.c: #include "extension.h".
14491         (GDB_AUTO_FILE_NAME): Delete.
14492         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
14493         (script_language_gdb): Delete, moved to extension.c and renamed to
14494         extension_language_gdb.
14495         (source_gdb_script_for_objfile): Delete.
14496         (auto_load_pspace_info): New member unsupported_script_warning_printed.
14497         (loaded_script): Change type of language member to
14498         struct extension_language_defn *.
14499         (init_loaded_scripts_info): Initialize
14500         unsupported_script_warning_printed.
14501         (maybe_add_script): Make static.  Change type of language arg to
14502         struct extension_language_defn *.
14503         (clear_section_scripts): Reset unsupported_script_warning_printed.
14504         (auto_load_objfile_script_1): Rewrite to use extension language API.
14505         (auto_load_objfile_script): Make public.  Remove support-compiled-in
14506         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14507         (source_section_scripts): Rewrite to use extension language API.
14508         (load_auto_scripts_for_objfile): Rewrite to use
14509         auto_load_scripts_for_objfile.
14510         (collect_matching_scripts_data): Change type of language member to
14511         struct extension_language_defn *.
14512         (auto_load_info_scripts): Change type of language arg to
14513         struct extension_language_defn *.
14514         (unsupported_script_warning_print): New function.
14515         (script_not_found_warning_print): Make static.
14516         (_initialize_auto_load): Rewrite construction of scripts-directory
14517         help.
14518         * auto-load.h (struct objfile): Add forward decl.
14519         (struct script_language): Delete.
14520         (struct auto_load_pspace_info): Add forward decl.
14521         (struct extension_language_defn): Add forward decl.
14522         (maybe_add_script): Delete.
14523         (auto_load_objfile_script): Declare.
14524         (script_not_found_warning_print): Delete.
14525         (auto_load_info_scripts): Update prototype.
14526         (auto_load_gdb_scripts_enabled): Declare.
14527         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14528         auto_load_python_scripts_enabled and made public.
14529         (script_language_python): Delete, moved to python.c.
14530         (gdbpy_script_language_defn): Delete.
14531         (info_auto_load_python_scripts): Update to use
14532         extension_language_python.
14533
14534         * breakpoint.c (condition_command): Replace call to
14535         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14536         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14537         with call to breakpoint_ext_lang_cond_says_stop.
14538         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14539         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
14540         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14541         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14542         New arg slang.
14543         (local_setattro): Print name of extension language with existing
14544         stop condition.
14545
14546         * valprint.c (val_print, value_print): Update to call
14547         apply_ext_lang_val_pretty_printer.
14548         * cp-valprint.c (cp_print_value): Update call to
14549         apply_ext_lang_val_pretty_printer.
14550         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14551         (gdbpy_apply_val_pretty_printer): Renamed from
14552         apply_val_pretty_printer.  New arg extlang.
14553         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14554
14555         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14556         extension language API.
14557         * cli/cli-script.c (execute_control_command): Update to call
14558         eval_ext_lang_from_control_command.
14559
14560         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14561         enum ext_lang_bt_status values.  Update call to
14562         apply_ext_lang_frame_filter.
14563         (mi_cmd_stack_list_locals): Ditto.
14564         (mi_cmd_stack_list_args): Ditto.
14565         (mi_cmd_stack_list_variables): Ditto.
14566         * mi/mi-main.c: Delete #include "python/python-internal.h".
14567         Add #include "extension.h".
14568         (mi_cmd_list_features): Replace reference to python internal variable
14569         gdb_python_initialized with call to ext_lang_initialized_p.
14570
14571         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14572         Update to use enum ext_lang_frame_args.  Update to call
14573         apply_ext_lang_frame_filter.
14574         * python/py-framefilter.c (extract_sym): Update to use enum
14575         ext_lang_bt_status.
14576         (extract_value, py_print_type, py_print_value): Ditto.
14577         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14578         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14579         (py_print_frame): Ditto.
14580         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14581         New arg extlang.  Update to use enum ext_lang_bt_status.
14582
14583         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14584         finish_python_initialization.  Replace with call to
14585         finish_ext_lang_initialization.
14586
14587         * typeprint.c (do_free_global_table): Update to call
14588         free_ext_lang_type_printers.
14589         (create_global_typedef_table): Update to call
14590         start_ext_lang_type_printers.
14591         (find_global_typedef): Update to call apply_ext_lang_type_printers.
14592         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14593         (type_print_options): Change type of global_printers from "void *"
14594         to "struct ext_lang_type_printers *".
14595
14596         * value.c (preserve_values): Update to call preserve_ext_lang_values.
14597         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14598         (gdbpy_preserve_values): Renamed from preserve_python_values.
14599         New arg extlang.
14600         (!HAVE_PYTHON, preserve_python_values): Delete.
14601
14602         * utils.c (quit_flag): Delete, moved to extension.c.
14603         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14604         extension.c.
14605
14606         * eval.c: Delete #include "python/python.h".
14607         * main.c: Delete #include "python/python.h".
14608
14609         * defs.h: Update comment.
14610
14611 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
14612
14613         GDB 7.7 released.
14614
14615 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
14616
14617         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14618         defined.
14619
14620 2014-02-05  Yao Qi  <yao@codesourcery.com>
14621
14622         * remote.c (remote_pass_signals): Remove local 'buf' and use
14623         rs->buf.
14624         (remote_program_signals): Likewise.
14625
14626 2014-02-05  Yao Qi  <yao@codesourcery.com>
14627
14628         * ctf.c: Include "inferior.h" and "gdbthread.h".
14629         (CTF_PID): A new macro.
14630         (ctf_open): Call inferior_appeared and add_thread_silent.
14631         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14632         (ctf_thread_alive): New function.
14633         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14634
14635 2014-02-05  Yao Qi  <yao@codesourcery.com>
14636
14637         Revert this patch:
14638
14639         2013-05-24  Yao Qi  <yao@codesourcery.com>
14640
14641         * tracepoint.c (TFILE_PID): Remove.
14642         (tfile_open): Don't add thread and inferior.
14643         (tfile_close): Don't set 'inferior_ptid'.  Don't call
14644         exit_inferior_silent.
14645         (tfile_thread_alive): Remove.
14646         (init_tfile_ops): Don't set field 'to_thread_alive' of
14647         tfile_ops.
14648
14649 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
14650
14651         * remote.c (remote_start_remote): Call remote_check_symbols even
14652         if only symbol-file (not file) has been given.
14653
14654 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14655
14656         * gdbarch.sh (skip_entrypoint): New callback.
14657         * gdbarch.c, gdbarch.h: Regenerate.
14658         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14659         * infrun.c (fill_in_stop_func): Likewise.
14660         * ppc-linux-tdep.c: Include "elf/ppc64.h".
14661         (ppc_elfv2_elf_make_msymbol_special): New function.
14662         (ppc_elfv2_skip_entrypoint): Likewise.
14663         (ppc_linux_init_abi): Install them for ELFv2.
14664
14665 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14666
14667         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14668         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14669         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14670         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
14671         structures returned in GPRs.
14672
14673 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14674
14675         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14676         offset to the stack parameter list for the ELFv2 ABI.
14677
14678 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14679
14680         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14681         set_gdbarch_convert_from_func_ptr_addr and
14682         set_gdbarch_elf_make_msymbol_special for ELFv1.
14683         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14684         function descriptors on ELFv1.
14685         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
14686         set up r12 at function entry.
14687
14688 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14689
14690         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14691         (struct gdbarch_tdep): New member elf_abi.
14692
14693         * rs6000-tdep.c: Include "elf/ppc64.h".
14694         (rs6000_gdbarch_init): Detect ELF ABI version.
14695
14696 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14697
14698         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14699         within a register pair holding a DFP 128-bit value on little-endian.
14700         (ppc64_sysv_abi_return_value_base): Likewise.
14701         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14702         (dfp_pseudo_register_write): Likewise.
14703
14704 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14705
14706         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14707         offset on little-endian when passing _Decimal32.
14708         (ppc64_sysv_abi_return_value_base): Likewise for return values.
14709
14710 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14711
14712         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14713         of the overlapped FP register within the VSX register on little-
14714         endian platforms.
14715         (efpr_pseudo_register_write): Likewise.
14716
14717 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14718
14719         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14720         offset on little-endian when passing small structures.
14721
14722 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14723
14724         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14725         (struct ppc64_sysv_argpos): New data structure.
14726         (ppc64_sysv_abi_push_float): Remove.
14727         (ppc64_sysv_abi_push_val): New function.
14728         (ppc64_sysv_abi_push_integer): Likewise.
14729         (ppc64_sysv_abi_push_freg): Likewise.
14730         (ppc64_sysv_abi_push_vreg): Likewise.
14731         (ppc64_sysv_abi_push_param): Likewise.
14732         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14733         (ppc64_sysv_abi_return_value_base): New function.
14734         (ppc64_sysv_abi_return_value): Refactor to use it.
14735
14736 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14737
14738         * NEWS: Document new target powerpc64le-*-linux*.
14739
14740 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
14741
14742         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14743         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14744         core dumps.
14745         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14746         register set used in ELF core dumps.  Add floating-point register set.
14747
14748 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
14749
14750         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14751         dwarf2_to_gdb[] table using symbolic constants.  Adjust
14752         penultimate entry from number representing the PC register
14753         to symbolic constant representing the MDR register.  Add
14754         constant for the PC register to the end of the table.
14755
14756 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
14757
14758         * bsd-kvm.c: Include <sys/param.h>
14759
14760 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
14761
14762         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14763
14764 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
14765
14766         * ada-lang.h (clear_ada_sym_cache): Delete.
14767
14768 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
14769
14770         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14771
14772 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
14773
14774         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14775           the sigreturn register save area only if the syscall is
14776           sigreturn.
14777
14778 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
14779
14780         * valops.c (value_slice): Minor reformatting.
14781
14782 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
14783
14784         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14785
14786 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
14787
14788         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14789         New static globals.
14790         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14791         (ada_ignore_descriptive_types_p): New static global.
14792         (find_parallel_type_by_descriptive_type): Return immediately
14793         if ada_ignore_descriptive_types_p is set.
14794         (_initialize_ada_language): Register new commands "maintenance
14795         set ada", "maintenance show ada", "maintenance set ada
14796         ignore-descriptive-types" and "maintenance show ada
14797         ignore-descriptive-types".
14798         * NEWS: Add entry for new "maint ada set/show
14799         ignore-descriptive-types" commands.
14800
14801 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
14802
14803         * record-btrace.c (record_btrace_close): Call btrace_teardown
14804         for all threads.
14805
14806 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14807
14808         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14809         "ui-out.h".
14810
14811 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14812
14813         * ada-typeprint (type_is_full_subrange_of_target_type):
14814         New function.
14815         (print_range): Add parameter bounds_prefered_p.  If not set,
14816         try printing range types using the name of their base type.
14817         (print_range_type): Add parameter bounds_prefered_p.
14818         Use it in call to print_range.
14819         (print_array_type, ada_print_type): Update calls to print_range
14820         and print_range_type.
14821
14822 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14823
14824         * ada-typeprint.c (print_array_type, print_choices, print_range)
14825         (print_range_bound, print_dynamic_range_bound, print_range_type):
14826         Remove declaration.
14827
14828 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14829
14830         * ada-typeprint.c (print_range): Add missing empty line
14831         after local declaration.
14832
14833 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14834
14835         * ada-valprint.c (print_optional_low_bound): Get index_type's
14836         target type for as long as it is a TYPE_CODE_RANGE.
14837
14838 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14839
14840         * procfs.c (procfs_make_note_section): Remove assertion and
14841         associated comment.
14842
14843 2014-01-24  Yao Qi  <yao@codesourcery.com>
14844
14845         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14846         * corelow.c (get_core_siginfo): Likewise.
14847
14848 2014-01-24  Yao Qi  <yao@codesourcery.com>
14849
14850         * remote.c (remote_write_bytes_aux): Change type of 'len' to
14851         ULONGEST.  Don't check 'len' is negative.
14852         (remote_write_bytes):  Change type of 'len' to ULONGEST.
14853
14854 2014-01-23  Tom Tromey  <tromey@redhat.com>
14855
14856         PR python/16485:
14857         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14858         Handle exception from frame.block.
14859         (FrameVars.fetch_frame_locals): Likewise.
14860
14861 2014-01-23  Tom Tromey  <tromey@redhat.com>
14862
14863         PR python/16487:
14864         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14865         on a NULL pointer.  Move "goto error" to correct place.
14866
14867 2014-01-23  Tom Tromey  <tromey@redhat.com>
14868
14869         PR python/16491:
14870         * python/py-framefilter.c (apply_frame_filter): Call
14871         ensure_python_env after computing gdbarch.
14872
14873 2014-01-23  Yao Qi  <yao@codesourcery.com>
14874
14875         * target.c (raw_memory_xfer_partial): Change argument type
14876         from void * to gdb_byte *.
14877         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14878
14879 2014-01-22  Doug Evans  <dje@google.com>
14880
14881         New gdbserver option --debug-format=timestamp.
14882         * NEWS: Mention it.
14883
14884 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
14885
14886         * syscalls/s390x-linux.xml: New file.
14887         * syscalls/s390-linux.xml: New file.
14888         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14889         (XML_SYSCALL_FILENAME_S390X): Likewise.
14890         (op_svc): New enum value for SVC opcode.
14891         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14892         (s390_linux_get_syscall_number): New function.
14893         (s390_gdbarch_init): Register '*get_syscall_number' and the
14894         syscall xml file name.
14895         * data-directory/Makefile.in (SYSCALLS_FILES): Add
14896         "s390-linux.xml" and "s390x-linux.xml".
14897         * NEWS: Announce new feature.
14898
14899 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
14900
14901         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14902
14903 2014-01-22  Pedro Alves  <palves@redhat.com>
14904
14905         * xtensa-config.c: Include defs.h.
14906
14907 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
14908
14909         * common/common-utils.h: Add "ARI:" comment beside __func__
14910         reference.
14911
14912 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
14913
14914         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14915         documentation a bit.
14916
14917 2014-01-21  Roland McGrath  <mcgrathr@google.com>
14918
14919         * configure.ac: Call AM_PROG_INSTALL_STRIP.
14920         * configure: Regenerate.
14921         * aclocal.m4: Regenerate.
14922         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14923         New substituted variables.
14924         (install-strip): New target.
14925         (INSTALL_SCRIPT): New substituted variable.
14926         (FLAGS_TO_PASS): Add it.
14927         (install-only): Use $(INSTALL_SCRIPT) rather than
14928         $(INSTALL_PROGRAM) for gcore.
14929
14930 2014-01-20  Tom Tromey  <tromey@redhat.com>
14931
14932         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14933         together.
14934
14935 2014-01-20  Tom Tromey  <tromey@redhat.com>
14936
14937         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14938         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14939         (deprecated_cmd_warning, complete_on_cmdlist): Update.
14940         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14941         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14942         (struct cmd_list_element) <flags>: Remove.
14943         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14944         doc_allocated>: New fields.
14945         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14946         bitfields.
14947         * maint.c (maintenance_do_deprecate): Update.
14948         * top.c (execute_command): Update.
14949
14950 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
14951
14952         * xtensa-linux-nat.c: Include asm/ptrace.h.
14953
14954 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14955
14956         * Makefile.in (SFILES): Add d-support.c.
14957         (COMMON_OBS): Add d-support.o.
14958         * d-lang.h (d_parse_symbol): Add comment, now defined in
14959         d-support.c.
14960         * d-lang.c (parse_call_convention)
14961         (parse_attributes, parse_function_types)
14962         (parse_function_args, parse_type, parse_identifier)
14963         (call_convention_p, d_parse_symbol): Move functions to ...
14964         * d-support.c: ... New file.
14965
14966 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14967
14968         * d-lang.h (d_parse_symbol): Add declaration.
14969         * d-lang.c (extract_identifiers)
14970         (extract_type_info): Remove functions.
14971         (parse_call_convention, parse_attributes)
14972         (parse_function_types, parse_function_args)
14973         (parse_type, parse_identifier, call_convention_p)
14974         (d_parse_symbol): New functions.
14975         (d_demangle): Use d_parse_symbol to demangle D symbols.
14976
14977 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14978
14979         * d-lang.h (struct builtin_d_type): New data type.
14980         (builtin_d_type): Add declaration.
14981         * d-lang.c (d_language_arch_info, build_d_types)
14982         (builtin_d_type): New functions.
14983         (enum d_primitive_types): New data type.
14984         (d_language_defn): Change c_language_arch_info to
14985         d_language_arch_info.
14986         (d_type_data): New static variable.
14987         (_initialize_d_language): Initialize d_type_data.
14988
14989 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14990
14991         * d-lang.h (d_main_name): Add declaration.
14992         * d-lang.c (d_main_name): New function.
14993         * symtab.c (find_main_name): Add call to d_main_name.
14994
14995 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14996
14997         * d-lang.c (d_language_defn): Change macro_expansion_c to
14998         macro_expansion_no.
14999
15000 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
15001
15002         * MAINTAINERS: Add myself as a write-after-approval maintainer.
15003
15004 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
15005
15006         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
15007         gdb_exception" declaration.
15008         * remote.c (getpkt_or_notif_sane): Likewise.
15009
15010 2014-01-17  Doug Evans  <dje@google.com>
15011
15012         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
15013         function, contents of dirnames_to_char_ptr_vec_append moved here.
15014         (delim_string_to_char_ptr_vec): New function.
15015         (dirnames_to_char_ptr_vec_append): Rewrite.
15016         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
15017
15018 2014-01-17  Doug Evans  <dje@google.com>
15019
15020         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
15021         and moved here ...
15022         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
15023         #include "common-utils.h".
15024         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
15025         * common/vec.h (VEC_ASSERT_PASS): Update.
15026         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
15027         (MACH_CHECK_ERROR): Update.
15028
15029 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
15030
15031         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
15032         comments.
15033         * gdbarch.h: Regenerate.
15034
15035 2014-01-16  Tom Tromey  <tromey@redhat.com>
15036
15037         * value.c (struct value) <regnum>: Move earlier.
15038
15039 2014-01-16  Tom Tromey  <tromey@redhat.com>
15040
15041         * remote.c (extended_remote_create_inferior): Rename from
15042         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
15043         old implementation.
15044
15045 2014-01-16  Pedro Alves  <palves@redhat.com>
15046
15047         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
15048         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
15049         the backchain.
15050
15051 2014-01-16  Doug Evans  <dje@google.com>
15052
15053         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
15054
15055 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15056
15057         * btrace.h (btrace_thread_flag): New.
15058         (struct btrace_thread_info) <flags>: New.
15059         * record-btrace.c (record_btrace_resume_thread)
15060         (record_btrace_find_thread_to_move, btrace_step_no_history)
15061         (btrace_step_stopped, record_btrace_start_replaying)
15062         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
15063         (record_btrace_find_resume_thread): New.
15064         (record_btrace_resume, record_btrace_wait): Extend.
15065         (record_btrace_can_execute_reverse): New.
15066         (record_btrace_open): Fail in non-stop mode.
15067         (record_btrace_set_replay): Split into this, ...
15068         (record_btrace_stop_replaying): ... this, ...
15069         (record_btrace_clear_histories): ... and this.
15070         (init_record_btrace_ops): Init to_can_execute_reverse.
15071         * NEWS: Announce it.
15072
15073 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15074
15075         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15076         (forward_target_decr_pc_after_break)
15077         (target_decr_pc_after_break): New.
15078         * target.c (forward_target_decr_pc_after_break)
15079         (target_decr_pc_after_break): New.
15080         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15081         instead of gdbarch_decr_pc_after_break.
15082         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15083         instead of gdbarch_decr_pc_after_break.
15084         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15085         instead of gdbarch_decr_pc_after_break.
15086         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15087         instead of gdbarch_decr_pc_after_break.
15088         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15089         instead of gdbarch_decr_pc_after_break.
15090         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15091         instead of gdbarch_decr_pc_after_break.
15092
15093 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15094
15095         * btrace.c: Include regcache.h.
15096         (btrace_add_pc): New.
15097         (btrace_enable): Call btrace_add_pc.
15098         (btrace_is_empty): New.
15099         * btrace.h (btrace_is_empty): New.
15100         * record-btrace.c (require_btrace, record_btrace_info): Call
15101         btrace_is_empty.
15102
15103 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15104
15105         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15106         Support delta reads.
15107         (linux_disable_btrace): Change return type.
15108         * common/linux-btrace.h (linux_read_btrace): Change parameters
15109         and return type to allow error reporting.  Update users.
15110         (linux_disable_btrace): Change return type.  Update users.
15111         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15112         New.
15113         (btrace_error): New.
15114         (btrace_block) <begin>: Comment on BEGIN == 0.
15115         * btrace.c (btrace_compute_ftrace): Start from the end of
15116         the current trace.
15117         (btrace_stitch_trace, btrace_clear_history): New.
15118         (btrace_fetch): Read delta trace, return if replaying.
15119         (btrace_clear): Move clear history code to btrace_clear_history.
15120         (parse_xml_btrace): Throw an error if parsing failed.
15121         * target.h (struct target_ops) <to_read_btrace>: Change parameters
15122         and return type to allow error reporting.
15123         (target_read_btrace): Change parameters and return type to allow
15124         error reporting.
15125         * target.c (target_read_btrace): Update.
15126         * remote.c (remote_read_btrace): Support delta reads.  Pass
15127         errors on.
15128         * NEWS: Announce it.
15129
15130 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15131
15132         * record.h (record_btrace_frame_unwind)
15133         (record_btrace_tailcall_frame_unwind): New declarations.
15134         * dwarf2-frame: Include record.h
15135         (dwarf2_frame_cfa): Throw an error for btrace frames.
15136         * record-btrace.c: Include hashtab.h.
15137         (btrace_get_bfun_name): New.
15138         (btrace_call_history): Call btrace_get_bfun_name.
15139         (struct btrace_frame_cache): New.
15140         (bfcache): New.
15141         (bfcache_hash, bfcache_eq, bfcache_new): New.
15142         (btrace_get_frame_function): New.
15143         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15144         (record_btrace_frame_this_id): Compute own id.
15145         (record_btrace_frame_prev_register): Provide PC, throw_error
15146         for all other registers.
15147         (record_btrace_frame_sniffer): Detect btrace frames.
15148         (record_btrace_tailcall_frame_sniffer): New.
15149         (record_btrace_frame_dealloc_cache): New.
15150         (record_btrace_frame_unwind): Add new functions.
15151         (record_btrace_tailcall_frame_unwind): New.
15152         (_initialize_record_btrace): Allocate cache.
15153         * btrace.c (btrace_clear): Call reinit_frame_cache.
15154         * NEWS: Announce it.
15155
15156 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15157
15158         * record-btrace.c (record_btrace_set_replay)
15159         (record_btrace_goto_begin, record_btrace_goto_end)
15160         (record_btrace_goto): New.
15161         (init_record_btrace_ops): Initialize them.
15162         * NEWS: Announce it.
15163
15164 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15165
15166         * record-btrace.c (record_btrace_find_new_threads)
15167         (record_btrace_thread_alive): New.
15168         (init_record_btrace_ops): Initialize to_find_new_threads and
15169         to_thread_alive.
15170
15171 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15172
15173         * record-btrace.c (record_btrace_resume): New.
15174         (record_btrace_wait): New.
15175         (init_record_btrace_ops): Initialize to_wait and to_resume.
15176
15177 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15178
15179         * record-btrace.c (record_btrace_xfer_partial)
15180         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15181         (record_btrace_allow_memory_access): New.
15182         (init_record_btrace_ops): Initialize new methods.
15183         * target.c (raw_memory_xfer_partial): Bail out if target reports
15184         that this memory is not available.
15185
15186 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15187
15188         * target.h (target_ops) <to_insert_breakpoint>
15189         <to_remove_breakpoint>: Add target_ops parameter.
15190         (forward_target_insert_breakpoint): New.
15191         (forward_target_remove_breakpoint): New.
15192         (memory_remove_breakpoint, memory_insert_breakpoint):
15193         Add target_ops parameter.
15194         * target.c (target_insert_breakpoint): Split into this and ...
15195         (forward_target_insert_breakpoint): ... this.
15196         (target_remove_breakpoint): Split into this and ...
15197         (forward_target_remove_breakpoint): ... this.
15198         (debug_to_insert_breakpoint): Add target_ops parameter.
15199         Call forward_target_insert_breakpoint.
15200         (debug_to_remove_breakpoint): Add target_ops parameter.
15201         Call forward_target_remove_breakpoint.
15202         (update_current_target): Do not inherit or default to_insert_breakpoint
15203         and to_remove_breakpoint.
15204         * corelow.c (ignore): Add target_ops parameter.
15205         * exec.c (ignore): Add target_ops parameter.
15206         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15207         Add target_ops parameter.
15208         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15209         Add target_ops parameter.
15210         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15211         Add target_ops parameter.
15212         * record-full.c (record_full_beneath_to_insert_breakpoint)
15213         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15214         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15215         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15216         (record_full_core_remove_breakpoint): Add target_ops parameter.
15217         Update users.
15218         (record_full_beneath_to_insert_breakpoint_ops)
15219         (record_full_beneath_to_remove_breakpoint_ops)
15220         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15221         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15222         tmp_to_remove_breakpoint_ops,
15223         record_full_beneath_to_insert_breakpoint_ops, and
15224         record_full_beneath_to_remove_breakpoint_ops.
15225         * remote-m32r-sdi.c (m32r_insert_breakpoint)
15226         (m32r_remove_breakpoint): Add target_ops parameter.
15227         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15228         Add target_ops parameter.
15229         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15230         Add target_ops parameter.
15231
15232 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
15233             Markus Metzger  <markus.t.metzger@intel.com>
15234
15235         * record-btrace.c: Include frame-unwind.h.
15236         (record_btrace_frame_unwind_stop_reason)
15237         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15238         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15239         New.
15240         (init_record_btrace_ops): Install it.
15241
15242 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
15243
15244         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15245         get_prev_frame_1.
15246
15247 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
15248
15249         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15250         earlier.
15251
15252 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
15253
15254         * frame-unwind.c: Include target.h.
15255         (frame_unwind_try_unwinder): New function with code from ...
15256         (frame_unwind_find_by_frame): ... here.  New variable
15257         unwinder_from_target, call also target_get_unwinder)
15258         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15259         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15260         * target.h (struct target_ops): New fields to_get_unwinder and
15261         to_get_tailcall_unwinder.
15262         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15263
15264 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15265
15266         * record-btrace.c (record_btrace_fetch_registers)
15267         (record_btrace_store_registers)
15268         (record_btrace_to_prepare_to_store): New.
15269         (init_record_btrace_ops): Add the above.
15270
15271 2014-01-16  Tom Tromey  <tromey@redhat.com>
15272
15273         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15274         * target.h (struct target_ops) <to_prepare_to_store>: Add
15275         argument.
15276         (target_prepare_to_store): Add argument.
15277         * target.c (debug_to_prepare_to_store): Add argument.
15278         (update_current_target): Update.
15279         * remote.c (remote_prepare_to_store): Add 'self' argument.
15280         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15281         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15282         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15283         * record-full.c (record_full_core_prepare_to_store): Add 'self'
15284         argument.
15285         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15286         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15287         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15288         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15289         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15290
15291 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15292
15293         * btrace.h (replay) <replay>: New.
15294         (btrace_is_replaying): New.
15295         * btrace.c (btrace_clear): Free replay iterator.
15296         (btrace_is_replaying): New.
15297         * record-btrace.c (record_btrace_is_replaying): New.
15298         (record_btrace_info): Print insn number if replaying.
15299         (record_btrace_insn_history): Start at replay position.
15300         (record_btrace_call_history): Start at replay position.
15301         (init_record_btrace_ops): Init to_record_is_replaying.
15302
15303 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15304
15305         * record-btrace.c (record_btrace_insn_history_range): Include
15306         end.
15307         (record_btrace_insn_history_from): Adjust range.
15308         (record_btrace_call_history_range): Include
15309         end.
15310         (record_btrace_call_history_from): Adjust range.
15311         * NEWS: Announce changes.
15312
15313 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15314
15315         * record.h (enum record_print_flag)
15316         <record_print_indent_calls>: New.
15317         * record.c (get_call_history_modifiers): Recognize /c modifier.
15318         (_initialize_record): Document /c modifier.
15319         * record-btrace.c (btrace_call_history): Add btinfo parameter.
15320         Reorder fields.  Optionally indent the function name.  Update
15321         all users.
15322         * NEWS: Announce changes.
15323
15324 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15325
15326         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15327
15328 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15329
15330         * btrace.c (ftrace_new_function): Start counting at one.
15331         * record-btrace.c (record_btrace_info): Adjust number of calls
15332         and insns.
15333         * NEWS: Announce it.
15334
15335 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15336
15337         * record-btrace.c (btrace_call_history_insn_range): Print
15338         insn range as [begin, end].
15339
15340 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15341
15342         * btrace.h (struct btrace_func_link): New.
15343         (enum btrace_function_flag): New.
15344         (struct btrace_inst): Rename to ...
15345         (struct btrace_insn): ...this. Update all users.
15346         (struct btrace_func) <ibegin, iend>: Remove.
15347         (struct btrace_func_link): New.
15348         (struct btrace_func): Rename to ...
15349         (struct btrace_function): ...this. Update all users.
15350         (struct btrace_function) <segment, flow, up, insn, insn_offset)
15351         (number, level, flags>: New.
15352         (struct btrace_insn_iterator): Rename to ...
15353         (struct btrace_insn_history): ...this.
15354         Update all users.
15355         (struct btrace_insn_iterator, btrace_call_iterator): New.
15356         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15357         (struct btrace_target_info) <begin, end, level>
15358         <insn_history, call_history>: New.
15359         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15360         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15361         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15362         (btrace_call_number, btrace_call_begin, btrace_call_end)
15363         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15364         (btrace_find_function_by_number, btrace_set_insn_history)
15365         (btrace_set_call_history): New.
15366         * btrace.c (btrace_init_insn_iterator)
15367         (btrace_init_func_iterator, compute_itrace): Remove.
15368         (ftrace_print_function_name, ftrace_print_filename)
15369         (ftrace_skip_file): Change
15370         parameter to const.
15371         (ftrace_init_func): Remove.
15372         (ftrace_debug): Use new btrace_function fields.
15373         (ftrace_function_switched): Also consider gaining and
15374         losing symbol information).
15375         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15376         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15377         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15378         New.
15379         (ftrace_new_function): Move. Remove debug print.
15380         (ftrace_update_lines, ftrace_update_insns): New.
15381         (ftrace_update_function): Check for call, ret, and jump.
15382         (compute_ftrace): Renamed to ...
15383         (btrace_compute_ftrace): ...this. Rewritten to compute call
15384         stack.
15385         (btrace_fetch, btrace_clear): Updated.
15386         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15387         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15388         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15389         (btrace_call_number, btrace_call_begin, btrace_call_end)
15390         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15391         (btrace_find_function_by_number, btrace_set_insn_history)
15392         (btrace_set_call_history): New.
15393         * record-btrace.c (require_btrace): Use new btrace thread
15394         info fields.
15395         (record_btrace_info, btrace_insn_history)
15396         (record_btrace_insn_history, record_btrace_insn_history_range):
15397         Use new btrace thread info fields and new iterator.
15398         (btrace_func_history_src_line): Rename to ...
15399         (btrace_call_history_src_line): ...this. Use new btrace
15400         thread info fields.
15401         (btrace_func_history): Rename to ...
15402         (btrace_call_history): ...this. Use new btrace thread info
15403         fields and new iterator.
15404         (record_btrace_call_history, record_btrace_call_history_range):
15405         Use new btrace thread info fields and new iterator.
15406
15407 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15408
15409         * frame.h (frame_id_build_unavailable_stack_special): New.
15410         * frame.c (frame_id_build_unavailable_stack_special): New.
15411
15412 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15413
15414         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15415         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15416         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15417         to gdbarch.
15418         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15419         (i386_insn_is_jump, i386_jmp_p): New.
15420         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15421         insn_is_jump to gdbarch.
15422         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15423         * gdbarch.h: Regenerated.
15424         * gdbarch.c: Regenerated.
15425         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15426         (default_insn_is_jump): New.
15427         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15428         (default_insn_is_jump): New.
15429
15430 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15431
15432         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15433         Change to ...
15434         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
15435         (btrace_read_type) <btrace_read_new>: Change to ...
15436         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
15437
15438 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15439
15440         * common/linux-btrace.c (linux_read_btrace): Free trace from
15441         previous iteration.
15442
15443 2014-01-15  Doug Evans  <dje@google.com>
15444
15445         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15446         uint32_t.
15447
15448 2014-01-15  Tom Tromey  <tromey@redhat.com>
15449
15450         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15451         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15452         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15453         (set_objfile_main_name): New function.
15454         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15455         language_of_main>: New fields.
15456         (set_objfile_main_name): Declare.
15457         * symtab.c (find_main_name): Loop over objfiles to find the main
15458         name and language.
15459         (set_main_name): Now static.
15460         (get_main_info): Add comment.
15461         * symtab.h (set_main_name): Don't declare.
15462
15463 2014-01-15  Tom Tromey  <tromey@redhat.com>
15464
15465         * symtab.c (main_progspace_key): New global.
15466         (struct main_info): New.
15467         (name_of_main, language_of_main): Remove.
15468         (get_main_info, main_info_cleanup): New function.
15469         (set_main_name, main_name, main_language): Use get_main_info.
15470         (_initialize_symtab): Initialize main_progspace_key.
15471
15472 2014-01-15  Tom Tromey  <tromey@redhat.com>
15473
15474         * dbxread.c (process_one_symbol): Update.
15475         * dwarf2read.c (read_partial_die): Update.
15476         * symfile.c (set_initial_language): Call main_language.
15477         * symtab.c (language_of_main): Now static.
15478         (set_main_name): Add 'lang' parameter.
15479         (find_main_name): Update.
15480         (main_language): New function.
15481         (symtab_observer_executable_changed): Update.
15482         * symtab.h (set_main_name): Update.
15483         (language_of_main): Remove.
15484         (main_language): Declare.
15485
15486 2014-01-15  Tom Tromey  <tromey@redhat.com>
15487
15488         * symfile.c (init_entry_point_info): Use new "initialized" field.
15489         Update.
15490         * objfiles.h (struct entry_point) <initialized>: New field.
15491         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15492         (struct objfile) <ei>: ...here.  Remove.
15493         * objfiles.c (entry_point_address_query): Update.
15494
15495 2014-01-15  Tom Tromey  <tromey@redhat.com>
15496
15497         * objfiles.c (entry_point_address_query): Relocate entry point
15498         address.
15499         (objfile_relocate1): Do not relocate entry point address.
15500         * objfiles.h (struct entry_info) <entry_point>: Update comment.
15501         <the_bfd_section_index>: New field.
15502         * symfile.c (init_entry_point_info): Find the entry point's
15503         section.
15504
15505 2014-01-15  Tom Tromey  <tromey@redhat.com>
15506
15507         * solib-frv.c (enable_break): Use entry_point_address_query.
15508
15509 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15510
15511         * NEWS: Add note on improved process record-replay on
15512         arm*-linux* targets.
15513
15514 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15515
15516         * arm-tdep.c (enum arm_record_result): New enum.
15517         (arm_record_unsupported_insn): New function.
15518         (arm_record_coproc_data_proc): Removed.
15519         (thumb2_record_ld_st_multiple): New function.
15520         (thumb2_record_ld_st_dual_ex_tbb): New function.
15521         (thumb2_record_data_proc_sreg_mimm): New function.
15522         (thumb2_record_ps_dest_generic): New function.
15523         (thumb2_record_branch_misc_cntrl): New function.
15524         (thumb2_record_str_single_data): New function.
15525         (thumb2_record_ld_mem_hints): New function.
15526         (thumb2_record_ld_word): New function.
15527         (thumb2_record_lmul_lmla_div): New function.
15528         (thumb2_record_decode_insn_handler): New function.
15529         (decode_insn): Add thumb32 instruction handlers.
15530
15531 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15532
15533         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15534         (struct arm_linux_record_tdep): Declare.
15535         (arm_canonicalize_syscall): New function.
15536         (arm_all_but_pc_registers_record): New function.
15537         (arm_linux_syscall_record): New function.
15538         (arm_linux_init_abi): Add syscall recording constructs.
15539         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15540         decoding.  (arm_record_coproc_data_proc): Update arm syscall
15541         decoding.
15542         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15543         <arm_syscall_record>: New field.
15544         * configure.tgt (arm*-*-linux*): Add linux-record.o to
15545         gdb_target_obs.
15546
15547 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15548
15549         * arm-tdep.c (thumb_record_misc): Update to use sp as base
15550         register for push instruction recording.
15551
15552 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15553
15554         * arm-tdep.c (thumb_record_misc): Update to correct logical
15555         error while recording ldm, ldmia and pop instructions.
15556
15557 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15558
15559         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15560
15561 2014-01-15  Pedro Alves  <palves@redhat.com>
15562
15563         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15564         (go32_resume, go32_fetch_registers, store_register)
15565         (go32_store_registers, go32_prepare_to_store)
15566         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15567         (go32_create_inferior, go32_can_run, go32_terminal_init)
15568         (go32_terminal_inferior, go32_terminal_ours): Delete forward
15569         declarations.
15570
15571 2014-01-15  Tom Tromey  <tromey@redhat.com>
15572
15573         * target.h (async_callback_ftype): New typedef.
15574         (struct target_ops) <to_async>: Use it.
15575
15576 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
15577
15578         * python/py-value.c (get_field_type): Remove unnecessary curly
15579         braces for single-statement if block.
15580
15581 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
15582
15583         * python/py-type.c (convert_field): Add missing empty line
15584         after declarations.
15585
15586 2014-01-14  Doug Evans  <dje@google.com>
15587
15588         * symfile.h (expand_symtabs_matching): Renamed from
15589         expand_partial_symbol_names.  Update prototype.
15590         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15591         * symfile.c (expand_symtabs_matching): Renamed from
15592         expand_partial_symbol_names.  New args file_matcher, kind.
15593         Rename arg fun to symbol_matcher.
15594         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15595         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15596         ada_expand_partial_symbol_name.
15597         (ada_make_symbol_completion_list): Update to call
15598         expand_symtabs_matching.
15599         (ada_add_global_exceptions): Call expand_symtabs_matching.
15600         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15601         call map_symbol_filenames.
15602         * symtab.c (sources_info): Update to call map_symbol_filenames.
15603         (search_symbols): Call expand_symtabs_matching.
15604         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15605         (default_make_symbol_completion_list_break_on): Update to call
15606         expand_symtabs_matching.
15607         (make_source_files_completion_list): Update to call
15608         map_symbol_filenames.
15609
15610 2014-01-14  Doug Evans  <dje@google.com>
15611
15612         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15613         (expand_symtabs_symbol_matcher_ftype): New typedef.
15614         (quick_symbol_functions.expand_symtabs_matching): Update to use.
15615         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15616         * symfile.c (expand_partial_symbol_names): Update to use
15617         expand_symtabs_symbol_matcher_ftype.
15618         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15619         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15620         Arg name_matcher renamed to symbol_matcher.
15621         * psymtab.c (recursively_search_psymtabs): Update to use
15622         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
15623         sym_matcher.
15624         (expand_symtabs_matching_via_partial): Update to use
15625         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15626         Arg name_matcher renamed to symbol_matcher.
15627
15628 2014-01-14  Doug Evans  <dje@google.com>
15629
15630         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15631         (map_partial_symbol_filenames): Ditto.
15632         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15633         (map_partial_symbol_filenames): Ditto.
15634         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15635         (map_partial_symbol_filenames): Ditto.
15636         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15637         (map_partial_symbol_filenames): Ditto.
15638         * symtab.c: Delete #include "psymtab.h".
15639
15640 2014-01-14  Pedro Alves  <palves@redhat.com>
15641             Tom Tromey  <tromey@redhat.com>
15642
15643         * infrun.c (use_displaced_stepping): Use find_record_target
15644         instead of RECORD_IS_USED.
15645         (adjust_pc_after_break): Use record_full_is_used instead of
15646         RECORD_IS_USED.
15647         * record-btrace.c (record_btrace_open): Call record_preopen
15648         instead of checking RECORD_IS_USED.
15649         * record-full.c (record_full_shortname)
15650         (record_full_core_shortname): New globals.
15651         (record_full_is_used): New function.
15652         (find_full_open): Call record_preopen instead of checking
15653         RECORD_IS_USED.
15654         (init_record_full_ops): Set the target's shortname to
15655         record_full_shortname.
15656         (init_record_full_core_ops): Set the target's shortname to
15657         record_full_core_shortname.
15658         * record-full.h (record_full_is_used): Declare.
15659         * record.c (find_record_target): Make extern.
15660         (record_preopen): New function.
15661         * record.h (RECORD_IS_USED): Delete macro.
15662         (find_record_target, record_preopen): Declare functions.
15663
15664 2014-01-14  Yao Qi  <yao@codesourcery.com>
15665
15666         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15667         'len''s type to ULONGEST.
15668         (core_xfer_shared_libraries_aix): Likewise.
15669         * gdbarch.c, gdbarch.h: Regenerated.
15670         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15671         Change type of 'len' to ULONGEST.
15672         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15673         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15674
15675 2014-01-14  Yao Qi  <yao@codesourcery.com>
15676
15677         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15678         type of 'len' to ULONGEST.
15679         (linux_xfer_osdata_processgroups): Likewise.
15680         (linux_xfer_osdata_threads): Likewise.
15681         (linux_xfer_osdata_fds): Likewise.
15682         (linux_xfer_osdata_isockets): Likewise.
15683         (linux_xfer_osdata_shm): Likewise.
15684         (linux_xfer_osdata_sem): Likewise.
15685         (linux_xfer_osdata_msg): Likewise.
15686         (linux_common_xfer_osdata): Likewise.
15687         (struct osdata_type) <getter>: Likewise.
15688         * common/linux-osdata.h (linux_common_xfer_osdata): Update
15689         the declaration.
15690
15691 2014-01-14  Yao Qi  <yao@codesourcery.com>
15692
15693         * target.h (target_xfer_partial_ftype): Update.
15694         (struct target_ops) <to_xfer_partial>: Change 'len' type to
15695         ULONGEST.
15696         * aix-thread.c (aix_thread_xfer_partial): Change type of
15697         argument 'len' to ULONGEST.
15698         * auxv.c (procfs_xfer_auxv): Likewise.
15699         (ld_so_xfer_auxv): Likewise.
15700         (memory_xfer_auxv): Likewise.
15701         * bfd-target.c (target_bfd_xfer_partial): Likewise.
15702         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15703         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15704         * corelow.c (core_xfer_partial): Likewise.
15705         * ctf.c (ctf_xfer_partial): Likewise.
15706         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
15707         '%u'.
15708         (darwin_read_dyld_info): Likewise.
15709         (darwin_xfer_partial): Likewise.
15710         * exec.c (section_table_xfer_memory_partial): Likewise.
15711         (exec_xfer_partial): Likewise.
15712         * exec.h (section_table_xfer_memory_partial): Update
15713         declaration.
15714         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
15715         instead of plongest.
15716         (gnu_xfer_partial): Likewise.
15717         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15718         (ia64_hpux_xfer_solib_got): Likewise.
15719         (ia64_hpux_xfer_partial): Likewise.
15720         * ia64-linux-nat.c (ia64_linux_xfer_partial):
15721         * inf-ptrace.c (inf_ptrace_xfer_partial):
15722         * inf-ttrace.c (inf_ttrace_xfer_partial):
15723         * linux-nat.c (linux_xfer_siginfo): Likewise.
15724         (linux_nat_xfer_partial): Likewise.
15725         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15726         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15727         * monitor.c (monitor_xfer_memory): Likewise.
15728         (monitor_xfer_partial): Likewise.
15729         * procfs.c (procfs_xfer_partial): Likewise.
15730         * record-full.c (record_full_xfer_partial): Likewise.
15731         (record_full_core_xfer_partial): Likewise.
15732         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
15733         instead of plongest.
15734         (gdbsim_xfer_partial): Likewise.
15735         * remote.c (remote_xfer_partial): Likewise.
15736         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15737         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15738         declaration.
15739         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15740         (rs6000_xfer_shared_libraries): Likewise.
15741         * sol-thread.c (sol_thread_xfer_partial): Likewise.
15742         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15743         (sparc_xfer_partial): Likewise.
15744         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15745         (spu_xfer_partial): Likewise.
15746         * spu-multiarch.c (spu_xfer_partial): Likewise.
15747         * target.c (target_read_live_memory): Likewise.
15748         (memory_xfer_live_readonly_partial): Likewise.
15749         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15750         (target_xfer_partial, default_xfer_partial): Likewise.
15751         (current_xfer_partial): Likewise.
15752         * tracepoint.c (tfile_xfer_partial): Likewise.
15753         * windows-nat.c (windows_xfer_memory): Likewise.  Call
15754         pulongest instead of plongest.
15755         (windows_xfer_partial): Likewise.
15756         (windows_xfer_shared_libraries): Likewise.
15757
15758 2014-01-14  Yao Qi  <yao@codesourcery.com>
15759
15760         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15761         target_xfer_partial_ftype.
15762
15763 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
15764
15765         PR python/15464
15766         PR python/16113
15767         * valops.c (value_struct_elt_bitpos): New function
15768         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15769         object to 'None' if the field name is an empty string ("").
15770         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15771         attribute to look for a field when 'name' is 'None'.
15772         (get_field_type): New function
15773
15774 2014-01-13  Doug Evans  <dje@google.com>
15775
15776         PR symtab/16426
15777         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15778         (try_open_dwop_file): Ditto.
15779         * gdb_bfd.c: #include "vec.h".
15780         (bfdp): New typedef.
15781         (struct gdb_bfd_data): New member included_bfds.
15782         (gdb_bfd_unref): Unref all included bfds.
15783         (gdb_bfd_record_inclusion): New function.
15784         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15785
15786 2014-01-13  Tom Tromey  <tromey@redhat.com>
15787
15788         * gdbcore.h (deprecated_core_resize_section_table): Remove.
15789
15790 2014-01-13  Tom Tromey  <tromey@redhat.com>
15791
15792         * defs.h (use_windows): Remove.
15793         * gdb.c (main): Update.
15794         * main.c (captured_main, gdb_main): Update.
15795         * main.h (struct captured_main_args) <use_windows>: Remove.
15796         * top.c (use_windows): Remove.
15797
15798 2014-01-13  Tom Tromey  <tromey@redhat.com>
15799
15800         * defs.h (deprecated_flush_hook): Remove.
15801
15802 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
15803
15804         PR threads/16216
15805         * linux-thread-db.c (try_thread_db_load): Add parameter
15806         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
15807         (try_thread_db_load_from_pdir_1): Move it there from here.
15808         (try_thread_db_load_from_sdir): Update caller.
15809         (try_thread_db_load_from_dir): Move it there from here.
15810
15811 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
15812
15813         * regformats/regdat.sh: Always rewrite the register file.
15814
15815 2014-01-13  Pedro Alves  <palves@redhat.com>
15816
15817         * Makefile.in (CHECK_HEADERS): New variable.
15818         (check-headers:): New rule.
15819
15820 2014-01-13  Tom Tromey  <tromey@redhat.com>
15821
15822         * cli/cli-setshow.c (do_set_command): Update.
15823         * defs.h (deprecated_set_hook): Remove.
15824         * top.c (deprecated_set_hook): Remove.
15825
15826 2014-01-13  Pedro Alves  <palves@redhat.com>
15827
15828         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15829         the tracepoint if the PC is a pseudo-register.
15830
15831 2014-01-13  Tom Tromey  <tromey@redhat.com>
15832
15833         * defs.h (XCALLOC): Remove.
15834         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15835         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15836         * dwarf2loc.c (allocate_piece_closure): Likewise.
15837         * elfread.c (elf_symfile_segments): Likewise.
15838         (elf_symfile_segments): Likewise.
15839         * gdbtypes.c (copy_type_recursive): Likewise.
15840         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15841         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15842         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15843         XCALLOC.
15844         * mt-tdep.c (mt_gdbarch_init): Likewise.
15845         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15846         XCALLOC.
15847         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15848         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15849         * registry.c (registry_alloc_data): Likewise.
15850         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15851         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15852         * serial.c (serial_fdopen_ops): Likewise.
15853         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15854         XCALLOC.
15855         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15856         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15857         not XCALLOC.
15858
15859 2014-01-13  Tom Tromey  <tromey@redhat.com>
15860
15861         * defs.h (XMALLOC): Remove.
15862         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15863         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15864         * cli-out.c (struct ui_out *): Likewise.
15865         * cli/cli-dump.c (add_dump_command): Likewise.
15866         (add_dump_command): Likewise.
15867         * complaints.c (get_complaints): Likewise.
15868         (find_complaint): Likewise.
15869         * dwarf2-frame.c (execute_cfa_program): Likewise.
15870         * dwarf2read.c (abbrev_table_read_table): Likewise.
15871         * gdbarch.sh: Likewise.
15872         * gdbarch.c: Rebuild.
15873         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15874         * interps.c (interp_new): Likewise.
15875         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15876         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15877         * mi/mi-console.c (mi_console_file_new): Likewise.
15878         * mi/mi-interp.c (mi_interpreter_init): Likewise.
15879         * mi/mi-out.c (mi_out_new): Likewise.
15880         * mi/mi-parse.c (mi_parse): Likewise.
15881         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15882         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15883         * observer.c (xalloc_observer_list_node): Likewise.
15884         * regcache.c (regcache_xmalloc_1): Likewise.
15885         * reggroups.c (reggroup_new): Likewise.
15886         (_initialize_reggroup): Likewise.
15887         * registry.c (register_data_with_cleanup): Likewise.
15888         * remote.c (remote_notif_stop_alloc_reply): Likewise.
15889         * ser-base.c (serial_ttystate): Likewise.
15890         * ser-mingw.c (make_pipe_state): Likewise.
15891         * ser-pipe.c (pipe_open): Likewise.
15892         * serial.c (serial_open): Likewise.
15893         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15894         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15895         (tui_alloc_win_info): Likewise.
15896         (tui_add_content_elements): Likewise.
15897         * tui/tui-file.c (tui_file_new): Likewise.
15898         * tui/tui-out.c (tui_out_new): Likewise.
15899         * ui-file.c (mem_file_new): Likewise.
15900         * ui-out.c (push_level): Likewise.
15901         (make_cleanup_ui_out_end): Likewise.
15902         (append_header_to_list): Likewise.
15903         (ui_out_new): Likewise.
15904         * user-regs.c (user_reg_add_builtin): Likewise.
15905
15906 2014-01-13  Tom Tromey  <tromey@redhat.com>
15907
15908         * defs.h (XZALLOC): Remove.
15909         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15910         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15911         (get_ada_tasks_inferior_data): Likewise.
15912         * auto-load.c (get_auto_load_pspace_data): Likewise.
15913         * auxv.c (get_auxv_inferior_data): Likewise.
15914         * bfd-target.c (target_bfd_reopen): Likewise.
15915         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15916         (deprecated_insert_raw_breakpoint): Likewise.
15917         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15918         * corelow.c (core_open): Likewise.
15919         * darwin-nat.c (darwin_check_new_threads): Likewise.
15920         (darwin_attach_pid): Likewise.
15921         * dummy-frame.c (dummy_frame_push): Likewise.
15922         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15923         * dwarf2loc.c (allocate_piece_closure): Likewise.
15924         * elfread.c (elf_symfile_segments): Likewise.
15925         * eval.c (ptrmath_type_p): Likewise.
15926         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15927         * gdbtypes.c (alloc_type_arch): Likewise.
15928         (alloc_type_instance): Likewise.
15929         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15930         * inf-child.c (inf_child_can_use_agent): Likewise.
15931         * inflow.c (get_inflow_inferior_data): Likewise.
15932         * infrun.c (save_infcall_suspend_state): Likewise.
15933         * jit.c (jit_reader_load): Likewise.
15934         (get_jit_objfile_data): Likewise.
15935         (get_jit_program_space_data): Likewise.
15936         (jit_object_open_impl): Likewise.
15937         (jit_symtab_open_impl): Likewise.
15938         (jit_block_open_impl): Likewise.
15939         (jit_frame_sniffer): Likewise.
15940         * linux-fork.c (add_fork): Likewise.
15941         * maint.c (make_command_stats_cleanup): Likewise.
15942         * objfiles.c (get_objfile_pspace_data): Likewise.
15943         * opencl-lang.c (struct lval_closure): Likewise.
15944         * osdata.c (osdata_start_osdata): Likewise.
15945         * progspace.c (new_address_space): Likewise.
15946         (add_program_space): Likewise.
15947         * remote-sim.c (get_sim_inferior_data): Likewise.
15948         * sh-tdep.c (sh_gdbarch_init): Likewise.
15949         * skip.c (Ignore): Likewise.
15950         (skip_delete_command): Likewise.
15951         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15952         (library_list_start_library): Likewise.
15953         (solib_aix_current_sos): Likewise.
15954         * solib-darwin.c (get_darwin_info): Likewise.
15955         (darwin_current_sos): Likewise.
15956         * solib-dsbt.c (get_dsbt_info): Likewise.
15957         * solib-ia64-hpux.c (new_so_list): Likewise.
15958         (ia64_hpux_get_solib_linkage_addr): Likewise.
15959         * solib-spu.c (append_ocl_sos): Likewise.
15960         (spu_current_sos): Likewise.
15961         * solib-svr4.c (get_svr4_info): Likewise.
15962         (svr4_keep_data_in_core): Likewise.
15963         (library_list_start_library): Likewise.
15964         (svr4_default_sos): Likewise.
15965         (svr4_read_so_list): Likewise.
15966         * solib-target.c (library_list_start_library): Likewise.
15967         (solib_target_current_sos): Likewise.
15968         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15969         * symfile-debug.c (install_symfile_debug_logging): Likewise.
15970         * symfile.c (default_symfile_segments): Likewise.
15971         * target-descriptions.c (tdesc_data_init): Likewise.
15972         (tdesc_create_reg): Likewise.
15973         (struct tdesc_type *): Likewise.
15974         (tdesc_create_vector): Likewise.
15975         (tdesc_set_struct_size): Likewise.
15976         (struct tdesc_type *): Likewise.
15977         (tdesc_free_feature): Likewise.
15978         (tdesc_create_feature): Likewise.
15979         * windows-nat.c (windows_add_thread): Likewise.
15980         (windows_make_so): Likewise.
15981         * xml-support.c (gdb_xml_body_text): Likewise.
15982         (gdb_xml_create_parser_and_cleanup): Likewise.
15983         (xml_process_xincludes): Likewise.
15984         * xml-syscall.c (allocate_syscalls_info): Likewise.
15985         (syscall_create_syscall_desc): Likewise.
15986
15987 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
15988
15989         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15990         function, with code from i386_stap_parse_special_token.
15991         (i386_stap_parse_special_token_three_arg_disp): Likewise.
15992         (i386_stap_parse_special_token): Move code to the two functions
15993         above; simplify it.
15994
15995 2014-01-09  Pedro Alves  <palves@redhat.com>
15996             Hui Zhu  <hui@codesourcery.com>
15997
15998         PR gdb/16101
15999         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
16000         bp_err_string.  Don't mark the location shlib_disabled if the
16001         error thrown wasn't a generic or memory error.  Catch errors
16002         thrown while inserting breakpoints in overlayed code.  Output
16003         error message of software breakpoints.
16004         * remote.c (remote_insert_breakpoint): If this breakpoint has
16005         target-side commands but this stub doesn't support Z0 packets,
16006         throw NOT_SUPPORTED_ERROR error.
16007         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
16008         * target.h (target_insert_breakpoint): Extend comment.
16009         (target_insert_hw_breakpoint): Add comment.
16010
16011 2014-01-08  Pedro Alves  <palves@redhat.com>
16012
16013         * remote.c (remote_add_thread): Add threads silently if starting
16014         up.
16015         (remote_notice_new_inferior): If in all-stop, and starting up,
16016         don't call notice_new_inferior.
16017         (get_current_thread): New function, factored out from ...
16018         (add_current_inferior_and_thread): ... this.  Adjust.
16019         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
16020         found any thread, then select the remote's current thread as GDB's
16021         current thread too.
16022
16023 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
16024
16025         * NEWS: Create a new section for the next release branch.
16026         Rename the section of the current branch, now that it has
16027         been cut.
16028
16029 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
16030
16031         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
16032         * version.in: Bump version to 7.7.50.DATE-cvs.
16033
16034 2014-01-08  Yao Qi  <yao@codesourcery.com>
16035
16036         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
16037         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
16038         (spu_xfer_partial): Cast 'buf' to 'const char *'.
16039
16040 2014-01-08  Yao Qi  <yao@codesourcery.com>
16041
16042         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
16043         return value of bfd_get_filename to symbol_file_add_from_bfd.
16044
16045 2014-01-08  Pierre Muller  <muller@sourceware.org>
16046
16047         Fix PR16201.
16048         * coff-pe-read.c (struct read_pe_section_data): Add index field.
16049         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
16050         to prim_record_mininal_symbol_and_info.
16051         (add_pe_forwarded_sym): Use known section number of forwarded symbol
16052         in call to prim_record_minimal_symbol_and_info.
16053         (read_pe_exported_syms): Set index field of section_data.
16054
16055 2014-01-07  Andrew Pinski  <apinski@cavium.com>
16056
16057         * features/aarch64-core.xml (cpsr): Change to be 64bit.
16058         * features/aarch64.c: Regenerate.
16059
16060 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
16061
16062         * target.c (return_null): Define.
16063         (update_current_target): Use it instead of return_zero for
16064         functions that return a pointer.
16065
16066 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
16067
16068         * source.c (add_path): Fix check for duplicated paths in the previously
16069         included paths.
16070
16071 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
16072
16073         * ada-lang.c: Remove duplicated include statements.
16074         * alphabsd-nat.c: Ditto.
16075         * amd64-darwin-tdep.c: Ditto.
16076         * amd64fbsd-nat.c: Ditto.
16077         * auto-load.c: Ditto.
16078         * ax-gdb.c: Ditto.
16079         * breakpoint.c: Ditto.
16080         * dbxread.c: Ditto.
16081         * fork-child.c: Ditto.
16082         * gdb_usleep.c: Ditto.
16083         * i386-darwin-tdep.c: Ditto.
16084         * i386fbsd-nat.c: Ditto.
16085         * infcmd.c: Ditto.
16086         * inferior.c: Ditto.
16087         * jv-lang.c: Ditto.
16088         * linux-nat.c: Ditto.
16089         * linux-tdep.c: Ditto.
16090         * m68kbsd-nat.c: Ditto.
16091         * m68klinux-nat.c: Ditto.
16092         * microblaze-tdep.c: Ditto.
16093         * mips-linux-tdep.c: Ditto.
16094         * mn10300-tdep.c: Ditto.
16095         * nto-tdep.c: Ditto.
16096         * opencl-lang.c: Ditto.
16097         * osdata.c: Ditto.
16098         * printcmd.c: Ditto.
16099         * regcache.c: Ditto.
16100         * remote-m32r-sdi.c: Ditto.
16101         * remote.c: Ditto.
16102         * symfile.c: Ditto.
16103         * symtab.c: Ditto.
16104         * tilegx-linux-nat.c: Ditto.
16105         * tilegx-tdep.c: Ditto.
16106         * tracepoint.c: Ditto.
16107         * valops.c: Ditto.
16108         * vaxbsd-nat.c: Ditto.
16109         * windows-nat.c: Ditto.
16110         * xtensa-tdep.c: Ditto.
16111
16112 2014-01-07  Yao Qi  <yao@codesourcery.com>
16113
16114         * spu-linux-nat.c (_initialize_spu_nat): Declare.
16115
16116 2014-01-07  Yao Qi  <yao@codesourcery.com>
16117             Joel Brobecker  <brobecker@adacore.com>
16118
16119         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16120         (pdc_write_regs): Likewise.
16121         (fetch_regs_kernel_thread): Likewise.
16122         (store_regs_kernel_thread): Likewise.
16123
16124 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16125
16126         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16127         tagged type objects to their actual type.
16128
16129 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16130
16131         * ada-valprint.c (print_field_values): Add "language" parameter.
16132         Update calls to print_field_values and print_variant_part.
16133         Pass new parameter "language" in call to val_print instead
16134         of "current_language".  Replace call to ada_val_print by call
16135         to val_print.
16136         (print_variant_part): Add "language" parameter.
16137         (ada_val_print_struct_union): Update call to print_field_values.
16138
16139 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16140
16141         * ada-valprint.c (ui_memcpy): Delete.
16142         (ada_print_floating): Update documentation.  Add empty line
16143         between between function documentation and implementation.
16144         Delete variable "buffer".  Use ui_file_xstrdup in place of
16145         ui_file_put.  Minor adjustments following this change.
16146
16147 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16148
16149         * ada-valprint.c (ada_val_print_string): New function,
16150         extracted from ada_val_print_array.
16151         (ada_val_print_array): Replace extracted code by call
16152         to ada_val_print_string followed by a return.  Move
16153         "else" branch to the function's top block.
16154
16155 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16156
16157         * ada-valprint.c (ada_val_print_array): Move implementation
16158         down.  Rename parameter "offset" and "val" into "offset_aligned"
16159         and "original_value" respectively.  Add parameter "offset".
16160
16161 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16162
16163         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16164         re-organizing the code. Change the "???" message printed
16165         when target type is a TYPE_CODE_UNDEF into
16166         "<ref to undefined type>".
16167
16168 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16169
16170         * ada-valprint.c (print_record): Delete, implementation inlined...
16171         (ada_val_print_struct_union): ... here.  Remove call to
16172         ada_check_typedef in inlined implementation.
16173
16174 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16175
16176         * ada-valprint.c (ada_val_print_gnat_array): New function,
16177         extracted from ada_val_print_1;
16178         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16179         (ada_val_print_flt, ada_val_print_struct_union)
16180         (ada_val_print_ref): Likewise.
16181         (ada_val_print_1): Delete variables i and elttype.
16182         Replace extracted-out code by call to corresponding
16183         new functions.
16184
16185 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16186
16187         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16188
16189 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16190
16191         * ada-valprint.c (ada_val_print_1): Replace calls to
16192         ada_val_print_1 by calls to val_print.
16193
16194 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16195
16196         * ada-valprint.c (ada_val_print_1): Add parameter "language".
16197         Update calls to self accordingly.  Replace calls to c_val_print
16198         by calls to val_print.
16199
16200 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16201
16202         * ada-valprint.c (print_record): Delete declaration.
16203         (adjust_type_signedness, ada_val_print_1): Likewise.
16204         (ada_val_print): Move function implementation down.
16205         (print_variant_part, print_field_values, print_record):
16206         Move function implementation up.
16207
16208 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16209
16210         * python/py-type.c (typy_get_name): New function.
16211         (type_object_getset): Add entry for attribute "name".
16212         * NEWS: Add entry mentioning this new attribute.
16213
16214 2014-01-07  Yao Qi  <yao@codesourcery.com>
16215
16216         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16217         statement.
16218
16219 2014-01-07  Yao Qi  <yao@codesourcery.com>
16220
16221         * gnu-nat.c (info_port_rights): Add qualifier const to
16222         argument args.
16223
16224 2014-01-07  Yao Qi  <yao@codesourcery.com>
16225
16226         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16227
16228 2014-01-07  Yao Qi  <yao@codesourcery.com>
16229
16230         * gnu-nat.c (make_inf) Update declaration.
16231         (make_inf): Make it static.
16232         (inf_set_traced): Likewise.
16233         (inf_port_to_thread, inf_task_died_status): Likewise.
16234
16235 2014-01-07  Yao Qi  <yao@codesourcery.com>
16236
16237         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16238
16239 2014-01-07  Yao Qi  <yao@codesourcery.com>
16240
16241         * gnu-nat.c (_initialize_gnu_nat): Declare.
16242
16243 2014-01-07  Yao Qi  <yao@codesourcery.com>
16244
16245         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16246         'enum bfd_endian'.
16247         (struct gdbarch_info) <byte_order>: Change type to
16248         'enum bfd_endian'.
16249         <byte_order_for_code>: Likewise.
16250         * gdbarch.c, gdbarch.h: Regenerated.
16251
16252 2014-01-06  Sasha Smundak  <asmundak@google.com>
16253
16254         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16255
16256 2014-01-06  Tom Tromey  <tromey@redhat.com>
16257
16258         * doublest.c (convert_doublest_to_floatformat): Use const, not
16259         CONST.
16260         * somread.c (som_symtab_read): Likewise.
16261
16262 2014-01-07  Hui Zhu  <hui@codesourcery.com>
16263
16264         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16265         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16266         (gdb_bfd_fopen): Ditto.
16267         (gdb_bfd_openr): Ditto.
16268         (gdb_bfd_openw): Ditto.
16269         (gdb_bfd_openr_iovec): Ditto.
16270         (gdb_bfd_fdopenr): Ditto.
16271         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16272         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16273         with xstrdup.
16274         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16275         with xstrdup.
16276         * symfile-mem.c (symbol_file_add_from_memory): Removed
16277         gdb_bfd_stash_filename.
16278
16279 2014-01-03  Doug Evans  <dje@google.com>
16280
16281         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16282         output.
16283
16284 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
16285
16286         Update year range in copyright notice of all files.
16287
16288 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
16289
16290         * top.c (print_gdb_version): Set copyright year to 2014.
16291
16292 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
16293
16294         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16295
16296 For older changes see ChangeLog-2013.
16297 \f
16298 Local Variables:
16299 mode: change-log
16300 left-margin: 8
16301 fill-column: 74
16302 version-control: never
16303 coding: utf-8
16304 End: