cp_lookup_symbol_via_imports: Renamed from cp_lookup_symbol_imports.
[external/binutils.git] / gdb / ChangeLog
1 2014-12-16  Doug Evans  <xdje42@gmail.com>
2
3         * cp-namespace.c (cp_lookup_symbol_via_imports): Renamed from
4         cp_lookup_symbol_imports.  All callers updated.
5
6 2014-12-16  Doug Evans  <xdje42@gmail.com>
7
8         * cp-namespace.c (cp_find_type_baseclass_by_name): Renamed from
9         find_type_baseclass_by_name.  All callers updated.
10
11 2014-12-16  Doug Evans  <xdje42@gmail.com>
12
13         * symtab.h (struct symbol_search) <symtab>: Delete.  All uses updated.
14         * symtab.c (compare_search_syms): Use SYMBOL_SYMTAB accessor.
15         (print_symbol_info): Delete arg symtab.  All callers updated.
16         (symtab_symbol_info): Use SYMBOL_SYMTAB accessor.
17
18 2014-12-16  Andreas Arnez  <arnez@vnet.linux.ibm.com>
19
20         * user-regs.c (maintenance_print_user_registers): Swap "Nr" and
21         "Name" columns.  Assure that the output is always indented.
22
23 2014-12-16  Joel Brobecker  <brobecker@adacore.com>
24
25         * nat/linux-ptrace.h (PTRACE_O_EXITKILL): Define if not
26         already defined.
27         (linux_enable_event_reporting): Add parameter "attached".
28         * nat/linux-ptrace.c (linux_test_for_exitkill): New forward
29         declaration.  New function.
30         (linux_check_ptrace_features): Add linux_test_for_exitkill call.
31         (linux_enable_event_reporting): Add new parameter "attached".
32         Do not call ptrace with the PTRACE_O_EXITKILL if ATTACHED is
33         nonzero.
34         * linux-nat.c (linux_init_ptrace): Add parameter "attached".
35         Use it.  Update function description.
36         (linux_child_post_attach, linux_child_post_startup_inferior):
37         Update call to linux_enable_event_reporting.
38
39 2014-12-16  Yao Qi  <yao@codesourcery.com>
40
41         * NEWS: Move some entries to "Changes since GDB 7.8" section.
42
43 2014-12-16  Yao Qi  <yao@codesourcery.com>
44
45         * linux-tdep.c (linux_infcall_mmap): Replace ARG_MAX with
46         ARG_LAST.
47
48 2014-12-15  Simon Marchi  <simon.marchi@ericsson.com>
49
50         * inferior.c (find_inferior_ptid): New function.
51         * inferior.h (find_inferior_ptid): New declaration.
52         * ada-tasks.c (ada_get_task_number): Use find_inferior_ptid.
53         * corelow.c (core_pid_to_str): Same.
54         * darwin-nat.c (darwin_resume): Same.
55         * infrun.c (fetch_inferior_event): Same.
56         (get_inferior_stop_soon): Same.
57         (handle_inferior_event): Same.
58         (handle_signal_stop): Same.
59         * linux-nat.c (resume_lwp): Same.
60         (stop_wait_callback): Same.
61         * mi/mi-interp.c (mi_new_thread): Same.
62         (mi_thread_exit): Same.
63         * proc-service.c (ps_pglobal_lookup): Same.
64         * record-btrace.c (record_btrace_step_thread): Same.
65         * remote-sim.c (gdbsim_close_inferior): Same.
66         (gdbsim_resume): Same.
67         (gdbsim_stop): Same.
68         * sol2-tdep.c (sol2_core_pid_to_str): Same.
69         * target.c (memory_xfer_partial_1): Same.
70         (default_thread_address_space): Same.
71         * thread.c (thread_change_ptid): Same.
72         (switch_to_thread): Same.
73         (do_restore_current_thread_cleanup): Same.
74
75 2014-12-15  Simon Marchi  <simon.marchi@ericsson.com>
76
77         * defs.h (gdb_readline): Constify argument.
78         (gdb_readline_wrapper): Same.
79         (command_line_input): Same.
80         (deprecated_readline_hook): Same.
81         * top.c (deprecated_readline_hook): Same.
82         (gdb_readline): Same.
83         (gdb_readline_wrapper): Same.
84         (command_line_input): Constify argument. Pass prompt_arg to called
85         functions instead of local_prompt, overwriting prompt_arg if necessary.
86         * event-top.h (display_gdb_prompt): Constify argument.
87         * event-top.c (display_gdb_prompt): Same.
88         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Constify argument
89         if building with Python 3.4 and up.
90
91 2014-12-15  Simon Marchi  <simon.marchi@ericsson.com>
92
93         * python/lib/gdb/prompt.py (_prompt_pwd): Use os.getcwd() instead of
94         os.getcwdu().
95
96 2014-12-15  Catalin Udma  <catalin.udma@freescale.com>
97
98         PR gdb/15684
99         * memattr.c (mem_info_command): Remove "unsigned long" casts.
100
101 2014-12-13  Doug Evans  <xdje42@gmail.com>
102
103         * utils.c (make_hex_string): Fix off-by-one error.
104
105 2014-12-13  Joel Brobecker  <brobecker@adacore.com>
106
107         * ada-lang.h (ada_ensure_varsize_limit): Declare.
108         * ada-lang.c (check_size): Remove advance declaration.
109         (ada_ensure_varsize_limit): Renames check_size.
110         Replace calls to check_size by calls to ada_ensure_varsize_limit
111         throughout.
112         * ada-valprint.c (ada_val_print_ref): Add call to
113         ada_ensure_varsize_limit.  Add comment explaining why.
114
115 2014-12-13  Joel Brobecker  <brobecker@adacore.com>
116
117         * utils.c (make_hex_string): Replace use of sprintf by use of
118         xsnprintf.
119
120 2014-12-13  Joel Brobecker  <brobecker@adacore.com>
121
122         * compile/compile-object-load.c (link_callbacks_multiple_definition)
123         (link_callbacks_warning, link_callbacks_einfo): Remove trailing
124         newline at end of warning message.
125
126 2014-12-13  Joel Brobecker  <brobecker@adacore.com>
127
128         * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
129         new "EXTRA-ARGS" parameter.
130         * configure.ac: If large-file support is disabled in GDB,
131         pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
132         * configure: Regenerate.
133
134 2014-12-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
135
136         PR symtab/17642
137         * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
138         TYPE if not TYPE_CODE_TYPEDEF.
139
140 2014-12-13  Joel Brobecker  <brobecker@adacore.com>
141
142         PR backtrace/16215:
143         * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction
144         the frame unwinder must either be the dwarf2_frame_unwind
145         or the dwarf2_tailcall_frame_unwind.  Verify that this_frame's
146         stack_addr is valid before calling get_frame_base.  Throw
147         an error if not valid.
148
149 2014-12-12  Doug Evans  <xdje42@gmail.com>
150
151         * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
152         result != NULL.
153
154 2014-12-12  Doug Evans  <xdje42@gmail.com>
155
156         * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
157         All callers updated.  Rename arg "namespace" to "symbol_name".
158
159 2014-12-12  Doug Evans  <xdje42@gmail.com>
160
161         * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
162         partial_map_symtabs_matching_filename.  All uses updated.
163         (psym_find_pc_sect_compunit_symtab): Renamed from
164         find_pc_sect_compunit_symtab_from_partial.  All uses updated.
165         Add function comment.
166         (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
167         All uses updated.  Add function comment.
168         (psym_relocate): Renamed from relocate_psymtabs.  All uses updated.
169         Add function comment.
170         (psym_find_last_source_symtab): Renamed from
171         find_last_source_symtab_from_partial.  All uses updated.
172         Add function comment.
173         (psym_forget_cached_source_info): Renamed from
174         forget_cached_source_info_partial.  All uses updated.
175         Add function comment.
176         (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
177         All uses updated.  Add function comment.
178         (psym_dump): Renamed from dump_psymtabs_for_objfile.  All uses
179         updated.  Add function comment.
180         (psym_expand_symtabs_for_function): Renamed from
181         read_symtabs_for_function.  All uses updated.  Update function comment.
182         (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
183         All uses updated.  Add function comment.
184         (psym_expand_symtabs_with_fullname): Renamed from
185         read_psymtabs_with_fullname.  All uses updated.  Add function comment.
186         (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
187         All uses updated.  Add function comment.
188         (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
189         All uses updated.
190         (psym_expand_symtabs_matching): Renamed from
191         expand_symtabs_matching_via_partial.  All uses updated.
192         Add function comment.
193         (psym_has_symbols): Renamed from objfile_has_psyms.  All uses updated.
194         Add function comment.
195
196 2014-12-12  Phil Muldoon  <pmuldoon@redhat.com>
197             Jan Kratochvil  <jan.kratochvil@redhat.com>
198             Tom Tromey  <tromey@redhat.com>
199
200         * NEWS: Update.
201         * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
202         field.
203         * p-lang.c (pascal_language_defn): Update.
204         * opencl-lang.c (opencl_language_defn): Update.
205         * objc-lang.c (objc_language_defn): Update.
206         * m2-lang.c (m2_language_defn): Update.
207         * language.h (struct language_defn) <la_get_compile_instance,
208         la_compute_program>: New fields.
209         * language.c (unknown_language_defn, auto_language_defn)
210         (local_language_defn): Update.
211         * jv-lang.c (java_language_defn): Update.
212         * go-lang.c (go_language_defn): Update.
213         * f-lang.c (f_language_defn): Update.
214         * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
215         * dwarf2loc.c (dwarf2_compile_property_to_c)
216         (locexpr_generate_c_location, loclist_generate_c_location): New
217         functions.
218         (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
219         * defs.h (enum compile_i_scope_types): New.
220         (enum command_control_type) <compile_control>: New constant.
221         (struct command_line) <control_u>: New field.
222         * d-lang.c (d_language_defn): Update.
223         * compile/compile.c: New file.
224         * compile/compile-c-support.c: New file.
225         * compile/compile-c-symbols.c: New file.
226         * compile/compile-c-types.c: New file.
227         * compile/compile.h: New file.
228         * compile/compile-internal.h: New file.
229         * compile/compile-loc2c.c: New file.
230         * compile/compile-object-load.c: New file.
231         * compile/compile-object-load.h: New file.
232         * compile/compile-object-run.c: New file.
233         * compile/compile-object-run.h: New file.
234         * cli/cli-script.c (multi_line_command_p, print_command_lines)
235         (execute_control_command, process_next_line)
236         (recurse_read_control_structure): Handle compile_control.
237         * c-lang.h (c_get_compile_context, c_compute_program): Declare.
238         * c-lang.c (c_language_defn, cplus_language_defn)
239         (asm_language_defn, minimal_language_defn): Update.
240         * ada-lang.c (ada_language_defn): Update.
241         * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
242         New variables.
243         (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
244         (HFILES_NO_SRCDIR): Add compile.h.
245         (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
246         (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
247         (compile.o, compile-c-types.o, compile-c-symbols.o)
248         (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
249         (compile-c-support.o): New targets.
250
251 2014-12-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
252
253         * s390-linux-tdep.c (s390_gcc_target_options): New function.
254         (s390_gdbarch_init): Add it to gdbarch.
255
256 2014-12-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
257
258         * linux-tdep.c: Include objfiles.h and infcall.h.
259         (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
260         function.
261         (linux_init_abi): Add linux_infcall_mmap to gdbarch.
262
263 2014-12-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
264
265         * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
266         * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
267         translate_register.  Now public.
268         (dwarf2_compile_expr_to_ax): Update.
269
270 2014-12-12  Tom Tromey  <tromey@redhat.com>
271             Jan Kratochvil  <jan.kratochvil@redhat.com>
272
273         * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
274         (dwarf_expr_frame_base): Update caller.
275         (dwarf_expr_frame_base_1): Rename to ...
276         (func_get_frame_base_dwarf_block): ... this and make it public.
277         (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
278         callers.
279         * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
280
281 2014-12-12  Tom Tromey  <tromey@redhat.com>
282
283         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
284         Update.
285         * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
286         dwarf2_compile_cfa_to_ax.
287         (dwarf2_compile_cfa_to_ax): Remove.
288         * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
289         (dwarf2_compile_cfa_to_ax): Remove.
290
291 2014-12-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
292
293         * infcall.h (call_function_by_hand_dummy): Declare.
294         * infcall.c (call_function_by_hand): Use
295         call_function_by_hand_dummy.
296         (call_function_by_hand_dummy): Rename from call_function_by_hand.
297         Add arguments.  Register a destructor.
298
299 2014-12-12  Tom Tromey  <tromey@redhat.com>
300             Jan Kratochvil  <jan.kratochvil@redhat.com>
301
302         * osabi.h (osabi_triplet_regexp): Declare.
303         * osabi.c (struct osabi_names): New.
304         (gdb_osabi_names): Change type to struct osabi_names.  Update
305         values.
306         (gdbarch_osabi_name): Update.
307         (osabi_triplet_regexp): New function.
308         (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
309         * i386-tdep.c (i386_gnu_triplet_regexp): New method.
310         (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
311         set_gdbarch_gnu_triplet_regexp.
312         * gdbarch.sh (gnu_triplet_regexp): New method.
313         * gdbarch.c, gdbarch.h: Rebuild.
314         * arch-utils.h (default_gnu_triplet_regexp): Declare.
315         * arch-utils.c (default_gnu_triplet_regexp): New function.
316
317 2014-12-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
318
319         * arch-utils.c (default_infcall_mmap)
320         (default_gcc_target_options): New functions.
321         * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
322         (GDB_MMAP_PROT_EXEC): Define.
323         (default_infcall_mmap, default_gcc_target_options): Declare.
324         * gdbarch.h: Rebuild.
325         * gdbarch.c: Rebuild.
326         * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
327
328 2014-12-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
329
330         * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
331         fields.
332         (pop_dummy_frame): Call the destructor if it exists.
333         (register_dummy_frame_dtor, find_dummy_frame_dtor): New
334         functions.
335         * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
336         (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
337
338 2014-12-12  Tom Tromey  <tromey@redhat.com>
339
340         * gdbtypes.h (make_unqualified_type): Declare.
341         * gdbtypes.c (make_unqualified_type): New function.
342
343 2014-12-12  Tom Tromey  <tromey@redhat.com>
344
345         * ui-file.h (ui_file_write_for_put): Declare.
346         * ui-file.c (ui_file_write_for_put): New function.
347         * mi/mi-out.c (do_write): Remove.
348         (mi_out_put): Use ui_file_write_for_put.
349
350 2014-12-12  Doug Evans  <dje@google.com>
351
352         * NEWS: Mention gdb.lookup_objfile.
353         * python/python.c (GdbMethods): Add lookup_objfile.
354         * python/python-internal.h (gdbpy_lookup_objfile): Declare.
355         * python/py-objfile.c: #include "symtab.h".
356         (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
357         (objfpy_lookup_objfile_by_name): New function.
358         (objfpy_lookup_objfile_by_build_id): New function.
359         (gdbpy_lookup_objfile): New function.
360
361 2014-12-12  Maciej W. Rozycki  <macro@codesourcery.com>
362
363         * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
364         (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
365         * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
366         macros.
367         (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
368         Likewise.
369
370 2014-12-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
371
372         * completer.c: Include "target.h", "reggroups.h", and
373         "user-regs.h".
374         (reg_or_group_completer): New.
375         * completer.h (reg_or_group_completer): Declare.
376         * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
377         the "info registers" and "info all-registers" commands and the
378         dbx-mode "lr" command.
379
380 2014-12-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
381
382         * user-regs.c: Include "arch-utils.h", "command.h", and
383         "cli/cli-cmds.h".
384         (maintenance_print_user_registers): New.
385         (_initialize_user_regs): Register new "maint print user-registers"
386         subcommand.
387         * NEWS: Mention new GDB command "maint print user-registers".
388
389 2014-12-12  Maciej W. Rozycki  <macro@codesourcery.com>
390             Maciej W. Rozycki  <macro@mips.com>
391             Pedro Alves  <pedro@codesourcery.com>
392
393         * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
394         remove `predefault' and `invalid_p' initializers.
395         (make_symbol_special): New architecture method.
396         (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
397         (objfile, symbol): New declarations.
398         * arch-utils.h (default_elf_make_msymbol_special): Remove
399         prototype.
400         (default_make_symbol_special): New prototype.
401         (default_adjust_dwarf2_addr): Likewise.
402         (default_adjust_dwarf2_line): Likewise.
403         * mips-tdep.h (mips_unmake_compact_addr): New prototype.
404         * arch-utils.c (default_elf_make_msymbol_special): Remove
405         function.
406         (default_make_symbol_special): New function.
407         (default_adjust_dwarf2_addr): Likewise.
408         (default_adjust_dwarf2_line): Likewise.
409         * dwarf2-frame.c (decode_frame_entry_1): Call
410         `gdbarch_adjust_dwarf2_addr'.
411         * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
412         * dwarf2read.c (create_addrmap_from_index): Likewise.
413         (process_psymtab_comp_unit_reader): Likewise.
414         (add_partial_symbol): Likewise.
415         (add_partial_subprogram): Likewise.
416         (process_full_comp_unit): Likewise.
417         (read_file_scope): Likewise.
418         (read_func_scope): Likewise.  Call `gdbarch_make_symbol_special'.
419         (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
420         (read_call_site_scope): Likewise.
421         (dwarf2_ranges_read): Likewise.
422         (dwarf2_record_block_ranges): Likewise.
423         (read_attribute_value): Likewise.
424         (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
425         (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
426         * elfread.c (elf_symtab_read): Don't call
427         `gdbarch_elf_make_msymbol_special' if unset.
428         * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
429         the ISA bit from the PC.
430         * mips-tdep.c (mips_unmake_compact_addr): New function.
431         (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
432         address appropriately.
433         (mips_make_symbol_special): New function.
434         (mips_pc_is_mips): Set the ISA bit before symbol lookup.
435         (mips_pc_is_mips16): Likewise.
436         (mips_pc_is_micromips): Likewise.
437         (mips_pc_isa): Likewise.
438         (mips_adjust_dwarf2_addr): New function.
439         (mips_adjust_dwarf2_line): Likewise.
440         (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
441         (mips_addr_bits_remove): Likewise.
442         (mips_skip_trampoline_code): Likewise.
443         (mips_write_pc): Don't set the ISA bit.
444         (mips_eabi_push_dummy_call): Likewise.
445         (mips_o64_push_dummy_call): Likewise.
446         (mips_gdbarch_init): Install `mips_make_symbol_special',
447         `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
448         handlers.
449         * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
450         target-specific symbol address adjustments.
451         * gdbarch.h: Regenerate.
452         * gdbarch.c: Regenerate.
453
454 2014-12-12  Yao Qi  <yao@codesourcery.com>
455
456         PR tdep/14261
457         * arm-tdep.c (arm_skip_prologue): Remove unused local variable
458         'skip_pc'.  Remove code skipping prologue instructions, use
459         arm_analyze_prologue instead.
460         (arm_analyze_prologue): Stop the scanning for unrecognized
461         instruction when skipping prologue.
462
463 2014-12-12  Yao Qi  <yao@codesourcery.com>
464
465         * arm-tdep.c (arm_instruction_restores_sp): New function.
466         (arm_analyze_prologue): Call arm_instruction_restores_sp.
467         (arm_in_function_epilogue_p): Move code to
468         arm_instruction_restores_sp.
469
470 2014-12-11  Doug Evans  <xdje42@gmail.com>
471
472         * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
473
474 2014-12-11  Doug Evans  <xdje42@gmail.com>
475
476         * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
477         (symbol *lookup_symbol_via_quick_fns): Ditto.
478         (lookup_symbol_in_objfile): Add forward decl.
479         (lookup_global_symbol_from_objfile): Simplify, call
480         lookup_symbol_in_objfile.
481
482 2014-12-11  Doug Evans  <xdje42@gmail.com>
483
484         * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
485
486 2014-12-10  Simon Marchi  <simon.marchi@ericsson.com>
487
488         PR breakpoints/17012
489         * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
490         it is marked as persistent.
491
492 2014-12-10  Doug Evans  <xdje42@gmail.com>
493
494         * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
495         closer to its subroutines.
496
497 2014-12-10  Doug Evans  <xdje42@gmail.com>
498
499         * cp-namespace.c (lookup_symbol_file): Move next to only caller.
500
501 2014-12-10  Doug Evans  <xdje42@gmail.com>
502
503         * cp-namespace.c (cp_lookup_symbol_imports): Make static.
504         * cp-support.c (cp_lookup_symbol_imports): Delete.
505
506 2014-12-10  Simon Marchi  <simon.marchi@ericsson.com>
507
508         PR gdb/17627
509         * target.c (cleanup_restore_target_terminal): New function.
510         (make_cleanup_restore_target_terminal): New function.
511         * target.h (make_cleanup_restore_target_terminal): New declaration.
512         * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
513
514 2014-12-08  Doug Evans  <dje@google.com>
515
516         * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
517
518 2014-12-08  Doug Evans  <dje@google.com>
519
520         * NEWS: Mention gdb.Objfile.owner.
521         * python/py-objfile.c (objfpy_get_owner): New function.
522         (objfile_getset): Add "owner".
523
524 2014-12-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
525
526         * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
527         (lookup_global_symbol_from_objfile): Call it.
528
529 2014-12-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
530
531         Remove const from struct objfile *.
532         * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
533         symtab.c, symtab.h: In these files.
534
535 2014-12-05  Andreas From  <andreas.from@ericsson.com>
536
537         * MAINTAINERS (Write After Approval): Add "Andreas From"
538
539 2014-12-05  Doug Evans  <xdje42@gmail.com>
540
541         Revert:
542         PR symtab/17602
543         * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
544
545 2014-12-04  Doug Evans  <dje@google.com>
546
547         * NEWS: Mention gdb.Objfile.add_separate_debug_file.
548         * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
549         (objfile_getset): Add "add_separate_debug_file".
550
551 2014-12-04  Doug Evans  <dje@google.com>
552
553         * NEWS: Mention gdb.Objfile.build_id.
554         * build-id.c (build_id_bfd_get): Make non-static.
555         * build-id.h (build_id_bfd_get): Add declaration.
556         * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
557         (OBJFPY_REQUIRE_VALID): New macro.
558         (objfpy_get_build_id): New function.
559         (objfile_getset): Add "build_id".
560         * utils.c (make_hex_string): New function.
561         * utils.h (make_hex_string): Add declaration.
562
563 2014-12-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
564
565         * block.c (block_lookup_symbol_primary): New function.
566         * block.h (block_lookup_symbol_primary): New declaration.
567         * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
568         Call block_lookup_symbol_primary.
569
570 2014-12-03  Maciej W. Rozycki  <macro@codesourcery.com>
571
572         * tramp-frame.h (tramp_frame): Add `validate' member.
573         * tramp-frame.c (tramp_frame_start): Validate trampoline before
574         scanning.
575         * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
576         (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
577         (mips_linux_o32_sigframe): Initialize `validate' member.
578         (mips_linux_o32_rt_sigframe): Likewise.
579         (mips_linux_n32_rt_sigframe): Likewise.
580         (mips_linux_n64_rt_sigframe): Likewise.
581         (micromips_linux_o32_sigframe): New variable.
582         (micromips_linux_o32_rt_sigframe): Likewise.
583         (micromips_linux_n32_rt_sigframe): Likewise.
584         (micromips_linux_n64_rt_sigframe): Likewise.
585         (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
586         (mips_linux_n32n64_sigframe_init): Likewise.
587         (mips_linux_sigframe_validate): New function.
588         (micromips_linux_sigframe_validate): Likewise.
589         (mips_linux_init_abi): Install microMIPS trampoline unwinders.
590
591 2014-12-03  Ulrich Weigand  <uweigand@de.ibm.com>
592
593         * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
594         * sparc-sol2-tdep.c: Include "regset.h".
595         (sparc32_sol2_supply_core_gregset): New function.
596         (sparc32_sol2_collect_core_gregset): Likewise.
597         (sparc32_sol2_supply_core_fpregset): Likewise.
598         (sparc32_sol2_collect_core_fpregset): Likewise.
599         (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
600         (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
601         tdep->fpregset/sizeof_fpregset.
602         * sparc64-sol2-tdep.c: Include "regset.h".
603         (sparc64_sol2_supply_core_gregset): New function.
604         (sparc64_sol2_collect_core_gregset): Likewise.
605         (sparc64_sol2_supply_core_fpregset): Likewise.
606         (sparc64_sol2_collect_core_fpregset): Likewise.
607         (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
608         (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
609         tdep->fpregset/sizeof_fpregset.
610
611 2014-12-03  Simon Marchi  <simon.marchi@ericsson.com>
612
613         * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
614         type.
615
616 2014-12-02  Doug Evans  <dje@google.com>
617
618         * symtab.c (symbol_init_cplus_specific): Delete.
619         (symbol_set_demangled_name): Remove special c++ support.
620         (symbol_get_demangled_name, symbol_set_language): Ditto.
621         * symtab.h (struct cplus_specific): Delete.
622         (struct general_symbol_info) <language_specific>: Remove
623         cplus_specific.
624
625 2014-12-02  Doug Evans  <dje@google.com>
626
627         PR symtab/17602
628         * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
629
630 2014-12-02  Doug Evans  <dje@google.com>
631
632         PR symtab/17591
633         * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
634         to strip parameters.
635
636 2014-12-02  Doug Evans  <dje@google.com>
637
638         * dwarf2read.c (peek_die_abbrev): Improve error message text.
639
640 2014-12-02  Doug Evans  <dje@google.com>
641
642         * valops.c (do_search_struct_field): Remove remnant of Chill support.
643         Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
644
645 2014-12-02  Simon Marchi  <simon.marchi@ericsson.com>
646
647         * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
648
649 2014-12-02  Nick Bull  <nicholaspbull@gmail.com>
650
651         * NEWS: Mention new Python events.
652         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
653         (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
654         (py-infevents.o): New rule.
655         * doc/observer.texi (inferior_call_pre, inferior_call_post)
656         (memory_changed, register_changed): New observers.
657         * infcall.c (call_function_by_hand): Notify observer before and
658         after inferior call.
659         * python/py-event.h (inferior_call_kind): New enum.
660         (emit_inferior_call_event): New prototype.
661         (emit_register_changed_event): New prototype.
662         (emit_memory_changed_event): New prototype.
663         * python/py-events.h (events_object): New registries
664         inferior_call, memory_changed and register_changed.
665         * python/py-evts.c (gdbpy_initialize_py_events): Add the
666         inferior_call, memory_changed and register_changed registries.
667         * python/py-infevents.c: New.
668         * python/py-inferior.c (python_on_inferior_call_pre)
669         (python_on_inferior_call_post, python_on_register_change)
670         (python_on_memory_change): New functions.
671         (gdbpy_initialize_inferior): Attach python handler to new
672         observers.
673         * python/py-infthread.c(gdbpy_create_ptid_object): New.
674         (thpy_get_ptid) Use gdbpy_create_ptid_object.
675         * python/python-internal.h:
676         (gdbpy_create_ptid_object)
677         (gdbpy_initialize_inferior_call_pre_event)
678         (gdbpy_initialize_inferior_call_post_event)
679         (gdbpy_initialize_register_changed_event)
680         (gdbpy_initialize_memory_changed_event): New prototypes.
681         * python/python.c (_initialize_python): Initialize new events.
682         * valops.c (value_assign): Notify register_changed observer.
683
684 2014-12-02  Doug Evans  <dje@google.com>
685
686         * python/py-infthread.c: Whitespace fixes.
687
688 2014-12-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
689
690         * features/Makefile (s390-te-linux64-expedite): Replace
691         non-existant r14 and r15 by r14l and r15l, respectively.
692         * regformats/s390-te-linux64.dat: Regenerate.
693
694 2014-12-01  Simon Marchi  <simon.marchi@ericsson.com>
695
696         * objfiles.c (allocate_objfile): Remove duplicate comment.
697
698 2014-12-01  Ulrich Weigand  <uweigand@de.ibm.com>
699
700         * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
701         * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
702         (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
703         (supply_gregset, supply_fpregset): Remove.
704         * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
705         (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
706         and sizeof_gregset.
707
708 2014-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
709
710         Add add-auto-load-scripts-directory.
711         * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
712         * auto-load.c (add_auto_load_dir): New function.
713         (_initialize_auto_load): Install it.
714
715 2014-11-30  Martin Galvan  <martin.galvan@tallertechnologies.com>  (tiny patch, obvious)
716
717         Pushed by Joel Brobecker  <brobecker@adacore.com>.
718         * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
719
720 2014-11-29  Siva Chandra Reddy  <sivachandra@google.com>
721
722         * eval.c (evaluate_subexp): Check that the thread stack temporaries
723         are not already enabled before enabling them.
724
725 2014-11-29  Yao Qi  <yao@codesourcery.com>
726
727         * arm-tdep.c (arm_analyze_prologue): Move local variables
728         'framereg' and 'framesize' to inner block.  Move code to
729         inner block too.
730
731 2014-11-28  Siva Chandra Reddy  <sivachandra@google.com>
732
733         * eval.c: Include gdbthread.h.
734         (evaluate_subexp): Enable thread stack temporaries before
735         evaluating a complete expression and clean them up after the
736         evaluation is complete.
737         * gdbthread.h: Include common/vec.h.
738         (value_ptr): New typedef.
739         (VEC (value_ptr)): New vector type.
740         (value_vec): New typedef.
741         (struct thread_info): Add new fields stack_temporaries_enabled
742         and stack_temporaries.
743         (enable_thread_stack_temporaries)
744         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
745         (get_last_thread_stack_temporary)
746         (value_in_thread_stack_temporaries): Declare.
747         * gdbtypes.c (class_or_union_p): New function.
748         * gdbtypes.h (class_or_union_p): Declare.
749         * infcall.c (call_function_by_hand): Store return values of class
750         type as temporaries on stack.
751         * thread.c (enable_thread_stack_temporaries): New function.
752         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
753         (get_last_thread_stack_temporary): Likewise.
754         (value_in_thread_stack_temporaries): Likewise.
755         * value.c (value_force_lval): New function.
756         * value.h (value_force_lval): Declare.
757
758 2014-11-28  Pierre Muller  <muller@sourceware.org>
759
760         Pushed by Joel Brobecker  <brobecker@adacore.com>.
761         * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
762         registers.
763
764 2014-11-28  Ulrich Weigand  <uweigand@de.ibm.com>
765
766         * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
767         * config/sparc/linux.mh (NATDEPFILES): Likewise.
768         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
769         * m68klinux-nat.c (fetch_core_registers): Remove.
770         (linux_elf_core_fns): Remove.
771         (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
772
773 2014-11-28  Joel Brobecker  <brobecker@adacore.com>
774
775         * utils.c (gdb_realpath): Rework comment about handling on
776         Windows.
777
778 2014-11-28  Yao Qi  <yao@codesourcery.com>
779
780         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
781         rename.
782         * gnulib/aclocal.m4: Re-generated.
783         * gnulib/config.in: Re-generated.
784         * gnulib/configure: Re-generated.
785         * gnulib/import/Makefile.am: Re-generated.
786         * gnulib/import/Makefile.in: Re-generated.
787         * gnulib/import/m4/gnulib-cache.m4: Re-generated.
788         * gnulib/import/m4/gnulib-comp.m4: Re-generated.
789         * import/basename-lgpl.c: New file.
790         * import/dirname-lgpl.c: New file.
791         * import/dirname.h: New file.
792         * import/m4/dirname.m4: New file.
793         * import/m4/malloc.m4: New file.
794         * import/m4/rename.m4: New file.
795         * import/m4/rmdir.m4: New file.
796         * import/m4/stdio_h.m4: New file.
797         * import/malloc.c: New file.
798         * import/rename.c: New file.
799         * import/rmdir.c: New file.
800         * import/same-inode.h: New file.
801         * import/stdio.c: New file.
802         * import/stdio.in.h: New file.
803         * import/stripslash.c: New file.
804
805 2014-11-28  Yao Qi  <yao@codesourcery.com>
806
807         * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
808         and realpath.
809         * config.in: Re-generated.
810         * configure: Re-generated.
811         * utils.c (gdb_realpath): Remove code calling realpath,
812         canonicalize_file_name and pathconf.
813         [!_WIN32]: Call canonicalize_file_name.
814
815 2014-11-28  Yao Qi  <yao@codesourcery.com>
816
817         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
818         canonicalize-lgpl.
819         * aclocal.m4: Re-generated.
820         * config.in: Re-generated.
821         * configure: Re-generated.
822         * import/Makefile.am: Re-generated.
823         * import/Makefile.in: Re-generated.
824         * import/m4/gnulib-cache.m4: Re-generated.
825         * import/m4/gnulib-comp.m4: Re-generated.
826         * import/canonicalize-lgpl.c: New file.
827         * import/extra/snippet/_Noreturn.h: New file.
828         * import/m4/canonicalize.m4: New file.
829         * import/m4/double-slash-root.m4: New file.
830         * import/m4/eealloc.m4: New file.
831         * import/m4/malloca.m4: New file.
832         * import/m4/nocrash.m4: New file.
833         * import/m4/stdlib_h.m4: New file.
834         * import/malloca.c: New file.
835         * import/malloca.h: New file.
836         * import/malloca.valgrind: New file.
837
838 2014-11-28  Yao Qi  <yao@codesourcery.com>
839
840         * configure.ac (AC_CHECK_FUNCS): Remove lstat.
841         * config.in, configure: Regenerate.
842         * symfile.c (find_separate_debug_file_by_debuglink): Remove
843         code checking HAVE_LSTAT is defined.
844
845 2014-11-28  Yao Qi  <yao@codesourcery.com>
846
847         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
848         lstat.
849         * gnulib/aclocal.m4: Re-generated.
850         * gnulib/config.in: Re-generated.
851         * gnulib/configure: Re-generated.
852         * gnulib/import/Makefile.am: Re-generated.
853         * gnulib/import/Makefile.in: Re-generated.
854         * gnulib/import/m4/gnulib-cache.m4: Re-generated.
855         * gnulib/import/m4/gnulib-comp.m4: Re-generated.
856         * gnulib/import/lstat.c: New file.
857         * gnulib/import/m4/lstat.m4: New file.
858
859 2014-11-28  Yao Qi  <yao@codesourcery.com>
860
861         * configure.ac (AC_CHECK_FUNCS): Remove readlink.
862         * config.in, configure: Re-generate.
863         * inf-child.c (inf_child_fileio_readlink): Don't check
864         HAVE_READLINK is defined.
865
866 2014-11-28  Yao Qi  <yao@codesourcery.com>
867
868         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
869         * gnulib/aclocal.m4: Re-generated.
870         * gnulib/config.in: Likewise.
871         * gnulib/configure: Likewise.
872         * gnulib/import/Makefile.am: Likewise.
873         * gnulib/import/Makefile.in: Likewise.
874         * gnulib/import/m4/gnulib-cache.m4: Likewise.
875         * gnulib/import/m4/gnulib-comp.m4: Likewise.
876         * gnulib/import/dosname.h: New file
877         * gnulib/import/m4/largefile.m4: New file.
878         * gnulib/import/m4/readlink.m4: New file.
879         * gnulib/import/m4/stat.m4: New file.
880         * gnulib/import/readlink.c: New file.
881         * gnulib/import/stat.c: New file.
882
883 2014-11-26  Mark Wielaard  <mjw@redhat.com>
884
885         * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
886         DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
887
888 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
889
890         * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
891         that there can be only one stack adjustment in the prologue
892         with tests to detect specific disallowed stack adjustments.
893
894 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
895
896         * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
897         adjustments.
898
899 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
900
901         * nios2-tdep.c (nios2_fetch_insn): Move up in file.  Disassemble
902         the instruction as well as reading it from memory.
903         (nios2_match_add): New.
904         (nios2_match_sub): New.
905         (nios2_match_addi): New.
906         (nios2_match_orhi): New.
907         (nios2_match_stw): New.
908         (nios2_match_ldw): New.
909         (nios2_match_rdctl): New.
910         (enum branch_condition): New.
911         (nios2_match_branch): New.
912         (nios2_match_jmpi): New.
913         (nios2_match_calli): New.
914         (nios2_match_jmpr): New.
915         (nios2_match_callr): New.
916         (nios2_match_break): New.
917         (nios2_match_trap): New.
918         (nios2_in_epilogue_p): Rewrite to use new functions.
919         (nios2_analyze_prologue): Likewise.
920         (nios2_skip_prologue): Delete unused local limit_pc.
921         (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
922         (nios2_get_next_pc): Rewrite to use new functions.
923
924 2014-11-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
925
926         * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
927
928 2014-11-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
929
930         Pushed by Joel Brobecker  <brobecker@adacore.com>
931         * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
932         elements pi_len by the size of the elements before calling
933         vm_deallocate.
934         (inf_validate_task_sc): Likewise, and properly deallocate the
935         noise array.
936
937 2014-11-23  Doug Evans  <xdje42@gmail.com>
938
939         * gdbtypes.c (print_args): Renamed from print_arg_types.  Print arg
940         number and name if present.  All callers updated.
941         (dump_fn_fieldlists): Fix indentation of args.
942
943 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
944
945         * MAINTAINERS (Write After Approval): Add myself.
946
947 2014-11-23  Joel Brobecker  <brobecker@adacore.com>
948
949         * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
950         to a bp_call_dummy breakpoint type.
951
952 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
953
954         * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
955         registering the signal handler.
956
957 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
958
959         * event-top.h (call_stdin_event_handler_again_p): Declare.
960         * event-top.c (call_stdin_event_handler_again_p): Define.
961         (stdin_event_handler): Use it.
962         * tui/tui-io.c (tui_getc): Prepare to call the stdin event
963         handler again if there is pending input following a
964         start sequence.
965
966 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
967
968         Pushed by Joel Brobecker  <brobecker@adacore.com>
969         * linux-fork.c (checkpoint_command): Print index of new
970         checkpoint in response message.
971
972 2014-11-23  Yao Qi  <yao@codesourcery.com>
973
974         * valprint.c (read_string): Move local variables 'found_nul',
975         'chunksize' and 'limit' to inner scope.  Update comments.
976
977 2014-11-22  Doug Evans  <xdje42@gmail.com>
978
979         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
980         function comment.
981         (search_symbols): Fix comments and whitespace.
982
983 2014-11-22  Doug Evans  <xdje42@gmail.com>
984
985         * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
986
987 2014-11-21  Doug Evans  <dje@google.com>
988
989         * psymtab.c (psymtab_search_name): Fix whitespace.
990
991 2014-11-21  Yao Qi  <yao@codesourcery.com>
992
993         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
994         errno.
995         * gnulib/import/Makefile.am: Re-generated.
996         * gnulib/import/Makefile.in: Likewise.
997         * gnulib/import/m4/gnulib-cache.m4: Likewise.
998
999 2014-11-21  Yao Qi  <yao@codesourcery.com>
1000
1001         * gdb_wchar.h: Include wchar.h and wctype.h.
1002         [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
1003         include wchar.h and wctype.h.
1004         Don't check HAVE_WCHAR_H.
1005
1006 2014-11-21  Yao Qi  <yao@codesourcery.com>
1007
1008         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
1009         and wctype-h.
1010         * gnulib/import/Makefile.am: Re-generated.
1011         * gnulib/import/Makefile.in: Likewise.
1012         * gnulib/import/m4/gnulib-cache.m4: Likewise.
1013
1014 2014-11-21  Yao Qi  <yao@codesourcery.com>
1015
1016         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1017         memchr.
1018         * gnulib/import/Makefile.am: Re-generated.
1019         * gnulib/import/Makefile.in: Likewise.
1020         * gnulib/import/m4/gnulib-cache.m4: Likewise.
1021
1022 2014-11-21  Yao Qi  <yao@codesourcery.com>
1023
1024         * common/common-defs.h: Include alloca.h
1025         * configure.ac: Don't invoke AC_FUNC_ALLOCA.
1026         * configure: Re-generated.
1027         * defs.h: Remove code handling alloca.
1028         * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
1029         or not.
1030
1031 2014-11-21  Yao Qi  <yao@codesourcery.com>
1032
1033         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
1034         alloca.
1035         * gnulib/import/Makefile.am: Re-generated.
1036         * gnulib/import/Makefile.in: Likewise..
1037         * gnulib/import/m4/gnulib-cache.m4: Likewise.
1038
1039 2014-11-21  Yao Qi  <yao@codesourcery.com>
1040
1041         * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
1042         alphabetical order.
1043
1044 2014-11-21  Joel Brobecker  <brobecker@adacore.com>
1045
1046         * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
1047         flag_unsigned if HIGH_BOUND is constant and negative.
1048
1049 2014-11-20  Sergio Durigan Junior  <sergiodj@redhat.com>
1050
1051         PR breakpoints/10737
1052         * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
1053         modifier from "struct gdbarch" when compiling without Expat (XML)
1054         support.
1055         (get_syscall_by_number): Likewise.
1056         (get_syscall_by_name): Likewise.
1057         (get_syscall_names): Likewise.
1058
1059 2014-11-20  Sergio Durigan Junior  <sergiodj@redhat.com>
1060
1061         PR breakpoints/10737
1062         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
1063         set_xml_syscall_file_name to provide gdbarch.
1064         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1065         * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
1066         * breakpoint.c (print_it_catch_syscall): Adjust call to
1067         get_syscall_by_number to provide gdbarch.
1068         (print_one_catch_syscall): Likewise.
1069         (print_mention_catch_syscall): Likewise.
1070         (print_recreate_catch_syscall): Likewise.
1071         (catch_syscall_split_args): Adjust calls to get_syscall_by_number
1072         and get_syscall_by_name to provide gdbarch.
1073         (catch_syscall_completer): Adjust call to get_syscall_names to
1074         provide gdbarch.
1075         * gdbarch.c: Regenerate.
1076         * gdbarch.h: Likewise.
1077         * gdbarch.sh: Forward declare "struct syscalls_info".
1078         (xml_syscall_file): New variable.
1079         (syscalls_info): Likewise.
1080         * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
1081         set_xml_syscall_file_name to provide gdbarch.
1082         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1083         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1084         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1085         * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1086         * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
1087         * xml-syscall.c: Include gdbarch.h.
1088         (set_xml_syscall_file_name): Accept gdbarch parameter.
1089         (get_syscall_by_number): Likewise.
1090         (get_syscall_by_name): Likewise.
1091         (get_syscall_names): Likewise.
1092         (my_gdb_datadir): Delete global variable.
1093         (struct syscalls_info) <my_gdb_datadir>: New variable.
1094         (struct syscalls_info) <sysinfo>: Rename variable to
1095         "syscalls_info".
1096         (sysinfo): Delete global variable.
1097         (have_initialized_sysinfo): Likewise.
1098         (xml_syscall_file): Likewise.
1099         (sysinfo_free_syscalls_desc): Rename to...
1100         (syscalls_info_free_syscalls_desc): ... this.
1101         (free_syscalls_info): Rename "sysinfo" to "syscalls_info".  Adjust
1102         code to the new layout of "struct syscalls_info".
1103         (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
1104         "syscalls_info".
1105         (syscall_create_syscall_desc): Likewise.
1106         (syscall_start_syscall): Likewise.
1107         (syscall_parse_xml): Likewise.
1108         (xml_init_syscalls_info): Likewise.  Drop "const" from return value.
1109         (init_sysinfo): Rename to...
1110         (init_syscalls_info): ...this.  Add gdbarch as a parameter.
1111         Adjust function to deal with gdbarch.
1112         (xml_get_syscall_number): Delete parameter sysinfo.  Accept
1113         gdbarch as a parameter.  Adjust code.
1114         (xml_get_syscall_name): Likewise.
1115         (xml_list_of_syscalls): Likewise.
1116         (set_xml_syscall_file_name): Accept gdbarch as parameter.
1117         (get_syscall_by_number): Likewise.
1118         (get_syscall_by_name): Likewise.
1119         (get_syscall_names): Likewise.
1120         * xml-syscall.h (set_xml_syscall_file_name): Likewise.
1121         (get_syscall_by_number): Likewise.
1122         (get_syscall_by_name): Likewise.
1123         (get_syscall_names): Likewise.
1124
1125 2014-11-20  Doug Evans  <xdje42@gmail.com>
1126
1127         Split struct symtab into two: struct symtab and compunit_symtab.
1128         * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
1129         * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
1130         to "struct compunit_symtab *".  All callers updated.
1131         (set_block_compunit_symtab): Renamed from set_block_symtab.  Change
1132         "struct symtab *" argument to "struct compunit_symtab *".
1133         All callers updated.
1134         (get_block_compunit_symtab): Renamed from get_block_symtab.  Change
1135         result to "struct compunit_symtab *".  All callers updated.
1136         (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
1137         Change result to "struct compunit_symtab *".  All callers updated.
1138         * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
1139         hange type to "struct compunit_symtab *".  All uses updated.
1140         (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
1141         Change type to "struct compunit_symtab *".  All uses updated.
1142         * buildsym.c (struct buildsym_compunit): New struct.
1143         (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
1144         (buildsym_compunit): New static global.
1145         (finish_block_internal): Update to fetch objfile from
1146         buildsym_compunit.
1147         (make_blockvector): Delete objfile argument.
1148         (start_subfile): Rewrite to use buildsym_compunit.  Don't initialize
1149         debugformat, producer.
1150         (start_buildsym_compunit): New function.
1151         (free_buildsym_compunit): Renamed from free_subfiles_list.
1152         All callers updated.
1153         (patch_subfile_names): Rewrite to use buildsym_compunit.
1154         (get_compunit_symtab): New function.
1155         (get_macro_table): Delete argument comp_dir.  All callers updated.
1156         (start_symtab): Change result to "struct compunit_symtab *".
1157         All callers updated.  Create the subfile of the main source file.
1158         (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1159         (reset_symtab_globals): Update.
1160         (end_symtab_get_static_block): Update to use buildsym_compunit.
1161         (end_symtab_without_blockvector): Rewrite.
1162         (end_symtab_with_blockvector): Change result to
1163         "struct compunit_symtab *".  All callers updated.
1164         Update to use buildsym_compunit.  Don't set symtab->dirname,
1165         instead set it in the compunit.
1166         Explicitly make sure main symtab is first in its list.
1167         Set debugformat, producer, blockvector, block_line_section, and
1168         macrotable in the compunit.
1169         (end_symtab_from_static_block): Change result to
1170         "struct compunit_symtab *".  All callers updated.
1171         (end_symtab, end_expandable_symtab): Ditto.
1172         (set_missing_symtab): Change symtab argument to
1173         "struct compunit_symtab *".  All callers updated.
1174         (augment_type_symtab): Ditto.
1175         (record_debugformat): Update to use buildsym_compunit.
1176         (record_producer): Update to use buildsym_compunit.
1177         * buildsym.h (struct subfile) <dirname>: Delete.
1178         <producer, debugformat>: Delete.
1179         <buildsym_compunit>: New member.
1180         (get_compunit_symtab): Declare.
1181         * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1182         from primary_symtab.  Change type to "struct compunit_symtab *".
1183         All uses updated.
1184         (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1185         All callers updated.
1186         (dwarf_decode_macros): Delete comp_dir argument.  All callers updated.
1187         (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1188         symtab.  Change type to "struct compunit_symtab *".  All uses updated.
1189         (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1190         All callers updated.
1191         (dw2_find_last_source_symtab): Ditto.
1192         (dw2_lookup_symbol): Ditto.
1193         (recursively_find_pc_sect_compunit_symtab): Renamed from
1194         recursively_find_pc_sect_symtab.  Change result to
1195         "struct compunit_symtab *".  All callers updated.
1196         (dw2_find_pc_sect_compunit_symtab): Renamed from
1197         dw2_find_pc_sect_symtab.  Change result to
1198         "struct compunit_symtab *".  All callers updated.
1199         (get_compunit_symtab): Renamed from get_symtab.  Change result to
1200         "struct compunit_symtab *".  All callers updated.
1201         (recursively_compute_inclusions): Change type of immediate_parent
1202         argument to "struct compunit_symtab *".  All callers updated.
1203         (compute_compunit_symtab_includes): Renamed from
1204         compute_symtab_includes.  All callers updated.  Rewrite to compute
1205         includes of compunit_symtabs and not symtabs.
1206         (process_full_comp_unit): Update to work with struct compunit_symtab.
1207         (process_full_type_unit): Ditto.
1208         (dwarf_decode_lines_1): Delete argument comp_dir.  All callers updated.
1209         (dwarf_decode_lines): Remove special case handling of main subfile.
1210         (macro_start_file): Delete argument comp_dir.  All callers updated.
1211         (dwarf_decode_macro_bytes): Ditto.
1212         * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1213         use struct compunit_symtab.
1214         * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1215         * jit.c (finalize_symtab): Build compunit_symtab.
1216         * jv-lang.c (get_java_class_symtab): Change result to
1217         "struct compunit_symtab *".  All callers updated.
1218         * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1219         * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1220         comp_dir.  Change type to "struct compunit_symtab *".
1221         All uses updated.
1222         (new_macro_table): Change comp_dir argument to cust,
1223         "struct compunit_symtab *".  All callers updated.
1224         * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1225         nr_primary_symtabs.  All uses updated.
1226         (count_symtabs_and_blocks): Update to handle compunits.
1227         (report_command_stats): Update output, "primary symtabs" renamed to
1228         "compunits".
1229         * mdebugread.c (new_symtab): Change result to
1230         "struct compunit_symtab *".  All callers updated.
1231         (parse_procedure): Change type of search_symtab argument to
1232         "struct compunit_symtab *".  All callers updated.
1233         * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1234         separate loop.
1235         * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1236         symtabs.  Change type to "struct compunit_symtab *".  All uses updated.
1237         (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1238         All uses updated.
1239         (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1240         All uses updated.
1241         (ALL_FILETABS): Renamed from ALL_SYMTABS.  All uses updated.
1242         (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS.  All uses updated.
1243         * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1244         symtab.  Change type to "struct compunit_symtab *".  All uses updated.
1245         * psymtab.c (psymtab_to_symtab): Change result type to
1246         "struct compunit_symtab *".  All callers updated.
1247         (find_pc_sect_compunit_symtab_from_partial): Renamed from
1248         find_pc_sect_symtab_from_partial.  Change result type to
1249         "struct compunit_symtab *".  All callers updated.
1250         (lookup_symbol_aux_psymtabs): Change result type to
1251         "struct compunit_symtab *".  All callers updated.
1252         (find_last_source_symtab_from_partial): Ditto.
1253         * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1254         * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1255         and macro_table from compunit.
1256         * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1257         type to "struct compunit_symtab *".  All callers updated.
1258         (debug_qf_lookup_symbol): Ditto.
1259         (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1260         debug_qf_find_pc_sect_symtab, change result type to
1261         "struct compunit_symtab *".  All callers updated.
1262         * symfile.c (allocate_symtab): Delete objfile argument.
1263         New argument cust.
1264         (allocate_compunit_symtab): New function.
1265         (add_compunit_symtab_to_objfile): New function.
1266         * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1267         Change result type to "struct compunit_symtab *".  All uses updated.
1268         <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1269         Change result type to "struct compunit_symtab *".  All uses updated.
1270         * symmisc.c (print_objfile_statistics): Compute blockvector count in
1271         separate loop.
1272         (dump_symtab_1): Update test for primary source symtab.
1273         (maintenance_info_symtabs): Update to handle compunit symtabs.
1274         (maintenance_check_symtabs): Ditto.
1275         * symtab.c (set_primary_symtab): Delete.
1276         (compunit_primary_filetab): New function.
1277         (compunit_language): New function.
1278         (iterate_over_some_symtabs): Change type of arguments "first",
1279         "after_last" to "struct compunit_symtab *".  All callers updated.
1280         Update to loop over symtabs in each compunit.
1281         (error_in_psymtab_expansion): Rename symtab argument to cust,
1282         and change type to "struct compunit_symtab *".  All callers updated.
1283         (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1284         Change result type to "struct compunit_symtab *".  All callers updated.
1285         (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1286         Change result type to "struct compunit_symtab *".  All callers updated.
1287         (find_pc_sect_line): Only loop over symtabs within selected compunit
1288         instead of all symtabs in the objfile.
1289         * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1290         <compunit_symtab> New member.
1291         <block_line_section>: Moved to compunit_symtab.
1292         <locations_valid>: Ditto.
1293         <epilogue_unwind_valid>: Ditto.
1294         <macro_table>: Ditto.
1295         <dirname>: Ditto.
1296         <debugformat>: Ditto.
1297         <producer>: Ditto.
1298         <objfile>: Ditto.
1299         <call_site_htab>: Ditto.
1300         <includes>: Ditto.
1301         <user>: Ditto.
1302         <primary>: Delete
1303         (SYMTAB_COMPUNIT): New macro.
1304         (SYMTAB_BLOCKVECTOR): Update definition.
1305         (SYMTAB_OBJFILE): Update definition.
1306         (SYMTAB_DIRNAME): Update definition.
1307         (struct compunit_symtab): New type.  Common members among all source
1308         symtabs within a compilation unit moved here.  All uses updated.
1309         (COMPUNIT_OBJFILE): New macro.
1310         (COMPUNIT_FILETABS): New macro.
1311         (COMPUNIT_DEBUGFORMAT): New macro.
1312         (COMPUNIT_PRODUCER): New macro.
1313         (COMPUNIT_DIRNAME): New macro.
1314         (COMPUNIT_BLOCKVECTOR): New macro.
1315         (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1316         (COMPUNIT_LOCATIONS_VALID): New macro.
1317         (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1318         (COMPUNIT_CALL_SITE_HTAB): New macro.
1319         (COMPUNIT_MACRO_TABLE): New macro.
1320         (ALL_COMPUNIT_FILETABS): New macro.
1321         (compunit_symtab_ptr): New typedef.
1322         (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1323
1324 2014-11-20  Joel Brobecker  <brobecker@adacore.com>
1325
1326         * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1327         if the TYPE_CODE of range_type's base type does not match
1328         the TYPE_CODE of encoding_type's base type.
1329
1330 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
1331
1332         * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1333         it starts with '<'.
1334
1335 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
1336
1337         * ada-lang.c (ada_is_redundant_range_encoding): New function.
1338         (ada_is_redundant_index_type_desc): New function.
1339         (to_fixed_array_type): Ignore parallel XA type if redundant.
1340
1341 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
1342
1343         * ada-lang.c (constrained_packed_array_type): Set the length
1344         of the return array as if both bounds where zero if that
1345         returned array's index type is dynamic.
1346
1347 2014-11-19  Yao Qi  <yao@codesourcery.com>
1348
1349         * config/i386/go32.mh (CC): Remove.
1350
1351 2014-11-18  Doug Evans  <xdje42@gmail.com>
1352
1353         * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR.  All uses
1354         updated.
1355
1356 2014-11-18  Doug Evans  <xdje42@gmail.com>
1357
1358         * buildsym.c (buildsym_objfile): New static global.
1359         (buildsym_comp_dir): New static global.
1360         (finish_block_internal): Delete arg objfile.  All callers updated.
1361         (finish_block): Delete arg objfile.  All callers updated.
1362         (start_subfile): Delete arg dirname.  All callers updated.
1363         (patch_subfile_names): Update buildsym_comp_dir.
1364         (get_macro_table): Delete arg objfile.  All callers updated.
1365         (start_symtab): New arg objfile.  All callers updated.
1366         Rename arg dirname to comp_dir.
1367         (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1368         (end_symtab_get_static_block): Delete arg objfile.  All callers
1369         updated.
1370         (end_symtab_without_blockvector): Ditto.
1371         (end_symtab_with_blockvector): Ditto.
1372         (end_symtab_from_static_block): Ditto.
1373         (end_symtab): Ditto.
1374         (end_expandable_symtab): Ditto.
1375         (augment_type_symtab): Ditto.
1376         * coffread.c (coff_start_symtab): New arg objfile.  All callers
1377         updated.
1378
1379 2014-11-18  Doug Evans  <xdje42@gmail.com>
1380
1381         * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE.  All uses
1382         updated.
1383
1384 2014-11-18  Doug Evans  <xdje42@gmail.com>
1385
1386         * symtab.h (SYMTAB_DIRNAME): New macro.  All uses of member
1387         symtab.dirname updated to use it.
1388
1389 2014-11-18  Doug Evans  <xdje42@gmail.com>
1390
1391         * symtab.h (SYMTAB_OBJFILE): New macro.  All uses of member
1392         symtab.objfile updated to use it.
1393
1394 2014-11-18  Doug Evans  <xdje42@gmail.com>
1395
1396         * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1397
1398 2014-11-18  Doug Evans  <xdje42@gmail.com>
1399
1400         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1401         SYMBOL_OBJFILE.
1402         * findvar.c (default_read_var_value): Ditto.
1403         * jv-lang.c (add_class_symtab_symbol): Ditto.
1404         * parse.c (operator_check_standard): Ditto.
1405         * printcmd.c (address_info): Ditto.
1406         * symtab.c (fixup_symbol_section): Ditto.
1407         (skip_prologue_sal): Ditto.
1408         * tracepoint.c (scope_info): Ditto.
1409         * valops.c (find_function_in_inferior): Ditto.
1410         * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1411         * python/py-symbol.c (set_symbol): Ditto.
1412
1413 2014-11-18  Doug Evans  <xdje42@gmail.com>
1414
1415         * buildsym.c (main_subfile): New static global.
1416         (free_subfiles_list): New function.
1417         (start_symtab): Set main_subfile.
1418         (restart_symtab): Replace init of subfiles, current_subfile with
1419         call to free_subfiles_list.
1420         (watch_main_source_file_lossage): Use main_subfile.
1421         (reset_symtab_globals): Replace init of current_subfile with call
1422         to free_subfiles_list.
1423         (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1424         functions, split out from ...
1425         (end_symtab_from_static_block): ... here.  Rewrite to call them.
1426
1427 2014-11-18  Doug Evans  <xdje42@gmail.com>
1428
1429         The result of symtab expansion is always a primary symtab.
1430         * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1431         (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1432         * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1433         (psymtab_to_symtab): Add comment and assert.
1434         (map_matching_symbols_psymtab): Remove unnecessary test for
1435         non-primary symtab.
1436
1437 2014-11-15  Doug Evans  <xdje42@gmail.com>
1438
1439         PR symtab/17559
1440         * symtab.c (find_pc_line_symtab): New function.
1441         * symtab.h (find_pc_line_symtab): Declare.
1442         * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1443         find_pc_symtab.
1444         * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1445         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1446         * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1447         * tui/tui-win.c (make_visible_with_new_height): Ditto.
1448         * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1449         (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1450
1451 2014-11-15  Doug Evans  <xdje42@gmail.com>
1452
1453         * symtab.c (expand_symtab_containing_pc): Renamed from
1454         find_pc_sect_symtab_via_partial.  All callers updated.
1455
1456 2014-11-15  Yao Qi  <yao@codesourcery.com>
1457
1458         * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1459
1460 2014-11-14  Joel Brobecker  <brobecker@adacore.com>
1461
1462         * common/common-defs.h: Move <stdarg.h> #include ahead of
1463         <stdio.h> #include.
1464
1465 2014-11-14  Pedro Alves  <palves@redhat.com>
1466
1467         * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1468         [!PHONY_ICONV] (gdb_iconv): New function.
1469         [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1470
1471 2014-11-13  Doug Evans  <dje@google.com>
1472
1473         PR symtab/17591
1474         * dwarf2read.c (find_slot_in_mapped_hash): Handle
1475         "(anonymous namespace)".
1476
1477 2014-11-13  Doug Evans  <dje@google.com>
1478
1479         * dwarf2read.c (update_enumeration_type_from_children): Avoid
1480         infinite loop.
1481
1482 2014-11-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1483
1484         * NEWS (maint set target-async): Fix typo.
1485
1486 2014-11-12  Pedro Alves  <palves@redhat.com>
1487
1488         * infrun.c (enum infwait_states, infwait_state): Delete.
1489
1490 2014-11-12  Pedro Alves  <palves@redhat.com>
1491
1492         * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1493         Rewrite stepping over a permanent breakpoint.
1494         (thread_still_needs_step_over, proceed): Don't set
1495         stepping_over_breakpoint for permanent breakpoints.
1496         (handle_signal_stop): Don't clear stepped_breakpoint.  Also pull
1497         single-step breakpoints out of the target on hardware step
1498         targets.
1499         (process_event_stop_test): If stepping a permanent breakpoint
1500         doesn't hit the step-resume breakpoint, delete the step-resume
1501         breakpoint.
1502         (switch_back_to_stepped_thread): Also check if the stepped thread
1503         has advanced already on hardware step targets.
1504         (currently_stepping): Return true if the thread stepped a
1505         breakpoint.
1506
1507 2014-11-12  Pedro Alves  <palves@redhat.com>
1508
1509         Mark locations as permanent, not the whole breakpoint.
1510         * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1511         (mark_breakpoints_out): Don't mark permanent breakpoints as
1512         uninserted.
1513         (breakpoint_init_inferior): Use mark_breakpoints_out.
1514         (breakpoint_here_p): Adjust.
1515         (bpstat_stop_status, describe_other_breakpoints): Remove handling
1516         of permanent breakpoints.
1517         (make_breakpoint_permanent): Mark each location as permanent,
1518         instead of marking the breakpoint.
1519         (add_location_to_breakpoint): If the location is permanent, mark
1520         it as such, and as inserted.
1521         (init_breakpoint_sal): Don't make the breakpoint permanent here.
1522         (bp_location_compare, update_global_location_list): Adjust.
1523         (update_breakpoint_locations): Don't make the breakpoint permanent
1524         here.
1525         (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1526         breakpoints.
1527         * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1528         (struct bp_location) <permanent>: New field.
1529         * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1530         reference to bp_permanent.
1531
1532 2014-11-12  Pedro Alves  <palves@redhat.com>
1533
1534         * arch-utils.c (default_skip_permanent_breakpoint): New function.
1535         * arch-utils.h (default_skip_permanent_breakpoint): New
1536         declaration.
1537         * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1538         Install default_skip_permanent_breakpoint as default method.
1539         * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1540         (i386_gdbarch_init): Don't install it.
1541         * infrun.c (resume): Assume there's always a
1542         gdbarch_skip_permanent_breakpoint implementation.
1543         * gdbarch.h, gdbarch.c: Regenerate.
1544
1545 2014-11-11  Daniel Colascione  <dancol@dancol.org>
1546
1547         Warn about cross-PID-namespace debugging.
1548         * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1549         * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1550         * linux-thread-db.c (check_pid_namespace_match): New function.
1551         (thread_db_inferior_created): Call it.
1552
1553 2014-11-10  Doug Evans  <xdje42@gmail.com>
1554
1555         * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1556         (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1557
1558 2014-11-10  Doug Evans  <xdje42@gmail.com>
1559
1560         * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1561
1562 2014-11-10  Doug Evans  <xdje42@gmail.com>
1563
1564         PR symtab/17564
1565         * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1566         (lookup_static_symbol): Move definition to new location and rewrite.
1567         (lookup_symbol_in_objfile): New function.
1568         (lookup_symbol_global_iterator_cb): Call it.
1569
1570 2014-11-10  Ulrich Weigand  <uweigand@de.ibm.com>
1571
1572         * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1573
1574 2014-11-07  Pedro Alves  <palves@redhat.com>
1575
1576         * infrun.c (process_event_stop_test) <subroutine check>: Don't
1577         check if we did a "nexti" inside a prologue.
1578         * symtab.c (in_prologue): Delete function.
1579         * symtab.h (in_prologue): Delete declaration.
1580
1581 2014-11-06  Doug Evans  <xdje42@gmail.com>
1582
1583         * symtab.h (lookup_global_symbol): Improve function comment.
1584
1585 2014-11-06  Doug Evans  <xdje42@gmail.com>
1586
1587         * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1588         All callers updated.
1589         * symtab.h (lookup_global_symbol): Update decl.
1590         (lookup_static_symbol): Move decl to better location.
1591
1592 2014-11-06  Doug Evans  <xdje42@gmail.com>
1593
1594         * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1595
1596 2014-11-06  Doug Evans  <xdje42@gmail.com>
1597
1598         * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1599         All callers updated.
1600         (lookup_symbol_in_all_objfiles): Renamed from
1601         lookup_symbol_aux_symtabs.  All callers updated.
1602         (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1603         All callers updated.
1604         (lookup_symbol_in_objfile_symtabs): Renamed from
1605         lookup_symbol_aux_objfile.  All callers updated.
1606
1607 2014-11-06  Doug Evans  <xdje42@gmail.com>
1608
1609         * symtab.c (lookup_symbol_in_block): Renamed from
1610         lookup_symbol_aux_block.  All callers updated.
1611
1612 2014-11-06  Doug Evans  <xdje42@gmail.com>
1613
1614         * symtab.c (lookup_static_symbol): Renamed from
1615         lookup_static_symbol_aux.  All callers updated.
1616         (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1617         All callers updated.
1618
1619 2014-11-06  Doug Evans  <xdje42@gmail.com>
1620
1621         * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1622         * block.c (block_lookup_symbol): Use it.
1623         * cp-support.c (make_symbol_overload_list_block): Use it.
1624         * symtab.c (iterate_over_symbols): Use it.
1625
1626 2014-11-06  Doug Evans  <xdje42@gmail.com>
1627
1628         * symtab.c (lookup_block_symbol): Moved to ...
1629         * block.c (block_lookup_symbol):  ... here and renamed.
1630         All callers updated.
1631         * block.h (block_lookup_symbol): Declare.
1632         * symtab.h (lookup_block_symbol): Delete.
1633
1634 2014-11-06  Doug Evans  <xdje42@gmail.com>
1635
1636         * ada-lang.c (ada_make_symbol_completion_list): Use
1637         ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1638         * symtab.c (lookup_objfile_from_block): Ditto.
1639
1640 2014-11-06  Doug Evans  <xdje42@gmail.com>
1641
1642         * gdbtypes.h (TYPE_CODE_CLASS): Delete.  All uses changed to use
1643         TYPE_CODE_STRUCT.
1644
1645 2014-11-06  Doug Evans  <xdje42@gmail.com>
1646
1647         * objfiles.c (get_objfile_arch): Constify.
1648         * objfiles.h (get_objfile_arch): Update prototype.
1649         * solib.c (solib_global_lookup): Fetch arch from objfile,
1650         not target_gdbarch.
1651
1652 2014-11-06  Sandra Loosemore  <sandra@codesourcery.com>
1653
1654         * nios2-tdep.c (wild_insn): Delete.
1655         (profiler_insn, irqentry_insn): Delete.
1656         (nios2_match_sequence): Delete.
1657         (nios2_analyze_prologue): Update comments.  Remove matching
1658         of obsolete profiler_insn and irqentry_insn sequences.
1659
1660 2014-11-05  Alan Modra  <amodra@gmail.com>
1661
1662         * charset.c (convert_between_encodings): Shrink obstack using
1663         obstack_blank_fast.
1664         * minsyms.c (install_minimal_symbols): Likewise.
1665         * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1666         to char* before doing pointer arithmetic.
1667
1668 2014-11-04  Simon Marchi  <simon.marchi@ericsson.com>
1669
1670         * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1671
1672 2014-11-04  Pedro Alves  <palves@redhat.com>
1673
1674         * breakpoint.c (breakpoint_thread_match): Delete function.
1675         * breakpoint.h (breakpoint_thread_match): Delete declaration.
1676
1677 2014-11-03  Siva Chandra Reddy  <sivachandra@google.com>
1678
1679         PR c++/17494
1680         * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1681         the method args also under EVAL_SKIP when evaluating method
1682         calls under EVAL_SKIP.
1683
1684 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
1685
1686         * dwarf2loc.c (read_pieced_value): Do big endian
1687         processing only if gdb_regnum is not -1.
1688         (write_pieced_value): Ditto.
1689
1690 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
1691
1692         * arm-linux-tdep.c (arm_linux_init_abi): Use
1693         info.byte_order_for_code to choose endianity of breakpoint
1694         instructions snippets.
1695
1696 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
1697
1698         * arm-tdep.c (extract_arm_insn): Use
1699         gdbarch_byte_order_for_code to read arm instruction.
1700
1701 2014-11-02  Doug Evans  <xdje42@gmail.com>
1702
1703         * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1704
1705 2014-11-02  Doug Evans  <xdje42@gmail.com>
1706
1707         * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1708         main_subfile before returning.
1709
1710 2014-10-31  Doug Evans  <xdje42@gmail.com>
1711
1712         * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1713         (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1714
1715 2014-10-31  Doug Evans  <xdje42@gmail.com>
1716
1717         * valops.c (value_cast_pointers): Fix whitespace.
1718         (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1719         Ditto.
1720
1721 2014-10-30  Doug Evans  <dje@google.com>
1722
1723         * NEWS: Mention ability add attributes to gdb.Objfile and
1724         gdb.Progspace objects.
1725         * python/py-objfile.c (objfile_object): New member dict.
1726         (objfpy_dealloc): Py_XDECREF dict.
1727         (objfpy_initialize): Initialize dict.
1728         (objfile_getset): Add __dict__.
1729         (objfile_object_type): Set tp_dictoffset member.
1730         * python/py-progspace.c (progspace_object): New member dict.
1731         (pspy_dealloc): Py_XDECREF dict.
1732         (pspy_initialize): Initialize dict.
1733         (pspace_getset): Add __dict__.
1734         (pspace_object_type): Set tp_dictoffset member.
1735
1736 2014-10-30  Yao Qi  <yao@codesourcery.com>
1737
1738         * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1739         replace '\\' with '\\\\'.
1740
1741 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
1742
1743         GDB 7.8.1 released.
1744
1745 2014-10-29  Pedro Alves  <palves@redhat.com>
1746
1747         PR gdb/17408
1748         * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1749         instead of assuming a thread with a stepping range is always
1750         stepping.
1751
1752 2014-10-29  Pedro Alves  <palves@redhat.com>
1753
1754         PR python/17372
1755         * event-top.c (change_line_handler): Call
1756         gdb_rl_callback_handler_remove instead of
1757         rl_callback_handler_remove.
1758         (callback_handler_installed): New global.
1759         (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1760         (gdb_rl_callback_handler_reinstall): New functions.
1761         (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1762         gdb_rl_callback_handler_install instead of
1763         rl_callback_handler_remove and rl_callback_handler_install.
1764         (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1765         instead of rl_callback_handler_remove.
1766         * event-top.h (gdb_rl_callback_handler_remove)
1767         (gdb_rl_callback_handler_install)
1768         (gdb_rl_callback_handler_reinstall): New declarations.
1769         * infrun.c (reinstall_readline_callback_handler_cleanup): New
1770         cleanup function.
1771         (fetch_inferior_event): Install it.
1772         * top.c (gdb_readline_wrapper_line) Call
1773         gdb_rl_callback_handler_remove instead of
1774         rl_callback_handler_remove.
1775         (gdb_readline_wrapper_cleanup): Don't call
1776         rl_callback_handler_install.
1777
1778 2014-10-29  Pedro Alves  <palves@redhat.com>
1779
1780         * event-top.c (command_line_handler): Clear the first byte of
1781         linebuffer, when it is first allocated.
1782
1783 2014-10-29  Pedro Alves  <palves@redhat.com>
1784
1785         * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1786         TRY_CATCH.
1787
1788 2014-10-29  Pedro Alves  <palves@redhat.com>
1789
1790         PR tui/16138
1791         PR tui/17519
1792         * tui/tui-interp.c (tui_is_toplevel): Delete global.
1793         (tui_allowed_p): Delete function.
1794         * tui/tui.c: Include "interps.h".
1795         (tui_enable): Don't use tui_allowed_p.  Error out here with
1796         detailed error messages if the TUI is the top level interpreter,
1797         or if output is not a terminal.  Use newterm instead of initscr,
1798         and error out if initializing the terminal fails.  Also error out if
1799         the terminal doesn't support cursor addressing.
1800         * tui/tui.h (tui_allowed_p): Delete declaration.
1801
1802 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
1803
1804         * arm-tdep.c (arm_skip_stack_protector): Return early if
1805         address loaded by first "ldr" instruction does not have
1806         a corresponding minimal symbol.  Update comment.
1807
1808 2014-10-29  Yao Qi  <yao@codesourcery.com>
1809
1810         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1811         loaded address correctly of ldr instruction.
1812
1813 2014-10-28  Pedro Alves  <palves@redhat.com>
1814
1815         PR gdb/12623
1816         * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1817         field.
1818         * infrun.c (resume) <stepping breakpoint instruction>: Set the
1819         thread's stepped_breakpoint field.  Skip if reverse debugging.
1820         Add comment.
1821         (init_thread_stepping_state, handle_signal_stop): Clear the
1822         thread's stepped_breakpoint field.
1823
1824 2014-10-27  Pedro Alves  <palves@redhat.com>
1825
1826         * remote.c (remote_thread_alive): New, factored out from ...
1827         (remote_thread_alive): ... this.
1828         (remote_update_thread_list): Bail out before deleting threads if
1829         the target returned an empty list, and, the current thread has a
1830         magic/fake ptid.
1831
1832 2014-10-27  Pedro Alves  <palves@redhat.com>
1833
1834         * infrun.c (handle_signal_stop): Also skip handlers when a random
1835         signal arrives while handling a "stepi" or a "nexti".  Set the
1836         thread's 'step_after_step_resume_breakpoint' flag.
1837
1838 2014-10-27  Luis Machado  <lgustavo@codesourcery.com>
1839
1840         * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1841         (arm_record_ld_st_imm_offset): Reimplement to cover all
1842         load/store cases for ARM opcode 010.
1843         (arm_record_ld_st_multiple): Reimplement to cover all
1844         load/store cases for ARM opcode 100.
1845
1846 2014-10-26  Doug Evans  <xdje42@gmail.com>
1847
1848         * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1849
1850 2014-10-26  Doug Evans  <xdje42@gmail.com>
1851
1852         * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1853         parameter "kind" to "block_index".
1854         * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1855         "block_index".
1856         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1857
1858 2014-10-26  Doug Evans  <xdje42@gmail.com>
1859
1860         * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1861
1862 2014-10-26  Doug Evans  <xdje42@gmail.com>
1863
1864         * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1865         obstack_alloc.
1866
1867 2014-10-26  Doug Evans  <xdje42@gmail.com>
1868
1869         * parser-defs.h (block_found): Move decl from here ...
1870         * symtab.h (block_found): ... to here.
1871
1872 2014-10-26  Doug Evans  <xdje42@gmail.com>
1873
1874         * symtab.h (struct field_of_this_result): Fix typo in comment.
1875         (lookup_symbol_in_language): Move function comment here.
1876         (lookup_symbol): Improve function comment.
1877         (basic_lookup_symbol_nonlocal): Ditto.
1878         (lookup_symbol_static, lookup_symbol_global): Ditto.
1879         (lookup_symbol_aux_block): Ditto.
1880         (lookup_language_this): Add function comment.
1881         (lookup_static_symbol_aux): Explicitly mark as extern.  Improve
1882         function comment.
1883         (lookup_block_symbol): Improve function comment.
1884         (lookup_struct): Fix capitalization in function comment.
1885         (lookup_transparent_type): Add function comment.
1886         (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1887         Improve function comment.
1888         (lookup_objfile_from_block): Add function comment.
1889         * symtab.c (lookup_symbol_in_language): Update function comment.
1890         (lookup_symbol, lookup_language_this): Ditto.
1891         (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1892         (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1893         (basic_lookup_symbol_nonlocal): Ditto.
1894         (lookup_symbol_static, lookup_symbol_global): Ditto.
1895         (lookup_transparent_type, lookup_block_symbol): Ditto.
1896
1897 2014-10-25  Doug Evans  <xdje42@gmail.com>
1898
1899         * symtab.c (types_info): Delete forward decl.
1900         (functions_info, variables_info, sources_info): Ditto.
1901         (_initialize_symtab): Rewrite forward decl to use
1902         initialize_file_ftype.
1903
1904 2014-10-25  Doug Evans  <xdje42@gmail.com>
1905
1906         * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1907
1908 2014-10-25  Doug Evans  <xdje42@gmail.com>
1909
1910         * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1911         of local var child_die.
1912
1913 2014-10-24  Don Breazeal  <donb@codesourcery.com>
1914
1915         * infrun.c (follow_fork_inferior): Update fork message printing
1916         to use target_terminal_ours_for_output instead of
1917         target_terminal_ours, to use _() for all format strings, to print
1918         "vfork" instead of "fork" for vforks, and to add a detach message.
1919         (handle_vfork_child_exec_or_exit): Update message printing to use
1920         target_terminal_ours_for_output instead of target_terminal_ours, to
1921         use _() for all format strings, and to fix some formatting.
1922
1923 2014-10-24  Pedro Alves  <palves@redhat.com>
1924
1925         * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1926         * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1927         * config/vax/vax.mh: Delete.
1928         * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1929         obsolete configurations section.
1930         * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1931         * vax-nat.c: Delete file.
1932
1933 2014-10-24  Pedro Alves  <palves@redhat.com>
1934
1935         * NEWS (Removed targets): Add OS/arch column.
1936
1937 2014-10-24  Siva Chandra Reddy  <sivachandra@google.com>
1938
1939         * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1940         on the arg type of a constructor only if it is of reference type.
1941
1942 2014-10-23  Sandra Loosemore  <sandra@codesourcery.com>
1943
1944         * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1945         accessors and constants from nios2 opcodes update.
1946         (nios2_get_next_pc): Likewise.
1947
1948 2014-10-19  Doug Evans  <xdje42@gmail.com>
1949
1950         * gdbthread.h (set_running): Fix comment.
1951         (set_executing, finish_thread_state): Fix comment.
1952
1953 2014-10-18  Doug Evans  <xdje42@gmail.com>
1954
1955         * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1956
1957 2014-10-17  Doug Evans  <dje@google.com>
1958
1959         * NEWS: Mention new event gdb.clear_objfiles.
1960         * python/py-event.h (emit_clear_objfiles_event): Clear
1961         * python/py-events.h (events_object): New member clear_objfiles.
1962         * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1963         event.
1964         * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1965         emit clear_objfiles event.
1966         * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1967         function.
1968         (emit_clear_objfiles_event): New function.
1969         (clear_objfiles): New event.
1970         * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1971         Declare.
1972         * python/python.c (_initialize_python): Call
1973         gdbpy_initialize_clear_objfiles_event.
1974
1975 2014-10-17  Doug Evans  <dje@google.com>
1976
1977         * NEWS: Mention new gdb.Objfile.progspace attribute.
1978         * python/py-objfile.c (objfpy_get_progspace): New function.
1979         (objfile_getset): New entry for "progspace".
1980
1981 2014-10-17  Pedro Alves  <palves@redhat.com>
1982
1983         PR gdb/17471
1984         * infcmd.c (strip_bg_char): Change prototype and rewrite.  Now
1985         returns a copy of the input.
1986         (run_command_1, continue_command, step_1, jump_command)
1987         (signal_command, until_command, advance_command, finish_command)
1988         (attach_command): Adjust and install a cleanup to free the
1989         stripped args.
1990
1991 2014-10-17  Pedro Alves  <palves@redhat.com>
1992
1993         PR gdb/17300
1994         * infcmd.c (continue_1): If continuing all threads in the
1995         foreground, make sure the inferior's terminal settings are put in
1996         effect.
1997
1998 2014-10-17  Pedro Alves  <palves@redhat.com>
1999
2000         PR gdb/17472
2001         * annotate.c (annotate_breakpoints_invalid): Use
2002         target_terminal_our_for_output instead of target_terminal_ours.
2003         Give back the terminal to the target.
2004         (annotate_frames_invalid): Likewise.
2005
2006 2014-10-17  Pedro Alves  <palves@redhat.com>
2007
2008         * target.c (enum terminal_state): New enum.
2009         (terminal_state): New global.
2010         (target_terminal_init): New function.
2011         (target_terminal_inferior): Skip if inferior already owns the
2012         terminal.
2013         (target_terminal_ours, target_terminal_ours_for_output): New
2014         functions.
2015         * target.h (target_terminal_init): Convert to function prototype.
2016         (target_terminal_ours_for_output): Convert to function prototype
2017         and tweak comment.
2018         (target_terminal_ours): Convert to function prototype and tweak
2019         comment.
2020         * windows-nat.c (do_initial_windows_stuff): Call
2021         target_terminal_init instead of child_terminal_init_with_pgrp.
2022
2023 2014-10-17  Pedro Alves  <palves@redhat.com>
2024
2025         * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
2026         (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
2027         (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
2028         solib-osf.c.
2029         * NEWS: Mention that support for alpha*-*-osf* has been removed.
2030         * ada-lang.h [__alpha__ && __osf__]
2031         (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
2032         * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
2033         * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
2034         GDB_OSABI_OSF1.
2035         * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
2036         files.
2037         * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
2038         (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
2039         * configure: Regenerate.
2040         * configure.ac: Remove references to osf.
2041         * configure.host: Handle alpha*-*-osf* in the obsolete hosts
2042         section.  Remove all other references to osf.
2043         * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
2044         Remove all other references to osf.
2045         * dec-thread.c: Delete file.
2046         * defs.h (GDB_OSABI_OSF1): Delete.
2047         * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
2048         defined.
2049         * osabi.c (gdb_osabi_names): Delete "OSF/1".
2050         * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
2051         Delete code.
2052         (unconditionally_kill_inferior)
2053         [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
2054         * solib-osf.c: Delete file.
2055
2056 2014-10-17  Pedro Alves  <palves@redhat.com>
2057
2058         * remote.c (clear_threads_listing_context): Move higher up, out of
2059         the HAVE_LIBEXPAT guard.
2060
2061 2014-10-16  Tristan Gingold  <gingold@adacore.com>
2062
2063         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
2064         (i386_darwin_store_inferior_registers): Sanitize gs and fs values
2065         on amd64.
2066
2067 2014-10-15  Pedro Alves  <palves@redhat.com>
2068
2069         * dec-thread.c (dec_thread_count_gdb_threads)
2070         (dec_thread_add_gdb_thread): Delete.
2071         (dec_thread_update_thread_list): Delete.
2072         (dec_thread_find_new_threads): Rename to ...
2073         (dec_thread_update_thread_list): ... this.  Delete GDB-size
2074         threads that are no longer found in dec_thread_list.
2075         (resync_thread_list): Delete.
2076         (dec_thread_wait): Call dec_thread_update_thread_list instead of
2077         resync_thread_list.
2078
2079 2014-10-15  Pedro Alves  <palves@redhat.com>
2080
2081         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
2082         * remote.c (remote_update_thread_list): Skip calling prune_threads
2083         if any thread listing method is supported, and instead walk over
2084         the set of remote threads listed, deleting those that are not
2085         found in GDB's thread list.
2086
2087 2014-10-15  Pedro Alves  <palves@redhat.com>
2088
2089         * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
2090         * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
2091         (bsd_uthread_update_thread_list): ... this.  Call prune_threads.
2092         (bsd_uthread_target): Adjust.
2093         * corelow.c (core_open): Adjust.
2094         * dec-thread.c (dec_thread_find_new_threads): Update comment.
2095         (dec_thread_update_thread_list): New function.
2096         (init_dec_thread_ops): Adjust.
2097         * gdbthread.h (prune_threads): New declaration.
2098         * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
2099         (thread_db_update_thread_list): ... this.  Call prune_threads.
2100         (init_thread_db_ops): Adjust.
2101         * nto-procfs.c (procfs_find_new_threads): Rename to ...
2102         (procfs_update_thread_list): ... this.  Call prune_threads.
2103         (procfs_attach, procfs_create_inferior, init_procfs_targets):
2104         Adjust.
2105         * obsd-nat.c (obsd_find_new_threads): Rename to ...
2106         (obsd_update_thread_list): ... this.  Call prune_threads.
2107         (obsd_add_target): Adjust.
2108         * procfs.c (procfs_target): Adjust.
2109         (procfs_notice_thread): Update comment.
2110         (procfs_find_new_threads): Rename to ...
2111         (procfs_update_thread_list): ... this.  Call prune_threads.
2112         * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
2113         comment.
2114         (ravenscar_wait): Adjust.
2115         (ravenscar_find_new_threads): Rename to ...
2116         (ravenscar_update_thread_list): ... this.  Call prune_threads.
2117         (init_ravenscar_thread_ops): Adjust.
2118         * record-btrace.c (record_btrace_find_new_threads): Rename to ...
2119         (record_btrace_update_thread_list): ... this.  Adjust comment.
2120         (init_record_btrace_ops): Adjust.
2121         * remote.c (remote_threads_info): Rename to ...
2122         (remote_update_thread_list): ... this.  Call prune_threads.
2123         (remote_start_remote, extended_remote_attach_1, init_remote_ops):
2124         Adjust.
2125         * sol-thread.c (check_for_thread_db): Adjust.
2126         (sol_find_new_threads_callback): Rename to ...
2127         (sol_update_thread_list_callback): ... this.
2128         (sol_find_new_threads): Rename to ...
2129         (sol_update_thread_list): ... this.  Call prune_threads.  Adjust.
2130         (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
2131         * target-delegates.c: Regenerate.
2132         * target.c (target_find_new_threads): Rename to ...
2133         (target_update_thread_list): ... this.
2134         * target.h (struct target_ops): Rename to_find_new_threads field
2135         to to_update_thread_list.
2136         (target_find_new_threads): Rename to ...
2137         (target_update_thread_list): ... this.
2138         * thread.c (prune_threads): Make extern.
2139         (update_thread_list): Adjust.
2140
2141 2014-10-15  Pedro Alves  <palves@redhat.com>
2142
2143         * remote.c (remote_get_threadlist, remote_threadlist_iterator):
2144         Add describing comment.  Return -1 if the qL packet is not
2145         supported.
2146         (struct thread_item, thread_item_t): Move higher up in
2147         the file.  Add comments.
2148         (struct threads_parsing_context): Move higher up in
2149         the file, add comments, and remote to ...
2150         (struct threads_listing_context): ... this.
2151         (remote_newthread_step): Don't add the thread to GDB's thread
2152         database here.  Instead push it to the thread_listing_context
2153         list.
2154         (remote_find_new_threads): Rename to ...
2155         (remote_get_threads_with_ql): ... this.  Add target_ops and
2156         targets_listing_context parameters.  Pass down context.
2157         (start_thread): Adjust.
2158         (clear_threads_parsing_context): Rename to ...
2159         (clear_threads_listing_context): ... this.
2160         (remote_get_threads_with_qxfer): New, with parts salvaged from old
2161         remote_threads_info.
2162         (remote_get_threads_with_qthreadinfo): Ditto.
2163         (remote_threads_info): Reimplement.
2164
2165 2014-10-15  Pedro Alves  <palves@redhat.com>
2166
2167         * infrun.c (resume): Don't force displaced-stepping for all
2168         single-steps on software single-stepping archs.
2169
2170 2014-10-15  Pedro Alves  <palves@redhat.com>
2171
2172         * breakpoint.c (single_step_breakpoints): Delete global.
2173         (insert_single_step_breakpoint): Adjust to store the breakpoint
2174         pointer in the current thread.
2175         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2176         (cancel_single_step_breakpoints): Delete functions.
2177         (breakpoint_has_location_inserted_here): Make extern.
2178         (single_step_breakpoint_inserted_here_p): Adjust to walk the
2179         breakpoint list.
2180         * breakpoint.h (breakpoint_has_location_inserted_here): New
2181         declaration.
2182         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2183         (cancel_single_step_breakpoints): Remove declarations.
2184         * gdbthread.h (struct thread_control_state)
2185         <single_step_breakpoints>: New field.
2186         (delete_single_step_breakpoints)
2187         (thread_has_single_step_breakpoints_set)
2188         (thread_has_single_step_breakpoint_here): New declarations.
2189         * infrun.c (follow_exec): Also clear the single-step breakpoints.
2190         (singlestep_breakpoints_inserted_p, singlestep_ptid)
2191         (singlestep_pc): Delete globals.
2192         (infrun_thread_ptid_changed): Remove references to removed
2193         globals.
2194         (resume_cleanups): Delete the current thread's single-step
2195         breakpoints.
2196         (maybe_software_singlestep): Remove references to removed globals.
2197         (resume): Adjust to use thread_has_single_step_breakpoints_set and
2198         delete_single_step_breakpoints.
2199         (init_wait_for_inferior): Remove references to removed globals.
2200         (delete_thread_infrun_breakpoints): Delete the thread's
2201         single-step breakpoints too.
2202         (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2203         single-step breakpoints here.
2204         (delete_stopped_threads_single_step_breakpoints): New function.
2205         (adjust_pc_after_break): Adjust to use
2206         thread_has_single_step_breakpoints_set.
2207         (handle_inferior_event): Remove references to removed globals.
2208         Use delete_stopped_threads_single_step_breakpoints.
2209         (handle_signal_stop): Adjust to per-thread single-step
2210         breakpoints.  Swap test order to do cheaper tests first.
2211         (switch_back_to_stepped_thread): Extend debug output.  Remove
2212         references to removed globals.
2213         * record-full.c (record_full_wait_1): Adjust to per-thread
2214         single-step breakpoints.
2215         * thread.c (delete_single_step_breakpoints)
2216         (thread_has_single_step_breakpoints_set)
2217         (thread_has_single_step_breakpoint_here): New functions.
2218         (clear_thread_inferior_resources): Also delete the thread's
2219         single-step breakpoints.
2220
2221 2014-10-15  Pedro Alves  <palves@redhat.com>
2222
2223         * thread.c (delete_thread_breakpoint): New function.
2224         (delete_step_resume_breakpoint)
2225         (delete_exception_resume_breakpoint): Use it.
2226         (delete_at_next_stop): New function.
2227         (clear_thread_inferior_resources): Use delete_at_next_stop.
2228
2229 2014-10-15  Pedro Alves  <palves@redhat.com>
2230
2231         * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2232         (breakpoint_inserted_here_p): ... here.  Remove special case for
2233         software single-step breakpoints.
2234         (find_non_raw_software_breakpoint_inserted_here): Inline ...
2235         (software_breakpoint_inserted_here_p): ... here.  Remove special
2236         case for software single-step breakpoints.
2237         (bp_target_info_copy_insertion_state)
2238         (deprecated_insert_raw_breakpoint)
2239         (deprecated_remove_raw_breakpoint): Delete functions.
2240         * breakpoint.h (deprecated_insert_raw_breakpoint)
2241         (deprecated_remove_raw_breakpoint): Remove declarations.
2242
2243 2014-10-15  Pedro Alves  <palves@redhat.com>
2244
2245         PR breakpoints/9649
2246         * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2247         Delete array globals.
2248         (single_step_breakpoints): New global.
2249         (breakpoint_xfer_memory): Remove special handling for single-step
2250         breakpoints.
2251         (update_breakpoints_after_exec): Delete bp_single_step
2252         breakpoints.
2253         (detach_breakpoints): Remove special handling for single-step
2254         breakpoints.
2255         (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2256         (bpstat_stop_status): Add comment.
2257         (bpstat_what, bptype_string, print_one_breakpoint_location)
2258         (adjust_breakpoint_address, init_bp_location): Handle
2259         bp_single_step.
2260         (new_single_step_breakpoint): New function.
2261         (set_momentary_breakpoint, bkpt_remove_location): Remove special
2262         handling for single-step breakpoints.
2263         (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2264         (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2265         Rewrite.
2266         (detach_single_step_breakpoints, find_single_step_breakpoint):
2267         Delete functions.
2268         (breakpoint_has_location_inserted_here): New function.
2269         (single_step_breakpoint_inserted_here_p): Rewrite.
2270         * breakpoint.h: Remove FIXME.
2271         (enum bptype) <bp_single_step>: New enum value.
2272         (insert_single_step_breakpoint): Update comment.
2273         * infrun.c (resume_cleanups)
2274         (delete_step_thread_step_resume_breakpoint): Remove single-step
2275         breakpoints.
2276         (fetch_inferior_event): Install a cleanup that removes infrun
2277         breakpoints.
2278         (switch_back_to_stepped_thread) <expect thread advanced also>:
2279         Clear step-over info.
2280
2281 2014-10-15  Pedro Alves  <palves@redhat.com>
2282
2283         * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2284         (delete_thread_infrun_breakpoints): New function, with parts
2285         salvaged from delete_step_resume_breakpoint_callback.
2286         (delete_step_thread_step_resume_breakpoint): Delete.
2287         (for_each_just_stopped_thread_callback_func): New typedef.
2288         (for_each_just_stopped_thread): New function.
2289         (delete_just_stopped_threads_infrun_breakpoints): New function.
2290         (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2291         (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2292         ... this.  Adjust.
2293         (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2294
2295 2014-10-15  Pedro Alves  <palves@redhat.com>
2296
2297         * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2298         trying to step past a non-steppable watchpoint.
2299         * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2300         field.
2301         * infrun.c (struct step_over_info): Add new field
2302         'nonsteppable_watchpoint_p' and adjust comments.
2303         (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2304         Adjust.
2305         (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2306         (stepping_past_nonsteppable_watchpoint): New function.
2307         (step_over_info_valid_p): Also return true if stepping past a
2308         nonsteppable watchpoint.
2309         (proceed): Adjust call to set_step_over_info.  Remove reference to
2310         init_infwait_state.
2311         (init_wait_for_inferior): Remove reference to init_infwait_state.
2312         (waiton_ptid): Delete global.
2313         (struct execution_control_state)
2314         <stepped_after_stopped_by_watchpoint>: Delete field.
2315         (wait_for_inferior, fetch_inferior_event): Always pass
2316         minus_one_ptid to target_wait.
2317         (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2318         field.
2319         (init_infwait_state): Delete function.
2320         (handle_inferior_event): Remove infwait_state handling.
2321         (handle_signal_stop) <watchpoints handling>: Adjust after
2322         stepped_after_stopped_by_watchpoint removal.  Don't remove
2323         breakpoints here nor set infwait_state.  Set the thread's
2324         stepping_over_watchpoint flag, and call keep_going instead.
2325         (keep_going): Handle stepping_over_watchpoint.  Adjust
2326         set_step_over_info calls.
2327         * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2328         function.
2329
2330 2014-10-15  Pedro Alves  <palves@redhat.com>
2331
2332         * infrun.c (step_over_info_valid_p): New function.
2333         (resume): Use step_over_info_valid_p instead of checking the
2334         threads's trap_expected flag.
2335
2336 2014-10-15  Doug Evans  <dje@google.com>
2337             Walfred Tedeschi  <walfred.tedeschi@intel.com>
2338
2339         PR python/17364
2340         * python/lib/gdb/__init__.py (packages): Add "printer".
2341         * python/lib/gdb/command/bound_registers.py: Moved to ...
2342         * python/lib/gdb/printer/bound_registers.py: ... here.
2343         Add printer to global set of builtin printers.  Rename printer from
2344         "bound" to "mpx_bound128".
2345         * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2346         registered as global "builtin" printer.
2347         (add_builtin_pretty_printer): New function.
2348         * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2349         gdb/printer/__init__.py.
2350
2351 2014-10-15  Iain Buclaw  <ibuclaw@gdcproject.org>
2352
2353         * Makefile.in (SFILES): Remove d-support.c.
2354         (COMMON_OBS): Remove d-support.o.
2355         * d-lang.h (d_parse_symbol): Remove declaration.
2356         * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2357         * d-support.c: Remove file.
2358
2359 2014-10-15  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2360
2361         * gdb/infrun.c (process_event_stop_test): Apply
2362         gdbarch_addr_bits_remove to longjmp resume address.
2363
2364 2014-10-15  Pedro Alves  <palves@redhat.com>
2365
2366         * regformats/microblaze.dat: Delete file.
2367
2368 2014-10-15  Ajit Agarwal  <ajitkum@xilinx.com>
2369
2370         * features/Makefile (microblaze-expedite): Replace pc with rpc.
2371         * regformats/microblaze-with-stack-protect.dat: Regenerate.
2372
2373 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
2374
2375         * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2376         as non-trivial.
2377
2378 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
2379
2380         PR c++/13403
2381         PR c++/15154
2382         * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2383         with qualified args.
2384
2385 2014-10-14  Joel Brobecker  <brobecker@adacore.com>
2386
2387         * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2388         of the case where the second operand is a pointer.
2389         <BINOP_SUB>: Likewise.
2390
2391 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
2392
2393         * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2394         only if it is not NULL.
2395         (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2396         * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2397         (struct probe_ops) <clear_semaphore>: Likewise.
2398         * tracepoint.c (start_tracing): Call set_semaphore only if it is
2399         not NULL.
2400         (stop_tracing): Likewise, for clear_semaphore.
2401
2402 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
2403
2404         * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2405         using language_c, instead of current_language.
2406
2407 2014-10-13  Doug Evans  <dje@google.com>
2408
2409         * python/py-objfile.c (objfpy_initialize): New function.
2410         (objfpy_new, objfile_to_objfile_object): Call it.
2411         * python/py-progspace.c (pspy_initialize): New function.
2412         (pspy_new, pspace_to_pspace_object): Call it.
2413
2414 2014-10-13  Miroslav Franc  <mfranc@redhat.com>
2415             Jan Kratochvil  <jan.kratochvil@redhat.com>
2416
2417         Fix "save breakpoints" for "catch" command.
2418         * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2419         newline.
2420
2421 2014-10-12  Miroslav Franc  <mfranc@redhat.com>
2422
2423         Fix "save breakpoints" for "disable $bpnum" command.
2424         * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2425
2426 2014-10-10  Pedro Alves  <palves@redhat.com>
2427
2428         * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2429         (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2430         (HFILES_NO_SRCDIR): Remove solib-irix.h.
2431         * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2432         and been removed.
2433         * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2434         * configure.ac: Remove references to IRIX.
2435         * configure.host: Add *-*-irix* to the obsolete hosts section.
2436         Remove all other references to irix.
2437         * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2438         Delete files.
2439
2440 2014-10-10  Ajit Agarwal  <ajitkum@xilinx.com>
2441
2442         * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2443         isn't valid, release the tdesc arch data and return NULL.
2444
2445 2014-10-10  Pedro Alves  <palves@redhat.com>
2446
2447         * linux-tdep.c: Include observer.h.
2448         (linux_inferior_data): New global.
2449         (struct linux_info): New structure.
2450         (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2451         (get_linux_inferior_data): New functions.
2452         (linux_vsyscall_range): Rename to ...
2453         (linux_vsyscall_range_raw): ... this.
2454         (linux_vsyscall_range): New function; handles caching.
2455         (_initialize_linux_tdep): Register linux_inferior_data.  Install
2456         inferior_exit and inferior_appeared observers.
2457
2458 2014-10-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
2459             Pedro Alves  <palves@redhat.com>
2460
2461         PR symtab/14466
2462         * solib-svr4.c (svr4_read_so_list): Rename to ...
2463         (svr4_current_sos_1): ... this and change the function comment.
2464         (svr4_current_sos): New function.
2465
2466 2014-10-10  Pedro Alves  <palves@redhat.com>
2467
2468         * arch-utils.c (default_vsyscall_range): New function.
2469         * arch-utils.h (default_vsyscall_range): New declaration.
2470         * gdbarch.sh (vsyscall_range): New hook.
2471         * gdbarch.h, gdbarch.c: Regenerate.
2472         * linux-tdep.c (linux_vsyscall_range): New function.
2473         (linux_init_abi): Install linux_vsyscall_range as
2474         vsyscall_range gdbarch hook.
2475         * memrange.c (address_in_mem_range): New function.
2476         * memrange.h (address_in_mem_range): New declaration.
2477         * symfile-mem.c (find_vdso_size): Delete function.
2478         (add_vsyscall_page): Use gdbarch_vsyscall_range.
2479
2480 2014-10-10  Pedro Alves  <palves@redhat.com>
2481
2482         * infrun.c (normal_stop): Fix typo in comment.
2483
2484 2014-10-09  Sergio Durigan Junior  <sergiodj@redhat.com>
2485
2486         PR tdep/9390
2487         * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2488         typo when using logical AND to determine instruction type.
2489
2490 2014-10-09  Yao Qi  <yao@codesourcery.com>
2491
2492         * infrun.c (handle_signal_stop): Remove local variable
2493         'printed'.
2494
2495 2014-10-08  Stan Shebs  <stan@codesourcery.com>
2496
2497         * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2498
2499 2014-10-08  Gary Benson  <gbenson@redhat.com>
2500
2501         * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2502
2503 2014-10-08  Gary Benson  <gbenson@redhat.com>
2504
2505         * common/common-defs.h: Include common-exceptions.h.
2506         * exceptions.h: Do not include common-exceptions.h.
2507
2508 2014-10-08  Gary Benson  <gbenson@redhat.com>
2509
2510         * common/common-defs.h: Include cleanups.h.
2511         * common/common-exceptions.c: Do not include cleanups.h.
2512         * utils.h: Likewise.
2513
2514 2014-10-08  Gary Benson  <gbenson@redhat.com>
2515
2516         * ada-lang.c: Do not include exceptions.h.
2517         * ada-valprint.c: Likewise.
2518         * amd64-tdep.c: Likewise.
2519         * auto-load.c: Likewise.
2520         * block.c: Likewise.
2521         * break-catch-throw.c: Likewise.
2522         * breakpoint.c: Likewise.
2523         * btrace.c: Likewise.
2524         * c-lang.c: Likewise.
2525         * cli/cli-cmds.c: Likewise.
2526         * cli/cli-interp.c: Likewise.
2527         * cli/cli-script.c: Likewise.
2528         * completer.c: Likewise.
2529         * corefile.c: Likewise.
2530         * corelow.c: Likewise.
2531         * cp-abi.c: Likewise.
2532         * cp-support.c: Likewise.
2533         * cp-valprint.c: Likewise.
2534         * darwin-nat.c: Likewise.
2535         * dwarf2-frame-tailcall.c: Likewise.
2536         * dwarf2-frame.c: Likewise.
2537         * dwarf2loc.c: Likewise.
2538         * dwarf2read.c: Likewise.
2539         * eval.c: Likewise.
2540         * event-loop.c: Likewise.
2541         * event-top.c: Likewise.
2542         * f-valprint.c: Likewise.
2543         * frame-unwind.c: Likewise.
2544         * frame.c: Likewise.
2545         * gdbtypes.c: Likewise.
2546         * gnu-v2-abi.c: Likewise.
2547         * gnu-v3-abi.c: Likewise.
2548         * guile/scm-auto-load.c: Likewise.
2549         * guile/scm-breakpoint.c: Likewise.
2550         * guile/scm-cmd.c: Likewise.
2551         * guile/scm-frame.c: Likewise.
2552         * guile/scm-lazy-string.c: Likewise.
2553         * guile/scm-param.c: Likewise.
2554         * guile/scm-symbol.c: Likewise.
2555         * guile/scm-type.c: Likewise.
2556         * hppa-hpux-tdep.c: Likewise.
2557         * i386-tdep.c: Likewise.
2558         * inf-loop.c: Likewise.
2559         * infcall.c: Likewise.
2560         * infcmd.c: Likewise.
2561         * infrun.c: Likewise.
2562         * interps.c: Likewise.
2563         * interps.h: Likewise.
2564         * jit.c: Likewise.
2565         * linespec.c: Likewise.
2566         * linux-nat.c: Likewise.
2567         * linux-thread-db.c: Likewise.
2568         * m32r-rom.c: Likewise.
2569         * main.c: Likewise.
2570         * memory-map.c: Likewise.
2571         * mi/mi-cmd-break.c: Likewise.
2572         * mi/mi-cmd-stack.c: Likewise.
2573         * mi/mi-interp.c: Likewise.
2574         * mi/mi-main.c: Likewise.
2575         * monitor.c: Likewise.
2576         * nto-procfs.c: Likewise.
2577         * objc-lang.c: Likewise.
2578         * p-valprint.c: Likewise.
2579         * parse.c: Likewise.
2580         * ppc-linux-tdep.c: Likewise.
2581         * printcmd.c: Likewise.
2582         * probe.c: Likewise.
2583         * python/py-auto-load.c: Likewise.
2584         * python/py-breakpoint.c: Likewise.
2585         * python/py-cmd.c: Likewise.
2586         * python/py-finishbreakpoint.c: Likewise.
2587         * python/py-frame.c: Likewise.
2588         * python/py-framefilter.c: Likewise.
2589         * python/py-function.c: Likewise.
2590         * python/py-gdb-readline.c: Likewise.
2591         * python/py-inferior.c: Likewise.
2592         * python/py-infthread.c: Likewise.
2593         * python/py-lazy-string.c: Likewise.
2594         * python/py-linetable.c: Likewise.
2595         * python/py-param.c: Likewise.
2596         * python/py-prettyprint.c: Likewise.
2597         * python/py-symbol.c: Likewise.
2598         * python/py-type.c: Likewise.
2599         * python/py-value.c: Likewise.
2600         * python/python-internal.h: Likewise.
2601         * python/python.c: Likewise.
2602         * record-btrace.c: Likewise.
2603         * record-full.c: Likewise.
2604         * regcache.c: Likewise.
2605         * remote-fileio.c: Likewise.
2606         * remote-mips.c: Likewise.
2607         * remote.c: Likewise.
2608         * rs6000-aix-tdep.c: Likewise.
2609         * rs6000-nat.c: Likewise.
2610         * skip.c: Likewise.
2611         * solib-darwin.c: Likewise.
2612         * solib-dsbt.c: Likewise.
2613         * solib-frv.c: Likewise.
2614         * solib-ia64-hpux.c: Likewise.
2615         * solib-spu.c: Likewise.
2616         * solib-svr4.c: Likewise.
2617         * solib.c: Likewise.
2618         * spu-tdep.c: Likewise.
2619         * stack.c: Likewise.
2620         * stap-probe.c: Likewise.
2621         * symfile-mem.c: Likewise.
2622         * symmisc.c: Likewise.
2623         * target.c: Likewise.
2624         * thread.c: Likewise.
2625         * top.c: Likewise.
2626         * tracepoint.c: Likewise.
2627         * tui/tui-interp.c: Likewise.
2628         * typeprint.c: Likewise.
2629         * utils.c: Likewise.
2630         * valarith.c: Likewise.
2631         * valops.c: Likewise.
2632         * valprint.c: Likewise.
2633         * value.c: Likewise.
2634         * varobj.c: Likewise.
2635         * windows-nat.c: Likewise.
2636         * xml-support.c: Likewise.
2637
2638 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
2639
2640         * mips-tdep.c (add_offset_16): Rewrite to implement what the
2641         name implies.
2642         (extended_mips16_next_pc): Update accordingly.
2643
2644 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
2645
2646         * mips-tdep.c (mips16_instruction_is_compact_branch): New
2647         function.
2648         (micromips_instruction_is_compact_branch): Likewise.
2649         (mips16_scan_prologue): Terminate scanning upon seeing a branch
2650         or a compact jump, reaching a jump delay slot, or seeing a
2651         second non-prologue instruction.
2652         (micromips_scan_prologue): Also terminate scanning upon seeing a
2653         compact branch or jump, or reaching a branch or jump delay slot.
2654         (mips32_scan_prologue): Terminate scanning upon reaching a branch
2655         or jump delay slot, or seeing a second non-prologue instruction.
2656         (mips32_instruction_has_delay_slot): Retain instruction
2657         examination code only, update arguments accordingly and move
2658         instruction fetch pieces to...
2659         (mips32_insn_at_pc_has_delay_slot): ... this new function.
2660         (micromips_instruction_has_delay_slot): Likewise and to...
2661         (micromips_insn_at_pc_has_delay_slot): ... this new function.
2662         (mips16_instruction_has_delay_slot): Likewise and to...
2663         (mips16_insn_at_pc_has_delay_slot): ... this new function.
2664         (mips_single_step_through_delay): Update accordingly.
2665         (mips_adjust_breakpoint_address): Likewise.
2666
2667 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
2668
2669         * mips-tdep.c (micromips_instruction_has_delay_slot): When
2670         !mustbe32 also return 1 for 32-bit instructions.
2671         (mips16_instruction_has_delay_slot): Likewise.  Add an
2672         explanatory comment.
2673
2674 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
2675
2676         * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2677         symbols special.
2678
2679 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
2680
2681         * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2682         update comments.
2683         * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2684         for the breakpoint's address.  Don't preinitialize `placed_size'.
2685         (insert_bp_location): Set `reqstd_address' rather than
2686         `placed_address'.
2687         (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2688         (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2689         address.
2690         (bkpt_remove_location): Likewise.
2691         (deprecated_insert_raw_breakpoint): Likewise.
2692         (deprecated_remove_raw_breakpoint): Likewise.
2693         (find_single_step_breakpoint): Likewise.
2694         * mem-break.c (default_memory_insert_breakpoint): Use
2695         `reqstd_address' for the breakpoint's address.  Don't set
2696         `placed_address' or `placed_size' if breakpoint contents couldn't
2697         have been determined.
2698         * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2699         the breakpoint's address.
2700         (remote_insert_hw_breakpoint): Likewise.  Don't set
2701         `placed_address' or `placed_size' if breakpoint couldn't have been
2702         set.
2703         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2704         `reqstd_address' for the breakpoint's address.
2705         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2706         * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2707         * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2708         * microblaze-linux-tdep.c
2709         (microblaze_linux_memory_remove_breakpoint): Likewise.
2710         * monitor.c (monitor_insert_breakpoint): Likewise.
2711         * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2712         (procfs_insert_hw_breakpoint): Likewise.
2713         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2714         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2715         * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2716         * remote-mips.c (mips_insert_breakpoint): Likewise.
2717         * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2718
2719 2014-10-03  Luis Machado  <lgustavo@codesourcery.com>
2720
2721         * valops.c (value_assign): Check for bit field assignments
2722         before calling architecture-specific register value
2723         conversion functions.
2724
2725 2014-10-03  Pierre Muller  <muller@sourceware.org>
2726
2727         * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2728
2729 2014-10-02  Pedro Alves  <palves@redhat.com>
2730
2731         * breakpoint.c (breakpoints_should_be_inserted_now): Use
2732         threads_are_executing.
2733         * breakpoint.h (breakpoints_should_be_inserted_now): Add
2734         describing comment.
2735         * gdbthread.h (threads_are_executing): Declare.
2736         (handle_signal_stop) <random signals>: Don't print about the
2737         signal here if stopping.
2738         (end_stepping_range): Don't notify observers here.
2739         (normal_stop): Update the thread list.  If stopped by a random
2740         signal or a stepping range ended, notify observers.
2741         * thread.c (threads_executing): New global.
2742         (init_thread_list): Clear 'threads_executing'.
2743         (set_executing): Set or clear 'threads_executing'.
2744         (threads_are_executing): New function.
2745         (update_threads_executing): New function.
2746         (update_thread_list): Use it.
2747
2748 2014-10-02  Pedro Alves  <palves@redhat.com>
2749
2750         PR breakpoints/17431
2751         * breakpoint.c (update_breakpoints_after_exec): Don't create
2752         overlay, longjmp, std terminate nor exception breakpoints here.
2753
2754 2014-10-02  Pedro Alves  <palves@redhat.com>
2755
2756         * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2757         Adjust comments.
2758         * inferior.c (find_inferior_for_program_space): Give preference to
2759         the current inferior.
2760         * inferior.h (find_inferior_for_program_space): Update comment.
2761         * progspace.c (switch_to_program_space_and_thread): Prefer the
2762         current inferior if it's bound to the program space requested.  If
2763         the inferior found doesn't have a PID yet, don't bother looking up
2764         a thread.
2765         * progspace.h (switch_to_program_space_and_thread): Adjust
2766         comment.
2767         * thread.c (any_thread_of_process, any_live_thread_of_process):
2768         Give preference to the current thread.
2769
2770 2014-10-01  Pedro Alves  <palves@redhat.com>
2771
2772         * breakpoint.c (insert_bp_location): Error out if inserting a
2773         software breakpoint at a read-only address.
2774         * target.c (memory_xfer_check_region): New function, factored out
2775         from ...
2776         (memory_xfer_partial_1): ... this.  Make the 'reg_len' local a
2777         ULONGEST.
2778         (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2779         against the memory region attributes.
2780
2781 2014-10-01  Simon Marchi  <simon.marchi@ericsson.com>
2782
2783         * NEWS: Announce new exit-code field in -list-thread-groups
2784         output.
2785         * inferior.c (exit_inferior_1): Don't clear exit code.
2786         (inferior_appeared): Clear exit code.
2787         * mi/mi-main.c (print_one_inferior): Add printing of the exit
2788         code.
2789
2790 2014-10-01  Pedro Alves  <palves@redhat.com>
2791
2792         * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2793         GENERATED" along with emacs/vi read-only markers.
2794         * regformats/aarch64.dat: Regenerate.
2795         * regformats/arm-with-iwmmxt.dat: Regenerate.
2796         * regformats/arm-with-neon.dat: Regenerate.
2797         * regformats/arm-with-vfpv2.dat: Regenerate.
2798         * regformats/arm-with-vfpv3.dat: Regenerate.
2799         * regformats/i386/amd64-avx-linux.dat: Regenerate.
2800         * regformats/i386/amd64-avx.dat: Regenerate.
2801         * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2802         * regformats/i386/amd64-avx512.dat: Regenerate.
2803         * regformats/i386/amd64-linux.dat: Regenerate.
2804         * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2805         * regformats/i386/amd64-mpx.dat: Regenerate.
2806         * regformats/i386/amd64.dat: Regenerate.
2807         * regformats/i386/i386-avx-linux.dat: Regenerate.
2808         * regformats/i386/i386-avx.dat: Regenerate.
2809         * regformats/i386/i386-avx512-linux.dat: Regenerate.
2810         * regformats/i386/i386-avx512.dat: Regenerate.
2811         * regformats/i386/i386-linux.dat: Regenerate.
2812         * regformats/i386/i386-mmx-linux.dat: Regenerate.
2813         * regformats/i386/i386-mmx.dat: Regenerate.
2814         * regformats/i386/i386-mpx-linux.dat: Regenerate.
2815         * regformats/i386/i386-mpx.dat: Regenerate.
2816         * regformats/i386/i386.dat: Regenerate.
2817         * regformats/i386/x32-avx-linux.dat: Regenerate.
2818         * regformats/i386/x32-avx.dat: Regenerate.
2819         * regformats/i386/x32-avx512-linux.dat: Regenerate.
2820         * regformats/i386/x32-avx512.dat: Regenerate.
2821         * regformats/i386/x32-linux.dat: Regenerate.
2822         * regformats/i386/x32.dat: Regenerate.
2823         * regformats/microblaze-with-stack-protect.dat: Regenerate.
2824         * regformats/mips-dsp-linux.dat: Regenerate.
2825         * regformats/mips-linux.dat: Regenerate.
2826         * regformats/mips64-dsp-linux.dat: Regenerate.
2827         * regformats/mips64-linux.dat: Regenerate.
2828         * regformats/nios2-linux.dat: Regenerate.
2829         * regformats/rs6000/powerpc-32.dat: Regenerate.
2830         * regformats/rs6000/powerpc-32l.dat: Regenerate.
2831         * regformats/rs6000/powerpc-64l.dat: Regenerate.
2832         * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2833         * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2834         * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2835         * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2836         * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2837         * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2838         * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2839         * regformats/s390-linux32.dat: Regenerate.
2840         * regformats/s390-linux32v1.dat: Regenerate.
2841         * regformats/s390-linux32v2.dat: Regenerate.
2842         * regformats/s390-linux64.dat: Regenerate.
2843         * regformats/s390-linux64v1.dat: Regenerate.
2844         * regformats/s390-linux64v2.dat: Regenerate.
2845         * regformats/s390-te-linux64.dat: Regenerate.
2846         * regformats/s390x-linux64.dat: Regenerate.
2847         * regformats/s390x-linux64v1.dat: Regenerate.
2848         * regformats/s390x-linux64v2.dat: Regenerate.
2849         * regformats/s390x-te-linux64.dat: Regenerate.
2850         * regformats/tic6x-c62x-linux.dat: Regenerate.
2851         * regformats/tic6x-c62x.dat: Regenerate.
2852         * regformats/tic6x-c64x-linux.dat: Regenerate.
2853         * regformats/tic6x-c64x.dat: Regenerate.
2854         * regformats/tic6x-c64xp-linux.dat: Regenerate.
2855         * regformats/tic6x-c64xp.dat: Regenerate.
2856
2857 2014-10-01  Pedro Alves  <palves@redhat.com>
2858
2859         * features/Makefile: Update comments.
2860         (XMLTOC): List all xml files we build C files from.
2861         (clean-cfiles): New rule.
2862
2863 2014-10-01  Pedro Alves  <palves@redhat.com>
2864
2865         * features/i386/amd64-avx512-linux.c: Regenerate.
2866         * features/i386/amd64-avx512.c: Regenerate.
2867         * features/i386/x32-avx512-linux.c: Regenerate.
2868         * features/i386/x32-avx512.c: Regenerate.
2869
2870 2014-10-01  Pedro Alves  <palves@redhat.com>
2871
2872         * features/Makefile (WHICH): Remove arm-with-m,
2873         arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2874
2875 2014-10-01  Pedro Alves  <palves@redhat.com>
2876
2877         * features/Makefile (clean): New rule.
2878
2879 2014-10-01  Pedro Alves  <palves@redhat.com>
2880
2881         * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2882         (zmm14h): Add missing end quotes.
2883
2884 2014-10-01  Pedro Alves  <palves@redhat.com>
2885
2886         * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2887         * features/aarch64.c: Regenerate.
2888
2889 2014-09-30  Don Breazeal  <donb@codesourcery.com>
2890
2891         * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2892         code so as to work with follow_fork_inferior.
2893         * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2894         (inf_ttrace_create_inferior): Remove reference to
2895         inf_ttrace_vfork_ppid.
2896         (inf_ttrace_attach): Ditto.
2897         (inf_ttrace_detach): Ditto.
2898         (inf_ttrace_kill): Use current_inferior instead of
2899         inf_ttrace_vfork_ppid.
2900         (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2901         TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2902         inferior away from the parent.
2903         * infrun.c (follow_fork): Call follow_fork_inferior instead of
2904         target_follow_fork.
2905         (follow_fork_inferior): New function.
2906         (follow_inferior_reset_breakpoints): Make function static.
2907         * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2908         * linux-nat.c (linux_child_follow_fork): Move target-independent
2909         code to infrun.c:follow_fork_inferior.
2910
2911 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2912
2913         * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2914         * gdbarch.c: Regenerate.
2915         * gdbarch.h: Likewise.
2916         * corelow.c (sniff_core_bfd): Drop presence check for deleted
2917         gdbarch method 'regset_from_core_section'.
2918         (get_core_register_section): Remove handling for the case that
2919         regset == NULL and regset_from_core_section is defined.
2920         (get_core_registers): Drop check for deleted method.
2921         * procfs.c (procfs_do_thread_registers): Adjust comment.
2922
2923 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2924
2925         * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2926         (linux_nat_make_corefile_notes): Remove.
2927         (linux_target_install_ops): Do not set target method
2928         'make_corefile_notes'.
2929         * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2930         Remove field.
2931         (linux_corefile_thread_callback): Instead of args->collect, call
2932         linux_collect_thread_registers.
2933         (linux_make_corefile_notes): Remove 'collect' parameter.  Return
2934         NULL unless there is a regset iterator.
2935         (linux_make_corefile_notes_1): Remove.
2936         (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2937         by linux_make_corefile_notes.
2938         * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2939
2940 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2941
2942         * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2943         (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2944         Remove.
2945         * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2946
2947 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2948
2949         * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2950         (xtensa_iterate_over_regset_sections): New.
2951         (xtensa_gdbarch_init): Adjust gdbarch initialization.
2952
2953 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2954
2955         * vax-tdep.c (vax_regset_from_core_section): Remove.
2956         (vax_iterate_over_regset_sections): New.
2957         (vax_gdbarch_init): Adjust gdbarch initialization.
2958
2959 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2960
2961         * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2962         (tilegx_regset_from_core_section): Remove.
2963         (tilegx_iterate_over_regset_sections): New.
2964         (tilegx_linux_init_abi): Adjust gdbarch initialization.
2965
2966 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2967
2968         * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2969         (sparc_iterate_over_regset_sections): New.
2970         (sparc32_gdbarch_init): Adjust gdbarch initialization.
2971         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2972         targets.
2973         * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2974         (sparc64fbsd_init_abi): Call fbsd_init_abi.
2975         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2976         target method 'make_corefile_notes'.
2977
2978 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2979
2980         * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2981         'sizeof_gregset' and 'sizeof_fpregset'.
2982         * sh-tdep.c (sh_regset_from_core_section): Remove.
2983         (sh_iterate_over_regset_sections): New.
2984         (sh_gdbarch_init): Adjust gdbarch initialization.
2985         * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2986         sizeof_fpregset.
2987         * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2988         'sizeof_gregset'.
2989
2990 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2991
2992         * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2993         (score7_linux_iterate_over_regset_sections): New.
2994         (score_gdbarch_init): Adjust gdbarch initialization.
2995
2996 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2997
2998         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2999         FreeBSD targets.
3000         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
3001         method 'make_corefile_notes'.
3002         * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
3003         (ppcfbsd_regset_from_core_section): Remove.
3004         (ppcfbsd_iterate_over_regset_sections): New.
3005         (ppcfbsd_init_abi): Call fbsd_init_abi.  Adjust gdbarch
3006         initialization.
3007         * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
3008         (ppcnbsd_iterate_over_regset_sections): New.
3009         (ppcnbsd_init_abi): Adjust.
3010         * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
3011         (ppcobsd_iterate_over_regset_sections): New.
3012         (ppcobsd_init_abi): Adjust.
3013         * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
3014         (rs6000_aix_iterate_over_regset_sections): New.
3015         (rs6000_aix_init_osabi): Adjust.
3016
3017 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3018
3019         * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
3020         (nios2_regset_from_core_section): Remove.
3021         (nios2_iterate_over_regset_sections): New.
3022         (nios2_linux_init_abi): Adjust gdbarch initialization.
3023
3024 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3025
3026         * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
3027         (am33_iterate_over_regset_sections): New.
3028         (am33_linux_init_osabi): Adjust gdbarch initialization.
3029
3030 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3031
3032         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
3033         (mips_linux_iterate_over_regset_sections): New.
3034         (mips_linux_init_abi): Adjust gdbarch initialization.
3035         * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
3036         (mips64obsd_iterate_over_regset_sections): New.
3037         (mips64obsd_init_abi): Adjust.
3038         * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
3039         (mipsnbsd_iterate_over_regset_sections): New.
3040         (mipsnbsd_init_abi): Adjust.
3041
3042 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3043
3044         * m88k-tdep.c (m88k_regset_from_core_section): Remove.
3045         (m88k_iterate_over_regset_sections): New.
3046         (m88k_gdbarch_init): Adjust gdbarch initialization.
3047
3048 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3049
3050         * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
3051         (ia64_linux_iterate_over_regset_sections): New.
3052         (ia64_linux_init_abi): Adjust gdbarch initialization.
3053
3054 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3055
3056         * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
3057         (m68kbsd_iterate_over_regset_sections): New.
3058         (m68kbsd_init_abi): Adjust gdbarch initialization.
3059         * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
3060         (m68k_linux_iterate_over_regset_sections): New.
3061         (m68k_linux_init_abi): Adjust gdbarch initialization.
3062
3063 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3064
3065         * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
3066         (m32r_linux_regset_from_core_section): Remove.
3067         (m32r_linux_iterate_over_regset_sections): New.
3068         (m32r_linux_init_abi): Adjust gdbarch initialization.
3069
3070 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3071
3072         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
3073         (amd64obsd_iterate_over_regset_sections): New.
3074         (amd64obsd_core_init_abi): Adjust gdbarch initialization.
3075         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3076         Remove.
3077         (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset.  Drop
3078         regset_from_core_section initialization.
3079         * i386-tdep.c (i386_regset_from_core_section): Remove.
3080         (i386_iterate_over_regset_sections): New.
3081         (i386_gdbarch_init): Adjust gdbarch initialization.
3082         * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
3083         (i386_iterate_over_regset_sections): New prototype.
3084         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
3085         Remove.
3086         (i386obsd_aout_iterate_over_regset_sections): New.
3087         (i386obsd_aout_init_abi): Adjust gdbarch initialization.
3088         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
3089         targets.
3090         * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
3091         (amd64fbsd_init_abi): Call fbsd_init_abi.
3092         * i386fbsd-tdep.c (fbsd-tdep.h): Include.
3093         (i386fbsd4_init_abi): Call fbsd_init_abi.
3094         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
3095         target method 'make_corefile_notes'.
3096         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3097
3098 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3099
3100         * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
3101         (hppa_hpux_iterate_over_regset_sections): New.
3102         (hppa_hpux_init_abi): Adjust gdbarch initialization.
3103         * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
3104         (hppa_linux_iterate_over_regset_sections): New.
3105         (hppa_linux_init_abi): Adjust.
3106         * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3107         (hppanbsd_iterate_over_regset_sections): New.
3108         (hppanbsd_init_abi): Adjust.
3109         * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3110         (hppaobsd_iterate_over_regset_sections): New.
3111         (hppaobsd_init_abi): Adjust.
3112
3113 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3114
3115         * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
3116         (frv_linux_iterate_over_regset_sections): New.
3117         (frv_linux_init_abi): Adjust gdbarch initialization.
3118
3119 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3120
3121         * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
3122         (armbsd_iterate_over_regset_sections): New prototype.
3123         * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
3124         (armbsd_iterate_over_regset_sections): New.
3125         * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
3126         initialization.
3127
3128 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3129
3130         * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
3131         (alpha_linux_iterate_over_regset_sections): New.
3132         (alpha_linux_init_abi): Adjust gdbarch initialization.
3133         * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
3134         prototype.
3135         (alphanbsd_iterate_over_regset_sections): New prototype.
3136
3137 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3138
3139         * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
3140         Remove.
3141         (aarch64_linux_iterate_over_regset_sections): New.
3142         (aarch64_linux_init_abi): Adjust gdbarch initialization.
3143
3144 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3145
3146         * fbsd-tdep.c: New file.
3147         * fbsd-tdep.h: New file.
3148         * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3149         (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3150         (ALLDEPFILES): Add fbsd-tdep.c.
3151
3152 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3153
3154         * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3155         parameter.
3156         * gdbarch.h: Regenerate.
3157         * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3158         iterator.
3159         (get_core_register_section): Add parameter 'regset' and use it, if
3160         set.  Add parameter 'min_size' and verify the bfd section size
3161         against it.
3162         (get_core_registers_cb): Add parameter 'regset' and pass it to
3163         get_core_register section.  For the "standard" register sections
3164         ".reg" and ".reg2", set an appropriate default for human_name.
3165         (get_core_registers): Don't abort when the gdbarch has an iterator
3166         but no regset_from_core_section.  Add NULL/0 for parameters
3167         'regset'/'min_size' in calls to get_core_register_section.
3168         * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3169         'regset' and use it instead of calling the
3170         regset_from_core_section gdbarch method.
3171         * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3172         * i386-tdep.c (i386_supply_xstateregset)
3173         (i386_collect_xstateregset, i386_xstateregset): Moved to
3174         i386-linux-tdep.c.
3175         (i386_regset_from_core_section): Drop handling for .reg-xfp and
3176         .reg-xstate.
3177         (i386_gdbarch_init): Set tdep field 'fpregset'.  Enable generic
3178         core file support only if the regset iterator hasn't been set.
3179         * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3180         (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3181         Moved from i386-tdep.c and renamed to *_linux*.
3182         (i386_linux_iterate_over_regset_sections): Add regset parameter to
3183         each callback invocation.  Allow any .reg-xstate size when reading
3184         from a core file.
3185         * amd64-tdep.c (amd64_supply_xstateregset)
3186         (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3187         amd64-linux-tdep.c.
3188         (amd64_regset_from_core_section): Remove.
3189         (amd64_init_abi): Set new tdep field 'fpregset'.  No longer
3190         install an amd64-specific regset_from_core_section gdbarch method.
3191         * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3192         (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3193         Moved from amd64-tdep.c and renamed to *_linux*.
3194         (amd64_linux_iterate_over_regset_sections): Add regset parameter
3195         to each callback invocation.  Allow any .reg-xstate size when
3196         reading from a core file.
3197         * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3198         (arm_linux_iterate_over_regset_sections): Add regset parameter to
3199         each callback invocation.
3200         (arm_linux_init_abi): No longer set the regset_from_core_section
3201         gdbarch method.
3202         * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3203         (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3204         each callback invocation.
3205         (ppc_linux_init_abi): No longer set the regset_from_core_section
3206         gdbarch method.
3207         * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3208         gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3209         (s390_regset_from_core_section): Remove.
3210         (s390_iterate_over_regset_sections): Add regset parameter to each
3211         callback invocation.
3212         (s390_gdbarch_init): No longer set the regset_from_core_section
3213         gdbarch method.  Drop initialization of deleted tdep fields.
3214
3215 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3216
3217         * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3218         (amd64_linux_iterate_over_regset_sections): New.
3219         (amd64_linux_init_abi_common): Don't install the regset section
3220         list, but the new iterator in gdbarch.
3221         * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3222         (arm_linux_vfp_regset_sections): Remove.  Move combined logic...
3223         (arm_linux_iterate_over_regset_sections): ...here.  New function.
3224         (arm_linux_init_abi): Set iterator instead of section list.
3225         * corelow.c (get_core_registers_cb): New function, logic moved
3226         from...
3227         (get_core_registers): ...loop body here.  Use new iterator method
3228         instead of walking through the regset section list.
3229         * gdbarch.sh: Remove 'core_regset_sections'.  New method
3230         'iterate_over_regset_sections'.  New typedef
3231         'iterate_over_regset_sections_cb'.
3232         * gdbarch.c: Regenerate.
3233         * gdbarch.h: Likewise.
3234         * i386-linux-tdep.c (i386_linux_regset_sections)
3235         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3236         Remove.
3237         (i386_linux_iterate_over_regset_sections): New.
3238         (i386_linux_init_abi): Don't choose a regset section list, but
3239         install new iterator in gdbarch.
3240         * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3241         (linux_collect_regset_section_cb): New function, logic moved
3242         from...
3243         (linux_collect_thread_registers): ...loop body here.  Use iterator
3244         method instead of walking through list.
3245         (linux_make_corefile_notes_1): Check for presence of iterator
3246         method instead of regset section list.
3247         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3248         (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3249         (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3250         (ppc64_linux_fp_regset_sections): Remove.  Move combined logic...
3251         (ppc_linux_iterate_over_regset_sections): ...here.  New function.
3252         (ppc_linux_init_abi): Don't choose from above regset section
3253         lists, but install new iterator in gdbarch.
3254         * regset.h (struct core_regset_section): Remove.
3255         * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3256         have_linux_v1, have_linux_v2, and have_tdb.
3257         (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3258         (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3259         (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3260         (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3261         (s390x_linux64v2_regset_sections): Remove.  Move combined logic...
3262         (s390_iterate_over_regset_sections): ...here.  New function.  Use
3263         new tdep fields.
3264         (s390_gdbarch_init): Set new tdep fields.  Don't choose from above
3265         regset section lists, but install new iterator.
3266
3267 2014-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
3268
3269         * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3270
3271 2014-09-26  Simon Marchi  <simon.marchi@ericsson.com>
3272
3273         * progspace.c (print_program_space): Don't prune program spaces
3274         before printing them.
3275
3276 2014-09-25  Pedro Alves  <palves@redhat.com>
3277
3278         * infrun.c (user_visible_resume_ptid): Don't check
3279         singlestep_breakpoints_inserted_p.
3280
3281 2014-09-25  Pedro Alves  <palves@redhat.com>
3282
3283         * breakpoint.c (should_be_inserted): Add debug output.
3284
3285 2014-09-25  Pedro Alves  <palves@redhat.com>
3286
3287         * infrun.c (stepping_past_instruction_at)
3288         (clear_exit_convenience_vars): Point at infrun.h instead of
3289         inferior.h.
3290         (handle_signal_stop): Fix typo.
3291
3292 2014-09-24  Yao Qi  <yao@codesourcery.com>
3293
3294         * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3295         bitmask.
3296
3297 2014-09-22  Gary Benson  <gbenson@redhat.com>
3298
3299         * target.c (target_stop): Updated comment.
3300
3301 2014-09-22  Gary Benson  <gbenson@redhat.com>
3302
3303         * target/target.h (target_stop_ptid): Renamed as...
3304         (target_stop_and_wait): New function.  Updated comment.
3305         All uses updated.
3306         (target_continue_ptid): Renamed as...
3307         (target_continue_no_signal): New function.  Updated comment.
3308         All uses updated.
3309
3310 2014-09-22  Pedro Alves  <palves@redhat.com>
3311
3312         * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3313         and "auto" merged.
3314         * breakpoint.c (enum ugll_insert_mode): New enum.
3315         (always_inserted_mode): Now a plain boolean.
3316         (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3317         (breakpoints_always_inserted_mode): Delete.
3318         (breakpoints_should_be_inserted_now): New function.
3319         (insert_breakpoints): Pass UGLL_INSERT to
3320         update_global_location_list instead of calling
3321         insert_breakpoint_locations manually.
3322         (create_solib_event_breakpoint_1): New, factored out from ...
3323         (create_solib_event_breakpoint): ... this.
3324         (create_and_insert_solib_event_breakpoint): Use
3325         create_solib_event_breakpoint_1 instead of calling
3326         insert_breakpoint_locations manually.
3327         (update_global_location_list): Change parameter type from boolean
3328         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
3329         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3330         (update_global_location_list_nothrow): Change parameter type from
3331         boolean to enum ugll_insert_mode.
3332         (_initialize_breakpoint): "breakpoint always-inserted" option is
3333         now a boolean command.  Update help text.
3334         * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3335         (breakpoints_should_be_inserted_now): New declaration.
3336         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3337         Remove breakpoints_always_inserted_mode check.
3338         (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3339         * remote.c (remote_start_remote): Likewise.
3340
3341 2014-09-22  Pedro Alves  <palves@redhat.com>
3342
3343         * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3344         (insert_breakpoints): Don't call insert_breakpoint_locations here.
3345         Instead, pass UGLL_INSERT to update_global_location_list.
3346         (update_global_location_list): Change parameter type from boolean
3347         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
3348         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3349         (create_solib_event_breakpoint_1): New, factored out from ...
3350         (create_solib_event_breakpoint): ... this.
3351         (create_and_insert_solib_event_breakpoint): Use
3352         create_solib_event_breakpoint_1 instead of calling
3353         insert_breakpoint_locations manually.
3354         (update_global_location_list): Handle UGLL_INSERT.
3355
3356 2014-09-22  Pedro Alves  <palves@redhat.com>
3357
3358         * breakpoint.c (enum ugll_insert_mode): New enum.
3359         (update_global_location_list)
3360         (update_global_location_list_nothrow): Change parameter type from
3361         boolean to enum ugll_insert_mode.  All callers adjusted.
3362
3363 2014-09-19  Joel Brobecker  <brobecker@adacore.com>
3364
3365         * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3366         SystemTap support in GDB.
3367
3368 2014-09-19  Don Breazeal  <donb@codesourcery.com>
3369
3370         * linux-nat.c (linux_handle_extended_wait): Call
3371         linux_ptrace_get_extended_event.
3372         (wait_lwp): Call linux_is_extended_waitstatus.
3373         (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3374         and linux_is_extended_waitstatus.
3375         * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3376         linux_ptrace_get_extended_event.
3377         (linux_ptrace_get_extended_event): New function.
3378         (linux_is_extended_waitstatus): New function.
3379         * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3380         (linux_is_extended_waitstatus): New declarations.
3381
3382 2014-09-19  Yao Qi  <yao@codesourcery.com>
3383
3384         * dwarf2read.c (dwarf_decode_lines): Update declaration.
3385         (handle_DW_AT_stmt_list): Add argument 'lowpc'.  Update
3386         comments.  Callers update.
3387         (dwarf_decode_lines): Likewise.
3388         (dwarf_decode_lines_1): Add argument 'lowpc'.  Update
3389         comments.  Skip the line table if  'lowpc' is greater than
3390         'address'.  Don't check
3391         dwarf2_per_objfile->has_section_at_zero.
3392
3393 2014-09-18  Doug Evans  <dje@google.com>
3394
3395         * NEWS: Mention new "producer" attribute of gdb.Symtab.
3396         * python/py-symtab.c (stpy_get_producer): New function.
3397         (symtab_object_getset): Add "producer" attribute.
3398
3399 2014-09-17  Ulrich Weigand  <uweigand@de.ibm.com>
3400
3401         PR gdb/17384
3402         * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3403         (do_captured_read_memory_integer): Remove.
3404         (safe_read_memory_integer): Use target_read_memory directly instead
3405         of catching errors in do_captured_read_memory_integer.
3406
3407 2014-09-16  Maciej W. Rozycki  <macro@codesourcery.com>
3408
3409         * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3410         not gdb/doc.
3411
3412 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
3413
3414         * objc-lang.c (find_implementation_from_class): Remove dead code.
3415
3416 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
3417
3418         PR cli/7233
3419         * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3420         "fprintf_unfiltered (gdb_stdlog...)".
3421
3422 2014-09-16  Patrick Palka  <patrick@parcs.ath.cx>
3423
3424         PR breakpoints/12526
3425         * breakpoint.h (struct watchpoint): New fields val_bitpos and
3426         val_bitsize.
3427         * breakpoint.c (watch_command_1): Use these fields to retain
3428         bitfield information.
3429         (extract_bitfield_from_watchpoint_value): New function.
3430         (watchpoint_check): Use it.
3431         (update_watchpoint): Use it.  Optimize the address and length of a
3432         HW watchpoint pointing to a bitfield.
3433         * value.h (unpack_value_bitfield): New prototype.
3434         * value.c (unpack_value_bitfield): Make extern.
3435
3436 2014-09-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3437
3438         * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3439         x86-dregs.o.
3440         * gnu-nat.c (inf_threads): New function.
3441         * gnu-nat.h (inf_threads_ftype): New typedef.
3442         (inf_threads): New declaration.
3443         * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3444         [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3445         (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3446         (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3447         (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3448         (i386_gnu_dr_get_control): New functions.
3449         (reg_addr): New structure.
3450         (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3451         i386 debugging register hooks.
3452         * NEWS: Mention this.
3453
3454 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
3455
3456         * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3457         vector data transfer instructions.
3458         (arm_record_coproc_data_proc): Updated.
3459
3460 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
3461
3462         * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3463         arm_record_exreg_ld_st_insn.
3464         (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3465         load/store insns.
3466
3467 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
3468
3469         * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3470         (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3471         processing instructions.
3472
3473 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
3474
3475         * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3476         for advance SIMD struct ld/st insn.
3477         (thumb2_record_decode_insn_handler): Replace stub handler with
3478         thumb2_record_asimd_struct_ld_st.
3479
3480 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
3481
3482         * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3483         for asimd, vfp and coprocessor insns.
3484         (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3485         and coprocessor insns.
3486         (thumb2_record_coproc_insn): New function.
3487         (thumb2_record_decode_insn_handler): Update coprocessor insns record
3488         handlers.
3489         (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3490         opcode 110 insns.
3491
3492 2014-09-13  Doug Evans  <xdje42@gmail.com>
3493
3494         * NEWS: Mention new "queue-signal" command.
3495         * infcmd.c (queue_signal_command): New function.
3496         (_initialize_infcmd): Add new queue-signal command.
3497
3498 2014-09-13  Doug Evans  <xdje42@gmail.com>
3499
3500         * linux-nat.c (wait_lwp): Add debugging printf.
3501         (linux_nat_wait_1): Ditto.
3502
3503 2014-09-12  Pedro Alves  <palves@redhat.com>
3504
3505         * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3506         (create_and_insert_solib_event_breakpoint): New functions.
3507         * breakpoint.h (create_and_insert_solib_event_breakpoint)
3508         (remove_solib_event_breakpoints_at_next_stop): New declarations.
3509         * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3510         (remove_dbx_link_breakpoint): Delete function.
3511         (insert_dbx_link_bpt_in_file): Use
3512         create_and_insert_solib_event_breakpoint instead of
3513         deprecated_insert_raw_breakpoint.
3514         (procfs_wait): Don't check whether we hit __dbx_link here.
3515         (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3516         here.
3517         * solib-irix.c (base_breakpoint): Delete global.
3518         (disable_break): Delete function.
3519         (enable_break): Use create_solib_event_breakpoint
3520         instead of deprecated_insert_raw_breakpoint.
3521         (irix_solib_handle_event): New function.
3522         (irix_solib_create_inferior_hook): Don't run the target or disable
3523         the mapping-complete breakpoint here.
3524         (_initialize_irix_solib): Install irix_solib_handle_event as
3525         so_ops->handle_event hook.
3526
3527 2014-09-12  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
3528             Ulrich Weigand  <uweigand@de.ibm.com>
3529
3530         PR tdep/17379
3531         * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3532         instead of read_memory_unsigned_integer.
3533
3534 2014-09-12  Gary Benson  <gbenson@redhat.com>
3535
3536         * nat/linux-waitpid.c: Include common-defs.h.
3537         [GDBSERVER]: Add FIXME comment.
3538         [!GDBSERVER]: Don't include defs.h or signal.h.
3539         (linux_debug) [!GDBSERVER]: Remove empty block.
3540
3541 2014-09-12  Gary Benson  <gbenson@redhat.com>
3542
3543         * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3544         Don't include defs.h or server.h.
3545
3546 2014-09-12  Gary Benson  <gbenson@redhat.com>
3547
3548         * nat/linux-btrace.c: Include common-defs.h.
3549         Don't include defs.h, server.h or gdbthread.h.
3550         * nat/linux-btrace.h (struct target_ops): New forward declaration.
3551
3552 2014-09-12  Gary Benson  <gbenson@redhat.com>
3553
3554         * common/agent.c: Include common-defs.h.
3555         Don't include defs.h or server.h.
3556         * common/buffer.c: Likewise.
3557         * common/common-debug.c: Likewise.
3558         * common/common-utils.c: Likewise.
3559         * common/errors.c: Likewise.
3560         * common/filestuff.c: Likewise.
3561         * common/format.c: Likewise.
3562         * common/gdb_vecs.c: Likewise.
3563         * common/print-utils.c: Likewise.
3564         * common/ptid.c: Likewise.
3565         * common/rsp-low.c: Likewise.
3566         * common/signals.c: Likewise.
3567         * common/vec.c: Likewise.
3568         * common/xml-utils.c: Likewise.
3569         * nat/linux-osdata.c: Likewise.
3570         * nat/linux-procfs.c: Likewise.
3571         * nat/linux-ptrace.c: Likewise.
3572         * nat/mips-linux-watch.c: Likewise.
3573         * target/waitstatus.c: Likewise.
3574
3575 2014-09-12  Tom Tromey  <tromey@redhat.com>
3576             Gary Benson  <gbenson@redhat.com>
3577
3578         * common/common-regcache.h: New file.
3579         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3580         * regcache.h: Include common-regcache.h.
3581         (regcache_read_pc): Don't declare.
3582         * regcache.c (get_thread_regcache_for_ptid): New function.
3583         * nat/linux-btrace.c: Don't include regcache.h.
3584         Include common-regcache.h.
3585         (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3586
3587 2014-09-11  Thomas Schwinge  <thomas@codesourcery.com>
3588
3589         * regcache.h (struct regset): Declare.
3590
3591 2014-09-11  Pedro Alves  <palves@redhat.com>
3592
3593         PR gdb/17347
3594         * main.c: Include "infrun.h".
3595         (catch_command_errors, catch_command_errors_const): Wait for the
3596         foreground command to complete.
3597         * top.c (maybe_wait_sync_command_done): New function, factored out
3598         from ...
3599         (maybe_wait_sync_command_done): ... here.
3600         * top.h (maybe_wait_sync_command_done): New declaration.
3601
3602 2014-09-11  Tom Tromey  <tromey@redhat.com>
3603             Gary Benson  <gbenson@redhat.com>
3604
3605         * common/symbol.h: New file.
3606         * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3607         * minsyms.c (find_minimal_symbol_address): New function.
3608         * common/agent.c: Include common/symbol.h.
3609         [!GDBSERVER]: Don't include objfiles.h.
3610         (agent_look_up_symbols): Use find_minimal_symbol_address.
3611
3612 2014-09-11  Gary Benson  <gbenson@redhat.com>
3613
3614         * target/target.h (target_stop_ptid, target_continue_ptid):
3615         Declare.
3616         * target.c (target_stop_ptid, target_continue_ptid): New
3617         functions.
3618         * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3619         (agent_run_command): Always use target_stop_ptid and
3620         target_continue_ptid.
3621
3622 2014-09-11  Tom Tromey  <tromey@redhat.com>
3623             Gary Benson  <gbenson@redhat.com>
3624
3625         * target/target.h: New file.
3626         * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3627         * target.h: Include target/target.h.
3628         (target_read_memory, target_write_memory): Don't declare.
3629         * target.c (target_read_uint32): New function.
3630         * common/agent.c: Include target/target.h.
3631         [!GDBSERVER]: Don't include target.h.
3632         (helper_thread_id): Type changed to uint32_t.
3633         (agent_get_helper_thread_id): Use target_read_uint32.
3634         (agent_run_command): Always use target_read_memory and
3635         target_write_memory.
3636         (agent_capability): Type changed to uint32_t.
3637         (agent_capability_check): Use target_read_uint32.
3638
3639 2014-09-11  Gary Benson  <gbenson@redhat.com>
3640
3641         * common/common-debug.h (show_debug_regs): Declare.
3642         * common/common-debug.c (show_debug_regs): Define.
3643         * aarch64-linux-nat.c (debug_hw_points): Don't define.  Replace
3644         all uses with show_debug_regs.  Replace all uses that considered
3645         debug_hw_points as a multi-value integer with straight boolean
3646         uses.
3647         * x86-nat.c (debug_hw_points): Don't define.  Replace all uses
3648         with show_debug_regs.
3649         * nat/x86-dregs.c (debug_hw_points): Don't declare.  Replace
3650         all uses with show_debug_regs.
3651         * mips-linux-nat.c (maint_show_dr): Don't define.  Replace all
3652         uses with show_debug_regs.
3653
3654 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
3655
3656         * findvar.c (address_from_register): Handle targets requiring
3657         a special conversion routine even for plain pointer types.
3658
3659 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
3660
3661         * rs6000-nat.c (exec_one_dummy_insn): Remove.
3662         (store_register): Do not call exec_one_dummy_insn.
3663
3664 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
3665
3666         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3667         dereference it first.  Use value_enclosing_type instead of
3668         value_type.
3669         (ada_array_length): Likewise.
3670
3671 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
3672
3673         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3674         Adjust function implementation and documentation accordingly.
3675         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3676         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3677         Update call to ada_value_ptr_subscript.
3678
3679 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
3680
3681         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3682         instead of VAL's type.
3683
3684 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
3685
3686         * amd64-linux-nat.c: Add <sys/uio.h> #include.
3687
3688 2014-09-09  Doug Evans  <xdje42@gmail.com>
3689
3690         PR guile/17367
3691         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3692         last parameter to pkg-config, not first.
3693         * configure.ac: Pass --with-guile provided pkg-config path to
3694         GDB_GUILE_PROGRAM_NAMES.
3695         * configure: Regenerate.
3696
3697 2014-09-09  Gabriel Krisman Bertazi  <gabriel@krisman.be>
3698
3699         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3700         Bertazi".
3701
3702 2014-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
3703
3704         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3705         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3706         the list of sections determining GDB_OSABI_IRIX.
3707
3708 2014-09-09  James Hogan  <james.hogan@imgtec.com>
3709
3710         * MAINTAINERS (Write After Approval): Add "James Hogan".
3711
3712 2014-09-09  James Hogan  <james.hogan@imgtec.com>
3713
3714         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3715
3716 2014-09-09  Joel Brobecker  <brobecker@adacore.com>
3717
3718         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3719
3720 2014-09-08  Doug Evans  <xdje42@gmail.com>
3721
3722         PR 17247
3723         * guile.c: #include <signal.h>.
3724         (_initialize_guile): Block SIGCHLD while initializing Guile.
3725
3726         Replaces the following, which is reverted.
3727
3728         2014-07-26  Doug Evans  <xdje42@gmail.com>
3729
3730         PR 17185
3731         * configure.ac: Add check for header gc/gc.h.
3732         Add check for function setenv.
3733         * configure: Regenerate.
3734         * config.in: Regenerate.
3735         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3736
3737 2014-09-08  Doug Evans  <xdje42@gmail.com>
3738
3739         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3740         with named constant.  Fix style of pointer comparison.
3741         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3742
3743 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
3744
3745         PR gdb/17035
3746         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3747         decide whether we display the command on "show user".
3748         * cli/cli-script.c (show_user_1): Only verify cmdlines after
3749         printing command name.
3750         * cli/cli-decode.h (cli_user_command_p): Declare new function.
3751         * cli/cli-decode.c (cli_user_command_p): Create helper function
3752         to verify whether cmd_list_element is a user-defined command.
3753
3754 2014-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3755
3756         PR python/17355
3757         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3758         Fix goto out of TRY_CATCH.
3759
3760 2014-09-06  Doug Evans  <xdje42@gmail.com>
3761             Tom Tromey  <tromey@redhat.com>
3762
3763         PR 15276
3764         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3765         $_any_caller_matches.
3766         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3767         * python/lib/gdb/function/caller_is.py: New file.
3768
3769 2014-09-06  Doug Evans  <xdje42@gmail.com>
3770
3771         * infcmd.c (program_info): Fix typo.
3772
3773 2014-09-05  Sergio Durigan Junior  <sergiodj@redhat.com>
3774
3775         PR gdb/17235
3776         * stap-probe.c (stap_parse_single_operand): Delete unused variable
3777         'number'.  New variable 'has_digit'.  Rewrite code to deal with
3778         subexpressions on SDT probes.
3779
3780 2014-09-04  Pedro Alves  <palves@redhat.com>
3781
3782         * c-exp.y (parse_number): Skip handling base-switching prefixes if
3783         the input is only one character long.
3784
3785 2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
3786
3787         PR fortran/17237
3788         * f-valprint.c (f_val_print): Specify the correct print option to
3789         use when printing integer values.
3790
3791 2014-09-04  Gary Benson  <gbenson@redhat.com>
3792
3793         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3794         Remove code to cope with LWPs wrapped as PIDs.
3795         Add assertions to ensure no wrapped LWPs are passed.
3796
3797 2014-09-04  Pedro Alves  <palves@redhat.com>
3798
3799         * value.c (value_ranges_copy_adjusted): New function, factored out
3800         from ...
3801         (value_contents_copy_raw): ... here.
3802         (unpack_value_bits_as_long_1): Rename back to ...
3803         (unpack_bits_as_long): ... this.  Remove 'original_value' and
3804         'result' parameters.  Change return type to LONGEST.
3805         (unpack_value_bits_as_long): Delete.
3806         (unpack_value_field_as_long_1): Delete.
3807         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3808         (unpack_value_bitfield): New function.
3809         (value_field_bitfield): Reimplement using unpack_value_bitfield.
3810         (value_fetch_lazy): Use unpack_value_bitfield.
3811         * value.h (unpack_value_bits_as_long): Delete declaration.
3812
3813 2014-09-03  Sasha Smundak  <asmundak@google.com>
3814
3815         * python/py-frame.c (frapy_read_register): New function.
3816
3817 2014-09-03  James Hogan  <james.hogan@imgtec.com>
3818
3819         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3820         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3821
3822 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
3823
3824         PR python/16699
3825         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3826         function.
3827         (add_cmd): Set "completer_handle_brkchars" to NULL.
3828         * cli/cli-decode.h (struct cmd_list_element)
3829         <completer_handle_brkchars>: New field.
3830         * command.h (completer_ftype_void): New typedef.
3831         (set_cmd_completer_handle_brkchars): New prototype.
3832         * completer.c (set_gdb_completion_word_break_characters): New
3833         function.
3834         (complete_line_internal): Call "completer_handle_brkchars"
3835         callback from command.
3836         * completer.h: Include "command.h".
3837         (set_gdb_completion_word_break_characters): New prototype.
3838         * python/py-cmd.c (cmdpy_completer_helper): New function.
3839         (cmdpy_completer_handle_brkchars): New function.
3840         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3841         (cmdpy_init): Set completer_handle_brkchars to
3842         cmdpy_completer_handle_brkchars.
3843
3844 2014-09-03  Gary Benson  <gbenson@redhat.com>
3845
3846         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3847         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
3848         Loop conditions changed to equivalent form.
3849         (struct x86_debug_reg_state): Updated dr_ref_count comment.
3850         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3851         ALL_DEBUG_ADDRESS_REGISTERS.
3852
3853 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
3854
3855         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3856         description fix.
3857
3858 2014-09-02  Doug Evans  <dje@google.com>
3859
3860         * typeprint.c (find_global_typedef): Fix comment.
3861
3862 2014-09-02  Gary Benson  <gbenson@redhat.com>
3863
3864         * i386-nat.h: Renamed as...
3865         * x86-nat.h: New file.  All type, function and variable name
3866         prefixes changed from "i386_" to "x86_".  All references updated.
3867         * i386-nat.c: Renamed as...
3868         * x86-nat.c: New file.  All type, function and variable name
3869         prefixes changed from "i386_" to "x86_".  All references updated.
3870         * common/i386-xstate.h: Renamed as...
3871         * common/x86-xstate.h: New file.  All type, function and variable
3872         name prefixes changed from "i386_" to "x86_".  All references
3873         updated.
3874         * nat/i386-cpuid.h: Renamed as...
3875         * nat/x86-cpuid.h: New file.  All type, function and variable name
3876         prefixes changed from "i386_" to "x86_".  All references updated.
3877         * nat/i386-gcc-cpuid.h: Renamed as...
3878         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
3879         name prefixes changed from "i386_" to "x86_".  All references
3880         updated.
3881         * nat/i386-dregs.h: Renamed as...
3882         * nat/x86-dregs.h: New file.  All type, function and variable name
3883         prefixes changed from "i386_" to "x86_".  All references updated.
3884         * nat/i386-dregs.c: Renamed as...
3885         * nat/x86-dregs.c: New file.  All type, function and variable name
3886         prefixes changed from "i386_" to "x86_".  All references updated.
3887
3888 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
3889
3890         * varobj.c (_initialize_varobj): Move to the end of file.
3891
3892 2014-08-29  Gary Benson  <gbenson@redhat.com>
3893
3894         * common/common-exceptions.h: New file.
3895         * common/common-exceptions.c: Likewise.
3896         * Makefile.in (SFILES): Add common/common-exceptions.c.
3897         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3898         (COMMON_OBS): Add common-exceptions.o.
3899         (common-exceptions.o): New rule.
3900         * exceptions.h (common-exceptions.h): Include.
3901         (gdb_setjmp.h): Do not include.
3902         (return_reason): Moved to common-exceptions.h.
3903         (enum return_reason): Likewise.
3904         (RETURN_MASK): Likewise.
3905         (typedef return_mask): Likewise.
3906         (enum errors): Likewise.
3907         (struct gdb_exception): Likewise.
3908         (exceptions_state_mc_init): Likewise.
3909         (exceptions_state_mc_action_iter): Likewise.
3910         (exceptions_state_mc_action_iter_1): Likewise.
3911         (TRY_CATCH): Likewise.
3912         (throw_exception): Likewise.
3913         (throw_verror): Likewise.
3914         (throw_vquit): Likewise.
3915         (throw_error): Likewise.
3916         (throw_quit): Likewise.
3917         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3918         (enum catcher_action): Likewise.
3919         (struct catcher): Likewise.
3920         (current_catcher): Likewise.
3921         (catcher_list_size): Likewise.
3922         (exceptions_state_mc_init): Likewise.
3923         (catcher_pop): Likewise.
3924         (exceptions_state_mc): Likewise.
3925         (exceptions_state_mc_action_iter): Likewise.
3926         (exceptions_state_mc_action_iter_1): Likewise.
3927         (throw_exception): Likewise.
3928         (exception_messages): Likewise.
3929         (exception_messages_size): Likewise.
3930         (throw_it): Likewise.
3931         (throw_verror): Likewise.
3932         (throw_vquit): Likewise.
3933         (throw_error): Likewise.
3934         (throw_quit): Likewise.
3935         (prepare_to_throw_exception): New function.
3936
3937 2014-08-29  Gary Benson  <gbenson@redhat.com>
3938
3939         * common/gdb_setjmp.h: New file.
3940         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3941         * configure.ac: Move sigsetjmp check...
3942         * common/common.m4: ...here.
3943         * configure: Regenerate.
3944         * cp-support.c (SIGJMP_BUF): Delete.
3945         (SIGSETJMP): Likewise.
3946         (SIGLONGJMP): Likewise.
3947         * exceptions.h (gdb_setjmp.h): Include.
3948         (setjmp.h): Do not include.
3949         (EXCEPTIONS_SIGJMP_BUF): Delete.
3950         (EXCEPTIONS_SIGSETJMP): Likewise.
3951         (EXCEPTIONS_SIGLONGJMP): Likewise.
3952         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3953         from gdb_setjmp.h.
3954         * exceptions.c: Likewise.
3955
3956 2014-08-29  Gary Benson  <gbenson@redhat.com>
3957
3958         * cleanups.h: Moved to...
3959         * common/cleanups.h: New file.
3960         * cleanups.c: Moved to...
3961         * common/cleanups.c: New file.  Include common-defs.h and
3962         cleanups.h.  Do not include defs.h.
3963         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3964         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3965         (cleanups.o): New rule.
3966
3967 2014-08-29  Gary Benson  <gbenson@redhat.com>
3968
3969         * common/errors.h (internal_warning): New declaration.
3970         (internal_vwarning): Likewise.
3971         * common/errors.c (internal_warning): New function.
3972         * utils.h (internal_warning): Don't declare.
3973         (internal_vwarning): Likewise.
3974         * utils.c (internal_warning): Removed.
3975
3976 2014-08-29  Gary Benson  <gbenson@redhat.com>
3977
3978         * main.c (captured_main): Use warning during startup.
3979         Prefix startup warning messages with command name.
3980
3981 2014-08-29  Gary Benson  <gbenson@redhat.com>
3982
3983         * main.c (captured_main): Handle usage errors with error.
3984
3985 2014-08-29  Gary Benson  <gbenson@redhat.com>
3986
3987         * go32-nat.c (go32_create_inferior): Replace a fprintf/
3988         exit pair with a call to error.  Wrap the message with _().
3989
3990 2014-08-29  Gary Benson  <gbenson@redhat.com>
3991
3992         * main.c (captured_main): Replace a fprintf/exit
3993         pair with a call to error.  Wrap the message with _().
3994
3995 2014-08-29  Gary Benson  <gbenson@redhat.com>
3996
3997         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3998         pairs with calls to error.  Wrap the message with _().
3999
4000 2014-08-29  Gary Benson  <gbenson@redhat.com>
4001
4002         * utils.c (vwarning): Protect calls to target_terminal_ours
4003         and wrap_here.
4004
4005 2014-08-29  Gary Benson  <gbenson@redhat.com>
4006
4007         * exceptions.c (print_flush): Protect calls to
4008         target_terminal_ours and wrap_here.
4009
4010 2014-08-29  Gary Benson  <gbenson@redhat.com>
4011
4012         * utils.h (filtered_printing_initialized): New declaration.
4013         * utils.c (abort_with_message): New function.
4014         (internal_vproblem): Use abort_with_message for first level
4015         recursive internal problems, and if gdb_stderr is not set up.
4016         Protect calls to target_terminal_ours, begin_line and query.
4017
4018 2014-08-28  Doug Evans  <dje@google.com>
4019
4020         * symtab.c (in_prologue): Move definition to better spot.
4021         (skip_prologue_using_sal): Ditto.
4022
4023 2014-08-28  Doug Evans  <dje@google.com>
4024
4025         * symtab.c (find_function_start_sal): Move definition to better spot.
4026
4027 2014-08-28  Yao Qi  <yao@codesourcery.com>
4028
4029         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
4030         found_stack_adjust in forward scan.  Remove condition check
4031         on found_stack_adjust which is always true.  Indent the code.
4032
4033 2014-08-28  Yao Qi  <yao@codesourcery.com>
4034
4035         * dwarf2read.c (dwarf_decode_lines): Update declaration.
4036         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
4037         (dwarf_decode_lines): Remove argument
4038         want_line_info.  Remove condition check on want_line_info.
4039         Callers update.
4040
4041 2014-08-27  Doug Evans  <dje@google.com>
4042
4043         * dwarf2read.c (dwarf_record_line): Fix typo.
4044
4045 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
4046
4047         * target.h (struct target_ops::to_terminal_save_ours): Remove
4048         declaration.
4049         (target_terminal_save_ours): Remove macro.
4050         * target-delegates.c: Regenerate.
4051         * inf-child.c (inf_child_target): Don't set the nonexistent
4052         field to_terminal_save_ours.
4053         * inferior.h (child_terminal_save_ours): Remove declaration.
4054         * terminal.h (gdb_save_tty_state): New declaration.
4055         * inflow.c (child_terminal_save_ours): Rename to ...
4056         (gdb_save_tty_state): ... this.
4057         * tui/tui.c: Include terminal.h.
4058         (tui_enable): Use gdb_save_tty_state instead of
4059         target_terminal_save_ours.
4060         (tui_disable): Likewise.
4061
4062 2014-08-25  Doug Evans  <dje@google.com>
4063
4064         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
4065         Pass NULL instead of 0 for context pointer.
4066
4067 2014-08-25  Yao Qi  <yao@codesourcery.com>
4068
4069         * dwarf2read.c: Fix grammatical error.
4070
4071 2014-08-24  Yao Qi  <yao@codesourcery.com>
4072
4073         * dwarf2read.c (scan_partial_symbols):  Update comments.
4074         Rename argument 'need_pc' with 'set_addrmap'.
4075         ï¼ˆadd_partial_namespace): Rename argument 'need_pc' with
4076         'set_addrmap'.
4077         (add_partial_module): Likewise.
4078         (add_partial_subprogram): Likewise.  Update comments.
4079         (dwarf2_name): Fix typo.
4080
4081 2014-08-22  Doug Evans  <dje@google.com>
4082
4083         PR 17276
4084         * dwarf2read.c (dwarf_record_line_p): New function.
4085         (dwarf_decode_lines_1): Ignore subsequent line number entries
4086         for the same line if any entry had a non-zero discriminator.
4087
4088 2014-08-22  Doug Evans  <dje@google.com>
4089
4090         * buildsym.h (record_line_ftype): New typedef.
4091         (record_line): Use it.
4092         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
4093         (dwarf_decode_lines_1): Call them.
4094
4095 2014-08-22  Yao Qi  <yao@codesourcery.com>
4096
4097         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
4098         (ctf_end): Remove code.
4099
4100 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
4101
4102         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
4103         (linux_make_corefile_notes): call update_thread_list, protected against
4104         exceptions.
4105
4106 2014-08-21  Pedro Alves  <palves@redhat.com>
4107
4108         * infcmd.c (attach_command): Remove comment.
4109
4110 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
4111
4112         * aarch64-linux-nat.c (dr_changed_t): Change the type from
4113         unsigned LONGEST to ULONGEST.
4114
4115 2014-08-20  Pedro Alves  <palves@redhat.com>
4116
4117         * Makefile.in (check-read1): New rule.
4118
4119 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
4120
4121         * value.c (value_from_contents_and_address): Strip resolved_type's
4122         typedef layers before checking its TYPE_DATA_LOCATION.
4123
4124 2014-08-20  Pedro Alves  <palves@redhat.com>
4125
4126         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
4127
4128 2014-08-20  Yao Qi  <yao@codesourcery.com>
4129
4130         * amd64-tdep.c (amd64_classify): Add a blank line after the
4131         example.  Move "*/" to a new line.
4132         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
4133         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
4134         * dwarf2read.c (psymtab_include_file_name): Likewise.
4135
4136 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
4137             Pedro Alves  <palves@redhat.com>
4138
4139         PR symtab/14604
4140         PR symtab/14605
4141         * ada-lang.c (coerce_unspec_val_to_type): Use
4142         value_contents_copy_raw.
4143         * ada-valprint.c (val_print_packed_array_elements): Adjust.
4144         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
4145         * cp-valprint.c (cp_print_value_fields): Let the common printing
4146         code handle optimized out values.
4147         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4148         * d-valprint.c (dynamic_array_type): Use
4149         value_bits_any_optimized_out.
4150         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4151         check_any_valid fields.
4152         (check_pieced_value_bits): Delete and inline ...
4153         (check_pieced_synthetic_pointer): ... here.
4154         (check_pieced_value_validity): Delete.
4155         (check_pieced_value_invalid): Delete.
4156         (pieced_value_funcs): Remove check_validity and check_any_valid
4157         fields.
4158         (read_pieced_value): Use mark_value_bits_optimized_out.
4159         (write_pieced_value): Switch to use
4160         mark_value_bytes_optimized_out.
4161         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4162         of assuming the whole value is optimized out.
4163         * findvar.c (read_frame_register_value): Remove special handling
4164         of optimized out registers.
4165         (value_from_register): Use mark_value_bytes_optimized_out.
4166         * frame-unwind.c (frame_unwind_got_optimized): Use
4167         mark_value_bytes_optimized_out.
4168         * jv-valprint.c (java_value_print): Adjust.
4169         (java_print_value_fields): Let the common printing code handle
4170         optimized out values.
4171         * mips-tdep.c (mips_print_register): Remove special handling of
4172         optimized out registers.
4173         * opencl-lang.c (lval_func_check_validity): Delete.
4174         (lval_func_check_any_valid): Delete.
4175         (opencl_value_funcs): Remove check_validity and check_any_valid
4176         fields.
4177         * p-valprint.c (pascal_object_print_value_fields): Let the common
4178         printing code handle optimized out values.
4179         * stack.c (read_frame_arg): Remove special handling of optimized
4180         out values.  Fetch both VAL and ENTRYVAL before comparing
4181         contents.  Adjust to value_available_contents_eq rename.
4182         * valprint.c (valprint_check_validity)
4183         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4184         (val_print_array_elements): Adjust.
4185         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4186         (value_bits_any_optimized_out): New function.
4187         (value_entirely_covered_by_range_vector): New function, factored
4188         out from value_entirely_unavailable.
4189         (value_entirely_unavailable): Reimplement.
4190         (value_entirely_optimized_out): New function.
4191         (insert_into_bit_range_vector): New function, factored out from
4192         mark_value_bits_unavailable.
4193         (mark_value_bits_unavailable): Reimplement.
4194         (struct ranges_and_idx): New struct.
4195         (find_first_range_overlap_and_match): New function, factored out
4196         from value_available_contents_bits_eq.
4197         (value_available_contents_bits_eq): Rename to ...
4198         (value_contents_bits_eq): ... this.  Check both unavailable
4199         contents and optimized out contents.
4200         (value_available_contents_eq): Rename to ...
4201         (value_contents_eq): ... this.
4202         (allocate_value_lazy): Remove reference to the old optimized_out
4203         boolean.
4204         (allocate_optimized_out_value): Use
4205         mark_value_bytes_optimized_out.
4206         (require_not_optimized_out): Adjust to check whether the
4207         optimized_out vec is empty.
4208         (ranges_copy_adjusted): New function, factored out from
4209         value_contents_copy_raw.
4210         (value_contents_copy_raw): Also copy the optimized out ranges.
4211         Assert the destination ranges aren't optimized out.
4212         (value_contents_copy): Update comment, remove call to
4213         require_not_optimized_out.
4214         (value_contents_equal): Adjust to check whether the optimized_out
4215         vec is empty.
4216         (set_value_optimized_out, value_optimized_out_const): Delete.
4217         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4218         New functions.
4219         (value_entirely_optimized_out, value_bits_valid): Delete.
4220         (value_copy): Take a VEC copy of the 'optimized_out' field.
4221         (value_primitive_field): Remove special handling of optimized out.
4222         (value_fetch_lazy): Assert that lazy values have no unavailable
4223         regions.  Use value_bits_any_optimized_out.  Remove some special
4224         handling for optimized out values.
4225         * value.h: Add intro comment about <optimized out> and
4226         <unavailable>.
4227         (struct lval_funcs): Remove check_validity and check_any_valid
4228         fields.
4229         (set_value_optimized_out, value_optimized_out_const): Remove.
4230         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4231         New declarations.
4232         (value_bits_any_optimized_out): New declaration.
4233         (value_bits_valid): Delete declaration.
4234         (value_available_contents_eq): Rename to ...
4235         (value_contents_eq): ... this, and extend comments.
4236
4237 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
4238
4239         Fix -fsanitize=address on unreadable inferior strings.
4240         * valprint.c (val_print_string): Fix access before BUFFER.
4241
4242 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
4243
4244         * target.c (target_struct_size): Remove.
4245         (target_struct_allocsize): Remove.
4246         (DEFAULT_ALLOCSIZE): Remove.
4247         (target_ops_p): New typedef.
4248         (DEF_VEC_P (target_ops_p)): New vector type.
4249         (target_structs): Change type to VEC (target_ops_p).
4250         (add_target_with_completer): Replace "push" code by VEC_safe_push.
4251         (find_default_run_target): Rewrite for loop following changes to
4252         target_structs.
4253
4254 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
4255
4256         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4257         Adjust code accordingly.  Adjust function description comment.
4258
4259 2014-08-19  Yao Qi  <yao@codesourcery.com>
4260
4261         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4262         types.
4263
4264 2014-08-19  Alan Modra  <amodra@gmail.com>
4265
4266         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4267         * config.in: Regenerate.
4268         * configure: Regenerate.
4269
4270 2014-08-19  Tom Tromey  <tromey@redhat.com>
4271             Gary Benson  <gbenson@redhat.com>
4272
4273         * common/common-debug.h: New file.
4274         * common/common-debug.c: Likewise.
4275         * debug.c: Likewise.
4276         * Makefile.in (SFILES): Add common/common-debug.c.
4277         (HFILES_NO_SRCDIR): Add common/common-debug.h.
4278         (COMMON_OBS): Add common-debug.o and debug.o.
4279         (common-debug.o): New rule.
4280         * common/common-defs.h: Include common-debug.h.
4281         * common/agent.c (debug_agent_printf): New function.
4282         (DEBUG_AGENT): Redefine.
4283         * nat/i386-dregs.c (debug_printf): Undefine.
4284
4285 2014-08-19  Gary Benson  <gbenson@redhat.com>
4286
4287         * common/common-defs.h: Include print-utils.h.
4288         * utils.h: Do not include print-utils.h.
4289
4290 2014-08-19  Tom Tromey  <tromey@redhat.com>
4291             Gary Benson  <gbenson@redhat.com>
4292
4293         * common/common-types.h: New file.
4294         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4295         * common/common-defs.h: Include common-types.h.
4296         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4297         (ULONGEST): Remove.
4298
4299 2014-08-19  Tom Tromey  <tromey@redhat.com>
4300             Gary Benson  <gbenson@redhat.com>
4301
4302         * common/errors.h: New file.
4303         * common/errors.c: Likewise.
4304         * Makefile.in (SFILES): Add common/errors.c.
4305         (HFILES_NO_SRCDIR): Add common/errors.h.
4306         (COMMON_OBS): Add errors.o.
4307         (errors.o): New rule.
4308         * common/common-defs.h: Include errors.h.
4309         * utils.h (perror_with_name, error, verror, warning, vwarning):
4310         Don't declare.
4311         * common/common-utils.h: (malloc_failure, internal_error):
4312         Likewise.
4313
4314 2014-08-19  Gary Benson  <gbenson@redhat.com>
4315
4316         * utils.c (internal_vproblem): Always print the message.
4317
4318 2014-08-18  Doug Evans  <dje@google.com>
4319
4320         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4321
4322 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
4323
4324         * ada-typeprint.c (type_is_full_subrange_of_target_type):
4325         Return 0 if TYPE is dynamic.
4326         (print_range): Add handling of dynamic ranges.
4327
4328 2014-08-18  Keven Boell  <keven.boell@intel.com>
4329             Joel Brobecker  <brobecker@adacore.com>
4330
4331         * gdbtypes.h (struct main_type): Add field "data_location".
4332         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4333         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4334         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4335         a dynamic data location.
4336         (resolve_dynamic_type): Add DW_AT_data_location handling.
4337         (copy_recursive, copy_type): Copy the data_location information
4338         when present.
4339         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4340         * value.c (value_from_contents_and_address): Add
4341         DW_AT_data_location handling.
4342
4343 2014-08-18  Keven Boell  <keven.boell@intel.com>
4344             Joel Brobecker  <brobecker@adacore.com>
4345
4346         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4347         field "get_object_address".
4348         * dwarf2expr.c (execute_stack_op): Add handling for
4349         DW_OP_push_object_address.
4350         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4351         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4352         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4353         (dwarf_expr_get_obj_addr): New function.
4354         (dwarf_expr_ctx_funcs): Add get_object_address field.
4355         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4356         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
4357         (dwarf2_evaluate_property): Add parameter "address".  Use it.
4358         (needs_get_obj_addr): New function.
4359         (needs_frame_ctx_funcs): Add get_object_address field.
4360         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4361         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
4362         (resolve_dynamic_array): Likewise.
4363
4364 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
4365
4366         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4367         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4368         fixed value for records and unions for which some GNAT encodings
4369         are present.
4370
4371 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
4372
4373         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4374         rewrite to avoid "else if" and "else" constructs.  Should be
4375         a no-op in practice.
4376
4377 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
4378
4379         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4380         of lexical block.
4381
4382 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
4383
4384         PR c++/17132
4385         * eval.c: Update all calls to find_overload_match.
4386         * valarith.c: Likewise.
4387         (value_user_defined_cpp_op, value_user_defined_op): New
4388         argument NOSIDE.  Update all callers.
4389         * valops.c (find_overload_match): New argument NOSIDE.
4390         * value.h (find_overload_match): Update signature.
4391
4392 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
4393
4394         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4395         'items' methods instead of 'iteritems' method on dictionaries.
4396
4397 2014-08-15  Doug Evans  <dje@google.com>
4398
4399         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4400         closer to use.
4401
4402 2014-08-15  Doug Evans  <dje@google.com>
4403
4404         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4405
4406 2014-08-15  Doug Evans  <dje@google.com>
4407
4408         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4409
4410 2014-08-15  Doug Evans  <dje@google.com>
4411
4412         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4413         unused.
4414
4415 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
4416
4417         * dcache.h: Include target.h, to avoid compile time warnings.
4418
4419 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
4420
4421         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
4422         frame_info" partial declaration.
4423         * gdbarch.h: Regenerate.
4424
4425 2014-08-15  Yao Qi  <yao@codesourcery.com>
4426
4427         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4428         Add parameter 'decode_for_pst_p'.  Callers update.
4429
4430 2014-08-13  Yao Qi  <yao@codesourcery.com>
4431
4432         PR build/17104
4433         * configure.ac: Use local variable 'pos'.
4434         * configure: Regenerated.
4435
4436 2014-08-11  Doug Evans  <dje@google.com>
4437
4438         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4439         message, it is redundant with "Reading symbols from ..." message.
4440
4441 2014-08-10  Doug Evans  <xdje42@gmail.com>
4442
4443         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4444
4445 2014-08-09  Yao Qi  <yao@codesourcery.com>
4446
4447         PR remote/9053
4448         * remote.c (remote_xfer_partial): Remove dead code.
4449
4450 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4451
4452         * ia64-linux-tdep.c: Include "regset.h".
4453         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4454         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4455         (ia64_linux_supply_fpregset): New function.
4456         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4457         (ia64_linux_regset_from_core_section): New function.
4458         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4459         method.
4460
4461 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4462
4463         * m68klinux-tdep.c: Include "regset.h".
4464         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4465         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4466         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4467         (m68k_linux_regset_from_core_section): New function.
4468         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4469         method.
4470
4471 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4472
4473         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4474         function.  Move logic to...
4475         (tilegx_linux_regmap): ... this new register map.
4476         (tilegx_linux_regset): Refer to register map, replace supply
4477         method by regcache_supply_regset, and add collect method.
4478         * tilegx-tdep.h (enum tilegx_regnum): New enum value
4479         TILEGX_FIRST_EASY_REGNUM.
4480
4481 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4482
4483         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4484         that calls regcache_supply_regset and handles the EPC register
4485         separately.  Move main logic to...
4486         (score7_linux_gregmap): ... this new register map.
4487         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4488         (score7_linux_gregset): Refer to register map.  Add collect method.
4489         (score7_linux_regset_from_core_section): Replace
4490         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4491         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4492         (struct regset): Delete unused forward declaraction.
4493         (struct pt_regs): Delete structure definition.
4494         (elf_gregset_t): Delete typedef.
4495
4496 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4497
4498         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4499         (nios2_core_regset): Add collect method.
4500
4501 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4502
4503         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4504         platform-independent and don't write to read-only input buffer.
4505         (m32r_linux_collect_gregset): New function.
4506         (m32r_linux_gregset): Add collect method.
4507
4508 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4509
4510         * hppa-linux-tdep.c (greg_map): Rename to...
4511         (hppa_linux_gregmap): ... this.  Also convert to
4512         regcache_map_entry format.
4513         (hppa_linux_supply_regset): Delete function.
4514         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
4515         (hppa_linux_fpregmap): ... this new register map.
4516         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4517         register map, replace supply method by regcache_supply_regset, and
4518         add collect method regcache_collect_regset.
4519
4520 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4521
4522         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4523         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4524         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4525         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4526         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4527         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4528         (frv_linux_supply_gregset): Replace main logic by call to
4529         regcache_supply_regset, but keep clearing gr32-gr63.
4530         (frv_linux_supply_fpregset): Delete function.
4531         (frv_linux_gregset): Refer to appropriate register map and add
4532         regcache_collect_regset as the collect method.
4533         (frv_linux_fpregset): Likewise.  Also exchange the supply method
4534         by regcache_supply_regset.
4535
4536 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4537
4538         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4539         by call to alpha_supply_int_regs.
4540         (alpha_linux_collect_gregset): New function.
4541         (alpha_linux_supply_fpregset): Replace logic by call to
4542         alpha_supply_fp_regs.
4543         (alpha_linux_collect_fpregset): New function.
4544         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4545
4546 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4547
4548         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4549         by call to regcache_collect_regset.
4550         (supply_gregset, supply_fpregset): Call regcache_supply_regset
4551         instead of aarch64_linux_supply_gregset/_fpregset.
4552         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4553         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4554         header file instead.
4555         (aarch64_linux_supply_gregset, supply_gregset_from_core)
4556         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4557         functions.  Move logic to ...
4558         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4559         register maps.
4560         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4561         refer to new register maps, replace *_regset_from_core by
4562         regcache_supply_regset, and also use regcache_collect_regset.
4563         * aarch64-linux-tdep.h: Include "regset.h".
4564         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4565         Delete prototypes.
4566         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4567         macros, moved from C source file.
4568         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4569         variable declarations.
4570
4571 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4572
4573         * s390-linux-nat.c: Include "regset.h".
4574         (regmap_gregset): Delete macro.
4575         (s390_64_regmap_gregset): New register map for
4576         regcache_supply/_collect_regset.
4577         (s390_64_gregset): New regset.
4578         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4579         (regmap_fpregset): Delete macro.
4580         (s390_native_supply, s390_native_collect): Delete functions.
4581         (supply_gregset, fill_gregset): Replace s390-specific regmap
4582         handling by a call to regcache_supply/_collect_regset.
4583         (supply_fpregset, fill_fpregset): Call regcache_supply/
4584         _collect_regset instead of s390_native_supply/_collect.
4585         (fetch_regset, store_regset): Likewise.  Also change the last
4586         parameter to a regset instead of a regmap.
4587         (s390_linux_fetch_inferior_registers)
4588         (390_linux_store_inferior_registers): Adjust last parameter in
4589         calls to fetch_regset and store_regset.
4590         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4591         (s390_gregmap): ... this.  Also make static const and convert to
4592         regcache_map_entry format.
4593         (s390x_regmap_gregset): Delete.
4594         (s390_regmap_fpregset): Rename to...
4595         (s390_fpregmap): ... this.  Make static const and convert to
4596         regcache_map_entry format.
4597         (s390_regmap_upper, s390_regmap_last_break)
4598         (s390x_regmap_last_break, s390_regmap_system_call)
4599         (s390_regmap_tdb): Likewise.
4600         (s390_supply_regset, s390_collect_regset): Remove functions.
4601         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4602         s390_supply_regset.
4603         (s390_gregset, s390_fpregset, s390_upper_regset)
4604         (s390_last_break_regset, s390x_last_break_regset)
4605         (s390_system_call_regset, s390_tdb_regset): Make global and
4606         replace s390_supply/_collect_regset by regcache_supply/
4607         _collect_regset.
4608         (s390x_gregset): Delete.
4609         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4610         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4611         (s390_regmap_fpregset, s390_regmap_last_break)
4612         (s390x_regmap_last_break, s390_regmap_system_call)
4613         (s390_regmap_tdb): Delete global variable declarations.
4614         (s390_gregset, s390_fpregset, s390_last_break_regset)
4615         (s390x_last_break_regset, s390_system_call_regset)
4616         (s390_tdb_regset): New global variable declarations.
4617
4618 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4619
4620         * regcache.c: Include "regset.h".
4621         (regcache_transfer_regset): New local function.
4622         (regcache_supply_regset, regcache_collect_regset): New functions.
4623         * regcache.h (struct regcache_map_entry): New structure.
4624         (REGCACHE_MAP_SKIP): New enum value.
4625         (regcache_supply_regset, regcache_collect_regset): New prototypes.
4626
4627 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4628
4629         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4630         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4631         (ppc_linux_collect_gregset ): Likewise.
4632         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4633         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4634         (ppc_collect_vrregset): Likewise.
4635         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4636         Likewise.
4637
4638 2014-08-07  Yao Qi  <yao@codesourcery.com>
4639
4640         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4641         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4642         * remote.c (remote_read_bytes): Likewise.
4643
4644 2014-08-07  Yao Qi  <yao@codesourcery.com>
4645
4646         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4647
4648 2014-08-07  Yao Qi  <yao@codesourcery.com>
4649
4650         PR remote/17230
4651         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4652         TARGET_XFER_OK instead of 0.
4653
4654 2014-08-07  Gary Benson  <gbenson@redhat.com>
4655
4656         * common/common-defs.h: Include errno.h.
4657         * defs.h: Do not include errno.h.
4658         * ada-typeprint.c: Likewise.
4659         * c-typeprint.c: Likewise.
4660         * core-regset.c: Likewise.
4661         * corefile.c: Likewise.
4662         * corelow.c: Likewise.
4663         * event-loop.c: Likewise.
4664         * f-typeprint.c: Likewise.
4665         * gnu-nat.c: Likewise.
4666         * go32-nat.c: Likewise.
4667         * i386gnu-nat.c: Likewise.
4668         * m2-typeprint.c: Likewise.
4669         * nat/linux-btrace.c: Likewise.
4670         * p-typeprint.c: Likewise.
4671         * procfs.c: Likewise.
4672         * remote-sim.c: Likewise.
4673         * rs6000-nat.c: Likewise.
4674         * target.c: Likewise.
4675         * typeprint.c: Likewise.
4676         * ui-file.c: Likewise.
4677         * valops.c: Likewise.
4678         * valprint.c: Likewise.
4679
4680 2014-08-07  Gary Benson  <gbenson@redhat.com>
4681
4682         * common/common-defs.h: Include string.h.
4683         * aarch64-tdep.c: Do not include string.h.
4684         * ada-exp.y: Likewise.
4685         * ada-lang.c: Likewise.
4686         * ada-lex.l: Likewise.
4687         * ada-typeprint.c: Likewise.
4688         * ada-valprint.c: Likewise.
4689         * aix-thread.c: Likewise.
4690         * alpha-linux-tdep.c: Likewise.
4691         * alpha-mdebug-tdep.c: Likewise.
4692         * alpha-nat.c: Likewise.
4693         * alpha-osf1-tdep.c: Likewise.
4694         * alpha-tdep.c: Likewise.
4695         * alphanbsd-tdep.c: Likewise.
4696         * amd64-dicos-tdep.c: Likewise.
4697         * amd64-linux-tdep.c: Likewise.
4698         * amd64-nat.c: Likewise.
4699         * amd64-sol2-tdep.c: Likewise.
4700         * amd64fbsd-tdep.c: Likewise.
4701         * amd64obsd-tdep.c: Likewise.
4702         * arch-utils.c: Likewise.
4703         * arm-linux-nat.c: Likewise.
4704         * arm-linux-tdep.c: Likewise.
4705         * arm-tdep.c: Likewise.
4706         * arm-wince-tdep.c: Likewise.
4707         * armbsd-tdep.c: Likewise.
4708         * armnbsd-nat.c: Likewise.
4709         * armnbsd-tdep.c: Likewise.
4710         * armobsd-tdep.c: Likewise.
4711         * avr-tdep.c: Likewise.
4712         * ax-gdb.c: Likewise.
4713         * ax-general.c: Likewise.
4714         * bcache.c: Likewise.
4715         * bfin-tdep.c: Likewise.
4716         * breakpoint.c: Likewise.
4717         * build-id.c: Likewise.
4718         * buildsym.c: Likewise.
4719         * c-exp.y: Likewise.
4720         * c-lang.c: Likewise.
4721         * c-typeprint.c: Likewise.
4722         * c-valprint.c: Likewise.
4723         * charset.c: Likewise.
4724         * cli-out.c: Likewise.
4725         * cli/cli-cmds.c: Likewise.
4726         * cli/cli-decode.c: Likewise.
4727         * cli/cli-dump.c: Likewise.
4728         * cli/cli-interp.c: Likewise.
4729         * cli/cli-logging.c: Likewise.
4730         * cli/cli-script.c: Likewise.
4731         * cli/cli-setshow.c: Likewise.
4732         * cli/cli-utils.c: Likewise.
4733         * coffread.c: Likewise.
4734         * common/agent.c: Likewise.
4735         * common/buffer.c: Likewise.
4736         * common/buffer.h: Likewise.
4737         * common/common-utils.c: Likewise.
4738         * common/filestuff.c: Likewise.
4739         * common/filestuff.c: Likewise.
4740         * common/format.c: Likewise.
4741         * common/print-utils.c: Likewise.
4742         * common/rsp-low.c: Likewise.
4743         * common/signals.c: Likewise.
4744         * common/vec.h: Likewise.
4745         * common/xml-utils.c: Likewise.
4746         * core-regset.c: Likewise.
4747         * corefile.c: Likewise.
4748         * corelow.c: Likewise.
4749         * cp-abi.c: Likewise.
4750         * cp-name-parser.y: Likewise.
4751         * cp-support.c: Likewise.
4752         * cp-valprint.c: Likewise.
4753         * cris-tdep.c: Likewise.
4754         * d-exp.y: Likewise.
4755         * darwin-nat.c: Likewise.
4756         * dbxread.c: Likewise.
4757         * dcache.c: Likewise.
4758         * demangle.c: Likewise.
4759         * dicos-tdep.c: Likewise.
4760         * disasm.c: Likewise.
4761         * doublest.c: Likewise.
4762         * dsrec.c: Likewise.
4763         * dummy-frame.c: Likewise.
4764         * dwarf2-frame.c: Likewise.
4765         * dwarf2loc.c: Likewise.
4766         * dwarf2read.c: Likewise.
4767         * elfread.c: Likewise.
4768         * environ.c: Likewise.
4769         * eval.c: Likewise.
4770         * event-loop.c: Likewise.
4771         * exceptions.c: Likewise.
4772         * exec.c: Likewise.
4773         * expprint.c: Likewise.
4774         * f-exp.y: Likewise.
4775         * f-lang.c: Likewise.
4776         * f-typeprint.c: Likewise.
4777         * f-valprint.c: Likewise.
4778         * fbsd-nat.c: Likewise.
4779         * findcmd.c: Likewise.
4780         * findvar.c: Likewise.
4781         * fork-child.c: Likewise.
4782         * frame.c: Likewise.
4783         * frv-linux-tdep.c: Likewise.
4784         * frv-tdep.c: Likewise.
4785         * gdb.c: Likewise.
4786         * gdb_bfd.c: Likewise.
4787         * gdbarch.c: Likewise.
4788         * gdbarch.sh: Likewise.
4789         * gdbtypes.c: Likewise.
4790         * gnu-nat.c: Likewise.
4791         * gnu-v2-abi.c: Likewise.
4792         * gnu-v3-abi.c: Likewise.
4793         * go-exp.y: Likewise.
4794         * go-lang.c: Likewise.
4795         * go32-nat.c: Likewise.
4796         * guile/guile.c: Likewise.
4797         * guile/scm-auto-load.c: Likewise.
4798         * hppa-hpux-tdep.c: Likewise.
4799         * hppa-linux-nat.c: Likewise.
4800         * hppanbsd-tdep.c: Likewise.
4801         * hppaobsd-tdep.c: Likewise.
4802         * i386-cygwin-tdep.c: Likewise.
4803         * i386-dicos-tdep.c: Likewise.
4804         * i386-linux-tdep.c: Likewise.
4805         * i386-nto-tdep.c: Likewise.
4806         * i386-sol2-tdep.c: Likewise.
4807         * i386-tdep.c: Likewise.
4808         * i386bsd-tdep.c: Likewise.
4809         * i386gnu-nat.c: Likewise.
4810         * i386nbsd-tdep.c: Likewise.
4811         * i386obsd-tdep.c: Likewise.
4812         * i387-tdep.c: Likewise.
4813         * ia64-libunwind-tdep.c: Likewise.
4814         * ia64-linux-nat.c: Likewise.
4815         * inf-child.c: Likewise.
4816         * inf-ptrace.c: Likewise.
4817         * inf-ttrace.c: Likewise.
4818         * infcall.c: Likewise.
4819         * infcmd.c: Likewise.
4820         * inflow.c: Likewise.
4821         * infrun.c: Likewise.
4822         * interps.c: Likewise.
4823         * iq2000-tdep.c: Likewise.
4824         * irix5-nat.c: Likewise.
4825         * jv-exp.y: Likewise.
4826         * jv-lang.c: Likewise.
4827         * jv-typeprint.c: Likewise.
4828         * jv-valprint.c: Likewise.
4829         * language.c: Likewise.
4830         * linux-fork.c: Likewise.
4831         * linux-nat.c: Likewise.
4832         * lm32-tdep.c: Likewise.
4833         * m2-exp.y: Likewise.
4834         * m2-typeprint.c: Likewise.
4835         * m32c-tdep.c: Likewise.
4836         * m32r-linux-nat.c: Likewise.
4837         * m32r-linux-tdep.c: Likewise.
4838         * m32r-rom.c: Likewise.
4839         * m32r-tdep.c: Likewise.
4840         * m68hc11-tdep.c: Likewise.
4841         * m68k-tdep.c: Likewise.
4842         * m68kbsd-tdep.c: Likewise.
4843         * m68klinux-nat.c: Likewise.
4844         * m68klinux-tdep.c: Likewise.
4845         * m88k-tdep.c: Likewise.
4846         * machoread.c: Likewise.
4847         * macrocmd.c: Likewise.
4848         * main.c: Likewise.
4849         * mdebugread.c: Likewise.
4850         * mem-break.c: Likewise.
4851         * memattr.c: Likewise.
4852         * memory-map.c: Likewise.
4853         * mep-tdep.c: Likewise.
4854         * mi/mi-cmd-break.c: Likewise.
4855         * mi/mi-cmd-disas.c: Likewise.
4856         * mi/mi-cmd-env.c: Likewise.
4857         * mi/mi-cmd-stack.c: Likewise.
4858         * mi/mi-cmd-var.c: Likewise.
4859         * mi/mi-cmds.c: Likewise.
4860         * mi/mi-console.c: Likewise.
4861         * mi/mi-getopt.c: Likewise.
4862         * mi/mi-interp.c: Likewise.
4863         * mi/mi-main.c: Likewise.
4864         * mi/mi-parse.c: Likewise.
4865         * microblaze-rom.c: Likewise.
4866         * microblaze-tdep.c: Likewise.
4867         * mingw-hdep.c: Likewise.
4868         * minidebug.c: Likewise.
4869         * minsyms.c: Likewise.
4870         * mips-irix-tdep.c: Likewise.
4871         * mips-linux-tdep.c: Likewise.
4872         * mips-tdep.c: Likewise.
4873         * mips64obsd-tdep.c: Likewise.
4874         * mipsnbsd-tdep.c: Likewise.
4875         * mipsread.c: Likewise.
4876         * mn10300-linux-tdep.c: Likewise.
4877         * mn10300-tdep.c: Likewise.
4878         * monitor.c: Likewise.
4879         * moxie-tdep.c: Likewise.
4880         * mt-tdep.c: Likewise.
4881         * nat/linux-btrace.c: Likewise.
4882         * nat/linux-osdata.c: Likewise.
4883         * nat/linux-procfs.c: Likewise.
4884         * nat/linux-ptrace.c: Likewise.
4885         * nat/linux-waitpid.c: Likewise.
4886         * nbsd-tdep.c: Likewise.
4887         * nios2-linux-tdep.c: Likewise.
4888         * nto-procfs.c: Likewise.
4889         * nto-tdep.c: Likewise.
4890         * objc-lang.c: Likewise.
4891         * objfiles.c: Likewise.
4892         * opencl-lang.c: Likewise.
4893         * osabi.c: Likewise.
4894         * osdata.c: Likewise.
4895         * p-exp.y: Likewise.
4896         * p-lang.c: Likewise.
4897         * p-typeprint.c: Likewise.
4898         * parse.c: Likewise.
4899         * posix-hdep.c: Likewise.
4900         * ppc-linux-nat.c: Likewise.
4901         * ppc-sysv-tdep.c: Likewise.
4902         * ppcfbsd-tdep.c: Likewise.
4903         * ppcnbsd-tdep.c: Likewise.
4904         * ppcobsd-tdep.c: Likewise.
4905         * printcmd.c: Likewise.
4906         * procfs.c: Likewise.
4907         * prologue-value.c: Likewise.
4908         * python/py-auto-load.c: Likewise.
4909         * python/py-gdb-readline.c: Likewise.
4910         * ravenscar-thread.c: Likewise.
4911         * regcache.c: Likewise.
4912         * registry.c: Likewise.
4913         * remote-fileio.c: Likewise.
4914         * remote-m32r-sdi.c: Likewise.
4915         * remote-mips.c: Likewise.
4916         * remote-notif.c: Likewise.
4917         * remote-sim.c: Likewise.
4918         * remote.c: Likewise.
4919         * reverse.c: Likewise.
4920         * rs6000-aix-tdep.c: Likewise.
4921         * ser-base.c: Likewise.
4922         * ser-go32.c: Likewise.
4923         * ser-mingw.c: Likewise.
4924         * ser-pipe.c: Likewise.
4925         * ser-tcp.c: Likewise.
4926         * ser-unix.c: Likewise.
4927         * serial.c: Likewise.
4928         * sh-tdep.c: Likewise.
4929         * sh64-tdep.c: Likewise.
4930         * shnbsd-tdep.c: Likewise.
4931         * skip.c: Likewise.
4932         * sol-thread.c: Likewise.
4933         * solib-dsbt.c: Likewise.
4934         * solib-frv.c: Likewise.
4935         * solib-osf.c: Likewise.
4936         * solib-som.c: Likewise.
4937         * solib-spu.c: Likewise.
4938         * solib-target.c: Likewise.
4939         * solib.c: Likewise.
4940         * somread.c: Likewise.
4941         * source.c: Likewise.
4942         * sparc-nat.c: Likewise.
4943         * sparc-sol2-tdep.c: Likewise.
4944         * sparc-tdep.c: Likewise.
4945         * sparc64-tdep.c: Likewise.
4946         * sparc64fbsd-tdep.c: Likewise.
4947         * sparc64nbsd-tdep.c: Likewise.
4948         * sparcnbsd-tdep.c: Likewise.
4949         * spu-linux-nat.c: Likewise.
4950         * spu-multiarch.c: Likewise.
4951         * spu-tdep.c: Likewise.
4952         * stabsread.c: Likewise.
4953         * stack.c: Likewise.
4954         * std-regs.c: Likewise.
4955         * symfile.c: Likewise.
4956         * symmisc.c: Likewise.
4957         * symtab.c: Likewise.
4958         * target.c: Likewise.
4959         * thread.c: Likewise.
4960         * tilegx-linux-nat.c: Likewise.
4961         * tilegx-tdep.c: Likewise.
4962         * top.c: Likewise.
4963         * tracepoint.c: Likewise.
4964         * tui/tui-command.c: Likewise.
4965         * tui/tui-data.c: Likewise.
4966         * tui/tui-disasm.c: Likewise.
4967         * tui/tui-file.c: Likewise.
4968         * tui/tui-layout.c: Likewise.
4969         * tui/tui-out.c: Likewise.
4970         * tui/tui-regs.c: Likewise.
4971         * tui/tui-source.c: Likewise.
4972         * tui/tui-stack.c: Likewise.
4973         * tui/tui-win.c: Likewise.
4974         * tui/tui-windata.c: Likewise.
4975         * tui/tui-winsource.c: Likewise.
4976         * typeprint.c: Likewise.
4977         * ui-file.c: Likewise.
4978         * ui-out.c: Likewise.
4979         * user-regs.c: Likewise.
4980         * utils.c: Likewise.
4981         * v850-tdep.c: Likewise.
4982         * valarith.c: Likewise.
4983         * valops.c: Likewise.
4984         * valprint.c: Likewise.
4985         * value.c: Likewise.
4986         * varobj.c: Likewise.
4987         * vax-tdep.c: Likewise.
4988         * vaxnbsd-tdep.c: Likewise.
4989         * vaxobsd-tdep.c: Likewise.
4990         * windows-nat.c: Likewise.
4991         * xcoffread.c: Likewise.
4992         * xml-support.c: Likewise.
4993         * xstormy16-tdep.c: Likewise.
4994         * xtensa-linux-nat.c: Likewise.
4995
4996 2014-08-07  Gary Benson  <gbenson@redhat.com>
4997
4998         * common/common-defs.h: Include gdb_assert.h.
4999         * aarch64-tdep.c: Do not include gdb_assert.h.
5000         * addrmap.c: Likewise.
5001         * aix-thread.c: Likewise.
5002         * alpha-linux-tdep.c: Likewise.
5003         * alpha-mdebug-tdep.c: Likewise.
5004         * alphanbsd-tdep.c: Likewise.
5005         * amd64-nat.c: Likewise.
5006         * amd64-tdep.c: Likewise.
5007         * amd64bsd-nat.c: Likewise.
5008         * amd64fbsd-nat.c: Likewise.
5009         * amd64fbsd-tdep.c: Likewise.
5010         * amd64nbsd-nat.c: Likewise.
5011         * amd64nbsd-tdep.c: Likewise.
5012         * amd64obsd-nat.c: Likewise.
5013         * amd64obsd-tdep.c: Likewise.
5014         * arch-utils.c: Likewise.
5015         * arm-tdep.c: Likewise.
5016         * armbsd-tdep.c: Likewise.
5017         * auxv.c: Likewise.
5018         * bcache.c: Likewise.
5019         * bfin-tdep.c: Likewise.
5020         * blockframe.c: Likewise.
5021         * breakpoint.c: Likewise.
5022         * bsd-kvm.c: Likewise.
5023         * bsd-uthread.c: Likewise.
5024         * buildsym.c: Likewise.
5025         * c-exp.y: Likewise.
5026         * c-lang.c: Likewise.
5027         * charset.c: Likewise.
5028         * cleanups.c: Likewise.
5029         * cli-out.c: Likewise.
5030         * cli/cli-decode.c: Likewise.
5031         * cli/cli-dump.c: Likewise.
5032         * cli/cli-logging.c: Likewise.
5033         * cli/cli-script.c: Likewise.
5034         * cli/cli-utils.c: Likewise.
5035         * coffread.c: Likewise.
5036         * common/common-utils.c: Likewise.
5037         * common/queue.h: Likewise.
5038         * common/signals.c: Likewise.
5039         * common/vec.h: Likewise.
5040         * complaints.c: Likewise.
5041         * completer.c: Likewise.
5042         * corelow.c: Likewise.
5043         * cp-abi.c: Likewise.
5044         * cp-name-parser.y: Likewise.
5045         * cp-namespace.c: Likewise.
5046         * cp-support.c: Likewise.
5047         * cris-tdep.c: Likewise.
5048         * dbxread.c: Likewise.
5049         * dictionary.c: Likewise.
5050         * doublest.c: Likewise.
5051         * dsrec.c: Likewise.
5052         * dummy-frame.c: Likewise.
5053         * dwarf2-frame-tailcall.c: Likewise.
5054         * dwarf2-frame.c: Likewise.
5055         * dwarf2expr.c: Likewise.
5056         * dwarf2loc.c: Likewise.
5057         * dwarf2read.c: Likewise.
5058         * eval.c: Likewise.
5059         * event-loop.c: Likewise.
5060         * exceptions.c: Likewise.
5061         * expprint.c: Likewise.
5062         * f-valprint.c: Likewise.
5063         * fbsd-nat.c: Likewise.
5064         * findvar.c: Likewise.
5065         * frame-unwind.c: Likewise.
5066         * frame.c: Likewise.
5067         * frv-tdep.c: Likewise.
5068         * gcore.c: Likewise.
5069         * gdb-dlfcn.c: Likewise.
5070         * gdb_bfd.c: Likewise.
5071         * gdbarch.c: Likewise.
5072         * gdbarch.sh: Likewise.
5073         * gdbtypes.c: Likewise.
5074         * gnu-nat.c: Likewise.
5075         * gnu-v3-abi.c: Likewise.
5076         * go-lang.c: Likewise.
5077         * guile/scm-exception.c: Likewise.
5078         * guile/scm-gsmob.c: Likewise.
5079         * guile/scm-lazy-string.c: Likewise.
5080         * guile/scm-math.c: Likewise.
5081         * guile/scm-pretty-print.c: Likewise.
5082         * guile/scm-safe-call.c: Likewise.
5083         * guile/scm-utils.c: Likewise.
5084         * guile/scm-value.c: Likewise.
5085         * h8300-tdep.c: Likewise.
5086         * hppa-hpux-nat.c: Likewise.
5087         * hppa-tdep.c: Likewise.
5088         * hppanbsd-tdep.c: Likewise.
5089         * hppaobsd-tdep.c: Likewise.
5090         * i386-darwin-nat.c: Likewise.
5091         * i386-darwin-tdep.c: Likewise.
5092         * i386-nto-tdep.c: Likewise.
5093         * i386-tdep.c: Likewise.
5094         * i386bsd-nat.c: Likewise.
5095         * i386fbsd-tdep.c: Likewise.
5096         * i386gnu-nat.c: Likewise.
5097         * i386nbsd-tdep.c: Likewise.
5098         * i386obsd-tdep.c: Likewise.
5099         * i387-tdep.c: Likewise.
5100         * ia64-libunwind-tdep.c: Likewise.
5101         * ia64-tdep.c: Likewise.
5102         * inf-ptrace.c: Likewise.
5103         * inf-ttrace.c: Likewise.
5104         * infcall.c: Likewise.
5105         * infcmd.c: Likewise.
5106         * infrun.c: Likewise.
5107         * inline-frame.c: Likewise.
5108         * interps.c: Likewise.
5109         * jv-lang.c: Likewise.
5110         * jv-typeprint.c: Likewise.
5111         * linux-fork.c: Likewise.
5112         * linux-nat.c: Likewise.
5113         * linux-thread-db.c: Likewise.
5114         * m32c-tdep.c: Likewise.
5115         * m32r-linux-nat.c: Likewise.
5116         * m32r-tdep.c: Likewise.
5117         * m68k-tdep.c: Likewise.
5118         * m68kbsd-nat.c: Likewise.
5119         * m68kbsd-tdep.c: Likewise.
5120         * m88k-tdep.c: Likewise.
5121         * machoread.c: Likewise.
5122         * macroexp.c: Likewise.
5123         * macrotab.c: Likewise.
5124         * maint.c: Likewise.
5125         * mdebugread.c: Likewise.
5126         * memory-map.c: Likewise.
5127         * mep-tdep.c: Likewise.
5128         * mi/mi-common.c: Likewise.
5129         * microblaze-tdep.c: Likewise.
5130         * mingw-hdep.c: Likewise.
5131         * mips-linux-nat.c: Likewise.
5132         * mips-linux-tdep.c: Likewise.
5133         * mips-tdep.c: Likewise.
5134         * mips64obsd-tdep.c: Likewise.
5135         * mipsnbsd-tdep.c: Likewise.
5136         * mn10300-linux-tdep.c: Likewise.
5137         * mn10300-tdep.c: Likewise.
5138         * moxie-tdep.c: Likewise.
5139         * mt-tdep.c: Likewise.
5140         * nat/linux-btrace.c: Likewise.
5141         * nat/linux-osdata.c: Likewise.
5142         * nat/linux-ptrace.c: Likewise.
5143         * nat/mips-linux-watch.c: Likewise.
5144         * nios2-linux-tdep.c: Likewise.
5145         * nios2-tdep.c: Likewise.
5146         * objc-lang.c: Likewise.
5147         * objfiles.c: Likewise.
5148         * obsd-nat.c: Likewise.
5149         * opencl-lang.c: Likewise.
5150         * osabi.c: Likewise.
5151         * parse.c: Likewise.
5152         * ppc-linux-nat.c: Likewise.
5153         * ppc-sysv-tdep.c: Likewise.
5154         * ppcfbsd-nat.c: Likewise.
5155         * ppcfbsd-tdep.c: Likewise.
5156         * ppcnbsd-nat.c: Likewise.
5157         * ppcnbsd-tdep.c: Likewise.
5158         * ppcobsd-nat.c: Likewise.
5159         * ppcobsd-tdep.c: Likewise.
5160         * printcmd.c: Likewise.
5161         * procfs.c: Likewise.
5162         * prologue-value.c: Likewise.
5163         * psymtab.c: Likewise.
5164         * python/py-lazy-string.c: Likewise.
5165         * python/py-value.c: Likewise.
5166         * regcache.c: Likewise.
5167         * reggroups.c: Likewise.
5168         * registry.c: Likewise.
5169         * remote-sim.c: Likewise.
5170         * remote.c: Likewise.
5171         * rs6000-aix-tdep.c: Likewise.
5172         * rs6000-tdep.c: Likewise.
5173         * s390-linux-tdep.c: Likewise.
5174         * score-tdep.c: Likewise.
5175         * ser-base.c: Likewise.
5176         * ser-mingw.c: Likewise.
5177         * sh-tdep.c: Likewise.
5178         * sh64-tdep.c: Likewise.
5179         * solib-darwin.c: Likewise.
5180         * solib-spu.c: Likewise.
5181         * solib-svr4.c: Likewise.
5182         * source.c: Likewise.
5183         * sparc-nat.c: Likewise.
5184         * sparc-sol2-tdep.c: Likewise.
5185         * sparc-tdep.c: Likewise.
5186         * sparc64-sol2-tdep.c: Likewise.
5187         * sparc64-tdep.c: Likewise.
5188         * sparc64fbsd-tdep.c: Likewise.
5189         * sparc64nbsd-tdep.c: Likewise.
5190         * sparc64obsd-tdep.c: Likewise.
5191         * sparcnbsd-tdep.c: Likewise.
5192         * sparcobsd-tdep.c: Likewise.
5193         * spu-multiarch.c: Likewise.
5194         * spu-tdep.c: Likewise.
5195         * stabsread.c: Likewise.
5196         * stack.c: Likewise.
5197         * symfile.c: Likewise.
5198         * symtab.c: Likewise.
5199         * target-descriptions.c: Likewise.
5200         * target-memory.c: Likewise.
5201         * target.c: Likewise.
5202         * tic6x-linux-tdep.c: Likewise.
5203         * tic6x-tdep.c: Likewise.
5204         * tilegx-linux-nat.c: Likewise.
5205         * tilegx-tdep.c: Likewise.
5206         * top.c: Likewise.
5207         * tramp-frame.c: Likewise.
5208         * tui/tui-out.c: Likewise.
5209         * tui/tui-winsource.c: Likewise.
5210         * ui-out.c: Likewise.
5211         * user-regs.c: Likewise.
5212         * utils.c: Likewise.
5213         * v850-tdep.c: Likewise.
5214         * valops.c: Likewise.
5215         * value.c: Likewise.
5216         * varobj.c: Likewise.
5217         * vax-nat.c: Likewise.
5218         * xml-syscall.c: Likewise.
5219         * xml-tdesc.c: Likewise.
5220         * xstormy16-tdep.c: Likewise.
5221         * xtensa-linux-nat.c: Likewise.
5222         * xtensa-tdep.c: Likewise.
5223
5224 2014-08-07  Gary Benson  <gbenson@redhat.com>
5225
5226         * common/common-defs.h: Include common-utils.h.
5227         * defs.h: Do not include common-utils.h.
5228         * common/gdb_assert.h: Likewise.
5229         * darwin-nat.h: Likewise.
5230         * nat/linux-btrace.c: Likewise.
5231         * target/waitstatus.h: Likewise.
5232
5233 2014-08-07  Gary Benson  <gbenson@redhat.com>
5234
5235         * common/common-defs.h: Include ptid.h.
5236         * defs.h: Do not include ptid.h.
5237         * inferior.h: Likewise.
5238         * infrun.h: Likewise.
5239         * nat/linux-btrace.h: Likewise.
5240         * nat/linux-osdata.h: Likewise.
5241         * target/waitstatus.h: Likewise.
5242
5243 2014-08-07  Gary Benson  <gbenson@redhat.com>
5244
5245         * common/common-defs.h: Include gdb_locale.h.
5246         * defs.h: Do not include gdb_locale.h.
5247
5248 2014-08-07  Gary Benson  <gbenson@redhat.com>
5249
5250         * common/common-defs.h: Include gdb/signals.h.
5251         * defs.h: Do not include gdb/signals.h.
5252
5253 2014-08-07  Gary Benson  <gbenson@redhat.com>
5254
5255         * common/common-defs.h: Include pathmax.h.
5256         * defs.h: Do not include pathmax.h.
5257
5258 2014-08-07  Gary Benson  <gbenson@redhat.com>
5259
5260         * common/common-defs.h: Include libiberty.h.
5261         * defs.h: Do not include libiberty.h.
5262         * common/queue.h: Likewise.
5263         * cp-name-parser.y: Likewise.
5264         * mi/mi-cmd-catch.c: Likewise.
5265         * python/python.c: Likewise.
5266
5267 2014-08-07  Gary Benson  <gbenson@redhat.com>
5268
5269         * common/common-defs.h: Include ansidecl.h.
5270         * defs.h: Do not include ansidecl.h.
5271         * common/buffer.h: Likewise.
5272         * common/common-utils.h: Likewise.
5273
5274 2014-08-07  Gary Benson  <gbenson@redhat.com>
5275
5276         * common/common-defs.h: Include stddef.h.
5277         * defs.h: Do not include stddef.h.
5278         * common/common-utils.h: Likewise.
5279         * amd64fbsd-nat.c: Likewise.
5280         * bcache.c: Likewise.
5281         * charset.c: Likewise.
5282         * common/buffer.h: Likewise.
5283         * common/vec.h: Likewise.
5284         * i386bsd-nat.c: Likewise.
5285         * nat/linux-btrace.h: Likewise.
5286         * ppcfbsd-nat.c: Likewise.
5287         * ppcnbsd-tdep.h: Likewise.
5288         * ppcobsd-nat.c: Likewise.
5289         * ppcobsd-tdep.h: Likewise.
5290         * python/py-gdb-readline.c: Likewise.
5291
5292 2014-08-07  Gary Benson  <gbenson@redhat.com>
5293
5294         * common/common-defs.h: Include stdarg.h.
5295         * defs.h: Do not include stdarg.h.
5296         * ada-lang.c: Likewise.
5297         * common/common-utils.h: Likewise.
5298         * guile/scm-string.c: Likewise.
5299         * guile/scm-utils.c: Likewise.
5300         * m32c-tdep.c: Likewise.
5301
5302 2014-08-07  Gary Benson  <gbenson@redhat.com>
5303
5304         * common/common-defs.h: Include stdlib.h.
5305         * defs.h: Do not include stdlib.h.
5306         * addrmap.c: Likewise.
5307         * bcache.c: Likewise.
5308         * common/buffer.c: Likewise.
5309         * common/common-utils.c: Likewise.
5310         * cp-name-parser.y: Likewise.
5311         * go32-nat.c: Likewise.
5312         * mn10300-linux-tdep.c: Likewise.
5313         * nat/linux-osdata.c: Likewise.
5314         * tui/tui.c: Likewise.
5315         * windows-nat.c: Likewise.
5316
5317 2014-08-07  Gary Benson  <gbenson@redhat.com>
5318
5319         * common/common-defs.h: Include stdio.h.
5320         * defs.h: Do not include stdio.h.
5321         * ada-lang.c: Likewise.
5322         * common/buffer.c: Likewise.
5323         * common/common-utils.c: Likewise.
5324         * cp-name-parser.y: Likewise.
5325         * gnu-nat.c: Likewise.
5326         * go32-nat.c: Likewise.
5327         * i386gnu-nat.c: Likewise.
5328         * proc-api.c: Likewise.
5329         * proc-events.c: Likewise.
5330         * proc-flags.c: Likewise.
5331         * proc-why.c: Likewise.
5332         * python/python-internal.h: Likewise.
5333         * target-memory.c: Likewise.
5334         * tui/tui-io.c: Likewise.
5335         * tui/tui.c: Likewise.
5336
5337 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5338
5339         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5340         (scan_dyntag_auxv): Same.
5341
5342 2014-08-06  Yao Qi  <yao@codesourcery.com>
5343
5344         * amd64-linux-nat.c: Remove duplicated include
5345         "x86-linux-nat.h".
5346         * i386-linux-nat.c: Likewise.
5347
5348 2014-08-06  Yao Qi  <yao@codesourcery.com>
5349
5350         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5351         operand" with "Special opcode" in comments.
5352
5353 2014-08-05  Gary Benson  <gbenson@redhat.com>
5354
5355         * interps.c (initialize_interps): Remove prototype.
5356         (interpreter_initialized): Remove static global.
5357         (interp_add): Do not call initialize_interps.
5358         (initialize_interps): Remove function.
5359
5360 2014-08-05  Gary Benson  <gbenson@redhat.com>
5361
5362         * utils.c (vwarning): Remove spurious va_end.
5363
5364 2014-08-05  Alan Modra  <amodra@gmail.com>
5365
5366         * charset.c (convert_between_encodings): Cast result of obstack_base.
5367         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5368         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5369         (read_unwind_info): Use size_t for some locals.
5370         * jit.c (finalize_symtab): Likewise.
5371         * utils.c (hashtab_obstack_allocate): Likewise.
5372         * symmisc.c (print_objfile_statistics): Update format strings.
5373
5374 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5375
5376         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5377         (Changes in GDB 7.8): ... here.
5378
5379 2014-08-04  Tom Tromey  <tromey@redhat.com>
5380
5381         * target.c (set_targetdebug): New function.
5382         (initialize_targets): Pass set_targetdebug when creating "set
5383         debug target".
5384
5385 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
5386
5387         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5388         if detecting a variable-sized field that is not the last field.
5389         Fix struct type length computation.
5390
5391 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
5392
5393         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5394         Add debug trace.
5395
5396 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
5397
5398         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5399         Remove "+ 8" offset in computation of CHAIN_VMA.
5400
5401 2014-07-31  Doug Evans  <dje@google.com>
5402
5403         * inflow.c (child_terminal_inferior): Add comment.
5404         (child_terminal_ours_for_output): Add comment.
5405         (child_terminal_ours): Add comment.
5406         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5407         (linux_nat_terminal_ours): Add comment.
5408
5409 2014-07-31  Gary Benson  <gbenson@redhat.com>
5410
5411         * common/btrace-common.h: Do not include defs.h or server.h.
5412         * nat/mips-linux-watch.h: Likewise.
5413         * gdb-dlfcn.h: Do not include defs.h.
5414         * tracefile.h: Likewise.
5415
5416 2014-07-30  Roland McGrath  <mcgrathr@google.com>
5417
5418         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5419
5420 2014-07-30  Tom Tromey  <tromey@redhat.com>
5421
5422         * bsd-kvm.c (bsd_kvm_open): Constify.
5423         * corelow.c (core_open): Constify.
5424         * ctf.c (ctf_open): Constify.
5425         * dbug-rom.c (dbug_open): Constify.
5426         * exec.c (exec_open): Constify.
5427         * m32r-rom.c (m32r_open, mon2000_open): Constify.
5428         * microblaze-rom.c (picobug_open): Constify.
5429         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5430         Constify.
5431         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5432         * record-btrace.c (record_btrace_open): Constify.
5433         * record-full.c (record_full_core_open_1, record_full_open_1)
5434         (record_full_open): Constify.
5435         * remote-m32r-sdi.c (m32r_open): Constify.
5436         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5437         (rockhopper_open, lsi_open): Constify.
5438         * remote-sim.c (gdbsim_open): Constify.
5439         * remote.c (remote_open, extended_remote_open, remote_open_1):
5440         Constify.
5441         * target.h (struct target_ops) <to_open>: Make "arg" const.
5442         * tracefile-tfile.c (tfile_open): Constify.
5443
5444 2014-07-30  Tom Tromey  <tromey@redhat.com>
5445
5446         * breakpoint.c (map_breakpoint_numbers): Update.
5447         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
5448         (get_number_const): New function.
5449         (get_number): Rewrite using get_number_const.
5450         (init_number_or_range): Make "string" const.
5451         (number_is_in_list): Make "list" const.
5452         * cli/cli-utils.h (get_number_const): Declare.
5453         (struct get_number_or_range_state) <string, end_ptr>: Now const.
5454         (init_number_or_range, number_is_in_list): Update.
5455         * printcmd.c (map_display_numbers): Update.
5456         * value.c (value_from_history_ref): Constify.
5457         * value.h (value_from_history_ref): Update.
5458
5459 2014-07-30  Tom Tromey  <tromey@redhat.com>
5460
5461         * corefile.c (hook_type, call_extra_exec_file_hooks)
5462         (specify_exec_file_hook): Constify.
5463         * exec.c (exec_file_attach): Make "filename" const.
5464         * gdbcore.h (deprecated_exec_file_display_hook)
5465         (specify_exec_file_hook, exec_file_attach): Constify.
5466         * main.c (captured_main): Use catch_command_errors_const.
5467
5468 2014-07-30  Tom Tromey  <tromey@redhat.com>
5469
5470         * target.c (open_target): New function.
5471         (add_target_with_completer, add_deprecated_target_alias): Use
5472         set_cmd_sfunc, set_cmd_context.
5473         (debug_to_open): Remove.
5474         (setup_target_debug): Update.
5475
5476 2014-07-30  Yao Qi  <yao@codesourcery.com>
5477
5478         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5479         comments.
5480         * parse.c (exp_iterate): Update comments.
5481
5482 2014-07-30  Gary Benson  <gbenson@redhat.com>
5483
5484         * common/common-defs.h: New file.
5485         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5486         * defs.h: Include common-defs.h.
5487         Do not include config.h or build-gnulib/config.h.
5488
5489 2014-07-30  Gary Benson  <gbenson@redhat.com>
5490
5491         * common/common-utils.h: Do not include config.h.
5492         * nat/linux-btrace.h: Likewise.
5493
5494 2014-07-30  Gary Benson  <gbenson@redhat.com>
5495
5496         * btrace.c: Include defs.h.
5497         * common/ptid.c: Include defs.h or server.h as appropriate.
5498         * nat/mips-linux-watch.c: Likewise.
5499
5500 2014-07-29  Tom Tromey  <tromey@redhat.com>
5501
5502         * target.c (target_is_pushed): Simplify.
5503
5504 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
5505
5506         GDB 7.8 released.
5507
5508 2014-07-29  Yao Qi  <yao@codesourcery.com>
5509
5510         PR gdb/17206
5511         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5512
5513 2014-07-28  Doug Evans  <xdje42@gmail.com>
5514
5515         PR guile/17203
5516         * guile/scm-param.c (pascm_parameter_defined_p): New function.
5517         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
5518         parameters.
5519
5520 2014-07-28  Will Newton  <will.newton@linaro.org>
5521
5522         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5523         (THUMB2_SET_R7_SIGRETURN2): Likewise.
5524         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5525         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5526         (THUMB2_EABI_SYSCALL): Likewise.
5527         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5528         struct tramp_frame.
5529         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5530         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5531
5532 2014-07-27  Doug Evans  <xdje42@gmail.com>
5533
5534         * guile/scm-param.c (pascm_print_param_smob): Fix output.
5535
5536 2014-07-27  Doug Evans  <xdje42@gmail.com>
5537
5538         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5539
5540 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
5541             Doug Evans  <xdje42@gmail.com>
5542
5543         PR guile/17146
5544         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5545         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5546         * configure.ac: Try to use guild to compile an scm file, if it fails
5547         then disable guile support.
5548         * configure: Regenerate.
5549         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5550         GUILE_FILE_LIST.
5551         (GUILE_COMPILED_FILES): New variable.
5552         (GUILE_FILES) Update.
5553         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5554         (stamp-guile): Compile scm files.
5555         * guile/guile.c (boot_guile_support): New function.
5556         (standard_throw_args_p): New function.
5557         (print_standard_throw_error, print_throw_error): New functions.
5558         (handle_boot_error): New function.
5559         (initialize_scheme_side): Rewrite to call boot_guile_support.
5560         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
5561         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5562
5563 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
5564             Doug Evans  <xdje42@gmail.com>
5565
5566         PR guile/17146
5567         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5568         * guile/lib/gdb/support.scm: New file.
5569         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5570         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5571         All uses updated.
5572         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5573         All uses updated.
5574         (%assert-type): Ditto, and renamed to assert-type.
5575         (%exception-print-style): Delete.
5576
5577 2014-07-26  Doug Evans  <xdje42@gmail.com>
5578
5579         PR build/17105
5580         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5581         * configure: Regenerate.
5582         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5583         PYTHON_FILES.
5584         (PYTHON_FILES): New variable.
5585         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5586         (GUILE_FILES): New variable.
5587         (stamp-python, install-python, uninstall-python): Handle empty
5588         file list.
5589         (stamp-guile, install-guile, uninstall-guile): Ditto.
5590
5591 2014-07-26  Doug Evans  <xdje42@gmail.com>
5592
5593         PR guile/17177
5594         * guile/lib/gdb.scm (pretty-printers): Export.
5595         (set-pretty-printers!): Export.
5596         * guile/lib/gdb/printing.scm (gdb module): Update.
5597         (prepend-pretty-printer!, append-pretty-printer!): Update.
5598         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5599         (pretty_printer_list_var): Delete.
5600         (pretty_printer_list): New static global.
5601         (gdbscm_pretty_printers): New function.
5602         (gdbscm_set_pretty_printers_x): New function.
5603         (ppscm_find_pretty_printer_from_gdb): Update.
5604         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5605         (gdbscm_initialize_pretty_printers): Update.
5606
5607 2014-07-26  Doug Evans  <xdje42@gmail.com>
5608
5609         PR 17185
5610         * configure.ac: Add check for header gc/gc.h.
5611         Add check for function setenv.
5612         * configure: Regenerate.
5613         * config.in: Regenerate.
5614         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5615
5616 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
5617
5618         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5619         variation in gdbarch matching.
5620
5621 2014-07-25  Tom Tromey  <tromey@redhat.com>
5622
5623         * exec.c (using_exec_ops): Remove.
5624         (exec_close_1): Update.  Remove extraneous block, reindent.
5625         (add_target_sections): Use target_is_pushed.
5626
5627 2014-07-25  Pedro Alves  <palves@redhat.com>
5628
5629         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5630         * monitor.c (monitor_create_inferior): Likewise.
5631         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5632         * remote-sim.c (gdbsim_create_inferior): Likewise.
5633         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5634         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5635         * windows-nat.c (do_initial_windows_stuff): Likewise.
5636
5637 2014-07-25  Pedro Alves  <palves@redhat.com>
5638
5639         * NEWS: Mention signal passing and "signal" command changes.
5640         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5641         comment.
5642         * breakpoint.c (until_break_command): Adjust clear_proceed_status
5643         call.
5644         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5645         * infcmd.c (proceed_thread_callback, continue_1, step_once)
5646         (jump_command): Adjust clear_proceed_status call.
5647         (signal_command): Warn if other thread that are resumed have
5648         signals that will be delivered.  Adjust clear_proceed_status call.
5649         (until_next_command, finish_command)
5650         (proceed_after_attach_callback, attach_command_post_wait)
5651         (attach_command): Adjust clear_proceed_status call.
5652         * infrun.c (proceed_after_vfork_done): Likewise.
5653         (proceed_after_attach_callback): Adjust comment.
5654         (clear_proceed_status_thread): Clear stop_signal if not in pass
5655         state.
5656         (clear_proceed_status_callback): Delete.
5657         (clear_proceed_status): New 'step' parameter.  Only clear the
5658         proceed status of threads the command being prepared is about to
5659         resume.
5660         (proceed): If passed in an explicit signal, override stop_signal
5661         with it.  Don't pass the last stop signal to the thread we're
5662         resuming.
5663         (init_wait_for_inferior): Adjust clear_proceed_status call.
5664         (switch_back_to_stepped_thread): Clear the signal if it should not
5665         be passed.
5666         * infrun.h (clear_proceed_status): New 'step' parameter.
5667         (user_visible_resume_ptid): Add comment.
5668         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5669         signal is in pass state.
5670         * remote.c (append_pending_thread_resumptions): Likewise.
5671         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5672
5673 2014-07-25  Tom Tromey  <tromey@redhat.com>
5674
5675         * target.h (target_stopped_data_address)
5676         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
5677         parentheses.
5678
5679 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
5680
5681         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5682         comments.
5683         (avr_pointer_to_address): Likewise.
5684
5685 2014-07-24  Tom Tromey  <tromey@redhat.com>
5686
5687         * monitor.c (compile_pattern): Update.
5688         * target.h (struct target_ops) <to_shortname, to_longname,
5689         to_doc>: Now const.
5690
5691 2014-07-24  Tom Tromey  <tromey@redhat.com>
5692
5693         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5694         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5695         (add_info_alias, add_com): Make "doc" const.
5696         (print_doc_line): Make "str" const.
5697         (delete_cmd): Update.
5698         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5699         (print_doc_line): Update.
5700         * cli/cli-script.c (document_command): Update.
5701         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5702         (add_com, add_info, add_info_alias): Update.
5703         * guile/scm-cmd.c (cmdscm_destroyer): Update.
5704         * python/py-cmd.c (cmdpy_destroyer): Update.
5705
5706 2014-07-24  Tom Tromey  <tromey@redhat.com>
5707
5708         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5709         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5710         (help_cmd_list): Constify.
5711         (lookup_cmd): Update.
5712         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5713         const.
5714         (help_cmd_list, apropos_cmd): Update.
5715         * cli/cli-script.c (show_user): Update.
5716         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5717         * cli/cli-setshow.h (cmd_show_list): Update.
5718         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5719         (cmd_show_list): Update.
5720         * guile/scm-cmd.c (cmdscm_destroyer): Update.
5721         * python/py-cmd.c (cmdpy_destroyer): Update.
5722
5723 2014-07-24  Tom Tromey  <tromey@redhat.com>
5724
5725         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5726         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5727         const.
5728         * command.h (deprecate_cmd): Update.
5729         * maint.c (maintenance_do_deprecate): Add casts.
5730
5731 2014-07-24  Tom Tromey  <tromey@redhat.com>
5732
5733         * cli/cli-decode.c (help_cmd): Make parameter "const".
5734         * cli/cli-decode.h (help_cmd): Update.
5735
5736 2014-07-24  Tom Tromey  <tromey@redhat.com>
5737
5738         * stack.c (up_silently_base, down_silently_base): Make argument
5739         const.
5740
5741 2014-07-24  Tom Tromey  <tromey@redhat.com>
5742
5743         * solib.c (solib_add): Make "pattern" const.
5744         * solib.h (solib_add): Update.
5745
5746 2014-07-24  Tom Tromey  <tromey@redhat.com>
5747
5748         * remote.c (remote_serial_open, print_packet, putpkt)
5749         (putpkt_binary): Constify.
5750         * remote.h (putpkt): Update.
5751
5752 2014-07-24  Tom Tromey  <tromey@redhat.com>
5753
5754         * monitor.c (monitor_open): Make "args" const.
5755         * monitor.h (monitor_open): Update.
5756
5757 2014-07-24  Tom Tromey  <tromey@redhat.com>
5758
5759         * maint.c (match_bfd_flags): Make "string" const.
5760         (print_bfd_section_info): Remove casts.
5761         (print_objfile_section_info): Make "string" const.
5762
5763 2014-07-24  Tom Tromey  <tromey@redhat.com>
5764
5765         * inf-child.c (inf_child_open_target): Make "arg" const.
5766         * inf-child.h (inf_child_open_target): Update.
5767
5768 2014-07-24  Tom Tromey  <tromey@redhat.com>
5769
5770         * environ.c (unset_in_environ): Make "var" const.
5771         * environ.h (unset_in_environ): Update.
5772
5773 2014-07-24  Tom Tromey  <tromey@redhat.com>
5774
5775         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5776         Make "cmd" const.
5777         (scan_filename_with_cleanup): Likewise.
5778         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5779         Make arguments const.
5780         (restore_command): Update.
5781
5782 2014-07-24  Pedro Alves  <palves@redhat.com>
5783
5784         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5785
5786 2014-07-24  Tom Tromey  <tromey@redhat.com>
5787             Gary Benson  <gbenson@redhat.com>
5788
5789         * nat/linux-ptrace.c (additional_flags): New global.
5790         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5791         additional_flags; don't check GDBSERVER.
5792         (linux_ptrace_set_additional_flags): New function.
5793         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5794         Declare.
5795         * linux-nat.c (_initialize_linux_nat): Call
5796         linux_ptrace_set_additional_flags.
5797
5798 2014-07-24  Tom Tromey  <tromey@redhat.com>
5799
5800         * make-target-delegates (munge_type, write_debugmethod): New
5801         functions.
5802         (debug_names): New global.
5803         ($TARGET_DEBUG_PRINTER): New global.
5804         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5805         name.
5806         Write debug methods.  Generate init_debug_target.
5807         * target-debug.h: New file.
5808         * target-delegates.c: Rebuild.
5809         * target.c: Include target-debug.h.
5810         (debug_target): Hoist definition.
5811         (target_kill, target_get_section_table, target_memory_map)
5812         (target_flash_erase, target_flash_done, target_detach)
5813         (target_disconnect, target_wait, target_resume)
5814         (target_pass_signals, target_program_signals, target_follow_fork)
5815         (target_mourn_inferior, target_search_memory)
5816         (target_thread_address_space, target_close)
5817         (target_find_new_threads, target_core_of_thread)
5818         (target_verify_memory, target_insert_mask_watchpoint)
5819         (target_remove_mask_watchpoint): Remove targetdebug code.
5820         (debug_to_post_attach, debug_to_prepare_to_store)
5821         (debug_to_files_info, debug_to_insert_breakpoint)
5822         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5823         (debug_to_region_ok_for_hw_watchpoint)
5824         (debug_to_can_accel_watchpoint_condition)
5825         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5826         (debug_to_watchpoint_addr_within_range)
5827         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5828         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5829         (debug_to_terminal_init, debug_to_terminal_inferior)
5830         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5831         (debug_to_terminal_save_ours, debug_to_terminal_info)
5832         (debug_to_load, debug_to_post_startup_inferior)
5833         (debug_to_insert_fork_catchpoint)
5834         (debug_to_remove_fork_catchpoint)
5835         (debug_to_insert_vfork_catchpoint)
5836         (debug_to_remove_vfork_catchpoint)
5837         (debug_to_insert_exec_catchpoint)
5838         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5839         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5840         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5841         (setup_target_debug): Call init_debug_target.
5842         * target.h (TARGET_DEBUG_PRINTER): New macro.
5843         (struct target_ops) <to_resume, to_wait, to_pass_signals,
5844         to_program_signals>: Use TARGET_DEBUG_PRINTER.
5845
5846 2014-07-24  Gary Benson  <gbenson@redhat.com>
5847
5848         * exceptions.h (throw_vfatal): Renamed to...
5849         (throw_vquit): New declaration.
5850         (throw_quit): Likewise.
5851         * exceptions.c (throw_vfatal): Renamed to...
5852         (throw_vquit): New function.
5853         (throw_quit): Likewise.
5854         (throw_error): Call throw_verror rather than throw_it.
5855         * utils.h (vfatal): Removed.
5856         (fatal): Likewise.
5857         * utils.c (vfatal): Removed.
5858         (fatal): Likewise.
5859         (internal_verror): Replaced call to fatal with call to throw_quit.
5860         (quit): Replaced calls to fatal with calls to throw_quit.
5861
5862 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
5863
5864         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5865         target_read_code.
5866
5867 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
5868
5869         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5870         less than zero in conditional expression.
5871
5872 2014-07-23  Tom Tromey  <tromey@redhat.com>
5873
5874         * make-target-delegates ($ARGS_PART): Match trailing close paren.
5875         ($INTRO_PART): Don't match whitespace.
5876         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
5877         argument matching.
5878         ($METHOD): Add $METHOD_TRAILER.
5879         (trim): Rewrite.
5880         (scan_target_h): New sub.
5881         Change main loop not to collect state.
5882         * target-delegates.c: Rebuild.
5883
5884 2014-07-23  Gary Benson  <gbenson@redhat.com>
5885
5886         * cp-support.c (gdb_demangle): Fix build on systems without
5887         sigaltstack.
5888
5889 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
5890
5891         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5892         for reference entry value target data value.
5893
5894 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
5895
5896         * stack.c (read_frame_arg): Verify value_optimized_out before calling
5897         value_available_contents_eq.
5898
5899 2014-07-22  Pedro Alves  <palves@redhat.com>
5900
5901         * value.c (allocate_optimized_out_value): Don't mark value as
5902         non-lazy.
5903
5904 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
5905
5906         * MAINTAINERS (Write After Approval): Update my email address.
5907
5908 2014-07-20  Doug Evans  <dje@google.com>
5909
5910         PR server/17147
5911         * remote.c (putpkt_binary): Add text to error message.
5912
5913 2014-07-20  Yao Qi  <yao@codesourcery.com>
5914
5915         * eval.c: Remove "Chill" from comments.
5916         * gdbtypes.h: Likewise.
5917         * symtab.h: Likewise.
5918
5919 2014-07-20  Yao Qi  <yao@codesourcery.com>
5920
5921         * std-operator.def: Update comments to TERNOP_SLICE.
5922
5923 2014-07-20  Yao Qi  <yao@codesourcery.com>
5924
5925         * std-operator.def: Remove BINOP_RANGE.
5926         * breakpoint.c (watchpoint_exp_is_const): Update.
5927         * expprint.c (dump_subexp_body_standard): Likewise.
5928         * eval.c (init_array_element): Remove dead code.
5929         (evaluate_subexp_standard): Likewise.
5930
5931 2014-07-20  Yao Qi  <yao@codesourcery.com>
5932
5933         * std-operator.def: Remove BINOP_IN.
5934         * breakpoint.c (watchpoint_exp_is_const): Update.
5935         * eval.c (evaluate_subexp_standard): Likewise.
5936         * expprint.c (dump_subexp_body_standard): Likewise.
5937
5938 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
5939
5940         * microblaze-tdep.c (microblaze_register_names): Add
5941         the rshr and rslr register names.
5942         (microblaze_gdbarch_init): Use of tdesc_has_registers.
5943         Use of tdesc_find_feature. Use of tdesc_data_alloc.
5944         Use of tdesc_numbered_register. Use of
5945         microblaze_register_g_packet_guesses. Use of
5946         tdesc_use_registers. Use of set_gdbarch_register_type.
5947         (microblaze_register_g_packet_guesses): New.
5948         * microblaze-tdep.h (microblaze_reg_num): Add
5949         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5950         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5951         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5952         * features/microblaze-core.xml: New file.
5953         * features/microblaze-stack-protect.xml: New file.
5954         * features/microblaze-with-stack-protect.c: New file.
5955         * features/microblaze-with-stack-protect.xml: New file.
5956         * features/microblaze.xml: New file.
5957         * features/microblaze.c: New file.
5958         * features/Makefile (microblaze-with-stack-protect): Add
5959         microblaze-with-stack-protect microblaze and microblaze-expedite.
5960         * regformats/microblaze-with-stack-protect.dat: New file.
5961         * regformats/microblaze.dat: New file.
5962         * doc/gdb.texinfo (MicroBlaze Features): Added.
5963
5964 2014-07-18  Tom Tromey  <tromey@redhat.com>
5965
5966         * exec.c (exec_ops): Now static.
5967         * exec.h (exec_ops): Don't declare.
5968
5969 2014-07-18  Tom Tromey  <tromey@redhat.com>
5970
5971         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5972         to find_target_beneath.
5973         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5974         find_target_beneath.
5975         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5976
5977 2014-07-18  Tom Tromey  <tromey@redhat.com>
5978
5979         PR gdb/17130:
5980         * utils.c (quit): Use target_supports_terminal_ours.
5981         * target.h (target_supports_terminal_ours): Declare.
5982         * target.c (target_supports_delete_record): Don't check
5983         to_delete_record against NULL.
5984         (target_supports_terminal_ours): New function.
5985
5986 2014-07-18  Tom Tromey  <tromey@redhat.com>
5987
5988         PR gdb/17130:
5989         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5990         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5991         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5992         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5993         * windows-nat.c (windows_xfer_partial): Always delegate.
5994         * record-btrace.c (record_btrace_xfer_partial): Simplify
5995         delegation.
5996         (record_btrace_fetch_registers, record_btrace_store_registers)
5997         (record_btrace_prepare_to_store, record_btrace_resume)
5998         (record_btrace_wait, record_btrace_find_new_threads)
5999         (record_btrace_thread_alive): Likewise.
6000         * procfs.c (procfs_xfer_partial): Always delegate.
6001         * corelow.c (core_xfer_partial): Always delegate.
6002         * sol-thread.c (sol_find_new_threads): Simplify delegation.
6003
6004 2014-07-18  Tom Tromey  <tromey@redhat.com>
6005
6006         * exec.c (exec_make_note_section): Move earlier.
6007
6008 2014-07-17  Doug Evans  <dje@google.com>
6009
6010         PR gdb/17170
6011         * maint.c (count_symtabs_and_blocks): Handle NULL
6012         current_program_space.
6013         (report_command_stats): Check global enabled flag in addition to
6014         recorded enabled flag.
6015         (make_command_stats_cleanup): Handle msg_type == 0, startup.
6016
6017 2014-07-16  Pedro Alves  <palves@redhat.com>
6018
6019         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
6020
6021 2014-07-16  Tom Tromey  <tromey@redhat.com>
6022
6023         * target.h (struct target_ops) <to_delete_record>: Reformat
6024         comment.
6025
6026 2014-07-16  Tom Tromey  <tromey@redhat.com>
6027
6028         * target-delegates.c: Rebuild.
6029
6030 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
6031
6032         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
6033         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
6034         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
6035         (avr_pointer_to_address): Likewise.
6036         (avr_address_class_type_flags): New function.
6037         (avr_address_class_type_flags_to_name): Likewise.
6038         (avr_address_class_name_to_type_flags): Likewise.
6039         (avr_gdbarch_init): Set address_class_type_flags,
6040         address_class_type_flags_to_name and
6041         address_class_name_to_type_flags.
6042
6043 2014-07-15  Pedro Alves  <palves@redhat.com>
6044
6045         * linux-nat.c (kill_callback): Save errno and work with saved
6046         copy.
6047
6048 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
6049
6050         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
6051
6052 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
6053
6054         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
6055         breakpoint support correctly.
6056
6057 2014-07-14  Pedro Alves  <palves@redhat.com>
6058
6059         * utils.c (prompt_for_continue): Call target_terminal_ours.
6060
6061 2014-07-14  Pedro Alves  <palves@redhat.com>
6062
6063         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
6064         catch_errors.  Don't re-enable stdin or notify observers where,
6065         and rethrow error.
6066         (fetch_inferior_event_wrapper): Delete.
6067
6068 2014-07-14  Pedro Alves  <palves@redhat.com>
6069
6070         PR gdb/17072
6071         * top.c: Include "inf-loop.h".
6072         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
6073         field.
6074         (gdb_readline_wrapper_cleanup): Make the target async again, if it
6075         was async before.
6076         (gdb_readline_wrapper): Store whether the target is async, and
6077         make it sync.
6078
6079 2014-07-14  Pedro Alves  <palves@redhat.com>
6080
6081         PR gdb/17072
6082         * top.c (gdb_readline_wrapper_line): Tweak comment.
6083         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
6084         the input handler callback.
6085
6086 2014-07-14  Pedro Alves  <palves@redhat.com>
6087
6088         PR gdb/17072
6089         * main.c: Include event-top.h.
6090         (handle_command_errors): New function.
6091         (catch_command_errors, catch_command_errors_const): Use it.
6092
6093 2014-07-14  Pedro Alves  <palves@redhat.com>
6094
6095         * exceptions.c (catch_command_errors, catch_command_errors_const):
6096         Moved to main.c.
6097         * exceptions.h (catch_command_errors_ftype)
6098         (catch_command_errors_const_ftype): Moved to main.c.
6099         (catch_command_errors, catch_command_errors_const): Delete
6100         declarations.
6101         * main.c (catch_command_errors_ftype)
6102         (catch_command_errors_const_ftype): Moved here from exceptions.h.
6103         (catch_command_errors, catch_command_errors_const)): Moved here
6104         from exceptions.c and make static.
6105
6106 2014-07-14  Pedro Alves  <palves@redhat.com>
6107
6108         * exceptions.c (print_any_exception): Delete.
6109         (catch_exceptions_with_msg): Use exception_print instead of
6110         print_any_exception.
6111         (catch_errors): Use exception_fprintf instead of
6112         print_any_exception.
6113         (catch_command_errors, catch_command_errors_const): Use
6114         exception_print instead of print_any_exception.
6115
6116 2014-07-14  Pedro Alves  <palves@redhat.com>
6117
6118         * infcall.c (run_inferior_call): Set 'sync_execution' while
6119         running the inferior call.
6120
6121 2014-07-14  Pedro Alves  <palves@redhat.com>
6122
6123         * value.c (value_contents_equal): Delete function.
6124         * value.h (value_contents_equal): Delete declaration.
6125
6126 2014-07-14  Tom Tromey  <tromey@redhat.com>
6127
6128         PR exp/17106:
6129         * gdbtypes.c (is_dynamic_type_internal): New function, from
6130         is_dynamic_type.
6131         (is_dynamic_type): Rewrite.
6132         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
6133         (resolve_dynamic_struct): Likewise.
6134         (resolve_dynamic_type_internal): New function, from
6135         resolve_dynamic_type.
6136         (resolve_dynamic_type): Rewrite.
6137
6138 2014-07-14  Tom Tromey  <tromey@redhat.com>
6139
6140         * target.c (target_require_runnable): Also check record_stratum.
6141         Update comment.
6142
6143 2014-07-11  Yao Qi  <yao@codesourcery.com>
6144
6145         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
6146         thumb_instruction_restores_sp return true.
6147
6148 2014-07-11  Yao Qi  <yao@codesourcery.com>
6149
6150         * arm-tdep.c (thumb_instruction_restores_sp): New function.
6151         (thumb_in_function_epilogue_p): Call
6152         thumb_instruction_restores_sp.
6153
6154 2014-07-11  Yao Qi  <yao@codesourcery.com>
6155
6156         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6157         'add sp, #imm'.
6158         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6159
6160 2014-07-11  Gary Benson  <gbenson@redhat.com>
6161
6162         * amd64-linux-nat.c (gdbcore.h): Remove include.
6163         (regset.h): Likewise.
6164         (nat/linux-btrace.h): Likewise.
6165         (btrace.h): Likewise.
6166         (gdb_assert.h): Likewise.
6167         (string.h): Likewise.
6168         (sys/uio.h): Likewise.
6169         (sys/debugreg.h): Likewise.
6170         (sys/syscall.h): Likewise.
6171         (sys/procfs.h): Likewise.
6172         (sys/user.h): Likewise.
6173         (asm/ptrace.h): Likewise.
6174         (i386-nat.h): Likewise.
6175         * i386-linux-nat.c (i386-nat.h): Likewise.
6176         (regset.h): Likewise.
6177         (target.h): Likewise.
6178         (linux-nat.h): Likewise.
6179         (nat/linux-btrace.h): Likewise.
6180         (btrace.h): Likewise.
6181         (gdb_assert.h): Likewise.
6182         (string.h): Likewise.
6183         (sys/uio.h): Likewise.
6184         (sys/user.h): Likewise.
6185         (sys/procfs.h): Likewise.
6186         (sys/reg.h): Likewise.
6187         (sys/debugreg.h): Likewise.
6188         (ORIG_EAX): Remove definition.
6189
6190 2014-07-11  Gary Benson  <gbenson@redhat.com>
6191
6192         * i386-linux-nat.h: New file.
6193         * x86-linux-nat.h: Likewise.
6194         * x86-linux-nat.c: Likewise.
6195         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6196         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6197         * config/i386/linux64.mh (NATDEPFILES): Likewise.
6198         * amd64-linux-nat.c (x86-linux-nat.h): New include.
6199         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6200         (PTRACE_SETREGSET): Likewise.
6201         (arch_lwp_info): Now in x86-linux-nat.c.
6202         (have_ptrace_getregset): Now in x86-linux-nat.h.
6203         (x86_linux_dr_get): Now in x86-linux-nat.c.
6204         (x86_linux_dr_set): Likewise.
6205         (x86_linux_dr_get_addr): Likewise.
6206         (x86_linux_dr_get_control): Likewise.
6207         (x86_linux_dr_get_status): Likewise.
6208         (update_debug_registers_callback): Likewise.
6209         (x86_linux_dr_set_control): Likewise.
6210         (x86_linux_dr_set_addr): Likewise.
6211         (x86_linux_prepare_to_resume): Likewise.
6212         (x86_linux_new_thread): Likewise.
6213         (x86_linux_new_fork): Likewise.
6214         (x86_linux_get_thread_area): Likewise.
6215         (super_post_startup_inferior): Likewise.
6216         (x86_linux_child_post_startup_inferior): Likewise.
6217         (AMD64_LINUX_USER64_CS): Likewise.
6218         (AMD64_LINUX_X32_DS): Likewise.
6219         (x86_linux_read_description): Likewise.
6220         (x86_linux_enable_btrace): Likewise.
6221         (x86_linux_disable_btrace): Likewise.
6222         (x86_linux_teardown_btrace): Likewise.
6223         (x86_linux_read_btrace): Likewise.
6224         (x86_linux_create_target): Likewise.
6225         (x86_linux_add_target): Likewise.
6226         * i386-linux-nat.c (x86-linux-nat.h): New include.
6227         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6228         (PTRACE_SETREGSET): Likewise.
6229         (arch_lwp_info): Now in x86-linux-nat.c.
6230         (have_ptrace_getregset): Now in x86-linux-nat.h.
6231         (x86_linux_dr_get): Now in x86-linux-nat.c.
6232         (x86_linux_dr_set): Likewise.
6233         (x86_linux_dr_get_addr): Likewise.
6234         (x86_linux_dr_get_control): Likewise.
6235         (x86_linux_dr_get_status): Likewise.
6236         (update_debug_registers_callback): Likewise.
6237         (x86_linux_dr_set_control): Likewise.
6238         (x86_linux_dr_set_addr): Likewise.
6239         (x86_linux_prepare_to_resume): Likewise.
6240         (x86_linux_new_thread): Likewise.
6241         (x86_linux_new_fork): Likewise.
6242         (x86_linux_get_thread_area): Likewise.
6243         (super_post_startup_inferior): Likewise.
6244         (x86_linux_child_post_startup_inferior): Likewise.
6245         (AMD64_LINUX_USER64_CS): Likewise.
6246         (AMD64_LINUX_X32_DS): Likewise.
6247         (x86_linux_read_description): Likewise.
6248         (x86_linux_enable_btrace): Likewise.
6249         (x86_linux_disable_btrace): Likewise.
6250         (x86_linux_teardown_btrace): Likewise.
6251         (x86_linux_read_btrace): Likewise.
6252         (x86_linux_create_target): Likewise.
6253         (x86_linux_add_target): Likewise.
6254
6255 2014-07-11  Gary Benson  <gbenson@redhat.com>
6256
6257         * amd64-linux-nat.c: Comment and whitespace changes.
6258         * i386-linux-nat.c: Comment and whitespace changes.
6259
6260 2014-07-11  Gary Benson  <gbenson@redhat.com>
6261
6262         * amd64-linux-nat.c (x86_linux_create_target): New function.
6263         (x86_linux_add_target): Likewise.
6264         (_initialize_amd64_linux_nat): Delegate to the above new functions.
6265         * i386-linux-nat.c (x86_linux_create_target): New function.
6266         (x86_linux_add_target): Likewise.
6267         (_initialize_i386_linux_nat): Delegate to the above new functions.
6268
6269 2014-07-11  Gary Benson  <gbenson@redhat.com>
6270
6271         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6272         (ps_get_thread_area): Delegate to the above in 32-bit mode.
6273         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6274         (ps_get_thread_area): Delegate to the above.
6275
6276 2014-07-11  Gary Benson  <gbenson@redhat.com>
6277
6278         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6279         x86_linux_read_description.  All uses updated.  amd64-specific
6280         code conditionalized.  Conditionalized i386-specific code added.
6281         Redundant cast removed.
6282         * i386-linux-nat.c (i386_linux_read_description): Renamed to
6283         x86_linux_read_description.  All uses updated.  i386-specific
6284         code conditionalized.  Conditionalized amd64-specific code added.
6285         One sizeof replaced with the actual type it is describing.
6286
6287 2014-07-11  Gary Benson  <gbenson@redhat.com>
6288
6289         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6290         x86_linux_dr_get.  All uses updated.
6291         (amd64_linux_dr_set): Renamed to
6292         x86_linux_dr_set.  All uses updated.
6293         (amd64_linux_dr_get_addr): Renamed to
6294         x86_linux_dr_get_addr.  All uses updated.
6295         (amd64_linux_dr_get_control): Renamed to
6296         x86_linux_dr_get_control.  All uses updated.
6297         (amd64_linux_dr_get_status): Renamed to
6298         x86_linux_dr_get_status.  All uses updated.
6299         (amd64_linux_dr_set_control): Renamed to
6300         x86_linux_dr_set_control.  All uses updated.
6301         (amd64_linux_dr_set_addr): Renamed to
6302         x86_linux_dr_set_addr.  All uses updated.
6303         (amd64_linux_prepare_to_resume): Renamed to
6304         x86_linux_prepare_to_resume.  All uses updated.
6305         (amd64_linux_new_thread): Renamed to
6306         x86_linux_new_thread.  All uses updated.
6307         (amd64_linux_new_fork): Renamed to
6308         x86_linux_new_fork.  All uses updated.
6309         (amd64_linux_child_post_startup_inferior): Renamed to
6310         x86_linux_child_post_startup_inferior.  All uses updated.
6311         (amd64_linux_enable_btrace): Renamed to
6312         x86_linux_enable_btrace.  All uses updated.
6313         (amd64_linux_disable_btrace): Renamed to
6314         x86_linux_disable_btrace.  All uses updated.
6315         (amd64_linux_teardown_btrace): Renamed to
6316         x86_linux_teardown_btrace.  All uses updated.
6317         (amd64_linux_read_btrace): Renamed to
6318         x86_linux_read_btrace.  All uses updated.
6319         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6320         x86_linux_dr_get.  All uses updated.
6321         (i386_linux_dr_set): Renamed to
6322         x86_linux_dr_set.  All uses updated.
6323         (i386_linux_dr_get_addr): Renamed to
6324         x86_linux_dr_get_addr.  All uses updated.
6325         (i386_linux_dr_get_control): Renamed to
6326         x86_linux_dr_get_control.  All uses updated.
6327         (i386_linux_dr_get_status): Renamed to
6328         x86_linux_dr_get_status.  All uses updated.
6329         (i386_linux_dr_set_control): Renamed to
6330         x86_linux_dr_set_control.  All uses updated.
6331         (i386_linux_dr_set_addr): Renamed to
6332         x86_linux_dr_set_addr.  All uses updated.
6333         (i386_linux_prepare_to_resume): Renamed to
6334         x86_linux_prepare_to_resume.  All uses updated.
6335         (i386_linux_new_thread): Renamed to
6336         x86_linux_new_thread.  All uses updated.
6337         (i386_linux_new_fork): Renamed to
6338         x86_linux_new_fork.  All uses updated.
6339         (i386_linux_child_post_startup_inferior): Renamed to
6340         x86_linux_child_post_startup_inferior.  All uses updated.
6341         (i386_linux_enable_btrace): Renamed to
6342         x86_linux_enable_btrace.  All uses updated.
6343         (i386_linux_disable_btrace): Renamed to
6344         x86_linux_disable_btrace.  All uses updated.
6345         (i386_linux_teardown_btrace): Renamed to
6346         x86_linux_teardown_btrace.  All uses updated.
6347         (i386_linux_read_btrace): Renamed to
6348         x86_linux_read_btrace.  All uses updated.
6349
6350 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
6351
6352         * remote.c (extended_remote_post_attach): New function.
6353         (init_extended_remote_ops): Install it as to_post_attach method.
6354
6355 2014-07-09  Pedro Alves  <palves@redhat.com>
6356
6357         * infcmd.c (attach_command_post_wait): Don't call
6358         target_terminal_inferior here.
6359         (attach_command): Call it here instead.
6360
6361 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
6362
6363         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6364         field.
6365         * c-varobj.c (c_is_path_expr_parent): New function, moved core
6366         from varobj.c, with additional checks.
6367         (c_varobj_ops): Fill in is_path_expr_parent field.
6368         (cplus_varobj_ops): Fill in is_path_expr_parent field.
6369         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6370         field.
6371         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6372         ops method.
6373         (varobj_default_is_path_expr_parent): New function.
6374         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6375         (varobj_default_is_path_expr_parent): Declare new function.
6376
6377 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6378
6379         * infcmd.c (finish_backward): Turn internal error into normal error.
6380
6381 2014-07-07  Pedro Alves  <palves@redhat.com>
6382
6383         PR gdb/17096
6384         * remote.c (async_handle_remote_sigint)
6385         (async_handle_remote_sigint_twice): Call
6386         gdb_call_async_signal_handler instead of
6387         mark_async_signal_handler.
6388
6389 2014-07-07  Tom Tromey  <tromey@redhat.com>
6390
6391         * target-delegates.c: Rebuild.
6392         * target.c (target_info_record): Remove.
6393         * record.c (info_record_command): Unconditionally call
6394         to_info_record.
6395         * target.h (struct target_ops) <to_info_record>: Use
6396         TARGET_DEFAULT_IGNORE.
6397         (target_info_record): Remove.
6398
6399 2014-07-07  Tom Tromey  <tromey@redhat.com>
6400
6401         * target.h (struct target_ops) <to_get_thread_local_address>: Use
6402         TARGET_DEFAULT_NORETURN.
6403         * target.c (generic_tls_error): New function.
6404         (target_translate_tls_address): Don't search target stack.
6405         * target-delegates.c: Rebuild.
6406         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6407         stack.
6408         * linux-thread-db.c (thread_db_get_thread_local_address):
6409         Unconditionally call beneath target.
6410
6411 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
6412
6413         * cli/cli-logging.c (pop_output_files): Assign targerr to
6414         gdb_stdtargerr.
6415
6416 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
6417
6418         * MAINTAINERS (Write After Approval): Update my email address.
6419
6420 2014-07-02  Gary Benson  <gbenson@redhat.com>
6421
6422         * proc-service.c (ps_xfer_memory): Update comment.
6423         (ps_pstop): Remove unused function.
6424         (ps_pcontinue): Likewise.
6425         (ps_lstop): Likewise.
6426         (ps_lcontinue): Likewise.
6427         (ps_lgetxregsize): Likewise.
6428         (ps_lgetxregs): Likewise.
6429         (ps_lsetxregs): Likewise.
6430         (ps_plog): Likewise.
6431         (ps_ptread): Likewise.
6432         (ps_ptwrite): Likewise.
6433
6434 2014-07-01  Mark Wielaard  <mjw@redhat.com>
6435
6436         * dwarf2read.c (add_array_cv_type): New function.
6437         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6438         (read_tag_volatile_type): Likewise.
6439
6440 2014-07-01  Tom Tromey  <tromey@redhat.com>
6441
6442         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6443         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6444         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6445         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6446         * command.h (cmd_cfunc_ftype): Move earlier.
6447         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6448         (add_com, add_info): Use cmd_cfunc_ftype.
6449
6450 2014-06-30  Tom Tromey  <tromey@redhat.com>
6451
6452         * symtab.c (operator_chars): Make parameters and return type
6453         const.
6454         (file_matches): Make "files" const.
6455         (struct search_symbols_data) <files>: Now const.
6456         (search_symbols): Make "regexp" and "files" parameters const.
6457         Update.
6458         (symtab_symbol_info): Remove cast.
6459         (rbreak_command): Update.
6460         * symtab.h (search_symbols): Update.
6461
6462 2014-06-27  Yao Qi  <yao@codesourcery.com>
6463
6464         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6465         Change parameter type to 'struct thread_info *'.  Caller
6466         updated.
6467         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6468         Update declaration.
6469         * dummy-frame.c (struct dummy_frame_id): New.
6470         (dummy_frame_id_eq): New function.
6471         (struct dummy_frame) <id>: Change its type to 'struct
6472         dummy_frame_id'.
6473         (dummy_frame_push): Add parameter ptid and save it in
6474         dummy_frame_id.
6475         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6476         inferior_ptid.
6477         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6478         to inferior_ptid.
6479         (lookup_dummy_frame): Change parameter type to 'struct
6480         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
6481         instead of frame_id_eq.
6482         (dummy_frame_pop): Add parameter ptid.  Callers updated.
6483         Update comments.  Compose dummy_frame_id and pass it to
6484         lookup_dummy_frame.
6485         (dummy_frame_discard): Add parameter ptid.
6486         (dummy_frame_sniffer): Compose dummy_frame_id and call
6487         dummy_frame_id_eq instead of frame_id_eq.
6488         (fprint_dummy_frames): Print ptid.
6489         * dummy-frame.h: Remove comments.
6490         (dummy_frame_push): Add ptid in declaration.
6491         (dummy_frame_pop, dummy_frame_discard): Likewise.
6492
6493 2014-06-26  Tom Tromey  <tromey@redhat.com>
6494
6495         * cli/cli-cmds.c (error_no_arg): Make "why" const.
6496         * command.h (error_no_arg): Update.
6497
6498 2014-06-26  Tom Tromey  <tromey@redhat.com>
6499
6500         * cli/cli-setshow.c (do_set_command): Make "arg" const.
6501         (do_show_command): Make "arg" const.
6502         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6503
6504 2014-06-26  Tom Tromey  <tromey@redhat.com>
6505
6506         * record-full.c (record_full_get_bookmark): Make "args" const.
6507         (record_full_goto_bookmark): Make "raw_bookmark" const.
6508         * record.c (record_goto): New function.
6509         (cmd_record_goto): Use it.  Now static.
6510         * record.h (record_goto): Declare.
6511         (cmd_record_goto): Remove declaration.
6512         * target-delegates.c: Rebuild.
6513         * target.h (struct target_ops) <to_get_bookmark,
6514         to_goto_bookmark>: Make parameter const.
6515
6516 2014-06-26  Tom Tromey  <tromey@redhat.com>
6517
6518         * defs.h (generic_load): Update.
6519         * m32r-rom.c (m32r_load_gen): Make "filename" const.
6520         * monitor.c (monitor_load): Make "args" const.
6521         * remote-m32r-sdi.c (m32r_load): Make "args" const.
6522         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6523         const.
6524         (mips_load): Make "file" const.
6525         * remote-sim.c (gdbsim_load): Make "args" const.
6526         * remote.c (remote_load): Make "name" const.
6527         * symfile.c (generic_load): Make "args" const.
6528         * target-delegates.c: Rebuild.
6529         * target.c (target_load): Make "arg" const.
6530         (debug_to_load): Make "args" const.
6531         * target.h (struct target_ops) <to_load>: Make parameter const.
6532         (target_load): Update.
6533
6534 2014-06-26  Tom Tromey  <tromey@redhat.com>
6535
6536         PR symtab/16902:
6537         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6538         (dwarf2_physname, read_partial_die)
6539         (guess_partial_die_structure_name, fixup_partial_die)
6540         (guess_full_die_structure_name, anonymous_struct_prefix)
6541         (dwarf2_name): Use per-BFD obstack.
6542
6543 2014-06-26  Yao Qi  <yao@codesourcery.com>
6544
6545         * dummy-frame.c (dummy_frame_sniffer): Move local variables
6546         dummyframe and this_id into inner block below.
6547
6548 2014-06-26  Yao Qi  <yao@codesourcery.com>
6549
6550         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6551         with "signal_pass[0]" in the initialization of signal_pass.
6552
6553 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
6554
6555         * record-btrace.c (record_btrace_generating_corefile)
6556         (record_btrace_prepare_to_generate_core)
6557         (record_btrace_done_generating_core): New.
6558         (record_btrace_xfer_partial, record_btrace_fetch_registers)
6559         (record_btrace_store_registers, record_btrace_prepare_to_store):
6560         Forward request when generating a core file.
6561         (record_btrace_open): Set record_btrace_generating_corefile to zero.
6562         (init_record_btrace_ops): Set to_prepare_to_generate_core and
6563         to_done_generating_core.
6564
6565 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
6566
6567         * target.h (target_ops) <to_prepare_to_generate_core>
6568         <to_done_generating_core>: New.
6569         (target_prepare_to_generate_core, target_done_generating_core): New.
6570         * target.c (target_prepare_to_generate_core)
6571         (target_done_generating_core): New.
6572         * target-delegates.c: Regenerate.
6573         * gcore.c: (write_gcore_file): Rename to ...
6574         (write_gcore_file_1): ...this.
6575         (write_gcore_file): Call target_prepare_to_generate_core
6576         and target_done_generating_core.
6577
6578 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
6579
6580         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6581         * gcore.c (write_gcore_file): Free memory returned from
6582         make_corefile_notes.
6583         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6584         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6585
6586 2014-06-24  Yao Qi  <yao@codesourcery.com>
6587
6588         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6589         (arm_linux_init_abi): Set skip_trampoline_code with
6590         gdbarch_skip_trampoline_code instead of
6591         find_solib_trampoline_target.
6592
6593 2014-06-24  Yao Qi  <yao@codesourcery.com>
6594
6595         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6596         arm_skip_bx_reg returns non-zero.
6597
6598 2014-06-24  Yao Qi  <yao@codesourcery.com>
6599
6600         * arm-tdep.c (arm_skip_bx_reg): New function.
6601         (arm_skip_stub): Call arm_skip_bx_reg.
6602
6603 2014-06-23  Don Breazeal  <donb@codesourcery.com>
6604
6605         * MAINTAINERS: Add myself as write-after-approval maintainer.
6606
6607 2014-06-23  Pedro Alves  <palves@redhat.com>
6608
6609         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6610         DR_CONTROL before setting DR0..DR3.
6611         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6612         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6613         bits of DR_CONTROL related to the debug register slot being
6614         disabled.  If all slots are vacant, clear local slowdown as well,
6615         and assert DR_CONTROL is 0.
6616
6617 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
6618
6619         * python/lib/gdb/command/xmethods.py
6620         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
6621         current progspace only if the string "progspace" matches LOCUS_RE.
6622
6623 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6624
6625         Fix --with-system-readline with readline-6.3 patch 5.
6626         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6627         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6628         types.
6629
6630 2014-06-20  Tom Tromey  <tromey@redhat.com>
6631
6632         * dwarf2read.c (dw2_get_real_path): Use correct type in
6633         OBSTACK_CALLOC.
6634         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6635
6636 2014-06-20  Gary Benson  <gbenson@redhat.com>
6637
6638         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
6639         * common/glibc_thread_db.h: Likewise.
6640         * common/i386-cpuid.h: Likewise.
6641         * common/i386-gcc-cpuid.h: Likewise.
6642         * common/linux-btrace.h: Likewise.
6643         * common/linux-osdata.h: Likewise.
6644         * common/linux-procfs.h: Likewise.
6645         * common/linux-ptrace.h: Likewise.
6646         * common/mips-linux-watch.h: Likewise.
6647         * common/linux-btrace.c: Moved to nat.
6648         * common/linux-osdata.c: Likewise.
6649         * common/linux-procfs.c: Likewise.
6650         * common/linux-ptrace.c: Likewise.
6651         * common/mips-linux-watch.c: Likewise.
6652         * nat/gdb_thread_db.h: Moved from common.
6653         * nat/glibc_thread_db.h: Likewise.
6654         * nat/i386-cpuid.h: Likewise.
6655         * nat/i386-gcc-cpuid.h: Likewise.
6656         * nat/linux-btrace.c: Likewise.
6657         * nat/linux-btrace.h: Likewise.
6658         * nat/linux-osdata.c: Likewise.
6659         * nat/linux-osdata.h: Likewise.
6660         * nat/linux-procfs.c: Likewise.
6661         * nat/linux-procfs.h: Likewise.
6662         * nat/linux-ptrace.c: Likewise.
6663         * nat/linux-ptrace.h: Likewise.
6664         * nat/mips-linux-watch.c: Likewise.
6665         * nat/mips-linux-watch.h: Likewise.
6666         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6667         (object file files): Reordered.
6668         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6669         of glibc_thread_db.h.
6670
6671 2014-06-20  Gary Benson  <gbenson@redhat.com>
6672
6673         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6674         (i386_dr_low_type): Moved to nat/i386-dregs.h.
6675         (i386_dr_low): Likewise.
6676         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6677         (i386_dr_low_set_addr): Likewise.
6678         (i386_dr_low_get_addr): Likewise.
6679         (i386_dr_low_can_set_control): Likewise.
6680         (i386_dr_low_set_control): Likewise.
6681         (i386_dr_low_get_control): Likewise.
6682         (i386_dr_low_get_status): Likewise.
6683         (i386_get_debug_register_length): Likewise.
6684         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6685         (i386_dr_low): Likewise.
6686         * nat/i386-dregs.c (i386-low.h): Remove include.
6687         (i386-nat.h): Likewise.
6688         (nat/i386-dregs.h): New include.
6689         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6690         (i386_dr_low_set_addr): Likewise.
6691         (i386_dr_low_get_addr): Likewise.
6692         (i386_dr_low_can_set_control): Likewise.
6693         (i386_dr_low_set_control): Likewise.
6694         (i386_dr_low_get_control): Likewise.
6695         (i386_dr_low_get_status): Likewise.
6696         (i386_get_debug_register_length): Likewise.
6697         (debug_hw_points): Likewise.
6698
6699 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
6700
6701         * Makefile.in (SFILES): Add d-exp.y.
6702         (YYFILES): Add d-exp.c.
6703         (YYOBJ): Add d-exp.o.
6704         (local-maintainer-clean): Delete d-exp.c.
6705         * d-exp.y: New file.
6706         * d-lang.h (d_parse): New declaration.
6707         (d_error): New declaration.
6708         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6709         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6710         PREC_ORDER operators.
6711         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6712
6713 2014-06-19  Yao Qi  <yao@codesourcery.com>
6714
6715         * gdbthread.h (any_running): Remove the declaration.
6716         * thread.c (any_running): Remove.
6717
6718 2014-06-19  Yao Qi  <yao@codesourcery.com>
6719
6720         * gdbthread.h (struct thread_info) <state>: Change its type to
6721         'enum thread_state'.  Update comments.
6722
6723 2014-06-19  Pedro Alves  <palves@redhat.com>
6724
6725         * gdbthread.h (ALL_THREADS): Delete.
6726         (ALL_NON_EXITED_THREADS): New macro.
6727         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6728         instead of ALL_THREADS.
6729         * infrun.c (find_thread_needs_step_over)
6730         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6731         instead of ALL_THREADS.
6732         * record-btrace.c (record_btrace_open)
6733         (record_btrace_stop_recording, record_btrace_close)
6734         (record_btrace_is_replaying, record_btrace_resume)
6735         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6736         * remote.c (append_pending_thread_resumptions): Likewise.
6737         * thread.c (thread_apply_all_command): Likewise.
6738
6739 2014-06-19  Gary Benson  <gbenson@redhat.com>
6740
6741         * i386-nat.c (i386_stopped_by_watchpoint):
6742         Use i386_dr_stopped_by_watchpoint.
6743         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6744         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6745
6746 2014-06-19  Gary Benson  <gbenson@redhat.com>
6747
6748         * nat/i386-dregs.c: New file.
6749         * Makefile.in (i386-dregs.o): New rule.
6750         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6751         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6752         * config/i386/darwin.mh (NATDEPFILES): Likewise.
6753         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6754         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6755         * config/i386/go32.mh (NATDEPFILES): Likewise.
6756         * config/i386/linux.mh (NATDEPFILES): Likewise.
6757         * config/i386/linux64.mh (NATDEPFILES): Likewise.
6758         * config/i386/mingw.mh (NATDEPFILES): Likewise.
6759         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6760         * i386-nat.h (debug_hw_points): New declaration.
6761         * i386-nat.c (breakpoint.h): Remove include.
6762         (command.h): Likewise.
6763         (target.h): Likewise.
6764         (gdb_assert.h): Likewise.
6765         (debug_hw_points): Made nonstatic.
6766         (debug_printf): Now in i386-dregs.c.
6767         (TARGET_HAS_DR_LEN_8): Likewise.
6768         (DR_CONTROL_SHIFT): Likewise.
6769         (DR_CONTROL_SIZE): Likewise.
6770         (DR_RW_EXECUTE): Likewise.
6771         (DR_RW_WRITE): Likewise.
6772         (DR_RW_READ): Likewise.
6773         (DR_RW_IORW): Likewise.
6774         (DR_LEN_1): Likewise.
6775         (DR_LEN_2): Likewise.
6776         (DR_LEN_4): Likewise.
6777         (DR_LEN_8): Likewise.
6778         (DR_LOCAL_ENABLE_SHIFT): Likewise.
6779         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6780         (DR_ENABLE_SIZE): Likewise.
6781         (DR_LOCAL_SLOWDOWN): Likewise.
6782         (DR_GLOBAL_SLOWDOWN): Likewise.
6783         (DR_CONTROL_RESERVED): Likewise.
6784         (I386_DR_CONTROL_MASK): Likewise.
6785         (I386_DR_VACANT): Likewise.
6786         (I386_DR_LOCAL_ENABLE): Likewise.
6787         (I386_DR_GLOBAL_ENABLE): Likewise.
6788         (I386_DR_DISABLE): Likewise.
6789         (I386_DR_SET_RW_LEN): Likewise.
6790         (I386_DR_GET_RW_LEN): Likewise.
6791         (I386_DR_WATCH_HIT): Likewise.
6792         (i386_wp_op_t): Likewise.
6793         (i386_show_dr): Likewise.
6794         (i386_length_and_rw_bits): Likewise.
6795         (i386_insert_aligned_watchpoint): Likewise.
6796         (i386_remove_aligned_watchpoint): Likewise.
6797         (i386_handle_nonaligned_watchpoint): Likewise.
6798         (i386_update_inferior_debug_regs): Likewise.
6799         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6800         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6801         (i386_region_ok_for_watchpoint):
6802         Use i386_dr_region_ok_for_watchpoint.
6803         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6804
6805 2014-06-19  Gary Benson  <gbenson@redhat.com>
6806
6807         * i386-nat.c (i386_insert_hw_breakpoint): Use
6808         i386_insert_watchpoint.
6809         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6810
6811 2014-06-19  Gary Benson  <gbenson@redhat.com>
6812
6813         * i386-nat.c (i386_dr_show): Renamed to
6814         i386_show_dr and made static.  All uses updated.
6815         (i386_dr_length_and_rw_bits): Renamed to
6816         i386_length_and_rw_bits and made static.
6817         All uses updated.
6818         (i386_dr_insert_aligned_watchpoint): Renamed to
6819         i386_insert_aligned_watchpoint and made static.
6820         All uses updated.
6821         (i386_dr_remove_aligned_watchpoint): Renamed to
6822         i386_remove_aligned_watchpoint and made static.
6823         All uses updated.
6824         (i386_dr_update_inferior_debug_regs): Renamed to
6825         i386_update_inferior_debug_regs and made static.
6826         All uses updated.
6827         * nat/i386-dregs.h (i386_dr_show): Removed.
6828         (i386_dr_length_and_rw_bits): Likewise.
6829         (i386_dr_insert_aligned_watchpoint): Likewise.
6830         (i386_dr_remove_aligned_watchpoint): Likewise.
6831         (i386_dr_update_inferior_debug_regs): Likewise.
6832
6833 2014-06-19  Gary Benson  <gbenson@redhat.com>
6834
6835         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6836         * configure: Regenerate.
6837         * config.in: Likewise.
6838         * main.c (signal.h): New include.
6839         (setup_alternate_signal_stack): New function.
6840         (captured_main): Call the above.
6841         * cp-support.c (signal.h): New include.
6842         (catch_demangler_crashes): New flag.
6843         (SIGJMP_BUF): New define.
6844         (SIGSETJMP): Likewise.
6845         (SIGLONGJMP): Likewise.
6846         (gdb_demangle_jmp_buf): New static global.
6847         (gdb_demangle_attempt_core_dump): Likewise.
6848         (gdb_demangle_signal_handler): New function.
6849         (gdb_demangle): If catch_demangler_crashes is set, install the
6850         above signal handler before calling bfd_demangle, and restore
6851         the original signal handler afterwards.  Display the offending
6852         symbol and call demangler_warning the first time a segmentation
6853         fault is caught.
6854         (_initialize_cp_support): New maint set/show command.
6855
6856 2014-06-19  Gary Benson  <gbenson@redhat.com>
6857
6858         * utils.h (resource_limit_kind): New enum.
6859         (can_dump_core): New declaration.
6860         (warn_cant_dump_core): Likewise.
6861         (dump_core): Likewise.
6862         * utils.c (dump_core): Made nonstatic.  Added new
6863         parameter "limit_kind".
6864         (can_dump_core): Made nonstatic. Moved printing code to...
6865         (warn_cant_dump_core): New function.
6866         (can_dump_core_warn): Likewise.
6867         (internal_vproblem): Replace calls to can_dump_core with
6868         calls to can_dump_core_warn.  Supply new argument to each.
6869
6870 2014-06-19  Gary Benson  <gbenson@redhat.com>
6871
6872         * utils.h (demangler_vwarning): New declaration.
6873         (demangler_warning): Likewise.
6874         * utils.c (struct internal_problem)
6875         <user_settable_should_quit>: New field.
6876         <user_settable_should_dump_core>: Likewise
6877         (internal_error_problem): Add values for above new fields.
6878         (internal_warning_problem): Likewise.
6879         (demangler_warning_problem): New static global.
6880         (demangler_vwarning): New function.
6881         (demangler_warning): Likewise.
6882         (add_internal_problem_command): Selectively add commands.
6883         (_initialize_utils): New internal problem command.
6884         * maint.c (maintenance_demangler_warning): New function.
6885         (_initialize_maint_cmds): New command.
6886
6887 2014-06-18  Tom Tromey  <tromey@redhat.com>
6888
6889         * f-valprint.c (info_common_command_for_block): Update.
6890         * symtab.h (struct general_symbol_info) <common_block>: Now
6891         const.
6892
6893 2014-06-18  Tom Tromey  <tromey@redhat.com>
6894
6895         * symtab.h (struct symtab) <blockvector>: Now const.
6896         * ada-lang.c (ada_add_global_exceptions): Update.
6897         * buildsym.c (augment_type_symtab): Update.
6898         * dwarf2read.c (dw2_lookup_symbol): Update.
6899         * jit.c (finalize_symtab): Update.
6900         * jv-lang.c (add_class_symtab_symbol): Update.
6901         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6902         Update.
6903         * objfiles.c (objfile_relocate1): Update.
6904         * psymtab.c (lookup_symbol_aux_psymtabs)
6905         (maintenance_check_psymtabs): Update.
6906         * python/py-symtab.c (stpy_global_block, stpy_static_block):
6907         Update.
6908         * spu-tdep.c (spu_catch_start): Update.
6909         * symmisc.c (dump_symtab_1): Update.
6910         * symtab.c (lookup_global_symbol_from_objfile)
6911         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6912         (basic_lookup_transparent_type_quick)
6913         (basic_lookup_transparent_type, find_pc_sect_symtab)
6914         (find_pc_sect_line, search_symbols): Update.
6915         * block.c (find_block_in_blockvector): Make "bl" const.
6916         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6917         const.
6918         (blockvector_contains_pc): Make "bv" const.
6919         (block_for_pc_sect): Update.
6920         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6921         (blockvector_contains_pc): Update.
6922         * breakpoint.c (resolve_sal_pc): Update.
6923         * inline-frame.c (block_starting_point_at): Update.
6924
6925 2014-06-18  Tom Tromey  <tromey@redhat.com>
6926
6927         * completer.c (complete_line): Make "line_buffer" const.
6928         * completer.h (complete_line): Update.
6929
6930 2014-06-18  Tom Tromey  <tromey@redhat.com>
6931
6932         * symtab.c (add_macro_name): Remove unneeded cast.
6933
6934 2014-06-18  Tom Tromey  <tromey@redhat.com>
6935
6936         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6937         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6938
6939 2014-06-18  Tom Tromey  <tromey@redhat.com>
6940
6941         * probe.c (info_probes_for_ops): Make "arg" const.
6942         * probe.h (info_probes_for_ops): Update.
6943
6944 2014-06-18  Tom Tromey  <tromey@redhat.com>
6945
6946         * varobj.c (varobj_create): Update.
6947         * valops.c (value_of_this): Update.
6948         * tracepoint.c (add_local_symbols, scope_info): Update.
6949         * symtab.h (struct general_symbol_info) <block>: Now const.
6950         * symtab.c (skip_prologue_sal)
6951         (default_make_symbol_completion_list_break_on)
6952         (skip_prologue_using_sal): Update.
6953         * stack.h (iterate_over_block_locals)
6954         (iterate_over_block_local_vars): Update.
6955         * stack.c (print_frame_args): Update.
6956         (iterate_over_block_locals, iterate_over_block_local_vars): Make
6957         parameter const.
6958         (get_selected_block): Make return type const.
6959         * python/py-frame.c (frapy_block): Update.
6960         * python/py-block.c (gdbpy_block_for_pc): Update.
6961         * p-exp.y (%union) <bval>: Now const.
6962         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6963         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6964         * m2-exp.y (%union) <bval>: Now const.
6965         * linespec.c (get_current_search_block): Make return type const.
6966         (create_sals_line_offset, find_label_symbols): Update.
6967         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6968         Update.
6969         (block_starting_point_at): Make "block" const.
6970         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6971         (check_exception_resume): Update.
6972         * guile/scm-frame.c (gdbscm_frame_block): Update.
6973         * guile/scm-block.c (gdbscm_lookup_block): Update.
6974         * frame.h (get_frame_block): Update.
6975         (get_selected_block): Make return type const.
6976         * frame.c (frame_id_inner): Update.
6977         * f-valprint.c (info_common_command_for_block)
6978         (info_common_command): Update.
6979         * dwarf2loc.c (dwarf2_find_location_expression)
6980         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6981         (locexpr_describe_location_piece): Update.
6982         * c-exp.y (%union) <bval>: Now const.
6983         * breakpoint.c (resolve_sal_pc): Update.
6984         * blockframe.c (get_frame_block):Make return type const.
6985         (get_pc_function_start, get_frame_function, find_pc_sect_function)
6986         (block_innermost_frame): Update.
6987         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6988         (block_for_pc, block_for_pc_sect): Update.
6989         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6990         'pblock' const.
6991         (block_for_pc_sect, block_for_pc): Make return type const.
6992         * ax-gdb.c (gen_expr): Update.
6993         * alpha-mdebug-tdep.c (find_proc_desc): Update.
6994         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6995         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6996         (ada_read_var_value): Update.
6997         * ada-exp.y (struct name_info) <block>: Now const.
6998         (%union): Likewise.
6999         (block_lookup): Constify.
7000
7001 2014-06-18  Gary Benson  <gbenson@redhat.com>
7002
7003         * nat/i386-dregs.h: New file.
7004         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
7005         * i386-nat.h (i386-dregs.h): New include.
7006         (DR_FIRSTADDR): Now in i386-dregs.h.
7007         (DR_LASTADDR): Likewise.
7008         (DR_NADDR): Likewise.
7009         (DR_STATUS): Likewise.
7010         (DR_CONTROL): Likewise.
7011         (i386_debug_reg_state): Likewise.
7012         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
7013
7014 2014-06-18  Don Breazeal  <donb@codesourcery.com>
7015
7016         * breakpoint.c (set_longjmp_breakpoint): Call
7017         momentary_breakpoint_from_master with additional argument.
7018         (set_longjmp_breakpoint_for_call_dummy): Call
7019         momentary_breakpoint_from_master with additional argument.
7020         (set_std_terminate_breakpoint): Call
7021         momentary_breakpoint_from_master with additional argument.
7022         (momentary_breakpoint_from_master): Add argument to function
7023         definition and use it to initialize structure member flag.
7024         (clone_momentary_breakpoint): Call
7025         momentary_breakpoint_from_master with additional argument.
7026         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
7027         member flags set in momentary_breakpoint_from_master.
7028
7029 2014-06-18  Gary Benson  <gbenson@redhat.com>
7030
7031         * i386-nat.c (i386_show_dr): Renamed to
7032         i386_dr_show and made nonstatic.  All uses updated.
7033         (i386_length_and_rw_bits): Renamed to
7034         i386_dr_length_and_rw_bits and made nonstatic.
7035         All uses updated.
7036         (i386_insert_aligned_watchpoint): Renamed to
7037         i386_dr_insert_aligned_watchpoint and made nonstatic.
7038         All uses updated.
7039         (i386_remove_aligned_watchpoint): Renamed to
7040         i386_dr_remove_aligned_watchpoint and made nonstatic.
7041         All uses updated.
7042         (i386_update_inferior_debug_regs): Renamed to
7043         i386_dr_update_inferior_debug_regs and made nonstatic.
7044         All uses updated.
7045
7046 2014-06-18  Gary Benson  <gbenson@redhat.com>
7047
7048         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
7049         (i386_dr_low_can_set_control): Likewise.
7050         (i386_dr_low_set_addr): Likewise.
7051         (i386_dr_low_set_control): Likewise.
7052         (i386_dr_low_get_addr): Likewise.
7053         (i386_dr_low_get_status): Likewise.
7054         (i386_dr_low_get_control): Likewise.
7055         (i386_insert_aligned_watchpoint): Use new macros.
7056         (i386_update_inferior_debug_regs): Likewise.
7057         (i386_stopped_data_address): Likewise.
7058
7059 2014-06-18  Gary Benson  <gbenson@redhat.com>
7060
7061         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
7062         New parameter.  All uses updated.
7063
7064 2014-06-18  Gary Benson  <gbenson@redhat.com>
7065
7066         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
7067         All uses updated.
7068
7069 2014-06-18  Gary Benson  <gbenson@redhat.com>
7070
7071         * i386-nat.c (debug_printf): New macro.
7072         (i386_get_debug_register_length): Likewise.
7073         (TARGET_HAS_DR_LEN_8): Use above macro.
7074         (i386_show_dr): Use debug_printf instead of puts_unfiltered
7075         and printf_unfiltered.  Use phex to format values.
7076
7077 2014-06-18  Gary Benson  <gbenson@redhat.com>
7078
7079         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
7080         Make const.
7081
7082 2014-06-18  Gary Benson  <gbenson@redhat.com>
7083
7084         * i386-nat.c: Comment changes.
7085
7086 2014-06-18  Gary Benson  <gbenson@redhat.com>
7087
7088         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
7089
7090 2014-06-18  Gary Benson  <gbenson@redhat.com>
7091
7092         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
7093         (i386_insert_aligned_watchpoint): Likewise.
7094         (i386_remove_aligned_watchpoint): Likewise.
7095         (i386_handle_nonaligned_watchpoint): Likewise.
7096
7097 2014-06-18  Gary Benson  <gbenson@redhat.com>
7098
7099         * i386-nat.c: Whitespace changes.
7100
7101 2014-06-17  Samuel Bronson  <naesten@gmail.com>
7102
7103         * MAINTAINERS: Update Roland McGrath's email address.
7104         Thanks to Sergio Durigan Junior for pointing out that he left
7105         Red Hat a while ago, and giving me a current address.
7106
7107 2014-06-17  Tom Tromey  <tromey@redhat.com>
7108
7109         * utils.h (savestring): Remove declaration.
7110
7111 2014-06-17  Tom Tromey  <tromey@redhat.com>
7112
7113         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
7114
7115 2014-06-16  Keith Seitz  <keiths@redhat.com>
7116
7117         PR mi/15863
7118         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
7119         to update the varobj if inferior_ptid is null_ptid.
7120
7121 2014-06-16  Tom Tromey  <tromey@redhat.com>
7122
7123         * target.h (struct target_ops) <to_info_proc>: Make parameter
7124         const.
7125         (target_info_proc): Update.
7126         * target.c (target_info_proc): Make "args" const.
7127         * procfs.c (procfs_info_proc): Update.
7128         * linux-tdep.c (linux_info_proc): Update.
7129         (linux_core_info_proc_mappings): Make "args" const.
7130         (linux_core_info_proc): Update.
7131         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
7132         * gdbarch.c: Rebuild.
7133         * gdbarch.h: Rebuild.
7134         * corelow.c (core_info_proc): Update.
7135
7136 2014-06-16  Tom Tromey  <tromey@redhat.com>
7137
7138         * target.h (struct target_ops) <to_disconnect>: Make parameter
7139         const.
7140         (target_disconnect): Update.
7141         * target.c (target_disconnect): Make "args" const.
7142         * target-delegates.c: Rebuild.
7143         * remote.c (remote_disconnect): Update.
7144         * record.h (record_disconnect): Update.
7145         * record.c (record_disconnect): Update.
7146         * inf-child.c (inf_child_disconnect): Update.
7147
7148 2014-06-16  Tom Tromey  <tromey@redhat.com>
7149
7150         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7151         * target.c (debug_to_rcmd, default_rcmd): Update.
7152         * target-delegates.c: Rebuild.
7153         * remote.c (remote_rcmd): Update.
7154         * monitor.c (monitor_rcmd): Update.
7155
7156 2014-06-16  Pedro Alves  <palves@redhat.com>
7157
7158         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7159         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7160         have OBJF_SHARED set.
7161         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7162         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
7163         instead of OBJF_USERLOADED.
7164         * objfiles.h (OBJF_SHARED): Update comment.
7165         (userloaded_objfile_contains_address_p): Rename to ...
7166         (shared_objfile_contains_address_p): ... this, and update
7167         comments.
7168         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7169         new objfile.
7170         (remove_symbol_file_command): Skip objfiles that don't have
7171         OBJF_SHARED set.
7172
7173 2014-06-16  Tom Tromey  <tromey@redhat.com>
7174
7175         * minsyms.h (prim_record_minimal_symbol)
7176         (prim_record_minimal_symbol_and_info): Update comments.
7177
7178 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
7179
7180         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7181         or --without-guile, according to how GDB was built.
7182
7183 2014-06-13  Tom Tromey  <tromey@redhat.com>
7184
7185         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7186         to help_list.
7187         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7188         to help_list.
7189         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7190         help_list.
7191         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7192         help_list.Pass all_commands, not -1, to help_list.
7193         * cli/cli-dump.c (dump_command, append_command)
7194         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7195         (binary_dump_command, binary_append_command): Pass all_commands,
7196         not -1, to help_list.
7197         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7198         -1, to help_list.
7199         * valprint.c (set_print, set_print_raw): Pass all_commands, not
7200         -1, to help_list.
7201         * typeprint.c (set_print_type): Pass all_commands, not -1, to
7202         help_list.
7203         * top.c (set_history): Pass all_commands, not -1, to help_list.
7204         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7205         all_commands, not -1, to help_list.
7206         * symfile.c (overlay_command): Pass all_commands, not -1, to
7207         help_list.
7208         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7209         help_list.
7210         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7211         help_list.
7212         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7213         -1, to help_list.
7214         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7215         not -1, to help_list.
7216         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7217         not -1, to help_list.
7218         * maint.c (maintenance_command, maintenance_info_command)
7219         (maintenance_print_command, maintenance_set_cmd): Pass
7220         all_commands, not -1, to help_list.
7221         * macrocmd.c (macro_command): Pass all_commands, not -1, to
7222         help_list.
7223         * language.c (set_check): Pass all_commands, not -1, to help_list.
7224         * infcmd.c (unset_command): Pass all_commands, not -1, to
7225         help_list.
7226         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7227         help_list.
7228         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7229         help_list.
7230         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7231         help_list.
7232         * breakpoint.c (save_command): Pass all_commands, not -1, to
7233         help_list.
7234         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7235         all_commands, not -1, to help_list.
7236
7237 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
7238
7239         * regcache.c (struct register_to_invalidate): New structure.
7240         (do_register_invalidate, make_cleanup_regcache_invalidate): New
7241         functions.
7242         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7243
7244 2014-06-12  Yao Qi  <yao@codesourcery.com>
7245
7246         * varobj.c (varobj_get_num_children): Call
7247         varobj_is_dynamic_p.
7248         (varobj_list_children): Likewise.
7249         (varobj_update): Likewise.  Update comments.
7250
7251 2014-06-12  Yao Qi  <yao@codesourcery.com>
7252
7253         * varobj.c (varobj_pretty_printed_p): Rename to ...
7254         (varobj_is_dynamic_p): ... this.  New function.
7255         * varobj.h (varobj_pretty_printed_p): Remove declaration.
7256         (varobj_is_dynamic_p): Declare.
7257         * mi/mi-cmd-var.c (print_varobj): All callers updated.
7258         (mi_print_value_p, varobj_update_one): Likewise.
7259
7260 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
7261             Yao Qi  <yao@codesourcery.com>
7262
7263         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7264         (varobj_get_iterator): Wrap up code for pretty-printer by
7265         "#if HAVE_PYTHON" and "#endif".
7266         (update_dynamic_varobj_children): Likewise.
7267
7268 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
7269             Yao Qi  <yao@codesourcery.com>
7270
7271         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7272         gdb_python_initialized is false.  Move some code from varobj.c.
7273         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7274         * varobj.c: Move "varobj-iter.h" inclusion earlier.
7275         (struct varobj_item): Moved to varobj-iter.h".
7276         (varobj_clear_saved_item): New function.
7277         (update_dynamic_varobj_children): Move python-related code to
7278         py-varobj.c.
7279         (free_variable): Call varobj_clear_saved_item and
7280         varobj_iter_delete.
7281
7282 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
7283             Yao Qi  <yao@codesourcery.com>
7284
7285         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7286         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7287         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7288         (py-varobj.o): New rule.
7289         * python/py-varobj.c: New file.
7290         * python/python-internal.h (py_varobj_get_iterator): Declare.
7291         * varobj-iter.h: New file.
7292         * varobj.c: Include "varobj-iter.h"
7293         (struct varobj) <child_iter>: Change its type from "PyObject *"
7294         to "struct varobj_iter *".
7295         <saved_item>: Likewise.
7296         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7297         [HAVE_PYTHON] (varobj_get_iterator): New function.
7298         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7299         python-specific code to python/py-varobj.c.
7300         (install_visualizer): Call varobj_iter_delete instead of
7301         Py_XDECREF.
7302         * varobj.h (varobj_ensure_python_env): Declare.
7303
7304 2014-06-12  Yao Qi  <yao@codesourcery.com>
7305
7306         * varobj.c (struct varobj_item): New structure.
7307         (create_child_with_value): Update declaration.
7308         (varobj_add_child): Replace arguments 'name' and 'value' with
7309         'item'.  All callers updated.
7310         (install_dynamic_child): Likewise.
7311         (update_dynamic_varobj_children): Likewise.
7312         (varobj_add_child): Likewise.
7313         (create_child_with_value): Likewise.
7314
7315 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
7316
7317         * NEWS: Create a new section for the next release branch.
7318         Rename the section of the current branch, now that it has
7319         been cut.
7320
7321 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
7322
7323         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7324         * version.in: Bump version to 7.8.50.DATE-cvs.
7325
7326 2014-06-11  Pedro Alves  <palves@redhat.com>
7327
7328         PR remote/17028
7329         * ser-mingw.c (net_windows_socket_check_pending): New function.
7330         (net_windows_select_thread): Ignore spurious wakeups.  Use
7331         net_windows_socket_check_pending.
7332         (net_windows_wait_handle): Check for pending events with
7333         ioctlsocket, through net_windows_socket_check_pending, instead of
7334         checking the socket's event.
7335
7336 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
7337
7338         * python/python-internal.h (gdb_PyObject_GetAttrString)
7339         (gdb_PyObject_HasAttrString): New inline function definitions.
7340         * py-value.c (get_field_flag): Remove the now unnecessary cast to
7341         char * of the second argument to PyObject_GetAttrString.
7342
7343 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
7344
7345         * serial.c (serial_write): Fix index of character to be printed
7346         in call to serial_logchar when serial debug traces are enabled.
7347
7348 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
7349
7350         * gdbtypes (resolve_dynamic_range): Add function description.
7351
7352 2014-06-09  Pedro Alves  <palves@redhat.com>
7353
7354         * linux-nat.c (linux_child_follow_fork): Initialize status with
7355         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
7356         inner block.  Only pass the signal to PTRACE_DETACH if in pass
7357         state.
7358
7359 2014-06-09  Gary Benson  <gbenson@redhat.com>
7360
7361         * common/signals.c (gdb_signal_from_host): Reorder to separate
7362         the always-available ANSI-standard signals from the signals that
7363         require checking.
7364         (do_gdb_signal_to_host): Likewise.
7365         * proc-events.c (signal_table): Likewise.
7366
7367 2014-06-08  Hui Zhu  <hui@codesourcery.com>
7368
7369         * common/linux-ptrace.c (linux_disable_event_reporting): New
7370         function.
7371         * common/linux-ptrace.h (linux_disable_event_reporting): New
7372         declaration.
7373         * linux-nat.c (linux_child_follow_fork): Do a single step before
7374         detach.
7375
7376 2014-06-07  Keith Seitz  <keiths@redhat.com>
7377
7378         Revert:
7379         PR c++/16253
7380         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7381         from symbol_matches_domain in symtab.c. All local callers
7382         of symbol_matches_domain updated.
7383         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7384         search STRUCT_DOMAIN.
7385         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7386         independently.  standard_lookup will do that automatically.
7387         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7388         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7389         (cp_lookup_symbol_in_namespace): Likewise.
7390         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7391         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7392         may return a STRUCT_DOMAIN match.
7393         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7394         * cp-support.c: Include language.h.
7395         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7396         VAR_DOMAIN.
7397         * psymtab.c (match_partial_symbol): Compare the requested
7398         domain with the symbol's domain directly.
7399         (lookup_partial_symbol): Likewise.
7400         * symtab.c (lookup_symbol_in_language): Explain when/why
7401         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7402         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7403         appropriate languages.
7404         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7405         and moved to ada-lang.c
7406         (lookup_block_symbol): Explain that this function only returns
7407         symbol matching the requested DOMAIN.
7408         Compare the requested domain with the symbol's domain directly.
7409         (iterate_over_symbols): Compare the requested domain with the
7410         symbol's domain directly.
7411         * symtab.h (symbol_matches_domain): Remove.
7412
7413 2014-06-06  Doug Evans  <xdje42@gmail.com>
7414
7415         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7416         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7417         (gdbscm_guile_version_is_at_least): Declare.
7418         (gdbscm_scm_string_to_int): Declare.
7419         * guile/guile.c (gdbscm_guile_major_version): New global.
7420         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7421         (guile_datadir): New static global.
7422         (gdbscm_guile_data_directory): New function.
7423         (initialize_scheme_side): Update.
7424         (misc_guile_functions): Add guile-data-directory.
7425         (initialize_gdb_module): Fetch guile version number.
7426         * guile/lib/gdb.scm: Remove call to add-to-load-path.
7427         * guile/lib/gdb/init.scm (%initialize!): Ditto.
7428         * guile/lib/gdb/boot.scm: Use guile-data-directory.
7429         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7430         comments.
7431         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7432         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7433         * guile/scm-value.c (gdbscm_value_to_string): Only call
7434         scm_port_conversion_strategy if Guile version >= 2.0.6.
7435
7436 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
7437
7438         * main.c (print_gdb_help): Add -q and --silent.
7439
7440 2014-06-06  Gary Benson  <gbenson@redhat.com>
7441
7442         * common/signals.c: Remove preprocessor conditionals for
7443         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7444         SIGSEGV and SIGTERM.
7445         * proc-events.c: Likewise.
7446
7447 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
7448
7449         * symfile.c (symfile_free_objfile): Remove restriction to
7450         OBJF_USERLOADED.
7451         * symfile-mem.c (symbol_file_add_from_memory): Call
7452         add_target_sections_of_objfile.
7453
7454 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
7455
7456         * guile/scm-value.c (gdbscm_history_append_x): Use
7457         'vlscm_get_value_smob_arg_unsafe' instead of
7458         'vlscm_scm_to_value'.
7459
7460 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
7461
7462         PR mi/15806
7463         * utils.c (printchar): Don't escape at all if quoter is NUL.
7464         Update function documentation to clarify effect of parameter
7465         QUOTER.
7466         * remote.c (escape_buffer): Pass '\\' as the quoter to
7467         fputstrn_unfiltered.
7468         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7469         generate the output.
7470         (mi_solib_unloaded): Same.
7471
7472 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
7473
7474         * development.sh: Delete.
7475         * Makefile.in (config.status): Adjust dependency on development.sh.
7476         * configure.ac: Adjust development.sh source call.
7477         * configure: Regenerate.
7478
7479 2014-06-04  Doug Evans  <xdje42@gmail.com>
7480
7481         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7482         is_scheme_bkpt, spec.
7483         (bpscm_make_breakpoint_smob): Initialize new members.
7484         (gdbscm_create_breakpoint_x): Split into two ...
7485         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7486         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7487         (scheme_function breakpoint_functions): Update.
7488         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
7489         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
7490         register-breakpoint!.
7491
7492 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
7493
7494         PR server/17023
7495         * mem-break.c (z_type_supported): Return zero if
7496         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7497
7498 2014-06-04  Tom Tromey  <tromey@redhat.com>
7499
7500         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7501         value_from_contents_and_address_unresolved.
7502         (ada_template_to_fixed_record_type_1): Likewise.
7503         (ada_which_variant_applies): Likewise.
7504         * value.h (value_from_contents_and_address_unresolved): Declare.
7505         * value.c (value_from_contents_and_address_unresolved): New
7506         function.
7507         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7508         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7509         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7510
7511 2014-06-04  Tom Tromey  <tromey@redhat.com>
7512
7513         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7514
7515 2014-06-04  Tom Tromey  <tromey@redhat.com>
7516
7517         * procfs.c (procfs_attach): Make "args" const.
7518         * windows-nat.c (windows_attach): Make "args" const.
7519         * nto-procfs.c (procfs_attach): Make "args" const.
7520         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7521         * go32-nat.c (go32_attach): Make "args" const.
7522         * gnu-nat.c (gnu_attach): Make "args" const.
7523         * darwin-nat.c (darwin_attach): Make "args" const.
7524         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7525         * linux-nat.c (linux_nat_attach): Make "args" const.
7526         * remote.c (extended_remote_attach_1, extended_remote_attach):
7527         Make "args" const.
7528         * target.h (struct target_ops) <to_attach>: Make "args" const.
7529         (find_default_attach): Likewise.
7530         * utils.c (parse_pid_to_attach): Make "args" const.
7531         * utils.h (parse_pid_to_attach): Update.
7532
7533 2014-06-04  Tom Tromey  <tromey@redhat.com>
7534
7535         * target-delegates.c: Rebuild.
7536         * target.c (default_thread_address_space): New function.
7537         (target_thread_address_space): Simplify.
7538         * target.h (struct target_ops) <to_thread_address_space>: Add
7539         TARGET_DEFAULT_FUNC.
7540
7541 2014-06-04  Doug Evans  <xdje42@gmail.com>
7542
7543         * guile/scm-type.c (type_smob): Remove duplicate typedef.
7544
7545 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
7546
7547         * record-btrace.c: Include event-loop.h and inf-loop.h.
7548         (record_btrace_resume_exec_dir)
7549         (record_btrace_async_inferior_event_handler)
7550         (record_btrace_handle_async_inferior_event): New.
7551         (record_btrace_open): Create async event handler.
7552         (record_btrace_close): Delete async event handler.
7553         (record_btrace_resume): Set record_btrace_resume_exec_dir,
7554         Mark async event handler.
7555         (record_btrace_execution_direction): New.
7556         (init_record_btrace_ops): Initialize to_execution_direction.
7557
7558 2014-06-03  Doug Evans  <xdje42@gmail.com>
7559
7560         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7561         (gdbscm_make_parameter): Ditto.
7562
7563 2014-06-03  Doug Evans  <dje@google.com>
7564
7565         * exec.c (exec_close_1): Call clear_section_table instead of
7566         resize_section_table.
7567         (clear_section_table): New function.
7568         (resize_section_table): Make static.  Rename arg num_added to
7569         adjustment.
7570         * exec.h (clear_section_table): Declare.
7571         (resize_section_table): Delete.
7572         * progspace.c (release_program_space): Call clear_section_table
7573         instead of resize_section_table.
7574
7575 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
7576
7577         * NEWS (Python Scripting): Add entry about the new xmethods
7578         feature.
7579
7580 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
7581
7582         * python/py-xmethods.c: New file.
7583         * python/py-objfile.c (objfile_object): New field 'xmethods'.
7584         (objfpy_dealloc): XDECREF on the new xmethods field.
7585         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7586         field.
7587         (objfpy_get_xmethods): New function.
7588         (objfile_getset): New entry 'xmethods'.
7589         * python/py-progspace.c (pspace_object): New field 'xmethods'.
7590         (pspy_dealloc): XDECREF on the new xmethods field.
7591         (pspy_new, pspace_to_pspace_object): Initialize xmethods
7592         field.
7593         (pspy_get_xmethods): New function.
7594         (pspace_getset): New entry 'xmethods'.
7595         * python/python-internal.h: Add declarations for new functions.
7596         * python/python.c (_initialize_python): Invoke
7597         gdbpy_initialize_xmethods.
7598         * python/lib/gdb/__init__.py (xmethods): New
7599         attribute.
7600         * python/lib/gdb/xmethod.py: New file.
7601         * python/lib/gdb/command/xmethods.py: New file.
7602
7603 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
7604
7605         * eval.c (evaluate_subexp_standard): Call the xmethod if the
7606         best match method returned by find_overload_match is an xmethod.
7607         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7608         the best matching operator returned by find_overload_match is an
7609         xmethod.
7610         * valops.c: #include "extension.h".
7611         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7612         Return void.  The list of matching source methods is returned in
7613         "fn_list" and a vector of matching debug method workers is
7614         returned in "xm_worker_vec".  Update all callers.
7615         (value_find_oload_method_list): Likewise.
7616         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
7617         non-NULL, then the index of the best matching method in this
7618         vector is returned.  Update all callers.
7619         (find_overload_match): Include xmethods while performing overload
7620         resolution.
7621
7622 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
7623
7624         * defs.h (enum lval_type): New enumerator "lval_xcallable".
7625         * extension-priv.h (struct extension_language_ops): Add the
7626         xmethod interface.
7627         * extension.c (new_xmethod_worker, clone_xmethod_worker,
7628         get_matching_xmethod_workers, get_xmethod_argtypes,
7629         invoke_xmethod, free_xmethod_worker,
7630         free_xmethod_worker_vec): New functions.
7631         * extension.h: #include "common/vec.h".
7632         New function declarations.
7633         (struct xmethod_worker): New struct.
7634         (VEC (xmethod_worker_ptr)): New vector type.
7635         (xmethod_worker_ptr): New typedef.
7636         (xmethod_worker_vec): Likewise.
7637         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7638         builtin_type.
7639         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7640         (struct builtin_type): New field "xmethod".
7641         * valarith.c (value_ptradd): Assert that the value argument is not
7642         lval_xcallable.
7643         * valops.c (value_must_coerce_to_target): Return 0 for
7644         lval_xcallable values.
7645         * value.c (struct value): New field XM_WORKER in the field
7646         LOCATION.
7647         (value_address, value_raw_address): Return 0 for lval_xcallable
7648         values.
7649         (set_value_address): Assert that the value is not an
7650         lval_xcallable.
7651         (value_free): Free the associated xmethod worker when freeing
7652         lval_xcallable values.
7653         (set_value_component_location): Assert that the WHOLE value is not
7654         lval_xcallable.
7655         (value_of_xmethod, call_xmethod): New functions.
7656         * value.h: Declare "struct xmethod_worker".
7657         Declare new functions value_of_xmethod, call_xmethod.
7658
7659 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
7660             Pedro Alves  <palves@redhat.com>
7661
7662         PR breakpoints/17000
7663         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7664         New function, extracted from software_breakpoint_inserted_here_p.
7665         (software_breakpoint_inserted_here_p): Replace factored out code
7666         by call to find_non_raw_software_breakpoint_inserted_here.
7667         (bp_target_info_copy_insertion_state): New function.
7668         (bkpt_insert_location): Handle the case of a single-step
7669         breakpoint already inserted at the same address.
7670         (bkpt_remove_location): Handle the case of a single-step
7671         breakpoint still inserted at the same address.
7672         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7673         breakpoint already inserted at the same address.
7674         (deprecated_remove_raw_breakpoint): Handle the case of a
7675         non-raw breakpoint still inserted at the same address.
7676         (find_single_step_breakpoint): New function, extracted from
7677         single_step_breakpoint_inserted_here_p.
7678         (find_single_step_breakpoint): New function,
7679         factored out from single_step_breakpoint_inserted_here_p.
7680         (single_step_breakpoint_inserted_here_p): Reimplement.
7681
7682 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
7683
7684         Pushed by Joel Brobecker  <brobecker@adacore.com>
7685         * source.c (show_substitute_path_command): Fix display of matching
7686         substitution rules.
7687
7688 2014-06-03  Gary Benson  <gbenson@redhat.com>
7689
7690         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7691
7692 2014-06-02  Doug Evans  <xdje42@gmail.com>
7693
7694         Add parameter support for Guile.
7695         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7696         (SUBDIR_GUILE_SRCS): Add scm-param.c.
7697         (scm-param.o): New rule.
7698         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7699         (gdbscm_misc_error): Declare.
7700         (gdbscm_canonicalize_command_name): Declare.
7701         (gdbscm_scm_to_host_string): Declare.
7702         (gdbscm_scm_from_host_string): Declare.
7703         (gdbscm_initialize_parameters): Declare.
7704         * guile/guile.c (initialize_gdb_module): Call
7705         gdbscm_initialize_parameters.
7706         * guile/lib/gdb.scm: Export parameter symbols.
7707         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7708         cmdscm_canonicalize_name and made public.  All callers updated.
7709         * guile/scm-exception.c (gdbscm_misc_error): New function.
7710         * guile/scm-param.c: New file.
7711         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7712         (gdbscm_scm_to_host_string): New function.
7713         (gdbscm_scm_from_host_string): New function.
7714         * scm-utils.c (gdbscm_gc_dup_argv): New function.
7715
7716 2014-06-02  Doug Evans  <xdje42@gmail.com>
7717
7718         Add command support for Guile.
7719         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7720         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7721         (scm-cmd.o): New rule.
7722         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7723         (gdbscm_user_error_p): Declare.
7724         (gdbscm_parse_command_name): Declare.
7725         (gdbscm_valid_command_class_p): Declare.
7726         (gdbscm_initialize_commands): Declare.
7727         * guile/guile.c (initialize_gdb_module): Call
7728         gdbscm_initialize_commands.
7729         * guile/lib/gdb.scm: Export command symbols.
7730         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7731         (throw-user-error): New function.
7732         * guile/scm-cmd.c: New file.
7733         * guile/scm-exception.c (user_error_symbol): New static global.
7734         (gdbscm_user_error_p): New function.
7735         (gdbscm_initialize_exceptions): Set user_error_symbol.
7736         * scm-utils.c (gdbscm_gc_xstrdup): New function.
7737
7738 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
7739
7740         * top.c (command_loop): Handle comments here...
7741         (command_line_input): ... not here.
7742
7743 2014-06-02  Doug Evans  <xdje42@gmail.com>
7744
7745         Add progspace support for Guile.
7746         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7747         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7748         (scm-progspace.o): New rule.
7749         * guile/guile-internal.h (pspace_smob): New typedef.
7750         (psscm_pspace_smob_pretty_printers): Declare.
7751         (psscm_pspace_smob_from_pspace): Declare.
7752         (psscm_scm_from_pspace): Declare.
7753         * guile/guile.c (initialize_gdb_module): Call
7754         gdbscm_initialize_pspaces.
7755         * guile/lib/gdb.scm: Export progspace symbols.
7756         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7757         support.
7758         (append-pretty-printer!): Ditto.
7759         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7760         Implement.
7761         * guile/scm-progspace.c: New file.
7762
7763 2014-06-03  Alan Modra  <amodra@gmail.com>
7764
7765         * ppc64-tdep.c (ppc64_standard_linkage8): New.
7766         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7767
7768 2014-06-02  Doug Evans  <dje@google.com>
7769
7770         Add support for skeletonless type units.
7771         * dwarf2read.c (struct dwarf2_per_objfile): New member
7772         n_allocated_type_units.
7773         (struct dwarf2_per_objfile) <tu_stats>: New member
7774         nr_all_type_units_reallocs.
7775         (create_signatured_type_table_from_index): Initialize
7776         n_allocated_type_units
7777         (create_all_type_units): Ditto.
7778         (add_type_unit): Move up in file.  New arg slot.
7779         All callers updated.  Increase space for all_type_units more
7780         efficiently.
7781         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7782         (lookup_dwo_signatured_type): Handle skeletonless TUs.
7783         (lookup_dwp_signatured_type): Ditto.
7784         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7785         All callers updated.
7786         (build_type_psymtabs_1): Leave type_unit_groups as
7787         NULL if no TUs present.
7788         (print_tu_stats): New function.
7789         (process_skeletonless_type_unit): New function.
7790         (process_dwo_file_for_skeletonless_type_units): New
7791         function.
7792         (process_skeletonless_type_units): New function.
7793         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7794         Call print tu_stats if debugging enabled.
7795
7796 2014-06-02  Pedro Alves  <palves@redhat.com>
7797
7798         * breakpoint.c (build_target_command_list): Don't build a command
7799         list if we have any duplicate location that isn't a dprintf.
7800
7801 2014-06-02  Pedro Alves  <palves@redhat.com>
7802
7803         * breakpoint.c (dprintf_breakpoint_hit): New function.
7804         (initialize_breakpoint_ops): Install it as dprintf's
7805         breakpoint_hit method.
7806
7807 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
7808
7809         * source.c (substitute_path_rule_matches): Simplify using
7810         filename_ncmp instead of FILENAME_CMP.
7811
7812 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
7813
7814         * source.c (substitute_path_rule_matches): Remove trailing spaces.
7815
7816 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
7817
7818         * configure.ac: When Guile is available, check for the
7819         availability of 'scm_new_smob'.
7820         * configure, config.h.in: Regenerate.
7821         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7822         function.
7823
7824 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
7825
7826         * frame.c (struct frame_info): Add stop_string field.
7827         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7828         (get_prev_frame_always): Old content moved into
7829         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
7830         TRY_CATCH, handle MEMORY_ERROR exceptions.
7831         (frame_stop_reason_string): New function definition.
7832         * frame.h (unwind_stop_reason_to_string): Extend comment to
7833         mention frame_stop_reason_string.
7834         (frame_stop_reason_string): New function declaration.
7835         * stack.c (frame_info): Switch to frame_stop_reason_string.
7836         (backtrace_command_1): Switch to frame_stop_reason_string.
7837         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7838         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7839         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7840
7841 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
7842
7843         * frame.c (frame_stop_reason_string): Rename to ...
7844         (unwind_stop_reason_to_string): this.
7845         * frame.h (frame_stop_reason_string): Rename to ...
7846         (unwind_stop_reason_to_string): this.
7847         * stack.c (frame_info): Update call to frame_stop_reason_string.
7848         (backtrace_command_1): Likewise.
7849         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7850         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7851
7852 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
7853
7854         * frame.c (remove_prev_frame): New function.
7855         (get_prev_frame_if_no_cycle): Create / discard cleanup using
7856         remove_prev_frame.
7857
7858 2014-05-29  Pedro Alves  <palves@redhat.com>
7859
7860         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7861         and make it const.  When a single-step decays to a continue,
7862         clear 'step', not 'hw_step'.  Pass whether the caller wanted
7863         to step to user_visible_resume_ptid, not what we ask the
7864         target to do.
7865
7866 2014-05-29  Pedro Alves  <palves@redhat.com>
7867
7868         * infrun.c (process_event_stop_test, handle_step_into_function)
7869         (handle_step_into_function_backward): Adjust.
7870         Don't set the even thread's stop_step and call stop_waiting before
7871         calling end_stepping_range.  Instead do that ...
7872         (end_stepping_range): ... here.  Take an ecs pointer parameter.
7873
7874 2014-05-29  Pedro Alves  <palves@redhat.com>
7875
7876         * infrun.c (stop_stepping): Rename to ...
7877         (stop_waiting): ... this.
7878         (proceed): Update comment.
7879         (process_event_stop_test, handle_inferior_event)
7880         (handle_signal_stop, handle_step_into_function)
7881         (handle_step_into_function_backward): Update.
7882
7883 2014-05-29  Pedro Alves  <palves@redhat.com>
7884
7885         * infcall.c (run_inferior_call): Don't check whether the current
7886         thread is running after the proceed call.
7887
7888 2014-05-29  Pedro Alves  <palves@redhat.com>
7889             Tom Tromey  <tromey@redhat.com>
7890
7891         * NEWS: Mention "maint set target-async", "set mi-async", and that
7892         background execution commands are now always available.
7893         * target.h (target_async_permitted): Update comment.
7894         * target.c (target_async_permitted, target_async_permitted_1):
7895         Default to 1.
7896         (set_target_async_command): Rename to ...
7897         (maint_set_target_async_command): ... this.
7898         (show_target_async_command): Rename to ...
7899         (maint_show_target_async_command): ... this.
7900         (_initialize_target): Adjust.
7901         * infcmd.c (prepare_execution_command): Make extern.
7902         * inferior.h (prepare_execution_command): Declare.
7903         * infrun.c (set_observer_mode): Leave target async alone.
7904         * mi/mi-interp.c (mi_interpreter_init): Install
7905         mi_on_sync_execution_done as sync_execution_done observer.
7906         (mi_on_sync_execution_done): New function.
7907         (mi_execute_command_input_handler): Don't print the prompt if we
7908         just started a synchronous command with an async target.
7909         (mi_on_resume): Check sync_execution before printing prompt.
7910         * mi/mi-main.h (mi_async_p): Declare.
7911         * mi/mi-main.c: Include gdbcmd.h.
7912         (mi_async_p): New function.
7913         (mi_async, mi_async_1): New globals.
7914         (set_mi_async_command, show_mi_async_command, mi_async): New
7915         functions.
7916         (exec_continue): Call prepare_execution_command.
7917         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7918         (mi_execute_async_cli_command): Use mi_async_p.
7919         (_initialize_mi_main): Install "set mi-async".  Make
7920         "target-async" a deprecated alias.
7921
7922 2014-05-29  Pedro Alves  <palves@redhat.com>
7923
7924         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7925         (_initialize_cli_interp): Adjust.
7926         * event-loop.c: Include "observer.h".
7927         (start_event_loop): Notify 'command_error' observers instead of
7928         calling display_gdb_prompt.  Remove FIXME comment.
7929         * event-top.c (display_gdb_prompt): Remove call into the
7930         interpreters.
7931         * inf-loop.c: Include "observer.h".
7932         (inferior_event_handler): Notify 'command_error' observers instead
7933         of calling display_gdb_prompt.
7934         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7935         observers instead of calling display_gdb_prompt.
7936         * interps.c (interp_set): Don't call display_gdb_prompt.
7937         (current_interp_display_prompt_p): Delete.
7938         * interps.h (interp_prompt_p): Delete declaration.
7939         (interp_prompt_p_ftype): Delete.
7940         (struct interp_procs) <prompt_proc_p>: Delete field.
7941         (current_interp_display_prompt_p): Delete declaration.
7942         * mi-interp.c (mi_interpreter_prompt_p): Delete.
7943         (_initialize_mi_interp): Adjust.
7944         * tui-interp.c (tui_init): Install 'sync_execution_done' and
7945         'command_error' observers.
7946         (tui_on_sync_execution_done, tui_on_command_error): New
7947         functions.
7948         (tui_display_prompt_p): Delete.
7949         (_initialize_tui_interp): Adjust.
7950
7951 2014-05-29  Pedro Alves  <palves@redhat.com>
7952
7953         PR gdb/13860
7954         * cli/cli-interp.c: Include infrun.h and observer.h.
7955         (cli_uiout, cli_interp): New globals.
7956         (cli_on_signal_received, cli_on_end_stepping_range)
7957         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7958         functions.
7959         (cli_interpreter_init): Install them as 'end_stepping_range',
7960         'signal_received' 'signal_exited', 'exited' and 'no_history'
7961         observers.
7962         (_initialize_cli_interp): Remove cli_interp local.
7963         * infrun.c (handle_inferior_event): Call the several stop reason
7964         observers instead of printing the stop reason directly.
7965         (end_stepping_range): New function.
7966         (print_end_stepping_range_reason, print_signal_exited_reason)
7967         (print_exited_reason, print_signal_received_reason)
7968         (print_no_history_reason): Make static, and add an uiout
7969         parameter.  Print to that instead of to CURRENT_UIOUT.
7970         * infrun.h (print_end_stepping_range_reason)
7971         (print_signal_exited_reason, print_exited_reason)
7972         (print_signal_received_reason print_no_history_reason): New
7973         declarations.
7974         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7975         'mi_uiout'.
7976         <cli_uiout>: New field.
7977         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
7978         uiout for CLI output.  Install 'signal_received',
7979         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7980         observers.
7981         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7982         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7983         (mi_on_no_history): New functions.
7984         (ui_out_free_cleanup): Delete function.
7985         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7986         instead use the one already stored in the MI interpreter data.
7987         (mi_ui_out): Adjust.
7988         * tui/tui-interp.c: Include infrun.h and observer.h.
7989         (tui_interp): New global.
7990         (tui_on_signal_received, tui_on_end_stepping_range)
7991         (tui_on_signal_exited, tui_on_exited)
7992         (tui_on_no_history): New functions.
7993         (tui_init): Install them as 'end_stepping_range',
7994         'signal_received' 'signal_exited', 'exited' and 'no_history'
7995         observers.
7996         (_initialize_tui_interp): Delete tui_interp local.
7997
7998 2014-05-29  Pedro Alves  <palves@redhat.com>
7999
8000         PR gdb/15713
8001         * linux-nat.c (linux_nat_resume_callback): Rename the second
8002         parameter to 'except'.  Skip LP if it points to EXCEPT.
8003         (linux_nat_resume): Don't mark the event lwp as not stopped
8004         before resuming sibling lwps.  Instead ask
8005         linux_nat_resume_callback to skip the event lwp.  Mark it as not
8006         stopped after actually resuming it.
8007         (linux_handle_syscall_trap): Mark the lwp as not stopped after
8008         resuming it.
8009         (wait_lwp): Mark the lwp as stopped here.
8010         (stop_wait_callback): Mark the lwp as not stopped right after
8011         resuming it.  Don't mark lwps as stopped here.
8012         (linux_nat_filter_event): Mark the lwp as stopped earlier.
8013         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
8014
8015 2014-05-29  Pedro Alves  <palves@redhat.com>
8016
8017         PR PR15693
8018         * infrun.c (resume): Determine how much to resume depending on
8019         whether the caller wanted a step, not whether we can hardware step
8020         the target.  Mark all threads that we intend to run as running,
8021         unless we're calling an inferior function.
8022         (normal_stop): If the thread is running an infcall, don't finish
8023         thread state.
8024         * target.c (target_resume): Don't mark threads as running here.
8025
8026 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
8027
8028         * serial.c (_initialize_serial): Remove support for
8029         the "set remotebaud" and "show remotebaud" commands.
8030         * NEWS: Add entry documenting the removal of that command.
8031
8032 2014-05-28  Yao Qi  <yao@codesourcery.com>
8033
8034         * charset.c: Fix typo in comments.
8035
8036 2014-05-27  Gary Benson  <gbenson@redhat.com>
8037
8038         * utils.c (internal_vproblem): Prompt for a bug report.
8039
8040 2014-05-26  Andy Wingo  <wingo@igalia.com>
8041
8042         * guile/scm-arch.c (arscm_mark_arch_smob):
8043         * guile/scm-block.c (bkscm_mark_block_smob)
8044         (bkscm_mark_block_syms_progress_smob):
8045         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
8046         * guile/scm-exception.c (exscm_mark_exception_smob):
8047         * guile/scm-frame.c (frscm_mark_frame_smob):
8048         * guile/scm-iterator.c (itscm_mark_iterator_smob):
8049         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
8050         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
8051         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
8052         (ppscm_mark_pretty_printer_worker_smob):
8053         * guile/scm-symbol.c (syscm_mark_symbol_smob):
8054         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
8055         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
8056         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
8057         mark functions.
8058         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
8059         function.
8060
8061 2014-05-26  Andy Wingo  <wingo@igalia.com>
8062             Doug Evans  <xdje42@gmail.com>
8063
8064         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
8065         empty_base_class.  All uses updated.
8066         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
8067         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
8068         Adapt all callers.
8069         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
8070         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
8071         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
8072         (gdbscm_gsmob_has_property_p, add_property_name)
8073         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
8074         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
8075         (gdb-object-has-property?, gdb-object-properties): Remove.
8076         (gdb-object-kind): Renamed from gsmob-kind.
8077
8078 2014-05-26  Andy Wingo  <wingo@igalia.com>
8079
8080         * configure.ac (try_guile_versions): Allow building with guile 2.2.
8081         * configure: Regenerate.
8082
8083 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
8084
8085         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
8086
8087 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
8088
8089         * record-btrace.c (record_btrace_allow_memory_access): Remove.
8090         (replay_memory_access_read_only, replay_memory_access_read_write)
8091         (replay_memory_access_types, replay_memory_access)
8092         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
8093         (cmd_set_record_btrace, cmd_show_record_btrace)
8094         (cmd_show_replay_memory_access): New.
8095         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8096         (record_btrace_remove_breakpoint): Replace
8097         record_btrace_allow_memory_access with replay_memory_access.
8098         (_initialize_record_btrace): Add commands.
8099         * NEWS: Announce it.
8100
8101 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8102
8103         * aarch64-linux-nat.c (asm/ptrace.h): Include.
8104
8105 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8106
8107         * MAINTAINERS (Write After Approval): Move self back from
8108         paper trail.
8109
8110 2014-05-22  Pedro Alves  <palves@redhat.com>
8111
8112         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
8113         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
8114         (disable_randomization, enum exec_direction_kind)
8115         (execution_direction, stop_registers, start_remote)
8116         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
8117         (wait_for_inferior, normal_stop, get_last_target_status)
8118         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
8119         (insert_step_resume_breakpoint_at_sal)
8120         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
8121         (set_step_info, print_stop_event, signal_stop_state)
8122         (signal_print_state, signal_pass_state, signal_stop_update)
8123         (signal_print_update, signal_pass_update)
8124         (update_signals_program_target, clear_exit_convenience_vars)
8125         (displaced_step_dump_bytes, update_observer_mode)
8126         (signal_catch_update, gdb_signal_from_command): Move
8127         declarations ...
8128         * infrun.h: ... to this new file.
8129         * amd64-tdep.c: Include infrun.h.
8130         * annotate.c: Include infrun.h.
8131         * arch-utils.c: Include infrun.h.
8132         * arm-linux-tdep.c: Include infrun.h.
8133         * arm-tdep.c: Include infrun.h.
8134         * break-catch-sig.c: Include infrun.h.
8135         * breakpoint.c: Include infrun.h.
8136         * common/agent.c: Include infrun.h instead of inferior.h.
8137         * corelow.c: Include infrun.h.
8138         * event-top.c: Include infrun.h.
8139         * go32-nat.c: Include infrun.h.
8140         * i386-tdep.c: Include infrun.h.
8141         * inf-loop.c: Include infrun.h.
8142         * infcall.c: Include infrun.h.
8143         * infcmd.c: Include infrun.h.
8144         * infrun.c: Include infrun.h.
8145         * linux-fork.c: Include infrun.h.
8146         * linux-nat.c: Include infrun.h.
8147         * linux-thread-db.c: Include infrun.h.
8148         * monitor.c: Include infrun.h.
8149         * nto-tdep.c: Include infrun.h.
8150         * procfs.c: Include infrun.h.
8151         * record-btrace.c: Include infrun.h.
8152         * record-full.c: Include infrun.h.
8153         * remote-m32r-sdi.c: Include infrun.h.
8154         * remote-mips.c: Include infrun.h.
8155         * remote-notif.c: Include infrun.h.
8156         * remote-sim.c: Include infrun.h.
8157         * remote.c: Include infrun.h.
8158         * reverse.c: Include infrun.h.
8159         * rs6000-tdep.c: Include infrun.h.
8160         * s390-linux-tdep.c: Include infrun.h.
8161         * solib-irix.c: Include infrun.h.
8162         * solib-osf.c: Include infrun.h.
8163         * solib-svr4.c: Include infrun.h.
8164         * target.c: Include infrun.h.
8165         * top.c: Include infrun.h.
8166         * windows-nat.c: Include infrun.h.
8167         * mi/mi-interp.c: Include infrun.h.
8168         * mi/mi-main.c: Include infrun.h.
8169         * python/py-threadevent.c: Include infrun.h.
8170
8171 2014-05-22  Pedro Alves  <palves@redhat.com>
8172
8173         * infrun.c (handle_inferior_event): Store the exit code for
8174         --return-child-result here, instead of ...
8175         (print_exited_reason): ... here.
8176
8177 2014-05-21  Pedro Alves  <palves@redhat.com>
8178
8179         PR gdb/13860
8180         * gdbthread.h (struct thread_control_state): New field
8181         `command_interp'.
8182         * infrun.c (follow_fork): Copy the new thread control field to the
8183         child fork thread.
8184         (clear_proceed_status_thread): Clear the new thread control field.
8185         (proceed): Set the new thread control field.
8186         * interps.h (command_interp): Declare.
8187         * interps.c (command_interpreter): New global.
8188         (command_interp): New function.
8189         (interp_exec): Set `command_interpreter' while here.
8190         * cli-out.c (cli_uiout_dtor): New function.
8191         (cli_ui_out_impl): Install it.
8192         * mi/mi-interp.c: Include cli-out.h.
8193         (mi_cmd_interpreter_exec): Add comment.
8194         (restore_current_uiout_cleanup): New function.
8195         (ui_out_free_cleanup): New function.
8196         (mi_on_normal_stop): If finishing an execution command started by
8197         a CLI command, or any kind of breakpoint-like event triggered,
8198         print the stop event to the output (CLI) stream.
8199         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8200
8201 2014-05-21  Pedro Alves  <palves@redhat.com>
8202
8203         * cli/cli-cmds.c (list_command): Handle the first "list" after the
8204         current source line having changed.
8205         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8206         * infrun.c (normal_stop): Adjust call to
8207         set_current_sal_from_frame.
8208         * source.c (clear_lines_listed_range): New function.
8209         (set_current_source_symtab_and_line, identify_source_line): Clear
8210         the lines listed range.
8211         (line_info): Handle the first "info line" after the current source
8212         line having changed.
8213         * stack.c (print_stack_frame): Remove center handling.
8214         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
8215         center sal.line.
8216
8217 2014-05-21  Pedro Alves  <palves@redhat.com>
8218
8219         * inf-child.c (inf_child_mourn_inferior): New function.
8220         * inf-child.h (inf_child_mourn_inferior): New declaration.
8221         * darwin-nat.c (darwin_mourn_inferior): Use
8222         inf_child_mourn_inferior.
8223         * gnu-nat.c (gnu_mourn_inferior): Likewise.
8224         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8225         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8226         * nto-procfs.c (procfs_mourn_inferior): Likewise.
8227         * windows-nat.c (windows_mourn_inferior): Likewise.
8228
8229 2014-05-21  Doug Evans  <xdje42@gmail.com>
8230
8231         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
8232
8233 2014-05-21  Doug Evans  <xdje42@gmail.com>
8234
8235         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
8236         (gdbscm_out_of_range_error): Ditto.
8237         (gdbscm_memory_error): Ditto.
8238         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8239         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
8240         (gdbscm_out_of_range_error): Update.
8241         (gdbscm_memory_error): Update.
8242         (gdbscm_scm_to_target_string_unsafe): Delete.
8243
8244 2014-05-21  Pedro Alves  <palves@redhat.com>
8245
8246         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8247         globals.
8248         (inf_child_open_target): New function.
8249         (inf_child_open): Use inf_child_open_target to push the target
8250         instead of erroring out.
8251         (inf_child_disconnect, inf_child_close)
8252         (inf_child_maybe_unpush_target): New functions.
8253         (inf_child_target): Install inf_child_disconnect and
8254         inf_child_close.  Store a pointer to the returned object.
8255         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8256         declarations.
8257         * target.c (auto_connect_native_target): New global.
8258         (show_default_run_target): New function.
8259         (find_default_run_target): Return NULL if automatically connecting
8260         to the native target is disabled.
8261         (_initialize_target): Install set/show auto-connect-native-target.
8262         * NEWS: Mention "set auto-connect-native-target", and "target
8263         native".
8264         * linux-nat.c (super_close): New global.
8265         (linux_nat_close): Call super_close.
8266         (linux_nat_add_target): Store a pointer to the base class's
8267         to_close method.
8268         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8269         inf_child_maybe_unpush.
8270         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8271         already pushed.
8272         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8273         the inferior.  Use inf_child_maybe_unpush_target.
8274         (inf_ttrace_attach): Don't push the target if it is already
8275         pushed.
8276         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8277         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8278         after mourning the inferior.  Use inf_child_maybe_unpush_target.
8279         (darwin_attach_pid): Don't push the target if it is already
8280         pushed.
8281         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8282         mourning the inferior.  Use inf_child_maybe_unpush_target.
8283         (gnu_detach): Use inf_child_maybe_unpush_target.
8284         * go32-nat.c (go32_create_inferior): Don't push the target if it
8285         is already pushed.
8286         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8287         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8288         (procfs_open): Rename to ...
8289         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
8290         comments.  Can target_preopen before changing node.  Call
8291         inf_child_open_target to push the target explicitly.
8292         (procfs_attach): Don't push the target if it is already pushed.
8293         (procfs_detach): Use inf_child_maybe_unpush_target.
8294         (procfs_create_inferior): Don't push the target if it is already
8295         pushed.
8296         (nto_native_ops): New global.
8297         (procfs_open): Reimplement.
8298         (procfs_native_open): New function.
8299         (init_procfs_targets): Install procfs_native_open as to_open of
8300         "target native".  Store a pointer to the "native" target in
8301         nto_native_ops.
8302         * procfs.c (procfs_attach): Don't push the target if it is already
8303         pushed.
8304         (procfs_detach): Use inf_child_maybe_unpush_target.
8305         (procfs_mourn_inferior): Only unpush the target after mourning the
8306         inferior.  Use inf_child_maybe_unpush_target.
8307         (procfs_init_inferior): Don't push the target if it is already
8308         pushed.
8309         * windows-nat.c (do_initial_windows_stuff): Don't push the target
8310         if it is already pushed.
8311
8312 2014-05-21  Pedro Alves  <palves@redhat.com>
8313
8314         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8315         and "procfs" targets are now called "native" instead.
8316
8317 2014-05-21  Pedro Alves  <palves@redhat.com>
8318
8319         * go32-nat.c (go32_open): Delete.
8320         (go32_target): Don't override the to_open method.
8321
8322 2014-05-21  Pedro Alves  <palves@redhat.com>
8323
8324         * nto-procfs.c (procfs_can_run): New function.
8325         (nto_procfs_ops): New global.
8326         (init_procfs_targets): New, based on procfs_target.  Install
8327         "target native" in addition to "target procfs".
8328         (_initialize_procfs): Call init_procfs_targets instead of adding
8329         the target here.
8330
8331 2014-05-21  Pedro Alves  <palves@redhat.com>
8332
8333         * windows-nat.c (windows_target): Don't override to_shortname,
8334         to_longname or to_doc.
8335
8336 2014-05-21  Pedro Alves  <palves@redhat.com>
8337
8338         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8339         to_doc.
8340
8341 2014-05-21  Pedro Alves  <palves@redhat.com>
8342
8343         * darwin-nat.c (_initialize_darwin_inferior): Don't override
8344         to_shortname, to_longname or to_doc.
8345
8346 2014-05-21  Pedro Alves  <palves@redhat.com>
8347
8348         * go32-nat.c (go32_target): Don't override to_shortname,
8349         to_longname or to_doc.
8350
8351 2014-05-21  Pedro Alves  <palves@redhat.com>
8352
8353         * inf-child.c (inf_child_open): Remove mention of "child".
8354         (inf_child_target): Rename target to "native" instead of "child".
8355
8356 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8357
8358         * Makefile.in (SFILES): Delete "regset.c".
8359         (COMMON_OBS): Delete "regset.o".
8360         * regset.c: Remove.
8361         * regset.h (regset_alloc): Delete prototype.
8362
8363 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8364
8365         * sparc-linux-tdep.c (sparc32_linux_gregset)
8366         (sparc32_linux_fpregset): New static regset structures.
8367         (sparc32_linux_init_abi): Drop dynamic regset allocations.
8368         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8369         'fpregset' fields.
8370         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8371         (sparc64_linux_fpregset): New static regset structures.
8372         (sparc64_linux_init_abi): Drop dynamic regset allocations.
8373         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8374         New static regset structures.
8375         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8376         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8377         New static regset structures.
8378         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8379         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8380         New static regset structures.
8381         (sparc64obsd_init_abi): Drop dynamic regset allocations.
8382         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8383         New static regset structures.
8384         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8385
8386 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8387
8388         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8389         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8390         register maps ("regmaps") from "*regset" to "*regmap".  Do this
8391         for all regmap types and variables.
8392         * sparc-linux-tdep.c (sparc32_linux_step_trap)
8393         (sparc32_linux_supply_core_gregset)
8394         (sparc32_linux_collect_core_gregset)
8395         (sparc32_linux_supply_core_fpregset)
8396         (sparc32_linux_collect_core_fpregset): Likewise.
8397         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8398         (sparc_gregmap, sparc_fpregmap): ... these.
8399         (sparc_supply_gregset, sparc_collect_gregset)
8400         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8401         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8402         (_initialize_sparc_nat): Rename regmaps.
8403         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8404         (sparc_gregmap, sparc_fpregmap): ... these.
8405         (sparc_supply_gregset, sparc_collect_gregset)
8406         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8407         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8408         Rename macros to...
8409         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8410         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8411         Likewise.
8412         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8413         Rename to...
8414         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8415         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8416         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8417         regmaps.
8418         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8419         (sparc32_bsd_fpregset): Rename to...
8420         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8421         (sparc32_bsd_fpregmap): ... these.
8422         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8423         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8424         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8425         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8426         (struct sparc_gregmap, struct sparc_fpregmap)
8427         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8428         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8429         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8430         (sparc32_supply_regset, sparc32_collect_gregset)
8431         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8432         prototypes.
8433         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8434         (sparc64_linux_ptrace_gregmap): ... this.
8435         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8436         (_initialize_sparc64_linux_nat): Rename regmaps.
8437         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8438         (sparc64_linux_core_gregmap): ... this.
8439         (sparc64_linux_supply_core_gregset)
8440         (sparc64_linux_collect_core_gregset)
8441         (sparc64_linux_supply_core_fpregset)
8442         (sparc64_linux_collect_core_fpregset): Rename regmaps.
8443         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8444         (sparc64_sol2_fpregset): Rename to...
8445         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8446         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8447         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8448         regmaps.
8449         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8450         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8451         (sparc64_bsd_fpregset): Rename to...
8452         (struct sparc_gregmap, sparc64_sol2_gregmap)
8453         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8454         (sparc64_bsd_fpregmap): ... these.
8455         (sparc64_supply_gregset, sparc64_collect_gregset)
8456         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8457         prototypes.
8458         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8459         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8460         (sparc64fbsd_gregmap): ... this.
8461         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8462         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8463         Rename regmaps.
8464         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8465         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8466         (sparc64nbsd_collect_fpregset): Likewise.
8467         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8468         (sparc64nbsd_gregmap): ... this.
8469         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8470         regmaps.
8471         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8472         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8473         (sparc64obsd_gregmap): ... this.
8474         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8475         regmaps.
8476         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8477         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8478         (sparc32nbsd_gregmap): ... this.
8479         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8480         regmaps.
8481
8482 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8483
8484         * score-tdep.c (score7_linux_gregset): New static regset
8485         structure.
8486         (score7_linux_regset_from_core_section): Remove dynamic regset
8487         allocation.
8488         (score_gdbarch_init): Drop allocation of tdep structure.
8489         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8490
8491 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8492
8493         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8494         regset structures.
8495         (am33_regset_from_core_section): Remove dynamic regset
8496         allocations.
8497
8498 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8499
8500         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8501         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8502         structures.
8503         (mips_linux_regset_from_core_section): Remove dynamic regset
8504         allocations.
8505         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8506         'gregset64', 'fpregset', and 'fpregset64'.
8507         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8508         deleted tdep fields.
8509
8510 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8511
8512         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8513         regset structures.
8514         (amd64_regset_from_core_section): Remove dynamic regset
8515         allocations.
8516         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8517         structure.
8518         (amd64obsd_regset_from_core_section): Remove dynamic regset
8519         allocation.
8520         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8521         Likewise.
8522         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8523         x86-common regset supply function.
8524         * i386-tdep.c (i386_collect_gregset): Make static.
8525         (i386_gregset): New global regset structure.
8526         (i386_fpregset, i386_xstateregset): New static regset structures.
8527         (i386_regset_from_core_section): Remove dynamic regset
8528         allocations.
8529         (i386_gdbarch_init): Remove initialization of tdep fields
8530         'gregset', 'fpregset', and 'xstateregset'.
8531         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8532         'fpregset', and 'xstateregset'.
8533         (i386_collect_gregset): Remove prototype.
8534         (i386_gregset): New declaration.
8535         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8536         structure.
8537         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8538         allocation.
8539
8540 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8541
8542         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8543         (arm_linux_vfpregset): New static regset structures.
8544         (arm_linux_regset_from_core_section): Remove dynamic allocation of
8545         regset structures.
8546         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8547         and 'vfpregset' fields.
8548
8549 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8550
8551         * aarch64-linux-tdep.c (aarch64_linux_gregset)
8552         (aarch64_linux_fpregset): New static regset structures.
8553         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8554         of regset structures.
8555         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8556         'fpregset' fields.
8557
8558 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8559
8560         * regset.h (struct regset): Remove gdbarch field.
8561         * regset.c (regset_alloc): Drop initialization of gdbarch field.
8562         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8563         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8564         Likewise.
8565         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8566         (ppc32_linux_fpregset, ppc32_linux_vrregset)
8567         (ppc32_linux_vsxregset): Likewise.
8568         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8569         via the regcache instead of the regset.
8570         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8571         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8572         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8573         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8574         Likewise.
8575
8576 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8577
8578         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8579         Constify structures.
8580         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8581         (alphanbsd_aout_gregset): Likewise.
8582         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8583         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8584         Likewise.
8585         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8586         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8587         Likewise.
8588         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8589         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8590         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8591         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8592         * m88k-tdep.c (m88k_gregset): Likewise.
8593         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8594         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8595         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8596         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8597         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8598         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8599         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8600         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8601         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8602         Likewise.
8603         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8604         * sh-tdep.h (sh_corefile_gregset): Likewise.
8605         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8606         * vax-tdep.c (vax_gregset): Likewise.
8607
8608 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8609
8610         Fix TLS access for -static -pthread.
8611         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8612         (try_thread_db_load_1): Initialize it.
8613         (thread_db_get_thread_local_address): Call it if LM is zero.
8614         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8615         * target.h (struct target_ops) (to_get_thread_local_address): Add
8616         load_module_addr comment.
8617
8618 2014-05-21  Pedro Alves  <palves@redhat.com>
8619
8620         * dcache.c (dcache_read_memory_partial): If reading the cache line
8621         fails, fallback to reading just the memory the caller wanted.
8622
8623 2014-05-20  Doug Evans  <dje@google.com>
8624
8625         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8626         instead of get_current_arch.
8627
8628 2014-05-20  Pedro Alves  <palves@redhat.com>
8629
8630         * NEWS: Mention that compare-sections now works with all targets.
8631
8632         * remote.c (PACKET_qCRC): New enum value.
8633         (remote_verify_memory): Don't send qCRC if the target has no
8634         execution.  Use packet_support/packet_ok.  If the target doesn't
8635         support the qCRC packet, fallback to a deep memory copy.
8636         (compare_sections_command): Say "target image" instead of "remote
8637         executable".
8638         (_initialize_remote): Add PACKET_qCRC to the list of config
8639         packets that have no associated command.  Extend comment.
8640         * target.c (simple_verify_memory, default_verify_memory): New
8641         function.
8642         * target.h (struct target_ops) <to_verify_memory>: Default to
8643         default_verify_memory.
8644         (simple_verify_memory): New declaration.
8645         * target-delegates.c: Regenerate.
8646
8647 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
8648
8649         * record-btrace.c (record_btrace_step_thread): Check for empty history.
8650
8651 2014-05-20  Hui Zhu  <hui@codesourcery.com>
8652             Yao Qi  <yao@codesourcery.com>
8653
8654         PR backtrace/16558
8655         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8656         and change address of sp and pc.
8657
8658 2014-05-19  Tom Tromey  <tromey@redhat.com>
8659
8660         * gdbtypes.c (rank_function): Use XNEWVEC.
8661         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8662
8663 2014-05-19  Doug Evans  <dje@google.com>
8664
8665         * dwarf2read.c (build_type_psymtabs_1): Renamed from
8666         build_type_unit_groups and moved closer to only caller.  Remove
8667         arguments.  All references updated.  Remove outdated .gdb_index
8668         comment.
8669         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8670         build_type_psymtabs_1.
8671
8672 2014-05-19  Doug Evans  <dje@google.com>
8673
8674         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8675         n_type_unit_groups, all_type_unit_groups.  All uses removed.
8676         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8677         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
8678         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
8679         (add_type_unit_group_to_table): Delete.
8680
8681 2014-05-19  Doug Evans  <dje@google.com>
8682
8683         * eval.c (evaluate_subexp_standard): Add some comments.
8684
8685 2014-05-17  Doug Evans  <xdje42@gmail.com>
8686
8687         * progspace.c (remove_program_space): Delete, unused.
8688         * progspace.h (remove_program_space): Ditto.
8689
8690 2014-05-17  Doug Evans  <xdje42@gmail.com>
8691
8692         * inferior.c (prune_inferiors): Fix comment.
8693         (remove_inferior_command): Call prune_program_spaces.
8694
8695 2014-05-16  Doug Evans  <dje@google.com>
8696
8697         New command line option -D.
8698         * NEWS: Mention it.
8699         * main.c (set_gdb_data_directory): New function.
8700         (captured_main): Recognize -D.  Flag error for --data-directory "".
8701         Call set_gdb_data_directory.
8702         (print_gdb_help): Print --data-directory, -D.
8703         * main.h (set_gdb_data_directory): Declare.
8704         * top.c (staged_gdb_datadir): New static global.
8705         (set_gdb_datadir): Call set_gdb_data_directory
8706         (show_gdb_datadir): New function.
8707         (init_main): Update init of data-directory parameter.
8708
8709 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
8710
8711         Import the "dirfd" gnulib module.
8712         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8713         * gnulib/aclocal.m4: Update.
8714         * gnulib/config.in: Update.
8715         * gnulib/configure: Update.
8716         * gnulib/import/Makefile.am: Update.
8717         * gnulib/import/Makefile.in: Update.
8718         * gnulib/import/dirfd.c: New.
8719         * gnulib/import/m4/dirfd.m4: New.
8720         * gnulib/import/m4/gnulib-cache.m4: Update.
8721         * gnulib/import/m4/gnulib-comp.m4: Update.
8722
8723 2014-05-16  Pierre Muller  <muller@sourceware.org>
8724             Yao Qi  <yao@codesourcery.com>
8725
8726         * valprint.c (print_wchar): Move the code on checking whether
8727         W is a printable wide char to the default branch of switch
8728         statement below.  Call wchar_printable instead of gdb_iswprint.
8729
8730 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
8731
8732         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8733         ldr.w and ldrd instructions.
8734
8735 2014-05-15  Doug Evans  <dje@google.com>
8736
8737         * dwarf2read.c (read_structure_type): Delete outdated comments.
8738
8739 2014-05-14  Tom Tromey  <tromey@redhat.com>
8740
8741         * macrocmd.c (print_macro_definition): Reindent.
8742
8743 2014-05-13  Doug Evans  <xdje42@gmail.com>
8744
8745         * python/py-cmd.c (cmdpy_completer): Add comment.
8746         (completers): Make const.
8747
8748 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
8749
8750         * infrun.c (resume): Remove should_resume (unused).  Move up
8751         declaration of resume_ptid.
8752
8753 2014-05-13  Tom Tromey  <tromey@redhat.com>
8754
8755         * language.h (unop_type_check): Remove.
8756         (binop_type_check): Don't declare.
8757
8758 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
8759
8760         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8761         call to regcache_raw_collect.
8762
8763 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
8764
8765         * mi/mi-console.c (mi_console_raw_packet): Use the value from
8766         mi_console->quote as the quoting character.
8767
8768 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
8769
8770         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8771
8772 2014-04-29  Tom Tromey  <tromey@redhat.com>
8773
8774         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8775         "show debug varobj".
8776
8777 2014-05-07  Kyle McMartin  <kyle@redhat.com>
8778
8779         Pushed by Joel Brobecker  <brobecker@adacore.com>.
8780         * aarch64-tdep.c (aarch64_software_single_step): New function.
8781         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8782         with aarch64_software_single_step.
8783
8784 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
8785
8786         GDB 7.7.1 released.
8787
8788 2014-05-05  Keith Seitz  <keiths@redhat.com>
8789
8790         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8791         variable or history value is successfully parsed.
8792
8793 2014-05-05  Yao Qi  <yao@codesourcery.com>
8794             Pedro Alves  <palves@redhat.com>
8795
8796         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8797         address of blocks that intersects the requested range.  Trim
8798         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8799         sections.
8800         * ctf.c (ctf_xfer_partial): Likewise.
8801
8802 2014-05-05  Yao Qi  <yao@codesourcery.com>
8803
8804         * printcmd.c (display_command): Remove the check to
8805         target_has_execution.
8806
8807 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
8808
8809         * ppcobsd-nat.c: Include "obsd-nat.h".
8810         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8811         add_target.
8812         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8813
8814 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
8815
8816         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8817         and 16-bit signed and unsigned arguments.  Update comment.
8818         (stap_parse_probe_arguments): Extend code to handle such
8819         arguments.  Use warning instead of complaint to notify about
8820         unrecognized bitness.
8821
8822 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
8823
8824         PR breakpoints/16889
8825         * stap-probe.c (stap_parse_probe_arguments): Simplify
8826         check for non-prefixed probes (i.e., probes whose
8827         arguments do not start with "N@").  Always set the
8828         argument type to a sane value.
8829
8830 2014-05-01  David Taylor  <dtaylor@emc.com>
8831
8832         * remote.c (compare_sections_command): Add -r option to compare
8833         all loadable read-only sections.
8834
8835 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
8836
8837         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8838         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8839         Update all callers.
8840         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8841         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8842         Remove unused CORE_ADDR argument.  Update all callers.
8843
8844 2014-04-29  Pedro Alves  <palves@redhat.com>
8845
8846         * remote.c (struct packet_config) <detect>: Extend comment.
8847         (add_packet_config_cmd): Don't set the config's detect or support
8848         fields here.
8849         (init_all_packet_configs): Also initialize the config's 'detect'
8850         field.
8851         (reset_all_packet_configs_support): New function.
8852         (remote_open_1): Call reset_all_packet_configs_support instead of
8853         init_all_packet_configs.
8854         (_initialize_remote): Initialize all packet configs.  Assert that
8855         all packets have an associated command, except a few known
8856         outliers.
8857
8858 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8859
8860         * dwarf2read.c (read_subrange_type): Handle dynamic
8861         DW_AT_lower_bound attributes.
8862
8863 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8864
8865         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8866         dynamic bounds before computing its upper bound.
8867         (ada_discrete_type_low_bound): Same as above with the lower bound.
8868
8869 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8870
8871         * dwarf2read.c (is_dynamic_type): Return true for dynamic
8872         range types.  Adjust the array handling implementation to
8873         take advantage of this change.
8874         (resolve_dynamic_range): New function, mostly extracted from
8875         resolve_dynamic_bounds.
8876         (resolve_dynamic_array): New function, mostly extracted from
8877         resolve_dynamic_bounds.
8878         (resolve_dynamic_bounds): Delete.
8879         (resolve_dynamic_type): Reimplement.  Add handling of
8880         TYPE_CODE_RANGE types.
8881
8882 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8883
8884         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8885         handling of parallel ___XA types.
8886
8887 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8888
8889         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8890         unnecessary second call to static_unwrap_type.
8891
8892 2014-04-27  Hui Zhu  <hui@codesourcery.com>
8893
8894         * stack.c (print_frame_info): Call do_gdb_disassembly with
8895         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8896
8897 2014-04-26  Doug Evans  <xdje42@gmail.com>
8898
8899         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8900
8901 2014-04-25  Pedro Alves  <palves@redhat.com>
8902
8903         PR server/16255
8904         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8905         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
8906         and newline from built string.
8907         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8908         (linux_ptrace_attach_fail_reason): ... this.
8909         * linux-nat.c (linux_nat_attach): Adjust to use
8910         linux_ptrace_attach_fail_reason.
8911
8912 2014-04-25  Pedro Alves  <palves@redhat.com>
8913
8914         * remote.c (struct remote_state): Remove multi_process_aware,
8915         non_stop_aware, cond_tracepoints, cond_breakpoints,
8916         breakpoint_commands, fast_tracepoints, static_tracepoints,
8917         install_in_trace, disconnected_tracing,
8918         enable_disable_tracepoints, string_tracing, and
8919         augmented_libraries_svr4_read fields.
8920         (remote_multi_process_p): Move further below in the file.
8921         (struct packet_config): Add comments.
8922         (update_packet_config): Delete function.
8923         (show_packet_config_cmd): Use packet_config_support.
8924         (add_packet_config_cmd): Use NULL as set callback.
8925         (packet_ok): "set remote foo-packet"-style commands no longer
8926         change config->supported -- adjust.
8927         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8928         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8929         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8930         (PACKET_QNonStop, PACKET_multiprocess_feature)
8931         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8932         (PACKET_DisconnectedTracing_feature)
8933         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8934         (set_remote_protocol_packet_cmd): Delete function.
8935         (packet_config_support, packet_support): New functions.
8936         (set_remote_protocol_Z_packet_cmd): Don't call
8937         update_packet_config.
8938         (remote_query_attached, remote_pass_signals)
8939         (remote_program_signals, remote_threads_info)
8940         (remote_threads_extra_info, remote_start_remote): Use
8941         packet_support.
8942         (remote_start_remote): Use packet_config_support and
8943         packet_support.
8944         (init_all_packet_configs): Set all packets to unknown support,
8945         instead of calling update_packet_config.
8946         (remote_check_symbols): Use packet_support.
8947         (remote_supported_packet): Unconditionally set the packet config's
8948         support status.
8949         (remote_multi_process_feature, remote_non_stop_feature)
8950         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8951         (remote_breakpoint_commands_feature)
8952         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8953         (remote_install_in_trace_feature)
8954         (remote_disconnected_tracing_feature)
8955         (remote_enable_disable_tracepoint_feature)
8956         (remote_string_tracing_feature)
8957         (remote_augmented_libraries_svr4_read_feature): Delete functions.
8958         (remote_protocol_features): Adjust to use remote_supported_packet
8959         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8960         "ConditionalTracepoints", "ConditionalBreakpoints",
8961         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8962         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8963         "EnableDisableTracepoints", and "tracenz".
8964         (remote_query_supported): Use packet_support.
8965         (remote_open_1): Adjust.
8966         (extended_remote_attach_1): Use packet_support.  Switch on the
8967         result of packet_ok instead of checking whether the packet ended
8968         up disabled.
8969         (remote_vcont_resume): Use packet_support.
8970         (remote_resume, remote_stop_ns, fetch_register_using_p)
8971         (remote_prepare_to_store, store_register_using_P)
8972         (check_binary_download, remote_write_bytes): Use packet_support.
8973         (remote_vkill): Use packet_support.  Switch on the result of
8974         packet_ok instead of checking whether the packet ended up
8975         disabled.
8976         (extended_remote_supports_disable_randomization): Use
8977         packet_support.
8978         (extended_remote_run): Switch on the result of packet_ok instead
8979         of checking whether the packet ended up disabled.
8980         (remote_insert_breakpoint, remote_remove_breakpoint)
8981         (remote_insert_watchpoint, remote_remove_watchpoint)
8982         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8983         packet_support.
8984         (remote_search_memory): Use packet_config_support.
8985         (remote_get_thread_local_address, remote_get_tib_address)
8986         (remote_hostio_send_command, remote_can_execute_reverse): Use
8987         packet_support.
8988         (remote_supports_cond_tracepoints)
8989         (remote_supports_cond_breakpoints)
8990         (remote_supports_fast_tracepoints)
8991         (remote_supports_static_tracepoints)
8992         (remote_supports_install_in_trace)
8993         (remote_supports_enable_disable_tracepoint)
8994         (remote_supports_string_tracing)
8995         (remote_can_run_breakpoint_commands): Rewrite, checking whether
8996         the packet config says the feature is enabled or disabled.
8997         (remote_download_tracepoint, remote_trace_set_readonly_regions)
8998         (remote_get_trace_status): Use packet_support.
8999         (remote_set_disconnected_tracing): Adjust to check whether the
9000         feature is enabled with packet_support.
9001         (remote_set_trace_buffer_size, remote_use_agent)
9002         (remote_can_use_agent, remote_supports_btrace): Use
9003         packet_support.
9004         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
9005         Use packet_config_support.
9006         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
9007         the packet config says the feature is enabled or disabled.
9008         (set_range_stepping): Use packet_support.
9009
9010 2014-04-25  Tom Tromey  <tromey@redhat.com>
9011
9012         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
9013         argument.
9014
9015 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
9016
9017         * NEWS: Mention support for C99 variable length arrays.
9018
9019 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
9020
9021         * ada-lang.c (standard_exc): Expand introductory comment.
9022
9023 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
9024             Walfred Tedeschi  <walfred.tedeschi@intel.com>
9025
9026         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
9027         AVX512 registers.
9028         (amd64_linux_read_description): Add code to handle AVX512 xstate
9029         mask and return respective tdesc.
9030         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
9031         and features/i386/x32-avx512-linux.c.
9032         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
9033         (amd64_linux_core_read_description): Add code to handle AVX512
9034         xstate mask and return respective tdesc.
9035         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
9036         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
9037         calculation.
9038         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
9039         (tdesc_amd64_avx512_linux): New prototype.
9040         (tdesc_x32_avx512_linux): Likewise.
9041         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
9042         features/i386/x32-avx512.c.
9043         (amd64_ymm_avx512_names): New register names for pseudo
9044         registers YMM16-31.
9045         (amd64_ymmh_avx512_names): New register names for raw registers
9046         YMMH16-31.
9047         (amd64_k_names): New register names for K registers.
9048         (amd64_zmmh_names): New register names for ZMM raw registers.
9049         (amd64_zmm_names): New registers names for ZMM pseudo registers.
9050         (amd64_xmm_avx512_names): New register names for XMM16-31
9051         registers.
9052         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
9053         registers.
9054         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
9055         if feature is present.
9056         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
9057         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
9058         (AMD64_NUM_REGS): Adjust to new number of registers.
9059         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
9060         registers supplied via XSTATE by AVX512 registers.
9061         (i386_linux_read_description): Add case for AVX512.
9062         * i386-linux-tdep.c: Include i386-avx512-linux.c.
9063         (i386_linux_gregset_reg_offset): Add AVX512 registers.
9064         (i386_linux_core_read_description): Add case for AVX512.
9065         (i386_linux_init_abi): Install supported register note section
9066         for AVX512.
9067         (_initialize_i386_linux_tdep): Add call to tdesc init function for
9068         AVX512.
9069         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
9070         registers to be number of zmm7h + 1.
9071         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
9072         * i386-tdep.c: Include features/i386/i386-avx512.c.
9073         (i386_zmm_names): Add ZMM pseudo register names array.
9074         (i386_zmmh_names): Add ZMM raw register names array.
9075         (i386_k_names): Add K raw register names array.
9076         (num_lower_zmm_regs): Add constant for the number of lower ZMM
9077         registers. AVX512 has 16 more ZMM registers than there are YMM
9078         registers.
9079         (i386_zmmh_regnum_p): Add function to look up register number of
9080         ZMM raw registers.
9081         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
9082         (i386_k_regnum_p): Likewise for K raw registers.
9083         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
9084         registers added by AVX512.
9085         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
9086         registers added by AVX512.
9087         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
9088         added by AVX512.
9089         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
9090         (i386_pseudo_register_name): Add ZMM pseudo registers.
9091         (i386_zmm_type): Construct and return vector registers type for ZMM
9092         registers.
9093         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
9094         ZMM0-31 pseudo registers and K registers.
9095         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
9096         and YMM16-31 registers from register cache.
9097         (i386_pseudo_register_write): Add code to write  K, ZMM and
9098         YMM16-31 registers.
9099         (i386_register_reggroup_p): Add code to include/exclude AVX512
9100         registers in/from respective register groups.
9101         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
9102         registers if feature is present in xcr0.
9103         (i386_gdbarch_init): Add code to initialize AVX512 feature
9104         variables in tdep structure, wire in pseudo registers and call
9105         initialize_tdesc_i386_avx512.
9106         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
9107         variables.
9108         (i386_regnum): Add AVX512 registers.
9109         (I386_SSE_NUM_REGS): New define for number of SSE registers.
9110         (I386_AVX_NUM_REGS): Likewise for AVX registers.
9111         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
9112         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
9113         512 bits wide.
9114         (i386_xmm_avx512_regnum_p): New prototype for register look up.
9115         (i386_ymm_avx512_regnum_p): Likewise.
9116         (i386_k_regnum_p): Likewise.
9117         (i386_zmm_regnum_p): Likewise.
9118         (i386_zmmh_regnum_p): Likewise.
9119         * i387-tdep.c : Update year in copyright notice.
9120         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
9121         XSAVE buffer.
9122         (XSAVE_YMM_AVX512_ADDR): New macro.
9123         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
9124         XSAVE buffer.
9125         (XSAVE_XMM_AVX512_ADDR): New macro.
9126         (xsave_avx512_k_offset): New table for K register offsets in
9127         XSAVE buffer.
9128         (XSAVE_AVX512_K_ADDR): New macro.
9129         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
9130         in XSAVE buffer.
9131         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
9132         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
9133         buffer.
9134         (i387_collect_xsave): Add code to collect AVX512 registers from
9135         XSAVE buffer.
9136         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
9137         of XMM16-31 registers.
9138         (I387_NUM_K_REGS): New define for number of K registers.
9139         (I387_K0_REGNUM): New define for K0 register number.
9140         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
9141         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
9142         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
9143         registers.
9144         (I387_YMM16H_REGNUM): New define for YMM16H register number.
9145         (I387_XMM16_REGNUM): New define for XMM16 register number.
9146         (I387_YMM0_REGNUM): New define for YMM0 register number.
9147         (I387_KEND_REGNUM): New define for last K register number.
9148         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9149         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9150         number.
9151         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9152         number.
9153         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9154         size.
9155         * features/Makefile: Add AVX512 related files.
9156         * features/i386/32bit-avx512.xml: New file.
9157         * features/i386/64bit-avx512.xml: Likewise.
9158         * features/i386/amd64-avx512-linux.c: Likewise.
9159         * features/i386/amd64-avx512-linux.xml: Likewise.
9160         * features/i386/amd64-avx512.c: Likewise.
9161         * features/i386/amd64-avx512.xml: Likewise.
9162         * features/i386/i386-avx512-linux.c: Likewise.
9163         * features/i386/i386-avx512-linux.xml: Likewise.
9164         * features/i386/i386-avx512.c: Likewise.
9165         * features/i386/i386-avx512.xml: Likewise.
9166         * features/i386/x32-avx512-linux.c: Likewise.
9167         * features/i386/x32-avx512-linux.xml: Likewise.
9168         * features/i386/x32-avx512.c: Likewise.
9169         * features/i386/x32-avx512.xml: Likewise.
9170         * regformats/i386/amd64-avx512-linux.dat: New file.
9171         * regformats/i386/amd64-avx512.dat: Likewise.
9172         * regformats/i386/i386-avx512-linux.dat: Likewise.
9173         * regformats/i386/i386-avx512.dat: Likewise.
9174         * regformats/i386/x32-avx512-linux.dat: Likewise.
9175         * regformats/i386/x32-avx512.dat: Likewise.
9176         * NEWS: Add note about new support for AVX512.
9177
9178
9179 2014-04-23  Pedro Alves  <palves@redhat.com>
9180
9181         * breakpoint.c (insert_bp_location): Tolerate errors if the
9182         breakpoint is set in a user-loaded objfile.
9183         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
9184         location is marked shlib_disabled.  If the breakpoint is set in a
9185         user-loaded objfile is a GDB-side memory breakpoint, validate it
9186         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
9187         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
9188         flag.
9189         * mem-break.c (memory_validate_breakpoint): New function.
9190         * objfiles.c (userloaded_objfile_contains_address_p): New
9191         function.
9192         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9193         * target.h (memory_validate_breakpoint): New declaration.
9194
9195 2014-04-23  Pedro Alves  <palves@redhat.com>
9196
9197         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9198         the breakpoint is set in a shared library, only suppress
9199         errors for software breakpoints, not hardware breakpoints.
9200
9201 2014-04-22  Pedro Alves  <palves@redhat.com>
9202
9203         * infrun.c (schedlock_applies): New function, factored out from
9204         find_thread_needs_step_over.
9205         (find_thread_needs_step_over): Use it.
9206         (switch_back_to_stepped_thread): Always clear trap_expected if the
9207         step over is finished.  Return early if scheduler locking applies.
9208         Look for the stepping thread and a potential step-over thread with
9209         a single loop.
9210         (currently_stepping_or_nexting_callback): Delete.
9211
9212 2014-04-22  Nick Clifton  <nickc@redhat.com>
9213
9214         * NEWS: Mention that ARM sim now supports tracing.
9215
9216 2014-04-22  Yao Qi  <yao@codesourcery.com>
9217
9218         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9219         to ...
9220         * tracefile.c (tracefile_fetch_registers): ... it.  New
9221         function.
9222         * tracefile.h (tracefile_fetch_registers): Declare.
9223         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
9224         tracefile_fetch_registers.
9225
9226 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
9227
9228         PR gdb/14018
9229         * windows-nat.c (thread_rec): Don't display a warning when
9230         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
9231         fails for any reason, set th->suspended to -1, so that we don't
9232         try to resume such a thread.  Also, don't return NULL in these
9233         cases, to avoid completely ruin the session due to "PC register is
9234         not available" error.
9235         (do_windows_fetch_inferior_registers): Check errors in
9236         GetThreadContext call.
9237         (windows_continue): Accept an additional argument KILLED; if not
9238         zero, ignore errors in the SetThreadContext call, since the
9239         inferior was killed and is shutting down.
9240         (windows_resume, get_windows_debug_event)
9241         (windows_create_inferior, windows_mourn_inferior)
9242         (windows_kill_inferior): All callers of windows_continue changed
9243         to adjust to its new calling sequence.
9244
9245 2014-04-19  Yao Qi  <yao@codesourcery.com>
9246
9247         * ctf.c (ctf_open): Call post_create_inferior.
9248
9249 2014-04-19  Yao Qi  <yao@codesourcery.com>
9250
9251         * ctf.c (handle_id): New static variable.
9252         (ctf_open_dir): Get handle_id from bt_context_add_trace return
9253         value.  Get the declaration of event "register" and get length
9254         of field "contents".
9255
9256 2014-04-19  Yao Qi  <yao@codesourcery.com>
9257
9258         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9259
9260 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
9261
9262         * valops.c (oload_method_static): Remove unnecessary argument
9263         METHOD.  Update all callers.
9264
9265 2014-04-18  Pedro alves  <palves@redhat.com>
9266             Tom Tromey  <tromey@redhat.com>
9267
9268         PR backtrace/15558
9269         * frame.c (get_prev_frame_1): Rename to ...
9270         (get_prev_frame_always): ... this, and make extern.  Adjust.
9271         (skip_artificial_frames): Use get_prev_frame_always.
9272         (frame_unwind_caller_id, frame_pop, get_prev_frame)
9273         (get_frame_unwind_stop_reason): Adjust to rename.
9274         * frame.h (get_prev_frame_always): Declare.
9275         * inline-frame.c: Include frame.h.
9276         (inline_frame_this_id): Use get_prev_frame_always.
9277
9278 2014-04-18  Tristan Gingold  <gingold@adacore.com>
9279
9280         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9281         code by using bfd_mach_o_get_base_address.
9282
9283 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
9284
9285         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9286         (spu_ax_pseudo_register_collect): New function.
9287         (spu_ax_pseudo_register_push_stack): Likewise.
9288         (spu_dwarf_reg_to_regnum): Likewise.
9289         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
9290
9291 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
9292
9293         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9294         Replace FRAME argument with FRAME_ID.
9295         * gdbarch.c, gdbarch.h: Regenerate.
9296         * findvar.c (default_value_from_register): Add GDBARCH argument;
9297         replace FRAME by FRAME_ID.  No longer call get_frame_id.
9298         (value_from_register): Update call to gdbarch_value_from_register.
9299         * value.h (default_value_from_register): Update prototype.
9300         * s390-linux-tdep.c (s390_value_from_register): Update interface
9301         and call to default_value_from_register.
9302         * spu-tdep.c (spu_value_from_register): Likewise.
9303
9304         * findvar.c (address_from_register): Remove TYPE argument.
9305         Do not call value_from_register; use gdbarch_value_from_register
9306         with null_frame_id instead.
9307         * value.h (address_from_register): Update prototype.
9308         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9309         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9310         address_from_register interface change.
9311
9312 2014-04-17  Yao Qi  <yao@codesourcery.com>
9313
9314         * gdbtypes.h: Update comments to link to types and macros'
9315         definitions.
9316
9317 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
9318
9319         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9320
9321 2014-04-16  Keith Seitz  <keiths@redhat.com>
9322
9323         PR gdb/15827
9324         * dwarf2read.c (skip_one_die): Check that all relative-offset
9325         sibling DIEs fall within range of the current reader's buffer.
9326         (read_partial_die): Likewise.
9327
9328 2014-04-16  Keith Seitz  <keiths@redhat.com>
9329
9330         PR c++/16597
9331         * cp-namespace.c (lookup_symbol_file): If the type name of
9332         `this' is NULL, return immediately.
9333
9334 2014-04-14  Keith Seitz  <keiths@redhat.com>
9335
9336         PR c++/16253
9337         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9338         from symbol_matches_domain in symtab.c. All local callers
9339         of symbol_matches_domain updated.
9340         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9341         search STRUCT_DOMAIN.
9342         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9343         independently.  standard_lookup will do that automatically.
9344         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9345         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9346         (cp_lookup_symbol_in_namespace): Likewise.
9347         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9348         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9349         may return a STRUCT_DOMAIN match.
9350         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9351         * cp-support.c: Include language.h.
9352         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9353         VAR_DOMAIN.
9354         * psymtab.c (match_partial_symbol): Compare the requested
9355         domain with the symbol's domain directly.
9356         (lookup_partial_symbol): Likewise.
9357         * symtab.c (lookup_symbol_in_language): Explain when/why
9358         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9359         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9360         appropriate languages.
9361         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9362         and moved to ada-lang.c
9363         (lookup_block_symbol): Explain that this function only returns
9364         symbol matching the requested DOMAIN.
9365         Compare the requested domain with the symbol's domain directly.
9366         (iterate_over_symbols): Compare the requested domain with the
9367         symbol's domain directly.
9368         * symtab.h (symbol_matches_domain): Remove.
9369
9370 2014-04-14  Tom Tromey  <tromey@redhat.com>
9371
9372         PR c++/15246:
9373         * c-exp.y (type_aggregate_p): New function.
9374         (qualified_name, classify_inner_name): Use it.
9375         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9376         and TYPE_TARGET_TYPE of an enum type.
9377         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9378         an enum type.
9379         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9380         handle TYPE_DECLARED_CLASS.
9381         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9382         types.
9383         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9384         * valops.c (enum_constant_from_type): New function.
9385         (value_aggregate_elt): Use it.
9386         * cp-namespace.c (cp_lookup_nested_symbol): Handle
9387         TYPE_CODE_ENUM.
9388
9389 2014-04-14  Tom Tromey  <tromey@redhat.com>
9390
9391         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9392         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9393         const.
9394         * value.h (value_aggregate_elt): Update.
9395
9396 2014-04-14  Tom Tromey  <tromey@redhat.com>
9397
9398         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9399
9400 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9401
9402         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9403         (evaluate_subexp_standard): Pass noside argument.
9404         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9405         if noside equals EVAL_NORMAL. If the subscript yields a vla type
9406         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9407         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9408         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9409
9410 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9411
9412         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9413         points to a constant blob.
9414
9415 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9416
9417         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9418         property and store it as the high bound and flag the range accordingly.
9419         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9420         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9421         * gdbtypes.h (enum range_flags): New enum.
9422         (struct range_bounds): Add flags member.
9423
9424 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9425
9426         * c-typeprint.c (c_type_print_varspec_suffix): Added
9427         check for not yet resolved high bound. If unresolved, print
9428         "variable length" string to the console instead of random
9429         length.
9430
9431 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9432
9433         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9434         value.
9435         (ada_template_to_fixed_record_type_1): Likewise.
9436         (ada_to_fixed_type_1): Likewise.
9437         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9438         (cp_print_value): Likewise.
9439         * d-valprint.c (dynamic_array_type): Likewise.
9440         * findvar.c (address_of_variable): Likewise.
9441         * jv-valprint.c (java_value_print): Likewise.
9442         * valops.c (value_ind): Likewise.
9443         * value.c (coerce_ref): Likewise.
9444
9445 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9446
9447         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9448         value and retrieve the dynamic type size.
9449
9450 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9451
9452         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9453         passed to sizeof is dynamic evaluate the argument to compute the length.
9454
9455 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9456             Joel Brobecker  <brobecker@adacore.com>
9457
9458         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9459         (dwarf2_evaluate_property): New function.
9460         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9461         * dwarf2read.c (attr_to_dynamic_prop): New function.
9462         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9463         attribute.
9464         * gdbtypes.c: Include dwarf2loc.h.
9465         (is_dynamic_type): New function.
9466         (resolve_dynamic_type): New function.
9467         (resolve_dynamic_bounds): New function.
9468         (get_type_length): New function.
9469         (check_typedef): Use get_type_length to compute type length.
9470         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9471         (TYPE_LOW_BOUND_KIND): New macro.
9472         (is_dynamic_type): New function prototype.
9473         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9474         to resolve dynamic properties of the type. Update comment.
9475         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9476
9477 2014-04-14  Richard Henderson  <rth@redhat.com>
9478
9479         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9480
9481 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
9482             Doug Evans  <xdje42@gmail.com>
9483
9484         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9485         dereference TYPE_CODE_REF values.
9486
9487 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
9488
9489         Revert the following changes due to regressions:
9490
9491         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9492         (dwarf2_evaluate_property): New function.
9493         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9494         * dwarf2read.c (attr_to_dynamic_prop): New function.
9495         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9496         attribute.
9497         * gdbtypes.c: Include dwarf2loc.h.
9498         (is_dynamic_type): New function.
9499         (resolve_dynamic_type): New function.
9500         (resolve_dynamic_bounds): New function.
9501         (get_type_length): New function.
9502         (check_typedef): Use get_type_length to compute type length.
9503         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9504         (TYPE_LOW_BOUND_KIND): New macro.
9505         (is_dynamic_type): New function prototype.
9506         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9507         to resolve dynamic properties of the type. Update comment.
9508         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9509
9510         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9511         passed to sizeof is dynamic evaluate the argument to compute the length.
9512
9513         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9514         value and retrieve the dynamic type size.
9515
9516         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9517         (ada_template_to_fixed_record_type_1): Likewise.
9518         (ada_to_fixed_type_1): Likewise.
9519         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9520         (cp_print_value): Likewise.
9521         * d-valprint.c (dynamic_array_type): Likewise.
9522         * eval.c (evaluate_subexp_with_coercion): Likewise.
9523         * findvar.c (address_of_variable): Likewise.
9524         * jv-valprint.c (java_value_print): Likewise.
9525         * valops.c (value_ind): Likewise.
9526         * value.c (coerce_ref): Likewise.
9527
9528         * c-typeprint.c (c_type_print_varspec_suffix): Added
9529         check for not yet resolved high bound. If unresolved, print
9530         "variable length" string to the console instead of random
9531         length.
9532
9533         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9534         property and store it as the high bound and flag the range accordingly.
9535         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9536         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9537         * gdbtypes.h (enum range_flags): New enum.
9538         (struct range_bounds): Add flags member.
9539
9540         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9541         points to a constant blob.
9542
9543         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9544         (evaluate_subexp_standard): Pass noside argument.
9545         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9546         if noside equals EVAL_NORMAL. If the subscript yields a vla type
9547         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9548         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9549         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9550
9551 2014-04-11  Keith Seitz  <keiths@redhat.com>
9552
9553         PR c++/16675
9554         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9555         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9556         reference types.
9557
9558 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9559
9560         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9561         (evaluate_subexp_standard): Pass noside argument.
9562         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9563         if noside equals EVAL_NORMAL. If the subscript yields a vla type
9564         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9565         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9566         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9567
9568 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9569
9570         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9571         points to a constant blob.
9572
9573 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9574
9575         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9576         property and store it as the high bound and flag the range accordingly.
9577         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9578         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9579         * gdbtypes.h (enum range_flags): New enum.
9580         (struct range_bounds): Add flags member.
9581
9582 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9583
9584         * c-typeprint.c (c_type_print_varspec_suffix): Added
9585         check for not yet resolved high bound. If unresolved, print
9586         "variable length" string to the console instead of random
9587         length.
9588
9589 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9590
9591         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9592         (ada_template_to_fixed_record_type_1): Likewise.
9593         (ada_to_fixed_type_1): Likewise.
9594         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9595         (cp_print_value): Likewise.
9596         * d-valprint.c (dynamic_array_type): Likewise.
9597         * eval.c (evaluate_subexp_with_coercion): Likewise.
9598         * findvar.c (address_of_variable): Likewise.
9599         * jv-valprint.c (java_value_print): Likewise.
9600         * valops.c (value_ind): Likewise.
9601         * value.c (coerce_ref): Likewise.
9602
9603 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9604
9605         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9606         value and retrieve the dynamic type size.
9607
9608 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9609
9610         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9611         passed to sizeof is dynamic evaluate the argument to compute the length.
9612
9613 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9614
9615         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9616         (dwarf2_evaluate_property): New function.
9617         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9618         * dwarf2read.c (attr_to_dynamic_prop): New function.
9619         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9620         attribute.
9621         * gdbtypes.c: Include dwarf2loc.h.
9622         (is_dynamic_type): New function.
9623         (resolve_dynamic_type): New function.
9624         (resolve_dynamic_bounds): New function.
9625         (get_type_length): New function.
9626         (check_typedef): Use get_type_length to compute type length.
9627         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9628         (TYPE_LOW_BOUND_KIND): New macro.
9629         (is_dynamic_type): New function prototype.
9630         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9631         to resolve dynamic properties of the type. Update comment.
9632         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9633
9634 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9635
9636         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9637         declaring high/low bounds and change uses accordingly. Call
9638         create_range_type instead of create_static_range_type.
9639         * gdbtypes.c (create_range_type): New function.
9640         (create_range_type): Convert bounds into struct bound_prop and pass
9641         them to create_range_type.
9642         * gdbtypes.h (struct bound_prop): New struct.
9643         (create_range_type): New function prototype.
9644         (struct range_bounds): Use struct bound_prop instead of LONGEST for
9645         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9646         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9647         part of the bound.
9648         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9649
9650 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9651
9652         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9653         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9654         * ada-lang.c: All uses of create_range_type updated.
9655         * coffread.c: All uses of create_range_type updated.
9656         * dwarf2read.c: All uses of create_range_type updated.
9657         * f-exp.y: All uses of create_range_type updated.
9658         * m2-valprint.c: All uses of create_range_type updated.
9659         * mdebugread.c: All uses of create_range_type updated.
9660         * stabsread.c: All uses of create_range_type updated.
9661         * valops.c: All uses of create_range_type updated.
9662         * valprint.c: All uses of create_range_type updated.
9663
9664 2014-04-10  Pedro Alves  <palves@redhat.com>
9665
9666         * breakpoint.c (single_step_breakpoints)
9667         (single_step_gdbarch): Move up in the file.
9668         (one_breakpoint_xfer_memory): New function, factored out from ...
9669         (breakpoint_xfer_memory): ... here.  Also process single-step
9670         breakpoints.
9671
9672 2014-04-09  Tristan Gingold  <gingold@adacore.com>
9673
9674         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9675         comments.
9676         (darwin_decode_exception_message): Free port only after use.
9677
9678 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
9679
9680         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9681         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9682         when setting the size of call_length.
9683
9684 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
9685
9686         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9687         dereference TYPE_CODE_REF values.
9688
9689 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
9690
9691         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9692         end of warning message.
9693
9694 2014-04-03  Doug Evans  <dje@google.com>
9695
9696         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9697         of stub_comp_unit_die, stub_comp_dir is non-NULL.
9698
9699 2014-04-02  Alan Modra  <amodra@gmail.com>
9700
9701         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9702         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
9703         (struct symbol_file_add_from_memory_args): Add size field.
9704         (find_vdso_size): New function.
9705         (add_vsyscall_page): Attempt to find vdso size.
9706
9707 2014-04-01  Doug Evans  <dje@google.com>
9708
9709         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9710
9711 2014-04-01  Tristan Gingold  <gingold@adacore.com>
9712
9713         * darwin-nat.c (darwin_encode_reply): Add prototype.
9714         (darwin_decode_exception_message): Reply to unknown inferiors.
9715         (darwin_decode_message): Handle message by id.  Ignore message
9716         to unknown inferior.
9717         (darwin_wait): Discard unknown messages, add debug trace.
9718
9719 2014-03-31  Doug Evans  <dje@google.com>
9720
9721         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9722         comp_dir_string.
9723
9724 2014-03-31  Doug Evans  <dje@google.com>
9725
9726         New option "set print symbol-loading".
9727         * NEWS: Mention it.
9728         * solib.c (solib_read_symbols): Only print symbol loading messages
9729         if requested.
9730         (solib_add): If symbol loading is in "brief" mode, notify user
9731         symbols are being loaded.
9732         (reload_shared_libraries_1): Ditto.
9733         * symfile.c (print_symbol_loading_off): New static global.
9734         (print_symbol_loading_brief): New static global.
9735         (print_symbol_loading_full): New static global.
9736         (print_symbol_loading_enums): New static global.
9737         (print_symbol_loading): New static global.
9738         (print_symbol_loading_p): New function.
9739         (symbol_file_add_with_addrs): Only print symbol loading messages
9740         if requested.
9741         (_initialize_symfile): Register "print symbol-loading" set/show
9742         command.
9743         * symfile.h (print_symbol_loading_p): Declare.
9744
9745 2014-03-30  Doug Evans  <xdje42@gmail.com>
9746
9747         * infrun.c (set_last_target_status): New function.
9748         (handle_inferior_event): Call it.
9749
9750 2014-03-30  Doug Evans  <xdje42@gmail.com>
9751
9752         * inferior.h (enum stop_kind): Improve comment.
9753
9754 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
9755
9756         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9757         a reference, strip the reference layer before calling
9758         the lang_ops value_has_mutated callback.
9759
9760 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
9761
9762         Remove some globals from our parser.
9763         * language.c (unk_lang_parser): Add "struct parser_state"
9764         argument.
9765         * language.h (struct language_defn) <la_parser>: Likewise.
9766         * parse.c (expout, expout_size, expout_ptr): Remove variables.
9767         (initialize_expout): Add "struct parser_state" argument.
9768         Rewrite function to use the parser state.
9769         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9770         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9771         write_exp_elt_longcst, write_exp_elt_dblcst,
9772         write_exp_elt_decfloatcst, write_exp_elt_type,
9773         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9774         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9775         write_dollar_variable): Likewise.
9776         (parse_exp_in_context_1): Use parser state.
9777         (insert_type_address_space): Add "struct parser_state" argument.
9778         Use parser state.
9779         (increase_expout_size): New function.
9780         * parser-defs.h: Forward declare "struct language_defn" and
9781         "struct parser_state".
9782         (expout, expout_size, expout_ptr): Remove extern declarations.
9783         (parse_gdbarch, parse_language): Rewrite macro declarations to
9784         accept the parser state.
9785         (struct parser_state): New struct.
9786         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9787         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9788         write_exp_elt_decfloatcst, write_exp_elt_type,
9789         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9790         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9791         write_exp_msymbol, write_dollar_variable,
9792         mark_struct_expression, insert_type_address_space): Add "struct
9793         parser_state" argument.
9794         (increase_expout_size): New function.
9795         * utils.c (do_clear_parser_state): New function.
9796         (make_cleanup_clear_parser_state): Likewise.
9797         * utils.h (make_cleanup_clear_parser_state): New function
9798         prototype.
9799         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9800         Update calls to write_exp* in order to pass the parser state.
9801         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9802         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9803         (i386_stap_parse_special_token_three_arg_disp): Likewise.
9804         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9805         * stap-probe.c (stap_parse_register_operand): Likewise.
9806         (stap_parse_single_operand): Likewise.
9807         (stap_parse_argument_1): Likewise.
9808         (stap_parse_argument): Use parser state.
9809         * stap-probe.h: Include "parser-defs.h".
9810         (struct stap_parse_info) <pstate>: New field.
9811         * c-exp.y (parse_type): Rewrite to use parser state.
9812         (yyparse): Redefine to c_parse_internal.
9813         (pstate): New global variable.
9814         (parse_number): Add "struct parser_state" argument.
9815         (write_destructor_name): Likewise.
9816         (type_exp): Update calls to write_exp* and similars in order to
9817         use parser state.
9818         (exp1, exp, variable, qualified_name, space_identifier,
9819         typename, typebase): Likewise.
9820         (write_destructor_name, parse_number, lex_one_token,
9821         classify_name, classify_inner_name, c_parse): Add "struct
9822         parser_state" argument.  Update function to use parser state.
9823         * c-lang.h: Forward declare "struct parser_state".
9824         (c_parse): Add "struct parser_state" argument.
9825         * ada-exp.y (parse_type): Rewrite macro to use parser state.
9826         (yyparse): Redefine macro to ada_parse_internal.
9827         (pstate): New variable.
9828         (write_int, write_object_renaming, write_var_or_type,
9829         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9830         type_int, type_long, type_long_long, type_float, type_double,
9831         type_long_double, type_char, type_boolean, type_system_address):
9832         Add "struct parser_state" argument.
9833         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9834         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9835         var_or_type, aggregate, aggregate_component_list,
9836         positional_list, others, component_group,
9837         component_associations): Update calls to write_exp* and similar
9838         functions in order to use parser state.
9839         (ada_parse, write_var_from_sym, write_int,
9840         write_exp_op_with_string, write_object_renaming,
9841         find_primitive_type, write_selectors, write_ambiguous_var,
9842         write_var_or_type, write_name_assoc, type_int, type_long,
9843         type_long_long, type_float, type_double, type_long_double,
9844         type_char, type_boolean, type_system_address): Add "struct
9845         parser_state" argument.  Adjust function to use parser state.
9846         * ada-lang.c (parse): Likewise.
9847         * ada-lang.h: Forward declare "struct parser_state".
9848         (ada_parse): Add "struct parser_state" argument.
9849         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
9850         calls to both functions.
9851         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9852         parser state.
9853         (yyparse): Redefine macro to f_parse_internal.
9854         (pstate): New variable.
9855         (parse_number): Add "struct parser_state" argument.
9856         (type_exp, exp, subrange, typebase): Update calls to write_exp*
9857         and similars in order to use parser state.
9858         (parse_number): Adjust code to use parser state.
9859         (yylex): Likewise.
9860         (f_parse): New function.
9861         * f-lang.h: Forward declare "struct parser_state".
9862         (f_parse): Add "struct parser_state" argument.
9863         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9864         parser state.
9865         (yyparse): Redefine macro for java_parse_internal.
9866         (pstate): New variable.
9867         (push_expression_name, push_expression_name, insert_exp): Add
9868         "struct parser_state" argument.
9869         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9870         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9871         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9872         PostIncrementExpression, PostDecrementExpression,
9873         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9874         UnaryExpressionNotPlusMinus, CastExpression,
9875         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9876         RelationalExpression, EqualityExpression, AndExpression,
9877         ExclusiveOrExpression, InclusiveOrExpression,
9878         ConditionalAndExpression, ConditionalOrExpression,
9879         ConditionalExpression, Assignment, LeftHandSide): Update
9880         calls to write_exp* and similars in order to use parser state.
9881         (parse_number): Ajust code to use parser state.
9882         (yylex): Likewise.
9883         (java_parse): New function.
9884         (push_variable): Add "struct parser_state" argument.  Adjust
9885         code to user parser state.
9886         (push_fieldnames, push_qualified_expression_name,
9887         push_expression_name, insert_exp): Likewise.
9888         * jv-lang.h: Forward declare "struct parser_state".
9889         (java_parse): Add "struct parser_state" argument.
9890         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9891         parser state.
9892         (yyparse): Redefine macro to m2_parse_internal.
9893         (pstate): New variable.
9894         (type_exp, exp, fblock, variable, type): Update calls to
9895         write_exp* and similars to use parser state.
9896         (yylex): Likewise.
9897         (m2_parse): New function.
9898         * m2-lang.h: Forward declare "struct parser_state".
9899         (m2_parse): Add "struct parser_state" argument.
9900         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9901         * objc-lang.h: Forward declare "struct parser_state".
9902         (end_msglist): Add "struct parser_state" argument.
9903         * p-exp.y (parse_type): Rewrite macro to use parser state.
9904         (yyparse): Redefine macro to pascal_parse_internal.
9905         (pstate): New variable.
9906         (parse_number): Add "struct parser_state" argument.
9907         (type_exp, exp1, exp, qualified_name, variable): Update calls to
9908         write_exp* and similars in order to use parser state.
9909         (parse_number, yylex): Adjust code to use parser state.
9910         (pascal_parse): New function.
9911         * p-lang.h: Forward declare "struct parser_state".
9912         (pascal_parse): Add "struct parser_state" argument.
9913         * go-exp.y (parse_type): Rewrite macro to use parser state.
9914         (yyparse): Redefine macro to go_parse_internal.
9915         (pstate): New variable.
9916         (parse_number): Add "struct parser_state" argument.
9917         (type_exp, exp1, exp, variable, type): Update calls to
9918         write_exp* and similars in order to use parser state.
9919         (parse_number, lex_one_token, classify_name, yylex): Adjust code
9920         to use parser state.
9921         (go_parse): Likewise.
9922         * go-lang.h: Forward declare "struct parser_state".
9923         (go_parse): Add "struct parser_state" argument.
9924
9925 2014-03-27  Doug Evans  <dje@google.com>
9926
9927         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
9928
9929 2014-03-27  Doug Evans  <dje@google.com>
9930
9931         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9932         Remove argument abbrev_section.  All callers updated.
9933
9934 2014-03-27  Doug Evans  <dje@google.com>
9935
9936         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9937         addr_base, ranges_base.
9938
9939 2014-03-26  Keith Seitz  <keiths@redhat.com>
9940
9941         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9942         types, not VAR_DOMAIN.
9943
9944 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
9945
9946         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9947         "ra" registers.
9948         * features/nios2-linux.c: Regenerated.
9949         * features/nios2.c: Regenerated.
9950
9951 2014-03-25  Pedro Alves  <palves@redhat.com>
9952
9953         * cli/cli-script.c (script_from_file): Force the interpreter to
9954         sync mode.
9955
9956 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
9957
9958         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9959         small stack allocation.
9960
9961 2014-03-24  Tristan Gingold  <gingold@adacore.com>
9962
9963         * darwin-nat.c (exc_server): Remove unused prototype.
9964         (darwin_dump_message): Correctly display data on x86_64.
9965         (darwin_encode_reply): Fix style.
9966         Add comments and fix indentation.
9967
9968 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
9969
9970         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9971
9972 2014-03-22  Doug Evans  <xdje42@gmail.com>
9973
9974         * infcmd.c: Whitespace fixes.
9975         (interrupt_command): Merge two function comments into one.
9976
9977 2014-03-22  Doug Evans  <xdje42@gmail.com>
9978
9979         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9980         All uses updated.
9981
9982 2014-03-22  Yao Qi  <yao@codesourcery.com>
9983
9984         * remote.c (target_read_live_memory): Remove.
9985         (memory_xfer_live_readonly_partial): Rename it to
9986         remote_xfer_live_readonly_partial.  Remove argument 'object'.
9987         All callers updated.  Call remote_read_bytes_1
9988         instead of target_read_live_memory.
9989         * tracepoint.c (set_traceframe_number): Remove.
9990         (make_cleanup_restore_traceframe_number): Likewise .
9991         * tracepoint.h (set_traceframe_number): Remove declaration.
9992         (make_cleanup_restore_traceframe_number): Likewise.
9993
9994 2014-03-22  Yao Qi  <yao@codesourcery.com>
9995
9996         * remote.c (remote_read_bytes): Move code on reading from the
9997         remote stub to ...
9998         (remote_read_bytes_1): ... here.  New function.
9999
10000 2014-03-22  Yao Qi  <yao@codesourcery.com>
10001
10002         * ctf.c (ctf_xfer_partial): Check the return value of
10003         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
10004         return TARGET_XFER_UNAVAILABLE.
10005         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10006         * target.c (target_read_live_memory): Move it to remote.c.
10007         (memory_xfer_live_readonly_partial): Likewise.
10008         (memory_xfer_partial_1): Move some code to remote_read_bytes.
10009         * remote.c (target_read_live_memory): Moved from target.c.
10010         (memory_xfer_live_readonly_partial): Likewise.
10011         (remote_read_bytes): Factored out from
10012         memory_xfer_partial_1.
10013
10014 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
10015
10016         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
10017         NULL pointer.
10018
10019 2014-03-21  Pedro Alves  <palves@redhat.com>
10020
10021         * infrun.c (normal_stop): Extend comment.
10022
10023 2014-03-21  Hui Zhu  <hui@codesourcery.com>
10024             Pedro Alves  <palves@redhat.com>
10025
10026         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
10027         static buffer.
10028         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
10029         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
10030         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
10031
10032 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
10033
10034         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
10035         `z' formatted output modifier.
10036
10037 2014-03-20  Tom Tromey  <tromey@redhat.com>
10038             Sergio Durigan Junior  <sergiodj@redhat.com>
10039
10040         * probe.c (parse_probes): Turn assert into an ordinary error.
10041         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
10042         exceptions when parsing probes.  Rearrange the code for clarity.
10043
10044 2014-03-20  Tom Tromey  <tromey@redhat.com>
10045
10046         PR gdb/14135
10047         * top.c (execute_command): Only dispatch events if the command
10048         started the target.
10049
10050 2014-03-20  Tom Tromey  <tromey@redhat.com>
10051
10052         PR cli/15718
10053         * infcall.c: Include event-top.h.
10054         (run_inferior_call): Call async_disable_stdin if needed.
10055
10056 2014-03-20  Pedro Alves  <palves@redhat.com>
10057
10058         * infrun.c (prepare_to_proceed): Delete.
10059         (thread_still_needs_step_over): New function.
10060         (find_thread_needs_step_over): New function.
10061         (proceed): If the current thread needs a step-over, set its
10062         steping_over_breakpoint flag.  Adjust to use
10063         find_thread_needs_step_over instead of prepare_to_proceed.
10064         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
10065         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
10066         breakpoint.
10067         (switch_back_to_stepped_thread): Step over breakpoints of all
10068         threads not the stepping thread, before switching back to the
10069         stepping thread.
10070
10071 2014-03-20  Pedro Alves  <palves@redhat.com>
10072
10073         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
10074         extern.
10075         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
10076         * infrun.c (saved_singlestep_ptid)
10077         (stepping_past_singlestep_breakpoint): Delete.
10078         (resume): Remove stepping_past_singlestep_breakpoint handling.
10079         (proceed): Store the prev_pc of the stepping thread too.
10080         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
10081         singlestep_pc.
10082         (enum infwait_states): Delete infwait_thread_hop_state.
10083         (struct execution_control_state) <hit_singlestep_breakpoint>: New
10084         field.
10085         (handle_inferior_event): Adjust.
10086         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
10087         handling and the thread-hop code.  Before removing single-step
10088         breakpoints, check whether the thread hit a single-step breakpoint
10089         of another thread.  If it did, the trap is not a random signal.
10090         (switch_back_to_stepped_thread): If the event thread hit a
10091         single-step breakpoint, unblock it before switching to the
10092         stepping thread.  Handle the case of the stepped thread having
10093         advanced already.
10094         (keep_going): Handle the case of the current thread moving past a
10095         single-step breakpoint.
10096
10097 2014-03-20  Pedro Alves  <palves@redhat.com>
10098
10099         PR breakpoints/7143
10100         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
10101         are being stepped over.
10102         (breakpoint_address_match): Make extern.
10103         * breakpoint.h (breakpoint_address_match): New declaration.
10104         * inferior.h (stepping_past_instruction_at): New declaration.
10105         * infrun.c (struct step_over_info): New type.
10106         (step_over_info): New global.
10107         (set_step_over_info, clear_step_over_info)
10108         (stepping_past_instruction_at): New functions.
10109         (handle_inferior_event): Clear the step-over info when
10110         trap_expected is cleared.
10111         (resume): Remove now stale comment.
10112         (clear_proceed_status): Clear step-over info.
10113         (proceed): Adjust step-over handling to set or clear the step-over
10114         info instead of removing all breakpoints.
10115         (handle_signal_stop): When setting up a thread-hop, don't remove
10116         breakpoints here.
10117         (stop_stepping): Clear step-over info.
10118         (keep_going): Adjust step-over handling to set or clear step-over
10119         info and then always inserting breakpoints, instead of removing
10120         all breakpoints when stepping over one.
10121
10122 2014-03-20  Pedro Alves  <palves@redhat.com>
10123
10124         * infrun.c (previous_inferior_ptid): Adjust comment.
10125         (deferred_step_ptid): Delete.
10126         (infrun_thread_ptid_changed, prepare_to_proceed)
10127         (init_wait_for_inferior): Adjust.
10128         (handle_signal_stop): Delete deferred_step_ptid handling.
10129
10130 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
10131
10132         PR gdb/15358
10133         * defs.h (sync_quit_force_run): New declaration.
10134         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
10135         * event-top.c (async_sigterm_handler): New declaration.
10136         (async_sigterm_token): New variable.
10137         (async_init_signals): Create also async_sigterm_token.
10138         (async_sigterm_handler): New function.
10139         (sync_quit_force_run): New variable.
10140         (handle_sigterm): Replace quit_force call by other calls.
10141         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
10142
10143 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
10144
10145         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
10146         offset into SPE pseudo registers.
10147
10148 2014-03-18  Pedro Alves  <palves@redhat.com>
10149
10150         PR gdb/13860
10151         * inferior.h (print_stop_event): Declare.
10152         * infrun.c (print_stop_event): New, factored out from ...
10153         (normal_stop): ... this.
10154         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10155         of bpstat_print/print_stack_frame.
10156
10157 2014-03-17  Tom Tromey  <tromey@redhat.com>
10158
10159         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10160
10161 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
10162
10163         * ada-lang.c (decode_constrained_packed_array): Perform a
10164         minimal coercion for reference with coerce_ref instead of
10165         ada_coerce_ref.
10166
10167 2014-03-17  Tristan Gingold  <gingold@adacore.com>
10168
10169         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10170         (darwin_solib_create_inferior_hook): Emit a warning if version
10171         is unhandled.
10172
10173 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
10174
10175         * python/py-value.c (get_field_flag): Cast flag_name argument to
10176         PyObject_GetAttrString to support Python 2.4.
10177
10178 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10179
10180         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10181         (Global Maintainers): Remove Jan Kratochvil.
10182
10183 2014-03-14  Pedro Alves  <palves@redhat.com>
10184
10185         * inferior.h (terminal_ours_for_output): Rename to ...
10186         (child_terminal_ours_for_output): ... this.
10187         (terminal_save_ours): Rename to ...
10188         (child_terminal_save_ours): ... this.
10189         (terminal_ours): Rename to ...
10190         (child_terminal_ours): ... this.
10191         (terminal_inferior): Rename to ...
10192         (child_terminal_inferior): ... this.
10193         (terminal_init_inferior): Rename to ...
10194         (child_terminal_init_inferior): ... this.
10195         (terminal_init_inferior_with_pgrp): Rename to ...
10196         (child_terminal_init_inferior_with_pgrp): ... this.
10197         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10198         (child_terminal_init_with_pgrp): ... this.
10199         (terminal_save_ours): Rename to ...
10200         (child_terminal_save_ours): ... this.
10201         (terminal_init_inferior): Rename to ...
10202         (child_terminal_init): ... this.  Adjust.
10203         (terminal_inferior): Rename to ...
10204         (child_terminal_inferior): ... this.
10205         (terminal_ours_for_output): Rename to ...
10206         (child_terminal_ours_for_output): ... this.  Adjust.
10207         (terminal_ours): Rename to ...
10208         (child_terminal_ours): ... this.
10209         (terminal_ours_1): Rename to ...
10210         (child_terminal_ours_1): ... this.  Adjust.
10211         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10212         * windows-nat.c (do_initial_windows_stuff): Adjust.
10213         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10214         (gnu_terminal_init): ... this.  Adjust.
10215         (gnu_target): Adjust.
10216         * inf-child.c (inf_child_target): Adjust.
10217
10218 2014-03-13  Doug Evans  <xdje42@gmail.com>
10219
10220         PR guile/16612
10221         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10222         new eq?-hashtab.
10223
10224 2014-03-13  Doug Evans  <xdje42@gmail.com>
10225
10226         * value.c (record_latest_value): Call release_value_or_incref
10227         instead of release_value.
10228
10229 2014-03-13  Pedro Alves  <palves@redhat.com>
10230
10231         * procfs.c (procfs_target): Don't override to_shortname,
10232         to_longname or to_doc.
10233
10234 2014-03-13  Pedro Alves  <palves@redhat.com>
10235
10236         * inf-child.c (inf_child_open, inf_child_target): Don't mention
10237         Unix in user visible strings.
10238
10239 2014-03-12  Stan Shebs  <stan@codesourcery.com>
10240
10241         * gdbtypes.h: Annotate comments for Doxygen, add a page
10242         block comment with some general info.
10243
10244 2014-03-12  Pedro Alves  <palves@redhat.com>
10245
10246         * infcmd.c (prepare_execution_command): New function, factored out
10247         from several execution commands.
10248         (run_command_1, continue_command, step_1, jump_command)
10249         (signal_command, until_command, advance_command, finish_command)
10250         (attach_command): Use prepare_execution_command.
10251
10252 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
10253
10254         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10255         (MAX_BPTS): Define.
10256         (MAX_WPTS): Define.
10257         (struct arm_linux_thread_points): Removed.
10258         (struct arm_linux_process_info): New.
10259         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10260         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10261         (arm_linux_find_breakpoints_by_tid): Removed.
10262         (struct arch_lwp_info): New.
10263         (arm_linux_find_process_pid): New functions.
10264         (arm_linux_add_process): New functions.
10265         (arm_linux_process_info_get): New functions.
10266         (arm_linux_forget_process): New function.
10267         (arm_linux_get_debug_reg_state): New function.
10268         (struct update_registers_data): New.
10269         (update_registers_callback): New function.
10270         (arm_linux_insert_hw_breakpoint1): Updated.
10271         (arm_linux_remove_hw_breakpoint1): Updated.
10272         (arm_linux_insert_hw_breakpoint): Updated.
10273         (arm_linux_remove_hw_breakpoint): Updated.
10274         (arm_linux_insert_watchpoint): Updated.
10275         (arm_linux_remove_watchpoint): Updated.
10276         (arm_linux_new_thread): Updated.
10277         (arm_linux_prepare_to_resume): New function.
10278         (arm_linux_new_fork): New function.
10279         (_initialize_arm_linux_nat): Updated.
10280
10281 2014-03-12  Pedro Alves  <palves@redhat.com>
10282
10283         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10284
10285 2014-03-12  Tom Tromey  <tromey@redhat.com>
10286
10287         * inf-child.c (return_zero): New function.
10288         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10289         * aix-thread.c (aix_thread_inferior_created): New function.
10290         (aix_thread_attach): Remove.
10291         (init_aix_thread_ops): Don't set to_attach.
10292         (_initialize_aix_thread): Register inferior_created observer.
10293         * corelow.c (init_core_ops): Don't set to_attach or
10294         to_create_inferior.
10295         * exec.c (init_exec_ops): Don't set to_attach or
10296         to_create_inferior.
10297         * infcmd.c (run_command_1): Use find_run_target.  Make direct
10298         target calls.
10299         (attach_command): Use find_attach_target.  Make direct target
10300         calls.
10301         * record-btrace.c (init_record_btrace_ops): Don't set
10302         to_create_inferior.
10303         * record-full.c (record_full_can_async_p, record_full_is_async_p):
10304         Remove.
10305         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
10306         set to_create_inferior.
10307         * target.c (complete_target_initialization): Add assertion.
10308         (target_create_inferior): Remove.
10309         (find_default_attach, find_default_create_inferior): Remove.
10310         (find_attach_target, find_run_target): New functions.
10311         (find_default_is_async_p, find_default_can_async_p)
10312         (target_supports_non_stop, target_attach): Remove.
10313         (init_dummy_target): Don't set to_create_inferior or
10314         to_supports_non_stop.
10315         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
10316         TARGET_DEFAULT_FUNC.
10317         <to_create_inferior>: Add comment.
10318         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10319         TARGET_DEFAULT_RETURN.
10320         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10321         (find_attach_target, find_run_target): Declare.
10322         (target_create_inferior): Remove.
10323         (target_has_execution_1): Update comment.
10324         (target_supports_non_stop): Remove.
10325         * target-delegates.c: Rebuild.
10326
10327 2014-03-12  Pedro Alves  <palves@redhat.com>
10328
10329         * inf-child.h: Update comment to not mention Unix.
10330
10331 2014-03-12  Pedro Alves  <palves@redhat.com>
10332
10333         * inf-child.c: Update top comment to not mention Unix.  Add
10334         generic comment describing how this target is meant to be used.
10335         (inf_child_post_attach, inf_child_post_startup_inferior)
10336         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10337         Unix in comment.
10338
10339 2014-03-12  Pedro Alves  <palves@redhat.com>
10340
10341         * nto-procfs.c: Include inf-child.h.
10342         (procfs_ops): Delete global.
10343         (procfs_can_run): Delete method.
10344         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10345         target pointer instead of referencing procfs_ops.
10346         (procfs_prepare_to_store): Delete.
10347         (init_procfs_ops): Delete function.
10348         (procfs_target): New function, based on init_procfs_ops, but
10349         inherit inf_child_target.
10350         (_initialize_procfs): Use procfs_target.
10351
10352 2014-03-12  Pedro Alves  <palves@redhat.com>
10353
10354         * windows-nat.c: Include inf-child.h.
10355         (windows_ops): Delete global.
10356         (windows_open, windows_prepare_to_store, windows_can_run): Delete
10357         methods.
10358         (init_windows_ops): Delete function.
10359         (windows_target): New function, based on init_windows_ops, but
10360         inherit inf_child_target.
10361         (_initialize_windows_nat): Use windows_target.  Install x86
10362         specific target methods here.
10363
10364 2014-03-10  Doug Evans  <xdje42@gmail.com>
10365
10366         * guile/guile.c (call_initialize_gdb_module): New function.
10367         (initialize_guile): Replace call to scm_init_guile with call to
10368         scm_with_guile.
10369
10370 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
10371
10372         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10373         in call to TYPE_CODE macro.
10374
10375 2014-03-10  Jerome Guitton  <guitton@adacore.com>
10376
10377         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10378         Resolve tagged types to full view.
10379
10380 2014-03-10  Hui Zhu  <hui@codesourcery.com>
10381
10382         * target.h (target_insert_breakpoint): Remove "hardware" from its
10383         comments.
10384
10385 2014-03-07  Doug Evans  <dje@google.com>
10386
10387         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10388
10389 2014-03-07  Doug Evans  <dje@google.com>
10390
10391         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10392         Remove unused local comp_dir_attr.  Assert exactly one of
10393         stub_comp_unit_die, stub_comp_dir is non-NULL.
10394
10395 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
10396
10397         * target.h (complete_target_initialization, add_target):
10398         Add comment.
10399
10400 2014-03-07  Pedro Alves  <palves@redhat.com>
10401
10402         * go32-nat.c: Include inf-child.h.
10403         (go32_ops): Delete global.
10404         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10405         Delete methods.
10406         (go32_create_inferior): Push the passed in target pointer instead
10407         of referencing go32_ops.
10408         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
10409         (go32_target): New function, based on init_go32_ops, but inherit
10410         inf_child_target.
10411         (_initialize_go32_nat): Use go32_target.  Move parts of
10412         init_go32_ops here.
10413
10414 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
10415
10416         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10417         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10418         SYMBOL_VALUE_ADDRESS.
10419         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10420
10421 2014-03-06  Yao Qi  <yao@codesourcery.com>
10422
10423         * breakpoint.c (get_tracepoint_by_number): Remove argument
10424         optional_p.  All callers updated.  Adjust comments.  Update
10425         output message.
10426         * breakpoint.h (get_tracepoint_by_number): Update declaration.
10427
10428 2014-03-06  Yao Qi  <yao@codesourcery.com>
10429
10430         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
10431         early if get_number returns zero.  Use 'p' instead of 'args'.
10432
10433 2014-03-06  Yao Qi  <yao@codesourcery.com>
10434
10435         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10436         message.
10437
10438 2014-03-06  Yao Qi  <yao@codesourcery.com>
10439
10440         PR breakpoints/16508
10441         * tracepoint.c (check_trace_running): New function.
10442         (trace_find_command): Move code to check_trace_running and
10443         call check_trace_running.
10444         (trace_find_pc_command): Likewise.
10445         (trace_find_tracepoint_command): Likewise.
10446         (trace_find_line_command): Likewise.
10447         (trace_find_range_command): Likewise.
10448         * tracepoint.h (check_trace_running): Likewise.
10449         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10450
10451 2014-03-06  Yao Qi  <yao@codesourcery.com>
10452
10453         * target.h (struct target_ops) <to_traceframe_info>: Use
10454         TARGET_DEFAULT_NORETURN (tcomplain ()).
10455         * target-delegates.c: Regenerated.
10456
10457 2014-03-05  Pedro Alves  <palves@redhat.com>
10458
10459         PR gdb/16575
10460         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
10461         void.  Update comment.
10462         (dcache_xfer_memory): Delete.
10463         (dcache_read_memory_partial): New, based on the read bits of
10464         dcache_xfer_memory.
10465         (dcache_update): Add status parameter.  Use ULONGEST for len, and
10466         adjust.  Discard cache lines if the reason for the update was
10467         error.
10468         * dcache.h (dcache_xfer_memory): Delete declaration.
10469         (dcache_read_memory_partial): New declaration.
10470         (dcache_update): Update prototype.
10471         * target.c (raw_memory_xfer_partial): Update the dcache here.
10472         (memory_xfer_partial_1): Don't handle dcache writes here.
10473
10474 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
10475
10476         * remote-sim.c (gdbsim_load): Add const to prog.
10477
10478 2014-03-03  Tom Tromey  <tromey@redhat.com>
10479
10480         * elfread.c (probe_key): Change to bfd_data.
10481         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10482         now per-BFD, not per-objfile.
10483         * stap-probe.c (stap_probe_destroy): Update comment.
10484         (handle_stap_probe): Allocate on the per-BFD obstack.
10485
10486 2014-03-03  Tom Tromey  <tromey@redhat.com>
10487
10488         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10489         * breakpoint.c (create_longjmp_master_breakpoint): Use
10490         get_probe_address.
10491         (add_location_to_breakpoint, bkpt_probe_insert_location)
10492         (bkpt_probe_remove_location): Update.
10493         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10494         * elfread.c (elf_symfile_relocate_probe): Remove.
10495         (elf_probe_fns): Update.
10496         (insert_exception_resume_breakpoint): Change type of "probe"
10497         parameter to bound_probe.
10498         (check_exception_resume): Update.
10499         * objfiles.c (objfile_relocate1): Don't relocate probes.
10500         * probe.c (bound_probe_s): New typedef.
10501         (parse_probes): Use get_probe_address.  Set sal's objfile.
10502         (find_probe_by_pc): Return a bound_probe.
10503         (collect_probes): Return a VEC(bound_probe_s).
10504         (compare_probes): Update.
10505         (gen_ui_out_table_header_info): Change type of "probes"
10506         parameter.  Update.
10507         (info_probes_for_ops): Update.
10508         (get_probe_address): New function.
10509         (probe_safe_evaluate_at_pc): Update.
10510         * probe.h (struct probe_ops) <get_probe_address>: New field.
10511         <set_semaphore, clear_semaphore>: Add objfile parameter.
10512         (struct probe) <objfile>: Remove field.
10513         <arch>: New field.
10514         <address>: Update comment.
10515         (struct bound_probe): New.
10516         (find_probe_by_pc): Return a bound_probe.
10517         (get_probe_address): Declare.
10518         * solib-svr4.c (struct probe_and_action) <address>: New field.
10519         (hash_probe_and_action, equal_probe_and_action): Update.
10520         (register_solib_event_probe): Add address parameter.
10521         (solib_event_probe_at): Update.
10522         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
10523         get_probe_address.
10524         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10525         (stap_get_probe_address): New function.
10526         (stap_can_evaluate_probe_arguments, compute_probe_arg)
10527         (compile_probe_arg): Update.
10528         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10529         address.
10530         (handle_stap_probe): Don't relocate the probe.
10531         (stap_relocate): Remove.
10532         (stap_gen_info_probes_table_values): Update.
10533         (stap_probe_ops): Remove stap_relocate.
10534         * symfile-debug.c (debug_sym_relocate_probe): Remove.
10535         (debug_sym_probe_fns): Update.
10536         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10537         * symtab.c (init_sal): Use memset.
10538         * symtab.h (struct symtab_and_line) <objfile>: New field.
10539         * tracepoint.c (start_tracing, stop_tracing): Update.
10540
10541 2014-03-03  Tom Tromey  <tromey@redhat.com>
10542
10543         * probe.h (parse_probes, find_probe_by_pc)
10544         (find_probes_in_objfile): Fix comments.
10545
10546 2014-03-02  Doug Evans  <xdje42@gmail.com>
10547
10548         * infrun.c (handle_signal_stop): Replace test for
10549         TARGET_WAITKIND_STOPPED with an assert.
10550
10551 2014-03-02  Doug Evans  <xdje42@gmail.com>
10552
10553         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10554
10555 2014-03-02  Doug Evans  <xdje42@gmail.com>
10556
10557         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10558
10559 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10560
10561         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10562
10563 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10564
10565         * i386obsd-nat.c: Include "obsd-nat.h".
10566         (_initialize_i386obsd_nat): Call obsd_add_target instead of
10567         add_target.
10568         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10569
10570 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10571
10572         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10573
10574 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10575
10576         * mips64obsd-nat.c: Include "obsd-nath".
10577         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10578         add_target
10579         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10580
10581 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10582
10583         * amd64obsd-nat.c: Include "obsd-nat,h.
10584         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10585         add_target.
10586         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10587
10588 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
10589
10590         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10591         (find_overload_match): Update call to find_oload_champ.
10592         (find_oload_champ_namespace_loop): Likewise
10593
10594 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
10595
10596         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10597
10598         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10599         * config/sparc/obsd64.mh: New file.
10600         * sparc64obsd-nat.c: New file.
10601
10602         * obsd-nat.h: New file.
10603         * obsd-nat.c: New file.
10604         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10605         (ALLDEPFILES): Add obsd-nat.c.
10606
10607 2014-02-28  Tom Tromey  <tromey@redhat.com>
10608
10609         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
10610         * cli-out.h (cli_ui_out_impl): Now const.
10611         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
10612         * ui-out.c (struct ui_out) <impl>: Now const.
10613         (default_ui_out_impl): Now const.
10614         (ui_out_new): Make 'impl' parameter const.
10615         * ui-out.h (ui_out_new): Update.
10616
10617 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
10618
10619         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10620
10621 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
10622
10623         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10624
10625 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
10626
10627         Additional PR 8882 fix.
10628         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10629
10630 2014-02-27  Pedro Alves  <palves@redhat.com>
10631
10632         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10633         isn't set.
10634
10635 2014-02-27  Pedro Alves  <palves@redhat.com>
10636
10637         PR 12702
10638         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10639         * nat/linux-waitpid.c: Include string.h.
10640         (status_to_str): Moved here and made extern.
10641         * nat/linux-waitpid.h (status_to_str): New declaration.
10642
10643 2014-02-27  Hui Zhu  <hui@codesourcery.com>
10644
10645         PR 12702
10646         * infrun.c (ptid_match): Move ...
10647         * common/ptid.c (ptid_match): ... here.
10648         * inferior.h (ptid_match): Move ...
10649         * common/ptid.h (ptid_match): ... here.
10650
10651 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
10652
10653         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10654         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10655         gdb_target_obs.
10656
10657 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
10658
10659         * obsd-tdep.c (obsd_auxv_parse): New function.
10660         (obsd_init_abi): Set auxv_parse.
10661
10662         * gdbarch.sh (auxv_parse): New.
10663         * gdbarch.h: Regenerated.
10664         * gdbarch.c: Regenerated.
10665         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10666
10667 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
10668
10669         * guile/scm-value.c (gdbscm_history_append_x): New function.
10670         (value_functions): Add it.
10671
10672 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
10673
10674         * dwarf2read.c (attr_value_as_address): New function.
10675         (dwarf2_find_base_address, read_call_site_scope): Use
10676         attr_value_as_address in place of DW_ADDR.
10677         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10678         the low and high addresses.  Slight rework of the handling
10679         of the high pc being a constant form, and limit it to
10680         DWARF verson 4 or higher.
10681         (dwarf2_record_block_ranges): Likewise.
10682         (read_partial_die): Likewise.
10683         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10684
10685 2014-02-26  Tom Tromey  <tromey@redhat.com>
10686
10687         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10688
10689 2014-02-26  Tom Tromey  <tromey@redhat.com>
10690
10691         * elfread.c (elf_read_minimal_symbols): Return early if
10692         minimal symbols have already been read.  Add "ei" parameter.
10693         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10694         * minsyms.c (prim_record_minimal_symbol_full): Update.
10695         * objfiles.h (struct objstats) <n_minsyms>: Move...
10696         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10697         * symmisc.c (print_objfile_statistics): Update.
10698
10699 2014-02-26  Tom Tromey  <tromey@redhat.com>
10700
10701         * elfread.c (elf_read_minimal_symbols): New function, from
10702         elf_symfile_read.
10703         (elf_symfile_read): Call it.
10704
10705 2014-02-26  Tom Tromey  <tromey@redhat.com>
10706
10707         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10708         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10709         (lookup_minimal_symbol_solib_trampoline)
10710         (lookup_minimal_symbol_by_pc_section_1)
10711         (lookup_minimal_symbol_and_objfile): Update.
10712         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10713         Don't allocate a minimal symbol if minsyms have already been read.
10714         (build_minimal_symbol_hash_tables): Update.
10715         (install_minimal_symbols): Do nothing if minsyms already read.
10716         Use the per-BFD obstack.
10717         (terminate_minimal_symbol_table): Use the per-BFD obstack.
10718         * objfiles.c (allocate_objfile): Call
10719         terminate_minimal_symbol_table later.
10720         (have_minimal_symbols): Update.
10721         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10722         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10723         Move from struct objfile.
10724         <minsyms_read>: New field.
10725         (struct objfile) <msymbols, minimal_symbol_count,
10726         msymbol_hash, msymbol_demangled_hash>: Move.
10727         (ALL_OBJFILE_MSYMBOLS): Update.
10728         * symfile.c (read_symbols): Set minsyms_read.
10729         (reread_symbols): Update.
10730         * symmisc.c (dump_objfile, dump_msymbols): Update.
10731
10732 2014-02-26  Tom Tromey  <tromey@redhat.com>
10733
10734         * minsyms.c (msymbols_sort): Remove.
10735         * minsyms.h (msymbols_sort): Remove.
10736         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10737         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10738         * elfread.c (elf_symtab_read): Don't add section offsets.
10739         * xcoffread.c (record_minimal_symbol): Don't add section offset
10740         to minimal symbol address.
10741         * somread.c (text_offset, data_offset): Remove.
10742         (som_symtab_read): Don't add section offsets to minimal symbol
10743         addresses.
10744         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10745         Don't add section offsets to minimal symbols.
10746         * coffread.c (coff_symtab_read): Don't add section offsets
10747         to minimal symbol addresses.
10748         * machoread.c (macho_symtab_add_minsym): Don't add section offset
10749         to minimal symbol addresses.
10750         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10751         section offset to minimal symbol addresses.
10752         * mdebugread.c (parse_partial_symbols): Don't add section
10753         offset to minimal symbol addresses.
10754         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10755         offset to minimal symbol addresses.
10756
10757 2014-02-26  Tom Tromey  <tromey@redhat.com>
10758
10759         * ada-lang.c (ada_main_name): Update.
10760         (ada_add_standard_exceptions): Update.
10761         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10762         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10763         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10764         * auxv.c (ld_so_xfer_auxv): Update.
10765         * avr-tdep.c (avr_scan_prologue): Update.
10766         * ax-gdb.c (gen_var_ref): Update.
10767         * blockframe.c (get_pc_function_start)
10768         (find_pc_partial_function_gnu_ifunc): Update.
10769         * breakpoint.c (create_overlay_event_breakpoint)
10770         (create_longjmp_master_breakpoint)
10771         (create_std_terminate_master_breakpoint)
10772         (create_exception_master_breakpoint): Update.
10773         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10774         * c-valprint.c (c_val_print): Update.
10775         * coff-pe-read.c (add_pe_forwarded_sym): Update.
10776         * common/agent.c (agent_look_up_symbols): Update.
10777         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10778         * dwarf2loc.c (call_site_to_target_addr): Update.
10779         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10780         * elfread.c (elf_gnu_ifunc_record_cache)
10781         (elf_gnu_ifunc_resolve_by_got): Update.
10782         * findvar.c (default_read_var_value): Update.
10783         * frame.c (inside_main_func): Update.
10784         * frv-tdep.c (frv_frame_this_id): Update.
10785         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10786         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10787         Update.
10788         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10789         (hppa_hpux_find_dummy_bpaddr): Update.
10790         * hppa-tdep.c (hppa_symbol_address): Update.
10791         * infcmd.c (until_next_command): Update.
10792         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10793         Update.
10794         * linespec.c (minsym_found, add_minsym): Update.
10795         * linux-nat.c (get_signo): Update.
10796         * linux-thread-db.c (inferior_has_bug): Update.
10797         * m32c-tdep.c (m32c_return_value)
10798         (m32c_m16c_address_to_pointer): Update.
10799         * m32r-tdep.c (m32r_frame_this_id): Update.
10800         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10801         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10802         * maint.c (maintenance_translate_address): Update.
10803         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10804         (frob_address): New function.
10805         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10806         frob_address.  Rename parameter to "pc_in".
10807         (compare_minimal_symbols, compact_minimal_symbols): Use raw
10808         addresses.
10809         (find_solib_trampoline_target, minimal_symbol_upper_bound):
10810         Update.
10811         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10812         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10813         * objc-lang.c (find_objc_msgsend): Update.
10814         * objfiles.c (objfile_relocate1): Update.
10815         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10816         * p-valprint.c (pascal_val_print): Update.
10817         * parse.c (write_exp_msymbol): Update.
10818         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10819         (ppc_elfv2_skip_entrypoint): Update.
10820         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10821         * printcmd.c (build_address_symbolic, msym_info)
10822         (address_info): Update.
10823         * proc-service.c (ps_pglobal_lookup): Update.
10824         * psymtab.c (find_pc_sect_psymtab_closer)
10825         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10826         Change msymbol parameter to bound_minimal_symbol.
10827         * ravenscar-thread.c (get_running_thread_id): Update.
10828         * remote.c (remote_check_symbols): Update.
10829         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10830         address.
10831         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10832         * solib-dsbt.c (lm_base): Update.
10833         * solib-frv.c (lm_base, main_got): Update.
10834         * solib-irix.c (locate_base): Update.
10835         * solib-som.c (som_solib_create_inferior_hook)
10836         (link_map_start): Update.
10837         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10838         * solib-svr4.c (elf_locate_base, enable_break): Update.
10839         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10840         (flush_ea_cache): Update.
10841         * stabsread.c (define_symbol, scan_file_globals): Update.
10842         * stack.c (find_frame_funname): Update.
10843         * symfile-debug.c (debug_qf_expand_symtabs_matching)
10844         (debug_qf_find_pc_sect_symtab): Update.
10845         * symfile.c (simple_read_overlay_table)
10846         (simple_overlay_update): Update.
10847         * symfile.h (struct quick_symbol_functions)
10848         <find_pc_sect_symtab>: Change type of msymbol to
10849         bound_minimal_symbol.
10850         * symmisc.c (dump_msymbols): Update.
10851         * symtab.c (find_pc_sect_symtab_via_partial)
10852         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10853         (search_symbols, print_msymbol_info): Update.
10854         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10855         (MSYMBOL_VALUE_ADDRESS): Redefine.
10856         (BMSYMBOL_VALUE_ADDRESS): New macro.
10857         * tracepoint.c (scope_info): Update.
10858         * tui/tui-disasm.c (tui_find_disassembly_address)
10859         (tui_get_begin_asm_address): Update.
10860         * valops.c (find_function_in_inferior): Update.
10861         * value.c (value_static_field, value_fn_field): Update.
10862
10863 2014-02-26  Tom Tromey  <tromey@redhat.com>
10864
10865         * ada-lang.c (ada_update_initial_language): Update.
10866         (ada_main_name, ada_has_this_exception_support): Update.
10867         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10868         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10869         * arm-tdep.c (arm_skip_stub): Update.
10870         * auxv.c (ld_so_xfer_auxv): Update.
10871         * avr-tdep.c (avr_scan_prologue): Update.
10872         * ax-gdb.c (gen_var_ref): Update.
10873         * breakpoint.c (struct breakpoint_objfile_data)
10874         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10875         type to bound_minimal_symbol.
10876         (create_overlay_event_breakpoint)
10877         (create_longjmp_master_breakpoint)
10878         (create_std_terminate_master_breakpoint)
10879         (create_exception_master_breakpoint): Update.
10880         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10881         * c-exp.y (classify_name): Update.
10882         * coffread.c (coff_symfile_read): Update.
10883         * common/agent.c (agent_look_up_symbols): Update.
10884         * d-lang.c (d_main_name): Update.
10885         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10886         * dec-thread.c (enable_dec_thread): Update.
10887         * dwarf2loc.c (call_site_to_target_addr): Update.
10888         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10889         * eval.c (evaluate_subexp_standard): Update.
10890         * findvar.c (struct minsym_lookup_data) <result>: Change type
10891         to bound_minimal_symbol.
10892         <objfile>: Remove.
10893         (minsym_lookup_iterator_cb, default_read_var_value): Update.
10894         * frame.c (inside_main_func): Update.
10895         * frv-tdep.c (frv_frame_this_id): Update.
10896         * gcore.c (call_target_sbrk): Update.
10897         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10898         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10899         Update.
10900         * go-lang.c (go_main_name): Update.
10901         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10902         (hppa_hpux_find_import_stub_for_addr): Update.
10903         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10904         Update.  Change return type.
10905         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10906         type.
10907         * jit.c (jit_breakpoint_re_set_internal): Update.
10908         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10909         Update.
10910         * linux-nat.c (get_signo): Update.
10911         * linux-thread-db.c (inferior_has_bug): Update
10912         * m32c-tdep.c (m32c_return_value)
10913         (m32c_m16c_address_to_pointer): Update.
10914         * m32r-tdep.c (m32r_frame_this_id): Update.
10915         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10916         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10917         * minsyms.c (lookup_minimal_symbol_internal): Rename to
10918         lookup_minimal_symbol.  Change return type.
10919         (lookup_minimal_symbol): Remove.
10920         (lookup_bound_minimal_symbol): Update.
10921         (lookup_minimal_symbol_text): Change return type.
10922         (lookup_minimal_symbol_solib_trampoline): Change return type.
10923         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10924         (lookup_minimal_symbol_solib_trampoline): Change return type.
10925         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10926         * objc-lang.c (lookup_objc_class, lookup_child_selector)
10927         (value_nsstring, find_imps): Update.
10928         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10929         * p-lang.c (pascal_main_name): Update.
10930         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10931         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10932         * proc-service.c (ps_pglobal_lookup): Update.
10933         * ravenscar-thread.c (get_running_thread_msymbol): Change
10934         return type.
10935         (has_ravenscar_runtime, get_running_thread_id): Update.
10936         * remote.c (remote_check_symbols): Update.
10937         * sol-thread.c (ps_pglobal_lookup): Update.
10938         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10939         * solib-dsbt.c (lm_base): Update.
10940         * solib-frv.c (lm_base, frv_relocate_section_addresses):
10941         Update.
10942         * solib-irix.c (locate_base): Update.
10943         * solib-som.c (som_solib_create_inferior_hook)
10944         (som_solib_desire_dynamic_linker_symbols, link_map_start):
10945         Update.
10946         * solib-spu.c (spu_enable_break): Update.
10947         * solib-svr4.c (elf_locate_base, enable_break): Update.
10948         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10949         (flush_ea_cache): Update.
10950         * stabsread.c (define_symbol): Update.
10951         * symfile.c (simple_read_overlay_table): Update.
10952         * symtab.c (find_pc_sect_line): Update.
10953         * tracepoint.c (scope_info): Update.
10954         * tui-disasm.c (tui_get_begin_asm_address): Update.
10955         * value.c (value_static_field): Update.
10956
10957 2014-02-26  Tom Tromey  <tromey@redhat.com>
10958
10959         * minsyms.c (prim_record_minimal_symbol_full): Use
10960         SET_MSYMBOL_VALUE_ADDRESS.
10961         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10962         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10963         SET_MSYMBOL_VALUE_ADDRESS.
10964         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10965         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10966
10967 2014-02-26  Tom Tromey  <tromey@redhat.com>
10968
10969         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10970         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10971         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10972         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10973         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10974         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10975         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10976         * ada-lang.c (ada_main_name): Update.
10977         (ada_lookup_simple_minsym): Update.
10978         (ada_make_symbol_completion_list): Update.
10979         (ada_add_standard_exceptions): Update.
10980         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10981         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10982         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10983         * arm-tdep.c (skip_prologue_function): Update.
10984         (arm_skip_stack_protector, arm_skip_stub): Update.
10985         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10986         (arm_wince_skip_main_prologue): Update.
10987         * auxv.c (ld_so_xfer_auxv): Update.
10988         * avr-tdep.c (avr_scan_prologue): Update.
10989         * ax-gdb.c (gen_var_ref): Update.
10990         * block.c (call_site_for_pc): Update.
10991         * blockframe.c (get_pc_function_start): Update.
10992         (find_pc_partial_function_gnu_ifunc): Update.
10993         * breakpoint.c (create_overlay_event_breakpoint): Update.
10994         (create_longjmp_master_breakpoint): Update.
10995         (create_std_terminate_master_breakpoint): Update.
10996         (create_exception_master_breakpoint): Update.
10997         (resolve_sal_pc): Update.
10998         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10999         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
11000         Update.
11001         * c-valprint.c (c_val_print): Update.
11002         * coff-pe-read.c (add_pe_forwarded_sym): Update.
11003         * coffread.c (coff_symfile_read): Update.
11004         * common/agent.c (agent_look_up_symbols): Update.
11005         * dbxread.c (find_stab_function_addr): Update.
11006         (end_psymtab): Update.
11007         * dwarf2loc.c (call_site_to_target_addr): Update.
11008         (func_verify_no_selftailcall): Update.
11009         (tailcall_dump): Update.
11010         (call_site_find_chain_1): Update.
11011         (dwarf_expr_reg_to_entry_parameter): Update.
11012         * elfread.c (elf_gnu_ifunc_record_cache): Update.
11013         (elf_gnu_ifunc_resolve_by_got): Update.
11014         * f-valprint.c (info_common_command): Update.
11015         * findvar.c (read_var_value): Update.
11016         * frame.c (get_prev_frame_1): Update.
11017         (inside_main_func): Update.
11018         * frv-tdep.c (frv_skip_main_prologue): Update.
11019         (frv_frame_this_id): Update.
11020         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11021         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
11022         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
11023         (gnuv3_skip_trampoline): Update.
11024         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
11025         (hppa64_hpux_in_solib_call_trampoline): Update.
11026         (hppa_hpux_skip_trampoline_code): Update.
11027         (hppa64_hpux_search_dummy_call_sequence): Update.
11028         (hppa_hpux_find_import_stub_for_addr): Update.
11029         (hppa_hpux_find_dummy_bpaddr): Update.
11030         * hppa-tdep.c (hppa_symbol_address)
11031         (hppa_lookup_stub_minimal_symbol): Update.
11032         * i386-tdep.c (i386_skip_main_prologue): Update.
11033         (i386_pe_skip_trampoline_code): Update.
11034         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
11035         * infcall.c (get_function_name): Update.
11036         * infcmd.c (until_next_command): Update.
11037         * jit.c (jit_breakpoint_re_set_internal): Update.
11038         (jit_inferior_init): Update.
11039         * linespec.c (minsym_found): Update.
11040         (add_minsym): Update.
11041         * linux-fork.c (info_checkpoints_command): Update.
11042         * linux-nat.c (get_signo): Update.
11043         * linux-thread-db.c (inferior_has_bug): Update.
11044         * m32c-tdep.c (m32c_return_value): Update.
11045         (m32c_m16c_address_to_pointer): Update.
11046         (m32c_m16c_pointer_to_address): Update.
11047         * m32r-tdep.c (m32r_frame_this_id): Update.
11048         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11049         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11050         * maint.c (maintenance_translate_address): Update.
11051         * minsyms.c (add_minsym_to_hash_table): Update.
11052         (add_minsym_to_demangled_hash_table): Update.
11053         (msymbol_objfile): Update.
11054         (lookup_minimal_symbol): Update.
11055         (iterate_over_minimal_symbols): Update.
11056         (lookup_minimal_symbol_text): Update.
11057         (lookup_minimal_symbol_by_pc_name): Update.
11058         (lookup_minimal_symbol_solib_trampoline): Update.
11059         (lookup_minimal_symbol_by_pc_section_1): Update.
11060         (lookup_minimal_symbol_and_objfile): Update.
11061         (prim_record_minimal_symbol_full): Update.
11062         (compare_minimal_symbols): Update.
11063         (compact_minimal_symbols): Update.
11064         (build_minimal_symbol_hash_tables): Update.
11065         (install_minimal_symbols): Update.
11066         (terminate_minimal_symbol_table): Update.
11067         (find_solib_trampoline_target): Update.
11068         (minimal_symbol_upper_bound): Update.
11069         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11070         * mips-tdep.c (mips_stub_frame_sniffer): Update.
11071         (mips_skip_pic_trampoline_code): Update.
11072         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
11073         * objc-lang.c (selectors_info): Update.
11074         (classes_info): Update.
11075         (find_methods): Update.
11076         (find_imps): Update.
11077         (find_objc_msgsend): Update.
11078         * objfiles.c (objfile_relocate1): Update.
11079         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
11080         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11081         * p-valprint.c (pascal_val_print): Update.
11082         * parse.c (write_exp_msymbol): Update.
11083         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
11084         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
11085         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11086         * printcmd.c (build_address_symbolic): Update.
11087         (sym_info): Update.
11088         (address_info): Update.
11089         * proc-service.c (ps_pglobal_lookup): Update.
11090         * psymtab.c (find_pc_sect_psymtab_closer): Update.
11091         (find_pc_sect_psymtab): Update.
11092         * python/py-framefilter.c (py_print_frame): Update.
11093         * ravenscar-thread.c (get_running_thread_id): Update.
11094         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
11095         Update.
11096         * remote.c (remote_check_symbols): Update.
11097         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
11098         (rs6000_skip_trampoline_code): Update.
11099         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
11100         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11101         * solib-dsbt.c (lm_base): Update.
11102         * solib-frv.c (lm_base): Update.
11103         (main_got): Update.
11104         * solib-irix.c (locate_base): Update.
11105         * solib-som.c (som_solib_create_inferior_hook): Update.
11106         (som_solib_desire_dynamic_linker_symbols): Update.
11107         (link_map_start): Update.
11108         * solib-spu.c (spu_enable_break): Update.
11109         (ocl_enable_break): Update.
11110         * solib-svr4.c (elf_locate_base): Update.
11111         (enable_break): Update.
11112         * spu-tdep.c (spu_get_overlay_table): Update.
11113         (spu_catch_start): Update.
11114         (flush_ea_cache): Update.
11115         * stabsread.c (define_symbol): Update.
11116         (scan_file_globals): Update.
11117         * stack.c (find_frame_funname): Update.
11118         (frame_info): Update.
11119         * symfile.c (simple_read_overlay_table): Update.
11120         (simple_overlay_update): Update.
11121         * symmisc.c (dump_msymbols): Update.
11122         * symtab.c (fixup_section): Update.
11123         (find_pc_sect_line): Update.
11124         (skip_prologue_sal): Update.
11125         (search_symbols): Update.
11126         (print_msymbol_info): Update.
11127         (rbreak_command): Update.
11128         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
11129         (completion_list_objc_symbol): Update.
11130         (default_make_symbol_completion_list_break_on): Update.
11131         * tracepoint.c (scope_info): Update.
11132         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
11133         (tui_get_begin_asm_address): Update.
11134         * valops.c (find_function_in_inferior): Update.
11135         * value.c (value_static_field): Update.
11136         (value_fn_field): Update.
11137
11138 2014-02-26  Tom Tromey  <tromey@redhat.com>
11139
11140         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
11141         bound minimal symbols.  Move code that knows about minsym
11142         table layout...
11143         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
11144         function.
11145         * minsyms.h (minimal_symbol_upper_bound): Declare.
11146         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
11147         minimal_symbol_upper_bound.
11148
11149 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
11150
11151         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11152         Use the type's name if its basic type does not have a tag.
11153
11154 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
11155
11156         * dwarf2read.c (read_subrange_type): Add comment.
11157
11158 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
11159
11160         * dwarf2read.c (update_enumeration_type_from_children): New
11161         function, mostly extracted from process_structure_scope.
11162         (read_enumeration_type): Call update_enumeration_type_from_children.
11163         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11164         and flag_flag_enum fields.
11165
11166 2014-02-26  Pedro Alves  <palves@redhat.com>
11167
11168         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11169         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11170         to_xfer_partial method.
11171
11172 2014-02-26  Pedro Alves  <palves@redhat.com>
11173
11174         * target.c (complete_target_initialization): Don't install
11175         default_xfer_partial as to_xfer_partial hook.
11176         (nomemory): Delete.
11177         (update_current_target): Don't INHERIT nor de_fault
11178         deprecated_xfer_memory.  Delete de_fault macro.
11179         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11180         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11181         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11182         field.
11183
11184 2014-02-26  Pedro Alves  <palves@redhat.com>
11185
11186         * go32-nat.c (my_write_child): New function.
11187         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11188         (go32_xfer_partial): New function.
11189         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11190         Instead install a to_xfer_partial hook.
11191
11192 2014-02-26  Pedro Alves  <palves@redhat.com>
11193
11194         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11195         to_xfer_partial helper.  Rewrite.
11196         (procfs_xfer_partial): New function.
11197         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11198         Install a to_xfer_partial hook.
11199
11200 2014-02-26  Pedro Alves  <palves@redhat.com>
11201
11202         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11203         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11204         (m32r_xfer_partial): New function.
11205         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11206         Install a to_xfer_partial hook.
11207
11208 2014-02-26  Pedro Alves  <palves@redhat.com>
11209
11210         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11211         helper.
11212         (mips_xfer_partial): New function.
11213         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11214         hook.  Install a to_xfer_partial hook.
11215
11216 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
11217
11218         * gdbtypes.h (create_array_type_with_stride): Add declaration.
11219         * gdbtypes.c (create_array_type_with_stride): New function,
11220         renaming create_array_type, but with an added parameter
11221         called "bit_stride".
11222         (create_array_type): Re-implement using
11223         create_array_type_with_stride.
11224         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11225         and DW_AT_bit_stride attributes.
11226
11227 2014-02-26  Pedro Alves  <palves@redhat.com>
11228
11229         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11230         task-specific breakpoints.
11231
11232 2014-02-25  Pedro Alves  <palves@redhat.com>
11233
11234         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11235         handling of object == TARGET_OBJECT_UNWIND_TABLE.
11236
11237 2014-02-25  Stan Shebs  <stan@codesourcery.com>
11238
11239         * defs.h: Annotate comments for Doxygen.
11240
11241 2014-02-25  Tom Tromey  <tromey@redhat.com>
11242
11243         * target.h (target_ignore): Don't declare.
11244         * target.c (target_ignore): Remove.
11245
11246 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
11247
11248         PR gdb/16626
11249         * auto-load.c (auto_load_objfile_script_1): Change filename to
11250         debugfile.
11251
11252 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
11253
11254         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11255         documentation.  Adjust prototype to match the target_ops
11256         to_xfer_partial method.  Adjust implementation accordingly.
11257
11258 2014-02-25  Hui Zhu  <hui@codesourcery.com>
11259
11260         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11261         to_traceframe_info.
11262
11263 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
11264
11265         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
11266         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11267         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11268         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11269         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11270         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11271         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11272         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11273         New constants.
11274         (rl78_register_type): Use a data pointer type for SP and
11275         new pseudo registers mentioned above.  Use a 16 bit integer
11276         type for all other register pairs.
11277         (rl78_register_name, rl78_g10_register_name): Update for
11278         new pseudo registers.
11279         (rl78_pseudo_register_read): Likewise.
11280         (rl78_pseudo_register_write): Likewise.
11281         (rl78_dwarf_reg_to_regnum): Return register numbers representing
11282         to the newly added pseudo registers.
11283
11284 2014-02-24  Doug Evans  <dje@google.com>
11285
11286         * value.c (record_latest_value): Fix comment.
11287         * printcmd.c (print_command_1): Remove code to handle -1 return from
11288         record_latest_value.
11289
11290 2014-02-24  Pedro Alves  <palves@redhat.com>
11291
11292         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11293         deprecated_xfer_memory hook.
11294         (procfs_xfer_partial): Call procfs_xfer_memory instead
11295         of the deprecated_xfer_memory target hook.
11296         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11297         helper.
11298
11299 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
11300
11301         * windows-nat.c (windows_xfer_shared_libraries): Return
11302         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11303         requested object is TARGET_OBJECT_LIBRARIES.
11304
11305 2014-02-24  Yao Qi  <yao@codesourcery.com>
11306
11307         * target.h (enum target_xfer_status)
11308         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11309         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11310         explicitly.  New.
11311         * corefile.c (memory_error_message): User updated.
11312         * exec.c (section_table_read_available_memory): Likewise.
11313         * record-btrace.c (record_btrace_xfer_partial): Likewise.
11314         * target.c (target_xfer_status_to_string): Likewise.
11315         (raw_memory_xfer_partial): Likewise.
11316         (memory_xfer_partial_1, target_xfer_partial): Likewise.
11317         * valops.c (read_value_memory): Likewise.
11318         * exec.h: Update comments.
11319
11320 2014-02-24  Yao Qi  <yao@codesourcery.com>
11321
11322         * target.c (target_xfer_status_to_string): Rename argument err
11323         to status.
11324         * target.h (target_xfer_status_to_string): Update declaration.
11325         Replace target_xfer_error_to_string with
11326         target_xfer_status_to_string in comment.
11327
11328 2014-02-24  Yao Qi  <yao@codesourcery.com>
11329
11330         * mips-linux-nat.c (super_close): Update its type.
11331         (mips_linux_close): Pass 'self' to super_close.
11332
11333 2014-02-24  Yao Qi  <yao@codesourcery.com>
11334
11335         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11336         * corefile.c (read_memory): Adjusted.
11337         * target.c (target_write_with_progress): Adjusted.
11338
11339 2014-02-23  Yao Qi  <yao@codesourcery.com>
11340
11341         Revert two patches:
11342
11343         2013-10-25  Yao Qi  <yao@codesourcery.com>
11344
11345         * remote.c (remote_traceframe_info): Return early if
11346         traceframe is not selected.
11347
11348         2013-07-19  Yao Qi  <yao@codesourcery.com>
11349
11350         * target.c (update_current_target): Change the default action
11351         of 'to_traceframe_info' from tcomplain to return_zero.
11352         * target.h (struct target_ops) <to_traceframe_info>: Add more
11353         comments.
11354
11355 2014-02-23  Yao Qi  <yao@codesourcery.com>
11356
11357         * valops.c (read_value_memory): Rewrite it.  Call
11358         target_xfer_partial in a loop.
11359         * exec.h (section_table_available_memory): Remove declaration.
11360         Move comments to ...
11361         * exec.c (section_table_available_memory): ... here.  Make it
11362         static.
11363
11364 2014-02-23  Yao Qi  <yao@codesourcery.com>
11365
11366         * exec.c (section_table_read_available_memory): New function.
11367         * exec.h (section_table_read_available_memory): Declare.
11368         * ctf.c (ctf_xfer_partial): Call
11369         section_table_read_available_memory.
11370         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11371
11372 2014-02-23  Yao Qi  <yao@codesourcery.com>
11373
11374         * ctf.c (ctf_xfer_partial): Move code to ...
11375         * exec.c (exec_read_partial_read_only): ... it.  New function.
11376         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11377         * tracefile.c: Include "exec.h".
11378         * exec.h (exec_read_partial_read_only): Declare.
11379
11380 2014-02-23  Yao Qi  <yao@codesourcery.com>
11381
11382         * tracefile-tfile.c (tfile_has_all_memory): Remove.
11383         (tfile_has_memory): Remove.
11384         (init_tfile_ops): Don't set fields to_has_all_memory and
11385         to_has_memory of tfile_ops.
11386         * tracefile.c (tracefile_has_all_memory): New function.
11387         (tracefile_has_memory): New function.
11388         (init_tracefile_ops): Initialize fields to_has_all_memory and
11389         to_has_memory of 'ops'.
11390
11391 2014-02-23  Yao Qi  <yao@codesourcery.com>
11392
11393         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11394         (ctf_thread_alive, ctf_get_trace_status): Remove.
11395         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
11396         init_tracefile_ops.
11397         * tracefile-tfile.c (tfile_get_trace_status): Remove.
11398         (tfile_has_stack, tfile_has_registers): Remove.
11399         (tfile_thread_alive): Remove.
11400         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
11401         init_tracefile_ops.
11402         * tracefile.c (tracefile_has_stack): New function.
11403         (tracefile_has_registers): New function.
11404         (tracefile_thread_alive): New function.
11405         (tracefile_get_trace_status): New function.
11406         (init_tracefile_ops): New function.
11407         * tracefile.h (init_tracefile_ops): Declare.
11408
11409 2014-02-23  Yao Qi  <yao@codesourcery.com>
11410
11411         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11412         (O_LARGEFILE): Likewise.
11413         (tfile_ops): Likewise.
11414         (TRACE_HEADER_SIZE): Likewise.
11415         (trace_fd, trace_frames_offset, cur_offset): Likewise.
11416         (cur_data_size): Likewise.
11417         (tfile_read, tfile_open, tfile_interp_line): Likewise.
11418         (tfile_close, tfile_files_info): Likewise.
11419         (tfile_get_trace_status): Likewise.
11420         (tfile_get_tracepoint_status): Likewise.
11421         (tfile_get_traceframe_address): Likewise.
11422         (tfile_trace_find, match_blocktype): Likewise.
11423         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11424         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11425         (tfile_get_trace_state_variable_value): Likewise.
11426         (tfile_has_all_memory, tfile_has_memory): Likewise.
11427         (tfile_has_stack, tfile_has_registers): Likewise.
11428         (tfile_thread_alive, build_traceframe_info): Likewise.
11429         (tfile_traceframe_info, init_tfile_ops): Likewise.
11430         (_initialize_tracepoint): Don't call init_tfile_ops
11431         and add_target_with_completer.
11432         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11433         exec.h, completer.h and filenames.h.
11434         (_initialize_tracefile_tfile): New function.
11435
11436 2014-02-23  Yao Qi  <yao@codesourcery.com>
11437
11438         * Makefile.in (REMOTE_OBS): Append tracefile.o and
11439         tracefile-tfile.o.
11440         (HFILES_NO_SRCDIR): Add tracefile.h.
11441         * ctf.c: Include "tracefile.h".
11442         * tracefile.h: New file.
11443         * tracefile.c: New file
11444         * tracefile-tfile.c: New file.
11445         * tracepoint.c: Include "tracefile.h".
11446         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11447         (stop_reason_names): Add const.
11448         (trace_file_writer_xfree): Move it to tracefile.c.
11449         (trace_save, trace_save_command, trace_save_tfile): Likewise.
11450         (trace_save_ctf): Likewise.
11451         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11452         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11453         (tfile_write_header, tfile_write_regblock_type): Likewise.
11454         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11455         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11456         (tfile_write_raw_data, tfile_end): Likewise.
11457         (tfile_trace_file_writer_new): Likewise.
11458         (free_uploaded_tp): Make it extern.
11459         (free_uploaded_tsv): Make it extern.
11460         (_initialize_tracepoint): Move code to register command 'tsave'
11461         to tracefile.c.
11462         * tracepoint.h (stop_reason_names): Declare.
11463         (struct trace_frame_write_ops): Move it to tracefile.h.
11464         (struct trace_file_write_ops): Likewise.
11465         (struct trace_file_writer): Likewise.
11466         (free_uploaded_tsvs, free_uploaded_tps): Declare.
11467
11468 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
11469
11470         PR gdb/16594
11471         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11472         process name.
11473         (get_cores_used_by_process): New parameter num_cores, use it.
11474         (linux_xfer_osdata_processes): Pass num_cores to it.
11475         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11476         process name.
11477
11478 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
11479
11480         * target.c (memory_xfer_partial): Fix length arg in call to
11481         breakpoint_xfer_memory.
11482
11483 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
11484
11485         PR tdep/16397
11486         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11487         number comes after the + or - signs.  Adjust length of register
11488         name to be extracted.
11489
11490 2014-02-20  Tom Tromey  <tromey@redhat.com>
11491
11492         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11493         (ada_varobj_ops): Mark "extern".
11494
11495 2014-02-20  Tom Tromey  <tromey@redhat.com>
11496
11497         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11498
11499 2014-02-20  Doug Evans  <xdje42@gmail.com>
11500
11501         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11502         All callers updated.
11503         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11504         All callers updated.
11505         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11506         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11507
11508 2014-02-20  lin zuojian  <manjian2006@gmail.com>
11509             Joel Brobecker  <brobecker@adacore.com>
11510             Doug Evans  <xdje42@gmail.com>
11511
11512         PR symtab/16581
11513         * dwarf2read.c (struct die_info): New member in_process.
11514         (reset_die_in_process): New function.
11515         (process_die): Set it at the start, reset when returning.
11516         (inherit_abstract_dies): Only call process_die if origin_child_die
11517         not already being processed.
11518
11519 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11520
11521         * windows-nat.c (handle_unload_dll): Add function documentation.
11522         (do_initial_windows_stuff): Add comment explaining why we wait
11523         until after inferior initialization has finished before
11524         processing all DLLs.
11525
11526 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11527
11528         * windows-nat.c (get_module_name): Delete.
11529         (windows_get_exec_module_filename): New function, mostly
11530         inspired from get_module_name.
11531         (windows_pid_to_exec_file): Replace call to get_module_name
11532         by call to windows_get_exec_module_filename.
11533
11534 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11535
11536         * windows-nat.c (handle_load_dll): Rewrite this function's
11537         introductory comment.  Remove code using get_module_name
11538         to get the DLL's name.
11539
11540 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11541
11542         * windows-nat.c (get_windows_debug_event): Ignore
11543         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11544         if windows_initialization_done == 0.
11545         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11546         Adjust implementation to always load all DLLs.
11547         (do_initial_windows_stuff): Replace call to
11548         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11549
11550 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11551
11552         * windows-nat.c (_initialize_windows_nat): Deprecate the
11553         "dll-symbols" command.  Turn the "add-shared-symbol-files"
11554         and "assf" aliases into commands, and deprecate them as well.
11555         * NEWS: Add entry explaining that "dll-symbols" and its two
11556         aliases are now deprecated.
11557
11558 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11559
11560         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11561         new-line in debug string.  Remove trailing spaces.
11562
11563 2014-02-19  Stan Shebs  <stan@codesourcery.com>
11564
11565         * darwin-nat.c (darwin_xfer_partial): Fix return type.
11566
11567 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
11568
11569         * NEWS: Add entry for the new feature
11570         * python/py-value.c (valpy_binop): Call value_x_binop for struct
11571         and class values.
11572
11573 2014-02-19  Stan Shebs  <stan@codesourcery.com>
11574
11575         * MAINTAINERS: List Yao Qi as nios2 maintainer.
11576
11577 2014-02-19  Pedro Alves  <palves@redhat.com>
11578
11579         * common/ptid.h (struct ptid): Mention that process_stratum
11580         targets should prefer ptid.lwp.
11581
11582 2014-02-19  Pedro Alves  <palves@redhat.com>
11583
11584         * remote.c (remote_thread_alive, write_ptid, read_ptid)
11585         (read_ptid, remote_newthread_step, remote_threads_extra_info)
11586         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11587         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11588         store remote thread ids rather than ptid.tid.
11589         (_initialize_remote): Adjust.
11590
11591 2014-02-19  Tom Tromey  <tromey@redhat.com>
11592
11593         * target.c (target_get_unwinder): Rewrite.
11594         (target_get_tailcall_unwinder): Rewrite.
11595         * record-btrace.c (record_btrace_to_get_unwinder): New function.
11596         (record_btrace_to_get_tailcall_unwinder): New function.
11597         (init_record_btrace_ops): Update.
11598         * target.h (struct target_ops) <to_get_unwinder,
11599         to_get_tailcall_unwinder>: Now function pointers.  Use
11600         TARGET_DEFAULT_RETURN.
11601
11602 2014-02-19  Tom Tromey  <tromey@redhat.com>
11603
11604         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11605         argument.
11606         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11607
11608 2014-02-19  Tom Tromey  <tromey@redhat.com>
11609
11610         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11611         directly.
11612         * target-delegates.c: Rebuild.
11613         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11614         TARGET_DEFAULT_FUNC.
11615         * target.c (default_target_decr_pc_after_break): Rename from
11616         forward_target_decr_pc_after_break.  Simplify.
11617         (target_decr_pc_after_break): Rely on delegation.
11618
11619 2014-02-19  Tom Tromey  <tromey@redhat.com>
11620
11621         * target.c (update_current_target): Do not INHERIT to_doc or
11622         to_magic.  Do not de_fault to_open or to_close.
11623
11624 2014-02-19  Tom Tromey  <tromey@redhat.com>
11625
11626         * gcore.h (objfile_find_memory_regions): Declare.
11627         * gcore.c (objfile_find_memory_regions): No longer static.  Add
11628         "self" argument.
11629         (_initialize_gcore): Don't call exec_set_find_memory_regions.
11630         * exec.c: Include gcore.h.
11631         (exec_set_find_memory_regions): Remove.
11632         (exec_find_memory_regions): Remove.
11633         (exec_do_find_memory_regions): Remove.
11634         (init_exec_ops): Update.
11635         * defs.h (exec_set_find_memory_regions): Remove.
11636
11637 2014-02-19  Tom Tromey  <tromey@redhat.com>
11638
11639         * target-delegates.c: Rebuild.
11640         * target.h (struct target_ops) <to_extra_thread_info,
11641         to_thread_name, to_pid_to_exec_file, to_get_section_table,
11642         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11643         not 0, in TARGET_DEFAULT_RETURN.
11644
11645 2014-02-19  Tom Tromey  <tromey@redhat.com>
11646
11647         * target.c (complete_target_initialization): Remove casts.  Use
11648         return_zero_has_execution.
11649         (return_zero): Add "ignore" argument.
11650         (return_zero_has_execution): New function.
11651         (init_dummy_target): Remove casts.  Use
11652         return_zero_has_execution.
11653
11654 2014-02-19  Tom Tromey  <tromey@redhat.com>
11655
11656         * target.c (update_current_target): Update comments.  Do not
11657         INHERIT to_stratum.
11658
11659 2014-02-19  Tom Tromey  <tromey@redhat.com>
11660
11661         * arm-linux-nat.c (arm_linux_read_description): Delegate when
11662         needed.
11663         * corelow.c (core_read_description): Delegate when needed.
11664         * remote.c (remote_read_description): Delegate when needed.
11665         * target-delegates.c: Rebuild.
11666         * target.c (target_read_description): Rewrite.
11667         * target.h (struct target_ops) <to_read_description>: Update
11668         comment.  Use TARGET_DEFAULT_RETURN.
11669
11670 2014-02-19  Tom Tromey  <tromey@redhat.com>
11671
11672         * target-delegates.c: Rebuild.
11673         * target.c (update_current_target): Don't inherit or default
11674         to_can_run.
11675         (find_default_run_target): Check against delegate_can_run.
11676         * target.h (struct target_ops) <to_can_run>: Use
11677         TARGET_DEFAULT_RETURN.
11678
11679 2014-02-19  Tom Tromey  <tromey@redhat.com>
11680
11681         * target-delegates.c: Rebuild.
11682         * target.c (target_disconnect): Unconditionally delegate.
11683         * target.h (struct target_ops) <to_disconnect>: Use
11684         TARGET_DEFAULT_NORETURN.
11685
11686 2014-02-19  Tom Tromey  <tromey@redhat.com>
11687
11688         * record.c (record_stop): Unconditionally delegate.
11689         * target-delegates.c: Rebuild.
11690         * target.c (target_stop_recording): Unconditionally delegate.
11691         * target.h (struct target_ops) <to_stop_recording>: Use
11692         TARGET_DEFAULT_IGNORE.
11693
11694 2014-02-19  Tom Tromey  <tromey@redhat.com>
11695
11696         * target-delegates.c: Rebuild.
11697         * target.c (target_enable_btrace): Unconditionally delegate.
11698         * target.h (struct target_ops) <to_enable_btrace>: Use
11699         TARGET_DEFAULT_NORETURN.
11700
11701 2014-02-19  Tom Tromey  <tromey@redhat.com>
11702
11703         * target-delegates.c: Rebuild.
11704         * target.c (target_read_btrace): Unconditionally delegate.
11705         * target.h (struct target_ops) <to_read_btrace>: Use
11706         TARGET_DEFAULT_NORETURN.
11707
11708 2014-02-19  Tom Tromey  <tromey@redhat.com>
11709
11710         * target-delegates.c: Rebuild.
11711         * target.c (target_teardown_btrace): Unconditionally delegate.
11712         * target.h (struct target_ops) <to_teardown_btrace>: Use
11713         TARGET_DEFAULT_NORETURN.
11714
11715 2014-02-19  Tom Tromey  <tromey@redhat.com>
11716
11717         * target-delegates.c: Rebuild.
11718         * target.c (target_disable_btrace): Unconditionally delegate.
11719         * target.h (struct target_ops) <to_disable_btrace>: Use
11720         TARGET_DEFAULT_NORETURN.
11721
11722 2014-02-19  Tom Tromey  <tromey@redhat.com>
11723
11724         * target-delegates.c: Rebuild.
11725         * target.c (default_search_memory): New function.
11726         (simple_search_memory): Update comment.
11727         (target_search_memory): Unconditionally delegate.
11728         * target.h (struct target_ops) <to_search_memory>: Use
11729         TARGET_DEFAULT_FUNC.
11730
11731 2014-02-19  Tom Tromey  <tromey@redhat.com>
11732
11733         * auxv.c (default_auxv_parse): No longer static.
11734         (target_auxv_parse): Unconditionally delegate.
11735         * auxv.h (default_auxv_parse): Declare.
11736         * target-delegates.c: Rebuild.
11737         * target.c: Include auxv.h.
11738         * target.h (struct target_ops) <to_auxv_parse>: Use
11739         TARGET_DEFAULT_FUNC.
11740
11741 2014-02-19  Tom Tromey  <tromey@redhat.com>
11742
11743         * target-delegates.c: Rebuild.
11744         * target.c (target_memory_map): Unconditionally delegate.
11745         * target.h (struct target_ops) <to_memory_map>: Use
11746         TARGET_DEFAULT_RETURN.
11747
11748 2014-02-19  Tom Tromey  <tromey@redhat.com>
11749
11750         * target-delegates.c: Rebuild.
11751         * target.c (target_thread_alive): Unconditionally delegate.
11752         * target.h (struct target_ops) <to_thread_alive>: Use
11753         TARGET_DEFAULT_RETURN.
11754
11755 2014-02-19  Tom Tromey  <tromey@redhat.com>
11756
11757         * target-delegates.c: Rebuild.
11758         * target.c (target_save_record): Unconditionally delegate.
11759         * target.h (struct target_ops) <to_save_record>: Use
11760         TARGET_DEFAULT_NORETURN.
11761
11762 2014-02-19  Tom Tromey  <tromey@redhat.com>
11763
11764         * target-delegates.c: Rebuild.
11765         * target.c (target_delete_record): Unconditionally delegate.
11766         * target.h (struct target_ops) <to_delete_record>: Use
11767         TARGET_DEFAULT_NORETURN.
11768
11769 2014-02-19  Tom Tromey  <tromey@redhat.com>
11770
11771         * target-delegates.c: Rebuild.
11772         * target.c (target_record_is_replaying): Unconditionally
11773         delegate.
11774         * target.h (struct target_ops) <to_record_is_replaying>: Use
11775         TARGET_DEFAULT_RETURN.
11776
11777 2014-02-19  Tom Tromey  <tromey@redhat.com>
11778
11779         * target-delegates.c: Rebuild.
11780         * target.c (target_goto_record_begin): Unconditionally delegate.
11781         * target.h (struct target_ops) <to_goto_record_begin>: Use
11782         TARGET_DEFAULT_NORETURN.
11783
11784 2014-02-19  Tom Tromey  <tromey@redhat.com>
11785
11786         * target-delegates.c: Rebuild.
11787         * target.c (target_goto_record_end): Unconditionally delegate.
11788         * target.h (struct target_ops) <to_goto_record_end>: Use
11789         TARGET_DEFAULT_NORETURN.
11790
11791 2014-02-19  Tom Tromey  <tromey@redhat.com>
11792
11793         * target-delegates.c: Rebuild.
11794         * target.c (target_goto_record): Unconditionally delegate.
11795         * target.h (struct target_ops) <to_goto_record>: Use
11796         TARGET_DEFAULT_NORETURN.
11797
11798 2014-02-19  Tom Tromey  <tromey@redhat.com>
11799
11800         * target-delegates.c: Rebuild.
11801         * target.c (target_insn_history): Unconditionally delegate.
11802         * target.h (struct target_ops) <to_insn_history>: Use
11803         TARGET_DEFAULT_NORETURN.
11804
11805 2014-02-19  Tom Tromey  <tromey@redhat.com>
11806
11807         * target-delegates.c: Rebuild.
11808         * target.c (target_insn_history_from): Unconditionally delegate.
11809         * target.h (struct target_ops) <to_insn_history_from>: Use
11810         TARGET_DEFAULT_NORETURN.
11811
11812 2014-02-19  Tom Tromey  <tromey@redhat.com>
11813
11814         * target-delegates.c: Rebuild.
11815         * target.c (target_insn_history_range): Unconditionally delegate.
11816         * target.h (struct target_ops) <to_insn_history_range>: Use
11817         TARGET_DEFAULT_NORETURN.
11818
11819 2014-02-19  Tom Tromey  <tromey@redhat.com>
11820
11821         * target-delegates.c: Rebuild.
11822         * target.c (target_call_history): Unconditionally delegate.
11823         * target.h (struct target_ops) <to_call_history>: Use
11824         TARGET_DEFAULT_NORETURN.
11825
11826 2014-02-19  Tom Tromey  <tromey@redhat.com>
11827
11828         * target-delegates.c: Rebuild.
11829         * target.c (target_call_history_from): Unconditionally delegate.
11830         * target.h (struct target_ops) <to_call_history_from>: Use
11831         TARGET_DEFAULT_NORETURN.
11832
11833 2014-02-19  Tom Tromey  <tromey@redhat.com>
11834
11835         * target-delegates.c: Rebuild.
11836         * target.c (target_call_history_range): Unconditionally delegate.
11837         * target.h (struct target_ops) <to_call_history_range>: Use
11838         TARGET_DEFAULT_NORETURN.
11839
11840 2014-02-19  Tom Tromey  <tromey@redhat.com>
11841
11842         * target-delegates.c: Rebuild.
11843         * target.c (target_verify_memory): Unconditionally delegate.
11844         * target.h (struct target_ops) <to_verify_memory>: Use
11845         TARGET_DEFAULT_NORETURN.
11846
11847 2014-02-19  Tom Tromey  <tromey@redhat.com>
11848
11849         * target-delegates.c: Rebuild.
11850         * target.c (target_core_of_thread): Unconditionally delegate.
11851         * target.h (struct target_ops) <to_core_of_thread>: Use
11852         TARGET_DEFAULT_RETURN.
11853
11854 2014-02-19  Tom Tromey  <tromey@redhat.com>
11855
11856         * target-delegates.c: Rebuild.
11857         * target.c (target_flash_done): Unconditionally delegate.
11858         * target.h (struct target_ops) <to_flash_done>: Use
11859         TARGET_DEFAULT_NORETURN.
11860
11861 2014-02-19  Tom Tromey  <tromey@redhat.com>
11862
11863         * target-delegates.c: Rebuild.
11864         * target.c (target_flash_erase): Unconditionally delegate.
11865         * target.h (struct target_ops) <to_flash_erase>: Use
11866         TARGET_DEFAULT_NORETURN.
11867
11868 2014-02-19  Tom Tromey  <tromey@redhat.com>
11869
11870         * target-delegates.c: Rebuild.
11871         * target.c (target_get_section_table): Unconditionally delegate.
11872         * target.h (struct target_ops) <to_get_section_table>: Use
11873         TARGET_DEFAULT_RETURN.
11874
11875 2014-02-19  Tom Tromey  <tromey@redhat.com>
11876
11877         * target-delegates.c: Rebuild.
11878         * target.c (target_pid_to_str): Unconditionally delegate.
11879         (init_dummy_target): Don't initialize to_pid_to_str.
11880         (default_pid_to_str): Rename from dummy_pid_to_str.
11881         * target.h (struct target_ops) <to_pid_to_str>: Use
11882         TARGET_DEFAULT_FUNC.
11883
11884 2014-02-19  Tom Tromey  <tromey@redhat.com>
11885
11886         * target-delegates.c: Rebuild.
11887         * target.c (target_find_new_threads): Unconditionally delegate.
11888         * target.h (struct target_ops) <to_find_new_threads>: Use
11889         TARGET_DEFAULT_RETURN.
11890
11891 2014-02-19  Tom Tromey  <tromey@redhat.com>
11892
11893         * target-delegates.c: Rebuild.
11894         * target.c (target_program_signals): Unconditionally delegate.
11895         * target.h (struct target_ops) <to_program_signals>: Use
11896         TARGET_DEFAULT_IGNORE.
11897
11898 2014-02-19  Tom Tromey  <tromey@redhat.com>
11899
11900         * target-delegates.c: Rebuild.
11901         * target.c (target_pass_signals): Unconditionally delegate.
11902         * target.h (struct target_ops) <to_pass_signals>: Use
11903         TARGET_DEFAULT_IGNORE.
11904
11905 2014-02-19  Tom Tromey  <tromey@redhat.com>
11906
11907         * target-delegates.c: Rebuild.
11908         * target.c (default_mourn_inferior): New function.
11909         (target_mourn_inferior): Unconditionally delegate.
11910         * target.h (struct target_ops) <to_mourn_inferior>: Use
11911         TARGET_DEFAULT_FUNC.
11912
11913 2014-02-19  Tom Tromey  <tromey@redhat.com>
11914
11915         * target-delegates.c: Rebuild.
11916         * target.c (default_follow_fork): New function.
11917         (target_follow_fork): Unconditionally delegate.
11918         * target.h (struct target_ops) <to_follow_fork>: Use
11919         TARGET_DEFAULT_FUNC.
11920
11921 2014-02-19  Tom Tromey  <tromey@redhat.com>
11922
11923         * target-delegates.c: Rebuild.
11924         * target.c (target_kill): Unconditionally delegate.
11925         * target.h (struct target_ops) <to_kill>: Use
11926         TARGET_DEFAULT_NORETURN.
11927
11928 2014-02-19  Tom Tromey  <tromey@redhat.com>
11929
11930         * target-delegates.c: Rebuild.
11931         * target.c (target_masked_watch_num_registers): Unconditionally
11932         delegate.
11933         * target.h (struct target_ops) <to_masked_watch_num_registers>:
11934         Use TARGET_DEFAULT_RETURN.
11935
11936 2014-02-19  Tom Tromey  <tromey@redhat.com>
11937
11938         * target-delegates.c: Rebuild.
11939         * target.c (target_remove_mask_watchpoint): Unconditionally
11940         delegate.
11941         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11942         TARGET_DEFAULT_RETURN.
11943
11944 2014-02-19  Tom Tromey  <tromey@redhat.com>
11945
11946         * target-delegates.c: Rebuild.
11947         * target.c (target_insert_mask_watchpoint): Unconditionally
11948         delegate.
11949         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11950         TARGET_DEFAULT_RETURN.
11951
11952 2014-02-19  Tom Tromey  <tromey@redhat.com>
11953
11954         * target-delegates.c: Rebuild.
11955         * target.c (target_ranged_break_num_registers): Unconditionally
11956         delegate.
11957         * target.h (struct target_ops) <to_ranged_break_num_registers>:
11958         Use TARGET_DEFAULT_RETURN.
11959
11960 2014-02-19  Tom Tromey  <tromey@redhat.com>
11961
11962         * target-delegates.c: Rebuild.
11963         * target.c (target_fetch_registers): Unconditionally delegate.
11964         * target.h (struct target_ops) <to_fetch_registers>: Use
11965         TARGET_DEFAULT_NORETURN.
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_stop.
11972         * target.h (struct target_ops) <to_stop>: Use
11973         TARGET_DEFAULT_IGNORE.
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_can_run_breakpoint_commands.
11980         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11981         Use TARGET_DEFAULT_RETURN.
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_supports_evaluation_of_breakpoint_conditions.
11988         * target.h (struct target_ops)
11989         <to_supports_evaluation_of_breakpoint_conditions>: Use
11990         TARGET_DEFAULT_RETURN.
11991
11992 2014-02-19  Tom Tromey  <tromey@redhat.com>
11993
11994         * target-delegates.c: Rebuild.
11995         * target.c (update_current_target): Don't inherit or default
11996         to_augmented_libraries_svr4_read.
11997         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11998         Use TARGET_DEFAULT_RETURN.
11999
12000 2014-02-19  Tom Tromey  <tromey@redhat.com>
12001
12002         * target-delegates.c: Rebuild.
12003         * target.c (update_current_target): Don't inherit or default
12004         to_can_use_agent.
12005         * target.h (struct target_ops) <to_can_use_agent>: Use
12006         TARGET_DEFAULT_RETURN.
12007
12008 2014-02-19  Tom Tromey  <tromey@redhat.com>
12009
12010         * target-delegates.c: Rebuild.
12011         * target.c (update_current_target): Don't inherit or default
12012         to_use_agent.
12013         * target.h (struct target_ops) <to_use_agent>: Use
12014         TARGET_DEFAULT_NORETURN.
12015
12016 2014-02-19  Tom Tromey  <tromey@redhat.com>
12017
12018         * target-delegates.c: Rebuild.
12019         * target.c (update_current_target): Don't inherit or default
12020         to_traceframe_info.
12021         (return_null): Remove.
12022         * target.h (struct target_ops) <to_traceframe_info>: Use
12023         TARGET_DEFAULT_RETURN.
12024
12025 2014-02-19  Tom Tromey  <tromey@redhat.com>
12026
12027         * target-delegates.c: Rebuild.
12028         * target.c (update_current_target): Don't inherit or default
12029         to_static_tracepoint_markers_by_strid.
12030         * target.h (struct target_ops)
12031         <to_static_tracepoint_markers_by_strid>: Use
12032         TARGET_DEFAULT_NORETURN.
12033
12034 2014-02-19  Tom Tromey  <tromey@redhat.com>
12035
12036         * target-delegates.c: Rebuild.
12037         * target.c (update_current_target): Don't inherit or default
12038         to_static_tracepoint_marker_at.
12039         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12040         Use TARGET_DEFAULT_RETURN.
12041
12042 2014-02-19  Tom Tromey  <tromey@redhat.com>
12043
12044         * target-delegates.c: Rebuild.
12045         * target.c (update_current_target): Don't inherit or default
12046         to_set_permissions.
12047         * target.h (struct target_ops) <to_set_permissions>: Use
12048         TARGET_DEFAULT_IGNORE.
12049
12050 2014-02-19  Tom Tromey  <tromey@redhat.com>
12051
12052         * target-delegates.c: Rebuild.
12053         * target.c (update_current_target): Don't inherit or default
12054         to_get_tib_address.
12055         * target.h (struct target_ops) <to_get_tib_address>: Use
12056         TARGET_DEFAULT_NORETURN.
12057
12058 2014-02-19  Tom Tromey  <tromey@redhat.com>
12059
12060         * target-delegates.c: Rebuild.
12061         * target.c (update_current_target): Don't inherit or default
12062         to_set_trace_notes.
12063         * target.h (struct target_ops) <to_set_trace_notes>: Use
12064         TARGET_DEFAULT_RETURN.
12065
12066 2014-02-19  Tom Tromey  <tromey@redhat.com>
12067
12068         * target-delegates.c: Rebuild.
12069         * target.c (update_current_target): Don't initialize
12070         to_set_trace_buffer_size.
12071         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
12072         TARGET_DEFAULT_IGNORE.
12073
12074 2014-02-19  Tom Tromey  <tromey@redhat.com>
12075
12076         * target-delegates.c: Rebuild.
12077         * target.c (update_current_target): Don't inherit or default
12078         to_set_circular_trace_buffer.
12079         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
12080         TARGET_DEFAULT_IGNORE.
12081
12082 2014-02-19  Tom Tromey  <tromey@redhat.com>
12083
12084         * target-delegates.c: Rebuild.
12085         * target.c (update_current_target): Don't inherit or default
12086         to_set_disconnected_tracing.
12087         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
12088         TARGET_DEFAULT_IGNORE.
12089
12090 2014-02-19  Tom Tromey  <tromey@redhat.com>
12091
12092         * target-delegates.c: Rebuild.
12093         * target.c (update_current_target): Don't inherit or default
12094         to_get_min_fast_tracepoint_insn_len.
12095         (return_minus_one): Remove.
12096         * target.h (struct target_ops)
12097         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
12098
12099 2014-02-19  Tom Tromey  <tromey@redhat.com>
12100
12101         * target-delegates.c: Rebuild.
12102         * target.c (update_current_target): Don't inherit or default
12103         to_get_raw_trace_data.
12104         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
12105         TARGET_DEFAULT_NORETURN.
12106
12107 2014-02-19  Tom Tromey  <tromey@redhat.com>
12108
12109         * target-delegates.c: Rebuild.
12110         * target.c (update_current_target): Don't inherit or default
12111         to_upload_trace_state_variables.
12112         * target.h (struct target_ops) <to_upload_trace_state_variables>:
12113         Use TARGET_DEFAULT_RETURN.
12114
12115 2014-02-19  Tom Tromey  <tromey@redhat.com>
12116
12117         * target-delegates.c: Rebuild.
12118         * target.c (update_current_target): Don't inherit or default
12119         to_upload_tracepoints.
12120         * target.h (struct target_ops) <to_upload_tracepoints>: Use
12121         TARGET_DEFAULT_RETURN.
12122
12123 2014-02-19  Tom Tromey  <tromey@redhat.com>
12124
12125         * target-delegates.c: Rebuild.
12126         * target.c (update_current_target): Don't inherit or default
12127         to_save_trace_data.
12128         * target.h (struct target_ops) <to_save_trace_data>: Use
12129         TARGET_DEFAULT_NORETURN.
12130
12131 2014-02-19  Tom Tromey  <tromey@redhat.com>
12132
12133         * target-delegates.c: Rebuild.
12134         * target.c (update_current_target): Don't inherit or default
12135         to_get_trace_state_variable_value.
12136         * target.h (struct target_ops)
12137         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
12138
12139 2014-02-19  Tom Tromey  <tromey@redhat.com>
12140
12141         * target-delegates.c: Rebuild.
12142         * target.c (update_current_target): Don't inherit or default
12143         to_trace_find.
12144         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
12145
12146 2014-02-19  Tom Tromey  <tromey@redhat.com>
12147
12148         * target-delegates.c: Rebuild.
12149         * target.c (update_current_target): Don't inherit or default
12150         to_trace_stop.
12151         * target.h (struct target_ops) <to_trace_stop>: 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_tracepoint_status.
12159         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12160         TARGET_DEFAULT_NORETURN.
12161
12162 2014-02-19  Tom Tromey  <tromey@redhat.com>
12163
12164         * target-delegates.c: Rebuild.
12165         * target.c (update_current_target): Don't inherit or default
12166         to_get_trace_status.
12167         * target.h (struct target_ops) <to_get_trace_status>: Use
12168         TARGET_DEFAULT_RETURN.
12169
12170 2014-02-19  Tom Tromey  <tromey@redhat.com>
12171
12172         * target-delegates.c: Rebuild.
12173         * target.c (update_current_target): Don't inherit or default
12174         to_trace_start.
12175         * target.h (struct target_ops) <to_trace_start>: Use
12176         TARGET_DEFAULT_NORETURN.
12177
12178 2014-02-19  Tom Tromey  <tromey@redhat.com>
12179
12180         * target-delegates.c: Rebuild.
12181         * target.c (update_current_target): Don't inherit or default
12182         to_trace_set_readonly_regions.
12183         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12184         Use TARGET_DEFAULT_NORETURN.
12185
12186 2014-02-19  Tom Tromey  <tromey@redhat.com>
12187
12188         * target-delegates.c: Rebuild.
12189         * target.c (update_current_target): Don't inherit or default
12190         to_disable_tracepoint.
12191         * target.h (struct target_ops) <to_disable_tracepoint>: Use
12192         TARGET_DEFAULT_NORETURN.
12193
12194 2014-02-19  Tom Tromey  <tromey@redhat.com>
12195
12196         * target-delegates.c: Rebuild.
12197         * target.c (update_current_target): Don't inherit or default
12198         to_enable_tracepoint.
12199         * target.h (struct target_ops) <to_enable_tracepoint>: Use
12200         TARGET_DEFAULT_NORETURN.
12201
12202 2014-02-19  Tom Tromey  <tromey@redhat.com>
12203
12204         * target-delegates.c: Rebuild.
12205         * target.c (update_current_target): Don't inherit or default
12206         to_download_trace_state_variable.
12207         * target.h (struct target_ops) <to_download_trace_state_variable>:
12208         Use TARGET_DEFAULT_NORETURN.
12209
12210 2014-02-19  Tom Tromey  <tromey@redhat.com>
12211
12212         * target-delegates.c: Rebuild.
12213         * target.c (update_current_target): Don't inherit or default
12214         to_can_download_tracepoint.
12215         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12216         TARGET_DEFAULT_RETURN.
12217
12218 2014-02-19  Tom Tromey  <tromey@redhat.com>
12219
12220         * target-delegates.c: Rebuild.
12221         * target.c (update_current_target): Don't inherit or default
12222         to_download_tracepoint.
12223         * target.h (struct target_ops) <to_download_tracepoint>: Use
12224         TARGET_DEFAULT_NORETURN.
12225
12226 2014-02-19  Tom Tromey  <tromey@redhat.com>
12227
12228         * target-delegates.c: Rebuild.
12229         * target.c (update_current_target): Don't inherit or default
12230         to_trace_init.
12231         * target.h (struct target_ops) <to_trace_init>: Use
12232         TARGET_DEFAULT_RETURN.
12233
12234 2014-02-19  Tom Tromey  <tromey@redhat.com>
12235
12236         * target-delegates.c: Rebuild.
12237         * target.c (update_current_target): Don't inherit or default
12238         to_supports_string_tracing.
12239         * target.h (struct target_ops) <to_supports_string_tracing>: Use
12240         TARGET_DEFAULT_RETURN.
12241
12242 2014-02-19  Tom Tromey  <tromey@redhat.com>
12243
12244         * target-delegates.c: Rebuild.
12245         * target.c (update_current_target): Don't inherit or default
12246         to_supports_enable_disable_tracepoint.
12247         * target.h (struct target_ops)
12248         <to_supports_enable_disable_tracepoint>: Use
12249         TARGET_DEFAULT_RETURN.
12250
12251 2014-02-19  Tom Tromey  <tromey@redhat.com>
12252
12253         * target-delegates.c: Rebuild.
12254         * target.c (update_current_target): Don't inherit or default
12255         to_supports_multi_process.
12256         * target.h (struct target_ops) <to_supports_multi_process>: Use
12257         TARGET_DEFAULT_RETURN.
12258
12259 2014-02-19  Tom Tromey  <tromey@redhat.com>
12260
12261         * target-delegates.c: Rebuild.
12262         * target.c (update_current_target): Don't inherit or default
12263         to_get_ada_task_ptid.
12264         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12265         TARGET_DEFAULT_FUNC.
12266
12267 2014-02-19  Tom Tromey  <tromey@redhat.com>
12268
12269         * target-delegates.c: Rebuild.
12270         * target.c (update_current_target): Don't inherit or default
12271         to_thread_architecture.
12272         * target.h (struct target_ops) <to_thread_architecture>: Use
12273         TARGET_DEFAULT_FUNC.
12274
12275 2014-02-19  Tom Tromey  <tromey@redhat.com>
12276
12277         * target-delegates.c: Rebuild.
12278         * target.c (update_current_target): Don't inherit or default
12279         to_execution_direction.
12280         * target.h (struct target_ops) <to_execution_direction>: Use
12281         TARGET_DEFAULT_FUNC.
12282
12283 2014-02-19  Tom Tromey  <tromey@redhat.com>
12284
12285         * target-delegates.c: Rebuild.
12286         * target.c (update_current_target): Don't inherit or default
12287         to_can_execute_reverse.
12288         * target.h (struct target_ops) <to_can_execute_reverse>: Use
12289         TARGET_DEFAULT_RETURN.
12290         (target_can_execute_reverse): Unconditionally delegate.
12291
12292 2014-02-19  Tom Tromey  <tromey@redhat.com>
12293
12294         * target-delegates.c: Rebuild.
12295         * target.c (update_current_target): Don't inherit or default
12296         to_goto_bookmark.
12297         (dummy_goto_bookmark): Remove.
12298         (init_dummy_target): Don't inherit or default to_goto_bookmark.
12299         * target.h (struct target_ops) <to_goto_bookmark>: Use
12300         TARGET_DEFAULT_NORETURN.
12301
12302 2014-02-19  Tom Tromey  <tromey@redhat.com>
12303
12304         * target-delegates.c: Rebuild.
12305         * target.c (update_current_target): Don't inherit or default
12306         to_get_bookmark.
12307         (dummy_get_bookmark): Remove.
12308         (init_dummy_target): Don't inherit or default to_get_bookmark.
12309         * target.h (struct target_ops) <to_get_bookmark>: Use
12310         TARGET_DEFAULT_NORETURN
12311
12312 2014-02-19  Tom Tromey  <tromey@redhat.com>
12313
12314         * target-delegates.c: Rebuild.
12315         * target.c (update_current_target): Don't inherit or default
12316         to_make_corefile_notes.
12317         (init_dummy_target): Don't initialize to_make_corefile_notes.
12318         * target.h (struct target_ops) <to_make_corefile_notes>: Use
12319         TARGET_DEFAULT_FUNC.
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_find_memory_regions.
12326         (init_dummy_target): Don't initialize to_find_memory_regions.
12327         * target.h (struct target_ops) <to_find_memory_regions>: Use
12328         TARGET_DEFAULT_FUNC.
12329
12330 2014-02-19  Tom Tromey  <tromey@redhat.com>
12331
12332         * target-delegates.c: Rebuild.
12333         * target.c (update_current_target): Don't inherit or default
12334         to_log_command.
12335         * target.h (struct target_ops) <to_log_command>: Use
12336         TARGET_DEFAULT_IGNORE.
12337         (target_log_command): Unconditionally delegate.
12338
12339 2014-02-19  Tom Tromey  <tromey@redhat.com>
12340
12341         * target-delegates.c: Rebuild.
12342         * target.c (update_current_target): Don't inherit or default
12343         to_pid_to_exec_file.
12344         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12345         TARGET_DEFAULT_RETURN.
12346
12347 2014-02-19  Tom Tromey  <tromey@redhat.com>
12348
12349         * target-delegates.c: Rebuild.
12350         * target.c (update_current_target): Don't inherit or default
12351         to_thread_name.
12352         (target_thread_name): Unconditionally delegate.
12353         * target.h (struct target_ops) <to_thread_name>: Use
12354         TARGET_DEFAULT_RETURN.
12355
12356 2014-02-19  Tom Tromey  <tromey@redhat.com>
12357
12358         * target-delegates.c: Rebuild.
12359         * target.c (update_current_target): Don't inherit or default
12360         to_extra_thread_info.
12361         * target.h (struct target_ops) <to_extra_thread_info>: Use
12362         TARGET_DEFAULT_RETURN.
12363
12364 2014-02-19  Tom Tromey  <tromey@redhat.com>
12365
12366         * target-delegates.c: Rebuild.
12367         * target.c (update_current_target): Don't inherit or default
12368         to_has_exited.
12369         * target.h (struct target_ops) <to_has_exited>: Use
12370         TARGET_DEFAULT_RETURN..
12371
12372 2014-02-19  Tom Tromey  <tromey@redhat.com>
12373
12374         * target-delegates.c: Rebuild.
12375         * target.c (update_current_target): Don't inherit or default
12376         to_set_syscall_catchpoint.
12377         (return_one): Remove.
12378         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12379         TARGET_DEFAULT_RETURN.
12380
12381 2014-02-19  Tom Tromey  <tromey@redhat.com>
12382
12383         * target-delegates.c: Rebuild.
12384         * target.c (update_current_target): Don't inherit or default
12385         to_insert_exec_catchpoint.
12386         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12387         TARGET_DEFAULT_RETURN.
12388
12389 2014-01-08  Tom Tromey  <tromey@redhat.com>
12390
12391         * target-delegates.c: Rebuild.
12392         * target.c (update_current_target): Don't inherit or default
12393         to_insert_exec_catchpoint.
12394         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12395         TARGET_DEFAULT_RETURN.
12396
12397 2014-02-19  Tom Tromey  <tromey@redhat.com>
12398
12399         * target-delegates.c: Rebuild.
12400         * target.c (update_current_target): Don't inherit or default
12401         to_remove_vfork_catchpoint.
12402         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12403         TARGET_DEFAULT_RETURN.
12404
12405 2014-02-19  Tom Tromey  <tromey@redhat.com>
12406
12407         * target-delegates.c: Rebuild.
12408         * target.c (update_current_target): Don't inherit or default
12409         to_insert_vfork_catchpoint.
12410         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12411         TARGET_DEFAULT_RETURN.
12412
12413 2014-02-19  Tom Tromey  <tromey@redhat.com>
12414
12415         * target-delegates.c: Rebuild.
12416         * target.c (update_current_target): Don't inherit or default
12417         to_remove_fork_catchpoint.
12418         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12419         TARGET_DEFAULT_RETURN.
12420
12421 2014-02-19  Tom Tromey  <tromey@redhat.com>
12422
12423         * target-delegates.c: Rebuild.
12424         * target.c (update_current_target): Don't inherit or default
12425         to_insert_fork_catchpoint.
12426         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12427         TARGET_DEFAULT_RETURN.
12428
12429 2014-02-19  Tom Tromey  <tromey@redhat.com>
12430
12431         * target-delegates.c: Rebuild.
12432         * target.c (update_current_target): Don't inherit or default
12433         to_post_startup_inferior.
12434         * target.h (struct target_ops) <to_post_startup_inferior>: Use
12435         TARGET_DEFAULT_IGNORE.
12436
12437 2014-02-19  Tom Tromey  <tromey@redhat.com>
12438
12439         * target-delegates.c: Rebuild.
12440         * target.c (update_current_target): Don't inherit or default
12441         to_load.
12442         * target.h (struct target_ops) <to_load>: Use
12443         TARGET_DEFAULT_NORETURN.
12444
12445 2014-02-19  Tom Tromey  <tromey@redhat.com>
12446
12447         * target-delegates.c: Rebuild.
12448         * target.c (update_current_target): Don't inherit or default
12449         to_terminal_info.
12450         * target.h (struct target_ops) <to_terminal_info>: Use
12451         TARGET_DEFAULT_FUNC.
12452
12453 2014-02-19  Tom Tromey  <tromey@redhat.com>
12454
12455         * target-delegates.c: Rebuild.
12456         * target.c (update_current_target): Don't inherit or default
12457         to_terminal_save_ours.
12458         * target.h (struct target_ops) <to_terminal_save_ours>: Use
12459         TARGET_DEFAULT_IGNORE.
12460
12461 2014-02-19  Tom Tromey  <tromey@redhat.com>
12462
12463         * target-delegates.c: Rebuild.
12464         * target.c (update_current_target): Don't inherit or default
12465         to_terminal_ours.
12466         * target.h (struct target_ops) <to_terminal_ours>: Use
12467         TARGET_DEFAULT_IGNORE.
12468
12469 2014-02-19  Tom Tromey  <tromey@redhat.com>
12470
12471         * target-delegates.c: Rebuild.
12472         * target.c (update_current_target): Don't inherit or default
12473         to_terminal_ours_for_output.
12474         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12475         TARGET_DEFAULT_IGNORE.
12476
12477 2014-02-19  Tom Tromey  <tromey@redhat.com>
12478
12479         * target-delegates.c: Rebuild.
12480         * target.c (update_current_target): Don't inherit or default
12481         to_terminal_inferior.
12482         * target.h (struct target_ops) <to_terminal_inferior>: Use
12483         TARGET_DEFAULT_IGNORE.
12484
12485 2014-02-19  Tom Tromey  <tromey@redhat.com>
12486
12487         * target-delegates.c: Rebuild.
12488         * target.c (update_current_target): Don't inherit or default
12489         to_terminal_init.
12490         * target.h (struct target_ops) <to_terminal_init>: Use
12491         TARGET_DEFAULT_IGNORE.
12492
12493 2014-02-19  Tom Tromey  <tromey@redhat.com>
12494
12495         * target-delegates.c: Rebuild.
12496         * target.c (update_current_target): Don't inherit or default
12497         to_can_accel_watchpoint_condition.
12498         * target.h (struct target_ops)
12499         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12500
12501 2014-02-19  Tom Tromey  <tromey@redhat.com>
12502
12503         * target-delegates.c: Rebuild.
12504         * target.c (update_current_target): Don't inherit or default
12505         to_region_ok_for_hw_watchpoint.
12506         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12507         Use TARGET_DEFAULT_FUNC.
12508
12509 2014-02-19  Tom Tromey  <tromey@redhat.com>
12510
12511         * target-delegates.c: Rebuild.
12512         * target.c (update_current_target): Don't inherit or default
12513         to_watchpoint_addr_within_range.
12514         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12515         Use TARGET_DEFAULT_FUNC.
12516
12517 2014-02-19  Tom Tromey  <tromey@redhat.com>
12518
12519         * target-delegates.c: Rebuild.
12520         * target.c (update_current_target): Don't inherit or default
12521         to_remove_watchpoint.
12522         * target.h (struct target_ops) <to_remove_watchpoint>: Use
12523         TARGET_DEFAULT_NORETURN.
12524
12525 2014-02-19  Tom Tromey  <tromey@redhat.com>
12526
12527         * target-delegates.c: Rebuild.
12528         * target.c (update_current_target): Don't inherit or default
12529         to_insert_watchpoint.
12530         * target.h (struct target_ops) <to_insert_watchpoint>: Use
12531         TARGET_DEFAULT_RETURN.
12532
12533 2014-02-19  Tom Tromey  <tromey@redhat.com>
12534
12535         * target-delegates.c: Rebuild.
12536         * target.c (update_current_target): Don't inherit or default
12537         to_remove_hw_breakpoint.
12538         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12539         TARGET_DEFAULT_RETURN.
12540
12541 2014-02-19  Tom Tromey  <tromey@redhat.com>
12542
12543         * target-delegates.c: Rebuild.
12544         * target.c (update_current_target): Don't inherit or default
12545         to_insert_hw_breakpoint.
12546         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12547         TARGET_DEFAULT_RETURN.
12548
12549 2014-02-19  Tom Tromey  <tromey@redhat.com>
12550
12551         * target-delegates.c: Rebuild.
12552         * target.c (update_current_target): Don't inherit or default
12553         to_can_use_hw_breakpoint.
12554         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12555         TARGET_DEFAULT_RETURN.
12556
12557 2014-02-19  Tom Tromey  <tromey@redhat.com>
12558
12559         * target-delegates.c: Rebuild.
12560         * target.c (update_current_target): Don't inherit or default
12561         to_files_info.
12562         * target.h (struct target_ops) <to_files_info>: Use
12563         TARGET_DEFAULT_IGNORE.
12564
12565 2014-02-19  Tom Tromey  <tromey@redhat.com>
12566
12567         * target-delegates.c: Rebuild.
12568         * target.c (update_current_target): Don't inherit or default
12569         to_store.
12570         * target.h (struct target_ops) <to_store>: Use
12571         TARGET_DEFAULT_NORETURN.
12572
12573 2014-02-19  Tom Tromey  <tromey@redhat.com>
12574
12575         * target-delegates.c: Rebuild.
12576         * target.c (update_current_target): Don't inherit or default
12577         to_post_attach.
12578         * target.h (struct target_ops) <to_post_attach>: Use
12579         TARGET_DEFAULT_IGNORE.
12580
12581 2014-02-19  Tom Tromey  <tromey@redhat.com>
12582
12583         * target-delegates.c: Rebuild.
12584         * target.c (update_current_target): Don't inherit or default
12585         to_rcmd.
12586         (default_rcmd): New function.
12587         (do_monitor_command): Unconditionally delegate.
12588         * target.h (struct target_ops) <to_rmcd>: Use
12589         TARGET_DEFAULT_FUNC.
12590
12591 2014-02-19  Tom Tromey  <tromey@redhat.com>
12592
12593         * target-delegates.c: Rebuild.
12594         * target.c (init_dummy_target): Don't initialize to_attach.
12595         (target_attach): Unconditionally delegate.
12596         * target.h (struct target_ops) <to_attach>: Use
12597         TARGET_DEFAULT_FUNC.
12598
12599 2014-02-19  Tom Tromey  <tromey@redhat.com>
12600
12601         * target-delegates.c: Rebuild.
12602         * target.c (target_detach): Unconditionally delegate.
12603         (init_dummy_target): Don't initialize to_detach.
12604         * target.h (struct target_ops) <to_detach>: Use
12605         TARGET_DEFAULT_IGNORE.
12606
12607 2014-02-19  Tom Tromey  <tromey@redhat.com>
12608
12609         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12610         Add argument.
12611         (target_augmented_libraries_svr4_read): Add argument.
12612         * target.c (update_current_target): Update.
12613         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12614         argument.
12615
12616 2014-02-19  Tom Tromey  <tromey@redhat.com>
12617
12618         * target.h (struct target_ops) <to_call_history_range>: Add
12619         argument.
12620         * target.c (target_call_history_range): Add argument.
12621         * record-btrace.c (record_btrace_call_history_range): Add 'self'
12622         argument.
12623         (record_btrace_call_history_from): Update.
12624
12625 2014-02-19  Tom Tromey  <tromey@redhat.com>
12626
12627         * target.h (struct target_ops) <to_call_history_from>: Add
12628         argument.
12629         * target.c (target_call_history_from): Add argument.
12630         * record-btrace.c (record_btrace_call_history_from): Add 'self'
12631         argument.
12632
12633 2014-02-19  Tom Tromey  <tromey@redhat.com>
12634
12635         * target.h (struct target_ops) <to_call_history>: Add argument.
12636         * target.c (target_call_history): Add argument.
12637         * record-btrace.c (record_btrace_call_history): Add 'self'
12638         argument.
12639
12640 2014-02-19  Tom Tromey  <tromey@redhat.com>
12641
12642         * target.h (struct target_ops) <to_insn_history_range>: Add
12643         argument.
12644         * target.c (target_insn_history_range): Add argument.
12645         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12646         argument.
12647         (record_btrace_insn_history_from): Update.
12648
12649 2014-02-19  Tom Tromey  <tromey@redhat.com>
12650
12651         * target.h (struct target_ops) <to_insn_history_from>: Add
12652         argument.
12653         * target.c (target_insn_history_from): Add argument.
12654         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12655         argument.
12656
12657 2014-02-19  Tom Tromey  <tromey@redhat.com>
12658
12659         * target.h (struct target_ops) <to_insn_history>: Add argument.
12660         * target.c (target_insn_history): Add argument.
12661         * record-btrace.c (record_btrace_insn_history): Add 'self'
12662         argument.
12663
12664 2014-02-19  Tom Tromey  <tromey@redhat.com>
12665
12666         * target.h (struct target_ops) <to_goto_record>: Add argument.
12667         * target.c (target_goto_record): Add argument.
12668         * record-full.c (record_full_goto): Add 'self' argument.
12669         * record-btrace.c (record_btrace_goto): Add 'self' argument.
12670
12671 2014-02-19  Tom Tromey  <tromey@redhat.com>
12672
12673         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12674         * target.c (target_goto_record_end): Add argument.
12675         * record-full.c (record_full_goto_end): Add 'self' argument.
12676         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12677
12678 2014-02-19  Tom Tromey  <tromey@redhat.com>
12679
12680         * target.h (struct target_ops) <to_goto_record_begin>: Add
12681         argument.
12682         * target.c (target_goto_record_begin): Add argument.
12683         * record-full.c (record_full_goto_begin): Add 'self' argument.
12684         * record-btrace.c (record_btrace_goto_begin): Add 'self'
12685         argument.
12686
12687 2014-02-19  Tom Tromey  <tromey@redhat.com>
12688
12689         * target.h (struct target_ops) <to_record_is_replaying>: Add
12690         argument.
12691         * target.c (target_record_is_replaying): Add argument.
12692         * record-full.c (record_full_is_replaying): Add 'self' argument.
12693         * record-btrace.c (record_btrace_is_replaying): Add 'self'
12694         argument.
12695         (record_btrace_xfer_partial, record_btrace_store_registers)
12696         (record_btrace_prepare_to_store, record_btrace_resume)
12697         (record_btrace_wait, record_btrace_decr_pc_after_break)
12698         (record_btrace_find_new_threads, record_btrace_thread_alive):
12699         Update.
12700
12701 2014-02-19  Tom Tromey  <tromey@redhat.com>
12702
12703         * target.h (struct target_ops) <to_delete_record>: Add argument.
12704         * target.c (target_delete_record): Add argument.
12705         * record-full.c (record_full_delete): Add 'self' argument.
12706
12707 2014-02-19  Tom Tromey  <tromey@redhat.com>
12708
12709         * target.h (struct target_ops) <to_save_record>: Add argument.
12710         * target.c (target_save_record): Add argument.
12711         * record-full.c (record_full_save): Add 'self' argument.
12712         (record_full_save): Add 'self' argument.
12713
12714 2014-02-19  Tom Tromey  <tromey@redhat.com>
12715
12716         * target.h (struct target_ops) <to_info_record>: Add argument.
12717         * target.c (target_info_record): Add argument.
12718         * record.c (info_record_command): Add argument.
12719         * record-full.c (record_full_info): Add 'self' argument.
12720         * record-btrace.c (record_btrace_info): Add 'self' argument.
12721
12722 2014-02-19  Tom Tromey  <tromey@redhat.com>
12723
12724         * target.h (struct target_ops) <to_stop_recording>: Add argument.
12725         * target.c (target_stop_recording): Add argument.
12726         * record.c (record_stop): Add argument.
12727         * record-btrace.c (record_btrace_stop_recording): Add 'self'
12728         argument.
12729
12730 2014-02-19  Tom Tromey  <tromey@redhat.com>
12731
12732         * target.h (struct target_ops) <to_read_btrace>: Add argument.
12733         * target.c (struct target_ops) <to_read_btrace>: Add argument.
12734         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12735         argument.
12736         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12737         (_initialize_amd64_linux_nat): Use it.
12738         * i386-linux-nat.c (i386_linux_read_btrace): New function.
12739         (_initialize_i386_linux_nat): Use it.
12740
12741 2014-02-19  Tom Tromey  <tromey@redhat.com>
12742
12743         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12744         * target.c (target_teardown_btrace): Add argument.
12745         * remote.c (remote_teardown_btrace): Add 'self' argument.
12746         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12747         argument.
12748         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12749         argument.
12750
12751 2014-02-19  Tom Tromey  <tromey@redhat.com>
12752
12753         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12754         * target.c (target_disable_btrace): Add argument.
12755         * remote.c (remote_disable_btrace): Add 'self' argument.
12756         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12757         argument.
12758         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12759         argument.
12760
12761 2014-02-19  Tom Tromey  <tromey@redhat.com>
12762
12763         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12764         * target.c (target_enable_btrace): Add argument.
12765         * remote.c (remote_enable_btrace): Add 'self' argument.
12766         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12767         argument.
12768         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12769         argument.
12770
12771 2014-02-19  Tom Tromey  <tromey@redhat.com>
12772
12773         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12774         (target_can_use_agent): Add argument.
12775         * target.c (update_current_target): Update.
12776         * remote.c (remote_can_use_agent): Add 'self' argument.
12777         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12778
12779 2014-02-19  Tom Tromey  <tromey@redhat.com>
12780
12781         * target.h (struct target_ops) <to_use_agent>: Add argument.
12782         (target_use_agent): Add argument.
12783         * target.c (update_current_target): Update.
12784         * remote.c (remote_use_agent): Add 'self' argument.
12785         * inf-child.c (inf_child_use_agent): Add 'self' argument.
12786
12787 2014-02-19  Tom Tromey  <tromey@redhat.com>
12788
12789         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12790         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12791         (target_traceframe_info): Add argument.
12792         * target.c (update_current_target): Update.
12793         * remote.c (remote_traceframe_info): Add 'self' argument.
12794         * ctf.c (ctf_traceframe_info): Add 'self' argument.
12795
12796 2014-02-19  Tom Tromey  <tromey@redhat.com>
12797
12798         * target.h (target_static_tracepoint_markers_by_strid): Add
12799         argument.
12800         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12801         'self' argument.
12802         * target.c (update_current_target): Update.
12803         * remote.c (struct target_ops)
12804         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12805         * linux-nat.c (struct target_ops)
12806         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12807
12808 2014-02-19  Tom Tromey  <tromey@redhat.com>
12809
12810         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12811         Add argument.
12812         (target_static_tracepoint_marker_at): Add argument.
12813         * target.c (update_current_target): Update.
12814         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12815         argument.
12816
12817 2014-02-19  Tom Tromey  <tromey@redhat.com>
12818
12819         * target.h (struct target_ops) <to_set_permissions>: Add argument.
12820         (target_set_permissions): Add argument.
12821         * target.c (update_current_target): Update.
12822         * remote.c (remote_set_permissions): Add 'self' argument.
12823         (remote_start_remote): Update.
12824
12825 2014-02-19  Tom Tromey  <tromey@redhat.com>
12826
12827         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12828         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12829         (target_get_tib_address): Add argument.
12830         * target.c (update_current_target): Update.
12831         * remote.c (remote_get_tib_address): Add 'self' argument.
12832
12833 2014-02-19  Tom Tromey  <tromey@redhat.com>
12834
12835         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12836         (target_set_trace_notes): Add argument.
12837         * target.c (update_current_target): Update.
12838         * remote.c (remote_set_trace_notes): Add 'self' argument.
12839
12840 2014-02-19  Tom Tromey  <tromey@redhat.com>
12841
12842         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12843         argument.
12844         (target_set_trace_buffer_size): Add argument.
12845         * target.c (update_current_target): Update.
12846         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12847
12848 2014-02-19  Tom Tromey  <tromey@redhat.com>
12849
12850         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12851         argument.
12852         (target_set_circular_trace_buffer): Add argument.
12853         * target.c (update_current_target): Update.
12854         * remote.c (remote_set_circular_trace_buffer): Add 'self'
12855         argument.
12856
12857 2014-02-19  Tom Tromey  <tromey@redhat.com>
12858
12859         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12860         argument.
12861         (target_set_disconnected_tracing): Add argument.
12862         * target.c (update_current_target): Update.
12863         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12864
12865 2014-02-19  Tom Tromey  <tromey@redhat.com>
12866
12867         * target.h (struct target_ops)
12868         <to_get_min_fast_tracepoint_insn_len>: Add argument.
12869         (target_get_min_fast_tracepoint_insn_len): Add argument.
12870         * target.c (update_current_target): Update.
12871         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12872         argument.
12873
12874 2014-02-19  Tom Tromey  <tromey@redhat.com>
12875
12876         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12877         argument.
12878         (target_get_raw_trace_data): Add argument.
12879         * target.c (update_current_target): Update.
12880         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12881
12882 2014-02-19  Tom Tromey  <tromey@redhat.com>
12883
12884         * target.h (struct target_ops) <to_upload_trace_state_variables>:
12885         Add argument.
12886         (target_upload_trace_state_variables): Add argument.
12887         * target.c (update_current_target): Update.
12888         * remote.c (remote_upload_trace_state_variables): Add 'self'
12889         argument.
12890         (remote_start_remote): Update.
12891
12892 2014-02-19  Tom Tromey  <tromey@redhat.com>
12893
12894         * target.h (struct target_ops) <to_upload_tracepoints>: Add
12895         argument.
12896         (target_upload_tracepoints): Add argument.
12897         * target.c (update_current_target): Update.
12898         * remote.c (remote_upload_tracepoints): Add 'self' argument.
12899         (remote_start_remote): Update.
12900
12901 2014-02-19  Tom Tromey  <tromey@redhat.com>
12902
12903         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12904         (target_save_trace_data): Add argument.
12905         * target.c (update_current_target): Update.
12906         * remote.c (remote_save_trace_data): Add 'self' argument.
12907
12908 2014-02-19  Tom Tromey  <tromey@redhat.com>
12909
12910         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12911         argument.
12912         * target.h (struct target_ops)
12913         <to_get_trace_state_variable_value>: Add argument.
12914         (target_get_trace_state_variable_value): Add argument.
12915         * target.c (update_current_target): Update.
12916         * remote.c (remote_get_trace_state_variable_value): Add 'self'
12917         argument.
12918         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12919
12920 2014-02-19  Tom Tromey  <tromey@redhat.com>
12921
12922         * tracepoint.c (tfile_trace_find): Add 'self' argument.
12923         * target.h (struct target_ops) <to_trace_find>: Add argument.
12924         (target_trace_find): Add argument.
12925         * target.c (update_current_target): Update.
12926         * remote.c (remote_trace_find): Add 'self' argument.
12927         * ctf.c (ctf_trace_find): Add 'self' argument.
12928
12929 2014-02-19  Tom Tromey  <tromey@redhat.com>
12930
12931         * target.h (struct target_ops) <to_trace_stop>: Add argument.
12932         (target_trace_stop): Add argument.
12933         * target.c (update_current_target): Update.
12934         * remote.c (remote_trace_stop): Add 'self' argument.
12935
12936 2014-02-19  Tom Tromey  <tromey@redhat.com>
12937
12938         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12939         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12940         argument.
12941         (target_get_tracepoint_status): Add argument.
12942         * target.c (update_current_target): Update.
12943         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12944
12945 2014-02-19  Tom Tromey  <tromey@redhat.com>
12946
12947         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12948         * target.h (struct target_ops) <to_get_trace_status>: Add
12949         argument.
12950         (target_get_trace_status): Add argument.
12951         * target.c (update_current_target): Update.
12952         * remote.c (remote_get_trace_status): Add 'self' argument.
12953         (remote_start_remote, remote_can_download_tracepoint): Update.
12954         * ctf.c (ctf_get_trace_status): Add 'self' argument.
12955
12956 2014-02-19  Tom Tromey  <tromey@redhat.com>
12957
12958         * target.h (struct target_ops) <to_trace_start>: Add argument.
12959         (target_trace_start): Add argument.
12960         * target.c (update_current_target): Update.
12961         * remote.c (remote_trace_start): Add 'self' argument.
12962
12963 2014-02-19  Tom Tromey  <tromey@redhat.com>
12964
12965         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12966         Add argument.
12967         (target_trace_set_readonly_regions): Add argument.
12968         * target.c (update_current_target): Update.
12969         * remote.c (remote_trace_set_readonly_regions): Add 'self'
12970         argument.
12971
12972 2014-02-19  Tom Tromey  <tromey@redhat.com>
12973
12974         * target.h (struct target_ops) <to_disable_tracepoint>: Add
12975         argument.
12976         (target_disable_tracepoint): Add argument.
12977         * target.c (update_current_target): Update.
12978         * remote.c (remote_disable_tracepoint): Add 'self' argument.
12979
12980 2014-02-19  Tom Tromey  <tromey@redhat.com>
12981
12982         * target.h (struct target_ops) <to_enable_tracepoint>: Add
12983         argument.
12984         (target_enable_tracepoint): Add argument.
12985         * target.c (update_current_target): Update.
12986         * remote.c (remote_enable_tracepoint): Add 'self' argument.
12987
12988 2014-02-19  Tom Tromey  <tromey@redhat.com>
12989
12990         * target.h (struct target_ops) <to_download_trace_state_variable>:
12991         Add argument.
12992         (target_download_trace_state_variable): Add argument.
12993         * target.c (update_current_target): Update.
12994         * remote.c (remote_download_trace_state_variable): Add 'self'
12995         argument.
12996
12997 2014-02-19  Tom Tromey  <tromey@redhat.com>
12998
12999         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
13000         argument.
13001         (target_can_download_tracepoint): Add argument.
13002         * target.c (update_current_target): Update.
13003         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
13004
13005 2014-02-19  Tom Tromey  <tromey@redhat.com>
13006
13007         * target.h (struct target_ops) <to_download_tracepoint>: Add
13008         argument.
13009         (target_download_tracepoint): Add argument.
13010         * target.c (update_current_target): Update.
13011         * remote.c (remote_download_tracepoint): Add 'self' argument.
13012
13013 2014-02-19  Tom Tromey  <tromey@redhat.com>
13014
13015         * target.h (struct target_ops) <to_trace_init>: Add argument.
13016         (target_trace_init): Add argument.
13017         * target.c (update_current_target): Update.
13018         * remote.c (remote_trace_init): Add 'self' argument.
13019
13020 2014-02-19  Tom Tromey  <tromey@redhat.com>
13021
13022         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
13023         * target.c (target_fileio_readlink): Add argument.
13024         * remote.c (remote_hostio_readlink): Add 'self' argument.
13025         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
13026
13027 2014-02-19  Tom Tromey  <tromey@redhat.com>
13028
13029         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
13030         * target.c (target_fileio_unlink): Add argument.
13031         * remote.c (remote_hostio_unlink): Add 'self' argument.
13032         (remote_file_delete): Update.
13033         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
13034
13035 2014-02-19  Tom Tromey  <tromey@redhat.com>
13036
13037         * target.h (struct target_ops) <to_fileio_close>: Add argument.
13038         * target.c (target_fileio_close): Add argument.
13039         * remote.c (remote_hostio_close): Add 'self' argument.
13040         (remote_hostio_close_cleanup): Update.
13041         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
13042         Update.
13043         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
13044
13045 2014-02-19  Tom Tromey  <tromey@redhat.com>
13046
13047         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
13048         * target.c (target_fileio_pread): Add argument.
13049         * remote.c (remote_hostio_pread): Add 'self' argument.
13050         (remote_bfd_iovec_pread, remote_file_get): Update.
13051         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
13052
13053 2014-02-19  Tom Tromey  <tromey@redhat.com>
13054
13055         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
13056         * target.c (target_fileio_pwrite): Add argument.
13057         * remote.c (remote_hostio_pwrite): Add 'self' argument.
13058         (remote_file_put): Update.
13059         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
13060
13061 2014-02-19  Tom Tromey  <tromey@redhat.com>
13062
13063         * target.h (struct target_ops) <to_fileio_open>: Add argument.
13064         * target.c (target_fileio_open): Add argument.
13065         * remote.c (remote_hostio_open): Add 'self' argument.
13066         (remote_bfd_iovec_open): Add 'self' argument.
13067         (remote_file_put): Add 'self' argument.
13068         (remote_file_get): Add 'self' argument.
13069         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
13070
13071 2014-02-19  Tom Tromey  <tromey@redhat.com>
13072
13073         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
13074         Add argument.
13075         (target_can_run_breakpoint_commands): Add argument.
13076         * target.c (update_current_target): Update.
13077         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
13078         argument.
13079         (remote_insert_breakpoint): Add 'self' argument.
13080         (remote_insert_hw_breakpoint): Add 'self' argument.
13081         (remote_can_run_breakpoint_commands): Add 'self' argument.
13082
13083 2014-02-19  Tom Tromey  <tromey@redhat.com>
13084
13085         * target.h (struct target_ops)
13086         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
13087         (target_supports_evaluation_of_breakpoint_conditions): Add
13088         argument.
13089         * target.c (update_current_target): Update.
13090         * remote.c (remote_supports_cond_breakpoints): Add 'self'
13091         argument.
13092         (remote_insert_breakpoint): Add 'self' argument.
13093         (remote_insert_hw_breakpoint): Add 'self' argument.
13094         (remote_supports_cond_breakpoints): Add 'self' argument.
13095
13096 2014-02-19  Tom Tromey  <tromey@redhat.com>
13097
13098         * target.h (struct target_ops) <to_supports_string_tracing>: Add
13099         argument.
13100         (target_supports_string_tracing): Add argument.
13101         * target.c (update_current_target): Update.
13102         * remote.c (remote_supports_string_tracing): Add 'self' argument.
13103
13104 2014-02-19  Tom Tromey  <tromey@redhat.com>
13105
13106         * target.h (struct target_ops)
13107         <to_supports_disable_randomization>: Add argument.
13108         * target.c (find_default_supports_disable_randomization): Add
13109         argument.
13110         (target_supports_disable_randomization): Add argument.
13111         (find_default_supports_disable_randomization): Add 'self'
13112         argument.
13113         * remote.c (extended_remote_supports_disable_randomization): Add
13114         'self' argument.
13115         (remote_supports_disable_randomization): Add 'self' argument.
13116         (extended_remote_create_inferior): Update.
13117         * linux-nat.c (linux_nat_supports_disable_randomization): Add
13118         'self' argument.
13119
13120 2014-02-19  Tom Tromey  <tromey@redhat.com>
13121
13122         * target.h (struct target_ops)
13123         <to_supports_enable_disable_tracepoint>: Add argument.
13124         (target_supports_enable_disable_tracepoint): Add argument.
13125         * target.c (update_current_target): Update.
13126         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
13127         argument.
13128
13129 2014-02-19  Tom Tromey  <tromey@redhat.com>
13130
13131         * target.h (struct target_ops) <to_supports_multi_process>: Add
13132         argument.
13133         (target_supports_multi_process): Add argument.
13134         * target.c (update_current_target): Update.
13135         * remote.c (remote_supports_multi_process): Add 'self' argument.
13136         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
13137         argument.
13138         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
13139         argument.
13140
13141 2014-02-19  Tom Tromey  <tromey@redhat.com>
13142
13143         * target.h (struct target_ops) <to_execution_direction>: Add
13144         argument.
13145         (target_execution_direction): Add argument.
13146         * target.c (default_execution_direction): Add 'self' argument.
13147         * record-full.c (record_full_execution_direction): Add 'self'
13148         argument.
13149
13150 2014-02-19  Tom Tromey  <tromey@redhat.com>
13151
13152         * target.h (struct target_ops) <to_can_execute_reverse>: Add
13153         argument.
13154         (target_can_execute_reverse): Add argument.
13155         * remote.c (remote_can_execute_reverse): Add 'self' argument.
13156         * record-full.c (record_full_can_execute_reverse): Add 'self'
13157         argument.
13158         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13159         argument.
13160
13161 2014-02-19  Tom Tromey  <tromey@redhat.com>
13162
13163         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13164         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13165         argument.
13166         (target_get_ada_task_ptid): Add argument.
13167         * target.c (update_current_target): Update.
13168         (default_get_ada_task_ptid): Add 'self' argument.
13169         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13170         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13171         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13172         argument.
13173         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13174         argument.
13175         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13176         argument.
13177         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13178         argument.
13179         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13180         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13181         argument.
13182
13183 2014-02-19  Tom Tromey  <tromey@redhat.com>
13184
13185         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13186         (target_goto_bookmark): Add argument.
13187         * target.c (dummy_goto_bookmark): Add 'self' argument.
13188         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13189
13190 2014-02-19  Tom Tromey  <tromey@redhat.com>
13191
13192         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13193         (target_get_bookmark): Add argument.
13194         * target.c (dummy_get_bookmark): Add 'self' argument.
13195         * record-full.c (record_full_get_bookmark): Add 'self' argument.
13196
13197 2014-02-19  Tom Tromey  <tromey@redhat.com>
13198
13199         * target.h (struct target_ops) <to_make_corefile_notes>: Add
13200         argument.
13201         (target_make_corefile_notes): Add argument.
13202         * target.c (dummy_make_corefile_notes): Add 'self' argument.
13203         * procfs.c (procfs_make_note_section): Add 'self' argument.
13204         (procfs_make_note_section): Add 'self' argument.
13205         (procfs_make_note_section): Add 'self' argument.
13206         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13207         argument.
13208         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13209         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13210         * exec.c (exec_make_note_section): Add 'self' argument.
13211         (exec_make_note_section): Add 'self' argument.
13212
13213 2014-02-19  Tom Tromey  <tromey@redhat.com>
13214
13215         * target.h (struct target_ops) <to_find_memory_regions>: Add
13216         argument.
13217         (target_find_memory_regions): Add argument.
13218         * target.c (dummy_find_memory_regions): Add 'self' argument.
13219         * procfs.c (proc_find_memory_regions): Add 'self' argument.
13220         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13221         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13222         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13223         * exec. (exec_do_find_memory_regions): New global.
13224         (exec_set_find_memory_regions): Rewrite.
13225         (exec_find_memory_regions): New function.
13226         (init_exec_ops): Use exec_find_memory_regions.
13227
13228 2014-02-19  Tom Tromey  <tromey@redhat.com>
13229
13230         * target.h (struct target_ops) <to_supports_non_stop>: Add
13231         argument.
13232         * target.c (find_default_supports_non_stop): Add argument.
13233         (target_supports_non_stop): Add argument.
13234         (find_default_supports_non_stop): Add 'self' argument.
13235         * remote.c (remote_supports_non_stop): Add 'self' argument.
13236         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13237
13238 2014-02-19  Tom Tromey  <tromey@redhat.com>
13239
13240         * target.h (struct target_ops) <to_log_command>: Add argument.
13241         (target_log_command): Add argument.
13242         * serial.h (serial_log_command): Add 'self' argument.
13243         * serial.c (serial_log_command): Add 'self' argument.
13244
13245 2014-02-19  Tom Tromey  <tromey@redhat.com>
13246
13247         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13248         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13249         argument.
13250         (target_pid_to_exec_file): Add argument.
13251         * target.c (debug_to_pid_to_exec_file): Add argument.
13252         (update_current_target): Update.
13253         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13254         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13255         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13256         (linux_handle_extended_wait): Update.
13257         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13258         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13259         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13260         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13261
13262 2014-02-19  Tom Tromey  <tromey@redhat.com>
13263
13264         * target.h (struct target_ops) <to_rcmd>: Add argument.
13265         (target_rcmd): Add argument.
13266         * target.c (debug_to_rcmd): Add argument.
13267         (update_current_target, do_monitor_command): Update.
13268         * remote.c (remote_rcmd): Add 'self' argument.
13269         * monitor.c (monitor_rcmd): Add 'self' argument.
13270
13271 2014-02-19  Tom Tromey  <tromey@redhat.com>
13272
13273         * windows-nat.c (windows_stop): Add 'self' argument.
13274         * target.h (struct target_ops) <to_stop>: Add argument.
13275         * target.c (target_stop): Add argument.
13276         (debug_to_stop): Add argument.
13277         (update_current_target): Update.
13278         * remote.c (remote_stop): Add 'self' argument.
13279         * remote-sim.c (gdbsim_stop): Add 'self' argument.
13280         (gdbsim_cntrl_c): Update.
13281         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13282         * procfs.c (procfs_stop): Add 'self' argument.
13283         * nto-procfs.c (procfs_stop): Add 'self' argument.
13284         * monitor.c (monitor_stop): Add 'self' argument.
13285         (monitor_open): Update.
13286         * linux-nat.c (linux_nat_stop): Add argument.
13287         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13288         * gnu-nat.c (gnu_stop): Add 'self' argument.
13289         * darwin-nat.c (darwin_stop): Add 'self' argument.
13290
13291 2014-02-19  Tom Tromey  <tromey@redhat.com>
13292
13293         * target.h (struct target_ops) <to_thread_name>: Add argument.
13294         * target.c (target_thread_name): Add argument.
13295         (update_current_target): Update.
13296         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13297
13298 2014-02-19  Tom Tromey  <tromey@redhat.com>
13299
13300         * target.h (struct target_ops) <to_extra_thread_info>: Add
13301         argument.
13302         (target_extra_thread_info): Add argument.
13303         * target.c (update_current_target): Update.
13304         * remote.c (remote_threads_extra_info): Add 'self' argument.
13305         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13306         argument.
13307         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13308         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13309         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13310         argument.
13311         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13312         argument.
13313         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13314         argument.
13315         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13316         argument.
13317
13318 2014-02-19  Tom Tromey  <tromey@redhat.com>
13319
13320         * target.h (struct target_ops) <to_program_signals>: Add argument.
13321         * target.c (target_program_signals): Add argument.
13322         * remote.c (remote_program_signals): Add 'self' argument.
13323
13324 2014-02-19  Tom Tromey  <tromey@redhat.com>
13325
13326         * target.h (struct target_ops) <to_pass_signals>: Add argument.
13327         * target.c (target_pass_signals): Add argument.
13328         * remote.c (remote_pass_signals): Add 'self' argument.
13329         (remote_start_remote): Update.
13330         * procfs.c (procfs_pass_signals): Add 'self' argument.
13331         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13332         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13333         (linux_nat_create_inferior, linux_nat_attach): Update.
13334
13335 2014-02-19  Tom Tromey  <tromey@redhat.com>
13336
13337         * windows-nat.c (windows_can_run): Add 'self' argument.
13338         * target.h (struct target_ops) <to_can_run>: Add argument.
13339         (target_can_run): Add argument.
13340         * target.c (debug_to_can_run): Add argument.
13341         (update_current_target): Update.
13342         * nto-procfs.c (procfs_can_run): Add 'self' argument.
13343         * inf-child.c (inf_child_can_run): Add 'self' argument.
13344         * go32-nat.c (go32_can_run): Add 'self' argument.
13345
13346 2014-02-19  Tom Tromey  <tromey@redhat.com>
13347
13348         * target.h (struct target_ops) <to_has_exited>: Add argument.
13349         (target_has_exited): Add argument.
13350         * target.c (debug_to_has_exited): Add argument.
13351         (update_current_target): Update.
13352
13353 2014-02-19  Tom Tromey  <tromey@redhat.com>
13354
13355         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13356         argument.
13357         (target_set_syscall_catchpoint): Add argument.
13358         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13359         argument.
13360         * target.c (update_current_target): Update.
13361
13362 2014-02-19  Tom Tromey  <tromey@redhat.com>
13363
13364         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13365         argument.
13366         (target_remove_exec_catchpoint): Add argument.
13367         * target.c (debug_to_remove_exec_catchpoint): Add argument.
13368         (update_current_target): Update.
13369         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13370         argument.
13371
13372 2014-02-19  Tom Tromey  <tromey@redhat.com>
13373
13374         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13375         argument.
13376         (target_insert_exec_catchpoint): Add argument.
13377         * target.c (debug_to_insert_exec_catchpoint): Add argument.
13378         (update_current_target): Update.
13379         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13380         argument.
13381
13382 2014-02-19  Tom Tromey  <tromey@redhat.com>
13383
13384         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13385         argument.
13386         (target_remove_vfork_catchpoint): Add argument.
13387         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13388         (update_current_target): Update.
13389         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13390         argument.
13391
13392 2014-02-19  Tom Tromey  <tromey@redhat.com>
13393
13394         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13395         argument.
13396         (target_insert_vfork_catchpoint): Add argument.
13397         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13398         (update_current_target): Update.
13399         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13400         argument.
13401
13402 2014-02-19  Tom Tromey  <tromey@redhat.com>
13403
13404         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13405         argument.
13406         (target_remove_fork_catchpoint): Add argument.
13407         * target.c (debug_to_remove_fork_catchpoint): Add argument.
13408         (update_current_target): Update.
13409         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13410         argument.
13411
13412 2014-02-19  Tom Tromey  <tromey@redhat.com>
13413
13414         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13415         argument.
13416         (target_insert_fork_catchpoint): Add argument.
13417         * target.c (debug_to_insert_fork_catchpoint): Add argument.
13418         (update_current_target): Update.
13419         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13420         argument.
13421
13422 2014-02-19  Tom Tromey  <tromey@redhat.com>
13423
13424         * target.h (struct target_ops) <to_post_startup_inferior>: Add
13425         argument.
13426         (target_post_startup_inferior): Add argument.
13427         * target.c (debug_to_post_startup_inferior): Add argument.
13428         (update_current_target): Update.
13429         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13430         argument.
13431         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13432         argument.
13433         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13434         argument.
13435         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13436         argument.
13437         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13438         'self' argument.
13439         (super_post_startup_inferior): Likewise.
13440         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13441         'self' argument.
13442         (super_post_startup_inferior): Likewise.
13443         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13444         Add 'self' argument.
13445         (super_post_startup_inferior): Likewise.
13446
13447 2014-02-19  Tom Tromey  <tromey@redhat.com>
13448
13449         * target.h (struct target_ops) <to_load>: Add argument.
13450         * target.c (target_load): Add argument.
13451         (debug_to_load): Add argument.
13452         (update_current_target): Update.
13453         * remote.c (remote_load): Add 'self' argument.
13454         * remote-sim.c (gdbsim_load): Add 'self' argument.
13455         * remote-mips.c (mips_load): Add 'self' argument.
13456         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13457         * monitor.c (monitor_load): Add 'self' argument.
13458         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13459
13460 2014-02-19  Tom Tromey  <tromey@redhat.com>
13461
13462         * target.h (struct target_ops) <to_terminal_info>: Add argument.
13463         (target_terminal_info): Add argument.
13464         * target.c (debug_to_terminal_info): Add argument.
13465         (default_terminal_info): Likewise.
13466         * inflow.c (child_terminal_info): Add 'self' argument.
13467         * inferior.h (child_terminal_info): Add 'self' argument.
13468         * go32-nat.c (go32_terminal_info): Add 'self' argument.
13469
13470 2014-02-19  Tom Tromey  <tromey@redhat.com>
13471
13472         * target.h (struct target_ops) <to_terminal_save_ours>: Add
13473         argument.
13474         (target_terminal_save_ours): Add argument.
13475         * target.c (debug_to_terminal_save_ours): Add argument.
13476         (update_current_target): Update.
13477         * inflow.c (terminal_save_ours): Add 'self' argument.
13478         * inferior.h (terminal_save_ours): Add 'self' argument.
13479
13480 2014-02-19  Tom Tromey  <tromey@redhat.com>
13481
13482         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13483         (target_terminal_ours): Add argument.
13484         * target.c (debug_to_terminal_ours): Add argument.
13485         (update_current_target): Update.
13486         * remote.c (remote_terminal_ours): Add 'self' argument.
13487         (remote_close): Update.
13488         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13489         * inflow.c (terminal_ours): Add 'self' argument.
13490         * inferior.h (terminal_ours): Add 'self' argument.
13491         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13492
13493 2014-02-19  Pedro Alves  <palves@redhat.com>
13494             Tom Tromey  <tromey@redhat.com>
13495
13496         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13497         argument.
13498         (target_terminal_ours_for_output): Add argument.
13499         * target.c (debug_to_terminal_ours_for_output): Add argument.
13500         (update_current_target): Update.
13501         * inflow.c (terminal_ours_for_output): Add 'self' argument.
13502         * inferior.h (terminal_ours_for_output): Add 'self' argument.
13503         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13504
13505 2014-02-19  Tom Tromey  <tromey@redhat.com>
13506
13507         * target.h (struct target_ops) <to_terminal_inferior>: Add
13508         argument.
13509         * target.c (target_terminal_inferior): Add argument.
13510         (update_current_target): Update.
13511         * remote.c (remote_terminal_inferior): Add 'self' argument.
13512         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13513         * inflow.c (terminal_inferior): Add 'self' argument.
13514         * inferior.h (terminal_inferior): Add 'self' argument.
13515         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13516         (go32_terminal_inferior): Add 'self' argument.
13517
13518 2014-02-19  Tom Tromey  <tromey@redhat.com>
13519
13520         * target.h (struct target_ops) <to_terminal_init>: Add argument.
13521         (target_terminal_init): Add argument.
13522         * target.c (debug_to_terminal_init): Add argument.
13523         (update_current_target): Update.
13524         * inflow.c (terminal_init_inferior): Add 'self' argument.
13525         * inferior.h (terminal_init_inferior): Add 'self' argument.
13526         * go32-nat.c (go32_terminal_init): Add 'self' argument.
13527         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13528
13529 2014-02-19  Tom Tromey  <tromey@redhat.com>
13530
13531         * target.h (struct target_ops)
13532         <to_can_accel_watchpoint_condition>: Add argument.
13533         (target_can_accel_watchpoint_condition): Add argument.
13534         * target.c (debug_to_can_accel_watchpoint_condition): Add
13535         argument.
13536         (update_current_target): Update.
13537         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13538         'self' argument.
13539
13540 2014-02-19  Tom Tromey  <tromey@redhat.com>
13541
13542         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13543         Add argument.
13544         (target_region_ok_for_hw_watchpoint): Add argument.
13545         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13546         (default_region_ok_for_hw_watchpoint): Add argument.
13547         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13548         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13549         argument.
13550         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13551         argument.
13552         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13553         argument.
13554         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13555         'self' argument.
13556         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13557         'self' argument.
13558         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13559         'self' argument.
13560         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13561         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13562         'self' argument.
13563         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13564         Add 'self' argument.
13565
13566 2014-02-19  Tom Tromey  <tromey@redhat.com>
13567
13568         * target.h (struct target_ops) <to_insert_watchpoint>: Add
13569         argument.
13570         (target_insert_watchpoint): Add argument.
13571         * target.c (debug_to_insert_watchpoint): Add argument.
13572         (update_current_target): Update.
13573         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13574         * remote.c (remote_insert_watchpoint): Add 'self' argument.
13575         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13576         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13577         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13578         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13579         argument.
13580         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13581         (procfs_insert_hw_watchpoint): Add 'self' argument.
13582         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13583         argument.
13584         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13585         argument.
13586         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13587         argument.
13588         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13589         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13590         argument.
13591         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13592         'self' argument.
13593
13594 2014-02-19  Tom Tromey  <tromey@redhat.com>
13595
13596         * target.h (struct target_ops) <to_remove_watchpoint>: Add
13597         argument.
13598         (target_remove_watchpoint): Add argument.
13599         * target.c (debug_to_remove_watchpoint): Add argument.
13600         (update_current_target): Update.
13601         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13602         * remote.c (remote_remove_watchpoint): Add 'self' argument.
13603         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13604         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13605         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13606         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13607         argument.
13608         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13609         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13610         argument.
13611         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13612         argument.
13613         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13614         argument.
13615         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13616         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13617         argument.
13618         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13619         'self' argument.
13620
13621 2014-02-19  Tom Tromey  <tromey@redhat.com>
13622
13623         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13624         argument.
13625         (target_remove_hw_breakpoint): Add argument.
13626         * target.c (debug_to_remove_hw_breakpoint): Add argument.
13627         (update_current_target): Update.
13628         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13629         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13630         argument.
13631         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13632         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13633         argument.
13634         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13635         'self' argument.
13636
13637 2014-02-19  Tom Tromey  <tromey@redhat.com>
13638
13639         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13640         argument.
13641         (target_insert_hw_breakpoint): Add argument.
13642         * target.c (debug_to_insert_hw_breakpoint): Add argument.
13643         (update_current_target): Update.
13644         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13645         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13646         argument.
13647         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13648         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13649         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13650         argument.
13651         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13652         'self' argument.
13653
13654 2014-02-19  Tom Tromey  <tromey@redhat.com>
13655
13656         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13657         argument.
13658         (target_can_use_hardware_watchpoint): Add argument.
13659         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13660         (update_current_target): Update.
13661         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13662         argument.
13663         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13664         argument.
13665         * remote.c (remote_check_watch_resources): Add 'self' argument.
13666         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13667         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13668         argument.
13669         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13670         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13671         argument.
13672         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13673         argument.
13674         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13675         argument.
13676         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13677         argument.
13678         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13679         argument.
13680         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13681         argument.
13682         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13683         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13684         argument.
13685         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13686         'self' argument.
13687
13688 2014-02-19  Tom Tromey  <tromey@redhat.com>
13689
13690         * target.h (struct target_ops) <to_post_attach>: Add argument.
13691         (target_post_attach): Add argument.
13692         * target.c (debug_to_post_attach): Add argument.
13693         (update_current_target): Update.
13694         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13695         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13696         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13697         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13698         * inf-child.c (inf_child_post_attach): Add 'self' argument.
13699
13700 2014-02-19  Tom Tromey  <tromey@redhat.com>
13701
13702         * windows-nat.c (windows_close): Add 'self' argument.
13703         * tracepoint.c (tfile_close): Add 'self' argument.
13704         * target.h (struct target_ops) <to_close>: Add argument.
13705         * target.c (target_close): Add argument.
13706         (update_current_target): Update.
13707         * remote.c (remote_close): Add 'self' argument.
13708         * remote-sim.c (gdbsim_close): Add 'self' argument.
13709         * remote-mips.c (mips_close): Add 'self' argument.
13710         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13711         * record-full.c (record_full_close): Add 'self' argument.
13712         * record-btrace.c (record_btrace_close): Add 'self' argument.
13713         * monitor.h (monitor_close): Add 'self' argument.
13714         * monitor.c (monitor_close): Add 'self' argument.
13715         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13716         * linux-nat.c (linux_nat_close): Add argument.
13717         * go32-nat.c (go32_close): Add 'self' argument.
13718         * exec.c (exec_close_1): Add 'self' argument.
13719         * ctf.c (ctf_close): Add 'self' argument.
13720         * corelow.c (core_close): Add 'self' argument.
13721         (core_close_cleanup): Update.
13722         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13723         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13724
13725 2014-02-19  Tom Tromey  <tromey@redhat.com>
13726
13727         * remote.c (remote_load): New function.
13728         (init_remote_ops): Use it.
13729
13730 2014-02-19  Tom Tromey  <tromey@redhat.com>
13731
13732         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13733         argument.
13734         * common/linux-btrace.h (linux_supports_btrace): Update.
13735         * remote.c (remote_supports_btrace): Add "self" argument.
13736         * target-delegates.c: Rebuild.
13737         * target.c (target_supports_btrace): Remove.
13738         * target.h (struct target_ops) <to_supports_btrace>: Add
13739         target_ops argument.
13740         (target_supports_btrace): New define.
13741
13742 2014-02-19  Tom Tromey  <tromey@redhat.com>
13743
13744         * record-full.c (record_full_beneath_to_resume_ops)
13745         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13746         (record_full_beneath_to_wait)
13747         (record_full_beneath_to_store_registers_ops)
13748         (record_full_beneath_to_store_registers)
13749         (record_full_beneath_to_xfer_partial_ops)
13750         (record_full_beneath_to_xfer_partial)
13751         (record_full_beneath_to_insert_breakpoint_ops)
13752         (record_full_beneath_to_insert_breakpoint)
13753         (record_full_beneath_to_remove_breakpoint_ops)
13754         (record_full_beneath_to_remove_breakpoint)
13755         (record_full_beneath_to_stopped_by_watchpoint)
13756         (record_full_beneath_to_stopped_data_address)
13757         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13758         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13759         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13760         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13761         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13762         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13763         (tmp_to_stopped_data_address, tmp_to_async): Remove.
13764         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
13765         (record_full_resume, record_full_wait_1)
13766         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13767         (record_full_store_registers, record_full_xfer_partial)
13768         (record_full_insert_breakpoint, record_full_remove_breakpoint)
13769         (record_full_async, record_full_core_xfer_partial): Use target
13770         delegation.
13771         * target-delegates.c: Rebuild.
13772         * target.c (current_xfer_partial): Remove.
13773         (update_current_target): Do not INHERIT or de_fault
13774         to_insert_breakpoint, to_remove_breakpoint,
13775         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13776         to_is_async_p, to_async.  Do not set to_xfer_partial field.
13777         (default_xfer_partial): Simplify.
13778         (current_xfer_partial): Remove.
13779         (target_wait, target_resume): Simplify.
13780         (find_default_can_async_p, find_default_is_async_p): Update.
13781         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13782         to_xfer_partial, to_stopped_by_watchpoint,
13783         to_stopped_data_address.
13784         (target_store_registers): Simplify.
13785         (forward_target_remove_breakpoint)
13786         (forward_target_insert_breakpoint): Remove.
13787         (target_remove_breakpoint, target_insert_breakpoint)
13788         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13789         * target.h (struct target_ops) <to_resume, to_wait,
13790         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13791         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13792         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13793         markup.
13794         (forward_target_remove_breakpoint)
13795         (forward_target_insert_breakpoint): Remove.
13796         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13797         directly.
13798         (record_btrace_insert_breakpoint): Delegate directly.
13799
13800 2014-02-19  Tom Tromey  <tromey@redhat.com>
13801
13802         PR build/7701:
13803         * target-delegates.c: New file.
13804         * target.c: Include target-delegates.c.
13805         (init_dummy_target): Call install_dummy_methods.
13806         (complete_target_initialization): Call install_delegators.
13807         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13808         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13809         * make-target-delegates: New file.
13810
13811 2014-02-19  Tom Tromey  <tromey@redhat.com>
13812
13813         * record.c (find_record_target): Use find_target_at.
13814         * target.c (find_target_at): New function.
13815         * target.h (find_target_at): Declare.
13816
13817 2014-02-19  Tom Tromey  <tromey@redhat.com>
13818
13819         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13820         Add 'ops' argument.
13821         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13822         'ops' argument.
13823         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13824         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13825         'ops' argument.
13826         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13827         argument.
13828         * linux-nat.c (save_sigtrap): Update.
13829         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13830         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13831         (linux_nat_close): Update.
13832         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13833         argument.
13834         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13835         argument.
13836         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13837         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13838         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13839         (tmp_to_async): Add 'ops' argument.
13840         (record_full_stopped_by_watchpoint, record_full_async)
13841         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13842         argument.
13843         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13844         (m32r_stopped_by_watchpoint): Add 'ops' argument.
13845         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13846         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13847         (remote_is_async_p, remote_async): Add 'ops' argument.
13848         (remote_stopped_data_address): Update.
13849         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13850         * target.c (update_current_target)
13851         (find_default_can_async_p, find_default_is_async_p): Update.
13852         (init_dummy_target): Update.
13853         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13854         * target.h (struct target_ops) <to_stopped_by_watchpoint,
13855         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13856         (target_can_async_p, target_is_async_p, target_async)
13857         (target_stopped_by_watchpoint): Update.
13858
13859 2014-02-19  Yao Qi  <yao@codesourcery.com>
13860
13861         PR gdb/16220
13862         * gdbarch.sh: Remove startup_gdbarch.
13863         * gdbarch.c: Regenerated.
13864         * gdbarch.h: Likewise.
13865
13866 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
13867
13868         * rl78-tdep.c (rl78_g10_register_name): New function.
13869         (rl78_return_value): Add g10 support.
13870         (rl78_gdbarch_init): Register rl78_g10_register_name for the
13871         g10.
13872
13873 2014-02-17  Doug Evans  <xdje42@gmail.com>
13874
13875         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13876         (SUBDIR_GUILE_SRCS): Ditto.
13877         (scm-gsmob.o): Ditto.
13878
13879 2014-02-17  Yao Qi  <yao@codesourcery.com>
13880
13881         * gnu-nat.c (ILL_RPC): Declare defined function.
13882
13883 2014-02-17  Yao Qi  <yao@codesourcery.com>
13884
13885         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13886         mach_msg_type_number_t.
13887         (gnu_write_inferior): Likewise.
13888
13889 2014-02-17  Yao Qi  <yao@codesourcery.com>
13890
13891         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13892         in format string.
13893         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13894         (inf_validate_procs, inf_signal): Likewise.
13895         (S_exception_raise_request): Likewise.
13896         (do_mach_notify_dead_name): Likewise.
13897         (steal_exc_port): Likewise.
13898         (gnu_read_inferior): Change 'copy_count''s type to
13899         mach_msg_type_number_t.
13900         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
13901         format string.
13902
13903 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
13904
13905         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13906         flag.  Adjust all users; in particular...
13907         (gnu_wait): ..., don't decrement its value in here...
13908         (gnu_create_inferior): ..., and instead set the flag in here,
13909         around the startup_inferior call, and call that one with
13910         START_INFERIOR_TRAPS_EXPECTED.
13911
13912         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13913         (ILL_RPC): ... new macro.
13914         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13915         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13916         (do_mach_notify_send_once, S_proc_setmsgport_reply)
13917         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13918         functions with ILL_RPC macro.
13919         (S_proc_pid2task_reply, S_proc_task2pid_reply)
13920         (S_proc_task2proc_reply, S_proc_proc2task_reply)
13921         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13922         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13923         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13924         (S_proc_getlogin_reply, S_proc_getsid_reply)
13925         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13926         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13927         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13928         (S_proc_getnports_reply, S_proc_is_important_reply)
13929         (S_proc_get_code_reply): New stub functions, generated with
13930         ILL_RPC macro.
13931
13932         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13933         collected the type check structures.
13934
13935         * reply_mig_hack.awk: Don't expect to see the auto keyword.
13936
13937 2014-02-14  Doug Evans  <dje@google.com>
13938
13939         * target.c (target_write_partial): Fix result type.
13940
13941 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
13942
13943         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13944         the proper offsets to access fpregset_t.
13945
13946 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
13947
13948         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13949         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13950         * h8300-tdep.c (setmachinelist): Remove global.
13951         * hppa-tdep.c (hppa_sigtramp): Remove global.
13952         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13953         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13954         * ravenscar-thread.c (update_target_observer): Remove global.
13955         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13956
13957 2014-02-12  Tom Tromey  <tromey@redhat.com>
13958
13959         * common/rsp-low.c: Update comments.
13960         * common/rsp-low.h: Update comments.
13961
13962 2014-02-12  Tom Tromey  <tromey@redhat.com>
13963
13964         * common/rsp-low.c (convert_ascii_to_int): Remove.
13965         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13966
13967 2014-02-12  Tom Tromey  <tromey@redhat.com>
13968
13969         * common/rsp-low.h (unhexify): Don't declare.
13970         * common/rsp-low.c (unhexify): Remove.
13971
13972 2014-02-12  Tom Tromey  <tromey@redhat.com>
13973
13974         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13975         * common/rsp-low.c (convert_int_to_ascii): Remove.
13976
13977 2014-02-12  Tom Tromey  <tromey@redhat.com>
13978
13979         * common/rsp-low.h (hexify): Don't declare.
13980         * common/rsp-low.c (hexify): Remove.
13981
13982 2014-02-12  Tom Tromey  <tromey@redhat.com>
13983
13984         * common/rsp-low.c (hexify): Never take strlen of argument.
13985
13986 2014-02-12  Tom Tromey  <tromey@redhat.com>
13987
13988         * common/rsp-low.c (bin2hex): Never take strlen of argument.
13989         * remote.c (extended_remote_run, remote_rcmd)
13990         (remote_download_trace_state_variable, remote_save_trace_data)
13991         (remote_set_trace_notes): Update.
13992         * tracepoint.c (encode_source_string, tfile_write_status)
13993         (tfile_write_uploaded_tsv): Update.
13994
13995 2014-02-12  Tom Tromey  <tromey@redhat.com>
13996
13997         * tracepoint.c: Include rsp-low.h.
13998         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13999         * remote.c: Include rsp-low.h.
14000         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
14001         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
14002         (remote_unescape_input): Move to common/rsp-low.c.
14003         * common/rsp-low.h: New file.
14004         * common/rsp-low.c: New file.
14005         * Makefile.in (SFILES): Add common/rsp-low.c.
14006         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
14007         (COMMON_OBS): Add rsp-low.o.
14008         (rsp-low.o): New target.
14009
14010 2014-02-12  Tom Tromey  <tromey@redhat.com>
14011
14012         * utils.h: Include print-utils.h.
14013         (host_address_to_string, plongest, pulongest, phex, phex_nz)
14014         (int_string, core_addr_to_string, core_addr_to_string_nz)
14015         (hex_string, hex_string_custom): Don't declare.
14016         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
14017         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
14018         (hex_string_custom, int_string, core_addr_to_string)
14019         (core_addr_to_string_nz, host_address_to_string): Move to
14020         common/print-utils.c.
14021         * common/print-utils.h: New file.
14022         * common/print-utils.c: New file
14023         * Makefile.in (SFILES): Add common/print-utils.c.
14024         (HFILES_NO_SRCDIR): Add common/print-utils.h.
14025         (COMMON_OBS): Add print-utils.o.
14026         (print-utils.o): New target.
14027
14028 2014-02-12  Tom Tromey  <tromey@redhat.com>
14029
14030         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
14031
14032 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
14033
14034         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
14035
14036 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
14037
14038         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
14039         if a PT_IO ptrace request returns sucessfully but indicates that 0
14040         bytes were transferred.
14041
14042 2014-02-12  Pedro Alves  <palves@redhat.com>
14043             Kevin Buettner <kevinb@redhat.com>
14044
14045         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
14046         TYPE_INSTANCE_FLAG_CODE_SPACE.
14047
14048 2014-02-12  Pedro Alves  <palves@redhat.com>
14049
14050         * h8300-tdep.c (pseudo_from_raw_register)
14051         (raw_from_pseudo_register): New functions.
14052         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
14053         them.
14054
14055 2014-02-12  Pedro Alves  <palves@redhat.com>
14056
14057         * h8300-tdep.c (h8300_register_sim_regno): New function.
14058         (h8300_gdbarch_init): Install h8300_register_sim_regno as
14059         gdbarch_register_sim_regno hook.
14060
14061 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
14062
14063         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
14064
14065 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
14066
14067         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
14068
14069 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
14070
14071         * obsd-tdep.h (obsd_init_abi): New prototype.
14072         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
14073         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
14074         (obsd_init_abi): New functions.
14075         * i386obsd-tdep.c: Include "obsd-tdep.h".
14076         (i386obsd_init_abi): Call obsd_init_abi.
14077         * amd64obsd-tdep.c: Include "obsd-tdep.h".
14078         (amd64obsd_init_abi): Call obsd_init_abi.
14079         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
14080         obsd-tdep.c to gdb_target_obs.
14081
14082 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
14083
14084         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
14085         double float arguments to 16-byte in the argument slots.
14086
14087 2014-02-11  Doug Evans  <xdje42@gmail.com>
14088
14089         * configure.ac: Don't crash if pkg-config is not found and guile
14090         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
14091         in guile checks.
14092         * configure: Regenerate.
14093
14094 2014-02-11  Yao Qi  <yao@codesourcery.com>
14095
14096         * aix-thread.c (aix_thread_xfer_partial): Update comments.
14097         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
14098         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14099         * gnu-nat.c (gnu_xfer_memory): Likewise.
14100         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
14101         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14102         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14103         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14104
14105 2014-02-11  Yao Qi  <yao@codesourcery.com>
14106
14107         * target.h (enum target_xfer_error): Rename to ...
14108         (enum target_xfer_status): ... it.  New.  All users updated.
14109         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
14110         New.
14111         (TARGET_XFER_STATUS_ERROR_P): New macro.
14112         (target_xfer_error_to_string): Remove declaration.
14113         (target_xfer_status_to_string): Declare.
14114         (target_xfer_partial_ftype): Adjust it.
14115         (struct target_ops) <to_xfer_partial>: Return
14116         target_xfer_status.  Add argument xfered_len.  Update
14117         comments.
14118         * target.c (target_xfer_error_to_string): Rename to ...
14119         (target_xfer_status_to_string): ... it.  New.  All callers
14120         updated.
14121         (target_read_live_memory): Likewise.  Call target_xfer_partial
14122         instead of target_read.
14123         (memory_xfer_live_readonly_partial): Return
14124         target_xfer_status.  Add argument xfered_len.
14125         (raw_memory_xfer_partial): Likewise.
14126         (memory_xfer_partial_1): Likewise.
14127         (memory_xfer_partial): Likewise.
14128         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
14129         properly.  Update debug message.
14130         (default_xfer_partial, current_xfer_partial): Likewise.
14131         (target_write_partial): Likewise.
14132         (target_read_partial): Likewise.  All callers updated.
14133         (read_whatever_is_readable): Likewise.
14134         (target_write_with_progress): Likewise.
14135         (target_read_alloc_1): Likewise.
14136
14137         * aix-thread.c (aix_thread_xfer_partial): Likewise.
14138         * auxv.c (procfs_xfer_auxv): Likewise.
14139         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
14140         * bfd-target.c (target_bfd_xfer_partial): Likewise.
14141         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14142         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
14143         * corefile.c (read_memory): Adjust.
14144         * corelow.c (core_xfer_partial): Likewise.
14145         * ctf.c (ctf_xfer_partial): Likewise.
14146         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
14147         updated.
14148         (darwin_xfer_partial): Likewise.
14149         * exec.c (section_table_xfer_memory_partial): Likewise.  All
14150         callers updated.
14151         (exec_xfer_partial): Likewise.
14152         * exec.h (section_table_xfer_memory_partial): Update
14153         declaration.
14154         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
14155         negative.
14156         (gnu_xfer_partial): Likewise.
14157         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14158         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14159         (ia64_hpux_xfer_solib_got): Likewise.
14160         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
14161         type of 'partial_len' to ULONGEST.
14162         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14163         * linux-nat.c (linux_xfer_siginfo ): Likewise.
14164         (linux_nat_xfer_partial): Likewise.
14165         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14166         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14167         * monitor.c (monitor_xfer_memory): Likewise.
14168         (monitor_xfer_partial): Likewise.
14169         * procfs.c (procfs_xfer_partial): Likewise.
14170         * record-btrace.c (record_btrace_xfer_partial): Likewise.
14171         * record-full.c (record_full_xfer_partial): Likewise.
14172         (record_full_core_xfer_partial): Likewise.
14173         * remote-sim.c (gdbsim_xfer_memory): Likewise.
14174         (gdbsim_xfer_partial): Likewise.
14175         * remote.c (remote_write_bytes_aux): Likewise.  All callers
14176         updated.
14177         (remote_write_bytes, remote_read_bytes): Likewise.  All
14178         callers updated.
14179         (remote_flash_erase): Likewise.  All callers updated.
14180         (remote_write_qxfer): Likewise.  All callers updated.
14181         (remote_read_qxfer): Likewise.  All callers updated.
14182         (remote_xfer_partial): Likewise.
14183         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14184         (rs6000_xfer_shared_libraries): Likewise.
14185         * sol-thread.c (sol_thread_xfer_partial): Likewise.
14186         (sol_thread_xfer_partial): Likewise.
14187         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14188         (sparc_xfer_partial): Likewise.
14189         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
14190         updated.
14191         (spu_xfer_partial): Likewise.
14192         * spu-multiarch.c (spu_xfer_partial): Likewise.
14193         * tracepoint.c (tfile_xfer_partial): Likewise.
14194         * windows-nat.c (windows_xfer_memory): Likewise.
14195         (windows_xfer_shared_libraries): Likewise.
14196         (windows_xfer_partial): Likewise.
14197         * valprint.c: Replace 'target_xfer_error' with
14198         'target_xfer_status' in comments.
14199
14200 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
14201
14202         Checked in by Joel Brobecker <brobecker@adacore.com>.
14203         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14204
14205 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
14206
14207         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14208         function parameters.
14209
14210 2014-02-10  Will Newton  <will.newton@linaro.org>
14211
14212         * elfread.c (elf_rel_plt_read): Look for a .got section if
14213         looking up .got.plt fails.
14214         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14215         on address passed to elf_gnu_ifunc_record_cache.
14216         (elf_gnu_ifunc_resolve_addr): Likewise.
14217         (elf_gnu_ifunc_resolver_return_stop): Likewise.
14218
14219 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
14220
14221         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14222         (X_RETTURN): New macro.
14223         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14224
14225         * sparc64-tdep.c (sparc64_init_abi): Hook
14226         sparc_in_function_epilogue_p.
14227
14228 2014-02-10  Gary Benson  <gbenson@redhat.com>
14229
14230         * symfile-debug.c (debug_qf_expand_symtabs_matching):
14231         Rename name_matcher to symbol_matcher.
14232
14233 2014-02-10  Gary Benson  <gbenson@redhat.com>
14234
14235         * symfile-debug.c (debug_qf_expand_symtabs_matching):
14236         Use expand_symtabs_file_matcher_ftype and
14237         expand_symtabs_symbol_matcher_ftype.
14238
14239 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
14240
14241         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14242         (struct ada_symbol_cache): New.
14243         (ada_free_symbol_cache): Forward declare.
14244         (struct ada_pspace_data): New.
14245         (ada_pspace_data_handle): New static global.
14246         (get_ada_pspace_data, ada_pspace_data_cleanup)
14247         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14248         (cache_space, cache): Delete, now folded inside struct
14249         ada_pspace_data.
14250         (ada_get_symbol_cache): New function.
14251         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14252         implementation.
14253         (_initialize_ada_language): Remove initialization of cache_space.
14254         Move call to observer_attach_inferior_exit up, grouping it
14255         with the other observer registrations inside this function.
14256         Rename command to be more general.  Add call to
14257         register_program_space_data_with_cleanup.
14258
14259 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
14260
14261         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14262         ada_new_objfile_observer.
14263         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14264         (_initialize_tasks): Update uses of ada_new_objfile_observer
14265         and ada_tasks_normal_stop_observer.
14266
14267 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
14268
14269         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14270         returned by the 'Length attribute to integer.
14271
14272 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
14273
14274         * ada-lang.c (_initialize_ada_language): Initialize
14275         cache_space obstack.
14276
14277 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
14278
14279         * ada-lang.c (HASH_SIZE): New macro.
14280         (struct cache_entry): New type.
14281         (cache_space, cache): New static globals.
14282         (ada_clear_symbol_cache, find_entry): New functions.
14283         (lookup_cached_symbol, cache_symbol): Implement.
14284         (ada_new_objfile_observer, ada_free_objfile_observer): New.
14285         (_initialize_ada_language): Attach ada_new_objfile_observer
14286         and ada_free_objfile_observer.
14287
14288 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
14289
14290         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14291         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14292         struct block * parameter.
14293         (ada_lookup_symbol_list_worker): Constify local variable "block".
14294         Remove cast which is no longer necessary.
14295
14296 2014-02-10  Doug Evans  <xdje42@gmail.com>
14297
14298         Add Guile as an extension language.
14299         * NEWS: Mention Guile scripting.
14300         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14301         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14302         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14303         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14304         (CLIBS): Add GUILE_LIBS.
14305         (install-guile): New rule.
14306         (guile.o): New rule.
14307         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14308         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14309         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14310         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14311         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14312         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14313         (scm-type.o, scm-utils.o, scm-value.o): New rules.
14314         * configure.ac: New option --with-guile.
14315         * configure: Regenerate.
14316         * config.in: Regenerate.
14317         * auto-load.c: Remove #include "python/python.h".  Add #include
14318         "gdb/section-scripts.h".
14319         (source_section_scripts): Handle Guile scripts.
14320         (_initialize_auto_load): Add name of Guile objfile script to
14321         scripts-directory help text.
14322         * breakpoint.c (condition_command): Tweak comment to include Scheme.
14323         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14324         (struct breakpoint): New member scm_bp_object.
14325         * defs.h (enum command_control_type): New value guile_control.
14326         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
14327         "extension.h".
14328         (show_user): Update comment.
14329         (_initialize_cli_cmds): Update help text for "show user".  Update help
14330         text for max-user-call-depth.
14331         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
14332         "extension.h".
14333         (multi_line_command_p): Add guile_control.
14334         (print_command_lines): Handle guile_control.
14335         (execute_control_command, recurse_read_control_structure): Ditto.
14336         (process_next_line): Recognize "guile" commands.
14337         * disasm.c (gdb_disassemble_info): Make non-static.
14338         * disasm.h: #include "dis-asm.h".
14339         (struct gdbarch): Add forward decl.
14340         (gdb_disassemble_info): Declare.
14341         * extension.c: #include "guile/guile.h".
14342         (extension_languages): Add guile.
14343         (get_ext_lang_defn): Handle EXT_LANG_GDB.
14344         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14345         * gdbtypes.c (get_unsigned_type_max): New function.
14346         (get_signed_type_minmax): New function.
14347         * gdbtypes.h (get_unsigned_type_max): Declare.
14348         (get_signed_type_minmax): Declare.
14349         * guile/README: New file.
14350         * guile/guile-internal.h: New file.
14351         * guile/guile.c: New file.
14352         * guile/guile.h: New file.
14353         * guile/scm-arch.c: New file.
14354         * guile/scm-auto-load.c: New file.
14355         * guile/scm-block.c: New file.
14356         * guile/scm-breakpoint.c: New file.
14357         * guile/scm-disasm.c: New file.
14358         * guile/scm-exception.c: New file.
14359         * guile/scm-frame.c: New file.
14360         * guile/scm-gsmob.c: New file.
14361         * guile/scm-iterator.c: New file.
14362         * guile/scm-lazy-string.c: New file.
14363         * guile/scm-math.c: New file.
14364         * guile/scm-objfile.c: New file.
14365         * guile/scm-ports.c: New file.
14366         * guile/scm-pretty-print.c: New file.
14367         * guile/scm-safe-call.c: New file.
14368         * guile/scm-string.c: New file.
14369         * guile/scm-symbol.c: New file.
14370         * guile/scm-symtab.c: New file.
14371         * guile/scm-type.c: New file.
14372         * guile/scm-utils.c: New file.
14373         * guile/scm-value.c: New file.
14374         * guile/lib/gdb.scm: New file.
14375         * guile/lib/gdb/boot.scm: New file.
14376         * guile/lib/gdb/experimental.scm: New file.
14377         * guile/lib/gdb/init.scm: New file.
14378         * guile/lib/gdb/iterator.scm: New file.
14379         * guile/lib/gdb/printing.scm: New file.
14380         * guile/lib/gdb/types.scm: New file.
14381         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14382         (VPATH): Add $(GUILE_SRCDIR).
14383         (GUILE_DIR): New variable.
14384         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14385         (all): Add stamp-guile dependency.
14386         (stamp-guile): New rule.
14387         (clean-guile, install-guile, uninstall-guile): New rules.
14388         (install-only): Add install-guile dependency.
14389         (uninstall): Add uninstall-guile dependency.
14390         (clean): Add clean-guile dependency.
14391
14392 2014-02-09  Doug Evans  <xdje42@gmail.com>
14393
14394         Revert this patch (which I approved, mea culpa).
14395
14396         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
14397
14398         * Makefile.in (all-lib): Remove.
14399         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14400
14401 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
14402
14403         Fix Python stack corruption.
14404         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14405         gdb_py_longest.
14406
14407 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
14408
14409         * Makefile.in (all-lib): Remove.
14410         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14411
14412 2014-02-07  Doug Evans  <dje@google.com>
14413
14414         * extension-priv.h (extension_language_script_ops): Add comment.
14415         (extension_language_ops): Add comment.
14416         (active_ext_lang_state): Fix typo in comment.
14417
14418 2014-02-07  Pedro Alves  <palves@redhat.com>
14419
14420         PR breakpoints/16292
14421         * infrun.c (handle_signal_stop) <signal arrives while stepping
14422         over a breakpoint>: Switch back to the stepping thread.
14423
14424 2014-02-07  Yao Qi  <yao@codesourcery.com>
14425
14426         * target.c (target_xfer_partial): Return zero if LEN is zero.
14427
14428 2014-02-07  Yao Qi  <yao@codesourcery.com>
14429
14430         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14431         (ld_so_xfer_auxv): Likewise.
14432         * bfd-target.c (target_bfd_xfer_partial): Likewise.
14433         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14434         * corelow.c (core_xfer_partial): Likewise.
14435         * ctf.c (ctf_xfer_partial): Likewise.
14436         * darwin-nat.c (darwin_read_dyld_info): Likewise.
14437         (darwin_xfer_partial): Likewise.
14438         * exec.c (exec_xfer_partial): Likewise.
14439         * gnu-nat.c (gnu_xfer_partial): Likewise.
14440         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14441         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14442         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14443         * linux-nat.c (linux_xfer_siginfo): Likewise.
14444         (linux_proc_xfer_spu): Likewise.
14445         * procfs.c (procfs_xfer_partial): Likewise.
14446         * record-full.c (record_full_xfer_partial): Likewise.
14447         (record_full_core_xfer_partial): Likewise.
14448         * remote-sim.c (gdbsim_xfer_partial): Likewise.
14449         * remote.c (remote_write_qxfer): Likewise.
14450         (remote_write_qxfer, remote_read_qxfer): Likewise.
14451         (remote_xfer_partial): Likewise.
14452         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14453         (rs6000_xfer_shared_libraries): Likewise.
14454         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14455         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14456         (spu_xfer_partial): Likewise.
14457         * target.c (memory_xfer_partial_1): Likewise.
14458         * tracepoint.c (tfile_xfer_partial): Likewise.
14459         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14460         (windows_xfer_partial): Likewise.
14461
14462 2014-02-07  Yao Qi  <yao@codesourcery.com>
14463
14464         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
14465         comments.
14466         (core_xfer_shared_libraries_aix): Likewise.
14467         * gdbarch.c, gdbarch.h: Regenerated.
14468         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14469         ULONGEST.  Change 'len_avail' type to ULONGEST.
14470         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14471         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14472         declaration.
14473         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14474
14475 2014-02-07  Yao Qi  <yao@codesourcery.com>
14476
14477         * corefile.c (memory_error): Get 'exception' from ERR and pass
14478         'exception' to throw_error.
14479
14480 2014-02-06  Doug Evans  <xdje42@gmail.com>
14481
14482         * configure.ac (libpython checking): Remove all but python.o from
14483         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
14484         * configure: Regenerate.
14485
14486         * Makefile.in (SFILES): Add extension.c.
14487         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14488         (COMMON_OBS): Add extension.o.
14489         * extension.h: New file.
14490         * extension-priv.h: New file.
14491         * extension.c: New file.
14492
14493         * python/python-internal.h: #include "extension.h".
14494         (gdbpy_auto_load_enabled): Declare.
14495         (gdbpy_apply_val_pretty_printer): Declare.
14496         (gdbpy_apply_frame_filter): Declare.
14497         (gdbpy_preserve_values): Declare.
14498         (gdbpy_breakpoint_cond_says_stop): Declare.
14499         (gdbpy_breakpoint_has_cond): Declare.
14500         (void source_python_script_for_objfile): Delete.
14501         * python/python.c: #include "extension-priv.h".
14502         Delete inclusion of "observer.h".
14503         (extension_language_python): Moved here and renamed from
14504         script_language_python in py-auto-load.c.
14505         Redefined to be of type extension_language_defn.
14506         (python_extension_script_ops): New global.
14507         (python_extension_ops): New global.
14508         (struct python_env): New member previous_active.
14509         (restore_python_env): Call restore_active_ext_lang.
14510         (ensure_python_env): Call set_active_ext_lang.
14511         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14512         New arg extlang.
14513         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14514         New arg extlang.
14515         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14516         New arg extlang.
14517         (gdbpy_eval_from_control_command): Renamed from
14518         eval_python_from_control_command, made static.  New arg extlang.
14519         (gdbpy_source_script) Renamed from source_python_script, made static.
14520         New arg extlang.
14521         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
14522         result to int.  New arg extlang.
14523         (gdbpy_source_objfile_script): Renamed from
14524         source_python_script_for_objfile, made static.  New arg extlang.
14525         (gdbpy_start_type_printers): Renamed from start_type_printers, made
14526         static.  New args extlang, extlang_printers.  Change result type to
14527         "void".
14528         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14529         static.  New arg extlang.  Rename arg printers to extlang_printers
14530         and change type to ext_lang_type_printers *.
14531         (gdbpy_free_type_printers): Renamed from free_type_printers, made
14532         static.  Replace argument arg with extlang, extlang_printers.
14533         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14534         (!HAVE_PYTHON, source_python_script): Delete.
14535         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14536         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14537         (!HAVE_PYTHON, start_type_printers): Delete.
14538         (!HAVE_PYTHON, apply_type_printers): Delete.
14539         (!HAVE_PYTHON, free_type_printers): Delete.
14540         (_initialize_python): Delete call to observer_attach_before_prompt.
14541         (finalize_python): Set/restore active extension language.
14542         (gdbpy_finish_initialization) Renamed from
14543         finish_python_initialization, made static.  New arg extlang.
14544         (gdbpy_initialized): New function.
14545         * python/python.h: #include "extension.h".  Delete #include
14546         "value.h", "mi/mi-cmds.h".
14547         (extension_language_python): Declare.
14548         (GDBPY_AUTO_FILE_NAME): Delete.
14549         (enum py_bt_status): Moved to extension.h and renamed to
14550         ext_lang_bt_status.
14551         (enum frame_filter_flags): Moved to extension.h.
14552         (enum py_frame_args): Moved to extension.h and renamed to
14553         ext_lang_frame_args.
14554         (finish_python_initialization): Delete.
14555         (eval_python_from_control_command): Delete.
14556         (source_python_script): Delete.
14557         (apply_val_pretty_printer): Delete.
14558         (apply_frame_filter): Delete.
14559         (preserve_python_values): Delete.
14560         (gdbpy_script_language_defn): Delete.
14561         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14562         (start_type_printers, apply_type_printers, free_type_printers): Delete.
14563
14564         * auto-load.c: #include "extension.h".
14565         (GDB_AUTO_FILE_NAME): Delete.
14566         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
14567         (script_language_gdb): Delete, moved to extension.c and renamed to
14568         extension_language_gdb.
14569         (source_gdb_script_for_objfile): Delete.
14570         (auto_load_pspace_info): New member unsupported_script_warning_printed.
14571         (loaded_script): Change type of language member to
14572         struct extension_language_defn *.
14573         (init_loaded_scripts_info): Initialize
14574         unsupported_script_warning_printed.
14575         (maybe_add_script): Make static.  Change type of language arg to
14576         struct extension_language_defn *.
14577         (clear_section_scripts): Reset unsupported_script_warning_printed.
14578         (auto_load_objfile_script_1): Rewrite to use extension language API.
14579         (auto_load_objfile_script): Make public.  Remove support-compiled-in
14580         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14581         (source_section_scripts): Rewrite to use extension language API.
14582         (load_auto_scripts_for_objfile): Rewrite to use
14583         auto_load_scripts_for_objfile.
14584         (collect_matching_scripts_data): Change type of language member to
14585         struct extension_language_defn *.
14586         (auto_load_info_scripts): Change type of language arg to
14587         struct extension_language_defn *.
14588         (unsupported_script_warning_print): New function.
14589         (script_not_found_warning_print): Make static.
14590         (_initialize_auto_load): Rewrite construction of scripts-directory
14591         help.
14592         * auto-load.h (struct objfile): Add forward decl.
14593         (struct script_language): Delete.
14594         (struct auto_load_pspace_info): Add forward decl.
14595         (struct extension_language_defn): Add forward decl.
14596         (maybe_add_script): Delete.
14597         (auto_load_objfile_script): Declare.
14598         (script_not_found_warning_print): Delete.
14599         (auto_load_info_scripts): Update prototype.
14600         (auto_load_gdb_scripts_enabled): Declare.
14601         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14602         auto_load_python_scripts_enabled and made public.
14603         (script_language_python): Delete, moved to python.c.
14604         (gdbpy_script_language_defn): Delete.
14605         (info_auto_load_python_scripts): Update to use
14606         extension_language_python.
14607
14608         * breakpoint.c (condition_command): Replace call to
14609         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14610         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14611         with call to breakpoint_ext_lang_cond_says_stop.
14612         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14613         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
14614         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14615         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14616         New arg slang.
14617         (local_setattro): Print name of extension language with existing
14618         stop condition.
14619
14620         * valprint.c (val_print, value_print): Update to call
14621         apply_ext_lang_val_pretty_printer.
14622         * cp-valprint.c (cp_print_value): Update call to
14623         apply_ext_lang_val_pretty_printer.
14624         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14625         (gdbpy_apply_val_pretty_printer): Renamed from
14626         apply_val_pretty_printer.  New arg extlang.
14627         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14628
14629         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14630         extension language API.
14631         * cli/cli-script.c (execute_control_command): Update to call
14632         eval_ext_lang_from_control_command.
14633
14634         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14635         enum ext_lang_bt_status values.  Update call to
14636         apply_ext_lang_frame_filter.
14637         (mi_cmd_stack_list_locals): Ditto.
14638         (mi_cmd_stack_list_args): Ditto.
14639         (mi_cmd_stack_list_variables): Ditto.
14640         * mi/mi-main.c: Delete #include "python/python-internal.h".
14641         Add #include "extension.h".
14642         (mi_cmd_list_features): Replace reference to python internal variable
14643         gdb_python_initialized with call to ext_lang_initialized_p.
14644
14645         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14646         Update to use enum ext_lang_frame_args.  Update to call
14647         apply_ext_lang_frame_filter.
14648         * python/py-framefilter.c (extract_sym): Update to use enum
14649         ext_lang_bt_status.
14650         (extract_value, py_print_type, py_print_value): Ditto.
14651         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14652         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14653         (py_print_frame): Ditto.
14654         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14655         New arg extlang.  Update to use enum ext_lang_bt_status.
14656
14657         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14658         finish_python_initialization.  Replace with call to
14659         finish_ext_lang_initialization.
14660
14661         * typeprint.c (do_free_global_table): Update to call
14662         free_ext_lang_type_printers.
14663         (create_global_typedef_table): Update to call
14664         start_ext_lang_type_printers.
14665         (find_global_typedef): Update to call apply_ext_lang_type_printers.
14666         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14667         (type_print_options): Change type of global_printers from "void *"
14668         to "struct ext_lang_type_printers *".
14669
14670         * value.c (preserve_values): Update to call preserve_ext_lang_values.
14671         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14672         (gdbpy_preserve_values): Renamed from preserve_python_values.
14673         New arg extlang.
14674         (!HAVE_PYTHON, preserve_python_values): Delete.
14675
14676         * utils.c (quit_flag): Delete, moved to extension.c.
14677         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14678         extension.c.
14679
14680         * eval.c: Delete #include "python/python.h".
14681         * main.c: Delete #include "python/python.h".
14682
14683         * defs.h: Update comment.
14684
14685 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
14686
14687         GDB 7.7 released.
14688
14689 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
14690
14691         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14692         defined.
14693
14694 2014-02-05  Yao Qi  <yao@codesourcery.com>
14695
14696         * remote.c (remote_pass_signals): Remove local 'buf' and use
14697         rs->buf.
14698         (remote_program_signals): Likewise.
14699
14700 2014-02-05  Yao Qi  <yao@codesourcery.com>
14701
14702         * ctf.c: Include "inferior.h" and "gdbthread.h".
14703         (CTF_PID): A new macro.
14704         (ctf_open): Call inferior_appeared and add_thread_silent.
14705         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14706         (ctf_thread_alive): New function.
14707         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14708
14709 2014-02-05  Yao Qi  <yao@codesourcery.com>
14710
14711         Revert this patch:
14712
14713         2013-05-24  Yao Qi  <yao@codesourcery.com>
14714
14715         * tracepoint.c (TFILE_PID): Remove.
14716         (tfile_open): Don't add thread and inferior.
14717         (tfile_close): Don't set 'inferior_ptid'.  Don't call
14718         exit_inferior_silent.
14719         (tfile_thread_alive): Remove.
14720         (init_tfile_ops): Don't set field 'to_thread_alive' of
14721         tfile_ops.
14722
14723 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
14724
14725         * remote.c (remote_start_remote): Call remote_check_symbols even
14726         if only symbol-file (not file) has been given.
14727
14728 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14729
14730         * gdbarch.sh (skip_entrypoint): New callback.
14731         * gdbarch.c, gdbarch.h: Regenerate.
14732         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14733         * infrun.c (fill_in_stop_func): Likewise.
14734         * ppc-linux-tdep.c: Include "elf/ppc64.h".
14735         (ppc_elfv2_elf_make_msymbol_special): New function.
14736         (ppc_elfv2_skip_entrypoint): Likewise.
14737         (ppc_linux_init_abi): Install them for ELFv2.
14738
14739 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14740
14741         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14742         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14743         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14744         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
14745         structures returned in GPRs.
14746
14747 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14748
14749         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14750         offset to the stack parameter list for the ELFv2 ABI.
14751
14752 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14753
14754         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14755         set_gdbarch_convert_from_func_ptr_addr and
14756         set_gdbarch_elf_make_msymbol_special for ELFv1.
14757         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14758         function descriptors on ELFv1.
14759         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
14760         set up r12 at function entry.
14761
14762 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14763
14764         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14765         (struct gdbarch_tdep): New member elf_abi.
14766
14767         * rs6000-tdep.c: Include "elf/ppc64.h".
14768         (rs6000_gdbarch_init): Detect ELF ABI version.
14769
14770 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14771
14772         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14773         within a register pair holding a DFP 128-bit value on little-endian.
14774         (ppc64_sysv_abi_return_value_base): Likewise.
14775         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14776         (dfp_pseudo_register_write): Likewise.
14777
14778 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14779
14780         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14781         offset on little-endian when passing _Decimal32.
14782         (ppc64_sysv_abi_return_value_base): Likewise for return values.
14783
14784 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14785
14786         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14787         of the overlapped FP register within the VSX register on little-
14788         endian platforms.
14789         (efpr_pseudo_register_write): Likewise.
14790
14791 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14792
14793         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14794         offset on little-endian when passing small structures.
14795
14796 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14797
14798         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14799         (struct ppc64_sysv_argpos): New data structure.
14800         (ppc64_sysv_abi_push_float): Remove.
14801         (ppc64_sysv_abi_push_val): New function.
14802         (ppc64_sysv_abi_push_integer): Likewise.
14803         (ppc64_sysv_abi_push_freg): Likewise.
14804         (ppc64_sysv_abi_push_vreg): Likewise.
14805         (ppc64_sysv_abi_push_param): Likewise.
14806         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14807         (ppc64_sysv_abi_return_value_base): New function.
14808         (ppc64_sysv_abi_return_value): Refactor to use it.
14809
14810 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14811
14812         * NEWS: Document new target powerpc64le-*-linux*.
14813
14814 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
14815
14816         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14817         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14818         core dumps.
14819         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14820         register set used in ELF core dumps.  Add floating-point register set.
14821
14822 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
14823
14824         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14825         dwarf2_to_gdb[] table using symbolic constants.  Adjust
14826         penultimate entry from number representing the PC register
14827         to symbolic constant representing the MDR register.  Add
14828         constant for the PC register to the end of the table.
14829
14830 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
14831
14832         * bsd-kvm.c: Include <sys/param.h>
14833
14834 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
14835
14836         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14837
14838 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
14839
14840         * ada-lang.h (clear_ada_sym_cache): Delete.
14841
14842 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
14843
14844         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14845
14846 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
14847
14848         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14849           the sigreturn register save area only if the syscall is
14850           sigreturn.
14851
14852 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
14853
14854         * valops.c (value_slice): Minor reformatting.
14855
14856 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
14857
14858         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14859
14860 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
14861
14862         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14863         New static globals.
14864         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14865         (ada_ignore_descriptive_types_p): New static global.
14866         (find_parallel_type_by_descriptive_type): Return immediately
14867         if ada_ignore_descriptive_types_p is set.
14868         (_initialize_ada_language): Register new commands "maintenance
14869         set ada", "maintenance show ada", "maintenance set ada
14870         ignore-descriptive-types" and "maintenance show ada
14871         ignore-descriptive-types".
14872         * NEWS: Add entry for new "maint ada set/show
14873         ignore-descriptive-types" commands.
14874
14875 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
14876
14877         * record-btrace.c (record_btrace_close): Call btrace_teardown
14878         for all threads.
14879
14880 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14881
14882         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14883         "ui-out.h".
14884
14885 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14886
14887         * ada-typeprint (type_is_full_subrange_of_target_type):
14888         New function.
14889         (print_range): Add parameter bounds_prefered_p.  If not set,
14890         try printing range types using the name of their base type.
14891         (print_range_type): Add parameter bounds_prefered_p.
14892         Use it in call to print_range.
14893         (print_array_type, ada_print_type): Update calls to print_range
14894         and print_range_type.
14895
14896 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14897
14898         * ada-typeprint.c (print_array_type, print_choices, print_range)
14899         (print_range_bound, print_dynamic_range_bound, print_range_type):
14900         Remove declaration.
14901
14902 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14903
14904         * ada-typeprint.c (print_range): Add missing empty line
14905         after local declaration.
14906
14907 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14908
14909         * ada-valprint.c (print_optional_low_bound): Get index_type's
14910         target type for as long as it is a TYPE_CODE_RANGE.
14911
14912 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14913
14914         * procfs.c (procfs_make_note_section): Remove assertion and
14915         associated comment.
14916
14917 2014-01-24  Yao Qi  <yao@codesourcery.com>
14918
14919         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14920         * corelow.c (get_core_siginfo): Likewise.
14921
14922 2014-01-24  Yao Qi  <yao@codesourcery.com>
14923
14924         * remote.c (remote_write_bytes_aux): Change type of 'len' to
14925         ULONGEST.  Don't check 'len' is negative.
14926         (remote_write_bytes):  Change type of 'len' to ULONGEST.
14927
14928 2014-01-23  Tom Tromey  <tromey@redhat.com>
14929
14930         PR python/16485:
14931         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14932         Handle exception from frame.block.
14933         (FrameVars.fetch_frame_locals): Likewise.
14934
14935 2014-01-23  Tom Tromey  <tromey@redhat.com>
14936
14937         PR python/16487:
14938         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14939         on a NULL pointer.  Move "goto error" to correct place.
14940
14941 2014-01-23  Tom Tromey  <tromey@redhat.com>
14942
14943         PR python/16491:
14944         * python/py-framefilter.c (apply_frame_filter): Call
14945         ensure_python_env after computing gdbarch.
14946
14947 2014-01-23  Yao Qi  <yao@codesourcery.com>
14948
14949         * target.c (raw_memory_xfer_partial): Change argument type
14950         from void * to gdb_byte *.
14951         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14952
14953 2014-01-22  Doug Evans  <dje@google.com>
14954
14955         New gdbserver option --debug-format=timestamp.
14956         * NEWS: Mention it.
14957
14958 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
14959
14960         * syscalls/s390x-linux.xml: New file.
14961         * syscalls/s390-linux.xml: New file.
14962         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14963         (XML_SYSCALL_FILENAME_S390X): Likewise.
14964         (op_svc): New enum value for SVC opcode.
14965         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14966         (s390_linux_get_syscall_number): New function.
14967         (s390_gdbarch_init): Register '*get_syscall_number' and the
14968         syscall xml file name.
14969         * data-directory/Makefile.in (SYSCALLS_FILES): Add
14970         "s390-linux.xml" and "s390x-linux.xml".
14971         * NEWS: Announce new feature.
14972
14973 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
14974
14975         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14976
14977 2014-01-22  Pedro Alves  <palves@redhat.com>
14978
14979         * xtensa-config.c: Include defs.h.
14980
14981 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
14982
14983         * common/common-utils.h: Add "ARI:" comment beside __func__
14984         reference.
14985
14986 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
14987
14988         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14989         documentation a bit.
14990
14991 2014-01-21  Roland McGrath  <mcgrathr@google.com>
14992
14993         * configure.ac: Call AM_PROG_INSTALL_STRIP.
14994         * configure: Regenerate.
14995         * aclocal.m4: Regenerate.
14996         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14997         New substituted variables.
14998         (install-strip): New target.
14999         (INSTALL_SCRIPT): New substituted variable.
15000         (FLAGS_TO_PASS): Add it.
15001         (install-only): Use $(INSTALL_SCRIPT) rather than
15002         $(INSTALL_PROGRAM) for gcore.
15003
15004 2014-01-20  Tom Tromey  <tromey@redhat.com>
15005
15006         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
15007         together.
15008
15009 2014-01-20  Tom Tromey  <tromey@redhat.com>
15010
15011         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
15012         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
15013         (deprecated_cmd_warning, complete_on_cmdlist): Update.
15014         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
15015         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
15016         (struct cmd_list_element) <flags>: Remove.
15017         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
15018         doc_allocated>: New fields.
15019         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
15020         bitfields.
15021         * maint.c (maintenance_do_deprecate): Update.
15022         * top.c (execute_command): Update.
15023
15024 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
15025
15026         * xtensa-linux-nat.c: Include asm/ptrace.h.
15027
15028 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
15029
15030         * Makefile.in (SFILES): Add d-support.c.
15031         (COMMON_OBS): Add d-support.o.
15032         * d-lang.h (d_parse_symbol): Add comment, now defined in
15033         d-support.c.
15034         * d-lang.c (parse_call_convention)
15035         (parse_attributes, parse_function_types)
15036         (parse_function_args, parse_type, parse_identifier)
15037         (call_convention_p, d_parse_symbol): Move functions to ...
15038         * d-support.c: ... New file.
15039
15040 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
15041
15042         * d-lang.h (d_parse_symbol): Add declaration.
15043         * d-lang.c (extract_identifiers)
15044         (extract_type_info): Remove functions.
15045         (parse_call_convention, parse_attributes)
15046         (parse_function_types, parse_function_args)
15047         (parse_type, parse_identifier, call_convention_p)
15048         (d_parse_symbol): New functions.
15049         (d_demangle): Use d_parse_symbol to demangle D symbols.
15050
15051 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
15052
15053         * d-lang.h (struct builtin_d_type): New data type.
15054         (builtin_d_type): Add declaration.
15055         * d-lang.c (d_language_arch_info, build_d_types)
15056         (builtin_d_type): New functions.
15057         (enum d_primitive_types): New data type.
15058         (d_language_defn): Change c_language_arch_info to
15059         d_language_arch_info.
15060         (d_type_data): New static variable.
15061         (_initialize_d_language): Initialize d_type_data.
15062
15063 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
15064
15065         * d-lang.h (d_main_name): Add declaration.
15066         * d-lang.c (d_main_name): New function.
15067         * symtab.c (find_main_name): Add call to d_main_name.
15068
15069 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
15070
15071         * d-lang.c (d_language_defn): Change macro_expansion_c to
15072         macro_expansion_no.
15073
15074 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
15075
15076         * MAINTAINERS: Add myself as a write-after-approval maintainer.
15077
15078 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
15079
15080         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
15081         gdb_exception" declaration.
15082         * remote.c (getpkt_or_notif_sane): Likewise.
15083
15084 2014-01-17  Doug Evans  <dje@google.com>
15085
15086         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
15087         function, contents of dirnames_to_char_ptr_vec_append moved here.
15088         (delim_string_to_char_ptr_vec): New function.
15089         (dirnames_to_char_ptr_vec_append): Rewrite.
15090         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
15091
15092 2014-01-17  Doug Evans  <dje@google.com>
15093
15094         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
15095         and moved here ...
15096         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
15097         #include "common-utils.h".
15098         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
15099         * common/vec.h (VEC_ASSERT_PASS): Update.
15100         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
15101         (MACH_CHECK_ERROR): Update.
15102
15103 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
15104
15105         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
15106         comments.
15107         * gdbarch.h: Regenerate.
15108
15109 2014-01-16  Tom Tromey  <tromey@redhat.com>
15110
15111         * value.c (struct value) <regnum>: Move earlier.
15112
15113 2014-01-16  Tom Tromey  <tromey@redhat.com>
15114
15115         * remote.c (extended_remote_create_inferior): Rename from
15116         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
15117         old implementation.
15118
15119 2014-01-16  Pedro Alves  <palves@redhat.com>
15120
15121         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
15122         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
15123         the backchain.
15124
15125 2014-01-16  Doug Evans  <dje@google.com>
15126
15127         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
15128
15129 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15130
15131         * btrace.h (btrace_thread_flag): New.
15132         (struct btrace_thread_info) <flags>: New.
15133         * record-btrace.c (record_btrace_resume_thread)
15134         (record_btrace_find_thread_to_move, btrace_step_no_history)
15135         (btrace_step_stopped, record_btrace_start_replaying)
15136         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
15137         (record_btrace_find_resume_thread): New.
15138         (record_btrace_resume, record_btrace_wait): Extend.
15139         (record_btrace_can_execute_reverse): New.
15140         (record_btrace_open): Fail in non-stop mode.
15141         (record_btrace_set_replay): Split into this, ...
15142         (record_btrace_stop_replaying): ... this, ...
15143         (record_btrace_clear_histories): ... and this.
15144         (init_record_btrace_ops): Init to_can_execute_reverse.
15145         * NEWS: Announce it.
15146
15147 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15148
15149         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15150         (forward_target_decr_pc_after_break)
15151         (target_decr_pc_after_break): New.
15152         * target.c (forward_target_decr_pc_after_break)
15153         (target_decr_pc_after_break): New.
15154         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15155         instead of gdbarch_decr_pc_after_break.
15156         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15157         instead of gdbarch_decr_pc_after_break.
15158         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15159         instead of gdbarch_decr_pc_after_break.
15160         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15161         instead of gdbarch_decr_pc_after_break.
15162         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15163         instead of gdbarch_decr_pc_after_break.
15164         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15165         instead of gdbarch_decr_pc_after_break.
15166
15167 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15168
15169         * btrace.c: Include regcache.h.
15170         (btrace_add_pc): New.
15171         (btrace_enable): Call btrace_add_pc.
15172         (btrace_is_empty): New.
15173         * btrace.h (btrace_is_empty): New.
15174         * record-btrace.c (require_btrace, record_btrace_info): Call
15175         btrace_is_empty.
15176
15177 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15178
15179         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15180         Support delta reads.
15181         (linux_disable_btrace): Change return type.
15182         * common/linux-btrace.h (linux_read_btrace): Change parameters
15183         and return type to allow error reporting.  Update users.
15184         (linux_disable_btrace): Change return type.  Update users.
15185         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15186         New.
15187         (btrace_error): New.
15188         (btrace_block) <begin>: Comment on BEGIN == 0.
15189         * btrace.c (btrace_compute_ftrace): Start from the end of
15190         the current trace.
15191         (btrace_stitch_trace, btrace_clear_history): New.
15192         (btrace_fetch): Read delta trace, return if replaying.
15193         (btrace_clear): Move clear history code to btrace_clear_history.
15194         (parse_xml_btrace): Throw an error if parsing failed.
15195         * target.h (struct target_ops) <to_read_btrace>: Change parameters
15196         and return type to allow error reporting.
15197         (target_read_btrace): Change parameters and return type to allow
15198         error reporting.
15199         * target.c (target_read_btrace): Update.
15200         * remote.c (remote_read_btrace): Support delta reads.  Pass
15201         errors on.
15202         * NEWS: Announce it.
15203
15204 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15205
15206         * record.h (record_btrace_frame_unwind)
15207         (record_btrace_tailcall_frame_unwind): New declarations.
15208         * dwarf2-frame: Include record.h
15209         (dwarf2_frame_cfa): Throw an error for btrace frames.
15210         * record-btrace.c: Include hashtab.h.
15211         (btrace_get_bfun_name): New.
15212         (btrace_call_history): Call btrace_get_bfun_name.
15213         (struct btrace_frame_cache): New.
15214         (bfcache): New.
15215         (bfcache_hash, bfcache_eq, bfcache_new): New.
15216         (btrace_get_frame_function): New.
15217         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15218         (record_btrace_frame_this_id): Compute own id.
15219         (record_btrace_frame_prev_register): Provide PC, throw_error
15220         for all other registers.
15221         (record_btrace_frame_sniffer): Detect btrace frames.
15222         (record_btrace_tailcall_frame_sniffer): New.
15223         (record_btrace_frame_dealloc_cache): New.
15224         (record_btrace_frame_unwind): Add new functions.
15225         (record_btrace_tailcall_frame_unwind): New.
15226         (_initialize_record_btrace): Allocate cache.
15227         * btrace.c (btrace_clear): Call reinit_frame_cache.
15228         * NEWS: Announce it.
15229
15230 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15231
15232         * record-btrace.c (record_btrace_set_replay)
15233         (record_btrace_goto_begin, record_btrace_goto_end)
15234         (record_btrace_goto): New.
15235         (init_record_btrace_ops): Initialize them.
15236         * NEWS: Announce it.
15237
15238 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15239
15240         * record-btrace.c (record_btrace_find_new_threads)
15241         (record_btrace_thread_alive): New.
15242         (init_record_btrace_ops): Initialize to_find_new_threads and
15243         to_thread_alive.
15244
15245 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15246
15247         * record-btrace.c (record_btrace_resume): New.
15248         (record_btrace_wait): New.
15249         (init_record_btrace_ops): Initialize to_wait and to_resume.
15250
15251 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15252
15253         * record-btrace.c (record_btrace_xfer_partial)
15254         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15255         (record_btrace_allow_memory_access): New.
15256         (init_record_btrace_ops): Initialize new methods.
15257         * target.c (raw_memory_xfer_partial): Bail out if target reports
15258         that this memory is not available.
15259
15260 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15261
15262         * target.h (target_ops) <to_insert_breakpoint>
15263         <to_remove_breakpoint>: Add target_ops parameter.
15264         (forward_target_insert_breakpoint): New.
15265         (forward_target_remove_breakpoint): New.
15266         (memory_remove_breakpoint, memory_insert_breakpoint):
15267         Add target_ops parameter.
15268         * target.c (target_insert_breakpoint): Split into this and ...
15269         (forward_target_insert_breakpoint): ... this.
15270         (target_remove_breakpoint): Split into this and ...
15271         (forward_target_remove_breakpoint): ... this.
15272         (debug_to_insert_breakpoint): Add target_ops parameter.
15273         Call forward_target_insert_breakpoint.
15274         (debug_to_remove_breakpoint): Add target_ops parameter.
15275         Call forward_target_remove_breakpoint.
15276         (update_current_target): Do not inherit or default to_insert_breakpoint
15277         and to_remove_breakpoint.
15278         * corelow.c (ignore): Add target_ops parameter.
15279         * exec.c (ignore): Add target_ops parameter.
15280         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15281         Add target_ops parameter.
15282         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15283         Add target_ops parameter.
15284         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15285         Add target_ops parameter.
15286         * record-full.c (record_full_beneath_to_insert_breakpoint)
15287         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15288         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15289         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15290         (record_full_core_remove_breakpoint): Add target_ops parameter.
15291         Update users.
15292         (record_full_beneath_to_insert_breakpoint_ops)
15293         (record_full_beneath_to_remove_breakpoint_ops)
15294         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15295         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15296         tmp_to_remove_breakpoint_ops,
15297         record_full_beneath_to_insert_breakpoint_ops, and
15298         record_full_beneath_to_remove_breakpoint_ops.
15299         * remote-m32r-sdi.c (m32r_insert_breakpoint)
15300         (m32r_remove_breakpoint): Add target_ops parameter.
15301         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15302         Add target_ops parameter.
15303         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15304         Add target_ops parameter.
15305
15306 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
15307             Markus Metzger  <markus.t.metzger@intel.com>
15308
15309         * record-btrace.c: Include frame-unwind.h.
15310         (record_btrace_frame_unwind_stop_reason)
15311         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15312         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15313         New.
15314         (init_record_btrace_ops): Install it.
15315
15316 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
15317
15318         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15319         get_prev_frame_1.
15320
15321 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
15322
15323         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15324         earlier.
15325
15326 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
15327
15328         * frame-unwind.c: Include target.h.
15329         (frame_unwind_try_unwinder): New function with code from ...
15330         (frame_unwind_find_by_frame): ... here.  New variable
15331         unwinder_from_target, call also target_get_unwinder)
15332         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15333         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15334         * target.h (struct target_ops): New fields to_get_unwinder and
15335         to_get_tailcall_unwinder.
15336         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15337
15338 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15339
15340         * record-btrace.c (record_btrace_fetch_registers)
15341         (record_btrace_store_registers)
15342         (record_btrace_to_prepare_to_store): New.
15343         (init_record_btrace_ops): Add the above.
15344
15345 2014-01-16  Tom Tromey  <tromey@redhat.com>
15346
15347         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15348         * target.h (struct target_ops) <to_prepare_to_store>: Add
15349         argument.
15350         (target_prepare_to_store): Add argument.
15351         * target.c (debug_to_prepare_to_store): Add argument.
15352         (update_current_target): Update.
15353         * remote.c (remote_prepare_to_store): Add 'self' argument.
15354         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15355         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15356         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15357         * record-full.c (record_full_core_prepare_to_store): Add 'self'
15358         argument.
15359         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15360         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15361         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15362         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15363         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15364
15365 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15366
15367         * btrace.h (replay) <replay>: New.
15368         (btrace_is_replaying): New.
15369         * btrace.c (btrace_clear): Free replay iterator.
15370         (btrace_is_replaying): New.
15371         * record-btrace.c (record_btrace_is_replaying): New.
15372         (record_btrace_info): Print insn number if replaying.
15373         (record_btrace_insn_history): Start at replay position.
15374         (record_btrace_call_history): Start at replay position.
15375         (init_record_btrace_ops): Init to_record_is_replaying.
15376
15377 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15378
15379         * record-btrace.c (record_btrace_insn_history_range): Include
15380         end.
15381         (record_btrace_insn_history_from): Adjust range.
15382         (record_btrace_call_history_range): Include
15383         end.
15384         (record_btrace_call_history_from): Adjust range.
15385         * NEWS: Announce changes.
15386
15387 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15388
15389         * record.h (enum record_print_flag)
15390         <record_print_indent_calls>: New.
15391         * record.c (get_call_history_modifiers): Recognize /c modifier.
15392         (_initialize_record): Document /c modifier.
15393         * record-btrace.c (btrace_call_history): Add btinfo parameter.
15394         Reorder fields.  Optionally indent the function name.  Update
15395         all users.
15396         * NEWS: Announce changes.
15397
15398 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15399
15400         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15401
15402 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15403
15404         * btrace.c (ftrace_new_function): Start counting at one.
15405         * record-btrace.c (record_btrace_info): Adjust number of calls
15406         and insns.
15407         * NEWS: Announce it.
15408
15409 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15410
15411         * record-btrace.c (btrace_call_history_insn_range): Print
15412         insn range as [begin, end].
15413
15414 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15415
15416         * btrace.h (struct btrace_func_link): New.
15417         (enum btrace_function_flag): New.
15418         (struct btrace_inst): Rename to ...
15419         (struct btrace_insn): ...this. Update all users.
15420         (struct btrace_func) <ibegin, iend>: Remove.
15421         (struct btrace_func_link): New.
15422         (struct btrace_func): Rename to ...
15423         (struct btrace_function): ...this. Update all users.
15424         (struct btrace_function) <segment, flow, up, insn, insn_offset)
15425         (number, level, flags>: New.
15426         (struct btrace_insn_iterator): Rename to ...
15427         (struct btrace_insn_history): ...this.
15428         Update all users.
15429         (struct btrace_insn_iterator, btrace_call_iterator): New.
15430         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15431         (struct btrace_target_info) <begin, end, level>
15432         <insn_history, call_history>: New.
15433         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15434         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15435         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15436         (btrace_call_number, btrace_call_begin, btrace_call_end)
15437         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15438         (btrace_find_function_by_number, btrace_set_insn_history)
15439         (btrace_set_call_history): New.
15440         * btrace.c (btrace_init_insn_iterator)
15441         (btrace_init_func_iterator, compute_itrace): Remove.
15442         (ftrace_print_function_name, ftrace_print_filename)
15443         (ftrace_skip_file): Change
15444         parameter to const.
15445         (ftrace_init_func): Remove.
15446         (ftrace_debug): Use new btrace_function fields.
15447         (ftrace_function_switched): Also consider gaining and
15448         losing symbol information).
15449         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15450         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15451         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15452         New.
15453         (ftrace_new_function): Move. Remove debug print.
15454         (ftrace_update_lines, ftrace_update_insns): New.
15455         (ftrace_update_function): Check for call, ret, and jump.
15456         (compute_ftrace): Renamed to ...
15457         (btrace_compute_ftrace): ...this. Rewritten to compute call
15458         stack.
15459         (btrace_fetch, btrace_clear): Updated.
15460         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15461         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15462         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15463         (btrace_call_number, btrace_call_begin, btrace_call_end)
15464         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15465         (btrace_find_function_by_number, btrace_set_insn_history)
15466         (btrace_set_call_history): New.
15467         * record-btrace.c (require_btrace): Use new btrace thread
15468         info fields.
15469         (record_btrace_info, btrace_insn_history)
15470         (record_btrace_insn_history, record_btrace_insn_history_range):
15471         Use new btrace thread info fields and new iterator.
15472         (btrace_func_history_src_line): Rename to ...
15473         (btrace_call_history_src_line): ...this. Use new btrace
15474         thread info fields.
15475         (btrace_func_history): Rename to ...
15476         (btrace_call_history): ...this. Use new btrace thread info
15477         fields and new iterator.
15478         (record_btrace_call_history, record_btrace_call_history_range):
15479         Use new btrace thread info fields and new iterator.
15480
15481 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15482
15483         * frame.h (frame_id_build_unavailable_stack_special): New.
15484         * frame.c (frame_id_build_unavailable_stack_special): New.
15485
15486 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15487
15488         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15489         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15490         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15491         to gdbarch.
15492         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15493         (i386_insn_is_jump, i386_jmp_p): New.
15494         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15495         insn_is_jump to gdbarch.
15496         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15497         * gdbarch.h: Regenerated.
15498         * gdbarch.c: Regenerated.
15499         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15500         (default_insn_is_jump): New.
15501         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15502         (default_insn_is_jump): New.
15503
15504 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15505
15506         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15507         Change to ...
15508         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
15509         (btrace_read_type) <btrace_read_new>: Change to ...
15510         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
15511
15512 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15513
15514         * common/linux-btrace.c (linux_read_btrace): Free trace from
15515         previous iteration.
15516
15517 2014-01-15  Doug Evans  <dje@google.com>
15518
15519         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15520         uint32_t.
15521
15522 2014-01-15  Tom Tromey  <tromey@redhat.com>
15523
15524         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15525         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15526         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15527         (set_objfile_main_name): New function.
15528         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15529         language_of_main>: New fields.
15530         (set_objfile_main_name): Declare.
15531         * symtab.c (find_main_name): Loop over objfiles to find the main
15532         name and language.
15533         (set_main_name): Now static.
15534         (get_main_info): Add comment.
15535         * symtab.h (set_main_name): Don't declare.
15536
15537 2014-01-15  Tom Tromey  <tromey@redhat.com>
15538
15539         * symtab.c (main_progspace_key): New global.
15540         (struct main_info): New.
15541         (name_of_main, language_of_main): Remove.
15542         (get_main_info, main_info_cleanup): New function.
15543         (set_main_name, main_name, main_language): Use get_main_info.
15544         (_initialize_symtab): Initialize main_progspace_key.
15545
15546 2014-01-15  Tom Tromey  <tromey@redhat.com>
15547
15548         * dbxread.c (process_one_symbol): Update.
15549         * dwarf2read.c (read_partial_die): Update.
15550         * symfile.c (set_initial_language): Call main_language.
15551         * symtab.c (language_of_main): Now static.
15552         (set_main_name): Add 'lang' parameter.
15553         (find_main_name): Update.
15554         (main_language): New function.
15555         (symtab_observer_executable_changed): Update.
15556         * symtab.h (set_main_name): Update.
15557         (language_of_main): Remove.
15558         (main_language): Declare.
15559
15560 2014-01-15  Tom Tromey  <tromey@redhat.com>
15561
15562         * symfile.c (init_entry_point_info): Use new "initialized" field.
15563         Update.
15564         * objfiles.h (struct entry_point) <initialized>: New field.
15565         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15566         (struct objfile) <ei>: ...here.  Remove.
15567         * objfiles.c (entry_point_address_query): Update.
15568
15569 2014-01-15  Tom Tromey  <tromey@redhat.com>
15570
15571         * objfiles.c (entry_point_address_query): Relocate entry point
15572         address.
15573         (objfile_relocate1): Do not relocate entry point address.
15574         * objfiles.h (struct entry_info) <entry_point>: Update comment.
15575         <the_bfd_section_index>: New field.
15576         * symfile.c (init_entry_point_info): Find the entry point's
15577         section.
15578
15579 2014-01-15  Tom Tromey  <tromey@redhat.com>
15580
15581         * solib-frv.c (enable_break): Use entry_point_address_query.
15582
15583 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15584
15585         * NEWS: Add note on improved process record-replay on
15586         arm*-linux* targets.
15587
15588 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15589
15590         * arm-tdep.c (enum arm_record_result): New enum.
15591         (arm_record_unsupported_insn): New function.
15592         (arm_record_coproc_data_proc): Removed.
15593         (thumb2_record_ld_st_multiple): New function.
15594         (thumb2_record_ld_st_dual_ex_tbb): New function.
15595         (thumb2_record_data_proc_sreg_mimm): New function.
15596         (thumb2_record_ps_dest_generic): New function.
15597         (thumb2_record_branch_misc_cntrl): New function.
15598         (thumb2_record_str_single_data): New function.
15599         (thumb2_record_ld_mem_hints): New function.
15600         (thumb2_record_ld_word): New function.
15601         (thumb2_record_lmul_lmla_div): New function.
15602         (thumb2_record_decode_insn_handler): New function.
15603         (decode_insn): Add thumb32 instruction handlers.
15604
15605 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15606
15607         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15608         (struct arm_linux_record_tdep): Declare.
15609         (arm_canonicalize_syscall): New function.
15610         (arm_all_but_pc_registers_record): New function.
15611         (arm_linux_syscall_record): New function.
15612         (arm_linux_init_abi): Add syscall recording constructs.
15613         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15614         decoding.  (arm_record_coproc_data_proc): Update arm syscall
15615         decoding.
15616         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15617         <arm_syscall_record>: New field.
15618         * configure.tgt (arm*-*-linux*): Add linux-record.o to
15619         gdb_target_obs.
15620
15621 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15622
15623         * arm-tdep.c (thumb_record_misc): Update to use sp as base
15624         register for push instruction recording.
15625
15626 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15627
15628         * arm-tdep.c (thumb_record_misc): Update to correct logical
15629         error while recording ldm, ldmia and pop instructions.
15630
15631 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15632
15633         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15634
15635 2014-01-15  Pedro Alves  <palves@redhat.com>
15636
15637         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15638         (go32_resume, go32_fetch_registers, store_register)
15639         (go32_store_registers, go32_prepare_to_store)
15640         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15641         (go32_create_inferior, go32_can_run, go32_terminal_init)
15642         (go32_terminal_inferior, go32_terminal_ours): Delete forward
15643         declarations.
15644
15645 2014-01-15  Tom Tromey  <tromey@redhat.com>
15646
15647         * target.h (async_callback_ftype): New typedef.
15648         (struct target_ops) <to_async>: Use it.
15649
15650 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
15651
15652         * python/py-value.c (get_field_type): Remove unnecessary curly
15653         braces for single-statement if block.
15654
15655 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
15656
15657         * python/py-type.c (convert_field): Add missing empty line
15658         after declarations.
15659
15660 2014-01-14  Doug Evans  <dje@google.com>
15661
15662         * symfile.h (expand_symtabs_matching): Renamed from
15663         expand_partial_symbol_names.  Update prototype.
15664         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15665         * symfile.c (expand_symtabs_matching): Renamed from
15666         expand_partial_symbol_names.  New args file_matcher, kind.
15667         Rename arg fun to symbol_matcher.
15668         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15669         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15670         ada_expand_partial_symbol_name.
15671         (ada_make_symbol_completion_list): Update to call
15672         expand_symtabs_matching.
15673         (ada_add_global_exceptions): Call expand_symtabs_matching.
15674         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15675         call map_symbol_filenames.
15676         * symtab.c (sources_info): Update to call map_symbol_filenames.
15677         (search_symbols): Call expand_symtabs_matching.
15678         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15679         (default_make_symbol_completion_list_break_on): Update to call
15680         expand_symtabs_matching.
15681         (make_source_files_completion_list): Update to call
15682         map_symbol_filenames.
15683
15684 2014-01-14  Doug Evans  <dje@google.com>
15685
15686         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15687         (expand_symtabs_symbol_matcher_ftype): New typedef.
15688         (quick_symbol_functions.expand_symtabs_matching): Update to use.
15689         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15690         * symfile.c (expand_partial_symbol_names): Update to use
15691         expand_symtabs_symbol_matcher_ftype.
15692         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15693         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15694         Arg name_matcher renamed to symbol_matcher.
15695         * psymtab.c (recursively_search_psymtabs): Update to use
15696         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
15697         sym_matcher.
15698         (expand_symtabs_matching_via_partial): Update to use
15699         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15700         Arg name_matcher renamed to symbol_matcher.
15701
15702 2014-01-14  Doug Evans  <dje@google.com>
15703
15704         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15705         (map_partial_symbol_filenames): Ditto.
15706         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15707         (map_partial_symbol_filenames): Ditto.
15708         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15709         (map_partial_symbol_filenames): Ditto.
15710         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15711         (map_partial_symbol_filenames): Ditto.
15712         * symtab.c: Delete #include "psymtab.h".
15713
15714 2014-01-14  Pedro Alves  <palves@redhat.com>
15715             Tom Tromey  <tromey@redhat.com>
15716
15717         * infrun.c (use_displaced_stepping): Use find_record_target
15718         instead of RECORD_IS_USED.
15719         (adjust_pc_after_break): Use record_full_is_used instead of
15720         RECORD_IS_USED.
15721         * record-btrace.c (record_btrace_open): Call record_preopen
15722         instead of checking RECORD_IS_USED.
15723         * record-full.c (record_full_shortname)
15724         (record_full_core_shortname): New globals.
15725         (record_full_is_used): New function.
15726         (find_full_open): Call record_preopen instead of checking
15727         RECORD_IS_USED.
15728         (init_record_full_ops): Set the target's shortname to
15729         record_full_shortname.
15730         (init_record_full_core_ops): Set the target's shortname to
15731         record_full_core_shortname.
15732         * record-full.h (record_full_is_used): Declare.
15733         * record.c (find_record_target): Make extern.
15734         (record_preopen): New function.
15735         * record.h (RECORD_IS_USED): Delete macro.
15736         (find_record_target, record_preopen): Declare functions.
15737
15738 2014-01-14  Yao Qi  <yao@codesourcery.com>
15739
15740         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15741         'len''s type to ULONGEST.
15742         (core_xfer_shared_libraries_aix): Likewise.
15743         * gdbarch.c, gdbarch.h: Regenerated.
15744         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15745         Change type of 'len' to ULONGEST.
15746         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15747         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15748
15749 2014-01-14  Yao Qi  <yao@codesourcery.com>
15750
15751         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15752         type of 'len' to ULONGEST.
15753         (linux_xfer_osdata_processgroups): Likewise.
15754         (linux_xfer_osdata_threads): Likewise.
15755         (linux_xfer_osdata_fds): Likewise.
15756         (linux_xfer_osdata_isockets): Likewise.
15757         (linux_xfer_osdata_shm): Likewise.
15758         (linux_xfer_osdata_sem): Likewise.
15759         (linux_xfer_osdata_msg): Likewise.
15760         (linux_common_xfer_osdata): Likewise.
15761         (struct osdata_type) <getter>: Likewise.
15762         * common/linux-osdata.h (linux_common_xfer_osdata): Update
15763         the declaration.
15764
15765 2014-01-14  Yao Qi  <yao@codesourcery.com>
15766
15767         * target.h (target_xfer_partial_ftype): Update.
15768         (struct target_ops) <to_xfer_partial>: Change 'len' type to
15769         ULONGEST.
15770         * aix-thread.c (aix_thread_xfer_partial): Change type of
15771         argument 'len' to ULONGEST.
15772         * auxv.c (procfs_xfer_auxv): Likewise.
15773         (ld_so_xfer_auxv): Likewise.
15774         (memory_xfer_auxv): Likewise.
15775         * bfd-target.c (target_bfd_xfer_partial): Likewise.
15776         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15777         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15778         * corelow.c (core_xfer_partial): Likewise.
15779         * ctf.c (ctf_xfer_partial): Likewise.
15780         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
15781         '%u'.
15782         (darwin_read_dyld_info): Likewise.
15783         (darwin_xfer_partial): Likewise.
15784         * exec.c (section_table_xfer_memory_partial): Likewise.
15785         (exec_xfer_partial): Likewise.
15786         * exec.h (section_table_xfer_memory_partial): Update
15787         declaration.
15788         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
15789         instead of plongest.
15790         (gnu_xfer_partial): Likewise.
15791         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15792         (ia64_hpux_xfer_solib_got): Likewise.
15793         (ia64_hpux_xfer_partial): Likewise.
15794         * ia64-linux-nat.c (ia64_linux_xfer_partial):
15795         * inf-ptrace.c (inf_ptrace_xfer_partial):
15796         * inf-ttrace.c (inf_ttrace_xfer_partial):
15797         * linux-nat.c (linux_xfer_siginfo): Likewise.
15798         (linux_nat_xfer_partial): Likewise.
15799         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15800         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15801         * monitor.c (monitor_xfer_memory): Likewise.
15802         (monitor_xfer_partial): Likewise.
15803         * procfs.c (procfs_xfer_partial): Likewise.
15804         * record-full.c (record_full_xfer_partial): Likewise.
15805         (record_full_core_xfer_partial): Likewise.
15806         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
15807         instead of plongest.
15808         (gdbsim_xfer_partial): Likewise.
15809         * remote.c (remote_xfer_partial): Likewise.
15810         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15811         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15812         declaration.
15813         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15814         (rs6000_xfer_shared_libraries): Likewise.
15815         * sol-thread.c (sol_thread_xfer_partial): Likewise.
15816         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15817         (sparc_xfer_partial): Likewise.
15818         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15819         (spu_xfer_partial): Likewise.
15820         * spu-multiarch.c (spu_xfer_partial): Likewise.
15821         * target.c (target_read_live_memory): Likewise.
15822         (memory_xfer_live_readonly_partial): Likewise.
15823         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15824         (target_xfer_partial, default_xfer_partial): Likewise.
15825         (current_xfer_partial): Likewise.
15826         * tracepoint.c (tfile_xfer_partial): Likewise.
15827         * windows-nat.c (windows_xfer_memory): Likewise.  Call
15828         pulongest instead of plongest.
15829         (windows_xfer_partial): Likewise.
15830         (windows_xfer_shared_libraries): Likewise.
15831
15832 2014-01-14  Yao Qi  <yao@codesourcery.com>
15833
15834         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15835         target_xfer_partial_ftype.
15836
15837 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
15838
15839         PR python/15464
15840         PR python/16113
15841         * valops.c (value_struct_elt_bitpos): New function
15842         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15843         object to 'None' if the field name is an empty string ("").
15844         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15845         attribute to look for a field when 'name' is 'None'.
15846         (get_field_type): New function
15847
15848 2014-01-13  Doug Evans  <dje@google.com>
15849
15850         PR symtab/16426
15851         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15852         (try_open_dwop_file): Ditto.
15853         * gdb_bfd.c: #include "vec.h".
15854         (bfdp): New typedef.
15855         (struct gdb_bfd_data): New member included_bfds.
15856         (gdb_bfd_unref): Unref all included bfds.
15857         (gdb_bfd_record_inclusion): New function.
15858         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15859
15860 2014-01-13  Tom Tromey  <tromey@redhat.com>
15861
15862         * gdbcore.h (deprecated_core_resize_section_table): Remove.
15863
15864 2014-01-13  Tom Tromey  <tromey@redhat.com>
15865
15866         * defs.h (use_windows): Remove.
15867         * gdb.c (main): Update.
15868         * main.c (captured_main, gdb_main): Update.
15869         * main.h (struct captured_main_args) <use_windows>: Remove.
15870         * top.c (use_windows): Remove.
15871
15872 2014-01-13  Tom Tromey  <tromey@redhat.com>
15873
15874         * defs.h (deprecated_flush_hook): Remove.
15875
15876 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
15877
15878         PR threads/16216
15879         * linux-thread-db.c (try_thread_db_load): Add parameter
15880         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
15881         (try_thread_db_load_from_pdir_1): Move it there from here.
15882         (try_thread_db_load_from_sdir): Update caller.
15883         (try_thread_db_load_from_dir): Move it there from here.
15884
15885 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
15886
15887         * regformats/regdat.sh: Always rewrite the register file.
15888
15889 2014-01-13  Pedro Alves  <palves@redhat.com>
15890
15891         * Makefile.in (CHECK_HEADERS): New variable.
15892         (check-headers:): New rule.
15893
15894 2014-01-13  Tom Tromey  <tromey@redhat.com>
15895
15896         * cli/cli-setshow.c (do_set_command): Update.
15897         * defs.h (deprecated_set_hook): Remove.
15898         * top.c (deprecated_set_hook): Remove.
15899
15900 2014-01-13  Pedro Alves  <palves@redhat.com>
15901
15902         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15903         the tracepoint if the PC is a pseudo-register.
15904
15905 2014-01-13  Tom Tromey  <tromey@redhat.com>
15906
15907         * defs.h (XCALLOC): Remove.
15908         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15909         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15910         * dwarf2loc.c (allocate_piece_closure): Likewise.
15911         * elfread.c (elf_symfile_segments): Likewise.
15912         (elf_symfile_segments): Likewise.
15913         * gdbtypes.c (copy_type_recursive): Likewise.
15914         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15915         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15916         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15917         XCALLOC.
15918         * mt-tdep.c (mt_gdbarch_init): Likewise.
15919         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15920         XCALLOC.
15921         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15922         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15923         * registry.c (registry_alloc_data): Likewise.
15924         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15925         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15926         * serial.c (serial_fdopen_ops): Likewise.
15927         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15928         XCALLOC.
15929         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15930         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15931         not XCALLOC.
15932
15933 2014-01-13  Tom Tromey  <tromey@redhat.com>
15934
15935         * defs.h (XMALLOC): Remove.
15936         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15937         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15938         * cli-out.c (struct ui_out *): Likewise.
15939         * cli/cli-dump.c (add_dump_command): Likewise.
15940         (add_dump_command): Likewise.
15941         * complaints.c (get_complaints): Likewise.
15942         (find_complaint): Likewise.
15943         * dwarf2-frame.c (execute_cfa_program): Likewise.
15944         * dwarf2read.c (abbrev_table_read_table): Likewise.
15945         * gdbarch.sh: Likewise.
15946         * gdbarch.c: Rebuild.
15947         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15948         * interps.c (interp_new): Likewise.
15949         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15950         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15951         * mi/mi-console.c (mi_console_file_new): Likewise.
15952         * mi/mi-interp.c (mi_interpreter_init): Likewise.
15953         * mi/mi-out.c (mi_out_new): Likewise.
15954         * mi/mi-parse.c (mi_parse): Likewise.
15955         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15956         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15957         * observer.c (xalloc_observer_list_node): Likewise.
15958         * regcache.c (regcache_xmalloc_1): Likewise.
15959         * reggroups.c (reggroup_new): Likewise.
15960         (_initialize_reggroup): Likewise.
15961         * registry.c (register_data_with_cleanup): Likewise.
15962         * remote.c (remote_notif_stop_alloc_reply): Likewise.
15963         * ser-base.c (serial_ttystate): Likewise.
15964         * ser-mingw.c (make_pipe_state): Likewise.
15965         * ser-pipe.c (pipe_open): Likewise.
15966         * serial.c (serial_open): Likewise.
15967         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15968         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15969         (tui_alloc_win_info): Likewise.
15970         (tui_add_content_elements): Likewise.
15971         * tui/tui-file.c (tui_file_new): Likewise.
15972         * tui/tui-out.c (tui_out_new): Likewise.
15973         * ui-file.c (mem_file_new): Likewise.
15974         * ui-out.c (push_level): Likewise.
15975         (make_cleanup_ui_out_end): Likewise.
15976         (append_header_to_list): Likewise.
15977         (ui_out_new): Likewise.
15978         * user-regs.c (user_reg_add_builtin): Likewise.
15979
15980 2014-01-13  Tom Tromey  <tromey@redhat.com>
15981
15982         * defs.h (XZALLOC): Remove.
15983         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15984         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15985         (get_ada_tasks_inferior_data): Likewise.
15986         * auto-load.c (get_auto_load_pspace_data): Likewise.
15987         * auxv.c (get_auxv_inferior_data): Likewise.
15988         * bfd-target.c (target_bfd_reopen): Likewise.
15989         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15990         (deprecated_insert_raw_breakpoint): Likewise.
15991         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15992         * corelow.c (core_open): Likewise.
15993         * darwin-nat.c (darwin_check_new_threads): Likewise.
15994         (darwin_attach_pid): Likewise.
15995         * dummy-frame.c (dummy_frame_push): Likewise.
15996         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15997         * dwarf2loc.c (allocate_piece_closure): Likewise.
15998         * elfread.c (elf_symfile_segments): Likewise.
15999         * eval.c (ptrmath_type_p): Likewise.
16000         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
16001         * gdbtypes.c (alloc_type_arch): Likewise.
16002         (alloc_type_instance): Likewise.
16003         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
16004         * inf-child.c (inf_child_can_use_agent): Likewise.
16005         * inflow.c (get_inflow_inferior_data): Likewise.
16006         * infrun.c (save_infcall_suspend_state): Likewise.
16007         * jit.c (jit_reader_load): Likewise.
16008         (get_jit_objfile_data): Likewise.
16009         (get_jit_program_space_data): Likewise.
16010         (jit_object_open_impl): Likewise.
16011         (jit_symtab_open_impl): Likewise.
16012         (jit_block_open_impl): Likewise.
16013         (jit_frame_sniffer): Likewise.
16014         * linux-fork.c (add_fork): Likewise.
16015         * maint.c (make_command_stats_cleanup): Likewise.
16016         * objfiles.c (get_objfile_pspace_data): Likewise.
16017         * opencl-lang.c (struct lval_closure): Likewise.
16018         * osdata.c (osdata_start_osdata): Likewise.
16019         * progspace.c (new_address_space): Likewise.
16020         (add_program_space): Likewise.
16021         * remote-sim.c (get_sim_inferior_data): Likewise.
16022         * sh-tdep.c (sh_gdbarch_init): Likewise.
16023         * skip.c (Ignore): Likewise.
16024         (skip_delete_command): Likewise.
16025         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
16026         (library_list_start_library): Likewise.
16027         (solib_aix_current_sos): Likewise.
16028         * solib-darwin.c (get_darwin_info): Likewise.
16029         (darwin_current_sos): Likewise.
16030         * solib-dsbt.c (get_dsbt_info): Likewise.
16031         * solib-ia64-hpux.c (new_so_list): Likewise.
16032         (ia64_hpux_get_solib_linkage_addr): Likewise.
16033         * solib-spu.c (append_ocl_sos): Likewise.
16034         (spu_current_sos): Likewise.
16035         * solib-svr4.c (get_svr4_info): Likewise.
16036         (svr4_keep_data_in_core): Likewise.
16037         (library_list_start_library): Likewise.
16038         (svr4_default_sos): Likewise.
16039         (svr4_read_so_list): Likewise.
16040         * solib-target.c (library_list_start_library): Likewise.
16041         (solib_target_current_sos): Likewise.
16042         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
16043         * symfile-debug.c (install_symfile_debug_logging): Likewise.
16044         * symfile.c (default_symfile_segments): Likewise.
16045         * target-descriptions.c (tdesc_data_init): Likewise.
16046         (tdesc_create_reg): Likewise.
16047         (struct tdesc_type *): Likewise.
16048         (tdesc_create_vector): Likewise.
16049         (tdesc_set_struct_size): Likewise.
16050         (struct tdesc_type *): Likewise.
16051         (tdesc_free_feature): Likewise.
16052         (tdesc_create_feature): Likewise.
16053         * windows-nat.c (windows_add_thread): Likewise.
16054         (windows_make_so): Likewise.
16055         * xml-support.c (gdb_xml_body_text): Likewise.
16056         (gdb_xml_create_parser_and_cleanup): Likewise.
16057         (xml_process_xincludes): Likewise.
16058         * xml-syscall.c (allocate_syscalls_info): Likewise.
16059         (syscall_create_syscall_desc): Likewise.
16060
16061 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
16062
16063         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
16064         function, with code from i386_stap_parse_special_token.
16065         (i386_stap_parse_special_token_three_arg_disp): Likewise.
16066         (i386_stap_parse_special_token): Move code to the two functions
16067         above; simplify it.
16068
16069 2014-01-09  Pedro Alves  <palves@redhat.com>
16070             Hui Zhu  <hui@codesourcery.com>
16071
16072         PR gdb/16101
16073         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
16074         bp_err_string.  Don't mark the location shlib_disabled if the
16075         error thrown wasn't a generic or memory error.  Catch errors
16076         thrown while inserting breakpoints in overlayed code.  Output
16077         error message of software breakpoints.
16078         * remote.c (remote_insert_breakpoint): If this breakpoint has
16079         target-side commands but this stub doesn't support Z0 packets,
16080         throw NOT_SUPPORTED_ERROR error.
16081         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
16082         * target.h (target_insert_breakpoint): Extend comment.
16083         (target_insert_hw_breakpoint): Add comment.
16084
16085 2014-01-08  Pedro Alves  <palves@redhat.com>
16086
16087         * remote.c (remote_add_thread): Add threads silently if starting
16088         up.
16089         (remote_notice_new_inferior): If in all-stop, and starting up,
16090         don't call notice_new_inferior.
16091         (get_current_thread): New function, factored out from ...
16092         (add_current_inferior_and_thread): ... this.  Adjust.
16093         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
16094         found any thread, then select the remote's current thread as GDB's
16095         current thread too.
16096
16097 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
16098
16099         * NEWS: Create a new section for the next release branch.
16100         Rename the section of the current branch, now that it has
16101         been cut.
16102
16103 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
16104
16105         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
16106         * version.in: Bump version to 7.7.50.DATE-cvs.
16107
16108 2014-01-08  Yao Qi  <yao@codesourcery.com>
16109
16110         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
16111         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
16112         (spu_xfer_partial): Cast 'buf' to 'const char *'.
16113
16114 2014-01-08  Yao Qi  <yao@codesourcery.com>
16115
16116         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
16117         return value of bfd_get_filename to symbol_file_add_from_bfd.
16118
16119 2014-01-08  Pierre Muller  <muller@sourceware.org>
16120
16121         Fix PR16201.
16122         * coff-pe-read.c (struct read_pe_section_data): Add index field.
16123         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
16124         to prim_record_mininal_symbol_and_info.
16125         (add_pe_forwarded_sym): Use known section number of forwarded symbol
16126         in call to prim_record_minimal_symbol_and_info.
16127         (read_pe_exported_syms): Set index field of section_data.
16128
16129 2014-01-07  Andrew Pinski  <apinski@cavium.com>
16130
16131         * features/aarch64-core.xml (cpsr): Change to be 64bit.
16132         * features/aarch64.c: Regenerate.
16133
16134 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
16135
16136         * target.c (return_null): Define.
16137         (update_current_target): Use it instead of return_zero for
16138         functions that return a pointer.
16139
16140 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
16141
16142         * source.c (add_path): Fix check for duplicated paths in the previously
16143         included paths.
16144
16145 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
16146
16147         * ada-lang.c: Remove duplicated include statements.
16148         * alphabsd-nat.c: Ditto.
16149         * amd64-darwin-tdep.c: Ditto.
16150         * amd64fbsd-nat.c: Ditto.
16151         * auto-load.c: Ditto.
16152         * ax-gdb.c: Ditto.
16153         * breakpoint.c: Ditto.
16154         * dbxread.c: Ditto.
16155         * fork-child.c: Ditto.
16156         * gdb_usleep.c: Ditto.
16157         * i386-darwin-tdep.c: Ditto.
16158         * i386fbsd-nat.c: Ditto.
16159         * infcmd.c: Ditto.
16160         * inferior.c: Ditto.
16161         * jv-lang.c: Ditto.
16162         * linux-nat.c: Ditto.
16163         * linux-tdep.c: Ditto.
16164         * m68kbsd-nat.c: Ditto.
16165         * m68klinux-nat.c: Ditto.
16166         * microblaze-tdep.c: Ditto.
16167         * mips-linux-tdep.c: Ditto.
16168         * mn10300-tdep.c: Ditto.
16169         * nto-tdep.c: Ditto.
16170         * opencl-lang.c: Ditto.
16171         * osdata.c: Ditto.
16172         * printcmd.c: Ditto.
16173         * regcache.c: Ditto.
16174         * remote-m32r-sdi.c: Ditto.
16175         * remote.c: Ditto.
16176         * symfile.c: Ditto.
16177         * symtab.c: Ditto.
16178         * tilegx-linux-nat.c: Ditto.
16179         * tilegx-tdep.c: Ditto.
16180         * tracepoint.c: Ditto.
16181         * valops.c: Ditto.
16182         * vaxbsd-nat.c: Ditto.
16183         * windows-nat.c: Ditto.
16184         * xtensa-tdep.c: Ditto.
16185
16186 2014-01-07  Yao Qi  <yao@codesourcery.com>
16187
16188         * spu-linux-nat.c (_initialize_spu_nat): Declare.
16189
16190 2014-01-07  Yao Qi  <yao@codesourcery.com>
16191             Joel Brobecker  <brobecker@adacore.com>
16192
16193         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16194         (pdc_write_regs): Likewise.
16195         (fetch_regs_kernel_thread): Likewise.
16196         (store_regs_kernel_thread): Likewise.
16197
16198 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16199
16200         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16201         tagged type objects to their actual type.
16202
16203 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16204
16205         * ada-valprint.c (print_field_values): Add "language" parameter.
16206         Update calls to print_field_values and print_variant_part.
16207         Pass new parameter "language" in call to val_print instead
16208         of "current_language".  Replace call to ada_val_print by call
16209         to val_print.
16210         (print_variant_part): Add "language" parameter.
16211         (ada_val_print_struct_union): Update call to print_field_values.
16212
16213 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16214
16215         * ada-valprint.c (ui_memcpy): Delete.
16216         (ada_print_floating): Update documentation.  Add empty line
16217         between between function documentation and implementation.
16218         Delete variable "buffer".  Use ui_file_xstrdup in place of
16219         ui_file_put.  Minor adjustments following this change.
16220
16221 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16222
16223         * ada-valprint.c (ada_val_print_string): New function,
16224         extracted from ada_val_print_array.
16225         (ada_val_print_array): Replace extracted code by call
16226         to ada_val_print_string followed by a return.  Move
16227         "else" branch to the function's top block.
16228
16229 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16230
16231         * ada-valprint.c (ada_val_print_array): Move implementation
16232         down.  Rename parameter "offset" and "val" into "offset_aligned"
16233         and "original_value" respectively.  Add parameter "offset".
16234
16235 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16236
16237         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16238         re-organizing the code. Change the "???" message printed
16239         when target type is a TYPE_CODE_UNDEF into
16240         "<ref to undefined type>".
16241
16242 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16243
16244         * ada-valprint.c (print_record): Delete, implementation inlined...
16245         (ada_val_print_struct_union): ... here.  Remove call to
16246         ada_check_typedef in inlined implementation.
16247
16248 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16249
16250         * ada-valprint.c (ada_val_print_gnat_array): New function,
16251         extracted from ada_val_print_1;
16252         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16253         (ada_val_print_flt, ada_val_print_struct_union)
16254         (ada_val_print_ref): Likewise.
16255         (ada_val_print_1): Delete variables i and elttype.
16256         Replace extracted-out code by call to corresponding
16257         new functions.
16258
16259 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16260
16261         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16262
16263 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16264
16265         * ada-valprint.c (ada_val_print_1): Replace calls to
16266         ada_val_print_1 by calls to val_print.
16267
16268 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16269
16270         * ada-valprint.c (ada_val_print_1): Add parameter "language".
16271         Update calls to self accordingly.  Replace calls to c_val_print
16272         by calls to val_print.
16273
16274 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16275
16276         * ada-valprint.c (print_record): Delete declaration.
16277         (adjust_type_signedness, ada_val_print_1): Likewise.
16278         (ada_val_print): Move function implementation down.
16279         (print_variant_part, print_field_values, print_record):
16280         Move function implementation up.
16281
16282 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16283
16284         * python/py-type.c (typy_get_name): New function.
16285         (type_object_getset): Add entry for attribute "name".
16286         * NEWS: Add entry mentioning this new attribute.
16287
16288 2014-01-07  Yao Qi  <yao@codesourcery.com>
16289
16290         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16291         statement.
16292
16293 2014-01-07  Yao Qi  <yao@codesourcery.com>
16294
16295         * gnu-nat.c (info_port_rights): Add qualifier const to
16296         argument args.
16297
16298 2014-01-07  Yao Qi  <yao@codesourcery.com>
16299
16300         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16301
16302 2014-01-07  Yao Qi  <yao@codesourcery.com>
16303
16304         * gnu-nat.c (make_inf) Update declaration.
16305         (make_inf): Make it static.
16306         (inf_set_traced): Likewise.
16307         (inf_port_to_thread, inf_task_died_status): Likewise.
16308
16309 2014-01-07  Yao Qi  <yao@codesourcery.com>
16310
16311         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16312
16313 2014-01-07  Yao Qi  <yao@codesourcery.com>
16314
16315         * gnu-nat.c (_initialize_gnu_nat): Declare.
16316
16317 2014-01-07  Yao Qi  <yao@codesourcery.com>
16318
16319         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16320         'enum bfd_endian'.
16321         (struct gdbarch_info) <byte_order>: Change type to
16322         'enum bfd_endian'.
16323         <byte_order_for_code>: Likewise.
16324         * gdbarch.c, gdbarch.h: Regenerated.
16325
16326 2014-01-06  Sasha Smundak  <asmundak@google.com>
16327
16328         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16329
16330 2014-01-06  Tom Tromey  <tromey@redhat.com>
16331
16332         * doublest.c (convert_doublest_to_floatformat): Use const, not
16333         CONST.
16334         * somread.c (som_symtab_read): Likewise.
16335
16336 2014-01-07  Hui Zhu  <hui@codesourcery.com>
16337
16338         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16339         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16340         (gdb_bfd_fopen): Ditto.
16341         (gdb_bfd_openr): Ditto.
16342         (gdb_bfd_openw): Ditto.
16343         (gdb_bfd_openr_iovec): Ditto.
16344         (gdb_bfd_fdopenr): Ditto.
16345         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16346         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16347         with xstrdup.
16348         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16349         with xstrdup.
16350         * symfile-mem.c (symbol_file_add_from_memory): Removed
16351         gdb_bfd_stash_filename.
16352
16353 2014-01-03  Doug Evans  <dje@google.com>
16354
16355         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16356         output.
16357
16358 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
16359
16360         Update year range in copyright notice of all files.
16361
16362 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
16363
16364         * top.c (print_gdb_version): Set copyright year to 2014.
16365
16366 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
16367
16368         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16369
16370 For older changes see ChangeLog-2013.
16371 \f
16372 Local Variables:
16373 mode: change-log
16374 left-margin: 8
16375 fill-column: 74
16376 version-control: never
16377 coding: utf-8
16378 End: