value_maybe_namespace_elt: Remove unnecessary test of result != NULL.
[external/binutils.git] / gdb / ChangeLog
1 2014-12-12  Doug Evans  <xdje42@gmail.com>
2
3         * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
4         result != NULL.
5
6 2014-12-12  Doug Evans  <xdje42@gmail.com>
7
8         * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
9         All callers updated.  Rename arg "namespace" to "symbol_name".
10
11 2014-12-12  Doug Evans  <xdje42@gmail.com>
12
13         * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
14         partial_map_symtabs_matching_filename.  All uses updated.
15         (psym_find_pc_sect_compunit_symtab): Renamed from
16         find_pc_sect_compunit_symtab_from_partial.  All uses updated.
17         Add function comment.
18         (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
19         All uses updated.  Add function comment.
20         (psym_relocate): Renamed from relocate_psymtabs.  All uses updated.
21         Add function comment.
22         (psym_find_last_source_symtab): Renamed from
23         find_last_source_symtab_from_partial.  All uses updated.
24         Add function comment.
25         (psym_forget_cached_source_info): Renamed from
26         forget_cached_source_info_partial.  All uses updated.
27         Add function comment.
28         (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
29         All uses updated.  Add function comment.
30         (psym_dump): Renamed from dump_psymtabs_for_objfile.  All uses
31         updated.  Add function comment.
32         (psym_expand_symtabs_for_function): Renamed from
33         read_symtabs_for_function.  All uses updated.  Update function comment.
34         (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
35         All uses updated.  Add function comment.
36         (psym_expand_symtabs_with_fullname): Renamed from
37         read_psymtabs_with_fullname.  All uses updated.  Add function comment.
38         (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
39         All uses updated.  Add function comment.
40         (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
41         All uses updated.
42         (psym_expand_symtabs_matching): Renamed from
43         expand_symtabs_matching_via_partial.  All uses updated.
44         Add function comment.
45         (psym_has_symbols): Renamed from objfile_has_psyms.  All uses updated.
46         Add function comment.
47
48 2014-12-12  Phil Muldoon  <pmuldoon@redhat.com>
49             Jan Kratochvil  <jan.kratochvil@redhat.com>
50             Tom Tromey  <tromey@redhat.com>
51
52         * NEWS: Update.
53         * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
54         field.
55         * p-lang.c (pascal_language_defn): Update.
56         * opencl-lang.c (opencl_language_defn): Update.
57         * objc-lang.c (objc_language_defn): Update.
58         * m2-lang.c (m2_language_defn): Update.
59         * language.h (struct language_defn) <la_get_compile_instance,
60         la_compute_program>: New fields.
61         * language.c (unknown_language_defn, auto_language_defn)
62         (local_language_defn): Update.
63         * jv-lang.c (java_language_defn): Update.
64         * go-lang.c (go_language_defn): Update.
65         * f-lang.c (f_language_defn): Update.
66         * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
67         * dwarf2loc.c (dwarf2_compile_property_to_c)
68         (locexpr_generate_c_location, loclist_generate_c_location): New
69         functions.
70         (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
71         * defs.h (enum compile_i_scope_types): New.
72         (enum command_control_type) <compile_control>: New constant.
73         (struct command_line) <control_u>: New field.
74         * d-lang.c (d_language_defn): Update.
75         * compile/compile.c: New file.
76         * compile/compile-c-support.c: New file.
77         * compile/compile-c-symbols.c: New file.
78         * compile/compile-c-types.c: New file.
79         * compile/compile.h: New file.
80         * compile/compile-internal.h: New file.
81         * compile/compile-loc2c.c: New file.
82         * compile/compile-object-load.c: New file.
83         * compile/compile-object-load.h: New file.
84         * compile/compile-object-run.c: New file.
85         * compile/compile-object-run.h: New file.
86         * cli/cli-script.c (multi_line_command_p, print_command_lines)
87         (execute_control_command, process_next_line)
88         (recurse_read_control_structure): Handle compile_control.
89         * c-lang.h (c_get_compile_context, c_compute_program): Declare.
90         * c-lang.c (c_language_defn, cplus_language_defn)
91         (asm_language_defn, minimal_language_defn): Update.
92         * ada-lang.c (ada_language_defn): Update.
93         * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
94         New variables.
95         (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
96         (HFILES_NO_SRCDIR): Add compile.h.
97         (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
98         (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
99         (compile.o, compile-c-types.o, compile-c-symbols.o)
100         (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
101         (compile-c-support.o): New targets.
102
103 2014-12-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
104
105         * s390-linux-tdep.c (s390_gcc_target_options): New function.
106         (s390_gdbarch_init): Add it to gdbarch.
107
108 2014-12-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
109
110         * linux-tdep.c: Include objfiles.h and infcall.h.
111         (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
112         function.
113         (linux_init_abi): Add linux_infcall_mmap to gdbarch.
114
115 2014-12-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
116
117         * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
118         * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
119         translate_register.  Now public.
120         (dwarf2_compile_expr_to_ax): Update.
121
122 2014-12-12  Tom Tromey  <tromey@redhat.com>
123             Jan Kratochvil  <jan.kratochvil@redhat.com>
124
125         * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
126         (dwarf_expr_frame_base): Update caller.
127         (dwarf_expr_frame_base_1): Rename to ...
128         (func_get_frame_base_dwarf_block): ... this and make it public.
129         (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
130         callers.
131         * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
132
133 2014-12-12  Tom Tromey  <tromey@redhat.com>
134
135         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
136         Update.
137         * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
138         dwarf2_compile_cfa_to_ax.
139         (dwarf2_compile_cfa_to_ax): Remove.
140         * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
141         (dwarf2_compile_cfa_to_ax): Remove.
142
143 2014-12-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
144
145         * infcall.h (call_function_by_hand_dummy): Declare.
146         * infcall.c (call_function_by_hand): Use
147         call_function_by_hand_dummy.
148         (call_function_by_hand_dummy): Rename from call_function_by_hand.
149         Add arguments.  Register a destructor.
150
151 2014-12-12  Tom Tromey  <tromey@redhat.com>
152             Jan Kratochvil  <jan.kratochvil@redhat.com>
153
154         * osabi.h (osabi_triplet_regexp): Declare.
155         * osabi.c (struct osabi_names): New.
156         (gdb_osabi_names): Change type to struct osabi_names.  Update
157         values.
158         (gdbarch_osabi_name): Update.
159         (osabi_triplet_regexp): New function.
160         (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
161         * i386-tdep.c (i386_gnu_triplet_regexp): New method.
162         (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
163         set_gdbarch_gnu_triplet_regexp.
164         * gdbarch.sh (gnu_triplet_regexp): New method.
165         * gdbarch.c, gdbarch.h: Rebuild.
166         * arch-utils.h (default_gnu_triplet_regexp): Declare.
167         * arch-utils.c (default_gnu_triplet_regexp): New function.
168
169 2014-12-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
170
171         * arch-utils.c (default_infcall_mmap)
172         (default_gcc_target_options): New functions.
173         * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
174         (GDB_MMAP_PROT_EXEC): Define.
175         (default_infcall_mmap, default_gcc_target_options): Declare.
176         * gdbarch.h: Rebuild.
177         * gdbarch.c: Rebuild.
178         * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
179
180 2014-12-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
181
182         * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
183         fields.
184         (pop_dummy_frame): Call the destructor if it exists.
185         (register_dummy_frame_dtor, find_dummy_frame_dtor): New
186         functions.
187         * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
188         (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
189
190 2014-12-12  Tom Tromey  <tromey@redhat.com>
191
192         * gdbtypes.h (make_unqualified_type): Declare.
193         * gdbtypes.c (make_unqualified_type): New function.
194
195 2014-12-12  Tom Tromey  <tromey@redhat.com>
196
197         * ui-file.h (ui_file_write_for_put): Declare.
198         * ui-file.c (ui_file_write_for_put): New function.
199         * mi/mi-out.c (do_write): Remove.
200         (mi_out_put): Use ui_file_write_for_put.
201
202 2014-12-12  Doug Evans  <dje@google.com>
203
204         * NEWS: Mention gdb.lookup_objfile.
205         * python/python.c (GdbMethods): Add lookup_objfile.
206         * python/python-internal.h (gdbpy_lookup_objfile): Declare.
207         * python/py-objfile.c: #include "symtab.h".
208         (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
209         (objfpy_lookup_objfile_by_name): New function.
210         (objfpy_lookup_objfile_by_build_id): New function.
211         (gdbpy_lookup_objfile): New function.
212
213 2014-12-12  Maciej W. Rozycki  <macro@codesourcery.com>
214
215         * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
216         (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
217         * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
218         macros.
219         (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
220         Likewise.
221
222 2014-12-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
223
224         * completer.c: Include "target.h", "reggroups.h", and
225         "user-regs.h".
226         (reg_or_group_completer): New.
227         * completer.h (reg_or_group_completer): Declare.
228         * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
229         the "info registers" and "info all-registers" commands and the
230         dbx-mode "lr" command.
231
232 2014-12-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
233
234         * user-regs.c: Include "arch-utils.h", "command.h", and
235         "cli/cli-cmds.h".
236         (maintenance_print_user_registers): New.
237         (_initialize_user_regs): Register new "maint print user-registers"
238         subcommand.
239         * NEWS: Mention new GDB command "maint print user-registers".
240
241 2014-12-12  Maciej W. Rozycki  <macro@codesourcery.com>
242             Maciej W. Rozycki  <macro@mips.com>
243             Pedro Alves  <pedro@codesourcery.com>
244
245         * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
246         remove `predefault' and `invalid_p' initializers.
247         (make_symbol_special): New architecture method.
248         (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
249         (objfile, symbol): New declarations.
250         * arch-utils.h (default_elf_make_msymbol_special): Remove
251         prototype.
252         (default_make_symbol_special): New prototype.
253         (default_adjust_dwarf2_addr): Likewise.
254         (default_adjust_dwarf2_line): Likewise.
255         * mips-tdep.h (mips_unmake_compact_addr): New prototype.
256         * arch-utils.c (default_elf_make_msymbol_special): Remove
257         function.
258         (default_make_symbol_special): New function.
259         (default_adjust_dwarf2_addr): Likewise.
260         (default_adjust_dwarf2_line): Likewise.
261         * dwarf2-frame.c (decode_frame_entry_1): Call
262         `gdbarch_adjust_dwarf2_addr'.
263         * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
264         * dwarf2read.c (create_addrmap_from_index): Likewise.
265         (process_psymtab_comp_unit_reader): Likewise.
266         (add_partial_symbol): Likewise.
267         (add_partial_subprogram): Likewise.
268         (process_full_comp_unit): Likewise.
269         (read_file_scope): Likewise.
270         (read_func_scope): Likewise.  Call `gdbarch_make_symbol_special'.
271         (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
272         (read_call_site_scope): Likewise.
273         (dwarf2_ranges_read): Likewise.
274         (dwarf2_record_block_ranges): Likewise.
275         (read_attribute_value): Likewise.
276         (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
277         (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
278         * elfread.c (elf_symtab_read): Don't call
279         `gdbarch_elf_make_msymbol_special' if unset.
280         * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
281         the ISA bit from the PC.
282         * mips-tdep.c (mips_unmake_compact_addr): New function.
283         (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
284         address appropriately.
285         (mips_make_symbol_special): New function.
286         (mips_pc_is_mips): Set the ISA bit before symbol lookup.
287         (mips_pc_is_mips16): Likewise.
288         (mips_pc_is_micromips): Likewise.
289         (mips_pc_isa): Likewise.
290         (mips_adjust_dwarf2_addr): New function.
291         (mips_adjust_dwarf2_line): Likewise.
292         (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
293         (mips_addr_bits_remove): Likewise.
294         (mips_skip_trampoline_code): Likewise.
295         (mips_write_pc): Don't set the ISA bit.
296         (mips_eabi_push_dummy_call): Likewise.
297         (mips_o64_push_dummy_call): Likewise.
298         (mips_gdbarch_init): Install `mips_make_symbol_special',
299         `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
300         handlers.
301         * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
302         target-specific symbol address adjustments.
303         * gdbarch.h: Regenerate.
304         * gdbarch.c: Regenerate.
305
306 2014-12-12  Yao Qi  <yao@codesourcery.com>
307
308         PR tdep/14261
309         * arm-tdep.c (arm_skip_prologue): Remove unused local variable
310         'skip_pc'.  Remove code skipping prologue instructions, use
311         arm_analyze_prologue instead.
312         (arm_analyze_prologue): Stop the scanning for unrecognized
313         instruction when skipping prologue.
314
315 2014-12-12  Yao Qi  <yao@codesourcery.com>
316
317         * arm-tdep.c (arm_instruction_restores_sp): New function.
318         (arm_analyze_prologue): Call arm_instruction_restores_sp.
319         (arm_in_function_epilogue_p): Move code to
320         arm_instruction_restores_sp.
321
322 2014-12-11  Doug Evans  <xdje42@gmail.com>
323
324         * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
325
326 2014-12-11  Doug Evans  <xdje42@gmail.com>
327
328         * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
329         (symbol *lookup_symbol_via_quick_fns): Ditto.
330         (lookup_symbol_in_objfile): Add forward decl.
331         (lookup_global_symbol_from_objfile): Simplify, call
332         lookup_symbol_in_objfile.
333
334 2014-12-11  Doug Evans  <xdje42@gmail.com>
335
336         * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
337
338 2014-12-10  Simon Marchi  <simon.marchi@ericsson.com>
339
340         PR breakpoints/17012
341         * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
342         it is marked as persistent.
343
344 2014-12-10  Doug Evans  <xdje42@gmail.com>
345
346         * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
347         closer to its subroutines.
348
349 2014-12-10  Doug Evans  <xdje42@gmail.com>
350
351         * cp-namespace.c (lookup_symbol_file): Move next to only caller.
352
353 2014-12-10  Doug Evans  <xdje42@gmail.com>
354
355         * cp-namespace.c (cp_lookup_symbol_imports): Make static.
356         * cp-support.c (cp_lookup_symbol_imports): Delete.
357
358 2014-12-10  Simon Marchi  <simon.marchi@ericsson.com>
359
360         PR gdb/17627
361         * target.c (cleanup_restore_target_terminal): New function.
362         (make_cleanup_restore_target_terminal): New function.
363         * target.h (make_cleanup_restore_target_terminal): New declaration.
364         * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
365
366 2014-12-08  Doug Evans  <dje@google.com>
367
368         * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
369
370 2014-12-08  Doug Evans  <dje@google.com>
371
372         * NEWS: Mention gdb.Objfile.owner.
373         * python/py-objfile.c (objfpy_get_owner): New function.
374         (objfile_getset): Add "owner".
375
376 2014-12-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
377
378         * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
379         (lookup_global_symbol_from_objfile): Call it.
380
381 2014-12-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
382
383         Remove const from struct objfile *.
384         * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
385         symtab.c, symtab.h: In these files.
386
387 2014-12-05  Andreas From  <andreas.from@ericsson.com>
388
389         * MAINTAINERS (Write After Approval): Add "Andreas From"
390
391 2014-12-05  Doug Evans  <xdje42@gmail.com>
392
393         Revert:
394         PR symtab/17602
395         * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
396
397 2014-12-04  Doug Evans  <dje@google.com>
398
399         * NEWS: Mention gdb.Objfile.add_separate_debug_file.
400         * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
401         (objfile_getset): Add "add_separate_debug_file".
402
403 2014-12-04  Doug Evans  <dje@google.com>
404
405         * NEWS: Mention gdb.Objfile.build_id.
406         * build-id.c (build_id_bfd_get): Make non-static.
407         * build-id.h (build_id_bfd_get): Add declaration.
408         * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
409         (OBJFPY_REQUIRE_VALID): New macro.
410         (objfpy_get_build_id): New function.
411         (objfile_getset): Add "build_id".
412         * utils.c (make_hex_string): New function.
413         * utils.h (make_hex_string): Add declaration.
414
415 2014-12-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
416
417         * block.c (block_lookup_symbol_primary): New function.
418         * block.h (block_lookup_symbol_primary): New declaration.
419         * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
420         Call block_lookup_symbol_primary.
421
422 2014-12-03  Maciej W. Rozycki  <macro@codesourcery.com>
423
424         * tramp-frame.h (tramp_frame): Add `validate' member.
425         * tramp-frame.c (tramp_frame_start): Validate trampoline before
426         scanning.
427         * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
428         (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
429         (mips_linux_o32_sigframe): Initialize `validate' member.
430         (mips_linux_o32_rt_sigframe): Likewise.
431         (mips_linux_n32_rt_sigframe): Likewise.
432         (mips_linux_n64_rt_sigframe): Likewise.
433         (micromips_linux_o32_sigframe): New variable.
434         (micromips_linux_o32_rt_sigframe): Likewise.
435         (micromips_linux_n32_rt_sigframe): Likewise.
436         (micromips_linux_n64_rt_sigframe): Likewise.
437         (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
438         (mips_linux_n32n64_sigframe_init): Likewise.
439         (mips_linux_sigframe_validate): New function.
440         (micromips_linux_sigframe_validate): Likewise.
441         (mips_linux_init_abi): Install microMIPS trampoline unwinders.
442
443 2014-12-03  Ulrich Weigand  <uweigand@de.ibm.com>
444
445         * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
446         * sparc-sol2-tdep.c: Include "regset.h".
447         (sparc32_sol2_supply_core_gregset): New function.
448         (sparc32_sol2_collect_core_gregset): Likewise.
449         (sparc32_sol2_supply_core_fpregset): Likewise.
450         (sparc32_sol2_collect_core_fpregset): Likewise.
451         (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
452         (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
453         tdep->fpregset/sizeof_fpregset.
454         * sparc64-sol2-tdep.c: Include "regset.h".
455         (sparc64_sol2_supply_core_gregset): New function.
456         (sparc64_sol2_collect_core_gregset): Likewise.
457         (sparc64_sol2_supply_core_fpregset): Likewise.
458         (sparc64_sol2_collect_core_fpregset): Likewise.
459         (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
460         (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
461         tdep->fpregset/sizeof_fpregset.
462
463 2014-12-03  Simon Marchi  <simon.marchi@ericsson.com>
464
465         * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
466         type.
467
468 2014-12-02  Doug Evans  <dje@google.com>
469
470         * symtab.c (symbol_init_cplus_specific): Delete.
471         (symbol_set_demangled_name): Remove special c++ support.
472         (symbol_get_demangled_name, symbol_set_language): Ditto.
473         * symtab.h (struct cplus_specific): Delete.
474         (struct general_symbol_info) <language_specific>: Remove
475         cplus_specific.
476
477 2014-12-02  Doug Evans  <dje@google.com>
478
479         PR symtab/17602
480         * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
481
482 2014-12-02  Doug Evans  <dje@google.com>
483
484         PR symtab/17591
485         * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
486         to strip parameters.
487
488 2014-12-02  Doug Evans  <dje@google.com>
489
490         * dwarf2read.c (peek_die_abbrev): Improve error message text.
491
492 2014-12-02  Doug Evans  <dje@google.com>
493
494         * valops.c (do_search_struct_field): Remove remnant of Chill support.
495         Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
496
497 2014-12-02  Simon Marchi  <simon.marchi@ericsson.com>
498
499         * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
500
501 2014-12-02  Nick Bull  <nicholaspbull@gmail.com>
502
503         * NEWS: Mention new Python events.
504         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
505         (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
506         (py-infevents.o): New rule.
507         * doc/observer.texi (inferior_call_pre, inferior_call_post)
508         (memory_changed, register_changed): New observers.
509         * infcall.c (call_function_by_hand): Notify observer before and
510         after inferior call.
511         * python/py-event.h (inferior_call_kind): New enum.
512         (emit_inferior_call_event): New prototype.
513         (emit_register_changed_event): New prototype.
514         (emit_memory_changed_event): New prototype.
515         * python/py-events.h (events_object): New registries
516         inferior_call, memory_changed and register_changed.
517         * python/py-evts.c (gdbpy_initialize_py_events): Add the
518         inferior_call, memory_changed and register_changed registries.
519         * python/py-infevents.c: New.
520         * python/py-inferior.c (python_on_inferior_call_pre)
521         (python_on_inferior_call_post, python_on_register_change)
522         (python_on_memory_change): New functions.
523         (gdbpy_initialize_inferior): Attach python handler to new
524         observers.
525         * python/py-infthread.c(gdbpy_create_ptid_object): New.
526         (thpy_get_ptid) Use gdbpy_create_ptid_object.
527         * python/python-internal.h:
528         (gdbpy_create_ptid_object)
529         (gdbpy_initialize_inferior_call_pre_event)
530         (gdbpy_initialize_inferior_call_post_event)
531         (gdbpy_initialize_register_changed_event)
532         (gdbpy_initialize_memory_changed_event): New prototypes.
533         * python/python.c (_initialize_python): Initialize new events.
534         * valops.c (value_assign): Notify register_changed observer.
535
536 2014-12-02  Doug Evans  <dje@google.com>
537
538         * python/py-infthread.c: Whitespace fixes.
539
540 2014-12-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
541
542         * features/Makefile (s390-te-linux64-expedite): Replace
543         non-existant r14 and r15 by r14l and r15l, respectively.
544         * regformats/s390-te-linux64.dat: Regenerate.
545
546 2014-12-01  Simon Marchi  <simon.marchi@ericsson.com>
547
548         * objfiles.c (allocate_objfile): Remove duplicate comment.
549
550 2014-12-01  Ulrich Weigand  <uweigand@de.ibm.com>
551
552         * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
553         * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
554         (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
555         (supply_gregset, supply_fpregset): Remove.
556         * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
557         (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
558         and sizeof_gregset.
559
560 2014-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
561
562         Add add-auto-load-scripts-directory.
563         * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
564         * auto-load.c (add_auto_load_dir): New function.
565         (_initialize_auto_load): Install it.
566
567 2014-11-30  Martin Galvan  <martin.galvan@tallertechnologies.com>  (tiny patch, obvious)
568
569         Pushed by Joel Brobecker  <brobecker@adacore.com>.
570         * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
571
572 2014-11-29  Siva Chandra Reddy  <sivachandra@google.com>
573
574         * eval.c (evaluate_subexp): Check that the thread stack temporaries
575         are not already enabled before enabling them.
576
577 2014-11-29  Yao Qi  <yao@codesourcery.com>
578
579         * arm-tdep.c (arm_analyze_prologue): Move local variables
580         'framereg' and 'framesize' to inner block.  Move code to
581         inner block too.
582
583 2014-11-28  Siva Chandra Reddy  <sivachandra@google.com>
584
585         * eval.c: Include gdbthread.h.
586         (evaluate_subexp): Enable thread stack temporaries before
587         evaluating a complete expression and clean them up after the
588         evaluation is complete.
589         * gdbthread.h: Include common/vec.h.
590         (value_ptr): New typedef.
591         (VEC (value_ptr)): New vector type.
592         (value_vec): New typedef.
593         (struct thread_info): Add new fields stack_temporaries_enabled
594         and stack_temporaries.
595         (enable_thread_stack_temporaries)
596         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
597         (get_last_thread_stack_temporary)
598         (value_in_thread_stack_temporaries): Declare.
599         * gdbtypes.c (class_or_union_p): New function.
600         * gdbtypes.h (class_or_union_p): Declare.
601         * infcall.c (call_function_by_hand): Store return values of class
602         type as temporaries on stack.
603         * thread.c (enable_thread_stack_temporaries): New function.
604         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
605         (get_last_thread_stack_temporary): Likewise.
606         (value_in_thread_stack_temporaries): Likewise.
607         * value.c (value_force_lval): New function.
608         * value.h (value_force_lval): Declare.
609
610 2014-11-28  Pierre Muller  <muller@sourceware.org>
611
612         Pushed by Joel Brobecker  <brobecker@adacore.com>.
613         * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
614         registers.
615
616 2014-11-28  Ulrich Weigand  <uweigand@de.ibm.com>
617
618         * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
619         * config/sparc/linux.mh (NATDEPFILES): Likewise.
620         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
621         * m68klinux-nat.c (fetch_core_registers): Remove.
622         (linux_elf_core_fns): Remove.
623         (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
624
625 2014-11-28  Joel Brobecker  <brobecker@adacore.com>
626
627         * utils.c (gdb_realpath): Rework comment about handling on
628         Windows.
629
630 2014-11-28  Yao Qi  <yao@codesourcery.com>
631
632         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
633         rename.
634         * gnulib/aclocal.m4: Re-generated.
635         * gnulib/config.in: Re-generated.
636         * gnulib/configure: Re-generated.
637         * gnulib/import/Makefile.am: Re-generated.
638         * gnulib/import/Makefile.in: Re-generated.
639         * gnulib/import/m4/gnulib-cache.m4: Re-generated.
640         * gnulib/import/m4/gnulib-comp.m4: Re-generated.
641         * import/basename-lgpl.c: New file.
642         * import/dirname-lgpl.c: New file.
643         * import/dirname.h: New file.
644         * import/m4/dirname.m4: New file.
645         * import/m4/malloc.m4: New file.
646         * import/m4/rename.m4: New file.
647         * import/m4/rmdir.m4: New file.
648         * import/m4/stdio_h.m4: New file.
649         * import/malloc.c: New file.
650         * import/rename.c: New file.
651         * import/rmdir.c: New file.
652         * import/same-inode.h: New file.
653         * import/stdio.c: New file.
654         * import/stdio.in.h: New file.
655         * import/stripslash.c: New file.
656
657 2014-11-28  Yao Qi  <yao@codesourcery.com>
658
659         * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
660         and realpath.
661         * config.in: Re-generated.
662         * configure: Re-generated.
663         * utils.c (gdb_realpath): Remove code calling realpath,
664         canonicalize_file_name and pathconf.
665         [!_WIN32]: Call canonicalize_file_name.
666
667 2014-11-28  Yao Qi  <yao@codesourcery.com>
668
669         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
670         canonicalize-lgpl.
671         * aclocal.m4: Re-generated.
672         * config.in: Re-generated.
673         * configure: Re-generated.
674         * import/Makefile.am: Re-generated.
675         * import/Makefile.in: Re-generated.
676         * import/m4/gnulib-cache.m4: Re-generated.
677         * import/m4/gnulib-comp.m4: Re-generated.
678         * import/canonicalize-lgpl.c: New file.
679         * import/extra/snippet/_Noreturn.h: New file.
680         * import/m4/canonicalize.m4: New file.
681         * import/m4/double-slash-root.m4: New file.
682         * import/m4/eealloc.m4: New file.
683         * import/m4/malloca.m4: New file.
684         * import/m4/nocrash.m4: New file.
685         * import/m4/stdlib_h.m4: New file.
686         * import/malloca.c: New file.
687         * import/malloca.h: New file.
688         * import/malloca.valgrind: New file.
689
690 2014-11-28  Yao Qi  <yao@codesourcery.com>
691
692         * configure.ac (AC_CHECK_FUNCS): Remove lstat.
693         * config.in, configure: Regenerate.
694         * symfile.c (find_separate_debug_file_by_debuglink): Remove
695         code checking HAVE_LSTAT is defined.
696
697 2014-11-28  Yao Qi  <yao@codesourcery.com>
698
699         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
700         lstat.
701         * gnulib/aclocal.m4: Re-generated.
702         * gnulib/config.in: Re-generated.
703         * gnulib/configure: Re-generated.
704         * gnulib/import/Makefile.am: Re-generated.
705         * gnulib/import/Makefile.in: Re-generated.
706         * gnulib/import/m4/gnulib-cache.m4: Re-generated.
707         * gnulib/import/m4/gnulib-comp.m4: Re-generated.
708         * gnulib/import/lstat.c: New file.
709         * gnulib/import/m4/lstat.m4: New file.
710
711 2014-11-28  Yao Qi  <yao@codesourcery.com>
712
713         * configure.ac (AC_CHECK_FUNCS): Remove readlink.
714         * config.in, configure: Re-generate.
715         * inf-child.c (inf_child_fileio_readlink): Don't check
716         HAVE_READLINK is defined.
717
718 2014-11-28  Yao Qi  <yao@codesourcery.com>
719
720         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
721         * gnulib/aclocal.m4: Re-generated.
722         * gnulib/config.in: Likewise.
723         * gnulib/configure: Likewise.
724         * gnulib/import/Makefile.am: Likewise.
725         * gnulib/import/Makefile.in: Likewise.
726         * gnulib/import/m4/gnulib-cache.m4: Likewise.
727         * gnulib/import/m4/gnulib-comp.m4: Likewise.
728         * gnulib/import/dosname.h: New file
729         * gnulib/import/m4/largefile.m4: New file.
730         * gnulib/import/m4/readlink.m4: New file.
731         * gnulib/import/m4/stat.m4: New file.
732         * gnulib/import/readlink.c: New file.
733         * gnulib/import/stat.c: New file.
734
735 2014-11-26  Mark Wielaard  <mjw@redhat.com>
736
737         * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
738         DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
739
740 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
741
742         * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
743         that there can be only one stack adjustment in the prologue
744         with tests to detect specific disallowed stack adjustments.
745
746 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
747
748         * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
749         adjustments.
750
751 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
752
753         * nios2-tdep.c (nios2_fetch_insn): Move up in file.  Disassemble
754         the instruction as well as reading it from memory.
755         (nios2_match_add): New.
756         (nios2_match_sub): New.
757         (nios2_match_addi): New.
758         (nios2_match_orhi): New.
759         (nios2_match_stw): New.
760         (nios2_match_ldw): New.
761         (nios2_match_rdctl): New.
762         (enum branch_condition): New.
763         (nios2_match_branch): New.
764         (nios2_match_jmpi): New.
765         (nios2_match_calli): New.
766         (nios2_match_jmpr): New.
767         (nios2_match_callr): New.
768         (nios2_match_break): New.
769         (nios2_match_trap): New.
770         (nios2_in_epilogue_p): Rewrite to use new functions.
771         (nios2_analyze_prologue): Likewise.
772         (nios2_skip_prologue): Delete unused local limit_pc.
773         (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
774         (nios2_get_next_pc): Rewrite to use new functions.
775
776 2014-11-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
777
778         * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
779
780 2014-11-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
781
782         Pushed by Joel Brobecker  <brobecker@adacore.com>
783         * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
784         elements pi_len by the size of the elements before calling
785         vm_deallocate.
786         (inf_validate_task_sc): Likewise, and properly deallocate the
787         noise array.
788
789 2014-11-23  Doug Evans  <xdje42@gmail.com>
790
791         * gdbtypes.c (print_args): Renamed from print_arg_types.  Print arg
792         number and name if present.  All callers updated.
793         (dump_fn_fieldlists): Fix indentation of args.
794
795 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
796
797         * MAINTAINERS (Write After Approval): Add myself.
798
799 2014-11-23  Joel Brobecker  <brobecker@adacore.com>
800
801         * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
802         to a bp_call_dummy breakpoint type.
803
804 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
805
806         * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
807         registering the signal handler.
808
809 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
810
811         * event-top.h (call_stdin_event_handler_again_p): Declare.
812         * event-top.c (call_stdin_event_handler_again_p): Define.
813         (stdin_event_handler): Use it.
814         * tui/tui-io.c (tui_getc): Prepare to call the stdin event
815         handler again if there is pending input following a
816         start sequence.
817
818 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
819
820         Pushed by Joel Brobecker  <brobecker@adacore.com>
821         * linux-fork.c (checkpoint_command): Print index of new
822         checkpoint in response message.
823
824 2014-11-23  Yao Qi  <yao@codesourcery.com>
825
826         * valprint.c (read_string): Move local variables 'found_nul',
827         'chunksize' and 'limit' to inner scope.  Update comments.
828
829 2014-11-22  Doug Evans  <xdje42@gmail.com>
830
831         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
832         function comment.
833         (search_symbols): Fix comments and whitespace.
834
835 2014-11-22  Doug Evans  <xdje42@gmail.com>
836
837         * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
838
839 2014-11-21  Doug Evans  <dje@google.com>
840
841         * psymtab.c (psymtab_search_name): Fix whitespace.
842
843 2014-11-21  Yao Qi  <yao@codesourcery.com>
844
845         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
846         errno.
847         * gnulib/import/Makefile.am: Re-generated.
848         * gnulib/import/Makefile.in: Likewise.
849         * gnulib/import/m4/gnulib-cache.m4: Likewise.
850
851 2014-11-21  Yao Qi  <yao@codesourcery.com>
852
853         * gdb_wchar.h: Include wchar.h and wctype.h.
854         [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
855         include wchar.h and wctype.h.
856         Don't check HAVE_WCHAR_H.
857
858 2014-11-21  Yao Qi  <yao@codesourcery.com>
859
860         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
861         and wctype-h.
862         * gnulib/import/Makefile.am: Re-generated.
863         * gnulib/import/Makefile.in: Likewise.
864         * gnulib/import/m4/gnulib-cache.m4: Likewise.
865
866 2014-11-21  Yao Qi  <yao@codesourcery.com>
867
868         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
869         memchr.
870         * gnulib/import/Makefile.am: Re-generated.
871         * gnulib/import/Makefile.in: Likewise.
872         * gnulib/import/m4/gnulib-cache.m4: Likewise.
873
874 2014-11-21  Yao Qi  <yao@codesourcery.com>
875
876         * common/common-defs.h: Include alloca.h
877         * configure.ac: Don't invoke AC_FUNC_ALLOCA.
878         * configure: Re-generated.
879         * defs.h: Remove code handling alloca.
880         * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
881         or not.
882
883 2014-11-21  Yao Qi  <yao@codesourcery.com>
884
885         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
886         alloca.
887         * gnulib/import/Makefile.am: Re-generated.
888         * gnulib/import/Makefile.in: Likewise..
889         * gnulib/import/m4/gnulib-cache.m4: Likewise.
890
891 2014-11-21  Yao Qi  <yao@codesourcery.com>
892
893         * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
894         alphabetical order.
895
896 2014-11-21  Joel Brobecker  <brobecker@adacore.com>
897
898         * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
899         flag_unsigned if HIGH_BOUND is constant and negative.
900
901 2014-11-20  Sergio Durigan Junior  <sergiodj@redhat.com>
902
903         PR breakpoints/10737
904         * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
905         modifier from "struct gdbarch" when compiling without Expat (XML)
906         support.
907         (get_syscall_by_number): Likewise.
908         (get_syscall_by_name): Likewise.
909         (get_syscall_names): Likewise.
910
911 2014-11-20  Sergio Durigan Junior  <sergiodj@redhat.com>
912
913         PR breakpoints/10737
914         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
915         set_xml_syscall_file_name to provide gdbarch.
916         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
917         * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
918         * breakpoint.c (print_it_catch_syscall): Adjust call to
919         get_syscall_by_number to provide gdbarch.
920         (print_one_catch_syscall): Likewise.
921         (print_mention_catch_syscall): Likewise.
922         (print_recreate_catch_syscall): Likewise.
923         (catch_syscall_split_args): Adjust calls to get_syscall_by_number
924         and get_syscall_by_name to provide gdbarch.
925         (catch_syscall_completer): Adjust call to get_syscall_names to
926         provide gdbarch.
927         * gdbarch.c: Regenerate.
928         * gdbarch.h: Likewise.
929         * gdbarch.sh: Forward declare "struct syscalls_info".
930         (xml_syscall_file): New variable.
931         (syscalls_info): Likewise.
932         * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
933         set_xml_syscall_file_name to provide gdbarch.
934         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
935         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
936         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
937         * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
938         * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
939         * xml-syscall.c: Include gdbarch.h.
940         (set_xml_syscall_file_name): Accept gdbarch parameter.
941         (get_syscall_by_number): Likewise.
942         (get_syscall_by_name): Likewise.
943         (get_syscall_names): Likewise.
944         (my_gdb_datadir): Delete global variable.
945         (struct syscalls_info) <my_gdb_datadir>: New variable.
946         (struct syscalls_info) <sysinfo>: Rename variable to
947         "syscalls_info".
948         (sysinfo): Delete global variable.
949         (have_initialized_sysinfo): Likewise.
950         (xml_syscall_file): Likewise.
951         (sysinfo_free_syscalls_desc): Rename to...
952         (syscalls_info_free_syscalls_desc): ... this.
953         (free_syscalls_info): Rename "sysinfo" to "syscalls_info".  Adjust
954         code to the new layout of "struct syscalls_info".
955         (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
956         "syscalls_info".
957         (syscall_create_syscall_desc): Likewise.
958         (syscall_start_syscall): Likewise.
959         (syscall_parse_xml): Likewise.
960         (xml_init_syscalls_info): Likewise.  Drop "const" from return value.
961         (init_sysinfo): Rename to...
962         (init_syscalls_info): ...this.  Add gdbarch as a parameter.
963         Adjust function to deal with gdbarch.
964         (xml_get_syscall_number): Delete parameter sysinfo.  Accept
965         gdbarch as a parameter.  Adjust code.
966         (xml_get_syscall_name): Likewise.
967         (xml_list_of_syscalls): Likewise.
968         (set_xml_syscall_file_name): Accept gdbarch as parameter.
969         (get_syscall_by_number): Likewise.
970         (get_syscall_by_name): Likewise.
971         (get_syscall_names): Likewise.
972         * xml-syscall.h (set_xml_syscall_file_name): Likewise.
973         (get_syscall_by_number): Likewise.
974         (get_syscall_by_name): Likewise.
975         (get_syscall_names): Likewise.
976
977 2014-11-20  Doug Evans  <xdje42@gmail.com>
978
979         Split struct symtab into two: struct symtab and compunit_symtab.
980         * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
981         * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
982         to "struct compunit_symtab *".  All callers updated.
983         (set_block_compunit_symtab): Renamed from set_block_symtab.  Change
984         "struct symtab *" argument to "struct compunit_symtab *".
985         All callers updated.
986         (get_block_compunit_symtab): Renamed from get_block_symtab.  Change
987         result to "struct compunit_symtab *".  All callers updated.
988         (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
989         Change result to "struct compunit_symtab *".  All callers updated.
990         * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
991         hange type to "struct compunit_symtab *".  All uses updated.
992         (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
993         Change type to "struct compunit_symtab *".  All uses updated.
994         * buildsym.c (struct buildsym_compunit): New struct.
995         (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
996         (buildsym_compunit): New static global.
997         (finish_block_internal): Update to fetch objfile from
998         buildsym_compunit.
999         (make_blockvector): Delete objfile argument.
1000         (start_subfile): Rewrite to use buildsym_compunit.  Don't initialize
1001         debugformat, producer.
1002         (start_buildsym_compunit): New function.
1003         (free_buildsym_compunit): Renamed from free_subfiles_list.
1004         All callers updated.
1005         (patch_subfile_names): Rewrite to use buildsym_compunit.
1006         (get_compunit_symtab): New function.
1007         (get_macro_table): Delete argument comp_dir.  All callers updated.
1008         (start_symtab): Change result to "struct compunit_symtab *".
1009         All callers updated.  Create the subfile of the main source file.
1010         (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1011         (reset_symtab_globals): Update.
1012         (end_symtab_get_static_block): Update to use buildsym_compunit.
1013         (end_symtab_without_blockvector): Rewrite.
1014         (end_symtab_with_blockvector): Change result to
1015         "struct compunit_symtab *".  All callers updated.
1016         Update to use buildsym_compunit.  Don't set symtab->dirname,
1017         instead set it in the compunit.
1018         Explicitly make sure main symtab is first in its list.
1019         Set debugformat, producer, blockvector, block_line_section, and
1020         macrotable in the compunit.
1021         (end_symtab_from_static_block): Change result to
1022         "struct compunit_symtab *".  All callers updated.
1023         (end_symtab, end_expandable_symtab): Ditto.
1024         (set_missing_symtab): Change symtab argument to
1025         "struct compunit_symtab *".  All callers updated.
1026         (augment_type_symtab): Ditto.
1027         (record_debugformat): Update to use buildsym_compunit.
1028         (record_producer): Update to use buildsym_compunit.
1029         * buildsym.h (struct subfile) <dirname>: Delete.
1030         <producer, debugformat>: Delete.
1031         <buildsym_compunit>: New member.
1032         (get_compunit_symtab): Declare.
1033         * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1034         from primary_symtab.  Change type to "struct compunit_symtab *".
1035         All uses updated.
1036         (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1037         All callers updated.
1038         (dwarf_decode_macros): Delete comp_dir argument.  All callers updated.
1039         (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1040         symtab.  Change type to "struct compunit_symtab *".  All uses updated.
1041         (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1042         All callers updated.
1043         (dw2_find_last_source_symtab): Ditto.
1044         (dw2_lookup_symbol): Ditto.
1045         (recursively_find_pc_sect_compunit_symtab): Renamed from
1046         recursively_find_pc_sect_symtab.  Change result to
1047         "struct compunit_symtab *".  All callers updated.
1048         (dw2_find_pc_sect_compunit_symtab): Renamed from
1049         dw2_find_pc_sect_symtab.  Change result to
1050         "struct compunit_symtab *".  All callers updated.
1051         (get_compunit_symtab): Renamed from get_symtab.  Change result to
1052         "struct compunit_symtab *".  All callers updated.
1053         (recursively_compute_inclusions): Change type of immediate_parent
1054         argument to "struct compunit_symtab *".  All callers updated.
1055         (compute_compunit_symtab_includes): Renamed from
1056         compute_symtab_includes.  All callers updated.  Rewrite to compute
1057         includes of compunit_symtabs and not symtabs.
1058         (process_full_comp_unit): Update to work with struct compunit_symtab.
1059         (process_full_type_unit): Ditto.
1060         (dwarf_decode_lines_1): Delete argument comp_dir.  All callers updated.
1061         (dwarf_decode_lines): Remove special case handling of main subfile.
1062         (macro_start_file): Delete argument comp_dir.  All callers updated.
1063         (dwarf_decode_macro_bytes): Ditto.
1064         * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1065         use struct compunit_symtab.
1066         * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1067         * jit.c (finalize_symtab): Build compunit_symtab.
1068         * jv-lang.c (get_java_class_symtab): Change result to
1069         "struct compunit_symtab *".  All callers updated.
1070         * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1071         * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1072         comp_dir.  Change type to "struct compunit_symtab *".
1073         All uses updated.
1074         (new_macro_table): Change comp_dir argument to cust,
1075         "struct compunit_symtab *".  All callers updated.
1076         * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1077         nr_primary_symtabs.  All uses updated.
1078         (count_symtabs_and_blocks): Update to handle compunits.
1079         (report_command_stats): Update output, "primary symtabs" renamed to
1080         "compunits".
1081         * mdebugread.c (new_symtab): Change result to
1082         "struct compunit_symtab *".  All callers updated.
1083         (parse_procedure): Change type of search_symtab argument to
1084         "struct compunit_symtab *".  All callers updated.
1085         * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1086         separate loop.
1087         * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1088         symtabs.  Change type to "struct compunit_symtab *".  All uses updated.
1089         (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1090         All uses updated.
1091         (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1092         All uses updated.
1093         (ALL_FILETABS): Renamed from ALL_SYMTABS.  All uses updated.
1094         (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS.  All uses updated.
1095         * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1096         symtab.  Change type to "struct compunit_symtab *".  All uses updated.
1097         * psymtab.c (psymtab_to_symtab): Change result type to
1098         "struct compunit_symtab *".  All callers updated.
1099         (find_pc_sect_compunit_symtab_from_partial): Renamed from
1100         find_pc_sect_symtab_from_partial.  Change result type to
1101         "struct compunit_symtab *".  All callers updated.
1102         (lookup_symbol_aux_psymtabs): Change result type to
1103         "struct compunit_symtab *".  All callers updated.
1104         (find_last_source_symtab_from_partial): Ditto.
1105         * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1106         * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1107         and macro_table from compunit.
1108         * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1109         type to "struct compunit_symtab *".  All callers updated.
1110         (debug_qf_lookup_symbol): Ditto.
1111         (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1112         debug_qf_find_pc_sect_symtab, change result type to
1113         "struct compunit_symtab *".  All callers updated.
1114         * symfile.c (allocate_symtab): Delete objfile argument.
1115         New argument cust.
1116         (allocate_compunit_symtab): New function.
1117         (add_compunit_symtab_to_objfile): New function.
1118         * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1119         Change result type to "struct compunit_symtab *".  All uses updated.
1120         <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1121         Change result type to "struct compunit_symtab *".  All uses updated.
1122         * symmisc.c (print_objfile_statistics): Compute blockvector count in
1123         separate loop.
1124         (dump_symtab_1): Update test for primary source symtab.
1125         (maintenance_info_symtabs): Update to handle compunit symtabs.
1126         (maintenance_check_symtabs): Ditto.
1127         * symtab.c (set_primary_symtab): Delete.
1128         (compunit_primary_filetab): New function.
1129         (compunit_language): New function.
1130         (iterate_over_some_symtabs): Change type of arguments "first",
1131         "after_last" to "struct compunit_symtab *".  All callers updated.
1132         Update to loop over symtabs in each compunit.
1133         (error_in_psymtab_expansion): Rename symtab argument to cust,
1134         and change type to "struct compunit_symtab *".  All callers updated.
1135         (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1136         Change result type to "struct compunit_symtab *".  All callers updated.
1137         (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1138         Change result type to "struct compunit_symtab *".  All callers updated.
1139         (find_pc_sect_line): Only loop over symtabs within selected compunit
1140         instead of all symtabs in the objfile.
1141         * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1142         <compunit_symtab> New member.
1143         <block_line_section>: Moved to compunit_symtab.
1144         <locations_valid>: Ditto.
1145         <epilogue_unwind_valid>: Ditto.
1146         <macro_table>: Ditto.
1147         <dirname>: Ditto.
1148         <debugformat>: Ditto.
1149         <producer>: Ditto.
1150         <objfile>: Ditto.
1151         <call_site_htab>: Ditto.
1152         <includes>: Ditto.
1153         <user>: Ditto.
1154         <primary>: Delete
1155         (SYMTAB_COMPUNIT): New macro.
1156         (SYMTAB_BLOCKVECTOR): Update definition.
1157         (SYMTAB_OBJFILE): Update definition.
1158         (SYMTAB_DIRNAME): Update definition.
1159         (struct compunit_symtab): New type.  Common members among all source
1160         symtabs within a compilation unit moved here.  All uses updated.
1161         (COMPUNIT_OBJFILE): New macro.
1162         (COMPUNIT_FILETABS): New macro.
1163         (COMPUNIT_DEBUGFORMAT): New macro.
1164         (COMPUNIT_PRODUCER): New macro.
1165         (COMPUNIT_DIRNAME): New macro.
1166         (COMPUNIT_BLOCKVECTOR): New macro.
1167         (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1168         (COMPUNIT_LOCATIONS_VALID): New macro.
1169         (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1170         (COMPUNIT_CALL_SITE_HTAB): New macro.
1171         (COMPUNIT_MACRO_TABLE): New macro.
1172         (ALL_COMPUNIT_FILETABS): New macro.
1173         (compunit_symtab_ptr): New typedef.
1174         (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1175
1176 2014-11-20  Joel Brobecker  <brobecker@adacore.com>
1177
1178         * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1179         if the TYPE_CODE of range_type's base type does not match
1180         the TYPE_CODE of encoding_type's base type.
1181
1182 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
1183
1184         * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1185         it starts with '<'.
1186
1187 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
1188
1189         * ada-lang.c (ada_is_redundant_range_encoding): New function.
1190         (ada_is_redundant_index_type_desc): New function.
1191         (to_fixed_array_type): Ignore parallel XA type if redundant.
1192
1193 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
1194
1195         * ada-lang.c (constrained_packed_array_type): Set the length
1196         of the return array as if both bounds where zero if that
1197         returned array's index type is dynamic.
1198
1199 2014-11-19  Yao Qi  <yao@codesourcery.com>
1200
1201         * config/i386/go32.mh (CC): Remove.
1202
1203 2014-11-18  Doug Evans  <xdje42@gmail.com>
1204
1205         * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR.  All uses
1206         updated.
1207
1208 2014-11-18  Doug Evans  <xdje42@gmail.com>
1209
1210         * buildsym.c (buildsym_objfile): New static global.
1211         (buildsym_comp_dir): New static global.
1212         (finish_block_internal): Delete arg objfile.  All callers updated.
1213         (finish_block): Delete arg objfile.  All callers updated.
1214         (start_subfile): Delete arg dirname.  All callers updated.
1215         (patch_subfile_names): Update buildsym_comp_dir.
1216         (get_macro_table): Delete arg objfile.  All callers updated.
1217         (start_symtab): New arg objfile.  All callers updated.
1218         Rename arg dirname to comp_dir.
1219         (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1220         (end_symtab_get_static_block): Delete arg objfile.  All callers
1221         updated.
1222         (end_symtab_without_blockvector): Ditto.
1223         (end_symtab_with_blockvector): Ditto.
1224         (end_symtab_from_static_block): Ditto.
1225         (end_symtab): Ditto.
1226         (end_expandable_symtab): Ditto.
1227         (augment_type_symtab): Ditto.
1228         * coffread.c (coff_start_symtab): New arg objfile.  All callers
1229         updated.
1230
1231 2014-11-18  Doug Evans  <xdje42@gmail.com>
1232
1233         * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE.  All uses
1234         updated.
1235
1236 2014-11-18  Doug Evans  <xdje42@gmail.com>
1237
1238         * symtab.h (SYMTAB_DIRNAME): New macro.  All uses of member
1239         symtab.dirname updated to use it.
1240
1241 2014-11-18  Doug Evans  <xdje42@gmail.com>
1242
1243         * symtab.h (SYMTAB_OBJFILE): New macro.  All uses of member
1244         symtab.objfile updated to use it.
1245
1246 2014-11-18  Doug Evans  <xdje42@gmail.com>
1247
1248         * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1249
1250 2014-11-18  Doug Evans  <xdje42@gmail.com>
1251
1252         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1253         SYMBOL_OBJFILE.
1254         * findvar.c (default_read_var_value): Ditto.
1255         * jv-lang.c (add_class_symtab_symbol): Ditto.
1256         * parse.c (operator_check_standard): Ditto.
1257         * printcmd.c (address_info): Ditto.
1258         * symtab.c (fixup_symbol_section): Ditto.
1259         (skip_prologue_sal): Ditto.
1260         * tracepoint.c (scope_info): Ditto.
1261         * valops.c (find_function_in_inferior): Ditto.
1262         * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1263         * python/py-symbol.c (set_symbol): Ditto.
1264
1265 2014-11-18  Doug Evans  <xdje42@gmail.com>
1266
1267         * buildsym.c (main_subfile): New static global.
1268         (free_subfiles_list): New function.
1269         (start_symtab): Set main_subfile.
1270         (restart_symtab): Replace init of subfiles, current_subfile with
1271         call to free_subfiles_list.
1272         (watch_main_source_file_lossage): Use main_subfile.
1273         (reset_symtab_globals): Replace init of current_subfile with call
1274         to free_subfiles_list.
1275         (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1276         functions, split out from ...
1277         (end_symtab_from_static_block): ... here.  Rewrite to call them.
1278
1279 2014-11-18  Doug Evans  <xdje42@gmail.com>
1280
1281         The result of symtab expansion is always a primary symtab.
1282         * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1283         (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1284         * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1285         (psymtab_to_symtab): Add comment and assert.
1286         (map_matching_symbols_psymtab): Remove unnecessary test for
1287         non-primary symtab.
1288
1289 2014-11-15  Doug Evans  <xdje42@gmail.com>
1290
1291         PR symtab/17559
1292         * symtab.c (find_pc_line_symtab): New function.
1293         * symtab.h (find_pc_line_symtab): Declare.
1294         * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1295         find_pc_symtab.
1296         * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1297         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1298         * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1299         * tui/tui-win.c (make_visible_with_new_height): Ditto.
1300         * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1301         (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1302
1303 2014-11-15  Doug Evans  <xdje42@gmail.com>
1304
1305         * symtab.c (expand_symtab_containing_pc): Renamed from
1306         find_pc_sect_symtab_via_partial.  All callers updated.
1307
1308 2014-11-15  Yao Qi  <yao@codesourcery.com>
1309
1310         * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1311
1312 2014-11-14  Joel Brobecker  <brobecker@adacore.com>
1313
1314         * common/common-defs.h: Move <stdarg.h> #include ahead of
1315         <stdio.h> #include.
1316
1317 2014-11-14  Pedro Alves  <palves@redhat.com>
1318
1319         * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1320         [!PHONY_ICONV] (gdb_iconv): New function.
1321         [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1322
1323 2014-11-13  Doug Evans  <dje@google.com>
1324
1325         PR symtab/17591
1326         * dwarf2read.c (find_slot_in_mapped_hash): Handle
1327         "(anonymous namespace)".
1328
1329 2014-11-13  Doug Evans  <dje@google.com>
1330
1331         * dwarf2read.c (update_enumeration_type_from_children): Avoid
1332         infinite loop.
1333
1334 2014-11-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1335
1336         * NEWS (maint set target-async): Fix typo.
1337
1338 2014-11-12  Pedro Alves  <palves@redhat.com>
1339
1340         * infrun.c (enum infwait_states, infwait_state): Delete.
1341
1342 2014-11-12  Pedro Alves  <palves@redhat.com>
1343
1344         * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1345         Rewrite stepping over a permanent breakpoint.
1346         (thread_still_needs_step_over, proceed): Don't set
1347         stepping_over_breakpoint for permanent breakpoints.
1348         (handle_signal_stop): Don't clear stepped_breakpoint.  Also pull
1349         single-step breakpoints out of the target on hardware step
1350         targets.
1351         (process_event_stop_test): If stepping a permanent breakpoint
1352         doesn't hit the step-resume breakpoint, delete the step-resume
1353         breakpoint.
1354         (switch_back_to_stepped_thread): Also check if the stepped thread
1355         has advanced already on hardware step targets.
1356         (currently_stepping): Return true if the thread stepped a
1357         breakpoint.
1358
1359 2014-11-12  Pedro Alves  <palves@redhat.com>
1360
1361         Mark locations as permanent, not the whole breakpoint.
1362         * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1363         (mark_breakpoints_out): Don't mark permanent breakpoints as
1364         uninserted.
1365         (breakpoint_init_inferior): Use mark_breakpoints_out.
1366         (breakpoint_here_p): Adjust.
1367         (bpstat_stop_status, describe_other_breakpoints): Remove handling
1368         of permanent breakpoints.
1369         (make_breakpoint_permanent): Mark each location as permanent,
1370         instead of marking the breakpoint.
1371         (add_location_to_breakpoint): If the location is permanent, mark
1372         it as such, and as inserted.
1373         (init_breakpoint_sal): Don't make the breakpoint permanent here.
1374         (bp_location_compare, update_global_location_list): Adjust.
1375         (update_breakpoint_locations): Don't make the breakpoint permanent
1376         here.
1377         (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1378         breakpoints.
1379         * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1380         (struct bp_location) <permanent>: New field.
1381         * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1382         reference to bp_permanent.
1383
1384 2014-11-12  Pedro Alves  <palves@redhat.com>
1385
1386         * arch-utils.c (default_skip_permanent_breakpoint): New function.
1387         * arch-utils.h (default_skip_permanent_breakpoint): New
1388         declaration.
1389         * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1390         Install default_skip_permanent_breakpoint as default method.
1391         * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1392         (i386_gdbarch_init): Don't install it.
1393         * infrun.c (resume): Assume there's always a
1394         gdbarch_skip_permanent_breakpoint implementation.
1395         * gdbarch.h, gdbarch.c: Regenerate.
1396
1397 2014-11-11  Daniel Colascione  <dancol@dancol.org>
1398
1399         Warn about cross-PID-namespace debugging.
1400         * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1401         * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1402         * linux-thread-db.c (check_pid_namespace_match): New function.
1403         (thread_db_inferior_created): Call it.
1404
1405 2014-11-10  Doug Evans  <xdje42@gmail.com>
1406
1407         * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1408         (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1409
1410 2014-11-10  Doug Evans  <xdje42@gmail.com>
1411
1412         * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1413
1414 2014-11-10  Doug Evans  <xdje42@gmail.com>
1415
1416         PR symtab/17564
1417         * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1418         (lookup_static_symbol): Move definition to new location and rewrite.
1419         (lookup_symbol_in_objfile): New function.
1420         (lookup_symbol_global_iterator_cb): Call it.
1421
1422 2014-11-10  Ulrich Weigand  <uweigand@de.ibm.com>
1423
1424         * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1425
1426 2014-11-07  Pedro Alves  <palves@redhat.com>
1427
1428         * infrun.c (process_event_stop_test) <subroutine check>: Don't
1429         check if we did a "nexti" inside a prologue.
1430         * symtab.c (in_prologue): Delete function.
1431         * symtab.h (in_prologue): Delete declaration.
1432
1433 2014-11-06  Doug Evans  <xdje42@gmail.com>
1434
1435         * symtab.h (lookup_global_symbol): Improve function comment.
1436
1437 2014-11-06  Doug Evans  <xdje42@gmail.com>
1438
1439         * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1440         All callers updated.
1441         * symtab.h (lookup_global_symbol): Update decl.
1442         (lookup_static_symbol): Move decl to better location.
1443
1444 2014-11-06  Doug Evans  <xdje42@gmail.com>
1445
1446         * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1447
1448 2014-11-06  Doug Evans  <xdje42@gmail.com>
1449
1450         * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1451         All callers updated.
1452         (lookup_symbol_in_all_objfiles): Renamed from
1453         lookup_symbol_aux_symtabs.  All callers updated.
1454         (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1455         All callers updated.
1456         (lookup_symbol_in_objfile_symtabs): Renamed from
1457         lookup_symbol_aux_objfile.  All callers updated.
1458
1459 2014-11-06  Doug Evans  <xdje42@gmail.com>
1460
1461         * symtab.c (lookup_symbol_in_block): Renamed from
1462         lookup_symbol_aux_block.  All callers updated.
1463
1464 2014-11-06  Doug Evans  <xdje42@gmail.com>
1465
1466         * symtab.c (lookup_static_symbol): Renamed from
1467         lookup_static_symbol_aux.  All callers updated.
1468         (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1469         All callers updated.
1470
1471 2014-11-06  Doug Evans  <xdje42@gmail.com>
1472
1473         * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1474         * block.c (block_lookup_symbol): Use it.
1475         * cp-support.c (make_symbol_overload_list_block): Use it.
1476         * symtab.c (iterate_over_symbols): Use it.
1477
1478 2014-11-06  Doug Evans  <xdje42@gmail.com>
1479
1480         * symtab.c (lookup_block_symbol): Moved to ...
1481         * block.c (block_lookup_symbol):  ... here and renamed.
1482         All callers updated.
1483         * block.h (block_lookup_symbol): Declare.
1484         * symtab.h (lookup_block_symbol): Delete.
1485
1486 2014-11-06  Doug Evans  <xdje42@gmail.com>
1487
1488         * ada-lang.c (ada_make_symbol_completion_list): Use
1489         ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1490         * symtab.c (lookup_objfile_from_block): Ditto.
1491
1492 2014-11-06  Doug Evans  <xdje42@gmail.com>
1493
1494         * gdbtypes.h (TYPE_CODE_CLASS): Delete.  All uses changed to use
1495         TYPE_CODE_STRUCT.
1496
1497 2014-11-06  Doug Evans  <xdje42@gmail.com>
1498
1499         * objfiles.c (get_objfile_arch): Constify.
1500         * objfiles.h (get_objfile_arch): Update prototype.
1501         * solib.c (solib_global_lookup): Fetch arch from objfile,
1502         not target_gdbarch.
1503
1504 2014-11-06  Sandra Loosemore  <sandra@codesourcery.com>
1505
1506         * nios2-tdep.c (wild_insn): Delete.
1507         (profiler_insn, irqentry_insn): Delete.
1508         (nios2_match_sequence): Delete.
1509         (nios2_analyze_prologue): Update comments.  Remove matching
1510         of obsolete profiler_insn and irqentry_insn sequences.
1511
1512 2014-11-05  Alan Modra  <amodra@gmail.com>
1513
1514         * charset.c (convert_between_encodings): Shrink obstack using
1515         obstack_blank_fast.
1516         * minsyms.c (install_minimal_symbols): Likewise.
1517         * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1518         to char* before doing pointer arithmetic.
1519
1520 2014-11-04  Simon Marchi  <simon.marchi@ericsson.com>
1521
1522         * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1523
1524 2014-11-04  Pedro Alves  <palves@redhat.com>
1525
1526         * breakpoint.c (breakpoint_thread_match): Delete function.
1527         * breakpoint.h (breakpoint_thread_match): Delete declaration.
1528
1529 2014-11-03  Siva Chandra Reddy  <sivachandra@google.com>
1530
1531         PR c++/17494
1532         * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1533         the method args also under EVAL_SKIP when evaluating method
1534         calls under EVAL_SKIP.
1535
1536 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
1537
1538         * dwarf2loc.c (read_pieced_value): Do big endian
1539         processing only if gdb_regnum is not -1.
1540         (write_pieced_value): Ditto.
1541
1542 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
1543
1544         * arm-linux-tdep.c (arm_linux_init_abi): Use
1545         info.byte_order_for_code to choose endianity of breakpoint
1546         instructions snippets.
1547
1548 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
1549
1550         * arm-tdep.c (extract_arm_insn): Use
1551         gdbarch_byte_order_for_code to read arm instruction.
1552
1553 2014-11-02  Doug Evans  <xdje42@gmail.com>
1554
1555         * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1556
1557 2014-11-02  Doug Evans  <xdje42@gmail.com>
1558
1559         * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1560         main_subfile before returning.
1561
1562 2014-10-31  Doug Evans  <xdje42@gmail.com>
1563
1564         * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1565         (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1566
1567 2014-10-31  Doug Evans  <xdje42@gmail.com>
1568
1569         * valops.c (value_cast_pointers): Fix whitespace.
1570         (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1571         Ditto.
1572
1573 2014-10-30  Doug Evans  <dje@google.com>
1574
1575         * NEWS: Mention ability add attributes to gdb.Objfile and
1576         gdb.Progspace objects.
1577         * python/py-objfile.c (objfile_object): New member dict.
1578         (objfpy_dealloc): Py_XDECREF dict.
1579         (objfpy_initialize): Initialize dict.
1580         (objfile_getset): Add __dict__.
1581         (objfile_object_type): Set tp_dictoffset member.
1582         * python/py-progspace.c (progspace_object): New member dict.
1583         (pspy_dealloc): Py_XDECREF dict.
1584         (pspy_initialize): Initialize dict.
1585         (pspace_getset): Add __dict__.
1586         (pspace_object_type): Set tp_dictoffset member.
1587
1588 2014-10-30  Yao Qi  <yao@codesourcery.com>
1589
1590         * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1591         replace '\\' with '\\\\'.
1592
1593 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
1594
1595         GDB 7.8.1 released.
1596
1597 2014-10-29  Pedro Alves  <palves@redhat.com>
1598
1599         PR gdb/17408
1600         * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1601         instead of assuming a thread with a stepping range is always
1602         stepping.
1603
1604 2014-10-29  Pedro Alves  <palves@redhat.com>
1605
1606         PR python/17372
1607         * event-top.c (change_line_handler): Call
1608         gdb_rl_callback_handler_remove instead of
1609         rl_callback_handler_remove.
1610         (callback_handler_installed): New global.
1611         (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1612         (gdb_rl_callback_handler_reinstall): New functions.
1613         (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1614         gdb_rl_callback_handler_install instead of
1615         rl_callback_handler_remove and rl_callback_handler_install.
1616         (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1617         instead of rl_callback_handler_remove.
1618         * event-top.h (gdb_rl_callback_handler_remove)
1619         (gdb_rl_callback_handler_install)
1620         (gdb_rl_callback_handler_reinstall): New declarations.
1621         * infrun.c (reinstall_readline_callback_handler_cleanup): New
1622         cleanup function.
1623         (fetch_inferior_event): Install it.
1624         * top.c (gdb_readline_wrapper_line) Call
1625         gdb_rl_callback_handler_remove instead of
1626         rl_callback_handler_remove.
1627         (gdb_readline_wrapper_cleanup): Don't call
1628         rl_callback_handler_install.
1629
1630 2014-10-29  Pedro Alves  <palves@redhat.com>
1631
1632         * event-top.c (command_line_handler): Clear the first byte of
1633         linebuffer, when it is first allocated.
1634
1635 2014-10-29  Pedro Alves  <palves@redhat.com>
1636
1637         * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1638         TRY_CATCH.
1639
1640 2014-10-29  Pedro Alves  <palves@redhat.com>
1641
1642         PR tui/16138
1643         PR tui/17519
1644         * tui/tui-interp.c (tui_is_toplevel): Delete global.
1645         (tui_allowed_p): Delete function.
1646         * tui/tui.c: Include "interps.h".
1647         (tui_enable): Don't use tui_allowed_p.  Error out here with
1648         detailed error messages if the TUI is the top level interpreter,
1649         or if output is not a terminal.  Use newterm instead of initscr,
1650         and error out if initializing the terminal fails.  Also error out if
1651         the terminal doesn't support cursor addressing.
1652         * tui/tui.h (tui_allowed_p): Delete declaration.
1653
1654 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
1655
1656         * arm-tdep.c (arm_skip_stack_protector): Return early if
1657         address loaded by first "ldr" instruction does not have
1658         a corresponding minimal symbol.  Update comment.
1659
1660 2014-10-29  Yao Qi  <yao@codesourcery.com>
1661
1662         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1663         loaded address correctly of ldr instruction.
1664
1665 2014-10-28  Pedro Alves  <palves@redhat.com>
1666
1667         PR gdb/12623
1668         * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1669         field.
1670         * infrun.c (resume) <stepping breakpoint instruction>: Set the
1671         thread's stepped_breakpoint field.  Skip if reverse debugging.
1672         Add comment.
1673         (init_thread_stepping_state, handle_signal_stop): Clear the
1674         thread's stepped_breakpoint field.
1675
1676 2014-10-27  Pedro Alves  <palves@redhat.com>
1677
1678         * remote.c (remote_thread_alive): New, factored out from ...
1679         (remote_thread_alive): ... this.
1680         (remote_update_thread_list): Bail out before deleting threads if
1681         the target returned an empty list, and, the current thread has a
1682         magic/fake ptid.
1683
1684 2014-10-27  Pedro Alves  <palves@redhat.com>
1685
1686         * infrun.c (handle_signal_stop): Also skip handlers when a random
1687         signal arrives while handling a "stepi" or a "nexti".  Set the
1688         thread's 'step_after_step_resume_breakpoint' flag.
1689
1690 2014-10-27  Luis Machado  <lgustavo@codesourcery.com>
1691
1692         * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1693         (arm_record_ld_st_imm_offset): Reimplement to cover all
1694         load/store cases for ARM opcode 010.
1695         (arm_record_ld_st_multiple): Reimplement to cover all
1696         load/store cases for ARM opcode 100.
1697
1698 2014-10-26  Doug Evans  <xdje42@gmail.com>
1699
1700         * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1701
1702 2014-10-26  Doug Evans  <xdje42@gmail.com>
1703
1704         * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1705         parameter "kind" to "block_index".
1706         * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1707         "block_index".
1708         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1709
1710 2014-10-26  Doug Evans  <xdje42@gmail.com>
1711
1712         * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1713
1714 2014-10-26  Doug Evans  <xdje42@gmail.com>
1715
1716         * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1717         obstack_alloc.
1718
1719 2014-10-26  Doug Evans  <xdje42@gmail.com>
1720
1721         * parser-defs.h (block_found): Move decl from here ...
1722         * symtab.h (block_found): ... to here.
1723
1724 2014-10-26  Doug Evans  <xdje42@gmail.com>
1725
1726         * symtab.h (struct field_of_this_result): Fix typo in comment.
1727         (lookup_symbol_in_language): Move function comment here.
1728         (lookup_symbol): Improve function comment.
1729         (basic_lookup_symbol_nonlocal): Ditto.
1730         (lookup_symbol_static, lookup_symbol_global): Ditto.
1731         (lookup_symbol_aux_block): Ditto.
1732         (lookup_language_this): Add function comment.
1733         (lookup_static_symbol_aux): Explicitly mark as extern.  Improve
1734         function comment.
1735         (lookup_block_symbol): Improve function comment.
1736         (lookup_struct): Fix capitalization in function comment.
1737         (lookup_transparent_type): Add function comment.
1738         (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1739         Improve function comment.
1740         (lookup_objfile_from_block): Add function comment.
1741         * symtab.c (lookup_symbol_in_language): Update function comment.
1742         (lookup_symbol, lookup_language_this): Ditto.
1743         (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1744         (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1745         (basic_lookup_symbol_nonlocal): Ditto.
1746         (lookup_symbol_static, lookup_symbol_global): Ditto.
1747         (lookup_transparent_type, lookup_block_symbol): Ditto.
1748
1749 2014-10-25  Doug Evans  <xdje42@gmail.com>
1750
1751         * symtab.c (types_info): Delete forward decl.
1752         (functions_info, variables_info, sources_info): Ditto.
1753         (_initialize_symtab): Rewrite forward decl to use
1754         initialize_file_ftype.
1755
1756 2014-10-25  Doug Evans  <xdje42@gmail.com>
1757
1758         * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1759
1760 2014-10-25  Doug Evans  <xdje42@gmail.com>
1761
1762         * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1763         of local var child_die.
1764
1765 2014-10-24  Don Breazeal  <donb@codesourcery.com>
1766
1767         * infrun.c (follow_fork_inferior): Update fork message printing
1768         to use target_terminal_ours_for_output instead of
1769         target_terminal_ours, to use _() for all format strings, to print
1770         "vfork" instead of "fork" for vforks, and to add a detach message.
1771         (handle_vfork_child_exec_or_exit): Update message printing to use
1772         target_terminal_ours_for_output instead of target_terminal_ours, to
1773         use _() for all format strings, and to fix some formatting.
1774
1775 2014-10-24  Pedro Alves  <palves@redhat.com>
1776
1777         * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1778         * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1779         * config/vax/vax.mh: Delete.
1780         * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1781         obsolete configurations section.
1782         * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1783         * vax-nat.c: Delete file.
1784
1785 2014-10-24  Pedro Alves  <palves@redhat.com>
1786
1787         * NEWS (Removed targets): Add OS/arch column.
1788
1789 2014-10-24  Siva Chandra Reddy  <sivachandra@google.com>
1790
1791         * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1792         on the arg type of a constructor only if it is of reference type.
1793
1794 2014-10-23  Sandra Loosemore  <sandra@codesourcery.com>
1795
1796         * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1797         accessors and constants from nios2 opcodes update.
1798         (nios2_get_next_pc): Likewise.
1799
1800 2014-10-19  Doug Evans  <xdje42@gmail.com>
1801
1802         * gdbthread.h (set_running): Fix comment.
1803         (set_executing, finish_thread_state): Fix comment.
1804
1805 2014-10-18  Doug Evans  <xdje42@gmail.com>
1806
1807         * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1808
1809 2014-10-17  Doug Evans  <dje@google.com>
1810
1811         * NEWS: Mention new event gdb.clear_objfiles.
1812         * python/py-event.h (emit_clear_objfiles_event): Clear
1813         * python/py-events.h (events_object): New member clear_objfiles.
1814         * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1815         event.
1816         * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1817         emit clear_objfiles event.
1818         * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1819         function.
1820         (emit_clear_objfiles_event): New function.
1821         (clear_objfiles): New event.
1822         * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1823         Declare.
1824         * python/python.c (_initialize_python): Call
1825         gdbpy_initialize_clear_objfiles_event.
1826
1827 2014-10-17  Doug Evans  <dje@google.com>
1828
1829         * NEWS: Mention new gdb.Objfile.progspace attribute.
1830         * python/py-objfile.c (objfpy_get_progspace): New function.
1831         (objfile_getset): New entry for "progspace".
1832
1833 2014-10-17  Pedro Alves  <palves@redhat.com>
1834
1835         PR gdb/17471
1836         * infcmd.c (strip_bg_char): Change prototype and rewrite.  Now
1837         returns a copy of the input.
1838         (run_command_1, continue_command, step_1, jump_command)
1839         (signal_command, until_command, advance_command, finish_command)
1840         (attach_command): Adjust and install a cleanup to free the
1841         stripped args.
1842
1843 2014-10-17  Pedro Alves  <palves@redhat.com>
1844
1845         PR gdb/17300
1846         * infcmd.c (continue_1): If continuing all threads in the
1847         foreground, make sure the inferior's terminal settings are put in
1848         effect.
1849
1850 2014-10-17  Pedro Alves  <palves@redhat.com>
1851
1852         PR gdb/17472
1853         * annotate.c (annotate_breakpoints_invalid): Use
1854         target_terminal_our_for_output instead of target_terminal_ours.
1855         Give back the terminal to the target.
1856         (annotate_frames_invalid): Likewise.
1857
1858 2014-10-17  Pedro Alves  <palves@redhat.com>
1859
1860         * target.c (enum terminal_state): New enum.
1861         (terminal_state): New global.
1862         (target_terminal_init): New function.
1863         (target_terminal_inferior): Skip if inferior already owns the
1864         terminal.
1865         (target_terminal_ours, target_terminal_ours_for_output): New
1866         functions.
1867         * target.h (target_terminal_init): Convert to function prototype.
1868         (target_terminal_ours_for_output): Convert to function prototype
1869         and tweak comment.
1870         (target_terminal_ours): Convert to function prototype and tweak
1871         comment.
1872         * windows-nat.c (do_initial_windows_stuff): Call
1873         target_terminal_init instead of child_terminal_init_with_pgrp.
1874
1875 2014-10-17  Pedro Alves  <palves@redhat.com>
1876
1877         * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1878         (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1879         (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1880         solib-osf.c.
1881         * NEWS: Mention that support for alpha*-*-osf* has been removed.
1882         * ada-lang.h [__alpha__ && __osf__]
1883         (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1884         * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1885         * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1886         GDB_OSABI_OSF1.
1887         * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1888         files.
1889         * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1890         (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1891         * configure: Regenerate.
1892         * configure.ac: Remove references to osf.
1893         * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1894         section.  Remove all other references to osf.
1895         * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1896         Remove all other references to osf.
1897         * dec-thread.c: Delete file.
1898         * defs.h (GDB_OSABI_OSF1): Delete.
1899         * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1900         defined.
1901         * osabi.c (gdb_osabi_names): Delete "OSF/1".
1902         * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1903         Delete code.
1904         (unconditionally_kill_inferior)
1905         [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1906         * solib-osf.c: Delete file.
1907
1908 2014-10-17  Pedro Alves  <palves@redhat.com>
1909
1910         * remote.c (clear_threads_listing_context): Move higher up, out of
1911         the HAVE_LIBEXPAT guard.
1912
1913 2014-10-16  Tristan Gingold  <gingold@adacore.com>
1914
1915         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1916         (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1917         on amd64.
1918
1919 2014-10-15  Pedro Alves  <palves@redhat.com>
1920
1921         * dec-thread.c (dec_thread_count_gdb_threads)
1922         (dec_thread_add_gdb_thread): Delete.
1923         (dec_thread_update_thread_list): Delete.
1924         (dec_thread_find_new_threads): Rename to ...
1925         (dec_thread_update_thread_list): ... this.  Delete GDB-size
1926         threads that are no longer found in dec_thread_list.
1927         (resync_thread_list): Delete.
1928         (dec_thread_wait): Call dec_thread_update_thread_list instead of
1929         resync_thread_list.
1930
1931 2014-10-15  Pedro Alves  <palves@redhat.com>
1932
1933         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1934         * remote.c (remote_update_thread_list): Skip calling prune_threads
1935         if any thread listing method is supported, and instead walk over
1936         the set of remote threads listed, deleting those that are not
1937         found in GDB's thread list.
1938
1939 2014-10-15  Pedro Alves  <palves@redhat.com>
1940
1941         * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1942         * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1943         (bsd_uthread_update_thread_list): ... this.  Call prune_threads.
1944         (bsd_uthread_target): Adjust.
1945         * corelow.c (core_open): Adjust.
1946         * dec-thread.c (dec_thread_find_new_threads): Update comment.
1947         (dec_thread_update_thread_list): New function.
1948         (init_dec_thread_ops): Adjust.
1949         * gdbthread.h (prune_threads): New declaration.
1950         * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1951         (thread_db_update_thread_list): ... this.  Call prune_threads.
1952         (init_thread_db_ops): Adjust.
1953         * nto-procfs.c (procfs_find_new_threads): Rename to ...
1954         (procfs_update_thread_list): ... this.  Call prune_threads.
1955         (procfs_attach, procfs_create_inferior, init_procfs_targets):
1956         Adjust.
1957         * obsd-nat.c (obsd_find_new_threads): Rename to ...
1958         (obsd_update_thread_list): ... this.  Call prune_threads.
1959         (obsd_add_target): Adjust.
1960         * procfs.c (procfs_target): Adjust.
1961         (procfs_notice_thread): Update comment.
1962         (procfs_find_new_threads): Rename to ...
1963         (procfs_update_thread_list): ... this.  Call prune_threads.
1964         * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1965         comment.
1966         (ravenscar_wait): Adjust.
1967         (ravenscar_find_new_threads): Rename to ...
1968         (ravenscar_update_thread_list): ... this.  Call prune_threads.
1969         (init_ravenscar_thread_ops): Adjust.
1970         * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1971         (record_btrace_update_thread_list): ... this.  Adjust comment.
1972         (init_record_btrace_ops): Adjust.
1973         * remote.c (remote_threads_info): Rename to ...
1974         (remote_update_thread_list): ... this.  Call prune_threads.
1975         (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1976         Adjust.
1977         * sol-thread.c (check_for_thread_db): Adjust.
1978         (sol_find_new_threads_callback): Rename to ...
1979         (sol_update_thread_list_callback): ... this.
1980         (sol_find_new_threads): Rename to ...
1981         (sol_update_thread_list): ... this.  Call prune_threads.  Adjust.
1982         (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1983         * target-delegates.c: Regenerate.
1984         * target.c (target_find_new_threads): Rename to ...
1985         (target_update_thread_list): ... this.
1986         * target.h (struct target_ops): Rename to_find_new_threads field
1987         to to_update_thread_list.
1988         (target_find_new_threads): Rename to ...
1989         (target_update_thread_list): ... this.
1990         * thread.c (prune_threads): Make extern.
1991         (update_thread_list): Adjust.
1992
1993 2014-10-15  Pedro Alves  <palves@redhat.com>
1994
1995         * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1996         Add describing comment.  Return -1 if the qL packet is not
1997         supported.
1998         (struct thread_item, thread_item_t): Move higher up in
1999         the file.  Add comments.
2000         (struct threads_parsing_context): Move higher up in
2001         the file, add comments, and remote to ...
2002         (struct threads_listing_context): ... this.
2003         (remote_newthread_step): Don't add the thread to GDB's thread
2004         database here.  Instead push it to the thread_listing_context
2005         list.
2006         (remote_find_new_threads): Rename to ...
2007         (remote_get_threads_with_ql): ... this.  Add target_ops and
2008         targets_listing_context parameters.  Pass down context.
2009         (start_thread): Adjust.
2010         (clear_threads_parsing_context): Rename to ...
2011         (clear_threads_listing_context): ... this.
2012         (remote_get_threads_with_qxfer): New, with parts salvaged from old
2013         remote_threads_info.
2014         (remote_get_threads_with_qthreadinfo): Ditto.
2015         (remote_threads_info): Reimplement.
2016
2017 2014-10-15  Pedro Alves  <palves@redhat.com>
2018
2019         * infrun.c (resume): Don't force displaced-stepping for all
2020         single-steps on software single-stepping archs.
2021
2022 2014-10-15  Pedro Alves  <palves@redhat.com>
2023
2024         * breakpoint.c (single_step_breakpoints): Delete global.
2025         (insert_single_step_breakpoint): Adjust to store the breakpoint
2026         pointer in the current thread.
2027         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2028         (cancel_single_step_breakpoints): Delete functions.
2029         (breakpoint_has_location_inserted_here): Make extern.
2030         (single_step_breakpoint_inserted_here_p): Adjust to walk the
2031         breakpoint list.
2032         * breakpoint.h (breakpoint_has_location_inserted_here): New
2033         declaration.
2034         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2035         (cancel_single_step_breakpoints): Remove declarations.
2036         * gdbthread.h (struct thread_control_state)
2037         <single_step_breakpoints>: New field.
2038         (delete_single_step_breakpoints)
2039         (thread_has_single_step_breakpoints_set)
2040         (thread_has_single_step_breakpoint_here): New declarations.
2041         * infrun.c (follow_exec): Also clear the single-step breakpoints.
2042         (singlestep_breakpoints_inserted_p, singlestep_ptid)
2043         (singlestep_pc): Delete globals.
2044         (infrun_thread_ptid_changed): Remove references to removed
2045         globals.
2046         (resume_cleanups): Delete the current thread's single-step
2047         breakpoints.
2048         (maybe_software_singlestep): Remove references to removed globals.
2049         (resume): Adjust to use thread_has_single_step_breakpoints_set and
2050         delete_single_step_breakpoints.
2051         (init_wait_for_inferior): Remove references to removed globals.
2052         (delete_thread_infrun_breakpoints): Delete the thread's
2053         single-step breakpoints too.
2054         (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2055         single-step breakpoints here.
2056         (delete_stopped_threads_single_step_breakpoints): New function.
2057         (adjust_pc_after_break): Adjust to use
2058         thread_has_single_step_breakpoints_set.
2059         (handle_inferior_event): Remove references to removed globals.
2060         Use delete_stopped_threads_single_step_breakpoints.
2061         (handle_signal_stop): Adjust to per-thread single-step
2062         breakpoints.  Swap test order to do cheaper tests first.
2063         (switch_back_to_stepped_thread): Extend debug output.  Remove
2064         references to removed globals.
2065         * record-full.c (record_full_wait_1): Adjust to per-thread
2066         single-step breakpoints.
2067         * thread.c (delete_single_step_breakpoints)
2068         (thread_has_single_step_breakpoints_set)
2069         (thread_has_single_step_breakpoint_here): New functions.
2070         (clear_thread_inferior_resources): Also delete the thread's
2071         single-step breakpoints.
2072
2073 2014-10-15  Pedro Alves  <palves@redhat.com>
2074
2075         * thread.c (delete_thread_breakpoint): New function.
2076         (delete_step_resume_breakpoint)
2077         (delete_exception_resume_breakpoint): Use it.
2078         (delete_at_next_stop): New function.
2079         (clear_thread_inferior_resources): Use delete_at_next_stop.
2080
2081 2014-10-15  Pedro Alves  <palves@redhat.com>
2082
2083         * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2084         (breakpoint_inserted_here_p): ... here.  Remove special case for
2085         software single-step breakpoints.
2086         (find_non_raw_software_breakpoint_inserted_here): Inline ...
2087         (software_breakpoint_inserted_here_p): ... here.  Remove special
2088         case for software single-step breakpoints.
2089         (bp_target_info_copy_insertion_state)
2090         (deprecated_insert_raw_breakpoint)
2091         (deprecated_remove_raw_breakpoint): Delete functions.
2092         * breakpoint.h (deprecated_insert_raw_breakpoint)
2093         (deprecated_remove_raw_breakpoint): Remove declarations.
2094
2095 2014-10-15  Pedro Alves  <palves@redhat.com>
2096
2097         PR breakpoints/9649
2098         * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2099         Delete array globals.
2100         (single_step_breakpoints): New global.
2101         (breakpoint_xfer_memory): Remove special handling for single-step
2102         breakpoints.
2103         (update_breakpoints_after_exec): Delete bp_single_step
2104         breakpoints.
2105         (detach_breakpoints): Remove special handling for single-step
2106         breakpoints.
2107         (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2108         (bpstat_stop_status): Add comment.
2109         (bpstat_what, bptype_string, print_one_breakpoint_location)
2110         (adjust_breakpoint_address, init_bp_location): Handle
2111         bp_single_step.
2112         (new_single_step_breakpoint): New function.
2113         (set_momentary_breakpoint, bkpt_remove_location): Remove special
2114         handling for single-step breakpoints.
2115         (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2116         (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2117         Rewrite.
2118         (detach_single_step_breakpoints, find_single_step_breakpoint):
2119         Delete functions.
2120         (breakpoint_has_location_inserted_here): New function.
2121         (single_step_breakpoint_inserted_here_p): Rewrite.
2122         * breakpoint.h: Remove FIXME.
2123         (enum bptype) <bp_single_step>: New enum value.
2124         (insert_single_step_breakpoint): Update comment.
2125         * infrun.c (resume_cleanups)
2126         (delete_step_thread_step_resume_breakpoint): Remove single-step
2127         breakpoints.
2128         (fetch_inferior_event): Install a cleanup that removes infrun
2129         breakpoints.
2130         (switch_back_to_stepped_thread) <expect thread advanced also>:
2131         Clear step-over info.
2132
2133 2014-10-15  Pedro Alves  <palves@redhat.com>
2134
2135         * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2136         (delete_thread_infrun_breakpoints): New function, with parts
2137         salvaged from delete_step_resume_breakpoint_callback.
2138         (delete_step_thread_step_resume_breakpoint): Delete.
2139         (for_each_just_stopped_thread_callback_func): New typedef.
2140         (for_each_just_stopped_thread): New function.
2141         (delete_just_stopped_threads_infrun_breakpoints): New function.
2142         (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2143         (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2144         ... this.  Adjust.
2145         (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2146
2147 2014-10-15  Pedro Alves  <palves@redhat.com>
2148
2149         * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2150         trying to step past a non-steppable watchpoint.
2151         * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2152         field.
2153         * infrun.c (struct step_over_info): Add new field
2154         'nonsteppable_watchpoint_p' and adjust comments.
2155         (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2156         Adjust.
2157         (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2158         (stepping_past_nonsteppable_watchpoint): New function.
2159         (step_over_info_valid_p): Also return true if stepping past a
2160         nonsteppable watchpoint.
2161         (proceed): Adjust call to set_step_over_info.  Remove reference to
2162         init_infwait_state.
2163         (init_wait_for_inferior): Remove reference to init_infwait_state.
2164         (waiton_ptid): Delete global.
2165         (struct execution_control_state)
2166         <stepped_after_stopped_by_watchpoint>: Delete field.
2167         (wait_for_inferior, fetch_inferior_event): Always pass
2168         minus_one_ptid to target_wait.
2169         (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2170         field.
2171         (init_infwait_state): Delete function.
2172         (handle_inferior_event): Remove infwait_state handling.
2173         (handle_signal_stop) <watchpoints handling>: Adjust after
2174         stepped_after_stopped_by_watchpoint removal.  Don't remove
2175         breakpoints here nor set infwait_state.  Set the thread's
2176         stepping_over_watchpoint flag, and call keep_going instead.
2177         (keep_going): Handle stepping_over_watchpoint.  Adjust
2178         set_step_over_info calls.
2179         * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2180         function.
2181
2182 2014-10-15  Pedro Alves  <palves@redhat.com>
2183
2184         * infrun.c (step_over_info_valid_p): New function.
2185         (resume): Use step_over_info_valid_p instead of checking the
2186         threads's trap_expected flag.
2187
2188 2014-10-15  Doug Evans  <dje@google.com>
2189             Walfred Tedeschi  <walfred.tedeschi@intel.com>
2190
2191         PR python/17364
2192         * python/lib/gdb/__init__.py (packages): Add "printer".
2193         * python/lib/gdb/command/bound_registers.py: Moved to ...
2194         * python/lib/gdb/printer/bound_registers.py: ... here.
2195         Add printer to global set of builtin printers.  Rename printer from
2196         "bound" to "mpx_bound128".
2197         * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2198         registered as global "builtin" printer.
2199         (add_builtin_pretty_printer): New function.
2200         * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2201         gdb/printer/__init__.py.
2202
2203 2014-10-15  Iain Buclaw  <ibuclaw@gdcproject.org>
2204
2205         * Makefile.in (SFILES): Remove d-support.c.
2206         (COMMON_OBS): Remove d-support.o.
2207         * d-lang.h (d_parse_symbol): Remove declaration.
2208         * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2209         * d-support.c: Remove file.
2210
2211 2014-10-15  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2212
2213         * gdb/infrun.c (process_event_stop_test): Apply
2214         gdbarch_addr_bits_remove to longjmp resume address.
2215
2216 2014-10-15  Pedro Alves  <palves@redhat.com>
2217
2218         * regformats/microblaze.dat: Delete file.
2219
2220 2014-10-15  Ajit Agarwal  <ajitkum@xilinx.com>
2221
2222         * features/Makefile (microblaze-expedite): Replace pc with rpc.
2223         * regformats/microblaze-with-stack-protect.dat: Regenerate.
2224
2225 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
2226
2227         * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2228         as non-trivial.
2229
2230 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
2231
2232         PR c++/13403
2233         PR c++/15154
2234         * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2235         with qualified args.
2236
2237 2014-10-14  Joel Brobecker  <brobecker@adacore.com>
2238
2239         * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2240         of the case where the second operand is a pointer.
2241         <BINOP_SUB>: Likewise.
2242
2243 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
2244
2245         * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2246         only if it is not NULL.
2247         (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2248         * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2249         (struct probe_ops) <clear_semaphore>: Likewise.
2250         * tracepoint.c (start_tracing): Call set_semaphore only if it is
2251         not NULL.
2252         (stop_tracing): Likewise, for clear_semaphore.
2253
2254 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
2255
2256         * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2257         using language_c, instead of current_language.
2258
2259 2014-10-13  Doug Evans  <dje@google.com>
2260
2261         * python/py-objfile.c (objfpy_initialize): New function.
2262         (objfpy_new, objfile_to_objfile_object): Call it.
2263         * python/py-progspace.c (pspy_initialize): New function.
2264         (pspy_new, pspace_to_pspace_object): Call it.
2265
2266 2014-10-13  Miroslav Franc  <mfranc@redhat.com>
2267             Jan Kratochvil  <jan.kratochvil@redhat.com>
2268
2269         Fix "save breakpoints" for "catch" command.
2270         * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2271         newline.
2272
2273 2014-10-12  Miroslav Franc  <mfranc@redhat.com>
2274
2275         Fix "save breakpoints" for "disable $bpnum" command.
2276         * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2277
2278 2014-10-10  Pedro Alves  <palves@redhat.com>
2279
2280         * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2281         (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2282         (HFILES_NO_SRCDIR): Remove solib-irix.h.
2283         * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2284         and been removed.
2285         * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2286         * configure.ac: Remove references to IRIX.
2287         * configure.host: Add *-*-irix* to the obsolete hosts section.
2288         Remove all other references to irix.
2289         * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2290         Delete files.
2291
2292 2014-10-10  Ajit Agarwal  <ajitkum@xilinx.com>
2293
2294         * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2295         isn't valid, release the tdesc arch data and return NULL.
2296
2297 2014-10-10  Pedro Alves  <palves@redhat.com>
2298
2299         * linux-tdep.c: Include observer.h.
2300         (linux_inferior_data): New global.
2301         (struct linux_info): New structure.
2302         (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2303         (get_linux_inferior_data): New functions.
2304         (linux_vsyscall_range): Rename to ...
2305         (linux_vsyscall_range_raw): ... this.
2306         (linux_vsyscall_range): New function; handles caching.
2307         (_initialize_linux_tdep): Register linux_inferior_data.  Install
2308         inferior_exit and inferior_appeared observers.
2309
2310 2014-10-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
2311             Pedro Alves  <palves@redhat.com>
2312
2313         PR symtab/14466
2314         * solib-svr4.c (svr4_read_so_list): Rename to ...
2315         (svr4_current_sos_1): ... this and change the function comment.
2316         (svr4_current_sos): New function.
2317
2318 2014-10-10  Pedro Alves  <palves@redhat.com>
2319
2320         * arch-utils.c (default_vsyscall_range): New function.
2321         * arch-utils.h (default_vsyscall_range): New declaration.
2322         * gdbarch.sh (vsyscall_range): New hook.
2323         * gdbarch.h, gdbarch.c: Regenerate.
2324         * linux-tdep.c (linux_vsyscall_range): New function.
2325         (linux_init_abi): Install linux_vsyscall_range as
2326         vsyscall_range gdbarch hook.
2327         * memrange.c (address_in_mem_range): New function.
2328         * memrange.h (address_in_mem_range): New declaration.
2329         * symfile-mem.c (find_vdso_size): Delete function.
2330         (add_vsyscall_page): Use gdbarch_vsyscall_range.
2331
2332 2014-10-10  Pedro Alves  <palves@redhat.com>
2333
2334         * infrun.c (normal_stop): Fix typo in comment.
2335
2336 2014-10-09  Sergio Durigan Junior  <sergiodj@redhat.com>
2337
2338         PR tdep/9390
2339         * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2340         typo when using logical AND to determine instruction type.
2341
2342 2014-10-09  Yao Qi  <yao@codesourcery.com>
2343
2344         * infrun.c (handle_signal_stop): Remove local variable
2345         'printed'.
2346
2347 2014-10-08  Stan Shebs  <stan@codesourcery.com>
2348
2349         * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2350
2351 2014-10-08  Gary Benson  <gbenson@redhat.com>
2352
2353         * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2354
2355 2014-10-08  Gary Benson  <gbenson@redhat.com>
2356
2357         * common/common-defs.h: Include common-exceptions.h.
2358         * exceptions.h: Do not include common-exceptions.h.
2359
2360 2014-10-08  Gary Benson  <gbenson@redhat.com>
2361
2362         * common/common-defs.h: Include cleanups.h.
2363         * common/common-exceptions.c: Do not include cleanups.h.
2364         * utils.h: Likewise.
2365
2366 2014-10-08  Gary Benson  <gbenson@redhat.com>
2367
2368         * ada-lang.c: Do not include exceptions.h.
2369         * ada-valprint.c: Likewise.
2370         * amd64-tdep.c: Likewise.
2371         * auto-load.c: Likewise.
2372         * block.c: Likewise.
2373         * break-catch-throw.c: Likewise.
2374         * breakpoint.c: Likewise.
2375         * btrace.c: Likewise.
2376         * c-lang.c: Likewise.
2377         * cli/cli-cmds.c: Likewise.
2378         * cli/cli-interp.c: Likewise.
2379         * cli/cli-script.c: Likewise.
2380         * completer.c: Likewise.
2381         * corefile.c: Likewise.
2382         * corelow.c: Likewise.
2383         * cp-abi.c: Likewise.
2384         * cp-support.c: Likewise.
2385         * cp-valprint.c: Likewise.
2386         * darwin-nat.c: Likewise.
2387         * dwarf2-frame-tailcall.c: Likewise.
2388         * dwarf2-frame.c: Likewise.
2389         * dwarf2loc.c: Likewise.
2390         * dwarf2read.c: Likewise.
2391         * eval.c: Likewise.
2392         * event-loop.c: Likewise.
2393         * event-top.c: Likewise.
2394         * f-valprint.c: Likewise.
2395         * frame-unwind.c: Likewise.
2396         * frame.c: Likewise.
2397         * gdbtypes.c: Likewise.
2398         * gnu-v2-abi.c: Likewise.
2399         * gnu-v3-abi.c: Likewise.
2400         * guile/scm-auto-load.c: Likewise.
2401         * guile/scm-breakpoint.c: Likewise.
2402         * guile/scm-cmd.c: Likewise.
2403         * guile/scm-frame.c: Likewise.
2404         * guile/scm-lazy-string.c: Likewise.
2405         * guile/scm-param.c: Likewise.
2406         * guile/scm-symbol.c: Likewise.
2407         * guile/scm-type.c: Likewise.
2408         * hppa-hpux-tdep.c: Likewise.
2409         * i386-tdep.c: Likewise.
2410         * inf-loop.c: Likewise.
2411         * infcall.c: Likewise.
2412         * infcmd.c: Likewise.
2413         * infrun.c: Likewise.
2414         * interps.c: Likewise.
2415         * interps.h: Likewise.
2416         * jit.c: Likewise.
2417         * linespec.c: Likewise.
2418         * linux-nat.c: Likewise.
2419         * linux-thread-db.c: Likewise.
2420         * m32r-rom.c: Likewise.
2421         * main.c: Likewise.
2422         * memory-map.c: Likewise.
2423         * mi/mi-cmd-break.c: Likewise.
2424         * mi/mi-cmd-stack.c: Likewise.
2425         * mi/mi-interp.c: Likewise.
2426         * mi/mi-main.c: Likewise.
2427         * monitor.c: Likewise.
2428         * nto-procfs.c: Likewise.
2429         * objc-lang.c: Likewise.
2430         * p-valprint.c: Likewise.
2431         * parse.c: Likewise.
2432         * ppc-linux-tdep.c: Likewise.
2433         * printcmd.c: Likewise.
2434         * probe.c: Likewise.
2435         * python/py-auto-load.c: Likewise.
2436         * python/py-breakpoint.c: Likewise.
2437         * python/py-cmd.c: Likewise.
2438         * python/py-finishbreakpoint.c: Likewise.
2439         * python/py-frame.c: Likewise.
2440         * python/py-framefilter.c: Likewise.
2441         * python/py-function.c: Likewise.
2442         * python/py-gdb-readline.c: Likewise.
2443         * python/py-inferior.c: Likewise.
2444         * python/py-infthread.c: Likewise.
2445         * python/py-lazy-string.c: Likewise.
2446         * python/py-linetable.c: Likewise.
2447         * python/py-param.c: Likewise.
2448         * python/py-prettyprint.c: Likewise.
2449         * python/py-symbol.c: Likewise.
2450         * python/py-type.c: Likewise.
2451         * python/py-value.c: Likewise.
2452         * python/python-internal.h: Likewise.
2453         * python/python.c: Likewise.
2454         * record-btrace.c: Likewise.
2455         * record-full.c: Likewise.
2456         * regcache.c: Likewise.
2457         * remote-fileio.c: Likewise.
2458         * remote-mips.c: Likewise.
2459         * remote.c: Likewise.
2460         * rs6000-aix-tdep.c: Likewise.
2461         * rs6000-nat.c: Likewise.
2462         * skip.c: Likewise.
2463         * solib-darwin.c: Likewise.
2464         * solib-dsbt.c: Likewise.
2465         * solib-frv.c: Likewise.
2466         * solib-ia64-hpux.c: Likewise.
2467         * solib-spu.c: Likewise.
2468         * solib-svr4.c: Likewise.
2469         * solib.c: Likewise.
2470         * spu-tdep.c: Likewise.
2471         * stack.c: Likewise.
2472         * stap-probe.c: Likewise.
2473         * symfile-mem.c: Likewise.
2474         * symmisc.c: Likewise.
2475         * target.c: Likewise.
2476         * thread.c: Likewise.
2477         * top.c: Likewise.
2478         * tracepoint.c: Likewise.
2479         * tui/tui-interp.c: Likewise.
2480         * typeprint.c: Likewise.
2481         * utils.c: Likewise.
2482         * valarith.c: Likewise.
2483         * valops.c: Likewise.
2484         * valprint.c: Likewise.
2485         * value.c: Likewise.
2486         * varobj.c: Likewise.
2487         * windows-nat.c: Likewise.
2488         * xml-support.c: Likewise.
2489
2490 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
2491
2492         * mips-tdep.c (add_offset_16): Rewrite to implement what the
2493         name implies.
2494         (extended_mips16_next_pc): Update accordingly.
2495
2496 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
2497
2498         * mips-tdep.c (mips16_instruction_is_compact_branch): New
2499         function.
2500         (micromips_instruction_is_compact_branch): Likewise.
2501         (mips16_scan_prologue): Terminate scanning upon seeing a branch
2502         or a compact jump, reaching a jump delay slot, or seeing a
2503         second non-prologue instruction.
2504         (micromips_scan_prologue): Also terminate scanning upon seeing a
2505         compact branch or jump, or reaching a branch or jump delay slot.
2506         (mips32_scan_prologue): Terminate scanning upon reaching a branch
2507         or jump delay slot, or seeing a second non-prologue instruction.
2508         (mips32_instruction_has_delay_slot): Retain instruction
2509         examination code only, update arguments accordingly and move
2510         instruction fetch pieces to...
2511         (mips32_insn_at_pc_has_delay_slot): ... this new function.
2512         (micromips_instruction_has_delay_slot): Likewise and to...
2513         (micromips_insn_at_pc_has_delay_slot): ... this new function.
2514         (mips16_instruction_has_delay_slot): Likewise and to...
2515         (mips16_insn_at_pc_has_delay_slot): ... this new function.
2516         (mips_single_step_through_delay): Update accordingly.
2517         (mips_adjust_breakpoint_address): Likewise.
2518
2519 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
2520
2521         * mips-tdep.c (micromips_instruction_has_delay_slot): When
2522         !mustbe32 also return 1 for 32-bit instructions.
2523         (mips16_instruction_has_delay_slot): Likewise.  Add an
2524         explanatory comment.
2525
2526 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
2527
2528         * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2529         symbols special.
2530
2531 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
2532
2533         * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2534         update comments.
2535         * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2536         for the breakpoint's address.  Don't preinitialize `placed_size'.
2537         (insert_bp_location): Set `reqstd_address' rather than
2538         `placed_address'.
2539         (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2540         (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2541         address.
2542         (bkpt_remove_location): Likewise.
2543         (deprecated_insert_raw_breakpoint): Likewise.
2544         (deprecated_remove_raw_breakpoint): Likewise.
2545         (find_single_step_breakpoint): Likewise.
2546         * mem-break.c (default_memory_insert_breakpoint): Use
2547         `reqstd_address' for the breakpoint's address.  Don't set
2548         `placed_address' or `placed_size' if breakpoint contents couldn't
2549         have been determined.
2550         * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2551         the breakpoint's address.
2552         (remote_insert_hw_breakpoint): Likewise.  Don't set
2553         `placed_address' or `placed_size' if breakpoint couldn't have been
2554         set.
2555         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2556         `reqstd_address' for the breakpoint's address.
2557         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2558         * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2559         * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2560         * microblaze-linux-tdep.c
2561         (microblaze_linux_memory_remove_breakpoint): Likewise.
2562         * monitor.c (monitor_insert_breakpoint): Likewise.
2563         * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2564         (procfs_insert_hw_breakpoint): Likewise.
2565         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2566         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2567         * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2568         * remote-mips.c (mips_insert_breakpoint): Likewise.
2569         * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2570
2571 2014-10-03  Luis Machado  <lgustavo@codesourcery.com>
2572
2573         * valops.c (value_assign): Check for bit field assignments
2574         before calling architecture-specific register value
2575         conversion functions.
2576
2577 2014-10-03  Pierre Muller  <muller@sourceware.org>
2578
2579         * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2580
2581 2014-10-02  Pedro Alves  <palves@redhat.com>
2582
2583         * breakpoint.c (breakpoints_should_be_inserted_now): Use
2584         threads_are_executing.
2585         * breakpoint.h (breakpoints_should_be_inserted_now): Add
2586         describing comment.
2587         * gdbthread.h (threads_are_executing): Declare.
2588         (handle_signal_stop) <random signals>: Don't print about the
2589         signal here if stopping.
2590         (end_stepping_range): Don't notify observers here.
2591         (normal_stop): Update the thread list.  If stopped by a random
2592         signal or a stepping range ended, notify observers.
2593         * thread.c (threads_executing): New global.
2594         (init_thread_list): Clear 'threads_executing'.
2595         (set_executing): Set or clear 'threads_executing'.
2596         (threads_are_executing): New function.
2597         (update_threads_executing): New function.
2598         (update_thread_list): Use it.
2599
2600 2014-10-02  Pedro Alves  <palves@redhat.com>
2601
2602         PR breakpoints/17431
2603         * breakpoint.c (update_breakpoints_after_exec): Don't create
2604         overlay, longjmp, std terminate nor exception breakpoints here.
2605
2606 2014-10-02  Pedro Alves  <palves@redhat.com>
2607
2608         * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2609         Adjust comments.
2610         * inferior.c (find_inferior_for_program_space): Give preference to
2611         the current inferior.
2612         * inferior.h (find_inferior_for_program_space): Update comment.
2613         * progspace.c (switch_to_program_space_and_thread): Prefer the
2614         current inferior if it's bound to the program space requested.  If
2615         the inferior found doesn't have a PID yet, don't bother looking up
2616         a thread.
2617         * progspace.h (switch_to_program_space_and_thread): Adjust
2618         comment.
2619         * thread.c (any_thread_of_process, any_live_thread_of_process):
2620         Give preference to the current thread.
2621
2622 2014-10-01  Pedro Alves  <palves@redhat.com>
2623
2624         * breakpoint.c (insert_bp_location): Error out if inserting a
2625         software breakpoint at a read-only address.
2626         * target.c (memory_xfer_check_region): New function, factored out
2627         from ...
2628         (memory_xfer_partial_1): ... this.  Make the 'reg_len' local a
2629         ULONGEST.
2630         (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2631         against the memory region attributes.
2632
2633 2014-10-01  Simon Marchi  <simon.marchi@ericsson.com>
2634
2635         * NEWS: Announce new exit-code field in -list-thread-groups
2636         output.
2637         * inferior.c (exit_inferior_1): Don't clear exit code.
2638         (inferior_appeared): Clear exit code.
2639         * mi/mi-main.c (print_one_inferior): Add printing of the exit
2640         code.
2641
2642 2014-10-01  Pedro Alves  <palves@redhat.com>
2643
2644         * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2645         GENERATED" along with emacs/vi read-only markers.
2646         * regformats/aarch64.dat: Regenerate.
2647         * regformats/arm-with-iwmmxt.dat: Regenerate.
2648         * regformats/arm-with-neon.dat: Regenerate.
2649         * regformats/arm-with-vfpv2.dat: Regenerate.
2650         * regformats/arm-with-vfpv3.dat: Regenerate.
2651         * regformats/i386/amd64-avx-linux.dat: Regenerate.
2652         * regformats/i386/amd64-avx.dat: Regenerate.
2653         * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2654         * regformats/i386/amd64-avx512.dat: Regenerate.
2655         * regformats/i386/amd64-linux.dat: Regenerate.
2656         * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2657         * regformats/i386/amd64-mpx.dat: Regenerate.
2658         * regformats/i386/amd64.dat: Regenerate.
2659         * regformats/i386/i386-avx-linux.dat: Regenerate.
2660         * regformats/i386/i386-avx.dat: Regenerate.
2661         * regformats/i386/i386-avx512-linux.dat: Regenerate.
2662         * regformats/i386/i386-avx512.dat: Regenerate.
2663         * regformats/i386/i386-linux.dat: Regenerate.
2664         * regformats/i386/i386-mmx-linux.dat: Regenerate.
2665         * regformats/i386/i386-mmx.dat: Regenerate.
2666         * regformats/i386/i386-mpx-linux.dat: Regenerate.
2667         * regformats/i386/i386-mpx.dat: Regenerate.
2668         * regformats/i386/i386.dat: Regenerate.
2669         * regformats/i386/x32-avx-linux.dat: Regenerate.
2670         * regformats/i386/x32-avx.dat: Regenerate.
2671         * regformats/i386/x32-avx512-linux.dat: Regenerate.
2672         * regformats/i386/x32-avx512.dat: Regenerate.
2673         * regformats/i386/x32-linux.dat: Regenerate.
2674         * regformats/i386/x32.dat: Regenerate.
2675         * regformats/microblaze-with-stack-protect.dat: Regenerate.
2676         * regformats/mips-dsp-linux.dat: Regenerate.
2677         * regformats/mips-linux.dat: Regenerate.
2678         * regformats/mips64-dsp-linux.dat: Regenerate.
2679         * regformats/mips64-linux.dat: Regenerate.
2680         * regformats/nios2-linux.dat: Regenerate.
2681         * regformats/rs6000/powerpc-32.dat: Regenerate.
2682         * regformats/rs6000/powerpc-32l.dat: Regenerate.
2683         * regformats/rs6000/powerpc-64l.dat: Regenerate.
2684         * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2685         * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2686         * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2687         * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2688         * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2689         * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2690         * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2691         * regformats/s390-linux32.dat: Regenerate.
2692         * regformats/s390-linux32v1.dat: Regenerate.
2693         * regformats/s390-linux32v2.dat: Regenerate.
2694         * regformats/s390-linux64.dat: Regenerate.
2695         * regformats/s390-linux64v1.dat: Regenerate.
2696         * regformats/s390-linux64v2.dat: Regenerate.
2697         * regformats/s390-te-linux64.dat: Regenerate.
2698         * regformats/s390x-linux64.dat: Regenerate.
2699         * regformats/s390x-linux64v1.dat: Regenerate.
2700         * regformats/s390x-linux64v2.dat: Regenerate.
2701         * regformats/s390x-te-linux64.dat: Regenerate.
2702         * regformats/tic6x-c62x-linux.dat: Regenerate.
2703         * regformats/tic6x-c62x.dat: Regenerate.
2704         * regformats/tic6x-c64x-linux.dat: Regenerate.
2705         * regformats/tic6x-c64x.dat: Regenerate.
2706         * regformats/tic6x-c64xp-linux.dat: Regenerate.
2707         * regformats/tic6x-c64xp.dat: Regenerate.
2708
2709 2014-10-01  Pedro Alves  <palves@redhat.com>
2710
2711         * features/Makefile: Update comments.
2712         (XMLTOC): List all xml files we build C files from.
2713         (clean-cfiles): New rule.
2714
2715 2014-10-01  Pedro Alves  <palves@redhat.com>
2716
2717         * features/i386/amd64-avx512-linux.c: Regenerate.
2718         * features/i386/amd64-avx512.c: Regenerate.
2719         * features/i386/x32-avx512-linux.c: Regenerate.
2720         * features/i386/x32-avx512.c: Regenerate.
2721
2722 2014-10-01  Pedro Alves  <palves@redhat.com>
2723
2724         * features/Makefile (WHICH): Remove arm-with-m,
2725         arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2726
2727 2014-10-01  Pedro Alves  <palves@redhat.com>
2728
2729         * features/Makefile (clean): New rule.
2730
2731 2014-10-01  Pedro Alves  <palves@redhat.com>
2732
2733         * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2734         (zmm14h): Add missing end quotes.
2735
2736 2014-10-01  Pedro Alves  <palves@redhat.com>
2737
2738         * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2739         * features/aarch64.c: Regenerate.
2740
2741 2014-09-30  Don Breazeal  <donb@codesourcery.com>
2742
2743         * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2744         code so as to work with follow_fork_inferior.
2745         * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2746         (inf_ttrace_create_inferior): Remove reference to
2747         inf_ttrace_vfork_ppid.
2748         (inf_ttrace_attach): Ditto.
2749         (inf_ttrace_detach): Ditto.
2750         (inf_ttrace_kill): Use current_inferior instead of
2751         inf_ttrace_vfork_ppid.
2752         (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2753         TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2754         inferior away from the parent.
2755         * infrun.c (follow_fork): Call follow_fork_inferior instead of
2756         target_follow_fork.
2757         (follow_fork_inferior): New function.
2758         (follow_inferior_reset_breakpoints): Make function static.
2759         * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2760         * linux-nat.c (linux_child_follow_fork): Move target-independent
2761         code to infrun.c:follow_fork_inferior.
2762
2763 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2764
2765         * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2766         * gdbarch.c: Regenerate.
2767         * gdbarch.h: Likewise.
2768         * corelow.c (sniff_core_bfd): Drop presence check for deleted
2769         gdbarch method 'regset_from_core_section'.
2770         (get_core_register_section): Remove handling for the case that
2771         regset == NULL and regset_from_core_section is defined.
2772         (get_core_registers): Drop check for deleted method.
2773         * procfs.c (procfs_do_thread_registers): Adjust comment.
2774
2775 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2776
2777         * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2778         (linux_nat_make_corefile_notes): Remove.
2779         (linux_target_install_ops): Do not set target method
2780         'make_corefile_notes'.
2781         * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2782         Remove field.
2783         (linux_corefile_thread_callback): Instead of args->collect, call
2784         linux_collect_thread_registers.
2785         (linux_make_corefile_notes): Remove 'collect' parameter.  Return
2786         NULL unless there is a regset iterator.
2787         (linux_make_corefile_notes_1): Remove.
2788         (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2789         by linux_make_corefile_notes.
2790         * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2791
2792 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2793
2794         * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2795         (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2796         Remove.
2797         * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2798
2799 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2800
2801         * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2802         (xtensa_iterate_over_regset_sections): New.
2803         (xtensa_gdbarch_init): Adjust gdbarch initialization.
2804
2805 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2806
2807         * vax-tdep.c (vax_regset_from_core_section): Remove.
2808         (vax_iterate_over_regset_sections): New.
2809         (vax_gdbarch_init): Adjust gdbarch initialization.
2810
2811 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2812
2813         * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2814         (tilegx_regset_from_core_section): Remove.
2815         (tilegx_iterate_over_regset_sections): New.
2816         (tilegx_linux_init_abi): Adjust gdbarch initialization.
2817
2818 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2819
2820         * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2821         (sparc_iterate_over_regset_sections): New.
2822         (sparc32_gdbarch_init): Adjust gdbarch initialization.
2823         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2824         targets.
2825         * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2826         (sparc64fbsd_init_abi): Call fbsd_init_abi.
2827         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2828         target method 'make_corefile_notes'.
2829
2830 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2831
2832         * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2833         'sizeof_gregset' and 'sizeof_fpregset'.
2834         * sh-tdep.c (sh_regset_from_core_section): Remove.
2835         (sh_iterate_over_regset_sections): New.
2836         (sh_gdbarch_init): Adjust gdbarch initialization.
2837         * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2838         sizeof_fpregset.
2839         * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2840         'sizeof_gregset'.
2841
2842 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2843
2844         * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2845         (score7_linux_iterate_over_regset_sections): New.
2846         (score_gdbarch_init): Adjust gdbarch initialization.
2847
2848 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2849
2850         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2851         FreeBSD targets.
2852         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2853         method 'make_corefile_notes'.
2854         * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2855         (ppcfbsd_regset_from_core_section): Remove.
2856         (ppcfbsd_iterate_over_regset_sections): New.
2857         (ppcfbsd_init_abi): Call fbsd_init_abi.  Adjust gdbarch
2858         initialization.
2859         * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2860         (ppcnbsd_iterate_over_regset_sections): New.
2861         (ppcnbsd_init_abi): Adjust.
2862         * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2863         (ppcobsd_iterate_over_regset_sections): New.
2864         (ppcobsd_init_abi): Adjust.
2865         * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2866         (rs6000_aix_iterate_over_regset_sections): New.
2867         (rs6000_aix_init_osabi): Adjust.
2868
2869 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2870
2871         * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2872         (nios2_regset_from_core_section): Remove.
2873         (nios2_iterate_over_regset_sections): New.
2874         (nios2_linux_init_abi): Adjust gdbarch initialization.
2875
2876 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2877
2878         * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2879         (am33_iterate_over_regset_sections): New.
2880         (am33_linux_init_osabi): Adjust gdbarch initialization.
2881
2882 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2883
2884         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2885         (mips_linux_iterate_over_regset_sections): New.
2886         (mips_linux_init_abi): Adjust gdbarch initialization.
2887         * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2888         (mips64obsd_iterate_over_regset_sections): New.
2889         (mips64obsd_init_abi): Adjust.
2890         * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2891         (mipsnbsd_iterate_over_regset_sections): New.
2892         (mipsnbsd_init_abi): Adjust.
2893
2894 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2895
2896         * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2897         (m88k_iterate_over_regset_sections): New.
2898         (m88k_gdbarch_init): Adjust gdbarch initialization.
2899
2900 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2901
2902         * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2903         (ia64_linux_iterate_over_regset_sections): New.
2904         (ia64_linux_init_abi): Adjust gdbarch initialization.
2905
2906 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2907
2908         * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2909         (m68kbsd_iterate_over_regset_sections): New.
2910         (m68kbsd_init_abi): Adjust gdbarch initialization.
2911         * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2912         (m68k_linux_iterate_over_regset_sections): New.
2913         (m68k_linux_init_abi): Adjust gdbarch initialization.
2914
2915 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2916
2917         * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2918         (m32r_linux_regset_from_core_section): Remove.
2919         (m32r_linux_iterate_over_regset_sections): New.
2920         (m32r_linux_init_abi): Adjust gdbarch initialization.
2921
2922 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2923
2924         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2925         (amd64obsd_iterate_over_regset_sections): New.
2926         (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2927         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2928         Remove.
2929         (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset.  Drop
2930         regset_from_core_section initialization.
2931         * i386-tdep.c (i386_regset_from_core_section): Remove.
2932         (i386_iterate_over_regset_sections): New.
2933         (i386_gdbarch_init): Adjust gdbarch initialization.
2934         * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2935         (i386_iterate_over_regset_sections): New prototype.
2936         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2937         Remove.
2938         (i386obsd_aout_iterate_over_regset_sections): New.
2939         (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2940         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2941         targets.
2942         * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2943         (amd64fbsd_init_abi): Call fbsd_init_abi.
2944         * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2945         (i386fbsd4_init_abi): Call fbsd_init_abi.
2946         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2947         target method 'make_corefile_notes'.
2948         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2949
2950 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2951
2952         * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2953         (hppa_hpux_iterate_over_regset_sections): New.
2954         (hppa_hpux_init_abi): Adjust gdbarch initialization.
2955         * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2956         (hppa_linux_iterate_over_regset_sections): New.
2957         (hppa_linux_init_abi): Adjust.
2958         * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2959         (hppanbsd_iterate_over_regset_sections): New.
2960         (hppanbsd_init_abi): Adjust.
2961         * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2962         (hppaobsd_iterate_over_regset_sections): New.
2963         (hppaobsd_init_abi): Adjust.
2964
2965 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2966
2967         * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2968         (frv_linux_iterate_over_regset_sections): New.
2969         (frv_linux_init_abi): Adjust gdbarch initialization.
2970
2971 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2972
2973         * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2974         (armbsd_iterate_over_regset_sections): New prototype.
2975         * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2976         (armbsd_iterate_over_regset_sections): New.
2977         * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2978         initialization.
2979
2980 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2981
2982         * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2983         (alpha_linux_iterate_over_regset_sections): New.
2984         (alpha_linux_init_abi): Adjust gdbarch initialization.
2985         * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2986         prototype.
2987         (alphanbsd_iterate_over_regset_sections): New prototype.
2988
2989 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2990
2991         * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2992         Remove.
2993         (aarch64_linux_iterate_over_regset_sections): New.
2994         (aarch64_linux_init_abi): Adjust gdbarch initialization.
2995
2996 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2997
2998         * fbsd-tdep.c: New file.
2999         * fbsd-tdep.h: New file.
3000         * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3001         (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3002         (ALLDEPFILES): Add fbsd-tdep.c.
3003
3004 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3005
3006         * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3007         parameter.
3008         * gdbarch.h: Regenerate.
3009         * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3010         iterator.
3011         (get_core_register_section): Add parameter 'regset' and use it, if
3012         set.  Add parameter 'min_size' and verify the bfd section size
3013         against it.
3014         (get_core_registers_cb): Add parameter 'regset' and pass it to
3015         get_core_register section.  For the "standard" register sections
3016         ".reg" and ".reg2", set an appropriate default for human_name.
3017         (get_core_registers): Don't abort when the gdbarch has an iterator
3018         but no regset_from_core_section.  Add NULL/0 for parameters
3019         'regset'/'min_size' in calls to get_core_register_section.
3020         * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3021         'regset' and use it instead of calling the
3022         regset_from_core_section gdbarch method.
3023         * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3024         * i386-tdep.c (i386_supply_xstateregset)
3025         (i386_collect_xstateregset, i386_xstateregset): Moved to
3026         i386-linux-tdep.c.
3027         (i386_regset_from_core_section): Drop handling for .reg-xfp and
3028         .reg-xstate.
3029         (i386_gdbarch_init): Set tdep field 'fpregset'.  Enable generic
3030         core file support only if the regset iterator hasn't been set.
3031         * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3032         (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3033         Moved from i386-tdep.c and renamed to *_linux*.
3034         (i386_linux_iterate_over_regset_sections): Add regset parameter to
3035         each callback invocation.  Allow any .reg-xstate size when reading
3036         from a core file.
3037         * amd64-tdep.c (amd64_supply_xstateregset)
3038         (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3039         amd64-linux-tdep.c.
3040         (amd64_regset_from_core_section): Remove.
3041         (amd64_init_abi): Set new tdep field 'fpregset'.  No longer
3042         install an amd64-specific regset_from_core_section gdbarch method.
3043         * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3044         (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3045         Moved from amd64-tdep.c and renamed to *_linux*.
3046         (amd64_linux_iterate_over_regset_sections): Add regset parameter
3047         to each callback invocation.  Allow any .reg-xstate size when
3048         reading from a core file.
3049         * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3050         (arm_linux_iterate_over_regset_sections): Add regset parameter to
3051         each callback invocation.
3052         (arm_linux_init_abi): No longer set the regset_from_core_section
3053         gdbarch method.
3054         * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3055         (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3056         each callback invocation.
3057         (ppc_linux_init_abi): No longer set the regset_from_core_section
3058         gdbarch method.
3059         * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3060         gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3061         (s390_regset_from_core_section): Remove.
3062         (s390_iterate_over_regset_sections): Add regset parameter to each
3063         callback invocation.
3064         (s390_gdbarch_init): No longer set the regset_from_core_section
3065         gdbarch method.  Drop initialization of deleted tdep fields.
3066
3067 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3068
3069         * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3070         (amd64_linux_iterate_over_regset_sections): New.
3071         (amd64_linux_init_abi_common): Don't install the regset section
3072         list, but the new iterator in gdbarch.
3073         * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3074         (arm_linux_vfp_regset_sections): Remove.  Move combined logic...
3075         (arm_linux_iterate_over_regset_sections): ...here.  New function.
3076         (arm_linux_init_abi): Set iterator instead of section list.
3077         * corelow.c (get_core_registers_cb): New function, logic moved
3078         from...
3079         (get_core_registers): ...loop body here.  Use new iterator method
3080         instead of walking through the regset section list.
3081         * gdbarch.sh: Remove 'core_regset_sections'.  New method
3082         'iterate_over_regset_sections'.  New typedef
3083         'iterate_over_regset_sections_cb'.
3084         * gdbarch.c: Regenerate.
3085         * gdbarch.h: Likewise.
3086         * i386-linux-tdep.c (i386_linux_regset_sections)
3087         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3088         Remove.
3089         (i386_linux_iterate_over_regset_sections): New.
3090         (i386_linux_init_abi): Don't choose a regset section list, but
3091         install new iterator in gdbarch.
3092         * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3093         (linux_collect_regset_section_cb): New function, logic moved
3094         from...
3095         (linux_collect_thread_registers): ...loop body here.  Use iterator
3096         method instead of walking through list.
3097         (linux_make_corefile_notes_1): Check for presence of iterator
3098         method instead of regset section list.
3099         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3100         (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3101         (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3102         (ppc64_linux_fp_regset_sections): Remove.  Move combined logic...
3103         (ppc_linux_iterate_over_regset_sections): ...here.  New function.
3104         (ppc_linux_init_abi): Don't choose from above regset section
3105         lists, but install new iterator in gdbarch.
3106         * regset.h (struct core_regset_section): Remove.
3107         * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3108         have_linux_v1, have_linux_v2, and have_tdb.
3109         (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3110         (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3111         (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3112         (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3113         (s390x_linux64v2_regset_sections): Remove.  Move combined logic...
3114         (s390_iterate_over_regset_sections): ...here.  New function.  Use
3115         new tdep fields.
3116         (s390_gdbarch_init): Set new tdep fields.  Don't choose from above
3117         regset section lists, but install new iterator.
3118
3119 2014-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
3120
3121         * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3122
3123 2014-09-26  Simon Marchi  <simon.marchi@ericsson.com>
3124
3125         * progspace.c (print_program_space): Don't prune program spaces
3126         before printing them.
3127
3128 2014-09-25  Pedro Alves  <palves@redhat.com>
3129
3130         * infrun.c (user_visible_resume_ptid): Don't check
3131         singlestep_breakpoints_inserted_p.
3132
3133 2014-09-25  Pedro Alves  <palves@redhat.com>
3134
3135         * breakpoint.c (should_be_inserted): Add debug output.
3136
3137 2014-09-25  Pedro Alves  <palves@redhat.com>
3138
3139         * infrun.c (stepping_past_instruction_at)
3140         (clear_exit_convenience_vars): Point at infrun.h instead of
3141         inferior.h.
3142         (handle_signal_stop): Fix typo.
3143
3144 2014-09-24  Yao Qi  <yao@codesourcery.com>
3145
3146         * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3147         bitmask.
3148
3149 2014-09-22  Gary Benson  <gbenson@redhat.com>
3150
3151         * target.c (target_stop): Updated comment.
3152
3153 2014-09-22  Gary Benson  <gbenson@redhat.com>
3154
3155         * target/target.h (target_stop_ptid): Renamed as...
3156         (target_stop_and_wait): New function.  Updated comment.
3157         All uses updated.
3158         (target_continue_ptid): Renamed as...
3159         (target_continue_no_signal): New function.  Updated comment.
3160         All uses updated.
3161
3162 2014-09-22  Pedro Alves  <palves@redhat.com>
3163
3164         * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3165         and "auto" merged.
3166         * breakpoint.c (enum ugll_insert_mode): New enum.
3167         (always_inserted_mode): Now a plain boolean.
3168         (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3169         (breakpoints_always_inserted_mode): Delete.
3170         (breakpoints_should_be_inserted_now): New function.
3171         (insert_breakpoints): Pass UGLL_INSERT to
3172         update_global_location_list instead of calling
3173         insert_breakpoint_locations manually.
3174         (create_solib_event_breakpoint_1): New, factored out from ...
3175         (create_solib_event_breakpoint): ... this.
3176         (create_and_insert_solib_event_breakpoint): Use
3177         create_solib_event_breakpoint_1 instead of calling
3178         insert_breakpoint_locations manually.
3179         (update_global_location_list): Change parameter type from boolean
3180         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
3181         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3182         (update_global_location_list_nothrow): Change parameter type from
3183         boolean to enum ugll_insert_mode.
3184         (_initialize_breakpoint): "breakpoint always-inserted" option is
3185         now a boolean command.  Update help text.
3186         * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3187         (breakpoints_should_be_inserted_now): New declaration.
3188         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3189         Remove breakpoints_always_inserted_mode check.
3190         (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3191         * remote.c (remote_start_remote): Likewise.
3192
3193 2014-09-22  Pedro Alves  <palves@redhat.com>
3194
3195         * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3196         (insert_breakpoints): Don't call insert_breakpoint_locations here.
3197         Instead, pass UGLL_INSERT to update_global_location_list.
3198         (update_global_location_list): Change parameter type from boolean
3199         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
3200         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3201         (create_solib_event_breakpoint_1): New, factored out from ...
3202         (create_solib_event_breakpoint): ... this.
3203         (create_and_insert_solib_event_breakpoint): Use
3204         create_solib_event_breakpoint_1 instead of calling
3205         insert_breakpoint_locations manually.
3206         (update_global_location_list): Handle UGLL_INSERT.
3207
3208 2014-09-22  Pedro Alves  <palves@redhat.com>
3209
3210         * breakpoint.c (enum ugll_insert_mode): New enum.
3211         (update_global_location_list)
3212         (update_global_location_list_nothrow): Change parameter type from
3213         boolean to enum ugll_insert_mode.  All callers adjusted.
3214
3215 2014-09-19  Joel Brobecker  <brobecker@adacore.com>
3216
3217         * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3218         SystemTap support in GDB.
3219
3220 2014-09-19  Don Breazeal  <donb@codesourcery.com>
3221
3222         * linux-nat.c (linux_handle_extended_wait): Call
3223         linux_ptrace_get_extended_event.
3224         (wait_lwp): Call linux_is_extended_waitstatus.
3225         (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3226         and linux_is_extended_waitstatus.
3227         * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3228         linux_ptrace_get_extended_event.
3229         (linux_ptrace_get_extended_event): New function.
3230         (linux_is_extended_waitstatus): New function.
3231         * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3232         (linux_is_extended_waitstatus): New declarations.
3233
3234 2014-09-19  Yao Qi  <yao@codesourcery.com>
3235
3236         * dwarf2read.c (dwarf_decode_lines): Update declaration.
3237         (handle_DW_AT_stmt_list): Add argument 'lowpc'.  Update
3238         comments.  Callers update.
3239         (dwarf_decode_lines): Likewise.
3240         (dwarf_decode_lines_1): Add argument 'lowpc'.  Update
3241         comments.  Skip the line table if  'lowpc' is greater than
3242         'address'.  Don't check
3243         dwarf2_per_objfile->has_section_at_zero.
3244
3245 2014-09-18  Doug Evans  <dje@google.com>
3246
3247         * NEWS: Mention new "producer" attribute of gdb.Symtab.
3248         * python/py-symtab.c (stpy_get_producer): New function.
3249         (symtab_object_getset): Add "producer" attribute.
3250
3251 2014-09-17  Ulrich Weigand  <uweigand@de.ibm.com>
3252
3253         PR gdb/17384
3254         * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3255         (do_captured_read_memory_integer): Remove.
3256         (safe_read_memory_integer): Use target_read_memory directly instead
3257         of catching errors in do_captured_read_memory_integer.
3258
3259 2014-09-16  Maciej W. Rozycki  <macro@codesourcery.com>
3260
3261         * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3262         not gdb/doc.
3263
3264 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
3265
3266         * objc-lang.c (find_implementation_from_class): Remove dead code.
3267
3268 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
3269
3270         PR cli/7233
3271         * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3272         "fprintf_unfiltered (gdb_stdlog...)".
3273
3274 2014-09-16  Patrick Palka  <patrick@parcs.ath.cx>
3275
3276         PR breakpoints/12526
3277         * breakpoint.h (struct watchpoint): New fields val_bitpos and
3278         val_bitsize.
3279         * breakpoint.c (watch_command_1): Use these fields to retain
3280         bitfield information.
3281         (extract_bitfield_from_watchpoint_value): New function.
3282         (watchpoint_check): Use it.
3283         (update_watchpoint): Use it.  Optimize the address and length of a
3284         HW watchpoint pointing to a bitfield.
3285         * value.h (unpack_value_bitfield): New prototype.
3286         * value.c (unpack_value_bitfield): Make extern.
3287
3288 2014-09-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3289
3290         * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3291         x86-dregs.o.
3292         * gnu-nat.c (inf_threads): New function.
3293         * gnu-nat.h (inf_threads_ftype): New typedef.
3294         (inf_threads): New declaration.
3295         * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3296         [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3297         (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3298         (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3299         (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3300         (i386_gnu_dr_get_control): New functions.
3301         (reg_addr): New structure.
3302         (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3303         i386 debugging register hooks.
3304         * NEWS: Mention this.
3305
3306 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
3307
3308         * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3309         vector data transfer instructions.
3310         (arm_record_coproc_data_proc): Updated.
3311
3312 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
3313
3314         * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3315         arm_record_exreg_ld_st_insn.
3316         (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3317         load/store insns.
3318
3319 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
3320
3321         * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3322         (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3323         processing instructions.
3324
3325 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
3326
3327         * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3328         for advance SIMD struct ld/st insn.
3329         (thumb2_record_decode_insn_handler): Replace stub handler with
3330         thumb2_record_asimd_struct_ld_st.
3331
3332 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
3333
3334         * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3335         for asimd, vfp and coprocessor insns.
3336         (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3337         and coprocessor insns.
3338         (thumb2_record_coproc_insn): New function.
3339         (thumb2_record_decode_insn_handler): Update coprocessor insns record
3340         handlers.
3341         (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3342         opcode 110 insns.
3343
3344 2014-09-13  Doug Evans  <xdje42@gmail.com>
3345
3346         * NEWS: Mention new "queue-signal" command.
3347         * infcmd.c (queue_signal_command): New function.
3348         (_initialize_infcmd): Add new queue-signal command.
3349
3350 2014-09-13  Doug Evans  <xdje42@gmail.com>
3351
3352         * linux-nat.c (wait_lwp): Add debugging printf.
3353         (linux_nat_wait_1): Ditto.
3354
3355 2014-09-12  Pedro Alves  <palves@redhat.com>
3356
3357         * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3358         (create_and_insert_solib_event_breakpoint): New functions.
3359         * breakpoint.h (create_and_insert_solib_event_breakpoint)
3360         (remove_solib_event_breakpoints_at_next_stop): New declarations.
3361         * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3362         (remove_dbx_link_breakpoint): Delete function.
3363         (insert_dbx_link_bpt_in_file): Use
3364         create_and_insert_solib_event_breakpoint instead of
3365         deprecated_insert_raw_breakpoint.
3366         (procfs_wait): Don't check whether we hit __dbx_link here.
3367         (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3368         here.
3369         * solib-irix.c (base_breakpoint): Delete global.
3370         (disable_break): Delete function.
3371         (enable_break): Use create_solib_event_breakpoint
3372         instead of deprecated_insert_raw_breakpoint.
3373         (irix_solib_handle_event): New function.
3374         (irix_solib_create_inferior_hook): Don't run the target or disable
3375         the mapping-complete breakpoint here.
3376         (_initialize_irix_solib): Install irix_solib_handle_event as
3377         so_ops->handle_event hook.
3378
3379 2014-09-12  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
3380             Ulrich Weigand  <uweigand@de.ibm.com>
3381
3382         PR tdep/17379
3383         * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3384         instead of read_memory_unsigned_integer.
3385
3386 2014-09-12  Gary Benson  <gbenson@redhat.com>
3387
3388         * nat/linux-waitpid.c: Include common-defs.h.
3389         [GDBSERVER]: Add FIXME comment.
3390         [!GDBSERVER]: Don't include defs.h or signal.h.
3391         (linux_debug) [!GDBSERVER]: Remove empty block.
3392
3393 2014-09-12  Gary Benson  <gbenson@redhat.com>
3394
3395         * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3396         Don't include defs.h or server.h.
3397
3398 2014-09-12  Gary Benson  <gbenson@redhat.com>
3399
3400         * nat/linux-btrace.c: Include common-defs.h.
3401         Don't include defs.h, server.h or gdbthread.h.
3402         * nat/linux-btrace.h (struct target_ops): New forward declaration.
3403
3404 2014-09-12  Gary Benson  <gbenson@redhat.com>
3405
3406         * common/agent.c: Include common-defs.h.
3407         Don't include defs.h or server.h.
3408         * common/buffer.c: Likewise.
3409         * common/common-debug.c: Likewise.
3410         * common/common-utils.c: Likewise.
3411         * common/errors.c: Likewise.
3412         * common/filestuff.c: Likewise.
3413         * common/format.c: Likewise.
3414         * common/gdb_vecs.c: Likewise.
3415         * common/print-utils.c: Likewise.
3416         * common/ptid.c: Likewise.
3417         * common/rsp-low.c: Likewise.
3418         * common/signals.c: Likewise.
3419         * common/vec.c: Likewise.
3420         * common/xml-utils.c: Likewise.
3421         * nat/linux-osdata.c: Likewise.
3422         * nat/linux-procfs.c: Likewise.
3423         * nat/linux-ptrace.c: Likewise.
3424         * nat/mips-linux-watch.c: Likewise.
3425         * target/waitstatus.c: Likewise.
3426
3427 2014-09-12  Tom Tromey  <tromey@redhat.com>
3428             Gary Benson  <gbenson@redhat.com>
3429
3430         * common/common-regcache.h: New file.
3431         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3432         * regcache.h: Include common-regcache.h.
3433         (regcache_read_pc): Don't declare.
3434         * regcache.c (get_thread_regcache_for_ptid): New function.
3435         * nat/linux-btrace.c: Don't include regcache.h.
3436         Include common-regcache.h.
3437         (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3438
3439 2014-09-11  Thomas Schwinge  <thomas@codesourcery.com>
3440
3441         * regcache.h (struct regset): Declare.
3442
3443 2014-09-11  Pedro Alves  <palves@redhat.com>
3444
3445         PR gdb/17347
3446         * main.c: Include "infrun.h".
3447         (catch_command_errors, catch_command_errors_const): Wait for the
3448         foreground command to complete.
3449         * top.c (maybe_wait_sync_command_done): New function, factored out
3450         from ...
3451         (maybe_wait_sync_command_done): ... here.
3452         * top.h (maybe_wait_sync_command_done): New declaration.
3453
3454 2014-09-11  Tom Tromey  <tromey@redhat.com>
3455             Gary Benson  <gbenson@redhat.com>
3456
3457         * common/symbol.h: New file.
3458         * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3459         * minsyms.c (find_minimal_symbol_address): New function.
3460         * common/agent.c: Include common/symbol.h.
3461         [!GDBSERVER]: Don't include objfiles.h.
3462         (agent_look_up_symbols): Use find_minimal_symbol_address.
3463
3464 2014-09-11  Gary Benson  <gbenson@redhat.com>
3465
3466         * target/target.h (target_stop_ptid, target_continue_ptid):
3467         Declare.
3468         * target.c (target_stop_ptid, target_continue_ptid): New
3469         functions.
3470         * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3471         (agent_run_command): Always use target_stop_ptid and
3472         target_continue_ptid.
3473
3474 2014-09-11  Tom Tromey  <tromey@redhat.com>
3475             Gary Benson  <gbenson@redhat.com>
3476
3477         * target/target.h: New file.
3478         * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3479         * target.h: Include target/target.h.
3480         (target_read_memory, target_write_memory): Don't declare.
3481         * target.c (target_read_uint32): New function.
3482         * common/agent.c: Include target/target.h.
3483         [!GDBSERVER]: Don't include target.h.
3484         (helper_thread_id): Type changed to uint32_t.
3485         (agent_get_helper_thread_id): Use target_read_uint32.
3486         (agent_run_command): Always use target_read_memory and
3487         target_write_memory.
3488         (agent_capability): Type changed to uint32_t.
3489         (agent_capability_check): Use target_read_uint32.
3490
3491 2014-09-11  Gary Benson  <gbenson@redhat.com>
3492
3493         * common/common-debug.h (show_debug_regs): Declare.
3494         * common/common-debug.c (show_debug_regs): Define.
3495         * aarch64-linux-nat.c (debug_hw_points): Don't define.  Replace
3496         all uses with show_debug_regs.  Replace all uses that considered
3497         debug_hw_points as a multi-value integer with straight boolean
3498         uses.
3499         * x86-nat.c (debug_hw_points): Don't define.  Replace all uses
3500         with show_debug_regs.
3501         * nat/x86-dregs.c (debug_hw_points): Don't declare.  Replace
3502         all uses with show_debug_regs.
3503         * mips-linux-nat.c (maint_show_dr): Don't define.  Replace all
3504         uses with show_debug_regs.
3505
3506 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
3507
3508         * findvar.c (address_from_register): Handle targets requiring
3509         a special conversion routine even for plain pointer types.
3510
3511 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
3512
3513         * rs6000-nat.c (exec_one_dummy_insn): Remove.
3514         (store_register): Do not call exec_one_dummy_insn.
3515
3516 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
3517
3518         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3519         dereference it first.  Use value_enclosing_type instead of
3520         value_type.
3521         (ada_array_length): Likewise.
3522
3523 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
3524
3525         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3526         Adjust function implementation and documentation accordingly.
3527         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3528         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3529         Update call to ada_value_ptr_subscript.
3530
3531 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
3532
3533         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3534         instead of VAL's type.
3535
3536 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
3537
3538         * amd64-linux-nat.c: Add <sys/uio.h> #include.
3539
3540 2014-09-09  Doug Evans  <xdje42@gmail.com>
3541
3542         PR guile/17367
3543         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3544         last parameter to pkg-config, not first.
3545         * configure.ac: Pass --with-guile provided pkg-config path to
3546         GDB_GUILE_PROGRAM_NAMES.
3547         * configure: Regenerate.
3548
3549 2014-09-09  Gabriel Krisman Bertazi  <gabriel@krisman.be>
3550
3551         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3552         Bertazi".
3553
3554 2014-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
3555
3556         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3557         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3558         the list of sections determining GDB_OSABI_IRIX.
3559
3560 2014-09-09  James Hogan  <james.hogan@imgtec.com>
3561
3562         * MAINTAINERS (Write After Approval): Add "James Hogan".
3563
3564 2014-09-09  James Hogan  <james.hogan@imgtec.com>
3565
3566         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3567
3568 2014-09-09  Joel Brobecker  <brobecker@adacore.com>
3569
3570         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3571
3572 2014-09-08  Doug Evans  <xdje42@gmail.com>
3573
3574         PR 17247
3575         * guile.c: #include <signal.h>.
3576         (_initialize_guile): Block SIGCHLD while initializing Guile.
3577
3578         Replaces the following, which is reverted.
3579
3580         2014-07-26  Doug Evans  <xdje42@gmail.com>
3581
3582         PR 17185
3583         * configure.ac: Add check for header gc/gc.h.
3584         Add check for function setenv.
3585         * configure: Regenerate.
3586         * config.in: Regenerate.
3587         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3588
3589 2014-09-08  Doug Evans  <xdje42@gmail.com>
3590
3591         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3592         with named constant.  Fix style of pointer comparison.
3593         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3594
3595 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
3596
3597         PR gdb/17035
3598         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3599         decide whether we display the command on "show user".
3600         * cli/cli-script.c (show_user_1): Only verify cmdlines after
3601         printing command name.
3602         * cli/cli-decode.h (cli_user_command_p): Declare new function.
3603         * cli/cli-decode.c (cli_user_command_p): Create helper function
3604         to verify whether cmd_list_element is a user-defined command.
3605
3606 2014-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3607
3608         PR python/17355
3609         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3610         Fix goto out of TRY_CATCH.
3611
3612 2014-09-06  Doug Evans  <xdje42@gmail.com>
3613             Tom Tromey  <tromey@redhat.com>
3614
3615         PR 15276
3616         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3617         $_any_caller_matches.
3618         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3619         * python/lib/gdb/function/caller_is.py: New file.
3620
3621 2014-09-06  Doug Evans  <xdje42@gmail.com>
3622
3623         * infcmd.c (program_info): Fix typo.
3624
3625 2014-09-05  Sergio Durigan Junior  <sergiodj@redhat.com>
3626
3627         PR gdb/17235
3628         * stap-probe.c (stap_parse_single_operand): Delete unused variable
3629         'number'.  New variable 'has_digit'.  Rewrite code to deal with
3630         subexpressions on SDT probes.
3631
3632 2014-09-04  Pedro Alves  <palves@redhat.com>
3633
3634         * c-exp.y (parse_number): Skip handling base-switching prefixes if
3635         the input is only one character long.
3636
3637 2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
3638
3639         PR fortran/17237
3640         * f-valprint.c (f_val_print): Specify the correct print option to
3641         use when printing integer values.
3642
3643 2014-09-04  Gary Benson  <gbenson@redhat.com>
3644
3645         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3646         Remove code to cope with LWPs wrapped as PIDs.
3647         Add assertions to ensure no wrapped LWPs are passed.
3648
3649 2014-09-04  Pedro Alves  <palves@redhat.com>
3650
3651         * value.c (value_ranges_copy_adjusted): New function, factored out
3652         from ...
3653         (value_contents_copy_raw): ... here.
3654         (unpack_value_bits_as_long_1): Rename back to ...
3655         (unpack_bits_as_long): ... this.  Remove 'original_value' and
3656         'result' parameters.  Change return type to LONGEST.
3657         (unpack_value_bits_as_long): Delete.
3658         (unpack_value_field_as_long_1): Delete.
3659         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3660         (unpack_value_bitfield): New function.
3661         (value_field_bitfield): Reimplement using unpack_value_bitfield.
3662         (value_fetch_lazy): Use unpack_value_bitfield.
3663         * value.h (unpack_value_bits_as_long): Delete declaration.
3664
3665 2014-09-03  Sasha Smundak  <asmundak@google.com>
3666
3667         * python/py-frame.c (frapy_read_register): New function.
3668
3669 2014-09-03  James Hogan  <james.hogan@imgtec.com>
3670
3671         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3672         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3673
3674 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
3675
3676         PR python/16699
3677         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3678         function.
3679         (add_cmd): Set "completer_handle_brkchars" to NULL.
3680         * cli/cli-decode.h (struct cmd_list_element)
3681         <completer_handle_brkchars>: New field.
3682         * command.h (completer_ftype_void): New typedef.
3683         (set_cmd_completer_handle_brkchars): New prototype.
3684         * completer.c (set_gdb_completion_word_break_characters): New
3685         function.
3686         (complete_line_internal): Call "completer_handle_brkchars"
3687         callback from command.
3688         * completer.h: Include "command.h".
3689         (set_gdb_completion_word_break_characters): New prototype.
3690         * python/py-cmd.c (cmdpy_completer_helper): New function.
3691         (cmdpy_completer_handle_brkchars): New function.
3692         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3693         (cmdpy_init): Set completer_handle_brkchars to
3694         cmdpy_completer_handle_brkchars.
3695
3696 2014-09-03  Gary Benson  <gbenson@redhat.com>
3697
3698         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3699         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
3700         Loop conditions changed to equivalent form.
3701         (struct x86_debug_reg_state): Updated dr_ref_count comment.
3702         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3703         ALL_DEBUG_ADDRESS_REGISTERS.
3704
3705 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
3706
3707         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3708         description fix.
3709
3710 2014-09-02  Doug Evans  <dje@google.com>
3711
3712         * typeprint.c (find_global_typedef): Fix comment.
3713
3714 2014-09-02  Gary Benson  <gbenson@redhat.com>
3715
3716         * i386-nat.h: Renamed as...
3717         * x86-nat.h: New file.  All type, function and variable name
3718         prefixes changed from "i386_" to "x86_".  All references updated.
3719         * i386-nat.c: Renamed as...
3720         * x86-nat.c: New file.  All type, function and variable name
3721         prefixes changed from "i386_" to "x86_".  All references updated.
3722         * common/i386-xstate.h: Renamed as...
3723         * common/x86-xstate.h: New file.  All type, function and variable
3724         name prefixes changed from "i386_" to "x86_".  All references
3725         updated.
3726         * nat/i386-cpuid.h: Renamed as...
3727         * nat/x86-cpuid.h: New file.  All type, function and variable name
3728         prefixes changed from "i386_" to "x86_".  All references updated.
3729         * nat/i386-gcc-cpuid.h: Renamed as...
3730         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
3731         name prefixes changed from "i386_" to "x86_".  All references
3732         updated.
3733         * nat/i386-dregs.h: Renamed as...
3734         * nat/x86-dregs.h: New file.  All type, function and variable name
3735         prefixes changed from "i386_" to "x86_".  All references updated.
3736         * nat/i386-dregs.c: Renamed as...
3737         * nat/x86-dregs.c: New file.  All type, function and variable name
3738         prefixes changed from "i386_" to "x86_".  All references updated.
3739
3740 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
3741
3742         * varobj.c (_initialize_varobj): Move to the end of file.
3743
3744 2014-08-29  Gary Benson  <gbenson@redhat.com>
3745
3746         * common/common-exceptions.h: New file.
3747         * common/common-exceptions.c: Likewise.
3748         * Makefile.in (SFILES): Add common/common-exceptions.c.
3749         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3750         (COMMON_OBS): Add common-exceptions.o.
3751         (common-exceptions.o): New rule.
3752         * exceptions.h (common-exceptions.h): Include.
3753         (gdb_setjmp.h): Do not include.
3754         (return_reason): Moved to common-exceptions.h.
3755         (enum return_reason): Likewise.
3756         (RETURN_MASK): Likewise.
3757         (typedef return_mask): Likewise.
3758         (enum errors): Likewise.
3759         (struct gdb_exception): Likewise.
3760         (exceptions_state_mc_init): Likewise.
3761         (exceptions_state_mc_action_iter): Likewise.
3762         (exceptions_state_mc_action_iter_1): Likewise.
3763         (TRY_CATCH): Likewise.
3764         (throw_exception): Likewise.
3765         (throw_verror): Likewise.
3766         (throw_vquit): Likewise.
3767         (throw_error): Likewise.
3768         (throw_quit): Likewise.
3769         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3770         (enum catcher_action): Likewise.
3771         (struct catcher): Likewise.
3772         (current_catcher): Likewise.
3773         (catcher_list_size): Likewise.
3774         (exceptions_state_mc_init): Likewise.
3775         (catcher_pop): Likewise.
3776         (exceptions_state_mc): Likewise.
3777         (exceptions_state_mc_action_iter): Likewise.
3778         (exceptions_state_mc_action_iter_1): Likewise.
3779         (throw_exception): Likewise.
3780         (exception_messages): Likewise.
3781         (exception_messages_size): Likewise.
3782         (throw_it): Likewise.
3783         (throw_verror): Likewise.
3784         (throw_vquit): Likewise.
3785         (throw_error): Likewise.
3786         (throw_quit): Likewise.
3787         (prepare_to_throw_exception): New function.
3788
3789 2014-08-29  Gary Benson  <gbenson@redhat.com>
3790
3791         * common/gdb_setjmp.h: New file.
3792         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3793         * configure.ac: Move sigsetjmp check...
3794         * common/common.m4: ...here.
3795         * configure: Regenerate.
3796         * cp-support.c (SIGJMP_BUF): Delete.
3797         (SIGSETJMP): Likewise.
3798         (SIGLONGJMP): Likewise.
3799         * exceptions.h (gdb_setjmp.h): Include.
3800         (setjmp.h): Do not include.
3801         (EXCEPTIONS_SIGJMP_BUF): Delete.
3802         (EXCEPTIONS_SIGSETJMP): Likewise.
3803         (EXCEPTIONS_SIGLONGJMP): Likewise.
3804         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3805         from gdb_setjmp.h.
3806         * exceptions.c: Likewise.
3807
3808 2014-08-29  Gary Benson  <gbenson@redhat.com>
3809
3810         * cleanups.h: Moved to...
3811         * common/cleanups.h: New file.
3812         * cleanups.c: Moved to...
3813         * common/cleanups.c: New file.  Include common-defs.h and
3814         cleanups.h.  Do not include defs.h.
3815         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3816         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3817         (cleanups.o): New rule.
3818
3819 2014-08-29  Gary Benson  <gbenson@redhat.com>
3820
3821         * common/errors.h (internal_warning): New declaration.
3822         (internal_vwarning): Likewise.
3823         * common/errors.c (internal_warning): New function.
3824         * utils.h (internal_warning): Don't declare.
3825         (internal_vwarning): Likewise.
3826         * utils.c (internal_warning): Removed.
3827
3828 2014-08-29  Gary Benson  <gbenson@redhat.com>
3829
3830         * main.c (captured_main): Use warning during startup.
3831         Prefix startup warning messages with command name.
3832
3833 2014-08-29  Gary Benson  <gbenson@redhat.com>
3834
3835         * main.c (captured_main): Handle usage errors with error.
3836
3837 2014-08-29  Gary Benson  <gbenson@redhat.com>
3838
3839         * go32-nat.c (go32_create_inferior): Replace a fprintf/
3840         exit pair with a call to error.  Wrap the message with _().
3841
3842 2014-08-29  Gary Benson  <gbenson@redhat.com>
3843
3844         * main.c (captured_main): Replace a fprintf/exit
3845         pair with a call to error.  Wrap the message with _().
3846
3847 2014-08-29  Gary Benson  <gbenson@redhat.com>
3848
3849         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3850         pairs with calls to error.  Wrap the message with _().
3851
3852 2014-08-29  Gary Benson  <gbenson@redhat.com>
3853
3854         * utils.c (vwarning): Protect calls to target_terminal_ours
3855         and wrap_here.
3856
3857 2014-08-29  Gary Benson  <gbenson@redhat.com>
3858
3859         * exceptions.c (print_flush): Protect calls to
3860         target_terminal_ours and wrap_here.
3861
3862 2014-08-29  Gary Benson  <gbenson@redhat.com>
3863
3864         * utils.h (filtered_printing_initialized): New declaration.
3865         * utils.c (abort_with_message): New function.
3866         (internal_vproblem): Use abort_with_message for first level
3867         recursive internal problems, and if gdb_stderr is not set up.
3868         Protect calls to target_terminal_ours, begin_line and query.
3869
3870 2014-08-28  Doug Evans  <dje@google.com>
3871
3872         * symtab.c (in_prologue): Move definition to better spot.
3873         (skip_prologue_using_sal): Ditto.
3874
3875 2014-08-28  Doug Evans  <dje@google.com>
3876
3877         * symtab.c (find_function_start_sal): Move definition to better spot.
3878
3879 2014-08-28  Yao Qi  <yao@codesourcery.com>
3880
3881         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3882         found_stack_adjust in forward scan.  Remove condition check
3883         on found_stack_adjust which is always true.  Indent the code.
3884
3885 2014-08-28  Yao Qi  <yao@codesourcery.com>
3886
3887         * dwarf2read.c (dwarf_decode_lines): Update declaration.
3888         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3889         (dwarf_decode_lines): Remove argument
3890         want_line_info.  Remove condition check on want_line_info.
3891         Callers update.
3892
3893 2014-08-27  Doug Evans  <dje@google.com>
3894
3895         * dwarf2read.c (dwarf_record_line): Fix typo.
3896
3897 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
3898
3899         * target.h (struct target_ops::to_terminal_save_ours): Remove
3900         declaration.
3901         (target_terminal_save_ours): Remove macro.
3902         * target-delegates.c: Regenerate.
3903         * inf-child.c (inf_child_target): Don't set the nonexistent
3904         field to_terminal_save_ours.
3905         * inferior.h (child_terminal_save_ours): Remove declaration.
3906         * terminal.h (gdb_save_tty_state): New declaration.
3907         * inflow.c (child_terminal_save_ours): Rename to ...
3908         (gdb_save_tty_state): ... this.
3909         * tui/tui.c: Include terminal.h.
3910         (tui_enable): Use gdb_save_tty_state instead of
3911         target_terminal_save_ours.
3912         (tui_disable): Likewise.
3913
3914 2014-08-25  Doug Evans  <dje@google.com>
3915
3916         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3917         Pass NULL instead of 0 for context pointer.
3918
3919 2014-08-25  Yao Qi  <yao@codesourcery.com>
3920
3921         * dwarf2read.c: Fix grammatical error.
3922
3923 2014-08-24  Yao Qi  <yao@codesourcery.com>
3924
3925         * dwarf2read.c (scan_partial_symbols):  Update comments.
3926         Rename argument 'need_pc' with 'set_addrmap'.
3927         ï¼ˆadd_partial_namespace): Rename argument 'need_pc' with
3928         'set_addrmap'.
3929         (add_partial_module): Likewise.
3930         (add_partial_subprogram): Likewise.  Update comments.
3931         (dwarf2_name): Fix typo.
3932
3933 2014-08-22  Doug Evans  <dje@google.com>
3934
3935         PR 17276
3936         * dwarf2read.c (dwarf_record_line_p): New function.
3937         (dwarf_decode_lines_1): Ignore subsequent line number entries
3938         for the same line if any entry had a non-zero discriminator.
3939
3940 2014-08-22  Doug Evans  <dje@google.com>
3941
3942         * buildsym.h (record_line_ftype): New typedef.
3943         (record_line): Use it.
3944         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3945         (dwarf_decode_lines_1): Call them.
3946
3947 2014-08-22  Yao Qi  <yao@codesourcery.com>
3948
3949         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3950         (ctf_end): Remove code.
3951
3952 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
3953
3954         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3955         (linux_make_corefile_notes): call update_thread_list, protected against
3956         exceptions.
3957
3958 2014-08-21  Pedro Alves  <palves@redhat.com>
3959
3960         * infcmd.c (attach_command): Remove comment.
3961
3962 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
3963
3964         * aarch64-linux-nat.c (dr_changed_t): Change the type from
3965         unsigned LONGEST to ULONGEST.
3966
3967 2014-08-20  Pedro Alves  <palves@redhat.com>
3968
3969         * Makefile.in (check-read1): New rule.
3970
3971 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
3972
3973         * value.c (value_from_contents_and_address): Strip resolved_type's
3974         typedef layers before checking its TYPE_DATA_LOCATION.
3975
3976 2014-08-20  Pedro Alves  <palves@redhat.com>
3977
3978         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3979
3980 2014-08-20  Yao Qi  <yao@codesourcery.com>
3981
3982         * amd64-tdep.c (amd64_classify): Add a blank line after the
3983         example.  Move "*/" to a new line.
3984         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3985         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3986         * dwarf2read.c (psymtab_include_file_name): Likewise.
3987
3988 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
3989             Pedro Alves  <palves@redhat.com>
3990
3991         PR symtab/14604
3992         PR symtab/14605
3993         * ada-lang.c (coerce_unspec_val_to_type): Use
3994         value_contents_copy_raw.
3995         * ada-valprint.c (val_print_packed_array_elements): Adjust.
3996         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3997         * cp-valprint.c (cp_print_value_fields): Let the common printing
3998         code handle optimized out values.
3999         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4000         * d-valprint.c (dynamic_array_type): Use
4001         value_bits_any_optimized_out.
4002         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4003         check_any_valid fields.
4004         (check_pieced_value_bits): Delete and inline ...
4005         (check_pieced_synthetic_pointer): ... here.
4006         (check_pieced_value_validity): Delete.
4007         (check_pieced_value_invalid): Delete.
4008         (pieced_value_funcs): Remove check_validity and check_any_valid
4009         fields.
4010         (read_pieced_value): Use mark_value_bits_optimized_out.
4011         (write_pieced_value): Switch to use
4012         mark_value_bytes_optimized_out.
4013         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4014         of assuming the whole value is optimized out.
4015         * findvar.c (read_frame_register_value): Remove special handling
4016         of optimized out registers.
4017         (value_from_register): Use mark_value_bytes_optimized_out.
4018         * frame-unwind.c (frame_unwind_got_optimized): Use
4019         mark_value_bytes_optimized_out.
4020         * jv-valprint.c (java_value_print): Adjust.
4021         (java_print_value_fields): Let the common printing code handle
4022         optimized out values.
4023         * mips-tdep.c (mips_print_register): Remove special handling of
4024         optimized out registers.
4025         * opencl-lang.c (lval_func_check_validity): Delete.
4026         (lval_func_check_any_valid): Delete.
4027         (opencl_value_funcs): Remove check_validity and check_any_valid
4028         fields.
4029         * p-valprint.c (pascal_object_print_value_fields): Let the common
4030         printing code handle optimized out values.
4031         * stack.c (read_frame_arg): Remove special handling of optimized
4032         out values.  Fetch both VAL and ENTRYVAL before comparing
4033         contents.  Adjust to value_available_contents_eq rename.
4034         * valprint.c (valprint_check_validity)
4035         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4036         (val_print_array_elements): Adjust.
4037         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4038         (value_bits_any_optimized_out): New function.
4039         (value_entirely_covered_by_range_vector): New function, factored
4040         out from value_entirely_unavailable.
4041         (value_entirely_unavailable): Reimplement.
4042         (value_entirely_optimized_out): New function.
4043         (insert_into_bit_range_vector): New function, factored out from
4044         mark_value_bits_unavailable.
4045         (mark_value_bits_unavailable): Reimplement.
4046         (struct ranges_and_idx): New struct.
4047         (find_first_range_overlap_and_match): New function, factored out
4048         from value_available_contents_bits_eq.
4049         (value_available_contents_bits_eq): Rename to ...
4050         (value_contents_bits_eq): ... this.  Check both unavailable
4051         contents and optimized out contents.
4052         (value_available_contents_eq): Rename to ...
4053         (value_contents_eq): ... this.
4054         (allocate_value_lazy): Remove reference to the old optimized_out
4055         boolean.
4056         (allocate_optimized_out_value): Use
4057         mark_value_bytes_optimized_out.
4058         (require_not_optimized_out): Adjust to check whether the
4059         optimized_out vec is empty.
4060         (ranges_copy_adjusted): New function, factored out from
4061         value_contents_copy_raw.
4062         (value_contents_copy_raw): Also copy the optimized out ranges.
4063         Assert the destination ranges aren't optimized out.
4064         (value_contents_copy): Update comment, remove call to
4065         require_not_optimized_out.
4066         (value_contents_equal): Adjust to check whether the optimized_out
4067         vec is empty.
4068         (set_value_optimized_out, value_optimized_out_const): Delete.
4069         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4070         New functions.
4071         (value_entirely_optimized_out, value_bits_valid): Delete.
4072         (value_copy): Take a VEC copy of the 'optimized_out' field.
4073         (value_primitive_field): Remove special handling of optimized out.
4074         (value_fetch_lazy): Assert that lazy values have no unavailable
4075         regions.  Use value_bits_any_optimized_out.  Remove some special
4076         handling for optimized out values.
4077         * value.h: Add intro comment about <optimized out> and
4078         <unavailable>.
4079         (struct lval_funcs): Remove check_validity and check_any_valid
4080         fields.
4081         (set_value_optimized_out, value_optimized_out_const): Remove.
4082         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4083         New declarations.
4084         (value_bits_any_optimized_out): New declaration.
4085         (value_bits_valid): Delete declaration.
4086         (value_available_contents_eq): Rename to ...
4087         (value_contents_eq): ... this, and extend comments.
4088
4089 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
4090
4091         Fix -fsanitize=address on unreadable inferior strings.
4092         * valprint.c (val_print_string): Fix access before BUFFER.
4093
4094 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
4095
4096         * target.c (target_struct_size): Remove.
4097         (target_struct_allocsize): Remove.
4098         (DEFAULT_ALLOCSIZE): Remove.
4099         (target_ops_p): New typedef.
4100         (DEF_VEC_P (target_ops_p)): New vector type.
4101         (target_structs): Change type to VEC (target_ops_p).
4102         (add_target_with_completer): Replace "push" code by VEC_safe_push.
4103         (find_default_run_target): Rewrite for loop following changes to
4104         target_structs.
4105
4106 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
4107
4108         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4109         Adjust code accordingly.  Adjust function description comment.
4110
4111 2014-08-19  Yao Qi  <yao@codesourcery.com>
4112
4113         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4114         types.
4115
4116 2014-08-19  Alan Modra  <amodra@gmail.com>
4117
4118         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4119         * config.in: Regenerate.
4120         * configure: Regenerate.
4121
4122 2014-08-19  Tom Tromey  <tromey@redhat.com>
4123             Gary Benson  <gbenson@redhat.com>
4124
4125         * common/common-debug.h: New file.
4126         * common/common-debug.c: Likewise.
4127         * debug.c: Likewise.
4128         * Makefile.in (SFILES): Add common/common-debug.c.
4129         (HFILES_NO_SRCDIR): Add common/common-debug.h.
4130         (COMMON_OBS): Add common-debug.o and debug.o.
4131         (common-debug.o): New rule.
4132         * common/common-defs.h: Include common-debug.h.
4133         * common/agent.c (debug_agent_printf): New function.
4134         (DEBUG_AGENT): Redefine.
4135         * nat/i386-dregs.c (debug_printf): Undefine.
4136
4137 2014-08-19  Gary Benson  <gbenson@redhat.com>
4138
4139         * common/common-defs.h: Include print-utils.h.
4140         * utils.h: Do not include print-utils.h.
4141
4142 2014-08-19  Tom Tromey  <tromey@redhat.com>
4143             Gary Benson  <gbenson@redhat.com>
4144
4145         * common/common-types.h: New file.
4146         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4147         * common/common-defs.h: Include common-types.h.
4148         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4149         (ULONGEST): Remove.
4150
4151 2014-08-19  Tom Tromey  <tromey@redhat.com>
4152             Gary Benson  <gbenson@redhat.com>
4153
4154         * common/errors.h: New file.
4155         * common/errors.c: Likewise.
4156         * Makefile.in (SFILES): Add common/errors.c.
4157         (HFILES_NO_SRCDIR): Add common/errors.h.
4158         (COMMON_OBS): Add errors.o.
4159         (errors.o): New rule.
4160         * common/common-defs.h: Include errors.h.
4161         * utils.h (perror_with_name, error, verror, warning, vwarning):
4162         Don't declare.
4163         * common/common-utils.h: (malloc_failure, internal_error):
4164         Likewise.
4165
4166 2014-08-19  Gary Benson  <gbenson@redhat.com>
4167
4168         * utils.c (internal_vproblem): Always print the message.
4169
4170 2014-08-18  Doug Evans  <dje@google.com>
4171
4172         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4173
4174 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
4175
4176         * ada-typeprint.c (type_is_full_subrange_of_target_type):
4177         Return 0 if TYPE is dynamic.
4178         (print_range): Add handling of dynamic ranges.
4179
4180 2014-08-18  Keven Boell  <keven.boell@intel.com>
4181             Joel Brobecker  <brobecker@adacore.com>
4182
4183         * gdbtypes.h (struct main_type): Add field "data_location".
4184         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4185         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4186         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4187         a dynamic data location.
4188         (resolve_dynamic_type): Add DW_AT_data_location handling.
4189         (copy_recursive, copy_type): Copy the data_location information
4190         when present.
4191         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4192         * value.c (value_from_contents_and_address): Add
4193         DW_AT_data_location handling.
4194
4195 2014-08-18  Keven Boell  <keven.boell@intel.com>
4196             Joel Brobecker  <brobecker@adacore.com>
4197
4198         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4199         field "get_object_address".
4200         * dwarf2expr.c (execute_stack_op): Add handling for
4201         DW_OP_push_object_address.
4202         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4203         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4204         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4205         (dwarf_expr_get_obj_addr): New function.
4206         (dwarf_expr_ctx_funcs): Add get_object_address field.
4207         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4208         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
4209         (dwarf2_evaluate_property): Add parameter "address".  Use it.
4210         (needs_get_obj_addr): New function.
4211         (needs_frame_ctx_funcs): Add get_object_address field.
4212         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4213         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
4214         (resolve_dynamic_array): Likewise.
4215
4216 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
4217
4218         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4219         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4220         fixed value for records and unions for which some GNAT encodings
4221         are present.
4222
4223 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
4224
4225         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4226         rewrite to avoid "else if" and "else" constructs.  Should be
4227         a no-op in practice.
4228
4229 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
4230
4231         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4232         of lexical block.
4233
4234 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
4235
4236         PR c++/17132
4237         * eval.c: Update all calls to find_overload_match.
4238         * valarith.c: Likewise.
4239         (value_user_defined_cpp_op, value_user_defined_op): New
4240         argument NOSIDE.  Update all callers.
4241         * valops.c (find_overload_match): New argument NOSIDE.
4242         * value.h (find_overload_match): Update signature.
4243
4244 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
4245
4246         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4247         'items' methods instead of 'iteritems' method on dictionaries.
4248
4249 2014-08-15  Doug Evans  <dje@google.com>
4250
4251         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4252         closer to use.
4253
4254 2014-08-15  Doug Evans  <dje@google.com>
4255
4256         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4257
4258 2014-08-15  Doug Evans  <dje@google.com>
4259
4260         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4261
4262 2014-08-15  Doug Evans  <dje@google.com>
4263
4264         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4265         unused.
4266
4267 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
4268
4269         * dcache.h: Include target.h, to avoid compile time warnings.
4270
4271 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
4272
4273         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
4274         frame_info" partial declaration.
4275         * gdbarch.h: Regenerate.
4276
4277 2014-08-15  Yao Qi  <yao@codesourcery.com>
4278
4279         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4280         Add parameter 'decode_for_pst_p'.  Callers update.
4281
4282 2014-08-13  Yao Qi  <yao@codesourcery.com>
4283
4284         PR build/17104
4285         * configure.ac: Use local variable 'pos'.
4286         * configure: Regenerated.
4287
4288 2014-08-11  Doug Evans  <dje@google.com>
4289
4290         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4291         message, it is redundant with "Reading symbols from ..." message.
4292
4293 2014-08-10  Doug Evans  <xdje42@gmail.com>
4294
4295         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4296
4297 2014-08-09  Yao Qi  <yao@codesourcery.com>
4298
4299         PR remote/9053
4300         * remote.c (remote_xfer_partial): Remove dead code.
4301
4302 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4303
4304         * ia64-linux-tdep.c: Include "regset.h".
4305         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4306         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4307         (ia64_linux_supply_fpregset): New function.
4308         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4309         (ia64_linux_regset_from_core_section): New function.
4310         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4311         method.
4312
4313 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4314
4315         * m68klinux-tdep.c: Include "regset.h".
4316         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4317         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4318         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4319         (m68k_linux_regset_from_core_section): New function.
4320         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4321         method.
4322
4323 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4324
4325         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4326         function.  Move logic to...
4327         (tilegx_linux_regmap): ... this new register map.
4328         (tilegx_linux_regset): Refer to register map, replace supply
4329         method by regcache_supply_regset, and add collect method.
4330         * tilegx-tdep.h (enum tilegx_regnum): New enum value
4331         TILEGX_FIRST_EASY_REGNUM.
4332
4333 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4334
4335         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4336         that calls regcache_supply_regset and handles the EPC register
4337         separately.  Move main logic to...
4338         (score7_linux_gregmap): ... this new register map.
4339         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4340         (score7_linux_gregset): Refer to register map.  Add collect method.
4341         (score7_linux_regset_from_core_section): Replace
4342         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4343         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4344         (struct regset): Delete unused forward declaraction.
4345         (struct pt_regs): Delete structure definition.
4346         (elf_gregset_t): Delete typedef.
4347
4348 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4349
4350         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4351         (nios2_core_regset): Add collect method.
4352
4353 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4354
4355         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4356         platform-independent and don't write to read-only input buffer.
4357         (m32r_linux_collect_gregset): New function.
4358         (m32r_linux_gregset): Add collect method.
4359
4360 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4361
4362         * hppa-linux-tdep.c (greg_map): Rename to...
4363         (hppa_linux_gregmap): ... this.  Also convert to
4364         regcache_map_entry format.
4365         (hppa_linux_supply_regset): Delete function.
4366         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
4367         (hppa_linux_fpregmap): ... this new register map.
4368         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4369         register map, replace supply method by regcache_supply_regset, and
4370         add collect method regcache_collect_regset.
4371
4372 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4373
4374         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4375         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4376         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4377         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4378         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4379         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4380         (frv_linux_supply_gregset): Replace main logic by call to
4381         regcache_supply_regset, but keep clearing gr32-gr63.
4382         (frv_linux_supply_fpregset): Delete function.
4383         (frv_linux_gregset): Refer to appropriate register map and add
4384         regcache_collect_regset as the collect method.
4385         (frv_linux_fpregset): Likewise.  Also exchange the supply method
4386         by regcache_supply_regset.
4387
4388 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4389
4390         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4391         by call to alpha_supply_int_regs.
4392         (alpha_linux_collect_gregset): New function.
4393         (alpha_linux_supply_fpregset): Replace logic by call to
4394         alpha_supply_fp_regs.
4395         (alpha_linux_collect_fpregset): New function.
4396         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4397
4398 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4399
4400         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4401         by call to regcache_collect_regset.
4402         (supply_gregset, supply_fpregset): Call regcache_supply_regset
4403         instead of aarch64_linux_supply_gregset/_fpregset.
4404         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4405         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4406         header file instead.
4407         (aarch64_linux_supply_gregset, supply_gregset_from_core)
4408         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4409         functions.  Move logic to ...
4410         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4411         register maps.
4412         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4413         refer to new register maps, replace *_regset_from_core by
4414         regcache_supply_regset, and also use regcache_collect_regset.
4415         * aarch64-linux-tdep.h: Include "regset.h".
4416         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4417         Delete prototypes.
4418         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4419         macros, moved from C source file.
4420         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4421         variable declarations.
4422
4423 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4424
4425         * s390-linux-nat.c: Include "regset.h".
4426         (regmap_gregset): Delete macro.
4427         (s390_64_regmap_gregset): New register map for
4428         regcache_supply/_collect_regset.
4429         (s390_64_gregset): New regset.
4430         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4431         (regmap_fpregset): Delete macro.
4432         (s390_native_supply, s390_native_collect): Delete functions.
4433         (supply_gregset, fill_gregset): Replace s390-specific regmap
4434         handling by a call to regcache_supply/_collect_regset.
4435         (supply_fpregset, fill_fpregset): Call regcache_supply/
4436         _collect_regset instead of s390_native_supply/_collect.
4437         (fetch_regset, store_regset): Likewise.  Also change the last
4438         parameter to a regset instead of a regmap.
4439         (s390_linux_fetch_inferior_registers)
4440         (390_linux_store_inferior_registers): Adjust last parameter in
4441         calls to fetch_regset and store_regset.
4442         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4443         (s390_gregmap): ... this.  Also make static const and convert to
4444         regcache_map_entry format.
4445         (s390x_regmap_gregset): Delete.
4446         (s390_regmap_fpregset): Rename to...
4447         (s390_fpregmap): ... this.  Make static const and convert to
4448         regcache_map_entry format.
4449         (s390_regmap_upper, s390_regmap_last_break)
4450         (s390x_regmap_last_break, s390_regmap_system_call)
4451         (s390_regmap_tdb): Likewise.
4452         (s390_supply_regset, s390_collect_regset): Remove functions.
4453         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4454         s390_supply_regset.
4455         (s390_gregset, s390_fpregset, s390_upper_regset)
4456         (s390_last_break_regset, s390x_last_break_regset)
4457         (s390_system_call_regset, s390_tdb_regset): Make global and
4458         replace s390_supply/_collect_regset by regcache_supply/
4459         _collect_regset.
4460         (s390x_gregset): Delete.
4461         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4462         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4463         (s390_regmap_fpregset, s390_regmap_last_break)
4464         (s390x_regmap_last_break, s390_regmap_system_call)
4465         (s390_regmap_tdb): Delete global variable declarations.
4466         (s390_gregset, s390_fpregset, s390_last_break_regset)
4467         (s390x_last_break_regset, s390_system_call_regset)
4468         (s390_tdb_regset): New global variable declarations.
4469
4470 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4471
4472         * regcache.c: Include "regset.h".
4473         (regcache_transfer_regset): New local function.
4474         (regcache_supply_regset, regcache_collect_regset): New functions.
4475         * regcache.h (struct regcache_map_entry): New structure.
4476         (REGCACHE_MAP_SKIP): New enum value.
4477         (regcache_supply_regset, regcache_collect_regset): New prototypes.
4478
4479 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4480
4481         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4482         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4483         (ppc_linux_collect_gregset ): Likewise.
4484         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4485         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4486         (ppc_collect_vrregset): Likewise.
4487         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4488         Likewise.
4489
4490 2014-08-07  Yao Qi  <yao@codesourcery.com>
4491
4492         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4493         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4494         * remote.c (remote_read_bytes): Likewise.
4495
4496 2014-08-07  Yao Qi  <yao@codesourcery.com>
4497
4498         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4499
4500 2014-08-07  Yao Qi  <yao@codesourcery.com>
4501
4502         PR remote/17230
4503         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4504         TARGET_XFER_OK instead of 0.
4505
4506 2014-08-07  Gary Benson  <gbenson@redhat.com>
4507
4508         * common/common-defs.h: Include errno.h.
4509         * defs.h: Do not include errno.h.
4510         * ada-typeprint.c: Likewise.
4511         * c-typeprint.c: Likewise.
4512         * core-regset.c: Likewise.
4513         * corefile.c: Likewise.
4514         * corelow.c: Likewise.
4515         * event-loop.c: Likewise.
4516         * f-typeprint.c: Likewise.
4517         * gnu-nat.c: Likewise.
4518         * go32-nat.c: Likewise.
4519         * i386gnu-nat.c: Likewise.
4520         * m2-typeprint.c: Likewise.
4521         * nat/linux-btrace.c: Likewise.
4522         * p-typeprint.c: Likewise.
4523         * procfs.c: Likewise.
4524         * remote-sim.c: Likewise.
4525         * rs6000-nat.c: Likewise.
4526         * target.c: Likewise.
4527         * typeprint.c: Likewise.
4528         * ui-file.c: Likewise.
4529         * valops.c: Likewise.
4530         * valprint.c: Likewise.
4531
4532 2014-08-07  Gary Benson  <gbenson@redhat.com>
4533
4534         * common/common-defs.h: Include string.h.
4535         * aarch64-tdep.c: Do not include string.h.
4536         * ada-exp.y: Likewise.
4537         * ada-lang.c: Likewise.
4538         * ada-lex.l: Likewise.
4539         * ada-typeprint.c: Likewise.
4540         * ada-valprint.c: Likewise.
4541         * aix-thread.c: Likewise.
4542         * alpha-linux-tdep.c: Likewise.
4543         * alpha-mdebug-tdep.c: Likewise.
4544         * alpha-nat.c: Likewise.
4545         * alpha-osf1-tdep.c: Likewise.
4546         * alpha-tdep.c: Likewise.
4547         * alphanbsd-tdep.c: Likewise.
4548         * amd64-dicos-tdep.c: Likewise.
4549         * amd64-linux-tdep.c: Likewise.
4550         * amd64-nat.c: Likewise.
4551         * amd64-sol2-tdep.c: Likewise.
4552         * amd64fbsd-tdep.c: Likewise.
4553         * amd64obsd-tdep.c: Likewise.
4554         * arch-utils.c: Likewise.
4555         * arm-linux-nat.c: Likewise.
4556         * arm-linux-tdep.c: Likewise.
4557         * arm-tdep.c: Likewise.
4558         * arm-wince-tdep.c: Likewise.
4559         * armbsd-tdep.c: Likewise.
4560         * armnbsd-nat.c: Likewise.
4561         * armnbsd-tdep.c: Likewise.
4562         * armobsd-tdep.c: Likewise.
4563         * avr-tdep.c: Likewise.
4564         * ax-gdb.c: Likewise.
4565         * ax-general.c: Likewise.
4566         * bcache.c: Likewise.
4567         * bfin-tdep.c: Likewise.
4568         * breakpoint.c: Likewise.
4569         * build-id.c: Likewise.
4570         * buildsym.c: Likewise.
4571         * c-exp.y: Likewise.
4572         * c-lang.c: Likewise.
4573         * c-typeprint.c: Likewise.
4574         * c-valprint.c: Likewise.
4575         * charset.c: Likewise.
4576         * cli-out.c: Likewise.
4577         * cli/cli-cmds.c: Likewise.
4578         * cli/cli-decode.c: Likewise.
4579         * cli/cli-dump.c: Likewise.
4580         * cli/cli-interp.c: Likewise.
4581         * cli/cli-logging.c: Likewise.
4582         * cli/cli-script.c: Likewise.
4583         * cli/cli-setshow.c: Likewise.
4584         * cli/cli-utils.c: Likewise.
4585         * coffread.c: Likewise.
4586         * common/agent.c: Likewise.
4587         * common/buffer.c: Likewise.
4588         * common/buffer.h: Likewise.
4589         * common/common-utils.c: Likewise.
4590         * common/filestuff.c: Likewise.
4591         * common/filestuff.c: Likewise.
4592         * common/format.c: Likewise.
4593         * common/print-utils.c: Likewise.
4594         * common/rsp-low.c: Likewise.
4595         * common/signals.c: Likewise.
4596         * common/vec.h: Likewise.
4597         * common/xml-utils.c: Likewise.
4598         * core-regset.c: Likewise.
4599         * corefile.c: Likewise.
4600         * corelow.c: Likewise.
4601         * cp-abi.c: Likewise.
4602         * cp-name-parser.y: Likewise.
4603         * cp-support.c: Likewise.
4604         * cp-valprint.c: Likewise.
4605         * cris-tdep.c: Likewise.
4606         * d-exp.y: Likewise.
4607         * darwin-nat.c: Likewise.
4608         * dbxread.c: Likewise.
4609         * dcache.c: Likewise.
4610         * demangle.c: Likewise.
4611         * dicos-tdep.c: Likewise.
4612         * disasm.c: Likewise.
4613         * doublest.c: Likewise.
4614         * dsrec.c: Likewise.
4615         * dummy-frame.c: Likewise.
4616         * dwarf2-frame.c: Likewise.
4617         * dwarf2loc.c: Likewise.
4618         * dwarf2read.c: Likewise.
4619         * elfread.c: Likewise.
4620         * environ.c: Likewise.
4621         * eval.c: Likewise.
4622         * event-loop.c: Likewise.
4623         * exceptions.c: Likewise.
4624         * exec.c: Likewise.
4625         * expprint.c: Likewise.
4626         * f-exp.y: Likewise.
4627         * f-lang.c: Likewise.
4628         * f-typeprint.c: Likewise.
4629         * f-valprint.c: Likewise.
4630         * fbsd-nat.c: Likewise.
4631         * findcmd.c: Likewise.
4632         * findvar.c: Likewise.
4633         * fork-child.c: Likewise.
4634         * frame.c: Likewise.
4635         * frv-linux-tdep.c: Likewise.
4636         * frv-tdep.c: Likewise.
4637         * gdb.c: Likewise.
4638         * gdb_bfd.c: Likewise.
4639         * gdbarch.c: Likewise.
4640         * gdbarch.sh: Likewise.
4641         * gdbtypes.c: Likewise.
4642         * gnu-nat.c: Likewise.
4643         * gnu-v2-abi.c: Likewise.
4644         * gnu-v3-abi.c: Likewise.
4645         * go-exp.y: Likewise.
4646         * go-lang.c: Likewise.
4647         * go32-nat.c: Likewise.
4648         * guile/guile.c: Likewise.
4649         * guile/scm-auto-load.c: Likewise.
4650         * hppa-hpux-tdep.c: Likewise.
4651         * hppa-linux-nat.c: Likewise.
4652         * hppanbsd-tdep.c: Likewise.
4653         * hppaobsd-tdep.c: Likewise.
4654         * i386-cygwin-tdep.c: Likewise.
4655         * i386-dicos-tdep.c: Likewise.
4656         * i386-linux-tdep.c: Likewise.
4657         * i386-nto-tdep.c: Likewise.
4658         * i386-sol2-tdep.c: Likewise.
4659         * i386-tdep.c: Likewise.
4660         * i386bsd-tdep.c: Likewise.
4661         * i386gnu-nat.c: Likewise.
4662         * i386nbsd-tdep.c: Likewise.
4663         * i386obsd-tdep.c: Likewise.
4664         * i387-tdep.c: Likewise.
4665         * ia64-libunwind-tdep.c: Likewise.
4666         * ia64-linux-nat.c: Likewise.
4667         * inf-child.c: Likewise.
4668         * inf-ptrace.c: Likewise.
4669         * inf-ttrace.c: Likewise.
4670         * infcall.c: Likewise.
4671         * infcmd.c: Likewise.
4672         * inflow.c: Likewise.
4673         * infrun.c: Likewise.
4674         * interps.c: Likewise.
4675         * iq2000-tdep.c: Likewise.
4676         * irix5-nat.c: Likewise.
4677         * jv-exp.y: Likewise.
4678         * jv-lang.c: Likewise.
4679         * jv-typeprint.c: Likewise.
4680         * jv-valprint.c: Likewise.
4681         * language.c: Likewise.
4682         * linux-fork.c: Likewise.
4683         * linux-nat.c: Likewise.
4684         * lm32-tdep.c: Likewise.
4685         * m2-exp.y: Likewise.
4686         * m2-typeprint.c: Likewise.
4687         * m32c-tdep.c: Likewise.
4688         * m32r-linux-nat.c: Likewise.
4689         * m32r-linux-tdep.c: Likewise.
4690         * m32r-rom.c: Likewise.
4691         * m32r-tdep.c: Likewise.
4692         * m68hc11-tdep.c: Likewise.
4693         * m68k-tdep.c: Likewise.
4694         * m68kbsd-tdep.c: Likewise.
4695         * m68klinux-nat.c: Likewise.
4696         * m68klinux-tdep.c: Likewise.
4697         * m88k-tdep.c: Likewise.
4698         * machoread.c: Likewise.
4699         * macrocmd.c: Likewise.
4700         * main.c: Likewise.
4701         * mdebugread.c: Likewise.
4702         * mem-break.c: Likewise.
4703         * memattr.c: Likewise.
4704         * memory-map.c: Likewise.
4705         * mep-tdep.c: Likewise.
4706         * mi/mi-cmd-break.c: Likewise.
4707         * mi/mi-cmd-disas.c: Likewise.
4708         * mi/mi-cmd-env.c: Likewise.
4709         * mi/mi-cmd-stack.c: Likewise.
4710         * mi/mi-cmd-var.c: Likewise.
4711         * mi/mi-cmds.c: Likewise.
4712         * mi/mi-console.c: Likewise.
4713         * mi/mi-getopt.c: Likewise.
4714         * mi/mi-interp.c: Likewise.
4715         * mi/mi-main.c: Likewise.
4716         * mi/mi-parse.c: Likewise.
4717         * microblaze-rom.c: Likewise.
4718         * microblaze-tdep.c: Likewise.
4719         * mingw-hdep.c: Likewise.
4720         * minidebug.c: Likewise.
4721         * minsyms.c: Likewise.
4722         * mips-irix-tdep.c: Likewise.
4723         * mips-linux-tdep.c: Likewise.
4724         * mips-tdep.c: Likewise.
4725         * mips64obsd-tdep.c: Likewise.
4726         * mipsnbsd-tdep.c: Likewise.
4727         * mipsread.c: Likewise.
4728         * mn10300-linux-tdep.c: Likewise.
4729         * mn10300-tdep.c: Likewise.
4730         * monitor.c: Likewise.
4731         * moxie-tdep.c: Likewise.
4732         * mt-tdep.c: Likewise.
4733         * nat/linux-btrace.c: Likewise.
4734         * nat/linux-osdata.c: Likewise.
4735         * nat/linux-procfs.c: Likewise.
4736         * nat/linux-ptrace.c: Likewise.
4737         * nat/linux-waitpid.c: Likewise.
4738         * nbsd-tdep.c: Likewise.
4739         * nios2-linux-tdep.c: Likewise.
4740         * nto-procfs.c: Likewise.
4741         * nto-tdep.c: Likewise.
4742         * objc-lang.c: Likewise.
4743         * objfiles.c: Likewise.
4744         * opencl-lang.c: Likewise.
4745         * osabi.c: Likewise.
4746         * osdata.c: Likewise.
4747         * p-exp.y: Likewise.
4748         * p-lang.c: Likewise.
4749         * p-typeprint.c: Likewise.
4750         * parse.c: Likewise.
4751         * posix-hdep.c: Likewise.
4752         * ppc-linux-nat.c: Likewise.
4753         * ppc-sysv-tdep.c: Likewise.
4754         * ppcfbsd-tdep.c: Likewise.
4755         * ppcnbsd-tdep.c: Likewise.
4756         * ppcobsd-tdep.c: Likewise.
4757         * printcmd.c: Likewise.
4758         * procfs.c: Likewise.
4759         * prologue-value.c: Likewise.
4760         * python/py-auto-load.c: Likewise.
4761         * python/py-gdb-readline.c: Likewise.
4762         * ravenscar-thread.c: Likewise.
4763         * regcache.c: Likewise.
4764         * registry.c: Likewise.
4765         * remote-fileio.c: Likewise.
4766         * remote-m32r-sdi.c: Likewise.
4767         * remote-mips.c: Likewise.
4768         * remote-notif.c: Likewise.
4769         * remote-sim.c: Likewise.
4770         * remote.c: Likewise.
4771         * reverse.c: Likewise.
4772         * rs6000-aix-tdep.c: Likewise.
4773         * ser-base.c: Likewise.
4774         * ser-go32.c: Likewise.
4775         * ser-mingw.c: Likewise.
4776         * ser-pipe.c: Likewise.
4777         * ser-tcp.c: Likewise.
4778         * ser-unix.c: Likewise.
4779         * serial.c: Likewise.
4780         * sh-tdep.c: Likewise.
4781         * sh64-tdep.c: Likewise.
4782         * shnbsd-tdep.c: Likewise.
4783         * skip.c: Likewise.
4784         * sol-thread.c: Likewise.
4785         * solib-dsbt.c: Likewise.
4786         * solib-frv.c: Likewise.
4787         * solib-osf.c: Likewise.
4788         * solib-som.c: Likewise.
4789         * solib-spu.c: Likewise.
4790         * solib-target.c: Likewise.
4791         * solib.c: Likewise.
4792         * somread.c: Likewise.
4793         * source.c: Likewise.
4794         * sparc-nat.c: Likewise.
4795         * sparc-sol2-tdep.c: Likewise.
4796         * sparc-tdep.c: Likewise.
4797         * sparc64-tdep.c: Likewise.
4798         * sparc64fbsd-tdep.c: Likewise.
4799         * sparc64nbsd-tdep.c: Likewise.
4800         * sparcnbsd-tdep.c: Likewise.
4801         * spu-linux-nat.c: Likewise.
4802         * spu-multiarch.c: Likewise.
4803         * spu-tdep.c: Likewise.
4804         * stabsread.c: Likewise.
4805         * stack.c: Likewise.
4806         * std-regs.c: Likewise.
4807         * symfile.c: Likewise.
4808         * symmisc.c: Likewise.
4809         * symtab.c: Likewise.
4810         * target.c: Likewise.
4811         * thread.c: Likewise.
4812         * tilegx-linux-nat.c: Likewise.
4813         * tilegx-tdep.c: Likewise.
4814         * top.c: Likewise.
4815         * tracepoint.c: Likewise.
4816         * tui/tui-command.c: Likewise.
4817         * tui/tui-data.c: Likewise.
4818         * tui/tui-disasm.c: Likewise.
4819         * tui/tui-file.c: Likewise.
4820         * tui/tui-layout.c: Likewise.
4821         * tui/tui-out.c: Likewise.
4822         * tui/tui-regs.c: Likewise.
4823         * tui/tui-source.c: Likewise.
4824         * tui/tui-stack.c: Likewise.
4825         * tui/tui-win.c: Likewise.
4826         * tui/tui-windata.c: Likewise.
4827         * tui/tui-winsource.c: Likewise.
4828         * typeprint.c: Likewise.
4829         * ui-file.c: Likewise.
4830         * ui-out.c: Likewise.
4831         * user-regs.c: Likewise.
4832         * utils.c: Likewise.
4833         * v850-tdep.c: Likewise.
4834         * valarith.c: Likewise.
4835         * valops.c: Likewise.
4836         * valprint.c: Likewise.
4837         * value.c: Likewise.
4838         * varobj.c: Likewise.
4839         * vax-tdep.c: Likewise.
4840         * vaxnbsd-tdep.c: Likewise.
4841         * vaxobsd-tdep.c: Likewise.
4842         * windows-nat.c: Likewise.
4843         * xcoffread.c: Likewise.
4844         * xml-support.c: Likewise.
4845         * xstormy16-tdep.c: Likewise.
4846         * xtensa-linux-nat.c: Likewise.
4847
4848 2014-08-07  Gary Benson  <gbenson@redhat.com>
4849
4850         * common/common-defs.h: Include gdb_assert.h.
4851         * aarch64-tdep.c: Do not include gdb_assert.h.
4852         * addrmap.c: Likewise.
4853         * aix-thread.c: Likewise.
4854         * alpha-linux-tdep.c: Likewise.
4855         * alpha-mdebug-tdep.c: Likewise.
4856         * alphanbsd-tdep.c: Likewise.
4857         * amd64-nat.c: Likewise.
4858         * amd64-tdep.c: Likewise.
4859         * amd64bsd-nat.c: Likewise.
4860         * amd64fbsd-nat.c: Likewise.
4861         * amd64fbsd-tdep.c: Likewise.
4862         * amd64nbsd-nat.c: Likewise.
4863         * amd64nbsd-tdep.c: Likewise.
4864         * amd64obsd-nat.c: Likewise.
4865         * amd64obsd-tdep.c: Likewise.
4866         * arch-utils.c: Likewise.
4867         * arm-tdep.c: Likewise.
4868         * armbsd-tdep.c: Likewise.
4869         * auxv.c: Likewise.
4870         * bcache.c: Likewise.
4871         * bfin-tdep.c: Likewise.
4872         * blockframe.c: Likewise.
4873         * breakpoint.c: Likewise.
4874         * bsd-kvm.c: Likewise.
4875         * bsd-uthread.c: Likewise.
4876         * buildsym.c: Likewise.
4877         * c-exp.y: Likewise.
4878         * c-lang.c: Likewise.
4879         * charset.c: Likewise.
4880         * cleanups.c: Likewise.
4881         * cli-out.c: Likewise.
4882         * cli/cli-decode.c: Likewise.
4883         * cli/cli-dump.c: Likewise.
4884         * cli/cli-logging.c: Likewise.
4885         * cli/cli-script.c: Likewise.
4886         * cli/cli-utils.c: Likewise.
4887         * coffread.c: Likewise.
4888         * common/common-utils.c: Likewise.
4889         * common/queue.h: Likewise.
4890         * common/signals.c: Likewise.
4891         * common/vec.h: Likewise.
4892         * complaints.c: Likewise.
4893         * completer.c: Likewise.
4894         * corelow.c: Likewise.
4895         * cp-abi.c: Likewise.
4896         * cp-name-parser.y: Likewise.
4897         * cp-namespace.c: Likewise.
4898         * cp-support.c: Likewise.
4899         * cris-tdep.c: Likewise.
4900         * dbxread.c: Likewise.
4901         * dictionary.c: Likewise.
4902         * doublest.c: Likewise.
4903         * dsrec.c: Likewise.
4904         * dummy-frame.c: Likewise.
4905         * dwarf2-frame-tailcall.c: Likewise.
4906         * dwarf2-frame.c: Likewise.
4907         * dwarf2expr.c: Likewise.
4908         * dwarf2loc.c: Likewise.
4909         * dwarf2read.c: Likewise.
4910         * eval.c: Likewise.
4911         * event-loop.c: Likewise.
4912         * exceptions.c: Likewise.
4913         * expprint.c: Likewise.
4914         * f-valprint.c: Likewise.
4915         * fbsd-nat.c: Likewise.
4916         * findvar.c: Likewise.
4917         * frame-unwind.c: Likewise.
4918         * frame.c: Likewise.
4919         * frv-tdep.c: Likewise.
4920         * gcore.c: Likewise.
4921         * gdb-dlfcn.c: Likewise.
4922         * gdb_bfd.c: Likewise.
4923         * gdbarch.c: Likewise.
4924         * gdbarch.sh: Likewise.
4925         * gdbtypes.c: Likewise.
4926         * gnu-nat.c: Likewise.
4927         * gnu-v3-abi.c: Likewise.
4928         * go-lang.c: Likewise.
4929         * guile/scm-exception.c: Likewise.
4930         * guile/scm-gsmob.c: Likewise.
4931         * guile/scm-lazy-string.c: Likewise.
4932         * guile/scm-math.c: Likewise.
4933         * guile/scm-pretty-print.c: Likewise.
4934         * guile/scm-safe-call.c: Likewise.
4935         * guile/scm-utils.c: Likewise.
4936         * guile/scm-value.c: Likewise.
4937         * h8300-tdep.c: Likewise.
4938         * hppa-hpux-nat.c: Likewise.
4939         * hppa-tdep.c: Likewise.
4940         * hppanbsd-tdep.c: Likewise.
4941         * hppaobsd-tdep.c: Likewise.
4942         * i386-darwin-nat.c: Likewise.
4943         * i386-darwin-tdep.c: Likewise.
4944         * i386-nto-tdep.c: Likewise.
4945         * i386-tdep.c: Likewise.
4946         * i386bsd-nat.c: Likewise.
4947         * i386fbsd-tdep.c: Likewise.
4948         * i386gnu-nat.c: Likewise.
4949         * i386nbsd-tdep.c: Likewise.
4950         * i386obsd-tdep.c: Likewise.
4951         * i387-tdep.c: Likewise.
4952         * ia64-libunwind-tdep.c: Likewise.
4953         * ia64-tdep.c: Likewise.
4954         * inf-ptrace.c: Likewise.
4955         * inf-ttrace.c: Likewise.
4956         * infcall.c: Likewise.
4957         * infcmd.c: Likewise.
4958         * infrun.c: Likewise.
4959         * inline-frame.c: Likewise.
4960         * interps.c: Likewise.
4961         * jv-lang.c: Likewise.
4962         * jv-typeprint.c: Likewise.
4963         * linux-fork.c: Likewise.
4964         * linux-nat.c: Likewise.
4965         * linux-thread-db.c: Likewise.
4966         * m32c-tdep.c: Likewise.
4967         * m32r-linux-nat.c: Likewise.
4968         * m32r-tdep.c: Likewise.
4969         * m68k-tdep.c: Likewise.
4970         * m68kbsd-nat.c: Likewise.
4971         * m68kbsd-tdep.c: Likewise.
4972         * m88k-tdep.c: Likewise.
4973         * machoread.c: Likewise.
4974         * macroexp.c: Likewise.
4975         * macrotab.c: Likewise.
4976         * maint.c: Likewise.
4977         * mdebugread.c: Likewise.
4978         * memory-map.c: Likewise.
4979         * mep-tdep.c: Likewise.
4980         * mi/mi-common.c: Likewise.
4981         * microblaze-tdep.c: Likewise.
4982         * mingw-hdep.c: Likewise.
4983         * mips-linux-nat.c: Likewise.
4984         * mips-linux-tdep.c: Likewise.
4985         * mips-tdep.c: Likewise.
4986         * mips64obsd-tdep.c: Likewise.
4987         * mipsnbsd-tdep.c: Likewise.
4988         * mn10300-linux-tdep.c: Likewise.
4989         * mn10300-tdep.c: Likewise.
4990         * moxie-tdep.c: Likewise.
4991         * mt-tdep.c: Likewise.
4992         * nat/linux-btrace.c: Likewise.
4993         * nat/linux-osdata.c: Likewise.
4994         * nat/linux-ptrace.c: Likewise.
4995         * nat/mips-linux-watch.c: Likewise.
4996         * nios2-linux-tdep.c: Likewise.
4997         * nios2-tdep.c: Likewise.
4998         * objc-lang.c: Likewise.
4999         * objfiles.c: Likewise.
5000         * obsd-nat.c: Likewise.
5001         * opencl-lang.c: Likewise.
5002         * osabi.c: Likewise.
5003         * parse.c: Likewise.
5004         * ppc-linux-nat.c: Likewise.
5005         * ppc-sysv-tdep.c: Likewise.
5006         * ppcfbsd-nat.c: Likewise.
5007         * ppcfbsd-tdep.c: Likewise.
5008         * ppcnbsd-nat.c: Likewise.
5009         * ppcnbsd-tdep.c: Likewise.
5010         * ppcobsd-nat.c: Likewise.
5011         * ppcobsd-tdep.c: Likewise.
5012         * printcmd.c: Likewise.
5013         * procfs.c: Likewise.
5014         * prologue-value.c: Likewise.
5015         * psymtab.c: Likewise.
5016         * python/py-lazy-string.c: Likewise.
5017         * python/py-value.c: Likewise.
5018         * regcache.c: Likewise.
5019         * reggroups.c: Likewise.
5020         * registry.c: Likewise.
5021         * remote-sim.c: Likewise.
5022         * remote.c: Likewise.
5023         * rs6000-aix-tdep.c: Likewise.
5024         * rs6000-tdep.c: Likewise.
5025         * s390-linux-tdep.c: Likewise.
5026         * score-tdep.c: Likewise.
5027         * ser-base.c: Likewise.
5028         * ser-mingw.c: Likewise.
5029         * sh-tdep.c: Likewise.
5030         * sh64-tdep.c: Likewise.
5031         * solib-darwin.c: Likewise.
5032         * solib-spu.c: Likewise.
5033         * solib-svr4.c: Likewise.
5034         * source.c: Likewise.
5035         * sparc-nat.c: Likewise.
5036         * sparc-sol2-tdep.c: Likewise.
5037         * sparc-tdep.c: Likewise.
5038         * sparc64-sol2-tdep.c: Likewise.
5039         * sparc64-tdep.c: Likewise.
5040         * sparc64fbsd-tdep.c: Likewise.
5041         * sparc64nbsd-tdep.c: Likewise.
5042         * sparc64obsd-tdep.c: Likewise.
5043         * sparcnbsd-tdep.c: Likewise.
5044         * sparcobsd-tdep.c: Likewise.
5045         * spu-multiarch.c: Likewise.
5046         * spu-tdep.c: Likewise.
5047         * stabsread.c: Likewise.
5048         * stack.c: Likewise.
5049         * symfile.c: Likewise.
5050         * symtab.c: Likewise.
5051         * target-descriptions.c: Likewise.
5052         * target-memory.c: Likewise.
5053         * target.c: Likewise.
5054         * tic6x-linux-tdep.c: Likewise.
5055         * tic6x-tdep.c: Likewise.
5056         * tilegx-linux-nat.c: Likewise.
5057         * tilegx-tdep.c: Likewise.
5058         * top.c: Likewise.
5059         * tramp-frame.c: Likewise.
5060         * tui/tui-out.c: Likewise.
5061         * tui/tui-winsource.c: Likewise.
5062         * ui-out.c: Likewise.
5063         * user-regs.c: Likewise.
5064         * utils.c: Likewise.
5065         * v850-tdep.c: Likewise.
5066         * valops.c: Likewise.
5067         * value.c: Likewise.
5068         * varobj.c: Likewise.
5069         * vax-nat.c: Likewise.
5070         * xml-syscall.c: Likewise.
5071         * xml-tdesc.c: Likewise.
5072         * xstormy16-tdep.c: Likewise.
5073         * xtensa-linux-nat.c: Likewise.
5074         * xtensa-tdep.c: Likewise.
5075
5076 2014-08-07  Gary Benson  <gbenson@redhat.com>
5077
5078         * common/common-defs.h: Include common-utils.h.
5079         * defs.h: Do not include common-utils.h.
5080         * common/gdb_assert.h: Likewise.
5081         * darwin-nat.h: Likewise.
5082         * nat/linux-btrace.c: Likewise.
5083         * target/waitstatus.h: Likewise.
5084
5085 2014-08-07  Gary Benson  <gbenson@redhat.com>
5086
5087         * common/common-defs.h: Include ptid.h.
5088         * defs.h: Do not include ptid.h.
5089         * inferior.h: Likewise.
5090         * infrun.h: Likewise.
5091         * nat/linux-btrace.h: Likewise.
5092         * nat/linux-osdata.h: Likewise.
5093         * target/waitstatus.h: Likewise.
5094
5095 2014-08-07  Gary Benson  <gbenson@redhat.com>
5096
5097         * common/common-defs.h: Include gdb_locale.h.
5098         * defs.h: Do not include gdb_locale.h.
5099
5100 2014-08-07  Gary Benson  <gbenson@redhat.com>
5101
5102         * common/common-defs.h: Include gdb/signals.h.
5103         * defs.h: Do not include gdb/signals.h.
5104
5105 2014-08-07  Gary Benson  <gbenson@redhat.com>
5106
5107         * common/common-defs.h: Include pathmax.h.
5108         * defs.h: Do not include pathmax.h.
5109
5110 2014-08-07  Gary Benson  <gbenson@redhat.com>
5111
5112         * common/common-defs.h: Include libiberty.h.
5113         * defs.h: Do not include libiberty.h.
5114         * common/queue.h: Likewise.
5115         * cp-name-parser.y: Likewise.
5116         * mi/mi-cmd-catch.c: Likewise.
5117         * python/python.c: Likewise.
5118
5119 2014-08-07  Gary Benson  <gbenson@redhat.com>
5120
5121         * common/common-defs.h: Include ansidecl.h.
5122         * defs.h: Do not include ansidecl.h.
5123         * common/buffer.h: Likewise.
5124         * common/common-utils.h: Likewise.
5125
5126 2014-08-07  Gary Benson  <gbenson@redhat.com>
5127
5128         * common/common-defs.h: Include stddef.h.
5129         * defs.h: Do not include stddef.h.
5130         * common/common-utils.h: Likewise.
5131         * amd64fbsd-nat.c: Likewise.
5132         * bcache.c: Likewise.
5133         * charset.c: Likewise.
5134         * common/buffer.h: Likewise.
5135         * common/vec.h: Likewise.
5136         * i386bsd-nat.c: Likewise.
5137         * nat/linux-btrace.h: Likewise.
5138         * ppcfbsd-nat.c: Likewise.
5139         * ppcnbsd-tdep.h: Likewise.
5140         * ppcobsd-nat.c: Likewise.
5141         * ppcobsd-tdep.h: Likewise.
5142         * python/py-gdb-readline.c: Likewise.
5143
5144 2014-08-07  Gary Benson  <gbenson@redhat.com>
5145
5146         * common/common-defs.h: Include stdarg.h.
5147         * defs.h: Do not include stdarg.h.
5148         * ada-lang.c: Likewise.
5149         * common/common-utils.h: Likewise.
5150         * guile/scm-string.c: Likewise.
5151         * guile/scm-utils.c: Likewise.
5152         * m32c-tdep.c: Likewise.
5153
5154 2014-08-07  Gary Benson  <gbenson@redhat.com>
5155
5156         * common/common-defs.h: Include stdlib.h.
5157         * defs.h: Do not include stdlib.h.
5158         * addrmap.c: Likewise.
5159         * bcache.c: Likewise.
5160         * common/buffer.c: Likewise.
5161         * common/common-utils.c: Likewise.
5162         * cp-name-parser.y: Likewise.
5163         * go32-nat.c: Likewise.
5164         * mn10300-linux-tdep.c: Likewise.
5165         * nat/linux-osdata.c: Likewise.
5166         * tui/tui.c: Likewise.
5167         * windows-nat.c: Likewise.
5168
5169 2014-08-07  Gary Benson  <gbenson@redhat.com>
5170
5171         * common/common-defs.h: Include stdio.h.
5172         * defs.h: Do not include stdio.h.
5173         * ada-lang.c: Likewise.
5174         * common/buffer.c: Likewise.
5175         * common/common-utils.c: Likewise.
5176         * cp-name-parser.y: Likewise.
5177         * gnu-nat.c: Likewise.
5178         * go32-nat.c: Likewise.
5179         * i386gnu-nat.c: Likewise.
5180         * proc-api.c: Likewise.
5181         * proc-events.c: Likewise.
5182         * proc-flags.c: Likewise.
5183         * proc-why.c: Likewise.
5184         * python/python-internal.h: Likewise.
5185         * target-memory.c: Likewise.
5186         * tui/tui-io.c: Likewise.
5187         * tui/tui.c: Likewise.
5188
5189 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5190
5191         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5192         (scan_dyntag_auxv): Same.
5193
5194 2014-08-06  Yao Qi  <yao@codesourcery.com>
5195
5196         * amd64-linux-nat.c: Remove duplicated include
5197         "x86-linux-nat.h".
5198         * i386-linux-nat.c: Likewise.
5199
5200 2014-08-06  Yao Qi  <yao@codesourcery.com>
5201
5202         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5203         operand" with "Special opcode" in comments.
5204
5205 2014-08-05  Gary Benson  <gbenson@redhat.com>
5206
5207         * interps.c (initialize_interps): Remove prototype.
5208         (interpreter_initialized): Remove static global.
5209         (interp_add): Do not call initialize_interps.
5210         (initialize_interps): Remove function.
5211
5212 2014-08-05  Gary Benson  <gbenson@redhat.com>
5213
5214         * utils.c (vwarning): Remove spurious va_end.
5215
5216 2014-08-05  Alan Modra  <amodra@gmail.com>
5217
5218         * charset.c (convert_between_encodings): Cast result of obstack_base.
5219         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5220         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5221         (read_unwind_info): Use size_t for some locals.
5222         * jit.c (finalize_symtab): Likewise.
5223         * utils.c (hashtab_obstack_allocate): Likewise.
5224         * symmisc.c (print_objfile_statistics): Update format strings.
5225
5226 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5227
5228         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5229         (Changes in GDB 7.8): ... here.
5230
5231 2014-08-04  Tom Tromey  <tromey@redhat.com>
5232
5233         * target.c (set_targetdebug): New function.
5234         (initialize_targets): Pass set_targetdebug when creating "set
5235         debug target".
5236
5237 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
5238
5239         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5240         if detecting a variable-sized field that is not the last field.
5241         Fix struct type length computation.
5242
5243 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
5244
5245         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5246         Add debug trace.
5247
5248 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
5249
5250         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5251         Remove "+ 8" offset in computation of CHAIN_VMA.
5252
5253 2014-07-31  Doug Evans  <dje@google.com>
5254
5255         * inflow.c (child_terminal_inferior): Add comment.
5256         (child_terminal_ours_for_output): Add comment.
5257         (child_terminal_ours): Add comment.
5258         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5259         (linux_nat_terminal_ours): Add comment.
5260
5261 2014-07-31  Gary Benson  <gbenson@redhat.com>
5262
5263         * common/btrace-common.h: Do not include defs.h or server.h.
5264         * nat/mips-linux-watch.h: Likewise.
5265         * gdb-dlfcn.h: Do not include defs.h.
5266         * tracefile.h: Likewise.
5267
5268 2014-07-30  Roland McGrath  <mcgrathr@google.com>
5269
5270         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5271
5272 2014-07-30  Tom Tromey  <tromey@redhat.com>
5273
5274         * bsd-kvm.c (bsd_kvm_open): Constify.
5275         * corelow.c (core_open): Constify.
5276         * ctf.c (ctf_open): Constify.
5277         * dbug-rom.c (dbug_open): Constify.
5278         * exec.c (exec_open): Constify.
5279         * m32r-rom.c (m32r_open, mon2000_open): Constify.
5280         * microblaze-rom.c (picobug_open): Constify.
5281         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5282         Constify.
5283         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5284         * record-btrace.c (record_btrace_open): Constify.
5285         * record-full.c (record_full_core_open_1, record_full_open_1)
5286         (record_full_open): Constify.
5287         * remote-m32r-sdi.c (m32r_open): Constify.
5288         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5289         (rockhopper_open, lsi_open): Constify.
5290         * remote-sim.c (gdbsim_open): Constify.
5291         * remote.c (remote_open, extended_remote_open, remote_open_1):
5292         Constify.
5293         * target.h (struct target_ops) <to_open>: Make "arg" const.
5294         * tracefile-tfile.c (tfile_open): Constify.
5295
5296 2014-07-30  Tom Tromey  <tromey@redhat.com>
5297
5298         * breakpoint.c (map_breakpoint_numbers): Update.
5299         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
5300         (get_number_const): New function.
5301         (get_number): Rewrite using get_number_const.
5302         (init_number_or_range): Make "string" const.
5303         (number_is_in_list): Make "list" const.
5304         * cli/cli-utils.h (get_number_const): Declare.
5305         (struct get_number_or_range_state) <string, end_ptr>: Now const.
5306         (init_number_or_range, number_is_in_list): Update.
5307         * printcmd.c (map_display_numbers): Update.
5308         * value.c (value_from_history_ref): Constify.
5309         * value.h (value_from_history_ref): Update.
5310
5311 2014-07-30  Tom Tromey  <tromey@redhat.com>
5312
5313         * corefile.c (hook_type, call_extra_exec_file_hooks)
5314         (specify_exec_file_hook): Constify.
5315         * exec.c (exec_file_attach): Make "filename" const.
5316         * gdbcore.h (deprecated_exec_file_display_hook)
5317         (specify_exec_file_hook, exec_file_attach): Constify.
5318         * main.c (captured_main): Use catch_command_errors_const.
5319
5320 2014-07-30  Tom Tromey  <tromey@redhat.com>
5321
5322         * target.c (open_target): New function.
5323         (add_target_with_completer, add_deprecated_target_alias): Use
5324         set_cmd_sfunc, set_cmd_context.
5325         (debug_to_open): Remove.
5326         (setup_target_debug): Update.
5327
5328 2014-07-30  Yao Qi  <yao@codesourcery.com>
5329
5330         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5331         comments.
5332         * parse.c (exp_iterate): Update comments.
5333
5334 2014-07-30  Gary Benson  <gbenson@redhat.com>
5335
5336         * common/common-defs.h: New file.
5337         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5338         * defs.h: Include common-defs.h.
5339         Do not include config.h or build-gnulib/config.h.
5340
5341 2014-07-30  Gary Benson  <gbenson@redhat.com>
5342
5343         * common/common-utils.h: Do not include config.h.
5344         * nat/linux-btrace.h: Likewise.
5345
5346 2014-07-30  Gary Benson  <gbenson@redhat.com>
5347
5348         * btrace.c: Include defs.h.
5349         * common/ptid.c: Include defs.h or server.h as appropriate.
5350         * nat/mips-linux-watch.c: Likewise.
5351
5352 2014-07-29  Tom Tromey  <tromey@redhat.com>
5353
5354         * target.c (target_is_pushed): Simplify.
5355
5356 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
5357
5358         GDB 7.8 released.
5359
5360 2014-07-29  Yao Qi  <yao@codesourcery.com>
5361
5362         PR gdb/17206
5363         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5364
5365 2014-07-28  Doug Evans  <xdje42@gmail.com>
5366
5367         PR guile/17203
5368         * guile/scm-param.c (pascm_parameter_defined_p): New function.
5369         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
5370         parameters.
5371
5372 2014-07-28  Will Newton  <will.newton@linaro.org>
5373
5374         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5375         (THUMB2_SET_R7_SIGRETURN2): Likewise.
5376         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5377         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5378         (THUMB2_EABI_SYSCALL): Likewise.
5379         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5380         struct tramp_frame.
5381         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5382         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5383
5384 2014-07-27  Doug Evans  <xdje42@gmail.com>
5385
5386         * guile/scm-param.c (pascm_print_param_smob): Fix output.
5387
5388 2014-07-27  Doug Evans  <xdje42@gmail.com>
5389
5390         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5391
5392 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
5393             Doug Evans  <xdje42@gmail.com>
5394
5395         PR guile/17146
5396         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5397         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5398         * configure.ac: Try to use guild to compile an scm file, if it fails
5399         then disable guile support.
5400         * configure: Regenerate.
5401         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5402         GUILE_FILE_LIST.
5403         (GUILE_COMPILED_FILES): New variable.
5404         (GUILE_FILES) Update.
5405         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5406         (stamp-guile): Compile scm files.
5407         * guile/guile.c (boot_guile_support): New function.
5408         (standard_throw_args_p): New function.
5409         (print_standard_throw_error, print_throw_error): New functions.
5410         (handle_boot_error): New function.
5411         (initialize_scheme_side): Rewrite to call boot_guile_support.
5412         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
5413         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5414
5415 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
5416             Doug Evans  <xdje42@gmail.com>
5417
5418         PR guile/17146
5419         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5420         * guile/lib/gdb/support.scm: New file.
5421         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5422         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5423         All uses updated.
5424         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5425         All uses updated.
5426         (%assert-type): Ditto, and renamed to assert-type.
5427         (%exception-print-style): Delete.
5428
5429 2014-07-26  Doug Evans  <xdje42@gmail.com>
5430
5431         PR build/17105
5432         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5433         * configure: Regenerate.
5434         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5435         PYTHON_FILES.
5436         (PYTHON_FILES): New variable.
5437         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5438         (GUILE_FILES): New variable.
5439         (stamp-python, install-python, uninstall-python): Handle empty
5440         file list.
5441         (stamp-guile, install-guile, uninstall-guile): Ditto.
5442
5443 2014-07-26  Doug Evans  <xdje42@gmail.com>
5444
5445         PR guile/17177
5446         * guile/lib/gdb.scm (pretty-printers): Export.
5447         (set-pretty-printers!): Export.
5448         * guile/lib/gdb/printing.scm (gdb module): Update.
5449         (prepend-pretty-printer!, append-pretty-printer!): Update.
5450         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5451         (pretty_printer_list_var): Delete.
5452         (pretty_printer_list): New static global.
5453         (gdbscm_pretty_printers): New function.
5454         (gdbscm_set_pretty_printers_x): New function.
5455         (ppscm_find_pretty_printer_from_gdb): Update.
5456         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5457         (gdbscm_initialize_pretty_printers): Update.
5458
5459 2014-07-26  Doug Evans  <xdje42@gmail.com>
5460
5461         PR 17185
5462         * configure.ac: Add check for header gc/gc.h.
5463         Add check for function setenv.
5464         * configure: Regenerate.
5465         * config.in: Regenerate.
5466         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5467
5468 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
5469
5470         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5471         variation in gdbarch matching.
5472
5473 2014-07-25  Tom Tromey  <tromey@redhat.com>
5474
5475         * exec.c (using_exec_ops): Remove.
5476         (exec_close_1): Update.  Remove extraneous block, reindent.
5477         (add_target_sections): Use target_is_pushed.
5478
5479 2014-07-25  Pedro Alves  <palves@redhat.com>
5480
5481         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5482         * monitor.c (monitor_create_inferior): Likewise.
5483         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5484         * remote-sim.c (gdbsim_create_inferior): Likewise.
5485         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5486         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5487         * windows-nat.c (do_initial_windows_stuff): Likewise.
5488
5489 2014-07-25  Pedro Alves  <palves@redhat.com>
5490
5491         * NEWS: Mention signal passing and "signal" command changes.
5492         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5493         comment.
5494         * breakpoint.c (until_break_command): Adjust clear_proceed_status
5495         call.
5496         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5497         * infcmd.c (proceed_thread_callback, continue_1, step_once)
5498         (jump_command): Adjust clear_proceed_status call.
5499         (signal_command): Warn if other thread that are resumed have
5500         signals that will be delivered.  Adjust clear_proceed_status call.
5501         (until_next_command, finish_command)
5502         (proceed_after_attach_callback, attach_command_post_wait)
5503         (attach_command): Adjust clear_proceed_status call.
5504         * infrun.c (proceed_after_vfork_done): Likewise.
5505         (proceed_after_attach_callback): Adjust comment.
5506         (clear_proceed_status_thread): Clear stop_signal if not in pass
5507         state.
5508         (clear_proceed_status_callback): Delete.
5509         (clear_proceed_status): New 'step' parameter.  Only clear the
5510         proceed status of threads the command being prepared is about to
5511         resume.
5512         (proceed): If passed in an explicit signal, override stop_signal
5513         with it.  Don't pass the last stop signal to the thread we're
5514         resuming.
5515         (init_wait_for_inferior): Adjust clear_proceed_status call.
5516         (switch_back_to_stepped_thread): Clear the signal if it should not
5517         be passed.
5518         * infrun.h (clear_proceed_status): New 'step' parameter.
5519         (user_visible_resume_ptid): Add comment.
5520         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5521         signal is in pass state.
5522         * remote.c (append_pending_thread_resumptions): Likewise.
5523         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5524
5525 2014-07-25  Tom Tromey  <tromey@redhat.com>
5526
5527         * target.h (target_stopped_data_address)
5528         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
5529         parentheses.
5530
5531 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
5532
5533         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5534         comments.
5535         (avr_pointer_to_address): Likewise.
5536
5537 2014-07-24  Tom Tromey  <tromey@redhat.com>
5538
5539         * monitor.c (compile_pattern): Update.
5540         * target.h (struct target_ops) <to_shortname, to_longname,
5541         to_doc>: Now const.
5542
5543 2014-07-24  Tom Tromey  <tromey@redhat.com>
5544
5545         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5546         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5547         (add_info_alias, add_com): Make "doc" const.
5548         (print_doc_line): Make "str" const.
5549         (delete_cmd): Update.
5550         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5551         (print_doc_line): Update.
5552         * cli/cli-script.c (document_command): Update.
5553         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5554         (add_com, add_info, add_info_alias): Update.
5555         * guile/scm-cmd.c (cmdscm_destroyer): Update.
5556         * python/py-cmd.c (cmdpy_destroyer): Update.
5557
5558 2014-07-24  Tom Tromey  <tromey@redhat.com>
5559
5560         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5561         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5562         (help_cmd_list): Constify.
5563         (lookup_cmd): Update.
5564         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5565         const.
5566         (help_cmd_list, apropos_cmd): Update.
5567         * cli/cli-script.c (show_user): Update.
5568         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5569         * cli/cli-setshow.h (cmd_show_list): Update.
5570         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5571         (cmd_show_list): Update.
5572         * guile/scm-cmd.c (cmdscm_destroyer): Update.
5573         * python/py-cmd.c (cmdpy_destroyer): Update.
5574
5575 2014-07-24  Tom Tromey  <tromey@redhat.com>
5576
5577         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5578         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5579         const.
5580         * command.h (deprecate_cmd): Update.
5581         * maint.c (maintenance_do_deprecate): Add casts.
5582
5583 2014-07-24  Tom Tromey  <tromey@redhat.com>
5584
5585         * cli/cli-decode.c (help_cmd): Make parameter "const".
5586         * cli/cli-decode.h (help_cmd): Update.
5587
5588 2014-07-24  Tom Tromey  <tromey@redhat.com>
5589
5590         * stack.c (up_silently_base, down_silently_base): Make argument
5591         const.
5592
5593 2014-07-24  Tom Tromey  <tromey@redhat.com>
5594
5595         * solib.c (solib_add): Make "pattern" const.
5596         * solib.h (solib_add): Update.
5597
5598 2014-07-24  Tom Tromey  <tromey@redhat.com>
5599
5600         * remote.c (remote_serial_open, print_packet, putpkt)
5601         (putpkt_binary): Constify.
5602         * remote.h (putpkt): Update.
5603
5604 2014-07-24  Tom Tromey  <tromey@redhat.com>
5605
5606         * monitor.c (monitor_open): Make "args" const.
5607         * monitor.h (monitor_open): Update.
5608
5609 2014-07-24  Tom Tromey  <tromey@redhat.com>
5610
5611         * maint.c (match_bfd_flags): Make "string" const.
5612         (print_bfd_section_info): Remove casts.
5613         (print_objfile_section_info): Make "string" const.
5614
5615 2014-07-24  Tom Tromey  <tromey@redhat.com>
5616
5617         * inf-child.c (inf_child_open_target): Make "arg" const.
5618         * inf-child.h (inf_child_open_target): Update.
5619
5620 2014-07-24  Tom Tromey  <tromey@redhat.com>
5621
5622         * environ.c (unset_in_environ): Make "var" const.
5623         * environ.h (unset_in_environ): Update.
5624
5625 2014-07-24  Tom Tromey  <tromey@redhat.com>
5626
5627         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5628         Make "cmd" const.
5629         (scan_filename_with_cleanup): Likewise.
5630         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5631         Make arguments const.
5632         (restore_command): Update.
5633
5634 2014-07-24  Pedro Alves  <palves@redhat.com>
5635
5636         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5637
5638 2014-07-24  Tom Tromey  <tromey@redhat.com>
5639             Gary Benson  <gbenson@redhat.com>
5640
5641         * nat/linux-ptrace.c (additional_flags): New global.
5642         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5643         additional_flags; don't check GDBSERVER.
5644         (linux_ptrace_set_additional_flags): New function.
5645         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5646         Declare.
5647         * linux-nat.c (_initialize_linux_nat): Call
5648         linux_ptrace_set_additional_flags.
5649
5650 2014-07-24  Tom Tromey  <tromey@redhat.com>
5651
5652         * make-target-delegates (munge_type, write_debugmethod): New
5653         functions.
5654         (debug_names): New global.
5655         ($TARGET_DEBUG_PRINTER): New global.
5656         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5657         name.
5658         Write debug methods.  Generate init_debug_target.
5659         * target-debug.h: New file.
5660         * target-delegates.c: Rebuild.
5661         * target.c: Include target-debug.h.
5662         (debug_target): Hoist definition.
5663         (target_kill, target_get_section_table, target_memory_map)
5664         (target_flash_erase, target_flash_done, target_detach)
5665         (target_disconnect, target_wait, target_resume)
5666         (target_pass_signals, target_program_signals, target_follow_fork)
5667         (target_mourn_inferior, target_search_memory)
5668         (target_thread_address_space, target_close)
5669         (target_find_new_threads, target_core_of_thread)
5670         (target_verify_memory, target_insert_mask_watchpoint)
5671         (target_remove_mask_watchpoint): Remove targetdebug code.
5672         (debug_to_post_attach, debug_to_prepare_to_store)
5673         (debug_to_files_info, debug_to_insert_breakpoint)
5674         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5675         (debug_to_region_ok_for_hw_watchpoint)
5676         (debug_to_can_accel_watchpoint_condition)
5677         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5678         (debug_to_watchpoint_addr_within_range)
5679         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5680         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5681         (debug_to_terminal_init, debug_to_terminal_inferior)
5682         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5683         (debug_to_terminal_save_ours, debug_to_terminal_info)
5684         (debug_to_load, debug_to_post_startup_inferior)
5685         (debug_to_insert_fork_catchpoint)
5686         (debug_to_remove_fork_catchpoint)
5687         (debug_to_insert_vfork_catchpoint)
5688         (debug_to_remove_vfork_catchpoint)
5689         (debug_to_insert_exec_catchpoint)
5690         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5691         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5692         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5693         (setup_target_debug): Call init_debug_target.
5694         * target.h (TARGET_DEBUG_PRINTER): New macro.
5695         (struct target_ops) <to_resume, to_wait, to_pass_signals,
5696         to_program_signals>: Use TARGET_DEBUG_PRINTER.
5697
5698 2014-07-24  Gary Benson  <gbenson@redhat.com>
5699
5700         * exceptions.h (throw_vfatal): Renamed to...
5701         (throw_vquit): New declaration.
5702         (throw_quit): Likewise.
5703         * exceptions.c (throw_vfatal): Renamed to...
5704         (throw_vquit): New function.
5705         (throw_quit): Likewise.
5706         (throw_error): Call throw_verror rather than throw_it.
5707         * utils.h (vfatal): Removed.
5708         (fatal): Likewise.
5709         * utils.c (vfatal): Removed.
5710         (fatal): Likewise.
5711         (internal_verror): Replaced call to fatal with call to throw_quit.
5712         (quit): Replaced calls to fatal with calls to throw_quit.
5713
5714 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
5715
5716         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5717         target_read_code.
5718
5719 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
5720
5721         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5722         less than zero in conditional expression.
5723
5724 2014-07-23  Tom Tromey  <tromey@redhat.com>
5725
5726         * make-target-delegates ($ARGS_PART): Match trailing close paren.
5727         ($INTRO_PART): Don't match whitespace.
5728         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
5729         argument matching.
5730         ($METHOD): Add $METHOD_TRAILER.
5731         (trim): Rewrite.
5732         (scan_target_h): New sub.
5733         Change main loop not to collect state.
5734         * target-delegates.c: Rebuild.
5735
5736 2014-07-23  Gary Benson  <gbenson@redhat.com>
5737
5738         * cp-support.c (gdb_demangle): Fix build on systems without
5739         sigaltstack.
5740
5741 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
5742
5743         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5744         for reference entry value target data value.
5745
5746 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
5747
5748         * stack.c (read_frame_arg): Verify value_optimized_out before calling
5749         value_available_contents_eq.
5750
5751 2014-07-22  Pedro Alves  <palves@redhat.com>
5752
5753         * value.c (allocate_optimized_out_value): Don't mark value as
5754         non-lazy.
5755
5756 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
5757
5758         * MAINTAINERS (Write After Approval): Update my email address.
5759
5760 2014-07-20  Doug Evans  <dje@google.com>
5761
5762         PR server/17147
5763         * remote.c (putpkt_binary): Add text to error message.
5764
5765 2014-07-20  Yao Qi  <yao@codesourcery.com>
5766
5767         * eval.c: Remove "Chill" from comments.
5768         * gdbtypes.h: Likewise.
5769         * symtab.h: Likewise.
5770
5771 2014-07-20  Yao Qi  <yao@codesourcery.com>
5772
5773         * std-operator.def: Update comments to TERNOP_SLICE.
5774
5775 2014-07-20  Yao Qi  <yao@codesourcery.com>
5776
5777         * std-operator.def: Remove BINOP_RANGE.
5778         * breakpoint.c (watchpoint_exp_is_const): Update.
5779         * expprint.c (dump_subexp_body_standard): Likewise.
5780         * eval.c (init_array_element): Remove dead code.
5781         (evaluate_subexp_standard): Likewise.
5782
5783 2014-07-20  Yao Qi  <yao@codesourcery.com>
5784
5785         * std-operator.def: Remove BINOP_IN.
5786         * breakpoint.c (watchpoint_exp_is_const): Update.
5787         * eval.c (evaluate_subexp_standard): Likewise.
5788         * expprint.c (dump_subexp_body_standard): Likewise.
5789
5790 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
5791
5792         * microblaze-tdep.c (microblaze_register_names): Add
5793         the rshr and rslr register names.
5794         (microblaze_gdbarch_init): Use of tdesc_has_registers.
5795         Use of tdesc_find_feature. Use of tdesc_data_alloc.
5796         Use of tdesc_numbered_register. Use of
5797         microblaze_register_g_packet_guesses. Use of
5798         tdesc_use_registers. Use of set_gdbarch_register_type.
5799         (microblaze_register_g_packet_guesses): New.
5800         * microblaze-tdep.h (microblaze_reg_num): Add
5801         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5802         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5803         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5804         * features/microblaze-core.xml: New file.
5805         * features/microblaze-stack-protect.xml: New file.
5806         * features/microblaze-with-stack-protect.c: New file.
5807         * features/microblaze-with-stack-protect.xml: New file.
5808         * features/microblaze.xml: New file.
5809         * features/microblaze.c: New file.
5810         * features/Makefile (microblaze-with-stack-protect): Add
5811         microblaze-with-stack-protect microblaze and microblaze-expedite.
5812         * regformats/microblaze-with-stack-protect.dat: New file.
5813         * regformats/microblaze.dat: New file.
5814         * doc/gdb.texinfo (MicroBlaze Features): Added.
5815
5816 2014-07-18  Tom Tromey  <tromey@redhat.com>
5817
5818         * exec.c (exec_ops): Now static.
5819         * exec.h (exec_ops): Don't declare.
5820
5821 2014-07-18  Tom Tromey  <tromey@redhat.com>
5822
5823         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5824         to find_target_beneath.
5825         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5826         find_target_beneath.
5827         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5828
5829 2014-07-18  Tom Tromey  <tromey@redhat.com>
5830
5831         PR gdb/17130:
5832         * utils.c (quit): Use target_supports_terminal_ours.
5833         * target.h (target_supports_terminal_ours): Declare.
5834         * target.c (target_supports_delete_record): Don't check
5835         to_delete_record against NULL.
5836         (target_supports_terminal_ours): New function.
5837
5838 2014-07-18  Tom Tromey  <tromey@redhat.com>
5839
5840         PR gdb/17130:
5841         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5842         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5843         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5844         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5845         * windows-nat.c (windows_xfer_partial): Always delegate.
5846         * record-btrace.c (record_btrace_xfer_partial): Simplify
5847         delegation.
5848         (record_btrace_fetch_registers, record_btrace_store_registers)
5849         (record_btrace_prepare_to_store, record_btrace_resume)
5850         (record_btrace_wait, record_btrace_find_new_threads)
5851         (record_btrace_thread_alive): Likewise.
5852         * procfs.c (procfs_xfer_partial): Always delegate.
5853         * corelow.c (core_xfer_partial): Always delegate.
5854         * sol-thread.c (sol_find_new_threads): Simplify delegation.
5855
5856 2014-07-18  Tom Tromey  <tromey@redhat.com>
5857
5858         * exec.c (exec_make_note_section): Move earlier.
5859
5860 2014-07-17  Doug Evans  <dje@google.com>
5861
5862         PR gdb/17170
5863         * maint.c (count_symtabs_and_blocks): Handle NULL
5864         current_program_space.
5865         (report_command_stats): Check global enabled flag in addition to
5866         recorded enabled flag.
5867         (make_command_stats_cleanup): Handle msg_type == 0, startup.
5868
5869 2014-07-16  Pedro Alves  <palves@redhat.com>
5870
5871         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5872
5873 2014-07-16  Tom Tromey  <tromey@redhat.com>
5874
5875         * target.h (struct target_ops) <to_delete_record>: Reformat
5876         comment.
5877
5878 2014-07-16  Tom Tromey  <tromey@redhat.com>
5879
5880         * target-delegates.c: Rebuild.
5881
5882 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
5883
5884         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5885         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5886         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5887         (avr_pointer_to_address): Likewise.
5888         (avr_address_class_type_flags): New function.
5889         (avr_address_class_type_flags_to_name): Likewise.
5890         (avr_address_class_name_to_type_flags): Likewise.
5891         (avr_gdbarch_init): Set address_class_type_flags,
5892         address_class_type_flags_to_name and
5893         address_class_name_to_type_flags.
5894
5895 2014-07-15  Pedro Alves  <palves@redhat.com>
5896
5897         * linux-nat.c (kill_callback): Save errno and work with saved
5898         copy.
5899
5900 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
5901
5902         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5903
5904 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
5905
5906         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5907         breakpoint support correctly.
5908
5909 2014-07-14  Pedro Alves  <palves@redhat.com>
5910
5911         * utils.c (prompt_for_continue): Call target_terminal_ours.
5912
5913 2014-07-14  Pedro Alves  <palves@redhat.com>
5914
5915         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5916         catch_errors.  Don't re-enable stdin or notify observers where,
5917         and rethrow error.
5918         (fetch_inferior_event_wrapper): Delete.
5919
5920 2014-07-14  Pedro Alves  <palves@redhat.com>
5921
5922         PR gdb/17072
5923         * top.c: Include "inf-loop.h".
5924         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5925         field.
5926         (gdb_readline_wrapper_cleanup): Make the target async again, if it
5927         was async before.
5928         (gdb_readline_wrapper): Store whether the target is async, and
5929         make it sync.
5930
5931 2014-07-14  Pedro Alves  <palves@redhat.com>
5932
5933         PR gdb/17072
5934         * top.c (gdb_readline_wrapper_line): Tweak comment.
5935         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5936         the input handler callback.
5937
5938 2014-07-14  Pedro Alves  <palves@redhat.com>
5939
5940         PR gdb/17072
5941         * main.c: Include event-top.h.
5942         (handle_command_errors): New function.
5943         (catch_command_errors, catch_command_errors_const): Use it.
5944
5945 2014-07-14  Pedro Alves  <palves@redhat.com>
5946
5947         * exceptions.c (catch_command_errors, catch_command_errors_const):
5948         Moved to main.c.
5949         * exceptions.h (catch_command_errors_ftype)
5950         (catch_command_errors_const_ftype): Moved to main.c.
5951         (catch_command_errors, catch_command_errors_const): Delete
5952         declarations.
5953         * main.c (catch_command_errors_ftype)
5954         (catch_command_errors_const_ftype): Moved here from exceptions.h.
5955         (catch_command_errors, catch_command_errors_const)): Moved here
5956         from exceptions.c and make static.
5957
5958 2014-07-14  Pedro Alves  <palves@redhat.com>
5959
5960         * exceptions.c (print_any_exception): Delete.
5961         (catch_exceptions_with_msg): Use exception_print instead of
5962         print_any_exception.
5963         (catch_errors): Use exception_fprintf instead of
5964         print_any_exception.
5965         (catch_command_errors, catch_command_errors_const): Use
5966         exception_print instead of print_any_exception.
5967
5968 2014-07-14  Pedro Alves  <palves@redhat.com>
5969
5970         * infcall.c (run_inferior_call): Set 'sync_execution' while
5971         running the inferior call.
5972
5973 2014-07-14  Pedro Alves  <palves@redhat.com>
5974
5975         * value.c (value_contents_equal): Delete function.
5976         * value.h (value_contents_equal): Delete declaration.
5977
5978 2014-07-14  Tom Tromey  <tromey@redhat.com>
5979
5980         PR exp/17106:
5981         * gdbtypes.c (is_dynamic_type_internal): New function, from
5982         is_dynamic_type.
5983         (is_dynamic_type): Rewrite.
5984         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5985         (resolve_dynamic_struct): Likewise.
5986         (resolve_dynamic_type_internal): New function, from
5987         resolve_dynamic_type.
5988         (resolve_dynamic_type): Rewrite.
5989
5990 2014-07-14  Tom Tromey  <tromey@redhat.com>
5991
5992         * target.c (target_require_runnable): Also check record_stratum.
5993         Update comment.
5994
5995 2014-07-11  Yao Qi  <yao@codesourcery.com>
5996
5997         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5998         thumb_instruction_restores_sp return true.
5999
6000 2014-07-11  Yao Qi  <yao@codesourcery.com>
6001
6002         * arm-tdep.c (thumb_instruction_restores_sp): New function.
6003         (thumb_in_function_epilogue_p): Call
6004         thumb_instruction_restores_sp.
6005
6006 2014-07-11  Yao Qi  <yao@codesourcery.com>
6007
6008         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6009         'add sp, #imm'.
6010         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6011
6012 2014-07-11  Gary Benson  <gbenson@redhat.com>
6013
6014         * amd64-linux-nat.c (gdbcore.h): Remove include.
6015         (regset.h): Likewise.
6016         (nat/linux-btrace.h): Likewise.
6017         (btrace.h): Likewise.
6018         (gdb_assert.h): Likewise.
6019         (string.h): Likewise.
6020         (sys/uio.h): Likewise.
6021         (sys/debugreg.h): Likewise.
6022         (sys/syscall.h): Likewise.
6023         (sys/procfs.h): Likewise.
6024         (sys/user.h): Likewise.
6025         (asm/ptrace.h): Likewise.
6026         (i386-nat.h): Likewise.
6027         * i386-linux-nat.c (i386-nat.h): Likewise.
6028         (regset.h): Likewise.
6029         (target.h): Likewise.
6030         (linux-nat.h): Likewise.
6031         (nat/linux-btrace.h): Likewise.
6032         (btrace.h): Likewise.
6033         (gdb_assert.h): Likewise.
6034         (string.h): Likewise.
6035         (sys/uio.h): Likewise.
6036         (sys/user.h): Likewise.
6037         (sys/procfs.h): Likewise.
6038         (sys/reg.h): Likewise.
6039         (sys/debugreg.h): Likewise.
6040         (ORIG_EAX): Remove definition.
6041
6042 2014-07-11  Gary Benson  <gbenson@redhat.com>
6043
6044         * i386-linux-nat.h: New file.
6045         * x86-linux-nat.h: Likewise.
6046         * x86-linux-nat.c: Likewise.
6047         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6048         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6049         * config/i386/linux64.mh (NATDEPFILES): Likewise.
6050         * amd64-linux-nat.c (x86-linux-nat.h): New include.
6051         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6052         (PTRACE_SETREGSET): Likewise.
6053         (arch_lwp_info): Now in x86-linux-nat.c.
6054         (have_ptrace_getregset): Now in x86-linux-nat.h.
6055         (x86_linux_dr_get): Now in x86-linux-nat.c.
6056         (x86_linux_dr_set): Likewise.
6057         (x86_linux_dr_get_addr): Likewise.
6058         (x86_linux_dr_get_control): Likewise.
6059         (x86_linux_dr_get_status): Likewise.
6060         (update_debug_registers_callback): Likewise.
6061         (x86_linux_dr_set_control): Likewise.
6062         (x86_linux_dr_set_addr): Likewise.
6063         (x86_linux_prepare_to_resume): Likewise.
6064         (x86_linux_new_thread): Likewise.
6065         (x86_linux_new_fork): Likewise.
6066         (x86_linux_get_thread_area): Likewise.
6067         (super_post_startup_inferior): Likewise.
6068         (x86_linux_child_post_startup_inferior): Likewise.
6069         (AMD64_LINUX_USER64_CS): Likewise.
6070         (AMD64_LINUX_X32_DS): Likewise.
6071         (x86_linux_read_description): Likewise.
6072         (x86_linux_enable_btrace): Likewise.
6073         (x86_linux_disable_btrace): Likewise.
6074         (x86_linux_teardown_btrace): Likewise.
6075         (x86_linux_read_btrace): Likewise.
6076         (x86_linux_create_target): Likewise.
6077         (x86_linux_add_target): Likewise.
6078         * i386-linux-nat.c (x86-linux-nat.h): New include.
6079         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6080         (PTRACE_SETREGSET): Likewise.
6081         (arch_lwp_info): Now in x86-linux-nat.c.
6082         (have_ptrace_getregset): Now in x86-linux-nat.h.
6083         (x86_linux_dr_get): Now in x86-linux-nat.c.
6084         (x86_linux_dr_set): Likewise.
6085         (x86_linux_dr_get_addr): Likewise.
6086         (x86_linux_dr_get_control): Likewise.
6087         (x86_linux_dr_get_status): Likewise.
6088         (update_debug_registers_callback): Likewise.
6089         (x86_linux_dr_set_control): Likewise.
6090         (x86_linux_dr_set_addr): Likewise.
6091         (x86_linux_prepare_to_resume): Likewise.
6092         (x86_linux_new_thread): Likewise.
6093         (x86_linux_new_fork): Likewise.
6094         (x86_linux_get_thread_area): Likewise.
6095         (super_post_startup_inferior): Likewise.
6096         (x86_linux_child_post_startup_inferior): Likewise.
6097         (AMD64_LINUX_USER64_CS): Likewise.
6098         (AMD64_LINUX_X32_DS): Likewise.
6099         (x86_linux_read_description): Likewise.
6100         (x86_linux_enable_btrace): Likewise.
6101         (x86_linux_disable_btrace): Likewise.
6102         (x86_linux_teardown_btrace): Likewise.
6103         (x86_linux_read_btrace): Likewise.
6104         (x86_linux_create_target): Likewise.
6105         (x86_linux_add_target): Likewise.
6106
6107 2014-07-11  Gary Benson  <gbenson@redhat.com>
6108
6109         * amd64-linux-nat.c: Comment and whitespace changes.
6110         * i386-linux-nat.c: Comment and whitespace changes.
6111
6112 2014-07-11  Gary Benson  <gbenson@redhat.com>
6113
6114         * amd64-linux-nat.c (x86_linux_create_target): New function.
6115         (x86_linux_add_target): Likewise.
6116         (_initialize_amd64_linux_nat): Delegate to the above new functions.
6117         * i386-linux-nat.c (x86_linux_create_target): New function.
6118         (x86_linux_add_target): Likewise.
6119         (_initialize_i386_linux_nat): Delegate to the above new functions.
6120
6121 2014-07-11  Gary Benson  <gbenson@redhat.com>
6122
6123         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6124         (ps_get_thread_area): Delegate to the above in 32-bit mode.
6125         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6126         (ps_get_thread_area): Delegate to the above.
6127
6128 2014-07-11  Gary Benson  <gbenson@redhat.com>
6129
6130         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6131         x86_linux_read_description.  All uses updated.  amd64-specific
6132         code conditionalized.  Conditionalized i386-specific code added.
6133         Redundant cast removed.
6134         * i386-linux-nat.c (i386_linux_read_description): Renamed to
6135         x86_linux_read_description.  All uses updated.  i386-specific
6136         code conditionalized.  Conditionalized amd64-specific code added.
6137         One sizeof replaced with the actual type it is describing.
6138
6139 2014-07-11  Gary Benson  <gbenson@redhat.com>
6140
6141         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6142         x86_linux_dr_get.  All uses updated.
6143         (amd64_linux_dr_set): Renamed to
6144         x86_linux_dr_set.  All uses updated.
6145         (amd64_linux_dr_get_addr): Renamed to
6146         x86_linux_dr_get_addr.  All uses updated.
6147         (amd64_linux_dr_get_control): Renamed to
6148         x86_linux_dr_get_control.  All uses updated.
6149         (amd64_linux_dr_get_status): Renamed to
6150         x86_linux_dr_get_status.  All uses updated.
6151         (amd64_linux_dr_set_control): Renamed to
6152         x86_linux_dr_set_control.  All uses updated.
6153         (amd64_linux_dr_set_addr): Renamed to
6154         x86_linux_dr_set_addr.  All uses updated.
6155         (amd64_linux_prepare_to_resume): Renamed to
6156         x86_linux_prepare_to_resume.  All uses updated.
6157         (amd64_linux_new_thread): Renamed to
6158         x86_linux_new_thread.  All uses updated.
6159         (amd64_linux_new_fork): Renamed to
6160         x86_linux_new_fork.  All uses updated.
6161         (amd64_linux_child_post_startup_inferior): Renamed to
6162         x86_linux_child_post_startup_inferior.  All uses updated.
6163         (amd64_linux_enable_btrace): Renamed to
6164         x86_linux_enable_btrace.  All uses updated.
6165         (amd64_linux_disable_btrace): Renamed to
6166         x86_linux_disable_btrace.  All uses updated.
6167         (amd64_linux_teardown_btrace): Renamed to
6168         x86_linux_teardown_btrace.  All uses updated.
6169         (amd64_linux_read_btrace): Renamed to
6170         x86_linux_read_btrace.  All uses updated.
6171         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6172         x86_linux_dr_get.  All uses updated.
6173         (i386_linux_dr_set): Renamed to
6174         x86_linux_dr_set.  All uses updated.
6175         (i386_linux_dr_get_addr): Renamed to
6176         x86_linux_dr_get_addr.  All uses updated.
6177         (i386_linux_dr_get_control): Renamed to
6178         x86_linux_dr_get_control.  All uses updated.
6179         (i386_linux_dr_get_status): Renamed to
6180         x86_linux_dr_get_status.  All uses updated.
6181         (i386_linux_dr_set_control): Renamed to
6182         x86_linux_dr_set_control.  All uses updated.
6183         (i386_linux_dr_set_addr): Renamed to
6184         x86_linux_dr_set_addr.  All uses updated.
6185         (i386_linux_prepare_to_resume): Renamed to
6186         x86_linux_prepare_to_resume.  All uses updated.
6187         (i386_linux_new_thread): Renamed to
6188         x86_linux_new_thread.  All uses updated.
6189         (i386_linux_new_fork): Renamed to
6190         x86_linux_new_fork.  All uses updated.
6191         (i386_linux_child_post_startup_inferior): Renamed to
6192         x86_linux_child_post_startup_inferior.  All uses updated.
6193         (i386_linux_enable_btrace): Renamed to
6194         x86_linux_enable_btrace.  All uses updated.
6195         (i386_linux_disable_btrace): Renamed to
6196         x86_linux_disable_btrace.  All uses updated.
6197         (i386_linux_teardown_btrace): Renamed to
6198         x86_linux_teardown_btrace.  All uses updated.
6199         (i386_linux_read_btrace): Renamed to
6200         x86_linux_read_btrace.  All uses updated.
6201
6202 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
6203
6204         * remote.c (extended_remote_post_attach): New function.
6205         (init_extended_remote_ops): Install it as to_post_attach method.
6206
6207 2014-07-09  Pedro Alves  <palves@redhat.com>
6208
6209         * infcmd.c (attach_command_post_wait): Don't call
6210         target_terminal_inferior here.
6211         (attach_command): Call it here instead.
6212
6213 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
6214
6215         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6216         field.
6217         * c-varobj.c (c_is_path_expr_parent): New function, moved core
6218         from varobj.c, with additional checks.
6219         (c_varobj_ops): Fill in is_path_expr_parent field.
6220         (cplus_varobj_ops): Fill in is_path_expr_parent field.
6221         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6222         field.
6223         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6224         ops method.
6225         (varobj_default_is_path_expr_parent): New function.
6226         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6227         (varobj_default_is_path_expr_parent): Declare new function.
6228
6229 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6230
6231         * infcmd.c (finish_backward): Turn internal error into normal error.
6232
6233 2014-07-07  Pedro Alves  <palves@redhat.com>
6234
6235         PR gdb/17096
6236         * remote.c (async_handle_remote_sigint)
6237         (async_handle_remote_sigint_twice): Call
6238         gdb_call_async_signal_handler instead of
6239         mark_async_signal_handler.
6240
6241 2014-07-07  Tom Tromey  <tromey@redhat.com>
6242
6243         * target-delegates.c: Rebuild.
6244         * target.c (target_info_record): Remove.
6245         * record.c (info_record_command): Unconditionally call
6246         to_info_record.
6247         * target.h (struct target_ops) <to_info_record>: Use
6248         TARGET_DEFAULT_IGNORE.
6249         (target_info_record): Remove.
6250
6251 2014-07-07  Tom Tromey  <tromey@redhat.com>
6252
6253         * target.h (struct target_ops) <to_get_thread_local_address>: Use
6254         TARGET_DEFAULT_NORETURN.
6255         * target.c (generic_tls_error): New function.
6256         (target_translate_tls_address): Don't search target stack.
6257         * target-delegates.c: Rebuild.
6258         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6259         stack.
6260         * linux-thread-db.c (thread_db_get_thread_local_address):
6261         Unconditionally call beneath target.
6262
6263 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
6264
6265         * cli/cli-logging.c (pop_output_files): Assign targerr to
6266         gdb_stdtargerr.
6267
6268 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
6269
6270         * MAINTAINERS (Write After Approval): Update my email address.
6271
6272 2014-07-02  Gary Benson  <gbenson@redhat.com>
6273
6274         * proc-service.c (ps_xfer_memory): Update comment.
6275         (ps_pstop): Remove unused function.
6276         (ps_pcontinue): Likewise.
6277         (ps_lstop): Likewise.
6278         (ps_lcontinue): Likewise.
6279         (ps_lgetxregsize): Likewise.
6280         (ps_lgetxregs): Likewise.
6281         (ps_lsetxregs): Likewise.
6282         (ps_plog): Likewise.
6283         (ps_ptread): Likewise.
6284         (ps_ptwrite): Likewise.
6285
6286 2014-07-01  Mark Wielaard  <mjw@redhat.com>
6287
6288         * dwarf2read.c (add_array_cv_type): New function.
6289         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6290         (read_tag_volatile_type): Likewise.
6291
6292 2014-07-01  Tom Tromey  <tromey@redhat.com>
6293
6294         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6295         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6296         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6297         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6298         * command.h (cmd_cfunc_ftype): Move earlier.
6299         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6300         (add_com, add_info): Use cmd_cfunc_ftype.
6301
6302 2014-06-30  Tom Tromey  <tromey@redhat.com>
6303
6304         * symtab.c (operator_chars): Make parameters and return type
6305         const.
6306         (file_matches): Make "files" const.
6307         (struct search_symbols_data) <files>: Now const.
6308         (search_symbols): Make "regexp" and "files" parameters const.
6309         Update.
6310         (symtab_symbol_info): Remove cast.
6311         (rbreak_command): Update.
6312         * symtab.h (search_symbols): Update.
6313
6314 2014-06-27  Yao Qi  <yao@codesourcery.com>
6315
6316         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6317         Change parameter type to 'struct thread_info *'.  Caller
6318         updated.
6319         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6320         Update declaration.
6321         * dummy-frame.c (struct dummy_frame_id): New.
6322         (dummy_frame_id_eq): New function.
6323         (struct dummy_frame) <id>: Change its type to 'struct
6324         dummy_frame_id'.
6325         (dummy_frame_push): Add parameter ptid and save it in
6326         dummy_frame_id.
6327         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6328         inferior_ptid.
6329         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6330         to inferior_ptid.
6331         (lookup_dummy_frame): Change parameter type to 'struct
6332         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
6333         instead of frame_id_eq.
6334         (dummy_frame_pop): Add parameter ptid.  Callers updated.
6335         Update comments.  Compose dummy_frame_id and pass it to
6336         lookup_dummy_frame.
6337         (dummy_frame_discard): Add parameter ptid.
6338         (dummy_frame_sniffer): Compose dummy_frame_id and call
6339         dummy_frame_id_eq instead of frame_id_eq.
6340         (fprint_dummy_frames): Print ptid.
6341         * dummy-frame.h: Remove comments.
6342         (dummy_frame_push): Add ptid in declaration.
6343         (dummy_frame_pop, dummy_frame_discard): Likewise.
6344
6345 2014-06-26  Tom Tromey  <tromey@redhat.com>
6346
6347         * cli/cli-cmds.c (error_no_arg): Make "why" const.
6348         * command.h (error_no_arg): Update.
6349
6350 2014-06-26  Tom Tromey  <tromey@redhat.com>
6351
6352         * cli/cli-setshow.c (do_set_command): Make "arg" const.
6353         (do_show_command): Make "arg" const.
6354         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6355
6356 2014-06-26  Tom Tromey  <tromey@redhat.com>
6357
6358         * record-full.c (record_full_get_bookmark): Make "args" const.
6359         (record_full_goto_bookmark): Make "raw_bookmark" const.
6360         * record.c (record_goto): New function.
6361         (cmd_record_goto): Use it.  Now static.
6362         * record.h (record_goto): Declare.
6363         (cmd_record_goto): Remove declaration.
6364         * target-delegates.c: Rebuild.
6365         * target.h (struct target_ops) <to_get_bookmark,
6366         to_goto_bookmark>: Make parameter const.
6367
6368 2014-06-26  Tom Tromey  <tromey@redhat.com>
6369
6370         * defs.h (generic_load): Update.
6371         * m32r-rom.c (m32r_load_gen): Make "filename" const.
6372         * monitor.c (monitor_load): Make "args" const.
6373         * remote-m32r-sdi.c (m32r_load): Make "args" const.
6374         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6375         const.
6376         (mips_load): Make "file" const.
6377         * remote-sim.c (gdbsim_load): Make "args" const.
6378         * remote.c (remote_load): Make "name" const.
6379         * symfile.c (generic_load): Make "args" const.
6380         * target-delegates.c: Rebuild.
6381         * target.c (target_load): Make "arg" const.
6382         (debug_to_load): Make "args" const.
6383         * target.h (struct target_ops) <to_load>: Make parameter const.
6384         (target_load): Update.
6385
6386 2014-06-26  Tom Tromey  <tromey@redhat.com>
6387
6388         PR symtab/16902:
6389         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6390         (dwarf2_physname, read_partial_die)
6391         (guess_partial_die_structure_name, fixup_partial_die)
6392         (guess_full_die_structure_name, anonymous_struct_prefix)
6393         (dwarf2_name): Use per-BFD obstack.
6394
6395 2014-06-26  Yao Qi  <yao@codesourcery.com>
6396
6397         * dummy-frame.c (dummy_frame_sniffer): Move local variables
6398         dummyframe and this_id into inner block below.
6399
6400 2014-06-26  Yao Qi  <yao@codesourcery.com>
6401
6402         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6403         with "signal_pass[0]" in the initialization of signal_pass.
6404
6405 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
6406
6407         * record-btrace.c (record_btrace_generating_corefile)
6408         (record_btrace_prepare_to_generate_core)
6409         (record_btrace_done_generating_core): New.
6410         (record_btrace_xfer_partial, record_btrace_fetch_registers)
6411         (record_btrace_store_registers, record_btrace_prepare_to_store):
6412         Forward request when generating a core file.
6413         (record_btrace_open): Set record_btrace_generating_corefile to zero.
6414         (init_record_btrace_ops): Set to_prepare_to_generate_core and
6415         to_done_generating_core.
6416
6417 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
6418
6419         * target.h (target_ops) <to_prepare_to_generate_core>
6420         <to_done_generating_core>: New.
6421         (target_prepare_to_generate_core, target_done_generating_core): New.
6422         * target.c (target_prepare_to_generate_core)
6423         (target_done_generating_core): New.
6424         * target-delegates.c: Regenerate.
6425         * gcore.c: (write_gcore_file): Rename to ...
6426         (write_gcore_file_1): ...this.
6427         (write_gcore_file): Call target_prepare_to_generate_core
6428         and target_done_generating_core.
6429
6430 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
6431
6432         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6433         * gcore.c (write_gcore_file): Free memory returned from
6434         make_corefile_notes.
6435         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6436         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6437
6438 2014-06-24  Yao Qi  <yao@codesourcery.com>
6439
6440         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6441         (arm_linux_init_abi): Set skip_trampoline_code with
6442         gdbarch_skip_trampoline_code instead of
6443         find_solib_trampoline_target.
6444
6445 2014-06-24  Yao Qi  <yao@codesourcery.com>
6446
6447         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6448         arm_skip_bx_reg returns non-zero.
6449
6450 2014-06-24  Yao Qi  <yao@codesourcery.com>
6451
6452         * arm-tdep.c (arm_skip_bx_reg): New function.
6453         (arm_skip_stub): Call arm_skip_bx_reg.
6454
6455 2014-06-23  Don Breazeal  <donb@codesourcery.com>
6456
6457         * MAINTAINERS: Add myself as write-after-approval maintainer.
6458
6459 2014-06-23  Pedro Alves  <palves@redhat.com>
6460
6461         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6462         DR_CONTROL before setting DR0..DR3.
6463         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6464         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6465         bits of DR_CONTROL related to the debug register slot being
6466         disabled.  If all slots are vacant, clear local slowdown as well,
6467         and assert DR_CONTROL is 0.
6468
6469 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
6470
6471         * python/lib/gdb/command/xmethods.py
6472         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
6473         current progspace only if the string "progspace" matches LOCUS_RE.
6474
6475 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6476
6477         Fix --with-system-readline with readline-6.3 patch 5.
6478         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6479         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6480         types.
6481
6482 2014-06-20  Tom Tromey  <tromey@redhat.com>
6483
6484         * dwarf2read.c (dw2_get_real_path): Use correct type in
6485         OBSTACK_CALLOC.
6486         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6487
6488 2014-06-20  Gary Benson  <gbenson@redhat.com>
6489
6490         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
6491         * common/glibc_thread_db.h: Likewise.
6492         * common/i386-cpuid.h: Likewise.
6493         * common/i386-gcc-cpuid.h: Likewise.
6494         * common/linux-btrace.h: Likewise.
6495         * common/linux-osdata.h: Likewise.
6496         * common/linux-procfs.h: Likewise.
6497         * common/linux-ptrace.h: Likewise.
6498         * common/mips-linux-watch.h: Likewise.
6499         * common/linux-btrace.c: Moved to nat.
6500         * common/linux-osdata.c: Likewise.
6501         * common/linux-procfs.c: Likewise.
6502         * common/linux-ptrace.c: Likewise.
6503         * common/mips-linux-watch.c: Likewise.
6504         * nat/gdb_thread_db.h: Moved from common.
6505         * nat/glibc_thread_db.h: Likewise.
6506         * nat/i386-cpuid.h: Likewise.
6507         * nat/i386-gcc-cpuid.h: Likewise.
6508         * nat/linux-btrace.c: Likewise.
6509         * nat/linux-btrace.h: Likewise.
6510         * nat/linux-osdata.c: Likewise.
6511         * nat/linux-osdata.h: Likewise.
6512         * nat/linux-procfs.c: Likewise.
6513         * nat/linux-procfs.h: Likewise.
6514         * nat/linux-ptrace.c: Likewise.
6515         * nat/linux-ptrace.h: Likewise.
6516         * nat/mips-linux-watch.c: Likewise.
6517         * nat/mips-linux-watch.h: Likewise.
6518         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6519         (object file files): Reordered.
6520         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6521         of glibc_thread_db.h.
6522
6523 2014-06-20  Gary Benson  <gbenson@redhat.com>
6524
6525         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6526         (i386_dr_low_type): Moved to nat/i386-dregs.h.
6527         (i386_dr_low): Likewise.
6528         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6529         (i386_dr_low_set_addr): Likewise.
6530         (i386_dr_low_get_addr): Likewise.
6531         (i386_dr_low_can_set_control): Likewise.
6532         (i386_dr_low_set_control): Likewise.
6533         (i386_dr_low_get_control): Likewise.
6534         (i386_dr_low_get_status): Likewise.
6535         (i386_get_debug_register_length): Likewise.
6536         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6537         (i386_dr_low): Likewise.
6538         * nat/i386-dregs.c (i386-low.h): Remove include.
6539         (i386-nat.h): Likewise.
6540         (nat/i386-dregs.h): New include.
6541         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6542         (i386_dr_low_set_addr): Likewise.
6543         (i386_dr_low_get_addr): Likewise.
6544         (i386_dr_low_can_set_control): Likewise.
6545         (i386_dr_low_set_control): Likewise.
6546         (i386_dr_low_get_control): Likewise.
6547         (i386_dr_low_get_status): Likewise.
6548         (i386_get_debug_register_length): Likewise.
6549         (debug_hw_points): Likewise.
6550
6551 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
6552
6553         * Makefile.in (SFILES): Add d-exp.y.
6554         (YYFILES): Add d-exp.c.
6555         (YYOBJ): Add d-exp.o.
6556         (local-maintainer-clean): Delete d-exp.c.
6557         * d-exp.y: New file.
6558         * d-lang.h (d_parse): New declaration.
6559         (d_error): New declaration.
6560         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6561         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6562         PREC_ORDER operators.
6563         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6564
6565 2014-06-19  Yao Qi  <yao@codesourcery.com>
6566
6567         * gdbthread.h (any_running): Remove the declaration.
6568         * thread.c (any_running): Remove.
6569
6570 2014-06-19  Yao Qi  <yao@codesourcery.com>
6571
6572         * gdbthread.h (struct thread_info) <state>: Change its type to
6573         'enum thread_state'.  Update comments.
6574
6575 2014-06-19  Pedro Alves  <palves@redhat.com>
6576
6577         * gdbthread.h (ALL_THREADS): Delete.
6578         (ALL_NON_EXITED_THREADS): New macro.
6579         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6580         instead of ALL_THREADS.
6581         * infrun.c (find_thread_needs_step_over)
6582         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6583         instead of ALL_THREADS.
6584         * record-btrace.c (record_btrace_open)
6585         (record_btrace_stop_recording, record_btrace_close)
6586         (record_btrace_is_replaying, record_btrace_resume)
6587         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6588         * remote.c (append_pending_thread_resumptions): Likewise.
6589         * thread.c (thread_apply_all_command): Likewise.
6590
6591 2014-06-19  Gary Benson  <gbenson@redhat.com>
6592
6593         * i386-nat.c (i386_stopped_by_watchpoint):
6594         Use i386_dr_stopped_by_watchpoint.
6595         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6596         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6597
6598 2014-06-19  Gary Benson  <gbenson@redhat.com>
6599
6600         * nat/i386-dregs.c: New file.
6601         * Makefile.in (i386-dregs.o): New rule.
6602         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6603         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6604         * config/i386/darwin.mh (NATDEPFILES): Likewise.
6605         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6606         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6607         * config/i386/go32.mh (NATDEPFILES): Likewise.
6608         * config/i386/linux.mh (NATDEPFILES): Likewise.
6609         * config/i386/linux64.mh (NATDEPFILES): Likewise.
6610         * config/i386/mingw.mh (NATDEPFILES): Likewise.
6611         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6612         * i386-nat.h (debug_hw_points): New declaration.
6613         * i386-nat.c (breakpoint.h): Remove include.
6614         (command.h): Likewise.
6615         (target.h): Likewise.
6616         (gdb_assert.h): Likewise.
6617         (debug_hw_points): Made nonstatic.
6618         (debug_printf): Now in i386-dregs.c.
6619         (TARGET_HAS_DR_LEN_8): Likewise.
6620         (DR_CONTROL_SHIFT): Likewise.
6621         (DR_CONTROL_SIZE): Likewise.
6622         (DR_RW_EXECUTE): Likewise.
6623         (DR_RW_WRITE): Likewise.
6624         (DR_RW_READ): Likewise.
6625         (DR_RW_IORW): Likewise.
6626         (DR_LEN_1): Likewise.
6627         (DR_LEN_2): Likewise.
6628         (DR_LEN_4): Likewise.
6629         (DR_LEN_8): Likewise.
6630         (DR_LOCAL_ENABLE_SHIFT): Likewise.
6631         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6632         (DR_ENABLE_SIZE): Likewise.
6633         (DR_LOCAL_SLOWDOWN): Likewise.
6634         (DR_GLOBAL_SLOWDOWN): Likewise.
6635         (DR_CONTROL_RESERVED): Likewise.
6636         (I386_DR_CONTROL_MASK): Likewise.
6637         (I386_DR_VACANT): Likewise.
6638         (I386_DR_LOCAL_ENABLE): Likewise.
6639         (I386_DR_GLOBAL_ENABLE): Likewise.
6640         (I386_DR_DISABLE): Likewise.
6641         (I386_DR_SET_RW_LEN): Likewise.
6642         (I386_DR_GET_RW_LEN): Likewise.
6643         (I386_DR_WATCH_HIT): Likewise.
6644         (i386_wp_op_t): Likewise.
6645         (i386_show_dr): Likewise.
6646         (i386_length_and_rw_bits): Likewise.
6647         (i386_insert_aligned_watchpoint): Likewise.
6648         (i386_remove_aligned_watchpoint): Likewise.
6649         (i386_handle_nonaligned_watchpoint): Likewise.
6650         (i386_update_inferior_debug_regs): Likewise.
6651         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6652         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6653         (i386_region_ok_for_watchpoint):
6654         Use i386_dr_region_ok_for_watchpoint.
6655         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6656
6657 2014-06-19  Gary Benson  <gbenson@redhat.com>
6658
6659         * i386-nat.c (i386_insert_hw_breakpoint): Use
6660         i386_insert_watchpoint.
6661         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6662
6663 2014-06-19  Gary Benson  <gbenson@redhat.com>
6664
6665         * i386-nat.c (i386_dr_show): Renamed to
6666         i386_show_dr and made static.  All uses updated.
6667         (i386_dr_length_and_rw_bits): Renamed to
6668         i386_length_and_rw_bits and made static.
6669         All uses updated.
6670         (i386_dr_insert_aligned_watchpoint): Renamed to
6671         i386_insert_aligned_watchpoint and made static.
6672         All uses updated.
6673         (i386_dr_remove_aligned_watchpoint): Renamed to
6674         i386_remove_aligned_watchpoint and made static.
6675         All uses updated.
6676         (i386_dr_update_inferior_debug_regs): Renamed to
6677         i386_update_inferior_debug_regs and made static.
6678         All uses updated.
6679         * nat/i386-dregs.h (i386_dr_show): Removed.
6680         (i386_dr_length_and_rw_bits): Likewise.
6681         (i386_dr_insert_aligned_watchpoint): Likewise.
6682         (i386_dr_remove_aligned_watchpoint): Likewise.
6683         (i386_dr_update_inferior_debug_regs): Likewise.
6684
6685 2014-06-19  Gary Benson  <gbenson@redhat.com>
6686
6687         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6688         * configure: Regenerate.
6689         * config.in: Likewise.
6690         * main.c (signal.h): New include.
6691         (setup_alternate_signal_stack): New function.
6692         (captured_main): Call the above.
6693         * cp-support.c (signal.h): New include.
6694         (catch_demangler_crashes): New flag.
6695         (SIGJMP_BUF): New define.
6696         (SIGSETJMP): Likewise.
6697         (SIGLONGJMP): Likewise.
6698         (gdb_demangle_jmp_buf): New static global.
6699         (gdb_demangle_attempt_core_dump): Likewise.
6700         (gdb_demangle_signal_handler): New function.
6701         (gdb_demangle): If catch_demangler_crashes is set, install the
6702         above signal handler before calling bfd_demangle, and restore
6703         the original signal handler afterwards.  Display the offending
6704         symbol and call demangler_warning the first time a segmentation
6705         fault is caught.
6706         (_initialize_cp_support): New maint set/show command.
6707
6708 2014-06-19  Gary Benson  <gbenson@redhat.com>
6709
6710         * utils.h (resource_limit_kind): New enum.
6711         (can_dump_core): New declaration.
6712         (warn_cant_dump_core): Likewise.
6713         (dump_core): Likewise.
6714         * utils.c (dump_core): Made nonstatic.  Added new
6715         parameter "limit_kind".
6716         (can_dump_core): Made nonstatic. Moved printing code to...
6717         (warn_cant_dump_core): New function.
6718         (can_dump_core_warn): Likewise.
6719         (internal_vproblem): Replace calls to can_dump_core with
6720         calls to can_dump_core_warn.  Supply new argument to each.
6721
6722 2014-06-19  Gary Benson  <gbenson@redhat.com>
6723
6724         * utils.h (demangler_vwarning): New declaration.
6725         (demangler_warning): Likewise.
6726         * utils.c (struct internal_problem)
6727         <user_settable_should_quit>: New field.
6728         <user_settable_should_dump_core>: Likewise
6729         (internal_error_problem): Add values for above new fields.
6730         (internal_warning_problem): Likewise.
6731         (demangler_warning_problem): New static global.
6732         (demangler_vwarning): New function.
6733         (demangler_warning): Likewise.
6734         (add_internal_problem_command): Selectively add commands.
6735         (_initialize_utils): New internal problem command.
6736         * maint.c (maintenance_demangler_warning): New function.
6737         (_initialize_maint_cmds): New command.
6738
6739 2014-06-18  Tom Tromey  <tromey@redhat.com>
6740
6741         * f-valprint.c (info_common_command_for_block): Update.
6742         * symtab.h (struct general_symbol_info) <common_block>: Now
6743         const.
6744
6745 2014-06-18  Tom Tromey  <tromey@redhat.com>
6746
6747         * symtab.h (struct symtab) <blockvector>: Now const.
6748         * ada-lang.c (ada_add_global_exceptions): Update.
6749         * buildsym.c (augment_type_symtab): Update.
6750         * dwarf2read.c (dw2_lookup_symbol): Update.
6751         * jit.c (finalize_symtab): Update.
6752         * jv-lang.c (add_class_symtab_symbol): Update.
6753         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6754         Update.
6755         * objfiles.c (objfile_relocate1): Update.
6756         * psymtab.c (lookup_symbol_aux_psymtabs)
6757         (maintenance_check_psymtabs): Update.
6758         * python/py-symtab.c (stpy_global_block, stpy_static_block):
6759         Update.
6760         * spu-tdep.c (spu_catch_start): Update.
6761         * symmisc.c (dump_symtab_1): Update.
6762         * symtab.c (lookup_global_symbol_from_objfile)
6763         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6764         (basic_lookup_transparent_type_quick)
6765         (basic_lookup_transparent_type, find_pc_sect_symtab)
6766         (find_pc_sect_line, search_symbols): Update.
6767         * block.c (find_block_in_blockvector): Make "bl" const.
6768         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6769         const.
6770         (blockvector_contains_pc): Make "bv" const.
6771         (block_for_pc_sect): Update.
6772         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6773         (blockvector_contains_pc): Update.
6774         * breakpoint.c (resolve_sal_pc): Update.
6775         * inline-frame.c (block_starting_point_at): Update.
6776
6777 2014-06-18  Tom Tromey  <tromey@redhat.com>
6778
6779         * completer.c (complete_line): Make "line_buffer" const.
6780         * completer.h (complete_line): Update.
6781
6782 2014-06-18  Tom Tromey  <tromey@redhat.com>
6783
6784         * symtab.c (add_macro_name): Remove unneeded cast.
6785
6786 2014-06-18  Tom Tromey  <tromey@redhat.com>
6787
6788         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6789         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6790
6791 2014-06-18  Tom Tromey  <tromey@redhat.com>
6792
6793         * probe.c (info_probes_for_ops): Make "arg" const.
6794         * probe.h (info_probes_for_ops): Update.
6795
6796 2014-06-18  Tom Tromey  <tromey@redhat.com>
6797
6798         * varobj.c (varobj_create): Update.
6799         * valops.c (value_of_this): Update.
6800         * tracepoint.c (add_local_symbols, scope_info): Update.
6801         * symtab.h (struct general_symbol_info) <block>: Now const.
6802         * symtab.c (skip_prologue_sal)
6803         (default_make_symbol_completion_list_break_on)
6804         (skip_prologue_using_sal): Update.
6805         * stack.h (iterate_over_block_locals)
6806         (iterate_over_block_local_vars): Update.
6807         * stack.c (print_frame_args): Update.
6808         (iterate_over_block_locals, iterate_over_block_local_vars): Make
6809         parameter const.
6810         (get_selected_block): Make return type const.
6811         * python/py-frame.c (frapy_block): Update.
6812         * python/py-block.c (gdbpy_block_for_pc): Update.
6813         * p-exp.y (%union) <bval>: Now const.
6814         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6815         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6816         * m2-exp.y (%union) <bval>: Now const.
6817         * linespec.c (get_current_search_block): Make return type const.
6818         (create_sals_line_offset, find_label_symbols): Update.
6819         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6820         Update.
6821         (block_starting_point_at): Make "block" const.
6822         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6823         (check_exception_resume): Update.
6824         * guile/scm-frame.c (gdbscm_frame_block): Update.
6825         * guile/scm-block.c (gdbscm_lookup_block): Update.
6826         * frame.h (get_frame_block): Update.
6827         (get_selected_block): Make return type const.
6828         * frame.c (frame_id_inner): Update.
6829         * f-valprint.c (info_common_command_for_block)
6830         (info_common_command): Update.
6831         * dwarf2loc.c (dwarf2_find_location_expression)
6832         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6833         (locexpr_describe_location_piece): Update.
6834         * c-exp.y (%union) <bval>: Now const.
6835         * breakpoint.c (resolve_sal_pc): Update.
6836         * blockframe.c (get_frame_block):Make return type const.
6837         (get_pc_function_start, get_frame_function, find_pc_sect_function)
6838         (block_innermost_frame): Update.
6839         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6840         (block_for_pc, block_for_pc_sect): Update.
6841         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6842         'pblock' const.
6843         (block_for_pc_sect, block_for_pc): Make return type const.
6844         * ax-gdb.c (gen_expr): Update.
6845         * alpha-mdebug-tdep.c (find_proc_desc): Update.
6846         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6847         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6848         (ada_read_var_value): Update.
6849         * ada-exp.y (struct name_info) <block>: Now const.
6850         (%union): Likewise.
6851         (block_lookup): Constify.
6852
6853 2014-06-18  Gary Benson  <gbenson@redhat.com>
6854
6855         * nat/i386-dregs.h: New file.
6856         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6857         * i386-nat.h (i386-dregs.h): New include.
6858         (DR_FIRSTADDR): Now in i386-dregs.h.
6859         (DR_LASTADDR): Likewise.
6860         (DR_NADDR): Likewise.
6861         (DR_STATUS): Likewise.
6862         (DR_CONTROL): Likewise.
6863         (i386_debug_reg_state): Likewise.
6864         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6865
6866 2014-06-18  Don Breazeal  <donb@codesourcery.com>
6867
6868         * breakpoint.c (set_longjmp_breakpoint): Call
6869         momentary_breakpoint_from_master with additional argument.
6870         (set_longjmp_breakpoint_for_call_dummy): Call
6871         momentary_breakpoint_from_master with additional argument.
6872         (set_std_terminate_breakpoint): Call
6873         momentary_breakpoint_from_master with additional argument.
6874         (momentary_breakpoint_from_master): Add argument to function
6875         definition and use it to initialize structure member flag.
6876         (clone_momentary_breakpoint): Call
6877         momentary_breakpoint_from_master with additional argument.
6878         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6879         member flags set in momentary_breakpoint_from_master.
6880
6881 2014-06-18  Gary Benson  <gbenson@redhat.com>
6882
6883         * i386-nat.c (i386_show_dr): Renamed to
6884         i386_dr_show and made nonstatic.  All uses updated.
6885         (i386_length_and_rw_bits): Renamed to
6886         i386_dr_length_and_rw_bits and made nonstatic.
6887         All uses updated.
6888         (i386_insert_aligned_watchpoint): Renamed to
6889         i386_dr_insert_aligned_watchpoint and made nonstatic.
6890         All uses updated.
6891         (i386_remove_aligned_watchpoint): Renamed to
6892         i386_dr_remove_aligned_watchpoint and made nonstatic.
6893         All uses updated.
6894         (i386_update_inferior_debug_regs): Renamed to
6895         i386_dr_update_inferior_debug_regs and made nonstatic.
6896         All uses updated.
6897
6898 2014-06-18  Gary Benson  <gbenson@redhat.com>
6899
6900         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6901         (i386_dr_low_can_set_control): Likewise.
6902         (i386_dr_low_set_addr): Likewise.
6903         (i386_dr_low_set_control): Likewise.
6904         (i386_dr_low_get_addr): Likewise.
6905         (i386_dr_low_get_status): Likewise.
6906         (i386_dr_low_get_control): Likewise.
6907         (i386_insert_aligned_watchpoint): Use new macros.
6908         (i386_update_inferior_debug_regs): Likewise.
6909         (i386_stopped_data_address): Likewise.
6910
6911 2014-06-18  Gary Benson  <gbenson@redhat.com>
6912
6913         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6914         New parameter.  All uses updated.
6915
6916 2014-06-18  Gary Benson  <gbenson@redhat.com>
6917
6918         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6919         All uses updated.
6920
6921 2014-06-18  Gary Benson  <gbenson@redhat.com>
6922
6923         * i386-nat.c (debug_printf): New macro.
6924         (i386_get_debug_register_length): Likewise.
6925         (TARGET_HAS_DR_LEN_8): Use above macro.
6926         (i386_show_dr): Use debug_printf instead of puts_unfiltered
6927         and printf_unfiltered.  Use phex to format values.
6928
6929 2014-06-18  Gary Benson  <gbenson@redhat.com>
6930
6931         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6932         Make const.
6933
6934 2014-06-18  Gary Benson  <gbenson@redhat.com>
6935
6936         * i386-nat.c: Comment changes.
6937
6938 2014-06-18  Gary Benson  <gbenson@redhat.com>
6939
6940         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6941
6942 2014-06-18  Gary Benson  <gbenson@redhat.com>
6943
6944         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6945         (i386_insert_aligned_watchpoint): Likewise.
6946         (i386_remove_aligned_watchpoint): Likewise.
6947         (i386_handle_nonaligned_watchpoint): Likewise.
6948
6949 2014-06-18  Gary Benson  <gbenson@redhat.com>
6950
6951         * i386-nat.c: Whitespace changes.
6952
6953 2014-06-17  Samuel Bronson  <naesten@gmail.com>
6954
6955         * MAINTAINERS: Update Roland McGrath's email address.
6956         Thanks to Sergio Durigan Junior for pointing out that he left
6957         Red Hat a while ago, and giving me a current address.
6958
6959 2014-06-17  Tom Tromey  <tromey@redhat.com>
6960
6961         * utils.h (savestring): Remove declaration.
6962
6963 2014-06-17  Tom Tromey  <tromey@redhat.com>
6964
6965         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6966
6967 2014-06-16  Keith Seitz  <keiths@redhat.com>
6968
6969         PR mi/15863
6970         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6971         to update the varobj if inferior_ptid is null_ptid.
6972
6973 2014-06-16  Tom Tromey  <tromey@redhat.com>
6974
6975         * target.h (struct target_ops) <to_info_proc>: Make parameter
6976         const.
6977         (target_info_proc): Update.
6978         * target.c (target_info_proc): Make "args" const.
6979         * procfs.c (procfs_info_proc): Update.
6980         * linux-tdep.c (linux_info_proc): Update.
6981         (linux_core_info_proc_mappings): Make "args" const.
6982         (linux_core_info_proc): Update.
6983         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6984         * gdbarch.c: Rebuild.
6985         * gdbarch.h: Rebuild.
6986         * corelow.c (core_info_proc): Update.
6987
6988 2014-06-16  Tom Tromey  <tromey@redhat.com>
6989
6990         * target.h (struct target_ops) <to_disconnect>: Make parameter
6991         const.
6992         (target_disconnect): Update.
6993         * target.c (target_disconnect): Make "args" const.
6994         * target-delegates.c: Rebuild.
6995         * remote.c (remote_disconnect): Update.
6996         * record.h (record_disconnect): Update.
6997         * record.c (record_disconnect): Update.
6998         * inf-child.c (inf_child_disconnect): Update.
6999
7000 2014-06-16  Tom Tromey  <tromey@redhat.com>
7001
7002         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7003         * target.c (debug_to_rcmd, default_rcmd): Update.
7004         * target-delegates.c: Rebuild.
7005         * remote.c (remote_rcmd): Update.
7006         * monitor.c (monitor_rcmd): Update.
7007
7008 2014-06-16  Pedro Alves  <palves@redhat.com>
7009
7010         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7011         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7012         have OBJF_SHARED set.
7013         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7014         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
7015         instead of OBJF_USERLOADED.
7016         * objfiles.h (OBJF_SHARED): Update comment.
7017         (userloaded_objfile_contains_address_p): Rename to ...
7018         (shared_objfile_contains_address_p): ... this, and update
7019         comments.
7020         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7021         new objfile.
7022         (remove_symbol_file_command): Skip objfiles that don't have
7023         OBJF_SHARED set.
7024
7025 2014-06-16  Tom Tromey  <tromey@redhat.com>
7026
7027         * minsyms.h (prim_record_minimal_symbol)
7028         (prim_record_minimal_symbol_and_info): Update comments.
7029
7030 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
7031
7032         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7033         or --without-guile, according to how GDB was built.
7034
7035 2014-06-13  Tom Tromey  <tromey@redhat.com>
7036
7037         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7038         to help_list.
7039         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7040         to help_list.
7041         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7042         help_list.
7043         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7044         help_list.Pass all_commands, not -1, to help_list.
7045         * cli/cli-dump.c (dump_command, append_command)
7046         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7047         (binary_dump_command, binary_append_command): Pass all_commands,
7048         not -1, to help_list.
7049         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7050         -1, to help_list.
7051         * valprint.c (set_print, set_print_raw): Pass all_commands, not
7052         -1, to help_list.
7053         * typeprint.c (set_print_type): Pass all_commands, not -1, to
7054         help_list.
7055         * top.c (set_history): Pass all_commands, not -1, to help_list.
7056         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7057         all_commands, not -1, to help_list.
7058         * symfile.c (overlay_command): Pass all_commands, not -1, to
7059         help_list.
7060         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7061         help_list.
7062         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7063         help_list.
7064         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7065         -1, to help_list.
7066         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7067         not -1, to help_list.
7068         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7069         not -1, to help_list.
7070         * maint.c (maintenance_command, maintenance_info_command)
7071         (maintenance_print_command, maintenance_set_cmd): Pass
7072         all_commands, not -1, to help_list.
7073         * macrocmd.c (macro_command): Pass all_commands, not -1, to
7074         help_list.
7075         * language.c (set_check): Pass all_commands, not -1, to help_list.
7076         * infcmd.c (unset_command): Pass all_commands, not -1, to
7077         help_list.
7078         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7079         help_list.
7080         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7081         help_list.
7082         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7083         help_list.
7084         * breakpoint.c (save_command): Pass all_commands, not -1, to
7085         help_list.
7086         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7087         all_commands, not -1, to help_list.
7088
7089 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
7090
7091         * regcache.c (struct register_to_invalidate): New structure.
7092         (do_register_invalidate, make_cleanup_regcache_invalidate): New
7093         functions.
7094         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7095
7096 2014-06-12  Yao Qi  <yao@codesourcery.com>
7097
7098         * varobj.c (varobj_get_num_children): Call
7099         varobj_is_dynamic_p.
7100         (varobj_list_children): Likewise.
7101         (varobj_update): Likewise.  Update comments.
7102
7103 2014-06-12  Yao Qi  <yao@codesourcery.com>
7104
7105         * varobj.c (varobj_pretty_printed_p): Rename to ...
7106         (varobj_is_dynamic_p): ... this.  New function.
7107         * varobj.h (varobj_pretty_printed_p): Remove declaration.
7108         (varobj_is_dynamic_p): Declare.
7109         * mi/mi-cmd-var.c (print_varobj): All callers updated.
7110         (mi_print_value_p, varobj_update_one): Likewise.
7111
7112 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
7113             Yao Qi  <yao@codesourcery.com>
7114
7115         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7116         (varobj_get_iterator): Wrap up code for pretty-printer by
7117         "#if HAVE_PYTHON" and "#endif".
7118         (update_dynamic_varobj_children): Likewise.
7119
7120 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
7121             Yao Qi  <yao@codesourcery.com>
7122
7123         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7124         gdb_python_initialized is false.  Move some code from varobj.c.
7125         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7126         * varobj.c: Move "varobj-iter.h" inclusion earlier.
7127         (struct varobj_item): Moved to varobj-iter.h".
7128         (varobj_clear_saved_item): New function.
7129         (update_dynamic_varobj_children): Move python-related code to
7130         py-varobj.c.
7131         (free_variable): Call varobj_clear_saved_item and
7132         varobj_iter_delete.
7133
7134 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
7135             Yao Qi  <yao@codesourcery.com>
7136
7137         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7138         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7139         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7140         (py-varobj.o): New rule.
7141         * python/py-varobj.c: New file.
7142         * python/python-internal.h (py_varobj_get_iterator): Declare.
7143         * varobj-iter.h: New file.
7144         * varobj.c: Include "varobj-iter.h"
7145         (struct varobj) <child_iter>: Change its type from "PyObject *"
7146         to "struct varobj_iter *".
7147         <saved_item>: Likewise.
7148         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7149         [HAVE_PYTHON] (varobj_get_iterator): New function.
7150         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7151         python-specific code to python/py-varobj.c.
7152         (install_visualizer): Call varobj_iter_delete instead of
7153         Py_XDECREF.
7154         * varobj.h (varobj_ensure_python_env): Declare.
7155
7156 2014-06-12  Yao Qi  <yao@codesourcery.com>
7157
7158         * varobj.c (struct varobj_item): New structure.
7159         (create_child_with_value): Update declaration.
7160         (varobj_add_child): Replace arguments 'name' and 'value' with
7161         'item'.  All callers updated.
7162         (install_dynamic_child): Likewise.
7163         (update_dynamic_varobj_children): Likewise.
7164         (varobj_add_child): Likewise.
7165         (create_child_with_value): Likewise.
7166
7167 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
7168
7169         * NEWS: Create a new section for the next release branch.
7170         Rename the section of the current branch, now that it has
7171         been cut.
7172
7173 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
7174
7175         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7176         * version.in: Bump version to 7.8.50.DATE-cvs.
7177
7178 2014-06-11  Pedro Alves  <palves@redhat.com>
7179
7180         PR remote/17028
7181         * ser-mingw.c (net_windows_socket_check_pending): New function.
7182         (net_windows_select_thread): Ignore spurious wakeups.  Use
7183         net_windows_socket_check_pending.
7184         (net_windows_wait_handle): Check for pending events with
7185         ioctlsocket, through net_windows_socket_check_pending, instead of
7186         checking the socket's event.
7187
7188 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
7189
7190         * python/python-internal.h (gdb_PyObject_GetAttrString)
7191         (gdb_PyObject_HasAttrString): New inline function definitions.
7192         * py-value.c (get_field_flag): Remove the now unnecessary cast to
7193         char * of the second argument to PyObject_GetAttrString.
7194
7195 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
7196
7197         * serial.c (serial_write): Fix index of character to be printed
7198         in call to serial_logchar when serial debug traces are enabled.
7199
7200 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
7201
7202         * gdbtypes (resolve_dynamic_range): Add function description.
7203
7204 2014-06-09  Pedro Alves  <palves@redhat.com>
7205
7206         * linux-nat.c (linux_child_follow_fork): Initialize status with
7207         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
7208         inner block.  Only pass the signal to PTRACE_DETACH if in pass
7209         state.
7210
7211 2014-06-09  Gary Benson  <gbenson@redhat.com>
7212
7213         * common/signals.c (gdb_signal_from_host): Reorder to separate
7214         the always-available ANSI-standard signals from the signals that
7215         require checking.
7216         (do_gdb_signal_to_host): Likewise.
7217         * proc-events.c (signal_table): Likewise.
7218
7219 2014-06-08  Hui Zhu  <hui@codesourcery.com>
7220
7221         * common/linux-ptrace.c (linux_disable_event_reporting): New
7222         function.
7223         * common/linux-ptrace.h (linux_disable_event_reporting): New
7224         declaration.
7225         * linux-nat.c (linux_child_follow_fork): Do a single step before
7226         detach.
7227
7228 2014-06-07  Keith Seitz  <keiths@redhat.com>
7229
7230         Revert:
7231         PR c++/16253
7232         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7233         from symbol_matches_domain in symtab.c. All local callers
7234         of symbol_matches_domain updated.
7235         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7236         search STRUCT_DOMAIN.
7237         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7238         independently.  standard_lookup will do that automatically.
7239         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7240         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7241         (cp_lookup_symbol_in_namespace): Likewise.
7242         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7243         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7244         may return a STRUCT_DOMAIN match.
7245         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7246         * cp-support.c: Include language.h.
7247         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7248         VAR_DOMAIN.
7249         * psymtab.c (match_partial_symbol): Compare the requested
7250         domain with the symbol's domain directly.
7251         (lookup_partial_symbol): Likewise.
7252         * symtab.c (lookup_symbol_in_language): Explain when/why
7253         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7254         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7255         appropriate languages.
7256         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7257         and moved to ada-lang.c
7258         (lookup_block_symbol): Explain that this function only returns
7259         symbol matching the requested DOMAIN.
7260         Compare the requested domain with the symbol's domain directly.
7261         (iterate_over_symbols): Compare the requested domain with the
7262         symbol's domain directly.
7263         * symtab.h (symbol_matches_domain): Remove.
7264
7265 2014-06-06  Doug Evans  <xdje42@gmail.com>
7266
7267         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7268         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7269         (gdbscm_guile_version_is_at_least): Declare.
7270         (gdbscm_scm_string_to_int): Declare.
7271         * guile/guile.c (gdbscm_guile_major_version): New global.
7272         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7273         (guile_datadir): New static global.
7274         (gdbscm_guile_data_directory): New function.
7275         (initialize_scheme_side): Update.
7276         (misc_guile_functions): Add guile-data-directory.
7277         (initialize_gdb_module): Fetch guile version number.
7278         * guile/lib/gdb.scm: Remove call to add-to-load-path.
7279         * guile/lib/gdb/init.scm (%initialize!): Ditto.
7280         * guile/lib/gdb/boot.scm: Use guile-data-directory.
7281         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7282         comments.
7283         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7284         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7285         * guile/scm-value.c (gdbscm_value_to_string): Only call
7286         scm_port_conversion_strategy if Guile version >= 2.0.6.
7287
7288 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
7289
7290         * main.c (print_gdb_help): Add -q and --silent.
7291
7292 2014-06-06  Gary Benson  <gbenson@redhat.com>
7293
7294         * common/signals.c: Remove preprocessor conditionals for
7295         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7296         SIGSEGV and SIGTERM.
7297         * proc-events.c: Likewise.
7298
7299 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
7300
7301         * symfile.c (symfile_free_objfile): Remove restriction to
7302         OBJF_USERLOADED.
7303         * symfile-mem.c (symbol_file_add_from_memory): Call
7304         add_target_sections_of_objfile.
7305
7306 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
7307
7308         * guile/scm-value.c (gdbscm_history_append_x): Use
7309         'vlscm_get_value_smob_arg_unsafe' instead of
7310         'vlscm_scm_to_value'.
7311
7312 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
7313
7314         PR mi/15806
7315         * utils.c (printchar): Don't escape at all if quoter is NUL.
7316         Update function documentation to clarify effect of parameter
7317         QUOTER.
7318         * remote.c (escape_buffer): Pass '\\' as the quoter to
7319         fputstrn_unfiltered.
7320         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7321         generate the output.
7322         (mi_solib_unloaded): Same.
7323
7324 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
7325
7326         * development.sh: Delete.
7327         * Makefile.in (config.status): Adjust dependency on development.sh.
7328         * configure.ac: Adjust development.sh source call.
7329         * configure: Regenerate.
7330
7331 2014-06-04  Doug Evans  <xdje42@gmail.com>
7332
7333         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7334         is_scheme_bkpt, spec.
7335         (bpscm_make_breakpoint_smob): Initialize new members.
7336         (gdbscm_create_breakpoint_x): Split into two ...
7337         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7338         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7339         (scheme_function breakpoint_functions): Update.
7340         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
7341         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
7342         register-breakpoint!.
7343
7344 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
7345
7346         PR server/17023
7347         * mem-break.c (z_type_supported): Return zero if
7348         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7349
7350 2014-06-04  Tom Tromey  <tromey@redhat.com>
7351
7352         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7353         value_from_contents_and_address_unresolved.
7354         (ada_template_to_fixed_record_type_1): Likewise.
7355         (ada_which_variant_applies): Likewise.
7356         * value.h (value_from_contents_and_address_unresolved): Declare.
7357         * value.c (value_from_contents_and_address_unresolved): New
7358         function.
7359         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7360         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7361         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7362
7363 2014-06-04  Tom Tromey  <tromey@redhat.com>
7364
7365         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7366
7367 2014-06-04  Tom Tromey  <tromey@redhat.com>
7368
7369         * procfs.c (procfs_attach): Make "args" const.
7370         * windows-nat.c (windows_attach): Make "args" const.
7371         * nto-procfs.c (procfs_attach): Make "args" const.
7372         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7373         * go32-nat.c (go32_attach): Make "args" const.
7374         * gnu-nat.c (gnu_attach): Make "args" const.
7375         * darwin-nat.c (darwin_attach): Make "args" const.
7376         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7377         * linux-nat.c (linux_nat_attach): Make "args" const.
7378         * remote.c (extended_remote_attach_1, extended_remote_attach):
7379         Make "args" const.
7380         * target.h (struct target_ops) <to_attach>: Make "args" const.
7381         (find_default_attach): Likewise.
7382         * utils.c (parse_pid_to_attach): Make "args" const.
7383         * utils.h (parse_pid_to_attach): Update.
7384
7385 2014-06-04  Tom Tromey  <tromey@redhat.com>
7386
7387         * target-delegates.c: Rebuild.
7388         * target.c (default_thread_address_space): New function.
7389         (target_thread_address_space): Simplify.
7390         * target.h (struct target_ops) <to_thread_address_space>: Add
7391         TARGET_DEFAULT_FUNC.
7392
7393 2014-06-04  Doug Evans  <xdje42@gmail.com>
7394
7395         * guile/scm-type.c (type_smob): Remove duplicate typedef.
7396
7397 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
7398
7399         * record-btrace.c: Include event-loop.h and inf-loop.h.
7400         (record_btrace_resume_exec_dir)
7401         (record_btrace_async_inferior_event_handler)
7402         (record_btrace_handle_async_inferior_event): New.
7403         (record_btrace_open): Create async event handler.
7404         (record_btrace_close): Delete async event handler.
7405         (record_btrace_resume): Set record_btrace_resume_exec_dir,
7406         Mark async event handler.
7407         (record_btrace_execution_direction): New.
7408         (init_record_btrace_ops): Initialize to_execution_direction.
7409
7410 2014-06-03  Doug Evans  <xdje42@gmail.com>
7411
7412         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7413         (gdbscm_make_parameter): Ditto.
7414
7415 2014-06-03  Doug Evans  <dje@google.com>
7416
7417         * exec.c (exec_close_1): Call clear_section_table instead of
7418         resize_section_table.
7419         (clear_section_table): New function.
7420         (resize_section_table): Make static.  Rename arg num_added to
7421         adjustment.
7422         * exec.h (clear_section_table): Declare.
7423         (resize_section_table): Delete.
7424         * progspace.c (release_program_space): Call clear_section_table
7425         instead of resize_section_table.
7426
7427 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
7428
7429         * NEWS (Python Scripting): Add entry about the new xmethods
7430         feature.
7431
7432 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
7433
7434         * python/py-xmethods.c: New file.
7435         * python/py-objfile.c (objfile_object): New field 'xmethods'.
7436         (objfpy_dealloc): XDECREF on the new xmethods field.
7437         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7438         field.
7439         (objfpy_get_xmethods): New function.
7440         (objfile_getset): New entry 'xmethods'.
7441         * python/py-progspace.c (pspace_object): New field 'xmethods'.
7442         (pspy_dealloc): XDECREF on the new xmethods field.
7443         (pspy_new, pspace_to_pspace_object): Initialize xmethods
7444         field.
7445         (pspy_get_xmethods): New function.
7446         (pspace_getset): New entry 'xmethods'.
7447         * python/python-internal.h: Add declarations for new functions.
7448         * python/python.c (_initialize_python): Invoke
7449         gdbpy_initialize_xmethods.
7450         * python/lib/gdb/__init__.py (xmethods): New
7451         attribute.
7452         * python/lib/gdb/xmethod.py: New file.
7453         * python/lib/gdb/command/xmethods.py: New file.
7454
7455 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
7456
7457         * eval.c (evaluate_subexp_standard): Call the xmethod if the
7458         best match method returned by find_overload_match is an xmethod.
7459         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7460         the best matching operator returned by find_overload_match is an
7461         xmethod.
7462         * valops.c: #include "extension.h".
7463         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7464         Return void.  The list of matching source methods is returned in
7465         "fn_list" and a vector of matching debug method workers is
7466         returned in "xm_worker_vec".  Update all callers.
7467         (value_find_oload_method_list): Likewise.
7468         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
7469         non-NULL, then the index of the best matching method in this
7470         vector is returned.  Update all callers.
7471         (find_overload_match): Include xmethods while performing overload
7472         resolution.
7473
7474 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
7475
7476         * defs.h (enum lval_type): New enumerator "lval_xcallable".
7477         * extension-priv.h (struct extension_language_ops): Add the
7478         xmethod interface.
7479         * extension.c (new_xmethod_worker, clone_xmethod_worker,
7480         get_matching_xmethod_workers, get_xmethod_argtypes,
7481         invoke_xmethod, free_xmethod_worker,
7482         free_xmethod_worker_vec): New functions.
7483         * extension.h: #include "common/vec.h".
7484         New function declarations.
7485         (struct xmethod_worker): New struct.
7486         (VEC (xmethod_worker_ptr)): New vector type.
7487         (xmethod_worker_ptr): New typedef.
7488         (xmethod_worker_vec): Likewise.
7489         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7490         builtin_type.
7491         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7492         (struct builtin_type): New field "xmethod".
7493         * valarith.c (value_ptradd): Assert that the value argument is not
7494         lval_xcallable.
7495         * valops.c (value_must_coerce_to_target): Return 0 for
7496         lval_xcallable values.
7497         * value.c (struct value): New field XM_WORKER in the field
7498         LOCATION.
7499         (value_address, value_raw_address): Return 0 for lval_xcallable
7500         values.
7501         (set_value_address): Assert that the value is not an
7502         lval_xcallable.
7503         (value_free): Free the associated xmethod worker when freeing
7504         lval_xcallable values.
7505         (set_value_component_location): Assert that the WHOLE value is not
7506         lval_xcallable.
7507         (value_of_xmethod, call_xmethod): New functions.
7508         * value.h: Declare "struct xmethod_worker".
7509         Declare new functions value_of_xmethod, call_xmethod.
7510
7511 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
7512             Pedro Alves  <palves@redhat.com>
7513
7514         PR breakpoints/17000
7515         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7516         New function, extracted from software_breakpoint_inserted_here_p.
7517         (software_breakpoint_inserted_here_p): Replace factored out code
7518         by call to find_non_raw_software_breakpoint_inserted_here.
7519         (bp_target_info_copy_insertion_state): New function.
7520         (bkpt_insert_location): Handle the case of a single-step
7521         breakpoint already inserted at the same address.
7522         (bkpt_remove_location): Handle the case of a single-step
7523         breakpoint still inserted at the same address.
7524         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7525         breakpoint already inserted at the same address.
7526         (deprecated_remove_raw_breakpoint): Handle the case of a
7527         non-raw breakpoint still inserted at the same address.
7528         (find_single_step_breakpoint): New function, extracted from
7529         single_step_breakpoint_inserted_here_p.
7530         (find_single_step_breakpoint): New function,
7531         factored out from single_step_breakpoint_inserted_here_p.
7532         (single_step_breakpoint_inserted_here_p): Reimplement.
7533
7534 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
7535
7536         Pushed by Joel Brobecker  <brobecker@adacore.com>
7537         * source.c (show_substitute_path_command): Fix display of matching
7538         substitution rules.
7539
7540 2014-06-03  Gary Benson  <gbenson@redhat.com>
7541
7542         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7543
7544 2014-06-02  Doug Evans  <xdje42@gmail.com>
7545
7546         Add parameter support for Guile.
7547         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7548         (SUBDIR_GUILE_SRCS): Add scm-param.c.
7549         (scm-param.o): New rule.
7550         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7551         (gdbscm_misc_error): Declare.
7552         (gdbscm_canonicalize_command_name): Declare.
7553         (gdbscm_scm_to_host_string): Declare.
7554         (gdbscm_scm_from_host_string): Declare.
7555         (gdbscm_initialize_parameters): Declare.
7556         * guile/guile.c (initialize_gdb_module): Call
7557         gdbscm_initialize_parameters.
7558         * guile/lib/gdb.scm: Export parameter symbols.
7559         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7560         cmdscm_canonicalize_name and made public.  All callers updated.
7561         * guile/scm-exception.c (gdbscm_misc_error): New function.
7562         * guile/scm-param.c: New file.
7563         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7564         (gdbscm_scm_to_host_string): New function.
7565         (gdbscm_scm_from_host_string): New function.
7566         * scm-utils.c (gdbscm_gc_dup_argv): New function.
7567
7568 2014-06-02  Doug Evans  <xdje42@gmail.com>
7569
7570         Add command support for Guile.
7571         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7572         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7573         (scm-cmd.o): New rule.
7574         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7575         (gdbscm_user_error_p): Declare.
7576         (gdbscm_parse_command_name): Declare.
7577         (gdbscm_valid_command_class_p): Declare.
7578         (gdbscm_initialize_commands): Declare.
7579         * guile/guile.c (initialize_gdb_module): Call
7580         gdbscm_initialize_commands.
7581         * guile/lib/gdb.scm: Export command symbols.
7582         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7583         (throw-user-error): New function.
7584         * guile/scm-cmd.c: New file.
7585         * guile/scm-exception.c (user_error_symbol): New static global.
7586         (gdbscm_user_error_p): New function.
7587         (gdbscm_initialize_exceptions): Set user_error_symbol.
7588         * scm-utils.c (gdbscm_gc_xstrdup): New function.
7589
7590 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
7591
7592         * top.c (command_loop): Handle comments here...
7593         (command_line_input): ... not here.
7594
7595 2014-06-02  Doug Evans  <xdje42@gmail.com>
7596
7597         Add progspace support for Guile.
7598         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7599         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7600         (scm-progspace.o): New rule.
7601         * guile/guile-internal.h (pspace_smob): New typedef.
7602         (psscm_pspace_smob_pretty_printers): Declare.
7603         (psscm_pspace_smob_from_pspace): Declare.
7604         (psscm_scm_from_pspace): Declare.
7605         * guile/guile.c (initialize_gdb_module): Call
7606         gdbscm_initialize_pspaces.
7607         * guile/lib/gdb.scm: Export progspace symbols.
7608         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7609         support.
7610         (append-pretty-printer!): Ditto.
7611         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7612         Implement.
7613         * guile/scm-progspace.c: New file.
7614
7615 2014-06-03  Alan Modra  <amodra@gmail.com>
7616
7617         * ppc64-tdep.c (ppc64_standard_linkage8): New.
7618         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7619
7620 2014-06-02  Doug Evans  <dje@google.com>
7621
7622         Add support for skeletonless type units.
7623         * dwarf2read.c (struct dwarf2_per_objfile): New member
7624         n_allocated_type_units.
7625         (struct dwarf2_per_objfile) <tu_stats>: New member
7626         nr_all_type_units_reallocs.
7627         (create_signatured_type_table_from_index): Initialize
7628         n_allocated_type_units
7629         (create_all_type_units): Ditto.
7630         (add_type_unit): Move up in file.  New arg slot.
7631         All callers updated.  Increase space for all_type_units more
7632         efficiently.
7633         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7634         (lookup_dwo_signatured_type): Handle skeletonless TUs.
7635         (lookup_dwp_signatured_type): Ditto.
7636         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7637         All callers updated.
7638         (build_type_psymtabs_1): Leave type_unit_groups as
7639         NULL if no TUs present.
7640         (print_tu_stats): New function.
7641         (process_skeletonless_type_unit): New function.
7642         (process_dwo_file_for_skeletonless_type_units): New
7643         function.
7644         (process_skeletonless_type_units): New function.
7645         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7646         Call print tu_stats if debugging enabled.
7647
7648 2014-06-02  Pedro Alves  <palves@redhat.com>
7649
7650         * breakpoint.c (build_target_command_list): Don't build a command
7651         list if we have any duplicate location that isn't a dprintf.
7652
7653 2014-06-02  Pedro Alves  <palves@redhat.com>
7654
7655         * breakpoint.c (dprintf_breakpoint_hit): New function.
7656         (initialize_breakpoint_ops): Install it as dprintf's
7657         breakpoint_hit method.
7658
7659 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
7660
7661         * source.c (substitute_path_rule_matches): Simplify using
7662         filename_ncmp instead of FILENAME_CMP.
7663
7664 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
7665
7666         * source.c (substitute_path_rule_matches): Remove trailing spaces.
7667
7668 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
7669
7670         * configure.ac: When Guile is available, check for the
7671         availability of 'scm_new_smob'.
7672         * configure, config.h.in: Regenerate.
7673         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7674         function.
7675
7676 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
7677
7678         * frame.c (struct frame_info): Add stop_string field.
7679         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7680         (get_prev_frame_always): Old content moved into
7681         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
7682         TRY_CATCH, handle MEMORY_ERROR exceptions.
7683         (frame_stop_reason_string): New function definition.
7684         * frame.h (unwind_stop_reason_to_string): Extend comment to
7685         mention frame_stop_reason_string.
7686         (frame_stop_reason_string): New function declaration.
7687         * stack.c (frame_info): Switch to frame_stop_reason_string.
7688         (backtrace_command_1): Switch to frame_stop_reason_string.
7689         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7690         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7691         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7692
7693 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
7694
7695         * frame.c (frame_stop_reason_string): Rename to ...
7696         (unwind_stop_reason_to_string): this.
7697         * frame.h (frame_stop_reason_string): Rename to ...
7698         (unwind_stop_reason_to_string): this.
7699         * stack.c (frame_info): Update call to frame_stop_reason_string.
7700         (backtrace_command_1): Likewise.
7701         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7702         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7703
7704 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
7705
7706         * frame.c (remove_prev_frame): New function.
7707         (get_prev_frame_if_no_cycle): Create / discard cleanup using
7708         remove_prev_frame.
7709
7710 2014-05-29  Pedro Alves  <palves@redhat.com>
7711
7712         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7713         and make it const.  When a single-step decays to a continue,
7714         clear 'step', not 'hw_step'.  Pass whether the caller wanted
7715         to step to user_visible_resume_ptid, not what we ask the
7716         target to do.
7717
7718 2014-05-29  Pedro Alves  <palves@redhat.com>
7719
7720         * infrun.c (process_event_stop_test, handle_step_into_function)
7721         (handle_step_into_function_backward): Adjust.
7722         Don't set the even thread's stop_step and call stop_waiting before
7723         calling end_stepping_range.  Instead do that ...
7724         (end_stepping_range): ... here.  Take an ecs pointer parameter.
7725
7726 2014-05-29  Pedro Alves  <palves@redhat.com>
7727
7728         * infrun.c (stop_stepping): Rename to ...
7729         (stop_waiting): ... this.
7730         (proceed): Update comment.
7731         (process_event_stop_test, handle_inferior_event)
7732         (handle_signal_stop, handle_step_into_function)
7733         (handle_step_into_function_backward): Update.
7734
7735 2014-05-29  Pedro Alves  <palves@redhat.com>
7736
7737         * infcall.c (run_inferior_call): Don't check whether the current
7738         thread is running after the proceed call.
7739
7740 2014-05-29  Pedro Alves  <palves@redhat.com>
7741             Tom Tromey  <tromey@redhat.com>
7742
7743         * NEWS: Mention "maint set target-async", "set mi-async", and that
7744         background execution commands are now always available.
7745         * target.h (target_async_permitted): Update comment.
7746         * target.c (target_async_permitted, target_async_permitted_1):
7747         Default to 1.
7748         (set_target_async_command): Rename to ...
7749         (maint_set_target_async_command): ... this.
7750         (show_target_async_command): Rename to ...
7751         (maint_show_target_async_command): ... this.
7752         (_initialize_target): Adjust.
7753         * infcmd.c (prepare_execution_command): Make extern.
7754         * inferior.h (prepare_execution_command): Declare.
7755         * infrun.c (set_observer_mode): Leave target async alone.
7756         * mi/mi-interp.c (mi_interpreter_init): Install
7757         mi_on_sync_execution_done as sync_execution_done observer.
7758         (mi_on_sync_execution_done): New function.
7759         (mi_execute_command_input_handler): Don't print the prompt if we
7760         just started a synchronous command with an async target.
7761         (mi_on_resume): Check sync_execution before printing prompt.
7762         * mi/mi-main.h (mi_async_p): Declare.
7763         * mi/mi-main.c: Include gdbcmd.h.
7764         (mi_async_p): New function.
7765         (mi_async, mi_async_1): New globals.
7766         (set_mi_async_command, show_mi_async_command, mi_async): New
7767         functions.
7768         (exec_continue): Call prepare_execution_command.
7769         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7770         (mi_execute_async_cli_command): Use mi_async_p.
7771         (_initialize_mi_main): Install "set mi-async".  Make
7772         "target-async" a deprecated alias.
7773
7774 2014-05-29  Pedro Alves  <palves@redhat.com>
7775
7776         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7777         (_initialize_cli_interp): Adjust.
7778         * event-loop.c: Include "observer.h".
7779         (start_event_loop): Notify 'command_error' observers instead of
7780         calling display_gdb_prompt.  Remove FIXME comment.
7781         * event-top.c (display_gdb_prompt): Remove call into the
7782         interpreters.
7783         * inf-loop.c: Include "observer.h".
7784         (inferior_event_handler): Notify 'command_error' observers instead
7785         of calling display_gdb_prompt.
7786         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7787         observers instead of calling display_gdb_prompt.
7788         * interps.c (interp_set): Don't call display_gdb_prompt.
7789         (current_interp_display_prompt_p): Delete.
7790         * interps.h (interp_prompt_p): Delete declaration.
7791         (interp_prompt_p_ftype): Delete.
7792         (struct interp_procs) <prompt_proc_p>: Delete field.
7793         (current_interp_display_prompt_p): Delete declaration.
7794         * mi-interp.c (mi_interpreter_prompt_p): Delete.
7795         (_initialize_mi_interp): Adjust.
7796         * tui-interp.c (tui_init): Install 'sync_execution_done' and
7797         'command_error' observers.
7798         (tui_on_sync_execution_done, tui_on_command_error): New
7799         functions.
7800         (tui_display_prompt_p): Delete.
7801         (_initialize_tui_interp): Adjust.
7802
7803 2014-05-29  Pedro Alves  <palves@redhat.com>
7804
7805         PR gdb/13860
7806         * cli/cli-interp.c: Include infrun.h and observer.h.
7807         (cli_uiout, cli_interp): New globals.
7808         (cli_on_signal_received, cli_on_end_stepping_range)
7809         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7810         functions.
7811         (cli_interpreter_init): Install them as 'end_stepping_range',
7812         'signal_received' 'signal_exited', 'exited' and 'no_history'
7813         observers.
7814         (_initialize_cli_interp): Remove cli_interp local.
7815         * infrun.c (handle_inferior_event): Call the several stop reason
7816         observers instead of printing the stop reason directly.
7817         (end_stepping_range): New function.
7818         (print_end_stepping_range_reason, print_signal_exited_reason)
7819         (print_exited_reason, print_signal_received_reason)
7820         (print_no_history_reason): Make static, and add an uiout
7821         parameter.  Print to that instead of to CURRENT_UIOUT.
7822         * infrun.h (print_end_stepping_range_reason)
7823         (print_signal_exited_reason, print_exited_reason)
7824         (print_signal_received_reason print_no_history_reason): New
7825         declarations.
7826         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7827         'mi_uiout'.
7828         <cli_uiout>: New field.
7829         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
7830         uiout for CLI output.  Install 'signal_received',
7831         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7832         observers.
7833         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7834         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7835         (mi_on_no_history): New functions.
7836         (ui_out_free_cleanup): Delete function.
7837         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7838         instead use the one already stored in the MI interpreter data.
7839         (mi_ui_out): Adjust.
7840         * tui/tui-interp.c: Include infrun.h and observer.h.
7841         (tui_interp): New global.
7842         (tui_on_signal_received, tui_on_end_stepping_range)
7843         (tui_on_signal_exited, tui_on_exited)
7844         (tui_on_no_history): New functions.
7845         (tui_init): Install them as 'end_stepping_range',
7846         'signal_received' 'signal_exited', 'exited' and 'no_history'
7847         observers.
7848         (_initialize_tui_interp): Delete tui_interp local.
7849
7850 2014-05-29  Pedro Alves  <palves@redhat.com>
7851
7852         PR gdb/15713
7853         * linux-nat.c (linux_nat_resume_callback): Rename the second
7854         parameter to 'except'.  Skip LP if it points to EXCEPT.
7855         (linux_nat_resume): Don't mark the event lwp as not stopped
7856         before resuming sibling lwps.  Instead ask
7857         linux_nat_resume_callback to skip the event lwp.  Mark it as not
7858         stopped after actually resuming it.
7859         (linux_handle_syscall_trap): Mark the lwp as not stopped after
7860         resuming it.
7861         (wait_lwp): Mark the lwp as stopped here.
7862         (stop_wait_callback): Mark the lwp as not stopped right after
7863         resuming it.  Don't mark lwps as stopped here.
7864         (linux_nat_filter_event): Mark the lwp as stopped earlier.
7865         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7866
7867 2014-05-29  Pedro Alves  <palves@redhat.com>
7868
7869         PR PR15693
7870         * infrun.c (resume): Determine how much to resume depending on
7871         whether the caller wanted a step, not whether we can hardware step
7872         the target.  Mark all threads that we intend to run as running,
7873         unless we're calling an inferior function.
7874         (normal_stop): If the thread is running an infcall, don't finish
7875         thread state.
7876         * target.c (target_resume): Don't mark threads as running here.
7877
7878 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
7879
7880         * serial.c (_initialize_serial): Remove support for
7881         the "set remotebaud" and "show remotebaud" commands.
7882         * NEWS: Add entry documenting the removal of that command.
7883
7884 2014-05-28  Yao Qi  <yao@codesourcery.com>
7885
7886         * charset.c: Fix typo in comments.
7887
7888 2014-05-27  Gary Benson  <gbenson@redhat.com>
7889
7890         * utils.c (internal_vproblem): Prompt for a bug report.
7891
7892 2014-05-26  Andy Wingo  <wingo@igalia.com>
7893
7894         * guile/scm-arch.c (arscm_mark_arch_smob):
7895         * guile/scm-block.c (bkscm_mark_block_smob)
7896         (bkscm_mark_block_syms_progress_smob):
7897         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7898         * guile/scm-exception.c (exscm_mark_exception_smob):
7899         * guile/scm-frame.c (frscm_mark_frame_smob):
7900         * guile/scm-iterator.c (itscm_mark_iterator_smob):
7901         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7902         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7903         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7904         (ppscm_mark_pretty_printer_worker_smob):
7905         * guile/scm-symbol.c (syscm_mark_symbol_smob):
7906         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7907         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7908         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7909         mark functions.
7910         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7911         function.
7912
7913 2014-05-26  Andy Wingo  <wingo@igalia.com>
7914             Doug Evans  <xdje42@gmail.com>
7915
7916         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7917         empty_base_class.  All uses updated.
7918         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7919         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7920         Adapt all callers.
7921         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7922         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7923         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7924         (gdbscm_gsmob_has_property_p, add_property_name)
7925         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7926         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7927         (gdb-object-has-property?, gdb-object-properties): Remove.
7928         (gdb-object-kind): Renamed from gsmob-kind.
7929
7930 2014-05-26  Andy Wingo  <wingo@igalia.com>
7931
7932         * configure.ac (try_guile_versions): Allow building with guile 2.2.
7933         * configure: Regenerate.
7934
7935 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
7936
7937         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7938
7939 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
7940
7941         * record-btrace.c (record_btrace_allow_memory_access): Remove.
7942         (replay_memory_access_read_only, replay_memory_access_read_write)
7943         (replay_memory_access_types, replay_memory_access)
7944         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7945         (cmd_set_record_btrace, cmd_show_record_btrace)
7946         (cmd_show_replay_memory_access): New.
7947         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7948         (record_btrace_remove_breakpoint): Replace
7949         record_btrace_allow_memory_access with replay_memory_access.
7950         (_initialize_record_btrace): Add commands.
7951         * NEWS: Announce it.
7952
7953 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7954
7955         * aarch64-linux-nat.c (asm/ptrace.h): Include.
7956
7957 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7958
7959         * MAINTAINERS (Write After Approval): Move self back from
7960         paper trail.
7961
7962 2014-05-22  Pedro Alves  <palves@redhat.com>
7963
7964         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7965         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7966         (disable_randomization, enum exec_direction_kind)
7967         (execution_direction, stop_registers, start_remote)
7968         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7969         (wait_for_inferior, normal_stop, get_last_target_status)
7970         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7971         (insert_step_resume_breakpoint_at_sal)
7972         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7973         (set_step_info, print_stop_event, signal_stop_state)
7974         (signal_print_state, signal_pass_state, signal_stop_update)
7975         (signal_print_update, signal_pass_update)
7976         (update_signals_program_target, clear_exit_convenience_vars)
7977         (displaced_step_dump_bytes, update_observer_mode)
7978         (signal_catch_update, gdb_signal_from_command): Move
7979         declarations ...
7980         * infrun.h: ... to this new file.
7981         * amd64-tdep.c: Include infrun.h.
7982         * annotate.c: Include infrun.h.
7983         * arch-utils.c: Include infrun.h.
7984         * arm-linux-tdep.c: Include infrun.h.
7985         * arm-tdep.c: Include infrun.h.
7986         * break-catch-sig.c: Include infrun.h.
7987         * breakpoint.c: Include infrun.h.
7988         * common/agent.c: Include infrun.h instead of inferior.h.
7989         * corelow.c: Include infrun.h.
7990         * event-top.c: Include infrun.h.
7991         * go32-nat.c: Include infrun.h.
7992         * i386-tdep.c: Include infrun.h.
7993         * inf-loop.c: Include infrun.h.
7994         * infcall.c: Include infrun.h.
7995         * infcmd.c: Include infrun.h.
7996         * infrun.c: Include infrun.h.
7997         * linux-fork.c: Include infrun.h.
7998         * linux-nat.c: Include infrun.h.
7999         * linux-thread-db.c: Include infrun.h.
8000         * monitor.c: Include infrun.h.
8001         * nto-tdep.c: Include infrun.h.
8002         * procfs.c: Include infrun.h.
8003         * record-btrace.c: Include infrun.h.
8004         * record-full.c: Include infrun.h.
8005         * remote-m32r-sdi.c: Include infrun.h.
8006         * remote-mips.c: Include infrun.h.
8007         * remote-notif.c: Include infrun.h.
8008         * remote-sim.c: Include infrun.h.
8009         * remote.c: Include infrun.h.
8010         * reverse.c: Include infrun.h.
8011         * rs6000-tdep.c: Include infrun.h.
8012         * s390-linux-tdep.c: Include infrun.h.
8013         * solib-irix.c: Include infrun.h.
8014         * solib-osf.c: Include infrun.h.
8015         * solib-svr4.c: Include infrun.h.
8016         * target.c: Include infrun.h.
8017         * top.c: Include infrun.h.
8018         * windows-nat.c: Include infrun.h.
8019         * mi/mi-interp.c: Include infrun.h.
8020         * mi/mi-main.c: Include infrun.h.
8021         * python/py-threadevent.c: Include infrun.h.
8022
8023 2014-05-22  Pedro Alves  <palves@redhat.com>
8024
8025         * infrun.c (handle_inferior_event): Store the exit code for
8026         --return-child-result here, instead of ...
8027         (print_exited_reason): ... here.
8028
8029 2014-05-21  Pedro Alves  <palves@redhat.com>
8030
8031         PR gdb/13860
8032         * gdbthread.h (struct thread_control_state): New field
8033         `command_interp'.
8034         * infrun.c (follow_fork): Copy the new thread control field to the
8035         child fork thread.
8036         (clear_proceed_status_thread): Clear the new thread control field.
8037         (proceed): Set the new thread control field.
8038         * interps.h (command_interp): Declare.
8039         * interps.c (command_interpreter): New global.
8040         (command_interp): New function.
8041         (interp_exec): Set `command_interpreter' while here.
8042         * cli-out.c (cli_uiout_dtor): New function.
8043         (cli_ui_out_impl): Install it.
8044         * mi/mi-interp.c: Include cli-out.h.
8045         (mi_cmd_interpreter_exec): Add comment.
8046         (restore_current_uiout_cleanup): New function.
8047         (ui_out_free_cleanup): New function.
8048         (mi_on_normal_stop): If finishing an execution command started by
8049         a CLI command, or any kind of breakpoint-like event triggered,
8050         print the stop event to the output (CLI) stream.
8051         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8052
8053 2014-05-21  Pedro Alves  <palves@redhat.com>
8054
8055         * cli/cli-cmds.c (list_command): Handle the first "list" after the
8056         current source line having changed.
8057         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8058         * infrun.c (normal_stop): Adjust call to
8059         set_current_sal_from_frame.
8060         * source.c (clear_lines_listed_range): New function.
8061         (set_current_source_symtab_and_line, identify_source_line): Clear
8062         the lines listed range.
8063         (line_info): Handle the first "info line" after the current source
8064         line having changed.
8065         * stack.c (print_stack_frame): Remove center handling.
8066         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
8067         center sal.line.
8068
8069 2014-05-21  Pedro Alves  <palves@redhat.com>
8070
8071         * inf-child.c (inf_child_mourn_inferior): New function.
8072         * inf-child.h (inf_child_mourn_inferior): New declaration.
8073         * darwin-nat.c (darwin_mourn_inferior): Use
8074         inf_child_mourn_inferior.
8075         * gnu-nat.c (gnu_mourn_inferior): Likewise.
8076         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8077         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8078         * nto-procfs.c (procfs_mourn_inferior): Likewise.
8079         * windows-nat.c (windows_mourn_inferior): Likewise.
8080
8081 2014-05-21  Doug Evans  <xdje42@gmail.com>
8082
8083         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
8084
8085 2014-05-21  Doug Evans  <xdje42@gmail.com>
8086
8087         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
8088         (gdbscm_out_of_range_error): Ditto.
8089         (gdbscm_memory_error): Ditto.
8090         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8091         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
8092         (gdbscm_out_of_range_error): Update.
8093         (gdbscm_memory_error): Update.
8094         (gdbscm_scm_to_target_string_unsafe): Delete.
8095
8096 2014-05-21  Pedro Alves  <palves@redhat.com>
8097
8098         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8099         globals.
8100         (inf_child_open_target): New function.
8101         (inf_child_open): Use inf_child_open_target to push the target
8102         instead of erroring out.
8103         (inf_child_disconnect, inf_child_close)
8104         (inf_child_maybe_unpush_target): New functions.
8105         (inf_child_target): Install inf_child_disconnect and
8106         inf_child_close.  Store a pointer to the returned object.
8107         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8108         declarations.
8109         * target.c (auto_connect_native_target): New global.
8110         (show_default_run_target): New function.
8111         (find_default_run_target): Return NULL if automatically connecting
8112         to the native target is disabled.
8113         (_initialize_target): Install set/show auto-connect-native-target.
8114         * NEWS: Mention "set auto-connect-native-target", and "target
8115         native".
8116         * linux-nat.c (super_close): New global.
8117         (linux_nat_close): Call super_close.
8118         (linux_nat_add_target): Store a pointer to the base class's
8119         to_close method.
8120         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8121         inf_child_maybe_unpush.
8122         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8123         already pushed.
8124         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8125         the inferior.  Use inf_child_maybe_unpush_target.
8126         (inf_ttrace_attach): Don't push the target if it is already
8127         pushed.
8128         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8129         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8130         after mourning the inferior.  Use inf_child_maybe_unpush_target.
8131         (darwin_attach_pid): Don't push the target if it is already
8132         pushed.
8133         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8134         mourning the inferior.  Use inf_child_maybe_unpush_target.
8135         (gnu_detach): Use inf_child_maybe_unpush_target.
8136         * go32-nat.c (go32_create_inferior): Don't push the target if it
8137         is already pushed.
8138         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8139         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8140         (procfs_open): Rename to ...
8141         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
8142         comments.  Can target_preopen before changing node.  Call
8143         inf_child_open_target to push the target explicitly.
8144         (procfs_attach): Don't push the target if it is already pushed.
8145         (procfs_detach): Use inf_child_maybe_unpush_target.
8146         (procfs_create_inferior): Don't push the target if it is already
8147         pushed.
8148         (nto_native_ops): New global.
8149         (procfs_open): Reimplement.
8150         (procfs_native_open): New function.
8151         (init_procfs_targets): Install procfs_native_open as to_open of
8152         "target native".  Store a pointer to the "native" target in
8153         nto_native_ops.
8154         * procfs.c (procfs_attach): Don't push the target if it is already
8155         pushed.
8156         (procfs_detach): Use inf_child_maybe_unpush_target.
8157         (procfs_mourn_inferior): Only unpush the target after mourning the
8158         inferior.  Use inf_child_maybe_unpush_target.
8159         (procfs_init_inferior): Don't push the target if it is already
8160         pushed.
8161         * windows-nat.c (do_initial_windows_stuff): Don't push the target
8162         if it is already pushed.
8163
8164 2014-05-21  Pedro Alves  <palves@redhat.com>
8165
8166         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8167         and "procfs" targets are now called "native" instead.
8168
8169 2014-05-21  Pedro Alves  <palves@redhat.com>
8170
8171         * go32-nat.c (go32_open): Delete.
8172         (go32_target): Don't override the to_open method.
8173
8174 2014-05-21  Pedro Alves  <palves@redhat.com>
8175
8176         * nto-procfs.c (procfs_can_run): New function.
8177         (nto_procfs_ops): New global.
8178         (init_procfs_targets): New, based on procfs_target.  Install
8179         "target native" in addition to "target procfs".
8180         (_initialize_procfs): Call init_procfs_targets instead of adding
8181         the target here.
8182
8183 2014-05-21  Pedro Alves  <palves@redhat.com>
8184
8185         * windows-nat.c (windows_target): Don't override to_shortname,
8186         to_longname or to_doc.
8187
8188 2014-05-21  Pedro Alves  <palves@redhat.com>
8189
8190         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8191         to_doc.
8192
8193 2014-05-21  Pedro Alves  <palves@redhat.com>
8194
8195         * darwin-nat.c (_initialize_darwin_inferior): Don't override
8196         to_shortname, to_longname or to_doc.
8197
8198 2014-05-21  Pedro Alves  <palves@redhat.com>
8199
8200         * go32-nat.c (go32_target): Don't override to_shortname,
8201         to_longname or to_doc.
8202
8203 2014-05-21  Pedro Alves  <palves@redhat.com>
8204
8205         * inf-child.c (inf_child_open): Remove mention of "child".
8206         (inf_child_target): Rename target to "native" instead of "child".
8207
8208 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8209
8210         * Makefile.in (SFILES): Delete "regset.c".
8211         (COMMON_OBS): Delete "regset.o".
8212         * regset.c: Remove.
8213         * regset.h (regset_alloc): Delete prototype.
8214
8215 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8216
8217         * sparc-linux-tdep.c (sparc32_linux_gregset)
8218         (sparc32_linux_fpregset): New static regset structures.
8219         (sparc32_linux_init_abi): Drop dynamic regset allocations.
8220         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8221         'fpregset' fields.
8222         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8223         (sparc64_linux_fpregset): New static regset structures.
8224         (sparc64_linux_init_abi): Drop dynamic regset allocations.
8225         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8226         New static regset structures.
8227         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8228         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8229         New static regset structures.
8230         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8231         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8232         New static regset structures.
8233         (sparc64obsd_init_abi): Drop dynamic regset allocations.
8234         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8235         New static regset structures.
8236         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8237
8238 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8239
8240         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8241         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8242         register maps ("regmaps") from "*regset" to "*regmap".  Do this
8243         for all regmap types and variables.
8244         * sparc-linux-tdep.c (sparc32_linux_step_trap)
8245         (sparc32_linux_supply_core_gregset)
8246         (sparc32_linux_collect_core_gregset)
8247         (sparc32_linux_supply_core_fpregset)
8248         (sparc32_linux_collect_core_fpregset): Likewise.
8249         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8250         (sparc_gregmap, sparc_fpregmap): ... these.
8251         (sparc_supply_gregset, sparc_collect_gregset)
8252         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8253         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8254         (_initialize_sparc_nat): Rename regmaps.
8255         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8256         (sparc_gregmap, sparc_fpregmap): ... these.
8257         (sparc_supply_gregset, sparc_collect_gregset)
8258         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8259         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8260         Rename macros to...
8261         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8262         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8263         Likewise.
8264         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8265         Rename to...
8266         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8267         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8268         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8269         regmaps.
8270         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8271         (sparc32_bsd_fpregset): Rename to...
8272         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8273         (sparc32_bsd_fpregmap): ... these.
8274         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8275         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8276         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8277         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8278         (struct sparc_gregmap, struct sparc_fpregmap)
8279         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8280         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8281         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8282         (sparc32_supply_regset, sparc32_collect_gregset)
8283         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8284         prototypes.
8285         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8286         (sparc64_linux_ptrace_gregmap): ... this.
8287         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8288         (_initialize_sparc64_linux_nat): Rename regmaps.
8289         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8290         (sparc64_linux_core_gregmap): ... this.
8291         (sparc64_linux_supply_core_gregset)
8292         (sparc64_linux_collect_core_gregset)
8293         (sparc64_linux_supply_core_fpregset)
8294         (sparc64_linux_collect_core_fpregset): Rename regmaps.
8295         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8296         (sparc64_sol2_fpregset): Rename to...
8297         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8298         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8299         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8300         regmaps.
8301         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8302         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8303         (sparc64_bsd_fpregset): Rename to...
8304         (struct sparc_gregmap, sparc64_sol2_gregmap)
8305         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8306         (sparc64_bsd_fpregmap): ... these.
8307         (sparc64_supply_gregset, sparc64_collect_gregset)
8308         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8309         prototypes.
8310         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8311         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8312         (sparc64fbsd_gregmap): ... this.
8313         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8314         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8315         Rename regmaps.
8316         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8317         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8318         (sparc64nbsd_collect_fpregset): Likewise.
8319         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8320         (sparc64nbsd_gregmap): ... this.
8321         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8322         regmaps.
8323         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8324         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8325         (sparc64obsd_gregmap): ... this.
8326         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8327         regmaps.
8328         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8329         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8330         (sparc32nbsd_gregmap): ... this.
8331         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8332         regmaps.
8333
8334 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8335
8336         * score-tdep.c (score7_linux_gregset): New static regset
8337         structure.
8338         (score7_linux_regset_from_core_section): Remove dynamic regset
8339         allocation.
8340         (score_gdbarch_init): Drop allocation of tdep structure.
8341         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8342
8343 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8344
8345         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8346         regset structures.
8347         (am33_regset_from_core_section): Remove dynamic regset
8348         allocations.
8349
8350 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8351
8352         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8353         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8354         structures.
8355         (mips_linux_regset_from_core_section): Remove dynamic regset
8356         allocations.
8357         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8358         'gregset64', 'fpregset', and 'fpregset64'.
8359         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8360         deleted tdep fields.
8361
8362 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8363
8364         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8365         regset structures.
8366         (amd64_regset_from_core_section): Remove dynamic regset
8367         allocations.
8368         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8369         structure.
8370         (amd64obsd_regset_from_core_section): Remove dynamic regset
8371         allocation.
8372         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8373         Likewise.
8374         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8375         x86-common regset supply function.
8376         * i386-tdep.c (i386_collect_gregset): Make static.
8377         (i386_gregset): New global regset structure.
8378         (i386_fpregset, i386_xstateregset): New static regset structures.
8379         (i386_regset_from_core_section): Remove dynamic regset
8380         allocations.
8381         (i386_gdbarch_init): Remove initialization of tdep fields
8382         'gregset', 'fpregset', and 'xstateregset'.
8383         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8384         'fpregset', and 'xstateregset'.
8385         (i386_collect_gregset): Remove prototype.
8386         (i386_gregset): New declaration.
8387         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8388         structure.
8389         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8390         allocation.
8391
8392 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8393
8394         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8395         (arm_linux_vfpregset): New static regset structures.
8396         (arm_linux_regset_from_core_section): Remove dynamic allocation of
8397         regset structures.
8398         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8399         and 'vfpregset' fields.
8400
8401 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8402
8403         * aarch64-linux-tdep.c (aarch64_linux_gregset)
8404         (aarch64_linux_fpregset): New static regset structures.
8405         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8406         of regset structures.
8407         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8408         'fpregset' fields.
8409
8410 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8411
8412         * regset.h (struct regset): Remove gdbarch field.
8413         * regset.c (regset_alloc): Drop initialization of gdbarch field.
8414         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8415         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8416         Likewise.
8417         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8418         (ppc32_linux_fpregset, ppc32_linux_vrregset)
8419         (ppc32_linux_vsxregset): Likewise.
8420         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8421         via the regcache instead of the regset.
8422         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8423         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8424         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8425         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8426         Likewise.
8427
8428 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8429
8430         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8431         Constify structures.
8432         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8433         (alphanbsd_aout_gregset): Likewise.
8434         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8435         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8436         Likewise.
8437         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8438         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8439         Likewise.
8440         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8441         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8442         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8443         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8444         * m88k-tdep.c (m88k_gregset): Likewise.
8445         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8446         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8447         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8448         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8449         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8450         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8451         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8452         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8453         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8454         Likewise.
8455         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8456         * sh-tdep.h (sh_corefile_gregset): Likewise.
8457         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8458         * vax-tdep.c (vax_gregset): Likewise.
8459
8460 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8461
8462         Fix TLS access for -static -pthread.
8463         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8464         (try_thread_db_load_1): Initialize it.
8465         (thread_db_get_thread_local_address): Call it if LM is zero.
8466         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8467         * target.h (struct target_ops) (to_get_thread_local_address): Add
8468         load_module_addr comment.
8469
8470 2014-05-21  Pedro Alves  <palves@redhat.com>
8471
8472         * dcache.c (dcache_read_memory_partial): If reading the cache line
8473         fails, fallback to reading just the memory the caller wanted.
8474
8475 2014-05-20  Doug Evans  <dje@google.com>
8476
8477         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8478         instead of get_current_arch.
8479
8480 2014-05-20  Pedro Alves  <palves@redhat.com>
8481
8482         * NEWS: Mention that compare-sections now works with all targets.
8483
8484         * remote.c (PACKET_qCRC): New enum value.
8485         (remote_verify_memory): Don't send qCRC if the target has no
8486         execution.  Use packet_support/packet_ok.  If the target doesn't
8487         support the qCRC packet, fallback to a deep memory copy.
8488         (compare_sections_command): Say "target image" instead of "remote
8489         executable".
8490         (_initialize_remote): Add PACKET_qCRC to the list of config
8491         packets that have no associated command.  Extend comment.
8492         * target.c (simple_verify_memory, default_verify_memory): New
8493         function.
8494         * target.h (struct target_ops) <to_verify_memory>: Default to
8495         default_verify_memory.
8496         (simple_verify_memory): New declaration.
8497         * target-delegates.c: Regenerate.
8498
8499 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
8500
8501         * record-btrace.c (record_btrace_step_thread): Check for empty history.
8502
8503 2014-05-20  Hui Zhu  <hui@codesourcery.com>
8504             Yao Qi  <yao@codesourcery.com>
8505
8506         PR backtrace/16558
8507         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8508         and change address of sp and pc.
8509
8510 2014-05-19  Tom Tromey  <tromey@redhat.com>
8511
8512         * gdbtypes.c (rank_function): Use XNEWVEC.
8513         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8514
8515 2014-05-19  Doug Evans  <dje@google.com>
8516
8517         * dwarf2read.c (build_type_psymtabs_1): Renamed from
8518         build_type_unit_groups and moved closer to only caller.  Remove
8519         arguments.  All references updated.  Remove outdated .gdb_index
8520         comment.
8521         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8522         build_type_psymtabs_1.
8523
8524 2014-05-19  Doug Evans  <dje@google.com>
8525
8526         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8527         n_type_unit_groups, all_type_unit_groups.  All uses removed.
8528         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8529         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
8530         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
8531         (add_type_unit_group_to_table): Delete.
8532
8533 2014-05-19  Doug Evans  <dje@google.com>
8534
8535         * eval.c (evaluate_subexp_standard): Add some comments.
8536
8537 2014-05-17  Doug Evans  <xdje42@gmail.com>
8538
8539         * progspace.c (remove_program_space): Delete, unused.
8540         * progspace.h (remove_program_space): Ditto.
8541
8542 2014-05-17  Doug Evans  <xdje42@gmail.com>
8543
8544         * inferior.c (prune_inferiors): Fix comment.
8545         (remove_inferior_command): Call prune_program_spaces.
8546
8547 2014-05-16  Doug Evans  <dje@google.com>
8548
8549         New command line option -D.
8550         * NEWS: Mention it.
8551         * main.c (set_gdb_data_directory): New function.
8552         (captured_main): Recognize -D.  Flag error for --data-directory "".
8553         Call set_gdb_data_directory.
8554         (print_gdb_help): Print --data-directory, -D.
8555         * main.h (set_gdb_data_directory): Declare.
8556         * top.c (staged_gdb_datadir): New static global.
8557         (set_gdb_datadir): Call set_gdb_data_directory
8558         (show_gdb_datadir): New function.
8559         (init_main): Update init of data-directory parameter.
8560
8561 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
8562
8563         Import the "dirfd" gnulib module.
8564         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8565         * gnulib/aclocal.m4: Update.
8566         * gnulib/config.in: Update.
8567         * gnulib/configure: Update.
8568         * gnulib/import/Makefile.am: Update.
8569         * gnulib/import/Makefile.in: Update.
8570         * gnulib/import/dirfd.c: New.
8571         * gnulib/import/m4/dirfd.m4: New.
8572         * gnulib/import/m4/gnulib-cache.m4: Update.
8573         * gnulib/import/m4/gnulib-comp.m4: Update.
8574
8575 2014-05-16  Pierre Muller  <muller@sourceware.org>
8576             Yao Qi  <yao@codesourcery.com>
8577
8578         * valprint.c (print_wchar): Move the code on checking whether
8579         W is a printable wide char to the default branch of switch
8580         statement below.  Call wchar_printable instead of gdb_iswprint.
8581
8582 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
8583
8584         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8585         ldr.w and ldrd instructions.
8586
8587 2014-05-15  Doug Evans  <dje@google.com>
8588
8589         * dwarf2read.c (read_structure_type): Delete outdated comments.
8590
8591 2014-05-14  Tom Tromey  <tromey@redhat.com>
8592
8593         * macrocmd.c (print_macro_definition): Reindent.
8594
8595 2014-05-13  Doug Evans  <xdje42@gmail.com>
8596
8597         * python/py-cmd.c (cmdpy_completer): Add comment.
8598         (completers): Make const.
8599
8600 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
8601
8602         * infrun.c (resume): Remove should_resume (unused).  Move up
8603         declaration of resume_ptid.
8604
8605 2014-05-13  Tom Tromey  <tromey@redhat.com>
8606
8607         * language.h (unop_type_check): Remove.
8608         (binop_type_check): Don't declare.
8609
8610 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
8611
8612         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8613         call to regcache_raw_collect.
8614
8615 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
8616
8617         * mi/mi-console.c (mi_console_raw_packet): Use the value from
8618         mi_console->quote as the quoting character.
8619
8620 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
8621
8622         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8623
8624 2014-04-29  Tom Tromey  <tromey@redhat.com>
8625
8626         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8627         "show debug varobj".
8628
8629 2014-05-07  Kyle McMartin  <kyle@redhat.com>
8630
8631         Pushed by Joel Brobecker  <brobecker@adacore.com>.
8632         * aarch64-tdep.c (aarch64_software_single_step): New function.
8633         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8634         with aarch64_software_single_step.
8635
8636 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
8637
8638         GDB 7.7.1 released.
8639
8640 2014-05-05  Keith Seitz  <keiths@redhat.com>
8641
8642         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8643         variable or history value is successfully parsed.
8644
8645 2014-05-05  Yao Qi  <yao@codesourcery.com>
8646             Pedro Alves  <palves@redhat.com>
8647
8648         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8649         address of blocks that intersects the requested range.  Trim
8650         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8651         sections.
8652         * ctf.c (ctf_xfer_partial): Likewise.
8653
8654 2014-05-05  Yao Qi  <yao@codesourcery.com>
8655
8656         * printcmd.c (display_command): Remove the check to
8657         target_has_execution.
8658
8659 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
8660
8661         * ppcobsd-nat.c: Include "obsd-nat.h".
8662         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8663         add_target.
8664         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8665
8666 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
8667
8668         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8669         and 16-bit signed and unsigned arguments.  Update comment.
8670         (stap_parse_probe_arguments): Extend code to handle such
8671         arguments.  Use warning instead of complaint to notify about
8672         unrecognized bitness.
8673
8674 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
8675
8676         PR breakpoints/16889
8677         * stap-probe.c (stap_parse_probe_arguments): Simplify
8678         check for non-prefixed probes (i.e., probes whose
8679         arguments do not start with "N@").  Always set the
8680         argument type to a sane value.
8681
8682 2014-05-01  David Taylor  <dtaylor@emc.com>
8683
8684         * remote.c (compare_sections_command): Add -r option to compare
8685         all loadable read-only sections.
8686
8687 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
8688
8689         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8690         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8691         Update all callers.
8692         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8693         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8694         Remove unused CORE_ADDR argument.  Update all callers.
8695
8696 2014-04-29  Pedro Alves  <palves@redhat.com>
8697
8698         * remote.c (struct packet_config) <detect>: Extend comment.
8699         (add_packet_config_cmd): Don't set the config's detect or support
8700         fields here.
8701         (init_all_packet_configs): Also initialize the config's 'detect'
8702         field.
8703         (reset_all_packet_configs_support): New function.
8704         (remote_open_1): Call reset_all_packet_configs_support instead of
8705         init_all_packet_configs.
8706         (_initialize_remote): Initialize all packet configs.  Assert that
8707         all packets have an associated command, except a few known
8708         outliers.
8709
8710 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8711
8712         * dwarf2read.c (read_subrange_type): Handle dynamic
8713         DW_AT_lower_bound attributes.
8714
8715 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8716
8717         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8718         dynamic bounds before computing its upper bound.
8719         (ada_discrete_type_low_bound): Same as above with the lower bound.
8720
8721 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8722
8723         * dwarf2read.c (is_dynamic_type): Return true for dynamic
8724         range types.  Adjust the array handling implementation to
8725         take advantage of this change.
8726         (resolve_dynamic_range): New function, mostly extracted from
8727         resolve_dynamic_bounds.
8728         (resolve_dynamic_array): New function, mostly extracted from
8729         resolve_dynamic_bounds.
8730         (resolve_dynamic_bounds): Delete.
8731         (resolve_dynamic_type): Reimplement.  Add handling of
8732         TYPE_CODE_RANGE types.
8733
8734 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8735
8736         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8737         handling of parallel ___XA types.
8738
8739 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8740
8741         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8742         unnecessary second call to static_unwrap_type.
8743
8744 2014-04-27  Hui Zhu  <hui@codesourcery.com>
8745
8746         * stack.c (print_frame_info): Call do_gdb_disassembly with
8747         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8748
8749 2014-04-26  Doug Evans  <xdje42@gmail.com>
8750
8751         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8752
8753 2014-04-25  Pedro Alves  <palves@redhat.com>
8754
8755         PR server/16255
8756         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8757         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
8758         and newline from built string.
8759         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8760         (linux_ptrace_attach_fail_reason): ... this.
8761         * linux-nat.c (linux_nat_attach): Adjust to use
8762         linux_ptrace_attach_fail_reason.
8763
8764 2014-04-25  Pedro Alves  <palves@redhat.com>
8765
8766         * remote.c (struct remote_state): Remove multi_process_aware,
8767         non_stop_aware, cond_tracepoints, cond_breakpoints,
8768         breakpoint_commands, fast_tracepoints, static_tracepoints,
8769         install_in_trace, disconnected_tracing,
8770         enable_disable_tracepoints, string_tracing, and
8771         augmented_libraries_svr4_read fields.
8772         (remote_multi_process_p): Move further below in the file.
8773         (struct packet_config): Add comments.
8774         (update_packet_config): Delete function.
8775         (show_packet_config_cmd): Use packet_config_support.
8776         (add_packet_config_cmd): Use NULL as set callback.
8777         (packet_ok): "set remote foo-packet"-style commands no longer
8778         change config->supported -- adjust.
8779         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8780         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8781         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8782         (PACKET_QNonStop, PACKET_multiprocess_feature)
8783         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8784         (PACKET_DisconnectedTracing_feature)
8785         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8786         (set_remote_protocol_packet_cmd): Delete function.
8787         (packet_config_support, packet_support): New functions.
8788         (set_remote_protocol_Z_packet_cmd): Don't call
8789         update_packet_config.
8790         (remote_query_attached, remote_pass_signals)
8791         (remote_program_signals, remote_threads_info)
8792         (remote_threads_extra_info, remote_start_remote): Use
8793         packet_support.
8794         (remote_start_remote): Use packet_config_support and
8795         packet_support.
8796         (init_all_packet_configs): Set all packets to unknown support,
8797         instead of calling update_packet_config.
8798         (remote_check_symbols): Use packet_support.
8799         (remote_supported_packet): Unconditionally set the packet config's
8800         support status.
8801         (remote_multi_process_feature, remote_non_stop_feature)
8802         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8803         (remote_breakpoint_commands_feature)
8804         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8805         (remote_install_in_trace_feature)
8806         (remote_disconnected_tracing_feature)
8807         (remote_enable_disable_tracepoint_feature)
8808         (remote_string_tracing_feature)
8809         (remote_augmented_libraries_svr4_read_feature): Delete functions.
8810         (remote_protocol_features): Adjust to use remote_supported_packet
8811         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8812         "ConditionalTracepoints", "ConditionalBreakpoints",
8813         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8814         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8815         "EnableDisableTracepoints", and "tracenz".
8816         (remote_query_supported): Use packet_support.
8817         (remote_open_1): Adjust.
8818         (extended_remote_attach_1): Use packet_support.  Switch on the
8819         result of packet_ok instead of checking whether the packet ended
8820         up disabled.
8821         (remote_vcont_resume): Use packet_support.
8822         (remote_resume, remote_stop_ns, fetch_register_using_p)
8823         (remote_prepare_to_store, store_register_using_P)
8824         (check_binary_download, remote_write_bytes): Use packet_support.
8825         (remote_vkill): Use packet_support.  Switch on the result of
8826         packet_ok instead of checking whether the packet ended up
8827         disabled.
8828         (extended_remote_supports_disable_randomization): Use
8829         packet_support.
8830         (extended_remote_run): Switch on the result of packet_ok instead
8831         of checking whether the packet ended up disabled.
8832         (remote_insert_breakpoint, remote_remove_breakpoint)
8833         (remote_insert_watchpoint, remote_remove_watchpoint)
8834         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8835         packet_support.
8836         (remote_search_memory): Use packet_config_support.
8837         (remote_get_thread_local_address, remote_get_tib_address)
8838         (remote_hostio_send_command, remote_can_execute_reverse): Use
8839         packet_support.
8840         (remote_supports_cond_tracepoints)
8841         (remote_supports_cond_breakpoints)
8842         (remote_supports_fast_tracepoints)
8843         (remote_supports_static_tracepoints)
8844         (remote_supports_install_in_trace)
8845         (remote_supports_enable_disable_tracepoint)
8846         (remote_supports_string_tracing)
8847         (remote_can_run_breakpoint_commands): Rewrite, checking whether
8848         the packet config says the feature is enabled or disabled.
8849         (remote_download_tracepoint, remote_trace_set_readonly_regions)
8850         (remote_get_trace_status): Use packet_support.
8851         (remote_set_disconnected_tracing): Adjust to check whether the
8852         feature is enabled with packet_support.
8853         (remote_set_trace_buffer_size, remote_use_agent)
8854         (remote_can_use_agent, remote_supports_btrace): Use
8855         packet_support.
8856         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8857         Use packet_config_support.
8858         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8859         the packet config says the feature is enabled or disabled.
8860         (set_range_stepping): Use packet_support.
8861
8862 2014-04-25  Tom Tromey  <tromey@redhat.com>
8863
8864         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8865         argument.
8866
8867 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
8868
8869         * NEWS: Mention support for C99 variable length arrays.
8870
8871 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
8872
8873         * ada-lang.c (standard_exc): Expand introductory comment.
8874
8875 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
8876             Walfred Tedeschi  <walfred.tedeschi@intel.com>
8877
8878         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8879         AVX512 registers.
8880         (amd64_linux_read_description): Add code to handle AVX512 xstate
8881         mask and return respective tdesc.
8882         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8883         and features/i386/x32-avx512-linux.c.
8884         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8885         (amd64_linux_core_read_description): Add code to handle AVX512
8886         xstate mask and return respective tdesc.
8887         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8888         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8889         calculation.
8890         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8891         (tdesc_amd64_avx512_linux): New prototype.
8892         (tdesc_x32_avx512_linux): Likewise.
8893         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8894         features/i386/x32-avx512.c.
8895         (amd64_ymm_avx512_names): New register names for pseudo
8896         registers YMM16-31.
8897         (amd64_ymmh_avx512_names): New register names for raw registers
8898         YMMH16-31.
8899         (amd64_k_names): New register names for K registers.
8900         (amd64_zmmh_names): New register names for ZMM raw registers.
8901         (amd64_zmm_names): New registers names for ZMM pseudo registers.
8902         (amd64_xmm_avx512_names): New register names for XMM16-31
8903         registers.
8904         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8905         registers.
8906         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8907         if feature is present.
8908         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8909         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8910         (AMD64_NUM_REGS): Adjust to new number of registers.
8911         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8912         registers supplied via XSTATE by AVX512 registers.
8913         (i386_linux_read_description): Add case for AVX512.
8914         * i386-linux-tdep.c: Include i386-avx512-linux.c.
8915         (i386_linux_gregset_reg_offset): Add AVX512 registers.
8916         (i386_linux_core_read_description): Add case for AVX512.
8917         (i386_linux_init_abi): Install supported register note section
8918         for AVX512.
8919         (_initialize_i386_linux_tdep): Add call to tdesc init function for
8920         AVX512.
8921         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8922         registers to be number of zmm7h + 1.
8923         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8924         * i386-tdep.c: Include features/i386/i386-avx512.c.
8925         (i386_zmm_names): Add ZMM pseudo register names array.
8926         (i386_zmmh_names): Add ZMM raw register names array.
8927         (i386_k_names): Add K raw register names array.
8928         (num_lower_zmm_regs): Add constant for the number of lower ZMM
8929         registers. AVX512 has 16 more ZMM registers than there are YMM
8930         registers.
8931         (i386_zmmh_regnum_p): Add function to look up register number of
8932         ZMM raw registers.
8933         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8934         (i386_k_regnum_p): Likewise for K raw registers.
8935         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8936         registers added by AVX512.
8937         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8938         registers added by AVX512.
8939         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8940         added by AVX512.
8941         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8942         (i386_pseudo_register_name): Add ZMM pseudo registers.
8943         (i386_zmm_type): Construct and return vector registers type for ZMM
8944         registers.
8945         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8946         ZMM0-31 pseudo registers and K registers.
8947         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8948         and YMM16-31 registers from register cache.
8949         (i386_pseudo_register_write): Add code to write  K, ZMM and
8950         YMM16-31 registers.
8951         (i386_register_reggroup_p): Add code to include/exclude AVX512
8952         registers in/from respective register groups.
8953         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8954         registers if feature is present in xcr0.
8955         (i386_gdbarch_init): Add code to initialize AVX512 feature
8956         variables in tdep structure, wire in pseudo registers and call
8957         initialize_tdesc_i386_avx512.
8958         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8959         variables.
8960         (i386_regnum): Add AVX512 registers.
8961         (I386_SSE_NUM_REGS): New define for number of SSE registers.
8962         (I386_AVX_NUM_REGS): Likewise for AVX registers.
8963         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8964         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8965         512 bits wide.
8966         (i386_xmm_avx512_regnum_p): New prototype for register look up.
8967         (i386_ymm_avx512_regnum_p): Likewise.
8968         (i386_k_regnum_p): Likewise.
8969         (i386_zmm_regnum_p): Likewise.
8970         (i386_zmmh_regnum_p): Likewise.
8971         * i387-tdep.c : Update year in copyright notice.
8972         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8973         XSAVE buffer.
8974         (XSAVE_YMM_AVX512_ADDR): New macro.
8975         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8976         XSAVE buffer.
8977         (XSAVE_XMM_AVX512_ADDR): New macro.
8978         (xsave_avx512_k_offset): New table for K register offsets in
8979         XSAVE buffer.
8980         (XSAVE_AVX512_K_ADDR): New macro.
8981         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8982         in XSAVE buffer.
8983         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8984         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8985         buffer.
8986         (i387_collect_xsave): Add code to collect AVX512 registers from
8987         XSAVE buffer.
8988         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8989         of XMM16-31 registers.
8990         (I387_NUM_K_REGS): New define for number of K registers.
8991         (I387_K0_REGNUM): New define for K0 register number.
8992         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8993         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8994         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8995         registers.
8996         (I387_YMM16H_REGNUM): New define for YMM16H register number.
8997         (I387_XMM16_REGNUM): New define for XMM16 register number.
8998         (I387_YMM0_REGNUM): New define for YMM0 register number.
8999         (I387_KEND_REGNUM): New define for last K register number.
9000         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9001         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9002         number.
9003         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9004         number.
9005         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9006         size.
9007         * features/Makefile: Add AVX512 related files.
9008         * features/i386/32bit-avx512.xml: New file.
9009         * features/i386/64bit-avx512.xml: Likewise.
9010         * features/i386/amd64-avx512-linux.c: Likewise.
9011         * features/i386/amd64-avx512-linux.xml: Likewise.
9012         * features/i386/amd64-avx512.c: Likewise.
9013         * features/i386/amd64-avx512.xml: Likewise.
9014         * features/i386/i386-avx512-linux.c: Likewise.
9015         * features/i386/i386-avx512-linux.xml: Likewise.
9016         * features/i386/i386-avx512.c: Likewise.
9017         * features/i386/i386-avx512.xml: Likewise.
9018         * features/i386/x32-avx512-linux.c: Likewise.
9019         * features/i386/x32-avx512-linux.xml: Likewise.
9020         * features/i386/x32-avx512.c: Likewise.
9021         * features/i386/x32-avx512.xml: Likewise.
9022         * regformats/i386/amd64-avx512-linux.dat: New file.
9023         * regformats/i386/amd64-avx512.dat: Likewise.
9024         * regformats/i386/i386-avx512-linux.dat: Likewise.
9025         * regformats/i386/i386-avx512.dat: Likewise.
9026         * regformats/i386/x32-avx512-linux.dat: Likewise.
9027         * regformats/i386/x32-avx512.dat: Likewise.
9028         * NEWS: Add note about new support for AVX512.
9029
9030
9031 2014-04-23  Pedro Alves  <palves@redhat.com>
9032
9033         * breakpoint.c (insert_bp_location): Tolerate errors if the
9034         breakpoint is set in a user-loaded objfile.
9035         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
9036         location is marked shlib_disabled.  If the breakpoint is set in a
9037         user-loaded objfile is a GDB-side memory breakpoint, validate it
9038         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
9039         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
9040         flag.
9041         * mem-break.c (memory_validate_breakpoint): New function.
9042         * objfiles.c (userloaded_objfile_contains_address_p): New
9043         function.
9044         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9045         * target.h (memory_validate_breakpoint): New declaration.
9046
9047 2014-04-23  Pedro Alves  <palves@redhat.com>
9048
9049         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9050         the breakpoint is set in a shared library, only suppress
9051         errors for software breakpoints, not hardware breakpoints.
9052
9053 2014-04-22  Pedro Alves  <palves@redhat.com>
9054
9055         * infrun.c (schedlock_applies): New function, factored out from
9056         find_thread_needs_step_over.
9057         (find_thread_needs_step_over): Use it.
9058         (switch_back_to_stepped_thread): Always clear trap_expected if the
9059         step over is finished.  Return early if scheduler locking applies.
9060         Look for the stepping thread and a potential step-over thread with
9061         a single loop.
9062         (currently_stepping_or_nexting_callback): Delete.
9063
9064 2014-04-22  Nick Clifton  <nickc@redhat.com>
9065
9066         * NEWS: Mention that ARM sim now supports tracing.
9067
9068 2014-04-22  Yao Qi  <yao@codesourcery.com>
9069
9070         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9071         to ...
9072         * tracefile.c (tracefile_fetch_registers): ... it.  New
9073         function.
9074         * tracefile.h (tracefile_fetch_registers): Declare.
9075         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
9076         tracefile_fetch_registers.
9077
9078 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
9079
9080         PR gdb/14018
9081         * windows-nat.c (thread_rec): Don't display a warning when
9082         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
9083         fails for any reason, set th->suspended to -1, so that we don't
9084         try to resume such a thread.  Also, don't return NULL in these
9085         cases, to avoid completely ruin the session due to "PC register is
9086         not available" error.
9087         (do_windows_fetch_inferior_registers): Check errors in
9088         GetThreadContext call.
9089         (windows_continue): Accept an additional argument KILLED; if not
9090         zero, ignore errors in the SetThreadContext call, since the
9091         inferior was killed and is shutting down.
9092         (windows_resume, get_windows_debug_event)
9093         (windows_create_inferior, windows_mourn_inferior)
9094         (windows_kill_inferior): All callers of windows_continue changed
9095         to adjust to its new calling sequence.
9096
9097 2014-04-19  Yao Qi  <yao@codesourcery.com>
9098
9099         * ctf.c (ctf_open): Call post_create_inferior.
9100
9101 2014-04-19  Yao Qi  <yao@codesourcery.com>
9102
9103         * ctf.c (handle_id): New static variable.
9104         (ctf_open_dir): Get handle_id from bt_context_add_trace return
9105         value.  Get the declaration of event "register" and get length
9106         of field "contents".
9107
9108 2014-04-19  Yao Qi  <yao@codesourcery.com>
9109
9110         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9111
9112 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
9113
9114         * valops.c (oload_method_static): Remove unnecessary argument
9115         METHOD.  Update all callers.
9116
9117 2014-04-18  Pedro alves  <palves@redhat.com>
9118             Tom Tromey  <tromey@redhat.com>
9119
9120         PR backtrace/15558
9121         * frame.c (get_prev_frame_1): Rename to ...
9122         (get_prev_frame_always): ... this, and make extern.  Adjust.
9123         (skip_artificial_frames): Use get_prev_frame_always.
9124         (frame_unwind_caller_id, frame_pop, get_prev_frame)
9125         (get_frame_unwind_stop_reason): Adjust to rename.
9126         * frame.h (get_prev_frame_always): Declare.
9127         * inline-frame.c: Include frame.h.
9128         (inline_frame_this_id): Use get_prev_frame_always.
9129
9130 2014-04-18  Tristan Gingold  <gingold@adacore.com>
9131
9132         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9133         code by using bfd_mach_o_get_base_address.
9134
9135 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
9136
9137         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9138         (spu_ax_pseudo_register_collect): New function.
9139         (spu_ax_pseudo_register_push_stack): Likewise.
9140         (spu_dwarf_reg_to_regnum): Likewise.
9141         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
9142
9143 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
9144
9145         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9146         Replace FRAME argument with FRAME_ID.
9147         * gdbarch.c, gdbarch.h: Regenerate.
9148         * findvar.c (default_value_from_register): Add GDBARCH argument;
9149         replace FRAME by FRAME_ID.  No longer call get_frame_id.
9150         (value_from_register): Update call to gdbarch_value_from_register.
9151         * value.h (default_value_from_register): Update prototype.
9152         * s390-linux-tdep.c (s390_value_from_register): Update interface
9153         and call to default_value_from_register.
9154         * spu-tdep.c (spu_value_from_register): Likewise.
9155
9156         * findvar.c (address_from_register): Remove TYPE argument.
9157         Do not call value_from_register; use gdbarch_value_from_register
9158         with null_frame_id instead.
9159         * value.h (address_from_register): Update prototype.
9160         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9161         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9162         address_from_register interface change.
9163
9164 2014-04-17  Yao Qi  <yao@codesourcery.com>
9165
9166         * gdbtypes.h: Update comments to link to types and macros'
9167         definitions.
9168
9169 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
9170
9171         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9172
9173 2014-04-16  Keith Seitz  <keiths@redhat.com>
9174
9175         PR gdb/15827
9176         * dwarf2read.c (skip_one_die): Check that all relative-offset
9177         sibling DIEs fall within range of the current reader's buffer.
9178         (read_partial_die): Likewise.
9179
9180 2014-04-16  Keith Seitz  <keiths@redhat.com>
9181
9182         PR c++/16597
9183         * cp-namespace.c (lookup_symbol_file): If the type name of
9184         `this' is NULL, return immediately.
9185
9186 2014-04-14  Keith Seitz  <keiths@redhat.com>
9187
9188         PR c++/16253
9189         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9190         from symbol_matches_domain in symtab.c. All local callers
9191         of symbol_matches_domain updated.
9192         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9193         search STRUCT_DOMAIN.
9194         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9195         independently.  standard_lookup will do that automatically.
9196         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9197         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9198         (cp_lookup_symbol_in_namespace): Likewise.
9199         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9200         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9201         may return a STRUCT_DOMAIN match.
9202         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9203         * cp-support.c: Include language.h.
9204         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9205         VAR_DOMAIN.
9206         * psymtab.c (match_partial_symbol): Compare the requested
9207         domain with the symbol's domain directly.
9208         (lookup_partial_symbol): Likewise.
9209         * symtab.c (lookup_symbol_in_language): Explain when/why
9210         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9211         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9212         appropriate languages.
9213         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9214         and moved to ada-lang.c
9215         (lookup_block_symbol): Explain that this function only returns
9216         symbol matching the requested DOMAIN.
9217         Compare the requested domain with the symbol's domain directly.
9218         (iterate_over_symbols): Compare the requested domain with the
9219         symbol's domain directly.
9220         * symtab.h (symbol_matches_domain): Remove.
9221
9222 2014-04-14  Tom Tromey  <tromey@redhat.com>
9223
9224         PR c++/15246:
9225         * c-exp.y (type_aggregate_p): New function.
9226         (qualified_name, classify_inner_name): Use it.
9227         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9228         and TYPE_TARGET_TYPE of an enum type.
9229         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9230         an enum type.
9231         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9232         handle TYPE_DECLARED_CLASS.
9233         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9234         types.
9235         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9236         * valops.c (enum_constant_from_type): New function.
9237         (value_aggregate_elt): Use it.
9238         * cp-namespace.c (cp_lookup_nested_symbol): Handle
9239         TYPE_CODE_ENUM.
9240
9241 2014-04-14  Tom Tromey  <tromey@redhat.com>
9242
9243         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9244         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9245         const.
9246         * value.h (value_aggregate_elt): Update.
9247
9248 2014-04-14  Tom Tromey  <tromey@redhat.com>
9249
9250         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9251
9252 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9253
9254         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9255         (evaluate_subexp_standard): Pass noside argument.
9256         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9257         if noside equals EVAL_NORMAL. If the subscript yields a vla type
9258         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9259         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9260         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9261
9262 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9263
9264         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9265         points to a constant blob.
9266
9267 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9268
9269         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9270         property and store it as the high bound and flag the range accordingly.
9271         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9272         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9273         * gdbtypes.h (enum range_flags): New enum.
9274         (struct range_bounds): Add flags member.
9275
9276 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9277
9278         * c-typeprint.c (c_type_print_varspec_suffix): Added
9279         check for not yet resolved high bound. If unresolved, print
9280         "variable length" string to the console instead of random
9281         length.
9282
9283 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9284
9285         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9286         value.
9287         (ada_template_to_fixed_record_type_1): Likewise.
9288         (ada_to_fixed_type_1): Likewise.
9289         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9290         (cp_print_value): Likewise.
9291         * d-valprint.c (dynamic_array_type): Likewise.
9292         * findvar.c (address_of_variable): Likewise.
9293         * jv-valprint.c (java_value_print): Likewise.
9294         * valops.c (value_ind): Likewise.
9295         * value.c (coerce_ref): Likewise.
9296
9297 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9298
9299         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9300         value and retrieve the dynamic type size.
9301
9302 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9303
9304         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9305         passed to sizeof is dynamic evaluate the argument to compute the length.
9306
9307 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9308             Joel Brobecker  <brobecker@adacore.com>
9309
9310         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9311         (dwarf2_evaluate_property): New function.
9312         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9313         * dwarf2read.c (attr_to_dynamic_prop): New function.
9314         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9315         attribute.
9316         * gdbtypes.c: Include dwarf2loc.h.
9317         (is_dynamic_type): New function.
9318         (resolve_dynamic_type): New function.
9319         (resolve_dynamic_bounds): New function.
9320         (get_type_length): New function.
9321         (check_typedef): Use get_type_length to compute type length.
9322         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9323         (TYPE_LOW_BOUND_KIND): New macro.
9324         (is_dynamic_type): New function prototype.
9325         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9326         to resolve dynamic properties of the type. Update comment.
9327         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9328
9329 2014-04-14  Richard Henderson  <rth@redhat.com>
9330
9331         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9332
9333 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
9334             Doug Evans  <xdje42@gmail.com>
9335
9336         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9337         dereference TYPE_CODE_REF values.
9338
9339 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
9340
9341         Revert the following changes due to regressions:
9342
9343         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9344         (dwarf2_evaluate_property): New function.
9345         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9346         * dwarf2read.c (attr_to_dynamic_prop): New function.
9347         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9348         attribute.
9349         * gdbtypes.c: Include dwarf2loc.h.
9350         (is_dynamic_type): New function.
9351         (resolve_dynamic_type): New function.
9352         (resolve_dynamic_bounds): New function.
9353         (get_type_length): New function.
9354         (check_typedef): Use get_type_length to compute type length.
9355         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9356         (TYPE_LOW_BOUND_KIND): New macro.
9357         (is_dynamic_type): New function prototype.
9358         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9359         to resolve dynamic properties of the type. Update comment.
9360         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9361
9362         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9363         passed to sizeof is dynamic evaluate the argument to compute the length.
9364
9365         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9366         value and retrieve the dynamic type size.
9367
9368         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9369         (ada_template_to_fixed_record_type_1): Likewise.
9370         (ada_to_fixed_type_1): Likewise.
9371         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9372         (cp_print_value): Likewise.
9373         * d-valprint.c (dynamic_array_type): Likewise.
9374         * eval.c (evaluate_subexp_with_coercion): Likewise.
9375         * findvar.c (address_of_variable): Likewise.
9376         * jv-valprint.c (java_value_print): Likewise.
9377         * valops.c (value_ind): Likewise.
9378         * value.c (coerce_ref): Likewise.
9379
9380         * c-typeprint.c (c_type_print_varspec_suffix): Added
9381         check for not yet resolved high bound. If unresolved, print
9382         "variable length" string to the console instead of random
9383         length.
9384
9385         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9386         property and store it as the high bound and flag the range accordingly.
9387         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9388         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9389         * gdbtypes.h (enum range_flags): New enum.
9390         (struct range_bounds): Add flags member.
9391
9392         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9393         points to a constant blob.
9394
9395         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9396         (evaluate_subexp_standard): Pass noside argument.
9397         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9398         if noside equals EVAL_NORMAL. If the subscript yields a vla type
9399         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9400         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9401         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9402
9403 2014-04-11  Keith Seitz  <keiths@redhat.com>
9404
9405         PR c++/16675
9406         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9407         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9408         reference types.
9409
9410 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9411
9412         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9413         (evaluate_subexp_standard): Pass noside argument.
9414         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9415         if noside equals EVAL_NORMAL. If the subscript yields a vla type
9416         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9417         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9418         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9419
9420 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9421
9422         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9423         points to a constant blob.
9424
9425 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9426
9427         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9428         property and store it as the high bound and flag the range accordingly.
9429         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9430         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9431         * gdbtypes.h (enum range_flags): New enum.
9432         (struct range_bounds): Add flags member.
9433
9434 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9435
9436         * c-typeprint.c (c_type_print_varspec_suffix): Added
9437         check for not yet resolved high bound. If unresolved, print
9438         "variable length" string to the console instead of random
9439         length.
9440
9441 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9442
9443         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9444         (ada_template_to_fixed_record_type_1): Likewise.
9445         (ada_to_fixed_type_1): Likewise.
9446         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9447         (cp_print_value): Likewise.
9448         * d-valprint.c (dynamic_array_type): Likewise.
9449         * eval.c (evaluate_subexp_with_coercion): Likewise.
9450         * findvar.c (address_of_variable): Likewise.
9451         * jv-valprint.c (java_value_print): Likewise.
9452         * valops.c (value_ind): Likewise.
9453         * value.c (coerce_ref): Likewise.
9454
9455 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9456
9457         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9458         value and retrieve the dynamic type size.
9459
9460 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9461
9462         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9463         passed to sizeof is dynamic evaluate the argument to compute the length.
9464
9465 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9466
9467         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9468         (dwarf2_evaluate_property): New function.
9469         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9470         * dwarf2read.c (attr_to_dynamic_prop): New function.
9471         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9472         attribute.
9473         * gdbtypes.c: Include dwarf2loc.h.
9474         (is_dynamic_type): New function.
9475         (resolve_dynamic_type): New function.
9476         (resolve_dynamic_bounds): New function.
9477         (get_type_length): New function.
9478         (check_typedef): Use get_type_length to compute type length.
9479         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9480         (TYPE_LOW_BOUND_KIND): New macro.
9481         (is_dynamic_type): New function prototype.
9482         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9483         to resolve dynamic properties of the type. Update comment.
9484         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9485
9486 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9487
9488         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9489         declaring high/low bounds and change uses accordingly. Call
9490         create_range_type instead of create_static_range_type.
9491         * gdbtypes.c (create_range_type): New function.
9492         (create_range_type): Convert bounds into struct bound_prop and pass
9493         them to create_range_type.
9494         * gdbtypes.h (struct bound_prop): New struct.
9495         (create_range_type): New function prototype.
9496         (struct range_bounds): Use struct bound_prop instead of LONGEST for
9497         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9498         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9499         part of the bound.
9500         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9501
9502 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9503
9504         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9505         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9506         * ada-lang.c: All uses of create_range_type updated.
9507         * coffread.c: All uses of create_range_type updated.
9508         * dwarf2read.c: All uses of create_range_type updated.
9509         * f-exp.y: All uses of create_range_type updated.
9510         * m2-valprint.c: All uses of create_range_type updated.
9511         * mdebugread.c: All uses of create_range_type updated.
9512         * stabsread.c: All uses of create_range_type updated.
9513         * valops.c: All uses of create_range_type updated.
9514         * valprint.c: All uses of create_range_type updated.
9515
9516 2014-04-10  Pedro Alves  <palves@redhat.com>
9517
9518         * breakpoint.c (single_step_breakpoints)
9519         (single_step_gdbarch): Move up in the file.
9520         (one_breakpoint_xfer_memory): New function, factored out from ...
9521         (breakpoint_xfer_memory): ... here.  Also process single-step
9522         breakpoints.
9523
9524 2014-04-09  Tristan Gingold  <gingold@adacore.com>
9525
9526         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9527         comments.
9528         (darwin_decode_exception_message): Free port only after use.
9529
9530 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
9531
9532         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9533         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9534         when setting the size of call_length.
9535
9536 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
9537
9538         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9539         dereference TYPE_CODE_REF values.
9540
9541 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
9542
9543         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9544         end of warning message.
9545
9546 2014-04-03  Doug Evans  <dje@google.com>
9547
9548         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9549         of stub_comp_unit_die, stub_comp_dir is non-NULL.
9550
9551 2014-04-02  Alan Modra  <amodra@gmail.com>
9552
9553         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9554         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
9555         (struct symbol_file_add_from_memory_args): Add size field.
9556         (find_vdso_size): New function.
9557         (add_vsyscall_page): Attempt to find vdso size.
9558
9559 2014-04-01  Doug Evans  <dje@google.com>
9560
9561         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9562
9563 2014-04-01  Tristan Gingold  <gingold@adacore.com>
9564
9565         * darwin-nat.c (darwin_encode_reply): Add prototype.
9566         (darwin_decode_exception_message): Reply to unknown inferiors.
9567         (darwin_decode_message): Handle message by id.  Ignore message
9568         to unknown inferior.
9569         (darwin_wait): Discard unknown messages, add debug trace.
9570
9571 2014-03-31  Doug Evans  <dje@google.com>
9572
9573         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9574         comp_dir_string.
9575
9576 2014-03-31  Doug Evans  <dje@google.com>
9577
9578         New option "set print symbol-loading".
9579         * NEWS: Mention it.
9580         * solib.c (solib_read_symbols): Only print symbol loading messages
9581         if requested.
9582         (solib_add): If symbol loading is in "brief" mode, notify user
9583         symbols are being loaded.
9584         (reload_shared_libraries_1): Ditto.
9585         * symfile.c (print_symbol_loading_off): New static global.
9586         (print_symbol_loading_brief): New static global.
9587         (print_symbol_loading_full): New static global.
9588         (print_symbol_loading_enums): New static global.
9589         (print_symbol_loading): New static global.
9590         (print_symbol_loading_p): New function.
9591         (symbol_file_add_with_addrs): Only print symbol loading messages
9592         if requested.
9593         (_initialize_symfile): Register "print symbol-loading" set/show
9594         command.
9595         * symfile.h (print_symbol_loading_p): Declare.
9596
9597 2014-03-30  Doug Evans  <xdje42@gmail.com>
9598
9599         * infrun.c (set_last_target_status): New function.
9600         (handle_inferior_event): Call it.
9601
9602 2014-03-30  Doug Evans  <xdje42@gmail.com>
9603
9604         * inferior.h (enum stop_kind): Improve comment.
9605
9606 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
9607
9608         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9609         a reference, strip the reference layer before calling
9610         the lang_ops value_has_mutated callback.
9611
9612 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
9613
9614         Remove some globals from our parser.
9615         * language.c (unk_lang_parser): Add "struct parser_state"
9616         argument.
9617         * language.h (struct language_defn) <la_parser>: Likewise.
9618         * parse.c (expout, expout_size, expout_ptr): Remove variables.
9619         (initialize_expout): Add "struct parser_state" argument.
9620         Rewrite function to use the parser state.
9621         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9622         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9623         write_exp_elt_longcst, write_exp_elt_dblcst,
9624         write_exp_elt_decfloatcst, write_exp_elt_type,
9625         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9626         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9627         write_dollar_variable): Likewise.
9628         (parse_exp_in_context_1): Use parser state.
9629         (insert_type_address_space): Add "struct parser_state" argument.
9630         Use parser state.
9631         (increase_expout_size): New function.
9632         * parser-defs.h: Forward declare "struct language_defn" and
9633         "struct parser_state".
9634         (expout, expout_size, expout_ptr): Remove extern declarations.
9635         (parse_gdbarch, parse_language): Rewrite macro declarations to
9636         accept the parser state.
9637         (struct parser_state): New struct.
9638         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9639         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9640         write_exp_elt_decfloatcst, write_exp_elt_type,
9641         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9642         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9643         write_exp_msymbol, write_dollar_variable,
9644         mark_struct_expression, insert_type_address_space): Add "struct
9645         parser_state" argument.
9646         (increase_expout_size): New function.
9647         * utils.c (do_clear_parser_state): New function.
9648         (make_cleanup_clear_parser_state): Likewise.
9649         * utils.h (make_cleanup_clear_parser_state): New function
9650         prototype.
9651         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9652         Update calls to write_exp* in order to pass the parser state.
9653         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9654         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9655         (i386_stap_parse_special_token_three_arg_disp): Likewise.
9656         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9657         * stap-probe.c (stap_parse_register_operand): Likewise.
9658         (stap_parse_single_operand): Likewise.
9659         (stap_parse_argument_1): Likewise.
9660         (stap_parse_argument): Use parser state.
9661         * stap-probe.h: Include "parser-defs.h".
9662         (struct stap_parse_info) <pstate>: New field.
9663         * c-exp.y (parse_type): Rewrite to use parser state.
9664         (yyparse): Redefine to c_parse_internal.
9665         (pstate): New global variable.
9666         (parse_number): Add "struct parser_state" argument.
9667         (write_destructor_name): Likewise.
9668         (type_exp): Update calls to write_exp* and similars in order to
9669         use parser state.
9670         (exp1, exp, variable, qualified_name, space_identifier,
9671         typename, typebase): Likewise.
9672         (write_destructor_name, parse_number, lex_one_token,
9673         classify_name, classify_inner_name, c_parse): Add "struct
9674         parser_state" argument.  Update function to use parser state.
9675         * c-lang.h: Forward declare "struct parser_state".
9676         (c_parse): Add "struct parser_state" argument.
9677         * ada-exp.y (parse_type): Rewrite macro to use parser state.
9678         (yyparse): Redefine macro to ada_parse_internal.
9679         (pstate): New variable.
9680         (write_int, write_object_renaming, write_var_or_type,
9681         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9682         type_int, type_long, type_long_long, type_float, type_double,
9683         type_long_double, type_char, type_boolean, type_system_address):
9684         Add "struct parser_state" argument.
9685         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9686         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9687         var_or_type, aggregate, aggregate_component_list,
9688         positional_list, others, component_group,
9689         component_associations): Update calls to write_exp* and similar
9690         functions in order to use parser state.
9691         (ada_parse, write_var_from_sym, write_int,
9692         write_exp_op_with_string, write_object_renaming,
9693         find_primitive_type, write_selectors, write_ambiguous_var,
9694         write_var_or_type, write_name_assoc, type_int, type_long,
9695         type_long_long, type_float, type_double, type_long_double,
9696         type_char, type_boolean, type_system_address): Add "struct
9697         parser_state" argument.  Adjust function to use parser state.
9698         * ada-lang.c (parse): Likewise.
9699         * ada-lang.h: Forward declare "struct parser_state".
9700         (ada_parse): Add "struct parser_state" argument.
9701         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
9702         calls to both functions.
9703         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9704         parser state.
9705         (yyparse): Redefine macro to f_parse_internal.
9706         (pstate): New variable.
9707         (parse_number): Add "struct parser_state" argument.
9708         (type_exp, exp, subrange, typebase): Update calls to write_exp*
9709         and similars in order to use parser state.
9710         (parse_number): Adjust code to use parser state.
9711         (yylex): Likewise.
9712         (f_parse): New function.
9713         * f-lang.h: Forward declare "struct parser_state".
9714         (f_parse): Add "struct parser_state" argument.
9715         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9716         parser state.
9717         (yyparse): Redefine macro for java_parse_internal.
9718         (pstate): New variable.
9719         (push_expression_name, push_expression_name, insert_exp): Add
9720         "struct parser_state" argument.
9721         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9722         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9723         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9724         PostIncrementExpression, PostDecrementExpression,
9725         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9726         UnaryExpressionNotPlusMinus, CastExpression,
9727         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9728         RelationalExpression, EqualityExpression, AndExpression,
9729         ExclusiveOrExpression, InclusiveOrExpression,
9730         ConditionalAndExpression, ConditionalOrExpression,
9731         ConditionalExpression, Assignment, LeftHandSide): Update
9732         calls to write_exp* and similars in order to use parser state.
9733         (parse_number): Ajust code to use parser state.
9734         (yylex): Likewise.
9735         (java_parse): New function.
9736         (push_variable): Add "struct parser_state" argument.  Adjust
9737         code to user parser state.
9738         (push_fieldnames, push_qualified_expression_name,
9739         push_expression_name, insert_exp): Likewise.
9740         * jv-lang.h: Forward declare "struct parser_state".
9741         (java_parse): Add "struct parser_state" argument.
9742         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9743         parser state.
9744         (yyparse): Redefine macro to m2_parse_internal.
9745         (pstate): New variable.
9746         (type_exp, exp, fblock, variable, type): Update calls to
9747         write_exp* and similars to use parser state.
9748         (yylex): Likewise.
9749         (m2_parse): New function.
9750         * m2-lang.h: Forward declare "struct parser_state".
9751         (m2_parse): Add "struct parser_state" argument.
9752         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9753         * objc-lang.h: Forward declare "struct parser_state".
9754         (end_msglist): Add "struct parser_state" argument.
9755         * p-exp.y (parse_type): Rewrite macro to use parser state.
9756         (yyparse): Redefine macro to pascal_parse_internal.
9757         (pstate): New variable.
9758         (parse_number): Add "struct parser_state" argument.
9759         (type_exp, exp1, exp, qualified_name, variable): Update calls to
9760         write_exp* and similars in order to use parser state.
9761         (parse_number, yylex): Adjust code to use parser state.
9762         (pascal_parse): New function.
9763         * p-lang.h: Forward declare "struct parser_state".
9764         (pascal_parse): Add "struct parser_state" argument.
9765         * go-exp.y (parse_type): Rewrite macro to use parser state.
9766         (yyparse): Redefine macro to go_parse_internal.
9767         (pstate): New variable.
9768         (parse_number): Add "struct parser_state" argument.
9769         (type_exp, exp1, exp, variable, type): Update calls to
9770         write_exp* and similars in order to use parser state.
9771         (parse_number, lex_one_token, classify_name, yylex): Adjust code
9772         to use parser state.
9773         (go_parse): Likewise.
9774         * go-lang.h: Forward declare "struct parser_state".
9775         (go_parse): Add "struct parser_state" argument.
9776
9777 2014-03-27  Doug Evans  <dje@google.com>
9778
9779         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
9780
9781 2014-03-27  Doug Evans  <dje@google.com>
9782
9783         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9784         Remove argument abbrev_section.  All callers updated.
9785
9786 2014-03-27  Doug Evans  <dje@google.com>
9787
9788         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9789         addr_base, ranges_base.
9790
9791 2014-03-26  Keith Seitz  <keiths@redhat.com>
9792
9793         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9794         types, not VAR_DOMAIN.
9795
9796 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
9797
9798         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9799         "ra" registers.
9800         * features/nios2-linux.c: Regenerated.
9801         * features/nios2.c: Regenerated.
9802
9803 2014-03-25  Pedro Alves  <palves@redhat.com>
9804
9805         * cli/cli-script.c (script_from_file): Force the interpreter to
9806         sync mode.
9807
9808 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
9809
9810         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9811         small stack allocation.
9812
9813 2014-03-24  Tristan Gingold  <gingold@adacore.com>
9814
9815         * darwin-nat.c (exc_server): Remove unused prototype.
9816         (darwin_dump_message): Correctly display data on x86_64.
9817         (darwin_encode_reply): Fix style.
9818         Add comments and fix indentation.
9819
9820 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
9821
9822         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9823
9824 2014-03-22  Doug Evans  <xdje42@gmail.com>
9825
9826         * infcmd.c: Whitespace fixes.
9827         (interrupt_command): Merge two function comments into one.
9828
9829 2014-03-22  Doug Evans  <xdje42@gmail.com>
9830
9831         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9832         All uses updated.
9833
9834 2014-03-22  Yao Qi  <yao@codesourcery.com>
9835
9836         * remote.c (target_read_live_memory): Remove.
9837         (memory_xfer_live_readonly_partial): Rename it to
9838         remote_xfer_live_readonly_partial.  Remove argument 'object'.
9839         All callers updated.  Call remote_read_bytes_1
9840         instead of target_read_live_memory.
9841         * tracepoint.c (set_traceframe_number): Remove.
9842         (make_cleanup_restore_traceframe_number): Likewise .
9843         * tracepoint.h (set_traceframe_number): Remove declaration.
9844         (make_cleanup_restore_traceframe_number): Likewise.
9845
9846 2014-03-22  Yao Qi  <yao@codesourcery.com>
9847
9848         * remote.c (remote_read_bytes): Move code on reading from the
9849         remote stub to ...
9850         (remote_read_bytes_1): ... here.  New function.
9851
9852 2014-03-22  Yao Qi  <yao@codesourcery.com>
9853
9854         * ctf.c (ctf_xfer_partial): Check the return value of
9855         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9856         return TARGET_XFER_UNAVAILABLE.
9857         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9858         * target.c (target_read_live_memory): Move it to remote.c.
9859         (memory_xfer_live_readonly_partial): Likewise.
9860         (memory_xfer_partial_1): Move some code to remote_read_bytes.
9861         * remote.c (target_read_live_memory): Moved from target.c.
9862         (memory_xfer_live_readonly_partial): Likewise.
9863         (remote_read_bytes): Factored out from
9864         memory_xfer_partial_1.
9865
9866 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
9867
9868         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9869         NULL pointer.
9870
9871 2014-03-21  Pedro Alves  <palves@redhat.com>
9872
9873         * infrun.c (normal_stop): Extend comment.
9874
9875 2014-03-21  Hui Zhu  <hui@codesourcery.com>
9876             Pedro Alves  <palves@redhat.com>
9877
9878         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9879         static buffer.
9880         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9881         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9882         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9883
9884 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
9885
9886         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9887         `z' formatted output modifier.
9888
9889 2014-03-20  Tom Tromey  <tromey@redhat.com>
9890             Sergio Durigan Junior  <sergiodj@redhat.com>
9891
9892         * probe.c (parse_probes): Turn assert into an ordinary error.
9893         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9894         exceptions when parsing probes.  Rearrange the code for clarity.
9895
9896 2014-03-20  Tom Tromey  <tromey@redhat.com>
9897
9898         PR gdb/14135
9899         * top.c (execute_command): Only dispatch events if the command
9900         started the target.
9901
9902 2014-03-20  Tom Tromey  <tromey@redhat.com>
9903
9904         PR cli/15718
9905         * infcall.c: Include event-top.h.
9906         (run_inferior_call): Call async_disable_stdin if needed.
9907
9908 2014-03-20  Pedro Alves  <palves@redhat.com>
9909
9910         * infrun.c (prepare_to_proceed): Delete.
9911         (thread_still_needs_step_over): New function.
9912         (find_thread_needs_step_over): New function.
9913         (proceed): If the current thread needs a step-over, set its
9914         steping_over_breakpoint flag.  Adjust to use
9915         find_thread_needs_step_over instead of prepare_to_proceed.
9916         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9917         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9918         breakpoint.
9919         (switch_back_to_stepped_thread): Step over breakpoints of all
9920         threads not the stepping thread, before switching back to the
9921         stepping thread.
9922
9923 2014-03-20  Pedro Alves  <palves@redhat.com>
9924
9925         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9926         extern.
9927         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9928         * infrun.c (saved_singlestep_ptid)
9929         (stepping_past_singlestep_breakpoint): Delete.
9930         (resume): Remove stepping_past_singlestep_breakpoint handling.
9931         (proceed): Store the prev_pc of the stepping thread too.
9932         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
9933         singlestep_pc.
9934         (enum infwait_states): Delete infwait_thread_hop_state.
9935         (struct execution_control_state) <hit_singlestep_breakpoint>: New
9936         field.
9937         (handle_inferior_event): Adjust.
9938         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9939         handling and the thread-hop code.  Before removing single-step
9940         breakpoints, check whether the thread hit a single-step breakpoint
9941         of another thread.  If it did, the trap is not a random signal.
9942         (switch_back_to_stepped_thread): If the event thread hit a
9943         single-step breakpoint, unblock it before switching to the
9944         stepping thread.  Handle the case of the stepped thread having
9945         advanced already.
9946         (keep_going): Handle the case of the current thread moving past a
9947         single-step breakpoint.
9948
9949 2014-03-20  Pedro Alves  <palves@redhat.com>
9950
9951         PR breakpoints/7143
9952         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9953         are being stepped over.
9954         (breakpoint_address_match): Make extern.
9955         * breakpoint.h (breakpoint_address_match): New declaration.
9956         * inferior.h (stepping_past_instruction_at): New declaration.
9957         * infrun.c (struct step_over_info): New type.
9958         (step_over_info): New global.
9959         (set_step_over_info, clear_step_over_info)
9960         (stepping_past_instruction_at): New functions.
9961         (handle_inferior_event): Clear the step-over info when
9962         trap_expected is cleared.
9963         (resume): Remove now stale comment.
9964         (clear_proceed_status): Clear step-over info.
9965         (proceed): Adjust step-over handling to set or clear the step-over
9966         info instead of removing all breakpoints.
9967         (handle_signal_stop): When setting up a thread-hop, don't remove
9968         breakpoints here.
9969         (stop_stepping): Clear step-over info.
9970         (keep_going): Adjust step-over handling to set or clear step-over
9971         info and then always inserting breakpoints, instead of removing
9972         all breakpoints when stepping over one.
9973
9974 2014-03-20  Pedro Alves  <palves@redhat.com>
9975
9976         * infrun.c (previous_inferior_ptid): Adjust comment.
9977         (deferred_step_ptid): Delete.
9978         (infrun_thread_ptid_changed, prepare_to_proceed)
9979         (init_wait_for_inferior): Adjust.
9980         (handle_signal_stop): Delete deferred_step_ptid handling.
9981
9982 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
9983
9984         PR gdb/15358
9985         * defs.h (sync_quit_force_run): New declaration.
9986         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9987         * event-top.c (async_sigterm_handler): New declaration.
9988         (async_sigterm_token): New variable.
9989         (async_init_signals): Create also async_sigterm_token.
9990         (async_sigterm_handler): New function.
9991         (sync_quit_force_run): New variable.
9992         (handle_sigterm): Replace quit_force call by other calls.
9993         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9994
9995 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
9996
9997         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9998         offset into SPE pseudo registers.
9999
10000 2014-03-18  Pedro Alves  <palves@redhat.com>
10001
10002         PR gdb/13860
10003         * inferior.h (print_stop_event): Declare.
10004         * infrun.c (print_stop_event): New, factored out from ...
10005         (normal_stop): ... this.
10006         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10007         of bpstat_print/print_stack_frame.
10008
10009 2014-03-17  Tom Tromey  <tromey@redhat.com>
10010
10011         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10012
10013 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
10014
10015         * ada-lang.c (decode_constrained_packed_array): Perform a
10016         minimal coercion for reference with coerce_ref instead of
10017         ada_coerce_ref.
10018
10019 2014-03-17  Tristan Gingold  <gingold@adacore.com>
10020
10021         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10022         (darwin_solib_create_inferior_hook): Emit a warning if version
10023         is unhandled.
10024
10025 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
10026
10027         * python/py-value.c (get_field_flag): Cast flag_name argument to
10028         PyObject_GetAttrString to support Python 2.4.
10029
10030 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10031
10032         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10033         (Global Maintainers): Remove Jan Kratochvil.
10034
10035 2014-03-14  Pedro Alves  <palves@redhat.com>
10036
10037         * inferior.h (terminal_ours_for_output): Rename to ...
10038         (child_terminal_ours_for_output): ... this.
10039         (terminal_save_ours): Rename to ...
10040         (child_terminal_save_ours): ... this.
10041         (terminal_ours): Rename to ...
10042         (child_terminal_ours): ... this.
10043         (terminal_inferior): Rename to ...
10044         (child_terminal_inferior): ... this.
10045         (terminal_init_inferior): Rename to ...
10046         (child_terminal_init_inferior): ... this.
10047         (terminal_init_inferior_with_pgrp): Rename to ...
10048         (child_terminal_init_inferior_with_pgrp): ... this.
10049         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10050         (child_terminal_init_with_pgrp): ... this.
10051         (terminal_save_ours): Rename to ...
10052         (child_terminal_save_ours): ... this.
10053         (terminal_init_inferior): Rename to ...
10054         (child_terminal_init): ... this.  Adjust.
10055         (terminal_inferior): Rename to ...
10056         (child_terminal_inferior): ... this.
10057         (terminal_ours_for_output): Rename to ...
10058         (child_terminal_ours_for_output): ... this.  Adjust.
10059         (terminal_ours): Rename to ...
10060         (child_terminal_ours): ... this.
10061         (terminal_ours_1): Rename to ...
10062         (child_terminal_ours_1): ... this.  Adjust.
10063         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10064         * windows-nat.c (do_initial_windows_stuff): Adjust.
10065         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10066         (gnu_terminal_init): ... this.  Adjust.
10067         (gnu_target): Adjust.
10068         * inf-child.c (inf_child_target): Adjust.
10069
10070 2014-03-13  Doug Evans  <xdje42@gmail.com>
10071
10072         PR guile/16612
10073         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10074         new eq?-hashtab.
10075
10076 2014-03-13  Doug Evans  <xdje42@gmail.com>
10077
10078         * value.c (record_latest_value): Call release_value_or_incref
10079         instead of release_value.
10080
10081 2014-03-13  Pedro Alves  <palves@redhat.com>
10082
10083         * procfs.c (procfs_target): Don't override to_shortname,
10084         to_longname or to_doc.
10085
10086 2014-03-13  Pedro Alves  <palves@redhat.com>
10087
10088         * inf-child.c (inf_child_open, inf_child_target): Don't mention
10089         Unix in user visible strings.
10090
10091 2014-03-12  Stan Shebs  <stan@codesourcery.com>
10092
10093         * gdbtypes.h: Annotate comments for Doxygen, add a page
10094         block comment with some general info.
10095
10096 2014-03-12  Pedro Alves  <palves@redhat.com>
10097
10098         * infcmd.c (prepare_execution_command): New function, factored out
10099         from several execution commands.
10100         (run_command_1, continue_command, step_1, jump_command)
10101         (signal_command, until_command, advance_command, finish_command)
10102         (attach_command): Use prepare_execution_command.
10103
10104 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
10105
10106         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10107         (MAX_BPTS): Define.
10108         (MAX_WPTS): Define.
10109         (struct arm_linux_thread_points): Removed.
10110         (struct arm_linux_process_info): New.
10111         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10112         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10113         (arm_linux_find_breakpoints_by_tid): Removed.
10114         (struct arch_lwp_info): New.
10115         (arm_linux_find_process_pid): New functions.
10116         (arm_linux_add_process): New functions.
10117         (arm_linux_process_info_get): New functions.
10118         (arm_linux_forget_process): New function.
10119         (arm_linux_get_debug_reg_state): New function.
10120         (struct update_registers_data): New.
10121         (update_registers_callback): New function.
10122         (arm_linux_insert_hw_breakpoint1): Updated.
10123         (arm_linux_remove_hw_breakpoint1): Updated.
10124         (arm_linux_insert_hw_breakpoint): Updated.
10125         (arm_linux_remove_hw_breakpoint): Updated.
10126         (arm_linux_insert_watchpoint): Updated.
10127         (arm_linux_remove_watchpoint): Updated.
10128         (arm_linux_new_thread): Updated.
10129         (arm_linux_prepare_to_resume): New function.
10130         (arm_linux_new_fork): New function.
10131         (_initialize_arm_linux_nat): Updated.
10132
10133 2014-03-12  Pedro Alves  <palves@redhat.com>
10134
10135         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10136
10137 2014-03-12  Tom Tromey  <tromey@redhat.com>
10138
10139         * inf-child.c (return_zero): New function.
10140         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10141         * aix-thread.c (aix_thread_inferior_created): New function.
10142         (aix_thread_attach): Remove.
10143         (init_aix_thread_ops): Don't set to_attach.
10144         (_initialize_aix_thread): Register inferior_created observer.
10145         * corelow.c (init_core_ops): Don't set to_attach or
10146         to_create_inferior.
10147         * exec.c (init_exec_ops): Don't set to_attach or
10148         to_create_inferior.
10149         * infcmd.c (run_command_1): Use find_run_target.  Make direct
10150         target calls.
10151         (attach_command): Use find_attach_target.  Make direct target
10152         calls.
10153         * record-btrace.c (init_record_btrace_ops): Don't set
10154         to_create_inferior.
10155         * record-full.c (record_full_can_async_p, record_full_is_async_p):
10156         Remove.
10157         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
10158         set to_create_inferior.
10159         * target.c (complete_target_initialization): Add assertion.
10160         (target_create_inferior): Remove.
10161         (find_default_attach, find_default_create_inferior): Remove.
10162         (find_attach_target, find_run_target): New functions.
10163         (find_default_is_async_p, find_default_can_async_p)
10164         (target_supports_non_stop, target_attach): Remove.
10165         (init_dummy_target): Don't set to_create_inferior or
10166         to_supports_non_stop.
10167         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
10168         TARGET_DEFAULT_FUNC.
10169         <to_create_inferior>: Add comment.
10170         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10171         TARGET_DEFAULT_RETURN.
10172         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10173         (find_attach_target, find_run_target): Declare.
10174         (target_create_inferior): Remove.
10175         (target_has_execution_1): Update comment.
10176         (target_supports_non_stop): Remove.
10177         * target-delegates.c: Rebuild.
10178
10179 2014-03-12  Pedro Alves  <palves@redhat.com>
10180
10181         * inf-child.h: Update comment to not mention Unix.
10182
10183 2014-03-12  Pedro Alves  <palves@redhat.com>
10184
10185         * inf-child.c: Update top comment to not mention Unix.  Add
10186         generic comment describing how this target is meant to be used.
10187         (inf_child_post_attach, inf_child_post_startup_inferior)
10188         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10189         Unix in comment.
10190
10191 2014-03-12  Pedro Alves  <palves@redhat.com>
10192
10193         * nto-procfs.c: Include inf-child.h.
10194         (procfs_ops): Delete global.
10195         (procfs_can_run): Delete method.
10196         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10197         target pointer instead of referencing procfs_ops.
10198         (procfs_prepare_to_store): Delete.
10199         (init_procfs_ops): Delete function.
10200         (procfs_target): New function, based on init_procfs_ops, but
10201         inherit inf_child_target.
10202         (_initialize_procfs): Use procfs_target.
10203
10204 2014-03-12  Pedro Alves  <palves@redhat.com>
10205
10206         * windows-nat.c: Include inf-child.h.
10207         (windows_ops): Delete global.
10208         (windows_open, windows_prepare_to_store, windows_can_run): Delete
10209         methods.
10210         (init_windows_ops): Delete function.
10211         (windows_target): New function, based on init_windows_ops, but
10212         inherit inf_child_target.
10213         (_initialize_windows_nat): Use windows_target.  Install x86
10214         specific target methods here.
10215
10216 2014-03-10  Doug Evans  <xdje42@gmail.com>
10217
10218         * guile/guile.c (call_initialize_gdb_module): New function.
10219         (initialize_guile): Replace call to scm_init_guile with call to
10220         scm_with_guile.
10221
10222 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
10223
10224         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10225         in call to TYPE_CODE macro.
10226
10227 2014-03-10  Jerome Guitton  <guitton@adacore.com>
10228
10229         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10230         Resolve tagged types to full view.
10231
10232 2014-03-10  Hui Zhu  <hui@codesourcery.com>
10233
10234         * target.h (target_insert_breakpoint): Remove "hardware" from its
10235         comments.
10236
10237 2014-03-07  Doug Evans  <dje@google.com>
10238
10239         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10240
10241 2014-03-07  Doug Evans  <dje@google.com>
10242
10243         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10244         Remove unused local comp_dir_attr.  Assert exactly one of
10245         stub_comp_unit_die, stub_comp_dir is non-NULL.
10246
10247 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
10248
10249         * target.h (complete_target_initialization, add_target):
10250         Add comment.
10251
10252 2014-03-07  Pedro Alves  <palves@redhat.com>
10253
10254         * go32-nat.c: Include inf-child.h.
10255         (go32_ops): Delete global.
10256         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10257         Delete methods.
10258         (go32_create_inferior): Push the passed in target pointer instead
10259         of referencing go32_ops.
10260         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
10261         (go32_target): New function, based on init_go32_ops, but inherit
10262         inf_child_target.
10263         (_initialize_go32_nat): Use go32_target.  Move parts of
10264         init_go32_ops here.
10265
10266 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
10267
10268         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10269         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10270         SYMBOL_VALUE_ADDRESS.
10271         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10272
10273 2014-03-06  Yao Qi  <yao@codesourcery.com>
10274
10275         * breakpoint.c (get_tracepoint_by_number): Remove argument
10276         optional_p.  All callers updated.  Adjust comments.  Update
10277         output message.
10278         * breakpoint.h (get_tracepoint_by_number): Update declaration.
10279
10280 2014-03-06  Yao Qi  <yao@codesourcery.com>
10281
10282         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
10283         early if get_number returns zero.  Use 'p' instead of 'args'.
10284
10285 2014-03-06  Yao Qi  <yao@codesourcery.com>
10286
10287         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10288         message.
10289
10290 2014-03-06  Yao Qi  <yao@codesourcery.com>
10291
10292         PR breakpoints/16508
10293         * tracepoint.c (check_trace_running): New function.
10294         (trace_find_command): Move code to check_trace_running and
10295         call check_trace_running.
10296         (trace_find_pc_command): Likewise.
10297         (trace_find_tracepoint_command): Likewise.
10298         (trace_find_line_command): Likewise.
10299         (trace_find_range_command): Likewise.
10300         * tracepoint.h (check_trace_running): Likewise.
10301         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10302
10303 2014-03-06  Yao Qi  <yao@codesourcery.com>
10304
10305         * target.h (struct target_ops) <to_traceframe_info>: Use
10306         TARGET_DEFAULT_NORETURN (tcomplain ()).
10307         * target-delegates.c: Regenerated.
10308
10309 2014-03-05  Pedro Alves  <palves@redhat.com>
10310
10311         PR gdb/16575
10312         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
10313         void.  Update comment.
10314         (dcache_xfer_memory): Delete.
10315         (dcache_read_memory_partial): New, based on the read bits of
10316         dcache_xfer_memory.
10317         (dcache_update): Add status parameter.  Use ULONGEST for len, and
10318         adjust.  Discard cache lines if the reason for the update was
10319         error.
10320         * dcache.h (dcache_xfer_memory): Delete declaration.
10321         (dcache_read_memory_partial): New declaration.
10322         (dcache_update): Update prototype.
10323         * target.c (raw_memory_xfer_partial): Update the dcache here.
10324         (memory_xfer_partial_1): Don't handle dcache writes here.
10325
10326 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
10327
10328         * remote-sim.c (gdbsim_load): Add const to prog.
10329
10330 2014-03-03  Tom Tromey  <tromey@redhat.com>
10331
10332         * elfread.c (probe_key): Change to bfd_data.
10333         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10334         now per-BFD, not per-objfile.
10335         * stap-probe.c (stap_probe_destroy): Update comment.
10336         (handle_stap_probe): Allocate on the per-BFD obstack.
10337
10338 2014-03-03  Tom Tromey  <tromey@redhat.com>
10339
10340         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10341         * breakpoint.c (create_longjmp_master_breakpoint): Use
10342         get_probe_address.
10343         (add_location_to_breakpoint, bkpt_probe_insert_location)
10344         (bkpt_probe_remove_location): Update.
10345         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10346         * elfread.c (elf_symfile_relocate_probe): Remove.
10347         (elf_probe_fns): Update.
10348         (insert_exception_resume_breakpoint): Change type of "probe"
10349         parameter to bound_probe.
10350         (check_exception_resume): Update.
10351         * objfiles.c (objfile_relocate1): Don't relocate probes.
10352         * probe.c (bound_probe_s): New typedef.
10353         (parse_probes): Use get_probe_address.  Set sal's objfile.
10354         (find_probe_by_pc): Return a bound_probe.
10355         (collect_probes): Return a VEC(bound_probe_s).
10356         (compare_probes): Update.
10357         (gen_ui_out_table_header_info): Change type of "probes"
10358         parameter.  Update.
10359         (info_probes_for_ops): Update.
10360         (get_probe_address): New function.
10361         (probe_safe_evaluate_at_pc): Update.
10362         * probe.h (struct probe_ops) <get_probe_address>: New field.
10363         <set_semaphore, clear_semaphore>: Add objfile parameter.
10364         (struct probe) <objfile>: Remove field.
10365         <arch>: New field.
10366         <address>: Update comment.
10367         (struct bound_probe): New.
10368         (find_probe_by_pc): Return a bound_probe.
10369         (get_probe_address): Declare.
10370         * solib-svr4.c (struct probe_and_action) <address>: New field.
10371         (hash_probe_and_action, equal_probe_and_action): Update.
10372         (register_solib_event_probe): Add address parameter.
10373         (solib_event_probe_at): Update.
10374         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
10375         get_probe_address.
10376         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10377         (stap_get_probe_address): New function.
10378         (stap_can_evaluate_probe_arguments, compute_probe_arg)
10379         (compile_probe_arg): Update.
10380         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10381         address.
10382         (handle_stap_probe): Don't relocate the probe.
10383         (stap_relocate): Remove.
10384         (stap_gen_info_probes_table_values): Update.
10385         (stap_probe_ops): Remove stap_relocate.
10386         * symfile-debug.c (debug_sym_relocate_probe): Remove.
10387         (debug_sym_probe_fns): Update.
10388         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10389         * symtab.c (init_sal): Use memset.
10390         * symtab.h (struct symtab_and_line) <objfile>: New field.
10391         * tracepoint.c (start_tracing, stop_tracing): Update.
10392
10393 2014-03-03  Tom Tromey  <tromey@redhat.com>
10394
10395         * probe.h (parse_probes, find_probe_by_pc)
10396         (find_probes_in_objfile): Fix comments.
10397
10398 2014-03-02  Doug Evans  <xdje42@gmail.com>
10399
10400         * infrun.c (handle_signal_stop): Replace test for
10401         TARGET_WAITKIND_STOPPED with an assert.
10402
10403 2014-03-02  Doug Evans  <xdje42@gmail.com>
10404
10405         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10406
10407 2014-03-02  Doug Evans  <xdje42@gmail.com>
10408
10409         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10410
10411 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10412
10413         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10414
10415 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10416
10417         * i386obsd-nat.c: Include "obsd-nat.h".
10418         (_initialize_i386obsd_nat): Call obsd_add_target instead of
10419         add_target.
10420         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10421
10422 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10423
10424         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10425
10426 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10427
10428         * mips64obsd-nat.c: Include "obsd-nath".
10429         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10430         add_target
10431         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10432
10433 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10434
10435         * amd64obsd-nat.c: Include "obsd-nat,h.
10436         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10437         add_target.
10438         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10439
10440 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
10441
10442         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10443         (find_overload_match): Update call to find_oload_champ.
10444         (find_oload_champ_namespace_loop): Likewise
10445
10446 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
10447
10448         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10449
10450         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10451         * config/sparc/obsd64.mh: New file.
10452         * sparc64obsd-nat.c: New file.
10453
10454         * obsd-nat.h: New file.
10455         * obsd-nat.c: New file.
10456         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10457         (ALLDEPFILES): Add obsd-nat.c.
10458
10459 2014-02-28  Tom Tromey  <tromey@redhat.com>
10460
10461         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
10462         * cli-out.h (cli_ui_out_impl): Now const.
10463         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
10464         * ui-out.c (struct ui_out) <impl>: Now const.
10465         (default_ui_out_impl): Now const.
10466         (ui_out_new): Make 'impl' parameter const.
10467         * ui-out.h (ui_out_new): Update.
10468
10469 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
10470
10471         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10472
10473 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
10474
10475         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10476
10477 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
10478
10479         Additional PR 8882 fix.
10480         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10481
10482 2014-02-27  Pedro Alves  <palves@redhat.com>
10483
10484         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10485         isn't set.
10486
10487 2014-02-27  Pedro Alves  <palves@redhat.com>
10488
10489         PR 12702
10490         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10491         * nat/linux-waitpid.c: Include string.h.
10492         (status_to_str): Moved here and made extern.
10493         * nat/linux-waitpid.h (status_to_str): New declaration.
10494
10495 2014-02-27  Hui Zhu  <hui@codesourcery.com>
10496
10497         PR 12702
10498         * infrun.c (ptid_match): Move ...
10499         * common/ptid.c (ptid_match): ... here.
10500         * inferior.h (ptid_match): Move ...
10501         * common/ptid.h (ptid_match): ... here.
10502
10503 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
10504
10505         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10506         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10507         gdb_target_obs.
10508
10509 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
10510
10511         * obsd-tdep.c (obsd_auxv_parse): New function.
10512         (obsd_init_abi): Set auxv_parse.
10513
10514         * gdbarch.sh (auxv_parse): New.
10515         * gdbarch.h: Regenerated.
10516         * gdbarch.c: Regenerated.
10517         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10518
10519 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
10520
10521         * guile/scm-value.c (gdbscm_history_append_x): New function.
10522         (value_functions): Add it.
10523
10524 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
10525
10526         * dwarf2read.c (attr_value_as_address): New function.
10527         (dwarf2_find_base_address, read_call_site_scope): Use
10528         attr_value_as_address in place of DW_ADDR.
10529         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10530         the low and high addresses.  Slight rework of the handling
10531         of the high pc being a constant form, and limit it to
10532         DWARF verson 4 or higher.
10533         (dwarf2_record_block_ranges): Likewise.
10534         (read_partial_die): Likewise.
10535         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10536
10537 2014-02-26  Tom Tromey  <tromey@redhat.com>
10538
10539         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10540
10541 2014-02-26  Tom Tromey  <tromey@redhat.com>
10542
10543         * elfread.c (elf_read_minimal_symbols): Return early if
10544         minimal symbols have already been read.  Add "ei" parameter.
10545         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10546         * minsyms.c (prim_record_minimal_symbol_full): Update.
10547         * objfiles.h (struct objstats) <n_minsyms>: Move...
10548         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10549         * symmisc.c (print_objfile_statistics): Update.
10550
10551 2014-02-26  Tom Tromey  <tromey@redhat.com>
10552
10553         * elfread.c (elf_read_minimal_symbols): New function, from
10554         elf_symfile_read.
10555         (elf_symfile_read): Call it.
10556
10557 2014-02-26  Tom Tromey  <tromey@redhat.com>
10558
10559         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10560         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10561         (lookup_minimal_symbol_solib_trampoline)
10562         (lookup_minimal_symbol_by_pc_section_1)
10563         (lookup_minimal_symbol_and_objfile): Update.
10564         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10565         Don't allocate a minimal symbol if minsyms have already been read.
10566         (build_minimal_symbol_hash_tables): Update.
10567         (install_minimal_symbols): Do nothing if minsyms already read.
10568         Use the per-BFD obstack.
10569         (terminate_minimal_symbol_table): Use the per-BFD obstack.
10570         * objfiles.c (allocate_objfile): Call
10571         terminate_minimal_symbol_table later.
10572         (have_minimal_symbols): Update.
10573         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10574         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10575         Move from struct objfile.
10576         <minsyms_read>: New field.
10577         (struct objfile) <msymbols, minimal_symbol_count,
10578         msymbol_hash, msymbol_demangled_hash>: Move.
10579         (ALL_OBJFILE_MSYMBOLS): Update.
10580         * symfile.c (read_symbols): Set minsyms_read.
10581         (reread_symbols): Update.
10582         * symmisc.c (dump_objfile, dump_msymbols): Update.
10583
10584 2014-02-26  Tom Tromey  <tromey@redhat.com>
10585
10586         * minsyms.c (msymbols_sort): Remove.
10587         * minsyms.h (msymbols_sort): Remove.
10588         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10589         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10590         * elfread.c (elf_symtab_read): Don't add section offsets.
10591         * xcoffread.c (record_minimal_symbol): Don't add section offset
10592         to minimal symbol address.
10593         * somread.c (text_offset, data_offset): Remove.
10594         (som_symtab_read): Don't add section offsets to minimal symbol
10595         addresses.
10596         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10597         Don't add section offsets to minimal symbols.
10598         * coffread.c (coff_symtab_read): Don't add section offsets
10599         to minimal symbol addresses.
10600         * machoread.c (macho_symtab_add_minsym): Don't add section offset
10601         to minimal symbol addresses.
10602         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10603         section offset to minimal symbol addresses.
10604         * mdebugread.c (parse_partial_symbols): Don't add section
10605         offset to minimal symbol addresses.
10606         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10607         offset to minimal symbol addresses.
10608
10609 2014-02-26  Tom Tromey  <tromey@redhat.com>
10610
10611         * ada-lang.c (ada_main_name): Update.
10612         (ada_add_standard_exceptions): Update.
10613         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10614         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10615         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10616         * auxv.c (ld_so_xfer_auxv): Update.
10617         * avr-tdep.c (avr_scan_prologue): Update.
10618         * ax-gdb.c (gen_var_ref): Update.
10619         * blockframe.c (get_pc_function_start)
10620         (find_pc_partial_function_gnu_ifunc): Update.
10621         * breakpoint.c (create_overlay_event_breakpoint)
10622         (create_longjmp_master_breakpoint)
10623         (create_std_terminate_master_breakpoint)
10624         (create_exception_master_breakpoint): Update.
10625         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10626         * c-valprint.c (c_val_print): Update.
10627         * coff-pe-read.c (add_pe_forwarded_sym): Update.
10628         * common/agent.c (agent_look_up_symbols): Update.
10629         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10630         * dwarf2loc.c (call_site_to_target_addr): Update.
10631         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10632         * elfread.c (elf_gnu_ifunc_record_cache)
10633         (elf_gnu_ifunc_resolve_by_got): Update.
10634         * findvar.c (default_read_var_value): Update.
10635         * frame.c (inside_main_func): Update.
10636         * frv-tdep.c (frv_frame_this_id): Update.
10637         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10638         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10639         Update.
10640         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10641         (hppa_hpux_find_dummy_bpaddr): Update.
10642         * hppa-tdep.c (hppa_symbol_address): Update.
10643         * infcmd.c (until_next_command): Update.
10644         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10645         Update.
10646         * linespec.c (minsym_found, add_minsym): Update.
10647         * linux-nat.c (get_signo): Update.
10648         * linux-thread-db.c (inferior_has_bug): Update.
10649         * m32c-tdep.c (m32c_return_value)
10650         (m32c_m16c_address_to_pointer): Update.
10651         * m32r-tdep.c (m32r_frame_this_id): Update.
10652         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10653         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10654         * maint.c (maintenance_translate_address): Update.
10655         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10656         (frob_address): New function.
10657         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10658         frob_address.  Rename parameter to "pc_in".
10659         (compare_minimal_symbols, compact_minimal_symbols): Use raw
10660         addresses.
10661         (find_solib_trampoline_target, minimal_symbol_upper_bound):
10662         Update.
10663         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10664         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10665         * objc-lang.c (find_objc_msgsend): Update.
10666         * objfiles.c (objfile_relocate1): Update.
10667         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10668         * p-valprint.c (pascal_val_print): Update.
10669         * parse.c (write_exp_msymbol): Update.
10670         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10671         (ppc_elfv2_skip_entrypoint): Update.
10672         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10673         * printcmd.c (build_address_symbolic, msym_info)
10674         (address_info): Update.
10675         * proc-service.c (ps_pglobal_lookup): Update.
10676         * psymtab.c (find_pc_sect_psymtab_closer)
10677         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10678         Change msymbol parameter to bound_minimal_symbol.
10679         * ravenscar-thread.c (get_running_thread_id): Update.
10680         * remote.c (remote_check_symbols): Update.
10681         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10682         address.
10683         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10684         * solib-dsbt.c (lm_base): Update.
10685         * solib-frv.c (lm_base, main_got): Update.
10686         * solib-irix.c (locate_base): Update.
10687         * solib-som.c (som_solib_create_inferior_hook)
10688         (link_map_start): Update.
10689         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10690         * solib-svr4.c (elf_locate_base, enable_break): Update.
10691         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10692         (flush_ea_cache): Update.
10693         * stabsread.c (define_symbol, scan_file_globals): Update.
10694         * stack.c (find_frame_funname): Update.
10695         * symfile-debug.c (debug_qf_expand_symtabs_matching)
10696         (debug_qf_find_pc_sect_symtab): Update.
10697         * symfile.c (simple_read_overlay_table)
10698         (simple_overlay_update): Update.
10699         * symfile.h (struct quick_symbol_functions)
10700         <find_pc_sect_symtab>: Change type of msymbol to
10701         bound_minimal_symbol.
10702         * symmisc.c (dump_msymbols): Update.
10703         * symtab.c (find_pc_sect_symtab_via_partial)
10704         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10705         (search_symbols, print_msymbol_info): Update.
10706         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10707         (MSYMBOL_VALUE_ADDRESS): Redefine.
10708         (BMSYMBOL_VALUE_ADDRESS): New macro.
10709         * tracepoint.c (scope_info): Update.
10710         * tui/tui-disasm.c (tui_find_disassembly_address)
10711         (tui_get_begin_asm_address): Update.
10712         * valops.c (find_function_in_inferior): Update.
10713         * value.c (value_static_field, value_fn_field): Update.
10714
10715 2014-02-26  Tom Tromey  <tromey@redhat.com>
10716
10717         * ada-lang.c (ada_update_initial_language): Update.
10718         (ada_main_name, ada_has_this_exception_support): Update.
10719         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10720         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10721         * arm-tdep.c (arm_skip_stub): Update.
10722         * auxv.c (ld_so_xfer_auxv): Update.
10723         * avr-tdep.c (avr_scan_prologue): Update.
10724         * ax-gdb.c (gen_var_ref): Update.
10725         * breakpoint.c (struct breakpoint_objfile_data)
10726         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10727         type to bound_minimal_symbol.
10728         (create_overlay_event_breakpoint)
10729         (create_longjmp_master_breakpoint)
10730         (create_std_terminate_master_breakpoint)
10731         (create_exception_master_breakpoint): Update.
10732         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10733         * c-exp.y (classify_name): Update.
10734         * coffread.c (coff_symfile_read): Update.
10735         * common/agent.c (agent_look_up_symbols): Update.
10736         * d-lang.c (d_main_name): Update.
10737         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10738         * dec-thread.c (enable_dec_thread): Update.
10739         * dwarf2loc.c (call_site_to_target_addr): Update.
10740         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10741         * eval.c (evaluate_subexp_standard): Update.
10742         * findvar.c (struct minsym_lookup_data) <result>: Change type
10743         to bound_minimal_symbol.
10744         <objfile>: Remove.
10745         (minsym_lookup_iterator_cb, default_read_var_value): Update.
10746         * frame.c (inside_main_func): Update.
10747         * frv-tdep.c (frv_frame_this_id): Update.
10748         * gcore.c (call_target_sbrk): Update.
10749         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10750         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10751         Update.
10752         * go-lang.c (go_main_name): Update.
10753         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10754         (hppa_hpux_find_import_stub_for_addr): Update.
10755         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10756         Update.  Change return type.
10757         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10758         type.
10759         * jit.c (jit_breakpoint_re_set_internal): Update.
10760         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10761         Update.
10762         * linux-nat.c (get_signo): Update.
10763         * linux-thread-db.c (inferior_has_bug): Update
10764         * m32c-tdep.c (m32c_return_value)
10765         (m32c_m16c_address_to_pointer): Update.
10766         * m32r-tdep.c (m32r_frame_this_id): Update.
10767         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10768         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10769         * minsyms.c (lookup_minimal_symbol_internal): Rename to
10770         lookup_minimal_symbol.  Change return type.
10771         (lookup_minimal_symbol): Remove.
10772         (lookup_bound_minimal_symbol): Update.
10773         (lookup_minimal_symbol_text): Change return type.
10774         (lookup_minimal_symbol_solib_trampoline): Change return type.
10775         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10776         (lookup_minimal_symbol_solib_trampoline): Change return type.
10777         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10778         * objc-lang.c (lookup_objc_class, lookup_child_selector)
10779         (value_nsstring, find_imps): Update.
10780         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10781         * p-lang.c (pascal_main_name): Update.
10782         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10783         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10784         * proc-service.c (ps_pglobal_lookup): Update.
10785         * ravenscar-thread.c (get_running_thread_msymbol): Change
10786         return type.
10787         (has_ravenscar_runtime, get_running_thread_id): Update.
10788         * remote.c (remote_check_symbols): Update.
10789         * sol-thread.c (ps_pglobal_lookup): Update.
10790         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10791         * solib-dsbt.c (lm_base): Update.
10792         * solib-frv.c (lm_base, frv_relocate_section_addresses):
10793         Update.
10794         * solib-irix.c (locate_base): Update.
10795         * solib-som.c (som_solib_create_inferior_hook)
10796         (som_solib_desire_dynamic_linker_symbols, link_map_start):
10797         Update.
10798         * solib-spu.c (spu_enable_break): Update.
10799         * solib-svr4.c (elf_locate_base, enable_break): Update.
10800         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10801         (flush_ea_cache): Update.
10802         * stabsread.c (define_symbol): Update.
10803         * symfile.c (simple_read_overlay_table): Update.
10804         * symtab.c (find_pc_sect_line): Update.
10805         * tracepoint.c (scope_info): Update.
10806         * tui-disasm.c (tui_get_begin_asm_address): Update.
10807         * value.c (value_static_field): Update.
10808
10809 2014-02-26  Tom Tromey  <tromey@redhat.com>
10810
10811         * minsyms.c (prim_record_minimal_symbol_full): Use
10812         SET_MSYMBOL_VALUE_ADDRESS.
10813         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10814         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10815         SET_MSYMBOL_VALUE_ADDRESS.
10816         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10817         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10818
10819 2014-02-26  Tom Tromey  <tromey@redhat.com>
10820
10821         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10822         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10823         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10824         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10825         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10826         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10827         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10828         * ada-lang.c (ada_main_name): Update.
10829         (ada_lookup_simple_minsym): Update.
10830         (ada_make_symbol_completion_list): Update.
10831         (ada_add_standard_exceptions): Update.
10832         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10833         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10834         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10835         * arm-tdep.c (skip_prologue_function): Update.
10836         (arm_skip_stack_protector, arm_skip_stub): Update.
10837         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10838         (arm_wince_skip_main_prologue): Update.
10839         * auxv.c (ld_so_xfer_auxv): Update.
10840         * avr-tdep.c (avr_scan_prologue): Update.
10841         * ax-gdb.c (gen_var_ref): Update.
10842         * block.c (call_site_for_pc): Update.
10843         * blockframe.c (get_pc_function_start): Update.
10844         (find_pc_partial_function_gnu_ifunc): Update.
10845         * breakpoint.c (create_overlay_event_breakpoint): Update.
10846         (create_longjmp_master_breakpoint): Update.
10847         (create_std_terminate_master_breakpoint): Update.
10848         (create_exception_master_breakpoint): Update.
10849         (resolve_sal_pc): Update.
10850         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10851         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10852         Update.
10853         * c-valprint.c (c_val_print): Update.
10854         * coff-pe-read.c (add_pe_forwarded_sym): Update.
10855         * coffread.c (coff_symfile_read): Update.
10856         * common/agent.c (agent_look_up_symbols): Update.
10857         * dbxread.c (find_stab_function_addr): Update.
10858         (end_psymtab): Update.
10859         * dwarf2loc.c (call_site_to_target_addr): Update.
10860         (func_verify_no_selftailcall): Update.
10861         (tailcall_dump): Update.
10862         (call_site_find_chain_1): Update.
10863         (dwarf_expr_reg_to_entry_parameter): Update.
10864         * elfread.c (elf_gnu_ifunc_record_cache): Update.
10865         (elf_gnu_ifunc_resolve_by_got): Update.
10866         * f-valprint.c (info_common_command): Update.
10867         * findvar.c (read_var_value): Update.
10868         * frame.c (get_prev_frame_1): Update.
10869         (inside_main_func): Update.
10870         * frv-tdep.c (frv_skip_main_prologue): Update.
10871         (frv_frame_this_id): Update.
10872         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10873         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10874         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10875         (gnuv3_skip_trampoline): Update.
10876         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10877         (hppa64_hpux_in_solib_call_trampoline): Update.
10878         (hppa_hpux_skip_trampoline_code): Update.
10879         (hppa64_hpux_search_dummy_call_sequence): Update.
10880         (hppa_hpux_find_import_stub_for_addr): Update.
10881         (hppa_hpux_find_dummy_bpaddr): Update.
10882         * hppa-tdep.c (hppa_symbol_address)
10883         (hppa_lookup_stub_minimal_symbol): Update.
10884         * i386-tdep.c (i386_skip_main_prologue): Update.
10885         (i386_pe_skip_trampoline_code): Update.
10886         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10887         * infcall.c (get_function_name): Update.
10888         * infcmd.c (until_next_command): Update.
10889         * jit.c (jit_breakpoint_re_set_internal): Update.
10890         (jit_inferior_init): Update.
10891         * linespec.c (minsym_found): Update.
10892         (add_minsym): Update.
10893         * linux-fork.c (info_checkpoints_command): Update.
10894         * linux-nat.c (get_signo): Update.
10895         * linux-thread-db.c (inferior_has_bug): Update.
10896         * m32c-tdep.c (m32c_return_value): Update.
10897         (m32c_m16c_address_to_pointer): Update.
10898         (m32c_m16c_pointer_to_address): Update.
10899         * m32r-tdep.c (m32r_frame_this_id): Update.
10900         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10901         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10902         * maint.c (maintenance_translate_address): Update.
10903         * minsyms.c (add_minsym_to_hash_table): Update.
10904         (add_minsym_to_demangled_hash_table): Update.
10905         (msymbol_objfile): Update.
10906         (lookup_minimal_symbol): Update.
10907         (iterate_over_minimal_symbols): Update.
10908         (lookup_minimal_symbol_text): Update.
10909         (lookup_minimal_symbol_by_pc_name): Update.
10910         (lookup_minimal_symbol_solib_trampoline): Update.
10911         (lookup_minimal_symbol_by_pc_section_1): Update.
10912         (lookup_minimal_symbol_and_objfile): Update.
10913         (prim_record_minimal_symbol_full): Update.
10914         (compare_minimal_symbols): Update.
10915         (compact_minimal_symbols): Update.
10916         (build_minimal_symbol_hash_tables): Update.
10917         (install_minimal_symbols): Update.
10918         (terminate_minimal_symbol_table): Update.
10919         (find_solib_trampoline_target): Update.
10920         (minimal_symbol_upper_bound): Update.
10921         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10922         * mips-tdep.c (mips_stub_frame_sniffer): Update.
10923         (mips_skip_pic_trampoline_code): Update.
10924         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10925         * objc-lang.c (selectors_info): Update.
10926         (classes_info): Update.
10927         (find_methods): Update.
10928         (find_imps): Update.
10929         (find_objc_msgsend): Update.
10930         * objfiles.c (objfile_relocate1): Update.
10931         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10932         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10933         * p-valprint.c (pascal_val_print): Update.
10934         * parse.c (write_exp_msymbol): Update.
10935         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10936         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10937         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10938         * printcmd.c (build_address_symbolic): Update.
10939         (sym_info): Update.
10940         (address_info): Update.
10941         * proc-service.c (ps_pglobal_lookup): Update.
10942         * psymtab.c (find_pc_sect_psymtab_closer): Update.
10943         (find_pc_sect_psymtab): Update.
10944         * python/py-framefilter.c (py_print_frame): Update.
10945         * ravenscar-thread.c (get_running_thread_id): Update.
10946         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10947         Update.
10948         * remote.c (remote_check_symbols): Update.
10949         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10950         (rs6000_skip_trampoline_code): Update.
10951         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10952         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10953         * solib-dsbt.c (lm_base): Update.
10954         * solib-frv.c (lm_base): Update.
10955         (main_got): Update.
10956         * solib-irix.c (locate_base): Update.
10957         * solib-som.c (som_solib_create_inferior_hook): Update.
10958         (som_solib_desire_dynamic_linker_symbols): Update.
10959         (link_map_start): Update.
10960         * solib-spu.c (spu_enable_break): Update.
10961         (ocl_enable_break): Update.
10962         * solib-svr4.c (elf_locate_base): Update.
10963         (enable_break): Update.
10964         * spu-tdep.c (spu_get_overlay_table): Update.
10965         (spu_catch_start): Update.
10966         (flush_ea_cache): Update.
10967         * stabsread.c (define_symbol): Update.
10968         (scan_file_globals): Update.
10969         * stack.c (find_frame_funname): Update.
10970         (frame_info): Update.
10971         * symfile.c (simple_read_overlay_table): Update.
10972         (simple_overlay_update): Update.
10973         * symmisc.c (dump_msymbols): Update.
10974         * symtab.c (fixup_section): Update.
10975         (find_pc_sect_line): Update.
10976         (skip_prologue_sal): Update.
10977         (search_symbols): Update.
10978         (print_msymbol_info): Update.
10979         (rbreak_command): Update.
10980         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10981         (completion_list_objc_symbol): Update.
10982         (default_make_symbol_completion_list_break_on): Update.
10983         * tracepoint.c (scope_info): Update.
10984         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10985         (tui_get_begin_asm_address): Update.
10986         * valops.c (find_function_in_inferior): Update.
10987         * value.c (value_static_field): Update.
10988         (value_fn_field): Update.
10989
10990 2014-02-26  Tom Tromey  <tromey@redhat.com>
10991
10992         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10993         bound minimal symbols.  Move code that knows about minsym
10994         table layout...
10995         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
10996         function.
10997         * minsyms.h (minimal_symbol_upper_bound): Declare.
10998         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10999         minimal_symbol_upper_bound.
11000
11001 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
11002
11003         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11004         Use the type's name if its basic type does not have a tag.
11005
11006 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
11007
11008         * dwarf2read.c (read_subrange_type): Add comment.
11009
11010 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
11011
11012         * dwarf2read.c (update_enumeration_type_from_children): New
11013         function, mostly extracted from process_structure_scope.
11014         (read_enumeration_type): Call update_enumeration_type_from_children.
11015         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11016         and flag_flag_enum fields.
11017
11018 2014-02-26  Pedro Alves  <palves@redhat.com>
11019
11020         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11021         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11022         to_xfer_partial method.
11023
11024 2014-02-26  Pedro Alves  <palves@redhat.com>
11025
11026         * target.c (complete_target_initialization): Don't install
11027         default_xfer_partial as to_xfer_partial hook.
11028         (nomemory): Delete.
11029         (update_current_target): Don't INHERIT nor de_fault
11030         deprecated_xfer_memory.  Delete de_fault macro.
11031         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11032         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11033         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11034         field.
11035
11036 2014-02-26  Pedro Alves  <palves@redhat.com>
11037
11038         * go32-nat.c (my_write_child): New function.
11039         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11040         (go32_xfer_partial): New function.
11041         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11042         Instead install a to_xfer_partial hook.
11043
11044 2014-02-26  Pedro Alves  <palves@redhat.com>
11045
11046         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11047         to_xfer_partial helper.  Rewrite.
11048         (procfs_xfer_partial): New function.
11049         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11050         Install a to_xfer_partial hook.
11051
11052 2014-02-26  Pedro Alves  <palves@redhat.com>
11053
11054         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11055         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11056         (m32r_xfer_partial): New function.
11057         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11058         Install a to_xfer_partial hook.
11059
11060 2014-02-26  Pedro Alves  <palves@redhat.com>
11061
11062         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11063         helper.
11064         (mips_xfer_partial): New function.
11065         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11066         hook.  Install a to_xfer_partial hook.
11067
11068 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
11069
11070         * gdbtypes.h (create_array_type_with_stride): Add declaration.
11071         * gdbtypes.c (create_array_type_with_stride): New function,
11072         renaming create_array_type, but with an added parameter
11073         called "bit_stride".
11074         (create_array_type): Re-implement using
11075         create_array_type_with_stride.
11076         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11077         and DW_AT_bit_stride attributes.
11078
11079 2014-02-26  Pedro Alves  <palves@redhat.com>
11080
11081         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11082         task-specific breakpoints.
11083
11084 2014-02-25  Pedro Alves  <palves@redhat.com>
11085
11086         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11087         handling of object == TARGET_OBJECT_UNWIND_TABLE.
11088
11089 2014-02-25  Stan Shebs  <stan@codesourcery.com>
11090
11091         * defs.h: Annotate comments for Doxygen.
11092
11093 2014-02-25  Tom Tromey  <tromey@redhat.com>
11094
11095         * target.h (target_ignore): Don't declare.
11096         * target.c (target_ignore): Remove.
11097
11098 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
11099
11100         PR gdb/16626
11101         * auto-load.c (auto_load_objfile_script_1): Change filename to
11102         debugfile.
11103
11104 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
11105
11106         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11107         documentation.  Adjust prototype to match the target_ops
11108         to_xfer_partial method.  Adjust implementation accordingly.
11109
11110 2014-02-25  Hui Zhu  <hui@codesourcery.com>
11111
11112         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11113         to_traceframe_info.
11114
11115 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
11116
11117         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
11118         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11119         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11120         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11121         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11122         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11123         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11124         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11125         New constants.
11126         (rl78_register_type): Use a data pointer type for SP and
11127         new pseudo registers mentioned above.  Use a 16 bit integer
11128         type for all other register pairs.
11129         (rl78_register_name, rl78_g10_register_name): Update for
11130         new pseudo registers.
11131         (rl78_pseudo_register_read): Likewise.
11132         (rl78_pseudo_register_write): Likewise.
11133         (rl78_dwarf_reg_to_regnum): Return register numbers representing
11134         to the newly added pseudo registers.
11135
11136 2014-02-24  Doug Evans  <dje@google.com>
11137
11138         * value.c (record_latest_value): Fix comment.
11139         * printcmd.c (print_command_1): Remove code to handle -1 return from
11140         record_latest_value.
11141
11142 2014-02-24  Pedro Alves  <palves@redhat.com>
11143
11144         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11145         deprecated_xfer_memory hook.
11146         (procfs_xfer_partial): Call procfs_xfer_memory instead
11147         of the deprecated_xfer_memory target hook.
11148         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11149         helper.
11150
11151 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
11152
11153         * windows-nat.c (windows_xfer_shared_libraries): Return
11154         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11155         requested object is TARGET_OBJECT_LIBRARIES.
11156
11157 2014-02-24  Yao Qi  <yao@codesourcery.com>
11158
11159         * target.h (enum target_xfer_status)
11160         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11161         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11162         explicitly.  New.
11163         * corefile.c (memory_error_message): User updated.
11164         * exec.c (section_table_read_available_memory): Likewise.
11165         * record-btrace.c (record_btrace_xfer_partial): Likewise.
11166         * target.c (target_xfer_status_to_string): Likewise.
11167         (raw_memory_xfer_partial): Likewise.
11168         (memory_xfer_partial_1, target_xfer_partial): Likewise.
11169         * valops.c (read_value_memory): Likewise.
11170         * exec.h: Update comments.
11171
11172 2014-02-24  Yao Qi  <yao@codesourcery.com>
11173
11174         * target.c (target_xfer_status_to_string): Rename argument err
11175         to status.
11176         * target.h (target_xfer_status_to_string): Update declaration.
11177         Replace target_xfer_error_to_string with
11178         target_xfer_status_to_string in comment.
11179
11180 2014-02-24  Yao Qi  <yao@codesourcery.com>
11181
11182         * mips-linux-nat.c (super_close): Update its type.
11183         (mips_linux_close): Pass 'self' to super_close.
11184
11185 2014-02-24  Yao Qi  <yao@codesourcery.com>
11186
11187         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11188         * corefile.c (read_memory): Adjusted.
11189         * target.c (target_write_with_progress): Adjusted.
11190
11191 2014-02-23  Yao Qi  <yao@codesourcery.com>
11192
11193         Revert two patches:
11194
11195         2013-10-25  Yao Qi  <yao@codesourcery.com>
11196
11197         * remote.c (remote_traceframe_info): Return early if
11198         traceframe is not selected.
11199
11200         2013-07-19  Yao Qi  <yao@codesourcery.com>
11201
11202         * target.c (update_current_target): Change the default action
11203         of 'to_traceframe_info' from tcomplain to return_zero.
11204         * target.h (struct target_ops) <to_traceframe_info>: Add more
11205         comments.
11206
11207 2014-02-23  Yao Qi  <yao@codesourcery.com>
11208
11209         * valops.c (read_value_memory): Rewrite it.  Call
11210         target_xfer_partial in a loop.
11211         * exec.h (section_table_available_memory): Remove declaration.
11212         Move comments to ...
11213         * exec.c (section_table_available_memory): ... here.  Make it
11214         static.
11215
11216 2014-02-23  Yao Qi  <yao@codesourcery.com>
11217
11218         * exec.c (section_table_read_available_memory): New function.
11219         * exec.h (section_table_read_available_memory): Declare.
11220         * ctf.c (ctf_xfer_partial): Call
11221         section_table_read_available_memory.
11222         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11223
11224 2014-02-23  Yao Qi  <yao@codesourcery.com>
11225
11226         * ctf.c (ctf_xfer_partial): Move code to ...
11227         * exec.c (exec_read_partial_read_only): ... it.  New function.
11228         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11229         * tracefile.c: Include "exec.h".
11230         * exec.h (exec_read_partial_read_only): Declare.
11231
11232 2014-02-23  Yao Qi  <yao@codesourcery.com>
11233
11234         * tracefile-tfile.c (tfile_has_all_memory): Remove.
11235         (tfile_has_memory): Remove.
11236         (init_tfile_ops): Don't set fields to_has_all_memory and
11237         to_has_memory of tfile_ops.
11238         * tracefile.c (tracefile_has_all_memory): New function.
11239         (tracefile_has_memory): New function.
11240         (init_tracefile_ops): Initialize fields to_has_all_memory and
11241         to_has_memory of 'ops'.
11242
11243 2014-02-23  Yao Qi  <yao@codesourcery.com>
11244
11245         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11246         (ctf_thread_alive, ctf_get_trace_status): Remove.
11247         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
11248         init_tracefile_ops.
11249         * tracefile-tfile.c (tfile_get_trace_status): Remove.
11250         (tfile_has_stack, tfile_has_registers): Remove.
11251         (tfile_thread_alive): Remove.
11252         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
11253         init_tracefile_ops.
11254         * tracefile.c (tracefile_has_stack): New function.
11255         (tracefile_has_registers): New function.
11256         (tracefile_thread_alive): New function.
11257         (tracefile_get_trace_status): New function.
11258         (init_tracefile_ops): New function.
11259         * tracefile.h (init_tracefile_ops): Declare.
11260
11261 2014-02-23  Yao Qi  <yao@codesourcery.com>
11262
11263         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11264         (O_LARGEFILE): Likewise.
11265         (tfile_ops): Likewise.
11266         (TRACE_HEADER_SIZE): Likewise.
11267         (trace_fd, trace_frames_offset, cur_offset): Likewise.
11268         (cur_data_size): Likewise.
11269         (tfile_read, tfile_open, tfile_interp_line): Likewise.
11270         (tfile_close, tfile_files_info): Likewise.
11271         (tfile_get_trace_status): Likewise.
11272         (tfile_get_tracepoint_status): Likewise.
11273         (tfile_get_traceframe_address): Likewise.
11274         (tfile_trace_find, match_blocktype): Likewise.
11275         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11276         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11277         (tfile_get_trace_state_variable_value): Likewise.
11278         (tfile_has_all_memory, tfile_has_memory): Likewise.
11279         (tfile_has_stack, tfile_has_registers): Likewise.
11280         (tfile_thread_alive, build_traceframe_info): Likewise.
11281         (tfile_traceframe_info, init_tfile_ops): Likewise.
11282         (_initialize_tracepoint): Don't call init_tfile_ops
11283         and add_target_with_completer.
11284         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11285         exec.h, completer.h and filenames.h.
11286         (_initialize_tracefile_tfile): New function.
11287
11288 2014-02-23  Yao Qi  <yao@codesourcery.com>
11289
11290         * Makefile.in (REMOTE_OBS): Append tracefile.o and
11291         tracefile-tfile.o.
11292         (HFILES_NO_SRCDIR): Add tracefile.h.
11293         * ctf.c: Include "tracefile.h".
11294         * tracefile.h: New file.
11295         * tracefile.c: New file
11296         * tracefile-tfile.c: New file.
11297         * tracepoint.c: Include "tracefile.h".
11298         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11299         (stop_reason_names): Add const.
11300         (trace_file_writer_xfree): Move it to tracefile.c.
11301         (trace_save, trace_save_command, trace_save_tfile): Likewise.
11302         (trace_save_ctf): Likewise.
11303         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11304         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11305         (tfile_write_header, tfile_write_regblock_type): Likewise.
11306         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11307         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11308         (tfile_write_raw_data, tfile_end): Likewise.
11309         (tfile_trace_file_writer_new): Likewise.
11310         (free_uploaded_tp): Make it extern.
11311         (free_uploaded_tsv): Make it extern.
11312         (_initialize_tracepoint): Move code to register command 'tsave'
11313         to tracefile.c.
11314         * tracepoint.h (stop_reason_names): Declare.
11315         (struct trace_frame_write_ops): Move it to tracefile.h.
11316         (struct trace_file_write_ops): Likewise.
11317         (struct trace_file_writer): Likewise.
11318         (free_uploaded_tsvs, free_uploaded_tps): Declare.
11319
11320 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
11321
11322         PR gdb/16594
11323         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11324         process name.
11325         (get_cores_used_by_process): New parameter num_cores, use it.
11326         (linux_xfer_osdata_processes): Pass num_cores to it.
11327         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11328         process name.
11329
11330 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
11331
11332         * target.c (memory_xfer_partial): Fix length arg in call to
11333         breakpoint_xfer_memory.
11334
11335 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
11336
11337         PR tdep/16397
11338         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11339         number comes after the + or - signs.  Adjust length of register
11340         name to be extracted.
11341
11342 2014-02-20  Tom Tromey  <tromey@redhat.com>
11343
11344         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11345         (ada_varobj_ops): Mark "extern".
11346
11347 2014-02-20  Tom Tromey  <tromey@redhat.com>
11348
11349         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11350
11351 2014-02-20  Doug Evans  <xdje42@gmail.com>
11352
11353         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11354         All callers updated.
11355         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11356         All callers updated.
11357         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11358         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11359
11360 2014-02-20  lin zuojian  <manjian2006@gmail.com>
11361             Joel Brobecker  <brobecker@adacore.com>
11362             Doug Evans  <xdje42@gmail.com>
11363
11364         PR symtab/16581
11365         * dwarf2read.c (struct die_info): New member in_process.
11366         (reset_die_in_process): New function.
11367         (process_die): Set it at the start, reset when returning.
11368         (inherit_abstract_dies): Only call process_die if origin_child_die
11369         not already being processed.
11370
11371 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11372
11373         * windows-nat.c (handle_unload_dll): Add function documentation.
11374         (do_initial_windows_stuff): Add comment explaining why we wait
11375         until after inferior initialization has finished before
11376         processing all DLLs.
11377
11378 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11379
11380         * windows-nat.c (get_module_name): Delete.
11381         (windows_get_exec_module_filename): New function, mostly
11382         inspired from get_module_name.
11383         (windows_pid_to_exec_file): Replace call to get_module_name
11384         by call to windows_get_exec_module_filename.
11385
11386 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11387
11388         * windows-nat.c (handle_load_dll): Rewrite this function's
11389         introductory comment.  Remove code using get_module_name
11390         to get the DLL's name.
11391
11392 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11393
11394         * windows-nat.c (get_windows_debug_event): Ignore
11395         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11396         if windows_initialization_done == 0.
11397         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11398         Adjust implementation to always load all DLLs.
11399         (do_initial_windows_stuff): Replace call to
11400         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11401
11402 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11403
11404         * windows-nat.c (_initialize_windows_nat): Deprecate the
11405         "dll-symbols" command.  Turn the "add-shared-symbol-files"
11406         and "assf" aliases into commands, and deprecate them as well.
11407         * NEWS: Add entry explaining that "dll-symbols" and its two
11408         aliases are now deprecated.
11409
11410 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11411
11412         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11413         new-line in debug string.  Remove trailing spaces.
11414
11415 2014-02-19  Stan Shebs  <stan@codesourcery.com>
11416
11417         * darwin-nat.c (darwin_xfer_partial): Fix return type.
11418
11419 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
11420
11421         * NEWS: Add entry for the new feature
11422         * python/py-value.c (valpy_binop): Call value_x_binop for struct
11423         and class values.
11424
11425 2014-02-19  Stan Shebs  <stan@codesourcery.com>
11426
11427         * MAINTAINERS: List Yao Qi as nios2 maintainer.
11428
11429 2014-02-19  Pedro Alves  <palves@redhat.com>
11430
11431         * common/ptid.h (struct ptid): Mention that process_stratum
11432         targets should prefer ptid.lwp.
11433
11434 2014-02-19  Pedro Alves  <palves@redhat.com>
11435
11436         * remote.c (remote_thread_alive, write_ptid, read_ptid)
11437         (read_ptid, remote_newthread_step, remote_threads_extra_info)
11438         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11439         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11440         store remote thread ids rather than ptid.tid.
11441         (_initialize_remote): Adjust.
11442
11443 2014-02-19  Tom Tromey  <tromey@redhat.com>
11444
11445         * target.c (target_get_unwinder): Rewrite.
11446         (target_get_tailcall_unwinder): Rewrite.
11447         * record-btrace.c (record_btrace_to_get_unwinder): New function.
11448         (record_btrace_to_get_tailcall_unwinder): New function.
11449         (init_record_btrace_ops): Update.
11450         * target.h (struct target_ops) <to_get_unwinder,
11451         to_get_tailcall_unwinder>: Now function pointers.  Use
11452         TARGET_DEFAULT_RETURN.
11453
11454 2014-02-19  Tom Tromey  <tromey@redhat.com>
11455
11456         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11457         argument.
11458         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11459
11460 2014-02-19  Tom Tromey  <tromey@redhat.com>
11461
11462         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11463         directly.
11464         * target-delegates.c: Rebuild.
11465         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11466         TARGET_DEFAULT_FUNC.
11467         * target.c (default_target_decr_pc_after_break): Rename from
11468         forward_target_decr_pc_after_break.  Simplify.
11469         (target_decr_pc_after_break): Rely on delegation.
11470
11471 2014-02-19  Tom Tromey  <tromey@redhat.com>
11472
11473         * target.c (update_current_target): Do not INHERIT to_doc or
11474         to_magic.  Do not de_fault to_open or to_close.
11475
11476 2014-02-19  Tom Tromey  <tromey@redhat.com>
11477
11478         * gcore.h (objfile_find_memory_regions): Declare.
11479         * gcore.c (objfile_find_memory_regions): No longer static.  Add
11480         "self" argument.
11481         (_initialize_gcore): Don't call exec_set_find_memory_regions.
11482         * exec.c: Include gcore.h.
11483         (exec_set_find_memory_regions): Remove.
11484         (exec_find_memory_regions): Remove.
11485         (exec_do_find_memory_regions): Remove.
11486         (init_exec_ops): Update.
11487         * defs.h (exec_set_find_memory_regions): Remove.
11488
11489 2014-02-19  Tom Tromey  <tromey@redhat.com>
11490
11491         * target-delegates.c: Rebuild.
11492         * target.h (struct target_ops) <to_extra_thread_info,
11493         to_thread_name, to_pid_to_exec_file, to_get_section_table,
11494         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11495         not 0, in TARGET_DEFAULT_RETURN.
11496
11497 2014-02-19  Tom Tromey  <tromey@redhat.com>
11498
11499         * target.c (complete_target_initialization): Remove casts.  Use
11500         return_zero_has_execution.
11501         (return_zero): Add "ignore" argument.
11502         (return_zero_has_execution): New function.
11503         (init_dummy_target): Remove casts.  Use
11504         return_zero_has_execution.
11505
11506 2014-02-19  Tom Tromey  <tromey@redhat.com>
11507
11508         * target.c (update_current_target): Update comments.  Do not
11509         INHERIT to_stratum.
11510
11511 2014-02-19  Tom Tromey  <tromey@redhat.com>
11512
11513         * arm-linux-nat.c (arm_linux_read_description): Delegate when
11514         needed.
11515         * corelow.c (core_read_description): Delegate when needed.
11516         * remote.c (remote_read_description): Delegate when needed.
11517         * target-delegates.c: Rebuild.
11518         * target.c (target_read_description): Rewrite.
11519         * target.h (struct target_ops) <to_read_description>: Update
11520         comment.  Use TARGET_DEFAULT_RETURN.
11521
11522 2014-02-19  Tom Tromey  <tromey@redhat.com>
11523
11524         * target-delegates.c: Rebuild.
11525         * target.c (update_current_target): Don't inherit or default
11526         to_can_run.
11527         (find_default_run_target): Check against delegate_can_run.
11528         * target.h (struct target_ops) <to_can_run>: Use
11529         TARGET_DEFAULT_RETURN.
11530
11531 2014-02-19  Tom Tromey  <tromey@redhat.com>
11532
11533         * target-delegates.c: Rebuild.
11534         * target.c (target_disconnect): Unconditionally delegate.
11535         * target.h (struct target_ops) <to_disconnect>: Use
11536         TARGET_DEFAULT_NORETURN.
11537
11538 2014-02-19  Tom Tromey  <tromey@redhat.com>
11539
11540         * record.c (record_stop): Unconditionally delegate.
11541         * target-delegates.c: Rebuild.
11542         * target.c (target_stop_recording): Unconditionally delegate.
11543         * target.h (struct target_ops) <to_stop_recording>: Use
11544         TARGET_DEFAULT_IGNORE.
11545
11546 2014-02-19  Tom Tromey  <tromey@redhat.com>
11547
11548         * target-delegates.c: Rebuild.
11549         * target.c (target_enable_btrace): Unconditionally delegate.
11550         * target.h (struct target_ops) <to_enable_btrace>: Use
11551         TARGET_DEFAULT_NORETURN.
11552
11553 2014-02-19  Tom Tromey  <tromey@redhat.com>
11554
11555         * target-delegates.c: Rebuild.
11556         * target.c (target_read_btrace): Unconditionally delegate.
11557         * target.h (struct target_ops) <to_read_btrace>: Use
11558         TARGET_DEFAULT_NORETURN.
11559
11560 2014-02-19  Tom Tromey  <tromey@redhat.com>
11561
11562         * target-delegates.c: Rebuild.
11563         * target.c (target_teardown_btrace): Unconditionally delegate.
11564         * target.h (struct target_ops) <to_teardown_btrace>: Use
11565         TARGET_DEFAULT_NORETURN.
11566
11567 2014-02-19  Tom Tromey  <tromey@redhat.com>
11568
11569         * target-delegates.c: Rebuild.
11570         * target.c (target_disable_btrace): Unconditionally delegate.
11571         * target.h (struct target_ops) <to_disable_btrace>: Use
11572         TARGET_DEFAULT_NORETURN.
11573
11574 2014-02-19  Tom Tromey  <tromey@redhat.com>
11575
11576         * target-delegates.c: Rebuild.
11577         * target.c (default_search_memory): New function.
11578         (simple_search_memory): Update comment.
11579         (target_search_memory): Unconditionally delegate.
11580         * target.h (struct target_ops) <to_search_memory>: Use
11581         TARGET_DEFAULT_FUNC.
11582
11583 2014-02-19  Tom Tromey  <tromey@redhat.com>
11584
11585         * auxv.c (default_auxv_parse): No longer static.
11586         (target_auxv_parse): Unconditionally delegate.
11587         * auxv.h (default_auxv_parse): Declare.
11588         * target-delegates.c: Rebuild.
11589         * target.c: Include auxv.h.
11590         * target.h (struct target_ops) <to_auxv_parse>: Use
11591         TARGET_DEFAULT_FUNC.
11592
11593 2014-02-19  Tom Tromey  <tromey@redhat.com>
11594
11595         * target-delegates.c: Rebuild.
11596         * target.c (target_memory_map): Unconditionally delegate.
11597         * target.h (struct target_ops) <to_memory_map>: Use
11598         TARGET_DEFAULT_RETURN.
11599
11600 2014-02-19  Tom Tromey  <tromey@redhat.com>
11601
11602         * target-delegates.c: Rebuild.
11603         * target.c (target_thread_alive): Unconditionally delegate.
11604         * target.h (struct target_ops) <to_thread_alive>: Use
11605         TARGET_DEFAULT_RETURN.
11606
11607 2014-02-19  Tom Tromey  <tromey@redhat.com>
11608
11609         * target-delegates.c: Rebuild.
11610         * target.c (target_save_record): Unconditionally delegate.
11611         * target.h (struct target_ops) <to_save_record>: Use
11612         TARGET_DEFAULT_NORETURN.
11613
11614 2014-02-19  Tom Tromey  <tromey@redhat.com>
11615
11616         * target-delegates.c: Rebuild.
11617         * target.c (target_delete_record): Unconditionally delegate.
11618         * target.h (struct target_ops) <to_delete_record>: Use
11619         TARGET_DEFAULT_NORETURN.
11620
11621 2014-02-19  Tom Tromey  <tromey@redhat.com>
11622
11623         * target-delegates.c: Rebuild.
11624         * target.c (target_record_is_replaying): Unconditionally
11625         delegate.
11626         * target.h (struct target_ops) <to_record_is_replaying>: Use
11627         TARGET_DEFAULT_RETURN.
11628
11629 2014-02-19  Tom Tromey  <tromey@redhat.com>
11630
11631         * target-delegates.c: Rebuild.
11632         * target.c (target_goto_record_begin): Unconditionally delegate.
11633         * target.h (struct target_ops) <to_goto_record_begin>: Use
11634         TARGET_DEFAULT_NORETURN.
11635
11636 2014-02-19  Tom Tromey  <tromey@redhat.com>
11637
11638         * target-delegates.c: Rebuild.
11639         * target.c (target_goto_record_end): Unconditionally delegate.
11640         * target.h (struct target_ops) <to_goto_record_end>: Use
11641         TARGET_DEFAULT_NORETURN.
11642
11643 2014-02-19  Tom Tromey  <tromey@redhat.com>
11644
11645         * target-delegates.c: Rebuild.
11646         * target.c (target_goto_record): Unconditionally delegate.
11647         * target.h (struct target_ops) <to_goto_record>: Use
11648         TARGET_DEFAULT_NORETURN.
11649
11650 2014-02-19  Tom Tromey  <tromey@redhat.com>
11651
11652         * target-delegates.c: Rebuild.
11653         * target.c (target_insn_history): Unconditionally delegate.
11654         * target.h (struct target_ops) <to_insn_history>: Use
11655         TARGET_DEFAULT_NORETURN.
11656
11657 2014-02-19  Tom Tromey  <tromey@redhat.com>
11658
11659         * target-delegates.c: Rebuild.
11660         * target.c (target_insn_history_from): Unconditionally delegate.
11661         * target.h (struct target_ops) <to_insn_history_from>: Use
11662         TARGET_DEFAULT_NORETURN.
11663
11664 2014-02-19  Tom Tromey  <tromey@redhat.com>
11665
11666         * target-delegates.c: Rebuild.
11667         * target.c (target_insn_history_range): Unconditionally delegate.
11668         * target.h (struct target_ops) <to_insn_history_range>: Use
11669         TARGET_DEFAULT_NORETURN.
11670
11671 2014-02-19  Tom Tromey  <tromey@redhat.com>
11672
11673         * target-delegates.c: Rebuild.
11674         * target.c (target_call_history): Unconditionally delegate.
11675         * target.h (struct target_ops) <to_call_history>: Use
11676         TARGET_DEFAULT_NORETURN.
11677
11678 2014-02-19  Tom Tromey  <tromey@redhat.com>
11679
11680         * target-delegates.c: Rebuild.
11681         * target.c (target_call_history_from): Unconditionally delegate.
11682         * target.h (struct target_ops) <to_call_history_from>: Use
11683         TARGET_DEFAULT_NORETURN.
11684
11685 2014-02-19  Tom Tromey  <tromey@redhat.com>
11686
11687         * target-delegates.c: Rebuild.
11688         * target.c (target_call_history_range): Unconditionally delegate.
11689         * target.h (struct target_ops) <to_call_history_range>: Use
11690         TARGET_DEFAULT_NORETURN.
11691
11692 2014-02-19  Tom Tromey  <tromey@redhat.com>
11693
11694         * target-delegates.c: Rebuild.
11695         * target.c (target_verify_memory): Unconditionally delegate.
11696         * target.h (struct target_ops) <to_verify_memory>: Use
11697         TARGET_DEFAULT_NORETURN.
11698
11699 2014-02-19  Tom Tromey  <tromey@redhat.com>
11700
11701         * target-delegates.c: Rebuild.
11702         * target.c (target_core_of_thread): Unconditionally delegate.
11703         * target.h (struct target_ops) <to_core_of_thread>: Use
11704         TARGET_DEFAULT_RETURN.
11705
11706 2014-02-19  Tom Tromey  <tromey@redhat.com>
11707
11708         * target-delegates.c: Rebuild.
11709         * target.c (target_flash_done): Unconditionally delegate.
11710         * target.h (struct target_ops) <to_flash_done>: Use
11711         TARGET_DEFAULT_NORETURN.
11712
11713 2014-02-19  Tom Tromey  <tromey@redhat.com>
11714
11715         * target-delegates.c: Rebuild.
11716         * target.c (target_flash_erase): Unconditionally delegate.
11717         * target.h (struct target_ops) <to_flash_erase>: Use
11718         TARGET_DEFAULT_NORETURN.
11719
11720 2014-02-19  Tom Tromey  <tromey@redhat.com>
11721
11722         * target-delegates.c: Rebuild.
11723         * target.c (target_get_section_table): Unconditionally delegate.
11724         * target.h (struct target_ops) <to_get_section_table>: Use
11725         TARGET_DEFAULT_RETURN.
11726
11727 2014-02-19  Tom Tromey  <tromey@redhat.com>
11728
11729         * target-delegates.c: Rebuild.
11730         * target.c (target_pid_to_str): Unconditionally delegate.
11731         (init_dummy_target): Don't initialize to_pid_to_str.
11732         (default_pid_to_str): Rename from dummy_pid_to_str.
11733         * target.h (struct target_ops) <to_pid_to_str>: Use
11734         TARGET_DEFAULT_FUNC.
11735
11736 2014-02-19  Tom Tromey  <tromey@redhat.com>
11737
11738         * target-delegates.c: Rebuild.
11739         * target.c (target_find_new_threads): Unconditionally delegate.
11740         * target.h (struct target_ops) <to_find_new_threads>: Use
11741         TARGET_DEFAULT_RETURN.
11742
11743 2014-02-19  Tom Tromey  <tromey@redhat.com>
11744
11745         * target-delegates.c: Rebuild.
11746         * target.c (target_program_signals): Unconditionally delegate.
11747         * target.h (struct target_ops) <to_program_signals>: Use
11748         TARGET_DEFAULT_IGNORE.
11749
11750 2014-02-19  Tom Tromey  <tromey@redhat.com>
11751
11752         * target-delegates.c: Rebuild.
11753         * target.c (target_pass_signals): Unconditionally delegate.
11754         * target.h (struct target_ops) <to_pass_signals>: Use
11755         TARGET_DEFAULT_IGNORE.
11756
11757 2014-02-19  Tom Tromey  <tromey@redhat.com>
11758
11759         * target-delegates.c: Rebuild.
11760         * target.c (default_mourn_inferior): New function.
11761         (target_mourn_inferior): Unconditionally delegate.
11762         * target.h (struct target_ops) <to_mourn_inferior>: Use
11763         TARGET_DEFAULT_FUNC.
11764
11765 2014-02-19  Tom Tromey  <tromey@redhat.com>
11766
11767         * target-delegates.c: Rebuild.
11768         * target.c (default_follow_fork): New function.
11769         (target_follow_fork): Unconditionally delegate.
11770         * target.h (struct target_ops) <to_follow_fork>: Use
11771         TARGET_DEFAULT_FUNC.
11772
11773 2014-02-19  Tom Tromey  <tromey@redhat.com>
11774
11775         * target-delegates.c: Rebuild.
11776         * target.c (target_kill): Unconditionally delegate.
11777         * target.h (struct target_ops) <to_kill>: Use
11778         TARGET_DEFAULT_NORETURN.
11779
11780 2014-02-19  Tom Tromey  <tromey@redhat.com>
11781
11782         * target-delegates.c: Rebuild.
11783         * target.c (target_masked_watch_num_registers): Unconditionally
11784         delegate.
11785         * target.h (struct target_ops) <to_masked_watch_num_registers>:
11786         Use TARGET_DEFAULT_RETURN.
11787
11788 2014-02-19  Tom Tromey  <tromey@redhat.com>
11789
11790         * target-delegates.c: Rebuild.
11791         * target.c (target_remove_mask_watchpoint): Unconditionally
11792         delegate.
11793         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11794         TARGET_DEFAULT_RETURN.
11795
11796 2014-02-19  Tom Tromey  <tromey@redhat.com>
11797
11798         * target-delegates.c: Rebuild.
11799         * target.c (target_insert_mask_watchpoint): Unconditionally
11800         delegate.
11801         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11802         TARGET_DEFAULT_RETURN.
11803
11804 2014-02-19  Tom Tromey  <tromey@redhat.com>
11805
11806         * target-delegates.c: Rebuild.
11807         * target.c (target_ranged_break_num_registers): Unconditionally
11808         delegate.
11809         * target.h (struct target_ops) <to_ranged_break_num_registers>:
11810         Use TARGET_DEFAULT_RETURN.
11811
11812 2014-02-19  Tom Tromey  <tromey@redhat.com>
11813
11814         * target-delegates.c: Rebuild.
11815         * target.c (target_fetch_registers): Unconditionally delegate.
11816         * target.h (struct target_ops) <to_fetch_registers>: Use
11817         TARGET_DEFAULT_NORETURN.
11818
11819 2014-02-19  Tom Tromey  <tromey@redhat.com>
11820
11821         * target-delegates.c: Rebuild.
11822         * target.c (update_current_target): Don't inherit or default
11823         to_stop.
11824         * target.h (struct target_ops) <to_stop>: Use
11825         TARGET_DEFAULT_IGNORE.
11826
11827 2014-02-19  Tom Tromey  <tromey@redhat.com>
11828
11829         * target-delegates.c: Rebuild.
11830         * target.c (update_current_target): Don't inherit or default
11831         to_can_run_breakpoint_commands.
11832         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11833         Use TARGET_DEFAULT_RETURN.
11834
11835 2014-02-19  Tom Tromey  <tromey@redhat.com>
11836
11837         * target-delegates.c: Rebuild.
11838         * target.c (update_current_target): Don't inherit or default
11839         to_supports_evaluation_of_breakpoint_conditions.
11840         * target.h (struct target_ops)
11841         <to_supports_evaluation_of_breakpoint_conditions>: Use
11842         TARGET_DEFAULT_RETURN.
11843
11844 2014-02-19  Tom Tromey  <tromey@redhat.com>
11845
11846         * target-delegates.c: Rebuild.
11847         * target.c (update_current_target): Don't inherit or default
11848         to_augmented_libraries_svr4_read.
11849         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11850         Use TARGET_DEFAULT_RETURN.
11851
11852 2014-02-19  Tom Tromey  <tromey@redhat.com>
11853
11854         * target-delegates.c: Rebuild.
11855         * target.c (update_current_target): Don't inherit or default
11856         to_can_use_agent.
11857         * target.h (struct target_ops) <to_can_use_agent>: Use
11858         TARGET_DEFAULT_RETURN.
11859
11860 2014-02-19  Tom Tromey  <tromey@redhat.com>
11861
11862         * target-delegates.c: Rebuild.
11863         * target.c (update_current_target): Don't inherit or default
11864         to_use_agent.
11865         * target.h (struct target_ops) <to_use_agent>: Use
11866         TARGET_DEFAULT_NORETURN.
11867
11868 2014-02-19  Tom Tromey  <tromey@redhat.com>
11869
11870         * target-delegates.c: Rebuild.
11871         * target.c (update_current_target): Don't inherit or default
11872         to_traceframe_info.
11873         (return_null): Remove.
11874         * target.h (struct target_ops) <to_traceframe_info>: Use
11875         TARGET_DEFAULT_RETURN.
11876
11877 2014-02-19  Tom Tromey  <tromey@redhat.com>
11878
11879         * target-delegates.c: Rebuild.
11880         * target.c (update_current_target): Don't inherit or default
11881         to_static_tracepoint_markers_by_strid.
11882         * target.h (struct target_ops)
11883         <to_static_tracepoint_markers_by_strid>: Use
11884         TARGET_DEFAULT_NORETURN.
11885
11886 2014-02-19  Tom Tromey  <tromey@redhat.com>
11887
11888         * target-delegates.c: Rebuild.
11889         * target.c (update_current_target): Don't inherit or default
11890         to_static_tracepoint_marker_at.
11891         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11892         Use TARGET_DEFAULT_RETURN.
11893
11894 2014-02-19  Tom Tromey  <tromey@redhat.com>
11895
11896         * target-delegates.c: Rebuild.
11897         * target.c (update_current_target): Don't inherit or default
11898         to_set_permissions.
11899         * target.h (struct target_ops) <to_set_permissions>: Use
11900         TARGET_DEFAULT_IGNORE.
11901
11902 2014-02-19  Tom Tromey  <tromey@redhat.com>
11903
11904         * target-delegates.c: Rebuild.
11905         * target.c (update_current_target): Don't inherit or default
11906         to_get_tib_address.
11907         * target.h (struct target_ops) <to_get_tib_address>: Use
11908         TARGET_DEFAULT_NORETURN.
11909
11910 2014-02-19  Tom Tromey  <tromey@redhat.com>
11911
11912         * target-delegates.c: Rebuild.
11913         * target.c (update_current_target): Don't inherit or default
11914         to_set_trace_notes.
11915         * target.h (struct target_ops) <to_set_trace_notes>: 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 initialize
11922         to_set_trace_buffer_size.
11923         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11924         TARGET_DEFAULT_IGNORE.
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_set_circular_trace_buffer.
11931         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11932         TARGET_DEFAULT_IGNORE.
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_set_disconnected_tracing.
11939         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11940         TARGET_DEFAULT_IGNORE.
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_get_min_fast_tracepoint_insn_len.
11947         (return_minus_one): Remove.
11948         * target.h (struct target_ops)
11949         <to_get_min_fast_tracepoint_insn_len>: Use 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_get_raw_trace_data.
11956         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11957         TARGET_DEFAULT_NORETURN.
11958
11959 2014-02-19  Tom Tromey  <tromey@redhat.com>
11960
11961         * target-delegates.c: Rebuild.
11962         * target.c (update_current_target): Don't inherit or default
11963         to_upload_trace_state_variables.
11964         * target.h (struct target_ops) <to_upload_trace_state_variables>:
11965         Use TARGET_DEFAULT_RETURN.
11966
11967 2014-02-19  Tom Tromey  <tromey@redhat.com>
11968
11969         * target-delegates.c: Rebuild.
11970         * target.c (update_current_target): Don't inherit or default
11971         to_upload_tracepoints.
11972         * target.h (struct target_ops) <to_upload_tracepoints>: Use
11973         TARGET_DEFAULT_RETURN.
11974
11975 2014-02-19  Tom Tromey  <tromey@redhat.com>
11976
11977         * target-delegates.c: Rebuild.
11978         * target.c (update_current_target): Don't inherit or default
11979         to_save_trace_data.
11980         * target.h (struct target_ops) <to_save_trace_data>: Use
11981         TARGET_DEFAULT_NORETURN.
11982
11983 2014-02-19  Tom Tromey  <tromey@redhat.com>
11984
11985         * target-delegates.c: Rebuild.
11986         * target.c (update_current_target): Don't inherit or default
11987         to_get_trace_state_variable_value.
11988         * target.h (struct target_ops)
11989         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11990
11991 2014-02-19  Tom Tromey  <tromey@redhat.com>
11992
11993         * target-delegates.c: Rebuild.
11994         * target.c (update_current_target): Don't inherit or default
11995         to_trace_find.
11996         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11997
11998 2014-02-19  Tom Tromey  <tromey@redhat.com>
11999
12000         * target-delegates.c: Rebuild.
12001         * target.c (update_current_target): Don't inherit or default
12002         to_trace_stop.
12003         * target.h (struct target_ops) <to_trace_stop>: Use
12004         TARGET_DEFAULT_NORETURN.
12005
12006 2014-02-19  Tom Tromey  <tromey@redhat.com>
12007
12008         * target-delegates.c: Rebuild.
12009         * target.c (update_current_target): Don't inherit or default
12010         to_get_tracepoint_status.
12011         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12012         TARGET_DEFAULT_NORETURN.
12013
12014 2014-02-19  Tom Tromey  <tromey@redhat.com>
12015
12016         * target-delegates.c: Rebuild.
12017         * target.c (update_current_target): Don't inherit or default
12018         to_get_trace_status.
12019         * target.h (struct target_ops) <to_get_trace_status>: Use
12020         TARGET_DEFAULT_RETURN.
12021
12022 2014-02-19  Tom Tromey  <tromey@redhat.com>
12023
12024         * target-delegates.c: Rebuild.
12025         * target.c (update_current_target): Don't inherit or default
12026         to_trace_start.
12027         * target.h (struct target_ops) <to_trace_start>: Use
12028         TARGET_DEFAULT_NORETURN.
12029
12030 2014-02-19  Tom Tromey  <tromey@redhat.com>
12031
12032         * target-delegates.c: Rebuild.
12033         * target.c (update_current_target): Don't inherit or default
12034         to_trace_set_readonly_regions.
12035         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12036         Use TARGET_DEFAULT_NORETURN.
12037
12038 2014-02-19  Tom Tromey  <tromey@redhat.com>
12039
12040         * target-delegates.c: Rebuild.
12041         * target.c (update_current_target): Don't inherit or default
12042         to_disable_tracepoint.
12043         * target.h (struct target_ops) <to_disable_tracepoint>: Use
12044         TARGET_DEFAULT_NORETURN.
12045
12046 2014-02-19  Tom Tromey  <tromey@redhat.com>
12047
12048         * target-delegates.c: Rebuild.
12049         * target.c (update_current_target): Don't inherit or default
12050         to_enable_tracepoint.
12051         * target.h (struct target_ops) <to_enable_tracepoint>: Use
12052         TARGET_DEFAULT_NORETURN.
12053
12054 2014-02-19  Tom Tromey  <tromey@redhat.com>
12055
12056         * target-delegates.c: Rebuild.
12057         * target.c (update_current_target): Don't inherit or default
12058         to_download_trace_state_variable.
12059         * target.h (struct target_ops) <to_download_trace_state_variable>:
12060         Use TARGET_DEFAULT_NORETURN.
12061
12062 2014-02-19  Tom Tromey  <tromey@redhat.com>
12063
12064         * target-delegates.c: Rebuild.
12065         * target.c (update_current_target): Don't inherit or default
12066         to_can_download_tracepoint.
12067         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12068         TARGET_DEFAULT_RETURN.
12069
12070 2014-02-19  Tom Tromey  <tromey@redhat.com>
12071
12072         * target-delegates.c: Rebuild.
12073         * target.c (update_current_target): Don't inherit or default
12074         to_download_tracepoint.
12075         * target.h (struct target_ops) <to_download_tracepoint>: Use
12076         TARGET_DEFAULT_NORETURN.
12077
12078 2014-02-19  Tom Tromey  <tromey@redhat.com>
12079
12080         * target-delegates.c: Rebuild.
12081         * target.c (update_current_target): Don't inherit or default
12082         to_trace_init.
12083         * target.h (struct target_ops) <to_trace_init>: Use
12084         TARGET_DEFAULT_RETURN.
12085
12086 2014-02-19  Tom Tromey  <tromey@redhat.com>
12087
12088         * target-delegates.c: Rebuild.
12089         * target.c (update_current_target): Don't inherit or default
12090         to_supports_string_tracing.
12091         * target.h (struct target_ops) <to_supports_string_tracing>: Use
12092         TARGET_DEFAULT_RETURN.
12093
12094 2014-02-19  Tom Tromey  <tromey@redhat.com>
12095
12096         * target-delegates.c: Rebuild.
12097         * target.c (update_current_target): Don't inherit or default
12098         to_supports_enable_disable_tracepoint.
12099         * target.h (struct target_ops)
12100         <to_supports_enable_disable_tracepoint>: Use
12101         TARGET_DEFAULT_RETURN.
12102
12103 2014-02-19  Tom Tromey  <tromey@redhat.com>
12104
12105         * target-delegates.c: Rebuild.
12106         * target.c (update_current_target): Don't inherit or default
12107         to_supports_multi_process.
12108         * target.h (struct target_ops) <to_supports_multi_process>: Use
12109         TARGET_DEFAULT_RETURN.
12110
12111 2014-02-19  Tom Tromey  <tromey@redhat.com>
12112
12113         * target-delegates.c: Rebuild.
12114         * target.c (update_current_target): Don't inherit or default
12115         to_get_ada_task_ptid.
12116         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12117         TARGET_DEFAULT_FUNC.
12118
12119 2014-02-19  Tom Tromey  <tromey@redhat.com>
12120
12121         * target-delegates.c: Rebuild.
12122         * target.c (update_current_target): Don't inherit or default
12123         to_thread_architecture.
12124         * target.h (struct target_ops) <to_thread_architecture>: Use
12125         TARGET_DEFAULT_FUNC.
12126
12127 2014-02-19  Tom Tromey  <tromey@redhat.com>
12128
12129         * target-delegates.c: Rebuild.
12130         * target.c (update_current_target): Don't inherit or default
12131         to_execution_direction.
12132         * target.h (struct target_ops) <to_execution_direction>: Use
12133         TARGET_DEFAULT_FUNC.
12134
12135 2014-02-19  Tom Tromey  <tromey@redhat.com>
12136
12137         * target-delegates.c: Rebuild.
12138         * target.c (update_current_target): Don't inherit or default
12139         to_can_execute_reverse.
12140         * target.h (struct target_ops) <to_can_execute_reverse>: Use
12141         TARGET_DEFAULT_RETURN.
12142         (target_can_execute_reverse): Unconditionally delegate.
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_goto_bookmark.
12149         (dummy_goto_bookmark): Remove.
12150         (init_dummy_target): Don't inherit or default to_goto_bookmark.
12151         * target.h (struct target_ops) <to_goto_bookmark>: Use
12152         TARGET_DEFAULT_NORETURN.
12153
12154 2014-02-19  Tom Tromey  <tromey@redhat.com>
12155
12156         * target-delegates.c: Rebuild.
12157         * target.c (update_current_target): Don't inherit or default
12158         to_get_bookmark.
12159         (dummy_get_bookmark): Remove.
12160         (init_dummy_target): Don't inherit or default to_get_bookmark.
12161         * target.h (struct target_ops) <to_get_bookmark>: Use
12162         TARGET_DEFAULT_NORETURN
12163
12164 2014-02-19  Tom Tromey  <tromey@redhat.com>
12165
12166         * target-delegates.c: Rebuild.
12167         * target.c (update_current_target): Don't inherit or default
12168         to_make_corefile_notes.
12169         (init_dummy_target): Don't initialize to_make_corefile_notes.
12170         * target.h (struct target_ops) <to_make_corefile_notes>: Use
12171         TARGET_DEFAULT_FUNC.
12172
12173 2014-02-19  Tom Tromey  <tromey@redhat.com>
12174
12175         * target-delegates.c: Rebuild.
12176         * target.c (update_current_target): Don't inherit or default
12177         to_find_memory_regions.
12178         (init_dummy_target): Don't initialize to_find_memory_regions.
12179         * target.h (struct target_ops) <to_find_memory_regions>: Use
12180         TARGET_DEFAULT_FUNC.
12181
12182 2014-02-19  Tom Tromey  <tromey@redhat.com>
12183
12184         * target-delegates.c: Rebuild.
12185         * target.c (update_current_target): Don't inherit or default
12186         to_log_command.
12187         * target.h (struct target_ops) <to_log_command>: Use
12188         TARGET_DEFAULT_IGNORE.
12189         (target_log_command): Unconditionally delegate.
12190
12191 2014-02-19  Tom Tromey  <tromey@redhat.com>
12192
12193         * target-delegates.c: Rebuild.
12194         * target.c (update_current_target): Don't inherit or default
12195         to_pid_to_exec_file.
12196         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12197         TARGET_DEFAULT_RETURN.
12198
12199 2014-02-19  Tom Tromey  <tromey@redhat.com>
12200
12201         * target-delegates.c: Rebuild.
12202         * target.c (update_current_target): Don't inherit or default
12203         to_thread_name.
12204         (target_thread_name): Unconditionally delegate.
12205         * target.h (struct target_ops) <to_thread_name>: Use
12206         TARGET_DEFAULT_RETURN.
12207
12208 2014-02-19  Tom Tromey  <tromey@redhat.com>
12209
12210         * target-delegates.c: Rebuild.
12211         * target.c (update_current_target): Don't inherit or default
12212         to_extra_thread_info.
12213         * target.h (struct target_ops) <to_extra_thread_info>: Use
12214         TARGET_DEFAULT_RETURN.
12215
12216 2014-02-19  Tom Tromey  <tromey@redhat.com>
12217
12218         * target-delegates.c: Rebuild.
12219         * target.c (update_current_target): Don't inherit or default
12220         to_has_exited.
12221         * target.h (struct target_ops) <to_has_exited>: Use
12222         TARGET_DEFAULT_RETURN..
12223
12224 2014-02-19  Tom Tromey  <tromey@redhat.com>
12225
12226         * target-delegates.c: Rebuild.
12227         * target.c (update_current_target): Don't inherit or default
12228         to_set_syscall_catchpoint.
12229         (return_one): Remove.
12230         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12231         TARGET_DEFAULT_RETURN.
12232
12233 2014-02-19  Tom Tromey  <tromey@redhat.com>
12234
12235         * target-delegates.c: Rebuild.
12236         * target.c (update_current_target): Don't inherit or default
12237         to_insert_exec_catchpoint.
12238         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12239         TARGET_DEFAULT_RETURN.
12240
12241 2014-01-08  Tom Tromey  <tromey@redhat.com>
12242
12243         * target-delegates.c: Rebuild.
12244         * target.c (update_current_target): Don't inherit or default
12245         to_insert_exec_catchpoint.
12246         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12247         TARGET_DEFAULT_RETURN.
12248
12249 2014-02-19  Tom Tromey  <tromey@redhat.com>
12250
12251         * target-delegates.c: Rebuild.
12252         * target.c (update_current_target): Don't inherit or default
12253         to_remove_vfork_catchpoint.
12254         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12255         TARGET_DEFAULT_RETURN.
12256
12257 2014-02-19  Tom Tromey  <tromey@redhat.com>
12258
12259         * target-delegates.c: Rebuild.
12260         * target.c (update_current_target): Don't inherit or default
12261         to_insert_vfork_catchpoint.
12262         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12263         TARGET_DEFAULT_RETURN.
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_remove_fork_catchpoint.
12270         * target.h (struct target_ops) <to_remove_fork_catchpoint>: 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_insert_fork_catchpoint.
12278         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12279         TARGET_DEFAULT_RETURN.
12280
12281 2014-02-19  Tom Tromey  <tromey@redhat.com>
12282
12283         * target-delegates.c: Rebuild.
12284         * target.c (update_current_target): Don't inherit or default
12285         to_post_startup_inferior.
12286         * target.h (struct target_ops) <to_post_startup_inferior>: Use
12287         TARGET_DEFAULT_IGNORE.
12288
12289 2014-02-19  Tom Tromey  <tromey@redhat.com>
12290
12291         * target-delegates.c: Rebuild.
12292         * target.c (update_current_target): Don't inherit or default
12293         to_load.
12294         * target.h (struct target_ops) <to_load>: Use
12295         TARGET_DEFAULT_NORETURN.
12296
12297 2014-02-19  Tom Tromey  <tromey@redhat.com>
12298
12299         * target-delegates.c: Rebuild.
12300         * target.c (update_current_target): Don't inherit or default
12301         to_terminal_info.
12302         * target.h (struct target_ops) <to_terminal_info>: Use
12303         TARGET_DEFAULT_FUNC.
12304
12305 2014-02-19  Tom Tromey  <tromey@redhat.com>
12306
12307         * target-delegates.c: Rebuild.
12308         * target.c (update_current_target): Don't inherit or default
12309         to_terminal_save_ours.
12310         * target.h (struct target_ops) <to_terminal_save_ours>: Use
12311         TARGET_DEFAULT_IGNORE.
12312
12313 2014-02-19  Tom Tromey  <tromey@redhat.com>
12314
12315         * target-delegates.c: Rebuild.
12316         * target.c (update_current_target): Don't inherit or default
12317         to_terminal_ours.
12318         * target.h (struct target_ops) <to_terminal_ours>: Use
12319         TARGET_DEFAULT_IGNORE.
12320
12321 2014-02-19  Tom Tromey  <tromey@redhat.com>
12322
12323         * target-delegates.c: Rebuild.
12324         * target.c (update_current_target): Don't inherit or default
12325         to_terminal_ours_for_output.
12326         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12327         TARGET_DEFAULT_IGNORE.
12328
12329 2014-02-19  Tom Tromey  <tromey@redhat.com>
12330
12331         * target-delegates.c: Rebuild.
12332         * target.c (update_current_target): Don't inherit or default
12333         to_terminal_inferior.
12334         * target.h (struct target_ops) <to_terminal_inferior>: Use
12335         TARGET_DEFAULT_IGNORE.
12336
12337 2014-02-19  Tom Tromey  <tromey@redhat.com>
12338
12339         * target-delegates.c: Rebuild.
12340         * target.c (update_current_target): Don't inherit or default
12341         to_terminal_init.
12342         * target.h (struct target_ops) <to_terminal_init>: Use
12343         TARGET_DEFAULT_IGNORE.
12344
12345 2014-02-19  Tom Tromey  <tromey@redhat.com>
12346
12347         * target-delegates.c: Rebuild.
12348         * target.c (update_current_target): Don't inherit or default
12349         to_can_accel_watchpoint_condition.
12350         * target.h (struct target_ops)
12351         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12352
12353 2014-02-19  Tom Tromey  <tromey@redhat.com>
12354
12355         * target-delegates.c: Rebuild.
12356         * target.c (update_current_target): Don't inherit or default
12357         to_region_ok_for_hw_watchpoint.
12358         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12359         Use TARGET_DEFAULT_FUNC.
12360
12361 2014-02-19  Tom Tromey  <tromey@redhat.com>
12362
12363         * target-delegates.c: Rebuild.
12364         * target.c (update_current_target): Don't inherit or default
12365         to_watchpoint_addr_within_range.
12366         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12367         Use TARGET_DEFAULT_FUNC.
12368
12369 2014-02-19  Tom Tromey  <tromey@redhat.com>
12370
12371         * target-delegates.c: Rebuild.
12372         * target.c (update_current_target): Don't inherit or default
12373         to_remove_watchpoint.
12374         * target.h (struct target_ops) <to_remove_watchpoint>: Use
12375         TARGET_DEFAULT_NORETURN.
12376
12377 2014-02-19  Tom Tromey  <tromey@redhat.com>
12378
12379         * target-delegates.c: Rebuild.
12380         * target.c (update_current_target): Don't inherit or default
12381         to_insert_watchpoint.
12382         * target.h (struct target_ops) <to_insert_watchpoint>: Use
12383         TARGET_DEFAULT_RETURN.
12384
12385 2014-02-19  Tom Tromey  <tromey@redhat.com>
12386
12387         * target-delegates.c: Rebuild.
12388         * target.c (update_current_target): Don't inherit or default
12389         to_remove_hw_breakpoint.
12390         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12391         TARGET_DEFAULT_RETURN.
12392
12393 2014-02-19  Tom Tromey  <tromey@redhat.com>
12394
12395         * target-delegates.c: Rebuild.
12396         * target.c (update_current_target): Don't inherit or default
12397         to_insert_hw_breakpoint.
12398         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12399         TARGET_DEFAULT_RETURN.
12400
12401 2014-02-19  Tom Tromey  <tromey@redhat.com>
12402
12403         * target-delegates.c: Rebuild.
12404         * target.c (update_current_target): Don't inherit or default
12405         to_can_use_hw_breakpoint.
12406         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12407         TARGET_DEFAULT_RETURN.
12408
12409 2014-02-19  Tom Tromey  <tromey@redhat.com>
12410
12411         * target-delegates.c: Rebuild.
12412         * target.c (update_current_target): Don't inherit or default
12413         to_files_info.
12414         * target.h (struct target_ops) <to_files_info>: Use
12415         TARGET_DEFAULT_IGNORE.
12416
12417 2014-02-19  Tom Tromey  <tromey@redhat.com>
12418
12419         * target-delegates.c: Rebuild.
12420         * target.c (update_current_target): Don't inherit or default
12421         to_store.
12422         * target.h (struct target_ops) <to_store>: Use
12423         TARGET_DEFAULT_NORETURN.
12424
12425 2014-02-19  Tom Tromey  <tromey@redhat.com>
12426
12427         * target-delegates.c: Rebuild.
12428         * target.c (update_current_target): Don't inherit or default
12429         to_post_attach.
12430         * target.h (struct target_ops) <to_post_attach>: Use
12431         TARGET_DEFAULT_IGNORE.
12432
12433 2014-02-19  Tom Tromey  <tromey@redhat.com>
12434
12435         * target-delegates.c: Rebuild.
12436         * target.c (update_current_target): Don't inherit or default
12437         to_rcmd.
12438         (default_rcmd): New function.
12439         (do_monitor_command): Unconditionally delegate.
12440         * target.h (struct target_ops) <to_rmcd>: Use
12441         TARGET_DEFAULT_FUNC.
12442
12443 2014-02-19  Tom Tromey  <tromey@redhat.com>
12444
12445         * target-delegates.c: Rebuild.
12446         * target.c (init_dummy_target): Don't initialize to_attach.
12447         (target_attach): Unconditionally delegate.
12448         * target.h (struct target_ops) <to_attach>: Use
12449         TARGET_DEFAULT_FUNC.
12450
12451 2014-02-19  Tom Tromey  <tromey@redhat.com>
12452
12453         * target-delegates.c: Rebuild.
12454         * target.c (target_detach): Unconditionally delegate.
12455         (init_dummy_target): Don't initialize to_detach.
12456         * target.h (struct target_ops) <to_detach>: Use
12457         TARGET_DEFAULT_IGNORE.
12458
12459 2014-02-19  Tom Tromey  <tromey@redhat.com>
12460
12461         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12462         Add argument.
12463         (target_augmented_libraries_svr4_read): Add argument.
12464         * target.c (update_current_target): Update.
12465         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12466         argument.
12467
12468 2014-02-19  Tom Tromey  <tromey@redhat.com>
12469
12470         * target.h (struct target_ops) <to_call_history_range>: Add
12471         argument.
12472         * target.c (target_call_history_range): Add argument.
12473         * record-btrace.c (record_btrace_call_history_range): Add 'self'
12474         argument.
12475         (record_btrace_call_history_from): Update.
12476
12477 2014-02-19  Tom Tromey  <tromey@redhat.com>
12478
12479         * target.h (struct target_ops) <to_call_history_from>: Add
12480         argument.
12481         * target.c (target_call_history_from): Add argument.
12482         * record-btrace.c (record_btrace_call_history_from): Add 'self'
12483         argument.
12484
12485 2014-02-19  Tom Tromey  <tromey@redhat.com>
12486
12487         * target.h (struct target_ops) <to_call_history>: Add argument.
12488         * target.c (target_call_history): Add argument.
12489         * record-btrace.c (record_btrace_call_history): Add 'self'
12490         argument.
12491
12492 2014-02-19  Tom Tromey  <tromey@redhat.com>
12493
12494         * target.h (struct target_ops) <to_insn_history_range>: Add
12495         argument.
12496         * target.c (target_insn_history_range): Add argument.
12497         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12498         argument.
12499         (record_btrace_insn_history_from): Update.
12500
12501 2014-02-19  Tom Tromey  <tromey@redhat.com>
12502
12503         * target.h (struct target_ops) <to_insn_history_from>: Add
12504         argument.
12505         * target.c (target_insn_history_from): Add argument.
12506         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12507         argument.
12508
12509 2014-02-19  Tom Tromey  <tromey@redhat.com>
12510
12511         * target.h (struct target_ops) <to_insn_history>: Add argument.
12512         * target.c (target_insn_history): Add argument.
12513         * record-btrace.c (record_btrace_insn_history): Add 'self'
12514         argument.
12515
12516 2014-02-19  Tom Tromey  <tromey@redhat.com>
12517
12518         * target.h (struct target_ops) <to_goto_record>: Add argument.
12519         * target.c (target_goto_record): Add argument.
12520         * record-full.c (record_full_goto): Add 'self' argument.
12521         * record-btrace.c (record_btrace_goto): Add 'self' argument.
12522
12523 2014-02-19  Tom Tromey  <tromey@redhat.com>
12524
12525         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12526         * target.c (target_goto_record_end): Add argument.
12527         * record-full.c (record_full_goto_end): Add 'self' argument.
12528         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12529
12530 2014-02-19  Tom Tromey  <tromey@redhat.com>
12531
12532         * target.h (struct target_ops) <to_goto_record_begin>: Add
12533         argument.
12534         * target.c (target_goto_record_begin): Add argument.
12535         * record-full.c (record_full_goto_begin): Add 'self' argument.
12536         * record-btrace.c (record_btrace_goto_begin): Add 'self'
12537         argument.
12538
12539 2014-02-19  Tom Tromey  <tromey@redhat.com>
12540
12541         * target.h (struct target_ops) <to_record_is_replaying>: Add
12542         argument.
12543         * target.c (target_record_is_replaying): Add argument.
12544         * record-full.c (record_full_is_replaying): Add 'self' argument.
12545         * record-btrace.c (record_btrace_is_replaying): Add 'self'
12546         argument.
12547         (record_btrace_xfer_partial, record_btrace_store_registers)
12548         (record_btrace_prepare_to_store, record_btrace_resume)
12549         (record_btrace_wait, record_btrace_decr_pc_after_break)
12550         (record_btrace_find_new_threads, record_btrace_thread_alive):
12551         Update.
12552
12553 2014-02-19  Tom Tromey  <tromey@redhat.com>
12554
12555         * target.h (struct target_ops) <to_delete_record>: Add argument.
12556         * target.c (target_delete_record): Add argument.
12557         * record-full.c (record_full_delete): Add 'self' argument.
12558
12559 2014-02-19  Tom Tromey  <tromey@redhat.com>
12560
12561         * target.h (struct target_ops) <to_save_record>: Add argument.
12562         * target.c (target_save_record): Add argument.
12563         * record-full.c (record_full_save): Add 'self' argument.
12564         (record_full_save): Add 'self' argument.
12565
12566 2014-02-19  Tom Tromey  <tromey@redhat.com>
12567
12568         * target.h (struct target_ops) <to_info_record>: Add argument.
12569         * target.c (target_info_record): Add argument.
12570         * record.c (info_record_command): Add argument.
12571         * record-full.c (record_full_info): Add 'self' argument.
12572         * record-btrace.c (record_btrace_info): Add 'self' argument.
12573
12574 2014-02-19  Tom Tromey  <tromey@redhat.com>
12575
12576         * target.h (struct target_ops) <to_stop_recording>: Add argument.
12577         * target.c (target_stop_recording): Add argument.
12578         * record.c (record_stop): Add argument.
12579         * record-btrace.c (record_btrace_stop_recording): Add 'self'
12580         argument.
12581
12582 2014-02-19  Tom Tromey  <tromey@redhat.com>
12583
12584         * target.h (struct target_ops) <to_read_btrace>: Add argument.
12585         * target.c (struct target_ops) <to_read_btrace>: Add argument.
12586         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12587         argument.
12588         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12589         (_initialize_amd64_linux_nat): Use it.
12590         * i386-linux-nat.c (i386_linux_read_btrace): New function.
12591         (_initialize_i386_linux_nat): Use it.
12592
12593 2014-02-19  Tom Tromey  <tromey@redhat.com>
12594
12595         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12596         * target.c (target_teardown_btrace): Add argument.
12597         * remote.c (remote_teardown_btrace): Add 'self' argument.
12598         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12599         argument.
12600         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12601         argument.
12602
12603 2014-02-19  Tom Tromey  <tromey@redhat.com>
12604
12605         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12606         * target.c (target_disable_btrace): Add argument.
12607         * remote.c (remote_disable_btrace): Add 'self' argument.
12608         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12609         argument.
12610         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12611         argument.
12612
12613 2014-02-19  Tom Tromey  <tromey@redhat.com>
12614
12615         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12616         * target.c (target_enable_btrace): Add argument.
12617         * remote.c (remote_enable_btrace): Add 'self' argument.
12618         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12619         argument.
12620         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12621         argument.
12622
12623 2014-02-19  Tom Tromey  <tromey@redhat.com>
12624
12625         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12626         (target_can_use_agent): Add argument.
12627         * target.c (update_current_target): Update.
12628         * remote.c (remote_can_use_agent): Add 'self' argument.
12629         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12630
12631 2014-02-19  Tom Tromey  <tromey@redhat.com>
12632
12633         * target.h (struct target_ops) <to_use_agent>: Add argument.
12634         (target_use_agent): Add argument.
12635         * target.c (update_current_target): Update.
12636         * remote.c (remote_use_agent): Add 'self' argument.
12637         * inf-child.c (inf_child_use_agent): Add 'self' argument.
12638
12639 2014-02-19  Tom Tromey  <tromey@redhat.com>
12640
12641         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12642         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12643         (target_traceframe_info): Add argument.
12644         * target.c (update_current_target): Update.
12645         * remote.c (remote_traceframe_info): Add 'self' argument.
12646         * ctf.c (ctf_traceframe_info): Add 'self' argument.
12647
12648 2014-02-19  Tom Tromey  <tromey@redhat.com>
12649
12650         * target.h (target_static_tracepoint_markers_by_strid): Add
12651         argument.
12652         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12653         'self' argument.
12654         * target.c (update_current_target): Update.
12655         * remote.c (struct target_ops)
12656         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12657         * linux-nat.c (struct target_ops)
12658         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12659
12660 2014-02-19  Tom Tromey  <tromey@redhat.com>
12661
12662         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12663         Add argument.
12664         (target_static_tracepoint_marker_at): Add argument.
12665         * target.c (update_current_target): Update.
12666         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12667         argument.
12668
12669 2014-02-19  Tom Tromey  <tromey@redhat.com>
12670
12671         * target.h (struct target_ops) <to_set_permissions>: Add argument.
12672         (target_set_permissions): Add argument.
12673         * target.c (update_current_target): Update.
12674         * remote.c (remote_set_permissions): Add 'self' argument.
12675         (remote_start_remote): Update.
12676
12677 2014-02-19  Tom Tromey  <tromey@redhat.com>
12678
12679         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12680         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12681         (target_get_tib_address): Add argument.
12682         * target.c (update_current_target): Update.
12683         * remote.c (remote_get_tib_address): Add 'self' argument.
12684
12685 2014-02-19  Tom Tromey  <tromey@redhat.com>
12686
12687         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12688         (target_set_trace_notes): Add argument.
12689         * target.c (update_current_target): Update.
12690         * remote.c (remote_set_trace_notes): Add 'self' argument.
12691
12692 2014-02-19  Tom Tromey  <tromey@redhat.com>
12693
12694         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12695         argument.
12696         (target_set_trace_buffer_size): Add argument.
12697         * target.c (update_current_target): Update.
12698         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12699
12700 2014-02-19  Tom Tromey  <tromey@redhat.com>
12701
12702         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12703         argument.
12704         (target_set_circular_trace_buffer): Add argument.
12705         * target.c (update_current_target): Update.
12706         * remote.c (remote_set_circular_trace_buffer): Add 'self'
12707         argument.
12708
12709 2014-02-19  Tom Tromey  <tromey@redhat.com>
12710
12711         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12712         argument.
12713         (target_set_disconnected_tracing): Add argument.
12714         * target.c (update_current_target): Update.
12715         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12716
12717 2014-02-19  Tom Tromey  <tromey@redhat.com>
12718
12719         * target.h (struct target_ops)
12720         <to_get_min_fast_tracepoint_insn_len>: Add argument.
12721         (target_get_min_fast_tracepoint_insn_len): Add argument.
12722         * target.c (update_current_target): Update.
12723         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12724         argument.
12725
12726 2014-02-19  Tom Tromey  <tromey@redhat.com>
12727
12728         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12729         argument.
12730         (target_get_raw_trace_data): Add argument.
12731         * target.c (update_current_target): Update.
12732         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12733
12734 2014-02-19  Tom Tromey  <tromey@redhat.com>
12735
12736         * target.h (struct target_ops) <to_upload_trace_state_variables>:
12737         Add argument.
12738         (target_upload_trace_state_variables): Add argument.
12739         * target.c (update_current_target): Update.
12740         * remote.c (remote_upload_trace_state_variables): Add 'self'
12741         argument.
12742         (remote_start_remote): Update.
12743
12744 2014-02-19  Tom Tromey  <tromey@redhat.com>
12745
12746         * target.h (struct target_ops) <to_upload_tracepoints>: Add
12747         argument.
12748         (target_upload_tracepoints): Add argument.
12749         * target.c (update_current_target): Update.
12750         * remote.c (remote_upload_tracepoints): Add 'self' argument.
12751         (remote_start_remote): Update.
12752
12753 2014-02-19  Tom Tromey  <tromey@redhat.com>
12754
12755         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12756         (target_save_trace_data): Add argument.
12757         * target.c (update_current_target): Update.
12758         * remote.c (remote_save_trace_data): Add 'self' argument.
12759
12760 2014-02-19  Tom Tromey  <tromey@redhat.com>
12761
12762         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12763         argument.
12764         * target.h (struct target_ops)
12765         <to_get_trace_state_variable_value>: Add argument.
12766         (target_get_trace_state_variable_value): Add argument.
12767         * target.c (update_current_target): Update.
12768         * remote.c (remote_get_trace_state_variable_value): Add 'self'
12769         argument.
12770         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12771
12772 2014-02-19  Tom Tromey  <tromey@redhat.com>
12773
12774         * tracepoint.c (tfile_trace_find): Add 'self' argument.
12775         * target.h (struct target_ops) <to_trace_find>: Add argument.
12776         (target_trace_find): Add argument.
12777         * target.c (update_current_target): Update.
12778         * remote.c (remote_trace_find): Add 'self' argument.
12779         * ctf.c (ctf_trace_find): Add 'self' argument.
12780
12781 2014-02-19  Tom Tromey  <tromey@redhat.com>
12782
12783         * target.h (struct target_ops) <to_trace_stop>: Add argument.
12784         (target_trace_stop): Add argument.
12785         * target.c (update_current_target): Update.
12786         * remote.c (remote_trace_stop): Add 'self' argument.
12787
12788 2014-02-19  Tom Tromey  <tromey@redhat.com>
12789
12790         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12791         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12792         argument.
12793         (target_get_tracepoint_status): Add argument.
12794         * target.c (update_current_target): Update.
12795         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12796
12797 2014-02-19  Tom Tromey  <tromey@redhat.com>
12798
12799         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12800         * target.h (struct target_ops) <to_get_trace_status>: Add
12801         argument.
12802         (target_get_trace_status): Add argument.
12803         * target.c (update_current_target): Update.
12804         * remote.c (remote_get_trace_status): Add 'self' argument.
12805         (remote_start_remote, remote_can_download_tracepoint): Update.
12806         * ctf.c (ctf_get_trace_status): Add 'self' argument.
12807
12808 2014-02-19  Tom Tromey  <tromey@redhat.com>
12809
12810         * target.h (struct target_ops) <to_trace_start>: Add argument.
12811         (target_trace_start): Add argument.
12812         * target.c (update_current_target): Update.
12813         * remote.c (remote_trace_start): Add 'self' argument.
12814
12815 2014-02-19  Tom Tromey  <tromey@redhat.com>
12816
12817         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12818         Add argument.
12819         (target_trace_set_readonly_regions): Add argument.
12820         * target.c (update_current_target): Update.
12821         * remote.c (remote_trace_set_readonly_regions): Add 'self'
12822         argument.
12823
12824 2014-02-19  Tom Tromey  <tromey@redhat.com>
12825
12826         * target.h (struct target_ops) <to_disable_tracepoint>: Add
12827         argument.
12828         (target_disable_tracepoint): Add argument.
12829         * target.c (update_current_target): Update.
12830         * remote.c (remote_disable_tracepoint): Add 'self' argument.
12831
12832 2014-02-19  Tom Tromey  <tromey@redhat.com>
12833
12834         * target.h (struct target_ops) <to_enable_tracepoint>: Add
12835         argument.
12836         (target_enable_tracepoint): Add argument.
12837         * target.c (update_current_target): Update.
12838         * remote.c (remote_enable_tracepoint): Add 'self' argument.
12839
12840 2014-02-19  Tom Tromey  <tromey@redhat.com>
12841
12842         * target.h (struct target_ops) <to_download_trace_state_variable>:
12843         Add argument.
12844         (target_download_trace_state_variable): Add argument.
12845         * target.c (update_current_target): Update.
12846         * remote.c (remote_download_trace_state_variable): Add 'self'
12847         argument.
12848
12849 2014-02-19  Tom Tromey  <tromey@redhat.com>
12850
12851         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12852         argument.
12853         (target_can_download_tracepoint): Add argument.
12854         * target.c (update_current_target): Update.
12855         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12856
12857 2014-02-19  Tom Tromey  <tromey@redhat.com>
12858
12859         * target.h (struct target_ops) <to_download_tracepoint>: Add
12860         argument.
12861         (target_download_tracepoint): Add argument.
12862         * target.c (update_current_target): Update.
12863         * remote.c (remote_download_tracepoint): Add 'self' argument.
12864
12865 2014-02-19  Tom Tromey  <tromey@redhat.com>
12866
12867         * target.h (struct target_ops) <to_trace_init>: Add argument.
12868         (target_trace_init): Add argument.
12869         * target.c (update_current_target): Update.
12870         * remote.c (remote_trace_init): Add 'self' argument.
12871
12872 2014-02-19  Tom Tromey  <tromey@redhat.com>
12873
12874         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12875         * target.c (target_fileio_readlink): Add argument.
12876         * remote.c (remote_hostio_readlink): Add 'self' argument.
12877         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12878
12879 2014-02-19  Tom Tromey  <tromey@redhat.com>
12880
12881         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12882         * target.c (target_fileio_unlink): Add argument.
12883         * remote.c (remote_hostio_unlink): Add 'self' argument.
12884         (remote_file_delete): Update.
12885         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12886
12887 2014-02-19  Tom Tromey  <tromey@redhat.com>
12888
12889         * target.h (struct target_ops) <to_fileio_close>: Add argument.
12890         * target.c (target_fileio_close): Add argument.
12891         * remote.c (remote_hostio_close): Add 'self' argument.
12892         (remote_hostio_close_cleanup): Update.
12893         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12894         Update.
12895         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12896
12897 2014-02-19  Tom Tromey  <tromey@redhat.com>
12898
12899         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12900         * target.c (target_fileio_pread): Add argument.
12901         * remote.c (remote_hostio_pread): Add 'self' argument.
12902         (remote_bfd_iovec_pread, remote_file_get): Update.
12903         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12904
12905 2014-02-19  Tom Tromey  <tromey@redhat.com>
12906
12907         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12908         * target.c (target_fileio_pwrite): Add argument.
12909         * remote.c (remote_hostio_pwrite): Add 'self' argument.
12910         (remote_file_put): Update.
12911         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12912
12913 2014-02-19  Tom Tromey  <tromey@redhat.com>
12914
12915         * target.h (struct target_ops) <to_fileio_open>: Add argument.
12916         * target.c (target_fileio_open): Add argument.
12917         * remote.c (remote_hostio_open): Add 'self' argument.
12918         (remote_bfd_iovec_open): Add 'self' argument.
12919         (remote_file_put): Add 'self' argument.
12920         (remote_file_get): Add 'self' argument.
12921         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12922
12923 2014-02-19  Tom Tromey  <tromey@redhat.com>
12924
12925         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12926         Add argument.
12927         (target_can_run_breakpoint_commands): Add argument.
12928         * target.c (update_current_target): Update.
12929         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12930         argument.
12931         (remote_insert_breakpoint): Add 'self' argument.
12932         (remote_insert_hw_breakpoint): Add 'self' argument.
12933         (remote_can_run_breakpoint_commands): Add 'self' argument.
12934
12935 2014-02-19  Tom Tromey  <tromey@redhat.com>
12936
12937         * target.h (struct target_ops)
12938         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12939         (target_supports_evaluation_of_breakpoint_conditions): Add
12940         argument.
12941         * target.c (update_current_target): Update.
12942         * remote.c (remote_supports_cond_breakpoints): Add 'self'
12943         argument.
12944         (remote_insert_breakpoint): Add 'self' argument.
12945         (remote_insert_hw_breakpoint): Add 'self' argument.
12946         (remote_supports_cond_breakpoints): Add 'self' argument.
12947
12948 2014-02-19  Tom Tromey  <tromey@redhat.com>
12949
12950         * target.h (struct target_ops) <to_supports_string_tracing>: Add
12951         argument.
12952         (target_supports_string_tracing): Add argument.
12953         * target.c (update_current_target): Update.
12954         * remote.c (remote_supports_string_tracing): Add 'self' argument.
12955
12956 2014-02-19  Tom Tromey  <tromey@redhat.com>
12957
12958         * target.h (struct target_ops)
12959         <to_supports_disable_randomization>: Add argument.
12960         * target.c (find_default_supports_disable_randomization): Add
12961         argument.
12962         (target_supports_disable_randomization): Add argument.
12963         (find_default_supports_disable_randomization): Add 'self'
12964         argument.
12965         * remote.c (extended_remote_supports_disable_randomization): Add
12966         'self' argument.
12967         (remote_supports_disable_randomization): Add 'self' argument.
12968         (extended_remote_create_inferior): Update.
12969         * linux-nat.c (linux_nat_supports_disable_randomization): Add
12970         'self' argument.
12971
12972 2014-02-19  Tom Tromey  <tromey@redhat.com>
12973
12974         * target.h (struct target_ops)
12975         <to_supports_enable_disable_tracepoint>: Add argument.
12976         (target_supports_enable_disable_tracepoint): Add argument.
12977         * target.c (update_current_target): Update.
12978         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12979         argument.
12980
12981 2014-02-19  Tom Tromey  <tromey@redhat.com>
12982
12983         * target.h (struct target_ops) <to_supports_multi_process>: Add
12984         argument.
12985         (target_supports_multi_process): Add argument.
12986         * target.c (update_current_target): Update.
12987         * remote.c (remote_supports_multi_process): Add 'self' argument.
12988         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12989         argument.
12990         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12991         argument.
12992
12993 2014-02-19  Tom Tromey  <tromey@redhat.com>
12994
12995         * target.h (struct target_ops) <to_execution_direction>: Add
12996         argument.
12997         (target_execution_direction): Add argument.
12998         * target.c (default_execution_direction): Add 'self' argument.
12999         * record-full.c (record_full_execution_direction): Add 'self'
13000         argument.
13001
13002 2014-02-19  Tom Tromey  <tromey@redhat.com>
13003
13004         * target.h (struct target_ops) <to_can_execute_reverse>: Add
13005         argument.
13006         (target_can_execute_reverse): Add argument.
13007         * remote.c (remote_can_execute_reverse): Add 'self' argument.
13008         * record-full.c (record_full_can_execute_reverse): Add 'self'
13009         argument.
13010         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13011         argument.
13012
13013 2014-02-19  Tom Tromey  <tromey@redhat.com>
13014
13015         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13016         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13017         argument.
13018         (target_get_ada_task_ptid): Add argument.
13019         * target.c (update_current_target): Update.
13020         (default_get_ada_task_ptid): Add 'self' argument.
13021         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13022         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13023         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13024         argument.
13025         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13026         argument.
13027         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13028         argument.
13029         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13030         argument.
13031         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13032         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13033         argument.
13034
13035 2014-02-19  Tom Tromey  <tromey@redhat.com>
13036
13037         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13038         (target_goto_bookmark): Add argument.
13039         * target.c (dummy_goto_bookmark): Add 'self' argument.
13040         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13041
13042 2014-02-19  Tom Tromey  <tromey@redhat.com>
13043
13044         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13045         (target_get_bookmark): Add argument.
13046         * target.c (dummy_get_bookmark): Add 'self' argument.
13047         * record-full.c (record_full_get_bookmark): Add 'self' argument.
13048
13049 2014-02-19  Tom Tromey  <tromey@redhat.com>
13050
13051         * target.h (struct target_ops) <to_make_corefile_notes>: Add
13052         argument.
13053         (target_make_corefile_notes): Add argument.
13054         * target.c (dummy_make_corefile_notes): Add 'self' argument.
13055         * procfs.c (procfs_make_note_section): Add 'self' argument.
13056         (procfs_make_note_section): Add 'self' argument.
13057         (procfs_make_note_section): Add 'self' argument.
13058         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13059         argument.
13060         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13061         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13062         * exec.c (exec_make_note_section): Add 'self' argument.
13063         (exec_make_note_section): Add 'self' argument.
13064
13065 2014-02-19  Tom Tromey  <tromey@redhat.com>
13066
13067         * target.h (struct target_ops) <to_find_memory_regions>: Add
13068         argument.
13069         (target_find_memory_regions): Add argument.
13070         * target.c (dummy_find_memory_regions): Add 'self' argument.
13071         * procfs.c (proc_find_memory_regions): Add 'self' argument.
13072         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13073         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13074         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13075         * exec. (exec_do_find_memory_regions): New global.
13076         (exec_set_find_memory_regions): Rewrite.
13077         (exec_find_memory_regions): New function.
13078         (init_exec_ops): Use exec_find_memory_regions.
13079
13080 2014-02-19  Tom Tromey  <tromey@redhat.com>
13081
13082         * target.h (struct target_ops) <to_supports_non_stop>: Add
13083         argument.
13084         * target.c (find_default_supports_non_stop): Add argument.
13085         (target_supports_non_stop): Add argument.
13086         (find_default_supports_non_stop): Add 'self' argument.
13087         * remote.c (remote_supports_non_stop): Add 'self' argument.
13088         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13089
13090 2014-02-19  Tom Tromey  <tromey@redhat.com>
13091
13092         * target.h (struct target_ops) <to_log_command>: Add argument.
13093         (target_log_command): Add argument.
13094         * serial.h (serial_log_command): Add 'self' argument.
13095         * serial.c (serial_log_command): Add 'self' argument.
13096
13097 2014-02-19  Tom Tromey  <tromey@redhat.com>
13098
13099         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13100         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13101         argument.
13102         (target_pid_to_exec_file): Add argument.
13103         * target.c (debug_to_pid_to_exec_file): Add argument.
13104         (update_current_target): Update.
13105         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13106         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13107         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13108         (linux_handle_extended_wait): Update.
13109         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13110         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13111         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13112         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13113
13114 2014-02-19  Tom Tromey  <tromey@redhat.com>
13115
13116         * target.h (struct target_ops) <to_rcmd>: Add argument.
13117         (target_rcmd): Add argument.
13118         * target.c (debug_to_rcmd): Add argument.
13119         (update_current_target, do_monitor_command): Update.
13120         * remote.c (remote_rcmd): Add 'self' argument.
13121         * monitor.c (monitor_rcmd): Add 'self' argument.
13122
13123 2014-02-19  Tom Tromey  <tromey@redhat.com>
13124
13125         * windows-nat.c (windows_stop): Add 'self' argument.
13126         * target.h (struct target_ops) <to_stop>: Add argument.
13127         * target.c (target_stop): Add argument.
13128         (debug_to_stop): Add argument.
13129         (update_current_target): Update.
13130         * remote.c (remote_stop): Add 'self' argument.
13131         * remote-sim.c (gdbsim_stop): Add 'self' argument.
13132         (gdbsim_cntrl_c): Update.
13133         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13134         * procfs.c (procfs_stop): Add 'self' argument.
13135         * nto-procfs.c (procfs_stop): Add 'self' argument.
13136         * monitor.c (monitor_stop): Add 'self' argument.
13137         (monitor_open): Update.
13138         * linux-nat.c (linux_nat_stop): Add argument.
13139         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13140         * gnu-nat.c (gnu_stop): Add 'self' argument.
13141         * darwin-nat.c (darwin_stop): Add 'self' argument.
13142
13143 2014-02-19  Tom Tromey  <tromey@redhat.com>
13144
13145         * target.h (struct target_ops) <to_thread_name>: Add argument.
13146         * target.c (target_thread_name): Add argument.
13147         (update_current_target): Update.
13148         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13149
13150 2014-02-19  Tom Tromey  <tromey@redhat.com>
13151
13152         * target.h (struct target_ops) <to_extra_thread_info>: Add
13153         argument.
13154         (target_extra_thread_info): Add argument.
13155         * target.c (update_current_target): Update.
13156         * remote.c (remote_threads_extra_info): Add 'self' argument.
13157         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13158         argument.
13159         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13160         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13161         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13162         argument.
13163         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13164         argument.
13165         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13166         argument.
13167         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13168         argument.
13169
13170 2014-02-19  Tom Tromey  <tromey@redhat.com>
13171
13172         * target.h (struct target_ops) <to_program_signals>: Add argument.
13173         * target.c (target_program_signals): Add argument.
13174         * remote.c (remote_program_signals): Add 'self' argument.
13175
13176 2014-02-19  Tom Tromey  <tromey@redhat.com>
13177
13178         * target.h (struct target_ops) <to_pass_signals>: Add argument.
13179         * target.c (target_pass_signals): Add argument.
13180         * remote.c (remote_pass_signals): Add 'self' argument.
13181         (remote_start_remote): Update.
13182         * procfs.c (procfs_pass_signals): Add 'self' argument.
13183         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13184         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13185         (linux_nat_create_inferior, linux_nat_attach): Update.
13186
13187 2014-02-19  Tom Tromey  <tromey@redhat.com>
13188
13189         * windows-nat.c (windows_can_run): Add 'self' argument.
13190         * target.h (struct target_ops) <to_can_run>: Add argument.
13191         (target_can_run): Add argument.
13192         * target.c (debug_to_can_run): Add argument.
13193         (update_current_target): Update.
13194         * nto-procfs.c (procfs_can_run): Add 'self' argument.
13195         * inf-child.c (inf_child_can_run): Add 'self' argument.
13196         * go32-nat.c (go32_can_run): Add 'self' argument.
13197
13198 2014-02-19  Tom Tromey  <tromey@redhat.com>
13199
13200         * target.h (struct target_ops) <to_has_exited>: Add argument.
13201         (target_has_exited): Add argument.
13202         * target.c (debug_to_has_exited): Add argument.
13203         (update_current_target): Update.
13204
13205 2014-02-19  Tom Tromey  <tromey@redhat.com>
13206
13207         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13208         argument.
13209         (target_set_syscall_catchpoint): Add argument.
13210         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13211         argument.
13212         * target.c (update_current_target): Update.
13213
13214 2014-02-19  Tom Tromey  <tromey@redhat.com>
13215
13216         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13217         argument.
13218         (target_remove_exec_catchpoint): Add argument.
13219         * target.c (debug_to_remove_exec_catchpoint): Add argument.
13220         (update_current_target): Update.
13221         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13222         argument.
13223
13224 2014-02-19  Tom Tromey  <tromey@redhat.com>
13225
13226         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13227         argument.
13228         (target_insert_exec_catchpoint): Add argument.
13229         * target.c (debug_to_insert_exec_catchpoint): Add argument.
13230         (update_current_target): Update.
13231         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13232         argument.
13233
13234 2014-02-19  Tom Tromey  <tromey@redhat.com>
13235
13236         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13237         argument.
13238         (target_remove_vfork_catchpoint): Add argument.
13239         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13240         (update_current_target): Update.
13241         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13242         argument.
13243
13244 2014-02-19  Tom Tromey  <tromey@redhat.com>
13245
13246         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13247         argument.
13248         (target_insert_vfork_catchpoint): Add argument.
13249         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13250         (update_current_target): Update.
13251         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13252         argument.
13253
13254 2014-02-19  Tom Tromey  <tromey@redhat.com>
13255
13256         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13257         argument.
13258         (target_remove_fork_catchpoint): Add argument.
13259         * target.c (debug_to_remove_fork_catchpoint): Add argument.
13260         (update_current_target): Update.
13261         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13262         argument.
13263
13264 2014-02-19  Tom Tromey  <tromey@redhat.com>
13265
13266         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13267         argument.
13268         (target_insert_fork_catchpoint): Add argument.
13269         * target.c (debug_to_insert_fork_catchpoint): Add argument.
13270         (update_current_target): Update.
13271         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13272         argument.
13273
13274 2014-02-19  Tom Tromey  <tromey@redhat.com>
13275
13276         * target.h (struct target_ops) <to_post_startup_inferior>: Add
13277         argument.
13278         (target_post_startup_inferior): Add argument.
13279         * target.c (debug_to_post_startup_inferior): Add argument.
13280         (update_current_target): Update.
13281         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13282         argument.
13283         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13284         argument.
13285         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13286         argument.
13287         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13288         argument.
13289         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13290         'self' argument.
13291         (super_post_startup_inferior): Likewise.
13292         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13293         'self' argument.
13294         (super_post_startup_inferior): Likewise.
13295         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13296         Add 'self' argument.
13297         (super_post_startup_inferior): Likewise.
13298
13299 2014-02-19  Tom Tromey  <tromey@redhat.com>
13300
13301         * target.h (struct target_ops) <to_load>: Add argument.
13302         * target.c (target_load): Add argument.
13303         (debug_to_load): Add argument.
13304         (update_current_target): Update.
13305         * remote.c (remote_load): Add 'self' argument.
13306         * remote-sim.c (gdbsim_load): Add 'self' argument.
13307         * remote-mips.c (mips_load): Add 'self' argument.
13308         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13309         * monitor.c (monitor_load): Add 'self' argument.
13310         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13311
13312 2014-02-19  Tom Tromey  <tromey@redhat.com>
13313
13314         * target.h (struct target_ops) <to_terminal_info>: Add argument.
13315         (target_terminal_info): Add argument.
13316         * target.c (debug_to_terminal_info): Add argument.
13317         (default_terminal_info): Likewise.
13318         * inflow.c (child_terminal_info): Add 'self' argument.
13319         * inferior.h (child_terminal_info): Add 'self' argument.
13320         * go32-nat.c (go32_terminal_info): Add 'self' argument.
13321
13322 2014-02-19  Tom Tromey  <tromey@redhat.com>
13323
13324         * target.h (struct target_ops) <to_terminal_save_ours>: Add
13325         argument.
13326         (target_terminal_save_ours): Add argument.
13327         * target.c (debug_to_terminal_save_ours): Add argument.
13328         (update_current_target): Update.
13329         * inflow.c (terminal_save_ours): Add 'self' argument.
13330         * inferior.h (terminal_save_ours): Add 'self' argument.
13331
13332 2014-02-19  Tom Tromey  <tromey@redhat.com>
13333
13334         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13335         (target_terminal_ours): Add argument.
13336         * target.c (debug_to_terminal_ours): Add argument.
13337         (update_current_target): Update.
13338         * remote.c (remote_terminal_ours): Add 'self' argument.
13339         (remote_close): Update.
13340         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13341         * inflow.c (terminal_ours): Add 'self' argument.
13342         * inferior.h (terminal_ours): Add 'self' argument.
13343         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13344
13345 2014-02-19  Pedro Alves  <palves@redhat.com>
13346             Tom Tromey  <tromey@redhat.com>
13347
13348         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13349         argument.
13350         (target_terminal_ours_for_output): Add argument.
13351         * target.c (debug_to_terminal_ours_for_output): Add argument.
13352         (update_current_target): Update.
13353         * inflow.c (terminal_ours_for_output): Add 'self' argument.
13354         * inferior.h (terminal_ours_for_output): Add 'self' argument.
13355         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13356
13357 2014-02-19  Tom Tromey  <tromey@redhat.com>
13358
13359         * target.h (struct target_ops) <to_terminal_inferior>: Add
13360         argument.
13361         * target.c (target_terminal_inferior): Add argument.
13362         (update_current_target): Update.
13363         * remote.c (remote_terminal_inferior): Add 'self' argument.
13364         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13365         * inflow.c (terminal_inferior): Add 'self' argument.
13366         * inferior.h (terminal_inferior): Add 'self' argument.
13367         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13368         (go32_terminal_inferior): Add 'self' argument.
13369
13370 2014-02-19  Tom Tromey  <tromey@redhat.com>
13371
13372         * target.h (struct target_ops) <to_terminal_init>: Add argument.
13373         (target_terminal_init): Add argument.
13374         * target.c (debug_to_terminal_init): Add argument.
13375         (update_current_target): Update.
13376         * inflow.c (terminal_init_inferior): Add 'self' argument.
13377         * inferior.h (terminal_init_inferior): Add 'self' argument.
13378         * go32-nat.c (go32_terminal_init): Add 'self' argument.
13379         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13380
13381 2014-02-19  Tom Tromey  <tromey@redhat.com>
13382
13383         * target.h (struct target_ops)
13384         <to_can_accel_watchpoint_condition>: Add argument.
13385         (target_can_accel_watchpoint_condition): Add argument.
13386         * target.c (debug_to_can_accel_watchpoint_condition): Add
13387         argument.
13388         (update_current_target): Update.
13389         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13390         'self' argument.
13391
13392 2014-02-19  Tom Tromey  <tromey@redhat.com>
13393
13394         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13395         Add argument.
13396         (target_region_ok_for_hw_watchpoint): Add argument.
13397         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13398         (default_region_ok_for_hw_watchpoint): Add argument.
13399         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13400         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13401         argument.
13402         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13403         argument.
13404         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13405         argument.
13406         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13407         'self' argument.
13408         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13409         'self' argument.
13410         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13411         'self' argument.
13412         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13413         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13414         'self' argument.
13415         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13416         Add 'self' argument.
13417
13418 2014-02-19  Tom Tromey  <tromey@redhat.com>
13419
13420         * target.h (struct target_ops) <to_insert_watchpoint>: Add
13421         argument.
13422         (target_insert_watchpoint): Add argument.
13423         * target.c (debug_to_insert_watchpoint): Add argument.
13424         (update_current_target): Update.
13425         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13426         * remote.c (remote_insert_watchpoint): Add 'self' argument.
13427         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13428         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13429         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13430         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13431         argument.
13432         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13433         (procfs_insert_hw_watchpoint): Add 'self' argument.
13434         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13435         argument.
13436         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13437         argument.
13438         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13439         argument.
13440         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13441         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13442         argument.
13443         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13444         'self' argument.
13445
13446 2014-02-19  Tom Tromey  <tromey@redhat.com>
13447
13448         * target.h (struct target_ops) <to_remove_watchpoint>: Add
13449         argument.
13450         (target_remove_watchpoint): Add argument.
13451         * target.c (debug_to_remove_watchpoint): Add argument.
13452         (update_current_target): Update.
13453         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13454         * remote.c (remote_remove_watchpoint): Add 'self' argument.
13455         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13456         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13457         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13458         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13459         argument.
13460         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13461         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13462         argument.
13463         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13464         argument.
13465         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13466         argument.
13467         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13468         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13469         argument.
13470         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13471         'self' argument.
13472
13473 2014-02-19  Tom Tromey  <tromey@redhat.com>
13474
13475         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13476         argument.
13477         (target_remove_hw_breakpoint): Add argument.
13478         * target.c (debug_to_remove_hw_breakpoint): Add argument.
13479         (update_current_target): Update.
13480         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13481         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13482         argument.
13483         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13484         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13485         argument.
13486         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13487         'self' argument.
13488
13489 2014-02-19  Tom Tromey  <tromey@redhat.com>
13490
13491         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13492         argument.
13493         (target_insert_hw_breakpoint): Add argument.
13494         * target.c (debug_to_insert_hw_breakpoint): Add argument.
13495         (update_current_target): Update.
13496         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13497         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13498         argument.
13499         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13500         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13501         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13502         argument.
13503         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13504         'self' argument.
13505
13506 2014-02-19  Tom Tromey  <tromey@redhat.com>
13507
13508         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13509         argument.
13510         (target_can_use_hardware_watchpoint): Add argument.
13511         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13512         (update_current_target): Update.
13513         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13514         argument.
13515         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13516         argument.
13517         * remote.c (remote_check_watch_resources): Add 'self' argument.
13518         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13519         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13520         argument.
13521         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13522         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13523         argument.
13524         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13525         argument.
13526         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13527         argument.
13528         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13529         argument.
13530         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13531         argument.
13532         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13533         argument.
13534         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13535         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13536         argument.
13537         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13538         'self' argument.
13539
13540 2014-02-19  Tom Tromey  <tromey@redhat.com>
13541
13542         * target.h (struct target_ops) <to_post_attach>: Add argument.
13543         (target_post_attach): Add argument.
13544         * target.c (debug_to_post_attach): Add argument.
13545         (update_current_target): Update.
13546         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13547         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13548         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13549         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13550         * inf-child.c (inf_child_post_attach): Add 'self' argument.
13551
13552 2014-02-19  Tom Tromey  <tromey@redhat.com>
13553
13554         * windows-nat.c (windows_close): Add 'self' argument.
13555         * tracepoint.c (tfile_close): Add 'self' argument.
13556         * target.h (struct target_ops) <to_close>: Add argument.
13557         * target.c (target_close): Add argument.
13558         (update_current_target): Update.
13559         * remote.c (remote_close): Add 'self' argument.
13560         * remote-sim.c (gdbsim_close): Add 'self' argument.
13561         * remote-mips.c (mips_close): Add 'self' argument.
13562         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13563         * record-full.c (record_full_close): Add 'self' argument.
13564         * record-btrace.c (record_btrace_close): Add 'self' argument.
13565         * monitor.h (monitor_close): Add 'self' argument.
13566         * monitor.c (monitor_close): Add 'self' argument.
13567         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13568         * linux-nat.c (linux_nat_close): Add argument.
13569         * go32-nat.c (go32_close): Add 'self' argument.
13570         * exec.c (exec_close_1): Add 'self' argument.
13571         * ctf.c (ctf_close): Add 'self' argument.
13572         * corelow.c (core_close): Add 'self' argument.
13573         (core_close_cleanup): Update.
13574         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13575         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13576
13577 2014-02-19  Tom Tromey  <tromey@redhat.com>
13578
13579         * remote.c (remote_load): New function.
13580         (init_remote_ops): Use it.
13581
13582 2014-02-19  Tom Tromey  <tromey@redhat.com>
13583
13584         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13585         argument.
13586         * common/linux-btrace.h (linux_supports_btrace): Update.
13587         * remote.c (remote_supports_btrace): Add "self" argument.
13588         * target-delegates.c: Rebuild.
13589         * target.c (target_supports_btrace): Remove.
13590         * target.h (struct target_ops) <to_supports_btrace>: Add
13591         target_ops argument.
13592         (target_supports_btrace): New define.
13593
13594 2014-02-19  Tom Tromey  <tromey@redhat.com>
13595
13596         * record-full.c (record_full_beneath_to_resume_ops)
13597         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13598         (record_full_beneath_to_wait)
13599         (record_full_beneath_to_store_registers_ops)
13600         (record_full_beneath_to_store_registers)
13601         (record_full_beneath_to_xfer_partial_ops)
13602         (record_full_beneath_to_xfer_partial)
13603         (record_full_beneath_to_insert_breakpoint_ops)
13604         (record_full_beneath_to_insert_breakpoint)
13605         (record_full_beneath_to_remove_breakpoint_ops)
13606         (record_full_beneath_to_remove_breakpoint)
13607         (record_full_beneath_to_stopped_by_watchpoint)
13608         (record_full_beneath_to_stopped_data_address)
13609         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13610         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13611         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13612         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13613         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13614         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13615         (tmp_to_stopped_data_address, tmp_to_async): Remove.
13616         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
13617         (record_full_resume, record_full_wait_1)
13618         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13619         (record_full_store_registers, record_full_xfer_partial)
13620         (record_full_insert_breakpoint, record_full_remove_breakpoint)
13621         (record_full_async, record_full_core_xfer_partial): Use target
13622         delegation.
13623         * target-delegates.c: Rebuild.
13624         * target.c (current_xfer_partial): Remove.
13625         (update_current_target): Do not INHERIT or de_fault
13626         to_insert_breakpoint, to_remove_breakpoint,
13627         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13628         to_is_async_p, to_async.  Do not set to_xfer_partial field.
13629         (default_xfer_partial): Simplify.
13630         (current_xfer_partial): Remove.
13631         (target_wait, target_resume): Simplify.
13632         (find_default_can_async_p, find_default_is_async_p): Update.
13633         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13634         to_xfer_partial, to_stopped_by_watchpoint,
13635         to_stopped_data_address.
13636         (target_store_registers): Simplify.
13637         (forward_target_remove_breakpoint)
13638         (forward_target_insert_breakpoint): Remove.
13639         (target_remove_breakpoint, target_insert_breakpoint)
13640         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13641         * target.h (struct target_ops) <to_resume, to_wait,
13642         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13643         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13644         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13645         markup.
13646         (forward_target_remove_breakpoint)
13647         (forward_target_insert_breakpoint): Remove.
13648         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13649         directly.
13650         (record_btrace_insert_breakpoint): Delegate directly.
13651
13652 2014-02-19  Tom Tromey  <tromey@redhat.com>
13653
13654         PR build/7701:
13655         * target-delegates.c: New file.
13656         * target.c: Include target-delegates.c.
13657         (init_dummy_target): Call install_dummy_methods.
13658         (complete_target_initialization): Call install_delegators.
13659         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13660         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13661         * make-target-delegates: New file.
13662
13663 2014-02-19  Tom Tromey  <tromey@redhat.com>
13664
13665         * record.c (find_record_target): Use find_target_at.
13666         * target.c (find_target_at): New function.
13667         * target.h (find_target_at): Declare.
13668
13669 2014-02-19  Tom Tromey  <tromey@redhat.com>
13670
13671         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13672         Add 'ops' argument.
13673         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13674         'ops' argument.
13675         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13676         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13677         'ops' argument.
13678         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13679         argument.
13680         * linux-nat.c (save_sigtrap): Update.
13681         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13682         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13683         (linux_nat_close): Update.
13684         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13685         argument.
13686         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13687         argument.
13688         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13689         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13690         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13691         (tmp_to_async): Add 'ops' argument.
13692         (record_full_stopped_by_watchpoint, record_full_async)
13693         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13694         argument.
13695         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13696         (m32r_stopped_by_watchpoint): Add 'ops' argument.
13697         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13698         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13699         (remote_is_async_p, remote_async): Add 'ops' argument.
13700         (remote_stopped_data_address): Update.
13701         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13702         * target.c (update_current_target)
13703         (find_default_can_async_p, find_default_is_async_p): Update.
13704         (init_dummy_target): Update.
13705         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13706         * target.h (struct target_ops) <to_stopped_by_watchpoint,
13707         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13708         (target_can_async_p, target_is_async_p, target_async)
13709         (target_stopped_by_watchpoint): Update.
13710
13711 2014-02-19  Yao Qi  <yao@codesourcery.com>
13712
13713         PR gdb/16220
13714         * gdbarch.sh: Remove startup_gdbarch.
13715         * gdbarch.c: Regenerated.
13716         * gdbarch.h: Likewise.
13717
13718 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
13719
13720         * rl78-tdep.c (rl78_g10_register_name): New function.
13721         (rl78_return_value): Add g10 support.
13722         (rl78_gdbarch_init): Register rl78_g10_register_name for the
13723         g10.
13724
13725 2014-02-17  Doug Evans  <xdje42@gmail.com>
13726
13727         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13728         (SUBDIR_GUILE_SRCS): Ditto.
13729         (scm-gsmob.o): Ditto.
13730
13731 2014-02-17  Yao Qi  <yao@codesourcery.com>
13732
13733         * gnu-nat.c (ILL_RPC): Declare defined function.
13734
13735 2014-02-17  Yao Qi  <yao@codesourcery.com>
13736
13737         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13738         mach_msg_type_number_t.
13739         (gnu_write_inferior): Likewise.
13740
13741 2014-02-17  Yao Qi  <yao@codesourcery.com>
13742
13743         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13744         in format string.
13745         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13746         (inf_validate_procs, inf_signal): Likewise.
13747         (S_exception_raise_request): Likewise.
13748         (do_mach_notify_dead_name): Likewise.
13749         (steal_exc_port): Likewise.
13750         (gnu_read_inferior): Change 'copy_count''s type to
13751         mach_msg_type_number_t.
13752         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
13753         format string.
13754
13755 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
13756
13757         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13758         flag.  Adjust all users; in particular...
13759         (gnu_wait): ..., don't decrement its value in here...
13760         (gnu_create_inferior): ..., and instead set the flag in here,
13761         around the startup_inferior call, and call that one with
13762         START_INFERIOR_TRAPS_EXPECTED.
13763
13764         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13765         (ILL_RPC): ... new macro.
13766         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13767         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13768         (do_mach_notify_send_once, S_proc_setmsgport_reply)
13769         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13770         functions with ILL_RPC macro.
13771         (S_proc_pid2task_reply, S_proc_task2pid_reply)
13772         (S_proc_task2proc_reply, S_proc_proc2task_reply)
13773         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13774         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13775         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13776         (S_proc_getlogin_reply, S_proc_getsid_reply)
13777         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13778         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13779         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13780         (S_proc_getnports_reply, S_proc_is_important_reply)
13781         (S_proc_get_code_reply): New stub functions, generated with
13782         ILL_RPC macro.
13783
13784         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13785         collected the type check structures.
13786
13787         * reply_mig_hack.awk: Don't expect to see the auto keyword.
13788
13789 2014-02-14  Doug Evans  <dje@google.com>
13790
13791         * target.c (target_write_partial): Fix result type.
13792
13793 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
13794
13795         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13796         the proper offsets to access fpregset_t.
13797
13798 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
13799
13800         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13801         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13802         * h8300-tdep.c (setmachinelist): Remove global.
13803         * hppa-tdep.c (hppa_sigtramp): Remove global.
13804         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13805         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13806         * ravenscar-thread.c (update_target_observer): Remove global.
13807         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13808
13809 2014-02-12  Tom Tromey  <tromey@redhat.com>
13810
13811         * common/rsp-low.c: Update comments.
13812         * common/rsp-low.h: Update comments.
13813
13814 2014-02-12  Tom Tromey  <tromey@redhat.com>
13815
13816         * common/rsp-low.c (convert_ascii_to_int): Remove.
13817         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13818
13819 2014-02-12  Tom Tromey  <tromey@redhat.com>
13820
13821         * common/rsp-low.h (unhexify): Don't declare.
13822         * common/rsp-low.c (unhexify): Remove.
13823
13824 2014-02-12  Tom Tromey  <tromey@redhat.com>
13825
13826         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13827         * common/rsp-low.c (convert_int_to_ascii): Remove.
13828
13829 2014-02-12  Tom Tromey  <tromey@redhat.com>
13830
13831         * common/rsp-low.h (hexify): Don't declare.
13832         * common/rsp-low.c (hexify): Remove.
13833
13834 2014-02-12  Tom Tromey  <tromey@redhat.com>
13835
13836         * common/rsp-low.c (hexify): Never take strlen of argument.
13837
13838 2014-02-12  Tom Tromey  <tromey@redhat.com>
13839
13840         * common/rsp-low.c (bin2hex): Never take strlen of argument.
13841         * remote.c (extended_remote_run, remote_rcmd)
13842         (remote_download_trace_state_variable, remote_save_trace_data)
13843         (remote_set_trace_notes): Update.
13844         * tracepoint.c (encode_source_string, tfile_write_status)
13845         (tfile_write_uploaded_tsv): Update.
13846
13847 2014-02-12  Tom Tromey  <tromey@redhat.com>
13848
13849         * tracepoint.c: Include rsp-low.h.
13850         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13851         * remote.c: Include rsp-low.h.
13852         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13853         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13854         (remote_unescape_input): Move to common/rsp-low.c.
13855         * common/rsp-low.h: New file.
13856         * common/rsp-low.c: New file.
13857         * Makefile.in (SFILES): Add common/rsp-low.c.
13858         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13859         (COMMON_OBS): Add rsp-low.o.
13860         (rsp-low.o): New target.
13861
13862 2014-02-12  Tom Tromey  <tromey@redhat.com>
13863
13864         * utils.h: Include print-utils.h.
13865         (host_address_to_string, plongest, pulongest, phex, phex_nz)
13866         (int_string, core_addr_to_string, core_addr_to_string_nz)
13867         (hex_string, hex_string_custom): Don't declare.
13868         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13869         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13870         (hex_string_custom, int_string, core_addr_to_string)
13871         (core_addr_to_string_nz, host_address_to_string): Move to
13872         common/print-utils.c.
13873         * common/print-utils.h: New file.
13874         * common/print-utils.c: New file
13875         * Makefile.in (SFILES): Add common/print-utils.c.
13876         (HFILES_NO_SRCDIR): Add common/print-utils.h.
13877         (COMMON_OBS): Add print-utils.o.
13878         (print-utils.o): New target.
13879
13880 2014-02-12  Tom Tromey  <tromey@redhat.com>
13881
13882         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13883
13884 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
13885
13886         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13887
13888 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
13889
13890         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13891         if a PT_IO ptrace request returns sucessfully but indicates that 0
13892         bytes were transferred.
13893
13894 2014-02-12  Pedro Alves  <palves@redhat.com>
13895             Kevin Buettner <kevinb@redhat.com>
13896
13897         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13898         TYPE_INSTANCE_FLAG_CODE_SPACE.
13899
13900 2014-02-12  Pedro Alves  <palves@redhat.com>
13901
13902         * h8300-tdep.c (pseudo_from_raw_register)
13903         (raw_from_pseudo_register): New functions.
13904         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13905         them.
13906
13907 2014-02-12  Pedro Alves  <palves@redhat.com>
13908
13909         * h8300-tdep.c (h8300_register_sim_regno): New function.
13910         (h8300_gdbarch_init): Install h8300_register_sim_regno as
13911         gdbarch_register_sim_regno hook.
13912
13913 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
13914
13915         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13916
13917 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
13918
13919         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13920
13921 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
13922
13923         * obsd-tdep.h (obsd_init_abi): New prototype.
13924         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13925         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13926         (obsd_init_abi): New functions.
13927         * i386obsd-tdep.c: Include "obsd-tdep.h".
13928         (i386obsd_init_abi): Call obsd_init_abi.
13929         * amd64obsd-tdep.c: Include "obsd-tdep.h".
13930         (amd64obsd_init_abi): Call obsd_init_abi.
13931         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13932         obsd-tdep.c to gdb_target_obs.
13933
13934 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
13935
13936         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13937         double float arguments to 16-byte in the argument slots.
13938
13939 2014-02-11  Doug Evans  <xdje42@gmail.com>
13940
13941         * configure.ac: Don't crash if pkg-config is not found and guile
13942         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
13943         in guile checks.
13944         * configure: Regenerate.
13945
13946 2014-02-11  Yao Qi  <yao@codesourcery.com>
13947
13948         * aix-thread.c (aix_thread_xfer_partial): Update comments.
13949         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13950         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13951         * gnu-nat.c (gnu_xfer_memory): Likewise.
13952         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
13953         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13954         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13955         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13956
13957 2014-02-11  Yao Qi  <yao@codesourcery.com>
13958
13959         * target.h (enum target_xfer_error): Rename to ...
13960         (enum target_xfer_status): ... it.  New.  All users updated.
13961         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13962         New.
13963         (TARGET_XFER_STATUS_ERROR_P): New macro.
13964         (target_xfer_error_to_string): Remove declaration.
13965         (target_xfer_status_to_string): Declare.
13966         (target_xfer_partial_ftype): Adjust it.
13967         (struct target_ops) <to_xfer_partial>: Return
13968         target_xfer_status.  Add argument xfered_len.  Update
13969         comments.
13970         * target.c (target_xfer_error_to_string): Rename to ...
13971         (target_xfer_status_to_string): ... it.  New.  All callers
13972         updated.
13973         (target_read_live_memory): Likewise.  Call target_xfer_partial
13974         instead of target_read.
13975         (memory_xfer_live_readonly_partial): Return
13976         target_xfer_status.  Add argument xfered_len.
13977         (raw_memory_xfer_partial): Likewise.
13978         (memory_xfer_partial_1): Likewise.
13979         (memory_xfer_partial): Likewise.
13980         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
13981         properly.  Update debug message.
13982         (default_xfer_partial, current_xfer_partial): Likewise.
13983         (target_write_partial): Likewise.
13984         (target_read_partial): Likewise.  All callers updated.
13985         (read_whatever_is_readable): Likewise.
13986         (target_write_with_progress): Likewise.
13987         (target_read_alloc_1): Likewise.
13988
13989         * aix-thread.c (aix_thread_xfer_partial): Likewise.
13990         * auxv.c (procfs_xfer_auxv): Likewise.
13991         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13992         * bfd-target.c (target_bfd_xfer_partial): Likewise.
13993         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13994         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13995         * corefile.c (read_memory): Adjust.
13996         * corelow.c (core_xfer_partial): Likewise.
13997         * ctf.c (ctf_xfer_partial): Likewise.
13998         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
13999         updated.
14000         (darwin_xfer_partial): Likewise.
14001         * exec.c (section_table_xfer_memory_partial): Likewise.  All
14002         callers updated.
14003         (exec_xfer_partial): Likewise.
14004         * exec.h (section_table_xfer_memory_partial): Update
14005         declaration.
14006         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
14007         negative.
14008         (gnu_xfer_partial): Likewise.
14009         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14010         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14011         (ia64_hpux_xfer_solib_got): Likewise.
14012         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
14013         type of 'partial_len' to ULONGEST.
14014         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14015         * linux-nat.c (linux_xfer_siginfo ): Likewise.
14016         (linux_nat_xfer_partial): Likewise.
14017         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14018         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14019         * monitor.c (monitor_xfer_memory): Likewise.
14020         (monitor_xfer_partial): Likewise.
14021         * procfs.c (procfs_xfer_partial): Likewise.
14022         * record-btrace.c (record_btrace_xfer_partial): Likewise.
14023         * record-full.c (record_full_xfer_partial): Likewise.
14024         (record_full_core_xfer_partial): Likewise.
14025         * remote-sim.c (gdbsim_xfer_memory): Likewise.
14026         (gdbsim_xfer_partial): Likewise.
14027         * remote.c (remote_write_bytes_aux): Likewise.  All callers
14028         updated.
14029         (remote_write_bytes, remote_read_bytes): Likewise.  All
14030         callers updated.
14031         (remote_flash_erase): Likewise.  All callers updated.
14032         (remote_write_qxfer): Likewise.  All callers updated.
14033         (remote_read_qxfer): Likewise.  All callers updated.
14034         (remote_xfer_partial): Likewise.
14035         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14036         (rs6000_xfer_shared_libraries): Likewise.
14037         * sol-thread.c (sol_thread_xfer_partial): Likewise.
14038         (sol_thread_xfer_partial): Likewise.
14039         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14040         (sparc_xfer_partial): Likewise.
14041         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
14042         updated.
14043         (spu_xfer_partial): Likewise.
14044         * spu-multiarch.c (spu_xfer_partial): Likewise.
14045         * tracepoint.c (tfile_xfer_partial): Likewise.
14046         * windows-nat.c (windows_xfer_memory): Likewise.
14047         (windows_xfer_shared_libraries): Likewise.
14048         (windows_xfer_partial): Likewise.
14049         * valprint.c: Replace 'target_xfer_error' with
14050         'target_xfer_status' in comments.
14051
14052 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
14053
14054         Checked in by Joel Brobecker <brobecker@adacore.com>.
14055         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14056
14057 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
14058
14059         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14060         function parameters.
14061
14062 2014-02-10  Will Newton  <will.newton@linaro.org>
14063
14064         * elfread.c (elf_rel_plt_read): Look for a .got section if
14065         looking up .got.plt fails.
14066         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14067         on address passed to elf_gnu_ifunc_record_cache.
14068         (elf_gnu_ifunc_resolve_addr): Likewise.
14069         (elf_gnu_ifunc_resolver_return_stop): Likewise.
14070
14071 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
14072
14073         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14074         (X_RETTURN): New macro.
14075         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14076
14077         * sparc64-tdep.c (sparc64_init_abi): Hook
14078         sparc_in_function_epilogue_p.
14079
14080 2014-02-10  Gary Benson  <gbenson@redhat.com>
14081
14082         * symfile-debug.c (debug_qf_expand_symtabs_matching):
14083         Rename name_matcher to symbol_matcher.
14084
14085 2014-02-10  Gary Benson  <gbenson@redhat.com>
14086
14087         * symfile-debug.c (debug_qf_expand_symtabs_matching):
14088         Use expand_symtabs_file_matcher_ftype and
14089         expand_symtabs_symbol_matcher_ftype.
14090
14091 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
14092
14093         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14094         (struct ada_symbol_cache): New.
14095         (ada_free_symbol_cache): Forward declare.
14096         (struct ada_pspace_data): New.
14097         (ada_pspace_data_handle): New static global.
14098         (get_ada_pspace_data, ada_pspace_data_cleanup)
14099         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14100         (cache_space, cache): Delete, now folded inside struct
14101         ada_pspace_data.
14102         (ada_get_symbol_cache): New function.
14103         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14104         implementation.
14105         (_initialize_ada_language): Remove initialization of cache_space.
14106         Move call to observer_attach_inferior_exit up, grouping it
14107         with the other observer registrations inside this function.
14108         Rename command to be more general.  Add call to
14109         register_program_space_data_with_cleanup.
14110
14111 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
14112
14113         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14114         ada_new_objfile_observer.
14115         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14116         (_initialize_tasks): Update uses of ada_new_objfile_observer
14117         and ada_tasks_normal_stop_observer.
14118
14119 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
14120
14121         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14122         returned by the 'Length attribute to integer.
14123
14124 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
14125
14126         * ada-lang.c (_initialize_ada_language): Initialize
14127         cache_space obstack.
14128
14129 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
14130
14131         * ada-lang.c (HASH_SIZE): New macro.
14132         (struct cache_entry): New type.
14133         (cache_space, cache): New static globals.
14134         (ada_clear_symbol_cache, find_entry): New functions.
14135         (lookup_cached_symbol, cache_symbol): Implement.
14136         (ada_new_objfile_observer, ada_free_objfile_observer): New.
14137         (_initialize_ada_language): Attach ada_new_objfile_observer
14138         and ada_free_objfile_observer.
14139
14140 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
14141
14142         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14143         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14144         struct block * parameter.
14145         (ada_lookup_symbol_list_worker): Constify local variable "block".
14146         Remove cast which is no longer necessary.
14147
14148 2014-02-10  Doug Evans  <xdje42@gmail.com>
14149
14150         Add Guile as an extension language.
14151         * NEWS: Mention Guile scripting.
14152         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14153         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14154         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14155         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14156         (CLIBS): Add GUILE_LIBS.
14157         (install-guile): New rule.
14158         (guile.o): New rule.
14159         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14160         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14161         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14162         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14163         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14164         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14165         (scm-type.o, scm-utils.o, scm-value.o): New rules.
14166         * configure.ac: New option --with-guile.
14167         * configure: Regenerate.
14168         * config.in: Regenerate.
14169         * auto-load.c: Remove #include "python/python.h".  Add #include
14170         "gdb/section-scripts.h".
14171         (source_section_scripts): Handle Guile scripts.
14172         (_initialize_auto_load): Add name of Guile objfile script to
14173         scripts-directory help text.
14174         * breakpoint.c (condition_command): Tweak comment to include Scheme.
14175         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14176         (struct breakpoint): New member scm_bp_object.
14177         * defs.h (enum command_control_type): New value guile_control.
14178         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
14179         "extension.h".
14180         (show_user): Update comment.
14181         (_initialize_cli_cmds): Update help text for "show user".  Update help
14182         text for max-user-call-depth.
14183         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
14184         "extension.h".
14185         (multi_line_command_p): Add guile_control.
14186         (print_command_lines): Handle guile_control.
14187         (execute_control_command, recurse_read_control_structure): Ditto.
14188         (process_next_line): Recognize "guile" commands.
14189         * disasm.c (gdb_disassemble_info): Make non-static.
14190         * disasm.h: #include "dis-asm.h".
14191         (struct gdbarch): Add forward decl.
14192         (gdb_disassemble_info): Declare.
14193         * extension.c: #include "guile/guile.h".
14194         (extension_languages): Add guile.
14195         (get_ext_lang_defn): Handle EXT_LANG_GDB.
14196         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14197         * gdbtypes.c (get_unsigned_type_max): New function.
14198         (get_signed_type_minmax): New function.
14199         * gdbtypes.h (get_unsigned_type_max): Declare.
14200         (get_signed_type_minmax): Declare.
14201         * guile/README: New file.
14202         * guile/guile-internal.h: New file.
14203         * guile/guile.c: New file.
14204         * guile/guile.h: New file.
14205         * guile/scm-arch.c: New file.
14206         * guile/scm-auto-load.c: New file.
14207         * guile/scm-block.c: New file.
14208         * guile/scm-breakpoint.c: New file.
14209         * guile/scm-disasm.c: New file.
14210         * guile/scm-exception.c: New file.
14211         * guile/scm-frame.c: New file.
14212         * guile/scm-gsmob.c: New file.
14213         * guile/scm-iterator.c: New file.
14214         * guile/scm-lazy-string.c: New file.
14215         * guile/scm-math.c: New file.
14216         * guile/scm-objfile.c: New file.
14217         * guile/scm-ports.c: New file.
14218         * guile/scm-pretty-print.c: New file.
14219         * guile/scm-safe-call.c: New file.
14220         * guile/scm-string.c: New file.
14221         * guile/scm-symbol.c: New file.
14222         * guile/scm-symtab.c: New file.
14223         * guile/scm-type.c: New file.
14224         * guile/scm-utils.c: New file.
14225         * guile/scm-value.c: New file.
14226         * guile/lib/gdb.scm: New file.
14227         * guile/lib/gdb/boot.scm: New file.
14228         * guile/lib/gdb/experimental.scm: New file.
14229         * guile/lib/gdb/init.scm: New file.
14230         * guile/lib/gdb/iterator.scm: New file.
14231         * guile/lib/gdb/printing.scm: New file.
14232         * guile/lib/gdb/types.scm: New file.
14233         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14234         (VPATH): Add $(GUILE_SRCDIR).
14235         (GUILE_DIR): New variable.
14236         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14237         (all): Add stamp-guile dependency.
14238         (stamp-guile): New rule.
14239         (clean-guile, install-guile, uninstall-guile): New rules.
14240         (install-only): Add install-guile dependency.
14241         (uninstall): Add uninstall-guile dependency.
14242         (clean): Add clean-guile dependency.
14243
14244 2014-02-09  Doug Evans  <xdje42@gmail.com>
14245
14246         Revert this patch (which I approved, mea culpa).
14247
14248         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
14249
14250         * Makefile.in (all-lib): Remove.
14251         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14252
14253 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
14254
14255         Fix Python stack corruption.
14256         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14257         gdb_py_longest.
14258
14259 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
14260
14261         * Makefile.in (all-lib): Remove.
14262         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14263
14264 2014-02-07  Doug Evans  <dje@google.com>
14265
14266         * extension-priv.h (extension_language_script_ops): Add comment.
14267         (extension_language_ops): Add comment.
14268         (active_ext_lang_state): Fix typo in comment.
14269
14270 2014-02-07  Pedro Alves  <palves@redhat.com>
14271
14272         PR breakpoints/16292
14273         * infrun.c (handle_signal_stop) <signal arrives while stepping
14274         over a breakpoint>: Switch back to the stepping thread.
14275
14276 2014-02-07  Yao Qi  <yao@codesourcery.com>
14277
14278         * target.c (target_xfer_partial): Return zero if LEN is zero.
14279
14280 2014-02-07  Yao Qi  <yao@codesourcery.com>
14281
14282         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14283         (ld_so_xfer_auxv): Likewise.
14284         * bfd-target.c (target_bfd_xfer_partial): Likewise.
14285         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14286         * corelow.c (core_xfer_partial): Likewise.
14287         * ctf.c (ctf_xfer_partial): Likewise.
14288         * darwin-nat.c (darwin_read_dyld_info): Likewise.
14289         (darwin_xfer_partial): Likewise.
14290         * exec.c (exec_xfer_partial): Likewise.
14291         * gnu-nat.c (gnu_xfer_partial): Likewise.
14292         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14293         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14294         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14295         * linux-nat.c (linux_xfer_siginfo): Likewise.
14296         (linux_proc_xfer_spu): Likewise.
14297         * procfs.c (procfs_xfer_partial): Likewise.
14298         * record-full.c (record_full_xfer_partial): Likewise.
14299         (record_full_core_xfer_partial): Likewise.
14300         * remote-sim.c (gdbsim_xfer_partial): Likewise.
14301         * remote.c (remote_write_qxfer): Likewise.
14302         (remote_write_qxfer, remote_read_qxfer): Likewise.
14303         (remote_xfer_partial): Likewise.
14304         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14305         (rs6000_xfer_shared_libraries): Likewise.
14306         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14307         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14308         (spu_xfer_partial): Likewise.
14309         * target.c (memory_xfer_partial_1): Likewise.
14310         * tracepoint.c (tfile_xfer_partial): Likewise.
14311         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14312         (windows_xfer_partial): Likewise.
14313
14314 2014-02-07  Yao Qi  <yao@codesourcery.com>
14315
14316         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
14317         comments.
14318         (core_xfer_shared_libraries_aix): Likewise.
14319         * gdbarch.c, gdbarch.h: Regenerated.
14320         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14321         ULONGEST.  Change 'len_avail' type to ULONGEST.
14322         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14323         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14324         declaration.
14325         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14326
14327 2014-02-07  Yao Qi  <yao@codesourcery.com>
14328
14329         * corefile.c (memory_error): Get 'exception' from ERR and pass
14330         'exception' to throw_error.
14331
14332 2014-02-06  Doug Evans  <xdje42@gmail.com>
14333
14334         * configure.ac (libpython checking): Remove all but python.o from
14335         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
14336         * configure: Regenerate.
14337
14338         * Makefile.in (SFILES): Add extension.c.
14339         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14340         (COMMON_OBS): Add extension.o.
14341         * extension.h: New file.
14342         * extension-priv.h: New file.
14343         * extension.c: New file.
14344
14345         * python/python-internal.h: #include "extension.h".
14346         (gdbpy_auto_load_enabled): Declare.
14347         (gdbpy_apply_val_pretty_printer): Declare.
14348         (gdbpy_apply_frame_filter): Declare.
14349         (gdbpy_preserve_values): Declare.
14350         (gdbpy_breakpoint_cond_says_stop): Declare.
14351         (gdbpy_breakpoint_has_cond): Declare.
14352         (void source_python_script_for_objfile): Delete.
14353         * python/python.c: #include "extension-priv.h".
14354         Delete inclusion of "observer.h".
14355         (extension_language_python): Moved here and renamed from
14356         script_language_python in py-auto-load.c.
14357         Redefined to be of type extension_language_defn.
14358         (python_extension_script_ops): New global.
14359         (python_extension_ops): New global.
14360         (struct python_env): New member previous_active.
14361         (restore_python_env): Call restore_active_ext_lang.
14362         (ensure_python_env): Call set_active_ext_lang.
14363         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14364         New arg extlang.
14365         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14366         New arg extlang.
14367         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14368         New arg extlang.
14369         (gdbpy_eval_from_control_command): Renamed from
14370         eval_python_from_control_command, made static.  New arg extlang.
14371         (gdbpy_source_script) Renamed from source_python_script, made static.
14372         New arg extlang.
14373         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
14374         result to int.  New arg extlang.
14375         (gdbpy_source_objfile_script): Renamed from
14376         source_python_script_for_objfile, made static.  New arg extlang.
14377         (gdbpy_start_type_printers): Renamed from start_type_printers, made
14378         static.  New args extlang, extlang_printers.  Change result type to
14379         "void".
14380         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14381         static.  New arg extlang.  Rename arg printers to extlang_printers
14382         and change type to ext_lang_type_printers *.
14383         (gdbpy_free_type_printers): Renamed from free_type_printers, made
14384         static.  Replace argument arg with extlang, extlang_printers.
14385         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14386         (!HAVE_PYTHON, source_python_script): Delete.
14387         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14388         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14389         (!HAVE_PYTHON, start_type_printers): Delete.
14390         (!HAVE_PYTHON, apply_type_printers): Delete.
14391         (!HAVE_PYTHON, free_type_printers): Delete.
14392         (_initialize_python): Delete call to observer_attach_before_prompt.
14393         (finalize_python): Set/restore active extension language.
14394         (gdbpy_finish_initialization) Renamed from
14395         finish_python_initialization, made static.  New arg extlang.
14396         (gdbpy_initialized): New function.
14397         * python/python.h: #include "extension.h".  Delete #include
14398         "value.h", "mi/mi-cmds.h".
14399         (extension_language_python): Declare.
14400         (GDBPY_AUTO_FILE_NAME): Delete.
14401         (enum py_bt_status): Moved to extension.h and renamed to
14402         ext_lang_bt_status.
14403         (enum frame_filter_flags): Moved to extension.h.
14404         (enum py_frame_args): Moved to extension.h and renamed to
14405         ext_lang_frame_args.
14406         (finish_python_initialization): Delete.
14407         (eval_python_from_control_command): Delete.
14408         (source_python_script): Delete.
14409         (apply_val_pretty_printer): Delete.
14410         (apply_frame_filter): Delete.
14411         (preserve_python_values): Delete.
14412         (gdbpy_script_language_defn): Delete.
14413         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14414         (start_type_printers, apply_type_printers, free_type_printers): Delete.
14415
14416         * auto-load.c: #include "extension.h".
14417         (GDB_AUTO_FILE_NAME): Delete.
14418         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
14419         (script_language_gdb): Delete, moved to extension.c and renamed to
14420         extension_language_gdb.
14421         (source_gdb_script_for_objfile): Delete.
14422         (auto_load_pspace_info): New member unsupported_script_warning_printed.
14423         (loaded_script): Change type of language member to
14424         struct extension_language_defn *.
14425         (init_loaded_scripts_info): Initialize
14426         unsupported_script_warning_printed.
14427         (maybe_add_script): Make static.  Change type of language arg to
14428         struct extension_language_defn *.
14429         (clear_section_scripts): Reset unsupported_script_warning_printed.
14430         (auto_load_objfile_script_1): Rewrite to use extension language API.
14431         (auto_load_objfile_script): Make public.  Remove support-compiled-in
14432         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14433         (source_section_scripts): Rewrite to use extension language API.
14434         (load_auto_scripts_for_objfile): Rewrite to use
14435         auto_load_scripts_for_objfile.
14436         (collect_matching_scripts_data): Change type of language member to
14437         struct extension_language_defn *.
14438         (auto_load_info_scripts): Change type of language arg to
14439         struct extension_language_defn *.
14440         (unsupported_script_warning_print): New function.
14441         (script_not_found_warning_print): Make static.
14442         (_initialize_auto_load): Rewrite construction of scripts-directory
14443         help.
14444         * auto-load.h (struct objfile): Add forward decl.
14445         (struct script_language): Delete.
14446         (struct auto_load_pspace_info): Add forward decl.
14447         (struct extension_language_defn): Add forward decl.
14448         (maybe_add_script): Delete.
14449         (auto_load_objfile_script): Declare.
14450         (script_not_found_warning_print): Delete.
14451         (auto_load_info_scripts): Update prototype.
14452         (auto_load_gdb_scripts_enabled): Declare.
14453         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14454         auto_load_python_scripts_enabled and made public.
14455         (script_language_python): Delete, moved to python.c.
14456         (gdbpy_script_language_defn): Delete.
14457         (info_auto_load_python_scripts): Update to use
14458         extension_language_python.
14459
14460         * breakpoint.c (condition_command): Replace call to
14461         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14462         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14463         with call to breakpoint_ext_lang_cond_says_stop.
14464         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14465         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
14466         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14467         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14468         New arg slang.
14469         (local_setattro): Print name of extension language with existing
14470         stop condition.
14471
14472         * valprint.c (val_print, value_print): Update to call
14473         apply_ext_lang_val_pretty_printer.
14474         * cp-valprint.c (cp_print_value): Update call to
14475         apply_ext_lang_val_pretty_printer.
14476         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14477         (gdbpy_apply_val_pretty_printer): Renamed from
14478         apply_val_pretty_printer.  New arg extlang.
14479         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14480
14481         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14482         extension language API.
14483         * cli/cli-script.c (execute_control_command): Update to call
14484         eval_ext_lang_from_control_command.
14485
14486         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14487         enum ext_lang_bt_status values.  Update call to
14488         apply_ext_lang_frame_filter.
14489         (mi_cmd_stack_list_locals): Ditto.
14490         (mi_cmd_stack_list_args): Ditto.
14491         (mi_cmd_stack_list_variables): Ditto.
14492         * mi/mi-main.c: Delete #include "python/python-internal.h".
14493         Add #include "extension.h".
14494         (mi_cmd_list_features): Replace reference to python internal variable
14495         gdb_python_initialized with call to ext_lang_initialized_p.
14496
14497         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14498         Update to use enum ext_lang_frame_args.  Update to call
14499         apply_ext_lang_frame_filter.
14500         * python/py-framefilter.c (extract_sym): Update to use enum
14501         ext_lang_bt_status.
14502         (extract_value, py_print_type, py_print_value): Ditto.
14503         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14504         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14505         (py_print_frame): Ditto.
14506         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14507         New arg extlang.  Update to use enum ext_lang_bt_status.
14508
14509         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14510         finish_python_initialization.  Replace with call to
14511         finish_ext_lang_initialization.
14512
14513         * typeprint.c (do_free_global_table): Update to call
14514         free_ext_lang_type_printers.
14515         (create_global_typedef_table): Update to call
14516         start_ext_lang_type_printers.
14517         (find_global_typedef): Update to call apply_ext_lang_type_printers.
14518         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14519         (type_print_options): Change type of global_printers from "void *"
14520         to "struct ext_lang_type_printers *".
14521
14522         * value.c (preserve_values): Update to call preserve_ext_lang_values.
14523         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14524         (gdbpy_preserve_values): Renamed from preserve_python_values.
14525         New arg extlang.
14526         (!HAVE_PYTHON, preserve_python_values): Delete.
14527
14528         * utils.c (quit_flag): Delete, moved to extension.c.
14529         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14530         extension.c.
14531
14532         * eval.c: Delete #include "python/python.h".
14533         * main.c: Delete #include "python/python.h".
14534
14535         * defs.h: Update comment.
14536
14537 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
14538
14539         GDB 7.7 released.
14540
14541 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
14542
14543         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14544         defined.
14545
14546 2014-02-05  Yao Qi  <yao@codesourcery.com>
14547
14548         * remote.c (remote_pass_signals): Remove local 'buf' and use
14549         rs->buf.
14550         (remote_program_signals): Likewise.
14551
14552 2014-02-05  Yao Qi  <yao@codesourcery.com>
14553
14554         * ctf.c: Include "inferior.h" and "gdbthread.h".
14555         (CTF_PID): A new macro.
14556         (ctf_open): Call inferior_appeared and add_thread_silent.
14557         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14558         (ctf_thread_alive): New function.
14559         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14560
14561 2014-02-05  Yao Qi  <yao@codesourcery.com>
14562
14563         Revert this patch:
14564
14565         2013-05-24  Yao Qi  <yao@codesourcery.com>
14566
14567         * tracepoint.c (TFILE_PID): Remove.
14568         (tfile_open): Don't add thread and inferior.
14569         (tfile_close): Don't set 'inferior_ptid'.  Don't call
14570         exit_inferior_silent.
14571         (tfile_thread_alive): Remove.
14572         (init_tfile_ops): Don't set field 'to_thread_alive' of
14573         tfile_ops.
14574
14575 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
14576
14577         * remote.c (remote_start_remote): Call remote_check_symbols even
14578         if only symbol-file (not file) has been given.
14579
14580 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14581
14582         * gdbarch.sh (skip_entrypoint): New callback.
14583         * gdbarch.c, gdbarch.h: Regenerate.
14584         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14585         * infrun.c (fill_in_stop_func): Likewise.
14586         * ppc-linux-tdep.c: Include "elf/ppc64.h".
14587         (ppc_elfv2_elf_make_msymbol_special): New function.
14588         (ppc_elfv2_skip_entrypoint): Likewise.
14589         (ppc_linux_init_abi): Install them for ELFv2.
14590
14591 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14592
14593         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14594         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14595         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14596         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
14597         structures returned in GPRs.
14598
14599 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14600
14601         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14602         offset to the stack parameter list for the ELFv2 ABI.
14603
14604 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14605
14606         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14607         set_gdbarch_convert_from_func_ptr_addr and
14608         set_gdbarch_elf_make_msymbol_special for ELFv1.
14609         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14610         function descriptors on ELFv1.
14611         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
14612         set up r12 at function entry.
14613
14614 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14615
14616         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14617         (struct gdbarch_tdep): New member elf_abi.
14618
14619         * rs6000-tdep.c: Include "elf/ppc64.h".
14620         (rs6000_gdbarch_init): Detect ELF ABI version.
14621
14622 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14623
14624         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14625         within a register pair holding a DFP 128-bit value on little-endian.
14626         (ppc64_sysv_abi_return_value_base): Likewise.
14627         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14628         (dfp_pseudo_register_write): Likewise.
14629
14630 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14631
14632         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14633         offset on little-endian when passing _Decimal32.
14634         (ppc64_sysv_abi_return_value_base): Likewise for return values.
14635
14636 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14637
14638         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14639         of the overlapped FP register within the VSX register on little-
14640         endian platforms.
14641         (efpr_pseudo_register_write): Likewise.
14642
14643 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14644
14645         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14646         offset on little-endian when passing small structures.
14647
14648 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14649
14650         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14651         (struct ppc64_sysv_argpos): New data structure.
14652         (ppc64_sysv_abi_push_float): Remove.
14653         (ppc64_sysv_abi_push_val): New function.
14654         (ppc64_sysv_abi_push_integer): Likewise.
14655         (ppc64_sysv_abi_push_freg): Likewise.
14656         (ppc64_sysv_abi_push_vreg): Likewise.
14657         (ppc64_sysv_abi_push_param): Likewise.
14658         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14659         (ppc64_sysv_abi_return_value_base): New function.
14660         (ppc64_sysv_abi_return_value): Refactor to use it.
14661
14662 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14663
14664         * NEWS: Document new target powerpc64le-*-linux*.
14665
14666 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
14667
14668         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14669         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14670         core dumps.
14671         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14672         register set used in ELF core dumps.  Add floating-point register set.
14673
14674 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
14675
14676         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14677         dwarf2_to_gdb[] table using symbolic constants.  Adjust
14678         penultimate entry from number representing the PC register
14679         to symbolic constant representing the MDR register.  Add
14680         constant for the PC register to the end of the table.
14681
14682 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
14683
14684         * bsd-kvm.c: Include <sys/param.h>
14685
14686 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
14687
14688         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14689
14690 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
14691
14692         * ada-lang.h (clear_ada_sym_cache): Delete.
14693
14694 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
14695
14696         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14697
14698 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
14699
14700         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14701           the sigreturn register save area only if the syscall is
14702           sigreturn.
14703
14704 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
14705
14706         * valops.c (value_slice): Minor reformatting.
14707
14708 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
14709
14710         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14711
14712 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
14713
14714         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14715         New static globals.
14716         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14717         (ada_ignore_descriptive_types_p): New static global.
14718         (find_parallel_type_by_descriptive_type): Return immediately
14719         if ada_ignore_descriptive_types_p is set.
14720         (_initialize_ada_language): Register new commands "maintenance
14721         set ada", "maintenance show ada", "maintenance set ada
14722         ignore-descriptive-types" and "maintenance show ada
14723         ignore-descriptive-types".
14724         * NEWS: Add entry for new "maint ada set/show
14725         ignore-descriptive-types" commands.
14726
14727 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
14728
14729         * record-btrace.c (record_btrace_close): Call btrace_teardown
14730         for all threads.
14731
14732 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14733
14734         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14735         "ui-out.h".
14736
14737 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14738
14739         * ada-typeprint (type_is_full_subrange_of_target_type):
14740         New function.
14741         (print_range): Add parameter bounds_prefered_p.  If not set,
14742         try printing range types using the name of their base type.
14743         (print_range_type): Add parameter bounds_prefered_p.
14744         Use it in call to print_range.
14745         (print_array_type, ada_print_type): Update calls to print_range
14746         and print_range_type.
14747
14748 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14749
14750         * ada-typeprint.c (print_array_type, print_choices, print_range)
14751         (print_range_bound, print_dynamic_range_bound, print_range_type):
14752         Remove declaration.
14753
14754 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14755
14756         * ada-typeprint.c (print_range): Add missing empty line
14757         after local declaration.
14758
14759 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14760
14761         * ada-valprint.c (print_optional_low_bound): Get index_type's
14762         target type for as long as it is a TYPE_CODE_RANGE.
14763
14764 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14765
14766         * procfs.c (procfs_make_note_section): Remove assertion and
14767         associated comment.
14768
14769 2014-01-24  Yao Qi  <yao@codesourcery.com>
14770
14771         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14772         * corelow.c (get_core_siginfo): Likewise.
14773
14774 2014-01-24  Yao Qi  <yao@codesourcery.com>
14775
14776         * remote.c (remote_write_bytes_aux): Change type of 'len' to
14777         ULONGEST.  Don't check 'len' is negative.
14778         (remote_write_bytes):  Change type of 'len' to ULONGEST.
14779
14780 2014-01-23  Tom Tromey  <tromey@redhat.com>
14781
14782         PR python/16485:
14783         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14784         Handle exception from frame.block.
14785         (FrameVars.fetch_frame_locals): Likewise.
14786
14787 2014-01-23  Tom Tromey  <tromey@redhat.com>
14788
14789         PR python/16487:
14790         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14791         on a NULL pointer.  Move "goto error" to correct place.
14792
14793 2014-01-23  Tom Tromey  <tromey@redhat.com>
14794
14795         PR python/16491:
14796         * python/py-framefilter.c (apply_frame_filter): Call
14797         ensure_python_env after computing gdbarch.
14798
14799 2014-01-23  Yao Qi  <yao@codesourcery.com>
14800
14801         * target.c (raw_memory_xfer_partial): Change argument type
14802         from void * to gdb_byte *.
14803         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14804
14805 2014-01-22  Doug Evans  <dje@google.com>
14806
14807         New gdbserver option --debug-format=timestamp.
14808         * NEWS: Mention it.
14809
14810 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
14811
14812         * syscalls/s390x-linux.xml: New file.
14813         * syscalls/s390-linux.xml: New file.
14814         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14815         (XML_SYSCALL_FILENAME_S390X): Likewise.
14816         (op_svc): New enum value for SVC opcode.
14817         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14818         (s390_linux_get_syscall_number): New function.
14819         (s390_gdbarch_init): Register '*get_syscall_number' and the
14820         syscall xml file name.
14821         * data-directory/Makefile.in (SYSCALLS_FILES): Add
14822         "s390-linux.xml" and "s390x-linux.xml".
14823         * NEWS: Announce new feature.
14824
14825 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
14826
14827         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14828
14829 2014-01-22  Pedro Alves  <palves@redhat.com>
14830
14831         * xtensa-config.c: Include defs.h.
14832
14833 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
14834
14835         * common/common-utils.h: Add "ARI:" comment beside __func__
14836         reference.
14837
14838 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
14839
14840         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14841         documentation a bit.
14842
14843 2014-01-21  Roland McGrath  <mcgrathr@google.com>
14844
14845         * configure.ac: Call AM_PROG_INSTALL_STRIP.
14846         * configure: Regenerate.
14847         * aclocal.m4: Regenerate.
14848         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14849         New substituted variables.
14850         (install-strip): New target.
14851         (INSTALL_SCRIPT): New substituted variable.
14852         (FLAGS_TO_PASS): Add it.
14853         (install-only): Use $(INSTALL_SCRIPT) rather than
14854         $(INSTALL_PROGRAM) for gcore.
14855
14856 2014-01-20  Tom Tromey  <tromey@redhat.com>
14857
14858         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14859         together.
14860
14861 2014-01-20  Tom Tromey  <tromey@redhat.com>
14862
14863         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14864         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14865         (deprecated_cmd_warning, complete_on_cmdlist): Update.
14866         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14867         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14868         (struct cmd_list_element) <flags>: Remove.
14869         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14870         doc_allocated>: New fields.
14871         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14872         bitfields.
14873         * maint.c (maintenance_do_deprecate): Update.
14874         * top.c (execute_command): Update.
14875
14876 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
14877
14878         * xtensa-linux-nat.c: Include asm/ptrace.h.
14879
14880 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14881
14882         * Makefile.in (SFILES): Add d-support.c.
14883         (COMMON_OBS): Add d-support.o.
14884         * d-lang.h (d_parse_symbol): Add comment, now defined in
14885         d-support.c.
14886         * d-lang.c (parse_call_convention)
14887         (parse_attributes, parse_function_types)
14888         (parse_function_args, parse_type, parse_identifier)
14889         (call_convention_p, d_parse_symbol): Move functions to ...
14890         * d-support.c: ... New file.
14891
14892 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14893
14894         * d-lang.h (d_parse_symbol): Add declaration.
14895         * d-lang.c (extract_identifiers)
14896         (extract_type_info): Remove functions.
14897         (parse_call_convention, parse_attributes)
14898         (parse_function_types, parse_function_args)
14899         (parse_type, parse_identifier, call_convention_p)
14900         (d_parse_symbol): New functions.
14901         (d_demangle): Use d_parse_symbol to demangle D symbols.
14902
14903 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14904
14905         * d-lang.h (struct builtin_d_type): New data type.
14906         (builtin_d_type): Add declaration.
14907         * d-lang.c (d_language_arch_info, build_d_types)
14908         (builtin_d_type): New functions.
14909         (enum d_primitive_types): New data type.
14910         (d_language_defn): Change c_language_arch_info to
14911         d_language_arch_info.
14912         (d_type_data): New static variable.
14913         (_initialize_d_language): Initialize d_type_data.
14914
14915 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14916
14917         * d-lang.h (d_main_name): Add declaration.
14918         * d-lang.c (d_main_name): New function.
14919         * symtab.c (find_main_name): Add call to d_main_name.
14920
14921 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14922
14923         * d-lang.c (d_language_defn): Change macro_expansion_c to
14924         macro_expansion_no.
14925
14926 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14927
14928         * MAINTAINERS: Add myself as a write-after-approval maintainer.
14929
14930 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
14931
14932         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14933         gdb_exception" declaration.
14934         * remote.c (getpkt_or_notif_sane): Likewise.
14935
14936 2014-01-17  Doug Evans  <dje@google.com>
14937
14938         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14939         function, contents of dirnames_to_char_ptr_vec_append moved here.
14940         (delim_string_to_char_ptr_vec): New function.
14941         (dirnames_to_char_ptr_vec_append): Rewrite.
14942         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14943
14944 2014-01-17  Doug Evans  <dje@google.com>
14945
14946         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14947         and moved here ...
14948         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14949         #include "common-utils.h".
14950         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14951         * common/vec.h (VEC_ASSERT_PASS): Update.
14952         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14953         (MACH_CHECK_ERROR): Update.
14954
14955 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
14956
14957         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14958         comments.
14959         * gdbarch.h: Regenerate.
14960
14961 2014-01-16  Tom Tromey  <tromey@redhat.com>
14962
14963         * value.c (struct value) <regnum>: Move earlier.
14964
14965 2014-01-16  Tom Tromey  <tromey@redhat.com>
14966
14967         * remote.c (extended_remote_create_inferior): Rename from
14968         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
14969         old implementation.
14970
14971 2014-01-16  Pedro Alves  <palves@redhat.com>
14972
14973         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14974         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14975         the backchain.
14976
14977 2014-01-16  Doug Evans  <dje@google.com>
14978
14979         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14980
14981 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14982
14983         * btrace.h (btrace_thread_flag): New.
14984         (struct btrace_thread_info) <flags>: New.
14985         * record-btrace.c (record_btrace_resume_thread)
14986         (record_btrace_find_thread_to_move, btrace_step_no_history)
14987         (btrace_step_stopped, record_btrace_start_replaying)
14988         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14989         (record_btrace_find_resume_thread): New.
14990         (record_btrace_resume, record_btrace_wait): Extend.
14991         (record_btrace_can_execute_reverse): New.
14992         (record_btrace_open): Fail in non-stop mode.
14993         (record_btrace_set_replay): Split into this, ...
14994         (record_btrace_stop_replaying): ... this, ...
14995         (record_btrace_clear_histories): ... and this.
14996         (init_record_btrace_ops): Init to_can_execute_reverse.
14997         * NEWS: Announce it.
14998
14999 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15000
15001         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15002         (forward_target_decr_pc_after_break)
15003         (target_decr_pc_after_break): New.
15004         * target.c (forward_target_decr_pc_after_break)
15005         (target_decr_pc_after_break): New.
15006         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15007         instead of gdbarch_decr_pc_after_break.
15008         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15009         instead of gdbarch_decr_pc_after_break.
15010         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15011         instead of gdbarch_decr_pc_after_break.
15012         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15013         instead of gdbarch_decr_pc_after_break.
15014         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15015         instead of gdbarch_decr_pc_after_break.
15016         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15017         instead of gdbarch_decr_pc_after_break.
15018
15019 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15020
15021         * btrace.c: Include regcache.h.
15022         (btrace_add_pc): New.
15023         (btrace_enable): Call btrace_add_pc.
15024         (btrace_is_empty): New.
15025         * btrace.h (btrace_is_empty): New.
15026         * record-btrace.c (require_btrace, record_btrace_info): Call
15027         btrace_is_empty.
15028
15029 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15030
15031         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15032         Support delta reads.
15033         (linux_disable_btrace): Change return type.
15034         * common/linux-btrace.h (linux_read_btrace): Change parameters
15035         and return type to allow error reporting.  Update users.
15036         (linux_disable_btrace): Change return type.  Update users.
15037         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15038         New.
15039         (btrace_error): New.
15040         (btrace_block) <begin>: Comment on BEGIN == 0.
15041         * btrace.c (btrace_compute_ftrace): Start from the end of
15042         the current trace.
15043         (btrace_stitch_trace, btrace_clear_history): New.
15044         (btrace_fetch): Read delta trace, return if replaying.
15045         (btrace_clear): Move clear history code to btrace_clear_history.
15046         (parse_xml_btrace): Throw an error if parsing failed.
15047         * target.h (struct target_ops) <to_read_btrace>: Change parameters
15048         and return type to allow error reporting.
15049         (target_read_btrace): Change parameters and return type to allow
15050         error reporting.
15051         * target.c (target_read_btrace): Update.
15052         * remote.c (remote_read_btrace): Support delta reads.  Pass
15053         errors on.
15054         * NEWS: Announce it.
15055
15056 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15057
15058         * record.h (record_btrace_frame_unwind)
15059         (record_btrace_tailcall_frame_unwind): New declarations.
15060         * dwarf2-frame: Include record.h
15061         (dwarf2_frame_cfa): Throw an error for btrace frames.
15062         * record-btrace.c: Include hashtab.h.
15063         (btrace_get_bfun_name): New.
15064         (btrace_call_history): Call btrace_get_bfun_name.
15065         (struct btrace_frame_cache): New.
15066         (bfcache): New.
15067         (bfcache_hash, bfcache_eq, bfcache_new): New.
15068         (btrace_get_frame_function): New.
15069         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15070         (record_btrace_frame_this_id): Compute own id.
15071         (record_btrace_frame_prev_register): Provide PC, throw_error
15072         for all other registers.
15073         (record_btrace_frame_sniffer): Detect btrace frames.
15074         (record_btrace_tailcall_frame_sniffer): New.
15075         (record_btrace_frame_dealloc_cache): New.
15076         (record_btrace_frame_unwind): Add new functions.
15077         (record_btrace_tailcall_frame_unwind): New.
15078         (_initialize_record_btrace): Allocate cache.
15079         * btrace.c (btrace_clear): Call reinit_frame_cache.
15080         * NEWS: Announce it.
15081
15082 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15083
15084         * record-btrace.c (record_btrace_set_replay)
15085         (record_btrace_goto_begin, record_btrace_goto_end)
15086         (record_btrace_goto): New.
15087         (init_record_btrace_ops): Initialize them.
15088         * NEWS: Announce it.
15089
15090 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15091
15092         * record-btrace.c (record_btrace_find_new_threads)
15093         (record_btrace_thread_alive): New.
15094         (init_record_btrace_ops): Initialize to_find_new_threads and
15095         to_thread_alive.
15096
15097 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15098
15099         * record-btrace.c (record_btrace_resume): New.
15100         (record_btrace_wait): New.
15101         (init_record_btrace_ops): Initialize to_wait and to_resume.
15102
15103 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15104
15105         * record-btrace.c (record_btrace_xfer_partial)
15106         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15107         (record_btrace_allow_memory_access): New.
15108         (init_record_btrace_ops): Initialize new methods.
15109         * target.c (raw_memory_xfer_partial): Bail out if target reports
15110         that this memory is not available.
15111
15112 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15113
15114         * target.h (target_ops) <to_insert_breakpoint>
15115         <to_remove_breakpoint>: Add target_ops parameter.
15116         (forward_target_insert_breakpoint): New.
15117         (forward_target_remove_breakpoint): New.
15118         (memory_remove_breakpoint, memory_insert_breakpoint):
15119         Add target_ops parameter.
15120         * target.c (target_insert_breakpoint): Split into this and ...
15121         (forward_target_insert_breakpoint): ... this.
15122         (target_remove_breakpoint): Split into this and ...
15123         (forward_target_remove_breakpoint): ... this.
15124         (debug_to_insert_breakpoint): Add target_ops parameter.
15125         Call forward_target_insert_breakpoint.
15126         (debug_to_remove_breakpoint): Add target_ops parameter.
15127         Call forward_target_remove_breakpoint.
15128         (update_current_target): Do not inherit or default to_insert_breakpoint
15129         and to_remove_breakpoint.
15130         * corelow.c (ignore): Add target_ops parameter.
15131         * exec.c (ignore): Add target_ops parameter.
15132         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15133         Add target_ops parameter.
15134         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15135         Add target_ops parameter.
15136         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15137         Add target_ops parameter.
15138         * record-full.c (record_full_beneath_to_insert_breakpoint)
15139         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15140         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15141         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15142         (record_full_core_remove_breakpoint): Add target_ops parameter.
15143         Update users.
15144         (record_full_beneath_to_insert_breakpoint_ops)
15145         (record_full_beneath_to_remove_breakpoint_ops)
15146         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15147         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15148         tmp_to_remove_breakpoint_ops,
15149         record_full_beneath_to_insert_breakpoint_ops, and
15150         record_full_beneath_to_remove_breakpoint_ops.
15151         * remote-m32r-sdi.c (m32r_insert_breakpoint)
15152         (m32r_remove_breakpoint): Add target_ops parameter.
15153         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15154         Add target_ops parameter.
15155         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15156         Add target_ops parameter.
15157
15158 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
15159             Markus Metzger  <markus.t.metzger@intel.com>
15160
15161         * record-btrace.c: Include frame-unwind.h.
15162         (record_btrace_frame_unwind_stop_reason)
15163         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15164         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15165         New.
15166         (init_record_btrace_ops): Install it.
15167
15168 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
15169
15170         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15171         get_prev_frame_1.
15172
15173 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
15174
15175         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15176         earlier.
15177
15178 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
15179
15180         * frame-unwind.c: Include target.h.
15181         (frame_unwind_try_unwinder): New function with code from ...
15182         (frame_unwind_find_by_frame): ... here.  New variable
15183         unwinder_from_target, call also target_get_unwinder)
15184         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15185         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15186         * target.h (struct target_ops): New fields to_get_unwinder and
15187         to_get_tailcall_unwinder.
15188         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15189
15190 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15191
15192         * record-btrace.c (record_btrace_fetch_registers)
15193         (record_btrace_store_registers)
15194         (record_btrace_to_prepare_to_store): New.
15195         (init_record_btrace_ops): Add the above.
15196
15197 2014-01-16  Tom Tromey  <tromey@redhat.com>
15198
15199         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15200         * target.h (struct target_ops) <to_prepare_to_store>: Add
15201         argument.
15202         (target_prepare_to_store): Add argument.
15203         * target.c (debug_to_prepare_to_store): Add argument.
15204         (update_current_target): Update.
15205         * remote.c (remote_prepare_to_store): Add 'self' argument.
15206         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15207         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15208         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15209         * record-full.c (record_full_core_prepare_to_store): Add 'self'
15210         argument.
15211         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15212         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15213         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15214         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15215         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15216
15217 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15218
15219         * btrace.h (replay) <replay>: New.
15220         (btrace_is_replaying): New.
15221         * btrace.c (btrace_clear): Free replay iterator.
15222         (btrace_is_replaying): New.
15223         * record-btrace.c (record_btrace_is_replaying): New.
15224         (record_btrace_info): Print insn number if replaying.
15225         (record_btrace_insn_history): Start at replay position.
15226         (record_btrace_call_history): Start at replay position.
15227         (init_record_btrace_ops): Init to_record_is_replaying.
15228
15229 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15230
15231         * record-btrace.c (record_btrace_insn_history_range): Include
15232         end.
15233         (record_btrace_insn_history_from): Adjust range.
15234         (record_btrace_call_history_range): Include
15235         end.
15236         (record_btrace_call_history_from): Adjust range.
15237         * NEWS: Announce changes.
15238
15239 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15240
15241         * record.h (enum record_print_flag)
15242         <record_print_indent_calls>: New.
15243         * record.c (get_call_history_modifiers): Recognize /c modifier.
15244         (_initialize_record): Document /c modifier.
15245         * record-btrace.c (btrace_call_history): Add btinfo parameter.
15246         Reorder fields.  Optionally indent the function name.  Update
15247         all users.
15248         * NEWS: Announce changes.
15249
15250 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15251
15252         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15253
15254 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15255
15256         * btrace.c (ftrace_new_function): Start counting at one.
15257         * record-btrace.c (record_btrace_info): Adjust number of calls
15258         and insns.
15259         * NEWS: Announce it.
15260
15261 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15262
15263         * record-btrace.c (btrace_call_history_insn_range): Print
15264         insn range as [begin, end].
15265
15266 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15267
15268         * btrace.h (struct btrace_func_link): New.
15269         (enum btrace_function_flag): New.
15270         (struct btrace_inst): Rename to ...
15271         (struct btrace_insn): ...this. Update all users.
15272         (struct btrace_func) <ibegin, iend>: Remove.
15273         (struct btrace_func_link): New.
15274         (struct btrace_func): Rename to ...
15275         (struct btrace_function): ...this. Update all users.
15276         (struct btrace_function) <segment, flow, up, insn, insn_offset)
15277         (number, level, flags>: New.
15278         (struct btrace_insn_iterator): Rename to ...
15279         (struct btrace_insn_history): ...this.
15280         Update all users.
15281         (struct btrace_insn_iterator, btrace_call_iterator): New.
15282         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15283         (struct btrace_target_info) <begin, end, level>
15284         <insn_history, call_history>: New.
15285         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15286         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15287         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15288         (btrace_call_number, btrace_call_begin, btrace_call_end)
15289         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15290         (btrace_find_function_by_number, btrace_set_insn_history)
15291         (btrace_set_call_history): New.
15292         * btrace.c (btrace_init_insn_iterator)
15293         (btrace_init_func_iterator, compute_itrace): Remove.
15294         (ftrace_print_function_name, ftrace_print_filename)
15295         (ftrace_skip_file): Change
15296         parameter to const.
15297         (ftrace_init_func): Remove.
15298         (ftrace_debug): Use new btrace_function fields.
15299         (ftrace_function_switched): Also consider gaining and
15300         losing symbol information).
15301         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15302         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15303         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15304         New.
15305         (ftrace_new_function): Move. Remove debug print.
15306         (ftrace_update_lines, ftrace_update_insns): New.
15307         (ftrace_update_function): Check for call, ret, and jump.
15308         (compute_ftrace): Renamed to ...
15309         (btrace_compute_ftrace): ...this. Rewritten to compute call
15310         stack.
15311         (btrace_fetch, btrace_clear): Updated.
15312         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15313         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15314         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15315         (btrace_call_number, btrace_call_begin, btrace_call_end)
15316         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15317         (btrace_find_function_by_number, btrace_set_insn_history)
15318         (btrace_set_call_history): New.
15319         * record-btrace.c (require_btrace): Use new btrace thread
15320         info fields.
15321         (record_btrace_info, btrace_insn_history)
15322         (record_btrace_insn_history, record_btrace_insn_history_range):
15323         Use new btrace thread info fields and new iterator.
15324         (btrace_func_history_src_line): Rename to ...
15325         (btrace_call_history_src_line): ...this. Use new btrace
15326         thread info fields.
15327         (btrace_func_history): Rename to ...
15328         (btrace_call_history): ...this. Use new btrace thread info
15329         fields and new iterator.
15330         (record_btrace_call_history, record_btrace_call_history_range):
15331         Use new btrace thread info fields and new iterator.
15332
15333 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15334
15335         * frame.h (frame_id_build_unavailable_stack_special): New.
15336         * frame.c (frame_id_build_unavailable_stack_special): New.
15337
15338 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15339
15340         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15341         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15342         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15343         to gdbarch.
15344         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15345         (i386_insn_is_jump, i386_jmp_p): New.
15346         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15347         insn_is_jump to gdbarch.
15348         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15349         * gdbarch.h: Regenerated.
15350         * gdbarch.c: Regenerated.
15351         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15352         (default_insn_is_jump): New.
15353         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15354         (default_insn_is_jump): New.
15355
15356 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15357
15358         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15359         Change to ...
15360         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
15361         (btrace_read_type) <btrace_read_new>: Change to ...
15362         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
15363
15364 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15365
15366         * common/linux-btrace.c (linux_read_btrace): Free trace from
15367         previous iteration.
15368
15369 2014-01-15  Doug Evans  <dje@google.com>
15370
15371         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15372         uint32_t.
15373
15374 2014-01-15  Tom Tromey  <tromey@redhat.com>
15375
15376         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15377         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15378         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15379         (set_objfile_main_name): New function.
15380         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15381         language_of_main>: New fields.
15382         (set_objfile_main_name): Declare.
15383         * symtab.c (find_main_name): Loop over objfiles to find the main
15384         name and language.
15385         (set_main_name): Now static.
15386         (get_main_info): Add comment.
15387         * symtab.h (set_main_name): Don't declare.
15388
15389 2014-01-15  Tom Tromey  <tromey@redhat.com>
15390
15391         * symtab.c (main_progspace_key): New global.
15392         (struct main_info): New.
15393         (name_of_main, language_of_main): Remove.
15394         (get_main_info, main_info_cleanup): New function.
15395         (set_main_name, main_name, main_language): Use get_main_info.
15396         (_initialize_symtab): Initialize main_progspace_key.
15397
15398 2014-01-15  Tom Tromey  <tromey@redhat.com>
15399
15400         * dbxread.c (process_one_symbol): Update.
15401         * dwarf2read.c (read_partial_die): Update.
15402         * symfile.c (set_initial_language): Call main_language.
15403         * symtab.c (language_of_main): Now static.
15404         (set_main_name): Add 'lang' parameter.
15405         (find_main_name): Update.
15406         (main_language): New function.
15407         (symtab_observer_executable_changed): Update.
15408         * symtab.h (set_main_name): Update.
15409         (language_of_main): Remove.
15410         (main_language): Declare.
15411
15412 2014-01-15  Tom Tromey  <tromey@redhat.com>
15413
15414         * symfile.c (init_entry_point_info): Use new "initialized" field.
15415         Update.
15416         * objfiles.h (struct entry_point) <initialized>: New field.
15417         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15418         (struct objfile) <ei>: ...here.  Remove.
15419         * objfiles.c (entry_point_address_query): Update.
15420
15421 2014-01-15  Tom Tromey  <tromey@redhat.com>
15422
15423         * objfiles.c (entry_point_address_query): Relocate entry point
15424         address.
15425         (objfile_relocate1): Do not relocate entry point address.
15426         * objfiles.h (struct entry_info) <entry_point>: Update comment.
15427         <the_bfd_section_index>: New field.
15428         * symfile.c (init_entry_point_info): Find the entry point's
15429         section.
15430
15431 2014-01-15  Tom Tromey  <tromey@redhat.com>
15432
15433         * solib-frv.c (enable_break): Use entry_point_address_query.
15434
15435 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15436
15437         * NEWS: Add note on improved process record-replay on
15438         arm*-linux* targets.
15439
15440 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15441
15442         * arm-tdep.c (enum arm_record_result): New enum.
15443         (arm_record_unsupported_insn): New function.
15444         (arm_record_coproc_data_proc): Removed.
15445         (thumb2_record_ld_st_multiple): New function.
15446         (thumb2_record_ld_st_dual_ex_tbb): New function.
15447         (thumb2_record_data_proc_sreg_mimm): New function.
15448         (thumb2_record_ps_dest_generic): New function.
15449         (thumb2_record_branch_misc_cntrl): New function.
15450         (thumb2_record_str_single_data): New function.
15451         (thumb2_record_ld_mem_hints): New function.
15452         (thumb2_record_ld_word): New function.
15453         (thumb2_record_lmul_lmla_div): New function.
15454         (thumb2_record_decode_insn_handler): New function.
15455         (decode_insn): Add thumb32 instruction handlers.
15456
15457 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15458
15459         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15460         (struct arm_linux_record_tdep): Declare.
15461         (arm_canonicalize_syscall): New function.
15462         (arm_all_but_pc_registers_record): New function.
15463         (arm_linux_syscall_record): New function.
15464         (arm_linux_init_abi): Add syscall recording constructs.
15465         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15466         decoding.  (arm_record_coproc_data_proc): Update arm syscall
15467         decoding.
15468         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15469         <arm_syscall_record>: New field.
15470         * configure.tgt (arm*-*-linux*): Add linux-record.o to
15471         gdb_target_obs.
15472
15473 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15474
15475         * arm-tdep.c (thumb_record_misc): Update to use sp as base
15476         register for push instruction recording.
15477
15478 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15479
15480         * arm-tdep.c (thumb_record_misc): Update to correct logical
15481         error while recording ldm, ldmia and pop instructions.
15482
15483 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15484
15485         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15486
15487 2014-01-15  Pedro Alves  <palves@redhat.com>
15488
15489         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15490         (go32_resume, go32_fetch_registers, store_register)
15491         (go32_store_registers, go32_prepare_to_store)
15492         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15493         (go32_create_inferior, go32_can_run, go32_terminal_init)
15494         (go32_terminal_inferior, go32_terminal_ours): Delete forward
15495         declarations.
15496
15497 2014-01-15  Tom Tromey  <tromey@redhat.com>
15498
15499         * target.h (async_callback_ftype): New typedef.
15500         (struct target_ops) <to_async>: Use it.
15501
15502 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
15503
15504         * python/py-value.c (get_field_type): Remove unnecessary curly
15505         braces for single-statement if block.
15506
15507 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
15508
15509         * python/py-type.c (convert_field): Add missing empty line
15510         after declarations.
15511
15512 2014-01-14  Doug Evans  <dje@google.com>
15513
15514         * symfile.h (expand_symtabs_matching): Renamed from
15515         expand_partial_symbol_names.  Update prototype.
15516         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15517         * symfile.c (expand_symtabs_matching): Renamed from
15518         expand_partial_symbol_names.  New args file_matcher, kind.
15519         Rename arg fun to symbol_matcher.
15520         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15521         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15522         ada_expand_partial_symbol_name.
15523         (ada_make_symbol_completion_list): Update to call
15524         expand_symtabs_matching.
15525         (ada_add_global_exceptions): Call expand_symtabs_matching.
15526         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15527         call map_symbol_filenames.
15528         * symtab.c (sources_info): Update to call map_symbol_filenames.
15529         (search_symbols): Call expand_symtabs_matching.
15530         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15531         (default_make_symbol_completion_list_break_on): Update to call
15532         expand_symtabs_matching.
15533         (make_source_files_completion_list): Update to call
15534         map_symbol_filenames.
15535
15536 2014-01-14  Doug Evans  <dje@google.com>
15537
15538         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15539         (expand_symtabs_symbol_matcher_ftype): New typedef.
15540         (quick_symbol_functions.expand_symtabs_matching): Update to use.
15541         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15542         * symfile.c (expand_partial_symbol_names): Update to use
15543         expand_symtabs_symbol_matcher_ftype.
15544         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15545         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15546         Arg name_matcher renamed to symbol_matcher.
15547         * psymtab.c (recursively_search_psymtabs): Update to use
15548         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
15549         sym_matcher.
15550         (expand_symtabs_matching_via_partial): Update to use
15551         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15552         Arg name_matcher renamed to symbol_matcher.
15553
15554 2014-01-14  Doug Evans  <dje@google.com>
15555
15556         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15557         (map_partial_symbol_filenames): Ditto.
15558         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15559         (map_partial_symbol_filenames): Ditto.
15560         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15561         (map_partial_symbol_filenames): Ditto.
15562         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15563         (map_partial_symbol_filenames): Ditto.
15564         * symtab.c: Delete #include "psymtab.h".
15565
15566 2014-01-14  Pedro Alves  <palves@redhat.com>
15567             Tom Tromey  <tromey@redhat.com>
15568
15569         * infrun.c (use_displaced_stepping): Use find_record_target
15570         instead of RECORD_IS_USED.
15571         (adjust_pc_after_break): Use record_full_is_used instead of
15572         RECORD_IS_USED.
15573         * record-btrace.c (record_btrace_open): Call record_preopen
15574         instead of checking RECORD_IS_USED.
15575         * record-full.c (record_full_shortname)
15576         (record_full_core_shortname): New globals.
15577         (record_full_is_used): New function.
15578         (find_full_open): Call record_preopen instead of checking
15579         RECORD_IS_USED.
15580         (init_record_full_ops): Set the target's shortname to
15581         record_full_shortname.
15582         (init_record_full_core_ops): Set the target's shortname to
15583         record_full_core_shortname.
15584         * record-full.h (record_full_is_used): Declare.
15585         * record.c (find_record_target): Make extern.
15586         (record_preopen): New function.
15587         * record.h (RECORD_IS_USED): Delete macro.
15588         (find_record_target, record_preopen): Declare functions.
15589
15590 2014-01-14  Yao Qi  <yao@codesourcery.com>
15591
15592         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15593         'len''s type to ULONGEST.
15594         (core_xfer_shared_libraries_aix): Likewise.
15595         * gdbarch.c, gdbarch.h: Regenerated.
15596         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15597         Change type of 'len' to ULONGEST.
15598         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15599         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15600
15601 2014-01-14  Yao Qi  <yao@codesourcery.com>
15602
15603         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15604         type of 'len' to ULONGEST.
15605         (linux_xfer_osdata_processgroups): Likewise.
15606         (linux_xfer_osdata_threads): Likewise.
15607         (linux_xfer_osdata_fds): Likewise.
15608         (linux_xfer_osdata_isockets): Likewise.
15609         (linux_xfer_osdata_shm): Likewise.
15610         (linux_xfer_osdata_sem): Likewise.
15611         (linux_xfer_osdata_msg): Likewise.
15612         (linux_common_xfer_osdata): Likewise.
15613         (struct osdata_type) <getter>: Likewise.
15614         * common/linux-osdata.h (linux_common_xfer_osdata): Update
15615         the declaration.
15616
15617 2014-01-14  Yao Qi  <yao@codesourcery.com>
15618
15619         * target.h (target_xfer_partial_ftype): Update.
15620         (struct target_ops) <to_xfer_partial>: Change 'len' type to
15621         ULONGEST.
15622         * aix-thread.c (aix_thread_xfer_partial): Change type of
15623         argument 'len' to ULONGEST.
15624         * auxv.c (procfs_xfer_auxv): Likewise.
15625         (ld_so_xfer_auxv): Likewise.
15626         (memory_xfer_auxv): Likewise.
15627         * bfd-target.c (target_bfd_xfer_partial): Likewise.
15628         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15629         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15630         * corelow.c (core_xfer_partial): Likewise.
15631         * ctf.c (ctf_xfer_partial): Likewise.
15632         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
15633         '%u'.
15634         (darwin_read_dyld_info): Likewise.
15635         (darwin_xfer_partial): Likewise.
15636         * exec.c (section_table_xfer_memory_partial): Likewise.
15637         (exec_xfer_partial): Likewise.
15638         * exec.h (section_table_xfer_memory_partial): Update
15639         declaration.
15640         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
15641         instead of plongest.
15642         (gnu_xfer_partial): Likewise.
15643         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15644         (ia64_hpux_xfer_solib_got): Likewise.
15645         (ia64_hpux_xfer_partial): Likewise.
15646         * ia64-linux-nat.c (ia64_linux_xfer_partial):
15647         * inf-ptrace.c (inf_ptrace_xfer_partial):
15648         * inf-ttrace.c (inf_ttrace_xfer_partial):
15649         * linux-nat.c (linux_xfer_siginfo): Likewise.
15650         (linux_nat_xfer_partial): Likewise.
15651         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15652         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15653         * monitor.c (monitor_xfer_memory): Likewise.
15654         (monitor_xfer_partial): Likewise.
15655         * procfs.c (procfs_xfer_partial): Likewise.
15656         * record-full.c (record_full_xfer_partial): Likewise.
15657         (record_full_core_xfer_partial): Likewise.
15658         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
15659         instead of plongest.
15660         (gdbsim_xfer_partial): Likewise.
15661         * remote.c (remote_xfer_partial): Likewise.
15662         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15663         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15664         declaration.
15665         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15666         (rs6000_xfer_shared_libraries): Likewise.
15667         * sol-thread.c (sol_thread_xfer_partial): Likewise.
15668         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15669         (sparc_xfer_partial): Likewise.
15670         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15671         (spu_xfer_partial): Likewise.
15672         * spu-multiarch.c (spu_xfer_partial): Likewise.
15673         * target.c (target_read_live_memory): Likewise.
15674         (memory_xfer_live_readonly_partial): Likewise.
15675         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15676         (target_xfer_partial, default_xfer_partial): Likewise.
15677         (current_xfer_partial): Likewise.
15678         * tracepoint.c (tfile_xfer_partial): Likewise.
15679         * windows-nat.c (windows_xfer_memory): Likewise.  Call
15680         pulongest instead of plongest.
15681         (windows_xfer_partial): Likewise.
15682         (windows_xfer_shared_libraries): Likewise.
15683
15684 2014-01-14  Yao Qi  <yao@codesourcery.com>
15685
15686         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15687         target_xfer_partial_ftype.
15688
15689 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
15690
15691         PR python/15464
15692         PR python/16113
15693         * valops.c (value_struct_elt_bitpos): New function
15694         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15695         object to 'None' if the field name is an empty string ("").
15696         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15697         attribute to look for a field when 'name' is 'None'.
15698         (get_field_type): New function
15699
15700 2014-01-13  Doug Evans  <dje@google.com>
15701
15702         PR symtab/16426
15703         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15704         (try_open_dwop_file): Ditto.
15705         * gdb_bfd.c: #include "vec.h".
15706         (bfdp): New typedef.
15707         (struct gdb_bfd_data): New member included_bfds.
15708         (gdb_bfd_unref): Unref all included bfds.
15709         (gdb_bfd_record_inclusion): New function.
15710         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15711
15712 2014-01-13  Tom Tromey  <tromey@redhat.com>
15713
15714         * gdbcore.h (deprecated_core_resize_section_table): Remove.
15715
15716 2014-01-13  Tom Tromey  <tromey@redhat.com>
15717
15718         * defs.h (use_windows): Remove.
15719         * gdb.c (main): Update.
15720         * main.c (captured_main, gdb_main): Update.
15721         * main.h (struct captured_main_args) <use_windows>: Remove.
15722         * top.c (use_windows): Remove.
15723
15724 2014-01-13  Tom Tromey  <tromey@redhat.com>
15725
15726         * defs.h (deprecated_flush_hook): Remove.
15727
15728 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
15729
15730         PR threads/16216
15731         * linux-thread-db.c (try_thread_db_load): Add parameter
15732         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
15733         (try_thread_db_load_from_pdir_1): Move it there from here.
15734         (try_thread_db_load_from_sdir): Update caller.
15735         (try_thread_db_load_from_dir): Move it there from here.
15736
15737 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
15738
15739         * regformats/regdat.sh: Always rewrite the register file.
15740
15741 2014-01-13  Pedro Alves  <palves@redhat.com>
15742
15743         * Makefile.in (CHECK_HEADERS): New variable.
15744         (check-headers:): New rule.
15745
15746 2014-01-13  Tom Tromey  <tromey@redhat.com>
15747
15748         * cli/cli-setshow.c (do_set_command): Update.
15749         * defs.h (deprecated_set_hook): Remove.
15750         * top.c (deprecated_set_hook): Remove.
15751
15752 2014-01-13  Pedro Alves  <palves@redhat.com>
15753
15754         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15755         the tracepoint if the PC is a pseudo-register.
15756
15757 2014-01-13  Tom Tromey  <tromey@redhat.com>
15758
15759         * defs.h (XCALLOC): Remove.
15760         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15761         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15762         * dwarf2loc.c (allocate_piece_closure): Likewise.
15763         * elfread.c (elf_symfile_segments): Likewise.
15764         (elf_symfile_segments): Likewise.
15765         * gdbtypes.c (copy_type_recursive): Likewise.
15766         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15767         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15768         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15769         XCALLOC.
15770         * mt-tdep.c (mt_gdbarch_init): Likewise.
15771         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15772         XCALLOC.
15773         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15774         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15775         * registry.c (registry_alloc_data): Likewise.
15776         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15777         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15778         * serial.c (serial_fdopen_ops): Likewise.
15779         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15780         XCALLOC.
15781         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15782         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15783         not XCALLOC.
15784
15785 2014-01-13  Tom Tromey  <tromey@redhat.com>
15786
15787         * defs.h (XMALLOC): Remove.
15788         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15789         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15790         * cli-out.c (struct ui_out *): Likewise.
15791         * cli/cli-dump.c (add_dump_command): Likewise.
15792         (add_dump_command): Likewise.
15793         * complaints.c (get_complaints): Likewise.
15794         (find_complaint): Likewise.
15795         * dwarf2-frame.c (execute_cfa_program): Likewise.
15796         * dwarf2read.c (abbrev_table_read_table): Likewise.
15797         * gdbarch.sh: Likewise.
15798         * gdbarch.c: Rebuild.
15799         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15800         * interps.c (interp_new): Likewise.
15801         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15802         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15803         * mi/mi-console.c (mi_console_file_new): Likewise.
15804         * mi/mi-interp.c (mi_interpreter_init): Likewise.
15805         * mi/mi-out.c (mi_out_new): Likewise.
15806         * mi/mi-parse.c (mi_parse): Likewise.
15807         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15808         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15809         * observer.c (xalloc_observer_list_node): Likewise.
15810         * regcache.c (regcache_xmalloc_1): Likewise.
15811         * reggroups.c (reggroup_new): Likewise.
15812         (_initialize_reggroup): Likewise.
15813         * registry.c (register_data_with_cleanup): Likewise.
15814         * remote.c (remote_notif_stop_alloc_reply): Likewise.
15815         * ser-base.c (serial_ttystate): Likewise.
15816         * ser-mingw.c (make_pipe_state): Likewise.
15817         * ser-pipe.c (pipe_open): Likewise.
15818         * serial.c (serial_open): Likewise.
15819         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15820         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15821         (tui_alloc_win_info): Likewise.
15822         (tui_add_content_elements): Likewise.
15823         * tui/tui-file.c (tui_file_new): Likewise.
15824         * tui/tui-out.c (tui_out_new): Likewise.
15825         * ui-file.c (mem_file_new): Likewise.
15826         * ui-out.c (push_level): Likewise.
15827         (make_cleanup_ui_out_end): Likewise.
15828         (append_header_to_list): Likewise.
15829         (ui_out_new): Likewise.
15830         * user-regs.c (user_reg_add_builtin): Likewise.
15831
15832 2014-01-13  Tom Tromey  <tromey@redhat.com>
15833
15834         * defs.h (XZALLOC): Remove.
15835         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15836         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15837         (get_ada_tasks_inferior_data): Likewise.
15838         * auto-load.c (get_auto_load_pspace_data): Likewise.
15839         * auxv.c (get_auxv_inferior_data): Likewise.
15840         * bfd-target.c (target_bfd_reopen): Likewise.
15841         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15842         (deprecated_insert_raw_breakpoint): Likewise.
15843         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15844         * corelow.c (core_open): Likewise.
15845         * darwin-nat.c (darwin_check_new_threads): Likewise.
15846         (darwin_attach_pid): Likewise.
15847         * dummy-frame.c (dummy_frame_push): Likewise.
15848         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15849         * dwarf2loc.c (allocate_piece_closure): Likewise.
15850         * elfread.c (elf_symfile_segments): Likewise.
15851         * eval.c (ptrmath_type_p): Likewise.
15852         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15853         * gdbtypes.c (alloc_type_arch): Likewise.
15854         (alloc_type_instance): Likewise.
15855         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15856         * inf-child.c (inf_child_can_use_agent): Likewise.
15857         * inflow.c (get_inflow_inferior_data): Likewise.
15858         * infrun.c (save_infcall_suspend_state): Likewise.
15859         * jit.c (jit_reader_load): Likewise.
15860         (get_jit_objfile_data): Likewise.
15861         (get_jit_program_space_data): Likewise.
15862         (jit_object_open_impl): Likewise.
15863         (jit_symtab_open_impl): Likewise.
15864         (jit_block_open_impl): Likewise.
15865         (jit_frame_sniffer): Likewise.
15866         * linux-fork.c (add_fork): Likewise.
15867         * maint.c (make_command_stats_cleanup): Likewise.
15868         * objfiles.c (get_objfile_pspace_data): Likewise.
15869         * opencl-lang.c (struct lval_closure): Likewise.
15870         * osdata.c (osdata_start_osdata): Likewise.
15871         * progspace.c (new_address_space): Likewise.
15872         (add_program_space): Likewise.
15873         * remote-sim.c (get_sim_inferior_data): Likewise.
15874         * sh-tdep.c (sh_gdbarch_init): Likewise.
15875         * skip.c (Ignore): Likewise.
15876         (skip_delete_command): Likewise.
15877         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15878         (library_list_start_library): Likewise.
15879         (solib_aix_current_sos): Likewise.
15880         * solib-darwin.c (get_darwin_info): Likewise.
15881         (darwin_current_sos): Likewise.
15882         * solib-dsbt.c (get_dsbt_info): Likewise.
15883         * solib-ia64-hpux.c (new_so_list): Likewise.
15884         (ia64_hpux_get_solib_linkage_addr): Likewise.
15885         * solib-spu.c (append_ocl_sos): Likewise.
15886         (spu_current_sos): Likewise.
15887         * solib-svr4.c (get_svr4_info): Likewise.
15888         (svr4_keep_data_in_core): Likewise.
15889         (library_list_start_library): Likewise.
15890         (svr4_default_sos): Likewise.
15891         (svr4_read_so_list): Likewise.
15892         * solib-target.c (library_list_start_library): Likewise.
15893         (solib_target_current_sos): Likewise.
15894         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15895         * symfile-debug.c (install_symfile_debug_logging): Likewise.
15896         * symfile.c (default_symfile_segments): Likewise.
15897         * target-descriptions.c (tdesc_data_init): Likewise.
15898         (tdesc_create_reg): Likewise.
15899         (struct tdesc_type *): Likewise.
15900         (tdesc_create_vector): Likewise.
15901         (tdesc_set_struct_size): Likewise.
15902         (struct tdesc_type *): Likewise.
15903         (tdesc_free_feature): Likewise.
15904         (tdesc_create_feature): Likewise.
15905         * windows-nat.c (windows_add_thread): Likewise.
15906         (windows_make_so): Likewise.
15907         * xml-support.c (gdb_xml_body_text): Likewise.
15908         (gdb_xml_create_parser_and_cleanup): Likewise.
15909         (xml_process_xincludes): Likewise.
15910         * xml-syscall.c (allocate_syscalls_info): Likewise.
15911         (syscall_create_syscall_desc): Likewise.
15912
15913 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
15914
15915         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15916         function, with code from i386_stap_parse_special_token.
15917         (i386_stap_parse_special_token_three_arg_disp): Likewise.
15918         (i386_stap_parse_special_token): Move code to the two functions
15919         above; simplify it.
15920
15921 2014-01-09  Pedro Alves  <palves@redhat.com>
15922             Hui Zhu  <hui@codesourcery.com>
15923
15924         PR gdb/16101
15925         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15926         bp_err_string.  Don't mark the location shlib_disabled if the
15927         error thrown wasn't a generic or memory error.  Catch errors
15928         thrown while inserting breakpoints in overlayed code.  Output
15929         error message of software breakpoints.
15930         * remote.c (remote_insert_breakpoint): If this breakpoint has
15931         target-side commands but this stub doesn't support Z0 packets,
15932         throw NOT_SUPPORTED_ERROR error.
15933         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15934         * target.h (target_insert_breakpoint): Extend comment.
15935         (target_insert_hw_breakpoint): Add comment.
15936
15937 2014-01-08  Pedro Alves  <palves@redhat.com>
15938
15939         * remote.c (remote_add_thread): Add threads silently if starting
15940         up.
15941         (remote_notice_new_inferior): If in all-stop, and starting up,
15942         don't call notice_new_inferior.
15943         (get_current_thread): New function, factored out from ...
15944         (add_current_inferior_and_thread): ... this.  Adjust.
15945         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
15946         found any thread, then select the remote's current thread as GDB's
15947         current thread too.
15948
15949 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
15950
15951         * NEWS: Create a new section for the next release branch.
15952         Rename the section of the current branch, now that it has
15953         been cut.
15954
15955 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
15956
15957         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15958         * version.in: Bump version to 7.7.50.DATE-cvs.
15959
15960 2014-01-08  Yao Qi  <yao@codesourcery.com>
15961
15962         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15963         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
15964         (spu_xfer_partial): Cast 'buf' to 'const char *'.
15965
15966 2014-01-08  Yao Qi  <yao@codesourcery.com>
15967
15968         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15969         return value of bfd_get_filename to symbol_file_add_from_bfd.
15970
15971 2014-01-08  Pierre Muller  <muller@sourceware.org>
15972
15973         Fix PR16201.
15974         * coff-pe-read.c (struct read_pe_section_data): Add index field.
15975         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15976         to prim_record_mininal_symbol_and_info.
15977         (add_pe_forwarded_sym): Use known section number of forwarded symbol
15978         in call to prim_record_minimal_symbol_and_info.
15979         (read_pe_exported_syms): Set index field of section_data.
15980
15981 2014-01-07  Andrew Pinski  <apinski@cavium.com>
15982
15983         * features/aarch64-core.xml (cpsr): Change to be 64bit.
15984         * features/aarch64.c: Regenerate.
15985
15986 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
15987
15988         * target.c (return_null): Define.
15989         (update_current_target): Use it instead of return_zero for
15990         functions that return a pointer.
15991
15992 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
15993
15994         * source.c (add_path): Fix check for duplicated paths in the previously
15995         included paths.
15996
15997 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
15998
15999         * ada-lang.c: Remove duplicated include statements.
16000         * alphabsd-nat.c: Ditto.
16001         * amd64-darwin-tdep.c: Ditto.
16002         * amd64fbsd-nat.c: Ditto.
16003         * auto-load.c: Ditto.
16004         * ax-gdb.c: Ditto.
16005         * breakpoint.c: Ditto.
16006         * dbxread.c: Ditto.
16007         * fork-child.c: Ditto.
16008         * gdb_usleep.c: Ditto.
16009         * i386-darwin-tdep.c: Ditto.
16010         * i386fbsd-nat.c: Ditto.
16011         * infcmd.c: Ditto.
16012         * inferior.c: Ditto.
16013         * jv-lang.c: Ditto.
16014         * linux-nat.c: Ditto.
16015         * linux-tdep.c: Ditto.
16016         * m68kbsd-nat.c: Ditto.
16017         * m68klinux-nat.c: Ditto.
16018         * microblaze-tdep.c: Ditto.
16019         * mips-linux-tdep.c: Ditto.
16020         * mn10300-tdep.c: Ditto.
16021         * nto-tdep.c: Ditto.
16022         * opencl-lang.c: Ditto.
16023         * osdata.c: Ditto.
16024         * printcmd.c: Ditto.
16025         * regcache.c: Ditto.
16026         * remote-m32r-sdi.c: Ditto.
16027         * remote.c: Ditto.
16028         * symfile.c: Ditto.
16029         * symtab.c: Ditto.
16030         * tilegx-linux-nat.c: Ditto.
16031         * tilegx-tdep.c: Ditto.
16032         * tracepoint.c: Ditto.
16033         * valops.c: Ditto.
16034         * vaxbsd-nat.c: Ditto.
16035         * windows-nat.c: Ditto.
16036         * xtensa-tdep.c: Ditto.
16037
16038 2014-01-07  Yao Qi  <yao@codesourcery.com>
16039
16040         * spu-linux-nat.c (_initialize_spu_nat): Declare.
16041
16042 2014-01-07  Yao Qi  <yao@codesourcery.com>
16043             Joel Brobecker  <brobecker@adacore.com>
16044
16045         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16046         (pdc_write_regs): Likewise.
16047         (fetch_regs_kernel_thread): Likewise.
16048         (store_regs_kernel_thread): Likewise.
16049
16050 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16051
16052         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16053         tagged type objects to their actual type.
16054
16055 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16056
16057         * ada-valprint.c (print_field_values): Add "language" parameter.
16058         Update calls to print_field_values and print_variant_part.
16059         Pass new parameter "language" in call to val_print instead
16060         of "current_language".  Replace call to ada_val_print by call
16061         to val_print.
16062         (print_variant_part): Add "language" parameter.
16063         (ada_val_print_struct_union): Update call to print_field_values.
16064
16065 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16066
16067         * ada-valprint.c (ui_memcpy): Delete.
16068         (ada_print_floating): Update documentation.  Add empty line
16069         between between function documentation and implementation.
16070         Delete variable "buffer".  Use ui_file_xstrdup in place of
16071         ui_file_put.  Minor adjustments following this change.
16072
16073 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16074
16075         * ada-valprint.c (ada_val_print_string): New function,
16076         extracted from ada_val_print_array.
16077         (ada_val_print_array): Replace extracted code by call
16078         to ada_val_print_string followed by a return.  Move
16079         "else" branch to the function's top block.
16080
16081 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16082
16083         * ada-valprint.c (ada_val_print_array): Move implementation
16084         down.  Rename parameter "offset" and "val" into "offset_aligned"
16085         and "original_value" respectively.  Add parameter "offset".
16086
16087 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16088
16089         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16090         re-organizing the code. Change the "???" message printed
16091         when target type is a TYPE_CODE_UNDEF into
16092         "<ref to undefined type>".
16093
16094 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16095
16096         * ada-valprint.c (print_record): Delete, implementation inlined...
16097         (ada_val_print_struct_union): ... here.  Remove call to
16098         ada_check_typedef in inlined implementation.
16099
16100 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16101
16102         * ada-valprint.c (ada_val_print_gnat_array): New function,
16103         extracted from ada_val_print_1;
16104         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16105         (ada_val_print_flt, ada_val_print_struct_union)
16106         (ada_val_print_ref): Likewise.
16107         (ada_val_print_1): Delete variables i and elttype.
16108         Replace extracted-out code by call to corresponding
16109         new functions.
16110
16111 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16112
16113         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16114
16115 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16116
16117         * ada-valprint.c (ada_val_print_1): Replace calls to
16118         ada_val_print_1 by calls to val_print.
16119
16120 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16121
16122         * ada-valprint.c (ada_val_print_1): Add parameter "language".
16123         Update calls to self accordingly.  Replace calls to c_val_print
16124         by calls to val_print.
16125
16126 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16127
16128         * ada-valprint.c (print_record): Delete declaration.
16129         (adjust_type_signedness, ada_val_print_1): Likewise.
16130         (ada_val_print): Move function implementation down.
16131         (print_variant_part, print_field_values, print_record):
16132         Move function implementation up.
16133
16134 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16135
16136         * python/py-type.c (typy_get_name): New function.
16137         (type_object_getset): Add entry for attribute "name".
16138         * NEWS: Add entry mentioning this new attribute.
16139
16140 2014-01-07  Yao Qi  <yao@codesourcery.com>
16141
16142         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16143         statement.
16144
16145 2014-01-07  Yao Qi  <yao@codesourcery.com>
16146
16147         * gnu-nat.c (info_port_rights): Add qualifier const to
16148         argument args.
16149
16150 2014-01-07  Yao Qi  <yao@codesourcery.com>
16151
16152         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16153
16154 2014-01-07  Yao Qi  <yao@codesourcery.com>
16155
16156         * gnu-nat.c (make_inf) Update declaration.
16157         (make_inf): Make it static.
16158         (inf_set_traced): Likewise.
16159         (inf_port_to_thread, inf_task_died_status): Likewise.
16160
16161 2014-01-07  Yao Qi  <yao@codesourcery.com>
16162
16163         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16164
16165 2014-01-07  Yao Qi  <yao@codesourcery.com>
16166
16167         * gnu-nat.c (_initialize_gnu_nat): Declare.
16168
16169 2014-01-07  Yao Qi  <yao@codesourcery.com>
16170
16171         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16172         'enum bfd_endian'.
16173         (struct gdbarch_info) <byte_order>: Change type to
16174         'enum bfd_endian'.
16175         <byte_order_for_code>: Likewise.
16176         * gdbarch.c, gdbarch.h: Regenerated.
16177
16178 2014-01-06  Sasha Smundak  <asmundak@google.com>
16179
16180         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16181
16182 2014-01-06  Tom Tromey  <tromey@redhat.com>
16183
16184         * doublest.c (convert_doublest_to_floatformat): Use const, not
16185         CONST.
16186         * somread.c (som_symtab_read): Likewise.
16187
16188 2014-01-07  Hui Zhu  <hui@codesourcery.com>
16189
16190         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16191         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16192         (gdb_bfd_fopen): Ditto.
16193         (gdb_bfd_openr): Ditto.
16194         (gdb_bfd_openw): Ditto.
16195         (gdb_bfd_openr_iovec): Ditto.
16196         (gdb_bfd_fdopenr): Ditto.
16197         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16198         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16199         with xstrdup.
16200         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16201         with xstrdup.
16202         * symfile-mem.c (symbol_file_add_from_memory): Removed
16203         gdb_bfd_stash_filename.
16204
16205 2014-01-03  Doug Evans  <dje@google.com>
16206
16207         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16208         output.
16209
16210 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
16211
16212         Update year range in copyright notice of all files.
16213
16214 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
16215
16216         * top.c (print_gdb_version): Set copyright year to 2014.
16217
16218 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
16219
16220         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16221
16222 For older changes see ChangeLog-2013.
16223 \f
16224 Local Variables:
16225 mode: change-log
16226 left-margin: 8
16227 fill-column: 74
16228 version-control: never
16229 coding: utf-8
16230 End: