ef2fc4a07e82562a2cbfa28b29082d1a68fc602f
[external/binutils.git] / gdb / ChangeLog
1 2014-12-16  Doug Evans  <xdje42@gmail.com>
2
3         * buildsym.c: Add comments describing how the buildsym machinery
4         is used by the various file formats.
5         (really_free_pendings): Enhance function comment.
6         See pending_macros to NULL.  Simplify resetting pending_addrmap.
7         Call free_buildsym_compunit.
8         (free_buildsym_compunit): Set current_subfile to NULL.
9         (prepare_for_building): New function.
10         (start_symtab): Call it.  Remove call to set_last_source_file.
11         (restart_symtab): New arg "cust".  All callers updated.
12         Simplify, call prepare_for_building.  Re-initialize buildsym_compunit.
13         (reset_symtab_globals): Enhance function comment.
14         Set local_symbols, file_symbols, global_symbols to NULL.
15         Set pending_macros to NULL.  Simplify resetting pending_addrmap.
16         Call free_buildysym_compunit.
17         (end_symtab_without_blockvector): Delete.  All callers updated.
18         (end_symtab_with_blockvector): Remove redundant call to
19         free_buildsym_compunit.
20         (augment_type_symtab): Remove arg "cust".  All callers updated.
21         (buildsym_init): Remove resetting of free_pendings, file_symbols,
22         global_symbols, pending_blocks, pending_macros.  Instead make
23         handling consistent with pending_addrmap: Assert value was reset
24         at end of previous symtab building.  Initialize context_stack here.
25
26 2014-12-16  Doug Evans  <xdje42@gmail.com>
27
28         * cp-namespace.c (cp_lookup_symbol_via_imports): Renamed from
29         cp_lookup_symbol_imports.  All callers updated.
30
31 2014-12-16  Doug Evans  <xdje42@gmail.com>
32
33         * cp-namespace.c (cp_find_type_baseclass_by_name): Renamed from
34         find_type_baseclass_by_name.  All callers updated.
35
36 2014-12-16  Doug Evans  <xdje42@gmail.com>
37
38         * symtab.h (struct symbol_search) <symtab>: Delete.  All uses updated.
39         * symtab.c (compare_search_syms): Use SYMBOL_SYMTAB accessor.
40         (print_symbol_info): Delete arg symtab.  All callers updated.
41         (symtab_symbol_info): Use SYMBOL_SYMTAB accessor.
42
43 2014-12-16  Andreas Arnez  <arnez@vnet.linux.ibm.com>
44
45         * user-regs.c (maintenance_print_user_registers): Swap "Nr" and
46         "Name" columns.  Assure that the output is always indented.
47
48 2014-12-16  Joel Brobecker  <brobecker@adacore.com>
49
50         * nat/linux-ptrace.h (PTRACE_O_EXITKILL): Define if not
51         already defined.
52         (linux_enable_event_reporting): Add parameter "attached".
53         * nat/linux-ptrace.c (linux_test_for_exitkill): New forward
54         declaration.  New function.
55         (linux_check_ptrace_features): Add linux_test_for_exitkill call.
56         (linux_enable_event_reporting): Add new parameter "attached".
57         Do not call ptrace with the PTRACE_O_EXITKILL if ATTACHED is
58         nonzero.
59         * linux-nat.c (linux_init_ptrace): Add parameter "attached".
60         Use it.  Update function description.
61         (linux_child_post_attach, linux_child_post_startup_inferior):
62         Update call to linux_enable_event_reporting.
63
64 2014-12-16  Yao Qi  <yao@codesourcery.com>
65
66         * NEWS: Move some entries to "Changes since GDB 7.8" section.
67
68 2014-12-16  Yao Qi  <yao@codesourcery.com>
69
70         * linux-tdep.c (linux_infcall_mmap): Replace ARG_MAX with
71         ARG_LAST.
72
73 2014-12-15  Simon Marchi  <simon.marchi@ericsson.com>
74
75         * inferior.c (find_inferior_ptid): New function.
76         * inferior.h (find_inferior_ptid): New declaration.
77         * ada-tasks.c (ada_get_task_number): Use find_inferior_ptid.
78         * corelow.c (core_pid_to_str): Same.
79         * darwin-nat.c (darwin_resume): Same.
80         * infrun.c (fetch_inferior_event): Same.
81         (get_inferior_stop_soon): Same.
82         (handle_inferior_event): Same.
83         (handle_signal_stop): Same.
84         * linux-nat.c (resume_lwp): Same.
85         (stop_wait_callback): Same.
86         * mi/mi-interp.c (mi_new_thread): Same.
87         (mi_thread_exit): Same.
88         * proc-service.c (ps_pglobal_lookup): Same.
89         * record-btrace.c (record_btrace_step_thread): Same.
90         * remote-sim.c (gdbsim_close_inferior): Same.
91         (gdbsim_resume): Same.
92         (gdbsim_stop): Same.
93         * sol2-tdep.c (sol2_core_pid_to_str): Same.
94         * target.c (memory_xfer_partial_1): Same.
95         (default_thread_address_space): Same.
96         * thread.c (thread_change_ptid): Same.
97         (switch_to_thread): Same.
98         (do_restore_current_thread_cleanup): Same.
99
100 2014-12-15  Simon Marchi  <simon.marchi@ericsson.com>
101
102         * defs.h (gdb_readline): Constify argument.
103         (gdb_readline_wrapper): Same.
104         (command_line_input): Same.
105         (deprecated_readline_hook): Same.
106         * top.c (deprecated_readline_hook): Same.
107         (gdb_readline): Same.
108         (gdb_readline_wrapper): Same.
109         (command_line_input): Constify argument. Pass prompt_arg to called
110         functions instead of local_prompt, overwriting prompt_arg if necessary.
111         * event-top.h (display_gdb_prompt): Constify argument.
112         * event-top.c (display_gdb_prompt): Same.
113         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Constify argument
114         if building with Python 3.4 and up.
115
116 2014-12-15  Simon Marchi  <simon.marchi@ericsson.com>
117
118         * python/lib/gdb/prompt.py (_prompt_pwd): Use os.getcwd() instead of
119         os.getcwdu().
120
121 2014-12-15  Catalin Udma  <catalin.udma@freescale.com>
122
123         PR gdb/15684
124         * memattr.c (mem_info_command): Remove "unsigned long" casts.
125
126 2014-12-13  Doug Evans  <xdje42@gmail.com>
127
128         * utils.c (make_hex_string): Fix off-by-one error.
129
130 2014-12-13  Joel Brobecker  <brobecker@adacore.com>
131
132         * ada-lang.h (ada_ensure_varsize_limit): Declare.
133         * ada-lang.c (check_size): Remove advance declaration.
134         (ada_ensure_varsize_limit): Renames check_size.
135         Replace calls to check_size by calls to ada_ensure_varsize_limit
136         throughout.
137         * ada-valprint.c (ada_val_print_ref): Add call to
138         ada_ensure_varsize_limit.  Add comment explaining why.
139
140 2014-12-13  Joel Brobecker  <brobecker@adacore.com>
141
142         * utils.c (make_hex_string): Replace use of sprintf by use of
143         xsnprintf.
144
145 2014-12-13  Joel Brobecker  <brobecker@adacore.com>
146
147         * compile/compile-object-load.c (link_callbacks_multiple_definition)
148         (link_callbacks_warning, link_callbacks_einfo): Remove trailing
149         newline at end of warning message.
150
151 2014-12-13  Joel Brobecker  <brobecker@adacore.com>
152
153         * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
154         new "EXTRA-ARGS" parameter.
155         * configure.ac: If large-file support is disabled in GDB,
156         pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
157         * configure: Regenerate.
158
159 2014-12-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
160
161         PR symtab/17642
162         * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
163         TYPE if not TYPE_CODE_TYPEDEF.
164
165 2014-12-13  Joel Brobecker  <brobecker@adacore.com>
166
167         PR backtrace/16215:
168         * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction
169         the frame unwinder must either be the dwarf2_frame_unwind
170         or the dwarf2_tailcall_frame_unwind.  Verify that this_frame's
171         stack_addr is valid before calling get_frame_base.  Throw
172         an error if not valid.
173
174 2014-12-12  Doug Evans  <xdje42@gmail.com>
175
176         * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
177         result != NULL.
178
179 2014-12-12  Doug Evans  <xdje42@gmail.com>
180
181         * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
182         All callers updated.  Rename arg "namespace" to "symbol_name".
183
184 2014-12-12  Doug Evans  <xdje42@gmail.com>
185
186         * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
187         partial_map_symtabs_matching_filename.  All uses updated.
188         (psym_find_pc_sect_compunit_symtab): Renamed from
189         find_pc_sect_compunit_symtab_from_partial.  All uses updated.
190         Add function comment.
191         (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
192         All uses updated.  Add function comment.
193         (psym_relocate): Renamed from relocate_psymtabs.  All uses updated.
194         Add function comment.
195         (psym_find_last_source_symtab): Renamed from
196         find_last_source_symtab_from_partial.  All uses updated.
197         Add function comment.
198         (psym_forget_cached_source_info): Renamed from
199         forget_cached_source_info_partial.  All uses updated.
200         Add function comment.
201         (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
202         All uses updated.  Add function comment.
203         (psym_dump): Renamed from dump_psymtabs_for_objfile.  All uses
204         updated.  Add function comment.
205         (psym_expand_symtabs_for_function): Renamed from
206         read_symtabs_for_function.  All uses updated.  Update function comment.
207         (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
208         All uses updated.  Add function comment.
209         (psym_expand_symtabs_with_fullname): Renamed from
210         read_psymtabs_with_fullname.  All uses updated.  Add function comment.
211         (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
212         All uses updated.  Add function comment.
213         (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
214         All uses updated.
215         (psym_expand_symtabs_matching): Renamed from
216         expand_symtabs_matching_via_partial.  All uses updated.
217         Add function comment.
218         (psym_has_symbols): Renamed from objfile_has_psyms.  All uses updated.
219         Add function comment.
220
221 2014-12-12  Phil Muldoon  <pmuldoon@redhat.com>
222             Jan Kratochvil  <jan.kratochvil@redhat.com>
223             Tom Tromey  <tromey@redhat.com>
224
225         * NEWS: Update.
226         * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
227         field.
228         * p-lang.c (pascal_language_defn): Update.
229         * opencl-lang.c (opencl_language_defn): Update.
230         * objc-lang.c (objc_language_defn): Update.
231         * m2-lang.c (m2_language_defn): Update.
232         * language.h (struct language_defn) <la_get_compile_instance,
233         la_compute_program>: New fields.
234         * language.c (unknown_language_defn, auto_language_defn)
235         (local_language_defn): Update.
236         * jv-lang.c (java_language_defn): Update.
237         * go-lang.c (go_language_defn): Update.
238         * f-lang.c (f_language_defn): Update.
239         * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
240         * dwarf2loc.c (dwarf2_compile_property_to_c)
241         (locexpr_generate_c_location, loclist_generate_c_location): New
242         functions.
243         (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
244         * defs.h (enum compile_i_scope_types): New.
245         (enum command_control_type) <compile_control>: New constant.
246         (struct command_line) <control_u>: New field.
247         * d-lang.c (d_language_defn): Update.
248         * compile/compile.c: New file.
249         * compile/compile-c-support.c: New file.
250         * compile/compile-c-symbols.c: New file.
251         * compile/compile-c-types.c: New file.
252         * compile/compile.h: New file.
253         * compile/compile-internal.h: New file.
254         * compile/compile-loc2c.c: New file.
255         * compile/compile-object-load.c: New file.
256         * compile/compile-object-load.h: New file.
257         * compile/compile-object-run.c: New file.
258         * compile/compile-object-run.h: New file.
259         * cli/cli-script.c (multi_line_command_p, print_command_lines)
260         (execute_control_command, process_next_line)
261         (recurse_read_control_structure): Handle compile_control.
262         * c-lang.h (c_get_compile_context, c_compute_program): Declare.
263         * c-lang.c (c_language_defn, cplus_language_defn)
264         (asm_language_defn, minimal_language_defn): Update.
265         * ada-lang.c (ada_language_defn): Update.
266         * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
267         New variables.
268         (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
269         (HFILES_NO_SRCDIR): Add compile.h.
270         (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
271         (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
272         (compile.o, compile-c-types.o, compile-c-symbols.o)
273         (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
274         (compile-c-support.o): New targets.
275
276 2014-12-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
277
278         * s390-linux-tdep.c (s390_gcc_target_options): New function.
279         (s390_gdbarch_init): Add it to gdbarch.
280
281 2014-12-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
282
283         * linux-tdep.c: Include objfiles.h and infcall.h.
284         (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
285         function.
286         (linux_init_abi): Add linux_infcall_mmap to gdbarch.
287
288 2014-12-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
289
290         * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
291         * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
292         translate_register.  Now public.
293         (dwarf2_compile_expr_to_ax): Update.
294
295 2014-12-12  Tom Tromey  <tromey@redhat.com>
296             Jan Kratochvil  <jan.kratochvil@redhat.com>
297
298         * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
299         (dwarf_expr_frame_base): Update caller.
300         (dwarf_expr_frame_base_1): Rename to ...
301         (func_get_frame_base_dwarf_block): ... this and make it public.
302         (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
303         callers.
304         * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
305
306 2014-12-12  Tom Tromey  <tromey@redhat.com>
307
308         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
309         Update.
310         * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
311         dwarf2_compile_cfa_to_ax.
312         (dwarf2_compile_cfa_to_ax): Remove.
313         * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
314         (dwarf2_compile_cfa_to_ax): Remove.
315
316 2014-12-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
317
318         * infcall.h (call_function_by_hand_dummy): Declare.
319         * infcall.c (call_function_by_hand): Use
320         call_function_by_hand_dummy.
321         (call_function_by_hand_dummy): Rename from call_function_by_hand.
322         Add arguments.  Register a destructor.
323
324 2014-12-12  Tom Tromey  <tromey@redhat.com>
325             Jan Kratochvil  <jan.kratochvil@redhat.com>
326
327         * osabi.h (osabi_triplet_regexp): Declare.
328         * osabi.c (struct osabi_names): New.
329         (gdb_osabi_names): Change type to struct osabi_names.  Update
330         values.
331         (gdbarch_osabi_name): Update.
332         (osabi_triplet_regexp): New function.
333         (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
334         * i386-tdep.c (i386_gnu_triplet_regexp): New method.
335         (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
336         set_gdbarch_gnu_triplet_regexp.
337         * gdbarch.sh (gnu_triplet_regexp): New method.
338         * gdbarch.c, gdbarch.h: Rebuild.
339         * arch-utils.h (default_gnu_triplet_regexp): Declare.
340         * arch-utils.c (default_gnu_triplet_regexp): New function.
341
342 2014-12-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
343
344         * arch-utils.c (default_infcall_mmap)
345         (default_gcc_target_options): New functions.
346         * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
347         (GDB_MMAP_PROT_EXEC): Define.
348         (default_infcall_mmap, default_gcc_target_options): Declare.
349         * gdbarch.h: Rebuild.
350         * gdbarch.c: Rebuild.
351         * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
352
353 2014-12-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
354
355         * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
356         fields.
357         (pop_dummy_frame): Call the destructor if it exists.
358         (register_dummy_frame_dtor, find_dummy_frame_dtor): New
359         functions.
360         * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
361         (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
362
363 2014-12-12  Tom Tromey  <tromey@redhat.com>
364
365         * gdbtypes.h (make_unqualified_type): Declare.
366         * gdbtypes.c (make_unqualified_type): New function.
367
368 2014-12-12  Tom Tromey  <tromey@redhat.com>
369
370         * ui-file.h (ui_file_write_for_put): Declare.
371         * ui-file.c (ui_file_write_for_put): New function.
372         * mi/mi-out.c (do_write): Remove.
373         (mi_out_put): Use ui_file_write_for_put.
374
375 2014-12-12  Doug Evans  <dje@google.com>
376
377         * NEWS: Mention gdb.lookup_objfile.
378         * python/python.c (GdbMethods): Add lookup_objfile.
379         * python/python-internal.h (gdbpy_lookup_objfile): Declare.
380         * python/py-objfile.c: #include "symtab.h".
381         (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
382         (objfpy_lookup_objfile_by_name): New function.
383         (objfpy_lookup_objfile_by_build_id): New function.
384         (gdbpy_lookup_objfile): New function.
385
386 2014-12-12  Maciej W. Rozycki  <macro@codesourcery.com>
387
388         * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
389         (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
390         * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
391         macros.
392         (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
393         Likewise.
394
395 2014-12-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
396
397         * completer.c: Include "target.h", "reggroups.h", and
398         "user-regs.h".
399         (reg_or_group_completer): New.
400         * completer.h (reg_or_group_completer): Declare.
401         * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
402         the "info registers" and "info all-registers" commands and the
403         dbx-mode "lr" command.
404
405 2014-12-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
406
407         * user-regs.c: Include "arch-utils.h", "command.h", and
408         "cli/cli-cmds.h".
409         (maintenance_print_user_registers): New.
410         (_initialize_user_regs): Register new "maint print user-registers"
411         subcommand.
412         * NEWS: Mention new GDB command "maint print user-registers".
413
414 2014-12-12  Maciej W. Rozycki  <macro@codesourcery.com>
415             Maciej W. Rozycki  <macro@mips.com>
416             Pedro Alves  <pedro@codesourcery.com>
417
418         * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
419         remove `predefault' and `invalid_p' initializers.
420         (make_symbol_special): New architecture method.
421         (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
422         (objfile, symbol): New declarations.
423         * arch-utils.h (default_elf_make_msymbol_special): Remove
424         prototype.
425         (default_make_symbol_special): New prototype.
426         (default_adjust_dwarf2_addr): Likewise.
427         (default_adjust_dwarf2_line): Likewise.
428         * mips-tdep.h (mips_unmake_compact_addr): New prototype.
429         * arch-utils.c (default_elf_make_msymbol_special): Remove
430         function.
431         (default_make_symbol_special): New function.
432         (default_adjust_dwarf2_addr): Likewise.
433         (default_adjust_dwarf2_line): Likewise.
434         * dwarf2-frame.c (decode_frame_entry_1): Call
435         `gdbarch_adjust_dwarf2_addr'.
436         * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
437         * dwarf2read.c (create_addrmap_from_index): Likewise.
438         (process_psymtab_comp_unit_reader): Likewise.
439         (add_partial_symbol): Likewise.
440         (add_partial_subprogram): Likewise.
441         (process_full_comp_unit): Likewise.
442         (read_file_scope): Likewise.
443         (read_func_scope): Likewise.  Call `gdbarch_make_symbol_special'.
444         (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
445         (read_call_site_scope): Likewise.
446         (dwarf2_ranges_read): Likewise.
447         (dwarf2_record_block_ranges): Likewise.
448         (read_attribute_value): Likewise.
449         (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
450         (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
451         * elfread.c (elf_symtab_read): Don't call
452         `gdbarch_elf_make_msymbol_special' if unset.
453         * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
454         the ISA bit from the PC.
455         * mips-tdep.c (mips_unmake_compact_addr): New function.
456         (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
457         address appropriately.
458         (mips_make_symbol_special): New function.
459         (mips_pc_is_mips): Set the ISA bit before symbol lookup.
460         (mips_pc_is_mips16): Likewise.
461         (mips_pc_is_micromips): Likewise.
462         (mips_pc_isa): Likewise.
463         (mips_adjust_dwarf2_addr): New function.
464         (mips_adjust_dwarf2_line): Likewise.
465         (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
466         (mips_addr_bits_remove): Likewise.
467         (mips_skip_trampoline_code): Likewise.
468         (mips_write_pc): Don't set the ISA bit.
469         (mips_eabi_push_dummy_call): Likewise.
470         (mips_o64_push_dummy_call): Likewise.
471         (mips_gdbarch_init): Install `mips_make_symbol_special',
472         `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
473         handlers.
474         * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
475         target-specific symbol address adjustments.
476         * gdbarch.h: Regenerate.
477         * gdbarch.c: Regenerate.
478
479 2014-12-12  Yao Qi  <yao@codesourcery.com>
480
481         PR tdep/14261
482         * arm-tdep.c (arm_skip_prologue): Remove unused local variable
483         'skip_pc'.  Remove code skipping prologue instructions, use
484         arm_analyze_prologue instead.
485         (arm_analyze_prologue): Stop the scanning for unrecognized
486         instruction when skipping prologue.
487
488 2014-12-12  Yao Qi  <yao@codesourcery.com>
489
490         * arm-tdep.c (arm_instruction_restores_sp): New function.
491         (arm_analyze_prologue): Call arm_instruction_restores_sp.
492         (arm_in_function_epilogue_p): Move code to
493         arm_instruction_restores_sp.
494
495 2014-12-11  Doug Evans  <xdje42@gmail.com>
496
497         * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
498
499 2014-12-11  Doug Evans  <xdje42@gmail.com>
500
501         * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
502         (symbol *lookup_symbol_via_quick_fns): Ditto.
503         (lookup_symbol_in_objfile): Add forward decl.
504         (lookup_global_symbol_from_objfile): Simplify, call
505         lookup_symbol_in_objfile.
506
507 2014-12-11  Doug Evans  <xdje42@gmail.com>
508
509         * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
510
511 2014-12-10  Simon Marchi  <simon.marchi@ericsson.com>
512
513         PR breakpoints/17012
514         * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
515         it is marked as persistent.
516
517 2014-12-10  Doug Evans  <xdje42@gmail.com>
518
519         * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
520         closer to its subroutines.
521
522 2014-12-10  Doug Evans  <xdje42@gmail.com>
523
524         * cp-namespace.c (lookup_symbol_file): Move next to only caller.
525
526 2014-12-10  Doug Evans  <xdje42@gmail.com>
527
528         * cp-namespace.c (cp_lookup_symbol_imports): Make static.
529         * cp-support.c (cp_lookup_symbol_imports): Delete.
530
531 2014-12-10  Simon Marchi  <simon.marchi@ericsson.com>
532
533         PR gdb/17627
534         * target.c (cleanup_restore_target_terminal): New function.
535         (make_cleanup_restore_target_terminal): New function.
536         * target.h (make_cleanup_restore_target_terminal): New declaration.
537         * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
538
539 2014-12-08  Doug Evans  <dje@google.com>
540
541         * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
542
543 2014-12-08  Doug Evans  <dje@google.com>
544
545         * NEWS: Mention gdb.Objfile.owner.
546         * python/py-objfile.c (objfpy_get_owner): New function.
547         (objfile_getset): Add "owner".
548
549 2014-12-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
550
551         * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
552         (lookup_global_symbol_from_objfile): Call it.
553
554 2014-12-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
555
556         Remove const from struct objfile *.
557         * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
558         symtab.c, symtab.h: In these files.
559
560 2014-12-05  Andreas From  <andreas.from@ericsson.com>
561
562         * MAINTAINERS (Write After Approval): Add "Andreas From"
563
564 2014-12-05  Doug Evans  <xdje42@gmail.com>
565
566         Revert:
567         PR symtab/17602
568         * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
569
570 2014-12-04  Doug Evans  <dje@google.com>
571
572         * NEWS: Mention gdb.Objfile.add_separate_debug_file.
573         * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
574         (objfile_getset): Add "add_separate_debug_file".
575
576 2014-12-04  Doug Evans  <dje@google.com>
577
578         * NEWS: Mention gdb.Objfile.build_id.
579         * build-id.c (build_id_bfd_get): Make non-static.
580         * build-id.h (build_id_bfd_get): Add declaration.
581         * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
582         (OBJFPY_REQUIRE_VALID): New macro.
583         (objfpy_get_build_id): New function.
584         (objfile_getset): Add "build_id".
585         * utils.c (make_hex_string): New function.
586         * utils.h (make_hex_string): Add declaration.
587
588 2014-12-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
589
590         * block.c (block_lookup_symbol_primary): New function.
591         * block.h (block_lookup_symbol_primary): New declaration.
592         * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
593         Call block_lookup_symbol_primary.
594
595 2014-12-03  Maciej W. Rozycki  <macro@codesourcery.com>
596
597         * tramp-frame.h (tramp_frame): Add `validate' member.
598         * tramp-frame.c (tramp_frame_start): Validate trampoline before
599         scanning.
600         * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
601         (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
602         (mips_linux_o32_sigframe): Initialize `validate' member.
603         (mips_linux_o32_rt_sigframe): Likewise.
604         (mips_linux_n32_rt_sigframe): Likewise.
605         (mips_linux_n64_rt_sigframe): Likewise.
606         (micromips_linux_o32_sigframe): New variable.
607         (micromips_linux_o32_rt_sigframe): Likewise.
608         (micromips_linux_n32_rt_sigframe): Likewise.
609         (micromips_linux_n64_rt_sigframe): Likewise.
610         (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
611         (mips_linux_n32n64_sigframe_init): Likewise.
612         (mips_linux_sigframe_validate): New function.
613         (micromips_linux_sigframe_validate): Likewise.
614         (mips_linux_init_abi): Install microMIPS trampoline unwinders.
615
616 2014-12-03  Ulrich Weigand  <uweigand@de.ibm.com>
617
618         * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
619         * sparc-sol2-tdep.c: Include "regset.h".
620         (sparc32_sol2_supply_core_gregset): New function.
621         (sparc32_sol2_collect_core_gregset): Likewise.
622         (sparc32_sol2_supply_core_fpregset): Likewise.
623         (sparc32_sol2_collect_core_fpregset): Likewise.
624         (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
625         (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
626         tdep->fpregset/sizeof_fpregset.
627         * sparc64-sol2-tdep.c: Include "regset.h".
628         (sparc64_sol2_supply_core_gregset): New function.
629         (sparc64_sol2_collect_core_gregset): Likewise.
630         (sparc64_sol2_supply_core_fpregset): Likewise.
631         (sparc64_sol2_collect_core_fpregset): Likewise.
632         (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
633         (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
634         tdep->fpregset/sizeof_fpregset.
635
636 2014-12-03  Simon Marchi  <simon.marchi@ericsson.com>
637
638         * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
639         type.
640
641 2014-12-02  Doug Evans  <dje@google.com>
642
643         * symtab.c (symbol_init_cplus_specific): Delete.
644         (symbol_set_demangled_name): Remove special c++ support.
645         (symbol_get_demangled_name, symbol_set_language): Ditto.
646         * symtab.h (struct cplus_specific): Delete.
647         (struct general_symbol_info) <language_specific>: Remove
648         cplus_specific.
649
650 2014-12-02  Doug Evans  <dje@google.com>
651
652         PR symtab/17602
653         * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
654
655 2014-12-02  Doug Evans  <dje@google.com>
656
657         PR symtab/17591
658         * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
659         to strip parameters.
660
661 2014-12-02  Doug Evans  <dje@google.com>
662
663         * dwarf2read.c (peek_die_abbrev): Improve error message text.
664
665 2014-12-02  Doug Evans  <dje@google.com>
666
667         * valops.c (do_search_struct_field): Remove remnant of Chill support.
668         Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
669
670 2014-12-02  Simon Marchi  <simon.marchi@ericsson.com>
671
672         * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
673
674 2014-12-02  Nick Bull  <nicholaspbull@gmail.com>
675
676         * NEWS: Mention new Python events.
677         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
678         (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
679         (py-infevents.o): New rule.
680         * doc/observer.texi (inferior_call_pre, inferior_call_post)
681         (memory_changed, register_changed): New observers.
682         * infcall.c (call_function_by_hand): Notify observer before and
683         after inferior call.
684         * python/py-event.h (inferior_call_kind): New enum.
685         (emit_inferior_call_event): New prototype.
686         (emit_register_changed_event): New prototype.
687         (emit_memory_changed_event): New prototype.
688         * python/py-events.h (events_object): New registries
689         inferior_call, memory_changed and register_changed.
690         * python/py-evts.c (gdbpy_initialize_py_events): Add the
691         inferior_call, memory_changed and register_changed registries.
692         * python/py-infevents.c: New.
693         * python/py-inferior.c (python_on_inferior_call_pre)
694         (python_on_inferior_call_post, python_on_register_change)
695         (python_on_memory_change): New functions.
696         (gdbpy_initialize_inferior): Attach python handler to new
697         observers.
698         * python/py-infthread.c(gdbpy_create_ptid_object): New.
699         (thpy_get_ptid) Use gdbpy_create_ptid_object.
700         * python/python-internal.h:
701         (gdbpy_create_ptid_object)
702         (gdbpy_initialize_inferior_call_pre_event)
703         (gdbpy_initialize_inferior_call_post_event)
704         (gdbpy_initialize_register_changed_event)
705         (gdbpy_initialize_memory_changed_event): New prototypes.
706         * python/python.c (_initialize_python): Initialize new events.
707         * valops.c (value_assign): Notify register_changed observer.
708
709 2014-12-02  Doug Evans  <dje@google.com>
710
711         * python/py-infthread.c: Whitespace fixes.
712
713 2014-12-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
714
715         * features/Makefile (s390-te-linux64-expedite): Replace
716         non-existant r14 and r15 by r14l and r15l, respectively.
717         * regformats/s390-te-linux64.dat: Regenerate.
718
719 2014-12-01  Simon Marchi  <simon.marchi@ericsson.com>
720
721         * objfiles.c (allocate_objfile): Remove duplicate comment.
722
723 2014-12-01  Ulrich Weigand  <uweigand@de.ibm.com>
724
725         * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
726         * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
727         (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
728         (supply_gregset, supply_fpregset): Remove.
729         * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
730         (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
731         and sizeof_gregset.
732
733 2014-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
734
735         Add add-auto-load-scripts-directory.
736         * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
737         * auto-load.c (add_auto_load_dir): New function.
738         (_initialize_auto_load): Install it.
739
740 2014-11-30  Martin Galvan  <martin.galvan@tallertechnologies.com>  (tiny patch, obvious)
741
742         Pushed by Joel Brobecker  <brobecker@adacore.com>.
743         * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
744
745 2014-11-29  Siva Chandra Reddy  <sivachandra@google.com>
746
747         * eval.c (evaluate_subexp): Check that the thread stack temporaries
748         are not already enabled before enabling them.
749
750 2014-11-29  Yao Qi  <yao@codesourcery.com>
751
752         * arm-tdep.c (arm_analyze_prologue): Move local variables
753         'framereg' and 'framesize' to inner block.  Move code to
754         inner block too.
755
756 2014-11-28  Siva Chandra Reddy  <sivachandra@google.com>
757
758         * eval.c: Include gdbthread.h.
759         (evaluate_subexp): Enable thread stack temporaries before
760         evaluating a complete expression and clean them up after the
761         evaluation is complete.
762         * gdbthread.h: Include common/vec.h.
763         (value_ptr): New typedef.
764         (VEC (value_ptr)): New vector type.
765         (value_vec): New typedef.
766         (struct thread_info): Add new fields stack_temporaries_enabled
767         and stack_temporaries.
768         (enable_thread_stack_temporaries)
769         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
770         (get_last_thread_stack_temporary)
771         (value_in_thread_stack_temporaries): Declare.
772         * gdbtypes.c (class_or_union_p): New function.
773         * gdbtypes.h (class_or_union_p): Declare.
774         * infcall.c (call_function_by_hand): Store return values of class
775         type as temporaries on stack.
776         * thread.c (enable_thread_stack_temporaries): New function.
777         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
778         (get_last_thread_stack_temporary): Likewise.
779         (value_in_thread_stack_temporaries): Likewise.
780         * value.c (value_force_lval): New function.
781         * value.h (value_force_lval): Declare.
782
783 2014-11-28  Pierre Muller  <muller@sourceware.org>
784
785         Pushed by Joel Brobecker  <brobecker@adacore.com>.
786         * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
787         registers.
788
789 2014-11-28  Ulrich Weigand  <uweigand@de.ibm.com>
790
791         * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
792         * config/sparc/linux.mh (NATDEPFILES): Likewise.
793         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
794         * m68klinux-nat.c (fetch_core_registers): Remove.
795         (linux_elf_core_fns): Remove.
796         (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
797
798 2014-11-28  Joel Brobecker  <brobecker@adacore.com>
799
800         * utils.c (gdb_realpath): Rework comment about handling on
801         Windows.
802
803 2014-11-28  Yao Qi  <yao@codesourcery.com>
804
805         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
806         rename.
807         * gnulib/aclocal.m4: Re-generated.
808         * gnulib/config.in: Re-generated.
809         * gnulib/configure: Re-generated.
810         * gnulib/import/Makefile.am: Re-generated.
811         * gnulib/import/Makefile.in: Re-generated.
812         * gnulib/import/m4/gnulib-cache.m4: Re-generated.
813         * gnulib/import/m4/gnulib-comp.m4: Re-generated.
814         * import/basename-lgpl.c: New file.
815         * import/dirname-lgpl.c: New file.
816         * import/dirname.h: New file.
817         * import/m4/dirname.m4: New file.
818         * import/m4/malloc.m4: New file.
819         * import/m4/rename.m4: New file.
820         * import/m4/rmdir.m4: New file.
821         * import/m4/stdio_h.m4: New file.
822         * import/malloc.c: New file.
823         * import/rename.c: New file.
824         * import/rmdir.c: New file.
825         * import/same-inode.h: New file.
826         * import/stdio.c: New file.
827         * import/stdio.in.h: New file.
828         * import/stripslash.c: New file.
829
830 2014-11-28  Yao Qi  <yao@codesourcery.com>
831
832         * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
833         and realpath.
834         * config.in: Re-generated.
835         * configure: Re-generated.
836         * utils.c (gdb_realpath): Remove code calling realpath,
837         canonicalize_file_name and pathconf.
838         [!_WIN32]: Call canonicalize_file_name.
839
840 2014-11-28  Yao Qi  <yao@codesourcery.com>
841
842         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
843         canonicalize-lgpl.
844         * aclocal.m4: Re-generated.
845         * config.in: Re-generated.
846         * configure: Re-generated.
847         * import/Makefile.am: Re-generated.
848         * import/Makefile.in: Re-generated.
849         * import/m4/gnulib-cache.m4: Re-generated.
850         * import/m4/gnulib-comp.m4: Re-generated.
851         * import/canonicalize-lgpl.c: New file.
852         * import/extra/snippet/_Noreturn.h: New file.
853         * import/m4/canonicalize.m4: New file.
854         * import/m4/double-slash-root.m4: New file.
855         * import/m4/eealloc.m4: New file.
856         * import/m4/malloca.m4: New file.
857         * import/m4/nocrash.m4: New file.
858         * import/m4/stdlib_h.m4: New file.
859         * import/malloca.c: New file.
860         * import/malloca.h: New file.
861         * import/malloca.valgrind: New file.
862
863 2014-11-28  Yao Qi  <yao@codesourcery.com>
864
865         * configure.ac (AC_CHECK_FUNCS): Remove lstat.
866         * config.in, configure: Regenerate.
867         * symfile.c (find_separate_debug_file_by_debuglink): Remove
868         code checking HAVE_LSTAT is defined.
869
870 2014-11-28  Yao Qi  <yao@codesourcery.com>
871
872         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
873         lstat.
874         * gnulib/aclocal.m4: Re-generated.
875         * gnulib/config.in: Re-generated.
876         * gnulib/configure: Re-generated.
877         * gnulib/import/Makefile.am: Re-generated.
878         * gnulib/import/Makefile.in: Re-generated.
879         * gnulib/import/m4/gnulib-cache.m4: Re-generated.
880         * gnulib/import/m4/gnulib-comp.m4: Re-generated.
881         * gnulib/import/lstat.c: New file.
882         * gnulib/import/m4/lstat.m4: New file.
883
884 2014-11-28  Yao Qi  <yao@codesourcery.com>
885
886         * configure.ac (AC_CHECK_FUNCS): Remove readlink.
887         * config.in, configure: Re-generate.
888         * inf-child.c (inf_child_fileio_readlink): Don't check
889         HAVE_READLINK is defined.
890
891 2014-11-28  Yao Qi  <yao@codesourcery.com>
892
893         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
894         * gnulib/aclocal.m4: Re-generated.
895         * gnulib/config.in: Likewise.
896         * gnulib/configure: Likewise.
897         * gnulib/import/Makefile.am: Likewise.
898         * gnulib/import/Makefile.in: Likewise.
899         * gnulib/import/m4/gnulib-cache.m4: Likewise.
900         * gnulib/import/m4/gnulib-comp.m4: Likewise.
901         * gnulib/import/dosname.h: New file
902         * gnulib/import/m4/largefile.m4: New file.
903         * gnulib/import/m4/readlink.m4: New file.
904         * gnulib/import/m4/stat.m4: New file.
905         * gnulib/import/readlink.c: New file.
906         * gnulib/import/stat.c: New file.
907
908 2014-11-26  Mark Wielaard  <mjw@redhat.com>
909
910         * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
911         DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
912
913 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
914
915         * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
916         that there can be only one stack adjustment in the prologue
917         with tests to detect specific disallowed stack adjustments.
918
919 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
920
921         * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
922         adjustments.
923
924 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
925
926         * nios2-tdep.c (nios2_fetch_insn): Move up in file.  Disassemble
927         the instruction as well as reading it from memory.
928         (nios2_match_add): New.
929         (nios2_match_sub): New.
930         (nios2_match_addi): New.
931         (nios2_match_orhi): New.
932         (nios2_match_stw): New.
933         (nios2_match_ldw): New.
934         (nios2_match_rdctl): New.
935         (enum branch_condition): New.
936         (nios2_match_branch): New.
937         (nios2_match_jmpi): New.
938         (nios2_match_calli): New.
939         (nios2_match_jmpr): New.
940         (nios2_match_callr): New.
941         (nios2_match_break): New.
942         (nios2_match_trap): New.
943         (nios2_in_epilogue_p): Rewrite to use new functions.
944         (nios2_analyze_prologue): Likewise.
945         (nios2_skip_prologue): Delete unused local limit_pc.
946         (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
947         (nios2_get_next_pc): Rewrite to use new functions.
948
949 2014-11-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
950
951         * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
952
953 2014-11-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
954
955         Pushed by Joel Brobecker  <brobecker@adacore.com>
956         * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
957         elements pi_len by the size of the elements before calling
958         vm_deallocate.
959         (inf_validate_task_sc): Likewise, and properly deallocate the
960         noise array.
961
962 2014-11-23  Doug Evans  <xdje42@gmail.com>
963
964         * gdbtypes.c (print_args): Renamed from print_arg_types.  Print arg
965         number and name if present.  All callers updated.
966         (dump_fn_fieldlists): Fix indentation of args.
967
968 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
969
970         * MAINTAINERS (Write After Approval): Add myself.
971
972 2014-11-23  Joel Brobecker  <brobecker@adacore.com>
973
974         * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
975         to a bp_call_dummy breakpoint type.
976
977 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
978
979         * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
980         registering the signal handler.
981
982 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
983
984         * event-top.h (call_stdin_event_handler_again_p): Declare.
985         * event-top.c (call_stdin_event_handler_again_p): Define.
986         (stdin_event_handler): Use it.
987         * tui/tui-io.c (tui_getc): Prepare to call the stdin event
988         handler again if there is pending input following a
989         start sequence.
990
991 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
992
993         Pushed by Joel Brobecker  <brobecker@adacore.com>
994         * linux-fork.c (checkpoint_command): Print index of new
995         checkpoint in response message.
996
997 2014-11-23  Yao Qi  <yao@codesourcery.com>
998
999         * valprint.c (read_string): Move local variables 'found_nul',
1000         'chunksize' and 'limit' to inner scope.  Update comments.
1001
1002 2014-11-22  Doug Evans  <xdje42@gmail.com>
1003
1004         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
1005         function comment.
1006         (search_symbols): Fix comments and whitespace.
1007
1008 2014-11-22  Doug Evans  <xdje42@gmail.com>
1009
1010         * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
1011
1012 2014-11-21  Doug Evans  <dje@google.com>
1013
1014         * psymtab.c (psymtab_search_name): Fix whitespace.
1015
1016 2014-11-21  Yao Qi  <yao@codesourcery.com>
1017
1018         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1019         errno.
1020         * gnulib/import/Makefile.am: Re-generated.
1021         * gnulib/import/Makefile.in: Likewise.
1022         * gnulib/import/m4/gnulib-cache.m4: Likewise.
1023
1024 2014-11-21  Yao Qi  <yao@codesourcery.com>
1025
1026         * gdb_wchar.h: Include wchar.h and wctype.h.
1027         [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
1028         include wchar.h and wctype.h.
1029         Don't check HAVE_WCHAR_H.
1030
1031 2014-11-21  Yao Qi  <yao@codesourcery.com>
1032
1033         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
1034         and wctype-h.
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 (IMPORTED_GNULIB_MODULES): Add
1042         memchr.
1043         * gnulib/import/Makefile.am: Re-generated.
1044         * gnulib/import/Makefile.in: Likewise.
1045         * gnulib/import/m4/gnulib-cache.m4: Likewise.
1046
1047 2014-11-21  Yao Qi  <yao@codesourcery.com>
1048
1049         * common/common-defs.h: Include alloca.h
1050         * configure.ac: Don't invoke AC_FUNC_ALLOCA.
1051         * configure: Re-generated.
1052         * defs.h: Remove code handling alloca.
1053         * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
1054         or not.
1055
1056 2014-11-21  Yao Qi  <yao@codesourcery.com>
1057
1058         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
1059         alloca.
1060         * gnulib/import/Makefile.am: Re-generated.
1061         * gnulib/import/Makefile.in: Likewise..
1062         * gnulib/import/m4/gnulib-cache.m4: Likewise.
1063
1064 2014-11-21  Yao Qi  <yao@codesourcery.com>
1065
1066         * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
1067         alphabetical order.
1068
1069 2014-11-21  Joel Brobecker  <brobecker@adacore.com>
1070
1071         * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
1072         flag_unsigned if HIGH_BOUND is constant and negative.
1073
1074 2014-11-20  Sergio Durigan Junior  <sergiodj@redhat.com>
1075
1076         PR breakpoints/10737
1077         * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
1078         modifier from "struct gdbarch" when compiling without Expat (XML)
1079         support.
1080         (get_syscall_by_number): Likewise.
1081         (get_syscall_by_name): Likewise.
1082         (get_syscall_names): Likewise.
1083
1084 2014-11-20  Sergio Durigan Junior  <sergiodj@redhat.com>
1085
1086         PR breakpoints/10737
1087         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
1088         set_xml_syscall_file_name to provide gdbarch.
1089         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1090         * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
1091         * breakpoint.c (print_it_catch_syscall): Adjust call to
1092         get_syscall_by_number to provide gdbarch.
1093         (print_one_catch_syscall): Likewise.
1094         (print_mention_catch_syscall): Likewise.
1095         (print_recreate_catch_syscall): Likewise.
1096         (catch_syscall_split_args): Adjust calls to get_syscall_by_number
1097         and get_syscall_by_name to provide gdbarch.
1098         (catch_syscall_completer): Adjust call to get_syscall_names to
1099         provide gdbarch.
1100         * gdbarch.c: Regenerate.
1101         * gdbarch.h: Likewise.
1102         * gdbarch.sh: Forward declare "struct syscalls_info".
1103         (xml_syscall_file): New variable.
1104         (syscalls_info): Likewise.
1105         * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
1106         set_xml_syscall_file_name to provide gdbarch.
1107         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1108         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1109         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1110         * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1111         * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
1112         * xml-syscall.c: Include gdbarch.h.
1113         (set_xml_syscall_file_name): Accept gdbarch parameter.
1114         (get_syscall_by_number): Likewise.
1115         (get_syscall_by_name): Likewise.
1116         (get_syscall_names): Likewise.
1117         (my_gdb_datadir): Delete global variable.
1118         (struct syscalls_info) <my_gdb_datadir>: New variable.
1119         (struct syscalls_info) <sysinfo>: Rename variable to
1120         "syscalls_info".
1121         (sysinfo): Delete global variable.
1122         (have_initialized_sysinfo): Likewise.
1123         (xml_syscall_file): Likewise.
1124         (sysinfo_free_syscalls_desc): Rename to...
1125         (syscalls_info_free_syscalls_desc): ... this.
1126         (free_syscalls_info): Rename "sysinfo" to "syscalls_info".  Adjust
1127         code to the new layout of "struct syscalls_info".
1128         (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
1129         "syscalls_info".
1130         (syscall_create_syscall_desc): Likewise.
1131         (syscall_start_syscall): Likewise.
1132         (syscall_parse_xml): Likewise.
1133         (xml_init_syscalls_info): Likewise.  Drop "const" from return value.
1134         (init_sysinfo): Rename to...
1135         (init_syscalls_info): ...this.  Add gdbarch as a parameter.
1136         Adjust function to deal with gdbarch.
1137         (xml_get_syscall_number): Delete parameter sysinfo.  Accept
1138         gdbarch as a parameter.  Adjust code.
1139         (xml_get_syscall_name): Likewise.
1140         (xml_list_of_syscalls): Likewise.
1141         (set_xml_syscall_file_name): Accept gdbarch as parameter.
1142         (get_syscall_by_number): Likewise.
1143         (get_syscall_by_name): Likewise.
1144         (get_syscall_names): Likewise.
1145         * xml-syscall.h (set_xml_syscall_file_name): Likewise.
1146         (get_syscall_by_number): Likewise.
1147         (get_syscall_by_name): Likewise.
1148         (get_syscall_names): Likewise.
1149
1150 2014-11-20  Doug Evans  <xdje42@gmail.com>
1151
1152         Split struct symtab into two: struct symtab and compunit_symtab.
1153         * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
1154         * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
1155         to "struct compunit_symtab *".  All callers updated.
1156         (set_block_compunit_symtab): Renamed from set_block_symtab.  Change
1157         "struct symtab *" argument to "struct compunit_symtab *".
1158         All callers updated.
1159         (get_block_compunit_symtab): Renamed from get_block_symtab.  Change
1160         result to "struct compunit_symtab *".  All callers updated.
1161         (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
1162         Change result to "struct compunit_symtab *".  All callers updated.
1163         * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
1164         hange type to "struct compunit_symtab *".  All uses updated.
1165         (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
1166         Change type to "struct compunit_symtab *".  All uses updated.
1167         * buildsym.c (struct buildsym_compunit): New struct.
1168         (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
1169         (buildsym_compunit): New static global.
1170         (finish_block_internal): Update to fetch objfile from
1171         buildsym_compunit.
1172         (make_blockvector): Delete objfile argument.
1173         (start_subfile): Rewrite to use buildsym_compunit.  Don't initialize
1174         debugformat, producer.
1175         (start_buildsym_compunit): New function.
1176         (free_buildsym_compunit): Renamed from free_subfiles_list.
1177         All callers updated.
1178         (patch_subfile_names): Rewrite to use buildsym_compunit.
1179         (get_compunit_symtab): New function.
1180         (get_macro_table): Delete argument comp_dir.  All callers updated.
1181         (start_symtab): Change result to "struct compunit_symtab *".
1182         All callers updated.  Create the subfile of the main source file.
1183         (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1184         (reset_symtab_globals): Update.
1185         (end_symtab_get_static_block): Update to use buildsym_compunit.
1186         (end_symtab_without_blockvector): Rewrite.
1187         (end_symtab_with_blockvector): Change result to
1188         "struct compunit_symtab *".  All callers updated.
1189         Update to use buildsym_compunit.  Don't set symtab->dirname,
1190         instead set it in the compunit.
1191         Explicitly make sure main symtab is first in its list.
1192         Set debugformat, producer, blockvector, block_line_section, and
1193         macrotable in the compunit.
1194         (end_symtab_from_static_block): Change result to
1195         "struct compunit_symtab *".  All callers updated.
1196         (end_symtab, end_expandable_symtab): Ditto.
1197         (set_missing_symtab): Change symtab argument to
1198         "struct compunit_symtab *".  All callers updated.
1199         (augment_type_symtab): Ditto.
1200         (record_debugformat): Update to use buildsym_compunit.
1201         (record_producer): Update to use buildsym_compunit.
1202         * buildsym.h (struct subfile) <dirname>: Delete.
1203         <producer, debugformat>: Delete.
1204         <buildsym_compunit>: New member.
1205         (get_compunit_symtab): Declare.
1206         * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1207         from primary_symtab.  Change type to "struct compunit_symtab *".
1208         All uses updated.
1209         (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1210         All callers updated.
1211         (dwarf_decode_macros): Delete comp_dir argument.  All callers updated.
1212         (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1213         symtab.  Change type to "struct compunit_symtab *".  All uses updated.
1214         (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1215         All callers updated.
1216         (dw2_find_last_source_symtab): Ditto.
1217         (dw2_lookup_symbol): Ditto.
1218         (recursively_find_pc_sect_compunit_symtab): Renamed from
1219         recursively_find_pc_sect_symtab.  Change result to
1220         "struct compunit_symtab *".  All callers updated.
1221         (dw2_find_pc_sect_compunit_symtab): Renamed from
1222         dw2_find_pc_sect_symtab.  Change result to
1223         "struct compunit_symtab *".  All callers updated.
1224         (get_compunit_symtab): Renamed from get_symtab.  Change result to
1225         "struct compunit_symtab *".  All callers updated.
1226         (recursively_compute_inclusions): Change type of immediate_parent
1227         argument to "struct compunit_symtab *".  All callers updated.
1228         (compute_compunit_symtab_includes): Renamed from
1229         compute_symtab_includes.  All callers updated.  Rewrite to compute
1230         includes of compunit_symtabs and not symtabs.
1231         (process_full_comp_unit): Update to work with struct compunit_symtab.
1232         (process_full_type_unit): Ditto.
1233         (dwarf_decode_lines_1): Delete argument comp_dir.  All callers updated.
1234         (dwarf_decode_lines): Remove special case handling of main subfile.
1235         (macro_start_file): Delete argument comp_dir.  All callers updated.
1236         (dwarf_decode_macro_bytes): Ditto.
1237         * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1238         use struct compunit_symtab.
1239         * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1240         * jit.c (finalize_symtab): Build compunit_symtab.
1241         * jv-lang.c (get_java_class_symtab): Change result to
1242         "struct compunit_symtab *".  All callers updated.
1243         * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1244         * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1245         comp_dir.  Change type to "struct compunit_symtab *".
1246         All uses updated.
1247         (new_macro_table): Change comp_dir argument to cust,
1248         "struct compunit_symtab *".  All callers updated.
1249         * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1250         nr_primary_symtabs.  All uses updated.
1251         (count_symtabs_and_blocks): Update to handle compunits.
1252         (report_command_stats): Update output, "primary symtabs" renamed to
1253         "compunits".
1254         * mdebugread.c (new_symtab): Change result to
1255         "struct compunit_symtab *".  All callers updated.
1256         (parse_procedure): Change type of search_symtab argument to
1257         "struct compunit_symtab *".  All callers updated.
1258         * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1259         separate loop.
1260         * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1261         symtabs.  Change type to "struct compunit_symtab *".  All uses updated.
1262         (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1263         All uses updated.
1264         (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1265         All uses updated.
1266         (ALL_FILETABS): Renamed from ALL_SYMTABS.  All uses updated.
1267         (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS.  All uses updated.
1268         * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1269         symtab.  Change type to "struct compunit_symtab *".  All uses updated.
1270         * psymtab.c (psymtab_to_symtab): Change result type to
1271         "struct compunit_symtab *".  All callers updated.
1272         (find_pc_sect_compunit_symtab_from_partial): Renamed from
1273         find_pc_sect_symtab_from_partial.  Change result type to
1274         "struct compunit_symtab *".  All callers updated.
1275         (lookup_symbol_aux_psymtabs): Change result type to
1276         "struct compunit_symtab *".  All callers updated.
1277         (find_last_source_symtab_from_partial): Ditto.
1278         * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1279         * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1280         and macro_table from compunit.
1281         * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1282         type to "struct compunit_symtab *".  All callers updated.
1283         (debug_qf_lookup_symbol): Ditto.
1284         (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1285         debug_qf_find_pc_sect_symtab, change result type to
1286         "struct compunit_symtab *".  All callers updated.
1287         * symfile.c (allocate_symtab): Delete objfile argument.
1288         New argument cust.
1289         (allocate_compunit_symtab): New function.
1290         (add_compunit_symtab_to_objfile): New function.
1291         * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1292         Change result type to "struct compunit_symtab *".  All uses updated.
1293         <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1294         Change result type to "struct compunit_symtab *".  All uses updated.
1295         * symmisc.c (print_objfile_statistics): Compute blockvector count in
1296         separate loop.
1297         (dump_symtab_1): Update test for primary source symtab.
1298         (maintenance_info_symtabs): Update to handle compunit symtabs.
1299         (maintenance_check_symtabs): Ditto.
1300         * symtab.c (set_primary_symtab): Delete.
1301         (compunit_primary_filetab): New function.
1302         (compunit_language): New function.
1303         (iterate_over_some_symtabs): Change type of arguments "first",
1304         "after_last" to "struct compunit_symtab *".  All callers updated.
1305         Update to loop over symtabs in each compunit.
1306         (error_in_psymtab_expansion): Rename symtab argument to cust,
1307         and change type to "struct compunit_symtab *".  All callers updated.
1308         (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1309         Change result type to "struct compunit_symtab *".  All callers updated.
1310         (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1311         Change result type to "struct compunit_symtab *".  All callers updated.
1312         (find_pc_sect_line): Only loop over symtabs within selected compunit
1313         instead of all symtabs in the objfile.
1314         * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1315         <compunit_symtab> New member.
1316         <block_line_section>: Moved to compunit_symtab.
1317         <locations_valid>: Ditto.
1318         <epilogue_unwind_valid>: Ditto.
1319         <macro_table>: Ditto.
1320         <dirname>: Ditto.
1321         <debugformat>: Ditto.
1322         <producer>: Ditto.
1323         <objfile>: Ditto.
1324         <call_site_htab>: Ditto.
1325         <includes>: Ditto.
1326         <user>: Ditto.
1327         <primary>: Delete
1328         (SYMTAB_COMPUNIT): New macro.
1329         (SYMTAB_BLOCKVECTOR): Update definition.
1330         (SYMTAB_OBJFILE): Update definition.
1331         (SYMTAB_DIRNAME): Update definition.
1332         (struct compunit_symtab): New type.  Common members among all source
1333         symtabs within a compilation unit moved here.  All uses updated.
1334         (COMPUNIT_OBJFILE): New macro.
1335         (COMPUNIT_FILETABS): New macro.
1336         (COMPUNIT_DEBUGFORMAT): New macro.
1337         (COMPUNIT_PRODUCER): New macro.
1338         (COMPUNIT_DIRNAME): New macro.
1339         (COMPUNIT_BLOCKVECTOR): New macro.
1340         (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1341         (COMPUNIT_LOCATIONS_VALID): New macro.
1342         (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1343         (COMPUNIT_CALL_SITE_HTAB): New macro.
1344         (COMPUNIT_MACRO_TABLE): New macro.
1345         (ALL_COMPUNIT_FILETABS): New macro.
1346         (compunit_symtab_ptr): New typedef.
1347         (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1348
1349 2014-11-20  Joel Brobecker  <brobecker@adacore.com>
1350
1351         * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1352         if the TYPE_CODE of range_type's base type does not match
1353         the TYPE_CODE of encoding_type's base type.
1354
1355 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
1356
1357         * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1358         it starts with '<'.
1359
1360 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
1361
1362         * ada-lang.c (ada_is_redundant_range_encoding): New function.
1363         (ada_is_redundant_index_type_desc): New function.
1364         (to_fixed_array_type): Ignore parallel XA type if redundant.
1365
1366 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
1367
1368         * ada-lang.c (constrained_packed_array_type): Set the length
1369         of the return array as if both bounds where zero if that
1370         returned array's index type is dynamic.
1371
1372 2014-11-19  Yao Qi  <yao@codesourcery.com>
1373
1374         * config/i386/go32.mh (CC): Remove.
1375
1376 2014-11-18  Doug Evans  <xdje42@gmail.com>
1377
1378         * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR.  All uses
1379         updated.
1380
1381 2014-11-18  Doug Evans  <xdje42@gmail.com>
1382
1383         * buildsym.c (buildsym_objfile): New static global.
1384         (buildsym_comp_dir): New static global.
1385         (finish_block_internal): Delete arg objfile.  All callers updated.
1386         (finish_block): Delete arg objfile.  All callers updated.
1387         (start_subfile): Delete arg dirname.  All callers updated.
1388         (patch_subfile_names): Update buildsym_comp_dir.
1389         (get_macro_table): Delete arg objfile.  All callers updated.
1390         (start_symtab): New arg objfile.  All callers updated.
1391         Rename arg dirname to comp_dir.
1392         (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1393         (end_symtab_get_static_block): Delete arg objfile.  All callers
1394         updated.
1395         (end_symtab_without_blockvector): Ditto.
1396         (end_symtab_with_blockvector): Ditto.
1397         (end_symtab_from_static_block): Ditto.
1398         (end_symtab): Ditto.
1399         (end_expandable_symtab): Ditto.
1400         (augment_type_symtab): Ditto.
1401         * coffread.c (coff_start_symtab): New arg objfile.  All callers
1402         updated.
1403
1404 2014-11-18  Doug Evans  <xdje42@gmail.com>
1405
1406         * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE.  All uses
1407         updated.
1408
1409 2014-11-18  Doug Evans  <xdje42@gmail.com>
1410
1411         * symtab.h (SYMTAB_DIRNAME): New macro.  All uses of member
1412         symtab.dirname updated to use it.
1413
1414 2014-11-18  Doug Evans  <xdje42@gmail.com>
1415
1416         * symtab.h (SYMTAB_OBJFILE): New macro.  All uses of member
1417         symtab.objfile updated to use it.
1418
1419 2014-11-18  Doug Evans  <xdje42@gmail.com>
1420
1421         * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1422
1423 2014-11-18  Doug Evans  <xdje42@gmail.com>
1424
1425         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1426         SYMBOL_OBJFILE.
1427         * findvar.c (default_read_var_value): Ditto.
1428         * jv-lang.c (add_class_symtab_symbol): Ditto.
1429         * parse.c (operator_check_standard): Ditto.
1430         * printcmd.c (address_info): Ditto.
1431         * symtab.c (fixup_symbol_section): Ditto.
1432         (skip_prologue_sal): Ditto.
1433         * tracepoint.c (scope_info): Ditto.
1434         * valops.c (find_function_in_inferior): Ditto.
1435         * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1436         * python/py-symbol.c (set_symbol): Ditto.
1437
1438 2014-11-18  Doug Evans  <xdje42@gmail.com>
1439
1440         * buildsym.c (main_subfile): New static global.
1441         (free_subfiles_list): New function.
1442         (start_symtab): Set main_subfile.
1443         (restart_symtab): Replace init of subfiles, current_subfile with
1444         call to free_subfiles_list.
1445         (watch_main_source_file_lossage): Use main_subfile.
1446         (reset_symtab_globals): Replace init of current_subfile with call
1447         to free_subfiles_list.
1448         (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1449         functions, split out from ...
1450         (end_symtab_from_static_block): ... here.  Rewrite to call them.
1451
1452 2014-11-18  Doug Evans  <xdje42@gmail.com>
1453
1454         The result of symtab expansion is always a primary symtab.
1455         * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1456         (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1457         * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1458         (psymtab_to_symtab): Add comment and assert.
1459         (map_matching_symbols_psymtab): Remove unnecessary test for
1460         non-primary symtab.
1461
1462 2014-11-15  Doug Evans  <xdje42@gmail.com>
1463
1464         PR symtab/17559
1465         * symtab.c (find_pc_line_symtab): New function.
1466         * symtab.h (find_pc_line_symtab): Declare.
1467         * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1468         find_pc_symtab.
1469         * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1470         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1471         * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1472         * tui/tui-win.c (make_visible_with_new_height): Ditto.
1473         * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1474         (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1475
1476 2014-11-15  Doug Evans  <xdje42@gmail.com>
1477
1478         * symtab.c (expand_symtab_containing_pc): Renamed from
1479         find_pc_sect_symtab_via_partial.  All callers updated.
1480
1481 2014-11-15  Yao Qi  <yao@codesourcery.com>
1482
1483         * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1484
1485 2014-11-14  Joel Brobecker  <brobecker@adacore.com>
1486
1487         * common/common-defs.h: Move <stdarg.h> #include ahead of
1488         <stdio.h> #include.
1489
1490 2014-11-14  Pedro Alves  <palves@redhat.com>
1491
1492         * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1493         [!PHONY_ICONV] (gdb_iconv): New function.
1494         [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1495
1496 2014-11-13  Doug Evans  <dje@google.com>
1497
1498         PR symtab/17591
1499         * dwarf2read.c (find_slot_in_mapped_hash): Handle
1500         "(anonymous namespace)".
1501
1502 2014-11-13  Doug Evans  <dje@google.com>
1503
1504         * dwarf2read.c (update_enumeration_type_from_children): Avoid
1505         infinite loop.
1506
1507 2014-11-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1508
1509         * NEWS (maint set target-async): Fix typo.
1510
1511 2014-11-12  Pedro Alves  <palves@redhat.com>
1512
1513         * infrun.c (enum infwait_states, infwait_state): Delete.
1514
1515 2014-11-12  Pedro Alves  <palves@redhat.com>
1516
1517         * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1518         Rewrite stepping over a permanent breakpoint.
1519         (thread_still_needs_step_over, proceed): Don't set
1520         stepping_over_breakpoint for permanent breakpoints.
1521         (handle_signal_stop): Don't clear stepped_breakpoint.  Also pull
1522         single-step breakpoints out of the target on hardware step
1523         targets.
1524         (process_event_stop_test): If stepping a permanent breakpoint
1525         doesn't hit the step-resume breakpoint, delete the step-resume
1526         breakpoint.
1527         (switch_back_to_stepped_thread): Also check if the stepped thread
1528         has advanced already on hardware step targets.
1529         (currently_stepping): Return true if the thread stepped a
1530         breakpoint.
1531
1532 2014-11-12  Pedro Alves  <palves@redhat.com>
1533
1534         Mark locations as permanent, not the whole breakpoint.
1535         * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1536         (mark_breakpoints_out): Don't mark permanent breakpoints as
1537         uninserted.
1538         (breakpoint_init_inferior): Use mark_breakpoints_out.
1539         (breakpoint_here_p): Adjust.
1540         (bpstat_stop_status, describe_other_breakpoints): Remove handling
1541         of permanent breakpoints.
1542         (make_breakpoint_permanent): Mark each location as permanent,
1543         instead of marking the breakpoint.
1544         (add_location_to_breakpoint): If the location is permanent, mark
1545         it as such, and as inserted.
1546         (init_breakpoint_sal): Don't make the breakpoint permanent here.
1547         (bp_location_compare, update_global_location_list): Adjust.
1548         (update_breakpoint_locations): Don't make the breakpoint permanent
1549         here.
1550         (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1551         breakpoints.
1552         * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1553         (struct bp_location) <permanent>: New field.
1554         * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1555         reference to bp_permanent.
1556
1557 2014-11-12  Pedro Alves  <palves@redhat.com>
1558
1559         * arch-utils.c (default_skip_permanent_breakpoint): New function.
1560         * arch-utils.h (default_skip_permanent_breakpoint): New
1561         declaration.
1562         * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1563         Install default_skip_permanent_breakpoint as default method.
1564         * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1565         (i386_gdbarch_init): Don't install it.
1566         * infrun.c (resume): Assume there's always a
1567         gdbarch_skip_permanent_breakpoint implementation.
1568         * gdbarch.h, gdbarch.c: Regenerate.
1569
1570 2014-11-11  Daniel Colascione  <dancol@dancol.org>
1571
1572         Warn about cross-PID-namespace debugging.
1573         * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1574         * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1575         * linux-thread-db.c (check_pid_namespace_match): New function.
1576         (thread_db_inferior_created): Call it.
1577
1578 2014-11-10  Doug Evans  <xdje42@gmail.com>
1579
1580         * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1581         (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1582
1583 2014-11-10  Doug Evans  <xdje42@gmail.com>
1584
1585         * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1586
1587 2014-11-10  Doug Evans  <xdje42@gmail.com>
1588
1589         PR symtab/17564
1590         * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1591         (lookup_static_symbol): Move definition to new location and rewrite.
1592         (lookup_symbol_in_objfile): New function.
1593         (lookup_symbol_global_iterator_cb): Call it.
1594
1595 2014-11-10  Ulrich Weigand  <uweigand@de.ibm.com>
1596
1597         * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1598
1599 2014-11-07  Pedro Alves  <palves@redhat.com>
1600
1601         * infrun.c (process_event_stop_test) <subroutine check>: Don't
1602         check if we did a "nexti" inside a prologue.
1603         * symtab.c (in_prologue): Delete function.
1604         * symtab.h (in_prologue): Delete declaration.
1605
1606 2014-11-06  Doug Evans  <xdje42@gmail.com>
1607
1608         * symtab.h (lookup_global_symbol): Improve function comment.
1609
1610 2014-11-06  Doug Evans  <xdje42@gmail.com>
1611
1612         * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1613         All callers updated.
1614         * symtab.h (lookup_global_symbol): Update decl.
1615         (lookup_static_symbol): Move decl to better location.
1616
1617 2014-11-06  Doug Evans  <xdje42@gmail.com>
1618
1619         * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1620
1621 2014-11-06  Doug Evans  <xdje42@gmail.com>
1622
1623         * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1624         All callers updated.
1625         (lookup_symbol_in_all_objfiles): Renamed from
1626         lookup_symbol_aux_symtabs.  All callers updated.
1627         (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1628         All callers updated.
1629         (lookup_symbol_in_objfile_symtabs): Renamed from
1630         lookup_symbol_aux_objfile.  All callers updated.
1631
1632 2014-11-06  Doug Evans  <xdje42@gmail.com>
1633
1634         * symtab.c (lookup_symbol_in_block): Renamed from
1635         lookup_symbol_aux_block.  All callers updated.
1636
1637 2014-11-06  Doug Evans  <xdje42@gmail.com>
1638
1639         * symtab.c (lookup_static_symbol): Renamed from
1640         lookup_static_symbol_aux.  All callers updated.
1641         (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1642         All callers updated.
1643
1644 2014-11-06  Doug Evans  <xdje42@gmail.com>
1645
1646         * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1647         * block.c (block_lookup_symbol): Use it.
1648         * cp-support.c (make_symbol_overload_list_block): Use it.
1649         * symtab.c (iterate_over_symbols): Use it.
1650
1651 2014-11-06  Doug Evans  <xdje42@gmail.com>
1652
1653         * symtab.c (lookup_block_symbol): Moved to ...
1654         * block.c (block_lookup_symbol):  ... here and renamed.
1655         All callers updated.
1656         * block.h (block_lookup_symbol): Declare.
1657         * symtab.h (lookup_block_symbol): Delete.
1658
1659 2014-11-06  Doug Evans  <xdje42@gmail.com>
1660
1661         * ada-lang.c (ada_make_symbol_completion_list): Use
1662         ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1663         * symtab.c (lookup_objfile_from_block): Ditto.
1664
1665 2014-11-06  Doug Evans  <xdje42@gmail.com>
1666
1667         * gdbtypes.h (TYPE_CODE_CLASS): Delete.  All uses changed to use
1668         TYPE_CODE_STRUCT.
1669
1670 2014-11-06  Doug Evans  <xdje42@gmail.com>
1671
1672         * objfiles.c (get_objfile_arch): Constify.
1673         * objfiles.h (get_objfile_arch): Update prototype.
1674         * solib.c (solib_global_lookup): Fetch arch from objfile,
1675         not target_gdbarch.
1676
1677 2014-11-06  Sandra Loosemore  <sandra@codesourcery.com>
1678
1679         * nios2-tdep.c (wild_insn): Delete.
1680         (profiler_insn, irqentry_insn): Delete.
1681         (nios2_match_sequence): Delete.
1682         (nios2_analyze_prologue): Update comments.  Remove matching
1683         of obsolete profiler_insn and irqentry_insn sequences.
1684
1685 2014-11-05  Alan Modra  <amodra@gmail.com>
1686
1687         * charset.c (convert_between_encodings): Shrink obstack using
1688         obstack_blank_fast.
1689         * minsyms.c (install_minimal_symbols): Likewise.
1690         * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1691         to char* before doing pointer arithmetic.
1692
1693 2014-11-04  Simon Marchi  <simon.marchi@ericsson.com>
1694
1695         * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1696
1697 2014-11-04  Pedro Alves  <palves@redhat.com>
1698
1699         * breakpoint.c (breakpoint_thread_match): Delete function.
1700         * breakpoint.h (breakpoint_thread_match): Delete declaration.
1701
1702 2014-11-03  Siva Chandra Reddy  <sivachandra@google.com>
1703
1704         PR c++/17494
1705         * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1706         the method args also under EVAL_SKIP when evaluating method
1707         calls under EVAL_SKIP.
1708
1709 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
1710
1711         * dwarf2loc.c (read_pieced_value): Do big endian
1712         processing only if gdb_regnum is not -1.
1713         (write_pieced_value): Ditto.
1714
1715 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
1716
1717         * arm-linux-tdep.c (arm_linux_init_abi): Use
1718         info.byte_order_for_code to choose endianity of breakpoint
1719         instructions snippets.
1720
1721 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
1722
1723         * arm-tdep.c (extract_arm_insn): Use
1724         gdbarch_byte_order_for_code to read arm instruction.
1725
1726 2014-11-02  Doug Evans  <xdje42@gmail.com>
1727
1728         * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1729
1730 2014-11-02  Doug Evans  <xdje42@gmail.com>
1731
1732         * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1733         main_subfile before returning.
1734
1735 2014-10-31  Doug Evans  <xdje42@gmail.com>
1736
1737         * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1738         (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1739
1740 2014-10-31  Doug Evans  <xdje42@gmail.com>
1741
1742         * valops.c (value_cast_pointers): Fix whitespace.
1743         (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1744         Ditto.
1745
1746 2014-10-30  Doug Evans  <dje@google.com>
1747
1748         * NEWS: Mention ability add attributes to gdb.Objfile and
1749         gdb.Progspace objects.
1750         * python/py-objfile.c (objfile_object): New member dict.
1751         (objfpy_dealloc): Py_XDECREF dict.
1752         (objfpy_initialize): Initialize dict.
1753         (objfile_getset): Add __dict__.
1754         (objfile_object_type): Set tp_dictoffset member.
1755         * python/py-progspace.c (progspace_object): New member dict.
1756         (pspy_dealloc): Py_XDECREF dict.
1757         (pspy_initialize): Initialize dict.
1758         (pspace_getset): Add __dict__.
1759         (pspace_object_type): Set tp_dictoffset member.
1760
1761 2014-10-30  Yao Qi  <yao@codesourcery.com>
1762
1763         * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1764         replace '\\' with '\\\\'.
1765
1766 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
1767
1768         GDB 7.8.1 released.
1769
1770 2014-10-29  Pedro Alves  <palves@redhat.com>
1771
1772         PR gdb/17408
1773         * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1774         instead of assuming a thread with a stepping range is always
1775         stepping.
1776
1777 2014-10-29  Pedro Alves  <palves@redhat.com>
1778
1779         PR python/17372
1780         * event-top.c (change_line_handler): Call
1781         gdb_rl_callback_handler_remove instead of
1782         rl_callback_handler_remove.
1783         (callback_handler_installed): New global.
1784         (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1785         (gdb_rl_callback_handler_reinstall): New functions.
1786         (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1787         gdb_rl_callback_handler_install instead of
1788         rl_callback_handler_remove and rl_callback_handler_install.
1789         (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1790         instead of rl_callback_handler_remove.
1791         * event-top.h (gdb_rl_callback_handler_remove)
1792         (gdb_rl_callback_handler_install)
1793         (gdb_rl_callback_handler_reinstall): New declarations.
1794         * infrun.c (reinstall_readline_callback_handler_cleanup): New
1795         cleanup function.
1796         (fetch_inferior_event): Install it.
1797         * top.c (gdb_readline_wrapper_line) Call
1798         gdb_rl_callback_handler_remove instead of
1799         rl_callback_handler_remove.
1800         (gdb_readline_wrapper_cleanup): Don't call
1801         rl_callback_handler_install.
1802
1803 2014-10-29  Pedro Alves  <palves@redhat.com>
1804
1805         * event-top.c (command_line_handler): Clear the first byte of
1806         linebuffer, when it is first allocated.
1807
1808 2014-10-29  Pedro Alves  <palves@redhat.com>
1809
1810         * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1811         TRY_CATCH.
1812
1813 2014-10-29  Pedro Alves  <palves@redhat.com>
1814
1815         PR tui/16138
1816         PR tui/17519
1817         * tui/tui-interp.c (tui_is_toplevel): Delete global.
1818         (tui_allowed_p): Delete function.
1819         * tui/tui.c: Include "interps.h".
1820         (tui_enable): Don't use tui_allowed_p.  Error out here with
1821         detailed error messages if the TUI is the top level interpreter,
1822         or if output is not a terminal.  Use newterm instead of initscr,
1823         and error out if initializing the terminal fails.  Also error out if
1824         the terminal doesn't support cursor addressing.
1825         * tui/tui.h (tui_allowed_p): Delete declaration.
1826
1827 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
1828
1829         * arm-tdep.c (arm_skip_stack_protector): Return early if
1830         address loaded by first "ldr" instruction does not have
1831         a corresponding minimal symbol.  Update comment.
1832
1833 2014-10-29  Yao Qi  <yao@codesourcery.com>
1834
1835         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1836         loaded address correctly of ldr instruction.
1837
1838 2014-10-28  Pedro Alves  <palves@redhat.com>
1839
1840         PR gdb/12623
1841         * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1842         field.
1843         * infrun.c (resume) <stepping breakpoint instruction>: Set the
1844         thread's stepped_breakpoint field.  Skip if reverse debugging.
1845         Add comment.
1846         (init_thread_stepping_state, handle_signal_stop): Clear the
1847         thread's stepped_breakpoint field.
1848
1849 2014-10-27  Pedro Alves  <palves@redhat.com>
1850
1851         * remote.c (remote_thread_alive): New, factored out from ...
1852         (remote_thread_alive): ... this.
1853         (remote_update_thread_list): Bail out before deleting threads if
1854         the target returned an empty list, and, the current thread has a
1855         magic/fake ptid.
1856
1857 2014-10-27  Pedro Alves  <palves@redhat.com>
1858
1859         * infrun.c (handle_signal_stop): Also skip handlers when a random
1860         signal arrives while handling a "stepi" or a "nexti".  Set the
1861         thread's 'step_after_step_resume_breakpoint' flag.
1862
1863 2014-10-27  Luis Machado  <lgustavo@codesourcery.com>
1864
1865         * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1866         (arm_record_ld_st_imm_offset): Reimplement to cover all
1867         load/store cases for ARM opcode 010.
1868         (arm_record_ld_st_multiple): Reimplement to cover all
1869         load/store cases for ARM opcode 100.
1870
1871 2014-10-26  Doug Evans  <xdje42@gmail.com>
1872
1873         * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1874
1875 2014-10-26  Doug Evans  <xdje42@gmail.com>
1876
1877         * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1878         parameter "kind" to "block_index".
1879         * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1880         "block_index".
1881         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1882
1883 2014-10-26  Doug Evans  <xdje42@gmail.com>
1884
1885         * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1886
1887 2014-10-26  Doug Evans  <xdje42@gmail.com>
1888
1889         * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1890         obstack_alloc.
1891
1892 2014-10-26  Doug Evans  <xdje42@gmail.com>
1893
1894         * parser-defs.h (block_found): Move decl from here ...
1895         * symtab.h (block_found): ... to here.
1896
1897 2014-10-26  Doug Evans  <xdje42@gmail.com>
1898
1899         * symtab.h (struct field_of_this_result): Fix typo in comment.
1900         (lookup_symbol_in_language): Move function comment here.
1901         (lookup_symbol): Improve function comment.
1902         (basic_lookup_symbol_nonlocal): Ditto.
1903         (lookup_symbol_static, lookup_symbol_global): Ditto.
1904         (lookup_symbol_aux_block): Ditto.
1905         (lookup_language_this): Add function comment.
1906         (lookup_static_symbol_aux): Explicitly mark as extern.  Improve
1907         function comment.
1908         (lookup_block_symbol): Improve function comment.
1909         (lookup_struct): Fix capitalization in function comment.
1910         (lookup_transparent_type): Add function comment.
1911         (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1912         Improve function comment.
1913         (lookup_objfile_from_block): Add function comment.
1914         * symtab.c (lookup_symbol_in_language): Update function comment.
1915         (lookup_symbol, lookup_language_this): Ditto.
1916         (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1917         (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1918         (basic_lookup_symbol_nonlocal): Ditto.
1919         (lookup_symbol_static, lookup_symbol_global): Ditto.
1920         (lookup_transparent_type, lookup_block_symbol): Ditto.
1921
1922 2014-10-25  Doug Evans  <xdje42@gmail.com>
1923
1924         * symtab.c (types_info): Delete forward decl.
1925         (functions_info, variables_info, sources_info): Ditto.
1926         (_initialize_symtab): Rewrite forward decl to use
1927         initialize_file_ftype.
1928
1929 2014-10-25  Doug Evans  <xdje42@gmail.com>
1930
1931         * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1932
1933 2014-10-25  Doug Evans  <xdje42@gmail.com>
1934
1935         * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1936         of local var child_die.
1937
1938 2014-10-24  Don Breazeal  <donb@codesourcery.com>
1939
1940         * infrun.c (follow_fork_inferior): Update fork message printing
1941         to use target_terminal_ours_for_output instead of
1942         target_terminal_ours, to use _() for all format strings, to print
1943         "vfork" instead of "fork" for vforks, and to add a detach message.
1944         (handle_vfork_child_exec_or_exit): Update message printing to use
1945         target_terminal_ours_for_output instead of target_terminal_ours, to
1946         use _() for all format strings, and to fix some formatting.
1947
1948 2014-10-24  Pedro Alves  <palves@redhat.com>
1949
1950         * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1951         * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1952         * config/vax/vax.mh: Delete.
1953         * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1954         obsolete configurations section.
1955         * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1956         * vax-nat.c: Delete file.
1957
1958 2014-10-24  Pedro Alves  <palves@redhat.com>
1959
1960         * NEWS (Removed targets): Add OS/arch column.
1961
1962 2014-10-24  Siva Chandra Reddy  <sivachandra@google.com>
1963
1964         * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1965         on the arg type of a constructor only if it is of reference type.
1966
1967 2014-10-23  Sandra Loosemore  <sandra@codesourcery.com>
1968
1969         * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1970         accessors and constants from nios2 opcodes update.
1971         (nios2_get_next_pc): Likewise.
1972
1973 2014-10-19  Doug Evans  <xdje42@gmail.com>
1974
1975         * gdbthread.h (set_running): Fix comment.
1976         (set_executing, finish_thread_state): Fix comment.
1977
1978 2014-10-18  Doug Evans  <xdje42@gmail.com>
1979
1980         * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1981
1982 2014-10-17  Doug Evans  <dje@google.com>
1983
1984         * NEWS: Mention new event gdb.clear_objfiles.
1985         * python/py-event.h (emit_clear_objfiles_event): Clear
1986         * python/py-events.h (events_object): New member clear_objfiles.
1987         * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1988         event.
1989         * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1990         emit clear_objfiles event.
1991         * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1992         function.
1993         (emit_clear_objfiles_event): New function.
1994         (clear_objfiles): New event.
1995         * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1996         Declare.
1997         * python/python.c (_initialize_python): Call
1998         gdbpy_initialize_clear_objfiles_event.
1999
2000 2014-10-17  Doug Evans  <dje@google.com>
2001
2002         * NEWS: Mention new gdb.Objfile.progspace attribute.
2003         * python/py-objfile.c (objfpy_get_progspace): New function.
2004         (objfile_getset): New entry for "progspace".
2005
2006 2014-10-17  Pedro Alves  <palves@redhat.com>
2007
2008         PR gdb/17471
2009         * infcmd.c (strip_bg_char): Change prototype and rewrite.  Now
2010         returns a copy of the input.
2011         (run_command_1, continue_command, step_1, jump_command)
2012         (signal_command, until_command, advance_command, finish_command)
2013         (attach_command): Adjust and install a cleanup to free the
2014         stripped args.
2015
2016 2014-10-17  Pedro Alves  <palves@redhat.com>
2017
2018         PR gdb/17300
2019         * infcmd.c (continue_1): If continuing all threads in the
2020         foreground, make sure the inferior's terminal settings are put in
2021         effect.
2022
2023 2014-10-17  Pedro Alves  <palves@redhat.com>
2024
2025         PR gdb/17472
2026         * annotate.c (annotate_breakpoints_invalid): Use
2027         target_terminal_our_for_output instead of target_terminal_ours.
2028         Give back the terminal to the target.
2029         (annotate_frames_invalid): Likewise.
2030
2031 2014-10-17  Pedro Alves  <palves@redhat.com>
2032
2033         * target.c (enum terminal_state): New enum.
2034         (terminal_state): New global.
2035         (target_terminal_init): New function.
2036         (target_terminal_inferior): Skip if inferior already owns the
2037         terminal.
2038         (target_terminal_ours, target_terminal_ours_for_output): New
2039         functions.
2040         * target.h (target_terminal_init): Convert to function prototype.
2041         (target_terminal_ours_for_output): Convert to function prototype
2042         and tweak comment.
2043         (target_terminal_ours): Convert to function prototype and tweak
2044         comment.
2045         * windows-nat.c (do_initial_windows_stuff): Call
2046         target_terminal_init instead of child_terminal_init_with_pgrp.
2047
2048 2014-10-17  Pedro Alves  <palves@redhat.com>
2049
2050         * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
2051         (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
2052         (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
2053         solib-osf.c.
2054         * NEWS: Mention that support for alpha*-*-osf* has been removed.
2055         * ada-lang.h [__alpha__ && __osf__]
2056         (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
2057         * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
2058         * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
2059         GDB_OSABI_OSF1.
2060         * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
2061         files.
2062         * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
2063         (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
2064         * configure: Regenerate.
2065         * configure.ac: Remove references to osf.
2066         * configure.host: Handle alpha*-*-osf* in the obsolete hosts
2067         section.  Remove all other references to osf.
2068         * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
2069         Remove all other references to osf.
2070         * dec-thread.c: Delete file.
2071         * defs.h (GDB_OSABI_OSF1): Delete.
2072         * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
2073         defined.
2074         * osabi.c (gdb_osabi_names): Delete "OSF/1".
2075         * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
2076         Delete code.
2077         (unconditionally_kill_inferior)
2078         [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
2079         * solib-osf.c: Delete file.
2080
2081 2014-10-17  Pedro Alves  <palves@redhat.com>
2082
2083         * remote.c (clear_threads_listing_context): Move higher up, out of
2084         the HAVE_LIBEXPAT guard.
2085
2086 2014-10-16  Tristan Gingold  <gingold@adacore.com>
2087
2088         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
2089         (i386_darwin_store_inferior_registers): Sanitize gs and fs values
2090         on amd64.
2091
2092 2014-10-15  Pedro Alves  <palves@redhat.com>
2093
2094         * dec-thread.c (dec_thread_count_gdb_threads)
2095         (dec_thread_add_gdb_thread): Delete.
2096         (dec_thread_update_thread_list): Delete.
2097         (dec_thread_find_new_threads): Rename to ...
2098         (dec_thread_update_thread_list): ... this.  Delete GDB-size
2099         threads that are no longer found in dec_thread_list.
2100         (resync_thread_list): Delete.
2101         (dec_thread_wait): Call dec_thread_update_thread_list instead of
2102         resync_thread_list.
2103
2104 2014-10-15  Pedro Alves  <palves@redhat.com>
2105
2106         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
2107         * remote.c (remote_update_thread_list): Skip calling prune_threads
2108         if any thread listing method is supported, and instead walk over
2109         the set of remote threads listed, deleting those that are not
2110         found in GDB's thread list.
2111
2112 2014-10-15  Pedro Alves  <palves@redhat.com>
2113
2114         * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
2115         * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
2116         (bsd_uthread_update_thread_list): ... this.  Call prune_threads.
2117         (bsd_uthread_target): Adjust.
2118         * corelow.c (core_open): Adjust.
2119         * dec-thread.c (dec_thread_find_new_threads): Update comment.
2120         (dec_thread_update_thread_list): New function.
2121         (init_dec_thread_ops): Adjust.
2122         * gdbthread.h (prune_threads): New declaration.
2123         * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
2124         (thread_db_update_thread_list): ... this.  Call prune_threads.
2125         (init_thread_db_ops): Adjust.
2126         * nto-procfs.c (procfs_find_new_threads): Rename to ...
2127         (procfs_update_thread_list): ... this.  Call prune_threads.
2128         (procfs_attach, procfs_create_inferior, init_procfs_targets):
2129         Adjust.
2130         * obsd-nat.c (obsd_find_new_threads): Rename to ...
2131         (obsd_update_thread_list): ... this.  Call prune_threads.
2132         (obsd_add_target): Adjust.
2133         * procfs.c (procfs_target): Adjust.
2134         (procfs_notice_thread): Update comment.
2135         (procfs_find_new_threads): Rename to ...
2136         (procfs_update_thread_list): ... this.  Call prune_threads.
2137         * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
2138         comment.
2139         (ravenscar_wait): Adjust.
2140         (ravenscar_find_new_threads): Rename to ...
2141         (ravenscar_update_thread_list): ... this.  Call prune_threads.
2142         (init_ravenscar_thread_ops): Adjust.
2143         * record-btrace.c (record_btrace_find_new_threads): Rename to ...
2144         (record_btrace_update_thread_list): ... this.  Adjust comment.
2145         (init_record_btrace_ops): Adjust.
2146         * remote.c (remote_threads_info): Rename to ...
2147         (remote_update_thread_list): ... this.  Call prune_threads.
2148         (remote_start_remote, extended_remote_attach_1, init_remote_ops):
2149         Adjust.
2150         * sol-thread.c (check_for_thread_db): Adjust.
2151         (sol_find_new_threads_callback): Rename to ...
2152         (sol_update_thread_list_callback): ... this.
2153         (sol_find_new_threads): Rename to ...
2154         (sol_update_thread_list): ... this.  Call prune_threads.  Adjust.
2155         (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
2156         * target-delegates.c: Regenerate.
2157         * target.c (target_find_new_threads): Rename to ...
2158         (target_update_thread_list): ... this.
2159         * target.h (struct target_ops): Rename to_find_new_threads field
2160         to to_update_thread_list.
2161         (target_find_new_threads): Rename to ...
2162         (target_update_thread_list): ... this.
2163         * thread.c (prune_threads): Make extern.
2164         (update_thread_list): Adjust.
2165
2166 2014-10-15  Pedro Alves  <palves@redhat.com>
2167
2168         * remote.c (remote_get_threadlist, remote_threadlist_iterator):
2169         Add describing comment.  Return -1 if the qL packet is not
2170         supported.
2171         (struct thread_item, thread_item_t): Move higher up in
2172         the file.  Add comments.
2173         (struct threads_parsing_context): Move higher up in
2174         the file, add comments, and remote to ...
2175         (struct threads_listing_context): ... this.
2176         (remote_newthread_step): Don't add the thread to GDB's thread
2177         database here.  Instead push it to the thread_listing_context
2178         list.
2179         (remote_find_new_threads): Rename to ...
2180         (remote_get_threads_with_ql): ... this.  Add target_ops and
2181         targets_listing_context parameters.  Pass down context.
2182         (start_thread): Adjust.
2183         (clear_threads_parsing_context): Rename to ...
2184         (clear_threads_listing_context): ... this.
2185         (remote_get_threads_with_qxfer): New, with parts salvaged from old
2186         remote_threads_info.
2187         (remote_get_threads_with_qthreadinfo): Ditto.
2188         (remote_threads_info): Reimplement.
2189
2190 2014-10-15  Pedro Alves  <palves@redhat.com>
2191
2192         * infrun.c (resume): Don't force displaced-stepping for all
2193         single-steps on software single-stepping archs.
2194
2195 2014-10-15  Pedro Alves  <palves@redhat.com>
2196
2197         * breakpoint.c (single_step_breakpoints): Delete global.
2198         (insert_single_step_breakpoint): Adjust to store the breakpoint
2199         pointer in the current thread.
2200         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2201         (cancel_single_step_breakpoints): Delete functions.
2202         (breakpoint_has_location_inserted_here): Make extern.
2203         (single_step_breakpoint_inserted_here_p): Adjust to walk the
2204         breakpoint list.
2205         * breakpoint.h (breakpoint_has_location_inserted_here): New
2206         declaration.
2207         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2208         (cancel_single_step_breakpoints): Remove declarations.
2209         * gdbthread.h (struct thread_control_state)
2210         <single_step_breakpoints>: New field.
2211         (delete_single_step_breakpoints)
2212         (thread_has_single_step_breakpoints_set)
2213         (thread_has_single_step_breakpoint_here): New declarations.
2214         * infrun.c (follow_exec): Also clear the single-step breakpoints.
2215         (singlestep_breakpoints_inserted_p, singlestep_ptid)
2216         (singlestep_pc): Delete globals.
2217         (infrun_thread_ptid_changed): Remove references to removed
2218         globals.
2219         (resume_cleanups): Delete the current thread's single-step
2220         breakpoints.
2221         (maybe_software_singlestep): Remove references to removed globals.
2222         (resume): Adjust to use thread_has_single_step_breakpoints_set and
2223         delete_single_step_breakpoints.
2224         (init_wait_for_inferior): Remove references to removed globals.
2225         (delete_thread_infrun_breakpoints): Delete the thread's
2226         single-step breakpoints too.
2227         (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2228         single-step breakpoints here.
2229         (delete_stopped_threads_single_step_breakpoints): New function.
2230         (adjust_pc_after_break): Adjust to use
2231         thread_has_single_step_breakpoints_set.
2232         (handle_inferior_event): Remove references to removed globals.
2233         Use delete_stopped_threads_single_step_breakpoints.
2234         (handle_signal_stop): Adjust to per-thread single-step
2235         breakpoints.  Swap test order to do cheaper tests first.
2236         (switch_back_to_stepped_thread): Extend debug output.  Remove
2237         references to removed globals.
2238         * record-full.c (record_full_wait_1): Adjust to per-thread
2239         single-step breakpoints.
2240         * thread.c (delete_single_step_breakpoints)
2241         (thread_has_single_step_breakpoints_set)
2242         (thread_has_single_step_breakpoint_here): New functions.
2243         (clear_thread_inferior_resources): Also delete the thread's
2244         single-step breakpoints.
2245
2246 2014-10-15  Pedro Alves  <palves@redhat.com>
2247
2248         * thread.c (delete_thread_breakpoint): New function.
2249         (delete_step_resume_breakpoint)
2250         (delete_exception_resume_breakpoint): Use it.
2251         (delete_at_next_stop): New function.
2252         (clear_thread_inferior_resources): Use delete_at_next_stop.
2253
2254 2014-10-15  Pedro Alves  <palves@redhat.com>
2255
2256         * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2257         (breakpoint_inserted_here_p): ... here.  Remove special case for
2258         software single-step breakpoints.
2259         (find_non_raw_software_breakpoint_inserted_here): Inline ...
2260         (software_breakpoint_inserted_here_p): ... here.  Remove special
2261         case for software single-step breakpoints.
2262         (bp_target_info_copy_insertion_state)
2263         (deprecated_insert_raw_breakpoint)
2264         (deprecated_remove_raw_breakpoint): Delete functions.
2265         * breakpoint.h (deprecated_insert_raw_breakpoint)
2266         (deprecated_remove_raw_breakpoint): Remove declarations.
2267
2268 2014-10-15  Pedro Alves  <palves@redhat.com>
2269
2270         PR breakpoints/9649
2271         * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2272         Delete array globals.
2273         (single_step_breakpoints): New global.
2274         (breakpoint_xfer_memory): Remove special handling for single-step
2275         breakpoints.
2276         (update_breakpoints_after_exec): Delete bp_single_step
2277         breakpoints.
2278         (detach_breakpoints): Remove special handling for single-step
2279         breakpoints.
2280         (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2281         (bpstat_stop_status): Add comment.
2282         (bpstat_what, bptype_string, print_one_breakpoint_location)
2283         (adjust_breakpoint_address, init_bp_location): Handle
2284         bp_single_step.
2285         (new_single_step_breakpoint): New function.
2286         (set_momentary_breakpoint, bkpt_remove_location): Remove special
2287         handling for single-step breakpoints.
2288         (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2289         (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2290         Rewrite.
2291         (detach_single_step_breakpoints, find_single_step_breakpoint):
2292         Delete functions.
2293         (breakpoint_has_location_inserted_here): New function.
2294         (single_step_breakpoint_inserted_here_p): Rewrite.
2295         * breakpoint.h: Remove FIXME.
2296         (enum bptype) <bp_single_step>: New enum value.
2297         (insert_single_step_breakpoint): Update comment.
2298         * infrun.c (resume_cleanups)
2299         (delete_step_thread_step_resume_breakpoint): Remove single-step
2300         breakpoints.
2301         (fetch_inferior_event): Install a cleanup that removes infrun
2302         breakpoints.
2303         (switch_back_to_stepped_thread) <expect thread advanced also>:
2304         Clear step-over info.
2305
2306 2014-10-15  Pedro Alves  <palves@redhat.com>
2307
2308         * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2309         (delete_thread_infrun_breakpoints): New function, with parts
2310         salvaged from delete_step_resume_breakpoint_callback.
2311         (delete_step_thread_step_resume_breakpoint): Delete.
2312         (for_each_just_stopped_thread_callback_func): New typedef.
2313         (for_each_just_stopped_thread): New function.
2314         (delete_just_stopped_threads_infrun_breakpoints): New function.
2315         (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2316         (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2317         ... this.  Adjust.
2318         (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2319
2320 2014-10-15  Pedro Alves  <palves@redhat.com>
2321
2322         * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2323         trying to step past a non-steppable watchpoint.
2324         * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2325         field.
2326         * infrun.c (struct step_over_info): Add new field
2327         'nonsteppable_watchpoint_p' and adjust comments.
2328         (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2329         Adjust.
2330         (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2331         (stepping_past_nonsteppable_watchpoint): New function.
2332         (step_over_info_valid_p): Also return true if stepping past a
2333         nonsteppable watchpoint.
2334         (proceed): Adjust call to set_step_over_info.  Remove reference to
2335         init_infwait_state.
2336         (init_wait_for_inferior): Remove reference to init_infwait_state.
2337         (waiton_ptid): Delete global.
2338         (struct execution_control_state)
2339         <stepped_after_stopped_by_watchpoint>: Delete field.
2340         (wait_for_inferior, fetch_inferior_event): Always pass
2341         minus_one_ptid to target_wait.
2342         (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2343         field.
2344         (init_infwait_state): Delete function.
2345         (handle_inferior_event): Remove infwait_state handling.
2346         (handle_signal_stop) <watchpoints handling>: Adjust after
2347         stepped_after_stopped_by_watchpoint removal.  Don't remove
2348         breakpoints here nor set infwait_state.  Set the thread's
2349         stepping_over_watchpoint flag, and call keep_going instead.
2350         (keep_going): Handle stepping_over_watchpoint.  Adjust
2351         set_step_over_info calls.
2352         * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2353         function.
2354
2355 2014-10-15  Pedro Alves  <palves@redhat.com>
2356
2357         * infrun.c (step_over_info_valid_p): New function.
2358         (resume): Use step_over_info_valid_p instead of checking the
2359         threads's trap_expected flag.
2360
2361 2014-10-15  Doug Evans  <dje@google.com>
2362             Walfred Tedeschi  <walfred.tedeschi@intel.com>
2363
2364         PR python/17364
2365         * python/lib/gdb/__init__.py (packages): Add "printer".
2366         * python/lib/gdb/command/bound_registers.py: Moved to ...
2367         * python/lib/gdb/printer/bound_registers.py: ... here.
2368         Add printer to global set of builtin printers.  Rename printer from
2369         "bound" to "mpx_bound128".
2370         * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2371         registered as global "builtin" printer.
2372         (add_builtin_pretty_printer): New function.
2373         * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2374         gdb/printer/__init__.py.
2375
2376 2014-10-15  Iain Buclaw  <ibuclaw@gdcproject.org>
2377
2378         * Makefile.in (SFILES): Remove d-support.c.
2379         (COMMON_OBS): Remove d-support.o.
2380         * d-lang.h (d_parse_symbol): Remove declaration.
2381         * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2382         * d-support.c: Remove file.
2383
2384 2014-10-15  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2385
2386         * gdb/infrun.c (process_event_stop_test): Apply
2387         gdbarch_addr_bits_remove to longjmp resume address.
2388
2389 2014-10-15  Pedro Alves  <palves@redhat.com>
2390
2391         * regformats/microblaze.dat: Delete file.
2392
2393 2014-10-15  Ajit Agarwal  <ajitkum@xilinx.com>
2394
2395         * features/Makefile (microblaze-expedite): Replace pc with rpc.
2396         * regformats/microblaze-with-stack-protect.dat: Regenerate.
2397
2398 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
2399
2400         * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2401         as non-trivial.
2402
2403 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
2404
2405         PR c++/13403
2406         PR c++/15154
2407         * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2408         with qualified args.
2409
2410 2014-10-14  Joel Brobecker  <brobecker@adacore.com>
2411
2412         * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2413         of the case where the second operand is a pointer.
2414         <BINOP_SUB>: Likewise.
2415
2416 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
2417
2418         * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2419         only if it is not NULL.
2420         (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2421         * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2422         (struct probe_ops) <clear_semaphore>: Likewise.
2423         * tracepoint.c (start_tracing): Call set_semaphore only if it is
2424         not NULL.
2425         (stop_tracing): Likewise, for clear_semaphore.
2426
2427 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
2428
2429         * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2430         using language_c, instead of current_language.
2431
2432 2014-10-13  Doug Evans  <dje@google.com>
2433
2434         * python/py-objfile.c (objfpy_initialize): New function.
2435         (objfpy_new, objfile_to_objfile_object): Call it.
2436         * python/py-progspace.c (pspy_initialize): New function.
2437         (pspy_new, pspace_to_pspace_object): Call it.
2438
2439 2014-10-13  Miroslav Franc  <mfranc@redhat.com>
2440             Jan Kratochvil  <jan.kratochvil@redhat.com>
2441
2442         Fix "save breakpoints" for "catch" command.
2443         * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2444         newline.
2445
2446 2014-10-12  Miroslav Franc  <mfranc@redhat.com>
2447
2448         Fix "save breakpoints" for "disable $bpnum" command.
2449         * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2450
2451 2014-10-10  Pedro Alves  <palves@redhat.com>
2452
2453         * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2454         (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2455         (HFILES_NO_SRCDIR): Remove solib-irix.h.
2456         * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2457         and been removed.
2458         * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2459         * configure.ac: Remove references to IRIX.
2460         * configure.host: Add *-*-irix* to the obsolete hosts section.
2461         Remove all other references to irix.
2462         * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2463         Delete files.
2464
2465 2014-10-10  Ajit Agarwal  <ajitkum@xilinx.com>
2466
2467         * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2468         isn't valid, release the tdesc arch data and return NULL.
2469
2470 2014-10-10  Pedro Alves  <palves@redhat.com>
2471
2472         * linux-tdep.c: Include observer.h.
2473         (linux_inferior_data): New global.
2474         (struct linux_info): New structure.
2475         (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2476         (get_linux_inferior_data): New functions.
2477         (linux_vsyscall_range): Rename to ...
2478         (linux_vsyscall_range_raw): ... this.
2479         (linux_vsyscall_range): New function; handles caching.
2480         (_initialize_linux_tdep): Register linux_inferior_data.  Install
2481         inferior_exit and inferior_appeared observers.
2482
2483 2014-10-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
2484             Pedro Alves  <palves@redhat.com>
2485
2486         PR symtab/14466
2487         * solib-svr4.c (svr4_read_so_list): Rename to ...
2488         (svr4_current_sos_1): ... this and change the function comment.
2489         (svr4_current_sos): New function.
2490
2491 2014-10-10  Pedro Alves  <palves@redhat.com>
2492
2493         * arch-utils.c (default_vsyscall_range): New function.
2494         * arch-utils.h (default_vsyscall_range): New declaration.
2495         * gdbarch.sh (vsyscall_range): New hook.
2496         * gdbarch.h, gdbarch.c: Regenerate.
2497         * linux-tdep.c (linux_vsyscall_range): New function.
2498         (linux_init_abi): Install linux_vsyscall_range as
2499         vsyscall_range gdbarch hook.
2500         * memrange.c (address_in_mem_range): New function.
2501         * memrange.h (address_in_mem_range): New declaration.
2502         * symfile-mem.c (find_vdso_size): Delete function.
2503         (add_vsyscall_page): Use gdbarch_vsyscall_range.
2504
2505 2014-10-10  Pedro Alves  <palves@redhat.com>
2506
2507         * infrun.c (normal_stop): Fix typo in comment.
2508
2509 2014-10-09  Sergio Durigan Junior  <sergiodj@redhat.com>
2510
2511         PR tdep/9390
2512         * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2513         typo when using logical AND to determine instruction type.
2514
2515 2014-10-09  Yao Qi  <yao@codesourcery.com>
2516
2517         * infrun.c (handle_signal_stop): Remove local variable
2518         'printed'.
2519
2520 2014-10-08  Stan Shebs  <stan@codesourcery.com>
2521
2522         * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2523
2524 2014-10-08  Gary Benson  <gbenson@redhat.com>
2525
2526         * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2527
2528 2014-10-08  Gary Benson  <gbenson@redhat.com>
2529
2530         * common/common-defs.h: Include common-exceptions.h.
2531         * exceptions.h: Do not include common-exceptions.h.
2532
2533 2014-10-08  Gary Benson  <gbenson@redhat.com>
2534
2535         * common/common-defs.h: Include cleanups.h.
2536         * common/common-exceptions.c: Do not include cleanups.h.
2537         * utils.h: Likewise.
2538
2539 2014-10-08  Gary Benson  <gbenson@redhat.com>
2540
2541         * ada-lang.c: Do not include exceptions.h.
2542         * ada-valprint.c: Likewise.
2543         * amd64-tdep.c: Likewise.
2544         * auto-load.c: Likewise.
2545         * block.c: Likewise.
2546         * break-catch-throw.c: Likewise.
2547         * breakpoint.c: Likewise.
2548         * btrace.c: Likewise.
2549         * c-lang.c: Likewise.
2550         * cli/cli-cmds.c: Likewise.
2551         * cli/cli-interp.c: Likewise.
2552         * cli/cli-script.c: Likewise.
2553         * completer.c: Likewise.
2554         * corefile.c: Likewise.
2555         * corelow.c: Likewise.
2556         * cp-abi.c: Likewise.
2557         * cp-support.c: Likewise.
2558         * cp-valprint.c: Likewise.
2559         * darwin-nat.c: Likewise.
2560         * dwarf2-frame-tailcall.c: Likewise.
2561         * dwarf2-frame.c: Likewise.
2562         * dwarf2loc.c: Likewise.
2563         * dwarf2read.c: Likewise.
2564         * eval.c: Likewise.
2565         * event-loop.c: Likewise.
2566         * event-top.c: Likewise.
2567         * f-valprint.c: Likewise.
2568         * frame-unwind.c: Likewise.
2569         * frame.c: Likewise.
2570         * gdbtypes.c: Likewise.
2571         * gnu-v2-abi.c: Likewise.
2572         * gnu-v3-abi.c: Likewise.
2573         * guile/scm-auto-load.c: Likewise.
2574         * guile/scm-breakpoint.c: Likewise.
2575         * guile/scm-cmd.c: Likewise.
2576         * guile/scm-frame.c: Likewise.
2577         * guile/scm-lazy-string.c: Likewise.
2578         * guile/scm-param.c: Likewise.
2579         * guile/scm-symbol.c: Likewise.
2580         * guile/scm-type.c: Likewise.
2581         * hppa-hpux-tdep.c: Likewise.
2582         * i386-tdep.c: Likewise.
2583         * inf-loop.c: Likewise.
2584         * infcall.c: Likewise.
2585         * infcmd.c: Likewise.
2586         * infrun.c: Likewise.
2587         * interps.c: Likewise.
2588         * interps.h: Likewise.
2589         * jit.c: Likewise.
2590         * linespec.c: Likewise.
2591         * linux-nat.c: Likewise.
2592         * linux-thread-db.c: Likewise.
2593         * m32r-rom.c: Likewise.
2594         * main.c: Likewise.
2595         * memory-map.c: Likewise.
2596         * mi/mi-cmd-break.c: Likewise.
2597         * mi/mi-cmd-stack.c: Likewise.
2598         * mi/mi-interp.c: Likewise.
2599         * mi/mi-main.c: Likewise.
2600         * monitor.c: Likewise.
2601         * nto-procfs.c: Likewise.
2602         * objc-lang.c: Likewise.
2603         * p-valprint.c: Likewise.
2604         * parse.c: Likewise.
2605         * ppc-linux-tdep.c: Likewise.
2606         * printcmd.c: Likewise.
2607         * probe.c: Likewise.
2608         * python/py-auto-load.c: Likewise.
2609         * python/py-breakpoint.c: Likewise.
2610         * python/py-cmd.c: Likewise.
2611         * python/py-finishbreakpoint.c: Likewise.
2612         * python/py-frame.c: Likewise.
2613         * python/py-framefilter.c: Likewise.
2614         * python/py-function.c: Likewise.
2615         * python/py-gdb-readline.c: Likewise.
2616         * python/py-inferior.c: Likewise.
2617         * python/py-infthread.c: Likewise.
2618         * python/py-lazy-string.c: Likewise.
2619         * python/py-linetable.c: Likewise.
2620         * python/py-param.c: Likewise.
2621         * python/py-prettyprint.c: Likewise.
2622         * python/py-symbol.c: Likewise.
2623         * python/py-type.c: Likewise.
2624         * python/py-value.c: Likewise.
2625         * python/python-internal.h: Likewise.
2626         * python/python.c: Likewise.
2627         * record-btrace.c: Likewise.
2628         * record-full.c: Likewise.
2629         * regcache.c: Likewise.
2630         * remote-fileio.c: Likewise.
2631         * remote-mips.c: Likewise.
2632         * remote.c: Likewise.
2633         * rs6000-aix-tdep.c: Likewise.
2634         * rs6000-nat.c: Likewise.
2635         * skip.c: Likewise.
2636         * solib-darwin.c: Likewise.
2637         * solib-dsbt.c: Likewise.
2638         * solib-frv.c: Likewise.
2639         * solib-ia64-hpux.c: Likewise.
2640         * solib-spu.c: Likewise.
2641         * solib-svr4.c: Likewise.
2642         * solib.c: Likewise.
2643         * spu-tdep.c: Likewise.
2644         * stack.c: Likewise.
2645         * stap-probe.c: Likewise.
2646         * symfile-mem.c: Likewise.
2647         * symmisc.c: Likewise.
2648         * target.c: Likewise.
2649         * thread.c: Likewise.
2650         * top.c: Likewise.
2651         * tracepoint.c: Likewise.
2652         * tui/tui-interp.c: Likewise.
2653         * typeprint.c: Likewise.
2654         * utils.c: Likewise.
2655         * valarith.c: Likewise.
2656         * valops.c: Likewise.
2657         * valprint.c: Likewise.
2658         * value.c: Likewise.
2659         * varobj.c: Likewise.
2660         * windows-nat.c: Likewise.
2661         * xml-support.c: Likewise.
2662
2663 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
2664
2665         * mips-tdep.c (add_offset_16): Rewrite to implement what the
2666         name implies.
2667         (extended_mips16_next_pc): Update accordingly.
2668
2669 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
2670
2671         * mips-tdep.c (mips16_instruction_is_compact_branch): New
2672         function.
2673         (micromips_instruction_is_compact_branch): Likewise.
2674         (mips16_scan_prologue): Terminate scanning upon seeing a branch
2675         or a compact jump, reaching a jump delay slot, or seeing a
2676         second non-prologue instruction.
2677         (micromips_scan_prologue): Also terminate scanning upon seeing a
2678         compact branch or jump, or reaching a branch or jump delay slot.
2679         (mips32_scan_prologue): Terminate scanning upon reaching a branch
2680         or jump delay slot, or seeing a second non-prologue instruction.
2681         (mips32_instruction_has_delay_slot): Retain instruction
2682         examination code only, update arguments accordingly and move
2683         instruction fetch pieces to...
2684         (mips32_insn_at_pc_has_delay_slot): ... this new function.
2685         (micromips_instruction_has_delay_slot): Likewise and to...
2686         (micromips_insn_at_pc_has_delay_slot): ... this new function.
2687         (mips16_instruction_has_delay_slot): Likewise and to...
2688         (mips16_insn_at_pc_has_delay_slot): ... this new function.
2689         (mips_single_step_through_delay): Update accordingly.
2690         (mips_adjust_breakpoint_address): Likewise.
2691
2692 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
2693
2694         * mips-tdep.c (micromips_instruction_has_delay_slot): When
2695         !mustbe32 also return 1 for 32-bit instructions.
2696         (mips16_instruction_has_delay_slot): Likewise.  Add an
2697         explanatory comment.
2698
2699 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
2700
2701         * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2702         symbols special.
2703
2704 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
2705
2706         * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2707         update comments.
2708         * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2709         for the breakpoint's address.  Don't preinitialize `placed_size'.
2710         (insert_bp_location): Set `reqstd_address' rather than
2711         `placed_address'.
2712         (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2713         (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2714         address.
2715         (bkpt_remove_location): Likewise.
2716         (deprecated_insert_raw_breakpoint): Likewise.
2717         (deprecated_remove_raw_breakpoint): Likewise.
2718         (find_single_step_breakpoint): Likewise.
2719         * mem-break.c (default_memory_insert_breakpoint): Use
2720         `reqstd_address' for the breakpoint's address.  Don't set
2721         `placed_address' or `placed_size' if breakpoint contents couldn't
2722         have been determined.
2723         * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2724         the breakpoint's address.
2725         (remote_insert_hw_breakpoint): Likewise.  Don't set
2726         `placed_address' or `placed_size' if breakpoint couldn't have been
2727         set.
2728         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2729         `reqstd_address' for the breakpoint's address.
2730         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2731         * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2732         * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2733         * microblaze-linux-tdep.c
2734         (microblaze_linux_memory_remove_breakpoint): Likewise.
2735         * monitor.c (monitor_insert_breakpoint): Likewise.
2736         * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2737         (procfs_insert_hw_breakpoint): Likewise.
2738         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2739         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2740         * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2741         * remote-mips.c (mips_insert_breakpoint): Likewise.
2742         * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2743
2744 2014-10-03  Luis Machado  <lgustavo@codesourcery.com>
2745
2746         * valops.c (value_assign): Check for bit field assignments
2747         before calling architecture-specific register value
2748         conversion functions.
2749
2750 2014-10-03  Pierre Muller  <muller@sourceware.org>
2751
2752         * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2753
2754 2014-10-02  Pedro Alves  <palves@redhat.com>
2755
2756         * breakpoint.c (breakpoints_should_be_inserted_now): Use
2757         threads_are_executing.
2758         * breakpoint.h (breakpoints_should_be_inserted_now): Add
2759         describing comment.
2760         * gdbthread.h (threads_are_executing): Declare.
2761         (handle_signal_stop) <random signals>: Don't print about the
2762         signal here if stopping.
2763         (end_stepping_range): Don't notify observers here.
2764         (normal_stop): Update the thread list.  If stopped by a random
2765         signal or a stepping range ended, notify observers.
2766         * thread.c (threads_executing): New global.
2767         (init_thread_list): Clear 'threads_executing'.
2768         (set_executing): Set or clear 'threads_executing'.
2769         (threads_are_executing): New function.
2770         (update_threads_executing): New function.
2771         (update_thread_list): Use it.
2772
2773 2014-10-02  Pedro Alves  <palves@redhat.com>
2774
2775         PR breakpoints/17431
2776         * breakpoint.c (update_breakpoints_after_exec): Don't create
2777         overlay, longjmp, std terminate nor exception breakpoints here.
2778
2779 2014-10-02  Pedro Alves  <palves@redhat.com>
2780
2781         * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2782         Adjust comments.
2783         * inferior.c (find_inferior_for_program_space): Give preference to
2784         the current inferior.
2785         * inferior.h (find_inferior_for_program_space): Update comment.
2786         * progspace.c (switch_to_program_space_and_thread): Prefer the
2787         current inferior if it's bound to the program space requested.  If
2788         the inferior found doesn't have a PID yet, don't bother looking up
2789         a thread.
2790         * progspace.h (switch_to_program_space_and_thread): Adjust
2791         comment.
2792         * thread.c (any_thread_of_process, any_live_thread_of_process):
2793         Give preference to the current thread.
2794
2795 2014-10-01  Pedro Alves  <palves@redhat.com>
2796
2797         * breakpoint.c (insert_bp_location): Error out if inserting a
2798         software breakpoint at a read-only address.
2799         * target.c (memory_xfer_check_region): New function, factored out
2800         from ...
2801         (memory_xfer_partial_1): ... this.  Make the 'reg_len' local a
2802         ULONGEST.
2803         (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2804         against the memory region attributes.
2805
2806 2014-10-01  Simon Marchi  <simon.marchi@ericsson.com>
2807
2808         * NEWS: Announce new exit-code field in -list-thread-groups
2809         output.
2810         * inferior.c (exit_inferior_1): Don't clear exit code.
2811         (inferior_appeared): Clear exit code.
2812         * mi/mi-main.c (print_one_inferior): Add printing of the exit
2813         code.
2814
2815 2014-10-01  Pedro Alves  <palves@redhat.com>
2816
2817         * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2818         GENERATED" along with emacs/vi read-only markers.
2819         * regformats/aarch64.dat: Regenerate.
2820         * regformats/arm-with-iwmmxt.dat: Regenerate.
2821         * regformats/arm-with-neon.dat: Regenerate.
2822         * regformats/arm-with-vfpv2.dat: Regenerate.
2823         * regformats/arm-with-vfpv3.dat: Regenerate.
2824         * regformats/i386/amd64-avx-linux.dat: Regenerate.
2825         * regformats/i386/amd64-avx.dat: Regenerate.
2826         * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2827         * regformats/i386/amd64-avx512.dat: Regenerate.
2828         * regformats/i386/amd64-linux.dat: Regenerate.
2829         * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2830         * regformats/i386/amd64-mpx.dat: Regenerate.
2831         * regformats/i386/amd64.dat: Regenerate.
2832         * regformats/i386/i386-avx-linux.dat: Regenerate.
2833         * regformats/i386/i386-avx.dat: Regenerate.
2834         * regformats/i386/i386-avx512-linux.dat: Regenerate.
2835         * regformats/i386/i386-avx512.dat: Regenerate.
2836         * regformats/i386/i386-linux.dat: Regenerate.
2837         * regformats/i386/i386-mmx-linux.dat: Regenerate.
2838         * regformats/i386/i386-mmx.dat: Regenerate.
2839         * regformats/i386/i386-mpx-linux.dat: Regenerate.
2840         * regformats/i386/i386-mpx.dat: Regenerate.
2841         * regformats/i386/i386.dat: Regenerate.
2842         * regformats/i386/x32-avx-linux.dat: Regenerate.
2843         * regformats/i386/x32-avx.dat: Regenerate.
2844         * regformats/i386/x32-avx512-linux.dat: Regenerate.
2845         * regformats/i386/x32-avx512.dat: Regenerate.
2846         * regformats/i386/x32-linux.dat: Regenerate.
2847         * regformats/i386/x32.dat: Regenerate.
2848         * regformats/microblaze-with-stack-protect.dat: Regenerate.
2849         * regformats/mips-dsp-linux.dat: Regenerate.
2850         * regformats/mips-linux.dat: Regenerate.
2851         * regformats/mips64-dsp-linux.dat: Regenerate.
2852         * regformats/mips64-linux.dat: Regenerate.
2853         * regformats/nios2-linux.dat: Regenerate.
2854         * regformats/rs6000/powerpc-32.dat: Regenerate.
2855         * regformats/rs6000/powerpc-32l.dat: Regenerate.
2856         * regformats/rs6000/powerpc-64l.dat: Regenerate.
2857         * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2858         * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2859         * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2860         * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2861         * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2862         * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2863         * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2864         * regformats/s390-linux32.dat: Regenerate.
2865         * regformats/s390-linux32v1.dat: Regenerate.
2866         * regformats/s390-linux32v2.dat: Regenerate.
2867         * regformats/s390-linux64.dat: Regenerate.
2868         * regformats/s390-linux64v1.dat: Regenerate.
2869         * regformats/s390-linux64v2.dat: Regenerate.
2870         * regformats/s390-te-linux64.dat: Regenerate.
2871         * regformats/s390x-linux64.dat: Regenerate.
2872         * regformats/s390x-linux64v1.dat: Regenerate.
2873         * regformats/s390x-linux64v2.dat: Regenerate.
2874         * regformats/s390x-te-linux64.dat: Regenerate.
2875         * regformats/tic6x-c62x-linux.dat: Regenerate.
2876         * regformats/tic6x-c62x.dat: Regenerate.
2877         * regformats/tic6x-c64x-linux.dat: Regenerate.
2878         * regformats/tic6x-c64x.dat: Regenerate.
2879         * regformats/tic6x-c64xp-linux.dat: Regenerate.
2880         * regformats/tic6x-c64xp.dat: Regenerate.
2881
2882 2014-10-01  Pedro Alves  <palves@redhat.com>
2883
2884         * features/Makefile: Update comments.
2885         (XMLTOC): List all xml files we build C files from.
2886         (clean-cfiles): New rule.
2887
2888 2014-10-01  Pedro Alves  <palves@redhat.com>
2889
2890         * features/i386/amd64-avx512-linux.c: Regenerate.
2891         * features/i386/amd64-avx512.c: Regenerate.
2892         * features/i386/x32-avx512-linux.c: Regenerate.
2893         * features/i386/x32-avx512.c: Regenerate.
2894
2895 2014-10-01  Pedro Alves  <palves@redhat.com>
2896
2897         * features/Makefile (WHICH): Remove arm-with-m,
2898         arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2899
2900 2014-10-01  Pedro Alves  <palves@redhat.com>
2901
2902         * features/Makefile (clean): New rule.
2903
2904 2014-10-01  Pedro Alves  <palves@redhat.com>
2905
2906         * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2907         (zmm14h): Add missing end quotes.
2908
2909 2014-10-01  Pedro Alves  <palves@redhat.com>
2910
2911         * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2912         * features/aarch64.c: Regenerate.
2913
2914 2014-09-30  Don Breazeal  <donb@codesourcery.com>
2915
2916         * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2917         code so as to work with follow_fork_inferior.
2918         * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2919         (inf_ttrace_create_inferior): Remove reference to
2920         inf_ttrace_vfork_ppid.
2921         (inf_ttrace_attach): Ditto.
2922         (inf_ttrace_detach): Ditto.
2923         (inf_ttrace_kill): Use current_inferior instead of
2924         inf_ttrace_vfork_ppid.
2925         (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2926         TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2927         inferior away from the parent.
2928         * infrun.c (follow_fork): Call follow_fork_inferior instead of
2929         target_follow_fork.
2930         (follow_fork_inferior): New function.
2931         (follow_inferior_reset_breakpoints): Make function static.
2932         * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2933         * linux-nat.c (linux_child_follow_fork): Move target-independent
2934         code to infrun.c:follow_fork_inferior.
2935
2936 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2937
2938         * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2939         * gdbarch.c: Regenerate.
2940         * gdbarch.h: Likewise.
2941         * corelow.c (sniff_core_bfd): Drop presence check for deleted
2942         gdbarch method 'regset_from_core_section'.
2943         (get_core_register_section): Remove handling for the case that
2944         regset == NULL and regset_from_core_section is defined.
2945         (get_core_registers): Drop check for deleted method.
2946         * procfs.c (procfs_do_thread_registers): Adjust comment.
2947
2948 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2949
2950         * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2951         (linux_nat_make_corefile_notes): Remove.
2952         (linux_target_install_ops): Do not set target method
2953         'make_corefile_notes'.
2954         * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2955         Remove field.
2956         (linux_corefile_thread_callback): Instead of args->collect, call
2957         linux_collect_thread_registers.
2958         (linux_make_corefile_notes): Remove 'collect' parameter.  Return
2959         NULL unless there is a regset iterator.
2960         (linux_make_corefile_notes_1): Remove.
2961         (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2962         by linux_make_corefile_notes.
2963         * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2964
2965 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2966
2967         * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2968         (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2969         Remove.
2970         * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2971
2972 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2973
2974         * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2975         (xtensa_iterate_over_regset_sections): New.
2976         (xtensa_gdbarch_init): Adjust gdbarch initialization.
2977
2978 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2979
2980         * vax-tdep.c (vax_regset_from_core_section): Remove.
2981         (vax_iterate_over_regset_sections): New.
2982         (vax_gdbarch_init): Adjust gdbarch initialization.
2983
2984 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2985
2986         * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2987         (tilegx_regset_from_core_section): Remove.
2988         (tilegx_iterate_over_regset_sections): New.
2989         (tilegx_linux_init_abi): Adjust gdbarch initialization.
2990
2991 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2992
2993         * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2994         (sparc_iterate_over_regset_sections): New.
2995         (sparc32_gdbarch_init): Adjust gdbarch initialization.
2996         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2997         targets.
2998         * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2999         (sparc64fbsd_init_abi): Call fbsd_init_abi.
3000         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
3001         target method 'make_corefile_notes'.
3002
3003 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3004
3005         * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
3006         'sizeof_gregset' and 'sizeof_fpregset'.
3007         * sh-tdep.c (sh_regset_from_core_section): Remove.
3008         (sh_iterate_over_regset_sections): New.
3009         (sh_gdbarch_init): Adjust gdbarch initialization.
3010         * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
3011         sizeof_fpregset.
3012         * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
3013         'sizeof_gregset'.
3014
3015 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3016
3017         * score-tdep.c (score7_linux_regset_from_core_section): Remove.
3018         (score7_linux_iterate_over_regset_sections): New.
3019         (score_gdbarch_init): Adjust gdbarch initialization.
3020
3021 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3022
3023         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
3024         FreeBSD targets.
3025         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
3026         method 'make_corefile_notes'.
3027         * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
3028         (ppcfbsd_regset_from_core_section): Remove.
3029         (ppcfbsd_iterate_over_regset_sections): New.
3030         (ppcfbsd_init_abi): Call fbsd_init_abi.  Adjust gdbarch
3031         initialization.
3032         * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
3033         (ppcnbsd_iterate_over_regset_sections): New.
3034         (ppcnbsd_init_abi): Adjust.
3035         * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
3036         (ppcobsd_iterate_over_regset_sections): New.
3037         (ppcobsd_init_abi): Adjust.
3038         * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
3039         (rs6000_aix_iterate_over_regset_sections): New.
3040         (rs6000_aix_init_osabi): Adjust.
3041
3042 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3043
3044         * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
3045         (nios2_regset_from_core_section): Remove.
3046         (nios2_iterate_over_regset_sections): New.
3047         (nios2_linux_init_abi): Adjust gdbarch initialization.
3048
3049 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3050
3051         * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
3052         (am33_iterate_over_regset_sections): New.
3053         (am33_linux_init_osabi): Adjust gdbarch initialization.
3054
3055 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3056
3057         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
3058         (mips_linux_iterate_over_regset_sections): New.
3059         (mips_linux_init_abi): Adjust gdbarch initialization.
3060         * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
3061         (mips64obsd_iterate_over_regset_sections): New.
3062         (mips64obsd_init_abi): Adjust.
3063         * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
3064         (mipsnbsd_iterate_over_regset_sections): New.
3065         (mipsnbsd_init_abi): Adjust.
3066
3067 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3068
3069         * m88k-tdep.c (m88k_regset_from_core_section): Remove.
3070         (m88k_iterate_over_regset_sections): New.
3071         (m88k_gdbarch_init): Adjust gdbarch initialization.
3072
3073 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3074
3075         * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
3076         (ia64_linux_iterate_over_regset_sections): New.
3077         (ia64_linux_init_abi): Adjust gdbarch initialization.
3078
3079 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3080
3081         * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
3082         (m68kbsd_iterate_over_regset_sections): New.
3083         (m68kbsd_init_abi): Adjust gdbarch initialization.
3084         * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
3085         (m68k_linux_iterate_over_regset_sections): New.
3086         (m68k_linux_init_abi): Adjust gdbarch initialization.
3087
3088 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3089
3090         * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
3091         (m32r_linux_regset_from_core_section): Remove.
3092         (m32r_linux_iterate_over_regset_sections): New.
3093         (m32r_linux_init_abi): Adjust gdbarch initialization.
3094
3095 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3096
3097         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
3098         (amd64obsd_iterate_over_regset_sections): New.
3099         (amd64obsd_core_init_abi): Adjust gdbarch initialization.
3100         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3101         Remove.
3102         (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset.  Drop
3103         regset_from_core_section initialization.
3104         * i386-tdep.c (i386_regset_from_core_section): Remove.
3105         (i386_iterate_over_regset_sections): New.
3106         (i386_gdbarch_init): Adjust gdbarch initialization.
3107         * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
3108         (i386_iterate_over_regset_sections): New prototype.
3109         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
3110         Remove.
3111         (i386obsd_aout_iterate_over_regset_sections): New.
3112         (i386obsd_aout_init_abi): Adjust gdbarch initialization.
3113         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
3114         targets.
3115         * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
3116         (amd64fbsd_init_abi): Call fbsd_init_abi.
3117         * i386fbsd-tdep.c (fbsd-tdep.h): Include.
3118         (i386fbsd4_init_abi): Call fbsd_init_abi.
3119         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
3120         target method 'make_corefile_notes'.
3121         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3122
3123 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3124
3125         * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
3126         (hppa_hpux_iterate_over_regset_sections): New.
3127         (hppa_hpux_init_abi): Adjust gdbarch initialization.
3128         * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
3129         (hppa_linux_iterate_over_regset_sections): New.
3130         (hppa_linux_init_abi): Adjust.
3131         * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3132         (hppanbsd_iterate_over_regset_sections): New.
3133         (hppanbsd_init_abi): Adjust.
3134         * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3135         (hppaobsd_iterate_over_regset_sections): New.
3136         (hppaobsd_init_abi): Adjust.
3137
3138 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3139
3140         * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
3141         (frv_linux_iterate_over_regset_sections): New.
3142         (frv_linux_init_abi): Adjust gdbarch initialization.
3143
3144 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3145
3146         * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
3147         (armbsd_iterate_over_regset_sections): New prototype.
3148         * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
3149         (armbsd_iterate_over_regset_sections): New.
3150         * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
3151         initialization.
3152
3153 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3154
3155         * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
3156         (alpha_linux_iterate_over_regset_sections): New.
3157         (alpha_linux_init_abi): Adjust gdbarch initialization.
3158         * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
3159         prototype.
3160         (alphanbsd_iterate_over_regset_sections): New prototype.
3161
3162 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3163
3164         * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
3165         Remove.
3166         (aarch64_linux_iterate_over_regset_sections): New.
3167         (aarch64_linux_init_abi): Adjust gdbarch initialization.
3168
3169 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3170
3171         * fbsd-tdep.c: New file.
3172         * fbsd-tdep.h: New file.
3173         * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3174         (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3175         (ALLDEPFILES): Add fbsd-tdep.c.
3176
3177 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3178
3179         * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3180         parameter.
3181         * gdbarch.h: Regenerate.
3182         * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3183         iterator.
3184         (get_core_register_section): Add parameter 'regset' and use it, if
3185         set.  Add parameter 'min_size' and verify the bfd section size
3186         against it.
3187         (get_core_registers_cb): Add parameter 'regset' and pass it to
3188         get_core_register section.  For the "standard" register sections
3189         ".reg" and ".reg2", set an appropriate default for human_name.
3190         (get_core_registers): Don't abort when the gdbarch has an iterator
3191         but no regset_from_core_section.  Add NULL/0 for parameters
3192         'regset'/'min_size' in calls to get_core_register_section.
3193         * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3194         'regset' and use it instead of calling the
3195         regset_from_core_section gdbarch method.
3196         * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3197         * i386-tdep.c (i386_supply_xstateregset)
3198         (i386_collect_xstateregset, i386_xstateregset): Moved to
3199         i386-linux-tdep.c.
3200         (i386_regset_from_core_section): Drop handling for .reg-xfp and
3201         .reg-xstate.
3202         (i386_gdbarch_init): Set tdep field 'fpregset'.  Enable generic
3203         core file support only if the regset iterator hasn't been set.
3204         * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3205         (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3206         Moved from i386-tdep.c and renamed to *_linux*.
3207         (i386_linux_iterate_over_regset_sections): Add regset parameter to
3208         each callback invocation.  Allow any .reg-xstate size when reading
3209         from a core file.
3210         * amd64-tdep.c (amd64_supply_xstateregset)
3211         (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3212         amd64-linux-tdep.c.
3213         (amd64_regset_from_core_section): Remove.
3214         (amd64_init_abi): Set new tdep field 'fpregset'.  No longer
3215         install an amd64-specific regset_from_core_section gdbarch method.
3216         * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3217         (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3218         Moved from amd64-tdep.c and renamed to *_linux*.
3219         (amd64_linux_iterate_over_regset_sections): Add regset parameter
3220         to each callback invocation.  Allow any .reg-xstate size when
3221         reading from a core file.
3222         * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3223         (arm_linux_iterate_over_regset_sections): Add regset parameter to
3224         each callback invocation.
3225         (arm_linux_init_abi): No longer set the regset_from_core_section
3226         gdbarch method.
3227         * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3228         (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3229         each callback invocation.
3230         (ppc_linux_init_abi): No longer set the regset_from_core_section
3231         gdbarch method.
3232         * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3233         gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3234         (s390_regset_from_core_section): Remove.
3235         (s390_iterate_over_regset_sections): Add regset parameter to each
3236         callback invocation.
3237         (s390_gdbarch_init): No longer set the regset_from_core_section
3238         gdbarch method.  Drop initialization of deleted tdep fields.
3239
3240 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3241
3242         * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3243         (amd64_linux_iterate_over_regset_sections): New.
3244         (amd64_linux_init_abi_common): Don't install the regset section
3245         list, but the new iterator in gdbarch.
3246         * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3247         (arm_linux_vfp_regset_sections): Remove.  Move combined logic...
3248         (arm_linux_iterate_over_regset_sections): ...here.  New function.
3249         (arm_linux_init_abi): Set iterator instead of section list.
3250         * corelow.c (get_core_registers_cb): New function, logic moved
3251         from...
3252         (get_core_registers): ...loop body here.  Use new iterator method
3253         instead of walking through the regset section list.
3254         * gdbarch.sh: Remove 'core_regset_sections'.  New method
3255         'iterate_over_regset_sections'.  New typedef
3256         'iterate_over_regset_sections_cb'.
3257         * gdbarch.c: Regenerate.
3258         * gdbarch.h: Likewise.
3259         * i386-linux-tdep.c (i386_linux_regset_sections)
3260         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3261         Remove.
3262         (i386_linux_iterate_over_regset_sections): New.
3263         (i386_linux_init_abi): Don't choose a regset section list, but
3264         install new iterator in gdbarch.
3265         * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3266         (linux_collect_regset_section_cb): New function, logic moved
3267         from...
3268         (linux_collect_thread_registers): ...loop body here.  Use iterator
3269         method instead of walking through list.
3270         (linux_make_corefile_notes_1): Check for presence of iterator
3271         method instead of regset section list.
3272         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3273         (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3274         (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3275         (ppc64_linux_fp_regset_sections): Remove.  Move combined logic...
3276         (ppc_linux_iterate_over_regset_sections): ...here.  New function.
3277         (ppc_linux_init_abi): Don't choose from above regset section
3278         lists, but install new iterator in gdbarch.
3279         * regset.h (struct core_regset_section): Remove.
3280         * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3281         have_linux_v1, have_linux_v2, and have_tdb.
3282         (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3283         (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3284         (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3285         (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3286         (s390x_linux64v2_regset_sections): Remove.  Move combined logic...
3287         (s390_iterate_over_regset_sections): ...here.  New function.  Use
3288         new tdep fields.
3289         (s390_gdbarch_init): Set new tdep fields.  Don't choose from above
3290         regset section lists, but install new iterator.
3291
3292 2014-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
3293
3294         * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3295
3296 2014-09-26  Simon Marchi  <simon.marchi@ericsson.com>
3297
3298         * progspace.c (print_program_space): Don't prune program spaces
3299         before printing them.
3300
3301 2014-09-25  Pedro Alves  <palves@redhat.com>
3302
3303         * infrun.c (user_visible_resume_ptid): Don't check
3304         singlestep_breakpoints_inserted_p.
3305
3306 2014-09-25  Pedro Alves  <palves@redhat.com>
3307
3308         * breakpoint.c (should_be_inserted): Add debug output.
3309
3310 2014-09-25  Pedro Alves  <palves@redhat.com>
3311
3312         * infrun.c (stepping_past_instruction_at)
3313         (clear_exit_convenience_vars): Point at infrun.h instead of
3314         inferior.h.
3315         (handle_signal_stop): Fix typo.
3316
3317 2014-09-24  Yao Qi  <yao@codesourcery.com>
3318
3319         * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3320         bitmask.
3321
3322 2014-09-22  Gary Benson  <gbenson@redhat.com>
3323
3324         * target.c (target_stop): Updated comment.
3325
3326 2014-09-22  Gary Benson  <gbenson@redhat.com>
3327
3328         * target/target.h (target_stop_ptid): Renamed as...
3329         (target_stop_and_wait): New function.  Updated comment.
3330         All uses updated.
3331         (target_continue_ptid): Renamed as...
3332         (target_continue_no_signal): New function.  Updated comment.
3333         All uses updated.
3334
3335 2014-09-22  Pedro Alves  <palves@redhat.com>
3336
3337         * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3338         and "auto" merged.
3339         * breakpoint.c (enum ugll_insert_mode): New enum.
3340         (always_inserted_mode): Now a plain boolean.
3341         (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3342         (breakpoints_always_inserted_mode): Delete.
3343         (breakpoints_should_be_inserted_now): New function.
3344         (insert_breakpoints): Pass UGLL_INSERT to
3345         update_global_location_list instead of calling
3346         insert_breakpoint_locations manually.
3347         (create_solib_event_breakpoint_1): New, factored out from ...
3348         (create_solib_event_breakpoint): ... this.
3349         (create_and_insert_solib_event_breakpoint): Use
3350         create_solib_event_breakpoint_1 instead of calling
3351         insert_breakpoint_locations manually.
3352         (update_global_location_list): Change parameter type from boolean
3353         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
3354         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3355         (update_global_location_list_nothrow): Change parameter type from
3356         boolean to enum ugll_insert_mode.
3357         (_initialize_breakpoint): "breakpoint always-inserted" option is
3358         now a boolean command.  Update help text.
3359         * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3360         (breakpoints_should_be_inserted_now): New declaration.
3361         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3362         Remove breakpoints_always_inserted_mode check.
3363         (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3364         * remote.c (remote_start_remote): Likewise.
3365
3366 2014-09-22  Pedro Alves  <palves@redhat.com>
3367
3368         * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3369         (insert_breakpoints): Don't call insert_breakpoint_locations here.
3370         Instead, pass UGLL_INSERT to update_global_location_list.
3371         (update_global_location_list): Change parameter type from boolean
3372         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
3373         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3374         (create_solib_event_breakpoint_1): New, factored out from ...
3375         (create_solib_event_breakpoint): ... this.
3376         (create_and_insert_solib_event_breakpoint): Use
3377         create_solib_event_breakpoint_1 instead of calling
3378         insert_breakpoint_locations manually.
3379         (update_global_location_list): Handle UGLL_INSERT.
3380
3381 2014-09-22  Pedro Alves  <palves@redhat.com>
3382
3383         * breakpoint.c (enum ugll_insert_mode): New enum.
3384         (update_global_location_list)
3385         (update_global_location_list_nothrow): Change parameter type from
3386         boolean to enum ugll_insert_mode.  All callers adjusted.
3387
3388 2014-09-19  Joel Brobecker  <brobecker@adacore.com>
3389
3390         * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3391         SystemTap support in GDB.
3392
3393 2014-09-19  Don Breazeal  <donb@codesourcery.com>
3394
3395         * linux-nat.c (linux_handle_extended_wait): Call
3396         linux_ptrace_get_extended_event.
3397         (wait_lwp): Call linux_is_extended_waitstatus.
3398         (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3399         and linux_is_extended_waitstatus.
3400         * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3401         linux_ptrace_get_extended_event.
3402         (linux_ptrace_get_extended_event): New function.
3403         (linux_is_extended_waitstatus): New function.
3404         * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3405         (linux_is_extended_waitstatus): New declarations.
3406
3407 2014-09-19  Yao Qi  <yao@codesourcery.com>
3408
3409         * dwarf2read.c (dwarf_decode_lines): Update declaration.
3410         (handle_DW_AT_stmt_list): Add argument 'lowpc'.  Update
3411         comments.  Callers update.
3412         (dwarf_decode_lines): Likewise.
3413         (dwarf_decode_lines_1): Add argument 'lowpc'.  Update
3414         comments.  Skip the line table if  'lowpc' is greater than
3415         'address'.  Don't check
3416         dwarf2_per_objfile->has_section_at_zero.
3417
3418 2014-09-18  Doug Evans  <dje@google.com>
3419
3420         * NEWS: Mention new "producer" attribute of gdb.Symtab.
3421         * python/py-symtab.c (stpy_get_producer): New function.
3422         (symtab_object_getset): Add "producer" attribute.
3423
3424 2014-09-17  Ulrich Weigand  <uweigand@de.ibm.com>
3425
3426         PR gdb/17384
3427         * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3428         (do_captured_read_memory_integer): Remove.
3429         (safe_read_memory_integer): Use target_read_memory directly instead
3430         of catching errors in do_captured_read_memory_integer.
3431
3432 2014-09-16  Maciej W. Rozycki  <macro@codesourcery.com>
3433
3434         * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3435         not gdb/doc.
3436
3437 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
3438
3439         * objc-lang.c (find_implementation_from_class): Remove dead code.
3440
3441 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
3442
3443         PR cli/7233
3444         * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3445         "fprintf_unfiltered (gdb_stdlog...)".
3446
3447 2014-09-16  Patrick Palka  <patrick@parcs.ath.cx>
3448
3449         PR breakpoints/12526
3450         * breakpoint.h (struct watchpoint): New fields val_bitpos and
3451         val_bitsize.
3452         * breakpoint.c (watch_command_1): Use these fields to retain
3453         bitfield information.
3454         (extract_bitfield_from_watchpoint_value): New function.
3455         (watchpoint_check): Use it.
3456         (update_watchpoint): Use it.  Optimize the address and length of a
3457         HW watchpoint pointing to a bitfield.
3458         * value.h (unpack_value_bitfield): New prototype.
3459         * value.c (unpack_value_bitfield): Make extern.
3460
3461 2014-09-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3462
3463         * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3464         x86-dregs.o.
3465         * gnu-nat.c (inf_threads): New function.
3466         * gnu-nat.h (inf_threads_ftype): New typedef.
3467         (inf_threads): New declaration.
3468         * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3469         [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3470         (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3471         (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3472         (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3473         (i386_gnu_dr_get_control): New functions.
3474         (reg_addr): New structure.
3475         (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3476         i386 debugging register hooks.
3477         * NEWS: Mention this.
3478
3479 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
3480
3481         * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3482         vector data transfer instructions.
3483         (arm_record_coproc_data_proc): Updated.
3484
3485 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
3486
3487         * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3488         arm_record_exreg_ld_st_insn.
3489         (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3490         load/store insns.
3491
3492 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
3493
3494         * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3495         (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3496         processing instructions.
3497
3498 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
3499
3500         * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3501         for advance SIMD struct ld/st insn.
3502         (thumb2_record_decode_insn_handler): Replace stub handler with
3503         thumb2_record_asimd_struct_ld_st.
3504
3505 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
3506
3507         * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3508         for asimd, vfp and coprocessor insns.
3509         (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3510         and coprocessor insns.
3511         (thumb2_record_coproc_insn): New function.
3512         (thumb2_record_decode_insn_handler): Update coprocessor insns record
3513         handlers.
3514         (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3515         opcode 110 insns.
3516
3517 2014-09-13  Doug Evans  <xdje42@gmail.com>
3518
3519         * NEWS: Mention new "queue-signal" command.
3520         * infcmd.c (queue_signal_command): New function.
3521         (_initialize_infcmd): Add new queue-signal command.
3522
3523 2014-09-13  Doug Evans  <xdje42@gmail.com>
3524
3525         * linux-nat.c (wait_lwp): Add debugging printf.
3526         (linux_nat_wait_1): Ditto.
3527
3528 2014-09-12  Pedro Alves  <palves@redhat.com>
3529
3530         * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3531         (create_and_insert_solib_event_breakpoint): New functions.
3532         * breakpoint.h (create_and_insert_solib_event_breakpoint)
3533         (remove_solib_event_breakpoints_at_next_stop): New declarations.
3534         * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3535         (remove_dbx_link_breakpoint): Delete function.
3536         (insert_dbx_link_bpt_in_file): Use
3537         create_and_insert_solib_event_breakpoint instead of
3538         deprecated_insert_raw_breakpoint.
3539         (procfs_wait): Don't check whether we hit __dbx_link here.
3540         (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3541         here.
3542         * solib-irix.c (base_breakpoint): Delete global.
3543         (disable_break): Delete function.
3544         (enable_break): Use create_solib_event_breakpoint
3545         instead of deprecated_insert_raw_breakpoint.
3546         (irix_solib_handle_event): New function.
3547         (irix_solib_create_inferior_hook): Don't run the target or disable
3548         the mapping-complete breakpoint here.
3549         (_initialize_irix_solib): Install irix_solib_handle_event as
3550         so_ops->handle_event hook.
3551
3552 2014-09-12  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
3553             Ulrich Weigand  <uweigand@de.ibm.com>
3554
3555         PR tdep/17379
3556         * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3557         instead of read_memory_unsigned_integer.
3558
3559 2014-09-12  Gary Benson  <gbenson@redhat.com>
3560
3561         * nat/linux-waitpid.c: Include common-defs.h.
3562         [GDBSERVER]: Add FIXME comment.
3563         [!GDBSERVER]: Don't include defs.h or signal.h.
3564         (linux_debug) [!GDBSERVER]: Remove empty block.
3565
3566 2014-09-12  Gary Benson  <gbenson@redhat.com>
3567
3568         * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3569         Don't include defs.h or server.h.
3570
3571 2014-09-12  Gary Benson  <gbenson@redhat.com>
3572
3573         * nat/linux-btrace.c: Include common-defs.h.
3574         Don't include defs.h, server.h or gdbthread.h.
3575         * nat/linux-btrace.h (struct target_ops): New forward declaration.
3576
3577 2014-09-12  Gary Benson  <gbenson@redhat.com>
3578
3579         * common/agent.c: Include common-defs.h.
3580         Don't include defs.h or server.h.
3581         * common/buffer.c: Likewise.
3582         * common/common-debug.c: Likewise.
3583         * common/common-utils.c: Likewise.
3584         * common/errors.c: Likewise.
3585         * common/filestuff.c: Likewise.
3586         * common/format.c: Likewise.
3587         * common/gdb_vecs.c: Likewise.
3588         * common/print-utils.c: Likewise.
3589         * common/ptid.c: Likewise.
3590         * common/rsp-low.c: Likewise.
3591         * common/signals.c: Likewise.
3592         * common/vec.c: Likewise.
3593         * common/xml-utils.c: Likewise.
3594         * nat/linux-osdata.c: Likewise.
3595         * nat/linux-procfs.c: Likewise.
3596         * nat/linux-ptrace.c: Likewise.
3597         * nat/mips-linux-watch.c: Likewise.
3598         * target/waitstatus.c: Likewise.
3599
3600 2014-09-12  Tom Tromey  <tromey@redhat.com>
3601             Gary Benson  <gbenson@redhat.com>
3602
3603         * common/common-regcache.h: New file.
3604         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3605         * regcache.h: Include common-regcache.h.
3606         (regcache_read_pc): Don't declare.
3607         * regcache.c (get_thread_regcache_for_ptid): New function.
3608         * nat/linux-btrace.c: Don't include regcache.h.
3609         Include common-regcache.h.
3610         (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3611
3612 2014-09-11  Thomas Schwinge  <thomas@codesourcery.com>
3613
3614         * regcache.h (struct regset): Declare.
3615
3616 2014-09-11  Pedro Alves  <palves@redhat.com>
3617
3618         PR gdb/17347
3619         * main.c: Include "infrun.h".
3620         (catch_command_errors, catch_command_errors_const): Wait for the
3621         foreground command to complete.
3622         * top.c (maybe_wait_sync_command_done): New function, factored out
3623         from ...
3624         (maybe_wait_sync_command_done): ... here.
3625         * top.h (maybe_wait_sync_command_done): New declaration.
3626
3627 2014-09-11  Tom Tromey  <tromey@redhat.com>
3628             Gary Benson  <gbenson@redhat.com>
3629
3630         * common/symbol.h: New file.
3631         * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3632         * minsyms.c (find_minimal_symbol_address): New function.
3633         * common/agent.c: Include common/symbol.h.
3634         [!GDBSERVER]: Don't include objfiles.h.
3635         (agent_look_up_symbols): Use find_minimal_symbol_address.
3636
3637 2014-09-11  Gary Benson  <gbenson@redhat.com>
3638
3639         * target/target.h (target_stop_ptid, target_continue_ptid):
3640         Declare.
3641         * target.c (target_stop_ptid, target_continue_ptid): New
3642         functions.
3643         * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3644         (agent_run_command): Always use target_stop_ptid and
3645         target_continue_ptid.
3646
3647 2014-09-11  Tom Tromey  <tromey@redhat.com>
3648             Gary Benson  <gbenson@redhat.com>
3649
3650         * target/target.h: New file.
3651         * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3652         * target.h: Include target/target.h.
3653         (target_read_memory, target_write_memory): Don't declare.
3654         * target.c (target_read_uint32): New function.
3655         * common/agent.c: Include target/target.h.
3656         [!GDBSERVER]: Don't include target.h.
3657         (helper_thread_id): Type changed to uint32_t.
3658         (agent_get_helper_thread_id): Use target_read_uint32.
3659         (agent_run_command): Always use target_read_memory and
3660         target_write_memory.
3661         (agent_capability): Type changed to uint32_t.
3662         (agent_capability_check): Use target_read_uint32.
3663
3664 2014-09-11  Gary Benson  <gbenson@redhat.com>
3665
3666         * common/common-debug.h (show_debug_regs): Declare.
3667         * common/common-debug.c (show_debug_regs): Define.
3668         * aarch64-linux-nat.c (debug_hw_points): Don't define.  Replace
3669         all uses with show_debug_regs.  Replace all uses that considered
3670         debug_hw_points as a multi-value integer with straight boolean
3671         uses.
3672         * x86-nat.c (debug_hw_points): Don't define.  Replace all uses
3673         with show_debug_regs.
3674         * nat/x86-dregs.c (debug_hw_points): Don't declare.  Replace
3675         all uses with show_debug_regs.
3676         * mips-linux-nat.c (maint_show_dr): Don't define.  Replace all
3677         uses with show_debug_regs.
3678
3679 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
3680
3681         * findvar.c (address_from_register): Handle targets requiring
3682         a special conversion routine even for plain pointer types.
3683
3684 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
3685
3686         * rs6000-nat.c (exec_one_dummy_insn): Remove.
3687         (store_register): Do not call exec_one_dummy_insn.
3688
3689 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
3690
3691         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3692         dereference it first.  Use value_enclosing_type instead of
3693         value_type.
3694         (ada_array_length): Likewise.
3695
3696 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
3697
3698         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3699         Adjust function implementation and documentation accordingly.
3700         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3701         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3702         Update call to ada_value_ptr_subscript.
3703
3704 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
3705
3706         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3707         instead of VAL's type.
3708
3709 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
3710
3711         * amd64-linux-nat.c: Add <sys/uio.h> #include.
3712
3713 2014-09-09  Doug Evans  <xdje42@gmail.com>
3714
3715         PR guile/17367
3716         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3717         last parameter to pkg-config, not first.
3718         * configure.ac: Pass --with-guile provided pkg-config path to
3719         GDB_GUILE_PROGRAM_NAMES.
3720         * configure: Regenerate.
3721
3722 2014-09-09  Gabriel Krisman Bertazi  <gabriel@krisman.be>
3723
3724         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3725         Bertazi".
3726
3727 2014-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
3728
3729         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3730         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3731         the list of sections determining GDB_OSABI_IRIX.
3732
3733 2014-09-09  James Hogan  <james.hogan@imgtec.com>
3734
3735         * MAINTAINERS (Write After Approval): Add "James Hogan".
3736
3737 2014-09-09  James Hogan  <james.hogan@imgtec.com>
3738
3739         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3740
3741 2014-09-09  Joel Brobecker  <brobecker@adacore.com>
3742
3743         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3744
3745 2014-09-08  Doug Evans  <xdje42@gmail.com>
3746
3747         PR 17247
3748         * guile.c: #include <signal.h>.
3749         (_initialize_guile): Block SIGCHLD while initializing Guile.
3750
3751         Replaces the following, which is reverted.
3752
3753         2014-07-26  Doug Evans  <xdje42@gmail.com>
3754
3755         PR 17185
3756         * configure.ac: Add check for header gc/gc.h.
3757         Add check for function setenv.
3758         * configure: Regenerate.
3759         * config.in: Regenerate.
3760         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3761
3762 2014-09-08  Doug Evans  <xdje42@gmail.com>
3763
3764         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3765         with named constant.  Fix style of pointer comparison.
3766         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3767
3768 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
3769
3770         PR gdb/17035
3771         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3772         decide whether we display the command on "show user".
3773         * cli/cli-script.c (show_user_1): Only verify cmdlines after
3774         printing command name.
3775         * cli/cli-decode.h (cli_user_command_p): Declare new function.
3776         * cli/cli-decode.c (cli_user_command_p): Create helper function
3777         to verify whether cmd_list_element is a user-defined command.
3778
3779 2014-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3780
3781         PR python/17355
3782         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3783         Fix goto out of TRY_CATCH.
3784
3785 2014-09-06  Doug Evans  <xdje42@gmail.com>
3786             Tom Tromey  <tromey@redhat.com>
3787
3788         PR 15276
3789         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3790         $_any_caller_matches.
3791         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3792         * python/lib/gdb/function/caller_is.py: New file.
3793
3794 2014-09-06  Doug Evans  <xdje42@gmail.com>
3795
3796         * infcmd.c (program_info): Fix typo.
3797
3798 2014-09-05  Sergio Durigan Junior  <sergiodj@redhat.com>
3799
3800         PR gdb/17235
3801         * stap-probe.c (stap_parse_single_operand): Delete unused variable
3802         'number'.  New variable 'has_digit'.  Rewrite code to deal with
3803         subexpressions on SDT probes.
3804
3805 2014-09-04  Pedro Alves  <palves@redhat.com>
3806
3807         * c-exp.y (parse_number): Skip handling base-switching prefixes if
3808         the input is only one character long.
3809
3810 2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
3811
3812         PR fortran/17237
3813         * f-valprint.c (f_val_print): Specify the correct print option to
3814         use when printing integer values.
3815
3816 2014-09-04  Gary Benson  <gbenson@redhat.com>
3817
3818         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3819         Remove code to cope with LWPs wrapped as PIDs.
3820         Add assertions to ensure no wrapped LWPs are passed.
3821
3822 2014-09-04  Pedro Alves  <palves@redhat.com>
3823
3824         * value.c (value_ranges_copy_adjusted): New function, factored out
3825         from ...
3826         (value_contents_copy_raw): ... here.
3827         (unpack_value_bits_as_long_1): Rename back to ...
3828         (unpack_bits_as_long): ... this.  Remove 'original_value' and
3829         'result' parameters.  Change return type to LONGEST.
3830         (unpack_value_bits_as_long): Delete.
3831         (unpack_value_field_as_long_1): Delete.
3832         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3833         (unpack_value_bitfield): New function.
3834         (value_field_bitfield): Reimplement using unpack_value_bitfield.
3835         (value_fetch_lazy): Use unpack_value_bitfield.
3836         * value.h (unpack_value_bits_as_long): Delete declaration.
3837
3838 2014-09-03  Sasha Smundak  <asmundak@google.com>
3839
3840         * python/py-frame.c (frapy_read_register): New function.
3841
3842 2014-09-03  James Hogan  <james.hogan@imgtec.com>
3843
3844         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3845         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3846
3847 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
3848
3849         PR python/16699
3850         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3851         function.
3852         (add_cmd): Set "completer_handle_brkchars" to NULL.
3853         * cli/cli-decode.h (struct cmd_list_element)
3854         <completer_handle_brkchars>: New field.
3855         * command.h (completer_ftype_void): New typedef.
3856         (set_cmd_completer_handle_brkchars): New prototype.
3857         * completer.c (set_gdb_completion_word_break_characters): New
3858         function.
3859         (complete_line_internal): Call "completer_handle_brkchars"
3860         callback from command.
3861         * completer.h: Include "command.h".
3862         (set_gdb_completion_word_break_characters): New prototype.
3863         * python/py-cmd.c (cmdpy_completer_helper): New function.
3864         (cmdpy_completer_handle_brkchars): New function.
3865         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3866         (cmdpy_init): Set completer_handle_brkchars to
3867         cmdpy_completer_handle_brkchars.
3868
3869 2014-09-03  Gary Benson  <gbenson@redhat.com>
3870
3871         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3872         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
3873         Loop conditions changed to equivalent form.
3874         (struct x86_debug_reg_state): Updated dr_ref_count comment.
3875         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3876         ALL_DEBUG_ADDRESS_REGISTERS.
3877
3878 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
3879
3880         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3881         description fix.
3882
3883 2014-09-02  Doug Evans  <dje@google.com>
3884
3885         * typeprint.c (find_global_typedef): Fix comment.
3886
3887 2014-09-02  Gary Benson  <gbenson@redhat.com>
3888
3889         * i386-nat.h: Renamed as...
3890         * x86-nat.h: New file.  All type, function and variable name
3891         prefixes changed from "i386_" to "x86_".  All references updated.
3892         * i386-nat.c: Renamed as...
3893         * x86-nat.c: New file.  All type, function and variable name
3894         prefixes changed from "i386_" to "x86_".  All references updated.
3895         * common/i386-xstate.h: Renamed as...
3896         * common/x86-xstate.h: New file.  All type, function and variable
3897         name prefixes changed from "i386_" to "x86_".  All references
3898         updated.
3899         * nat/i386-cpuid.h: Renamed as...
3900         * nat/x86-cpuid.h: New file.  All type, function and variable name
3901         prefixes changed from "i386_" to "x86_".  All references updated.
3902         * nat/i386-gcc-cpuid.h: Renamed as...
3903         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
3904         name prefixes changed from "i386_" to "x86_".  All references
3905         updated.
3906         * nat/i386-dregs.h: Renamed as...
3907         * nat/x86-dregs.h: New file.  All type, function and variable name
3908         prefixes changed from "i386_" to "x86_".  All references updated.
3909         * nat/i386-dregs.c: Renamed as...
3910         * nat/x86-dregs.c: New file.  All type, function and variable name
3911         prefixes changed from "i386_" to "x86_".  All references updated.
3912
3913 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
3914
3915         * varobj.c (_initialize_varobj): Move to the end of file.
3916
3917 2014-08-29  Gary Benson  <gbenson@redhat.com>
3918
3919         * common/common-exceptions.h: New file.
3920         * common/common-exceptions.c: Likewise.
3921         * Makefile.in (SFILES): Add common/common-exceptions.c.
3922         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3923         (COMMON_OBS): Add common-exceptions.o.
3924         (common-exceptions.o): New rule.
3925         * exceptions.h (common-exceptions.h): Include.
3926         (gdb_setjmp.h): Do not include.
3927         (return_reason): Moved to common-exceptions.h.
3928         (enum return_reason): Likewise.
3929         (RETURN_MASK): Likewise.
3930         (typedef return_mask): Likewise.
3931         (enum errors): Likewise.
3932         (struct gdb_exception): Likewise.
3933         (exceptions_state_mc_init): Likewise.
3934         (exceptions_state_mc_action_iter): Likewise.
3935         (exceptions_state_mc_action_iter_1): Likewise.
3936         (TRY_CATCH): Likewise.
3937         (throw_exception): Likewise.
3938         (throw_verror): Likewise.
3939         (throw_vquit): Likewise.
3940         (throw_error): Likewise.
3941         (throw_quit): Likewise.
3942         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3943         (enum catcher_action): Likewise.
3944         (struct catcher): Likewise.
3945         (current_catcher): Likewise.
3946         (catcher_list_size): Likewise.
3947         (exceptions_state_mc_init): Likewise.
3948         (catcher_pop): Likewise.
3949         (exceptions_state_mc): Likewise.
3950         (exceptions_state_mc_action_iter): Likewise.
3951         (exceptions_state_mc_action_iter_1): Likewise.
3952         (throw_exception): Likewise.
3953         (exception_messages): Likewise.
3954         (exception_messages_size): Likewise.
3955         (throw_it): Likewise.
3956         (throw_verror): Likewise.
3957         (throw_vquit): Likewise.
3958         (throw_error): Likewise.
3959         (throw_quit): Likewise.
3960         (prepare_to_throw_exception): New function.
3961
3962 2014-08-29  Gary Benson  <gbenson@redhat.com>
3963
3964         * common/gdb_setjmp.h: New file.
3965         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3966         * configure.ac: Move sigsetjmp check...
3967         * common/common.m4: ...here.
3968         * configure: Regenerate.
3969         * cp-support.c (SIGJMP_BUF): Delete.
3970         (SIGSETJMP): Likewise.
3971         (SIGLONGJMP): Likewise.
3972         * exceptions.h (gdb_setjmp.h): Include.
3973         (setjmp.h): Do not include.
3974         (EXCEPTIONS_SIGJMP_BUF): Delete.
3975         (EXCEPTIONS_SIGSETJMP): Likewise.
3976         (EXCEPTIONS_SIGLONGJMP): Likewise.
3977         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3978         from gdb_setjmp.h.
3979         * exceptions.c: Likewise.
3980
3981 2014-08-29  Gary Benson  <gbenson@redhat.com>
3982
3983         * cleanups.h: Moved to...
3984         * common/cleanups.h: New file.
3985         * cleanups.c: Moved to...
3986         * common/cleanups.c: New file.  Include common-defs.h and
3987         cleanups.h.  Do not include defs.h.
3988         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3989         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3990         (cleanups.o): New rule.
3991
3992 2014-08-29  Gary Benson  <gbenson@redhat.com>
3993
3994         * common/errors.h (internal_warning): New declaration.
3995         (internal_vwarning): Likewise.
3996         * common/errors.c (internal_warning): New function.
3997         * utils.h (internal_warning): Don't declare.
3998         (internal_vwarning): Likewise.
3999         * utils.c (internal_warning): Removed.
4000
4001 2014-08-29  Gary Benson  <gbenson@redhat.com>
4002
4003         * main.c (captured_main): Use warning during startup.
4004         Prefix startup warning messages with command name.
4005
4006 2014-08-29  Gary Benson  <gbenson@redhat.com>
4007
4008         * main.c (captured_main): Handle usage errors with error.
4009
4010 2014-08-29  Gary Benson  <gbenson@redhat.com>
4011
4012         * go32-nat.c (go32_create_inferior): Replace a fprintf/
4013         exit pair with a call to error.  Wrap the message with _().
4014
4015 2014-08-29  Gary Benson  <gbenson@redhat.com>
4016
4017         * main.c (captured_main): Replace a fprintf/exit
4018         pair with a call to error.  Wrap the message with _().
4019
4020 2014-08-29  Gary Benson  <gbenson@redhat.com>
4021
4022         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
4023         pairs with calls to error.  Wrap the message with _().
4024
4025 2014-08-29  Gary Benson  <gbenson@redhat.com>
4026
4027         * utils.c (vwarning): Protect calls to target_terminal_ours
4028         and wrap_here.
4029
4030 2014-08-29  Gary Benson  <gbenson@redhat.com>
4031
4032         * exceptions.c (print_flush): Protect calls to
4033         target_terminal_ours and wrap_here.
4034
4035 2014-08-29  Gary Benson  <gbenson@redhat.com>
4036
4037         * utils.h (filtered_printing_initialized): New declaration.
4038         * utils.c (abort_with_message): New function.
4039         (internal_vproblem): Use abort_with_message for first level
4040         recursive internal problems, and if gdb_stderr is not set up.
4041         Protect calls to target_terminal_ours, begin_line and query.
4042
4043 2014-08-28  Doug Evans  <dje@google.com>
4044
4045         * symtab.c (in_prologue): Move definition to better spot.
4046         (skip_prologue_using_sal): Ditto.
4047
4048 2014-08-28  Doug Evans  <dje@google.com>
4049
4050         * symtab.c (find_function_start_sal): Move definition to better spot.
4051
4052 2014-08-28  Yao Qi  <yao@codesourcery.com>
4053
4054         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
4055         found_stack_adjust in forward scan.  Remove condition check
4056         on found_stack_adjust which is always true.  Indent the code.
4057
4058 2014-08-28  Yao Qi  <yao@codesourcery.com>
4059
4060         * dwarf2read.c (dwarf_decode_lines): Update declaration.
4061         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
4062         (dwarf_decode_lines): Remove argument
4063         want_line_info.  Remove condition check on want_line_info.
4064         Callers update.
4065
4066 2014-08-27  Doug Evans  <dje@google.com>
4067
4068         * dwarf2read.c (dwarf_record_line): Fix typo.
4069
4070 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
4071
4072         * target.h (struct target_ops::to_terminal_save_ours): Remove
4073         declaration.
4074         (target_terminal_save_ours): Remove macro.
4075         * target-delegates.c: Regenerate.
4076         * inf-child.c (inf_child_target): Don't set the nonexistent
4077         field to_terminal_save_ours.
4078         * inferior.h (child_terminal_save_ours): Remove declaration.
4079         * terminal.h (gdb_save_tty_state): New declaration.
4080         * inflow.c (child_terminal_save_ours): Rename to ...
4081         (gdb_save_tty_state): ... this.
4082         * tui/tui.c: Include terminal.h.
4083         (tui_enable): Use gdb_save_tty_state instead of
4084         target_terminal_save_ours.
4085         (tui_disable): Likewise.
4086
4087 2014-08-25  Doug Evans  <dje@google.com>
4088
4089         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
4090         Pass NULL instead of 0 for context pointer.
4091
4092 2014-08-25  Yao Qi  <yao@codesourcery.com>
4093
4094         * dwarf2read.c: Fix grammatical error.
4095
4096 2014-08-24  Yao Qi  <yao@codesourcery.com>
4097
4098         * dwarf2read.c (scan_partial_symbols):  Update comments.
4099         Rename argument 'need_pc' with 'set_addrmap'.
4100         ï¼ˆadd_partial_namespace): Rename argument 'need_pc' with
4101         'set_addrmap'.
4102         (add_partial_module): Likewise.
4103         (add_partial_subprogram): Likewise.  Update comments.
4104         (dwarf2_name): Fix typo.
4105
4106 2014-08-22  Doug Evans  <dje@google.com>
4107
4108         PR 17276
4109         * dwarf2read.c (dwarf_record_line_p): New function.
4110         (dwarf_decode_lines_1): Ignore subsequent line number entries
4111         for the same line if any entry had a non-zero discriminator.
4112
4113 2014-08-22  Doug Evans  <dje@google.com>
4114
4115         * buildsym.h (record_line_ftype): New typedef.
4116         (record_line): Use it.
4117         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
4118         (dwarf_decode_lines_1): Call them.
4119
4120 2014-08-22  Yao Qi  <yao@codesourcery.com>
4121
4122         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
4123         (ctf_end): Remove code.
4124
4125 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
4126
4127         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
4128         (linux_make_corefile_notes): call update_thread_list, protected against
4129         exceptions.
4130
4131 2014-08-21  Pedro Alves  <palves@redhat.com>
4132
4133         * infcmd.c (attach_command): Remove comment.
4134
4135 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
4136
4137         * aarch64-linux-nat.c (dr_changed_t): Change the type from
4138         unsigned LONGEST to ULONGEST.
4139
4140 2014-08-20  Pedro Alves  <palves@redhat.com>
4141
4142         * Makefile.in (check-read1): New rule.
4143
4144 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
4145
4146         * value.c (value_from_contents_and_address): Strip resolved_type's
4147         typedef layers before checking its TYPE_DATA_LOCATION.
4148
4149 2014-08-20  Pedro Alves  <palves@redhat.com>
4150
4151         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
4152
4153 2014-08-20  Yao Qi  <yao@codesourcery.com>
4154
4155         * amd64-tdep.c (amd64_classify): Add a blank line after the
4156         example.  Move "*/" to a new line.
4157         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
4158         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
4159         * dwarf2read.c (psymtab_include_file_name): Likewise.
4160
4161 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
4162             Pedro Alves  <palves@redhat.com>
4163
4164         PR symtab/14604
4165         PR symtab/14605
4166         * ada-lang.c (coerce_unspec_val_to_type): Use
4167         value_contents_copy_raw.
4168         * ada-valprint.c (val_print_packed_array_elements): Adjust.
4169         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
4170         * cp-valprint.c (cp_print_value_fields): Let the common printing
4171         code handle optimized out values.
4172         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4173         * d-valprint.c (dynamic_array_type): Use
4174         value_bits_any_optimized_out.
4175         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4176         check_any_valid fields.
4177         (check_pieced_value_bits): Delete and inline ...
4178         (check_pieced_synthetic_pointer): ... here.
4179         (check_pieced_value_validity): Delete.
4180         (check_pieced_value_invalid): Delete.
4181         (pieced_value_funcs): Remove check_validity and check_any_valid
4182         fields.
4183         (read_pieced_value): Use mark_value_bits_optimized_out.
4184         (write_pieced_value): Switch to use
4185         mark_value_bytes_optimized_out.
4186         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4187         of assuming the whole value is optimized out.
4188         * findvar.c (read_frame_register_value): Remove special handling
4189         of optimized out registers.
4190         (value_from_register): Use mark_value_bytes_optimized_out.
4191         * frame-unwind.c (frame_unwind_got_optimized): Use
4192         mark_value_bytes_optimized_out.
4193         * jv-valprint.c (java_value_print): Adjust.
4194         (java_print_value_fields): Let the common printing code handle
4195         optimized out values.
4196         * mips-tdep.c (mips_print_register): Remove special handling of
4197         optimized out registers.
4198         * opencl-lang.c (lval_func_check_validity): Delete.
4199         (lval_func_check_any_valid): Delete.
4200         (opencl_value_funcs): Remove check_validity and check_any_valid
4201         fields.
4202         * p-valprint.c (pascal_object_print_value_fields): Let the common
4203         printing code handle optimized out values.
4204         * stack.c (read_frame_arg): Remove special handling of optimized
4205         out values.  Fetch both VAL and ENTRYVAL before comparing
4206         contents.  Adjust to value_available_contents_eq rename.
4207         * valprint.c (valprint_check_validity)
4208         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4209         (val_print_array_elements): Adjust.
4210         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4211         (value_bits_any_optimized_out): New function.
4212         (value_entirely_covered_by_range_vector): New function, factored
4213         out from value_entirely_unavailable.
4214         (value_entirely_unavailable): Reimplement.
4215         (value_entirely_optimized_out): New function.
4216         (insert_into_bit_range_vector): New function, factored out from
4217         mark_value_bits_unavailable.
4218         (mark_value_bits_unavailable): Reimplement.
4219         (struct ranges_and_idx): New struct.
4220         (find_first_range_overlap_and_match): New function, factored out
4221         from value_available_contents_bits_eq.
4222         (value_available_contents_bits_eq): Rename to ...
4223         (value_contents_bits_eq): ... this.  Check both unavailable
4224         contents and optimized out contents.
4225         (value_available_contents_eq): Rename to ...
4226         (value_contents_eq): ... this.
4227         (allocate_value_lazy): Remove reference to the old optimized_out
4228         boolean.
4229         (allocate_optimized_out_value): Use
4230         mark_value_bytes_optimized_out.
4231         (require_not_optimized_out): Adjust to check whether the
4232         optimized_out vec is empty.
4233         (ranges_copy_adjusted): New function, factored out from
4234         value_contents_copy_raw.
4235         (value_contents_copy_raw): Also copy the optimized out ranges.
4236         Assert the destination ranges aren't optimized out.
4237         (value_contents_copy): Update comment, remove call to
4238         require_not_optimized_out.
4239         (value_contents_equal): Adjust to check whether the optimized_out
4240         vec is empty.
4241         (set_value_optimized_out, value_optimized_out_const): Delete.
4242         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4243         New functions.
4244         (value_entirely_optimized_out, value_bits_valid): Delete.
4245         (value_copy): Take a VEC copy of the 'optimized_out' field.
4246         (value_primitive_field): Remove special handling of optimized out.
4247         (value_fetch_lazy): Assert that lazy values have no unavailable
4248         regions.  Use value_bits_any_optimized_out.  Remove some special
4249         handling for optimized out values.
4250         * value.h: Add intro comment about <optimized out> and
4251         <unavailable>.
4252         (struct lval_funcs): Remove check_validity and check_any_valid
4253         fields.
4254         (set_value_optimized_out, value_optimized_out_const): Remove.
4255         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4256         New declarations.
4257         (value_bits_any_optimized_out): New declaration.
4258         (value_bits_valid): Delete declaration.
4259         (value_available_contents_eq): Rename to ...
4260         (value_contents_eq): ... this, and extend comments.
4261
4262 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
4263
4264         Fix -fsanitize=address on unreadable inferior strings.
4265         * valprint.c (val_print_string): Fix access before BUFFER.
4266
4267 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
4268
4269         * target.c (target_struct_size): Remove.
4270         (target_struct_allocsize): Remove.
4271         (DEFAULT_ALLOCSIZE): Remove.
4272         (target_ops_p): New typedef.
4273         (DEF_VEC_P (target_ops_p)): New vector type.
4274         (target_structs): Change type to VEC (target_ops_p).
4275         (add_target_with_completer): Replace "push" code by VEC_safe_push.
4276         (find_default_run_target): Rewrite for loop following changes to
4277         target_structs.
4278
4279 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
4280
4281         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4282         Adjust code accordingly.  Adjust function description comment.
4283
4284 2014-08-19  Yao Qi  <yao@codesourcery.com>
4285
4286         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4287         types.
4288
4289 2014-08-19  Alan Modra  <amodra@gmail.com>
4290
4291         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4292         * config.in: Regenerate.
4293         * configure: Regenerate.
4294
4295 2014-08-19  Tom Tromey  <tromey@redhat.com>
4296             Gary Benson  <gbenson@redhat.com>
4297
4298         * common/common-debug.h: New file.
4299         * common/common-debug.c: Likewise.
4300         * debug.c: Likewise.
4301         * Makefile.in (SFILES): Add common/common-debug.c.
4302         (HFILES_NO_SRCDIR): Add common/common-debug.h.
4303         (COMMON_OBS): Add common-debug.o and debug.o.
4304         (common-debug.o): New rule.
4305         * common/common-defs.h: Include common-debug.h.
4306         * common/agent.c (debug_agent_printf): New function.
4307         (DEBUG_AGENT): Redefine.
4308         * nat/i386-dregs.c (debug_printf): Undefine.
4309
4310 2014-08-19  Gary Benson  <gbenson@redhat.com>
4311
4312         * common/common-defs.h: Include print-utils.h.
4313         * utils.h: Do not include print-utils.h.
4314
4315 2014-08-19  Tom Tromey  <tromey@redhat.com>
4316             Gary Benson  <gbenson@redhat.com>
4317
4318         * common/common-types.h: New file.
4319         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4320         * common/common-defs.h: Include common-types.h.
4321         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4322         (ULONGEST): Remove.
4323
4324 2014-08-19  Tom Tromey  <tromey@redhat.com>
4325             Gary Benson  <gbenson@redhat.com>
4326
4327         * common/errors.h: New file.
4328         * common/errors.c: Likewise.
4329         * Makefile.in (SFILES): Add common/errors.c.
4330         (HFILES_NO_SRCDIR): Add common/errors.h.
4331         (COMMON_OBS): Add errors.o.
4332         (errors.o): New rule.
4333         * common/common-defs.h: Include errors.h.
4334         * utils.h (perror_with_name, error, verror, warning, vwarning):
4335         Don't declare.
4336         * common/common-utils.h: (malloc_failure, internal_error):
4337         Likewise.
4338
4339 2014-08-19  Gary Benson  <gbenson@redhat.com>
4340
4341         * utils.c (internal_vproblem): Always print the message.
4342
4343 2014-08-18  Doug Evans  <dje@google.com>
4344
4345         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4346
4347 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
4348
4349         * ada-typeprint.c (type_is_full_subrange_of_target_type):
4350         Return 0 if TYPE is dynamic.
4351         (print_range): Add handling of dynamic ranges.
4352
4353 2014-08-18  Keven Boell  <keven.boell@intel.com>
4354             Joel Brobecker  <brobecker@adacore.com>
4355
4356         * gdbtypes.h (struct main_type): Add field "data_location".
4357         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4358         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4359         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4360         a dynamic data location.
4361         (resolve_dynamic_type): Add DW_AT_data_location handling.
4362         (copy_recursive, copy_type): Copy the data_location information
4363         when present.
4364         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4365         * value.c (value_from_contents_and_address): Add
4366         DW_AT_data_location handling.
4367
4368 2014-08-18  Keven Boell  <keven.boell@intel.com>
4369             Joel Brobecker  <brobecker@adacore.com>
4370
4371         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4372         field "get_object_address".
4373         * dwarf2expr.c (execute_stack_op): Add handling for
4374         DW_OP_push_object_address.
4375         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4376         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4377         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4378         (dwarf_expr_get_obj_addr): New function.
4379         (dwarf_expr_ctx_funcs): Add get_object_address field.
4380         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4381         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
4382         (dwarf2_evaluate_property): Add parameter "address".  Use it.
4383         (needs_get_obj_addr): New function.
4384         (needs_frame_ctx_funcs): Add get_object_address field.
4385         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4386         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
4387         (resolve_dynamic_array): Likewise.
4388
4389 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
4390
4391         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4392         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4393         fixed value for records and unions for which some GNAT encodings
4394         are present.
4395
4396 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
4397
4398         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4399         rewrite to avoid "else if" and "else" constructs.  Should be
4400         a no-op in practice.
4401
4402 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
4403
4404         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4405         of lexical block.
4406
4407 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
4408
4409         PR c++/17132
4410         * eval.c: Update all calls to find_overload_match.
4411         * valarith.c: Likewise.
4412         (value_user_defined_cpp_op, value_user_defined_op): New
4413         argument NOSIDE.  Update all callers.
4414         * valops.c (find_overload_match): New argument NOSIDE.
4415         * value.h (find_overload_match): Update signature.
4416
4417 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
4418
4419         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4420         'items' methods instead of 'iteritems' method on dictionaries.
4421
4422 2014-08-15  Doug Evans  <dje@google.com>
4423
4424         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4425         closer to use.
4426
4427 2014-08-15  Doug Evans  <dje@google.com>
4428
4429         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4430
4431 2014-08-15  Doug Evans  <dje@google.com>
4432
4433         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4434
4435 2014-08-15  Doug Evans  <dje@google.com>
4436
4437         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4438         unused.
4439
4440 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
4441
4442         * dcache.h: Include target.h, to avoid compile time warnings.
4443
4444 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
4445
4446         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
4447         frame_info" partial declaration.
4448         * gdbarch.h: Regenerate.
4449
4450 2014-08-15  Yao Qi  <yao@codesourcery.com>
4451
4452         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4453         Add parameter 'decode_for_pst_p'.  Callers update.
4454
4455 2014-08-13  Yao Qi  <yao@codesourcery.com>
4456
4457         PR build/17104
4458         * configure.ac: Use local variable 'pos'.
4459         * configure: Regenerated.
4460
4461 2014-08-11  Doug Evans  <dje@google.com>
4462
4463         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4464         message, it is redundant with "Reading symbols from ..." message.
4465
4466 2014-08-10  Doug Evans  <xdje42@gmail.com>
4467
4468         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4469
4470 2014-08-09  Yao Qi  <yao@codesourcery.com>
4471
4472         PR remote/9053
4473         * remote.c (remote_xfer_partial): Remove dead code.
4474
4475 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4476
4477         * ia64-linux-tdep.c: Include "regset.h".
4478         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4479         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4480         (ia64_linux_supply_fpregset): New function.
4481         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4482         (ia64_linux_regset_from_core_section): New function.
4483         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4484         method.
4485
4486 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4487
4488         * m68klinux-tdep.c: Include "regset.h".
4489         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4490         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4491         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4492         (m68k_linux_regset_from_core_section): New function.
4493         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4494         method.
4495
4496 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4497
4498         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4499         function.  Move logic to...
4500         (tilegx_linux_regmap): ... this new register map.
4501         (tilegx_linux_regset): Refer to register map, replace supply
4502         method by regcache_supply_regset, and add collect method.
4503         * tilegx-tdep.h (enum tilegx_regnum): New enum value
4504         TILEGX_FIRST_EASY_REGNUM.
4505
4506 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4507
4508         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4509         that calls regcache_supply_regset and handles the EPC register
4510         separately.  Move main logic to...
4511         (score7_linux_gregmap): ... this new register map.
4512         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4513         (score7_linux_gregset): Refer to register map.  Add collect method.
4514         (score7_linux_regset_from_core_section): Replace
4515         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4516         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4517         (struct regset): Delete unused forward declaraction.
4518         (struct pt_regs): Delete structure definition.
4519         (elf_gregset_t): Delete typedef.
4520
4521 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4522
4523         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4524         (nios2_core_regset): Add collect method.
4525
4526 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4527
4528         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4529         platform-independent and don't write to read-only input buffer.
4530         (m32r_linux_collect_gregset): New function.
4531         (m32r_linux_gregset): Add collect method.
4532
4533 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4534
4535         * hppa-linux-tdep.c (greg_map): Rename to...
4536         (hppa_linux_gregmap): ... this.  Also convert to
4537         regcache_map_entry format.
4538         (hppa_linux_supply_regset): Delete function.
4539         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
4540         (hppa_linux_fpregmap): ... this new register map.
4541         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4542         register map, replace supply method by regcache_supply_regset, and
4543         add collect method regcache_collect_regset.
4544
4545 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4546
4547         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4548         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4549         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4550         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4551         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4552         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4553         (frv_linux_supply_gregset): Replace main logic by call to
4554         regcache_supply_regset, but keep clearing gr32-gr63.
4555         (frv_linux_supply_fpregset): Delete function.
4556         (frv_linux_gregset): Refer to appropriate register map and add
4557         regcache_collect_regset as the collect method.
4558         (frv_linux_fpregset): Likewise.  Also exchange the supply method
4559         by regcache_supply_regset.
4560
4561 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4562
4563         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4564         by call to alpha_supply_int_regs.
4565         (alpha_linux_collect_gregset): New function.
4566         (alpha_linux_supply_fpregset): Replace logic by call to
4567         alpha_supply_fp_regs.
4568         (alpha_linux_collect_fpregset): New function.
4569         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4570
4571 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4572
4573         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4574         by call to regcache_collect_regset.
4575         (supply_gregset, supply_fpregset): Call regcache_supply_regset
4576         instead of aarch64_linux_supply_gregset/_fpregset.
4577         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4578         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4579         header file instead.
4580         (aarch64_linux_supply_gregset, supply_gregset_from_core)
4581         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4582         functions.  Move logic to ...
4583         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4584         register maps.
4585         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4586         refer to new register maps, replace *_regset_from_core by
4587         regcache_supply_regset, and also use regcache_collect_regset.
4588         * aarch64-linux-tdep.h: Include "regset.h".
4589         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4590         Delete prototypes.
4591         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4592         macros, moved from C source file.
4593         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4594         variable declarations.
4595
4596 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4597
4598         * s390-linux-nat.c: Include "regset.h".
4599         (regmap_gregset): Delete macro.
4600         (s390_64_regmap_gregset): New register map for
4601         regcache_supply/_collect_regset.
4602         (s390_64_gregset): New regset.
4603         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4604         (regmap_fpregset): Delete macro.
4605         (s390_native_supply, s390_native_collect): Delete functions.
4606         (supply_gregset, fill_gregset): Replace s390-specific regmap
4607         handling by a call to regcache_supply/_collect_regset.
4608         (supply_fpregset, fill_fpregset): Call regcache_supply/
4609         _collect_regset instead of s390_native_supply/_collect.
4610         (fetch_regset, store_regset): Likewise.  Also change the last
4611         parameter to a regset instead of a regmap.
4612         (s390_linux_fetch_inferior_registers)
4613         (390_linux_store_inferior_registers): Adjust last parameter in
4614         calls to fetch_regset and store_regset.
4615         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4616         (s390_gregmap): ... this.  Also make static const and convert to
4617         regcache_map_entry format.
4618         (s390x_regmap_gregset): Delete.
4619         (s390_regmap_fpregset): Rename to...
4620         (s390_fpregmap): ... this.  Make static const and convert to
4621         regcache_map_entry format.
4622         (s390_regmap_upper, s390_regmap_last_break)
4623         (s390x_regmap_last_break, s390_regmap_system_call)
4624         (s390_regmap_tdb): Likewise.
4625         (s390_supply_regset, s390_collect_regset): Remove functions.
4626         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4627         s390_supply_regset.
4628         (s390_gregset, s390_fpregset, s390_upper_regset)
4629         (s390_last_break_regset, s390x_last_break_regset)
4630         (s390_system_call_regset, s390_tdb_regset): Make global and
4631         replace s390_supply/_collect_regset by regcache_supply/
4632         _collect_regset.
4633         (s390x_gregset): Delete.
4634         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4635         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4636         (s390_regmap_fpregset, s390_regmap_last_break)
4637         (s390x_regmap_last_break, s390_regmap_system_call)
4638         (s390_regmap_tdb): Delete global variable declarations.
4639         (s390_gregset, s390_fpregset, s390_last_break_regset)
4640         (s390x_last_break_regset, s390_system_call_regset)
4641         (s390_tdb_regset): New global variable declarations.
4642
4643 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4644
4645         * regcache.c: Include "regset.h".
4646         (regcache_transfer_regset): New local function.
4647         (regcache_supply_regset, regcache_collect_regset): New functions.
4648         * regcache.h (struct regcache_map_entry): New structure.
4649         (REGCACHE_MAP_SKIP): New enum value.
4650         (regcache_supply_regset, regcache_collect_regset): New prototypes.
4651
4652 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4653
4654         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4655         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4656         (ppc_linux_collect_gregset ): Likewise.
4657         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4658         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4659         (ppc_collect_vrregset): Likewise.
4660         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4661         Likewise.
4662
4663 2014-08-07  Yao Qi  <yao@codesourcery.com>
4664
4665         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4666         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4667         * remote.c (remote_read_bytes): Likewise.
4668
4669 2014-08-07  Yao Qi  <yao@codesourcery.com>
4670
4671         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4672
4673 2014-08-07  Yao Qi  <yao@codesourcery.com>
4674
4675         PR remote/17230
4676         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4677         TARGET_XFER_OK instead of 0.
4678
4679 2014-08-07  Gary Benson  <gbenson@redhat.com>
4680
4681         * common/common-defs.h: Include errno.h.
4682         * defs.h: Do not include errno.h.
4683         * ada-typeprint.c: Likewise.
4684         * c-typeprint.c: Likewise.
4685         * core-regset.c: Likewise.
4686         * corefile.c: Likewise.
4687         * corelow.c: Likewise.
4688         * event-loop.c: Likewise.
4689         * f-typeprint.c: Likewise.
4690         * gnu-nat.c: Likewise.
4691         * go32-nat.c: Likewise.
4692         * i386gnu-nat.c: Likewise.
4693         * m2-typeprint.c: Likewise.
4694         * nat/linux-btrace.c: Likewise.
4695         * p-typeprint.c: Likewise.
4696         * procfs.c: Likewise.
4697         * remote-sim.c: Likewise.
4698         * rs6000-nat.c: Likewise.
4699         * target.c: Likewise.
4700         * typeprint.c: Likewise.
4701         * ui-file.c: Likewise.
4702         * valops.c: Likewise.
4703         * valprint.c: Likewise.
4704
4705 2014-08-07  Gary Benson  <gbenson@redhat.com>
4706
4707         * common/common-defs.h: Include string.h.
4708         * aarch64-tdep.c: Do not include string.h.
4709         * ada-exp.y: Likewise.
4710         * ada-lang.c: Likewise.
4711         * ada-lex.l: Likewise.
4712         * ada-typeprint.c: Likewise.
4713         * ada-valprint.c: Likewise.
4714         * aix-thread.c: Likewise.
4715         * alpha-linux-tdep.c: Likewise.
4716         * alpha-mdebug-tdep.c: Likewise.
4717         * alpha-nat.c: Likewise.
4718         * alpha-osf1-tdep.c: Likewise.
4719         * alpha-tdep.c: Likewise.
4720         * alphanbsd-tdep.c: Likewise.
4721         * amd64-dicos-tdep.c: Likewise.
4722         * amd64-linux-tdep.c: Likewise.
4723         * amd64-nat.c: Likewise.
4724         * amd64-sol2-tdep.c: Likewise.
4725         * amd64fbsd-tdep.c: Likewise.
4726         * amd64obsd-tdep.c: Likewise.
4727         * arch-utils.c: Likewise.
4728         * arm-linux-nat.c: Likewise.
4729         * arm-linux-tdep.c: Likewise.
4730         * arm-tdep.c: Likewise.
4731         * arm-wince-tdep.c: Likewise.
4732         * armbsd-tdep.c: Likewise.
4733         * armnbsd-nat.c: Likewise.
4734         * armnbsd-tdep.c: Likewise.
4735         * armobsd-tdep.c: Likewise.
4736         * avr-tdep.c: Likewise.
4737         * ax-gdb.c: Likewise.
4738         * ax-general.c: Likewise.
4739         * bcache.c: Likewise.
4740         * bfin-tdep.c: Likewise.
4741         * breakpoint.c: Likewise.
4742         * build-id.c: Likewise.
4743         * buildsym.c: Likewise.
4744         * c-exp.y: Likewise.
4745         * c-lang.c: Likewise.
4746         * c-typeprint.c: Likewise.
4747         * c-valprint.c: Likewise.
4748         * charset.c: Likewise.
4749         * cli-out.c: Likewise.
4750         * cli/cli-cmds.c: Likewise.
4751         * cli/cli-decode.c: Likewise.
4752         * cli/cli-dump.c: Likewise.
4753         * cli/cli-interp.c: Likewise.
4754         * cli/cli-logging.c: Likewise.
4755         * cli/cli-script.c: Likewise.
4756         * cli/cli-setshow.c: Likewise.
4757         * cli/cli-utils.c: Likewise.
4758         * coffread.c: Likewise.
4759         * common/agent.c: Likewise.
4760         * common/buffer.c: Likewise.
4761         * common/buffer.h: Likewise.
4762         * common/common-utils.c: Likewise.
4763         * common/filestuff.c: Likewise.
4764         * common/filestuff.c: Likewise.
4765         * common/format.c: Likewise.
4766         * common/print-utils.c: Likewise.
4767         * common/rsp-low.c: Likewise.
4768         * common/signals.c: Likewise.
4769         * common/vec.h: Likewise.
4770         * common/xml-utils.c: Likewise.
4771         * core-regset.c: Likewise.
4772         * corefile.c: Likewise.
4773         * corelow.c: Likewise.
4774         * cp-abi.c: Likewise.
4775         * cp-name-parser.y: Likewise.
4776         * cp-support.c: Likewise.
4777         * cp-valprint.c: Likewise.
4778         * cris-tdep.c: Likewise.
4779         * d-exp.y: Likewise.
4780         * darwin-nat.c: Likewise.
4781         * dbxread.c: Likewise.
4782         * dcache.c: Likewise.
4783         * demangle.c: Likewise.
4784         * dicos-tdep.c: Likewise.
4785         * disasm.c: Likewise.
4786         * doublest.c: Likewise.
4787         * dsrec.c: Likewise.
4788         * dummy-frame.c: Likewise.
4789         * dwarf2-frame.c: Likewise.
4790         * dwarf2loc.c: Likewise.
4791         * dwarf2read.c: Likewise.
4792         * elfread.c: Likewise.
4793         * environ.c: Likewise.
4794         * eval.c: Likewise.
4795         * event-loop.c: Likewise.
4796         * exceptions.c: Likewise.
4797         * exec.c: Likewise.
4798         * expprint.c: Likewise.
4799         * f-exp.y: Likewise.
4800         * f-lang.c: Likewise.
4801         * f-typeprint.c: Likewise.
4802         * f-valprint.c: Likewise.
4803         * fbsd-nat.c: Likewise.
4804         * findcmd.c: Likewise.
4805         * findvar.c: Likewise.
4806         * fork-child.c: Likewise.
4807         * frame.c: Likewise.
4808         * frv-linux-tdep.c: Likewise.
4809         * frv-tdep.c: Likewise.
4810         * gdb.c: Likewise.
4811         * gdb_bfd.c: Likewise.
4812         * gdbarch.c: Likewise.
4813         * gdbarch.sh: Likewise.
4814         * gdbtypes.c: Likewise.
4815         * gnu-nat.c: Likewise.
4816         * gnu-v2-abi.c: Likewise.
4817         * gnu-v3-abi.c: Likewise.
4818         * go-exp.y: Likewise.
4819         * go-lang.c: Likewise.
4820         * go32-nat.c: Likewise.
4821         * guile/guile.c: Likewise.
4822         * guile/scm-auto-load.c: Likewise.
4823         * hppa-hpux-tdep.c: Likewise.
4824         * hppa-linux-nat.c: Likewise.
4825         * hppanbsd-tdep.c: Likewise.
4826         * hppaobsd-tdep.c: Likewise.
4827         * i386-cygwin-tdep.c: Likewise.
4828         * i386-dicos-tdep.c: Likewise.
4829         * i386-linux-tdep.c: Likewise.
4830         * i386-nto-tdep.c: Likewise.
4831         * i386-sol2-tdep.c: Likewise.
4832         * i386-tdep.c: Likewise.
4833         * i386bsd-tdep.c: Likewise.
4834         * i386gnu-nat.c: Likewise.
4835         * i386nbsd-tdep.c: Likewise.
4836         * i386obsd-tdep.c: Likewise.
4837         * i387-tdep.c: Likewise.
4838         * ia64-libunwind-tdep.c: Likewise.
4839         * ia64-linux-nat.c: Likewise.
4840         * inf-child.c: Likewise.
4841         * inf-ptrace.c: Likewise.
4842         * inf-ttrace.c: Likewise.
4843         * infcall.c: Likewise.
4844         * infcmd.c: Likewise.
4845         * inflow.c: Likewise.
4846         * infrun.c: Likewise.
4847         * interps.c: Likewise.
4848         * iq2000-tdep.c: Likewise.
4849         * irix5-nat.c: Likewise.
4850         * jv-exp.y: Likewise.
4851         * jv-lang.c: Likewise.
4852         * jv-typeprint.c: Likewise.
4853         * jv-valprint.c: Likewise.
4854         * language.c: Likewise.
4855         * linux-fork.c: Likewise.
4856         * linux-nat.c: Likewise.
4857         * lm32-tdep.c: Likewise.
4858         * m2-exp.y: Likewise.
4859         * m2-typeprint.c: Likewise.
4860         * m32c-tdep.c: Likewise.
4861         * m32r-linux-nat.c: Likewise.
4862         * m32r-linux-tdep.c: Likewise.
4863         * m32r-rom.c: Likewise.
4864         * m32r-tdep.c: Likewise.
4865         * m68hc11-tdep.c: Likewise.
4866         * m68k-tdep.c: Likewise.
4867         * m68kbsd-tdep.c: Likewise.
4868         * m68klinux-nat.c: Likewise.
4869         * m68klinux-tdep.c: Likewise.
4870         * m88k-tdep.c: Likewise.
4871         * machoread.c: Likewise.
4872         * macrocmd.c: Likewise.
4873         * main.c: Likewise.
4874         * mdebugread.c: Likewise.
4875         * mem-break.c: Likewise.
4876         * memattr.c: Likewise.
4877         * memory-map.c: Likewise.
4878         * mep-tdep.c: Likewise.
4879         * mi/mi-cmd-break.c: Likewise.
4880         * mi/mi-cmd-disas.c: Likewise.
4881         * mi/mi-cmd-env.c: Likewise.
4882         * mi/mi-cmd-stack.c: Likewise.
4883         * mi/mi-cmd-var.c: Likewise.
4884         * mi/mi-cmds.c: Likewise.
4885         * mi/mi-console.c: Likewise.
4886         * mi/mi-getopt.c: Likewise.
4887         * mi/mi-interp.c: Likewise.
4888         * mi/mi-main.c: Likewise.
4889         * mi/mi-parse.c: Likewise.
4890         * microblaze-rom.c: Likewise.
4891         * microblaze-tdep.c: Likewise.
4892         * mingw-hdep.c: Likewise.
4893         * minidebug.c: Likewise.
4894         * minsyms.c: Likewise.
4895         * mips-irix-tdep.c: Likewise.
4896         * mips-linux-tdep.c: Likewise.
4897         * mips-tdep.c: Likewise.
4898         * mips64obsd-tdep.c: Likewise.
4899         * mipsnbsd-tdep.c: Likewise.
4900         * mipsread.c: Likewise.
4901         * mn10300-linux-tdep.c: Likewise.
4902         * mn10300-tdep.c: Likewise.
4903         * monitor.c: Likewise.
4904         * moxie-tdep.c: Likewise.
4905         * mt-tdep.c: Likewise.
4906         * nat/linux-btrace.c: Likewise.
4907         * nat/linux-osdata.c: Likewise.
4908         * nat/linux-procfs.c: Likewise.
4909         * nat/linux-ptrace.c: Likewise.
4910         * nat/linux-waitpid.c: Likewise.
4911         * nbsd-tdep.c: Likewise.
4912         * nios2-linux-tdep.c: Likewise.
4913         * nto-procfs.c: Likewise.
4914         * nto-tdep.c: Likewise.
4915         * objc-lang.c: Likewise.
4916         * objfiles.c: Likewise.
4917         * opencl-lang.c: Likewise.
4918         * osabi.c: Likewise.
4919         * osdata.c: Likewise.
4920         * p-exp.y: Likewise.
4921         * p-lang.c: Likewise.
4922         * p-typeprint.c: Likewise.
4923         * parse.c: Likewise.
4924         * posix-hdep.c: Likewise.
4925         * ppc-linux-nat.c: Likewise.
4926         * ppc-sysv-tdep.c: Likewise.
4927         * ppcfbsd-tdep.c: Likewise.
4928         * ppcnbsd-tdep.c: Likewise.
4929         * ppcobsd-tdep.c: Likewise.
4930         * printcmd.c: Likewise.
4931         * procfs.c: Likewise.
4932         * prologue-value.c: Likewise.
4933         * python/py-auto-load.c: Likewise.
4934         * python/py-gdb-readline.c: Likewise.
4935         * ravenscar-thread.c: Likewise.
4936         * regcache.c: Likewise.
4937         * registry.c: Likewise.
4938         * remote-fileio.c: Likewise.
4939         * remote-m32r-sdi.c: Likewise.
4940         * remote-mips.c: Likewise.
4941         * remote-notif.c: Likewise.
4942         * remote-sim.c: Likewise.
4943         * remote.c: Likewise.
4944         * reverse.c: Likewise.
4945         * rs6000-aix-tdep.c: Likewise.
4946         * ser-base.c: Likewise.
4947         * ser-go32.c: Likewise.
4948         * ser-mingw.c: Likewise.
4949         * ser-pipe.c: Likewise.
4950         * ser-tcp.c: Likewise.
4951         * ser-unix.c: Likewise.
4952         * serial.c: Likewise.
4953         * sh-tdep.c: Likewise.
4954         * sh64-tdep.c: Likewise.
4955         * shnbsd-tdep.c: Likewise.
4956         * skip.c: Likewise.
4957         * sol-thread.c: Likewise.
4958         * solib-dsbt.c: Likewise.
4959         * solib-frv.c: Likewise.
4960         * solib-osf.c: Likewise.
4961         * solib-som.c: Likewise.
4962         * solib-spu.c: Likewise.
4963         * solib-target.c: Likewise.
4964         * solib.c: Likewise.
4965         * somread.c: Likewise.
4966         * source.c: Likewise.
4967         * sparc-nat.c: Likewise.
4968         * sparc-sol2-tdep.c: Likewise.
4969         * sparc-tdep.c: Likewise.
4970         * sparc64-tdep.c: Likewise.
4971         * sparc64fbsd-tdep.c: Likewise.
4972         * sparc64nbsd-tdep.c: Likewise.
4973         * sparcnbsd-tdep.c: Likewise.
4974         * spu-linux-nat.c: Likewise.
4975         * spu-multiarch.c: Likewise.
4976         * spu-tdep.c: Likewise.
4977         * stabsread.c: Likewise.
4978         * stack.c: Likewise.
4979         * std-regs.c: Likewise.
4980         * symfile.c: Likewise.
4981         * symmisc.c: Likewise.
4982         * symtab.c: Likewise.
4983         * target.c: Likewise.
4984         * thread.c: Likewise.
4985         * tilegx-linux-nat.c: Likewise.
4986         * tilegx-tdep.c: Likewise.
4987         * top.c: Likewise.
4988         * tracepoint.c: Likewise.
4989         * tui/tui-command.c: Likewise.
4990         * tui/tui-data.c: Likewise.
4991         * tui/tui-disasm.c: Likewise.
4992         * tui/tui-file.c: Likewise.
4993         * tui/tui-layout.c: Likewise.
4994         * tui/tui-out.c: Likewise.
4995         * tui/tui-regs.c: Likewise.
4996         * tui/tui-source.c: Likewise.
4997         * tui/tui-stack.c: Likewise.
4998         * tui/tui-win.c: Likewise.
4999         * tui/tui-windata.c: Likewise.
5000         * tui/tui-winsource.c: Likewise.
5001         * typeprint.c: Likewise.
5002         * ui-file.c: Likewise.
5003         * ui-out.c: Likewise.
5004         * user-regs.c: Likewise.
5005         * utils.c: Likewise.
5006         * v850-tdep.c: Likewise.
5007         * valarith.c: Likewise.
5008         * valops.c: Likewise.
5009         * valprint.c: Likewise.
5010         * value.c: Likewise.
5011         * varobj.c: Likewise.
5012         * vax-tdep.c: Likewise.
5013         * vaxnbsd-tdep.c: Likewise.
5014         * vaxobsd-tdep.c: Likewise.
5015         * windows-nat.c: Likewise.
5016         * xcoffread.c: Likewise.
5017         * xml-support.c: Likewise.
5018         * xstormy16-tdep.c: Likewise.
5019         * xtensa-linux-nat.c: Likewise.
5020
5021 2014-08-07  Gary Benson  <gbenson@redhat.com>
5022
5023         * common/common-defs.h: Include gdb_assert.h.
5024         * aarch64-tdep.c: Do not include gdb_assert.h.
5025         * addrmap.c: Likewise.
5026         * aix-thread.c: Likewise.
5027         * alpha-linux-tdep.c: Likewise.
5028         * alpha-mdebug-tdep.c: Likewise.
5029         * alphanbsd-tdep.c: Likewise.
5030         * amd64-nat.c: Likewise.
5031         * amd64-tdep.c: Likewise.
5032         * amd64bsd-nat.c: Likewise.
5033         * amd64fbsd-nat.c: Likewise.
5034         * amd64fbsd-tdep.c: Likewise.
5035         * amd64nbsd-nat.c: Likewise.
5036         * amd64nbsd-tdep.c: Likewise.
5037         * amd64obsd-nat.c: Likewise.
5038         * amd64obsd-tdep.c: Likewise.
5039         * arch-utils.c: Likewise.
5040         * arm-tdep.c: Likewise.
5041         * armbsd-tdep.c: Likewise.
5042         * auxv.c: Likewise.
5043         * bcache.c: Likewise.
5044         * bfin-tdep.c: Likewise.
5045         * blockframe.c: Likewise.
5046         * breakpoint.c: Likewise.
5047         * bsd-kvm.c: Likewise.
5048         * bsd-uthread.c: Likewise.
5049         * buildsym.c: Likewise.
5050         * c-exp.y: Likewise.
5051         * c-lang.c: Likewise.
5052         * charset.c: Likewise.
5053         * cleanups.c: Likewise.
5054         * cli-out.c: Likewise.
5055         * cli/cli-decode.c: Likewise.
5056         * cli/cli-dump.c: Likewise.
5057         * cli/cli-logging.c: Likewise.
5058         * cli/cli-script.c: Likewise.
5059         * cli/cli-utils.c: Likewise.
5060         * coffread.c: Likewise.
5061         * common/common-utils.c: Likewise.
5062         * common/queue.h: Likewise.
5063         * common/signals.c: Likewise.
5064         * common/vec.h: Likewise.
5065         * complaints.c: Likewise.
5066         * completer.c: Likewise.
5067         * corelow.c: Likewise.
5068         * cp-abi.c: Likewise.
5069         * cp-name-parser.y: Likewise.
5070         * cp-namespace.c: Likewise.
5071         * cp-support.c: Likewise.
5072         * cris-tdep.c: Likewise.
5073         * dbxread.c: Likewise.
5074         * dictionary.c: Likewise.
5075         * doublest.c: Likewise.
5076         * dsrec.c: Likewise.
5077         * dummy-frame.c: Likewise.
5078         * dwarf2-frame-tailcall.c: Likewise.
5079         * dwarf2-frame.c: Likewise.
5080         * dwarf2expr.c: Likewise.
5081         * dwarf2loc.c: Likewise.
5082         * dwarf2read.c: Likewise.
5083         * eval.c: Likewise.
5084         * event-loop.c: Likewise.
5085         * exceptions.c: Likewise.
5086         * expprint.c: Likewise.
5087         * f-valprint.c: Likewise.
5088         * fbsd-nat.c: Likewise.
5089         * findvar.c: Likewise.
5090         * frame-unwind.c: Likewise.
5091         * frame.c: Likewise.
5092         * frv-tdep.c: Likewise.
5093         * gcore.c: Likewise.
5094         * gdb-dlfcn.c: Likewise.
5095         * gdb_bfd.c: Likewise.
5096         * gdbarch.c: Likewise.
5097         * gdbarch.sh: Likewise.
5098         * gdbtypes.c: Likewise.
5099         * gnu-nat.c: Likewise.
5100         * gnu-v3-abi.c: Likewise.
5101         * go-lang.c: Likewise.
5102         * guile/scm-exception.c: Likewise.
5103         * guile/scm-gsmob.c: Likewise.
5104         * guile/scm-lazy-string.c: Likewise.
5105         * guile/scm-math.c: Likewise.
5106         * guile/scm-pretty-print.c: Likewise.
5107         * guile/scm-safe-call.c: Likewise.
5108         * guile/scm-utils.c: Likewise.
5109         * guile/scm-value.c: Likewise.
5110         * h8300-tdep.c: Likewise.
5111         * hppa-hpux-nat.c: Likewise.
5112         * hppa-tdep.c: Likewise.
5113         * hppanbsd-tdep.c: Likewise.
5114         * hppaobsd-tdep.c: Likewise.
5115         * i386-darwin-nat.c: Likewise.
5116         * i386-darwin-tdep.c: Likewise.
5117         * i386-nto-tdep.c: Likewise.
5118         * i386-tdep.c: Likewise.
5119         * i386bsd-nat.c: Likewise.
5120         * i386fbsd-tdep.c: Likewise.
5121         * i386gnu-nat.c: Likewise.
5122         * i386nbsd-tdep.c: Likewise.
5123         * i386obsd-tdep.c: Likewise.
5124         * i387-tdep.c: Likewise.
5125         * ia64-libunwind-tdep.c: Likewise.
5126         * ia64-tdep.c: Likewise.
5127         * inf-ptrace.c: Likewise.
5128         * inf-ttrace.c: Likewise.
5129         * infcall.c: Likewise.
5130         * infcmd.c: Likewise.
5131         * infrun.c: Likewise.
5132         * inline-frame.c: Likewise.
5133         * interps.c: Likewise.
5134         * jv-lang.c: Likewise.
5135         * jv-typeprint.c: Likewise.
5136         * linux-fork.c: Likewise.
5137         * linux-nat.c: Likewise.
5138         * linux-thread-db.c: Likewise.
5139         * m32c-tdep.c: Likewise.
5140         * m32r-linux-nat.c: Likewise.
5141         * m32r-tdep.c: Likewise.
5142         * m68k-tdep.c: Likewise.
5143         * m68kbsd-nat.c: Likewise.
5144         * m68kbsd-tdep.c: Likewise.
5145         * m88k-tdep.c: Likewise.
5146         * machoread.c: Likewise.
5147         * macroexp.c: Likewise.
5148         * macrotab.c: Likewise.
5149         * maint.c: Likewise.
5150         * mdebugread.c: Likewise.
5151         * memory-map.c: Likewise.
5152         * mep-tdep.c: Likewise.
5153         * mi/mi-common.c: Likewise.
5154         * microblaze-tdep.c: Likewise.
5155         * mingw-hdep.c: Likewise.
5156         * mips-linux-nat.c: Likewise.
5157         * mips-linux-tdep.c: Likewise.
5158         * mips-tdep.c: Likewise.
5159         * mips64obsd-tdep.c: Likewise.
5160         * mipsnbsd-tdep.c: Likewise.
5161         * mn10300-linux-tdep.c: Likewise.
5162         * mn10300-tdep.c: Likewise.
5163         * moxie-tdep.c: Likewise.
5164         * mt-tdep.c: Likewise.
5165         * nat/linux-btrace.c: Likewise.
5166         * nat/linux-osdata.c: Likewise.
5167         * nat/linux-ptrace.c: Likewise.
5168         * nat/mips-linux-watch.c: Likewise.
5169         * nios2-linux-tdep.c: Likewise.
5170         * nios2-tdep.c: Likewise.
5171         * objc-lang.c: Likewise.
5172         * objfiles.c: Likewise.
5173         * obsd-nat.c: Likewise.
5174         * opencl-lang.c: Likewise.
5175         * osabi.c: Likewise.
5176         * parse.c: Likewise.
5177         * ppc-linux-nat.c: Likewise.
5178         * ppc-sysv-tdep.c: Likewise.
5179         * ppcfbsd-nat.c: Likewise.
5180         * ppcfbsd-tdep.c: Likewise.
5181         * ppcnbsd-nat.c: Likewise.
5182         * ppcnbsd-tdep.c: Likewise.
5183         * ppcobsd-nat.c: Likewise.
5184         * ppcobsd-tdep.c: Likewise.
5185         * printcmd.c: Likewise.
5186         * procfs.c: Likewise.
5187         * prologue-value.c: Likewise.
5188         * psymtab.c: Likewise.
5189         * python/py-lazy-string.c: Likewise.
5190         * python/py-value.c: Likewise.
5191         * regcache.c: Likewise.
5192         * reggroups.c: Likewise.
5193         * registry.c: Likewise.
5194         * remote-sim.c: Likewise.
5195         * remote.c: Likewise.
5196         * rs6000-aix-tdep.c: Likewise.
5197         * rs6000-tdep.c: Likewise.
5198         * s390-linux-tdep.c: Likewise.
5199         * score-tdep.c: Likewise.
5200         * ser-base.c: Likewise.
5201         * ser-mingw.c: Likewise.
5202         * sh-tdep.c: Likewise.
5203         * sh64-tdep.c: Likewise.
5204         * solib-darwin.c: Likewise.
5205         * solib-spu.c: Likewise.
5206         * solib-svr4.c: Likewise.
5207         * source.c: Likewise.
5208         * sparc-nat.c: Likewise.
5209         * sparc-sol2-tdep.c: Likewise.
5210         * sparc-tdep.c: Likewise.
5211         * sparc64-sol2-tdep.c: Likewise.
5212         * sparc64-tdep.c: Likewise.
5213         * sparc64fbsd-tdep.c: Likewise.
5214         * sparc64nbsd-tdep.c: Likewise.
5215         * sparc64obsd-tdep.c: Likewise.
5216         * sparcnbsd-tdep.c: Likewise.
5217         * sparcobsd-tdep.c: Likewise.
5218         * spu-multiarch.c: Likewise.
5219         * spu-tdep.c: Likewise.
5220         * stabsread.c: Likewise.
5221         * stack.c: Likewise.
5222         * symfile.c: Likewise.
5223         * symtab.c: Likewise.
5224         * target-descriptions.c: Likewise.
5225         * target-memory.c: Likewise.
5226         * target.c: Likewise.
5227         * tic6x-linux-tdep.c: Likewise.
5228         * tic6x-tdep.c: Likewise.
5229         * tilegx-linux-nat.c: Likewise.
5230         * tilegx-tdep.c: Likewise.
5231         * top.c: Likewise.
5232         * tramp-frame.c: Likewise.
5233         * tui/tui-out.c: Likewise.
5234         * tui/tui-winsource.c: Likewise.
5235         * ui-out.c: Likewise.
5236         * user-regs.c: Likewise.
5237         * utils.c: Likewise.
5238         * v850-tdep.c: Likewise.
5239         * valops.c: Likewise.
5240         * value.c: Likewise.
5241         * varobj.c: Likewise.
5242         * vax-nat.c: Likewise.
5243         * xml-syscall.c: Likewise.
5244         * xml-tdesc.c: Likewise.
5245         * xstormy16-tdep.c: Likewise.
5246         * xtensa-linux-nat.c: Likewise.
5247         * xtensa-tdep.c: Likewise.
5248
5249 2014-08-07  Gary Benson  <gbenson@redhat.com>
5250
5251         * common/common-defs.h: Include common-utils.h.
5252         * defs.h: Do not include common-utils.h.
5253         * common/gdb_assert.h: Likewise.
5254         * darwin-nat.h: Likewise.
5255         * nat/linux-btrace.c: Likewise.
5256         * target/waitstatus.h: Likewise.
5257
5258 2014-08-07  Gary Benson  <gbenson@redhat.com>
5259
5260         * common/common-defs.h: Include ptid.h.
5261         * defs.h: Do not include ptid.h.
5262         * inferior.h: Likewise.
5263         * infrun.h: Likewise.
5264         * nat/linux-btrace.h: Likewise.
5265         * nat/linux-osdata.h: Likewise.
5266         * target/waitstatus.h: Likewise.
5267
5268 2014-08-07  Gary Benson  <gbenson@redhat.com>
5269
5270         * common/common-defs.h: Include gdb_locale.h.
5271         * defs.h: Do not include gdb_locale.h.
5272
5273 2014-08-07  Gary Benson  <gbenson@redhat.com>
5274
5275         * common/common-defs.h: Include gdb/signals.h.
5276         * defs.h: Do not include gdb/signals.h.
5277
5278 2014-08-07  Gary Benson  <gbenson@redhat.com>
5279
5280         * common/common-defs.h: Include pathmax.h.
5281         * defs.h: Do not include pathmax.h.
5282
5283 2014-08-07  Gary Benson  <gbenson@redhat.com>
5284
5285         * common/common-defs.h: Include libiberty.h.
5286         * defs.h: Do not include libiberty.h.
5287         * common/queue.h: Likewise.
5288         * cp-name-parser.y: Likewise.
5289         * mi/mi-cmd-catch.c: Likewise.
5290         * python/python.c: Likewise.
5291
5292 2014-08-07  Gary Benson  <gbenson@redhat.com>
5293
5294         * common/common-defs.h: Include ansidecl.h.
5295         * defs.h: Do not include ansidecl.h.
5296         * common/buffer.h: Likewise.
5297         * common/common-utils.h: Likewise.
5298
5299 2014-08-07  Gary Benson  <gbenson@redhat.com>
5300
5301         * common/common-defs.h: Include stddef.h.
5302         * defs.h: Do not include stddef.h.
5303         * common/common-utils.h: Likewise.
5304         * amd64fbsd-nat.c: Likewise.
5305         * bcache.c: Likewise.
5306         * charset.c: Likewise.
5307         * common/buffer.h: Likewise.
5308         * common/vec.h: Likewise.
5309         * i386bsd-nat.c: Likewise.
5310         * nat/linux-btrace.h: Likewise.
5311         * ppcfbsd-nat.c: Likewise.
5312         * ppcnbsd-tdep.h: Likewise.
5313         * ppcobsd-nat.c: Likewise.
5314         * ppcobsd-tdep.h: Likewise.
5315         * python/py-gdb-readline.c: Likewise.
5316
5317 2014-08-07  Gary Benson  <gbenson@redhat.com>
5318
5319         * common/common-defs.h: Include stdarg.h.
5320         * defs.h: Do not include stdarg.h.
5321         * ada-lang.c: Likewise.
5322         * common/common-utils.h: Likewise.
5323         * guile/scm-string.c: Likewise.
5324         * guile/scm-utils.c: Likewise.
5325         * m32c-tdep.c: Likewise.
5326
5327 2014-08-07  Gary Benson  <gbenson@redhat.com>
5328
5329         * common/common-defs.h: Include stdlib.h.
5330         * defs.h: Do not include stdlib.h.
5331         * addrmap.c: Likewise.
5332         * bcache.c: Likewise.
5333         * common/buffer.c: Likewise.
5334         * common/common-utils.c: Likewise.
5335         * cp-name-parser.y: Likewise.
5336         * go32-nat.c: Likewise.
5337         * mn10300-linux-tdep.c: Likewise.
5338         * nat/linux-osdata.c: Likewise.
5339         * tui/tui.c: Likewise.
5340         * windows-nat.c: Likewise.
5341
5342 2014-08-07  Gary Benson  <gbenson@redhat.com>
5343
5344         * common/common-defs.h: Include stdio.h.
5345         * defs.h: Do not include stdio.h.
5346         * ada-lang.c: Likewise.
5347         * common/buffer.c: Likewise.
5348         * common/common-utils.c: Likewise.
5349         * cp-name-parser.y: Likewise.
5350         * gnu-nat.c: Likewise.
5351         * go32-nat.c: Likewise.
5352         * i386gnu-nat.c: Likewise.
5353         * proc-api.c: Likewise.
5354         * proc-events.c: Likewise.
5355         * proc-flags.c: Likewise.
5356         * proc-why.c: Likewise.
5357         * python/python-internal.h: Likewise.
5358         * target-memory.c: Likewise.
5359         * tui/tui-io.c: Likewise.
5360         * tui/tui.c: Likewise.
5361
5362 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5363
5364         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5365         (scan_dyntag_auxv): Same.
5366
5367 2014-08-06  Yao Qi  <yao@codesourcery.com>
5368
5369         * amd64-linux-nat.c: Remove duplicated include
5370         "x86-linux-nat.h".
5371         * i386-linux-nat.c: Likewise.
5372
5373 2014-08-06  Yao Qi  <yao@codesourcery.com>
5374
5375         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5376         operand" with "Special opcode" in comments.
5377
5378 2014-08-05  Gary Benson  <gbenson@redhat.com>
5379
5380         * interps.c (initialize_interps): Remove prototype.
5381         (interpreter_initialized): Remove static global.
5382         (interp_add): Do not call initialize_interps.
5383         (initialize_interps): Remove function.
5384
5385 2014-08-05  Gary Benson  <gbenson@redhat.com>
5386
5387         * utils.c (vwarning): Remove spurious va_end.
5388
5389 2014-08-05  Alan Modra  <amodra@gmail.com>
5390
5391         * charset.c (convert_between_encodings): Cast result of obstack_base.
5392         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5393         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5394         (read_unwind_info): Use size_t for some locals.
5395         * jit.c (finalize_symtab): Likewise.
5396         * utils.c (hashtab_obstack_allocate): Likewise.
5397         * symmisc.c (print_objfile_statistics): Update format strings.
5398
5399 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5400
5401         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5402         (Changes in GDB 7.8): ... here.
5403
5404 2014-08-04  Tom Tromey  <tromey@redhat.com>
5405
5406         * target.c (set_targetdebug): New function.
5407         (initialize_targets): Pass set_targetdebug when creating "set
5408         debug target".
5409
5410 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
5411
5412         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5413         if detecting a variable-sized field that is not the last field.
5414         Fix struct type length computation.
5415
5416 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
5417
5418         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5419         Add debug trace.
5420
5421 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
5422
5423         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5424         Remove "+ 8" offset in computation of CHAIN_VMA.
5425
5426 2014-07-31  Doug Evans  <dje@google.com>
5427
5428         * inflow.c (child_terminal_inferior): Add comment.
5429         (child_terminal_ours_for_output): Add comment.
5430         (child_terminal_ours): Add comment.
5431         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5432         (linux_nat_terminal_ours): Add comment.
5433
5434 2014-07-31  Gary Benson  <gbenson@redhat.com>
5435
5436         * common/btrace-common.h: Do not include defs.h or server.h.
5437         * nat/mips-linux-watch.h: Likewise.
5438         * gdb-dlfcn.h: Do not include defs.h.
5439         * tracefile.h: Likewise.
5440
5441 2014-07-30  Roland McGrath  <mcgrathr@google.com>
5442
5443         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5444
5445 2014-07-30  Tom Tromey  <tromey@redhat.com>
5446
5447         * bsd-kvm.c (bsd_kvm_open): Constify.
5448         * corelow.c (core_open): Constify.
5449         * ctf.c (ctf_open): Constify.
5450         * dbug-rom.c (dbug_open): Constify.
5451         * exec.c (exec_open): Constify.
5452         * m32r-rom.c (m32r_open, mon2000_open): Constify.
5453         * microblaze-rom.c (picobug_open): Constify.
5454         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5455         Constify.
5456         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5457         * record-btrace.c (record_btrace_open): Constify.
5458         * record-full.c (record_full_core_open_1, record_full_open_1)
5459         (record_full_open): Constify.
5460         * remote-m32r-sdi.c (m32r_open): Constify.
5461         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5462         (rockhopper_open, lsi_open): Constify.
5463         * remote-sim.c (gdbsim_open): Constify.
5464         * remote.c (remote_open, extended_remote_open, remote_open_1):
5465         Constify.
5466         * target.h (struct target_ops) <to_open>: Make "arg" const.
5467         * tracefile-tfile.c (tfile_open): Constify.
5468
5469 2014-07-30  Tom Tromey  <tromey@redhat.com>
5470
5471         * breakpoint.c (map_breakpoint_numbers): Update.
5472         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
5473         (get_number_const): New function.
5474         (get_number): Rewrite using get_number_const.
5475         (init_number_or_range): Make "string" const.
5476         (number_is_in_list): Make "list" const.
5477         * cli/cli-utils.h (get_number_const): Declare.
5478         (struct get_number_or_range_state) <string, end_ptr>: Now const.
5479         (init_number_or_range, number_is_in_list): Update.
5480         * printcmd.c (map_display_numbers): Update.
5481         * value.c (value_from_history_ref): Constify.
5482         * value.h (value_from_history_ref): Update.
5483
5484 2014-07-30  Tom Tromey  <tromey@redhat.com>
5485
5486         * corefile.c (hook_type, call_extra_exec_file_hooks)
5487         (specify_exec_file_hook): Constify.
5488         * exec.c (exec_file_attach): Make "filename" const.
5489         * gdbcore.h (deprecated_exec_file_display_hook)
5490         (specify_exec_file_hook, exec_file_attach): Constify.
5491         * main.c (captured_main): Use catch_command_errors_const.
5492
5493 2014-07-30  Tom Tromey  <tromey@redhat.com>
5494
5495         * target.c (open_target): New function.
5496         (add_target_with_completer, add_deprecated_target_alias): Use
5497         set_cmd_sfunc, set_cmd_context.
5498         (debug_to_open): Remove.
5499         (setup_target_debug): Update.
5500
5501 2014-07-30  Yao Qi  <yao@codesourcery.com>
5502
5503         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5504         comments.
5505         * parse.c (exp_iterate): Update comments.
5506
5507 2014-07-30  Gary Benson  <gbenson@redhat.com>
5508
5509         * common/common-defs.h: New file.
5510         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5511         * defs.h: Include common-defs.h.
5512         Do not include config.h or build-gnulib/config.h.
5513
5514 2014-07-30  Gary Benson  <gbenson@redhat.com>
5515
5516         * common/common-utils.h: Do not include config.h.
5517         * nat/linux-btrace.h: Likewise.
5518
5519 2014-07-30  Gary Benson  <gbenson@redhat.com>
5520
5521         * btrace.c: Include defs.h.
5522         * common/ptid.c: Include defs.h or server.h as appropriate.
5523         * nat/mips-linux-watch.c: Likewise.
5524
5525 2014-07-29  Tom Tromey  <tromey@redhat.com>
5526
5527         * target.c (target_is_pushed): Simplify.
5528
5529 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
5530
5531         GDB 7.8 released.
5532
5533 2014-07-29  Yao Qi  <yao@codesourcery.com>
5534
5535         PR gdb/17206
5536         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5537
5538 2014-07-28  Doug Evans  <xdje42@gmail.com>
5539
5540         PR guile/17203
5541         * guile/scm-param.c (pascm_parameter_defined_p): New function.
5542         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
5543         parameters.
5544
5545 2014-07-28  Will Newton  <will.newton@linaro.org>
5546
5547         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5548         (THUMB2_SET_R7_SIGRETURN2): Likewise.
5549         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5550         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5551         (THUMB2_EABI_SYSCALL): Likewise.
5552         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5553         struct tramp_frame.
5554         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5555         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5556
5557 2014-07-27  Doug Evans  <xdje42@gmail.com>
5558
5559         * guile/scm-param.c (pascm_print_param_smob): Fix output.
5560
5561 2014-07-27  Doug Evans  <xdje42@gmail.com>
5562
5563         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5564
5565 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
5566             Doug Evans  <xdje42@gmail.com>
5567
5568         PR guile/17146
5569         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5570         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5571         * configure.ac: Try to use guild to compile an scm file, if it fails
5572         then disable guile support.
5573         * configure: Regenerate.
5574         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5575         GUILE_FILE_LIST.
5576         (GUILE_COMPILED_FILES): New variable.
5577         (GUILE_FILES) Update.
5578         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5579         (stamp-guile): Compile scm files.
5580         * guile/guile.c (boot_guile_support): New function.
5581         (standard_throw_args_p): New function.
5582         (print_standard_throw_error, print_throw_error): New functions.
5583         (handle_boot_error): New function.
5584         (initialize_scheme_side): Rewrite to call boot_guile_support.
5585         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
5586         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5587
5588 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
5589             Doug Evans  <xdje42@gmail.com>
5590
5591         PR guile/17146
5592         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5593         * guile/lib/gdb/support.scm: New file.
5594         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5595         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5596         All uses updated.
5597         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5598         All uses updated.
5599         (%assert-type): Ditto, and renamed to assert-type.
5600         (%exception-print-style): Delete.
5601
5602 2014-07-26  Doug Evans  <xdje42@gmail.com>
5603
5604         PR build/17105
5605         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5606         * configure: Regenerate.
5607         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5608         PYTHON_FILES.
5609         (PYTHON_FILES): New variable.
5610         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5611         (GUILE_FILES): New variable.
5612         (stamp-python, install-python, uninstall-python): Handle empty
5613         file list.
5614         (stamp-guile, install-guile, uninstall-guile): Ditto.
5615
5616 2014-07-26  Doug Evans  <xdje42@gmail.com>
5617
5618         PR guile/17177
5619         * guile/lib/gdb.scm (pretty-printers): Export.
5620         (set-pretty-printers!): Export.
5621         * guile/lib/gdb/printing.scm (gdb module): Update.
5622         (prepend-pretty-printer!, append-pretty-printer!): Update.
5623         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5624         (pretty_printer_list_var): Delete.
5625         (pretty_printer_list): New static global.
5626         (gdbscm_pretty_printers): New function.
5627         (gdbscm_set_pretty_printers_x): New function.
5628         (ppscm_find_pretty_printer_from_gdb): Update.
5629         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5630         (gdbscm_initialize_pretty_printers): Update.
5631
5632 2014-07-26  Doug Evans  <xdje42@gmail.com>
5633
5634         PR 17185
5635         * configure.ac: Add check for header gc/gc.h.
5636         Add check for function setenv.
5637         * configure: Regenerate.
5638         * config.in: Regenerate.
5639         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5640
5641 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
5642
5643         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5644         variation in gdbarch matching.
5645
5646 2014-07-25  Tom Tromey  <tromey@redhat.com>
5647
5648         * exec.c (using_exec_ops): Remove.
5649         (exec_close_1): Update.  Remove extraneous block, reindent.
5650         (add_target_sections): Use target_is_pushed.
5651
5652 2014-07-25  Pedro Alves  <palves@redhat.com>
5653
5654         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5655         * monitor.c (monitor_create_inferior): Likewise.
5656         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5657         * remote-sim.c (gdbsim_create_inferior): Likewise.
5658         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5659         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5660         * windows-nat.c (do_initial_windows_stuff): Likewise.
5661
5662 2014-07-25  Pedro Alves  <palves@redhat.com>
5663
5664         * NEWS: Mention signal passing and "signal" command changes.
5665         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5666         comment.
5667         * breakpoint.c (until_break_command): Adjust clear_proceed_status
5668         call.
5669         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5670         * infcmd.c (proceed_thread_callback, continue_1, step_once)
5671         (jump_command): Adjust clear_proceed_status call.
5672         (signal_command): Warn if other thread that are resumed have
5673         signals that will be delivered.  Adjust clear_proceed_status call.
5674         (until_next_command, finish_command)
5675         (proceed_after_attach_callback, attach_command_post_wait)
5676         (attach_command): Adjust clear_proceed_status call.
5677         * infrun.c (proceed_after_vfork_done): Likewise.
5678         (proceed_after_attach_callback): Adjust comment.
5679         (clear_proceed_status_thread): Clear stop_signal if not in pass
5680         state.
5681         (clear_proceed_status_callback): Delete.
5682         (clear_proceed_status): New 'step' parameter.  Only clear the
5683         proceed status of threads the command being prepared is about to
5684         resume.
5685         (proceed): If passed in an explicit signal, override stop_signal
5686         with it.  Don't pass the last stop signal to the thread we're
5687         resuming.
5688         (init_wait_for_inferior): Adjust clear_proceed_status call.
5689         (switch_back_to_stepped_thread): Clear the signal if it should not
5690         be passed.
5691         * infrun.h (clear_proceed_status): New 'step' parameter.
5692         (user_visible_resume_ptid): Add comment.
5693         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5694         signal is in pass state.
5695         * remote.c (append_pending_thread_resumptions): Likewise.
5696         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5697
5698 2014-07-25  Tom Tromey  <tromey@redhat.com>
5699
5700         * target.h (target_stopped_data_address)
5701         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
5702         parentheses.
5703
5704 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
5705
5706         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5707         comments.
5708         (avr_pointer_to_address): Likewise.
5709
5710 2014-07-24  Tom Tromey  <tromey@redhat.com>
5711
5712         * monitor.c (compile_pattern): Update.
5713         * target.h (struct target_ops) <to_shortname, to_longname,
5714         to_doc>: Now const.
5715
5716 2014-07-24  Tom Tromey  <tromey@redhat.com>
5717
5718         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5719         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5720         (add_info_alias, add_com): Make "doc" const.
5721         (print_doc_line): Make "str" const.
5722         (delete_cmd): Update.
5723         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5724         (print_doc_line): Update.
5725         * cli/cli-script.c (document_command): Update.
5726         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5727         (add_com, add_info, add_info_alias): Update.
5728         * guile/scm-cmd.c (cmdscm_destroyer): Update.
5729         * python/py-cmd.c (cmdpy_destroyer): Update.
5730
5731 2014-07-24  Tom Tromey  <tromey@redhat.com>
5732
5733         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5734         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5735         (help_cmd_list): Constify.
5736         (lookup_cmd): Update.
5737         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5738         const.
5739         (help_cmd_list, apropos_cmd): Update.
5740         * cli/cli-script.c (show_user): Update.
5741         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5742         * cli/cli-setshow.h (cmd_show_list): Update.
5743         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5744         (cmd_show_list): Update.
5745         * guile/scm-cmd.c (cmdscm_destroyer): Update.
5746         * python/py-cmd.c (cmdpy_destroyer): Update.
5747
5748 2014-07-24  Tom Tromey  <tromey@redhat.com>
5749
5750         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5751         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5752         const.
5753         * command.h (deprecate_cmd): Update.
5754         * maint.c (maintenance_do_deprecate): Add casts.
5755
5756 2014-07-24  Tom Tromey  <tromey@redhat.com>
5757
5758         * cli/cli-decode.c (help_cmd): Make parameter "const".
5759         * cli/cli-decode.h (help_cmd): Update.
5760
5761 2014-07-24  Tom Tromey  <tromey@redhat.com>
5762
5763         * stack.c (up_silently_base, down_silently_base): Make argument
5764         const.
5765
5766 2014-07-24  Tom Tromey  <tromey@redhat.com>
5767
5768         * solib.c (solib_add): Make "pattern" const.
5769         * solib.h (solib_add): Update.
5770
5771 2014-07-24  Tom Tromey  <tromey@redhat.com>
5772
5773         * remote.c (remote_serial_open, print_packet, putpkt)
5774         (putpkt_binary): Constify.
5775         * remote.h (putpkt): Update.
5776
5777 2014-07-24  Tom Tromey  <tromey@redhat.com>
5778
5779         * monitor.c (monitor_open): Make "args" const.
5780         * monitor.h (monitor_open): Update.
5781
5782 2014-07-24  Tom Tromey  <tromey@redhat.com>
5783
5784         * maint.c (match_bfd_flags): Make "string" const.
5785         (print_bfd_section_info): Remove casts.
5786         (print_objfile_section_info): Make "string" const.
5787
5788 2014-07-24  Tom Tromey  <tromey@redhat.com>
5789
5790         * inf-child.c (inf_child_open_target): Make "arg" const.
5791         * inf-child.h (inf_child_open_target): Update.
5792
5793 2014-07-24  Tom Tromey  <tromey@redhat.com>
5794
5795         * environ.c (unset_in_environ): Make "var" const.
5796         * environ.h (unset_in_environ): Update.
5797
5798 2014-07-24  Tom Tromey  <tromey@redhat.com>
5799
5800         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5801         Make "cmd" const.
5802         (scan_filename_with_cleanup): Likewise.
5803         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5804         Make arguments const.
5805         (restore_command): Update.
5806
5807 2014-07-24  Pedro Alves  <palves@redhat.com>
5808
5809         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5810
5811 2014-07-24  Tom Tromey  <tromey@redhat.com>
5812             Gary Benson  <gbenson@redhat.com>
5813
5814         * nat/linux-ptrace.c (additional_flags): New global.
5815         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5816         additional_flags; don't check GDBSERVER.
5817         (linux_ptrace_set_additional_flags): New function.
5818         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5819         Declare.
5820         * linux-nat.c (_initialize_linux_nat): Call
5821         linux_ptrace_set_additional_flags.
5822
5823 2014-07-24  Tom Tromey  <tromey@redhat.com>
5824
5825         * make-target-delegates (munge_type, write_debugmethod): New
5826         functions.
5827         (debug_names): New global.
5828         ($TARGET_DEBUG_PRINTER): New global.
5829         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5830         name.
5831         Write debug methods.  Generate init_debug_target.
5832         * target-debug.h: New file.
5833         * target-delegates.c: Rebuild.
5834         * target.c: Include target-debug.h.
5835         (debug_target): Hoist definition.
5836         (target_kill, target_get_section_table, target_memory_map)
5837         (target_flash_erase, target_flash_done, target_detach)
5838         (target_disconnect, target_wait, target_resume)
5839         (target_pass_signals, target_program_signals, target_follow_fork)
5840         (target_mourn_inferior, target_search_memory)
5841         (target_thread_address_space, target_close)
5842         (target_find_new_threads, target_core_of_thread)
5843         (target_verify_memory, target_insert_mask_watchpoint)
5844         (target_remove_mask_watchpoint): Remove targetdebug code.
5845         (debug_to_post_attach, debug_to_prepare_to_store)
5846         (debug_to_files_info, debug_to_insert_breakpoint)
5847         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5848         (debug_to_region_ok_for_hw_watchpoint)
5849         (debug_to_can_accel_watchpoint_condition)
5850         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5851         (debug_to_watchpoint_addr_within_range)
5852         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5853         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5854         (debug_to_terminal_init, debug_to_terminal_inferior)
5855         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5856         (debug_to_terminal_save_ours, debug_to_terminal_info)
5857         (debug_to_load, debug_to_post_startup_inferior)
5858         (debug_to_insert_fork_catchpoint)
5859         (debug_to_remove_fork_catchpoint)
5860         (debug_to_insert_vfork_catchpoint)
5861         (debug_to_remove_vfork_catchpoint)
5862         (debug_to_insert_exec_catchpoint)
5863         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5864         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5865         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5866         (setup_target_debug): Call init_debug_target.
5867         * target.h (TARGET_DEBUG_PRINTER): New macro.
5868         (struct target_ops) <to_resume, to_wait, to_pass_signals,
5869         to_program_signals>: Use TARGET_DEBUG_PRINTER.
5870
5871 2014-07-24  Gary Benson  <gbenson@redhat.com>
5872
5873         * exceptions.h (throw_vfatal): Renamed to...
5874         (throw_vquit): New declaration.
5875         (throw_quit): Likewise.
5876         * exceptions.c (throw_vfatal): Renamed to...
5877         (throw_vquit): New function.
5878         (throw_quit): Likewise.
5879         (throw_error): Call throw_verror rather than throw_it.
5880         * utils.h (vfatal): Removed.
5881         (fatal): Likewise.
5882         * utils.c (vfatal): Removed.
5883         (fatal): Likewise.
5884         (internal_verror): Replaced call to fatal with call to throw_quit.
5885         (quit): Replaced calls to fatal with calls to throw_quit.
5886
5887 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
5888
5889         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5890         target_read_code.
5891
5892 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
5893
5894         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5895         less than zero in conditional expression.
5896
5897 2014-07-23  Tom Tromey  <tromey@redhat.com>
5898
5899         * make-target-delegates ($ARGS_PART): Match trailing close paren.
5900         ($INTRO_PART): Don't match whitespace.
5901         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
5902         argument matching.
5903         ($METHOD): Add $METHOD_TRAILER.
5904         (trim): Rewrite.
5905         (scan_target_h): New sub.
5906         Change main loop not to collect state.
5907         * target-delegates.c: Rebuild.
5908
5909 2014-07-23  Gary Benson  <gbenson@redhat.com>
5910
5911         * cp-support.c (gdb_demangle): Fix build on systems without
5912         sigaltstack.
5913
5914 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
5915
5916         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5917         for reference entry value target data value.
5918
5919 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
5920
5921         * stack.c (read_frame_arg): Verify value_optimized_out before calling
5922         value_available_contents_eq.
5923
5924 2014-07-22  Pedro Alves  <palves@redhat.com>
5925
5926         * value.c (allocate_optimized_out_value): Don't mark value as
5927         non-lazy.
5928
5929 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
5930
5931         * MAINTAINERS (Write After Approval): Update my email address.
5932
5933 2014-07-20  Doug Evans  <dje@google.com>
5934
5935         PR server/17147
5936         * remote.c (putpkt_binary): Add text to error message.
5937
5938 2014-07-20  Yao Qi  <yao@codesourcery.com>
5939
5940         * eval.c: Remove "Chill" from comments.
5941         * gdbtypes.h: Likewise.
5942         * symtab.h: Likewise.
5943
5944 2014-07-20  Yao Qi  <yao@codesourcery.com>
5945
5946         * std-operator.def: Update comments to TERNOP_SLICE.
5947
5948 2014-07-20  Yao Qi  <yao@codesourcery.com>
5949
5950         * std-operator.def: Remove BINOP_RANGE.
5951         * breakpoint.c (watchpoint_exp_is_const): Update.
5952         * expprint.c (dump_subexp_body_standard): Likewise.
5953         * eval.c (init_array_element): Remove dead code.
5954         (evaluate_subexp_standard): Likewise.
5955
5956 2014-07-20  Yao Qi  <yao@codesourcery.com>
5957
5958         * std-operator.def: Remove BINOP_IN.
5959         * breakpoint.c (watchpoint_exp_is_const): Update.
5960         * eval.c (evaluate_subexp_standard): Likewise.
5961         * expprint.c (dump_subexp_body_standard): Likewise.
5962
5963 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
5964
5965         * microblaze-tdep.c (microblaze_register_names): Add
5966         the rshr and rslr register names.
5967         (microblaze_gdbarch_init): Use of tdesc_has_registers.
5968         Use of tdesc_find_feature. Use of tdesc_data_alloc.
5969         Use of tdesc_numbered_register. Use of
5970         microblaze_register_g_packet_guesses. Use of
5971         tdesc_use_registers. Use of set_gdbarch_register_type.
5972         (microblaze_register_g_packet_guesses): New.
5973         * microblaze-tdep.h (microblaze_reg_num): Add
5974         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5975         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5976         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5977         * features/microblaze-core.xml: New file.
5978         * features/microblaze-stack-protect.xml: New file.
5979         * features/microblaze-with-stack-protect.c: New file.
5980         * features/microblaze-with-stack-protect.xml: New file.
5981         * features/microblaze.xml: New file.
5982         * features/microblaze.c: New file.
5983         * features/Makefile (microblaze-with-stack-protect): Add
5984         microblaze-with-stack-protect microblaze and microblaze-expedite.
5985         * regformats/microblaze-with-stack-protect.dat: New file.
5986         * regformats/microblaze.dat: New file.
5987         * doc/gdb.texinfo (MicroBlaze Features): Added.
5988
5989 2014-07-18  Tom Tromey  <tromey@redhat.com>
5990
5991         * exec.c (exec_ops): Now static.
5992         * exec.h (exec_ops): Don't declare.
5993
5994 2014-07-18  Tom Tromey  <tromey@redhat.com>
5995
5996         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5997         to find_target_beneath.
5998         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5999         find_target_beneath.
6000         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
6001
6002 2014-07-18  Tom Tromey  <tromey@redhat.com>
6003
6004         PR gdb/17130:
6005         * utils.c (quit): Use target_supports_terminal_ours.
6006         * target.h (target_supports_terminal_ours): Declare.
6007         * target.c (target_supports_delete_record): Don't check
6008         to_delete_record against NULL.
6009         (target_supports_terminal_ours): New function.
6010
6011 2014-07-18  Tom Tromey  <tromey@redhat.com>
6012
6013         PR gdb/17130:
6014         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
6015         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
6016         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
6017         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
6018         * windows-nat.c (windows_xfer_partial): Always delegate.
6019         * record-btrace.c (record_btrace_xfer_partial): Simplify
6020         delegation.
6021         (record_btrace_fetch_registers, record_btrace_store_registers)
6022         (record_btrace_prepare_to_store, record_btrace_resume)
6023         (record_btrace_wait, record_btrace_find_new_threads)
6024         (record_btrace_thread_alive): Likewise.
6025         * procfs.c (procfs_xfer_partial): Always delegate.
6026         * corelow.c (core_xfer_partial): Always delegate.
6027         * sol-thread.c (sol_find_new_threads): Simplify delegation.
6028
6029 2014-07-18  Tom Tromey  <tromey@redhat.com>
6030
6031         * exec.c (exec_make_note_section): Move earlier.
6032
6033 2014-07-17  Doug Evans  <dje@google.com>
6034
6035         PR gdb/17170
6036         * maint.c (count_symtabs_and_blocks): Handle NULL
6037         current_program_space.
6038         (report_command_stats): Check global enabled flag in addition to
6039         recorded enabled flag.
6040         (make_command_stats_cleanup): Handle msg_type == 0, startup.
6041
6042 2014-07-16  Pedro Alves  <palves@redhat.com>
6043
6044         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
6045
6046 2014-07-16  Tom Tromey  <tromey@redhat.com>
6047
6048         * target.h (struct target_ops) <to_delete_record>: Reformat
6049         comment.
6050
6051 2014-07-16  Tom Tromey  <tromey@redhat.com>
6052
6053         * target-delegates.c: Rebuild.
6054
6055 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
6056
6057         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
6058         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
6059         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
6060         (avr_pointer_to_address): Likewise.
6061         (avr_address_class_type_flags): New function.
6062         (avr_address_class_type_flags_to_name): Likewise.
6063         (avr_address_class_name_to_type_flags): Likewise.
6064         (avr_gdbarch_init): Set address_class_type_flags,
6065         address_class_type_flags_to_name and
6066         address_class_name_to_type_flags.
6067
6068 2014-07-15  Pedro Alves  <palves@redhat.com>
6069
6070         * linux-nat.c (kill_callback): Save errno and work with saved
6071         copy.
6072
6073 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
6074
6075         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
6076
6077 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
6078
6079         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
6080         breakpoint support correctly.
6081
6082 2014-07-14  Pedro Alves  <palves@redhat.com>
6083
6084         * utils.c (prompt_for_continue): Call target_terminal_ours.
6085
6086 2014-07-14  Pedro Alves  <palves@redhat.com>
6087
6088         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
6089         catch_errors.  Don't re-enable stdin or notify observers where,
6090         and rethrow error.
6091         (fetch_inferior_event_wrapper): Delete.
6092
6093 2014-07-14  Pedro Alves  <palves@redhat.com>
6094
6095         PR gdb/17072
6096         * top.c: Include "inf-loop.h".
6097         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
6098         field.
6099         (gdb_readline_wrapper_cleanup): Make the target async again, if it
6100         was async before.
6101         (gdb_readline_wrapper): Store whether the target is async, and
6102         make it sync.
6103
6104 2014-07-14  Pedro Alves  <palves@redhat.com>
6105
6106         PR gdb/17072
6107         * top.c (gdb_readline_wrapper_line): Tweak comment.
6108         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
6109         the input handler callback.
6110
6111 2014-07-14  Pedro Alves  <palves@redhat.com>
6112
6113         PR gdb/17072
6114         * main.c: Include event-top.h.
6115         (handle_command_errors): New function.
6116         (catch_command_errors, catch_command_errors_const): Use it.
6117
6118 2014-07-14  Pedro Alves  <palves@redhat.com>
6119
6120         * exceptions.c (catch_command_errors, catch_command_errors_const):
6121         Moved to main.c.
6122         * exceptions.h (catch_command_errors_ftype)
6123         (catch_command_errors_const_ftype): Moved to main.c.
6124         (catch_command_errors, catch_command_errors_const): Delete
6125         declarations.
6126         * main.c (catch_command_errors_ftype)
6127         (catch_command_errors_const_ftype): Moved here from exceptions.h.
6128         (catch_command_errors, catch_command_errors_const)): Moved here
6129         from exceptions.c and make static.
6130
6131 2014-07-14  Pedro Alves  <palves@redhat.com>
6132
6133         * exceptions.c (print_any_exception): Delete.
6134         (catch_exceptions_with_msg): Use exception_print instead of
6135         print_any_exception.
6136         (catch_errors): Use exception_fprintf instead of
6137         print_any_exception.
6138         (catch_command_errors, catch_command_errors_const): Use
6139         exception_print instead of print_any_exception.
6140
6141 2014-07-14  Pedro Alves  <palves@redhat.com>
6142
6143         * infcall.c (run_inferior_call): Set 'sync_execution' while
6144         running the inferior call.
6145
6146 2014-07-14  Pedro Alves  <palves@redhat.com>
6147
6148         * value.c (value_contents_equal): Delete function.
6149         * value.h (value_contents_equal): Delete declaration.
6150
6151 2014-07-14  Tom Tromey  <tromey@redhat.com>
6152
6153         PR exp/17106:
6154         * gdbtypes.c (is_dynamic_type_internal): New function, from
6155         is_dynamic_type.
6156         (is_dynamic_type): Rewrite.
6157         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
6158         (resolve_dynamic_struct): Likewise.
6159         (resolve_dynamic_type_internal): New function, from
6160         resolve_dynamic_type.
6161         (resolve_dynamic_type): Rewrite.
6162
6163 2014-07-14  Tom Tromey  <tromey@redhat.com>
6164
6165         * target.c (target_require_runnable): Also check record_stratum.
6166         Update comment.
6167
6168 2014-07-11  Yao Qi  <yao@codesourcery.com>
6169
6170         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
6171         thumb_instruction_restores_sp return true.
6172
6173 2014-07-11  Yao Qi  <yao@codesourcery.com>
6174
6175         * arm-tdep.c (thumb_instruction_restores_sp): New function.
6176         (thumb_in_function_epilogue_p): Call
6177         thumb_instruction_restores_sp.
6178
6179 2014-07-11  Yao Qi  <yao@codesourcery.com>
6180
6181         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6182         'add sp, #imm'.
6183         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6184
6185 2014-07-11  Gary Benson  <gbenson@redhat.com>
6186
6187         * amd64-linux-nat.c (gdbcore.h): Remove include.
6188         (regset.h): Likewise.
6189         (nat/linux-btrace.h): Likewise.
6190         (btrace.h): Likewise.
6191         (gdb_assert.h): Likewise.
6192         (string.h): Likewise.
6193         (sys/uio.h): Likewise.
6194         (sys/debugreg.h): Likewise.
6195         (sys/syscall.h): Likewise.
6196         (sys/procfs.h): Likewise.
6197         (sys/user.h): Likewise.
6198         (asm/ptrace.h): Likewise.
6199         (i386-nat.h): Likewise.
6200         * i386-linux-nat.c (i386-nat.h): Likewise.
6201         (regset.h): Likewise.
6202         (target.h): Likewise.
6203         (linux-nat.h): Likewise.
6204         (nat/linux-btrace.h): Likewise.
6205         (btrace.h): Likewise.
6206         (gdb_assert.h): Likewise.
6207         (string.h): Likewise.
6208         (sys/uio.h): Likewise.
6209         (sys/user.h): Likewise.
6210         (sys/procfs.h): Likewise.
6211         (sys/reg.h): Likewise.
6212         (sys/debugreg.h): Likewise.
6213         (ORIG_EAX): Remove definition.
6214
6215 2014-07-11  Gary Benson  <gbenson@redhat.com>
6216
6217         * i386-linux-nat.h: New file.
6218         * x86-linux-nat.h: Likewise.
6219         * x86-linux-nat.c: Likewise.
6220         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6221         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6222         * config/i386/linux64.mh (NATDEPFILES): Likewise.
6223         * amd64-linux-nat.c (x86-linux-nat.h): New include.
6224         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6225         (PTRACE_SETREGSET): Likewise.
6226         (arch_lwp_info): Now in x86-linux-nat.c.
6227         (have_ptrace_getregset): Now in x86-linux-nat.h.
6228         (x86_linux_dr_get): Now in x86-linux-nat.c.
6229         (x86_linux_dr_set): Likewise.
6230         (x86_linux_dr_get_addr): Likewise.
6231         (x86_linux_dr_get_control): Likewise.
6232         (x86_linux_dr_get_status): Likewise.
6233         (update_debug_registers_callback): Likewise.
6234         (x86_linux_dr_set_control): Likewise.
6235         (x86_linux_dr_set_addr): Likewise.
6236         (x86_linux_prepare_to_resume): Likewise.
6237         (x86_linux_new_thread): Likewise.
6238         (x86_linux_new_fork): Likewise.
6239         (x86_linux_get_thread_area): Likewise.
6240         (super_post_startup_inferior): Likewise.
6241         (x86_linux_child_post_startup_inferior): Likewise.
6242         (AMD64_LINUX_USER64_CS): Likewise.
6243         (AMD64_LINUX_X32_DS): Likewise.
6244         (x86_linux_read_description): Likewise.
6245         (x86_linux_enable_btrace): Likewise.
6246         (x86_linux_disable_btrace): Likewise.
6247         (x86_linux_teardown_btrace): Likewise.
6248         (x86_linux_read_btrace): Likewise.
6249         (x86_linux_create_target): Likewise.
6250         (x86_linux_add_target): Likewise.
6251         * i386-linux-nat.c (x86-linux-nat.h): New include.
6252         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6253         (PTRACE_SETREGSET): Likewise.
6254         (arch_lwp_info): Now in x86-linux-nat.c.
6255         (have_ptrace_getregset): Now in x86-linux-nat.h.
6256         (x86_linux_dr_get): Now in x86-linux-nat.c.
6257         (x86_linux_dr_set): Likewise.
6258         (x86_linux_dr_get_addr): Likewise.
6259         (x86_linux_dr_get_control): Likewise.
6260         (x86_linux_dr_get_status): Likewise.
6261         (update_debug_registers_callback): Likewise.
6262         (x86_linux_dr_set_control): Likewise.
6263         (x86_linux_dr_set_addr): Likewise.
6264         (x86_linux_prepare_to_resume): Likewise.
6265         (x86_linux_new_thread): Likewise.
6266         (x86_linux_new_fork): Likewise.
6267         (x86_linux_get_thread_area): Likewise.
6268         (super_post_startup_inferior): Likewise.
6269         (x86_linux_child_post_startup_inferior): Likewise.
6270         (AMD64_LINUX_USER64_CS): Likewise.
6271         (AMD64_LINUX_X32_DS): Likewise.
6272         (x86_linux_read_description): Likewise.
6273         (x86_linux_enable_btrace): Likewise.
6274         (x86_linux_disable_btrace): Likewise.
6275         (x86_linux_teardown_btrace): Likewise.
6276         (x86_linux_read_btrace): Likewise.
6277         (x86_linux_create_target): Likewise.
6278         (x86_linux_add_target): Likewise.
6279
6280 2014-07-11  Gary Benson  <gbenson@redhat.com>
6281
6282         * amd64-linux-nat.c: Comment and whitespace changes.
6283         * i386-linux-nat.c: Comment and whitespace changes.
6284
6285 2014-07-11  Gary Benson  <gbenson@redhat.com>
6286
6287         * amd64-linux-nat.c (x86_linux_create_target): New function.
6288         (x86_linux_add_target): Likewise.
6289         (_initialize_amd64_linux_nat): Delegate to the above new functions.
6290         * i386-linux-nat.c (x86_linux_create_target): New function.
6291         (x86_linux_add_target): Likewise.
6292         (_initialize_i386_linux_nat): Delegate to the above new functions.
6293
6294 2014-07-11  Gary Benson  <gbenson@redhat.com>
6295
6296         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6297         (ps_get_thread_area): Delegate to the above in 32-bit mode.
6298         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6299         (ps_get_thread_area): Delegate to the above.
6300
6301 2014-07-11  Gary Benson  <gbenson@redhat.com>
6302
6303         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6304         x86_linux_read_description.  All uses updated.  amd64-specific
6305         code conditionalized.  Conditionalized i386-specific code added.
6306         Redundant cast removed.
6307         * i386-linux-nat.c (i386_linux_read_description): Renamed to
6308         x86_linux_read_description.  All uses updated.  i386-specific
6309         code conditionalized.  Conditionalized amd64-specific code added.
6310         One sizeof replaced with the actual type it is describing.
6311
6312 2014-07-11  Gary Benson  <gbenson@redhat.com>
6313
6314         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6315         x86_linux_dr_get.  All uses updated.
6316         (amd64_linux_dr_set): Renamed to
6317         x86_linux_dr_set.  All uses updated.
6318         (amd64_linux_dr_get_addr): Renamed to
6319         x86_linux_dr_get_addr.  All uses updated.
6320         (amd64_linux_dr_get_control): Renamed to
6321         x86_linux_dr_get_control.  All uses updated.
6322         (amd64_linux_dr_get_status): Renamed to
6323         x86_linux_dr_get_status.  All uses updated.
6324         (amd64_linux_dr_set_control): Renamed to
6325         x86_linux_dr_set_control.  All uses updated.
6326         (amd64_linux_dr_set_addr): Renamed to
6327         x86_linux_dr_set_addr.  All uses updated.
6328         (amd64_linux_prepare_to_resume): Renamed to
6329         x86_linux_prepare_to_resume.  All uses updated.
6330         (amd64_linux_new_thread): Renamed to
6331         x86_linux_new_thread.  All uses updated.
6332         (amd64_linux_new_fork): Renamed to
6333         x86_linux_new_fork.  All uses updated.
6334         (amd64_linux_child_post_startup_inferior): Renamed to
6335         x86_linux_child_post_startup_inferior.  All uses updated.
6336         (amd64_linux_enable_btrace): Renamed to
6337         x86_linux_enable_btrace.  All uses updated.
6338         (amd64_linux_disable_btrace): Renamed to
6339         x86_linux_disable_btrace.  All uses updated.
6340         (amd64_linux_teardown_btrace): Renamed to
6341         x86_linux_teardown_btrace.  All uses updated.
6342         (amd64_linux_read_btrace): Renamed to
6343         x86_linux_read_btrace.  All uses updated.
6344         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6345         x86_linux_dr_get.  All uses updated.
6346         (i386_linux_dr_set): Renamed to
6347         x86_linux_dr_set.  All uses updated.
6348         (i386_linux_dr_get_addr): Renamed to
6349         x86_linux_dr_get_addr.  All uses updated.
6350         (i386_linux_dr_get_control): Renamed to
6351         x86_linux_dr_get_control.  All uses updated.
6352         (i386_linux_dr_get_status): Renamed to
6353         x86_linux_dr_get_status.  All uses updated.
6354         (i386_linux_dr_set_control): Renamed to
6355         x86_linux_dr_set_control.  All uses updated.
6356         (i386_linux_dr_set_addr): Renamed to
6357         x86_linux_dr_set_addr.  All uses updated.
6358         (i386_linux_prepare_to_resume): Renamed to
6359         x86_linux_prepare_to_resume.  All uses updated.
6360         (i386_linux_new_thread): Renamed to
6361         x86_linux_new_thread.  All uses updated.
6362         (i386_linux_new_fork): Renamed to
6363         x86_linux_new_fork.  All uses updated.
6364         (i386_linux_child_post_startup_inferior): Renamed to
6365         x86_linux_child_post_startup_inferior.  All uses updated.
6366         (i386_linux_enable_btrace): Renamed to
6367         x86_linux_enable_btrace.  All uses updated.
6368         (i386_linux_disable_btrace): Renamed to
6369         x86_linux_disable_btrace.  All uses updated.
6370         (i386_linux_teardown_btrace): Renamed to
6371         x86_linux_teardown_btrace.  All uses updated.
6372         (i386_linux_read_btrace): Renamed to
6373         x86_linux_read_btrace.  All uses updated.
6374
6375 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
6376
6377         * remote.c (extended_remote_post_attach): New function.
6378         (init_extended_remote_ops): Install it as to_post_attach method.
6379
6380 2014-07-09  Pedro Alves  <palves@redhat.com>
6381
6382         * infcmd.c (attach_command_post_wait): Don't call
6383         target_terminal_inferior here.
6384         (attach_command): Call it here instead.
6385
6386 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
6387
6388         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6389         field.
6390         * c-varobj.c (c_is_path_expr_parent): New function, moved core
6391         from varobj.c, with additional checks.
6392         (c_varobj_ops): Fill in is_path_expr_parent field.
6393         (cplus_varobj_ops): Fill in is_path_expr_parent field.
6394         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6395         field.
6396         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6397         ops method.
6398         (varobj_default_is_path_expr_parent): New function.
6399         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6400         (varobj_default_is_path_expr_parent): Declare new function.
6401
6402 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6403
6404         * infcmd.c (finish_backward): Turn internal error into normal error.
6405
6406 2014-07-07  Pedro Alves  <palves@redhat.com>
6407
6408         PR gdb/17096
6409         * remote.c (async_handle_remote_sigint)
6410         (async_handle_remote_sigint_twice): Call
6411         gdb_call_async_signal_handler instead of
6412         mark_async_signal_handler.
6413
6414 2014-07-07  Tom Tromey  <tromey@redhat.com>
6415
6416         * target-delegates.c: Rebuild.
6417         * target.c (target_info_record): Remove.
6418         * record.c (info_record_command): Unconditionally call
6419         to_info_record.
6420         * target.h (struct target_ops) <to_info_record>: Use
6421         TARGET_DEFAULT_IGNORE.
6422         (target_info_record): Remove.
6423
6424 2014-07-07  Tom Tromey  <tromey@redhat.com>
6425
6426         * target.h (struct target_ops) <to_get_thread_local_address>: Use
6427         TARGET_DEFAULT_NORETURN.
6428         * target.c (generic_tls_error): New function.
6429         (target_translate_tls_address): Don't search target stack.
6430         * target-delegates.c: Rebuild.
6431         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6432         stack.
6433         * linux-thread-db.c (thread_db_get_thread_local_address):
6434         Unconditionally call beneath target.
6435
6436 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
6437
6438         * cli/cli-logging.c (pop_output_files): Assign targerr to
6439         gdb_stdtargerr.
6440
6441 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
6442
6443         * MAINTAINERS (Write After Approval): Update my email address.
6444
6445 2014-07-02  Gary Benson  <gbenson@redhat.com>
6446
6447         * proc-service.c (ps_xfer_memory): Update comment.
6448         (ps_pstop): Remove unused function.
6449         (ps_pcontinue): Likewise.
6450         (ps_lstop): Likewise.
6451         (ps_lcontinue): Likewise.
6452         (ps_lgetxregsize): Likewise.
6453         (ps_lgetxregs): Likewise.
6454         (ps_lsetxregs): Likewise.
6455         (ps_plog): Likewise.
6456         (ps_ptread): Likewise.
6457         (ps_ptwrite): Likewise.
6458
6459 2014-07-01  Mark Wielaard  <mjw@redhat.com>
6460
6461         * dwarf2read.c (add_array_cv_type): New function.
6462         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6463         (read_tag_volatile_type): Likewise.
6464
6465 2014-07-01  Tom Tromey  <tromey@redhat.com>
6466
6467         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6468         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6469         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6470         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6471         * command.h (cmd_cfunc_ftype): Move earlier.
6472         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6473         (add_com, add_info): Use cmd_cfunc_ftype.
6474
6475 2014-06-30  Tom Tromey  <tromey@redhat.com>
6476
6477         * symtab.c (operator_chars): Make parameters and return type
6478         const.
6479         (file_matches): Make "files" const.
6480         (struct search_symbols_data) <files>: Now const.
6481         (search_symbols): Make "regexp" and "files" parameters const.
6482         Update.
6483         (symtab_symbol_info): Remove cast.
6484         (rbreak_command): Update.
6485         * symtab.h (search_symbols): Update.
6486
6487 2014-06-27  Yao Qi  <yao@codesourcery.com>
6488
6489         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6490         Change parameter type to 'struct thread_info *'.  Caller
6491         updated.
6492         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6493         Update declaration.
6494         * dummy-frame.c (struct dummy_frame_id): New.
6495         (dummy_frame_id_eq): New function.
6496         (struct dummy_frame) <id>: Change its type to 'struct
6497         dummy_frame_id'.
6498         (dummy_frame_push): Add parameter ptid and save it in
6499         dummy_frame_id.
6500         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6501         inferior_ptid.
6502         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6503         to inferior_ptid.
6504         (lookup_dummy_frame): Change parameter type to 'struct
6505         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
6506         instead of frame_id_eq.
6507         (dummy_frame_pop): Add parameter ptid.  Callers updated.
6508         Update comments.  Compose dummy_frame_id and pass it to
6509         lookup_dummy_frame.
6510         (dummy_frame_discard): Add parameter ptid.
6511         (dummy_frame_sniffer): Compose dummy_frame_id and call
6512         dummy_frame_id_eq instead of frame_id_eq.
6513         (fprint_dummy_frames): Print ptid.
6514         * dummy-frame.h: Remove comments.
6515         (dummy_frame_push): Add ptid in declaration.
6516         (dummy_frame_pop, dummy_frame_discard): Likewise.
6517
6518 2014-06-26  Tom Tromey  <tromey@redhat.com>
6519
6520         * cli/cli-cmds.c (error_no_arg): Make "why" const.
6521         * command.h (error_no_arg): Update.
6522
6523 2014-06-26  Tom Tromey  <tromey@redhat.com>
6524
6525         * cli/cli-setshow.c (do_set_command): Make "arg" const.
6526         (do_show_command): Make "arg" const.
6527         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6528
6529 2014-06-26  Tom Tromey  <tromey@redhat.com>
6530
6531         * record-full.c (record_full_get_bookmark): Make "args" const.
6532         (record_full_goto_bookmark): Make "raw_bookmark" const.
6533         * record.c (record_goto): New function.
6534         (cmd_record_goto): Use it.  Now static.
6535         * record.h (record_goto): Declare.
6536         (cmd_record_goto): Remove declaration.
6537         * target-delegates.c: Rebuild.
6538         * target.h (struct target_ops) <to_get_bookmark,
6539         to_goto_bookmark>: Make parameter const.
6540
6541 2014-06-26  Tom Tromey  <tromey@redhat.com>
6542
6543         * defs.h (generic_load): Update.
6544         * m32r-rom.c (m32r_load_gen): Make "filename" const.
6545         * monitor.c (monitor_load): Make "args" const.
6546         * remote-m32r-sdi.c (m32r_load): Make "args" const.
6547         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6548         const.
6549         (mips_load): Make "file" const.
6550         * remote-sim.c (gdbsim_load): Make "args" const.
6551         * remote.c (remote_load): Make "name" const.
6552         * symfile.c (generic_load): Make "args" const.
6553         * target-delegates.c: Rebuild.
6554         * target.c (target_load): Make "arg" const.
6555         (debug_to_load): Make "args" const.
6556         * target.h (struct target_ops) <to_load>: Make parameter const.
6557         (target_load): Update.
6558
6559 2014-06-26  Tom Tromey  <tromey@redhat.com>
6560
6561         PR symtab/16902:
6562         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6563         (dwarf2_physname, read_partial_die)
6564         (guess_partial_die_structure_name, fixup_partial_die)
6565         (guess_full_die_structure_name, anonymous_struct_prefix)
6566         (dwarf2_name): Use per-BFD obstack.
6567
6568 2014-06-26  Yao Qi  <yao@codesourcery.com>
6569
6570         * dummy-frame.c (dummy_frame_sniffer): Move local variables
6571         dummyframe and this_id into inner block below.
6572
6573 2014-06-26  Yao Qi  <yao@codesourcery.com>
6574
6575         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6576         with "signal_pass[0]" in the initialization of signal_pass.
6577
6578 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
6579
6580         * record-btrace.c (record_btrace_generating_corefile)
6581         (record_btrace_prepare_to_generate_core)
6582         (record_btrace_done_generating_core): New.
6583         (record_btrace_xfer_partial, record_btrace_fetch_registers)
6584         (record_btrace_store_registers, record_btrace_prepare_to_store):
6585         Forward request when generating a core file.
6586         (record_btrace_open): Set record_btrace_generating_corefile to zero.
6587         (init_record_btrace_ops): Set to_prepare_to_generate_core and
6588         to_done_generating_core.
6589
6590 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
6591
6592         * target.h (target_ops) <to_prepare_to_generate_core>
6593         <to_done_generating_core>: New.
6594         (target_prepare_to_generate_core, target_done_generating_core): New.
6595         * target.c (target_prepare_to_generate_core)
6596         (target_done_generating_core): New.
6597         * target-delegates.c: Regenerate.
6598         * gcore.c: (write_gcore_file): Rename to ...
6599         (write_gcore_file_1): ...this.
6600         (write_gcore_file): Call target_prepare_to_generate_core
6601         and target_done_generating_core.
6602
6603 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
6604
6605         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6606         * gcore.c (write_gcore_file): Free memory returned from
6607         make_corefile_notes.
6608         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6609         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6610
6611 2014-06-24  Yao Qi  <yao@codesourcery.com>
6612
6613         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6614         (arm_linux_init_abi): Set skip_trampoline_code with
6615         gdbarch_skip_trampoline_code instead of
6616         find_solib_trampoline_target.
6617
6618 2014-06-24  Yao Qi  <yao@codesourcery.com>
6619
6620         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6621         arm_skip_bx_reg returns non-zero.
6622
6623 2014-06-24  Yao Qi  <yao@codesourcery.com>
6624
6625         * arm-tdep.c (arm_skip_bx_reg): New function.
6626         (arm_skip_stub): Call arm_skip_bx_reg.
6627
6628 2014-06-23  Don Breazeal  <donb@codesourcery.com>
6629
6630         * MAINTAINERS: Add myself as write-after-approval maintainer.
6631
6632 2014-06-23  Pedro Alves  <palves@redhat.com>
6633
6634         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6635         DR_CONTROL before setting DR0..DR3.
6636         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6637         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6638         bits of DR_CONTROL related to the debug register slot being
6639         disabled.  If all slots are vacant, clear local slowdown as well,
6640         and assert DR_CONTROL is 0.
6641
6642 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
6643
6644         * python/lib/gdb/command/xmethods.py
6645         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
6646         current progspace only if the string "progspace" matches LOCUS_RE.
6647
6648 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6649
6650         Fix --with-system-readline with readline-6.3 patch 5.
6651         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6652         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6653         types.
6654
6655 2014-06-20  Tom Tromey  <tromey@redhat.com>
6656
6657         * dwarf2read.c (dw2_get_real_path): Use correct type in
6658         OBSTACK_CALLOC.
6659         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6660
6661 2014-06-20  Gary Benson  <gbenson@redhat.com>
6662
6663         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
6664         * common/glibc_thread_db.h: Likewise.
6665         * common/i386-cpuid.h: Likewise.
6666         * common/i386-gcc-cpuid.h: Likewise.
6667         * common/linux-btrace.h: Likewise.
6668         * common/linux-osdata.h: Likewise.
6669         * common/linux-procfs.h: Likewise.
6670         * common/linux-ptrace.h: Likewise.
6671         * common/mips-linux-watch.h: Likewise.
6672         * common/linux-btrace.c: Moved to nat.
6673         * common/linux-osdata.c: Likewise.
6674         * common/linux-procfs.c: Likewise.
6675         * common/linux-ptrace.c: Likewise.
6676         * common/mips-linux-watch.c: Likewise.
6677         * nat/gdb_thread_db.h: Moved from common.
6678         * nat/glibc_thread_db.h: Likewise.
6679         * nat/i386-cpuid.h: Likewise.
6680         * nat/i386-gcc-cpuid.h: Likewise.
6681         * nat/linux-btrace.c: Likewise.
6682         * nat/linux-btrace.h: Likewise.
6683         * nat/linux-osdata.c: Likewise.
6684         * nat/linux-osdata.h: Likewise.
6685         * nat/linux-procfs.c: Likewise.
6686         * nat/linux-procfs.h: Likewise.
6687         * nat/linux-ptrace.c: Likewise.
6688         * nat/linux-ptrace.h: Likewise.
6689         * nat/mips-linux-watch.c: Likewise.
6690         * nat/mips-linux-watch.h: Likewise.
6691         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6692         (object file files): Reordered.
6693         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6694         of glibc_thread_db.h.
6695
6696 2014-06-20  Gary Benson  <gbenson@redhat.com>
6697
6698         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6699         (i386_dr_low_type): Moved to nat/i386-dregs.h.
6700         (i386_dr_low): Likewise.
6701         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6702         (i386_dr_low_set_addr): Likewise.
6703         (i386_dr_low_get_addr): Likewise.
6704         (i386_dr_low_can_set_control): Likewise.
6705         (i386_dr_low_set_control): Likewise.
6706         (i386_dr_low_get_control): Likewise.
6707         (i386_dr_low_get_status): Likewise.
6708         (i386_get_debug_register_length): Likewise.
6709         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6710         (i386_dr_low): Likewise.
6711         * nat/i386-dregs.c (i386-low.h): Remove include.
6712         (i386-nat.h): Likewise.
6713         (nat/i386-dregs.h): New include.
6714         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6715         (i386_dr_low_set_addr): Likewise.
6716         (i386_dr_low_get_addr): Likewise.
6717         (i386_dr_low_can_set_control): Likewise.
6718         (i386_dr_low_set_control): Likewise.
6719         (i386_dr_low_get_control): Likewise.
6720         (i386_dr_low_get_status): Likewise.
6721         (i386_get_debug_register_length): Likewise.
6722         (debug_hw_points): Likewise.
6723
6724 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
6725
6726         * Makefile.in (SFILES): Add d-exp.y.
6727         (YYFILES): Add d-exp.c.
6728         (YYOBJ): Add d-exp.o.
6729         (local-maintainer-clean): Delete d-exp.c.
6730         * d-exp.y: New file.
6731         * d-lang.h (d_parse): New declaration.
6732         (d_error): New declaration.
6733         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6734         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6735         PREC_ORDER operators.
6736         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6737
6738 2014-06-19  Yao Qi  <yao@codesourcery.com>
6739
6740         * gdbthread.h (any_running): Remove the declaration.
6741         * thread.c (any_running): Remove.
6742
6743 2014-06-19  Yao Qi  <yao@codesourcery.com>
6744
6745         * gdbthread.h (struct thread_info) <state>: Change its type to
6746         'enum thread_state'.  Update comments.
6747
6748 2014-06-19  Pedro Alves  <palves@redhat.com>
6749
6750         * gdbthread.h (ALL_THREADS): Delete.
6751         (ALL_NON_EXITED_THREADS): New macro.
6752         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6753         instead of ALL_THREADS.
6754         * infrun.c (find_thread_needs_step_over)
6755         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6756         instead of ALL_THREADS.
6757         * record-btrace.c (record_btrace_open)
6758         (record_btrace_stop_recording, record_btrace_close)
6759         (record_btrace_is_replaying, record_btrace_resume)
6760         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6761         * remote.c (append_pending_thread_resumptions): Likewise.
6762         * thread.c (thread_apply_all_command): Likewise.
6763
6764 2014-06-19  Gary Benson  <gbenson@redhat.com>
6765
6766         * i386-nat.c (i386_stopped_by_watchpoint):
6767         Use i386_dr_stopped_by_watchpoint.
6768         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6769         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6770
6771 2014-06-19  Gary Benson  <gbenson@redhat.com>
6772
6773         * nat/i386-dregs.c: New file.
6774         * Makefile.in (i386-dregs.o): New rule.
6775         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6776         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6777         * config/i386/darwin.mh (NATDEPFILES): Likewise.
6778         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6779         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6780         * config/i386/go32.mh (NATDEPFILES): Likewise.
6781         * config/i386/linux.mh (NATDEPFILES): Likewise.
6782         * config/i386/linux64.mh (NATDEPFILES): Likewise.
6783         * config/i386/mingw.mh (NATDEPFILES): Likewise.
6784         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6785         * i386-nat.h (debug_hw_points): New declaration.
6786         * i386-nat.c (breakpoint.h): Remove include.
6787         (command.h): Likewise.
6788         (target.h): Likewise.
6789         (gdb_assert.h): Likewise.
6790         (debug_hw_points): Made nonstatic.
6791         (debug_printf): Now in i386-dregs.c.
6792         (TARGET_HAS_DR_LEN_8): Likewise.
6793         (DR_CONTROL_SHIFT): Likewise.
6794         (DR_CONTROL_SIZE): Likewise.
6795         (DR_RW_EXECUTE): Likewise.
6796         (DR_RW_WRITE): Likewise.
6797         (DR_RW_READ): Likewise.
6798         (DR_RW_IORW): Likewise.
6799         (DR_LEN_1): Likewise.
6800         (DR_LEN_2): Likewise.
6801         (DR_LEN_4): Likewise.
6802         (DR_LEN_8): Likewise.
6803         (DR_LOCAL_ENABLE_SHIFT): Likewise.
6804         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6805         (DR_ENABLE_SIZE): Likewise.
6806         (DR_LOCAL_SLOWDOWN): Likewise.
6807         (DR_GLOBAL_SLOWDOWN): Likewise.
6808         (DR_CONTROL_RESERVED): Likewise.
6809         (I386_DR_CONTROL_MASK): Likewise.
6810         (I386_DR_VACANT): Likewise.
6811         (I386_DR_LOCAL_ENABLE): Likewise.
6812         (I386_DR_GLOBAL_ENABLE): Likewise.
6813         (I386_DR_DISABLE): Likewise.
6814         (I386_DR_SET_RW_LEN): Likewise.
6815         (I386_DR_GET_RW_LEN): Likewise.
6816         (I386_DR_WATCH_HIT): Likewise.
6817         (i386_wp_op_t): Likewise.
6818         (i386_show_dr): Likewise.
6819         (i386_length_and_rw_bits): Likewise.
6820         (i386_insert_aligned_watchpoint): Likewise.
6821         (i386_remove_aligned_watchpoint): Likewise.
6822         (i386_handle_nonaligned_watchpoint): Likewise.
6823         (i386_update_inferior_debug_regs): Likewise.
6824         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6825         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6826         (i386_region_ok_for_watchpoint):
6827         Use i386_dr_region_ok_for_watchpoint.
6828         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6829
6830 2014-06-19  Gary Benson  <gbenson@redhat.com>
6831
6832         * i386-nat.c (i386_insert_hw_breakpoint): Use
6833         i386_insert_watchpoint.
6834         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6835
6836 2014-06-19  Gary Benson  <gbenson@redhat.com>
6837
6838         * i386-nat.c (i386_dr_show): Renamed to
6839         i386_show_dr and made static.  All uses updated.
6840         (i386_dr_length_and_rw_bits): Renamed to
6841         i386_length_and_rw_bits and made static.
6842         All uses updated.
6843         (i386_dr_insert_aligned_watchpoint): Renamed to
6844         i386_insert_aligned_watchpoint and made static.
6845         All uses updated.
6846         (i386_dr_remove_aligned_watchpoint): Renamed to
6847         i386_remove_aligned_watchpoint and made static.
6848         All uses updated.
6849         (i386_dr_update_inferior_debug_regs): Renamed to
6850         i386_update_inferior_debug_regs and made static.
6851         All uses updated.
6852         * nat/i386-dregs.h (i386_dr_show): Removed.
6853         (i386_dr_length_and_rw_bits): Likewise.
6854         (i386_dr_insert_aligned_watchpoint): Likewise.
6855         (i386_dr_remove_aligned_watchpoint): Likewise.
6856         (i386_dr_update_inferior_debug_regs): Likewise.
6857
6858 2014-06-19  Gary Benson  <gbenson@redhat.com>
6859
6860         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6861         * configure: Regenerate.
6862         * config.in: Likewise.
6863         * main.c (signal.h): New include.
6864         (setup_alternate_signal_stack): New function.
6865         (captured_main): Call the above.
6866         * cp-support.c (signal.h): New include.
6867         (catch_demangler_crashes): New flag.
6868         (SIGJMP_BUF): New define.
6869         (SIGSETJMP): Likewise.
6870         (SIGLONGJMP): Likewise.
6871         (gdb_demangle_jmp_buf): New static global.
6872         (gdb_demangle_attempt_core_dump): Likewise.
6873         (gdb_demangle_signal_handler): New function.
6874         (gdb_demangle): If catch_demangler_crashes is set, install the
6875         above signal handler before calling bfd_demangle, and restore
6876         the original signal handler afterwards.  Display the offending
6877         symbol and call demangler_warning the first time a segmentation
6878         fault is caught.
6879         (_initialize_cp_support): New maint set/show command.
6880
6881 2014-06-19  Gary Benson  <gbenson@redhat.com>
6882
6883         * utils.h (resource_limit_kind): New enum.
6884         (can_dump_core): New declaration.
6885         (warn_cant_dump_core): Likewise.
6886         (dump_core): Likewise.
6887         * utils.c (dump_core): Made nonstatic.  Added new
6888         parameter "limit_kind".
6889         (can_dump_core): Made nonstatic. Moved printing code to...
6890         (warn_cant_dump_core): New function.
6891         (can_dump_core_warn): Likewise.
6892         (internal_vproblem): Replace calls to can_dump_core with
6893         calls to can_dump_core_warn.  Supply new argument to each.
6894
6895 2014-06-19  Gary Benson  <gbenson@redhat.com>
6896
6897         * utils.h (demangler_vwarning): New declaration.
6898         (demangler_warning): Likewise.
6899         * utils.c (struct internal_problem)
6900         <user_settable_should_quit>: New field.
6901         <user_settable_should_dump_core>: Likewise
6902         (internal_error_problem): Add values for above new fields.
6903         (internal_warning_problem): Likewise.
6904         (demangler_warning_problem): New static global.
6905         (demangler_vwarning): New function.
6906         (demangler_warning): Likewise.
6907         (add_internal_problem_command): Selectively add commands.
6908         (_initialize_utils): New internal problem command.
6909         * maint.c (maintenance_demangler_warning): New function.
6910         (_initialize_maint_cmds): New command.
6911
6912 2014-06-18  Tom Tromey  <tromey@redhat.com>
6913
6914         * f-valprint.c (info_common_command_for_block): Update.
6915         * symtab.h (struct general_symbol_info) <common_block>: Now
6916         const.
6917
6918 2014-06-18  Tom Tromey  <tromey@redhat.com>
6919
6920         * symtab.h (struct symtab) <blockvector>: Now const.
6921         * ada-lang.c (ada_add_global_exceptions): Update.
6922         * buildsym.c (augment_type_symtab): Update.
6923         * dwarf2read.c (dw2_lookup_symbol): Update.
6924         * jit.c (finalize_symtab): Update.
6925         * jv-lang.c (add_class_symtab_symbol): Update.
6926         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6927         Update.
6928         * objfiles.c (objfile_relocate1): Update.
6929         * psymtab.c (lookup_symbol_aux_psymtabs)
6930         (maintenance_check_psymtabs): Update.
6931         * python/py-symtab.c (stpy_global_block, stpy_static_block):
6932         Update.
6933         * spu-tdep.c (spu_catch_start): Update.
6934         * symmisc.c (dump_symtab_1): Update.
6935         * symtab.c (lookup_global_symbol_from_objfile)
6936         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6937         (basic_lookup_transparent_type_quick)
6938         (basic_lookup_transparent_type, find_pc_sect_symtab)
6939         (find_pc_sect_line, search_symbols): Update.
6940         * block.c (find_block_in_blockvector): Make "bl" const.
6941         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6942         const.
6943         (blockvector_contains_pc): Make "bv" const.
6944         (block_for_pc_sect): Update.
6945         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6946         (blockvector_contains_pc): Update.
6947         * breakpoint.c (resolve_sal_pc): Update.
6948         * inline-frame.c (block_starting_point_at): Update.
6949
6950 2014-06-18  Tom Tromey  <tromey@redhat.com>
6951
6952         * completer.c (complete_line): Make "line_buffer" const.
6953         * completer.h (complete_line): Update.
6954
6955 2014-06-18  Tom Tromey  <tromey@redhat.com>
6956
6957         * symtab.c (add_macro_name): Remove unneeded cast.
6958
6959 2014-06-18  Tom Tromey  <tromey@redhat.com>
6960
6961         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6962         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6963
6964 2014-06-18  Tom Tromey  <tromey@redhat.com>
6965
6966         * probe.c (info_probes_for_ops): Make "arg" const.
6967         * probe.h (info_probes_for_ops): Update.
6968
6969 2014-06-18  Tom Tromey  <tromey@redhat.com>
6970
6971         * varobj.c (varobj_create): Update.
6972         * valops.c (value_of_this): Update.
6973         * tracepoint.c (add_local_symbols, scope_info): Update.
6974         * symtab.h (struct general_symbol_info) <block>: Now const.
6975         * symtab.c (skip_prologue_sal)
6976         (default_make_symbol_completion_list_break_on)
6977         (skip_prologue_using_sal): Update.
6978         * stack.h (iterate_over_block_locals)
6979         (iterate_over_block_local_vars): Update.
6980         * stack.c (print_frame_args): Update.
6981         (iterate_over_block_locals, iterate_over_block_local_vars): Make
6982         parameter const.
6983         (get_selected_block): Make return type const.
6984         * python/py-frame.c (frapy_block): Update.
6985         * python/py-block.c (gdbpy_block_for_pc): Update.
6986         * p-exp.y (%union) <bval>: Now const.
6987         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6988         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6989         * m2-exp.y (%union) <bval>: Now const.
6990         * linespec.c (get_current_search_block): Make return type const.
6991         (create_sals_line_offset, find_label_symbols): Update.
6992         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6993         Update.
6994         (block_starting_point_at): Make "block" const.
6995         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6996         (check_exception_resume): Update.
6997         * guile/scm-frame.c (gdbscm_frame_block): Update.
6998         * guile/scm-block.c (gdbscm_lookup_block): Update.
6999         * frame.h (get_frame_block): Update.
7000         (get_selected_block): Make return type const.
7001         * frame.c (frame_id_inner): Update.
7002         * f-valprint.c (info_common_command_for_block)
7003         (info_common_command): Update.
7004         * dwarf2loc.c (dwarf2_find_location_expression)
7005         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
7006         (locexpr_describe_location_piece): Update.
7007         * c-exp.y (%union) <bval>: Now const.
7008         * breakpoint.c (resolve_sal_pc): Update.
7009         * blockframe.c (get_frame_block):Make return type const.
7010         (get_pc_function_start, get_frame_function, find_pc_sect_function)
7011         (block_innermost_frame): Update.
7012         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7013         (block_for_pc, block_for_pc_sect): Update.
7014         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
7015         'pblock' const.
7016         (block_for_pc_sect, block_for_pc): Make return type const.
7017         * ax-gdb.c (gen_expr): Update.
7018         * alpha-mdebug-tdep.c (find_proc_desc): Update.
7019         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
7020         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
7021         (ada_read_var_value): Update.
7022         * ada-exp.y (struct name_info) <block>: Now const.
7023         (%union): Likewise.
7024         (block_lookup): Constify.
7025
7026 2014-06-18  Gary Benson  <gbenson@redhat.com>
7027
7028         * nat/i386-dregs.h: New file.
7029         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
7030         * i386-nat.h (i386-dregs.h): New include.
7031         (DR_FIRSTADDR): Now in i386-dregs.h.
7032         (DR_LASTADDR): Likewise.
7033         (DR_NADDR): Likewise.
7034         (DR_STATUS): Likewise.
7035         (DR_CONTROL): Likewise.
7036         (i386_debug_reg_state): Likewise.
7037         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
7038
7039 2014-06-18  Don Breazeal  <donb@codesourcery.com>
7040
7041         * breakpoint.c (set_longjmp_breakpoint): Call
7042         momentary_breakpoint_from_master with additional argument.
7043         (set_longjmp_breakpoint_for_call_dummy): Call
7044         momentary_breakpoint_from_master with additional argument.
7045         (set_std_terminate_breakpoint): Call
7046         momentary_breakpoint_from_master with additional argument.
7047         (momentary_breakpoint_from_master): Add argument to function
7048         definition and use it to initialize structure member flag.
7049         (clone_momentary_breakpoint): Call
7050         momentary_breakpoint_from_master with additional argument.
7051         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
7052         member flags set in momentary_breakpoint_from_master.
7053
7054 2014-06-18  Gary Benson  <gbenson@redhat.com>
7055
7056         * i386-nat.c (i386_show_dr): Renamed to
7057         i386_dr_show and made nonstatic.  All uses updated.
7058         (i386_length_and_rw_bits): Renamed to
7059         i386_dr_length_and_rw_bits and made nonstatic.
7060         All uses updated.
7061         (i386_insert_aligned_watchpoint): Renamed to
7062         i386_dr_insert_aligned_watchpoint and made nonstatic.
7063         All uses updated.
7064         (i386_remove_aligned_watchpoint): Renamed to
7065         i386_dr_remove_aligned_watchpoint and made nonstatic.
7066         All uses updated.
7067         (i386_update_inferior_debug_regs): Renamed to
7068         i386_dr_update_inferior_debug_regs and made nonstatic.
7069         All uses updated.
7070
7071 2014-06-18  Gary Benson  <gbenson@redhat.com>
7072
7073         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
7074         (i386_dr_low_can_set_control): Likewise.
7075         (i386_dr_low_set_addr): Likewise.
7076         (i386_dr_low_set_control): Likewise.
7077         (i386_dr_low_get_addr): Likewise.
7078         (i386_dr_low_get_status): Likewise.
7079         (i386_dr_low_get_control): Likewise.
7080         (i386_insert_aligned_watchpoint): Use new macros.
7081         (i386_update_inferior_debug_regs): Likewise.
7082         (i386_stopped_data_address): Likewise.
7083
7084 2014-06-18  Gary Benson  <gbenson@redhat.com>
7085
7086         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
7087         New parameter.  All uses updated.
7088
7089 2014-06-18  Gary Benson  <gbenson@redhat.com>
7090
7091         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
7092         All uses updated.
7093
7094 2014-06-18  Gary Benson  <gbenson@redhat.com>
7095
7096         * i386-nat.c (debug_printf): New macro.
7097         (i386_get_debug_register_length): Likewise.
7098         (TARGET_HAS_DR_LEN_8): Use above macro.
7099         (i386_show_dr): Use debug_printf instead of puts_unfiltered
7100         and printf_unfiltered.  Use phex to format values.
7101
7102 2014-06-18  Gary Benson  <gbenson@redhat.com>
7103
7104         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
7105         Make const.
7106
7107 2014-06-18  Gary Benson  <gbenson@redhat.com>
7108
7109         * i386-nat.c: Comment changes.
7110
7111 2014-06-18  Gary Benson  <gbenson@redhat.com>
7112
7113         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
7114
7115 2014-06-18  Gary Benson  <gbenson@redhat.com>
7116
7117         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
7118         (i386_insert_aligned_watchpoint): Likewise.
7119         (i386_remove_aligned_watchpoint): Likewise.
7120         (i386_handle_nonaligned_watchpoint): Likewise.
7121
7122 2014-06-18  Gary Benson  <gbenson@redhat.com>
7123
7124         * i386-nat.c: Whitespace changes.
7125
7126 2014-06-17  Samuel Bronson  <naesten@gmail.com>
7127
7128         * MAINTAINERS: Update Roland McGrath's email address.
7129         Thanks to Sergio Durigan Junior for pointing out that he left
7130         Red Hat a while ago, and giving me a current address.
7131
7132 2014-06-17  Tom Tromey  <tromey@redhat.com>
7133
7134         * utils.h (savestring): Remove declaration.
7135
7136 2014-06-17  Tom Tromey  <tromey@redhat.com>
7137
7138         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
7139
7140 2014-06-16  Keith Seitz  <keiths@redhat.com>
7141
7142         PR mi/15863
7143         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
7144         to update the varobj if inferior_ptid is null_ptid.
7145
7146 2014-06-16  Tom Tromey  <tromey@redhat.com>
7147
7148         * target.h (struct target_ops) <to_info_proc>: Make parameter
7149         const.
7150         (target_info_proc): Update.
7151         * target.c (target_info_proc): Make "args" const.
7152         * procfs.c (procfs_info_proc): Update.
7153         * linux-tdep.c (linux_info_proc): Update.
7154         (linux_core_info_proc_mappings): Make "args" const.
7155         (linux_core_info_proc): Update.
7156         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
7157         * gdbarch.c: Rebuild.
7158         * gdbarch.h: Rebuild.
7159         * corelow.c (core_info_proc): Update.
7160
7161 2014-06-16  Tom Tromey  <tromey@redhat.com>
7162
7163         * target.h (struct target_ops) <to_disconnect>: Make parameter
7164         const.
7165         (target_disconnect): Update.
7166         * target.c (target_disconnect): Make "args" const.
7167         * target-delegates.c: Rebuild.
7168         * remote.c (remote_disconnect): Update.
7169         * record.h (record_disconnect): Update.
7170         * record.c (record_disconnect): Update.
7171         * inf-child.c (inf_child_disconnect): Update.
7172
7173 2014-06-16  Tom Tromey  <tromey@redhat.com>
7174
7175         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7176         * target.c (debug_to_rcmd, default_rcmd): Update.
7177         * target-delegates.c: Rebuild.
7178         * remote.c (remote_rcmd): Update.
7179         * monitor.c (monitor_rcmd): Update.
7180
7181 2014-06-16  Pedro Alves  <palves@redhat.com>
7182
7183         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7184         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7185         have OBJF_SHARED set.
7186         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7187         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
7188         instead of OBJF_USERLOADED.
7189         * objfiles.h (OBJF_SHARED): Update comment.
7190         (userloaded_objfile_contains_address_p): Rename to ...
7191         (shared_objfile_contains_address_p): ... this, and update
7192         comments.
7193         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7194         new objfile.
7195         (remove_symbol_file_command): Skip objfiles that don't have
7196         OBJF_SHARED set.
7197
7198 2014-06-16  Tom Tromey  <tromey@redhat.com>
7199
7200         * minsyms.h (prim_record_minimal_symbol)
7201         (prim_record_minimal_symbol_and_info): Update comments.
7202
7203 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
7204
7205         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7206         or --without-guile, according to how GDB was built.
7207
7208 2014-06-13  Tom Tromey  <tromey@redhat.com>
7209
7210         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7211         to help_list.
7212         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7213         to help_list.
7214         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7215         help_list.
7216         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7217         help_list.Pass all_commands, not -1, to help_list.
7218         * cli/cli-dump.c (dump_command, append_command)
7219         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7220         (binary_dump_command, binary_append_command): Pass all_commands,
7221         not -1, to help_list.
7222         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7223         -1, to help_list.
7224         * valprint.c (set_print, set_print_raw): Pass all_commands, not
7225         -1, to help_list.
7226         * typeprint.c (set_print_type): Pass all_commands, not -1, to
7227         help_list.
7228         * top.c (set_history): Pass all_commands, not -1, to help_list.
7229         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7230         all_commands, not -1, to help_list.
7231         * symfile.c (overlay_command): Pass all_commands, not -1, to
7232         help_list.
7233         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7234         help_list.
7235         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7236         help_list.
7237         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7238         -1, to help_list.
7239         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7240         not -1, to help_list.
7241         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7242         not -1, to help_list.
7243         * maint.c (maintenance_command, maintenance_info_command)
7244         (maintenance_print_command, maintenance_set_cmd): Pass
7245         all_commands, not -1, to help_list.
7246         * macrocmd.c (macro_command): Pass all_commands, not -1, to
7247         help_list.
7248         * language.c (set_check): Pass all_commands, not -1, to help_list.
7249         * infcmd.c (unset_command): Pass all_commands, not -1, to
7250         help_list.
7251         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7252         help_list.
7253         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7254         help_list.
7255         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7256         help_list.
7257         * breakpoint.c (save_command): Pass all_commands, not -1, to
7258         help_list.
7259         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7260         all_commands, not -1, to help_list.
7261
7262 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
7263
7264         * regcache.c (struct register_to_invalidate): New structure.
7265         (do_register_invalidate, make_cleanup_regcache_invalidate): New
7266         functions.
7267         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7268
7269 2014-06-12  Yao Qi  <yao@codesourcery.com>
7270
7271         * varobj.c (varobj_get_num_children): Call
7272         varobj_is_dynamic_p.
7273         (varobj_list_children): Likewise.
7274         (varobj_update): Likewise.  Update comments.
7275
7276 2014-06-12  Yao Qi  <yao@codesourcery.com>
7277
7278         * varobj.c (varobj_pretty_printed_p): Rename to ...
7279         (varobj_is_dynamic_p): ... this.  New function.
7280         * varobj.h (varobj_pretty_printed_p): Remove declaration.
7281         (varobj_is_dynamic_p): Declare.
7282         * mi/mi-cmd-var.c (print_varobj): All callers updated.
7283         (mi_print_value_p, varobj_update_one): Likewise.
7284
7285 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
7286             Yao Qi  <yao@codesourcery.com>
7287
7288         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7289         (varobj_get_iterator): Wrap up code for pretty-printer by
7290         "#if HAVE_PYTHON" and "#endif".
7291         (update_dynamic_varobj_children): Likewise.
7292
7293 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
7294             Yao Qi  <yao@codesourcery.com>
7295
7296         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7297         gdb_python_initialized is false.  Move some code from varobj.c.
7298         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7299         * varobj.c: Move "varobj-iter.h" inclusion earlier.
7300         (struct varobj_item): Moved to varobj-iter.h".
7301         (varobj_clear_saved_item): New function.
7302         (update_dynamic_varobj_children): Move python-related code to
7303         py-varobj.c.
7304         (free_variable): Call varobj_clear_saved_item and
7305         varobj_iter_delete.
7306
7307 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
7308             Yao Qi  <yao@codesourcery.com>
7309
7310         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7311         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7312         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7313         (py-varobj.o): New rule.
7314         * python/py-varobj.c: New file.
7315         * python/python-internal.h (py_varobj_get_iterator): Declare.
7316         * varobj-iter.h: New file.
7317         * varobj.c: Include "varobj-iter.h"
7318         (struct varobj) <child_iter>: Change its type from "PyObject *"
7319         to "struct varobj_iter *".
7320         <saved_item>: Likewise.
7321         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7322         [HAVE_PYTHON] (varobj_get_iterator): New function.
7323         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7324         python-specific code to python/py-varobj.c.
7325         (install_visualizer): Call varobj_iter_delete instead of
7326         Py_XDECREF.
7327         * varobj.h (varobj_ensure_python_env): Declare.
7328
7329 2014-06-12  Yao Qi  <yao@codesourcery.com>
7330
7331         * varobj.c (struct varobj_item): New structure.
7332         (create_child_with_value): Update declaration.
7333         (varobj_add_child): Replace arguments 'name' and 'value' with
7334         'item'.  All callers updated.
7335         (install_dynamic_child): Likewise.
7336         (update_dynamic_varobj_children): Likewise.
7337         (varobj_add_child): Likewise.
7338         (create_child_with_value): Likewise.
7339
7340 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
7341
7342         * NEWS: Create a new section for the next release branch.
7343         Rename the section of the current branch, now that it has
7344         been cut.
7345
7346 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
7347
7348         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7349         * version.in: Bump version to 7.8.50.DATE-cvs.
7350
7351 2014-06-11  Pedro Alves  <palves@redhat.com>
7352
7353         PR remote/17028
7354         * ser-mingw.c (net_windows_socket_check_pending): New function.
7355         (net_windows_select_thread): Ignore spurious wakeups.  Use
7356         net_windows_socket_check_pending.
7357         (net_windows_wait_handle): Check for pending events with
7358         ioctlsocket, through net_windows_socket_check_pending, instead of
7359         checking the socket's event.
7360
7361 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
7362
7363         * python/python-internal.h (gdb_PyObject_GetAttrString)
7364         (gdb_PyObject_HasAttrString): New inline function definitions.
7365         * py-value.c (get_field_flag): Remove the now unnecessary cast to
7366         char * of the second argument to PyObject_GetAttrString.
7367
7368 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
7369
7370         * serial.c (serial_write): Fix index of character to be printed
7371         in call to serial_logchar when serial debug traces are enabled.
7372
7373 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
7374
7375         * gdbtypes (resolve_dynamic_range): Add function description.
7376
7377 2014-06-09  Pedro Alves  <palves@redhat.com>
7378
7379         * linux-nat.c (linux_child_follow_fork): Initialize status with
7380         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
7381         inner block.  Only pass the signal to PTRACE_DETACH if in pass
7382         state.
7383
7384 2014-06-09  Gary Benson  <gbenson@redhat.com>
7385
7386         * common/signals.c (gdb_signal_from_host): Reorder to separate
7387         the always-available ANSI-standard signals from the signals that
7388         require checking.
7389         (do_gdb_signal_to_host): Likewise.
7390         * proc-events.c (signal_table): Likewise.
7391
7392 2014-06-08  Hui Zhu  <hui@codesourcery.com>
7393
7394         * common/linux-ptrace.c (linux_disable_event_reporting): New
7395         function.
7396         * common/linux-ptrace.h (linux_disable_event_reporting): New
7397         declaration.
7398         * linux-nat.c (linux_child_follow_fork): Do a single step before
7399         detach.
7400
7401 2014-06-07  Keith Seitz  <keiths@redhat.com>
7402
7403         Revert:
7404         PR c++/16253
7405         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7406         from symbol_matches_domain in symtab.c. All local callers
7407         of symbol_matches_domain updated.
7408         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7409         search STRUCT_DOMAIN.
7410         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7411         independently.  standard_lookup will do that automatically.
7412         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7413         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7414         (cp_lookup_symbol_in_namespace): Likewise.
7415         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7416         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7417         may return a STRUCT_DOMAIN match.
7418         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7419         * cp-support.c: Include language.h.
7420         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7421         VAR_DOMAIN.
7422         * psymtab.c (match_partial_symbol): Compare the requested
7423         domain with the symbol's domain directly.
7424         (lookup_partial_symbol): Likewise.
7425         * symtab.c (lookup_symbol_in_language): Explain when/why
7426         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7427         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7428         appropriate languages.
7429         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7430         and moved to ada-lang.c
7431         (lookup_block_symbol): Explain that this function only returns
7432         symbol matching the requested DOMAIN.
7433         Compare the requested domain with the symbol's domain directly.
7434         (iterate_over_symbols): Compare the requested domain with the
7435         symbol's domain directly.
7436         * symtab.h (symbol_matches_domain): Remove.
7437
7438 2014-06-06  Doug Evans  <xdje42@gmail.com>
7439
7440         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7441         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7442         (gdbscm_guile_version_is_at_least): Declare.
7443         (gdbscm_scm_string_to_int): Declare.
7444         * guile/guile.c (gdbscm_guile_major_version): New global.
7445         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7446         (guile_datadir): New static global.
7447         (gdbscm_guile_data_directory): New function.
7448         (initialize_scheme_side): Update.
7449         (misc_guile_functions): Add guile-data-directory.
7450         (initialize_gdb_module): Fetch guile version number.
7451         * guile/lib/gdb.scm: Remove call to add-to-load-path.
7452         * guile/lib/gdb/init.scm (%initialize!): Ditto.
7453         * guile/lib/gdb/boot.scm: Use guile-data-directory.
7454         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7455         comments.
7456         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7457         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7458         * guile/scm-value.c (gdbscm_value_to_string): Only call
7459         scm_port_conversion_strategy if Guile version >= 2.0.6.
7460
7461 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
7462
7463         * main.c (print_gdb_help): Add -q and --silent.
7464
7465 2014-06-06  Gary Benson  <gbenson@redhat.com>
7466
7467         * common/signals.c: Remove preprocessor conditionals for
7468         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7469         SIGSEGV and SIGTERM.
7470         * proc-events.c: Likewise.
7471
7472 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
7473
7474         * symfile.c (symfile_free_objfile): Remove restriction to
7475         OBJF_USERLOADED.
7476         * symfile-mem.c (symbol_file_add_from_memory): Call
7477         add_target_sections_of_objfile.
7478
7479 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
7480
7481         * guile/scm-value.c (gdbscm_history_append_x): Use
7482         'vlscm_get_value_smob_arg_unsafe' instead of
7483         'vlscm_scm_to_value'.
7484
7485 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
7486
7487         PR mi/15806
7488         * utils.c (printchar): Don't escape at all if quoter is NUL.
7489         Update function documentation to clarify effect of parameter
7490         QUOTER.
7491         * remote.c (escape_buffer): Pass '\\' as the quoter to
7492         fputstrn_unfiltered.
7493         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7494         generate the output.
7495         (mi_solib_unloaded): Same.
7496
7497 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
7498
7499         * development.sh: Delete.
7500         * Makefile.in (config.status): Adjust dependency on development.sh.
7501         * configure.ac: Adjust development.sh source call.
7502         * configure: Regenerate.
7503
7504 2014-06-04  Doug Evans  <xdje42@gmail.com>
7505
7506         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7507         is_scheme_bkpt, spec.
7508         (bpscm_make_breakpoint_smob): Initialize new members.
7509         (gdbscm_create_breakpoint_x): Split into two ...
7510         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7511         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7512         (scheme_function breakpoint_functions): Update.
7513         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
7514         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
7515         register-breakpoint!.
7516
7517 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
7518
7519         PR server/17023
7520         * mem-break.c (z_type_supported): Return zero if
7521         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7522
7523 2014-06-04  Tom Tromey  <tromey@redhat.com>
7524
7525         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7526         value_from_contents_and_address_unresolved.
7527         (ada_template_to_fixed_record_type_1): Likewise.
7528         (ada_which_variant_applies): Likewise.
7529         * value.h (value_from_contents_and_address_unresolved): Declare.
7530         * value.c (value_from_contents_and_address_unresolved): New
7531         function.
7532         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7533         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7534         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7535
7536 2014-06-04  Tom Tromey  <tromey@redhat.com>
7537
7538         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7539
7540 2014-06-04  Tom Tromey  <tromey@redhat.com>
7541
7542         * procfs.c (procfs_attach): Make "args" const.
7543         * windows-nat.c (windows_attach): Make "args" const.
7544         * nto-procfs.c (procfs_attach): Make "args" const.
7545         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7546         * go32-nat.c (go32_attach): Make "args" const.
7547         * gnu-nat.c (gnu_attach): Make "args" const.
7548         * darwin-nat.c (darwin_attach): Make "args" const.
7549         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7550         * linux-nat.c (linux_nat_attach): Make "args" const.
7551         * remote.c (extended_remote_attach_1, extended_remote_attach):
7552         Make "args" const.
7553         * target.h (struct target_ops) <to_attach>: Make "args" const.
7554         (find_default_attach): Likewise.
7555         * utils.c (parse_pid_to_attach): Make "args" const.
7556         * utils.h (parse_pid_to_attach): Update.
7557
7558 2014-06-04  Tom Tromey  <tromey@redhat.com>
7559
7560         * target-delegates.c: Rebuild.
7561         * target.c (default_thread_address_space): New function.
7562         (target_thread_address_space): Simplify.
7563         * target.h (struct target_ops) <to_thread_address_space>: Add
7564         TARGET_DEFAULT_FUNC.
7565
7566 2014-06-04  Doug Evans  <xdje42@gmail.com>
7567
7568         * guile/scm-type.c (type_smob): Remove duplicate typedef.
7569
7570 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
7571
7572         * record-btrace.c: Include event-loop.h and inf-loop.h.
7573         (record_btrace_resume_exec_dir)
7574         (record_btrace_async_inferior_event_handler)
7575         (record_btrace_handle_async_inferior_event): New.
7576         (record_btrace_open): Create async event handler.
7577         (record_btrace_close): Delete async event handler.
7578         (record_btrace_resume): Set record_btrace_resume_exec_dir,
7579         Mark async event handler.
7580         (record_btrace_execution_direction): New.
7581         (init_record_btrace_ops): Initialize to_execution_direction.
7582
7583 2014-06-03  Doug Evans  <xdje42@gmail.com>
7584
7585         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7586         (gdbscm_make_parameter): Ditto.
7587
7588 2014-06-03  Doug Evans  <dje@google.com>
7589
7590         * exec.c (exec_close_1): Call clear_section_table instead of
7591         resize_section_table.
7592         (clear_section_table): New function.
7593         (resize_section_table): Make static.  Rename arg num_added to
7594         adjustment.
7595         * exec.h (clear_section_table): Declare.
7596         (resize_section_table): Delete.
7597         * progspace.c (release_program_space): Call clear_section_table
7598         instead of resize_section_table.
7599
7600 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
7601
7602         * NEWS (Python Scripting): Add entry about the new xmethods
7603         feature.
7604
7605 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
7606
7607         * python/py-xmethods.c: New file.
7608         * python/py-objfile.c (objfile_object): New field 'xmethods'.
7609         (objfpy_dealloc): XDECREF on the new xmethods field.
7610         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7611         field.
7612         (objfpy_get_xmethods): New function.
7613         (objfile_getset): New entry 'xmethods'.
7614         * python/py-progspace.c (pspace_object): New field 'xmethods'.
7615         (pspy_dealloc): XDECREF on the new xmethods field.
7616         (pspy_new, pspace_to_pspace_object): Initialize xmethods
7617         field.
7618         (pspy_get_xmethods): New function.
7619         (pspace_getset): New entry 'xmethods'.
7620         * python/python-internal.h: Add declarations for new functions.
7621         * python/python.c (_initialize_python): Invoke
7622         gdbpy_initialize_xmethods.
7623         * python/lib/gdb/__init__.py (xmethods): New
7624         attribute.
7625         * python/lib/gdb/xmethod.py: New file.
7626         * python/lib/gdb/command/xmethods.py: New file.
7627
7628 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
7629
7630         * eval.c (evaluate_subexp_standard): Call the xmethod if the
7631         best match method returned by find_overload_match is an xmethod.
7632         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7633         the best matching operator returned by find_overload_match is an
7634         xmethod.
7635         * valops.c: #include "extension.h".
7636         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7637         Return void.  The list of matching source methods is returned in
7638         "fn_list" and a vector of matching debug method workers is
7639         returned in "xm_worker_vec".  Update all callers.
7640         (value_find_oload_method_list): Likewise.
7641         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
7642         non-NULL, then the index of the best matching method in this
7643         vector is returned.  Update all callers.
7644         (find_overload_match): Include xmethods while performing overload
7645         resolution.
7646
7647 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
7648
7649         * defs.h (enum lval_type): New enumerator "lval_xcallable".
7650         * extension-priv.h (struct extension_language_ops): Add the
7651         xmethod interface.
7652         * extension.c (new_xmethod_worker, clone_xmethod_worker,
7653         get_matching_xmethod_workers, get_xmethod_argtypes,
7654         invoke_xmethod, free_xmethod_worker,
7655         free_xmethod_worker_vec): New functions.
7656         * extension.h: #include "common/vec.h".
7657         New function declarations.
7658         (struct xmethod_worker): New struct.
7659         (VEC (xmethod_worker_ptr)): New vector type.
7660         (xmethod_worker_ptr): New typedef.
7661         (xmethod_worker_vec): Likewise.
7662         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7663         builtin_type.
7664         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7665         (struct builtin_type): New field "xmethod".
7666         * valarith.c (value_ptradd): Assert that the value argument is not
7667         lval_xcallable.
7668         * valops.c (value_must_coerce_to_target): Return 0 for
7669         lval_xcallable values.
7670         * value.c (struct value): New field XM_WORKER in the field
7671         LOCATION.
7672         (value_address, value_raw_address): Return 0 for lval_xcallable
7673         values.
7674         (set_value_address): Assert that the value is not an
7675         lval_xcallable.
7676         (value_free): Free the associated xmethod worker when freeing
7677         lval_xcallable values.
7678         (set_value_component_location): Assert that the WHOLE value is not
7679         lval_xcallable.
7680         (value_of_xmethod, call_xmethod): New functions.
7681         * value.h: Declare "struct xmethod_worker".
7682         Declare new functions value_of_xmethod, call_xmethod.
7683
7684 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
7685             Pedro Alves  <palves@redhat.com>
7686
7687         PR breakpoints/17000
7688         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7689         New function, extracted from software_breakpoint_inserted_here_p.
7690         (software_breakpoint_inserted_here_p): Replace factored out code
7691         by call to find_non_raw_software_breakpoint_inserted_here.
7692         (bp_target_info_copy_insertion_state): New function.
7693         (bkpt_insert_location): Handle the case of a single-step
7694         breakpoint already inserted at the same address.
7695         (bkpt_remove_location): Handle the case of a single-step
7696         breakpoint still inserted at the same address.
7697         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7698         breakpoint already inserted at the same address.
7699         (deprecated_remove_raw_breakpoint): Handle the case of a
7700         non-raw breakpoint still inserted at the same address.
7701         (find_single_step_breakpoint): New function, extracted from
7702         single_step_breakpoint_inserted_here_p.
7703         (find_single_step_breakpoint): New function,
7704         factored out from single_step_breakpoint_inserted_here_p.
7705         (single_step_breakpoint_inserted_here_p): Reimplement.
7706
7707 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
7708
7709         Pushed by Joel Brobecker  <brobecker@adacore.com>
7710         * source.c (show_substitute_path_command): Fix display of matching
7711         substitution rules.
7712
7713 2014-06-03  Gary Benson  <gbenson@redhat.com>
7714
7715         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7716
7717 2014-06-02  Doug Evans  <xdje42@gmail.com>
7718
7719         Add parameter support for Guile.
7720         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7721         (SUBDIR_GUILE_SRCS): Add scm-param.c.
7722         (scm-param.o): New rule.
7723         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7724         (gdbscm_misc_error): Declare.
7725         (gdbscm_canonicalize_command_name): Declare.
7726         (gdbscm_scm_to_host_string): Declare.
7727         (gdbscm_scm_from_host_string): Declare.
7728         (gdbscm_initialize_parameters): Declare.
7729         * guile/guile.c (initialize_gdb_module): Call
7730         gdbscm_initialize_parameters.
7731         * guile/lib/gdb.scm: Export parameter symbols.
7732         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7733         cmdscm_canonicalize_name and made public.  All callers updated.
7734         * guile/scm-exception.c (gdbscm_misc_error): New function.
7735         * guile/scm-param.c: New file.
7736         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7737         (gdbscm_scm_to_host_string): New function.
7738         (gdbscm_scm_from_host_string): New function.
7739         * scm-utils.c (gdbscm_gc_dup_argv): New function.
7740
7741 2014-06-02  Doug Evans  <xdje42@gmail.com>
7742
7743         Add command support for Guile.
7744         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7745         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7746         (scm-cmd.o): New rule.
7747         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7748         (gdbscm_user_error_p): Declare.
7749         (gdbscm_parse_command_name): Declare.
7750         (gdbscm_valid_command_class_p): Declare.
7751         (gdbscm_initialize_commands): Declare.
7752         * guile/guile.c (initialize_gdb_module): Call
7753         gdbscm_initialize_commands.
7754         * guile/lib/gdb.scm: Export command symbols.
7755         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7756         (throw-user-error): New function.
7757         * guile/scm-cmd.c: New file.
7758         * guile/scm-exception.c (user_error_symbol): New static global.
7759         (gdbscm_user_error_p): New function.
7760         (gdbscm_initialize_exceptions): Set user_error_symbol.
7761         * scm-utils.c (gdbscm_gc_xstrdup): New function.
7762
7763 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
7764
7765         * top.c (command_loop): Handle comments here...
7766         (command_line_input): ... not here.
7767
7768 2014-06-02  Doug Evans  <xdje42@gmail.com>
7769
7770         Add progspace support for Guile.
7771         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7772         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7773         (scm-progspace.o): New rule.
7774         * guile/guile-internal.h (pspace_smob): New typedef.
7775         (psscm_pspace_smob_pretty_printers): Declare.
7776         (psscm_pspace_smob_from_pspace): Declare.
7777         (psscm_scm_from_pspace): Declare.
7778         * guile/guile.c (initialize_gdb_module): Call
7779         gdbscm_initialize_pspaces.
7780         * guile/lib/gdb.scm: Export progspace symbols.
7781         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7782         support.
7783         (append-pretty-printer!): Ditto.
7784         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7785         Implement.
7786         * guile/scm-progspace.c: New file.
7787
7788 2014-06-03  Alan Modra  <amodra@gmail.com>
7789
7790         * ppc64-tdep.c (ppc64_standard_linkage8): New.
7791         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7792
7793 2014-06-02  Doug Evans  <dje@google.com>
7794
7795         Add support for skeletonless type units.
7796         * dwarf2read.c (struct dwarf2_per_objfile): New member
7797         n_allocated_type_units.
7798         (struct dwarf2_per_objfile) <tu_stats>: New member
7799         nr_all_type_units_reallocs.
7800         (create_signatured_type_table_from_index): Initialize
7801         n_allocated_type_units
7802         (create_all_type_units): Ditto.
7803         (add_type_unit): Move up in file.  New arg slot.
7804         All callers updated.  Increase space for all_type_units more
7805         efficiently.
7806         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7807         (lookup_dwo_signatured_type): Handle skeletonless TUs.
7808         (lookup_dwp_signatured_type): Ditto.
7809         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7810         All callers updated.
7811         (build_type_psymtabs_1): Leave type_unit_groups as
7812         NULL if no TUs present.
7813         (print_tu_stats): New function.
7814         (process_skeletonless_type_unit): New function.
7815         (process_dwo_file_for_skeletonless_type_units): New
7816         function.
7817         (process_skeletonless_type_units): New function.
7818         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7819         Call print tu_stats if debugging enabled.
7820
7821 2014-06-02  Pedro Alves  <palves@redhat.com>
7822
7823         * breakpoint.c (build_target_command_list): Don't build a command
7824         list if we have any duplicate location that isn't a dprintf.
7825
7826 2014-06-02  Pedro Alves  <palves@redhat.com>
7827
7828         * breakpoint.c (dprintf_breakpoint_hit): New function.
7829         (initialize_breakpoint_ops): Install it as dprintf's
7830         breakpoint_hit method.
7831
7832 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
7833
7834         * source.c (substitute_path_rule_matches): Simplify using
7835         filename_ncmp instead of FILENAME_CMP.
7836
7837 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
7838
7839         * source.c (substitute_path_rule_matches): Remove trailing spaces.
7840
7841 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
7842
7843         * configure.ac: When Guile is available, check for the
7844         availability of 'scm_new_smob'.
7845         * configure, config.h.in: Regenerate.
7846         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7847         function.
7848
7849 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
7850
7851         * frame.c (struct frame_info): Add stop_string field.
7852         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7853         (get_prev_frame_always): Old content moved into
7854         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
7855         TRY_CATCH, handle MEMORY_ERROR exceptions.
7856         (frame_stop_reason_string): New function definition.
7857         * frame.h (unwind_stop_reason_to_string): Extend comment to
7858         mention frame_stop_reason_string.
7859         (frame_stop_reason_string): New function declaration.
7860         * stack.c (frame_info): Switch to frame_stop_reason_string.
7861         (backtrace_command_1): Switch to frame_stop_reason_string.
7862         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7863         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7864         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7865
7866 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
7867
7868         * frame.c (frame_stop_reason_string): Rename to ...
7869         (unwind_stop_reason_to_string): this.
7870         * frame.h (frame_stop_reason_string): Rename to ...
7871         (unwind_stop_reason_to_string): this.
7872         * stack.c (frame_info): Update call to frame_stop_reason_string.
7873         (backtrace_command_1): Likewise.
7874         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7875         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7876
7877 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
7878
7879         * frame.c (remove_prev_frame): New function.
7880         (get_prev_frame_if_no_cycle): Create / discard cleanup using
7881         remove_prev_frame.
7882
7883 2014-05-29  Pedro Alves  <palves@redhat.com>
7884
7885         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7886         and make it const.  When a single-step decays to a continue,
7887         clear 'step', not 'hw_step'.  Pass whether the caller wanted
7888         to step to user_visible_resume_ptid, not what we ask the
7889         target to do.
7890
7891 2014-05-29  Pedro Alves  <palves@redhat.com>
7892
7893         * infrun.c (process_event_stop_test, handle_step_into_function)
7894         (handle_step_into_function_backward): Adjust.
7895         Don't set the even thread's stop_step and call stop_waiting before
7896         calling end_stepping_range.  Instead do that ...
7897         (end_stepping_range): ... here.  Take an ecs pointer parameter.
7898
7899 2014-05-29  Pedro Alves  <palves@redhat.com>
7900
7901         * infrun.c (stop_stepping): Rename to ...
7902         (stop_waiting): ... this.
7903         (proceed): Update comment.
7904         (process_event_stop_test, handle_inferior_event)
7905         (handle_signal_stop, handle_step_into_function)
7906         (handle_step_into_function_backward): Update.
7907
7908 2014-05-29  Pedro Alves  <palves@redhat.com>
7909
7910         * infcall.c (run_inferior_call): Don't check whether the current
7911         thread is running after the proceed call.
7912
7913 2014-05-29  Pedro Alves  <palves@redhat.com>
7914             Tom Tromey  <tromey@redhat.com>
7915
7916         * NEWS: Mention "maint set target-async", "set mi-async", and that
7917         background execution commands are now always available.
7918         * target.h (target_async_permitted): Update comment.
7919         * target.c (target_async_permitted, target_async_permitted_1):
7920         Default to 1.
7921         (set_target_async_command): Rename to ...
7922         (maint_set_target_async_command): ... this.
7923         (show_target_async_command): Rename to ...
7924         (maint_show_target_async_command): ... this.
7925         (_initialize_target): Adjust.
7926         * infcmd.c (prepare_execution_command): Make extern.
7927         * inferior.h (prepare_execution_command): Declare.
7928         * infrun.c (set_observer_mode): Leave target async alone.
7929         * mi/mi-interp.c (mi_interpreter_init): Install
7930         mi_on_sync_execution_done as sync_execution_done observer.
7931         (mi_on_sync_execution_done): New function.
7932         (mi_execute_command_input_handler): Don't print the prompt if we
7933         just started a synchronous command with an async target.
7934         (mi_on_resume): Check sync_execution before printing prompt.
7935         * mi/mi-main.h (mi_async_p): Declare.
7936         * mi/mi-main.c: Include gdbcmd.h.
7937         (mi_async_p): New function.
7938         (mi_async, mi_async_1): New globals.
7939         (set_mi_async_command, show_mi_async_command, mi_async): New
7940         functions.
7941         (exec_continue): Call prepare_execution_command.
7942         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7943         (mi_execute_async_cli_command): Use mi_async_p.
7944         (_initialize_mi_main): Install "set mi-async".  Make
7945         "target-async" a deprecated alias.
7946
7947 2014-05-29  Pedro Alves  <palves@redhat.com>
7948
7949         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7950         (_initialize_cli_interp): Adjust.
7951         * event-loop.c: Include "observer.h".
7952         (start_event_loop): Notify 'command_error' observers instead of
7953         calling display_gdb_prompt.  Remove FIXME comment.
7954         * event-top.c (display_gdb_prompt): Remove call into the
7955         interpreters.
7956         * inf-loop.c: Include "observer.h".
7957         (inferior_event_handler): Notify 'command_error' observers instead
7958         of calling display_gdb_prompt.
7959         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7960         observers instead of calling display_gdb_prompt.
7961         * interps.c (interp_set): Don't call display_gdb_prompt.
7962         (current_interp_display_prompt_p): Delete.
7963         * interps.h (interp_prompt_p): Delete declaration.
7964         (interp_prompt_p_ftype): Delete.
7965         (struct interp_procs) <prompt_proc_p>: Delete field.
7966         (current_interp_display_prompt_p): Delete declaration.
7967         * mi-interp.c (mi_interpreter_prompt_p): Delete.
7968         (_initialize_mi_interp): Adjust.
7969         * tui-interp.c (tui_init): Install 'sync_execution_done' and
7970         'command_error' observers.
7971         (tui_on_sync_execution_done, tui_on_command_error): New
7972         functions.
7973         (tui_display_prompt_p): Delete.
7974         (_initialize_tui_interp): Adjust.
7975
7976 2014-05-29  Pedro Alves  <palves@redhat.com>
7977
7978         PR gdb/13860
7979         * cli/cli-interp.c: Include infrun.h and observer.h.
7980         (cli_uiout, cli_interp): New globals.
7981         (cli_on_signal_received, cli_on_end_stepping_range)
7982         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7983         functions.
7984         (cli_interpreter_init): Install them as 'end_stepping_range',
7985         'signal_received' 'signal_exited', 'exited' and 'no_history'
7986         observers.
7987         (_initialize_cli_interp): Remove cli_interp local.
7988         * infrun.c (handle_inferior_event): Call the several stop reason
7989         observers instead of printing the stop reason directly.
7990         (end_stepping_range): New function.
7991         (print_end_stepping_range_reason, print_signal_exited_reason)
7992         (print_exited_reason, print_signal_received_reason)
7993         (print_no_history_reason): Make static, and add an uiout
7994         parameter.  Print to that instead of to CURRENT_UIOUT.
7995         * infrun.h (print_end_stepping_range_reason)
7996         (print_signal_exited_reason, print_exited_reason)
7997         (print_signal_received_reason print_no_history_reason): New
7998         declarations.
7999         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
8000         'mi_uiout'.
8001         <cli_uiout>: New field.
8002         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
8003         uiout for CLI output.  Install 'signal_received',
8004         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
8005         observers.
8006         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
8007         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
8008         (mi_on_no_history): New functions.
8009         (ui_out_free_cleanup): Delete function.
8010         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
8011         instead use the one already stored in the MI interpreter data.
8012         (mi_ui_out): Adjust.
8013         * tui/tui-interp.c: Include infrun.h and observer.h.
8014         (tui_interp): New global.
8015         (tui_on_signal_received, tui_on_end_stepping_range)
8016         (tui_on_signal_exited, tui_on_exited)
8017         (tui_on_no_history): New functions.
8018         (tui_init): Install them as 'end_stepping_range',
8019         'signal_received' 'signal_exited', 'exited' and 'no_history'
8020         observers.
8021         (_initialize_tui_interp): Delete tui_interp local.
8022
8023 2014-05-29  Pedro Alves  <palves@redhat.com>
8024
8025         PR gdb/15713
8026         * linux-nat.c (linux_nat_resume_callback): Rename the second
8027         parameter to 'except'.  Skip LP if it points to EXCEPT.
8028         (linux_nat_resume): Don't mark the event lwp as not stopped
8029         before resuming sibling lwps.  Instead ask
8030         linux_nat_resume_callback to skip the event lwp.  Mark it as not
8031         stopped after actually resuming it.
8032         (linux_handle_syscall_trap): Mark the lwp as not stopped after
8033         resuming it.
8034         (wait_lwp): Mark the lwp as stopped here.
8035         (stop_wait_callback): Mark the lwp as not stopped right after
8036         resuming it.  Don't mark lwps as stopped here.
8037         (linux_nat_filter_event): Mark the lwp as stopped earlier.
8038         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
8039
8040 2014-05-29  Pedro Alves  <palves@redhat.com>
8041
8042         PR PR15693
8043         * infrun.c (resume): Determine how much to resume depending on
8044         whether the caller wanted a step, not whether we can hardware step
8045         the target.  Mark all threads that we intend to run as running,
8046         unless we're calling an inferior function.
8047         (normal_stop): If the thread is running an infcall, don't finish
8048         thread state.
8049         * target.c (target_resume): Don't mark threads as running here.
8050
8051 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
8052
8053         * serial.c (_initialize_serial): Remove support for
8054         the "set remotebaud" and "show remotebaud" commands.
8055         * NEWS: Add entry documenting the removal of that command.
8056
8057 2014-05-28  Yao Qi  <yao@codesourcery.com>
8058
8059         * charset.c: Fix typo in comments.
8060
8061 2014-05-27  Gary Benson  <gbenson@redhat.com>
8062
8063         * utils.c (internal_vproblem): Prompt for a bug report.
8064
8065 2014-05-26  Andy Wingo  <wingo@igalia.com>
8066
8067         * guile/scm-arch.c (arscm_mark_arch_smob):
8068         * guile/scm-block.c (bkscm_mark_block_smob)
8069         (bkscm_mark_block_syms_progress_smob):
8070         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
8071         * guile/scm-exception.c (exscm_mark_exception_smob):
8072         * guile/scm-frame.c (frscm_mark_frame_smob):
8073         * guile/scm-iterator.c (itscm_mark_iterator_smob):
8074         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
8075         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
8076         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
8077         (ppscm_mark_pretty_printer_worker_smob):
8078         * guile/scm-symbol.c (syscm_mark_symbol_smob):
8079         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
8080         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
8081         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
8082         mark functions.
8083         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
8084         function.
8085
8086 2014-05-26  Andy Wingo  <wingo@igalia.com>
8087             Doug Evans  <xdje42@gmail.com>
8088
8089         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
8090         empty_base_class.  All uses updated.
8091         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
8092         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
8093         Adapt all callers.
8094         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
8095         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
8096         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
8097         (gdbscm_gsmob_has_property_p, add_property_name)
8098         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
8099         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
8100         (gdb-object-has-property?, gdb-object-properties): Remove.
8101         (gdb-object-kind): Renamed from gsmob-kind.
8102
8103 2014-05-26  Andy Wingo  <wingo@igalia.com>
8104
8105         * configure.ac (try_guile_versions): Allow building with guile 2.2.
8106         * configure: Regenerate.
8107
8108 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
8109
8110         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
8111
8112 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
8113
8114         * record-btrace.c (record_btrace_allow_memory_access): Remove.
8115         (replay_memory_access_read_only, replay_memory_access_read_write)
8116         (replay_memory_access_types, replay_memory_access)
8117         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
8118         (cmd_set_record_btrace, cmd_show_record_btrace)
8119         (cmd_show_replay_memory_access): New.
8120         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8121         (record_btrace_remove_breakpoint): Replace
8122         record_btrace_allow_memory_access with replay_memory_access.
8123         (_initialize_record_btrace): Add commands.
8124         * NEWS: Announce it.
8125
8126 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8127
8128         * aarch64-linux-nat.c (asm/ptrace.h): Include.
8129
8130 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8131
8132         * MAINTAINERS (Write After Approval): Move self back from
8133         paper trail.
8134
8135 2014-05-22  Pedro Alves  <palves@redhat.com>
8136
8137         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
8138         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
8139         (disable_randomization, enum exec_direction_kind)
8140         (execution_direction, stop_registers, start_remote)
8141         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
8142         (wait_for_inferior, normal_stop, get_last_target_status)
8143         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
8144         (insert_step_resume_breakpoint_at_sal)
8145         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
8146         (set_step_info, print_stop_event, signal_stop_state)
8147         (signal_print_state, signal_pass_state, signal_stop_update)
8148         (signal_print_update, signal_pass_update)
8149         (update_signals_program_target, clear_exit_convenience_vars)
8150         (displaced_step_dump_bytes, update_observer_mode)
8151         (signal_catch_update, gdb_signal_from_command): Move
8152         declarations ...
8153         * infrun.h: ... to this new file.
8154         * amd64-tdep.c: Include infrun.h.
8155         * annotate.c: Include infrun.h.
8156         * arch-utils.c: Include infrun.h.
8157         * arm-linux-tdep.c: Include infrun.h.
8158         * arm-tdep.c: Include infrun.h.
8159         * break-catch-sig.c: Include infrun.h.
8160         * breakpoint.c: Include infrun.h.
8161         * common/agent.c: Include infrun.h instead of inferior.h.
8162         * corelow.c: Include infrun.h.
8163         * event-top.c: Include infrun.h.
8164         * go32-nat.c: Include infrun.h.
8165         * i386-tdep.c: Include infrun.h.
8166         * inf-loop.c: Include infrun.h.
8167         * infcall.c: Include infrun.h.
8168         * infcmd.c: Include infrun.h.
8169         * infrun.c: Include infrun.h.
8170         * linux-fork.c: Include infrun.h.
8171         * linux-nat.c: Include infrun.h.
8172         * linux-thread-db.c: Include infrun.h.
8173         * monitor.c: Include infrun.h.
8174         * nto-tdep.c: Include infrun.h.
8175         * procfs.c: Include infrun.h.
8176         * record-btrace.c: Include infrun.h.
8177         * record-full.c: Include infrun.h.
8178         * remote-m32r-sdi.c: Include infrun.h.
8179         * remote-mips.c: Include infrun.h.
8180         * remote-notif.c: Include infrun.h.
8181         * remote-sim.c: Include infrun.h.
8182         * remote.c: Include infrun.h.
8183         * reverse.c: Include infrun.h.
8184         * rs6000-tdep.c: Include infrun.h.
8185         * s390-linux-tdep.c: Include infrun.h.
8186         * solib-irix.c: Include infrun.h.
8187         * solib-osf.c: Include infrun.h.
8188         * solib-svr4.c: Include infrun.h.
8189         * target.c: Include infrun.h.
8190         * top.c: Include infrun.h.
8191         * windows-nat.c: Include infrun.h.
8192         * mi/mi-interp.c: Include infrun.h.
8193         * mi/mi-main.c: Include infrun.h.
8194         * python/py-threadevent.c: Include infrun.h.
8195
8196 2014-05-22  Pedro Alves  <palves@redhat.com>
8197
8198         * infrun.c (handle_inferior_event): Store the exit code for
8199         --return-child-result here, instead of ...
8200         (print_exited_reason): ... here.
8201
8202 2014-05-21  Pedro Alves  <palves@redhat.com>
8203
8204         PR gdb/13860
8205         * gdbthread.h (struct thread_control_state): New field
8206         `command_interp'.
8207         * infrun.c (follow_fork): Copy the new thread control field to the
8208         child fork thread.
8209         (clear_proceed_status_thread): Clear the new thread control field.
8210         (proceed): Set the new thread control field.
8211         * interps.h (command_interp): Declare.
8212         * interps.c (command_interpreter): New global.
8213         (command_interp): New function.
8214         (interp_exec): Set `command_interpreter' while here.
8215         * cli-out.c (cli_uiout_dtor): New function.
8216         (cli_ui_out_impl): Install it.
8217         * mi/mi-interp.c: Include cli-out.h.
8218         (mi_cmd_interpreter_exec): Add comment.
8219         (restore_current_uiout_cleanup): New function.
8220         (ui_out_free_cleanup): New function.
8221         (mi_on_normal_stop): If finishing an execution command started by
8222         a CLI command, or any kind of breakpoint-like event triggered,
8223         print the stop event to the output (CLI) stream.
8224         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8225
8226 2014-05-21  Pedro Alves  <palves@redhat.com>
8227
8228         * cli/cli-cmds.c (list_command): Handle the first "list" after the
8229         current source line having changed.
8230         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8231         * infrun.c (normal_stop): Adjust call to
8232         set_current_sal_from_frame.
8233         * source.c (clear_lines_listed_range): New function.
8234         (set_current_source_symtab_and_line, identify_source_line): Clear
8235         the lines listed range.
8236         (line_info): Handle the first "info line" after the current source
8237         line having changed.
8238         * stack.c (print_stack_frame): Remove center handling.
8239         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
8240         center sal.line.
8241
8242 2014-05-21  Pedro Alves  <palves@redhat.com>
8243
8244         * inf-child.c (inf_child_mourn_inferior): New function.
8245         * inf-child.h (inf_child_mourn_inferior): New declaration.
8246         * darwin-nat.c (darwin_mourn_inferior): Use
8247         inf_child_mourn_inferior.
8248         * gnu-nat.c (gnu_mourn_inferior): Likewise.
8249         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8250         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8251         * nto-procfs.c (procfs_mourn_inferior): Likewise.
8252         * windows-nat.c (windows_mourn_inferior): Likewise.
8253
8254 2014-05-21  Doug Evans  <xdje42@gmail.com>
8255
8256         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
8257
8258 2014-05-21  Doug Evans  <xdje42@gmail.com>
8259
8260         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
8261         (gdbscm_out_of_range_error): Ditto.
8262         (gdbscm_memory_error): Ditto.
8263         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8264         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
8265         (gdbscm_out_of_range_error): Update.
8266         (gdbscm_memory_error): Update.
8267         (gdbscm_scm_to_target_string_unsafe): Delete.
8268
8269 2014-05-21  Pedro Alves  <palves@redhat.com>
8270
8271         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8272         globals.
8273         (inf_child_open_target): New function.
8274         (inf_child_open): Use inf_child_open_target to push the target
8275         instead of erroring out.
8276         (inf_child_disconnect, inf_child_close)
8277         (inf_child_maybe_unpush_target): New functions.
8278         (inf_child_target): Install inf_child_disconnect and
8279         inf_child_close.  Store a pointer to the returned object.
8280         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8281         declarations.
8282         * target.c (auto_connect_native_target): New global.
8283         (show_default_run_target): New function.
8284         (find_default_run_target): Return NULL if automatically connecting
8285         to the native target is disabled.
8286         (_initialize_target): Install set/show auto-connect-native-target.
8287         * NEWS: Mention "set auto-connect-native-target", and "target
8288         native".
8289         * linux-nat.c (super_close): New global.
8290         (linux_nat_close): Call super_close.
8291         (linux_nat_add_target): Store a pointer to the base class's
8292         to_close method.
8293         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8294         inf_child_maybe_unpush.
8295         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8296         already pushed.
8297         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8298         the inferior.  Use inf_child_maybe_unpush_target.
8299         (inf_ttrace_attach): Don't push the target if it is already
8300         pushed.
8301         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8302         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8303         after mourning the inferior.  Use inf_child_maybe_unpush_target.
8304         (darwin_attach_pid): Don't push the target if it is already
8305         pushed.
8306         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8307         mourning the inferior.  Use inf_child_maybe_unpush_target.
8308         (gnu_detach): Use inf_child_maybe_unpush_target.
8309         * go32-nat.c (go32_create_inferior): Don't push the target if it
8310         is already pushed.
8311         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8312         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8313         (procfs_open): Rename to ...
8314         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
8315         comments.  Can target_preopen before changing node.  Call
8316         inf_child_open_target to push the target explicitly.
8317         (procfs_attach): Don't push the target if it is already pushed.
8318         (procfs_detach): Use inf_child_maybe_unpush_target.
8319         (procfs_create_inferior): Don't push the target if it is already
8320         pushed.
8321         (nto_native_ops): New global.
8322         (procfs_open): Reimplement.
8323         (procfs_native_open): New function.
8324         (init_procfs_targets): Install procfs_native_open as to_open of
8325         "target native".  Store a pointer to the "native" target in
8326         nto_native_ops.
8327         * procfs.c (procfs_attach): Don't push the target if it is already
8328         pushed.
8329         (procfs_detach): Use inf_child_maybe_unpush_target.
8330         (procfs_mourn_inferior): Only unpush the target after mourning the
8331         inferior.  Use inf_child_maybe_unpush_target.
8332         (procfs_init_inferior): Don't push the target if it is already
8333         pushed.
8334         * windows-nat.c (do_initial_windows_stuff): Don't push the target
8335         if it is already pushed.
8336
8337 2014-05-21  Pedro Alves  <palves@redhat.com>
8338
8339         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8340         and "procfs" targets are now called "native" instead.
8341
8342 2014-05-21  Pedro Alves  <palves@redhat.com>
8343
8344         * go32-nat.c (go32_open): Delete.
8345         (go32_target): Don't override the to_open method.
8346
8347 2014-05-21  Pedro Alves  <palves@redhat.com>
8348
8349         * nto-procfs.c (procfs_can_run): New function.
8350         (nto_procfs_ops): New global.
8351         (init_procfs_targets): New, based on procfs_target.  Install
8352         "target native" in addition to "target procfs".
8353         (_initialize_procfs): Call init_procfs_targets instead of adding
8354         the target here.
8355
8356 2014-05-21  Pedro Alves  <palves@redhat.com>
8357
8358         * windows-nat.c (windows_target): Don't override to_shortname,
8359         to_longname or to_doc.
8360
8361 2014-05-21  Pedro Alves  <palves@redhat.com>
8362
8363         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8364         to_doc.
8365
8366 2014-05-21  Pedro Alves  <palves@redhat.com>
8367
8368         * darwin-nat.c (_initialize_darwin_inferior): Don't override
8369         to_shortname, to_longname or to_doc.
8370
8371 2014-05-21  Pedro Alves  <palves@redhat.com>
8372
8373         * go32-nat.c (go32_target): Don't override to_shortname,
8374         to_longname or to_doc.
8375
8376 2014-05-21  Pedro Alves  <palves@redhat.com>
8377
8378         * inf-child.c (inf_child_open): Remove mention of "child".
8379         (inf_child_target): Rename target to "native" instead of "child".
8380
8381 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8382
8383         * Makefile.in (SFILES): Delete "regset.c".
8384         (COMMON_OBS): Delete "regset.o".
8385         * regset.c: Remove.
8386         * regset.h (regset_alloc): Delete prototype.
8387
8388 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8389
8390         * sparc-linux-tdep.c (sparc32_linux_gregset)
8391         (sparc32_linux_fpregset): New static regset structures.
8392         (sparc32_linux_init_abi): Drop dynamic regset allocations.
8393         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8394         'fpregset' fields.
8395         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8396         (sparc64_linux_fpregset): New static regset structures.
8397         (sparc64_linux_init_abi): Drop dynamic regset allocations.
8398         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8399         New static regset structures.
8400         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8401         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8402         New static regset structures.
8403         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8404         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8405         New static regset structures.
8406         (sparc64obsd_init_abi): Drop dynamic regset allocations.
8407         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8408         New static regset structures.
8409         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8410
8411 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8412
8413         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8414         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8415         register maps ("regmaps") from "*regset" to "*regmap".  Do this
8416         for all regmap types and variables.
8417         * sparc-linux-tdep.c (sparc32_linux_step_trap)
8418         (sparc32_linux_supply_core_gregset)
8419         (sparc32_linux_collect_core_gregset)
8420         (sparc32_linux_supply_core_fpregset)
8421         (sparc32_linux_collect_core_fpregset): Likewise.
8422         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8423         (sparc_gregmap, sparc_fpregmap): ... these.
8424         (sparc_supply_gregset, sparc_collect_gregset)
8425         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8426         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8427         (_initialize_sparc_nat): Rename regmaps.
8428         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8429         (sparc_gregmap, sparc_fpregmap): ... these.
8430         (sparc_supply_gregset, sparc_collect_gregset)
8431         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8432         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8433         Rename macros to...
8434         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8435         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8436         Likewise.
8437         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8438         Rename to...
8439         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8440         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8441         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8442         regmaps.
8443         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8444         (sparc32_bsd_fpregset): Rename to...
8445         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8446         (sparc32_bsd_fpregmap): ... these.
8447         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8448         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8449         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8450         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8451         (struct sparc_gregmap, struct sparc_fpregmap)
8452         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8453         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8454         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8455         (sparc32_supply_regset, sparc32_collect_gregset)
8456         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8457         prototypes.
8458         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8459         (sparc64_linux_ptrace_gregmap): ... this.
8460         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8461         (_initialize_sparc64_linux_nat): Rename regmaps.
8462         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8463         (sparc64_linux_core_gregmap): ... this.
8464         (sparc64_linux_supply_core_gregset)
8465         (sparc64_linux_collect_core_gregset)
8466         (sparc64_linux_supply_core_fpregset)
8467         (sparc64_linux_collect_core_fpregset): Rename regmaps.
8468         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8469         (sparc64_sol2_fpregset): Rename to...
8470         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8471         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8472         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8473         regmaps.
8474         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8475         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8476         (sparc64_bsd_fpregset): Rename to...
8477         (struct sparc_gregmap, sparc64_sol2_gregmap)
8478         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8479         (sparc64_bsd_fpregmap): ... these.
8480         (sparc64_supply_gregset, sparc64_collect_gregset)
8481         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8482         prototypes.
8483         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8484         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8485         (sparc64fbsd_gregmap): ... this.
8486         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8487         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8488         Rename regmaps.
8489         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8490         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8491         (sparc64nbsd_collect_fpregset): Likewise.
8492         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8493         (sparc64nbsd_gregmap): ... this.
8494         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8495         regmaps.
8496         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8497         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8498         (sparc64obsd_gregmap): ... this.
8499         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8500         regmaps.
8501         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8502         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8503         (sparc32nbsd_gregmap): ... this.
8504         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8505         regmaps.
8506
8507 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8508
8509         * score-tdep.c (score7_linux_gregset): New static regset
8510         structure.
8511         (score7_linux_regset_from_core_section): Remove dynamic regset
8512         allocation.
8513         (score_gdbarch_init): Drop allocation of tdep structure.
8514         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8515
8516 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8517
8518         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8519         regset structures.
8520         (am33_regset_from_core_section): Remove dynamic regset
8521         allocations.
8522
8523 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8524
8525         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8526         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8527         structures.
8528         (mips_linux_regset_from_core_section): Remove dynamic regset
8529         allocations.
8530         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8531         'gregset64', 'fpregset', and 'fpregset64'.
8532         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8533         deleted tdep fields.
8534
8535 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8536
8537         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8538         regset structures.
8539         (amd64_regset_from_core_section): Remove dynamic regset
8540         allocations.
8541         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8542         structure.
8543         (amd64obsd_regset_from_core_section): Remove dynamic regset
8544         allocation.
8545         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8546         Likewise.
8547         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8548         x86-common regset supply function.
8549         * i386-tdep.c (i386_collect_gregset): Make static.
8550         (i386_gregset): New global regset structure.
8551         (i386_fpregset, i386_xstateregset): New static regset structures.
8552         (i386_regset_from_core_section): Remove dynamic regset
8553         allocations.
8554         (i386_gdbarch_init): Remove initialization of tdep fields
8555         'gregset', 'fpregset', and 'xstateregset'.
8556         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8557         'fpregset', and 'xstateregset'.
8558         (i386_collect_gregset): Remove prototype.
8559         (i386_gregset): New declaration.
8560         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8561         structure.
8562         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8563         allocation.
8564
8565 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8566
8567         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8568         (arm_linux_vfpregset): New static regset structures.
8569         (arm_linux_regset_from_core_section): Remove dynamic allocation of
8570         regset structures.
8571         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8572         and 'vfpregset' fields.
8573
8574 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8575
8576         * aarch64-linux-tdep.c (aarch64_linux_gregset)
8577         (aarch64_linux_fpregset): New static regset structures.
8578         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8579         of regset structures.
8580         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8581         'fpregset' fields.
8582
8583 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8584
8585         * regset.h (struct regset): Remove gdbarch field.
8586         * regset.c (regset_alloc): Drop initialization of gdbarch field.
8587         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8588         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8589         Likewise.
8590         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8591         (ppc32_linux_fpregset, ppc32_linux_vrregset)
8592         (ppc32_linux_vsxregset): Likewise.
8593         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8594         via the regcache instead of the regset.
8595         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8596         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8597         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8598         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8599         Likewise.
8600
8601 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8602
8603         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8604         Constify structures.
8605         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8606         (alphanbsd_aout_gregset): Likewise.
8607         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8608         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8609         Likewise.
8610         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8611         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8612         Likewise.
8613         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8614         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8615         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8616         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8617         * m88k-tdep.c (m88k_gregset): Likewise.
8618         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8619         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8620         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8621         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8622         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8623         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8624         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8625         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8626         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8627         Likewise.
8628         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8629         * sh-tdep.h (sh_corefile_gregset): Likewise.
8630         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8631         * vax-tdep.c (vax_gregset): Likewise.
8632
8633 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8634
8635         Fix TLS access for -static -pthread.
8636         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8637         (try_thread_db_load_1): Initialize it.
8638         (thread_db_get_thread_local_address): Call it if LM is zero.
8639         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8640         * target.h (struct target_ops) (to_get_thread_local_address): Add
8641         load_module_addr comment.
8642
8643 2014-05-21  Pedro Alves  <palves@redhat.com>
8644
8645         * dcache.c (dcache_read_memory_partial): If reading the cache line
8646         fails, fallback to reading just the memory the caller wanted.
8647
8648 2014-05-20  Doug Evans  <dje@google.com>
8649
8650         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8651         instead of get_current_arch.
8652
8653 2014-05-20  Pedro Alves  <palves@redhat.com>
8654
8655         * NEWS: Mention that compare-sections now works with all targets.
8656
8657         * remote.c (PACKET_qCRC): New enum value.
8658         (remote_verify_memory): Don't send qCRC if the target has no
8659         execution.  Use packet_support/packet_ok.  If the target doesn't
8660         support the qCRC packet, fallback to a deep memory copy.
8661         (compare_sections_command): Say "target image" instead of "remote
8662         executable".
8663         (_initialize_remote): Add PACKET_qCRC to the list of config
8664         packets that have no associated command.  Extend comment.
8665         * target.c (simple_verify_memory, default_verify_memory): New
8666         function.
8667         * target.h (struct target_ops) <to_verify_memory>: Default to
8668         default_verify_memory.
8669         (simple_verify_memory): New declaration.
8670         * target-delegates.c: Regenerate.
8671
8672 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
8673
8674         * record-btrace.c (record_btrace_step_thread): Check for empty history.
8675
8676 2014-05-20  Hui Zhu  <hui@codesourcery.com>
8677             Yao Qi  <yao@codesourcery.com>
8678
8679         PR backtrace/16558
8680         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8681         and change address of sp and pc.
8682
8683 2014-05-19  Tom Tromey  <tromey@redhat.com>
8684
8685         * gdbtypes.c (rank_function): Use XNEWVEC.
8686         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8687
8688 2014-05-19  Doug Evans  <dje@google.com>
8689
8690         * dwarf2read.c (build_type_psymtabs_1): Renamed from
8691         build_type_unit_groups and moved closer to only caller.  Remove
8692         arguments.  All references updated.  Remove outdated .gdb_index
8693         comment.
8694         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8695         build_type_psymtabs_1.
8696
8697 2014-05-19  Doug Evans  <dje@google.com>
8698
8699         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8700         n_type_unit_groups, all_type_unit_groups.  All uses removed.
8701         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8702         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
8703         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
8704         (add_type_unit_group_to_table): Delete.
8705
8706 2014-05-19  Doug Evans  <dje@google.com>
8707
8708         * eval.c (evaluate_subexp_standard): Add some comments.
8709
8710 2014-05-17  Doug Evans  <xdje42@gmail.com>
8711
8712         * progspace.c (remove_program_space): Delete, unused.
8713         * progspace.h (remove_program_space): Ditto.
8714
8715 2014-05-17  Doug Evans  <xdje42@gmail.com>
8716
8717         * inferior.c (prune_inferiors): Fix comment.
8718         (remove_inferior_command): Call prune_program_spaces.
8719
8720 2014-05-16  Doug Evans  <dje@google.com>
8721
8722         New command line option -D.
8723         * NEWS: Mention it.
8724         * main.c (set_gdb_data_directory): New function.
8725         (captured_main): Recognize -D.  Flag error for --data-directory "".
8726         Call set_gdb_data_directory.
8727         (print_gdb_help): Print --data-directory, -D.
8728         * main.h (set_gdb_data_directory): Declare.
8729         * top.c (staged_gdb_datadir): New static global.
8730         (set_gdb_datadir): Call set_gdb_data_directory
8731         (show_gdb_datadir): New function.
8732         (init_main): Update init of data-directory parameter.
8733
8734 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
8735
8736         Import the "dirfd" gnulib module.
8737         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8738         * gnulib/aclocal.m4: Update.
8739         * gnulib/config.in: Update.
8740         * gnulib/configure: Update.
8741         * gnulib/import/Makefile.am: Update.
8742         * gnulib/import/Makefile.in: Update.
8743         * gnulib/import/dirfd.c: New.
8744         * gnulib/import/m4/dirfd.m4: New.
8745         * gnulib/import/m4/gnulib-cache.m4: Update.
8746         * gnulib/import/m4/gnulib-comp.m4: Update.
8747
8748 2014-05-16  Pierre Muller  <muller@sourceware.org>
8749             Yao Qi  <yao@codesourcery.com>
8750
8751         * valprint.c (print_wchar): Move the code on checking whether
8752         W is a printable wide char to the default branch of switch
8753         statement below.  Call wchar_printable instead of gdb_iswprint.
8754
8755 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
8756
8757         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8758         ldr.w and ldrd instructions.
8759
8760 2014-05-15  Doug Evans  <dje@google.com>
8761
8762         * dwarf2read.c (read_structure_type): Delete outdated comments.
8763
8764 2014-05-14  Tom Tromey  <tromey@redhat.com>
8765
8766         * macrocmd.c (print_macro_definition): Reindent.
8767
8768 2014-05-13  Doug Evans  <xdje42@gmail.com>
8769
8770         * python/py-cmd.c (cmdpy_completer): Add comment.
8771         (completers): Make const.
8772
8773 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
8774
8775         * infrun.c (resume): Remove should_resume (unused).  Move up
8776         declaration of resume_ptid.
8777
8778 2014-05-13  Tom Tromey  <tromey@redhat.com>
8779
8780         * language.h (unop_type_check): Remove.
8781         (binop_type_check): Don't declare.
8782
8783 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
8784
8785         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8786         call to regcache_raw_collect.
8787
8788 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
8789
8790         * mi/mi-console.c (mi_console_raw_packet): Use the value from
8791         mi_console->quote as the quoting character.
8792
8793 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
8794
8795         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8796
8797 2014-04-29  Tom Tromey  <tromey@redhat.com>
8798
8799         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8800         "show debug varobj".
8801
8802 2014-05-07  Kyle McMartin  <kyle@redhat.com>
8803
8804         Pushed by Joel Brobecker  <brobecker@adacore.com>.
8805         * aarch64-tdep.c (aarch64_software_single_step): New function.
8806         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8807         with aarch64_software_single_step.
8808
8809 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
8810
8811         GDB 7.7.1 released.
8812
8813 2014-05-05  Keith Seitz  <keiths@redhat.com>
8814
8815         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8816         variable or history value is successfully parsed.
8817
8818 2014-05-05  Yao Qi  <yao@codesourcery.com>
8819             Pedro Alves  <palves@redhat.com>
8820
8821         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8822         address of blocks that intersects the requested range.  Trim
8823         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8824         sections.
8825         * ctf.c (ctf_xfer_partial): Likewise.
8826
8827 2014-05-05  Yao Qi  <yao@codesourcery.com>
8828
8829         * printcmd.c (display_command): Remove the check to
8830         target_has_execution.
8831
8832 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
8833
8834         * ppcobsd-nat.c: Include "obsd-nat.h".
8835         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8836         add_target.
8837         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8838
8839 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
8840
8841         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8842         and 16-bit signed and unsigned arguments.  Update comment.
8843         (stap_parse_probe_arguments): Extend code to handle such
8844         arguments.  Use warning instead of complaint to notify about
8845         unrecognized bitness.
8846
8847 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
8848
8849         PR breakpoints/16889
8850         * stap-probe.c (stap_parse_probe_arguments): Simplify
8851         check for non-prefixed probes (i.e., probes whose
8852         arguments do not start with "N@").  Always set the
8853         argument type to a sane value.
8854
8855 2014-05-01  David Taylor  <dtaylor@emc.com>
8856
8857         * remote.c (compare_sections_command): Add -r option to compare
8858         all loadable read-only sections.
8859
8860 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
8861
8862         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8863         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8864         Update all callers.
8865         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8866         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8867         Remove unused CORE_ADDR argument.  Update all callers.
8868
8869 2014-04-29  Pedro Alves  <palves@redhat.com>
8870
8871         * remote.c (struct packet_config) <detect>: Extend comment.
8872         (add_packet_config_cmd): Don't set the config's detect or support
8873         fields here.
8874         (init_all_packet_configs): Also initialize the config's 'detect'
8875         field.
8876         (reset_all_packet_configs_support): New function.
8877         (remote_open_1): Call reset_all_packet_configs_support instead of
8878         init_all_packet_configs.
8879         (_initialize_remote): Initialize all packet configs.  Assert that
8880         all packets have an associated command, except a few known
8881         outliers.
8882
8883 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8884
8885         * dwarf2read.c (read_subrange_type): Handle dynamic
8886         DW_AT_lower_bound attributes.
8887
8888 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8889
8890         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8891         dynamic bounds before computing its upper bound.
8892         (ada_discrete_type_low_bound): Same as above with the lower bound.
8893
8894 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8895
8896         * dwarf2read.c (is_dynamic_type): Return true for dynamic
8897         range types.  Adjust the array handling implementation to
8898         take advantage of this change.
8899         (resolve_dynamic_range): New function, mostly extracted from
8900         resolve_dynamic_bounds.
8901         (resolve_dynamic_array): New function, mostly extracted from
8902         resolve_dynamic_bounds.
8903         (resolve_dynamic_bounds): Delete.
8904         (resolve_dynamic_type): Reimplement.  Add handling of
8905         TYPE_CODE_RANGE types.
8906
8907 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8908
8909         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8910         handling of parallel ___XA types.
8911
8912 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8913
8914         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8915         unnecessary second call to static_unwrap_type.
8916
8917 2014-04-27  Hui Zhu  <hui@codesourcery.com>
8918
8919         * stack.c (print_frame_info): Call do_gdb_disassembly with
8920         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8921
8922 2014-04-26  Doug Evans  <xdje42@gmail.com>
8923
8924         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8925
8926 2014-04-25  Pedro Alves  <palves@redhat.com>
8927
8928         PR server/16255
8929         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8930         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
8931         and newline from built string.
8932         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8933         (linux_ptrace_attach_fail_reason): ... this.
8934         * linux-nat.c (linux_nat_attach): Adjust to use
8935         linux_ptrace_attach_fail_reason.
8936
8937 2014-04-25  Pedro Alves  <palves@redhat.com>
8938
8939         * remote.c (struct remote_state): Remove multi_process_aware,
8940         non_stop_aware, cond_tracepoints, cond_breakpoints,
8941         breakpoint_commands, fast_tracepoints, static_tracepoints,
8942         install_in_trace, disconnected_tracing,
8943         enable_disable_tracepoints, string_tracing, and
8944         augmented_libraries_svr4_read fields.
8945         (remote_multi_process_p): Move further below in the file.
8946         (struct packet_config): Add comments.
8947         (update_packet_config): Delete function.
8948         (show_packet_config_cmd): Use packet_config_support.
8949         (add_packet_config_cmd): Use NULL as set callback.
8950         (packet_ok): "set remote foo-packet"-style commands no longer
8951         change config->supported -- adjust.
8952         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8953         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8954         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8955         (PACKET_QNonStop, PACKET_multiprocess_feature)
8956         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8957         (PACKET_DisconnectedTracing_feature)
8958         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8959         (set_remote_protocol_packet_cmd): Delete function.
8960         (packet_config_support, packet_support): New functions.
8961         (set_remote_protocol_Z_packet_cmd): Don't call
8962         update_packet_config.
8963         (remote_query_attached, remote_pass_signals)
8964         (remote_program_signals, remote_threads_info)
8965         (remote_threads_extra_info, remote_start_remote): Use
8966         packet_support.
8967         (remote_start_remote): Use packet_config_support and
8968         packet_support.
8969         (init_all_packet_configs): Set all packets to unknown support,
8970         instead of calling update_packet_config.
8971         (remote_check_symbols): Use packet_support.
8972         (remote_supported_packet): Unconditionally set the packet config's
8973         support status.
8974         (remote_multi_process_feature, remote_non_stop_feature)
8975         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8976         (remote_breakpoint_commands_feature)
8977         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8978         (remote_install_in_trace_feature)
8979         (remote_disconnected_tracing_feature)
8980         (remote_enable_disable_tracepoint_feature)
8981         (remote_string_tracing_feature)
8982         (remote_augmented_libraries_svr4_read_feature): Delete functions.
8983         (remote_protocol_features): Adjust to use remote_supported_packet
8984         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8985         "ConditionalTracepoints", "ConditionalBreakpoints",
8986         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8987         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8988         "EnableDisableTracepoints", and "tracenz".
8989         (remote_query_supported): Use packet_support.
8990         (remote_open_1): Adjust.
8991         (extended_remote_attach_1): Use packet_support.  Switch on the
8992         result of packet_ok instead of checking whether the packet ended
8993         up disabled.
8994         (remote_vcont_resume): Use packet_support.
8995         (remote_resume, remote_stop_ns, fetch_register_using_p)
8996         (remote_prepare_to_store, store_register_using_P)
8997         (check_binary_download, remote_write_bytes): Use packet_support.
8998         (remote_vkill): Use packet_support.  Switch on the result of
8999         packet_ok instead of checking whether the packet ended up
9000         disabled.
9001         (extended_remote_supports_disable_randomization): Use
9002         packet_support.
9003         (extended_remote_run): Switch on the result of packet_ok instead
9004         of checking whether the packet ended up disabled.
9005         (remote_insert_breakpoint, remote_remove_breakpoint)
9006         (remote_insert_watchpoint, remote_remove_watchpoint)
9007         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
9008         packet_support.
9009         (remote_search_memory): Use packet_config_support.
9010         (remote_get_thread_local_address, remote_get_tib_address)
9011         (remote_hostio_send_command, remote_can_execute_reverse): Use
9012         packet_support.
9013         (remote_supports_cond_tracepoints)
9014         (remote_supports_cond_breakpoints)
9015         (remote_supports_fast_tracepoints)
9016         (remote_supports_static_tracepoints)
9017         (remote_supports_install_in_trace)
9018         (remote_supports_enable_disable_tracepoint)
9019         (remote_supports_string_tracing)
9020         (remote_can_run_breakpoint_commands): Rewrite, checking whether
9021         the packet config says the feature is enabled or disabled.
9022         (remote_download_tracepoint, remote_trace_set_readonly_regions)
9023         (remote_get_trace_status): Use packet_support.
9024         (remote_set_disconnected_tracing): Adjust to check whether the
9025         feature is enabled with packet_support.
9026         (remote_set_trace_buffer_size, remote_use_agent)
9027         (remote_can_use_agent, remote_supports_btrace): Use
9028         packet_support.
9029         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
9030         Use packet_config_support.
9031         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
9032         the packet config says the feature is enabled or disabled.
9033         (set_range_stepping): Use packet_support.
9034
9035 2014-04-25  Tom Tromey  <tromey@redhat.com>
9036
9037         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
9038         argument.
9039
9040 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
9041
9042         * NEWS: Mention support for C99 variable length arrays.
9043
9044 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
9045
9046         * ada-lang.c (standard_exc): Expand introductory comment.
9047
9048 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
9049             Walfred Tedeschi  <walfred.tedeschi@intel.com>
9050
9051         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
9052         AVX512 registers.
9053         (amd64_linux_read_description): Add code to handle AVX512 xstate
9054         mask and return respective tdesc.
9055         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
9056         and features/i386/x32-avx512-linux.c.
9057         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
9058         (amd64_linux_core_read_description): Add code to handle AVX512
9059         xstate mask and return respective tdesc.
9060         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
9061         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
9062         calculation.
9063         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
9064         (tdesc_amd64_avx512_linux): New prototype.
9065         (tdesc_x32_avx512_linux): Likewise.
9066         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
9067         features/i386/x32-avx512.c.
9068         (amd64_ymm_avx512_names): New register names for pseudo
9069         registers YMM16-31.
9070         (amd64_ymmh_avx512_names): New register names for raw registers
9071         YMMH16-31.
9072         (amd64_k_names): New register names for K registers.
9073         (amd64_zmmh_names): New register names for ZMM raw registers.
9074         (amd64_zmm_names): New registers names for ZMM pseudo registers.
9075         (amd64_xmm_avx512_names): New register names for XMM16-31
9076         registers.
9077         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
9078         registers.
9079         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
9080         if feature is present.
9081         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
9082         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
9083         (AMD64_NUM_REGS): Adjust to new number of registers.
9084         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
9085         registers supplied via XSTATE by AVX512 registers.
9086         (i386_linux_read_description): Add case for AVX512.
9087         * i386-linux-tdep.c: Include i386-avx512-linux.c.
9088         (i386_linux_gregset_reg_offset): Add AVX512 registers.
9089         (i386_linux_core_read_description): Add case for AVX512.
9090         (i386_linux_init_abi): Install supported register note section
9091         for AVX512.
9092         (_initialize_i386_linux_tdep): Add call to tdesc init function for
9093         AVX512.
9094         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
9095         registers to be number of zmm7h + 1.
9096         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
9097         * i386-tdep.c: Include features/i386/i386-avx512.c.
9098         (i386_zmm_names): Add ZMM pseudo register names array.
9099         (i386_zmmh_names): Add ZMM raw register names array.
9100         (i386_k_names): Add K raw register names array.
9101         (num_lower_zmm_regs): Add constant for the number of lower ZMM
9102         registers. AVX512 has 16 more ZMM registers than there are YMM
9103         registers.
9104         (i386_zmmh_regnum_p): Add function to look up register number of
9105         ZMM raw registers.
9106         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
9107         (i386_k_regnum_p): Likewise for K raw registers.
9108         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
9109         registers added by AVX512.
9110         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
9111         registers added by AVX512.
9112         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
9113         added by AVX512.
9114         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
9115         (i386_pseudo_register_name): Add ZMM pseudo registers.
9116         (i386_zmm_type): Construct and return vector registers type for ZMM
9117         registers.
9118         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
9119         ZMM0-31 pseudo registers and K registers.
9120         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
9121         and YMM16-31 registers from register cache.
9122         (i386_pseudo_register_write): Add code to write  K, ZMM and
9123         YMM16-31 registers.
9124         (i386_register_reggroup_p): Add code to include/exclude AVX512
9125         registers in/from respective register groups.
9126         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
9127         registers if feature is present in xcr0.
9128         (i386_gdbarch_init): Add code to initialize AVX512 feature
9129         variables in tdep structure, wire in pseudo registers and call
9130         initialize_tdesc_i386_avx512.
9131         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
9132         variables.
9133         (i386_regnum): Add AVX512 registers.
9134         (I386_SSE_NUM_REGS): New define for number of SSE registers.
9135         (I386_AVX_NUM_REGS): Likewise for AVX registers.
9136         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
9137         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
9138         512 bits wide.
9139         (i386_xmm_avx512_regnum_p): New prototype for register look up.
9140         (i386_ymm_avx512_regnum_p): Likewise.
9141         (i386_k_regnum_p): Likewise.
9142         (i386_zmm_regnum_p): Likewise.
9143         (i386_zmmh_regnum_p): Likewise.
9144         * i387-tdep.c : Update year in copyright notice.
9145         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
9146         XSAVE buffer.
9147         (XSAVE_YMM_AVX512_ADDR): New macro.
9148         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
9149         XSAVE buffer.
9150         (XSAVE_XMM_AVX512_ADDR): New macro.
9151         (xsave_avx512_k_offset): New table for K register offsets in
9152         XSAVE buffer.
9153         (XSAVE_AVX512_K_ADDR): New macro.
9154         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
9155         in XSAVE buffer.
9156         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
9157         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
9158         buffer.
9159         (i387_collect_xsave): Add code to collect AVX512 registers from
9160         XSAVE buffer.
9161         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
9162         of XMM16-31 registers.
9163         (I387_NUM_K_REGS): New define for number of K registers.
9164         (I387_K0_REGNUM): New define for K0 register number.
9165         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
9166         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
9167         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
9168         registers.
9169         (I387_YMM16H_REGNUM): New define for YMM16H register number.
9170         (I387_XMM16_REGNUM): New define for XMM16 register number.
9171         (I387_YMM0_REGNUM): New define for YMM0 register number.
9172         (I387_KEND_REGNUM): New define for last K register number.
9173         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9174         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9175         number.
9176         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9177         number.
9178         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9179         size.
9180         * features/Makefile: Add AVX512 related files.
9181         * features/i386/32bit-avx512.xml: New file.
9182         * features/i386/64bit-avx512.xml: Likewise.
9183         * features/i386/amd64-avx512-linux.c: Likewise.
9184         * features/i386/amd64-avx512-linux.xml: Likewise.
9185         * features/i386/amd64-avx512.c: Likewise.
9186         * features/i386/amd64-avx512.xml: Likewise.
9187         * features/i386/i386-avx512-linux.c: Likewise.
9188         * features/i386/i386-avx512-linux.xml: Likewise.
9189         * features/i386/i386-avx512.c: Likewise.
9190         * features/i386/i386-avx512.xml: Likewise.
9191         * features/i386/x32-avx512-linux.c: Likewise.
9192         * features/i386/x32-avx512-linux.xml: Likewise.
9193         * features/i386/x32-avx512.c: Likewise.
9194         * features/i386/x32-avx512.xml: Likewise.
9195         * regformats/i386/amd64-avx512-linux.dat: New file.
9196         * regformats/i386/amd64-avx512.dat: Likewise.
9197         * regformats/i386/i386-avx512-linux.dat: Likewise.
9198         * regformats/i386/i386-avx512.dat: Likewise.
9199         * regformats/i386/x32-avx512-linux.dat: Likewise.
9200         * regformats/i386/x32-avx512.dat: Likewise.
9201         * NEWS: Add note about new support for AVX512.
9202
9203
9204 2014-04-23  Pedro Alves  <palves@redhat.com>
9205
9206         * breakpoint.c (insert_bp_location): Tolerate errors if the
9207         breakpoint is set in a user-loaded objfile.
9208         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
9209         location is marked shlib_disabled.  If the breakpoint is set in a
9210         user-loaded objfile is a GDB-side memory breakpoint, validate it
9211         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
9212         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
9213         flag.
9214         * mem-break.c (memory_validate_breakpoint): New function.
9215         * objfiles.c (userloaded_objfile_contains_address_p): New
9216         function.
9217         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9218         * target.h (memory_validate_breakpoint): New declaration.
9219
9220 2014-04-23  Pedro Alves  <palves@redhat.com>
9221
9222         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9223         the breakpoint is set in a shared library, only suppress
9224         errors for software breakpoints, not hardware breakpoints.
9225
9226 2014-04-22  Pedro Alves  <palves@redhat.com>
9227
9228         * infrun.c (schedlock_applies): New function, factored out from
9229         find_thread_needs_step_over.
9230         (find_thread_needs_step_over): Use it.
9231         (switch_back_to_stepped_thread): Always clear trap_expected if the
9232         step over is finished.  Return early if scheduler locking applies.
9233         Look for the stepping thread and a potential step-over thread with
9234         a single loop.
9235         (currently_stepping_or_nexting_callback): Delete.
9236
9237 2014-04-22  Nick Clifton  <nickc@redhat.com>
9238
9239         * NEWS: Mention that ARM sim now supports tracing.
9240
9241 2014-04-22  Yao Qi  <yao@codesourcery.com>
9242
9243         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9244         to ...
9245         * tracefile.c (tracefile_fetch_registers): ... it.  New
9246         function.
9247         * tracefile.h (tracefile_fetch_registers): Declare.
9248         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
9249         tracefile_fetch_registers.
9250
9251 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
9252
9253         PR gdb/14018
9254         * windows-nat.c (thread_rec): Don't display a warning when
9255         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
9256         fails for any reason, set th->suspended to -1, so that we don't
9257         try to resume such a thread.  Also, don't return NULL in these
9258         cases, to avoid completely ruin the session due to "PC register is
9259         not available" error.
9260         (do_windows_fetch_inferior_registers): Check errors in
9261         GetThreadContext call.
9262         (windows_continue): Accept an additional argument KILLED; if not
9263         zero, ignore errors in the SetThreadContext call, since the
9264         inferior was killed and is shutting down.
9265         (windows_resume, get_windows_debug_event)
9266         (windows_create_inferior, windows_mourn_inferior)
9267         (windows_kill_inferior): All callers of windows_continue changed
9268         to adjust to its new calling sequence.
9269
9270 2014-04-19  Yao Qi  <yao@codesourcery.com>
9271
9272         * ctf.c (ctf_open): Call post_create_inferior.
9273
9274 2014-04-19  Yao Qi  <yao@codesourcery.com>
9275
9276         * ctf.c (handle_id): New static variable.
9277         (ctf_open_dir): Get handle_id from bt_context_add_trace return
9278         value.  Get the declaration of event "register" and get length
9279         of field "contents".
9280
9281 2014-04-19  Yao Qi  <yao@codesourcery.com>
9282
9283         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9284
9285 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
9286
9287         * valops.c (oload_method_static): Remove unnecessary argument
9288         METHOD.  Update all callers.
9289
9290 2014-04-18  Pedro alves  <palves@redhat.com>
9291             Tom Tromey  <tromey@redhat.com>
9292
9293         PR backtrace/15558
9294         * frame.c (get_prev_frame_1): Rename to ...
9295         (get_prev_frame_always): ... this, and make extern.  Adjust.
9296         (skip_artificial_frames): Use get_prev_frame_always.
9297         (frame_unwind_caller_id, frame_pop, get_prev_frame)
9298         (get_frame_unwind_stop_reason): Adjust to rename.
9299         * frame.h (get_prev_frame_always): Declare.
9300         * inline-frame.c: Include frame.h.
9301         (inline_frame_this_id): Use get_prev_frame_always.
9302
9303 2014-04-18  Tristan Gingold  <gingold@adacore.com>
9304
9305         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9306         code by using bfd_mach_o_get_base_address.
9307
9308 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
9309
9310         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9311         (spu_ax_pseudo_register_collect): New function.
9312         (spu_ax_pseudo_register_push_stack): Likewise.
9313         (spu_dwarf_reg_to_regnum): Likewise.
9314         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
9315
9316 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
9317
9318         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9319         Replace FRAME argument with FRAME_ID.
9320         * gdbarch.c, gdbarch.h: Regenerate.
9321         * findvar.c (default_value_from_register): Add GDBARCH argument;
9322         replace FRAME by FRAME_ID.  No longer call get_frame_id.
9323         (value_from_register): Update call to gdbarch_value_from_register.
9324         * value.h (default_value_from_register): Update prototype.
9325         * s390-linux-tdep.c (s390_value_from_register): Update interface
9326         and call to default_value_from_register.
9327         * spu-tdep.c (spu_value_from_register): Likewise.
9328
9329         * findvar.c (address_from_register): Remove TYPE argument.
9330         Do not call value_from_register; use gdbarch_value_from_register
9331         with null_frame_id instead.
9332         * value.h (address_from_register): Update prototype.
9333         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9334         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9335         address_from_register interface change.
9336
9337 2014-04-17  Yao Qi  <yao@codesourcery.com>
9338
9339         * gdbtypes.h: Update comments to link to types and macros'
9340         definitions.
9341
9342 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
9343
9344         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9345
9346 2014-04-16  Keith Seitz  <keiths@redhat.com>
9347
9348         PR gdb/15827
9349         * dwarf2read.c (skip_one_die): Check that all relative-offset
9350         sibling DIEs fall within range of the current reader's buffer.
9351         (read_partial_die): Likewise.
9352
9353 2014-04-16  Keith Seitz  <keiths@redhat.com>
9354
9355         PR c++/16597
9356         * cp-namespace.c (lookup_symbol_file): If the type name of
9357         `this' is NULL, return immediately.
9358
9359 2014-04-14  Keith Seitz  <keiths@redhat.com>
9360
9361         PR c++/16253
9362         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9363         from symbol_matches_domain in symtab.c. All local callers
9364         of symbol_matches_domain updated.
9365         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9366         search STRUCT_DOMAIN.
9367         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9368         independently.  standard_lookup will do that automatically.
9369         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9370         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9371         (cp_lookup_symbol_in_namespace): Likewise.
9372         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9373         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9374         may return a STRUCT_DOMAIN match.
9375         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9376         * cp-support.c: Include language.h.
9377         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9378         VAR_DOMAIN.
9379         * psymtab.c (match_partial_symbol): Compare the requested
9380         domain with the symbol's domain directly.
9381         (lookup_partial_symbol): Likewise.
9382         * symtab.c (lookup_symbol_in_language): Explain when/why
9383         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9384         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9385         appropriate languages.
9386         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9387         and moved to ada-lang.c
9388         (lookup_block_symbol): Explain that this function only returns
9389         symbol matching the requested DOMAIN.
9390         Compare the requested domain with the symbol's domain directly.
9391         (iterate_over_symbols): Compare the requested domain with the
9392         symbol's domain directly.
9393         * symtab.h (symbol_matches_domain): Remove.
9394
9395 2014-04-14  Tom Tromey  <tromey@redhat.com>
9396
9397         PR c++/15246:
9398         * c-exp.y (type_aggregate_p): New function.
9399         (qualified_name, classify_inner_name): Use it.
9400         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9401         and TYPE_TARGET_TYPE of an enum type.
9402         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9403         an enum type.
9404         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9405         handle TYPE_DECLARED_CLASS.
9406         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9407         types.
9408         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9409         * valops.c (enum_constant_from_type): New function.
9410         (value_aggregate_elt): Use it.
9411         * cp-namespace.c (cp_lookup_nested_symbol): Handle
9412         TYPE_CODE_ENUM.
9413
9414 2014-04-14  Tom Tromey  <tromey@redhat.com>
9415
9416         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9417         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9418         const.
9419         * value.h (value_aggregate_elt): Update.
9420
9421 2014-04-14  Tom Tromey  <tromey@redhat.com>
9422
9423         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9424
9425 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9426
9427         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9428         (evaluate_subexp_standard): Pass noside argument.
9429         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9430         if noside equals EVAL_NORMAL. If the subscript yields a vla type
9431         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9432         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9433         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9434
9435 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9436
9437         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9438         points to a constant blob.
9439
9440 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9441
9442         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9443         property and store it as the high bound and flag the range accordingly.
9444         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9445         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9446         * gdbtypes.h (enum range_flags): New enum.
9447         (struct range_bounds): Add flags member.
9448
9449 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9450
9451         * c-typeprint.c (c_type_print_varspec_suffix): Added
9452         check for not yet resolved high bound. If unresolved, print
9453         "variable length" string to the console instead of random
9454         length.
9455
9456 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9457
9458         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9459         value.
9460         (ada_template_to_fixed_record_type_1): Likewise.
9461         (ada_to_fixed_type_1): Likewise.
9462         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9463         (cp_print_value): Likewise.
9464         * d-valprint.c (dynamic_array_type): Likewise.
9465         * findvar.c (address_of_variable): Likewise.
9466         * jv-valprint.c (java_value_print): Likewise.
9467         * valops.c (value_ind): Likewise.
9468         * value.c (coerce_ref): Likewise.
9469
9470 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9471
9472         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9473         value and retrieve the dynamic type size.
9474
9475 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9476
9477         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9478         passed to sizeof is dynamic evaluate the argument to compute the length.
9479
9480 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9481             Joel Brobecker  <brobecker@adacore.com>
9482
9483         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9484         (dwarf2_evaluate_property): New function.
9485         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9486         * dwarf2read.c (attr_to_dynamic_prop): New function.
9487         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9488         attribute.
9489         * gdbtypes.c: Include dwarf2loc.h.
9490         (is_dynamic_type): New function.
9491         (resolve_dynamic_type): New function.
9492         (resolve_dynamic_bounds): New function.
9493         (get_type_length): New function.
9494         (check_typedef): Use get_type_length to compute type length.
9495         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9496         (TYPE_LOW_BOUND_KIND): New macro.
9497         (is_dynamic_type): New function prototype.
9498         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9499         to resolve dynamic properties of the type. Update comment.
9500         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9501
9502 2014-04-14  Richard Henderson  <rth@redhat.com>
9503
9504         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9505
9506 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
9507             Doug Evans  <xdje42@gmail.com>
9508
9509         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9510         dereference TYPE_CODE_REF values.
9511
9512 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
9513
9514         Revert the following changes due to regressions:
9515
9516         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9517         (dwarf2_evaluate_property): New function.
9518         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9519         * dwarf2read.c (attr_to_dynamic_prop): New function.
9520         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9521         attribute.
9522         * gdbtypes.c: Include dwarf2loc.h.
9523         (is_dynamic_type): New function.
9524         (resolve_dynamic_type): New function.
9525         (resolve_dynamic_bounds): New function.
9526         (get_type_length): New function.
9527         (check_typedef): Use get_type_length to compute type length.
9528         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9529         (TYPE_LOW_BOUND_KIND): New macro.
9530         (is_dynamic_type): New function prototype.
9531         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9532         to resolve dynamic properties of the type. Update comment.
9533         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9534
9535         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9536         passed to sizeof is dynamic evaluate the argument to compute the length.
9537
9538         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9539         value and retrieve the dynamic type size.
9540
9541         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9542         (ada_template_to_fixed_record_type_1): Likewise.
9543         (ada_to_fixed_type_1): Likewise.
9544         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9545         (cp_print_value): Likewise.
9546         * d-valprint.c (dynamic_array_type): Likewise.
9547         * eval.c (evaluate_subexp_with_coercion): Likewise.
9548         * findvar.c (address_of_variable): Likewise.
9549         * jv-valprint.c (java_value_print): Likewise.
9550         * valops.c (value_ind): Likewise.
9551         * value.c (coerce_ref): Likewise.
9552
9553         * c-typeprint.c (c_type_print_varspec_suffix): Added
9554         check for not yet resolved high bound. If unresolved, print
9555         "variable length" string to the console instead of random
9556         length.
9557
9558         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9559         property and store it as the high bound and flag the range accordingly.
9560         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9561         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9562         * gdbtypes.h (enum range_flags): New enum.
9563         (struct range_bounds): Add flags member.
9564
9565         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9566         points to a constant blob.
9567
9568         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9569         (evaluate_subexp_standard): Pass noside argument.
9570         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9571         if noside equals EVAL_NORMAL. If the subscript yields a vla type
9572         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9573         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9574         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9575
9576 2014-04-11  Keith Seitz  <keiths@redhat.com>
9577
9578         PR c++/16675
9579         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9580         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9581         reference types.
9582
9583 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9584
9585         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9586         (evaluate_subexp_standard): Pass noside argument.
9587         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9588         if noside equals EVAL_NORMAL. If the subscript yields a vla type
9589         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9590         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9591         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9592
9593 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9594
9595         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9596         points to a constant blob.
9597
9598 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9599
9600         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9601         property and store it as the high bound and flag the range accordingly.
9602         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9603         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9604         * gdbtypes.h (enum range_flags): New enum.
9605         (struct range_bounds): Add flags member.
9606
9607 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9608
9609         * c-typeprint.c (c_type_print_varspec_suffix): Added
9610         check for not yet resolved high bound. If unresolved, print
9611         "variable length" string to the console instead of random
9612         length.
9613
9614 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9615
9616         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9617         (ada_template_to_fixed_record_type_1): Likewise.
9618         (ada_to_fixed_type_1): Likewise.
9619         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9620         (cp_print_value): Likewise.
9621         * d-valprint.c (dynamic_array_type): Likewise.
9622         * eval.c (evaluate_subexp_with_coercion): Likewise.
9623         * findvar.c (address_of_variable): Likewise.
9624         * jv-valprint.c (java_value_print): Likewise.
9625         * valops.c (value_ind): Likewise.
9626         * value.c (coerce_ref): Likewise.
9627
9628 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9629
9630         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9631         value and retrieve the dynamic type size.
9632
9633 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9634
9635         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9636         passed to sizeof is dynamic evaluate the argument to compute the length.
9637
9638 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9639
9640         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9641         (dwarf2_evaluate_property): New function.
9642         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9643         * dwarf2read.c (attr_to_dynamic_prop): New function.
9644         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9645         attribute.
9646         * gdbtypes.c: Include dwarf2loc.h.
9647         (is_dynamic_type): New function.
9648         (resolve_dynamic_type): New function.
9649         (resolve_dynamic_bounds): New function.
9650         (get_type_length): New function.
9651         (check_typedef): Use get_type_length to compute type length.
9652         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9653         (TYPE_LOW_BOUND_KIND): New macro.
9654         (is_dynamic_type): New function prototype.
9655         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9656         to resolve dynamic properties of the type. Update comment.
9657         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9658
9659 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9660
9661         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9662         declaring high/low bounds and change uses accordingly. Call
9663         create_range_type instead of create_static_range_type.
9664         * gdbtypes.c (create_range_type): New function.
9665         (create_range_type): Convert bounds into struct bound_prop and pass
9666         them to create_range_type.
9667         * gdbtypes.h (struct bound_prop): New struct.
9668         (create_range_type): New function prototype.
9669         (struct range_bounds): Use struct bound_prop instead of LONGEST for
9670         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9671         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9672         part of the bound.
9673         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9674
9675 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9676
9677         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9678         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9679         * ada-lang.c: All uses of create_range_type updated.
9680         * coffread.c: All uses of create_range_type updated.
9681         * dwarf2read.c: All uses of create_range_type updated.
9682         * f-exp.y: All uses of create_range_type updated.
9683         * m2-valprint.c: All uses of create_range_type updated.
9684         * mdebugread.c: All uses of create_range_type updated.
9685         * stabsread.c: All uses of create_range_type updated.
9686         * valops.c: All uses of create_range_type updated.
9687         * valprint.c: All uses of create_range_type updated.
9688
9689 2014-04-10  Pedro Alves  <palves@redhat.com>
9690
9691         * breakpoint.c (single_step_breakpoints)
9692         (single_step_gdbarch): Move up in the file.
9693         (one_breakpoint_xfer_memory): New function, factored out from ...
9694         (breakpoint_xfer_memory): ... here.  Also process single-step
9695         breakpoints.
9696
9697 2014-04-09  Tristan Gingold  <gingold@adacore.com>
9698
9699         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9700         comments.
9701         (darwin_decode_exception_message): Free port only after use.
9702
9703 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
9704
9705         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9706         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9707         when setting the size of call_length.
9708
9709 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
9710
9711         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9712         dereference TYPE_CODE_REF values.
9713
9714 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
9715
9716         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9717         end of warning message.
9718
9719 2014-04-03  Doug Evans  <dje@google.com>
9720
9721         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9722         of stub_comp_unit_die, stub_comp_dir is non-NULL.
9723
9724 2014-04-02  Alan Modra  <amodra@gmail.com>
9725
9726         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9727         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
9728         (struct symbol_file_add_from_memory_args): Add size field.
9729         (find_vdso_size): New function.
9730         (add_vsyscall_page): Attempt to find vdso size.
9731
9732 2014-04-01  Doug Evans  <dje@google.com>
9733
9734         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9735
9736 2014-04-01  Tristan Gingold  <gingold@adacore.com>
9737
9738         * darwin-nat.c (darwin_encode_reply): Add prototype.
9739         (darwin_decode_exception_message): Reply to unknown inferiors.
9740         (darwin_decode_message): Handle message by id.  Ignore message
9741         to unknown inferior.
9742         (darwin_wait): Discard unknown messages, add debug trace.
9743
9744 2014-03-31  Doug Evans  <dje@google.com>
9745
9746         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9747         comp_dir_string.
9748
9749 2014-03-31  Doug Evans  <dje@google.com>
9750
9751         New option "set print symbol-loading".
9752         * NEWS: Mention it.
9753         * solib.c (solib_read_symbols): Only print symbol loading messages
9754         if requested.
9755         (solib_add): If symbol loading is in "brief" mode, notify user
9756         symbols are being loaded.
9757         (reload_shared_libraries_1): Ditto.
9758         * symfile.c (print_symbol_loading_off): New static global.
9759         (print_symbol_loading_brief): New static global.
9760         (print_symbol_loading_full): New static global.
9761         (print_symbol_loading_enums): New static global.
9762         (print_symbol_loading): New static global.
9763         (print_symbol_loading_p): New function.
9764         (symbol_file_add_with_addrs): Only print symbol loading messages
9765         if requested.
9766         (_initialize_symfile): Register "print symbol-loading" set/show
9767         command.
9768         * symfile.h (print_symbol_loading_p): Declare.
9769
9770 2014-03-30  Doug Evans  <xdje42@gmail.com>
9771
9772         * infrun.c (set_last_target_status): New function.
9773         (handle_inferior_event): Call it.
9774
9775 2014-03-30  Doug Evans  <xdje42@gmail.com>
9776
9777         * inferior.h (enum stop_kind): Improve comment.
9778
9779 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
9780
9781         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9782         a reference, strip the reference layer before calling
9783         the lang_ops value_has_mutated callback.
9784
9785 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
9786
9787         Remove some globals from our parser.
9788         * language.c (unk_lang_parser): Add "struct parser_state"
9789         argument.
9790         * language.h (struct language_defn) <la_parser>: Likewise.
9791         * parse.c (expout, expout_size, expout_ptr): Remove variables.
9792         (initialize_expout): Add "struct parser_state" argument.
9793         Rewrite function to use the parser state.
9794         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9795         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9796         write_exp_elt_longcst, write_exp_elt_dblcst,
9797         write_exp_elt_decfloatcst, write_exp_elt_type,
9798         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9799         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9800         write_dollar_variable): Likewise.
9801         (parse_exp_in_context_1): Use parser state.
9802         (insert_type_address_space): Add "struct parser_state" argument.
9803         Use parser state.
9804         (increase_expout_size): New function.
9805         * parser-defs.h: Forward declare "struct language_defn" and
9806         "struct parser_state".
9807         (expout, expout_size, expout_ptr): Remove extern declarations.
9808         (parse_gdbarch, parse_language): Rewrite macro declarations to
9809         accept the parser state.
9810         (struct parser_state): New struct.
9811         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9812         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9813         write_exp_elt_decfloatcst, write_exp_elt_type,
9814         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9815         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9816         write_exp_msymbol, write_dollar_variable,
9817         mark_struct_expression, insert_type_address_space): Add "struct
9818         parser_state" argument.
9819         (increase_expout_size): New function.
9820         * utils.c (do_clear_parser_state): New function.
9821         (make_cleanup_clear_parser_state): Likewise.
9822         * utils.h (make_cleanup_clear_parser_state): New function
9823         prototype.
9824         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9825         Update calls to write_exp* in order to pass the parser state.
9826         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9827         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9828         (i386_stap_parse_special_token_three_arg_disp): Likewise.
9829         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9830         * stap-probe.c (stap_parse_register_operand): Likewise.
9831         (stap_parse_single_operand): Likewise.
9832         (stap_parse_argument_1): Likewise.
9833         (stap_parse_argument): Use parser state.
9834         * stap-probe.h: Include "parser-defs.h".
9835         (struct stap_parse_info) <pstate>: New field.
9836         * c-exp.y (parse_type): Rewrite to use parser state.
9837         (yyparse): Redefine to c_parse_internal.
9838         (pstate): New global variable.
9839         (parse_number): Add "struct parser_state" argument.
9840         (write_destructor_name): Likewise.
9841         (type_exp): Update calls to write_exp* and similars in order to
9842         use parser state.
9843         (exp1, exp, variable, qualified_name, space_identifier,
9844         typename, typebase): Likewise.
9845         (write_destructor_name, parse_number, lex_one_token,
9846         classify_name, classify_inner_name, c_parse): Add "struct
9847         parser_state" argument.  Update function to use parser state.
9848         * c-lang.h: Forward declare "struct parser_state".
9849         (c_parse): Add "struct parser_state" argument.
9850         * ada-exp.y (parse_type): Rewrite macro to use parser state.
9851         (yyparse): Redefine macro to ada_parse_internal.
9852         (pstate): New variable.
9853         (write_int, write_object_renaming, write_var_or_type,
9854         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9855         type_int, type_long, type_long_long, type_float, type_double,
9856         type_long_double, type_char, type_boolean, type_system_address):
9857         Add "struct parser_state" argument.
9858         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9859         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9860         var_or_type, aggregate, aggregate_component_list,
9861         positional_list, others, component_group,
9862         component_associations): Update calls to write_exp* and similar
9863         functions in order to use parser state.
9864         (ada_parse, write_var_from_sym, write_int,
9865         write_exp_op_with_string, write_object_renaming,
9866         find_primitive_type, write_selectors, write_ambiguous_var,
9867         write_var_or_type, write_name_assoc, type_int, type_long,
9868         type_long_long, type_float, type_double, type_long_double,
9869         type_char, type_boolean, type_system_address): Add "struct
9870         parser_state" argument.  Adjust function to use parser state.
9871         * ada-lang.c (parse): Likewise.
9872         * ada-lang.h: Forward declare "struct parser_state".
9873         (ada_parse): Add "struct parser_state" argument.
9874         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
9875         calls to both functions.
9876         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9877         parser state.
9878         (yyparse): Redefine macro to f_parse_internal.
9879         (pstate): New variable.
9880         (parse_number): Add "struct parser_state" argument.
9881         (type_exp, exp, subrange, typebase): Update calls to write_exp*
9882         and similars in order to use parser state.
9883         (parse_number): Adjust code to use parser state.
9884         (yylex): Likewise.
9885         (f_parse): New function.
9886         * f-lang.h: Forward declare "struct parser_state".
9887         (f_parse): Add "struct parser_state" argument.
9888         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9889         parser state.
9890         (yyparse): Redefine macro for java_parse_internal.
9891         (pstate): New variable.
9892         (push_expression_name, push_expression_name, insert_exp): Add
9893         "struct parser_state" argument.
9894         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9895         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9896         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9897         PostIncrementExpression, PostDecrementExpression,
9898         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9899         UnaryExpressionNotPlusMinus, CastExpression,
9900         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9901         RelationalExpression, EqualityExpression, AndExpression,
9902         ExclusiveOrExpression, InclusiveOrExpression,
9903         ConditionalAndExpression, ConditionalOrExpression,
9904         ConditionalExpression, Assignment, LeftHandSide): Update
9905         calls to write_exp* and similars in order to use parser state.
9906         (parse_number): Ajust code to use parser state.
9907         (yylex): Likewise.
9908         (java_parse): New function.
9909         (push_variable): Add "struct parser_state" argument.  Adjust
9910         code to user parser state.
9911         (push_fieldnames, push_qualified_expression_name,
9912         push_expression_name, insert_exp): Likewise.
9913         * jv-lang.h: Forward declare "struct parser_state".
9914         (java_parse): Add "struct parser_state" argument.
9915         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9916         parser state.
9917         (yyparse): Redefine macro to m2_parse_internal.
9918         (pstate): New variable.
9919         (type_exp, exp, fblock, variable, type): Update calls to
9920         write_exp* and similars to use parser state.
9921         (yylex): Likewise.
9922         (m2_parse): New function.
9923         * m2-lang.h: Forward declare "struct parser_state".
9924         (m2_parse): Add "struct parser_state" argument.
9925         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9926         * objc-lang.h: Forward declare "struct parser_state".
9927         (end_msglist): Add "struct parser_state" argument.
9928         * p-exp.y (parse_type): Rewrite macro to use parser state.
9929         (yyparse): Redefine macro to pascal_parse_internal.
9930         (pstate): New variable.
9931         (parse_number): Add "struct parser_state" argument.
9932         (type_exp, exp1, exp, qualified_name, variable): Update calls to
9933         write_exp* and similars in order to use parser state.
9934         (parse_number, yylex): Adjust code to use parser state.
9935         (pascal_parse): New function.
9936         * p-lang.h: Forward declare "struct parser_state".
9937         (pascal_parse): Add "struct parser_state" argument.
9938         * go-exp.y (parse_type): Rewrite macro to use parser state.
9939         (yyparse): Redefine macro to go_parse_internal.
9940         (pstate): New variable.
9941         (parse_number): Add "struct parser_state" argument.
9942         (type_exp, exp1, exp, variable, type): Update calls to
9943         write_exp* and similars in order to use parser state.
9944         (parse_number, lex_one_token, classify_name, yylex): Adjust code
9945         to use parser state.
9946         (go_parse): Likewise.
9947         * go-lang.h: Forward declare "struct parser_state".
9948         (go_parse): Add "struct parser_state" argument.
9949
9950 2014-03-27  Doug Evans  <dje@google.com>
9951
9952         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
9953
9954 2014-03-27  Doug Evans  <dje@google.com>
9955
9956         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9957         Remove argument abbrev_section.  All callers updated.
9958
9959 2014-03-27  Doug Evans  <dje@google.com>
9960
9961         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9962         addr_base, ranges_base.
9963
9964 2014-03-26  Keith Seitz  <keiths@redhat.com>
9965
9966         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9967         types, not VAR_DOMAIN.
9968
9969 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
9970
9971         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9972         "ra" registers.
9973         * features/nios2-linux.c: Regenerated.
9974         * features/nios2.c: Regenerated.
9975
9976 2014-03-25  Pedro Alves  <palves@redhat.com>
9977
9978         * cli/cli-script.c (script_from_file): Force the interpreter to
9979         sync mode.
9980
9981 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
9982
9983         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9984         small stack allocation.
9985
9986 2014-03-24  Tristan Gingold  <gingold@adacore.com>
9987
9988         * darwin-nat.c (exc_server): Remove unused prototype.
9989         (darwin_dump_message): Correctly display data on x86_64.
9990         (darwin_encode_reply): Fix style.
9991         Add comments and fix indentation.
9992
9993 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
9994
9995         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9996
9997 2014-03-22  Doug Evans  <xdje42@gmail.com>
9998
9999         * infcmd.c: Whitespace fixes.
10000         (interrupt_command): Merge two function comments into one.
10001
10002 2014-03-22  Doug Evans  <xdje42@gmail.com>
10003
10004         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
10005         All uses updated.
10006
10007 2014-03-22  Yao Qi  <yao@codesourcery.com>
10008
10009         * remote.c (target_read_live_memory): Remove.
10010         (memory_xfer_live_readonly_partial): Rename it to
10011         remote_xfer_live_readonly_partial.  Remove argument 'object'.
10012         All callers updated.  Call remote_read_bytes_1
10013         instead of target_read_live_memory.
10014         * tracepoint.c (set_traceframe_number): Remove.
10015         (make_cleanup_restore_traceframe_number): Likewise .
10016         * tracepoint.h (set_traceframe_number): Remove declaration.
10017         (make_cleanup_restore_traceframe_number): Likewise.
10018
10019 2014-03-22  Yao Qi  <yao@codesourcery.com>
10020
10021         * remote.c (remote_read_bytes): Move code on reading from the
10022         remote stub to ...
10023         (remote_read_bytes_1): ... here.  New function.
10024
10025 2014-03-22  Yao Qi  <yao@codesourcery.com>
10026
10027         * ctf.c (ctf_xfer_partial): Check the return value of
10028         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
10029         return TARGET_XFER_UNAVAILABLE.
10030         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10031         * target.c (target_read_live_memory): Move it to remote.c.
10032         (memory_xfer_live_readonly_partial): Likewise.
10033         (memory_xfer_partial_1): Move some code to remote_read_bytes.
10034         * remote.c (target_read_live_memory): Moved from target.c.
10035         (memory_xfer_live_readonly_partial): Likewise.
10036         (remote_read_bytes): Factored out from
10037         memory_xfer_partial_1.
10038
10039 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
10040
10041         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
10042         NULL pointer.
10043
10044 2014-03-21  Pedro Alves  <palves@redhat.com>
10045
10046         * infrun.c (normal_stop): Extend comment.
10047
10048 2014-03-21  Hui Zhu  <hui@codesourcery.com>
10049             Pedro Alves  <palves@redhat.com>
10050
10051         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
10052         static buffer.
10053         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
10054         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
10055         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
10056
10057 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
10058
10059         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
10060         `z' formatted output modifier.
10061
10062 2014-03-20  Tom Tromey  <tromey@redhat.com>
10063             Sergio Durigan Junior  <sergiodj@redhat.com>
10064
10065         * probe.c (parse_probes): Turn assert into an ordinary error.
10066         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
10067         exceptions when parsing probes.  Rearrange the code for clarity.
10068
10069 2014-03-20  Tom Tromey  <tromey@redhat.com>
10070
10071         PR gdb/14135
10072         * top.c (execute_command): Only dispatch events if the command
10073         started the target.
10074
10075 2014-03-20  Tom Tromey  <tromey@redhat.com>
10076
10077         PR cli/15718
10078         * infcall.c: Include event-top.h.
10079         (run_inferior_call): Call async_disable_stdin if needed.
10080
10081 2014-03-20  Pedro Alves  <palves@redhat.com>
10082
10083         * infrun.c (prepare_to_proceed): Delete.
10084         (thread_still_needs_step_over): New function.
10085         (find_thread_needs_step_over): New function.
10086         (proceed): If the current thread needs a step-over, set its
10087         steping_over_breakpoint flag.  Adjust to use
10088         find_thread_needs_step_over instead of prepare_to_proceed.
10089         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
10090         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
10091         breakpoint.
10092         (switch_back_to_stepped_thread): Step over breakpoints of all
10093         threads not the stepping thread, before switching back to the
10094         stepping thread.
10095
10096 2014-03-20  Pedro Alves  <palves@redhat.com>
10097
10098         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
10099         extern.
10100         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
10101         * infrun.c (saved_singlestep_ptid)
10102         (stepping_past_singlestep_breakpoint): Delete.
10103         (resume): Remove stepping_past_singlestep_breakpoint handling.
10104         (proceed): Store the prev_pc of the stepping thread too.
10105         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
10106         singlestep_pc.
10107         (enum infwait_states): Delete infwait_thread_hop_state.
10108         (struct execution_control_state) <hit_singlestep_breakpoint>: New
10109         field.
10110         (handle_inferior_event): Adjust.
10111         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
10112         handling and the thread-hop code.  Before removing single-step
10113         breakpoints, check whether the thread hit a single-step breakpoint
10114         of another thread.  If it did, the trap is not a random signal.
10115         (switch_back_to_stepped_thread): If the event thread hit a
10116         single-step breakpoint, unblock it before switching to the
10117         stepping thread.  Handle the case of the stepped thread having
10118         advanced already.
10119         (keep_going): Handle the case of the current thread moving past a
10120         single-step breakpoint.
10121
10122 2014-03-20  Pedro Alves  <palves@redhat.com>
10123
10124         PR breakpoints/7143
10125         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
10126         are being stepped over.
10127         (breakpoint_address_match): Make extern.
10128         * breakpoint.h (breakpoint_address_match): New declaration.
10129         * inferior.h (stepping_past_instruction_at): New declaration.
10130         * infrun.c (struct step_over_info): New type.
10131         (step_over_info): New global.
10132         (set_step_over_info, clear_step_over_info)
10133         (stepping_past_instruction_at): New functions.
10134         (handle_inferior_event): Clear the step-over info when
10135         trap_expected is cleared.
10136         (resume): Remove now stale comment.
10137         (clear_proceed_status): Clear step-over info.
10138         (proceed): Adjust step-over handling to set or clear the step-over
10139         info instead of removing all breakpoints.
10140         (handle_signal_stop): When setting up a thread-hop, don't remove
10141         breakpoints here.
10142         (stop_stepping): Clear step-over info.
10143         (keep_going): Adjust step-over handling to set or clear step-over
10144         info and then always inserting breakpoints, instead of removing
10145         all breakpoints when stepping over one.
10146
10147 2014-03-20  Pedro Alves  <palves@redhat.com>
10148
10149         * infrun.c (previous_inferior_ptid): Adjust comment.
10150         (deferred_step_ptid): Delete.
10151         (infrun_thread_ptid_changed, prepare_to_proceed)
10152         (init_wait_for_inferior): Adjust.
10153         (handle_signal_stop): Delete deferred_step_ptid handling.
10154
10155 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
10156
10157         PR gdb/15358
10158         * defs.h (sync_quit_force_run): New declaration.
10159         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
10160         * event-top.c (async_sigterm_handler): New declaration.
10161         (async_sigterm_token): New variable.
10162         (async_init_signals): Create also async_sigterm_token.
10163         (async_sigterm_handler): New function.
10164         (sync_quit_force_run): New variable.
10165         (handle_sigterm): Replace quit_force call by other calls.
10166         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
10167
10168 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
10169
10170         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
10171         offset into SPE pseudo registers.
10172
10173 2014-03-18  Pedro Alves  <palves@redhat.com>
10174
10175         PR gdb/13860
10176         * inferior.h (print_stop_event): Declare.
10177         * infrun.c (print_stop_event): New, factored out from ...
10178         (normal_stop): ... this.
10179         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10180         of bpstat_print/print_stack_frame.
10181
10182 2014-03-17  Tom Tromey  <tromey@redhat.com>
10183
10184         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10185
10186 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
10187
10188         * ada-lang.c (decode_constrained_packed_array): Perform a
10189         minimal coercion for reference with coerce_ref instead of
10190         ada_coerce_ref.
10191
10192 2014-03-17  Tristan Gingold  <gingold@adacore.com>
10193
10194         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10195         (darwin_solib_create_inferior_hook): Emit a warning if version
10196         is unhandled.
10197
10198 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
10199
10200         * python/py-value.c (get_field_flag): Cast flag_name argument to
10201         PyObject_GetAttrString to support Python 2.4.
10202
10203 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10204
10205         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10206         (Global Maintainers): Remove Jan Kratochvil.
10207
10208 2014-03-14  Pedro Alves  <palves@redhat.com>
10209
10210         * inferior.h (terminal_ours_for_output): Rename to ...
10211         (child_terminal_ours_for_output): ... this.
10212         (terminal_save_ours): Rename to ...
10213         (child_terminal_save_ours): ... this.
10214         (terminal_ours): Rename to ...
10215         (child_terminal_ours): ... this.
10216         (terminal_inferior): Rename to ...
10217         (child_terminal_inferior): ... this.
10218         (terminal_init_inferior): Rename to ...
10219         (child_terminal_init_inferior): ... this.
10220         (terminal_init_inferior_with_pgrp): Rename to ...
10221         (child_terminal_init_inferior_with_pgrp): ... this.
10222         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10223         (child_terminal_init_with_pgrp): ... this.
10224         (terminal_save_ours): Rename to ...
10225         (child_terminal_save_ours): ... this.
10226         (terminal_init_inferior): Rename to ...
10227         (child_terminal_init): ... this.  Adjust.
10228         (terminal_inferior): Rename to ...
10229         (child_terminal_inferior): ... this.
10230         (terminal_ours_for_output): Rename to ...
10231         (child_terminal_ours_for_output): ... this.  Adjust.
10232         (terminal_ours): Rename to ...
10233         (child_terminal_ours): ... this.
10234         (terminal_ours_1): Rename to ...
10235         (child_terminal_ours_1): ... this.  Adjust.
10236         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10237         * windows-nat.c (do_initial_windows_stuff): Adjust.
10238         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10239         (gnu_terminal_init): ... this.  Adjust.
10240         (gnu_target): Adjust.
10241         * inf-child.c (inf_child_target): Adjust.
10242
10243 2014-03-13  Doug Evans  <xdje42@gmail.com>
10244
10245         PR guile/16612
10246         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10247         new eq?-hashtab.
10248
10249 2014-03-13  Doug Evans  <xdje42@gmail.com>
10250
10251         * value.c (record_latest_value): Call release_value_or_incref
10252         instead of release_value.
10253
10254 2014-03-13  Pedro Alves  <palves@redhat.com>
10255
10256         * procfs.c (procfs_target): Don't override to_shortname,
10257         to_longname or to_doc.
10258
10259 2014-03-13  Pedro Alves  <palves@redhat.com>
10260
10261         * inf-child.c (inf_child_open, inf_child_target): Don't mention
10262         Unix in user visible strings.
10263
10264 2014-03-12  Stan Shebs  <stan@codesourcery.com>
10265
10266         * gdbtypes.h: Annotate comments for Doxygen, add a page
10267         block comment with some general info.
10268
10269 2014-03-12  Pedro Alves  <palves@redhat.com>
10270
10271         * infcmd.c (prepare_execution_command): New function, factored out
10272         from several execution commands.
10273         (run_command_1, continue_command, step_1, jump_command)
10274         (signal_command, until_command, advance_command, finish_command)
10275         (attach_command): Use prepare_execution_command.
10276
10277 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
10278
10279         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10280         (MAX_BPTS): Define.
10281         (MAX_WPTS): Define.
10282         (struct arm_linux_thread_points): Removed.
10283         (struct arm_linux_process_info): New.
10284         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10285         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10286         (arm_linux_find_breakpoints_by_tid): Removed.
10287         (struct arch_lwp_info): New.
10288         (arm_linux_find_process_pid): New functions.
10289         (arm_linux_add_process): New functions.
10290         (arm_linux_process_info_get): New functions.
10291         (arm_linux_forget_process): New function.
10292         (arm_linux_get_debug_reg_state): New function.
10293         (struct update_registers_data): New.
10294         (update_registers_callback): New function.
10295         (arm_linux_insert_hw_breakpoint1): Updated.
10296         (arm_linux_remove_hw_breakpoint1): Updated.
10297         (arm_linux_insert_hw_breakpoint): Updated.
10298         (arm_linux_remove_hw_breakpoint): Updated.
10299         (arm_linux_insert_watchpoint): Updated.
10300         (arm_linux_remove_watchpoint): Updated.
10301         (arm_linux_new_thread): Updated.
10302         (arm_linux_prepare_to_resume): New function.
10303         (arm_linux_new_fork): New function.
10304         (_initialize_arm_linux_nat): Updated.
10305
10306 2014-03-12  Pedro Alves  <palves@redhat.com>
10307
10308         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10309
10310 2014-03-12  Tom Tromey  <tromey@redhat.com>
10311
10312         * inf-child.c (return_zero): New function.
10313         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10314         * aix-thread.c (aix_thread_inferior_created): New function.
10315         (aix_thread_attach): Remove.
10316         (init_aix_thread_ops): Don't set to_attach.
10317         (_initialize_aix_thread): Register inferior_created observer.
10318         * corelow.c (init_core_ops): Don't set to_attach or
10319         to_create_inferior.
10320         * exec.c (init_exec_ops): Don't set to_attach or
10321         to_create_inferior.
10322         * infcmd.c (run_command_1): Use find_run_target.  Make direct
10323         target calls.
10324         (attach_command): Use find_attach_target.  Make direct target
10325         calls.
10326         * record-btrace.c (init_record_btrace_ops): Don't set
10327         to_create_inferior.
10328         * record-full.c (record_full_can_async_p, record_full_is_async_p):
10329         Remove.
10330         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
10331         set to_create_inferior.
10332         * target.c (complete_target_initialization): Add assertion.
10333         (target_create_inferior): Remove.
10334         (find_default_attach, find_default_create_inferior): Remove.
10335         (find_attach_target, find_run_target): New functions.
10336         (find_default_is_async_p, find_default_can_async_p)
10337         (target_supports_non_stop, target_attach): Remove.
10338         (init_dummy_target): Don't set to_create_inferior or
10339         to_supports_non_stop.
10340         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
10341         TARGET_DEFAULT_FUNC.
10342         <to_create_inferior>: Add comment.
10343         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10344         TARGET_DEFAULT_RETURN.
10345         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10346         (find_attach_target, find_run_target): Declare.
10347         (target_create_inferior): Remove.
10348         (target_has_execution_1): Update comment.
10349         (target_supports_non_stop): Remove.
10350         * target-delegates.c: Rebuild.
10351
10352 2014-03-12  Pedro Alves  <palves@redhat.com>
10353
10354         * inf-child.h: Update comment to not mention Unix.
10355
10356 2014-03-12  Pedro Alves  <palves@redhat.com>
10357
10358         * inf-child.c: Update top comment to not mention Unix.  Add
10359         generic comment describing how this target is meant to be used.
10360         (inf_child_post_attach, inf_child_post_startup_inferior)
10361         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10362         Unix in comment.
10363
10364 2014-03-12  Pedro Alves  <palves@redhat.com>
10365
10366         * nto-procfs.c: Include inf-child.h.
10367         (procfs_ops): Delete global.
10368         (procfs_can_run): Delete method.
10369         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10370         target pointer instead of referencing procfs_ops.
10371         (procfs_prepare_to_store): Delete.
10372         (init_procfs_ops): Delete function.
10373         (procfs_target): New function, based on init_procfs_ops, but
10374         inherit inf_child_target.
10375         (_initialize_procfs): Use procfs_target.
10376
10377 2014-03-12  Pedro Alves  <palves@redhat.com>
10378
10379         * windows-nat.c: Include inf-child.h.
10380         (windows_ops): Delete global.
10381         (windows_open, windows_prepare_to_store, windows_can_run): Delete
10382         methods.
10383         (init_windows_ops): Delete function.
10384         (windows_target): New function, based on init_windows_ops, but
10385         inherit inf_child_target.
10386         (_initialize_windows_nat): Use windows_target.  Install x86
10387         specific target methods here.
10388
10389 2014-03-10  Doug Evans  <xdje42@gmail.com>
10390
10391         * guile/guile.c (call_initialize_gdb_module): New function.
10392         (initialize_guile): Replace call to scm_init_guile with call to
10393         scm_with_guile.
10394
10395 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
10396
10397         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10398         in call to TYPE_CODE macro.
10399
10400 2014-03-10  Jerome Guitton  <guitton@adacore.com>
10401
10402         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10403         Resolve tagged types to full view.
10404
10405 2014-03-10  Hui Zhu  <hui@codesourcery.com>
10406
10407         * target.h (target_insert_breakpoint): Remove "hardware" from its
10408         comments.
10409
10410 2014-03-07  Doug Evans  <dje@google.com>
10411
10412         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10413
10414 2014-03-07  Doug Evans  <dje@google.com>
10415
10416         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10417         Remove unused local comp_dir_attr.  Assert exactly one of
10418         stub_comp_unit_die, stub_comp_dir is non-NULL.
10419
10420 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
10421
10422         * target.h (complete_target_initialization, add_target):
10423         Add comment.
10424
10425 2014-03-07  Pedro Alves  <palves@redhat.com>
10426
10427         * go32-nat.c: Include inf-child.h.
10428         (go32_ops): Delete global.
10429         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10430         Delete methods.
10431         (go32_create_inferior): Push the passed in target pointer instead
10432         of referencing go32_ops.
10433         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
10434         (go32_target): New function, based on init_go32_ops, but inherit
10435         inf_child_target.
10436         (_initialize_go32_nat): Use go32_target.  Move parts of
10437         init_go32_ops here.
10438
10439 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
10440
10441         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10442         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10443         SYMBOL_VALUE_ADDRESS.
10444         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10445
10446 2014-03-06  Yao Qi  <yao@codesourcery.com>
10447
10448         * breakpoint.c (get_tracepoint_by_number): Remove argument
10449         optional_p.  All callers updated.  Adjust comments.  Update
10450         output message.
10451         * breakpoint.h (get_tracepoint_by_number): Update declaration.
10452
10453 2014-03-06  Yao Qi  <yao@codesourcery.com>
10454
10455         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
10456         early if get_number returns zero.  Use 'p' instead of 'args'.
10457
10458 2014-03-06  Yao Qi  <yao@codesourcery.com>
10459
10460         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10461         message.
10462
10463 2014-03-06  Yao Qi  <yao@codesourcery.com>
10464
10465         PR breakpoints/16508
10466         * tracepoint.c (check_trace_running): New function.
10467         (trace_find_command): Move code to check_trace_running and
10468         call check_trace_running.
10469         (trace_find_pc_command): Likewise.
10470         (trace_find_tracepoint_command): Likewise.
10471         (trace_find_line_command): Likewise.
10472         (trace_find_range_command): Likewise.
10473         * tracepoint.h (check_trace_running): Likewise.
10474         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10475
10476 2014-03-06  Yao Qi  <yao@codesourcery.com>
10477
10478         * target.h (struct target_ops) <to_traceframe_info>: Use
10479         TARGET_DEFAULT_NORETURN (tcomplain ()).
10480         * target-delegates.c: Regenerated.
10481
10482 2014-03-05  Pedro Alves  <palves@redhat.com>
10483
10484         PR gdb/16575
10485         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
10486         void.  Update comment.
10487         (dcache_xfer_memory): Delete.
10488         (dcache_read_memory_partial): New, based on the read bits of
10489         dcache_xfer_memory.
10490         (dcache_update): Add status parameter.  Use ULONGEST for len, and
10491         adjust.  Discard cache lines if the reason for the update was
10492         error.
10493         * dcache.h (dcache_xfer_memory): Delete declaration.
10494         (dcache_read_memory_partial): New declaration.
10495         (dcache_update): Update prototype.
10496         * target.c (raw_memory_xfer_partial): Update the dcache here.
10497         (memory_xfer_partial_1): Don't handle dcache writes here.
10498
10499 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
10500
10501         * remote-sim.c (gdbsim_load): Add const to prog.
10502
10503 2014-03-03  Tom Tromey  <tromey@redhat.com>
10504
10505         * elfread.c (probe_key): Change to bfd_data.
10506         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10507         now per-BFD, not per-objfile.
10508         * stap-probe.c (stap_probe_destroy): Update comment.
10509         (handle_stap_probe): Allocate on the per-BFD obstack.
10510
10511 2014-03-03  Tom Tromey  <tromey@redhat.com>
10512
10513         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10514         * breakpoint.c (create_longjmp_master_breakpoint): Use
10515         get_probe_address.
10516         (add_location_to_breakpoint, bkpt_probe_insert_location)
10517         (bkpt_probe_remove_location): Update.
10518         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10519         * elfread.c (elf_symfile_relocate_probe): Remove.
10520         (elf_probe_fns): Update.
10521         (insert_exception_resume_breakpoint): Change type of "probe"
10522         parameter to bound_probe.
10523         (check_exception_resume): Update.
10524         * objfiles.c (objfile_relocate1): Don't relocate probes.
10525         * probe.c (bound_probe_s): New typedef.
10526         (parse_probes): Use get_probe_address.  Set sal's objfile.
10527         (find_probe_by_pc): Return a bound_probe.
10528         (collect_probes): Return a VEC(bound_probe_s).
10529         (compare_probes): Update.
10530         (gen_ui_out_table_header_info): Change type of "probes"
10531         parameter.  Update.
10532         (info_probes_for_ops): Update.
10533         (get_probe_address): New function.
10534         (probe_safe_evaluate_at_pc): Update.
10535         * probe.h (struct probe_ops) <get_probe_address>: New field.
10536         <set_semaphore, clear_semaphore>: Add objfile parameter.
10537         (struct probe) <objfile>: Remove field.
10538         <arch>: New field.
10539         <address>: Update comment.
10540         (struct bound_probe): New.
10541         (find_probe_by_pc): Return a bound_probe.
10542         (get_probe_address): Declare.
10543         * solib-svr4.c (struct probe_and_action) <address>: New field.
10544         (hash_probe_and_action, equal_probe_and_action): Update.
10545         (register_solib_event_probe): Add address parameter.
10546         (solib_event_probe_at): Update.
10547         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
10548         get_probe_address.
10549         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10550         (stap_get_probe_address): New function.
10551         (stap_can_evaluate_probe_arguments, compute_probe_arg)
10552         (compile_probe_arg): Update.
10553         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10554         address.
10555         (handle_stap_probe): Don't relocate the probe.
10556         (stap_relocate): Remove.
10557         (stap_gen_info_probes_table_values): Update.
10558         (stap_probe_ops): Remove stap_relocate.
10559         * symfile-debug.c (debug_sym_relocate_probe): Remove.
10560         (debug_sym_probe_fns): Update.
10561         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10562         * symtab.c (init_sal): Use memset.
10563         * symtab.h (struct symtab_and_line) <objfile>: New field.
10564         * tracepoint.c (start_tracing, stop_tracing): Update.
10565
10566 2014-03-03  Tom Tromey  <tromey@redhat.com>
10567
10568         * probe.h (parse_probes, find_probe_by_pc)
10569         (find_probes_in_objfile): Fix comments.
10570
10571 2014-03-02  Doug Evans  <xdje42@gmail.com>
10572
10573         * infrun.c (handle_signal_stop): Replace test for
10574         TARGET_WAITKIND_STOPPED with an assert.
10575
10576 2014-03-02  Doug Evans  <xdje42@gmail.com>
10577
10578         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10579
10580 2014-03-02  Doug Evans  <xdje42@gmail.com>
10581
10582         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10583
10584 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10585
10586         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10587
10588 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10589
10590         * i386obsd-nat.c: Include "obsd-nat.h".
10591         (_initialize_i386obsd_nat): Call obsd_add_target instead of
10592         add_target.
10593         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10594
10595 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10596
10597         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10598
10599 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10600
10601         * mips64obsd-nat.c: Include "obsd-nath".
10602         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10603         add_target
10604         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10605
10606 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10607
10608         * amd64obsd-nat.c: Include "obsd-nat,h.
10609         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10610         add_target.
10611         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10612
10613 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
10614
10615         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10616         (find_overload_match): Update call to find_oload_champ.
10617         (find_oload_champ_namespace_loop): Likewise
10618
10619 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
10620
10621         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10622
10623         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10624         * config/sparc/obsd64.mh: New file.
10625         * sparc64obsd-nat.c: New file.
10626
10627         * obsd-nat.h: New file.
10628         * obsd-nat.c: New file.
10629         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10630         (ALLDEPFILES): Add obsd-nat.c.
10631
10632 2014-02-28  Tom Tromey  <tromey@redhat.com>
10633
10634         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
10635         * cli-out.h (cli_ui_out_impl): Now const.
10636         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
10637         * ui-out.c (struct ui_out) <impl>: Now const.
10638         (default_ui_out_impl): Now const.
10639         (ui_out_new): Make 'impl' parameter const.
10640         * ui-out.h (ui_out_new): Update.
10641
10642 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
10643
10644         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10645
10646 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
10647
10648         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10649
10650 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
10651
10652         Additional PR 8882 fix.
10653         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10654
10655 2014-02-27  Pedro Alves  <palves@redhat.com>
10656
10657         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10658         isn't set.
10659
10660 2014-02-27  Pedro Alves  <palves@redhat.com>
10661
10662         PR 12702
10663         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10664         * nat/linux-waitpid.c: Include string.h.
10665         (status_to_str): Moved here and made extern.
10666         * nat/linux-waitpid.h (status_to_str): New declaration.
10667
10668 2014-02-27  Hui Zhu  <hui@codesourcery.com>
10669
10670         PR 12702
10671         * infrun.c (ptid_match): Move ...
10672         * common/ptid.c (ptid_match): ... here.
10673         * inferior.h (ptid_match): Move ...
10674         * common/ptid.h (ptid_match): ... here.
10675
10676 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
10677
10678         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10679         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10680         gdb_target_obs.
10681
10682 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
10683
10684         * obsd-tdep.c (obsd_auxv_parse): New function.
10685         (obsd_init_abi): Set auxv_parse.
10686
10687         * gdbarch.sh (auxv_parse): New.
10688         * gdbarch.h: Regenerated.
10689         * gdbarch.c: Regenerated.
10690         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10691
10692 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
10693
10694         * guile/scm-value.c (gdbscm_history_append_x): New function.
10695         (value_functions): Add it.
10696
10697 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
10698
10699         * dwarf2read.c (attr_value_as_address): New function.
10700         (dwarf2_find_base_address, read_call_site_scope): Use
10701         attr_value_as_address in place of DW_ADDR.
10702         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10703         the low and high addresses.  Slight rework of the handling
10704         of the high pc being a constant form, and limit it to
10705         DWARF verson 4 or higher.
10706         (dwarf2_record_block_ranges): Likewise.
10707         (read_partial_die): Likewise.
10708         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10709
10710 2014-02-26  Tom Tromey  <tromey@redhat.com>
10711
10712         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10713
10714 2014-02-26  Tom Tromey  <tromey@redhat.com>
10715
10716         * elfread.c (elf_read_minimal_symbols): Return early if
10717         minimal symbols have already been read.  Add "ei" parameter.
10718         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10719         * minsyms.c (prim_record_minimal_symbol_full): Update.
10720         * objfiles.h (struct objstats) <n_minsyms>: Move...
10721         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10722         * symmisc.c (print_objfile_statistics): Update.
10723
10724 2014-02-26  Tom Tromey  <tromey@redhat.com>
10725
10726         * elfread.c (elf_read_minimal_symbols): New function, from
10727         elf_symfile_read.
10728         (elf_symfile_read): Call it.
10729
10730 2014-02-26  Tom Tromey  <tromey@redhat.com>
10731
10732         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10733         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10734         (lookup_minimal_symbol_solib_trampoline)
10735         (lookup_minimal_symbol_by_pc_section_1)
10736         (lookup_minimal_symbol_and_objfile): Update.
10737         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10738         Don't allocate a minimal symbol if minsyms have already been read.
10739         (build_minimal_symbol_hash_tables): Update.
10740         (install_minimal_symbols): Do nothing if minsyms already read.
10741         Use the per-BFD obstack.
10742         (terminate_minimal_symbol_table): Use the per-BFD obstack.
10743         * objfiles.c (allocate_objfile): Call
10744         terminate_minimal_symbol_table later.
10745         (have_minimal_symbols): Update.
10746         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10747         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10748         Move from struct objfile.
10749         <minsyms_read>: New field.
10750         (struct objfile) <msymbols, minimal_symbol_count,
10751         msymbol_hash, msymbol_demangled_hash>: Move.
10752         (ALL_OBJFILE_MSYMBOLS): Update.
10753         * symfile.c (read_symbols): Set minsyms_read.
10754         (reread_symbols): Update.
10755         * symmisc.c (dump_objfile, dump_msymbols): Update.
10756
10757 2014-02-26  Tom Tromey  <tromey@redhat.com>
10758
10759         * minsyms.c (msymbols_sort): Remove.
10760         * minsyms.h (msymbols_sort): Remove.
10761         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10762         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10763         * elfread.c (elf_symtab_read): Don't add section offsets.
10764         * xcoffread.c (record_minimal_symbol): Don't add section offset
10765         to minimal symbol address.
10766         * somread.c (text_offset, data_offset): Remove.
10767         (som_symtab_read): Don't add section offsets to minimal symbol
10768         addresses.
10769         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10770         Don't add section offsets to minimal symbols.
10771         * coffread.c (coff_symtab_read): Don't add section offsets
10772         to minimal symbol addresses.
10773         * machoread.c (macho_symtab_add_minsym): Don't add section offset
10774         to minimal symbol addresses.
10775         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10776         section offset to minimal symbol addresses.
10777         * mdebugread.c (parse_partial_symbols): Don't add section
10778         offset to minimal symbol addresses.
10779         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10780         offset to minimal symbol addresses.
10781
10782 2014-02-26  Tom Tromey  <tromey@redhat.com>
10783
10784         * ada-lang.c (ada_main_name): Update.
10785         (ada_add_standard_exceptions): Update.
10786         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10787         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10788         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10789         * auxv.c (ld_so_xfer_auxv): Update.
10790         * avr-tdep.c (avr_scan_prologue): Update.
10791         * ax-gdb.c (gen_var_ref): Update.
10792         * blockframe.c (get_pc_function_start)
10793         (find_pc_partial_function_gnu_ifunc): Update.
10794         * breakpoint.c (create_overlay_event_breakpoint)
10795         (create_longjmp_master_breakpoint)
10796         (create_std_terminate_master_breakpoint)
10797         (create_exception_master_breakpoint): Update.
10798         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10799         * c-valprint.c (c_val_print): Update.
10800         * coff-pe-read.c (add_pe_forwarded_sym): Update.
10801         * common/agent.c (agent_look_up_symbols): Update.
10802         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10803         * dwarf2loc.c (call_site_to_target_addr): Update.
10804         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10805         * elfread.c (elf_gnu_ifunc_record_cache)
10806         (elf_gnu_ifunc_resolve_by_got): Update.
10807         * findvar.c (default_read_var_value): Update.
10808         * frame.c (inside_main_func): Update.
10809         * frv-tdep.c (frv_frame_this_id): Update.
10810         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10811         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10812         Update.
10813         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10814         (hppa_hpux_find_dummy_bpaddr): Update.
10815         * hppa-tdep.c (hppa_symbol_address): Update.
10816         * infcmd.c (until_next_command): Update.
10817         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10818         Update.
10819         * linespec.c (minsym_found, add_minsym): Update.
10820         * linux-nat.c (get_signo): Update.
10821         * linux-thread-db.c (inferior_has_bug): Update.
10822         * m32c-tdep.c (m32c_return_value)
10823         (m32c_m16c_address_to_pointer): Update.
10824         * m32r-tdep.c (m32r_frame_this_id): Update.
10825         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10826         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10827         * maint.c (maintenance_translate_address): Update.
10828         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10829         (frob_address): New function.
10830         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10831         frob_address.  Rename parameter to "pc_in".
10832         (compare_minimal_symbols, compact_minimal_symbols): Use raw
10833         addresses.
10834         (find_solib_trampoline_target, minimal_symbol_upper_bound):
10835         Update.
10836         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10837         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10838         * objc-lang.c (find_objc_msgsend): Update.
10839         * objfiles.c (objfile_relocate1): Update.
10840         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10841         * p-valprint.c (pascal_val_print): Update.
10842         * parse.c (write_exp_msymbol): Update.
10843         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10844         (ppc_elfv2_skip_entrypoint): Update.
10845         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10846         * printcmd.c (build_address_symbolic, msym_info)
10847         (address_info): Update.
10848         * proc-service.c (ps_pglobal_lookup): Update.
10849         * psymtab.c (find_pc_sect_psymtab_closer)
10850         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10851         Change msymbol parameter to bound_minimal_symbol.
10852         * ravenscar-thread.c (get_running_thread_id): Update.
10853         * remote.c (remote_check_symbols): Update.
10854         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10855         address.
10856         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10857         * solib-dsbt.c (lm_base): Update.
10858         * solib-frv.c (lm_base, main_got): Update.
10859         * solib-irix.c (locate_base): Update.
10860         * solib-som.c (som_solib_create_inferior_hook)
10861         (link_map_start): Update.
10862         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10863         * solib-svr4.c (elf_locate_base, enable_break): Update.
10864         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10865         (flush_ea_cache): Update.
10866         * stabsread.c (define_symbol, scan_file_globals): Update.
10867         * stack.c (find_frame_funname): Update.
10868         * symfile-debug.c (debug_qf_expand_symtabs_matching)
10869         (debug_qf_find_pc_sect_symtab): Update.
10870         * symfile.c (simple_read_overlay_table)
10871         (simple_overlay_update): Update.
10872         * symfile.h (struct quick_symbol_functions)
10873         <find_pc_sect_symtab>: Change type of msymbol to
10874         bound_minimal_symbol.
10875         * symmisc.c (dump_msymbols): Update.
10876         * symtab.c (find_pc_sect_symtab_via_partial)
10877         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10878         (search_symbols, print_msymbol_info): Update.
10879         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10880         (MSYMBOL_VALUE_ADDRESS): Redefine.
10881         (BMSYMBOL_VALUE_ADDRESS): New macro.
10882         * tracepoint.c (scope_info): Update.
10883         * tui/tui-disasm.c (tui_find_disassembly_address)
10884         (tui_get_begin_asm_address): Update.
10885         * valops.c (find_function_in_inferior): Update.
10886         * value.c (value_static_field, value_fn_field): Update.
10887
10888 2014-02-26  Tom Tromey  <tromey@redhat.com>
10889
10890         * ada-lang.c (ada_update_initial_language): Update.
10891         (ada_main_name, ada_has_this_exception_support): Update.
10892         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10893         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10894         * arm-tdep.c (arm_skip_stub): Update.
10895         * auxv.c (ld_so_xfer_auxv): Update.
10896         * avr-tdep.c (avr_scan_prologue): Update.
10897         * ax-gdb.c (gen_var_ref): Update.
10898         * breakpoint.c (struct breakpoint_objfile_data)
10899         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10900         type to bound_minimal_symbol.
10901         (create_overlay_event_breakpoint)
10902         (create_longjmp_master_breakpoint)
10903         (create_std_terminate_master_breakpoint)
10904         (create_exception_master_breakpoint): Update.
10905         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10906         * c-exp.y (classify_name): Update.
10907         * coffread.c (coff_symfile_read): Update.
10908         * common/agent.c (agent_look_up_symbols): Update.
10909         * d-lang.c (d_main_name): Update.
10910         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10911         * dec-thread.c (enable_dec_thread): Update.
10912         * dwarf2loc.c (call_site_to_target_addr): Update.
10913         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10914         * eval.c (evaluate_subexp_standard): Update.
10915         * findvar.c (struct minsym_lookup_data) <result>: Change type
10916         to bound_minimal_symbol.
10917         <objfile>: Remove.
10918         (minsym_lookup_iterator_cb, default_read_var_value): Update.
10919         * frame.c (inside_main_func): Update.
10920         * frv-tdep.c (frv_frame_this_id): Update.
10921         * gcore.c (call_target_sbrk): Update.
10922         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10923         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10924         Update.
10925         * go-lang.c (go_main_name): Update.
10926         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10927         (hppa_hpux_find_import_stub_for_addr): Update.
10928         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10929         Update.  Change return type.
10930         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10931         type.
10932         * jit.c (jit_breakpoint_re_set_internal): Update.
10933         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10934         Update.
10935         * linux-nat.c (get_signo): Update.
10936         * linux-thread-db.c (inferior_has_bug): Update
10937         * m32c-tdep.c (m32c_return_value)
10938         (m32c_m16c_address_to_pointer): Update.
10939         * m32r-tdep.c (m32r_frame_this_id): Update.
10940         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10941         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10942         * minsyms.c (lookup_minimal_symbol_internal): Rename to
10943         lookup_minimal_symbol.  Change return type.
10944         (lookup_minimal_symbol): Remove.
10945         (lookup_bound_minimal_symbol): Update.
10946         (lookup_minimal_symbol_text): Change return type.
10947         (lookup_minimal_symbol_solib_trampoline): Change return type.
10948         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10949         (lookup_minimal_symbol_solib_trampoline): Change return type.
10950         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10951         * objc-lang.c (lookup_objc_class, lookup_child_selector)
10952         (value_nsstring, find_imps): Update.
10953         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10954         * p-lang.c (pascal_main_name): Update.
10955         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10956         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10957         * proc-service.c (ps_pglobal_lookup): Update.
10958         * ravenscar-thread.c (get_running_thread_msymbol): Change
10959         return type.
10960         (has_ravenscar_runtime, get_running_thread_id): Update.
10961         * remote.c (remote_check_symbols): Update.
10962         * sol-thread.c (ps_pglobal_lookup): Update.
10963         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10964         * solib-dsbt.c (lm_base): Update.
10965         * solib-frv.c (lm_base, frv_relocate_section_addresses):
10966         Update.
10967         * solib-irix.c (locate_base): Update.
10968         * solib-som.c (som_solib_create_inferior_hook)
10969         (som_solib_desire_dynamic_linker_symbols, link_map_start):
10970         Update.
10971         * solib-spu.c (spu_enable_break): Update.
10972         * solib-svr4.c (elf_locate_base, enable_break): Update.
10973         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10974         (flush_ea_cache): Update.
10975         * stabsread.c (define_symbol): Update.
10976         * symfile.c (simple_read_overlay_table): Update.
10977         * symtab.c (find_pc_sect_line): Update.
10978         * tracepoint.c (scope_info): Update.
10979         * tui-disasm.c (tui_get_begin_asm_address): Update.
10980         * value.c (value_static_field): Update.
10981
10982 2014-02-26  Tom Tromey  <tromey@redhat.com>
10983
10984         * minsyms.c (prim_record_minimal_symbol_full): Use
10985         SET_MSYMBOL_VALUE_ADDRESS.
10986         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10987         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10988         SET_MSYMBOL_VALUE_ADDRESS.
10989         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10990         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10991
10992 2014-02-26  Tom Tromey  <tromey@redhat.com>
10993
10994         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10995         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10996         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10997         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10998         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10999         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
11000         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
11001         * ada-lang.c (ada_main_name): Update.
11002         (ada_lookup_simple_minsym): Update.
11003         (ada_make_symbol_completion_list): Update.
11004         (ada_add_standard_exceptions): Update.
11005         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
11006         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11007         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
11008         * arm-tdep.c (skip_prologue_function): Update.
11009         (arm_skip_stack_protector, arm_skip_stub): Update.
11010         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
11011         (arm_wince_skip_main_prologue): Update.
11012         * auxv.c (ld_so_xfer_auxv): Update.
11013         * avr-tdep.c (avr_scan_prologue): Update.
11014         * ax-gdb.c (gen_var_ref): Update.
11015         * block.c (call_site_for_pc): Update.
11016         * blockframe.c (get_pc_function_start): Update.
11017         (find_pc_partial_function_gnu_ifunc): Update.
11018         * breakpoint.c (create_overlay_event_breakpoint): Update.
11019         (create_longjmp_master_breakpoint): Update.
11020         (create_std_terminate_master_breakpoint): Update.
11021         (create_exception_master_breakpoint): Update.
11022         (resolve_sal_pc): Update.
11023         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11024         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
11025         Update.
11026         * c-valprint.c (c_val_print): Update.
11027         * coff-pe-read.c (add_pe_forwarded_sym): Update.
11028         * coffread.c (coff_symfile_read): Update.
11029         * common/agent.c (agent_look_up_symbols): Update.
11030         * dbxread.c (find_stab_function_addr): Update.
11031         (end_psymtab): Update.
11032         * dwarf2loc.c (call_site_to_target_addr): Update.
11033         (func_verify_no_selftailcall): Update.
11034         (tailcall_dump): Update.
11035         (call_site_find_chain_1): Update.
11036         (dwarf_expr_reg_to_entry_parameter): Update.
11037         * elfread.c (elf_gnu_ifunc_record_cache): Update.
11038         (elf_gnu_ifunc_resolve_by_got): Update.
11039         * f-valprint.c (info_common_command): Update.
11040         * findvar.c (read_var_value): Update.
11041         * frame.c (get_prev_frame_1): Update.
11042         (inside_main_func): Update.
11043         * frv-tdep.c (frv_skip_main_prologue): Update.
11044         (frv_frame_this_id): Update.
11045         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11046         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
11047         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
11048         (gnuv3_skip_trampoline): Update.
11049         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
11050         (hppa64_hpux_in_solib_call_trampoline): Update.
11051         (hppa_hpux_skip_trampoline_code): Update.
11052         (hppa64_hpux_search_dummy_call_sequence): Update.
11053         (hppa_hpux_find_import_stub_for_addr): Update.
11054         (hppa_hpux_find_dummy_bpaddr): Update.
11055         * hppa-tdep.c (hppa_symbol_address)
11056         (hppa_lookup_stub_minimal_symbol): Update.
11057         * i386-tdep.c (i386_skip_main_prologue): Update.
11058         (i386_pe_skip_trampoline_code): Update.
11059         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
11060         * infcall.c (get_function_name): Update.
11061         * infcmd.c (until_next_command): Update.
11062         * jit.c (jit_breakpoint_re_set_internal): Update.
11063         (jit_inferior_init): Update.
11064         * linespec.c (minsym_found): Update.
11065         (add_minsym): Update.
11066         * linux-fork.c (info_checkpoints_command): Update.
11067         * linux-nat.c (get_signo): Update.
11068         * linux-thread-db.c (inferior_has_bug): Update.
11069         * m32c-tdep.c (m32c_return_value): Update.
11070         (m32c_m16c_address_to_pointer): Update.
11071         (m32c_m16c_pointer_to_address): Update.
11072         * m32r-tdep.c (m32r_frame_this_id): Update.
11073         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11074         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11075         * maint.c (maintenance_translate_address): Update.
11076         * minsyms.c (add_minsym_to_hash_table): Update.
11077         (add_minsym_to_demangled_hash_table): Update.
11078         (msymbol_objfile): Update.
11079         (lookup_minimal_symbol): Update.
11080         (iterate_over_minimal_symbols): Update.
11081         (lookup_minimal_symbol_text): Update.
11082         (lookup_minimal_symbol_by_pc_name): Update.
11083         (lookup_minimal_symbol_solib_trampoline): Update.
11084         (lookup_minimal_symbol_by_pc_section_1): Update.
11085         (lookup_minimal_symbol_and_objfile): Update.
11086         (prim_record_minimal_symbol_full): Update.
11087         (compare_minimal_symbols): Update.
11088         (compact_minimal_symbols): Update.
11089         (build_minimal_symbol_hash_tables): Update.
11090         (install_minimal_symbols): Update.
11091         (terminate_minimal_symbol_table): Update.
11092         (find_solib_trampoline_target): Update.
11093         (minimal_symbol_upper_bound): Update.
11094         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11095         * mips-tdep.c (mips_stub_frame_sniffer): Update.
11096         (mips_skip_pic_trampoline_code): Update.
11097         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
11098         * objc-lang.c (selectors_info): Update.
11099         (classes_info): Update.
11100         (find_methods): Update.
11101         (find_imps): Update.
11102         (find_objc_msgsend): Update.
11103         * objfiles.c (objfile_relocate1): Update.
11104         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
11105         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11106         * p-valprint.c (pascal_val_print): Update.
11107         * parse.c (write_exp_msymbol): Update.
11108         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
11109         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
11110         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11111         * printcmd.c (build_address_symbolic): Update.
11112         (sym_info): Update.
11113         (address_info): Update.
11114         * proc-service.c (ps_pglobal_lookup): Update.
11115         * psymtab.c (find_pc_sect_psymtab_closer): Update.
11116         (find_pc_sect_psymtab): Update.
11117         * python/py-framefilter.c (py_print_frame): Update.
11118         * ravenscar-thread.c (get_running_thread_id): Update.
11119         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
11120         Update.
11121         * remote.c (remote_check_symbols): Update.
11122         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
11123         (rs6000_skip_trampoline_code): Update.
11124         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
11125         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11126         * solib-dsbt.c (lm_base): Update.
11127         * solib-frv.c (lm_base): Update.
11128         (main_got): Update.
11129         * solib-irix.c (locate_base): Update.
11130         * solib-som.c (som_solib_create_inferior_hook): Update.
11131         (som_solib_desire_dynamic_linker_symbols): Update.
11132         (link_map_start): Update.
11133         * solib-spu.c (spu_enable_break): Update.
11134         (ocl_enable_break): Update.
11135         * solib-svr4.c (elf_locate_base): Update.
11136         (enable_break): Update.
11137         * spu-tdep.c (spu_get_overlay_table): Update.
11138         (spu_catch_start): Update.
11139         (flush_ea_cache): Update.
11140         * stabsread.c (define_symbol): Update.
11141         (scan_file_globals): Update.
11142         * stack.c (find_frame_funname): Update.
11143         (frame_info): Update.
11144         * symfile.c (simple_read_overlay_table): Update.
11145         (simple_overlay_update): Update.
11146         * symmisc.c (dump_msymbols): Update.
11147         * symtab.c (fixup_section): Update.
11148         (find_pc_sect_line): Update.
11149         (skip_prologue_sal): Update.
11150         (search_symbols): Update.
11151         (print_msymbol_info): Update.
11152         (rbreak_command): Update.
11153         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
11154         (completion_list_objc_symbol): Update.
11155         (default_make_symbol_completion_list_break_on): Update.
11156         * tracepoint.c (scope_info): Update.
11157         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
11158         (tui_get_begin_asm_address): Update.
11159         * valops.c (find_function_in_inferior): Update.
11160         * value.c (value_static_field): Update.
11161         (value_fn_field): Update.
11162
11163 2014-02-26  Tom Tromey  <tromey@redhat.com>
11164
11165         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
11166         bound minimal symbols.  Move code that knows about minsym
11167         table layout...
11168         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
11169         function.
11170         * minsyms.h (minimal_symbol_upper_bound): Declare.
11171         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
11172         minimal_symbol_upper_bound.
11173
11174 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
11175
11176         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11177         Use the type's name if its basic type does not have a tag.
11178
11179 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
11180
11181         * dwarf2read.c (read_subrange_type): Add comment.
11182
11183 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
11184
11185         * dwarf2read.c (update_enumeration_type_from_children): New
11186         function, mostly extracted from process_structure_scope.
11187         (read_enumeration_type): Call update_enumeration_type_from_children.
11188         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11189         and flag_flag_enum fields.
11190
11191 2014-02-26  Pedro Alves  <palves@redhat.com>
11192
11193         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11194         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11195         to_xfer_partial method.
11196
11197 2014-02-26  Pedro Alves  <palves@redhat.com>
11198
11199         * target.c (complete_target_initialization): Don't install
11200         default_xfer_partial as to_xfer_partial hook.
11201         (nomemory): Delete.
11202         (update_current_target): Don't INHERIT nor de_fault
11203         deprecated_xfer_memory.  Delete de_fault macro.
11204         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11205         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11206         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11207         field.
11208
11209 2014-02-26  Pedro Alves  <palves@redhat.com>
11210
11211         * go32-nat.c (my_write_child): New function.
11212         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11213         (go32_xfer_partial): New function.
11214         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11215         Instead install a to_xfer_partial hook.
11216
11217 2014-02-26  Pedro Alves  <palves@redhat.com>
11218
11219         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11220         to_xfer_partial helper.  Rewrite.
11221         (procfs_xfer_partial): New function.
11222         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11223         Install a to_xfer_partial hook.
11224
11225 2014-02-26  Pedro Alves  <palves@redhat.com>
11226
11227         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11228         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11229         (m32r_xfer_partial): New function.
11230         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11231         Install a to_xfer_partial hook.
11232
11233 2014-02-26  Pedro Alves  <palves@redhat.com>
11234
11235         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11236         helper.
11237         (mips_xfer_partial): New function.
11238         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11239         hook.  Install a to_xfer_partial hook.
11240
11241 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
11242
11243         * gdbtypes.h (create_array_type_with_stride): Add declaration.
11244         * gdbtypes.c (create_array_type_with_stride): New function,
11245         renaming create_array_type, but with an added parameter
11246         called "bit_stride".
11247         (create_array_type): Re-implement using
11248         create_array_type_with_stride.
11249         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11250         and DW_AT_bit_stride attributes.
11251
11252 2014-02-26  Pedro Alves  <palves@redhat.com>
11253
11254         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11255         task-specific breakpoints.
11256
11257 2014-02-25  Pedro Alves  <palves@redhat.com>
11258
11259         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11260         handling of object == TARGET_OBJECT_UNWIND_TABLE.
11261
11262 2014-02-25  Stan Shebs  <stan@codesourcery.com>
11263
11264         * defs.h: Annotate comments for Doxygen.
11265
11266 2014-02-25  Tom Tromey  <tromey@redhat.com>
11267
11268         * target.h (target_ignore): Don't declare.
11269         * target.c (target_ignore): Remove.
11270
11271 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
11272
11273         PR gdb/16626
11274         * auto-load.c (auto_load_objfile_script_1): Change filename to
11275         debugfile.
11276
11277 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
11278
11279         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11280         documentation.  Adjust prototype to match the target_ops
11281         to_xfer_partial method.  Adjust implementation accordingly.
11282
11283 2014-02-25  Hui Zhu  <hui@codesourcery.com>
11284
11285         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11286         to_traceframe_info.
11287
11288 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
11289
11290         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
11291         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11292         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11293         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11294         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11295         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11296         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11297         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11298         New constants.
11299         (rl78_register_type): Use a data pointer type for SP and
11300         new pseudo registers mentioned above.  Use a 16 bit integer
11301         type for all other register pairs.
11302         (rl78_register_name, rl78_g10_register_name): Update for
11303         new pseudo registers.
11304         (rl78_pseudo_register_read): Likewise.
11305         (rl78_pseudo_register_write): Likewise.
11306         (rl78_dwarf_reg_to_regnum): Return register numbers representing
11307         to the newly added pseudo registers.
11308
11309 2014-02-24  Doug Evans  <dje@google.com>
11310
11311         * value.c (record_latest_value): Fix comment.
11312         * printcmd.c (print_command_1): Remove code to handle -1 return from
11313         record_latest_value.
11314
11315 2014-02-24  Pedro Alves  <palves@redhat.com>
11316
11317         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11318         deprecated_xfer_memory hook.
11319         (procfs_xfer_partial): Call procfs_xfer_memory instead
11320         of the deprecated_xfer_memory target hook.
11321         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11322         helper.
11323
11324 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
11325
11326         * windows-nat.c (windows_xfer_shared_libraries): Return
11327         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11328         requested object is TARGET_OBJECT_LIBRARIES.
11329
11330 2014-02-24  Yao Qi  <yao@codesourcery.com>
11331
11332         * target.h (enum target_xfer_status)
11333         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11334         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11335         explicitly.  New.
11336         * corefile.c (memory_error_message): User updated.
11337         * exec.c (section_table_read_available_memory): Likewise.
11338         * record-btrace.c (record_btrace_xfer_partial): Likewise.
11339         * target.c (target_xfer_status_to_string): Likewise.
11340         (raw_memory_xfer_partial): Likewise.
11341         (memory_xfer_partial_1, target_xfer_partial): Likewise.
11342         * valops.c (read_value_memory): Likewise.
11343         * exec.h: Update comments.
11344
11345 2014-02-24  Yao Qi  <yao@codesourcery.com>
11346
11347         * target.c (target_xfer_status_to_string): Rename argument err
11348         to status.
11349         * target.h (target_xfer_status_to_string): Update declaration.
11350         Replace target_xfer_error_to_string with
11351         target_xfer_status_to_string in comment.
11352
11353 2014-02-24  Yao Qi  <yao@codesourcery.com>
11354
11355         * mips-linux-nat.c (super_close): Update its type.
11356         (mips_linux_close): Pass 'self' to super_close.
11357
11358 2014-02-24  Yao Qi  <yao@codesourcery.com>
11359
11360         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11361         * corefile.c (read_memory): Adjusted.
11362         * target.c (target_write_with_progress): Adjusted.
11363
11364 2014-02-23  Yao Qi  <yao@codesourcery.com>
11365
11366         Revert two patches:
11367
11368         2013-10-25  Yao Qi  <yao@codesourcery.com>
11369
11370         * remote.c (remote_traceframe_info): Return early if
11371         traceframe is not selected.
11372
11373         2013-07-19  Yao Qi  <yao@codesourcery.com>
11374
11375         * target.c (update_current_target): Change the default action
11376         of 'to_traceframe_info' from tcomplain to return_zero.
11377         * target.h (struct target_ops) <to_traceframe_info>: Add more
11378         comments.
11379
11380 2014-02-23  Yao Qi  <yao@codesourcery.com>
11381
11382         * valops.c (read_value_memory): Rewrite it.  Call
11383         target_xfer_partial in a loop.
11384         * exec.h (section_table_available_memory): Remove declaration.
11385         Move comments to ...
11386         * exec.c (section_table_available_memory): ... here.  Make it
11387         static.
11388
11389 2014-02-23  Yao Qi  <yao@codesourcery.com>
11390
11391         * exec.c (section_table_read_available_memory): New function.
11392         * exec.h (section_table_read_available_memory): Declare.
11393         * ctf.c (ctf_xfer_partial): Call
11394         section_table_read_available_memory.
11395         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11396
11397 2014-02-23  Yao Qi  <yao@codesourcery.com>
11398
11399         * ctf.c (ctf_xfer_partial): Move code to ...
11400         * exec.c (exec_read_partial_read_only): ... it.  New function.
11401         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11402         * tracefile.c: Include "exec.h".
11403         * exec.h (exec_read_partial_read_only): Declare.
11404
11405 2014-02-23  Yao Qi  <yao@codesourcery.com>
11406
11407         * tracefile-tfile.c (tfile_has_all_memory): Remove.
11408         (tfile_has_memory): Remove.
11409         (init_tfile_ops): Don't set fields to_has_all_memory and
11410         to_has_memory of tfile_ops.
11411         * tracefile.c (tracefile_has_all_memory): New function.
11412         (tracefile_has_memory): New function.
11413         (init_tracefile_ops): Initialize fields to_has_all_memory and
11414         to_has_memory of 'ops'.
11415
11416 2014-02-23  Yao Qi  <yao@codesourcery.com>
11417
11418         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11419         (ctf_thread_alive, ctf_get_trace_status): Remove.
11420         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
11421         init_tracefile_ops.
11422         * tracefile-tfile.c (tfile_get_trace_status): Remove.
11423         (tfile_has_stack, tfile_has_registers): Remove.
11424         (tfile_thread_alive): Remove.
11425         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
11426         init_tracefile_ops.
11427         * tracefile.c (tracefile_has_stack): New function.
11428         (tracefile_has_registers): New function.
11429         (tracefile_thread_alive): New function.
11430         (tracefile_get_trace_status): New function.
11431         (init_tracefile_ops): New function.
11432         * tracefile.h (init_tracefile_ops): Declare.
11433
11434 2014-02-23  Yao Qi  <yao@codesourcery.com>
11435
11436         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11437         (O_LARGEFILE): Likewise.
11438         (tfile_ops): Likewise.
11439         (TRACE_HEADER_SIZE): Likewise.
11440         (trace_fd, trace_frames_offset, cur_offset): Likewise.
11441         (cur_data_size): Likewise.
11442         (tfile_read, tfile_open, tfile_interp_line): Likewise.
11443         (tfile_close, tfile_files_info): Likewise.
11444         (tfile_get_trace_status): Likewise.
11445         (tfile_get_tracepoint_status): Likewise.
11446         (tfile_get_traceframe_address): Likewise.
11447         (tfile_trace_find, match_blocktype): Likewise.
11448         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11449         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11450         (tfile_get_trace_state_variable_value): Likewise.
11451         (tfile_has_all_memory, tfile_has_memory): Likewise.
11452         (tfile_has_stack, tfile_has_registers): Likewise.
11453         (tfile_thread_alive, build_traceframe_info): Likewise.
11454         (tfile_traceframe_info, init_tfile_ops): Likewise.
11455         (_initialize_tracepoint): Don't call init_tfile_ops
11456         and add_target_with_completer.
11457         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11458         exec.h, completer.h and filenames.h.
11459         (_initialize_tracefile_tfile): New function.
11460
11461 2014-02-23  Yao Qi  <yao@codesourcery.com>
11462
11463         * Makefile.in (REMOTE_OBS): Append tracefile.o and
11464         tracefile-tfile.o.
11465         (HFILES_NO_SRCDIR): Add tracefile.h.
11466         * ctf.c: Include "tracefile.h".
11467         * tracefile.h: New file.
11468         * tracefile.c: New file
11469         * tracefile-tfile.c: New file.
11470         * tracepoint.c: Include "tracefile.h".
11471         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11472         (stop_reason_names): Add const.
11473         (trace_file_writer_xfree): Move it to tracefile.c.
11474         (trace_save, trace_save_command, trace_save_tfile): Likewise.
11475         (trace_save_ctf): Likewise.
11476         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11477         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11478         (tfile_write_header, tfile_write_regblock_type): Likewise.
11479         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11480         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11481         (tfile_write_raw_data, tfile_end): Likewise.
11482         (tfile_trace_file_writer_new): Likewise.
11483         (free_uploaded_tp): Make it extern.
11484         (free_uploaded_tsv): Make it extern.
11485         (_initialize_tracepoint): Move code to register command 'tsave'
11486         to tracefile.c.
11487         * tracepoint.h (stop_reason_names): Declare.
11488         (struct trace_frame_write_ops): Move it to tracefile.h.
11489         (struct trace_file_write_ops): Likewise.
11490         (struct trace_file_writer): Likewise.
11491         (free_uploaded_tsvs, free_uploaded_tps): Declare.
11492
11493 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
11494
11495         PR gdb/16594
11496         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11497         process name.
11498         (get_cores_used_by_process): New parameter num_cores, use it.
11499         (linux_xfer_osdata_processes): Pass num_cores to it.
11500         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11501         process name.
11502
11503 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
11504
11505         * target.c (memory_xfer_partial): Fix length arg in call to
11506         breakpoint_xfer_memory.
11507
11508 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
11509
11510         PR tdep/16397
11511         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11512         number comes after the + or - signs.  Adjust length of register
11513         name to be extracted.
11514
11515 2014-02-20  Tom Tromey  <tromey@redhat.com>
11516
11517         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11518         (ada_varobj_ops): Mark "extern".
11519
11520 2014-02-20  Tom Tromey  <tromey@redhat.com>
11521
11522         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11523
11524 2014-02-20  Doug Evans  <xdje42@gmail.com>
11525
11526         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11527         All callers updated.
11528         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11529         All callers updated.
11530         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11531         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11532
11533 2014-02-20  lin zuojian  <manjian2006@gmail.com>
11534             Joel Brobecker  <brobecker@adacore.com>
11535             Doug Evans  <xdje42@gmail.com>
11536
11537         PR symtab/16581
11538         * dwarf2read.c (struct die_info): New member in_process.
11539         (reset_die_in_process): New function.
11540         (process_die): Set it at the start, reset when returning.
11541         (inherit_abstract_dies): Only call process_die if origin_child_die
11542         not already being processed.
11543
11544 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11545
11546         * windows-nat.c (handle_unload_dll): Add function documentation.
11547         (do_initial_windows_stuff): Add comment explaining why we wait
11548         until after inferior initialization has finished before
11549         processing all DLLs.
11550
11551 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11552
11553         * windows-nat.c (get_module_name): Delete.
11554         (windows_get_exec_module_filename): New function, mostly
11555         inspired from get_module_name.
11556         (windows_pid_to_exec_file): Replace call to get_module_name
11557         by call to windows_get_exec_module_filename.
11558
11559 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11560
11561         * windows-nat.c (handle_load_dll): Rewrite this function's
11562         introductory comment.  Remove code using get_module_name
11563         to get the DLL's name.
11564
11565 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11566
11567         * windows-nat.c (get_windows_debug_event): Ignore
11568         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11569         if windows_initialization_done == 0.
11570         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11571         Adjust implementation to always load all DLLs.
11572         (do_initial_windows_stuff): Replace call to
11573         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11574
11575 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11576
11577         * windows-nat.c (_initialize_windows_nat): Deprecate the
11578         "dll-symbols" command.  Turn the "add-shared-symbol-files"
11579         and "assf" aliases into commands, and deprecate them as well.
11580         * NEWS: Add entry explaining that "dll-symbols" and its two
11581         aliases are now deprecated.
11582
11583 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11584
11585         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11586         new-line in debug string.  Remove trailing spaces.
11587
11588 2014-02-19  Stan Shebs  <stan@codesourcery.com>
11589
11590         * darwin-nat.c (darwin_xfer_partial): Fix return type.
11591
11592 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
11593
11594         * NEWS: Add entry for the new feature
11595         * python/py-value.c (valpy_binop): Call value_x_binop for struct
11596         and class values.
11597
11598 2014-02-19  Stan Shebs  <stan@codesourcery.com>
11599
11600         * MAINTAINERS: List Yao Qi as nios2 maintainer.
11601
11602 2014-02-19  Pedro Alves  <palves@redhat.com>
11603
11604         * common/ptid.h (struct ptid): Mention that process_stratum
11605         targets should prefer ptid.lwp.
11606
11607 2014-02-19  Pedro Alves  <palves@redhat.com>
11608
11609         * remote.c (remote_thread_alive, write_ptid, read_ptid)
11610         (read_ptid, remote_newthread_step, remote_threads_extra_info)
11611         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11612         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11613         store remote thread ids rather than ptid.tid.
11614         (_initialize_remote): Adjust.
11615
11616 2014-02-19  Tom Tromey  <tromey@redhat.com>
11617
11618         * target.c (target_get_unwinder): Rewrite.
11619         (target_get_tailcall_unwinder): Rewrite.
11620         * record-btrace.c (record_btrace_to_get_unwinder): New function.
11621         (record_btrace_to_get_tailcall_unwinder): New function.
11622         (init_record_btrace_ops): Update.
11623         * target.h (struct target_ops) <to_get_unwinder,
11624         to_get_tailcall_unwinder>: Now function pointers.  Use
11625         TARGET_DEFAULT_RETURN.
11626
11627 2014-02-19  Tom Tromey  <tromey@redhat.com>
11628
11629         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11630         argument.
11631         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11632
11633 2014-02-19  Tom Tromey  <tromey@redhat.com>
11634
11635         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11636         directly.
11637         * target-delegates.c: Rebuild.
11638         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11639         TARGET_DEFAULT_FUNC.
11640         * target.c (default_target_decr_pc_after_break): Rename from
11641         forward_target_decr_pc_after_break.  Simplify.
11642         (target_decr_pc_after_break): Rely on delegation.
11643
11644 2014-02-19  Tom Tromey  <tromey@redhat.com>
11645
11646         * target.c (update_current_target): Do not INHERIT to_doc or
11647         to_magic.  Do not de_fault to_open or to_close.
11648
11649 2014-02-19  Tom Tromey  <tromey@redhat.com>
11650
11651         * gcore.h (objfile_find_memory_regions): Declare.
11652         * gcore.c (objfile_find_memory_regions): No longer static.  Add
11653         "self" argument.
11654         (_initialize_gcore): Don't call exec_set_find_memory_regions.
11655         * exec.c: Include gcore.h.
11656         (exec_set_find_memory_regions): Remove.
11657         (exec_find_memory_regions): Remove.
11658         (exec_do_find_memory_regions): Remove.
11659         (init_exec_ops): Update.
11660         * defs.h (exec_set_find_memory_regions): Remove.
11661
11662 2014-02-19  Tom Tromey  <tromey@redhat.com>
11663
11664         * target-delegates.c: Rebuild.
11665         * target.h (struct target_ops) <to_extra_thread_info,
11666         to_thread_name, to_pid_to_exec_file, to_get_section_table,
11667         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11668         not 0, in TARGET_DEFAULT_RETURN.
11669
11670 2014-02-19  Tom Tromey  <tromey@redhat.com>
11671
11672         * target.c (complete_target_initialization): Remove casts.  Use
11673         return_zero_has_execution.
11674         (return_zero): Add "ignore" argument.
11675         (return_zero_has_execution): New function.
11676         (init_dummy_target): Remove casts.  Use
11677         return_zero_has_execution.
11678
11679 2014-02-19  Tom Tromey  <tromey@redhat.com>
11680
11681         * target.c (update_current_target): Update comments.  Do not
11682         INHERIT to_stratum.
11683
11684 2014-02-19  Tom Tromey  <tromey@redhat.com>
11685
11686         * arm-linux-nat.c (arm_linux_read_description): Delegate when
11687         needed.
11688         * corelow.c (core_read_description): Delegate when needed.
11689         * remote.c (remote_read_description): Delegate when needed.
11690         * target-delegates.c: Rebuild.
11691         * target.c (target_read_description): Rewrite.
11692         * target.h (struct target_ops) <to_read_description>: Update
11693         comment.  Use TARGET_DEFAULT_RETURN.
11694
11695 2014-02-19  Tom Tromey  <tromey@redhat.com>
11696
11697         * target-delegates.c: Rebuild.
11698         * target.c (update_current_target): Don't inherit or default
11699         to_can_run.
11700         (find_default_run_target): Check against delegate_can_run.
11701         * target.h (struct target_ops) <to_can_run>: Use
11702         TARGET_DEFAULT_RETURN.
11703
11704 2014-02-19  Tom Tromey  <tromey@redhat.com>
11705
11706         * target-delegates.c: Rebuild.
11707         * target.c (target_disconnect): Unconditionally delegate.
11708         * target.h (struct target_ops) <to_disconnect>: Use
11709         TARGET_DEFAULT_NORETURN.
11710
11711 2014-02-19  Tom Tromey  <tromey@redhat.com>
11712
11713         * record.c (record_stop): Unconditionally delegate.
11714         * target-delegates.c: Rebuild.
11715         * target.c (target_stop_recording): Unconditionally delegate.
11716         * target.h (struct target_ops) <to_stop_recording>: Use
11717         TARGET_DEFAULT_IGNORE.
11718
11719 2014-02-19  Tom Tromey  <tromey@redhat.com>
11720
11721         * target-delegates.c: Rebuild.
11722         * target.c (target_enable_btrace): Unconditionally delegate.
11723         * target.h (struct target_ops) <to_enable_btrace>: Use
11724         TARGET_DEFAULT_NORETURN.
11725
11726 2014-02-19  Tom Tromey  <tromey@redhat.com>
11727
11728         * target-delegates.c: Rebuild.
11729         * target.c (target_read_btrace): Unconditionally delegate.
11730         * target.h (struct target_ops) <to_read_btrace>: Use
11731         TARGET_DEFAULT_NORETURN.
11732
11733 2014-02-19  Tom Tromey  <tromey@redhat.com>
11734
11735         * target-delegates.c: Rebuild.
11736         * target.c (target_teardown_btrace): Unconditionally delegate.
11737         * target.h (struct target_ops) <to_teardown_btrace>: Use
11738         TARGET_DEFAULT_NORETURN.
11739
11740 2014-02-19  Tom Tromey  <tromey@redhat.com>
11741
11742         * target-delegates.c: Rebuild.
11743         * target.c (target_disable_btrace): Unconditionally delegate.
11744         * target.h (struct target_ops) <to_disable_btrace>: Use
11745         TARGET_DEFAULT_NORETURN.
11746
11747 2014-02-19  Tom Tromey  <tromey@redhat.com>
11748
11749         * target-delegates.c: Rebuild.
11750         * target.c (default_search_memory): New function.
11751         (simple_search_memory): Update comment.
11752         (target_search_memory): Unconditionally delegate.
11753         * target.h (struct target_ops) <to_search_memory>: Use
11754         TARGET_DEFAULT_FUNC.
11755
11756 2014-02-19  Tom Tromey  <tromey@redhat.com>
11757
11758         * auxv.c (default_auxv_parse): No longer static.
11759         (target_auxv_parse): Unconditionally delegate.
11760         * auxv.h (default_auxv_parse): Declare.
11761         * target-delegates.c: Rebuild.
11762         * target.c: Include auxv.h.
11763         * target.h (struct target_ops) <to_auxv_parse>: Use
11764         TARGET_DEFAULT_FUNC.
11765
11766 2014-02-19  Tom Tromey  <tromey@redhat.com>
11767
11768         * target-delegates.c: Rebuild.
11769         * target.c (target_memory_map): Unconditionally delegate.
11770         * target.h (struct target_ops) <to_memory_map>: Use
11771         TARGET_DEFAULT_RETURN.
11772
11773 2014-02-19  Tom Tromey  <tromey@redhat.com>
11774
11775         * target-delegates.c: Rebuild.
11776         * target.c (target_thread_alive): Unconditionally delegate.
11777         * target.h (struct target_ops) <to_thread_alive>: Use
11778         TARGET_DEFAULT_RETURN.
11779
11780 2014-02-19  Tom Tromey  <tromey@redhat.com>
11781
11782         * target-delegates.c: Rebuild.
11783         * target.c (target_save_record): Unconditionally delegate.
11784         * target.h (struct target_ops) <to_save_record>: Use
11785         TARGET_DEFAULT_NORETURN.
11786
11787 2014-02-19  Tom Tromey  <tromey@redhat.com>
11788
11789         * target-delegates.c: Rebuild.
11790         * target.c (target_delete_record): Unconditionally delegate.
11791         * target.h (struct target_ops) <to_delete_record>: Use
11792         TARGET_DEFAULT_NORETURN.
11793
11794 2014-02-19  Tom Tromey  <tromey@redhat.com>
11795
11796         * target-delegates.c: Rebuild.
11797         * target.c (target_record_is_replaying): Unconditionally
11798         delegate.
11799         * target.h (struct target_ops) <to_record_is_replaying>: Use
11800         TARGET_DEFAULT_RETURN.
11801
11802 2014-02-19  Tom Tromey  <tromey@redhat.com>
11803
11804         * target-delegates.c: Rebuild.
11805         * target.c (target_goto_record_begin): Unconditionally delegate.
11806         * target.h (struct target_ops) <to_goto_record_begin>: Use
11807         TARGET_DEFAULT_NORETURN.
11808
11809 2014-02-19  Tom Tromey  <tromey@redhat.com>
11810
11811         * target-delegates.c: Rebuild.
11812         * target.c (target_goto_record_end): Unconditionally delegate.
11813         * target.h (struct target_ops) <to_goto_record_end>: Use
11814         TARGET_DEFAULT_NORETURN.
11815
11816 2014-02-19  Tom Tromey  <tromey@redhat.com>
11817
11818         * target-delegates.c: Rebuild.
11819         * target.c (target_goto_record): Unconditionally delegate.
11820         * target.h (struct target_ops) <to_goto_record>: Use
11821         TARGET_DEFAULT_NORETURN.
11822
11823 2014-02-19  Tom Tromey  <tromey@redhat.com>
11824
11825         * target-delegates.c: Rebuild.
11826         * target.c (target_insn_history): Unconditionally delegate.
11827         * target.h (struct target_ops) <to_insn_history>: Use
11828         TARGET_DEFAULT_NORETURN.
11829
11830 2014-02-19  Tom Tromey  <tromey@redhat.com>
11831
11832         * target-delegates.c: Rebuild.
11833         * target.c (target_insn_history_from): Unconditionally delegate.
11834         * target.h (struct target_ops) <to_insn_history_from>: Use
11835         TARGET_DEFAULT_NORETURN.
11836
11837 2014-02-19  Tom Tromey  <tromey@redhat.com>
11838
11839         * target-delegates.c: Rebuild.
11840         * target.c (target_insn_history_range): Unconditionally delegate.
11841         * target.h (struct target_ops) <to_insn_history_range>: Use
11842         TARGET_DEFAULT_NORETURN.
11843
11844 2014-02-19  Tom Tromey  <tromey@redhat.com>
11845
11846         * target-delegates.c: Rebuild.
11847         * target.c (target_call_history): Unconditionally delegate.
11848         * target.h (struct target_ops) <to_call_history>: Use
11849         TARGET_DEFAULT_NORETURN.
11850
11851 2014-02-19  Tom Tromey  <tromey@redhat.com>
11852
11853         * target-delegates.c: Rebuild.
11854         * target.c (target_call_history_from): Unconditionally delegate.
11855         * target.h (struct target_ops) <to_call_history_from>: Use
11856         TARGET_DEFAULT_NORETURN.
11857
11858 2014-02-19  Tom Tromey  <tromey@redhat.com>
11859
11860         * target-delegates.c: Rebuild.
11861         * target.c (target_call_history_range): Unconditionally delegate.
11862         * target.h (struct target_ops) <to_call_history_range>: Use
11863         TARGET_DEFAULT_NORETURN.
11864
11865 2014-02-19  Tom Tromey  <tromey@redhat.com>
11866
11867         * target-delegates.c: Rebuild.
11868         * target.c (target_verify_memory): Unconditionally delegate.
11869         * target.h (struct target_ops) <to_verify_memory>: Use
11870         TARGET_DEFAULT_NORETURN.
11871
11872 2014-02-19  Tom Tromey  <tromey@redhat.com>
11873
11874         * target-delegates.c: Rebuild.
11875         * target.c (target_core_of_thread): Unconditionally delegate.
11876         * target.h (struct target_ops) <to_core_of_thread>: Use
11877         TARGET_DEFAULT_RETURN.
11878
11879 2014-02-19  Tom Tromey  <tromey@redhat.com>
11880
11881         * target-delegates.c: Rebuild.
11882         * target.c (target_flash_done): Unconditionally delegate.
11883         * target.h (struct target_ops) <to_flash_done>: Use
11884         TARGET_DEFAULT_NORETURN.
11885
11886 2014-02-19  Tom Tromey  <tromey@redhat.com>
11887
11888         * target-delegates.c: Rebuild.
11889         * target.c (target_flash_erase): Unconditionally delegate.
11890         * target.h (struct target_ops) <to_flash_erase>: Use
11891         TARGET_DEFAULT_NORETURN.
11892
11893 2014-02-19  Tom Tromey  <tromey@redhat.com>
11894
11895         * target-delegates.c: Rebuild.
11896         * target.c (target_get_section_table): Unconditionally delegate.
11897         * target.h (struct target_ops) <to_get_section_table>: Use
11898         TARGET_DEFAULT_RETURN.
11899
11900 2014-02-19  Tom Tromey  <tromey@redhat.com>
11901
11902         * target-delegates.c: Rebuild.
11903         * target.c (target_pid_to_str): Unconditionally delegate.
11904         (init_dummy_target): Don't initialize to_pid_to_str.
11905         (default_pid_to_str): Rename from dummy_pid_to_str.
11906         * target.h (struct target_ops) <to_pid_to_str>: Use
11907         TARGET_DEFAULT_FUNC.
11908
11909 2014-02-19  Tom Tromey  <tromey@redhat.com>
11910
11911         * target-delegates.c: Rebuild.
11912         * target.c (target_find_new_threads): Unconditionally delegate.
11913         * target.h (struct target_ops) <to_find_new_threads>: Use
11914         TARGET_DEFAULT_RETURN.
11915
11916 2014-02-19  Tom Tromey  <tromey@redhat.com>
11917
11918         * target-delegates.c: Rebuild.
11919         * target.c (target_program_signals): Unconditionally delegate.
11920         * target.h (struct target_ops) <to_program_signals>: Use
11921         TARGET_DEFAULT_IGNORE.
11922
11923 2014-02-19  Tom Tromey  <tromey@redhat.com>
11924
11925         * target-delegates.c: Rebuild.
11926         * target.c (target_pass_signals): Unconditionally delegate.
11927         * target.h (struct target_ops) <to_pass_signals>: Use
11928         TARGET_DEFAULT_IGNORE.
11929
11930 2014-02-19  Tom Tromey  <tromey@redhat.com>
11931
11932         * target-delegates.c: Rebuild.
11933         * target.c (default_mourn_inferior): New function.
11934         (target_mourn_inferior): Unconditionally delegate.
11935         * target.h (struct target_ops) <to_mourn_inferior>: Use
11936         TARGET_DEFAULT_FUNC.
11937
11938 2014-02-19  Tom Tromey  <tromey@redhat.com>
11939
11940         * target-delegates.c: Rebuild.
11941         * target.c (default_follow_fork): New function.
11942         (target_follow_fork): Unconditionally delegate.
11943         * target.h (struct target_ops) <to_follow_fork>: Use
11944         TARGET_DEFAULT_FUNC.
11945
11946 2014-02-19  Tom Tromey  <tromey@redhat.com>
11947
11948         * target-delegates.c: Rebuild.
11949         * target.c (target_kill): Unconditionally delegate.
11950         * target.h (struct target_ops) <to_kill>: Use
11951         TARGET_DEFAULT_NORETURN.
11952
11953 2014-02-19  Tom Tromey  <tromey@redhat.com>
11954
11955         * target-delegates.c: Rebuild.
11956         * target.c (target_masked_watch_num_registers): Unconditionally
11957         delegate.
11958         * target.h (struct target_ops) <to_masked_watch_num_registers>:
11959         Use TARGET_DEFAULT_RETURN.
11960
11961 2014-02-19  Tom Tromey  <tromey@redhat.com>
11962
11963         * target-delegates.c: Rebuild.
11964         * target.c (target_remove_mask_watchpoint): Unconditionally
11965         delegate.
11966         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11967         TARGET_DEFAULT_RETURN.
11968
11969 2014-02-19  Tom Tromey  <tromey@redhat.com>
11970
11971         * target-delegates.c: Rebuild.
11972         * target.c (target_insert_mask_watchpoint): Unconditionally
11973         delegate.
11974         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11975         TARGET_DEFAULT_RETURN.
11976
11977 2014-02-19  Tom Tromey  <tromey@redhat.com>
11978
11979         * target-delegates.c: Rebuild.
11980         * target.c (target_ranged_break_num_registers): Unconditionally
11981         delegate.
11982         * target.h (struct target_ops) <to_ranged_break_num_registers>:
11983         Use TARGET_DEFAULT_RETURN.
11984
11985 2014-02-19  Tom Tromey  <tromey@redhat.com>
11986
11987         * target-delegates.c: Rebuild.
11988         * target.c (target_fetch_registers): Unconditionally delegate.
11989         * target.h (struct target_ops) <to_fetch_registers>: Use
11990         TARGET_DEFAULT_NORETURN.
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_stop.
11997         * target.h (struct target_ops) <to_stop>: Use
11998         TARGET_DEFAULT_IGNORE.
11999
12000 2014-02-19  Tom Tromey  <tromey@redhat.com>
12001
12002         * target-delegates.c: Rebuild.
12003         * target.c (update_current_target): Don't inherit or default
12004         to_can_run_breakpoint_commands.
12005         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12006         Use 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_supports_evaluation_of_breakpoint_conditions.
12013         * target.h (struct target_ops)
12014         <to_supports_evaluation_of_breakpoint_conditions>: Use
12015         TARGET_DEFAULT_RETURN.
12016
12017 2014-02-19  Tom Tromey  <tromey@redhat.com>
12018
12019         * target-delegates.c: Rebuild.
12020         * target.c (update_current_target): Don't inherit or default
12021         to_augmented_libraries_svr4_read.
12022         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12023         Use TARGET_DEFAULT_RETURN.
12024
12025 2014-02-19  Tom Tromey  <tromey@redhat.com>
12026
12027         * target-delegates.c: Rebuild.
12028         * target.c (update_current_target): Don't inherit or default
12029         to_can_use_agent.
12030         * target.h (struct target_ops) <to_can_use_agent>: Use
12031         TARGET_DEFAULT_RETURN.
12032
12033 2014-02-19  Tom Tromey  <tromey@redhat.com>
12034
12035         * target-delegates.c: Rebuild.
12036         * target.c (update_current_target): Don't inherit or default
12037         to_use_agent.
12038         * target.h (struct target_ops) <to_use_agent>: Use
12039         TARGET_DEFAULT_NORETURN.
12040
12041 2014-02-19  Tom Tromey  <tromey@redhat.com>
12042
12043         * target-delegates.c: Rebuild.
12044         * target.c (update_current_target): Don't inherit or default
12045         to_traceframe_info.
12046         (return_null): Remove.
12047         * target.h (struct target_ops) <to_traceframe_info>: Use
12048         TARGET_DEFAULT_RETURN.
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_static_tracepoint_markers_by_strid.
12055         * target.h (struct target_ops)
12056         <to_static_tracepoint_markers_by_strid>: Use
12057         TARGET_DEFAULT_NORETURN.
12058
12059 2014-02-19  Tom Tromey  <tromey@redhat.com>
12060
12061         * target-delegates.c: Rebuild.
12062         * target.c (update_current_target): Don't inherit or default
12063         to_static_tracepoint_marker_at.
12064         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12065         Use TARGET_DEFAULT_RETURN.
12066
12067 2014-02-19  Tom Tromey  <tromey@redhat.com>
12068
12069         * target-delegates.c: Rebuild.
12070         * target.c (update_current_target): Don't inherit or default
12071         to_set_permissions.
12072         * target.h (struct target_ops) <to_set_permissions>: Use
12073         TARGET_DEFAULT_IGNORE.
12074
12075 2014-02-19  Tom Tromey  <tromey@redhat.com>
12076
12077         * target-delegates.c: Rebuild.
12078         * target.c (update_current_target): Don't inherit or default
12079         to_get_tib_address.
12080         * target.h (struct target_ops) <to_get_tib_address>: Use
12081         TARGET_DEFAULT_NORETURN.
12082
12083 2014-02-19  Tom Tromey  <tromey@redhat.com>
12084
12085         * target-delegates.c: Rebuild.
12086         * target.c (update_current_target): Don't inherit or default
12087         to_set_trace_notes.
12088         * target.h (struct target_ops) <to_set_trace_notes>: Use
12089         TARGET_DEFAULT_RETURN.
12090
12091 2014-02-19  Tom Tromey  <tromey@redhat.com>
12092
12093         * target-delegates.c: Rebuild.
12094         * target.c (update_current_target): Don't initialize
12095         to_set_trace_buffer_size.
12096         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
12097         TARGET_DEFAULT_IGNORE.
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_set_circular_trace_buffer.
12104         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
12105         TARGET_DEFAULT_IGNORE.
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_set_disconnected_tracing.
12112         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
12113         TARGET_DEFAULT_IGNORE.
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_get_min_fast_tracepoint_insn_len.
12120         (return_minus_one): Remove.
12121         * target.h (struct target_ops)
12122         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
12123
12124 2014-02-19  Tom Tromey  <tromey@redhat.com>
12125
12126         * target-delegates.c: Rebuild.
12127         * target.c (update_current_target): Don't inherit or default
12128         to_get_raw_trace_data.
12129         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
12130         TARGET_DEFAULT_NORETURN.
12131
12132 2014-02-19  Tom Tromey  <tromey@redhat.com>
12133
12134         * target-delegates.c: Rebuild.
12135         * target.c (update_current_target): Don't inherit or default
12136         to_upload_trace_state_variables.
12137         * target.h (struct target_ops) <to_upload_trace_state_variables>:
12138         Use TARGET_DEFAULT_RETURN.
12139
12140 2014-02-19  Tom Tromey  <tromey@redhat.com>
12141
12142         * target-delegates.c: Rebuild.
12143         * target.c (update_current_target): Don't inherit or default
12144         to_upload_tracepoints.
12145         * target.h (struct target_ops) <to_upload_tracepoints>: Use
12146         TARGET_DEFAULT_RETURN.
12147
12148 2014-02-19  Tom Tromey  <tromey@redhat.com>
12149
12150         * target-delegates.c: Rebuild.
12151         * target.c (update_current_target): Don't inherit or default
12152         to_save_trace_data.
12153         * target.h (struct target_ops) <to_save_trace_data>: Use
12154         TARGET_DEFAULT_NORETURN.
12155
12156 2014-02-19  Tom Tromey  <tromey@redhat.com>
12157
12158         * target-delegates.c: Rebuild.
12159         * target.c (update_current_target): Don't inherit or default
12160         to_get_trace_state_variable_value.
12161         * target.h (struct target_ops)
12162         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
12163
12164 2014-02-19  Tom Tromey  <tromey@redhat.com>
12165
12166         * target-delegates.c: Rebuild.
12167         * target.c (update_current_target): Don't inherit or default
12168         to_trace_find.
12169         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
12170
12171 2014-02-19  Tom Tromey  <tromey@redhat.com>
12172
12173         * target-delegates.c: Rebuild.
12174         * target.c (update_current_target): Don't inherit or default
12175         to_trace_stop.
12176         * target.h (struct target_ops) <to_trace_stop>: Use
12177         TARGET_DEFAULT_NORETURN.
12178
12179 2014-02-19  Tom Tromey  <tromey@redhat.com>
12180
12181         * target-delegates.c: Rebuild.
12182         * target.c (update_current_target): Don't inherit or default
12183         to_get_tracepoint_status.
12184         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12185         TARGET_DEFAULT_NORETURN.
12186
12187 2014-02-19  Tom Tromey  <tromey@redhat.com>
12188
12189         * target-delegates.c: Rebuild.
12190         * target.c (update_current_target): Don't inherit or default
12191         to_get_trace_status.
12192         * target.h (struct target_ops) <to_get_trace_status>: Use
12193         TARGET_DEFAULT_RETURN.
12194
12195 2014-02-19  Tom Tromey  <tromey@redhat.com>
12196
12197         * target-delegates.c: Rebuild.
12198         * target.c (update_current_target): Don't inherit or default
12199         to_trace_start.
12200         * target.h (struct target_ops) <to_trace_start>: Use
12201         TARGET_DEFAULT_NORETURN.
12202
12203 2014-02-19  Tom Tromey  <tromey@redhat.com>
12204
12205         * target-delegates.c: Rebuild.
12206         * target.c (update_current_target): Don't inherit or default
12207         to_trace_set_readonly_regions.
12208         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12209         Use TARGET_DEFAULT_NORETURN.
12210
12211 2014-02-19  Tom Tromey  <tromey@redhat.com>
12212
12213         * target-delegates.c: Rebuild.
12214         * target.c (update_current_target): Don't inherit or default
12215         to_disable_tracepoint.
12216         * target.h (struct target_ops) <to_disable_tracepoint>: Use
12217         TARGET_DEFAULT_NORETURN.
12218
12219 2014-02-19  Tom Tromey  <tromey@redhat.com>
12220
12221         * target-delegates.c: Rebuild.
12222         * target.c (update_current_target): Don't inherit or default
12223         to_enable_tracepoint.
12224         * target.h (struct target_ops) <to_enable_tracepoint>: Use
12225         TARGET_DEFAULT_NORETURN.
12226
12227 2014-02-19  Tom Tromey  <tromey@redhat.com>
12228
12229         * target-delegates.c: Rebuild.
12230         * target.c (update_current_target): Don't inherit or default
12231         to_download_trace_state_variable.
12232         * target.h (struct target_ops) <to_download_trace_state_variable>:
12233         Use TARGET_DEFAULT_NORETURN.
12234
12235 2014-02-19  Tom Tromey  <tromey@redhat.com>
12236
12237         * target-delegates.c: Rebuild.
12238         * target.c (update_current_target): Don't inherit or default
12239         to_can_download_tracepoint.
12240         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12241         TARGET_DEFAULT_RETURN.
12242
12243 2014-02-19  Tom Tromey  <tromey@redhat.com>
12244
12245         * target-delegates.c: Rebuild.
12246         * target.c (update_current_target): Don't inherit or default
12247         to_download_tracepoint.
12248         * target.h (struct target_ops) <to_download_tracepoint>: Use
12249         TARGET_DEFAULT_NORETURN.
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_trace_init.
12256         * target.h (struct target_ops) <to_trace_init>: 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_supports_string_tracing.
12264         * target.h (struct target_ops) <to_supports_string_tracing>: Use
12265         TARGET_DEFAULT_RETURN.
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_supports_enable_disable_tracepoint.
12272         * target.h (struct target_ops)
12273         <to_supports_enable_disable_tracepoint>: Use
12274         TARGET_DEFAULT_RETURN.
12275
12276 2014-02-19  Tom Tromey  <tromey@redhat.com>
12277
12278         * target-delegates.c: Rebuild.
12279         * target.c (update_current_target): Don't inherit or default
12280         to_supports_multi_process.
12281         * target.h (struct target_ops) <to_supports_multi_process>: Use
12282         TARGET_DEFAULT_RETURN.
12283
12284 2014-02-19  Tom Tromey  <tromey@redhat.com>
12285
12286         * target-delegates.c: Rebuild.
12287         * target.c (update_current_target): Don't inherit or default
12288         to_get_ada_task_ptid.
12289         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12290         TARGET_DEFAULT_FUNC.
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_thread_architecture.
12297         * target.h (struct target_ops) <to_thread_architecture>: Use
12298         TARGET_DEFAULT_FUNC.
12299
12300 2014-02-19  Tom Tromey  <tromey@redhat.com>
12301
12302         * target-delegates.c: Rebuild.
12303         * target.c (update_current_target): Don't inherit or default
12304         to_execution_direction.
12305         * target.h (struct target_ops) <to_execution_direction>: Use
12306         TARGET_DEFAULT_FUNC.
12307
12308 2014-02-19  Tom Tromey  <tromey@redhat.com>
12309
12310         * target-delegates.c: Rebuild.
12311         * target.c (update_current_target): Don't inherit or default
12312         to_can_execute_reverse.
12313         * target.h (struct target_ops) <to_can_execute_reverse>: Use
12314         TARGET_DEFAULT_RETURN.
12315         (target_can_execute_reverse): Unconditionally delegate.
12316
12317 2014-02-19  Tom Tromey  <tromey@redhat.com>
12318
12319         * target-delegates.c: Rebuild.
12320         * target.c (update_current_target): Don't inherit or default
12321         to_goto_bookmark.
12322         (dummy_goto_bookmark): Remove.
12323         (init_dummy_target): Don't inherit or default to_goto_bookmark.
12324         * target.h (struct target_ops) <to_goto_bookmark>: Use
12325         TARGET_DEFAULT_NORETURN.
12326
12327 2014-02-19  Tom Tromey  <tromey@redhat.com>
12328
12329         * target-delegates.c: Rebuild.
12330         * target.c (update_current_target): Don't inherit or default
12331         to_get_bookmark.
12332         (dummy_get_bookmark): Remove.
12333         (init_dummy_target): Don't inherit or default to_get_bookmark.
12334         * target.h (struct target_ops) <to_get_bookmark>: Use
12335         TARGET_DEFAULT_NORETURN
12336
12337 2014-02-19  Tom Tromey  <tromey@redhat.com>
12338
12339         * target-delegates.c: Rebuild.
12340         * target.c (update_current_target): Don't inherit or default
12341         to_make_corefile_notes.
12342         (init_dummy_target): Don't initialize to_make_corefile_notes.
12343         * target.h (struct target_ops) <to_make_corefile_notes>: Use
12344         TARGET_DEFAULT_FUNC.
12345
12346 2014-02-19  Tom Tromey  <tromey@redhat.com>
12347
12348         * target-delegates.c: Rebuild.
12349         * target.c (update_current_target): Don't inherit or default
12350         to_find_memory_regions.
12351         (init_dummy_target): Don't initialize to_find_memory_regions.
12352         * target.h (struct target_ops) <to_find_memory_regions>: Use
12353         TARGET_DEFAULT_FUNC.
12354
12355 2014-02-19  Tom Tromey  <tromey@redhat.com>
12356
12357         * target-delegates.c: Rebuild.
12358         * target.c (update_current_target): Don't inherit or default
12359         to_log_command.
12360         * target.h (struct target_ops) <to_log_command>: Use
12361         TARGET_DEFAULT_IGNORE.
12362         (target_log_command): Unconditionally delegate.
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_pid_to_exec_file.
12369         * target.h (struct target_ops) <to_pid_to_exec_file>: 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_thread_name.
12377         (target_thread_name): Unconditionally delegate.
12378         * target.h (struct target_ops) <to_thread_name>: 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_extra_thread_info.
12386         * target.h (struct target_ops) <to_extra_thread_info>: Use
12387         TARGET_DEFAULT_RETURN.
12388
12389 2014-02-19  Tom Tromey  <tromey@redhat.com>
12390
12391         * target-delegates.c: Rebuild.
12392         * target.c (update_current_target): Don't inherit or default
12393         to_has_exited.
12394         * target.h (struct target_ops) <to_has_exited>: 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_set_syscall_catchpoint.
12402         (return_one): Remove.
12403         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12404         TARGET_DEFAULT_RETURN.
12405
12406 2014-02-19  Tom Tromey  <tromey@redhat.com>
12407
12408         * target-delegates.c: Rebuild.
12409         * target.c (update_current_target): Don't inherit or default
12410         to_insert_exec_catchpoint.
12411         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12412         TARGET_DEFAULT_RETURN.
12413
12414 2014-01-08  Tom Tromey  <tromey@redhat.com>
12415
12416         * target-delegates.c: Rebuild.
12417         * target.c (update_current_target): Don't inherit or default
12418         to_insert_exec_catchpoint.
12419         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12420         TARGET_DEFAULT_RETURN.
12421
12422 2014-02-19  Tom Tromey  <tromey@redhat.com>
12423
12424         * target-delegates.c: Rebuild.
12425         * target.c (update_current_target): Don't inherit or default
12426         to_remove_vfork_catchpoint.
12427         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12428         TARGET_DEFAULT_RETURN.
12429
12430 2014-02-19  Tom Tromey  <tromey@redhat.com>
12431
12432         * target-delegates.c: Rebuild.
12433         * target.c (update_current_target): Don't inherit or default
12434         to_insert_vfork_catchpoint.
12435         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12436         TARGET_DEFAULT_RETURN.
12437
12438 2014-02-19  Tom Tromey  <tromey@redhat.com>
12439
12440         * target-delegates.c: Rebuild.
12441         * target.c (update_current_target): Don't inherit or default
12442         to_remove_fork_catchpoint.
12443         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12444         TARGET_DEFAULT_RETURN.
12445
12446 2014-02-19  Tom Tromey  <tromey@redhat.com>
12447
12448         * target-delegates.c: Rebuild.
12449         * target.c (update_current_target): Don't inherit or default
12450         to_insert_fork_catchpoint.
12451         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12452         TARGET_DEFAULT_RETURN.
12453
12454 2014-02-19  Tom Tromey  <tromey@redhat.com>
12455
12456         * target-delegates.c: Rebuild.
12457         * target.c (update_current_target): Don't inherit or default
12458         to_post_startup_inferior.
12459         * target.h (struct target_ops) <to_post_startup_inferior>: Use
12460         TARGET_DEFAULT_IGNORE.
12461
12462 2014-02-19  Tom Tromey  <tromey@redhat.com>
12463
12464         * target-delegates.c: Rebuild.
12465         * target.c (update_current_target): Don't inherit or default
12466         to_load.
12467         * target.h (struct target_ops) <to_load>: Use
12468         TARGET_DEFAULT_NORETURN.
12469
12470 2014-02-19  Tom Tromey  <tromey@redhat.com>
12471
12472         * target-delegates.c: Rebuild.
12473         * target.c (update_current_target): Don't inherit or default
12474         to_terminal_info.
12475         * target.h (struct target_ops) <to_terminal_info>: Use
12476         TARGET_DEFAULT_FUNC.
12477
12478 2014-02-19  Tom Tromey  <tromey@redhat.com>
12479
12480         * target-delegates.c: Rebuild.
12481         * target.c (update_current_target): Don't inherit or default
12482         to_terminal_save_ours.
12483         * target.h (struct target_ops) <to_terminal_save_ours>: Use
12484         TARGET_DEFAULT_IGNORE.
12485
12486 2014-02-19  Tom Tromey  <tromey@redhat.com>
12487
12488         * target-delegates.c: Rebuild.
12489         * target.c (update_current_target): Don't inherit or default
12490         to_terminal_ours.
12491         * target.h (struct target_ops) <to_terminal_ours>: Use
12492         TARGET_DEFAULT_IGNORE.
12493
12494 2014-02-19  Tom Tromey  <tromey@redhat.com>
12495
12496         * target-delegates.c: Rebuild.
12497         * target.c (update_current_target): Don't inherit or default
12498         to_terminal_ours_for_output.
12499         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12500         TARGET_DEFAULT_IGNORE.
12501
12502 2014-02-19  Tom Tromey  <tromey@redhat.com>
12503
12504         * target-delegates.c: Rebuild.
12505         * target.c (update_current_target): Don't inherit or default
12506         to_terminal_inferior.
12507         * target.h (struct target_ops) <to_terminal_inferior>: Use
12508         TARGET_DEFAULT_IGNORE.
12509
12510 2014-02-19  Tom Tromey  <tromey@redhat.com>
12511
12512         * target-delegates.c: Rebuild.
12513         * target.c (update_current_target): Don't inherit or default
12514         to_terminal_init.
12515         * target.h (struct target_ops) <to_terminal_init>: Use
12516         TARGET_DEFAULT_IGNORE.
12517
12518 2014-02-19  Tom Tromey  <tromey@redhat.com>
12519
12520         * target-delegates.c: Rebuild.
12521         * target.c (update_current_target): Don't inherit or default
12522         to_can_accel_watchpoint_condition.
12523         * target.h (struct target_ops)
12524         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12525
12526 2014-02-19  Tom Tromey  <tromey@redhat.com>
12527
12528         * target-delegates.c: Rebuild.
12529         * target.c (update_current_target): Don't inherit or default
12530         to_region_ok_for_hw_watchpoint.
12531         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12532         Use TARGET_DEFAULT_FUNC.
12533
12534 2014-02-19  Tom Tromey  <tromey@redhat.com>
12535
12536         * target-delegates.c: Rebuild.
12537         * target.c (update_current_target): Don't inherit or default
12538         to_watchpoint_addr_within_range.
12539         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12540         Use TARGET_DEFAULT_FUNC.
12541
12542 2014-02-19  Tom Tromey  <tromey@redhat.com>
12543
12544         * target-delegates.c: Rebuild.
12545         * target.c (update_current_target): Don't inherit or default
12546         to_remove_watchpoint.
12547         * target.h (struct target_ops) <to_remove_watchpoint>: Use
12548         TARGET_DEFAULT_NORETURN.
12549
12550 2014-02-19  Tom Tromey  <tromey@redhat.com>
12551
12552         * target-delegates.c: Rebuild.
12553         * target.c (update_current_target): Don't inherit or default
12554         to_insert_watchpoint.
12555         * target.h (struct target_ops) <to_insert_watchpoint>: Use
12556         TARGET_DEFAULT_RETURN.
12557
12558 2014-02-19  Tom Tromey  <tromey@redhat.com>
12559
12560         * target-delegates.c: Rebuild.
12561         * target.c (update_current_target): Don't inherit or default
12562         to_remove_hw_breakpoint.
12563         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12564         TARGET_DEFAULT_RETURN.
12565
12566 2014-02-19  Tom Tromey  <tromey@redhat.com>
12567
12568         * target-delegates.c: Rebuild.
12569         * target.c (update_current_target): Don't inherit or default
12570         to_insert_hw_breakpoint.
12571         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12572         TARGET_DEFAULT_RETURN.
12573
12574 2014-02-19  Tom Tromey  <tromey@redhat.com>
12575
12576         * target-delegates.c: Rebuild.
12577         * target.c (update_current_target): Don't inherit or default
12578         to_can_use_hw_breakpoint.
12579         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12580         TARGET_DEFAULT_RETURN.
12581
12582 2014-02-19  Tom Tromey  <tromey@redhat.com>
12583
12584         * target-delegates.c: Rebuild.
12585         * target.c (update_current_target): Don't inherit or default
12586         to_files_info.
12587         * target.h (struct target_ops) <to_files_info>: Use
12588         TARGET_DEFAULT_IGNORE.
12589
12590 2014-02-19  Tom Tromey  <tromey@redhat.com>
12591
12592         * target-delegates.c: Rebuild.
12593         * target.c (update_current_target): Don't inherit or default
12594         to_store.
12595         * target.h (struct target_ops) <to_store>: Use
12596         TARGET_DEFAULT_NORETURN.
12597
12598 2014-02-19  Tom Tromey  <tromey@redhat.com>
12599
12600         * target-delegates.c: Rebuild.
12601         * target.c (update_current_target): Don't inherit or default
12602         to_post_attach.
12603         * target.h (struct target_ops) <to_post_attach>: Use
12604         TARGET_DEFAULT_IGNORE.
12605
12606 2014-02-19  Tom Tromey  <tromey@redhat.com>
12607
12608         * target-delegates.c: Rebuild.
12609         * target.c (update_current_target): Don't inherit or default
12610         to_rcmd.
12611         (default_rcmd): New function.
12612         (do_monitor_command): Unconditionally delegate.
12613         * target.h (struct target_ops) <to_rmcd>: Use
12614         TARGET_DEFAULT_FUNC.
12615
12616 2014-02-19  Tom Tromey  <tromey@redhat.com>
12617
12618         * target-delegates.c: Rebuild.
12619         * target.c (init_dummy_target): Don't initialize to_attach.
12620         (target_attach): Unconditionally delegate.
12621         * target.h (struct target_ops) <to_attach>: Use
12622         TARGET_DEFAULT_FUNC.
12623
12624 2014-02-19  Tom Tromey  <tromey@redhat.com>
12625
12626         * target-delegates.c: Rebuild.
12627         * target.c (target_detach): Unconditionally delegate.
12628         (init_dummy_target): Don't initialize to_detach.
12629         * target.h (struct target_ops) <to_detach>: Use
12630         TARGET_DEFAULT_IGNORE.
12631
12632 2014-02-19  Tom Tromey  <tromey@redhat.com>
12633
12634         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12635         Add argument.
12636         (target_augmented_libraries_svr4_read): Add argument.
12637         * target.c (update_current_target): Update.
12638         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12639         argument.
12640
12641 2014-02-19  Tom Tromey  <tromey@redhat.com>
12642
12643         * target.h (struct target_ops) <to_call_history_range>: Add
12644         argument.
12645         * target.c (target_call_history_range): Add argument.
12646         * record-btrace.c (record_btrace_call_history_range): Add 'self'
12647         argument.
12648         (record_btrace_call_history_from): Update.
12649
12650 2014-02-19  Tom Tromey  <tromey@redhat.com>
12651
12652         * target.h (struct target_ops) <to_call_history_from>: Add
12653         argument.
12654         * target.c (target_call_history_from): Add argument.
12655         * record-btrace.c (record_btrace_call_history_from): Add 'self'
12656         argument.
12657
12658 2014-02-19  Tom Tromey  <tromey@redhat.com>
12659
12660         * target.h (struct target_ops) <to_call_history>: Add argument.
12661         * target.c (target_call_history): Add argument.
12662         * record-btrace.c (record_btrace_call_history): Add 'self'
12663         argument.
12664
12665 2014-02-19  Tom Tromey  <tromey@redhat.com>
12666
12667         * target.h (struct target_ops) <to_insn_history_range>: Add
12668         argument.
12669         * target.c (target_insn_history_range): Add argument.
12670         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12671         argument.
12672         (record_btrace_insn_history_from): Update.
12673
12674 2014-02-19  Tom Tromey  <tromey@redhat.com>
12675
12676         * target.h (struct target_ops) <to_insn_history_from>: Add
12677         argument.
12678         * target.c (target_insn_history_from): Add argument.
12679         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12680         argument.
12681
12682 2014-02-19  Tom Tromey  <tromey@redhat.com>
12683
12684         * target.h (struct target_ops) <to_insn_history>: Add argument.
12685         * target.c (target_insn_history): Add argument.
12686         * record-btrace.c (record_btrace_insn_history): Add 'self'
12687         argument.
12688
12689 2014-02-19  Tom Tromey  <tromey@redhat.com>
12690
12691         * target.h (struct target_ops) <to_goto_record>: Add argument.
12692         * target.c (target_goto_record): Add argument.
12693         * record-full.c (record_full_goto): Add 'self' argument.
12694         * record-btrace.c (record_btrace_goto): Add 'self' argument.
12695
12696 2014-02-19  Tom Tromey  <tromey@redhat.com>
12697
12698         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12699         * target.c (target_goto_record_end): Add argument.
12700         * record-full.c (record_full_goto_end): Add 'self' argument.
12701         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12702
12703 2014-02-19  Tom Tromey  <tromey@redhat.com>
12704
12705         * target.h (struct target_ops) <to_goto_record_begin>: Add
12706         argument.
12707         * target.c (target_goto_record_begin): Add argument.
12708         * record-full.c (record_full_goto_begin): Add 'self' argument.
12709         * record-btrace.c (record_btrace_goto_begin): Add 'self'
12710         argument.
12711
12712 2014-02-19  Tom Tromey  <tromey@redhat.com>
12713
12714         * target.h (struct target_ops) <to_record_is_replaying>: Add
12715         argument.
12716         * target.c (target_record_is_replaying): Add argument.
12717         * record-full.c (record_full_is_replaying): Add 'self' argument.
12718         * record-btrace.c (record_btrace_is_replaying): Add 'self'
12719         argument.
12720         (record_btrace_xfer_partial, record_btrace_store_registers)
12721         (record_btrace_prepare_to_store, record_btrace_resume)
12722         (record_btrace_wait, record_btrace_decr_pc_after_break)
12723         (record_btrace_find_new_threads, record_btrace_thread_alive):
12724         Update.
12725
12726 2014-02-19  Tom Tromey  <tromey@redhat.com>
12727
12728         * target.h (struct target_ops) <to_delete_record>: Add argument.
12729         * target.c (target_delete_record): Add argument.
12730         * record-full.c (record_full_delete): Add 'self' argument.
12731
12732 2014-02-19  Tom Tromey  <tromey@redhat.com>
12733
12734         * target.h (struct target_ops) <to_save_record>: Add argument.
12735         * target.c (target_save_record): Add argument.
12736         * record-full.c (record_full_save): Add 'self' argument.
12737         (record_full_save): Add 'self' argument.
12738
12739 2014-02-19  Tom Tromey  <tromey@redhat.com>
12740
12741         * target.h (struct target_ops) <to_info_record>: Add argument.
12742         * target.c (target_info_record): Add argument.
12743         * record.c (info_record_command): Add argument.
12744         * record-full.c (record_full_info): Add 'self' argument.
12745         * record-btrace.c (record_btrace_info): Add 'self' argument.
12746
12747 2014-02-19  Tom Tromey  <tromey@redhat.com>
12748
12749         * target.h (struct target_ops) <to_stop_recording>: Add argument.
12750         * target.c (target_stop_recording): Add argument.
12751         * record.c (record_stop): Add argument.
12752         * record-btrace.c (record_btrace_stop_recording): Add 'self'
12753         argument.
12754
12755 2014-02-19  Tom Tromey  <tromey@redhat.com>
12756
12757         * target.h (struct target_ops) <to_read_btrace>: Add argument.
12758         * target.c (struct target_ops) <to_read_btrace>: Add argument.
12759         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12760         argument.
12761         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12762         (_initialize_amd64_linux_nat): Use it.
12763         * i386-linux-nat.c (i386_linux_read_btrace): New function.
12764         (_initialize_i386_linux_nat): Use it.
12765
12766 2014-02-19  Tom Tromey  <tromey@redhat.com>
12767
12768         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12769         * target.c (target_teardown_btrace): Add argument.
12770         * remote.c (remote_teardown_btrace): Add 'self' argument.
12771         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12772         argument.
12773         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12774         argument.
12775
12776 2014-02-19  Tom Tromey  <tromey@redhat.com>
12777
12778         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12779         * target.c (target_disable_btrace): Add argument.
12780         * remote.c (remote_disable_btrace): Add 'self' argument.
12781         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12782         argument.
12783         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12784         argument.
12785
12786 2014-02-19  Tom Tromey  <tromey@redhat.com>
12787
12788         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12789         * target.c (target_enable_btrace): Add argument.
12790         * remote.c (remote_enable_btrace): Add 'self' argument.
12791         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12792         argument.
12793         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12794         argument.
12795
12796 2014-02-19  Tom Tromey  <tromey@redhat.com>
12797
12798         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12799         (target_can_use_agent): Add argument.
12800         * target.c (update_current_target): Update.
12801         * remote.c (remote_can_use_agent): Add 'self' argument.
12802         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12803
12804 2014-02-19  Tom Tromey  <tromey@redhat.com>
12805
12806         * target.h (struct target_ops) <to_use_agent>: Add argument.
12807         (target_use_agent): Add argument.
12808         * target.c (update_current_target): Update.
12809         * remote.c (remote_use_agent): Add 'self' argument.
12810         * inf-child.c (inf_child_use_agent): Add 'self' argument.
12811
12812 2014-02-19  Tom Tromey  <tromey@redhat.com>
12813
12814         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12815         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12816         (target_traceframe_info): Add argument.
12817         * target.c (update_current_target): Update.
12818         * remote.c (remote_traceframe_info): Add 'self' argument.
12819         * ctf.c (ctf_traceframe_info): Add 'self' argument.
12820
12821 2014-02-19  Tom Tromey  <tromey@redhat.com>
12822
12823         * target.h (target_static_tracepoint_markers_by_strid): Add
12824         argument.
12825         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12826         'self' argument.
12827         * target.c (update_current_target): Update.
12828         * remote.c (struct target_ops)
12829         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12830         * linux-nat.c (struct target_ops)
12831         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12832
12833 2014-02-19  Tom Tromey  <tromey@redhat.com>
12834
12835         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12836         Add argument.
12837         (target_static_tracepoint_marker_at): Add argument.
12838         * target.c (update_current_target): Update.
12839         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12840         argument.
12841
12842 2014-02-19  Tom Tromey  <tromey@redhat.com>
12843
12844         * target.h (struct target_ops) <to_set_permissions>: Add argument.
12845         (target_set_permissions): Add argument.
12846         * target.c (update_current_target): Update.
12847         * remote.c (remote_set_permissions): Add 'self' argument.
12848         (remote_start_remote): Update.
12849
12850 2014-02-19  Tom Tromey  <tromey@redhat.com>
12851
12852         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12853         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12854         (target_get_tib_address): Add argument.
12855         * target.c (update_current_target): Update.
12856         * remote.c (remote_get_tib_address): Add 'self' argument.
12857
12858 2014-02-19  Tom Tromey  <tromey@redhat.com>
12859
12860         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12861         (target_set_trace_notes): Add argument.
12862         * target.c (update_current_target): Update.
12863         * remote.c (remote_set_trace_notes): Add 'self' argument.
12864
12865 2014-02-19  Tom Tromey  <tromey@redhat.com>
12866
12867         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12868         argument.
12869         (target_set_trace_buffer_size): Add argument.
12870         * target.c (update_current_target): Update.
12871         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12872
12873 2014-02-19  Tom Tromey  <tromey@redhat.com>
12874
12875         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12876         argument.
12877         (target_set_circular_trace_buffer): Add argument.
12878         * target.c (update_current_target): Update.
12879         * remote.c (remote_set_circular_trace_buffer): Add 'self'
12880         argument.
12881
12882 2014-02-19  Tom Tromey  <tromey@redhat.com>
12883
12884         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12885         argument.
12886         (target_set_disconnected_tracing): Add argument.
12887         * target.c (update_current_target): Update.
12888         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12889
12890 2014-02-19  Tom Tromey  <tromey@redhat.com>
12891
12892         * target.h (struct target_ops)
12893         <to_get_min_fast_tracepoint_insn_len>: Add argument.
12894         (target_get_min_fast_tracepoint_insn_len): Add argument.
12895         * target.c (update_current_target): Update.
12896         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12897         argument.
12898
12899 2014-02-19  Tom Tromey  <tromey@redhat.com>
12900
12901         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12902         argument.
12903         (target_get_raw_trace_data): Add argument.
12904         * target.c (update_current_target): Update.
12905         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12906
12907 2014-02-19  Tom Tromey  <tromey@redhat.com>
12908
12909         * target.h (struct target_ops) <to_upload_trace_state_variables>:
12910         Add argument.
12911         (target_upload_trace_state_variables): Add argument.
12912         * target.c (update_current_target): Update.
12913         * remote.c (remote_upload_trace_state_variables): Add 'self'
12914         argument.
12915         (remote_start_remote): Update.
12916
12917 2014-02-19  Tom Tromey  <tromey@redhat.com>
12918
12919         * target.h (struct target_ops) <to_upload_tracepoints>: Add
12920         argument.
12921         (target_upload_tracepoints): Add argument.
12922         * target.c (update_current_target): Update.
12923         * remote.c (remote_upload_tracepoints): Add 'self' argument.
12924         (remote_start_remote): Update.
12925
12926 2014-02-19  Tom Tromey  <tromey@redhat.com>
12927
12928         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12929         (target_save_trace_data): Add argument.
12930         * target.c (update_current_target): Update.
12931         * remote.c (remote_save_trace_data): Add 'self' argument.
12932
12933 2014-02-19  Tom Tromey  <tromey@redhat.com>
12934
12935         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12936         argument.
12937         * target.h (struct target_ops)
12938         <to_get_trace_state_variable_value>: Add argument.
12939         (target_get_trace_state_variable_value): Add argument.
12940         * target.c (update_current_target): Update.
12941         * remote.c (remote_get_trace_state_variable_value): Add 'self'
12942         argument.
12943         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12944
12945 2014-02-19  Tom Tromey  <tromey@redhat.com>
12946
12947         * tracepoint.c (tfile_trace_find): Add 'self' argument.
12948         * target.h (struct target_ops) <to_trace_find>: Add argument.
12949         (target_trace_find): Add argument.
12950         * target.c (update_current_target): Update.
12951         * remote.c (remote_trace_find): Add 'self' argument.
12952         * ctf.c (ctf_trace_find): Add 'self' argument.
12953
12954 2014-02-19  Tom Tromey  <tromey@redhat.com>
12955
12956         * target.h (struct target_ops) <to_trace_stop>: Add argument.
12957         (target_trace_stop): Add argument.
12958         * target.c (update_current_target): Update.
12959         * remote.c (remote_trace_stop): Add 'self' argument.
12960
12961 2014-02-19  Tom Tromey  <tromey@redhat.com>
12962
12963         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12964         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12965         argument.
12966         (target_get_tracepoint_status): Add argument.
12967         * target.c (update_current_target): Update.
12968         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12969
12970 2014-02-19  Tom Tromey  <tromey@redhat.com>
12971
12972         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12973         * target.h (struct target_ops) <to_get_trace_status>: Add
12974         argument.
12975         (target_get_trace_status): Add argument.
12976         * target.c (update_current_target): Update.
12977         * remote.c (remote_get_trace_status): Add 'self' argument.
12978         (remote_start_remote, remote_can_download_tracepoint): Update.
12979         * ctf.c (ctf_get_trace_status): Add 'self' argument.
12980
12981 2014-02-19  Tom Tromey  <tromey@redhat.com>
12982
12983         * target.h (struct target_ops) <to_trace_start>: Add argument.
12984         (target_trace_start): Add argument.
12985         * target.c (update_current_target): Update.
12986         * remote.c (remote_trace_start): Add 'self' argument.
12987
12988 2014-02-19  Tom Tromey  <tromey@redhat.com>
12989
12990         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12991         Add argument.
12992         (target_trace_set_readonly_regions): Add argument.
12993         * target.c (update_current_target): Update.
12994         * remote.c (remote_trace_set_readonly_regions): Add 'self'
12995         argument.
12996
12997 2014-02-19  Tom Tromey  <tromey@redhat.com>
12998
12999         * target.h (struct target_ops) <to_disable_tracepoint>: Add
13000         argument.
13001         (target_disable_tracepoint): Add argument.
13002         * target.c (update_current_target): Update.
13003         * remote.c (remote_disable_tracepoint): Add 'self' argument.
13004
13005 2014-02-19  Tom Tromey  <tromey@redhat.com>
13006
13007         * target.h (struct target_ops) <to_enable_tracepoint>: Add
13008         argument.
13009         (target_enable_tracepoint): Add argument.
13010         * target.c (update_current_target): Update.
13011         * remote.c (remote_enable_tracepoint): Add 'self' argument.
13012
13013 2014-02-19  Tom Tromey  <tromey@redhat.com>
13014
13015         * target.h (struct target_ops) <to_download_trace_state_variable>:
13016         Add argument.
13017         (target_download_trace_state_variable): Add argument.
13018         * target.c (update_current_target): Update.
13019         * remote.c (remote_download_trace_state_variable): Add 'self'
13020         argument.
13021
13022 2014-02-19  Tom Tromey  <tromey@redhat.com>
13023
13024         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
13025         argument.
13026         (target_can_download_tracepoint): Add argument.
13027         * target.c (update_current_target): Update.
13028         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
13029
13030 2014-02-19  Tom Tromey  <tromey@redhat.com>
13031
13032         * target.h (struct target_ops) <to_download_tracepoint>: Add
13033         argument.
13034         (target_download_tracepoint): Add argument.
13035         * target.c (update_current_target): Update.
13036         * remote.c (remote_download_tracepoint): Add 'self' argument.
13037
13038 2014-02-19  Tom Tromey  <tromey@redhat.com>
13039
13040         * target.h (struct target_ops) <to_trace_init>: Add argument.
13041         (target_trace_init): Add argument.
13042         * target.c (update_current_target): Update.
13043         * remote.c (remote_trace_init): Add 'self' argument.
13044
13045 2014-02-19  Tom Tromey  <tromey@redhat.com>
13046
13047         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
13048         * target.c (target_fileio_readlink): Add argument.
13049         * remote.c (remote_hostio_readlink): Add 'self' argument.
13050         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
13051
13052 2014-02-19  Tom Tromey  <tromey@redhat.com>
13053
13054         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
13055         * target.c (target_fileio_unlink): Add argument.
13056         * remote.c (remote_hostio_unlink): Add 'self' argument.
13057         (remote_file_delete): Update.
13058         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
13059
13060 2014-02-19  Tom Tromey  <tromey@redhat.com>
13061
13062         * target.h (struct target_ops) <to_fileio_close>: Add argument.
13063         * target.c (target_fileio_close): Add argument.
13064         * remote.c (remote_hostio_close): Add 'self' argument.
13065         (remote_hostio_close_cleanup): Update.
13066         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
13067         Update.
13068         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
13069
13070 2014-02-19  Tom Tromey  <tromey@redhat.com>
13071
13072         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
13073         * target.c (target_fileio_pread): Add argument.
13074         * remote.c (remote_hostio_pread): Add 'self' argument.
13075         (remote_bfd_iovec_pread, remote_file_get): Update.
13076         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
13077
13078 2014-02-19  Tom Tromey  <tromey@redhat.com>
13079
13080         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
13081         * target.c (target_fileio_pwrite): Add argument.
13082         * remote.c (remote_hostio_pwrite): Add 'self' argument.
13083         (remote_file_put): Update.
13084         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
13085
13086 2014-02-19  Tom Tromey  <tromey@redhat.com>
13087
13088         * target.h (struct target_ops) <to_fileio_open>: Add argument.
13089         * target.c (target_fileio_open): Add argument.
13090         * remote.c (remote_hostio_open): Add 'self' argument.
13091         (remote_bfd_iovec_open): Add 'self' argument.
13092         (remote_file_put): Add 'self' argument.
13093         (remote_file_get): Add 'self' argument.
13094         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
13095
13096 2014-02-19  Tom Tromey  <tromey@redhat.com>
13097
13098         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
13099         Add argument.
13100         (target_can_run_breakpoint_commands): Add argument.
13101         * target.c (update_current_target): Update.
13102         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
13103         argument.
13104         (remote_insert_breakpoint): Add 'self' argument.
13105         (remote_insert_hw_breakpoint): Add 'self' argument.
13106         (remote_can_run_breakpoint_commands): Add 'self' argument.
13107
13108 2014-02-19  Tom Tromey  <tromey@redhat.com>
13109
13110         * target.h (struct target_ops)
13111         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
13112         (target_supports_evaluation_of_breakpoint_conditions): Add
13113         argument.
13114         * target.c (update_current_target): Update.
13115         * remote.c (remote_supports_cond_breakpoints): Add 'self'
13116         argument.
13117         (remote_insert_breakpoint): Add 'self' argument.
13118         (remote_insert_hw_breakpoint): Add 'self' argument.
13119         (remote_supports_cond_breakpoints): Add 'self' argument.
13120
13121 2014-02-19  Tom Tromey  <tromey@redhat.com>
13122
13123         * target.h (struct target_ops) <to_supports_string_tracing>: Add
13124         argument.
13125         (target_supports_string_tracing): Add argument.
13126         * target.c (update_current_target): Update.
13127         * remote.c (remote_supports_string_tracing): Add 'self' argument.
13128
13129 2014-02-19  Tom Tromey  <tromey@redhat.com>
13130
13131         * target.h (struct target_ops)
13132         <to_supports_disable_randomization>: Add argument.
13133         * target.c (find_default_supports_disable_randomization): Add
13134         argument.
13135         (target_supports_disable_randomization): Add argument.
13136         (find_default_supports_disable_randomization): Add 'self'
13137         argument.
13138         * remote.c (extended_remote_supports_disable_randomization): Add
13139         'self' argument.
13140         (remote_supports_disable_randomization): Add 'self' argument.
13141         (extended_remote_create_inferior): Update.
13142         * linux-nat.c (linux_nat_supports_disable_randomization): Add
13143         'self' argument.
13144
13145 2014-02-19  Tom Tromey  <tromey@redhat.com>
13146
13147         * target.h (struct target_ops)
13148         <to_supports_enable_disable_tracepoint>: Add argument.
13149         (target_supports_enable_disable_tracepoint): Add argument.
13150         * target.c (update_current_target): Update.
13151         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
13152         argument.
13153
13154 2014-02-19  Tom Tromey  <tromey@redhat.com>
13155
13156         * target.h (struct target_ops) <to_supports_multi_process>: Add
13157         argument.
13158         (target_supports_multi_process): Add argument.
13159         * target.c (update_current_target): Update.
13160         * remote.c (remote_supports_multi_process): Add 'self' argument.
13161         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
13162         argument.
13163         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
13164         argument.
13165
13166 2014-02-19  Tom Tromey  <tromey@redhat.com>
13167
13168         * target.h (struct target_ops) <to_execution_direction>: Add
13169         argument.
13170         (target_execution_direction): Add argument.
13171         * target.c (default_execution_direction): Add 'self' argument.
13172         * record-full.c (record_full_execution_direction): Add 'self'
13173         argument.
13174
13175 2014-02-19  Tom Tromey  <tromey@redhat.com>
13176
13177         * target.h (struct target_ops) <to_can_execute_reverse>: Add
13178         argument.
13179         (target_can_execute_reverse): Add argument.
13180         * remote.c (remote_can_execute_reverse): Add 'self' argument.
13181         * record-full.c (record_full_can_execute_reverse): Add 'self'
13182         argument.
13183         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13184         argument.
13185
13186 2014-02-19  Tom Tromey  <tromey@redhat.com>
13187
13188         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13189         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13190         argument.
13191         (target_get_ada_task_ptid): Add argument.
13192         * target.c (update_current_target): Update.
13193         (default_get_ada_task_ptid): Add 'self' argument.
13194         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13195         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13196         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13197         argument.
13198         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13199         argument.
13200         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13201         argument.
13202         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13203         argument.
13204         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13205         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13206         argument.
13207
13208 2014-02-19  Tom Tromey  <tromey@redhat.com>
13209
13210         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13211         (target_goto_bookmark): Add argument.
13212         * target.c (dummy_goto_bookmark): Add 'self' argument.
13213         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13214
13215 2014-02-19  Tom Tromey  <tromey@redhat.com>
13216
13217         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13218         (target_get_bookmark): Add argument.
13219         * target.c (dummy_get_bookmark): Add 'self' argument.
13220         * record-full.c (record_full_get_bookmark): Add 'self' argument.
13221
13222 2014-02-19  Tom Tromey  <tromey@redhat.com>
13223
13224         * target.h (struct target_ops) <to_make_corefile_notes>: Add
13225         argument.
13226         (target_make_corefile_notes): Add argument.
13227         * target.c (dummy_make_corefile_notes): Add 'self' argument.
13228         * procfs.c (procfs_make_note_section): Add 'self' argument.
13229         (procfs_make_note_section): Add 'self' argument.
13230         (procfs_make_note_section): Add 'self' argument.
13231         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13232         argument.
13233         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13234         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13235         * exec.c (exec_make_note_section): Add 'self' argument.
13236         (exec_make_note_section): Add 'self' argument.
13237
13238 2014-02-19  Tom Tromey  <tromey@redhat.com>
13239
13240         * target.h (struct target_ops) <to_find_memory_regions>: Add
13241         argument.
13242         (target_find_memory_regions): Add argument.
13243         * target.c (dummy_find_memory_regions): Add 'self' argument.
13244         * procfs.c (proc_find_memory_regions): Add 'self' argument.
13245         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13246         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13247         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13248         * exec. (exec_do_find_memory_regions): New global.
13249         (exec_set_find_memory_regions): Rewrite.
13250         (exec_find_memory_regions): New function.
13251         (init_exec_ops): Use exec_find_memory_regions.
13252
13253 2014-02-19  Tom Tromey  <tromey@redhat.com>
13254
13255         * target.h (struct target_ops) <to_supports_non_stop>: Add
13256         argument.
13257         * target.c (find_default_supports_non_stop): Add argument.
13258         (target_supports_non_stop): Add argument.
13259         (find_default_supports_non_stop): Add 'self' argument.
13260         * remote.c (remote_supports_non_stop): Add 'self' argument.
13261         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13262
13263 2014-02-19  Tom Tromey  <tromey@redhat.com>
13264
13265         * target.h (struct target_ops) <to_log_command>: Add argument.
13266         (target_log_command): Add argument.
13267         * serial.h (serial_log_command): Add 'self' argument.
13268         * serial.c (serial_log_command): Add 'self' argument.
13269
13270 2014-02-19  Tom Tromey  <tromey@redhat.com>
13271
13272         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13273         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13274         argument.
13275         (target_pid_to_exec_file): Add argument.
13276         * target.c (debug_to_pid_to_exec_file): Add argument.
13277         (update_current_target): Update.
13278         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13279         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13280         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13281         (linux_handle_extended_wait): Update.
13282         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13283         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13284         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13285         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13286
13287 2014-02-19  Tom Tromey  <tromey@redhat.com>
13288
13289         * target.h (struct target_ops) <to_rcmd>: Add argument.
13290         (target_rcmd): Add argument.
13291         * target.c (debug_to_rcmd): Add argument.
13292         (update_current_target, do_monitor_command): Update.
13293         * remote.c (remote_rcmd): Add 'self' argument.
13294         * monitor.c (monitor_rcmd): Add 'self' argument.
13295
13296 2014-02-19  Tom Tromey  <tromey@redhat.com>
13297
13298         * windows-nat.c (windows_stop): Add 'self' argument.
13299         * target.h (struct target_ops) <to_stop>: Add argument.
13300         * target.c (target_stop): Add argument.
13301         (debug_to_stop): Add argument.
13302         (update_current_target): Update.
13303         * remote.c (remote_stop): Add 'self' argument.
13304         * remote-sim.c (gdbsim_stop): Add 'self' argument.
13305         (gdbsim_cntrl_c): Update.
13306         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13307         * procfs.c (procfs_stop): Add 'self' argument.
13308         * nto-procfs.c (procfs_stop): Add 'self' argument.
13309         * monitor.c (monitor_stop): Add 'self' argument.
13310         (monitor_open): Update.
13311         * linux-nat.c (linux_nat_stop): Add argument.
13312         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13313         * gnu-nat.c (gnu_stop): Add 'self' argument.
13314         * darwin-nat.c (darwin_stop): Add 'self' argument.
13315
13316 2014-02-19  Tom Tromey  <tromey@redhat.com>
13317
13318         * target.h (struct target_ops) <to_thread_name>: Add argument.
13319         * target.c (target_thread_name): Add argument.
13320         (update_current_target): Update.
13321         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13322
13323 2014-02-19  Tom Tromey  <tromey@redhat.com>
13324
13325         * target.h (struct target_ops) <to_extra_thread_info>: Add
13326         argument.
13327         (target_extra_thread_info): Add argument.
13328         * target.c (update_current_target): Update.
13329         * remote.c (remote_threads_extra_info): Add 'self' argument.
13330         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13331         argument.
13332         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13333         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13334         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13335         argument.
13336         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13337         argument.
13338         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13339         argument.
13340         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13341         argument.
13342
13343 2014-02-19  Tom Tromey  <tromey@redhat.com>
13344
13345         * target.h (struct target_ops) <to_program_signals>: Add argument.
13346         * target.c (target_program_signals): Add argument.
13347         * remote.c (remote_program_signals): Add 'self' argument.
13348
13349 2014-02-19  Tom Tromey  <tromey@redhat.com>
13350
13351         * target.h (struct target_ops) <to_pass_signals>: Add argument.
13352         * target.c (target_pass_signals): Add argument.
13353         * remote.c (remote_pass_signals): Add 'self' argument.
13354         (remote_start_remote): Update.
13355         * procfs.c (procfs_pass_signals): Add 'self' argument.
13356         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13357         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13358         (linux_nat_create_inferior, linux_nat_attach): Update.
13359
13360 2014-02-19  Tom Tromey  <tromey@redhat.com>
13361
13362         * windows-nat.c (windows_can_run): Add 'self' argument.
13363         * target.h (struct target_ops) <to_can_run>: Add argument.
13364         (target_can_run): Add argument.
13365         * target.c (debug_to_can_run): Add argument.
13366         (update_current_target): Update.
13367         * nto-procfs.c (procfs_can_run): Add 'self' argument.
13368         * inf-child.c (inf_child_can_run): Add 'self' argument.
13369         * go32-nat.c (go32_can_run): Add 'self' argument.
13370
13371 2014-02-19  Tom Tromey  <tromey@redhat.com>
13372
13373         * target.h (struct target_ops) <to_has_exited>: Add argument.
13374         (target_has_exited): Add argument.
13375         * target.c (debug_to_has_exited): Add argument.
13376         (update_current_target): Update.
13377
13378 2014-02-19  Tom Tromey  <tromey@redhat.com>
13379
13380         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13381         argument.
13382         (target_set_syscall_catchpoint): Add argument.
13383         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13384         argument.
13385         * target.c (update_current_target): Update.
13386
13387 2014-02-19  Tom Tromey  <tromey@redhat.com>
13388
13389         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13390         argument.
13391         (target_remove_exec_catchpoint): Add argument.
13392         * target.c (debug_to_remove_exec_catchpoint): Add argument.
13393         (update_current_target): Update.
13394         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13395         argument.
13396
13397 2014-02-19  Tom Tromey  <tromey@redhat.com>
13398
13399         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13400         argument.
13401         (target_insert_exec_catchpoint): Add argument.
13402         * target.c (debug_to_insert_exec_catchpoint): Add argument.
13403         (update_current_target): Update.
13404         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13405         argument.
13406
13407 2014-02-19  Tom Tromey  <tromey@redhat.com>
13408
13409         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13410         argument.
13411         (target_remove_vfork_catchpoint): Add argument.
13412         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13413         (update_current_target): Update.
13414         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13415         argument.
13416
13417 2014-02-19  Tom Tromey  <tromey@redhat.com>
13418
13419         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13420         argument.
13421         (target_insert_vfork_catchpoint): Add argument.
13422         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13423         (update_current_target): Update.
13424         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13425         argument.
13426
13427 2014-02-19  Tom Tromey  <tromey@redhat.com>
13428
13429         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13430         argument.
13431         (target_remove_fork_catchpoint): Add argument.
13432         * target.c (debug_to_remove_fork_catchpoint): Add argument.
13433         (update_current_target): Update.
13434         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13435         argument.
13436
13437 2014-02-19  Tom Tromey  <tromey@redhat.com>
13438
13439         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13440         argument.
13441         (target_insert_fork_catchpoint): Add argument.
13442         * target.c (debug_to_insert_fork_catchpoint): Add argument.
13443         (update_current_target): Update.
13444         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13445         argument.
13446
13447 2014-02-19  Tom Tromey  <tromey@redhat.com>
13448
13449         * target.h (struct target_ops) <to_post_startup_inferior>: Add
13450         argument.
13451         (target_post_startup_inferior): Add argument.
13452         * target.c (debug_to_post_startup_inferior): Add argument.
13453         (update_current_target): Update.
13454         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13455         argument.
13456         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13457         argument.
13458         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13459         argument.
13460         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13461         argument.
13462         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13463         'self' argument.
13464         (super_post_startup_inferior): Likewise.
13465         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13466         'self' argument.
13467         (super_post_startup_inferior): Likewise.
13468         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13469         Add 'self' argument.
13470         (super_post_startup_inferior): Likewise.
13471
13472 2014-02-19  Tom Tromey  <tromey@redhat.com>
13473
13474         * target.h (struct target_ops) <to_load>: Add argument.
13475         * target.c (target_load): Add argument.
13476         (debug_to_load): Add argument.
13477         (update_current_target): Update.
13478         * remote.c (remote_load): Add 'self' argument.
13479         * remote-sim.c (gdbsim_load): Add 'self' argument.
13480         * remote-mips.c (mips_load): Add 'self' argument.
13481         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13482         * monitor.c (monitor_load): Add 'self' argument.
13483         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13484
13485 2014-02-19  Tom Tromey  <tromey@redhat.com>
13486
13487         * target.h (struct target_ops) <to_terminal_info>: Add argument.
13488         (target_terminal_info): Add argument.
13489         * target.c (debug_to_terminal_info): Add argument.
13490         (default_terminal_info): Likewise.
13491         * inflow.c (child_terminal_info): Add 'self' argument.
13492         * inferior.h (child_terminal_info): Add 'self' argument.
13493         * go32-nat.c (go32_terminal_info): Add 'self' argument.
13494
13495 2014-02-19  Tom Tromey  <tromey@redhat.com>
13496
13497         * target.h (struct target_ops) <to_terminal_save_ours>: Add
13498         argument.
13499         (target_terminal_save_ours): Add argument.
13500         * target.c (debug_to_terminal_save_ours): Add argument.
13501         (update_current_target): Update.
13502         * inflow.c (terminal_save_ours): Add 'self' argument.
13503         * inferior.h (terminal_save_ours): Add 'self' argument.
13504
13505 2014-02-19  Tom Tromey  <tromey@redhat.com>
13506
13507         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13508         (target_terminal_ours): Add argument.
13509         * target.c (debug_to_terminal_ours): Add argument.
13510         (update_current_target): Update.
13511         * remote.c (remote_terminal_ours): Add 'self' argument.
13512         (remote_close): Update.
13513         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13514         * inflow.c (terminal_ours): Add 'self' argument.
13515         * inferior.h (terminal_ours): Add 'self' argument.
13516         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13517
13518 2014-02-19  Pedro Alves  <palves@redhat.com>
13519             Tom Tromey  <tromey@redhat.com>
13520
13521         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13522         argument.
13523         (target_terminal_ours_for_output): Add argument.
13524         * target.c (debug_to_terminal_ours_for_output): Add argument.
13525         (update_current_target): Update.
13526         * inflow.c (terminal_ours_for_output): Add 'self' argument.
13527         * inferior.h (terminal_ours_for_output): Add 'self' argument.
13528         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13529
13530 2014-02-19  Tom Tromey  <tromey@redhat.com>
13531
13532         * target.h (struct target_ops) <to_terminal_inferior>: Add
13533         argument.
13534         * target.c (target_terminal_inferior): Add argument.
13535         (update_current_target): Update.
13536         * remote.c (remote_terminal_inferior): Add 'self' argument.
13537         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13538         * inflow.c (terminal_inferior): Add 'self' argument.
13539         * inferior.h (terminal_inferior): Add 'self' argument.
13540         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13541         (go32_terminal_inferior): Add 'self' argument.
13542
13543 2014-02-19  Tom Tromey  <tromey@redhat.com>
13544
13545         * target.h (struct target_ops) <to_terminal_init>: Add argument.
13546         (target_terminal_init): Add argument.
13547         * target.c (debug_to_terminal_init): Add argument.
13548         (update_current_target): Update.
13549         * inflow.c (terminal_init_inferior): Add 'self' argument.
13550         * inferior.h (terminal_init_inferior): Add 'self' argument.
13551         * go32-nat.c (go32_terminal_init): Add 'self' argument.
13552         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13553
13554 2014-02-19  Tom Tromey  <tromey@redhat.com>
13555
13556         * target.h (struct target_ops)
13557         <to_can_accel_watchpoint_condition>: Add argument.
13558         (target_can_accel_watchpoint_condition): Add argument.
13559         * target.c (debug_to_can_accel_watchpoint_condition): Add
13560         argument.
13561         (update_current_target): Update.
13562         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13563         'self' argument.
13564
13565 2014-02-19  Tom Tromey  <tromey@redhat.com>
13566
13567         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13568         Add argument.
13569         (target_region_ok_for_hw_watchpoint): Add argument.
13570         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13571         (default_region_ok_for_hw_watchpoint): Add argument.
13572         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13573         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13574         argument.
13575         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13576         argument.
13577         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13578         argument.
13579         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13580         'self' argument.
13581         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13582         'self' argument.
13583         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13584         'self' argument.
13585         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13586         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13587         'self' argument.
13588         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13589         Add 'self' argument.
13590
13591 2014-02-19  Tom Tromey  <tromey@redhat.com>
13592
13593         * target.h (struct target_ops) <to_insert_watchpoint>: Add
13594         argument.
13595         (target_insert_watchpoint): Add argument.
13596         * target.c (debug_to_insert_watchpoint): Add argument.
13597         (update_current_target): Update.
13598         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13599         * remote.c (remote_insert_watchpoint): Add 'self' argument.
13600         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13601         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13602         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13603         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13604         argument.
13605         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13606         (procfs_insert_hw_watchpoint): Add 'self' argument.
13607         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13608         argument.
13609         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13610         argument.
13611         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13612         argument.
13613         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13614         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13615         argument.
13616         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13617         'self' argument.
13618
13619 2014-02-19  Tom Tromey  <tromey@redhat.com>
13620
13621         * target.h (struct target_ops) <to_remove_watchpoint>: Add
13622         argument.
13623         (target_remove_watchpoint): Add argument.
13624         * target.c (debug_to_remove_watchpoint): Add argument.
13625         (update_current_target): Update.
13626         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13627         * remote.c (remote_remove_watchpoint): Add 'self' argument.
13628         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13629         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13630         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13631         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13632         argument.
13633         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13634         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13635         argument.
13636         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13637         argument.
13638         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13639         argument.
13640         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13641         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13642         argument.
13643         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13644         'self' argument.
13645
13646 2014-02-19  Tom Tromey  <tromey@redhat.com>
13647
13648         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13649         argument.
13650         (target_remove_hw_breakpoint): Add argument.
13651         * target.c (debug_to_remove_hw_breakpoint): Add argument.
13652         (update_current_target): Update.
13653         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13654         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13655         argument.
13656         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13657         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13658         argument.
13659         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13660         'self' argument.
13661
13662 2014-02-19  Tom Tromey  <tromey@redhat.com>
13663
13664         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13665         argument.
13666         (target_insert_hw_breakpoint): Add argument.
13667         * target.c (debug_to_insert_hw_breakpoint): Add argument.
13668         (update_current_target): Update.
13669         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13670         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13671         argument.
13672         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13673         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13674         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13675         argument.
13676         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13677         'self' argument.
13678
13679 2014-02-19  Tom Tromey  <tromey@redhat.com>
13680
13681         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13682         argument.
13683         (target_can_use_hardware_watchpoint): Add argument.
13684         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13685         (update_current_target): Update.
13686         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13687         argument.
13688         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13689         argument.
13690         * remote.c (remote_check_watch_resources): Add 'self' argument.
13691         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13692         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13693         argument.
13694         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13695         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13696         argument.
13697         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13698         argument.
13699         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13700         argument.
13701         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13702         argument.
13703         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13704         argument.
13705         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13706         argument.
13707         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13708         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13709         argument.
13710         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13711         'self' argument.
13712
13713 2014-02-19  Tom Tromey  <tromey@redhat.com>
13714
13715         * target.h (struct target_ops) <to_post_attach>: Add argument.
13716         (target_post_attach): Add argument.
13717         * target.c (debug_to_post_attach): Add argument.
13718         (update_current_target): Update.
13719         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13720         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13721         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13722         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13723         * inf-child.c (inf_child_post_attach): Add 'self' argument.
13724
13725 2014-02-19  Tom Tromey  <tromey@redhat.com>
13726
13727         * windows-nat.c (windows_close): Add 'self' argument.
13728         * tracepoint.c (tfile_close): Add 'self' argument.
13729         * target.h (struct target_ops) <to_close>: Add argument.
13730         * target.c (target_close): Add argument.
13731         (update_current_target): Update.
13732         * remote.c (remote_close): Add 'self' argument.
13733         * remote-sim.c (gdbsim_close): Add 'self' argument.
13734         * remote-mips.c (mips_close): Add 'self' argument.
13735         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13736         * record-full.c (record_full_close): Add 'self' argument.
13737         * record-btrace.c (record_btrace_close): Add 'self' argument.
13738         * monitor.h (monitor_close): Add 'self' argument.
13739         * monitor.c (monitor_close): Add 'self' argument.
13740         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13741         * linux-nat.c (linux_nat_close): Add argument.
13742         * go32-nat.c (go32_close): Add 'self' argument.
13743         * exec.c (exec_close_1): Add 'self' argument.
13744         * ctf.c (ctf_close): Add 'self' argument.
13745         * corelow.c (core_close): Add 'self' argument.
13746         (core_close_cleanup): Update.
13747         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13748         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13749
13750 2014-02-19  Tom Tromey  <tromey@redhat.com>
13751
13752         * remote.c (remote_load): New function.
13753         (init_remote_ops): Use it.
13754
13755 2014-02-19  Tom Tromey  <tromey@redhat.com>
13756
13757         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13758         argument.
13759         * common/linux-btrace.h (linux_supports_btrace): Update.
13760         * remote.c (remote_supports_btrace): Add "self" argument.
13761         * target-delegates.c: Rebuild.
13762         * target.c (target_supports_btrace): Remove.
13763         * target.h (struct target_ops) <to_supports_btrace>: Add
13764         target_ops argument.
13765         (target_supports_btrace): New define.
13766
13767 2014-02-19  Tom Tromey  <tromey@redhat.com>
13768
13769         * record-full.c (record_full_beneath_to_resume_ops)
13770         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13771         (record_full_beneath_to_wait)
13772         (record_full_beneath_to_store_registers_ops)
13773         (record_full_beneath_to_store_registers)
13774         (record_full_beneath_to_xfer_partial_ops)
13775         (record_full_beneath_to_xfer_partial)
13776         (record_full_beneath_to_insert_breakpoint_ops)
13777         (record_full_beneath_to_insert_breakpoint)
13778         (record_full_beneath_to_remove_breakpoint_ops)
13779         (record_full_beneath_to_remove_breakpoint)
13780         (record_full_beneath_to_stopped_by_watchpoint)
13781         (record_full_beneath_to_stopped_data_address)
13782         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13783         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13784         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13785         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13786         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13787         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13788         (tmp_to_stopped_data_address, tmp_to_async): Remove.
13789         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
13790         (record_full_resume, record_full_wait_1)
13791         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13792         (record_full_store_registers, record_full_xfer_partial)
13793         (record_full_insert_breakpoint, record_full_remove_breakpoint)
13794         (record_full_async, record_full_core_xfer_partial): Use target
13795         delegation.
13796         * target-delegates.c: Rebuild.
13797         * target.c (current_xfer_partial): Remove.
13798         (update_current_target): Do not INHERIT or de_fault
13799         to_insert_breakpoint, to_remove_breakpoint,
13800         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13801         to_is_async_p, to_async.  Do not set to_xfer_partial field.
13802         (default_xfer_partial): Simplify.
13803         (current_xfer_partial): Remove.
13804         (target_wait, target_resume): Simplify.
13805         (find_default_can_async_p, find_default_is_async_p): Update.
13806         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13807         to_xfer_partial, to_stopped_by_watchpoint,
13808         to_stopped_data_address.
13809         (target_store_registers): Simplify.
13810         (forward_target_remove_breakpoint)
13811         (forward_target_insert_breakpoint): Remove.
13812         (target_remove_breakpoint, target_insert_breakpoint)
13813         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13814         * target.h (struct target_ops) <to_resume, to_wait,
13815         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13816         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13817         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13818         markup.
13819         (forward_target_remove_breakpoint)
13820         (forward_target_insert_breakpoint): Remove.
13821         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13822         directly.
13823         (record_btrace_insert_breakpoint): Delegate directly.
13824
13825 2014-02-19  Tom Tromey  <tromey@redhat.com>
13826
13827         PR build/7701:
13828         * target-delegates.c: New file.
13829         * target.c: Include target-delegates.c.
13830         (init_dummy_target): Call install_dummy_methods.
13831         (complete_target_initialization): Call install_delegators.
13832         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13833         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13834         * make-target-delegates: New file.
13835
13836 2014-02-19  Tom Tromey  <tromey@redhat.com>
13837
13838         * record.c (find_record_target): Use find_target_at.
13839         * target.c (find_target_at): New function.
13840         * target.h (find_target_at): Declare.
13841
13842 2014-02-19  Tom Tromey  <tromey@redhat.com>
13843
13844         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13845         Add 'ops' argument.
13846         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13847         'ops' argument.
13848         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13849         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13850         'ops' argument.
13851         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13852         argument.
13853         * linux-nat.c (save_sigtrap): Update.
13854         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13855         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13856         (linux_nat_close): Update.
13857         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13858         argument.
13859         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13860         argument.
13861         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13862         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13863         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13864         (tmp_to_async): Add 'ops' argument.
13865         (record_full_stopped_by_watchpoint, record_full_async)
13866         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13867         argument.
13868         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13869         (m32r_stopped_by_watchpoint): Add 'ops' argument.
13870         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13871         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13872         (remote_is_async_p, remote_async): Add 'ops' argument.
13873         (remote_stopped_data_address): Update.
13874         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13875         * target.c (update_current_target)
13876         (find_default_can_async_p, find_default_is_async_p): Update.
13877         (init_dummy_target): Update.
13878         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13879         * target.h (struct target_ops) <to_stopped_by_watchpoint,
13880         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13881         (target_can_async_p, target_is_async_p, target_async)
13882         (target_stopped_by_watchpoint): Update.
13883
13884 2014-02-19  Yao Qi  <yao@codesourcery.com>
13885
13886         PR gdb/16220
13887         * gdbarch.sh: Remove startup_gdbarch.
13888         * gdbarch.c: Regenerated.
13889         * gdbarch.h: Likewise.
13890
13891 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
13892
13893         * rl78-tdep.c (rl78_g10_register_name): New function.
13894         (rl78_return_value): Add g10 support.
13895         (rl78_gdbarch_init): Register rl78_g10_register_name for the
13896         g10.
13897
13898 2014-02-17  Doug Evans  <xdje42@gmail.com>
13899
13900         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13901         (SUBDIR_GUILE_SRCS): Ditto.
13902         (scm-gsmob.o): Ditto.
13903
13904 2014-02-17  Yao Qi  <yao@codesourcery.com>
13905
13906         * gnu-nat.c (ILL_RPC): Declare defined function.
13907
13908 2014-02-17  Yao Qi  <yao@codesourcery.com>
13909
13910         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13911         mach_msg_type_number_t.
13912         (gnu_write_inferior): Likewise.
13913
13914 2014-02-17  Yao Qi  <yao@codesourcery.com>
13915
13916         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13917         in format string.
13918         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13919         (inf_validate_procs, inf_signal): Likewise.
13920         (S_exception_raise_request): Likewise.
13921         (do_mach_notify_dead_name): Likewise.
13922         (steal_exc_port): Likewise.
13923         (gnu_read_inferior): Change 'copy_count''s type to
13924         mach_msg_type_number_t.
13925         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
13926         format string.
13927
13928 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
13929
13930         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13931         flag.  Adjust all users; in particular...
13932         (gnu_wait): ..., don't decrement its value in here...
13933         (gnu_create_inferior): ..., and instead set the flag in here,
13934         around the startup_inferior call, and call that one with
13935         START_INFERIOR_TRAPS_EXPECTED.
13936
13937         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13938         (ILL_RPC): ... new macro.
13939         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13940         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13941         (do_mach_notify_send_once, S_proc_setmsgport_reply)
13942         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13943         functions with ILL_RPC macro.
13944         (S_proc_pid2task_reply, S_proc_task2pid_reply)
13945         (S_proc_task2proc_reply, S_proc_proc2task_reply)
13946         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13947         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13948         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13949         (S_proc_getlogin_reply, S_proc_getsid_reply)
13950         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13951         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13952         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13953         (S_proc_getnports_reply, S_proc_is_important_reply)
13954         (S_proc_get_code_reply): New stub functions, generated with
13955         ILL_RPC macro.
13956
13957         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13958         collected the type check structures.
13959
13960         * reply_mig_hack.awk: Don't expect to see the auto keyword.
13961
13962 2014-02-14  Doug Evans  <dje@google.com>
13963
13964         * target.c (target_write_partial): Fix result type.
13965
13966 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
13967
13968         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13969         the proper offsets to access fpregset_t.
13970
13971 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
13972
13973         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13974         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13975         * h8300-tdep.c (setmachinelist): Remove global.
13976         * hppa-tdep.c (hppa_sigtramp): Remove global.
13977         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13978         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13979         * ravenscar-thread.c (update_target_observer): Remove global.
13980         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13981
13982 2014-02-12  Tom Tromey  <tromey@redhat.com>
13983
13984         * common/rsp-low.c: Update comments.
13985         * common/rsp-low.h: Update comments.
13986
13987 2014-02-12  Tom Tromey  <tromey@redhat.com>
13988
13989         * common/rsp-low.c (convert_ascii_to_int): Remove.
13990         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13991
13992 2014-02-12  Tom Tromey  <tromey@redhat.com>
13993
13994         * common/rsp-low.h (unhexify): Don't declare.
13995         * common/rsp-low.c (unhexify): Remove.
13996
13997 2014-02-12  Tom Tromey  <tromey@redhat.com>
13998
13999         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
14000         * common/rsp-low.c (convert_int_to_ascii): Remove.
14001
14002 2014-02-12  Tom Tromey  <tromey@redhat.com>
14003
14004         * common/rsp-low.h (hexify): Don't declare.
14005         * common/rsp-low.c (hexify): Remove.
14006
14007 2014-02-12  Tom Tromey  <tromey@redhat.com>
14008
14009         * common/rsp-low.c (hexify): Never take strlen of argument.
14010
14011 2014-02-12  Tom Tromey  <tromey@redhat.com>
14012
14013         * common/rsp-low.c (bin2hex): Never take strlen of argument.
14014         * remote.c (extended_remote_run, remote_rcmd)
14015         (remote_download_trace_state_variable, remote_save_trace_data)
14016         (remote_set_trace_notes): Update.
14017         * tracepoint.c (encode_source_string, tfile_write_status)
14018         (tfile_write_uploaded_tsv): Update.
14019
14020 2014-02-12  Tom Tromey  <tromey@redhat.com>
14021
14022         * tracepoint.c: Include rsp-low.h.
14023         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
14024         * remote.c: Include rsp-low.h.
14025         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
14026         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
14027         (remote_unescape_input): Move to common/rsp-low.c.
14028         * common/rsp-low.h: New file.
14029         * common/rsp-low.c: New file.
14030         * Makefile.in (SFILES): Add common/rsp-low.c.
14031         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
14032         (COMMON_OBS): Add rsp-low.o.
14033         (rsp-low.o): New target.
14034
14035 2014-02-12  Tom Tromey  <tromey@redhat.com>
14036
14037         * utils.h: Include print-utils.h.
14038         (host_address_to_string, plongest, pulongest, phex, phex_nz)
14039         (int_string, core_addr_to_string, core_addr_to_string_nz)
14040         (hex_string, hex_string_custom): Don't declare.
14041         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
14042         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
14043         (hex_string_custom, int_string, core_addr_to_string)
14044         (core_addr_to_string_nz, host_address_to_string): Move to
14045         common/print-utils.c.
14046         * common/print-utils.h: New file.
14047         * common/print-utils.c: New file
14048         * Makefile.in (SFILES): Add common/print-utils.c.
14049         (HFILES_NO_SRCDIR): Add common/print-utils.h.
14050         (COMMON_OBS): Add print-utils.o.
14051         (print-utils.o): New target.
14052
14053 2014-02-12  Tom Tromey  <tromey@redhat.com>
14054
14055         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
14056
14057 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
14058
14059         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
14060
14061 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
14062
14063         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
14064         if a PT_IO ptrace request returns sucessfully but indicates that 0
14065         bytes were transferred.
14066
14067 2014-02-12  Pedro Alves  <palves@redhat.com>
14068             Kevin Buettner <kevinb@redhat.com>
14069
14070         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
14071         TYPE_INSTANCE_FLAG_CODE_SPACE.
14072
14073 2014-02-12  Pedro Alves  <palves@redhat.com>
14074
14075         * h8300-tdep.c (pseudo_from_raw_register)
14076         (raw_from_pseudo_register): New functions.
14077         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
14078         them.
14079
14080 2014-02-12  Pedro Alves  <palves@redhat.com>
14081
14082         * h8300-tdep.c (h8300_register_sim_regno): New function.
14083         (h8300_gdbarch_init): Install h8300_register_sim_regno as
14084         gdbarch_register_sim_regno hook.
14085
14086 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
14087
14088         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
14089
14090 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
14091
14092         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
14093
14094 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
14095
14096         * obsd-tdep.h (obsd_init_abi): New prototype.
14097         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
14098         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
14099         (obsd_init_abi): New functions.
14100         * i386obsd-tdep.c: Include "obsd-tdep.h".
14101         (i386obsd_init_abi): Call obsd_init_abi.
14102         * amd64obsd-tdep.c: Include "obsd-tdep.h".
14103         (amd64obsd_init_abi): Call obsd_init_abi.
14104         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
14105         obsd-tdep.c to gdb_target_obs.
14106
14107 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
14108
14109         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
14110         double float arguments to 16-byte in the argument slots.
14111
14112 2014-02-11  Doug Evans  <xdje42@gmail.com>
14113
14114         * configure.ac: Don't crash if pkg-config is not found and guile
14115         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
14116         in guile checks.
14117         * configure: Regenerate.
14118
14119 2014-02-11  Yao Qi  <yao@codesourcery.com>
14120
14121         * aix-thread.c (aix_thread_xfer_partial): Update comments.
14122         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
14123         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14124         * gnu-nat.c (gnu_xfer_memory): Likewise.
14125         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
14126         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14127         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14128         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14129
14130 2014-02-11  Yao Qi  <yao@codesourcery.com>
14131
14132         * target.h (enum target_xfer_error): Rename to ...
14133         (enum target_xfer_status): ... it.  New.  All users updated.
14134         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
14135         New.
14136         (TARGET_XFER_STATUS_ERROR_P): New macro.
14137         (target_xfer_error_to_string): Remove declaration.
14138         (target_xfer_status_to_string): Declare.
14139         (target_xfer_partial_ftype): Adjust it.
14140         (struct target_ops) <to_xfer_partial>: Return
14141         target_xfer_status.  Add argument xfered_len.  Update
14142         comments.
14143         * target.c (target_xfer_error_to_string): Rename to ...
14144         (target_xfer_status_to_string): ... it.  New.  All callers
14145         updated.
14146         (target_read_live_memory): Likewise.  Call target_xfer_partial
14147         instead of target_read.
14148         (memory_xfer_live_readonly_partial): Return
14149         target_xfer_status.  Add argument xfered_len.
14150         (raw_memory_xfer_partial): Likewise.
14151         (memory_xfer_partial_1): Likewise.
14152         (memory_xfer_partial): Likewise.
14153         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
14154         properly.  Update debug message.
14155         (default_xfer_partial, current_xfer_partial): Likewise.
14156         (target_write_partial): Likewise.
14157         (target_read_partial): Likewise.  All callers updated.
14158         (read_whatever_is_readable): Likewise.
14159         (target_write_with_progress): Likewise.
14160         (target_read_alloc_1): Likewise.
14161
14162         * aix-thread.c (aix_thread_xfer_partial): Likewise.
14163         * auxv.c (procfs_xfer_auxv): Likewise.
14164         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
14165         * bfd-target.c (target_bfd_xfer_partial): Likewise.
14166         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14167         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
14168         * corefile.c (read_memory): Adjust.
14169         * corelow.c (core_xfer_partial): Likewise.
14170         * ctf.c (ctf_xfer_partial): Likewise.
14171         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
14172         updated.
14173         (darwin_xfer_partial): Likewise.
14174         * exec.c (section_table_xfer_memory_partial): Likewise.  All
14175         callers updated.
14176         (exec_xfer_partial): Likewise.
14177         * exec.h (section_table_xfer_memory_partial): Update
14178         declaration.
14179         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
14180         negative.
14181         (gnu_xfer_partial): Likewise.
14182         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14183         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14184         (ia64_hpux_xfer_solib_got): Likewise.
14185         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
14186         type of 'partial_len' to ULONGEST.
14187         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14188         * linux-nat.c (linux_xfer_siginfo ): Likewise.
14189         (linux_nat_xfer_partial): Likewise.
14190         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14191         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14192         * monitor.c (monitor_xfer_memory): Likewise.
14193         (monitor_xfer_partial): Likewise.
14194         * procfs.c (procfs_xfer_partial): Likewise.
14195         * record-btrace.c (record_btrace_xfer_partial): Likewise.
14196         * record-full.c (record_full_xfer_partial): Likewise.
14197         (record_full_core_xfer_partial): Likewise.
14198         * remote-sim.c (gdbsim_xfer_memory): Likewise.
14199         (gdbsim_xfer_partial): Likewise.
14200         * remote.c (remote_write_bytes_aux): Likewise.  All callers
14201         updated.
14202         (remote_write_bytes, remote_read_bytes): Likewise.  All
14203         callers updated.
14204         (remote_flash_erase): Likewise.  All callers updated.
14205         (remote_write_qxfer): Likewise.  All callers updated.
14206         (remote_read_qxfer): Likewise.  All callers updated.
14207         (remote_xfer_partial): Likewise.
14208         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14209         (rs6000_xfer_shared_libraries): Likewise.
14210         * sol-thread.c (sol_thread_xfer_partial): Likewise.
14211         (sol_thread_xfer_partial): Likewise.
14212         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14213         (sparc_xfer_partial): Likewise.
14214         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
14215         updated.
14216         (spu_xfer_partial): Likewise.
14217         * spu-multiarch.c (spu_xfer_partial): Likewise.
14218         * tracepoint.c (tfile_xfer_partial): Likewise.
14219         * windows-nat.c (windows_xfer_memory): Likewise.
14220         (windows_xfer_shared_libraries): Likewise.
14221         (windows_xfer_partial): Likewise.
14222         * valprint.c: Replace 'target_xfer_error' with
14223         'target_xfer_status' in comments.
14224
14225 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
14226
14227         Checked in by Joel Brobecker <brobecker@adacore.com>.
14228         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14229
14230 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
14231
14232         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14233         function parameters.
14234
14235 2014-02-10  Will Newton  <will.newton@linaro.org>
14236
14237         * elfread.c (elf_rel_plt_read): Look for a .got section if
14238         looking up .got.plt fails.
14239         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14240         on address passed to elf_gnu_ifunc_record_cache.
14241         (elf_gnu_ifunc_resolve_addr): Likewise.
14242         (elf_gnu_ifunc_resolver_return_stop): Likewise.
14243
14244 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
14245
14246         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14247         (X_RETTURN): New macro.
14248         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14249
14250         * sparc64-tdep.c (sparc64_init_abi): Hook
14251         sparc_in_function_epilogue_p.
14252
14253 2014-02-10  Gary Benson  <gbenson@redhat.com>
14254
14255         * symfile-debug.c (debug_qf_expand_symtabs_matching):
14256         Rename name_matcher to symbol_matcher.
14257
14258 2014-02-10  Gary Benson  <gbenson@redhat.com>
14259
14260         * symfile-debug.c (debug_qf_expand_symtabs_matching):
14261         Use expand_symtabs_file_matcher_ftype and
14262         expand_symtabs_symbol_matcher_ftype.
14263
14264 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
14265
14266         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14267         (struct ada_symbol_cache): New.
14268         (ada_free_symbol_cache): Forward declare.
14269         (struct ada_pspace_data): New.
14270         (ada_pspace_data_handle): New static global.
14271         (get_ada_pspace_data, ada_pspace_data_cleanup)
14272         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14273         (cache_space, cache): Delete, now folded inside struct
14274         ada_pspace_data.
14275         (ada_get_symbol_cache): New function.
14276         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14277         implementation.
14278         (_initialize_ada_language): Remove initialization of cache_space.
14279         Move call to observer_attach_inferior_exit up, grouping it
14280         with the other observer registrations inside this function.
14281         Rename command to be more general.  Add call to
14282         register_program_space_data_with_cleanup.
14283
14284 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
14285
14286         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14287         ada_new_objfile_observer.
14288         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14289         (_initialize_tasks): Update uses of ada_new_objfile_observer
14290         and ada_tasks_normal_stop_observer.
14291
14292 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
14293
14294         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14295         returned by the 'Length attribute to integer.
14296
14297 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
14298
14299         * ada-lang.c (_initialize_ada_language): Initialize
14300         cache_space obstack.
14301
14302 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
14303
14304         * ada-lang.c (HASH_SIZE): New macro.
14305         (struct cache_entry): New type.
14306         (cache_space, cache): New static globals.
14307         (ada_clear_symbol_cache, find_entry): New functions.
14308         (lookup_cached_symbol, cache_symbol): Implement.
14309         (ada_new_objfile_observer, ada_free_objfile_observer): New.
14310         (_initialize_ada_language): Attach ada_new_objfile_observer
14311         and ada_free_objfile_observer.
14312
14313 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
14314
14315         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14316         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14317         struct block * parameter.
14318         (ada_lookup_symbol_list_worker): Constify local variable "block".
14319         Remove cast which is no longer necessary.
14320
14321 2014-02-10  Doug Evans  <xdje42@gmail.com>
14322
14323         Add Guile as an extension language.
14324         * NEWS: Mention Guile scripting.
14325         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14326         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14327         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14328         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14329         (CLIBS): Add GUILE_LIBS.
14330         (install-guile): New rule.
14331         (guile.o): New rule.
14332         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14333         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14334         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14335         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14336         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14337         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14338         (scm-type.o, scm-utils.o, scm-value.o): New rules.
14339         * configure.ac: New option --with-guile.
14340         * configure: Regenerate.
14341         * config.in: Regenerate.
14342         * auto-load.c: Remove #include "python/python.h".  Add #include
14343         "gdb/section-scripts.h".
14344         (source_section_scripts): Handle Guile scripts.
14345         (_initialize_auto_load): Add name of Guile objfile script to
14346         scripts-directory help text.
14347         * breakpoint.c (condition_command): Tweak comment to include Scheme.
14348         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14349         (struct breakpoint): New member scm_bp_object.
14350         * defs.h (enum command_control_type): New value guile_control.
14351         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
14352         "extension.h".
14353         (show_user): Update comment.
14354         (_initialize_cli_cmds): Update help text for "show user".  Update help
14355         text for max-user-call-depth.
14356         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
14357         "extension.h".
14358         (multi_line_command_p): Add guile_control.
14359         (print_command_lines): Handle guile_control.
14360         (execute_control_command, recurse_read_control_structure): Ditto.
14361         (process_next_line): Recognize "guile" commands.
14362         * disasm.c (gdb_disassemble_info): Make non-static.
14363         * disasm.h: #include "dis-asm.h".
14364         (struct gdbarch): Add forward decl.
14365         (gdb_disassemble_info): Declare.
14366         * extension.c: #include "guile/guile.h".
14367         (extension_languages): Add guile.
14368         (get_ext_lang_defn): Handle EXT_LANG_GDB.
14369         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14370         * gdbtypes.c (get_unsigned_type_max): New function.
14371         (get_signed_type_minmax): New function.
14372         * gdbtypes.h (get_unsigned_type_max): Declare.
14373         (get_signed_type_minmax): Declare.
14374         * guile/README: New file.
14375         * guile/guile-internal.h: New file.
14376         * guile/guile.c: New file.
14377         * guile/guile.h: New file.
14378         * guile/scm-arch.c: New file.
14379         * guile/scm-auto-load.c: New file.
14380         * guile/scm-block.c: New file.
14381         * guile/scm-breakpoint.c: New file.
14382         * guile/scm-disasm.c: New file.
14383         * guile/scm-exception.c: New file.
14384         * guile/scm-frame.c: New file.
14385         * guile/scm-gsmob.c: New file.
14386         * guile/scm-iterator.c: New file.
14387         * guile/scm-lazy-string.c: New file.
14388         * guile/scm-math.c: New file.
14389         * guile/scm-objfile.c: New file.
14390         * guile/scm-ports.c: New file.
14391         * guile/scm-pretty-print.c: New file.
14392         * guile/scm-safe-call.c: New file.
14393         * guile/scm-string.c: New file.
14394         * guile/scm-symbol.c: New file.
14395         * guile/scm-symtab.c: New file.
14396         * guile/scm-type.c: New file.
14397         * guile/scm-utils.c: New file.
14398         * guile/scm-value.c: New file.
14399         * guile/lib/gdb.scm: New file.
14400         * guile/lib/gdb/boot.scm: New file.
14401         * guile/lib/gdb/experimental.scm: New file.
14402         * guile/lib/gdb/init.scm: New file.
14403         * guile/lib/gdb/iterator.scm: New file.
14404         * guile/lib/gdb/printing.scm: New file.
14405         * guile/lib/gdb/types.scm: New file.
14406         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14407         (VPATH): Add $(GUILE_SRCDIR).
14408         (GUILE_DIR): New variable.
14409         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14410         (all): Add stamp-guile dependency.
14411         (stamp-guile): New rule.
14412         (clean-guile, install-guile, uninstall-guile): New rules.
14413         (install-only): Add install-guile dependency.
14414         (uninstall): Add uninstall-guile dependency.
14415         (clean): Add clean-guile dependency.
14416
14417 2014-02-09  Doug Evans  <xdje42@gmail.com>
14418
14419         Revert this patch (which I approved, mea culpa).
14420
14421         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
14422
14423         * Makefile.in (all-lib): Remove.
14424         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14425
14426 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
14427
14428         Fix Python stack corruption.
14429         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14430         gdb_py_longest.
14431
14432 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
14433
14434         * Makefile.in (all-lib): Remove.
14435         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14436
14437 2014-02-07  Doug Evans  <dje@google.com>
14438
14439         * extension-priv.h (extension_language_script_ops): Add comment.
14440         (extension_language_ops): Add comment.
14441         (active_ext_lang_state): Fix typo in comment.
14442
14443 2014-02-07  Pedro Alves  <palves@redhat.com>
14444
14445         PR breakpoints/16292
14446         * infrun.c (handle_signal_stop) <signal arrives while stepping
14447         over a breakpoint>: Switch back to the stepping thread.
14448
14449 2014-02-07  Yao Qi  <yao@codesourcery.com>
14450
14451         * target.c (target_xfer_partial): Return zero if LEN is zero.
14452
14453 2014-02-07  Yao Qi  <yao@codesourcery.com>
14454
14455         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14456         (ld_so_xfer_auxv): Likewise.
14457         * bfd-target.c (target_bfd_xfer_partial): Likewise.
14458         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14459         * corelow.c (core_xfer_partial): Likewise.
14460         * ctf.c (ctf_xfer_partial): Likewise.
14461         * darwin-nat.c (darwin_read_dyld_info): Likewise.
14462         (darwin_xfer_partial): Likewise.
14463         * exec.c (exec_xfer_partial): Likewise.
14464         * gnu-nat.c (gnu_xfer_partial): Likewise.
14465         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14466         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14467         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14468         * linux-nat.c (linux_xfer_siginfo): Likewise.
14469         (linux_proc_xfer_spu): Likewise.
14470         * procfs.c (procfs_xfer_partial): Likewise.
14471         * record-full.c (record_full_xfer_partial): Likewise.
14472         (record_full_core_xfer_partial): Likewise.
14473         * remote-sim.c (gdbsim_xfer_partial): Likewise.
14474         * remote.c (remote_write_qxfer): Likewise.
14475         (remote_write_qxfer, remote_read_qxfer): Likewise.
14476         (remote_xfer_partial): Likewise.
14477         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14478         (rs6000_xfer_shared_libraries): Likewise.
14479         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14480         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14481         (spu_xfer_partial): Likewise.
14482         * target.c (memory_xfer_partial_1): Likewise.
14483         * tracepoint.c (tfile_xfer_partial): Likewise.
14484         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14485         (windows_xfer_partial): Likewise.
14486
14487 2014-02-07  Yao Qi  <yao@codesourcery.com>
14488
14489         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
14490         comments.
14491         (core_xfer_shared_libraries_aix): Likewise.
14492         * gdbarch.c, gdbarch.h: Regenerated.
14493         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14494         ULONGEST.  Change 'len_avail' type to ULONGEST.
14495         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14496         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14497         declaration.
14498         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14499
14500 2014-02-07  Yao Qi  <yao@codesourcery.com>
14501
14502         * corefile.c (memory_error): Get 'exception' from ERR and pass
14503         'exception' to throw_error.
14504
14505 2014-02-06  Doug Evans  <xdje42@gmail.com>
14506
14507         * configure.ac (libpython checking): Remove all but python.o from
14508         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
14509         * configure: Regenerate.
14510
14511         * Makefile.in (SFILES): Add extension.c.
14512         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14513         (COMMON_OBS): Add extension.o.
14514         * extension.h: New file.
14515         * extension-priv.h: New file.
14516         * extension.c: New file.
14517
14518         * python/python-internal.h: #include "extension.h".
14519         (gdbpy_auto_load_enabled): Declare.
14520         (gdbpy_apply_val_pretty_printer): Declare.
14521         (gdbpy_apply_frame_filter): Declare.
14522         (gdbpy_preserve_values): Declare.
14523         (gdbpy_breakpoint_cond_says_stop): Declare.
14524         (gdbpy_breakpoint_has_cond): Declare.
14525         (void source_python_script_for_objfile): Delete.
14526         * python/python.c: #include "extension-priv.h".
14527         Delete inclusion of "observer.h".
14528         (extension_language_python): Moved here and renamed from
14529         script_language_python in py-auto-load.c.
14530         Redefined to be of type extension_language_defn.
14531         (python_extension_script_ops): New global.
14532         (python_extension_ops): New global.
14533         (struct python_env): New member previous_active.
14534         (restore_python_env): Call restore_active_ext_lang.
14535         (ensure_python_env): Call set_active_ext_lang.
14536         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14537         New arg extlang.
14538         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14539         New arg extlang.
14540         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14541         New arg extlang.
14542         (gdbpy_eval_from_control_command): Renamed from
14543         eval_python_from_control_command, made static.  New arg extlang.
14544         (gdbpy_source_script) Renamed from source_python_script, made static.
14545         New arg extlang.
14546         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
14547         result to int.  New arg extlang.
14548         (gdbpy_source_objfile_script): Renamed from
14549         source_python_script_for_objfile, made static.  New arg extlang.
14550         (gdbpy_start_type_printers): Renamed from start_type_printers, made
14551         static.  New args extlang, extlang_printers.  Change result type to
14552         "void".
14553         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14554         static.  New arg extlang.  Rename arg printers to extlang_printers
14555         and change type to ext_lang_type_printers *.
14556         (gdbpy_free_type_printers): Renamed from free_type_printers, made
14557         static.  Replace argument arg with extlang, extlang_printers.
14558         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14559         (!HAVE_PYTHON, source_python_script): Delete.
14560         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14561         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14562         (!HAVE_PYTHON, start_type_printers): Delete.
14563         (!HAVE_PYTHON, apply_type_printers): Delete.
14564         (!HAVE_PYTHON, free_type_printers): Delete.
14565         (_initialize_python): Delete call to observer_attach_before_prompt.
14566         (finalize_python): Set/restore active extension language.
14567         (gdbpy_finish_initialization) Renamed from
14568         finish_python_initialization, made static.  New arg extlang.
14569         (gdbpy_initialized): New function.
14570         * python/python.h: #include "extension.h".  Delete #include
14571         "value.h", "mi/mi-cmds.h".
14572         (extension_language_python): Declare.
14573         (GDBPY_AUTO_FILE_NAME): Delete.
14574         (enum py_bt_status): Moved to extension.h and renamed to
14575         ext_lang_bt_status.
14576         (enum frame_filter_flags): Moved to extension.h.
14577         (enum py_frame_args): Moved to extension.h and renamed to
14578         ext_lang_frame_args.
14579         (finish_python_initialization): Delete.
14580         (eval_python_from_control_command): Delete.
14581         (source_python_script): Delete.
14582         (apply_val_pretty_printer): Delete.
14583         (apply_frame_filter): Delete.
14584         (preserve_python_values): Delete.
14585         (gdbpy_script_language_defn): Delete.
14586         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14587         (start_type_printers, apply_type_printers, free_type_printers): Delete.
14588
14589         * auto-load.c: #include "extension.h".
14590         (GDB_AUTO_FILE_NAME): Delete.
14591         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
14592         (script_language_gdb): Delete, moved to extension.c and renamed to
14593         extension_language_gdb.
14594         (source_gdb_script_for_objfile): Delete.
14595         (auto_load_pspace_info): New member unsupported_script_warning_printed.
14596         (loaded_script): Change type of language member to
14597         struct extension_language_defn *.
14598         (init_loaded_scripts_info): Initialize
14599         unsupported_script_warning_printed.
14600         (maybe_add_script): Make static.  Change type of language arg to
14601         struct extension_language_defn *.
14602         (clear_section_scripts): Reset unsupported_script_warning_printed.
14603         (auto_load_objfile_script_1): Rewrite to use extension language API.
14604         (auto_load_objfile_script): Make public.  Remove support-compiled-in
14605         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14606         (source_section_scripts): Rewrite to use extension language API.
14607         (load_auto_scripts_for_objfile): Rewrite to use
14608         auto_load_scripts_for_objfile.
14609         (collect_matching_scripts_data): Change type of language member to
14610         struct extension_language_defn *.
14611         (auto_load_info_scripts): Change type of language arg to
14612         struct extension_language_defn *.
14613         (unsupported_script_warning_print): New function.
14614         (script_not_found_warning_print): Make static.
14615         (_initialize_auto_load): Rewrite construction of scripts-directory
14616         help.
14617         * auto-load.h (struct objfile): Add forward decl.
14618         (struct script_language): Delete.
14619         (struct auto_load_pspace_info): Add forward decl.
14620         (struct extension_language_defn): Add forward decl.
14621         (maybe_add_script): Delete.
14622         (auto_load_objfile_script): Declare.
14623         (script_not_found_warning_print): Delete.
14624         (auto_load_info_scripts): Update prototype.
14625         (auto_load_gdb_scripts_enabled): Declare.
14626         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14627         auto_load_python_scripts_enabled and made public.
14628         (script_language_python): Delete, moved to python.c.
14629         (gdbpy_script_language_defn): Delete.
14630         (info_auto_load_python_scripts): Update to use
14631         extension_language_python.
14632
14633         * breakpoint.c (condition_command): Replace call to
14634         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14635         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14636         with call to breakpoint_ext_lang_cond_says_stop.
14637         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14638         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
14639         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14640         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14641         New arg slang.
14642         (local_setattro): Print name of extension language with existing
14643         stop condition.
14644
14645         * valprint.c (val_print, value_print): Update to call
14646         apply_ext_lang_val_pretty_printer.
14647         * cp-valprint.c (cp_print_value): Update call to
14648         apply_ext_lang_val_pretty_printer.
14649         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14650         (gdbpy_apply_val_pretty_printer): Renamed from
14651         apply_val_pretty_printer.  New arg extlang.
14652         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14653
14654         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14655         extension language API.
14656         * cli/cli-script.c (execute_control_command): Update to call
14657         eval_ext_lang_from_control_command.
14658
14659         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14660         enum ext_lang_bt_status values.  Update call to
14661         apply_ext_lang_frame_filter.
14662         (mi_cmd_stack_list_locals): Ditto.
14663         (mi_cmd_stack_list_args): Ditto.
14664         (mi_cmd_stack_list_variables): Ditto.
14665         * mi/mi-main.c: Delete #include "python/python-internal.h".
14666         Add #include "extension.h".
14667         (mi_cmd_list_features): Replace reference to python internal variable
14668         gdb_python_initialized with call to ext_lang_initialized_p.
14669
14670         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14671         Update to use enum ext_lang_frame_args.  Update to call
14672         apply_ext_lang_frame_filter.
14673         * python/py-framefilter.c (extract_sym): Update to use enum
14674         ext_lang_bt_status.
14675         (extract_value, py_print_type, py_print_value): Ditto.
14676         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14677         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14678         (py_print_frame): Ditto.
14679         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14680         New arg extlang.  Update to use enum ext_lang_bt_status.
14681
14682         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14683         finish_python_initialization.  Replace with call to
14684         finish_ext_lang_initialization.
14685
14686         * typeprint.c (do_free_global_table): Update to call
14687         free_ext_lang_type_printers.
14688         (create_global_typedef_table): Update to call
14689         start_ext_lang_type_printers.
14690         (find_global_typedef): Update to call apply_ext_lang_type_printers.
14691         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14692         (type_print_options): Change type of global_printers from "void *"
14693         to "struct ext_lang_type_printers *".
14694
14695         * value.c (preserve_values): Update to call preserve_ext_lang_values.
14696         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14697         (gdbpy_preserve_values): Renamed from preserve_python_values.
14698         New arg extlang.
14699         (!HAVE_PYTHON, preserve_python_values): Delete.
14700
14701         * utils.c (quit_flag): Delete, moved to extension.c.
14702         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14703         extension.c.
14704
14705         * eval.c: Delete #include "python/python.h".
14706         * main.c: Delete #include "python/python.h".
14707
14708         * defs.h: Update comment.
14709
14710 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
14711
14712         GDB 7.7 released.
14713
14714 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
14715
14716         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14717         defined.
14718
14719 2014-02-05  Yao Qi  <yao@codesourcery.com>
14720
14721         * remote.c (remote_pass_signals): Remove local 'buf' and use
14722         rs->buf.
14723         (remote_program_signals): Likewise.
14724
14725 2014-02-05  Yao Qi  <yao@codesourcery.com>
14726
14727         * ctf.c: Include "inferior.h" and "gdbthread.h".
14728         (CTF_PID): A new macro.
14729         (ctf_open): Call inferior_appeared and add_thread_silent.
14730         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14731         (ctf_thread_alive): New function.
14732         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14733
14734 2014-02-05  Yao Qi  <yao@codesourcery.com>
14735
14736         Revert this patch:
14737
14738         2013-05-24  Yao Qi  <yao@codesourcery.com>
14739
14740         * tracepoint.c (TFILE_PID): Remove.
14741         (tfile_open): Don't add thread and inferior.
14742         (tfile_close): Don't set 'inferior_ptid'.  Don't call
14743         exit_inferior_silent.
14744         (tfile_thread_alive): Remove.
14745         (init_tfile_ops): Don't set field 'to_thread_alive' of
14746         tfile_ops.
14747
14748 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
14749
14750         * remote.c (remote_start_remote): Call remote_check_symbols even
14751         if only symbol-file (not file) has been given.
14752
14753 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14754
14755         * gdbarch.sh (skip_entrypoint): New callback.
14756         * gdbarch.c, gdbarch.h: Regenerate.
14757         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14758         * infrun.c (fill_in_stop_func): Likewise.
14759         * ppc-linux-tdep.c: Include "elf/ppc64.h".
14760         (ppc_elfv2_elf_make_msymbol_special): New function.
14761         (ppc_elfv2_skip_entrypoint): Likewise.
14762         (ppc_linux_init_abi): Install them for ELFv2.
14763
14764 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14765
14766         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14767         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14768         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14769         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
14770         structures returned in GPRs.
14771
14772 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14773
14774         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14775         offset to the stack parameter list for the ELFv2 ABI.
14776
14777 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14778
14779         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14780         set_gdbarch_convert_from_func_ptr_addr and
14781         set_gdbarch_elf_make_msymbol_special for ELFv1.
14782         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14783         function descriptors on ELFv1.
14784         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
14785         set up r12 at function entry.
14786
14787 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14788
14789         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14790         (struct gdbarch_tdep): New member elf_abi.
14791
14792         * rs6000-tdep.c: Include "elf/ppc64.h".
14793         (rs6000_gdbarch_init): Detect ELF ABI version.
14794
14795 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14796
14797         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14798         within a register pair holding a DFP 128-bit value on little-endian.
14799         (ppc64_sysv_abi_return_value_base): Likewise.
14800         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14801         (dfp_pseudo_register_write): Likewise.
14802
14803 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14804
14805         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14806         offset on little-endian when passing _Decimal32.
14807         (ppc64_sysv_abi_return_value_base): Likewise for return values.
14808
14809 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14810
14811         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14812         of the overlapped FP register within the VSX register on little-
14813         endian platforms.
14814         (efpr_pseudo_register_write): Likewise.
14815
14816 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14817
14818         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14819         offset on little-endian when passing small structures.
14820
14821 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14822
14823         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14824         (struct ppc64_sysv_argpos): New data structure.
14825         (ppc64_sysv_abi_push_float): Remove.
14826         (ppc64_sysv_abi_push_val): New function.
14827         (ppc64_sysv_abi_push_integer): Likewise.
14828         (ppc64_sysv_abi_push_freg): Likewise.
14829         (ppc64_sysv_abi_push_vreg): Likewise.
14830         (ppc64_sysv_abi_push_param): Likewise.
14831         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14832         (ppc64_sysv_abi_return_value_base): New function.
14833         (ppc64_sysv_abi_return_value): Refactor to use it.
14834
14835 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14836
14837         * NEWS: Document new target powerpc64le-*-linux*.
14838
14839 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
14840
14841         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14842         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14843         core dumps.
14844         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14845         register set used in ELF core dumps.  Add floating-point register set.
14846
14847 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
14848
14849         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14850         dwarf2_to_gdb[] table using symbolic constants.  Adjust
14851         penultimate entry from number representing the PC register
14852         to symbolic constant representing the MDR register.  Add
14853         constant for the PC register to the end of the table.
14854
14855 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
14856
14857         * bsd-kvm.c: Include <sys/param.h>
14858
14859 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
14860
14861         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14862
14863 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
14864
14865         * ada-lang.h (clear_ada_sym_cache): Delete.
14866
14867 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
14868
14869         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14870
14871 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
14872
14873         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14874           the sigreturn register save area only if the syscall is
14875           sigreturn.
14876
14877 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
14878
14879         * valops.c (value_slice): Minor reformatting.
14880
14881 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
14882
14883         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14884
14885 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
14886
14887         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14888         New static globals.
14889         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14890         (ada_ignore_descriptive_types_p): New static global.
14891         (find_parallel_type_by_descriptive_type): Return immediately
14892         if ada_ignore_descriptive_types_p is set.
14893         (_initialize_ada_language): Register new commands "maintenance
14894         set ada", "maintenance show ada", "maintenance set ada
14895         ignore-descriptive-types" and "maintenance show ada
14896         ignore-descriptive-types".
14897         * NEWS: Add entry for new "maint ada set/show
14898         ignore-descriptive-types" commands.
14899
14900 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
14901
14902         * record-btrace.c (record_btrace_close): Call btrace_teardown
14903         for all threads.
14904
14905 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14906
14907         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14908         "ui-out.h".
14909
14910 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14911
14912         * ada-typeprint (type_is_full_subrange_of_target_type):
14913         New function.
14914         (print_range): Add parameter bounds_prefered_p.  If not set,
14915         try printing range types using the name of their base type.
14916         (print_range_type): Add parameter bounds_prefered_p.
14917         Use it in call to print_range.
14918         (print_array_type, ada_print_type): Update calls to print_range
14919         and print_range_type.
14920
14921 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14922
14923         * ada-typeprint.c (print_array_type, print_choices, print_range)
14924         (print_range_bound, print_dynamic_range_bound, print_range_type):
14925         Remove declaration.
14926
14927 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14928
14929         * ada-typeprint.c (print_range): Add missing empty line
14930         after local declaration.
14931
14932 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14933
14934         * ada-valprint.c (print_optional_low_bound): Get index_type's
14935         target type for as long as it is a TYPE_CODE_RANGE.
14936
14937 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14938
14939         * procfs.c (procfs_make_note_section): Remove assertion and
14940         associated comment.
14941
14942 2014-01-24  Yao Qi  <yao@codesourcery.com>
14943
14944         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14945         * corelow.c (get_core_siginfo): Likewise.
14946
14947 2014-01-24  Yao Qi  <yao@codesourcery.com>
14948
14949         * remote.c (remote_write_bytes_aux): Change type of 'len' to
14950         ULONGEST.  Don't check 'len' is negative.
14951         (remote_write_bytes):  Change type of 'len' to ULONGEST.
14952
14953 2014-01-23  Tom Tromey  <tromey@redhat.com>
14954
14955         PR python/16485:
14956         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14957         Handle exception from frame.block.
14958         (FrameVars.fetch_frame_locals): Likewise.
14959
14960 2014-01-23  Tom Tromey  <tromey@redhat.com>
14961
14962         PR python/16487:
14963         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14964         on a NULL pointer.  Move "goto error" to correct place.
14965
14966 2014-01-23  Tom Tromey  <tromey@redhat.com>
14967
14968         PR python/16491:
14969         * python/py-framefilter.c (apply_frame_filter): Call
14970         ensure_python_env after computing gdbarch.
14971
14972 2014-01-23  Yao Qi  <yao@codesourcery.com>
14973
14974         * target.c (raw_memory_xfer_partial): Change argument type
14975         from void * to gdb_byte *.
14976         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14977
14978 2014-01-22  Doug Evans  <dje@google.com>
14979
14980         New gdbserver option --debug-format=timestamp.
14981         * NEWS: Mention it.
14982
14983 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
14984
14985         * syscalls/s390x-linux.xml: New file.
14986         * syscalls/s390-linux.xml: New file.
14987         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14988         (XML_SYSCALL_FILENAME_S390X): Likewise.
14989         (op_svc): New enum value for SVC opcode.
14990         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14991         (s390_linux_get_syscall_number): New function.
14992         (s390_gdbarch_init): Register '*get_syscall_number' and the
14993         syscall xml file name.
14994         * data-directory/Makefile.in (SYSCALLS_FILES): Add
14995         "s390-linux.xml" and "s390x-linux.xml".
14996         * NEWS: Announce new feature.
14997
14998 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
14999
15000         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
15001
15002 2014-01-22  Pedro Alves  <palves@redhat.com>
15003
15004         * xtensa-config.c: Include defs.h.
15005
15006 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
15007
15008         * common/common-utils.h: Add "ARI:" comment beside __func__
15009         reference.
15010
15011 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
15012
15013         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
15014         documentation a bit.
15015
15016 2014-01-21  Roland McGrath  <mcgrathr@google.com>
15017
15018         * configure.ac: Call AM_PROG_INSTALL_STRIP.
15019         * configure: Regenerate.
15020         * aclocal.m4: Regenerate.
15021         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
15022         New substituted variables.
15023         (install-strip): New target.
15024         (INSTALL_SCRIPT): New substituted variable.
15025         (FLAGS_TO_PASS): Add it.
15026         (install-only): Use $(INSTALL_SCRIPT) rather than
15027         $(INSTALL_PROGRAM) for gcore.
15028
15029 2014-01-20  Tom Tromey  <tromey@redhat.com>
15030
15031         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
15032         together.
15033
15034 2014-01-20  Tom Tromey  <tromey@redhat.com>
15035
15036         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
15037         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
15038         (deprecated_cmd_warning, complete_on_cmdlist): Update.
15039         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
15040         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
15041         (struct cmd_list_element) <flags>: Remove.
15042         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
15043         doc_allocated>: New fields.
15044         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
15045         bitfields.
15046         * maint.c (maintenance_do_deprecate): Update.
15047         * top.c (execute_command): Update.
15048
15049 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
15050
15051         * xtensa-linux-nat.c: Include asm/ptrace.h.
15052
15053 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
15054
15055         * Makefile.in (SFILES): Add d-support.c.
15056         (COMMON_OBS): Add d-support.o.
15057         * d-lang.h (d_parse_symbol): Add comment, now defined in
15058         d-support.c.
15059         * d-lang.c (parse_call_convention)
15060         (parse_attributes, parse_function_types)
15061         (parse_function_args, parse_type, parse_identifier)
15062         (call_convention_p, d_parse_symbol): Move functions to ...
15063         * d-support.c: ... New file.
15064
15065 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
15066
15067         * d-lang.h (d_parse_symbol): Add declaration.
15068         * d-lang.c (extract_identifiers)
15069         (extract_type_info): Remove functions.
15070         (parse_call_convention, parse_attributes)
15071         (parse_function_types, parse_function_args)
15072         (parse_type, parse_identifier, call_convention_p)
15073         (d_parse_symbol): New functions.
15074         (d_demangle): Use d_parse_symbol to demangle D symbols.
15075
15076 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
15077
15078         * d-lang.h (struct builtin_d_type): New data type.
15079         (builtin_d_type): Add declaration.
15080         * d-lang.c (d_language_arch_info, build_d_types)
15081         (builtin_d_type): New functions.
15082         (enum d_primitive_types): New data type.
15083         (d_language_defn): Change c_language_arch_info to
15084         d_language_arch_info.
15085         (d_type_data): New static variable.
15086         (_initialize_d_language): Initialize d_type_data.
15087
15088 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
15089
15090         * d-lang.h (d_main_name): Add declaration.
15091         * d-lang.c (d_main_name): New function.
15092         * symtab.c (find_main_name): Add call to d_main_name.
15093
15094 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
15095
15096         * d-lang.c (d_language_defn): Change macro_expansion_c to
15097         macro_expansion_no.
15098
15099 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
15100
15101         * MAINTAINERS: Add myself as a write-after-approval maintainer.
15102
15103 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
15104
15105         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
15106         gdb_exception" declaration.
15107         * remote.c (getpkt_or_notif_sane): Likewise.
15108
15109 2014-01-17  Doug Evans  <dje@google.com>
15110
15111         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
15112         function, contents of dirnames_to_char_ptr_vec_append moved here.
15113         (delim_string_to_char_ptr_vec): New function.
15114         (dirnames_to_char_ptr_vec_append): Rewrite.
15115         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
15116
15117 2014-01-17  Doug Evans  <dje@google.com>
15118
15119         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
15120         and moved here ...
15121         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
15122         #include "common-utils.h".
15123         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
15124         * common/vec.h (VEC_ASSERT_PASS): Update.
15125         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
15126         (MACH_CHECK_ERROR): Update.
15127
15128 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
15129
15130         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
15131         comments.
15132         * gdbarch.h: Regenerate.
15133
15134 2014-01-16  Tom Tromey  <tromey@redhat.com>
15135
15136         * value.c (struct value) <regnum>: Move earlier.
15137
15138 2014-01-16  Tom Tromey  <tromey@redhat.com>
15139
15140         * remote.c (extended_remote_create_inferior): Rename from
15141         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
15142         old implementation.
15143
15144 2014-01-16  Pedro Alves  <palves@redhat.com>
15145
15146         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
15147         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
15148         the backchain.
15149
15150 2014-01-16  Doug Evans  <dje@google.com>
15151
15152         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
15153
15154 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15155
15156         * btrace.h (btrace_thread_flag): New.
15157         (struct btrace_thread_info) <flags>: New.
15158         * record-btrace.c (record_btrace_resume_thread)
15159         (record_btrace_find_thread_to_move, btrace_step_no_history)
15160         (btrace_step_stopped, record_btrace_start_replaying)
15161         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
15162         (record_btrace_find_resume_thread): New.
15163         (record_btrace_resume, record_btrace_wait): Extend.
15164         (record_btrace_can_execute_reverse): New.
15165         (record_btrace_open): Fail in non-stop mode.
15166         (record_btrace_set_replay): Split into this, ...
15167         (record_btrace_stop_replaying): ... this, ...
15168         (record_btrace_clear_histories): ... and this.
15169         (init_record_btrace_ops): Init to_can_execute_reverse.
15170         * NEWS: Announce it.
15171
15172 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15173
15174         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15175         (forward_target_decr_pc_after_break)
15176         (target_decr_pc_after_break): New.
15177         * target.c (forward_target_decr_pc_after_break)
15178         (target_decr_pc_after_break): New.
15179         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15180         instead of gdbarch_decr_pc_after_break.
15181         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15182         instead of gdbarch_decr_pc_after_break.
15183         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15184         instead of gdbarch_decr_pc_after_break.
15185         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15186         instead of gdbarch_decr_pc_after_break.
15187         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15188         instead of gdbarch_decr_pc_after_break.
15189         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15190         instead of gdbarch_decr_pc_after_break.
15191
15192 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15193
15194         * btrace.c: Include regcache.h.
15195         (btrace_add_pc): New.
15196         (btrace_enable): Call btrace_add_pc.
15197         (btrace_is_empty): New.
15198         * btrace.h (btrace_is_empty): New.
15199         * record-btrace.c (require_btrace, record_btrace_info): Call
15200         btrace_is_empty.
15201
15202 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15203
15204         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15205         Support delta reads.
15206         (linux_disable_btrace): Change return type.
15207         * common/linux-btrace.h (linux_read_btrace): Change parameters
15208         and return type to allow error reporting.  Update users.
15209         (linux_disable_btrace): Change return type.  Update users.
15210         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15211         New.
15212         (btrace_error): New.
15213         (btrace_block) <begin>: Comment on BEGIN == 0.
15214         * btrace.c (btrace_compute_ftrace): Start from the end of
15215         the current trace.
15216         (btrace_stitch_trace, btrace_clear_history): New.
15217         (btrace_fetch): Read delta trace, return if replaying.
15218         (btrace_clear): Move clear history code to btrace_clear_history.
15219         (parse_xml_btrace): Throw an error if parsing failed.
15220         * target.h (struct target_ops) <to_read_btrace>: Change parameters
15221         and return type to allow error reporting.
15222         (target_read_btrace): Change parameters and return type to allow
15223         error reporting.
15224         * target.c (target_read_btrace): Update.
15225         * remote.c (remote_read_btrace): Support delta reads.  Pass
15226         errors on.
15227         * NEWS: Announce it.
15228
15229 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15230
15231         * record.h (record_btrace_frame_unwind)
15232         (record_btrace_tailcall_frame_unwind): New declarations.
15233         * dwarf2-frame: Include record.h
15234         (dwarf2_frame_cfa): Throw an error for btrace frames.
15235         * record-btrace.c: Include hashtab.h.
15236         (btrace_get_bfun_name): New.
15237         (btrace_call_history): Call btrace_get_bfun_name.
15238         (struct btrace_frame_cache): New.
15239         (bfcache): New.
15240         (bfcache_hash, bfcache_eq, bfcache_new): New.
15241         (btrace_get_frame_function): New.
15242         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15243         (record_btrace_frame_this_id): Compute own id.
15244         (record_btrace_frame_prev_register): Provide PC, throw_error
15245         for all other registers.
15246         (record_btrace_frame_sniffer): Detect btrace frames.
15247         (record_btrace_tailcall_frame_sniffer): New.
15248         (record_btrace_frame_dealloc_cache): New.
15249         (record_btrace_frame_unwind): Add new functions.
15250         (record_btrace_tailcall_frame_unwind): New.
15251         (_initialize_record_btrace): Allocate cache.
15252         * btrace.c (btrace_clear): Call reinit_frame_cache.
15253         * NEWS: Announce it.
15254
15255 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15256
15257         * record-btrace.c (record_btrace_set_replay)
15258         (record_btrace_goto_begin, record_btrace_goto_end)
15259         (record_btrace_goto): New.
15260         (init_record_btrace_ops): Initialize them.
15261         * NEWS: Announce it.
15262
15263 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15264
15265         * record-btrace.c (record_btrace_find_new_threads)
15266         (record_btrace_thread_alive): New.
15267         (init_record_btrace_ops): Initialize to_find_new_threads and
15268         to_thread_alive.
15269
15270 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15271
15272         * record-btrace.c (record_btrace_resume): New.
15273         (record_btrace_wait): New.
15274         (init_record_btrace_ops): Initialize to_wait and to_resume.
15275
15276 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15277
15278         * record-btrace.c (record_btrace_xfer_partial)
15279         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15280         (record_btrace_allow_memory_access): New.
15281         (init_record_btrace_ops): Initialize new methods.
15282         * target.c (raw_memory_xfer_partial): Bail out if target reports
15283         that this memory is not available.
15284
15285 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15286
15287         * target.h (target_ops) <to_insert_breakpoint>
15288         <to_remove_breakpoint>: Add target_ops parameter.
15289         (forward_target_insert_breakpoint): New.
15290         (forward_target_remove_breakpoint): New.
15291         (memory_remove_breakpoint, memory_insert_breakpoint):
15292         Add target_ops parameter.
15293         * target.c (target_insert_breakpoint): Split into this and ...
15294         (forward_target_insert_breakpoint): ... this.
15295         (target_remove_breakpoint): Split into this and ...
15296         (forward_target_remove_breakpoint): ... this.
15297         (debug_to_insert_breakpoint): Add target_ops parameter.
15298         Call forward_target_insert_breakpoint.
15299         (debug_to_remove_breakpoint): Add target_ops parameter.
15300         Call forward_target_remove_breakpoint.
15301         (update_current_target): Do not inherit or default to_insert_breakpoint
15302         and to_remove_breakpoint.
15303         * corelow.c (ignore): Add target_ops parameter.
15304         * exec.c (ignore): Add target_ops parameter.
15305         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15306         Add target_ops parameter.
15307         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15308         Add target_ops parameter.
15309         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15310         Add target_ops parameter.
15311         * record-full.c (record_full_beneath_to_insert_breakpoint)
15312         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15313         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15314         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15315         (record_full_core_remove_breakpoint): Add target_ops parameter.
15316         Update users.
15317         (record_full_beneath_to_insert_breakpoint_ops)
15318         (record_full_beneath_to_remove_breakpoint_ops)
15319         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15320         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15321         tmp_to_remove_breakpoint_ops,
15322         record_full_beneath_to_insert_breakpoint_ops, and
15323         record_full_beneath_to_remove_breakpoint_ops.
15324         * remote-m32r-sdi.c (m32r_insert_breakpoint)
15325         (m32r_remove_breakpoint): Add target_ops parameter.
15326         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15327         Add target_ops parameter.
15328         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15329         Add target_ops parameter.
15330
15331 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
15332             Markus Metzger  <markus.t.metzger@intel.com>
15333
15334         * record-btrace.c: Include frame-unwind.h.
15335         (record_btrace_frame_unwind_stop_reason)
15336         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15337         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15338         New.
15339         (init_record_btrace_ops): Install it.
15340
15341 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
15342
15343         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15344         get_prev_frame_1.
15345
15346 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
15347
15348         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15349         earlier.
15350
15351 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
15352
15353         * frame-unwind.c: Include target.h.
15354         (frame_unwind_try_unwinder): New function with code from ...
15355         (frame_unwind_find_by_frame): ... here.  New variable
15356         unwinder_from_target, call also target_get_unwinder)
15357         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15358         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15359         * target.h (struct target_ops): New fields to_get_unwinder and
15360         to_get_tailcall_unwinder.
15361         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15362
15363 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15364
15365         * record-btrace.c (record_btrace_fetch_registers)
15366         (record_btrace_store_registers)
15367         (record_btrace_to_prepare_to_store): New.
15368         (init_record_btrace_ops): Add the above.
15369
15370 2014-01-16  Tom Tromey  <tromey@redhat.com>
15371
15372         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15373         * target.h (struct target_ops) <to_prepare_to_store>: Add
15374         argument.
15375         (target_prepare_to_store): Add argument.
15376         * target.c (debug_to_prepare_to_store): Add argument.
15377         (update_current_target): Update.
15378         * remote.c (remote_prepare_to_store): Add 'self' argument.
15379         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15380         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15381         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15382         * record-full.c (record_full_core_prepare_to_store): Add 'self'
15383         argument.
15384         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15385         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15386         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15387         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15388         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15389
15390 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15391
15392         * btrace.h (replay) <replay>: New.
15393         (btrace_is_replaying): New.
15394         * btrace.c (btrace_clear): Free replay iterator.
15395         (btrace_is_replaying): New.
15396         * record-btrace.c (record_btrace_is_replaying): New.
15397         (record_btrace_info): Print insn number if replaying.
15398         (record_btrace_insn_history): Start at replay position.
15399         (record_btrace_call_history): Start at replay position.
15400         (init_record_btrace_ops): Init to_record_is_replaying.
15401
15402 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15403
15404         * record-btrace.c (record_btrace_insn_history_range): Include
15405         end.
15406         (record_btrace_insn_history_from): Adjust range.
15407         (record_btrace_call_history_range): Include
15408         end.
15409         (record_btrace_call_history_from): Adjust range.
15410         * NEWS: Announce changes.
15411
15412 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15413
15414         * record.h (enum record_print_flag)
15415         <record_print_indent_calls>: New.
15416         * record.c (get_call_history_modifiers): Recognize /c modifier.
15417         (_initialize_record): Document /c modifier.
15418         * record-btrace.c (btrace_call_history): Add btinfo parameter.
15419         Reorder fields.  Optionally indent the function name.  Update
15420         all users.
15421         * NEWS: Announce changes.
15422
15423 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15424
15425         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15426
15427 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15428
15429         * btrace.c (ftrace_new_function): Start counting at one.
15430         * record-btrace.c (record_btrace_info): Adjust number of calls
15431         and insns.
15432         * NEWS: Announce it.
15433
15434 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15435
15436         * record-btrace.c (btrace_call_history_insn_range): Print
15437         insn range as [begin, end].
15438
15439 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15440
15441         * btrace.h (struct btrace_func_link): New.
15442         (enum btrace_function_flag): New.
15443         (struct btrace_inst): Rename to ...
15444         (struct btrace_insn): ...this. Update all users.
15445         (struct btrace_func) <ibegin, iend>: Remove.
15446         (struct btrace_func_link): New.
15447         (struct btrace_func): Rename to ...
15448         (struct btrace_function): ...this. Update all users.
15449         (struct btrace_function) <segment, flow, up, insn, insn_offset)
15450         (number, level, flags>: New.
15451         (struct btrace_insn_iterator): Rename to ...
15452         (struct btrace_insn_history): ...this.
15453         Update all users.
15454         (struct btrace_insn_iterator, btrace_call_iterator): New.
15455         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15456         (struct btrace_target_info) <begin, end, level>
15457         <insn_history, call_history>: New.
15458         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15459         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15460         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15461         (btrace_call_number, btrace_call_begin, btrace_call_end)
15462         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15463         (btrace_find_function_by_number, btrace_set_insn_history)
15464         (btrace_set_call_history): New.
15465         * btrace.c (btrace_init_insn_iterator)
15466         (btrace_init_func_iterator, compute_itrace): Remove.
15467         (ftrace_print_function_name, ftrace_print_filename)
15468         (ftrace_skip_file): Change
15469         parameter to const.
15470         (ftrace_init_func): Remove.
15471         (ftrace_debug): Use new btrace_function fields.
15472         (ftrace_function_switched): Also consider gaining and
15473         losing symbol information).
15474         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15475         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15476         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15477         New.
15478         (ftrace_new_function): Move. Remove debug print.
15479         (ftrace_update_lines, ftrace_update_insns): New.
15480         (ftrace_update_function): Check for call, ret, and jump.
15481         (compute_ftrace): Renamed to ...
15482         (btrace_compute_ftrace): ...this. Rewritten to compute call
15483         stack.
15484         (btrace_fetch, btrace_clear): Updated.
15485         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15486         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15487         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15488         (btrace_call_number, btrace_call_begin, btrace_call_end)
15489         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15490         (btrace_find_function_by_number, btrace_set_insn_history)
15491         (btrace_set_call_history): New.
15492         * record-btrace.c (require_btrace): Use new btrace thread
15493         info fields.
15494         (record_btrace_info, btrace_insn_history)
15495         (record_btrace_insn_history, record_btrace_insn_history_range):
15496         Use new btrace thread info fields and new iterator.
15497         (btrace_func_history_src_line): Rename to ...
15498         (btrace_call_history_src_line): ...this. Use new btrace
15499         thread info fields.
15500         (btrace_func_history): Rename to ...
15501         (btrace_call_history): ...this. Use new btrace thread info
15502         fields and new iterator.
15503         (record_btrace_call_history, record_btrace_call_history_range):
15504         Use new btrace thread info fields and new iterator.
15505
15506 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15507
15508         * frame.h (frame_id_build_unavailable_stack_special): New.
15509         * frame.c (frame_id_build_unavailable_stack_special): New.
15510
15511 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15512
15513         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15514         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15515         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15516         to gdbarch.
15517         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15518         (i386_insn_is_jump, i386_jmp_p): New.
15519         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15520         insn_is_jump to gdbarch.
15521         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15522         * gdbarch.h: Regenerated.
15523         * gdbarch.c: Regenerated.
15524         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15525         (default_insn_is_jump): New.
15526         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15527         (default_insn_is_jump): New.
15528
15529 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15530
15531         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15532         Change to ...
15533         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
15534         (btrace_read_type) <btrace_read_new>: Change to ...
15535         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
15536
15537 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15538
15539         * common/linux-btrace.c (linux_read_btrace): Free trace from
15540         previous iteration.
15541
15542 2014-01-15  Doug Evans  <dje@google.com>
15543
15544         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15545         uint32_t.
15546
15547 2014-01-15  Tom Tromey  <tromey@redhat.com>
15548
15549         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15550         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15551         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15552         (set_objfile_main_name): New function.
15553         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15554         language_of_main>: New fields.
15555         (set_objfile_main_name): Declare.
15556         * symtab.c (find_main_name): Loop over objfiles to find the main
15557         name and language.
15558         (set_main_name): Now static.
15559         (get_main_info): Add comment.
15560         * symtab.h (set_main_name): Don't declare.
15561
15562 2014-01-15  Tom Tromey  <tromey@redhat.com>
15563
15564         * symtab.c (main_progspace_key): New global.
15565         (struct main_info): New.
15566         (name_of_main, language_of_main): Remove.
15567         (get_main_info, main_info_cleanup): New function.
15568         (set_main_name, main_name, main_language): Use get_main_info.
15569         (_initialize_symtab): Initialize main_progspace_key.
15570
15571 2014-01-15  Tom Tromey  <tromey@redhat.com>
15572
15573         * dbxread.c (process_one_symbol): Update.
15574         * dwarf2read.c (read_partial_die): Update.
15575         * symfile.c (set_initial_language): Call main_language.
15576         * symtab.c (language_of_main): Now static.
15577         (set_main_name): Add 'lang' parameter.
15578         (find_main_name): Update.
15579         (main_language): New function.
15580         (symtab_observer_executable_changed): Update.
15581         * symtab.h (set_main_name): Update.
15582         (language_of_main): Remove.
15583         (main_language): Declare.
15584
15585 2014-01-15  Tom Tromey  <tromey@redhat.com>
15586
15587         * symfile.c (init_entry_point_info): Use new "initialized" field.
15588         Update.
15589         * objfiles.h (struct entry_point) <initialized>: New field.
15590         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15591         (struct objfile) <ei>: ...here.  Remove.
15592         * objfiles.c (entry_point_address_query): Update.
15593
15594 2014-01-15  Tom Tromey  <tromey@redhat.com>
15595
15596         * objfiles.c (entry_point_address_query): Relocate entry point
15597         address.
15598         (objfile_relocate1): Do not relocate entry point address.
15599         * objfiles.h (struct entry_info) <entry_point>: Update comment.
15600         <the_bfd_section_index>: New field.
15601         * symfile.c (init_entry_point_info): Find the entry point's
15602         section.
15603
15604 2014-01-15  Tom Tromey  <tromey@redhat.com>
15605
15606         * solib-frv.c (enable_break): Use entry_point_address_query.
15607
15608 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15609
15610         * NEWS: Add note on improved process record-replay on
15611         arm*-linux* targets.
15612
15613 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15614
15615         * arm-tdep.c (enum arm_record_result): New enum.
15616         (arm_record_unsupported_insn): New function.
15617         (arm_record_coproc_data_proc): Removed.
15618         (thumb2_record_ld_st_multiple): New function.
15619         (thumb2_record_ld_st_dual_ex_tbb): New function.
15620         (thumb2_record_data_proc_sreg_mimm): New function.
15621         (thumb2_record_ps_dest_generic): New function.
15622         (thumb2_record_branch_misc_cntrl): New function.
15623         (thumb2_record_str_single_data): New function.
15624         (thumb2_record_ld_mem_hints): New function.
15625         (thumb2_record_ld_word): New function.
15626         (thumb2_record_lmul_lmla_div): New function.
15627         (thumb2_record_decode_insn_handler): New function.
15628         (decode_insn): Add thumb32 instruction handlers.
15629
15630 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15631
15632         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15633         (struct arm_linux_record_tdep): Declare.
15634         (arm_canonicalize_syscall): New function.
15635         (arm_all_but_pc_registers_record): New function.
15636         (arm_linux_syscall_record): New function.
15637         (arm_linux_init_abi): Add syscall recording constructs.
15638         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15639         decoding.  (arm_record_coproc_data_proc): Update arm syscall
15640         decoding.
15641         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15642         <arm_syscall_record>: New field.
15643         * configure.tgt (arm*-*-linux*): Add linux-record.o to
15644         gdb_target_obs.
15645
15646 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15647
15648         * arm-tdep.c (thumb_record_misc): Update to use sp as base
15649         register for push instruction recording.
15650
15651 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15652
15653         * arm-tdep.c (thumb_record_misc): Update to correct logical
15654         error while recording ldm, ldmia and pop instructions.
15655
15656 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15657
15658         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15659
15660 2014-01-15  Pedro Alves  <palves@redhat.com>
15661
15662         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15663         (go32_resume, go32_fetch_registers, store_register)
15664         (go32_store_registers, go32_prepare_to_store)
15665         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15666         (go32_create_inferior, go32_can_run, go32_terminal_init)
15667         (go32_terminal_inferior, go32_terminal_ours): Delete forward
15668         declarations.
15669
15670 2014-01-15  Tom Tromey  <tromey@redhat.com>
15671
15672         * target.h (async_callback_ftype): New typedef.
15673         (struct target_ops) <to_async>: Use it.
15674
15675 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
15676
15677         * python/py-value.c (get_field_type): Remove unnecessary curly
15678         braces for single-statement if block.
15679
15680 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
15681
15682         * python/py-type.c (convert_field): Add missing empty line
15683         after declarations.
15684
15685 2014-01-14  Doug Evans  <dje@google.com>
15686
15687         * symfile.h (expand_symtabs_matching): Renamed from
15688         expand_partial_symbol_names.  Update prototype.
15689         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15690         * symfile.c (expand_symtabs_matching): Renamed from
15691         expand_partial_symbol_names.  New args file_matcher, kind.
15692         Rename arg fun to symbol_matcher.
15693         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15694         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15695         ada_expand_partial_symbol_name.
15696         (ada_make_symbol_completion_list): Update to call
15697         expand_symtabs_matching.
15698         (ada_add_global_exceptions): Call expand_symtabs_matching.
15699         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15700         call map_symbol_filenames.
15701         * symtab.c (sources_info): Update to call map_symbol_filenames.
15702         (search_symbols): Call expand_symtabs_matching.
15703         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15704         (default_make_symbol_completion_list_break_on): Update to call
15705         expand_symtabs_matching.
15706         (make_source_files_completion_list): Update to call
15707         map_symbol_filenames.
15708
15709 2014-01-14  Doug Evans  <dje@google.com>
15710
15711         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15712         (expand_symtabs_symbol_matcher_ftype): New typedef.
15713         (quick_symbol_functions.expand_symtabs_matching): Update to use.
15714         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15715         * symfile.c (expand_partial_symbol_names): Update to use
15716         expand_symtabs_symbol_matcher_ftype.
15717         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15718         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15719         Arg name_matcher renamed to symbol_matcher.
15720         * psymtab.c (recursively_search_psymtabs): Update to use
15721         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
15722         sym_matcher.
15723         (expand_symtabs_matching_via_partial): Update to use
15724         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15725         Arg name_matcher renamed to symbol_matcher.
15726
15727 2014-01-14  Doug Evans  <dje@google.com>
15728
15729         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15730         (map_partial_symbol_filenames): Ditto.
15731         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15732         (map_partial_symbol_filenames): Ditto.
15733         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15734         (map_partial_symbol_filenames): Ditto.
15735         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15736         (map_partial_symbol_filenames): Ditto.
15737         * symtab.c: Delete #include "psymtab.h".
15738
15739 2014-01-14  Pedro Alves  <palves@redhat.com>
15740             Tom Tromey  <tromey@redhat.com>
15741
15742         * infrun.c (use_displaced_stepping): Use find_record_target
15743         instead of RECORD_IS_USED.
15744         (adjust_pc_after_break): Use record_full_is_used instead of
15745         RECORD_IS_USED.
15746         * record-btrace.c (record_btrace_open): Call record_preopen
15747         instead of checking RECORD_IS_USED.
15748         * record-full.c (record_full_shortname)
15749         (record_full_core_shortname): New globals.
15750         (record_full_is_used): New function.
15751         (find_full_open): Call record_preopen instead of checking
15752         RECORD_IS_USED.
15753         (init_record_full_ops): Set the target's shortname to
15754         record_full_shortname.
15755         (init_record_full_core_ops): Set the target's shortname to
15756         record_full_core_shortname.
15757         * record-full.h (record_full_is_used): Declare.
15758         * record.c (find_record_target): Make extern.
15759         (record_preopen): New function.
15760         * record.h (RECORD_IS_USED): Delete macro.
15761         (find_record_target, record_preopen): Declare functions.
15762
15763 2014-01-14  Yao Qi  <yao@codesourcery.com>
15764
15765         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15766         'len''s type to ULONGEST.
15767         (core_xfer_shared_libraries_aix): Likewise.
15768         * gdbarch.c, gdbarch.h: Regenerated.
15769         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15770         Change type of 'len' to ULONGEST.
15771         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15772         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15773
15774 2014-01-14  Yao Qi  <yao@codesourcery.com>
15775
15776         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15777         type of 'len' to ULONGEST.
15778         (linux_xfer_osdata_processgroups): Likewise.
15779         (linux_xfer_osdata_threads): Likewise.
15780         (linux_xfer_osdata_fds): Likewise.
15781         (linux_xfer_osdata_isockets): Likewise.
15782         (linux_xfer_osdata_shm): Likewise.
15783         (linux_xfer_osdata_sem): Likewise.
15784         (linux_xfer_osdata_msg): Likewise.
15785         (linux_common_xfer_osdata): Likewise.
15786         (struct osdata_type) <getter>: Likewise.
15787         * common/linux-osdata.h (linux_common_xfer_osdata): Update
15788         the declaration.
15789
15790 2014-01-14  Yao Qi  <yao@codesourcery.com>
15791
15792         * target.h (target_xfer_partial_ftype): Update.
15793         (struct target_ops) <to_xfer_partial>: Change 'len' type to
15794         ULONGEST.
15795         * aix-thread.c (aix_thread_xfer_partial): Change type of
15796         argument 'len' to ULONGEST.
15797         * auxv.c (procfs_xfer_auxv): Likewise.
15798         (ld_so_xfer_auxv): Likewise.
15799         (memory_xfer_auxv): Likewise.
15800         * bfd-target.c (target_bfd_xfer_partial): Likewise.
15801         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15802         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15803         * corelow.c (core_xfer_partial): Likewise.
15804         * ctf.c (ctf_xfer_partial): Likewise.
15805         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
15806         '%u'.
15807         (darwin_read_dyld_info): Likewise.
15808         (darwin_xfer_partial): Likewise.
15809         * exec.c (section_table_xfer_memory_partial): Likewise.
15810         (exec_xfer_partial): Likewise.
15811         * exec.h (section_table_xfer_memory_partial): Update
15812         declaration.
15813         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
15814         instead of plongest.
15815         (gnu_xfer_partial): Likewise.
15816         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15817         (ia64_hpux_xfer_solib_got): Likewise.
15818         (ia64_hpux_xfer_partial): Likewise.
15819         * ia64-linux-nat.c (ia64_linux_xfer_partial):
15820         * inf-ptrace.c (inf_ptrace_xfer_partial):
15821         * inf-ttrace.c (inf_ttrace_xfer_partial):
15822         * linux-nat.c (linux_xfer_siginfo): Likewise.
15823         (linux_nat_xfer_partial): Likewise.
15824         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15825         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15826         * monitor.c (monitor_xfer_memory): Likewise.
15827         (monitor_xfer_partial): Likewise.
15828         * procfs.c (procfs_xfer_partial): Likewise.
15829         * record-full.c (record_full_xfer_partial): Likewise.
15830         (record_full_core_xfer_partial): Likewise.
15831         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
15832         instead of plongest.
15833         (gdbsim_xfer_partial): Likewise.
15834         * remote.c (remote_xfer_partial): Likewise.
15835         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15836         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15837         declaration.
15838         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15839         (rs6000_xfer_shared_libraries): Likewise.
15840         * sol-thread.c (sol_thread_xfer_partial): Likewise.
15841         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15842         (sparc_xfer_partial): Likewise.
15843         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15844         (spu_xfer_partial): Likewise.
15845         * spu-multiarch.c (spu_xfer_partial): Likewise.
15846         * target.c (target_read_live_memory): Likewise.
15847         (memory_xfer_live_readonly_partial): Likewise.
15848         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15849         (target_xfer_partial, default_xfer_partial): Likewise.
15850         (current_xfer_partial): Likewise.
15851         * tracepoint.c (tfile_xfer_partial): Likewise.
15852         * windows-nat.c (windows_xfer_memory): Likewise.  Call
15853         pulongest instead of plongest.
15854         (windows_xfer_partial): Likewise.
15855         (windows_xfer_shared_libraries): Likewise.
15856
15857 2014-01-14  Yao Qi  <yao@codesourcery.com>
15858
15859         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15860         target_xfer_partial_ftype.
15861
15862 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
15863
15864         PR python/15464
15865         PR python/16113
15866         * valops.c (value_struct_elt_bitpos): New function
15867         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15868         object to 'None' if the field name is an empty string ("").
15869         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15870         attribute to look for a field when 'name' is 'None'.
15871         (get_field_type): New function
15872
15873 2014-01-13  Doug Evans  <dje@google.com>
15874
15875         PR symtab/16426
15876         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15877         (try_open_dwop_file): Ditto.
15878         * gdb_bfd.c: #include "vec.h".
15879         (bfdp): New typedef.
15880         (struct gdb_bfd_data): New member included_bfds.
15881         (gdb_bfd_unref): Unref all included bfds.
15882         (gdb_bfd_record_inclusion): New function.
15883         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15884
15885 2014-01-13  Tom Tromey  <tromey@redhat.com>
15886
15887         * gdbcore.h (deprecated_core_resize_section_table): Remove.
15888
15889 2014-01-13  Tom Tromey  <tromey@redhat.com>
15890
15891         * defs.h (use_windows): Remove.
15892         * gdb.c (main): Update.
15893         * main.c (captured_main, gdb_main): Update.
15894         * main.h (struct captured_main_args) <use_windows>: Remove.
15895         * top.c (use_windows): Remove.
15896
15897 2014-01-13  Tom Tromey  <tromey@redhat.com>
15898
15899         * defs.h (deprecated_flush_hook): Remove.
15900
15901 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
15902
15903         PR threads/16216
15904         * linux-thread-db.c (try_thread_db_load): Add parameter
15905         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
15906         (try_thread_db_load_from_pdir_1): Move it there from here.
15907         (try_thread_db_load_from_sdir): Update caller.
15908         (try_thread_db_load_from_dir): Move it there from here.
15909
15910 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
15911
15912         * regformats/regdat.sh: Always rewrite the register file.
15913
15914 2014-01-13  Pedro Alves  <palves@redhat.com>
15915
15916         * Makefile.in (CHECK_HEADERS): New variable.
15917         (check-headers:): New rule.
15918
15919 2014-01-13  Tom Tromey  <tromey@redhat.com>
15920
15921         * cli/cli-setshow.c (do_set_command): Update.
15922         * defs.h (deprecated_set_hook): Remove.
15923         * top.c (deprecated_set_hook): Remove.
15924
15925 2014-01-13  Pedro Alves  <palves@redhat.com>
15926
15927         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15928         the tracepoint if the PC is a pseudo-register.
15929
15930 2014-01-13  Tom Tromey  <tromey@redhat.com>
15931
15932         * defs.h (XCALLOC): Remove.
15933         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15934         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15935         * dwarf2loc.c (allocate_piece_closure): Likewise.
15936         * elfread.c (elf_symfile_segments): Likewise.
15937         (elf_symfile_segments): Likewise.
15938         * gdbtypes.c (copy_type_recursive): Likewise.
15939         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15940         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15941         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15942         XCALLOC.
15943         * mt-tdep.c (mt_gdbarch_init): Likewise.
15944         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15945         XCALLOC.
15946         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15947         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15948         * registry.c (registry_alloc_data): Likewise.
15949         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15950         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15951         * serial.c (serial_fdopen_ops): Likewise.
15952         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15953         XCALLOC.
15954         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15955         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15956         not XCALLOC.
15957
15958 2014-01-13  Tom Tromey  <tromey@redhat.com>
15959
15960         * defs.h (XMALLOC): Remove.
15961         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15962         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15963         * cli-out.c (struct ui_out *): Likewise.
15964         * cli/cli-dump.c (add_dump_command): Likewise.
15965         (add_dump_command): Likewise.
15966         * complaints.c (get_complaints): Likewise.
15967         (find_complaint): Likewise.
15968         * dwarf2-frame.c (execute_cfa_program): Likewise.
15969         * dwarf2read.c (abbrev_table_read_table): Likewise.
15970         * gdbarch.sh: Likewise.
15971         * gdbarch.c: Rebuild.
15972         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15973         * interps.c (interp_new): Likewise.
15974         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15975         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15976         * mi/mi-console.c (mi_console_file_new): Likewise.
15977         * mi/mi-interp.c (mi_interpreter_init): Likewise.
15978         * mi/mi-out.c (mi_out_new): Likewise.
15979         * mi/mi-parse.c (mi_parse): Likewise.
15980         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15981         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15982         * observer.c (xalloc_observer_list_node): Likewise.
15983         * regcache.c (regcache_xmalloc_1): Likewise.
15984         * reggroups.c (reggroup_new): Likewise.
15985         (_initialize_reggroup): Likewise.
15986         * registry.c (register_data_with_cleanup): Likewise.
15987         * remote.c (remote_notif_stop_alloc_reply): Likewise.
15988         * ser-base.c (serial_ttystate): Likewise.
15989         * ser-mingw.c (make_pipe_state): Likewise.
15990         * ser-pipe.c (pipe_open): Likewise.
15991         * serial.c (serial_open): Likewise.
15992         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15993         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15994         (tui_alloc_win_info): Likewise.
15995         (tui_add_content_elements): Likewise.
15996         * tui/tui-file.c (tui_file_new): Likewise.
15997         * tui/tui-out.c (tui_out_new): Likewise.
15998         * ui-file.c (mem_file_new): Likewise.
15999         * ui-out.c (push_level): Likewise.
16000         (make_cleanup_ui_out_end): Likewise.
16001         (append_header_to_list): Likewise.
16002         (ui_out_new): Likewise.
16003         * user-regs.c (user_reg_add_builtin): Likewise.
16004
16005 2014-01-13  Tom Tromey  <tromey@redhat.com>
16006
16007         * defs.h (XZALLOC): Remove.
16008         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
16009         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
16010         (get_ada_tasks_inferior_data): Likewise.
16011         * auto-load.c (get_auto_load_pspace_data): Likewise.
16012         * auxv.c (get_auxv_inferior_data): Likewise.
16013         * bfd-target.c (target_bfd_reopen): Likewise.
16014         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
16015         (deprecated_insert_raw_breakpoint): Likewise.
16016         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
16017         * corelow.c (core_open): Likewise.
16018         * darwin-nat.c (darwin_check_new_threads): Likewise.
16019         (darwin_attach_pid): Likewise.
16020         * dummy-frame.c (dummy_frame_push): Likewise.
16021         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
16022         * dwarf2loc.c (allocate_piece_closure): Likewise.
16023         * elfread.c (elf_symfile_segments): Likewise.
16024         * eval.c (ptrmath_type_p): Likewise.
16025         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
16026         * gdbtypes.c (alloc_type_arch): Likewise.
16027         (alloc_type_instance): Likewise.
16028         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
16029         * inf-child.c (inf_child_can_use_agent): Likewise.
16030         * inflow.c (get_inflow_inferior_data): Likewise.
16031         * infrun.c (save_infcall_suspend_state): Likewise.
16032         * jit.c (jit_reader_load): Likewise.
16033         (get_jit_objfile_data): Likewise.
16034         (get_jit_program_space_data): Likewise.
16035         (jit_object_open_impl): Likewise.
16036         (jit_symtab_open_impl): Likewise.
16037         (jit_block_open_impl): Likewise.
16038         (jit_frame_sniffer): Likewise.
16039         * linux-fork.c (add_fork): Likewise.
16040         * maint.c (make_command_stats_cleanup): Likewise.
16041         * objfiles.c (get_objfile_pspace_data): Likewise.
16042         * opencl-lang.c (struct lval_closure): Likewise.
16043         * osdata.c (osdata_start_osdata): Likewise.
16044         * progspace.c (new_address_space): Likewise.
16045         (add_program_space): Likewise.
16046         * remote-sim.c (get_sim_inferior_data): Likewise.
16047         * sh-tdep.c (sh_gdbarch_init): Likewise.
16048         * skip.c (Ignore): Likewise.
16049         (skip_delete_command): Likewise.
16050         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
16051         (library_list_start_library): Likewise.
16052         (solib_aix_current_sos): Likewise.
16053         * solib-darwin.c (get_darwin_info): Likewise.
16054         (darwin_current_sos): Likewise.
16055         * solib-dsbt.c (get_dsbt_info): Likewise.
16056         * solib-ia64-hpux.c (new_so_list): Likewise.
16057         (ia64_hpux_get_solib_linkage_addr): Likewise.
16058         * solib-spu.c (append_ocl_sos): Likewise.
16059         (spu_current_sos): Likewise.
16060         * solib-svr4.c (get_svr4_info): Likewise.
16061         (svr4_keep_data_in_core): Likewise.
16062         (library_list_start_library): Likewise.
16063         (svr4_default_sos): Likewise.
16064         (svr4_read_so_list): Likewise.
16065         * solib-target.c (library_list_start_library): Likewise.
16066         (solib_target_current_sos): Likewise.
16067         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
16068         * symfile-debug.c (install_symfile_debug_logging): Likewise.
16069         * symfile.c (default_symfile_segments): Likewise.
16070         * target-descriptions.c (tdesc_data_init): Likewise.
16071         (tdesc_create_reg): Likewise.
16072         (struct tdesc_type *): Likewise.
16073         (tdesc_create_vector): Likewise.
16074         (tdesc_set_struct_size): Likewise.
16075         (struct tdesc_type *): Likewise.
16076         (tdesc_free_feature): Likewise.
16077         (tdesc_create_feature): Likewise.
16078         * windows-nat.c (windows_add_thread): Likewise.
16079         (windows_make_so): Likewise.
16080         * xml-support.c (gdb_xml_body_text): Likewise.
16081         (gdb_xml_create_parser_and_cleanup): Likewise.
16082         (xml_process_xincludes): Likewise.
16083         * xml-syscall.c (allocate_syscalls_info): Likewise.
16084         (syscall_create_syscall_desc): Likewise.
16085
16086 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
16087
16088         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
16089         function, with code from i386_stap_parse_special_token.
16090         (i386_stap_parse_special_token_three_arg_disp): Likewise.
16091         (i386_stap_parse_special_token): Move code to the two functions
16092         above; simplify it.
16093
16094 2014-01-09  Pedro Alves  <palves@redhat.com>
16095             Hui Zhu  <hui@codesourcery.com>
16096
16097         PR gdb/16101
16098         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
16099         bp_err_string.  Don't mark the location shlib_disabled if the
16100         error thrown wasn't a generic or memory error.  Catch errors
16101         thrown while inserting breakpoints in overlayed code.  Output
16102         error message of software breakpoints.
16103         * remote.c (remote_insert_breakpoint): If this breakpoint has
16104         target-side commands but this stub doesn't support Z0 packets,
16105         throw NOT_SUPPORTED_ERROR error.
16106         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
16107         * target.h (target_insert_breakpoint): Extend comment.
16108         (target_insert_hw_breakpoint): Add comment.
16109
16110 2014-01-08  Pedro Alves  <palves@redhat.com>
16111
16112         * remote.c (remote_add_thread): Add threads silently if starting
16113         up.
16114         (remote_notice_new_inferior): If in all-stop, and starting up,
16115         don't call notice_new_inferior.
16116         (get_current_thread): New function, factored out from ...
16117         (add_current_inferior_and_thread): ... this.  Adjust.
16118         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
16119         found any thread, then select the remote's current thread as GDB's
16120         current thread too.
16121
16122 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
16123
16124         * NEWS: Create a new section for the next release branch.
16125         Rename the section of the current branch, now that it has
16126         been cut.
16127
16128 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
16129
16130         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
16131         * version.in: Bump version to 7.7.50.DATE-cvs.
16132
16133 2014-01-08  Yao Qi  <yao@codesourcery.com>
16134
16135         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
16136         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
16137         (spu_xfer_partial): Cast 'buf' to 'const char *'.
16138
16139 2014-01-08  Yao Qi  <yao@codesourcery.com>
16140
16141         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
16142         return value of bfd_get_filename to symbol_file_add_from_bfd.
16143
16144 2014-01-08  Pierre Muller  <muller@sourceware.org>
16145
16146         Fix PR16201.
16147         * coff-pe-read.c (struct read_pe_section_data): Add index field.
16148         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
16149         to prim_record_mininal_symbol_and_info.
16150         (add_pe_forwarded_sym): Use known section number of forwarded symbol
16151         in call to prim_record_minimal_symbol_and_info.
16152         (read_pe_exported_syms): Set index field of section_data.
16153
16154 2014-01-07  Andrew Pinski  <apinski@cavium.com>
16155
16156         * features/aarch64-core.xml (cpsr): Change to be 64bit.
16157         * features/aarch64.c: Regenerate.
16158
16159 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
16160
16161         * target.c (return_null): Define.
16162         (update_current_target): Use it instead of return_zero for
16163         functions that return a pointer.
16164
16165 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
16166
16167         * source.c (add_path): Fix check for duplicated paths in the previously
16168         included paths.
16169
16170 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
16171
16172         * ada-lang.c: Remove duplicated include statements.
16173         * alphabsd-nat.c: Ditto.
16174         * amd64-darwin-tdep.c: Ditto.
16175         * amd64fbsd-nat.c: Ditto.
16176         * auto-load.c: Ditto.
16177         * ax-gdb.c: Ditto.
16178         * breakpoint.c: Ditto.
16179         * dbxread.c: Ditto.
16180         * fork-child.c: Ditto.
16181         * gdb_usleep.c: Ditto.
16182         * i386-darwin-tdep.c: Ditto.
16183         * i386fbsd-nat.c: Ditto.
16184         * infcmd.c: Ditto.
16185         * inferior.c: Ditto.
16186         * jv-lang.c: Ditto.
16187         * linux-nat.c: Ditto.
16188         * linux-tdep.c: Ditto.
16189         * m68kbsd-nat.c: Ditto.
16190         * m68klinux-nat.c: Ditto.
16191         * microblaze-tdep.c: Ditto.
16192         * mips-linux-tdep.c: Ditto.
16193         * mn10300-tdep.c: Ditto.
16194         * nto-tdep.c: Ditto.
16195         * opencl-lang.c: Ditto.
16196         * osdata.c: Ditto.
16197         * printcmd.c: Ditto.
16198         * regcache.c: Ditto.
16199         * remote-m32r-sdi.c: Ditto.
16200         * remote.c: Ditto.
16201         * symfile.c: Ditto.
16202         * symtab.c: Ditto.
16203         * tilegx-linux-nat.c: Ditto.
16204         * tilegx-tdep.c: Ditto.
16205         * tracepoint.c: Ditto.
16206         * valops.c: Ditto.
16207         * vaxbsd-nat.c: Ditto.
16208         * windows-nat.c: Ditto.
16209         * xtensa-tdep.c: Ditto.
16210
16211 2014-01-07  Yao Qi  <yao@codesourcery.com>
16212
16213         * spu-linux-nat.c (_initialize_spu_nat): Declare.
16214
16215 2014-01-07  Yao Qi  <yao@codesourcery.com>
16216             Joel Brobecker  <brobecker@adacore.com>
16217
16218         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16219         (pdc_write_regs): Likewise.
16220         (fetch_regs_kernel_thread): Likewise.
16221         (store_regs_kernel_thread): Likewise.
16222
16223 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16224
16225         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16226         tagged type objects to their actual type.
16227
16228 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16229
16230         * ada-valprint.c (print_field_values): Add "language" parameter.
16231         Update calls to print_field_values and print_variant_part.
16232         Pass new parameter "language" in call to val_print instead
16233         of "current_language".  Replace call to ada_val_print by call
16234         to val_print.
16235         (print_variant_part): Add "language" parameter.
16236         (ada_val_print_struct_union): Update call to print_field_values.
16237
16238 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16239
16240         * ada-valprint.c (ui_memcpy): Delete.
16241         (ada_print_floating): Update documentation.  Add empty line
16242         between between function documentation and implementation.
16243         Delete variable "buffer".  Use ui_file_xstrdup in place of
16244         ui_file_put.  Minor adjustments following this change.
16245
16246 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16247
16248         * ada-valprint.c (ada_val_print_string): New function,
16249         extracted from ada_val_print_array.
16250         (ada_val_print_array): Replace extracted code by call
16251         to ada_val_print_string followed by a return.  Move
16252         "else" branch to the function's top block.
16253
16254 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16255
16256         * ada-valprint.c (ada_val_print_array): Move implementation
16257         down.  Rename parameter "offset" and "val" into "offset_aligned"
16258         and "original_value" respectively.  Add parameter "offset".
16259
16260 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16261
16262         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16263         re-organizing the code. Change the "???" message printed
16264         when target type is a TYPE_CODE_UNDEF into
16265         "<ref to undefined type>".
16266
16267 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16268
16269         * ada-valprint.c (print_record): Delete, implementation inlined...
16270         (ada_val_print_struct_union): ... here.  Remove call to
16271         ada_check_typedef in inlined implementation.
16272
16273 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16274
16275         * ada-valprint.c (ada_val_print_gnat_array): New function,
16276         extracted from ada_val_print_1;
16277         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16278         (ada_val_print_flt, ada_val_print_struct_union)
16279         (ada_val_print_ref): Likewise.
16280         (ada_val_print_1): Delete variables i and elttype.
16281         Replace extracted-out code by call to corresponding
16282         new functions.
16283
16284 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16285
16286         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16287
16288 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16289
16290         * ada-valprint.c (ada_val_print_1): Replace calls to
16291         ada_val_print_1 by calls to val_print.
16292
16293 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16294
16295         * ada-valprint.c (ada_val_print_1): Add parameter "language".
16296         Update calls to self accordingly.  Replace calls to c_val_print
16297         by calls to val_print.
16298
16299 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16300
16301         * ada-valprint.c (print_record): Delete declaration.
16302         (adjust_type_signedness, ada_val_print_1): Likewise.
16303         (ada_val_print): Move function implementation down.
16304         (print_variant_part, print_field_values, print_record):
16305         Move function implementation up.
16306
16307 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16308
16309         * python/py-type.c (typy_get_name): New function.
16310         (type_object_getset): Add entry for attribute "name".
16311         * NEWS: Add entry mentioning this new attribute.
16312
16313 2014-01-07  Yao Qi  <yao@codesourcery.com>
16314
16315         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16316         statement.
16317
16318 2014-01-07  Yao Qi  <yao@codesourcery.com>
16319
16320         * gnu-nat.c (info_port_rights): Add qualifier const to
16321         argument args.
16322
16323 2014-01-07  Yao Qi  <yao@codesourcery.com>
16324
16325         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16326
16327 2014-01-07  Yao Qi  <yao@codesourcery.com>
16328
16329         * gnu-nat.c (make_inf) Update declaration.
16330         (make_inf): Make it static.
16331         (inf_set_traced): Likewise.
16332         (inf_port_to_thread, inf_task_died_status): Likewise.
16333
16334 2014-01-07  Yao Qi  <yao@codesourcery.com>
16335
16336         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16337
16338 2014-01-07  Yao Qi  <yao@codesourcery.com>
16339
16340         * gnu-nat.c (_initialize_gnu_nat): Declare.
16341
16342 2014-01-07  Yao Qi  <yao@codesourcery.com>
16343
16344         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16345         'enum bfd_endian'.
16346         (struct gdbarch_info) <byte_order>: Change type to
16347         'enum bfd_endian'.
16348         <byte_order_for_code>: Likewise.
16349         * gdbarch.c, gdbarch.h: Regenerated.
16350
16351 2014-01-06  Sasha Smundak  <asmundak@google.com>
16352
16353         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16354
16355 2014-01-06  Tom Tromey  <tromey@redhat.com>
16356
16357         * doublest.c (convert_doublest_to_floatformat): Use const, not
16358         CONST.
16359         * somread.c (som_symtab_read): Likewise.
16360
16361 2014-01-07  Hui Zhu  <hui@codesourcery.com>
16362
16363         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16364         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16365         (gdb_bfd_fopen): Ditto.
16366         (gdb_bfd_openr): Ditto.
16367         (gdb_bfd_openw): Ditto.
16368         (gdb_bfd_openr_iovec): Ditto.
16369         (gdb_bfd_fdopenr): Ditto.
16370         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16371         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16372         with xstrdup.
16373         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16374         with xstrdup.
16375         * symfile-mem.c (symbol_file_add_from_memory): Removed
16376         gdb_bfd_stash_filename.
16377
16378 2014-01-03  Doug Evans  <dje@google.com>
16379
16380         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16381         output.
16382
16383 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
16384
16385         Update year range in copyright notice of all files.
16386
16387 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
16388
16389         * top.c (print_gdb_version): Set copyright year to 2014.
16390
16391 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
16392
16393         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16394
16395 For older changes see ChangeLog-2013.
16396 \f
16397 Local Variables:
16398 mode: change-log
16399 left-margin: 8
16400 fill-column: 74
16401 version-control: never
16402 coding: utf-8
16403 End: