use do_align () directly in tc-ia64.c
[external/binutils.git] / gdb / ChangeLog-2014
1 2014-12-31  Joel Brobecker  <brobecker@adacore.com>
2
3         * NEWS: Document removal of "dll-symbols", "add-shared-symbol-files"
4         and "assf" commands.
5
6 2014-12-30  Joel Brobecker  <brobecker@adacore.com>
7
8         * windows-nat.c (safe_symbol_file_add_stub)
9         (safe_symbol_file_add_cleanup, safe_symbol_file_add)
10         (dll_symbol_command): Delete.
11         (_initialize_windows_nat): Delete local variable "c".
12         Remove "dll-symbols", "add-shared-symbol-files" and assf"
13         commands.
14
15 2014-12-29  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16
17         * arm-tdep.c (arm_gdbarch_init): Remove casts in Tag_ABI_VFP_args switch
18         case statements.
19
20 2014-12-29  Anthony Green  <green@moxielogic.com>
21
22         * configure.tgt: Add support for moxiebox target.
23
24 2014-12-27  Anthony Green  <green@moxielogic.com>
25
26         * moxie-tdep.c (moxie_software_single_step): ldo/sto instructions
27         are 32 bits, not 48.  Update comments for various instructions.
28         (moxie_process_record): Update for new shorter ldo/sto
29         instructions.  Add support for sex, zex, umul.x and mul.x
30         instructions.  Update comments for various instructions.
31
32 2014-12-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33
34         * arm-tdep.c (arm_gdbarch_init): Explicitly handle value 3 of
35         Tag_ABI_VFP_args. Also replace hardcoded values by enum values in the
36         switch handling the different values of Tag_ABI_VFP_args.
37
38 2014-12-23  Doug Evans  <xdje42@gmail.com>
39
40         * ada-lang.c (user_select_syms): Only fetch symtab if symbol is
41         objfile-owned.
42         (cache_symbol): Ignore symbols that are not objfile-owned.
43         * block.c (block_objfile): New function.
44         (block_gdbarch): New function.
45         * block.h (block_objfile): Declare.
46         (block_gdbarch): Declare.
47         * c-exp.y (classify_name): Remove call to
48         language_lookup_primitive_type.  No longer necessary.
49         * gdbtypes.c (lookup_typename): Call lookup_symbol_in_language.
50         Remove call to language_lookup_primitive_type.  No longer necessary.
51         * guile/scm-symbol.c (syscm_gdbarch_data_key): New static global.
52         (syscm_gdbarch_data): New struct.
53         (syscm_init_arch_symbols): New function.
54         (syscm_get_symbol_map): Renamed from syscm_objfile_symbol_map.
55         All callers updated.  Handle symbols owned by arches.
56         (gdbscm_symbol_symtab): Handle symbols owned by arches.
57         (gdbscm_initialize_symbols): Initialize syscm_gdbarch_data_key.
58         * language.c (language_lookup_primitive_type_1): New function.
59         (language_lookup_primitive_type): Call it.
60         (language_alloc_type_symbol): New function.
61         (language_init_primitive_type_symbols): New function.
62         (language_lookup_primitive_type_as_symbol): New function.
63         * language.h (struct language_arch_info) <primitive_type_symbols>:
64         New member.
65         (language_lookup_primitive_type): Add function comment.
66         (language_lookup_primitive_type_as_symbol): Declare.
67         * printcmd.c (address_info): Handle arch-owned symbols.
68         * python/py-symbol.c (sympy_get_symtab): Ditto.
69         (set_symbol): Ditto.
70         (sympy_dealloc): Ditto.
71         * symmisc.c (print_symbol): Ditto.
72         * symtab.c (fixup_symbol_section): Ditto.
73         (lookup_symbol_aux): Initialize block_found.
74         (basic_lookup_symbol_nonlocal): Try looking up the symbol as a
75         primitive type.
76         (initialize_objfile_symbol_1): New function.
77         (initialize_objfile_symbol): Call it.
78         (allocate_symbol): Call it.
79         (allocate_template_symbol): Call it.
80         (symbol_objfile): Assert symbol is objfile-owned.
81         (symbol_arch, symbol_symtab, symbol_set_symtab): Ditto.
82         * symtab.h (struct symbol) <owner>: Replaces member "symtab".
83         (struct symbol) <is_objfile_owned>: New member.
84         (SYMBOL_OBJFILE_OWNED): New macro.
85         * cp-namespace.c (cp_lookup_bare_symbol): New arg langdef.
86         All callers updated.  Try to find the symbol as a primitive type.
87         (lookup_namespace_scope): New arg langdef.  All callers updated.
88         Call cp_lookup_bare_symbol directly for simple bare symbols.
89
90 2014-12-23  Doug Evans  <xdje42@gmail.com>
91
92         * symtab.h (SYMBOL_DOMAIN_BITS): New macro.
93         (struct symbol) <domain>: Use it.
94
95 2014-12-23  Doug Evans  <xdje42@gmail.com>
96
97         * symtab.c (initialize_objfile_symbol): Renamed from initialize_symbol.
98         All callers updated.
99
100 2014-12-23  Doug Evans  <xdje42@gmail.com>
101
102         * language.h (struct language_defn) <la_lookup_symbol_nonlocal>:
103         New arg language_defn.  All uses updated.
104
105 2014-12-23  Doug Evans  <xdje42@gmail.com>
106
107         * symtab.h (SYMBOL_SYMTAB): Delete
108         (SYMBOL_OBJFILE): Delete.
109         (symbol_symtab, symbol_set_symtab): Declare.
110         (symbol_objfile, symbol_arch): Declare.
111         * symtab.c (symbol_symtab): Replaces SYMBOL_SYMTAB.  All uses updated.
112         All references to symbol->symtab redirected through here.
113         (symbol_set_symtab): New function.  All assignments to SYMBOL_SYMTAB
114         redirected through here.
115         (symbol_arch): New function.
116         (symbol_objfile): New function.  Replaces SYMBOL_OBJFILE.
117         All uses updated.
118         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
119         symbol_arch.
120         * findvar.c (default_read_var_value): Call symbol_arch.
121         * guile/scm-frame.c (gdbscm_frame_block): Call symbol_objfile.
122         * jv-lang.c (add_class_symtab_symbol): Call symbol_arch.
123         * printcmd.c (address_info): Call symbol_arch.
124         * tracepoint.c (scope_info): Call symbol_arch.
125
126 2014-12-22  Doug Evans  <xdje42@gmail.com>
127
128         * cp-namespace.c (cp_lookup_symbol_via_all_imports): New function.
129         (cp_lookup_symbol_namespace): Call it.
130         (cp_lookup_symbol_nonlocal): Ditto.
131
132 2014-12-22  Doug Evans  <xdje42@gmail.com>
133
134         * cp-namespace.c (cp_lookup_symbol_via_imports): New arg
135         "search_scope_first".  All callers updated.
136
137 2014-12-22  Doug Evans  <xdje42@gmail.com>
138
139         * cp-namespace.c (cp_lookup_nested_symbol_1): New function.
140         (cp_basic_lookup_symbol): Renamed from lookup_symbol_file.  Delete
141         arg "search".  All callers updated.
142         (cp_lookup_bare_symbol): New function.
143         (cp_search_static_and_baseclasses): New function.
144         (cp_lookup_symbol_in_namespace): Rewrite, move more logic here.
145         (find_symbol_in_baseclass): Simplify, call cp_lookup_nested_symbol_1.
146         (cp_lookup_nested_symbol): Ditto.
147
148 2014-12-22  Doug Evans  <xdje42@gmail.com>
149
150         * cp-namespace.c (cp_lookup_symbol_in_namespace): Simplify.
151
152 2014-12-22  Doug Evans  <xdje42@gmail.com>
153
154         * cp-namespace.c: Whitespace cleanup.
155
156 2014-12-20  Keith Seitz  <keiths@redhat.com>
157             Mihail-Marian Nistor  <mihail.nistor@freescale.com>
158
159         PR gdb/17394
160         * linespec.c (struct collect_minsyms): Add new member `symtab'.
161         (add_minsym): Handle cases where info.symtab is non-NULL.
162         (search_minsyms_for_name): Add new parameter `symtab'.
163         Handle limiting searches to a specific symtab.
164         (add_matching_symtabs_to_info): Search through minimal symbols
165         for language_asm files for which no new symbols are found.
166
167 2014-12-19  Maciej W. Rozycki  <macro@codesourcery.com>
168             Nigel Stephens  <nigel@mips.com>
169             Chris Dearman  <chris@mips.com>
170             Luis Machado  <lgustavo@codesourcery.com>
171
172         * Makefile.in (ALL_TARGET_OBS): Add mips-sde-tdep.o.
173         (ALLDEPFILES): Add mips-sde-tdep.c.
174         * mips-sde-tdep.c: New file containg SDE specific code.
175         * configure.tgt (mips*-sde*-elf*): Add mips-sde-dep.o to
176         gdb_target_obs.
177         * defs.h (gdb_osabi): Add GDB_OSABI_SDE.
178         * osabi.c (gdb_osabi_names): Add SDE.
179         * NEWS: Mention the change.
180
181 2014-12-18  Simon Marchi  <simon.marchi@ericsson.com>
182
183         * elfread.c (elf_symfile_init): Remove stale comment.
184         (elf_symfile_read): Same.
185         * symfile.h (struct sym_fns): Same.
186
187 2014-12-18  Nigel Stephens  <nigel@mips.com>
188             Maciej W. Rozycki  <macro@codesourcery.com>
189
190         * mips-tdep.c (print_fpu_flags): New function.
191         (mips_print_float_info): Likewise.
192         (mips_gdbarch_init): Install mips_print_float_info as gdbarch
193         print_float_info routine.
194
195 2014-12-18  Yao Qi  <yao@codesourcery.com>
196
197         * gdbarch.sh (print_float_info): Change its type from 'M' to 'm'.
198         * gdbarch.c: Re-generated.
199         * gdbarch.h: Likewise.
200         * infcmd.c (default_print_float_info): New function.
201         (print_float_info): Removed.  Move code to
202         default_print_float_info.
203         (float_info): Adjust to call gdbarch_print_float_info.
204         * inferior.h (default_print_float_info): Declare it.
205
206 2014-12-18  Yao Qi  <yao@codesourcery.com>
207
208         * h8300-tdep.c (h8300_print_float_info): Remove.
209         (h8300_gdbarch_init): Remove the call to
210         set_gdbarch_print_float_info.
211
212 2014-12-18  Doug Evans  <xdje42@gmail.com>
213
214         * infcmd.c (jump_command): Minor simplification.
215
216 2014-12-18  Doug Evans  <xdje42@gmail.com>
217
218         * language.c (language_lookup_primitive_type): Renamed from
219         language_lookup_primitive_type_by_name.  All callers updated.
220
221 2014-12-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
222
223         Fix MinGW compilation.
224         * compile/compile.c (get_compile_file_tempdir): Call error if
225         !HAVE_MKDTEMP.
226         * config.in: Regenerate.
227         * configure: Regenerate.
228         * configure.ac (AC_CHECK_FUNCS): Add mkdtemp.
229
230 2014-12-17  Doug Evans  <xdje42@gmail.com>
231
232         * valops.c (value_maybe_namespace_elt): Remove redundant call to
233         lookup_static_symbol.
234
235 2014-12-17  Doug Evans  <xdje42@gmail.com>
236
237         New parameter "debug symbol-lookup".
238         * NEWS: Mention it.
239         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Add debug
240         output.
241         (cp_lookup_symbol_namespace, cp_lookup_symbol_nonlocal): Ditto.
242         (cp_lookup_nested_symbol): Ditto.
243         * language.c (language_lookup_primitive_type_by_name): Add debug
244         output.
245         * minsyms.c (lookup_minimal_symbol): Add debug output.
246         * objfiles.c (objfile_debug_name): Moved here, and renamed ...
247         * symfile-debug.c (debug_objfile_name): ... from here.  All callers
248         updated.
249         * objfiles.h (objfile_debug_name): Declare.
250         * symtab.h (symbol_lookup_debug): Declare.
251         * symtab.c (symbol_lookup_debug): New global.
252         (lookup_language_this): Add debug output.
253         (lookup_symbol_aux, lookup_symbol_in_block): Ditto.
254         (lookup_symbol_in_objfile_symtabs, lookup_symbol_via_quick_fns): Ditto.
255         (lookup_symbol_in_static_block, lookup_symbol_in_objfile): Ditto.
256         (_initialize_symtab): Add new parameter "debug symbol-lookup".
257
258 2014-12-16  Doug Evans  <xdje42@gmail.com>
259
260         * buildsym.c: Add comments describing how the buildsym machinery
261         is used by the various file formats.
262         (really_free_pendings): Enhance function comment.
263         See pending_macros to NULL.  Simplify resetting pending_addrmap.
264         Call free_buildsym_compunit.
265         (free_buildsym_compunit): Set current_subfile to NULL.
266         (prepare_for_building): New function.
267         (start_symtab): Call it.  Remove call to set_last_source_file.
268         (restart_symtab): New arg "cust".  All callers updated.
269         Simplify, call prepare_for_building.  Re-initialize buildsym_compunit.
270         (reset_symtab_globals): Enhance function comment.
271         Set local_symbols, file_symbols, global_symbols to NULL.
272         Set pending_macros to NULL.  Simplify resetting pending_addrmap.
273         Call free_buildysym_compunit.
274         (end_symtab_without_blockvector): Delete.  All callers updated.
275         (end_symtab_with_blockvector): Remove redundant call to
276         free_buildsym_compunit.
277         (augment_type_symtab): Remove arg "cust".  All callers updated.
278         (buildsym_init): Remove resetting of free_pendings, file_symbols,
279         global_symbols, pending_blocks, pending_macros.  Instead make
280         handling consistent with pending_addrmap: Assert value was reset
281         at end of previous symtab building.  Initialize context_stack here.
282
283 2014-12-16  Doug Evans  <xdje42@gmail.com>
284
285         * cp-namespace.c (cp_lookup_symbol_via_imports): Renamed from
286         cp_lookup_symbol_imports.  All callers updated.
287
288 2014-12-16  Doug Evans  <xdje42@gmail.com>
289
290         * cp-namespace.c (cp_find_type_baseclass_by_name): Renamed from
291         find_type_baseclass_by_name.  All callers updated.
292
293 2014-12-16  Doug Evans  <xdje42@gmail.com>
294
295         * symtab.h (struct symbol_search) <symtab>: Delete.  All uses updated.
296         * symtab.c (compare_search_syms): Use SYMBOL_SYMTAB accessor.
297         (print_symbol_info): Delete arg symtab.  All callers updated.
298         (symtab_symbol_info): Use SYMBOL_SYMTAB accessor.
299
300 2014-12-16  Andreas Arnez  <arnez@vnet.linux.ibm.com>
301
302         * user-regs.c (maintenance_print_user_registers): Swap "Nr" and
303         "Name" columns.  Assure that the output is always indented.
304
305 2014-12-16  Joel Brobecker  <brobecker@adacore.com>
306
307         * nat/linux-ptrace.h (PTRACE_O_EXITKILL): Define if not
308         already defined.
309         (linux_enable_event_reporting): Add parameter "attached".
310         * nat/linux-ptrace.c (linux_test_for_exitkill): New forward
311         declaration.  New function.
312         (linux_check_ptrace_features): Add linux_test_for_exitkill call.
313         (linux_enable_event_reporting): Add new parameter "attached".
314         Do not call ptrace with the PTRACE_O_EXITKILL if ATTACHED is
315         nonzero.
316         * linux-nat.c (linux_init_ptrace): Add parameter "attached".
317         Use it.  Update function description.
318         (linux_child_post_attach, linux_child_post_startup_inferior):
319         Update call to linux_enable_event_reporting.
320
321 2014-12-16  Yao Qi  <yao@codesourcery.com>
322
323         * NEWS: Move some entries to "Changes since GDB 7.8" section.
324
325 2014-12-16  Yao Qi  <yao@codesourcery.com>
326
327         * linux-tdep.c (linux_infcall_mmap): Replace ARG_MAX with
328         ARG_LAST.
329
330 2014-12-15  Simon Marchi  <simon.marchi@ericsson.com>
331
332         * inferior.c (find_inferior_ptid): New function.
333         * inferior.h (find_inferior_ptid): New declaration.
334         * ada-tasks.c (ada_get_task_number): Use find_inferior_ptid.
335         * corelow.c (core_pid_to_str): Same.
336         * darwin-nat.c (darwin_resume): Same.
337         * infrun.c (fetch_inferior_event): Same.
338         (get_inferior_stop_soon): Same.
339         (handle_inferior_event): Same.
340         (handle_signal_stop): Same.
341         * linux-nat.c (resume_lwp): Same.
342         (stop_wait_callback): Same.
343         * mi/mi-interp.c (mi_new_thread): Same.
344         (mi_thread_exit): Same.
345         * proc-service.c (ps_pglobal_lookup): Same.
346         * record-btrace.c (record_btrace_step_thread): Same.
347         * remote-sim.c (gdbsim_close_inferior): Same.
348         (gdbsim_resume): Same.
349         (gdbsim_stop): Same.
350         * sol2-tdep.c (sol2_core_pid_to_str): Same.
351         * target.c (memory_xfer_partial_1): Same.
352         (default_thread_address_space): Same.
353         * thread.c (thread_change_ptid): Same.
354         (switch_to_thread): Same.
355         (do_restore_current_thread_cleanup): Same.
356
357 2014-12-15  Simon Marchi  <simon.marchi@ericsson.com>
358
359         * defs.h (gdb_readline): Constify argument.
360         (gdb_readline_wrapper): Same.
361         (command_line_input): Same.
362         (deprecated_readline_hook): Same.
363         * top.c (deprecated_readline_hook): Same.
364         (gdb_readline): Same.
365         (gdb_readline_wrapper): Same.
366         (command_line_input): Constify argument. Pass prompt_arg to called
367         functions instead of local_prompt, overwriting prompt_arg if necessary.
368         * event-top.h (display_gdb_prompt): Constify argument.
369         * event-top.c (display_gdb_prompt): Same.
370         * python/py-gdb-readline.c (gdbpy_readline_wrapper): Constify argument
371         if building with Python 3.4 and up.
372
373 2014-12-15  Simon Marchi  <simon.marchi@ericsson.com>
374
375         * python/lib/gdb/prompt.py (_prompt_pwd): Use os.getcwd() instead of
376         os.getcwdu().
377
378 2014-12-15  Catalin Udma  <catalin.udma@freescale.com>
379
380         PR gdb/15684
381         * memattr.c (mem_info_command): Remove "unsigned long" casts.
382
383 2014-12-13  Doug Evans  <xdje42@gmail.com>
384
385         * utils.c (make_hex_string): Fix off-by-one error.
386
387 2014-12-13  Joel Brobecker  <brobecker@adacore.com>
388
389         * ada-lang.h (ada_ensure_varsize_limit): Declare.
390         * ada-lang.c (check_size): Remove advance declaration.
391         (ada_ensure_varsize_limit): Renames check_size.
392         Replace calls to check_size by calls to ada_ensure_varsize_limit
393         throughout.
394         * ada-valprint.c (ada_val_print_ref): Add call to
395         ada_ensure_varsize_limit.  Add comment explaining why.
396
397 2014-12-13  Joel Brobecker  <brobecker@adacore.com>
398
399         * utils.c (make_hex_string): Replace use of sprintf by use of
400         xsnprintf.
401
402 2014-12-13  Joel Brobecker  <brobecker@adacore.com>
403
404         * compile/compile-object-load.c (link_callbacks_multiple_definition)
405         (link_callbacks_warning, link_callbacks_einfo): Remove trailing
406         newline at end of warning message.
407
408 2014-12-13  Joel Brobecker  <brobecker@adacore.com>
409
410         * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Add support for
411         new "EXTRA-ARGS" parameter.
412         * configure.ac: If large-file support is disabled in GDB,
413         pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
414         * configure: Regenerate.
415
416 2014-12-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
417
418         PR symtab/17642
419         * gdbtypes.c (resolve_dynamic_type_internal): Apply check_typedef to
420         TYPE if not TYPE_CODE_TYPEDEF.
421
422 2014-12-13  Joel Brobecker  <brobecker@adacore.com>
423
424         PR backtrace/16215:
425         * dwarf2-frame.c (dwarf2_frame_cfa): Remove the restriction
426         the frame unwinder must either be the dwarf2_frame_unwind
427         or the dwarf2_tailcall_frame_unwind.  Verify that this_frame's
428         stack_addr is valid before calling get_frame_base.  Throw
429         an error if not valid.
430
431 2014-12-12  Doug Evans  <xdje42@gmail.com>
432
433         * valops.c (value_maybe_namespace_elt): Remove unnecessary test of
434         result != NULL.
435
436 2014-12-12  Doug Evans  <xdje42@gmail.com>
437
438         * cp-support.h (cp_is_in_anonymous): Renamed from cp_is_anonymous.
439         All callers updated.  Rename arg "namespace" to "symbol_name".
440
441 2014-12-12  Doug Evans  <xdje42@gmail.com>
442
443         * psymtab.c (psym_map_symtabs_matching_filename): Renamed from
444         partial_map_symtabs_matching_filename.  All uses updated.
445         (psym_find_pc_sect_compunit_symtab): Renamed from
446         find_pc_sect_compunit_symtab_from_partial.  All uses updated.
447         Add function comment.
448         (psym_lookup_symbol): Renamed from lookup_symbol_aux_psymtabs.
449         All uses updated.  Add function comment.
450         (psym_relocate): Renamed from relocate_psymtabs.  All uses updated.
451         Add function comment.
452         (psym_find_last_source_symtab): Renamed from
453         find_last_source_symtab_from_partial.  All uses updated.
454         Add function comment.
455         (psym_forget_cached_source_info): Renamed from
456         forget_cached_source_info_partial.  All uses updated.
457         Add function comment.
458         (psym_print_stats): Renamed from print_psymtab_stats_for_objfile.
459         All uses updated.  Add function comment.
460         (psym_dump): Renamed from dump_psymtabs_for_objfile.  All uses
461         updated.  Add function comment.
462         (psym_expand_symtabs_for_function): Renamed from
463         read_symtabs_for_function.  All uses updated.  Update function comment.
464         (psym_expand_all_symtabs): Renamed from expand_partial_symbol_tables.
465         All uses updated.  Add function comment.
466         (psym_expand_symtabs_with_fullname): Renamed from
467         read_psymtabs_with_fullname.  All uses updated.  Add function comment.
468         (psym_map_symbol_filenames): Renamed from map_symbol_filenames_psymtab.
469         All uses updated.  Add function comment.
470         (psym_map_matching_symbols): Renamed from map_matching_symbols_psymtab.
471         All uses updated.
472         (psym_expand_symtabs_matching): Renamed from
473         expand_symtabs_matching_via_partial.  All uses updated.
474         Add function comment.
475         (psym_has_symbols): Renamed from objfile_has_psyms.  All uses updated.
476         Add function comment.
477
478 2014-12-12  Phil Muldoon  <pmuldoon@redhat.com>
479             Jan Kratochvil  <jan.kratochvil@redhat.com>
480             Tom Tromey  <tromey@redhat.com>
481
482         * NEWS: Update.
483         * symtab.h (struct symbol_computed_ops) <generate_c_location>: New
484         field.
485         * p-lang.c (pascal_language_defn): Update.
486         * opencl-lang.c (opencl_language_defn): Update.
487         * objc-lang.c (objc_language_defn): Update.
488         * m2-lang.c (m2_language_defn): Update.
489         * language.h (struct language_defn) <la_get_compile_instance,
490         la_compute_program>: New fields.
491         * language.c (unknown_language_defn, auto_language_defn)
492         (local_language_defn): Update.
493         * jv-lang.c (java_language_defn): Update.
494         * go-lang.c (go_language_defn): Update.
495         * f-lang.c (f_language_defn): Update.
496         * dwarf2loc.h (dwarf2_compile_property_to_c): Declare.
497         * dwarf2loc.c (dwarf2_compile_property_to_c)
498         (locexpr_generate_c_location, loclist_generate_c_location): New
499         functions.
500         (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Update.
501         * defs.h (enum compile_i_scope_types): New.
502         (enum command_control_type) <compile_control>: New constant.
503         (struct command_line) <control_u>: New field.
504         * d-lang.c (d_language_defn): Update.
505         * compile/compile.c: New file.
506         * compile/compile-c-support.c: New file.
507         * compile/compile-c-symbols.c: New file.
508         * compile/compile-c-types.c: New file.
509         * compile/compile.h: New file.
510         * compile/compile-internal.h: New file.
511         * compile/compile-loc2c.c: New file.
512         * compile/compile-object-load.c: New file.
513         * compile/compile-object-load.h: New file.
514         * compile/compile-object-run.c: New file.
515         * compile/compile-object-run.h: New file.
516         * cli/cli-script.c (multi_line_command_p, print_command_lines)
517         (execute_control_command, process_next_line)
518         (recurse_read_control_structure): Handle compile_control.
519         * c-lang.h (c_get_compile_context, c_compute_program): Declare.
520         * c-lang.c (c_language_defn, cplus_language_defn)
521         (asm_language_defn, minimal_language_defn): Update.
522         * ada-lang.c (ada_language_defn): Update.
523         * Makefile.in (SUBDIR_GCC_COMPILE_OBS, SUBDIR_GCC_COMPILE_SRCS):
524         New variables.
525         (SFILES): Add SUBDIR_GCC_COMPILE_SRCS.
526         (HFILES_NO_SRCDIR): Add compile.h.
527         (COMMON_OBS): Add SUBDIR_GCC_COMPILE_OBS.
528         (INIT_FILES): Add SUBDIR_GCC_COMPILE_SRCS.
529         (compile.o, compile-c-types.o, compile-c-symbols.o)
530         (compile-object-load.o, compile-object-run.o, compile-loc2c.o)
531         (compile-c-support.o): New targets.
532
533 2014-12-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
534
535         * s390-linux-tdep.c (s390_gcc_target_options): New function.
536         (s390_gdbarch_init): Add it to gdbarch.
537
538 2014-12-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
539
540         * linux-tdep.c: Include objfiles.h and infcall.h.
541         (GDB_MMAP_MAP_PRIVATE, GDB_MMAP_MAP_ANONYMOUS, linux_infcall_mmap): New
542         function.
543         (linux_init_abi): Add linux_infcall_mmap to gdbarch.
544
545 2014-12-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
546
547         * dwarf2loc.h (dwarf2_reg_to_regnum_or_error): Declare.
548         * dwarf2loc.c (dwarf2_reg_to_regnum_or_error): Rename from
549         translate_register.  Now public.
550         (dwarf2_compile_expr_to_ax): Update.
551
552 2014-12-12  Tom Tromey  <tromey@redhat.com>
553             Jan Kratochvil  <jan.kratochvil@redhat.com>
554
555         * dwarf2loc.c (dwarf_expr_frame_base_1): Remove declaration.
556         (dwarf_expr_frame_base): Update caller.
557         (dwarf_expr_frame_base_1): Rename to ...
558         (func_get_frame_base_dwarf_block): ... this and make it public.
559         (dwarf2_compile_expr_to_ax, locexpr_describe_location_piece): Update
560         callers.
561         * dwarf2loc.h (func_get_frame_base_dwarf_block): New declaration.
562
563 2014-12-12  Tom Tromey  <tromey@redhat.com>
564
565         * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_call_frame_cfa>:
566         Update.
567         * dwarf2-frame.c (dwarf2_fetch_cfa_info): New function, based on
568         dwarf2_compile_cfa_to_ax.
569         (dwarf2_compile_cfa_to_ax): Remove.
570         * dwarf2-frame.h (dwarf2_fetch_cfa_info): Declare.
571         (dwarf2_compile_cfa_to_ax): Remove.
572
573 2014-12-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
574
575         * infcall.h (call_function_by_hand_dummy): Declare.
576         * infcall.c (call_function_by_hand): Use
577         call_function_by_hand_dummy.
578         (call_function_by_hand_dummy): Rename from call_function_by_hand.
579         Add arguments.  Register a destructor.
580
581 2014-12-12  Tom Tromey  <tromey@redhat.com>
582             Jan Kratochvil  <jan.kratochvil@redhat.com>
583
584         * osabi.h (osabi_triplet_regexp): Declare.
585         * osabi.c (struct osabi_names): New.
586         (gdb_osabi_names): Change type to struct osabi_names.  Update
587         values.
588         (gdbarch_osabi_name): Update.
589         (osabi_triplet_regexp): New function.
590         (osabi_from_tdesc_string, _initialize_gdb_osabi): Update.
591         * i386-tdep.c (i386_gnu_triplet_regexp): New method.
592         (i386_elf_init_abi, i386_go32_init_abi, i386_gdbarch_init): Call
593         set_gdbarch_gnu_triplet_regexp.
594         * gdbarch.sh (gnu_triplet_regexp): New method.
595         * gdbarch.c, gdbarch.h: Rebuild.
596         * arch-utils.h (default_gnu_triplet_regexp): Declare.
597         * arch-utils.c (default_gnu_triplet_regexp): New function.
598
599 2014-12-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
600
601         * arch-utils.c (default_infcall_mmap)
602         (default_gcc_target_options): New functions.
603         * arch-utils.h (GDB_MMAP_PROT_READ, GDB_MMAP_PROT_WRITE)
604         (GDB_MMAP_PROT_EXEC): Define.
605         (default_infcall_mmap, default_gcc_target_options): Declare.
606         * gdbarch.h: Rebuild.
607         * gdbarch.c: Rebuild.
608         * gdbarch.sh (infcall_mmap, gcc_target_options): New methods.
609
610 2014-12-12  Jan Kratochvil  <jan.kratochvil@redhat.com>
611
612         * dummy-frame.c (struct dummy_frame) <dtor, dtor_data>: New
613         fields.
614         (pop_dummy_frame): Call the destructor if it exists.
615         (register_dummy_frame_dtor, find_dummy_frame_dtor): New
616         functions.
617         * dummy-frame.h (dummy_frame_dtor_ftype): New typedef.
618         (register_dummy_frame_dtor, find_dummy_frame_dtor): Declare.
619
620 2014-12-12  Tom Tromey  <tromey@redhat.com>
621
622         * gdbtypes.h (make_unqualified_type): Declare.
623         * gdbtypes.c (make_unqualified_type): New function.
624
625 2014-12-12  Tom Tromey  <tromey@redhat.com>
626
627         * ui-file.h (ui_file_write_for_put): Declare.
628         * ui-file.c (ui_file_write_for_put): New function.
629         * mi/mi-out.c (do_write): Remove.
630         (mi_out_put): Use ui_file_write_for_put.
631
632 2014-12-12  Doug Evans  <dje@google.com>
633
634         * NEWS: Mention gdb.lookup_objfile.
635         * python/python.c (GdbMethods): Add lookup_objfile.
636         * python/python-internal.h (gdbpy_lookup_objfile): Declare.
637         * python/py-objfile.c: #include "symtab.h".
638         (objfpy_build_id_ok, objfpy_build_id_matches): New functions.
639         (objfpy_lookup_objfile_by_name): New function.
640         (objfpy_lookup_objfile_by_build_id): New function.
641         (gdbpy_lookup_objfile): New function.
642
643 2014-12-12  Maciej W. Rozycki  <macro@codesourcery.com>
644
645         * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
646         (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
647         * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
648         macros.
649         (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
650         Likewise.
651
652 2014-12-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
653
654         * completer.c: Include "target.h", "reggroups.h", and
655         "user-regs.h".
656         (reg_or_group_completer): New.
657         * completer.h (reg_or_group_completer): Declare.
658         * infcmd.c (_initialize_infcmd): Set reg_or_group_completer for
659         the "info registers" and "info all-registers" commands and the
660         dbx-mode "lr" command.
661
662 2014-12-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
663
664         * user-regs.c: Include "arch-utils.h", "command.h", and
665         "cli/cli-cmds.h".
666         (maintenance_print_user_registers): New.
667         (_initialize_user_regs): Register new "maint print user-registers"
668         subcommand.
669         * NEWS: Mention new GDB command "maint print user-registers".
670
671 2014-12-12  Maciej W. Rozycki  <macro@codesourcery.com>
672             Maciej W. Rozycki  <macro@mips.com>
673             Pedro Alves  <pedro@codesourcery.com>
674
675         * gdbarch.sh (elf_make_msymbol_special): Change type to `F',
676         remove `predefault' and `invalid_p' initializers.
677         (make_symbol_special): New architecture method.
678         (adjust_dwarf2_addr, adjust_dwarf2_line): Likewise.
679         (objfile, symbol): New declarations.
680         * arch-utils.h (default_elf_make_msymbol_special): Remove
681         prototype.
682         (default_make_symbol_special): New prototype.
683         (default_adjust_dwarf2_addr): Likewise.
684         (default_adjust_dwarf2_line): Likewise.
685         * mips-tdep.h (mips_unmake_compact_addr): New prototype.
686         * arch-utils.c (default_elf_make_msymbol_special): Remove
687         function.
688         (default_make_symbol_special): New function.
689         (default_adjust_dwarf2_addr): Likewise.
690         (default_adjust_dwarf2_line): Likewise.
691         * dwarf2-frame.c (decode_frame_entry_1): Call
692         `gdbarch_adjust_dwarf2_addr'.
693         * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
694         * dwarf2read.c (create_addrmap_from_index): Likewise.
695         (process_psymtab_comp_unit_reader): Likewise.
696         (add_partial_symbol): Likewise.
697         (add_partial_subprogram): Likewise.
698         (process_full_comp_unit): Likewise.
699         (read_file_scope): Likewise.
700         (read_func_scope): Likewise.  Call `gdbarch_make_symbol_special'.
701         (read_lexical_block_scope): Call `gdbarch_adjust_dwarf2_addr'.
702         (read_call_site_scope): Likewise.
703         (dwarf2_ranges_read): Likewise.
704         (dwarf2_record_block_ranges): Likewise.
705         (read_attribute_value): Likewise.
706         (dwarf_decode_lines_1): Call `gdbarch_adjust_dwarf2_line'.
707         (new_symbol_full): Call `gdbarch_adjust_dwarf2_addr'.
708         * elfread.c (elf_symtab_read): Don't call
709         `gdbarch_elf_make_msymbol_special' if unset.
710         * mips-linux-tdep.c (micromips_linux_sigframe_validate): Strip
711         the ISA bit from the PC.
712         * mips-tdep.c (mips_unmake_compact_addr): New function.
713         (mips_elf_make_msymbol_special): Set the ISA bit in the symbol's
714         address appropriately.
715         (mips_make_symbol_special): New function.
716         (mips_pc_is_mips): Set the ISA bit before symbol lookup.
717         (mips_pc_is_mips16): Likewise.
718         (mips_pc_is_micromips): Likewise.
719         (mips_pc_isa): Likewise.
720         (mips_adjust_dwarf2_addr): New function.
721         (mips_adjust_dwarf2_line): Likewise.
722         (mips_read_pc, mips_unwind_pc): Keep the ISA bit.
723         (mips_addr_bits_remove): Likewise.
724         (mips_skip_trampoline_code): Likewise.
725         (mips_write_pc): Don't set the ISA bit.
726         (mips_eabi_push_dummy_call): Likewise.
727         (mips_o64_push_dummy_call): Likewise.
728         (mips_gdbarch_init): Install `mips_make_symbol_special',
729         `mips_adjust_dwarf2_addr' and `mips_adjust_dwarf2_line' gdbarch
730         handlers.
731         * solib.c (gdb_bfd_lookup_symbol_from_symtab): Get
732         target-specific symbol address adjustments.
733         * gdbarch.h: Regenerate.
734         * gdbarch.c: Regenerate.
735
736 2014-12-12  Yao Qi  <yao@codesourcery.com>
737
738         PR tdep/14261
739         * arm-tdep.c (arm_skip_prologue): Remove unused local variable
740         'skip_pc'.  Remove code skipping prologue instructions, use
741         arm_analyze_prologue instead.
742         (arm_analyze_prologue): Stop the scanning for unrecognized
743         instruction when skipping prologue.
744
745 2014-12-12  Yao Qi  <yao@codesourcery.com>
746
747         * arm-tdep.c (arm_instruction_restores_sp): New function.
748         (arm_analyze_prologue): Call arm_instruction_restores_sp.
749         (arm_in_function_epilogue_p): Move code to
750         arm_instruction_restores_sp.
751
752 2014-12-11  Doug Evans  <xdje42@gmail.com>
753
754         * cp-namespace.c (cp_lookup_nested_symbol): Fix comments.
755
756 2014-12-11  Doug Evans  <xdje42@gmail.com>
757
758         * symtab.c (lookup_symbol_in_objfile_symtabs): Delete forward decl.
759         (symbol *lookup_symbol_via_quick_fns): Ditto.
760         (lookup_symbol_in_objfile): Add forward decl.
761         (lookup_global_symbol_from_objfile): Simplify, call
762         lookup_symbol_in_objfile.
763
764 2014-12-11  Doug Evans  <xdje42@gmail.com>
765
766         * symtab.c (domain_name) <MODULE_DOMAIN>: Add missing case.
767
768 2014-12-10  Simon Marchi  <simon.marchi@ericsson.com>
769
770         PR breakpoints/17012
771         * breakpoint.c (remove_breakpoints_pid): Skip removing breakpoint if
772         it is marked as persistent.
773
774 2014-12-10  Doug Evans  <xdje42@gmail.com>
775
776         * cp-namespace.c (cp_lookup_symbol_nonlocal): Move definition,
777         closer to its subroutines.
778
779 2014-12-10  Doug Evans  <xdje42@gmail.com>
780
781         * cp-namespace.c (lookup_symbol_file): Move next to only caller.
782
783 2014-12-10  Doug Evans  <xdje42@gmail.com>
784
785         * cp-namespace.c (cp_lookup_symbol_imports): Make static.
786         * cp-support.h (cp_lookup_symbol_imports): Delete.
787
788 2014-12-10  Simon Marchi  <simon.marchi@ericsson.com>
789
790         PR gdb/17627
791         * target.c (cleanup_restore_target_terminal): New function.
792         (make_cleanup_restore_target_terminal): New function.
793         * target.h (make_cleanup_restore_target_terminal): New declaration.
794         * mi/mi-interp.c (mi_thread_exit): Use the new cleanup.
795
796 2014-12-08  Doug Evans  <dje@google.com>
797
798         * python/py-objfile.c (objfpy_get_owner): Increment refcount of result.
799
800 2014-12-08  Doug Evans  <dje@google.com>
801
802         * NEWS: Mention gdb.Objfile.owner.
803         * python/py-objfile.c (objfpy_get_owner): New function.
804         (objfile_getset): Add "owner".
805
806 2014-12-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
807
808         * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
809         (lookup_global_symbol_from_objfile): Call it.
810
811 2014-12-05  Jan Kratochvil  <jan.kratochvil@redhat.com>
812
813         Remove const from struct objfile *.
814         * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
815         symtab.c, symtab.h: In these files.
816
817 2014-12-05  Andreas From  <andreas.from@ericsson.com>
818
819         * MAINTAINERS (Write After Approval): Add "Andreas From"
820
821 2014-12-05  Doug Evans  <xdje42@gmail.com>
822
823         Revert:
824         PR symtab/17602
825         * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
826
827 2014-12-04  Doug Evans  <dje@google.com>
828
829         * NEWS: Mention gdb.Objfile.add_separate_debug_file.
830         * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
831         (objfile_getset): Add "add_separate_debug_file".
832
833 2014-12-04  Doug Evans  <dje@google.com>
834
835         * NEWS: Mention gdb.Objfile.build_id.
836         * build-id.c (build_id_bfd_get): Make non-static.
837         * build-id.h (build_id_bfd_get): Add declaration.
838         * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
839         (OBJFPY_REQUIRE_VALID): New macro.
840         (objfpy_get_build_id): New function.
841         (objfile_getset): Add "build_id".
842         * utils.c (make_hex_string): New function.
843         * utils.h (make_hex_string): Add declaration.
844
845 2014-12-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
846
847         * block.c (block_lookup_symbol_primary): New function.
848         * block.h (block_lookup_symbol_primary): New declaration.
849         * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
850         Call block_lookup_symbol_primary.
851
852 2014-12-03  Maciej W. Rozycki  <macro@codesourcery.com>
853
854         * tramp-frame.h (tramp_frame): Add `validate' member.
855         * tramp-frame.c (tramp_frame_start): Validate trampoline before
856         scanning.
857         * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
858         (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
859         (mips_linux_o32_sigframe): Initialize `validate' member.
860         (mips_linux_o32_rt_sigframe): Likewise.
861         (mips_linux_n32_rt_sigframe): Likewise.
862         (mips_linux_n64_rt_sigframe): Likewise.
863         (micromips_linux_o32_sigframe): New variable.
864         (micromips_linux_o32_rt_sigframe): Likewise.
865         (micromips_linux_n32_rt_sigframe): Likewise.
866         (micromips_linux_n64_rt_sigframe): Likewise.
867         (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
868         (mips_linux_n32n64_sigframe_init): Likewise.
869         (mips_linux_sigframe_validate): New function.
870         (micromips_linux_sigframe_validate): Likewise.
871         (mips_linux_init_abi): Install microMIPS trampoline unwinders.
872
873 2014-12-03  Ulrich Weigand  <uweigand@de.ibm.com>
874
875         * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
876         * sparc-sol2-tdep.c: Include "regset.h".
877         (sparc32_sol2_supply_core_gregset): New function.
878         (sparc32_sol2_collect_core_gregset): Likewise.
879         (sparc32_sol2_supply_core_fpregset): Likewise.
880         (sparc32_sol2_collect_core_fpregset): Likewise.
881         (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
882         (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
883         tdep->fpregset/sizeof_fpregset.
884         * sparc64-sol2-tdep.c: Include "regset.h".
885         (sparc64_sol2_supply_core_gregset): New function.
886         (sparc64_sol2_collect_core_gregset): Likewise.
887         (sparc64_sol2_supply_core_fpregset): Likewise.
888         (sparc64_sol2_collect_core_fpregset): Likewise.
889         (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
890         (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
891         tdep->fpregset/sizeof_fpregset.
892
893 2014-12-03  Simon Marchi  <simon.marchi@ericsson.com>
894
895         * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
896         type.
897
898 2014-12-02  Doug Evans  <dje@google.com>
899
900         * symtab.c (symbol_init_cplus_specific): Delete.
901         (symbol_set_demangled_name): Remove special c++ support.
902         (symbol_get_demangled_name, symbol_set_language): Ditto.
903         * symtab.h (struct cplus_specific): Delete.
904         (struct general_symbol_info) <language_specific>: Remove
905         cplus_specific.
906
907 2014-12-02  Doug Evans  <dje@google.com>
908
909         PR symtab/17602
910         * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
911
912 2014-12-02  Doug Evans  <dje@google.com>
913
914         PR symtab/17591
915         * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
916         to strip parameters.
917
918 2014-12-02  Doug Evans  <dje@google.com>
919
920         * dwarf2read.c (peek_die_abbrev): Improve error message text.
921
922 2014-12-02  Doug Evans  <dje@google.com>
923
924         * valops.c (do_search_struct_field): Remove remnant of Chill support.
925         Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
926
927 2014-12-02  Simon Marchi  <simon.marchi@ericsson.com>
928
929         * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
930
931 2014-12-02  Nick Bull  <nicholaspbull@gmail.com>
932
933         * NEWS: Mention new Python events.
934         * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
935         (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
936         (py-infevents.o): New rule.
937         * doc/observer.texi (inferior_call_pre, inferior_call_post)
938         (memory_changed, register_changed): New observers.
939         * infcall.c (call_function_by_hand): Notify observer before and
940         after inferior call.
941         * python/py-event.h (inferior_call_kind): New enum.
942         (emit_inferior_call_event): New prototype.
943         (emit_register_changed_event): New prototype.
944         (emit_memory_changed_event): New prototype.
945         * python/py-events.h (events_object): New registries
946         inferior_call, memory_changed and register_changed.
947         * python/py-evts.c (gdbpy_initialize_py_events): Add the
948         inferior_call, memory_changed and register_changed registries.
949         * python/py-infevents.c: New.
950         * python/py-inferior.c (python_on_inferior_call_pre)
951         (python_on_inferior_call_post, python_on_register_change)
952         (python_on_memory_change): New functions.
953         (gdbpy_initialize_inferior): Attach python handler to new
954         observers.
955         * python/py-infthread.c(gdbpy_create_ptid_object): New.
956         (thpy_get_ptid) Use gdbpy_create_ptid_object.
957         * python/python-internal.h:
958         (gdbpy_create_ptid_object)
959         (gdbpy_initialize_inferior_call_pre_event)
960         (gdbpy_initialize_inferior_call_post_event)
961         (gdbpy_initialize_register_changed_event)
962         (gdbpy_initialize_memory_changed_event): New prototypes.
963         * python/python.c (_initialize_python): Initialize new events.
964         * valops.c (value_assign): Notify register_changed observer.
965
966 2014-12-02  Doug Evans  <dje@google.com>
967
968         * python/py-infthread.c: Whitespace fixes.
969
970 2014-12-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
971
972         * features/Makefile (s390-te-linux64-expedite): Replace
973         non-existant r14 and r15 by r14l and r15l, respectively.
974         * regformats/s390-te-linux64.dat: Regenerate.
975
976 2014-12-01  Simon Marchi  <simon.marchi@ericsson.com>
977
978         * objfiles.c (allocate_objfile): Remove duplicate comment.
979
980 2014-12-01  Ulrich Weigand  <uweigand@de.ibm.com>
981
982         * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
983         * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
984         (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
985         (supply_gregset, supply_fpregset): Remove.
986         * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
987         (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
988         and sizeof_gregset.
989
990 2014-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
991
992         Add add-auto-load-scripts-directory.
993         * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
994         * auto-load.c (add_auto_load_dir): New function.
995         (_initialize_auto_load): Install it.
996
997 2014-11-30  Martin Galvan  <martin.galvan@tallertechnologies.com>  (tiny patch, obvious)
998
999         Pushed by Joel Brobecker  <brobecker@adacore.com>.
1000         * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
1001
1002 2014-11-29  Siva Chandra Reddy  <sivachandra@google.com>
1003
1004         * eval.c (evaluate_subexp): Check that the thread stack temporaries
1005         are not already enabled before enabling them.
1006
1007 2014-11-29  Yao Qi  <yao@codesourcery.com>
1008
1009         * arm-tdep.c (arm_analyze_prologue): Move local variables
1010         'framereg' and 'framesize' to inner block.  Move code to
1011         inner block too.
1012
1013 2014-11-28  Siva Chandra Reddy  <sivachandra@google.com>
1014
1015         * eval.c: Include gdbthread.h.
1016         (evaluate_subexp): Enable thread stack temporaries before
1017         evaluating a complete expression and clean them up after the
1018         evaluation is complete.
1019         * gdbthread.h: Include common/vec.h.
1020         (value_ptr): New typedef.
1021         (VEC (value_ptr)): New vector type.
1022         (value_vec): New typedef.
1023         (struct thread_info): Add new fields stack_temporaries_enabled
1024         and stack_temporaries.
1025         (enable_thread_stack_temporaries)
1026         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
1027         (get_last_thread_stack_temporary)
1028         (value_in_thread_stack_temporaries): Declare.
1029         * gdbtypes.c (class_or_union_p): New function.
1030         * gdbtypes.h (class_or_union_p): Declare.
1031         * infcall.c (call_function_by_hand): Store return values of class
1032         type as temporaries on stack.
1033         * thread.c (enable_thread_stack_temporaries): New function.
1034         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
1035         (get_last_thread_stack_temporary): Likewise.
1036         (value_in_thread_stack_temporaries): Likewise.
1037         * value.c (value_force_lval): New function.
1038         * value.h (value_force_lval): Declare.
1039
1040 2014-11-28  Pierre Muller  <muller@sourceware.org>
1041
1042         Pushed by Joel Brobecker  <brobecker@adacore.com>.
1043         * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
1044         registers.
1045
1046 2014-11-28  Ulrich Weigand  <uweigand@de.ibm.com>
1047
1048         * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
1049         * config/sparc/linux.mh (NATDEPFILES): Likewise.
1050         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
1051         * m68klinux-nat.c (fetch_core_registers): Remove.
1052         (linux_elf_core_fns): Remove.
1053         (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
1054
1055 2014-11-28  Joel Brobecker  <brobecker@adacore.com>
1056
1057         * utils.c (gdb_realpath): Rework comment about handling on
1058         Windows.
1059
1060 2014-11-28  Yao Qi  <yao@codesourcery.com>
1061
1062         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1063         rename.
1064         * gnulib/aclocal.m4: Re-generated.
1065         * gnulib/config.in: Re-generated.
1066         * gnulib/configure: Re-generated.
1067         * gnulib/import/Makefile.am: Re-generated.
1068         * gnulib/import/Makefile.in: Re-generated.
1069         * gnulib/import/m4/gnulib-cache.m4: Re-generated.
1070         * gnulib/import/m4/gnulib-comp.m4: Re-generated.
1071         * import/basename-lgpl.c: New file.
1072         * import/dirname-lgpl.c: New file.
1073         * import/dirname.h: New file.
1074         * import/m4/dirname.m4: New file.
1075         * import/m4/malloc.m4: New file.
1076         * import/m4/rename.m4: New file.
1077         * import/m4/rmdir.m4: New file.
1078         * import/m4/stdio_h.m4: New file.
1079         * import/malloc.c: New file.
1080         * import/rename.c: New file.
1081         * import/rmdir.c: New file.
1082         * import/same-inode.h: New file.
1083         * import/stdio.c: New file.
1084         * import/stdio.in.h: New file.
1085         * import/stripslash.c: New file.
1086
1087 2014-11-28  Yao Qi  <yao@codesourcery.com>
1088
1089         * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
1090         and realpath.
1091         * config.in: Re-generated.
1092         * configure: Re-generated.
1093         * utils.c (gdb_realpath): Remove code calling realpath,
1094         canonicalize_file_name and pathconf.
1095         [!_WIN32]: Call canonicalize_file_name.
1096
1097 2014-11-28  Yao Qi  <yao@codesourcery.com>
1098
1099         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1100         canonicalize-lgpl.
1101         * aclocal.m4: Re-generated.
1102         * config.in: Re-generated.
1103         * configure: Re-generated.
1104         * import/Makefile.am: Re-generated.
1105         * import/Makefile.in: Re-generated.
1106         * import/m4/gnulib-cache.m4: Re-generated.
1107         * import/m4/gnulib-comp.m4: Re-generated.
1108         * import/canonicalize-lgpl.c: New file.
1109         * import/extra/snippet/_Noreturn.h: New file.
1110         * import/m4/canonicalize.m4: New file.
1111         * import/m4/double-slash-root.m4: New file.
1112         * import/m4/eealloc.m4: New file.
1113         * import/m4/malloca.m4: New file.
1114         * import/m4/nocrash.m4: New file.
1115         * import/m4/stdlib_h.m4: New file.
1116         * import/malloca.c: New file.
1117         * import/malloca.h: New file.
1118         * import/malloca.valgrind: New file.
1119
1120 2014-11-28  Yao Qi  <yao@codesourcery.com>
1121
1122         * configure.ac (AC_CHECK_FUNCS): Remove lstat.
1123         * config.in, configure: Regenerate.
1124         * symfile.c (find_separate_debug_file_by_debuglink): Remove
1125         code checking HAVE_LSTAT is defined.
1126
1127 2014-11-28  Yao Qi  <yao@codesourcery.com>
1128
1129         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1130         lstat.
1131         * gnulib/aclocal.m4: Re-generated.
1132         * gnulib/config.in: Re-generated.
1133         * gnulib/configure: Re-generated.
1134         * gnulib/import/Makefile.am: Re-generated.
1135         * gnulib/import/Makefile.in: Re-generated.
1136         * gnulib/import/m4/gnulib-cache.m4: Re-generated.
1137         * gnulib/import/m4/gnulib-comp.m4: Re-generated.
1138         * gnulib/import/lstat.c: New file.
1139         * gnulib/import/m4/lstat.m4: New file.
1140
1141 2014-11-28  Yao Qi  <yao@codesourcery.com>
1142
1143         * configure.ac (AC_CHECK_FUNCS): Remove readlink.
1144         * config.in, configure: Re-generate.
1145         * inf-child.c (inf_child_fileio_readlink): Don't check
1146         HAVE_READLINK is defined.
1147
1148 2014-11-28  Yao Qi  <yao@codesourcery.com>
1149
1150         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
1151         * gnulib/aclocal.m4: Re-generated.
1152         * gnulib/config.in: Likewise.
1153         * gnulib/configure: Likewise.
1154         * gnulib/import/Makefile.am: Likewise.
1155         * gnulib/import/Makefile.in: Likewise.
1156         * gnulib/import/m4/gnulib-cache.m4: Likewise.
1157         * gnulib/import/m4/gnulib-comp.m4: Likewise.
1158         * gnulib/import/dosname.h: New file
1159         * gnulib/import/m4/largefile.m4: New file.
1160         * gnulib/import/m4/readlink.m4: New file.
1161         * gnulib/import/m4/stat.m4: New file.
1162         * gnulib/import/readlink.c: New file.
1163         * gnulib/import/stat.c: New file.
1164
1165 2014-11-26  Mark Wielaard  <mjw@redhat.com>
1166
1167         * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
1168         DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
1169
1170 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
1171
1172         * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
1173         that there can be only one stack adjustment in the prologue
1174         with tests to detect specific disallowed stack adjustments.
1175
1176 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
1177
1178         * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
1179         adjustments.
1180
1181 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
1182
1183         * nios2-tdep.c (nios2_fetch_insn): Move up in file.  Disassemble
1184         the instruction as well as reading it from memory.
1185         (nios2_match_add): New.
1186         (nios2_match_sub): New.
1187         (nios2_match_addi): New.
1188         (nios2_match_orhi): New.
1189         (nios2_match_stw): New.
1190         (nios2_match_ldw): New.
1191         (nios2_match_rdctl): New.
1192         (enum branch_condition): New.
1193         (nios2_match_branch): New.
1194         (nios2_match_jmpi): New.
1195         (nios2_match_calli): New.
1196         (nios2_match_jmpr): New.
1197         (nios2_match_callr): New.
1198         (nios2_match_break): New.
1199         (nios2_match_trap): New.
1200         (nios2_in_epilogue_p): Rewrite to use new functions.
1201         (nios2_analyze_prologue): Likewise.
1202         (nios2_skip_prologue): Delete unused local limit_pc.
1203         (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
1204         (nios2_get_next_pc): Rewrite to use new functions.
1205
1206 2014-11-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
1207
1208         * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
1209
1210 2014-11-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1211
1212         Pushed by Joel Brobecker  <brobecker@adacore.com>
1213         * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
1214         elements pi_len by the size of the elements before calling
1215         vm_deallocate.
1216         (inf_validate_task_sc): Likewise, and properly deallocate the
1217         noise array.
1218
1219 2014-11-23  Doug Evans  <xdje42@gmail.com>
1220
1221         * gdbtypes.c (print_args): Renamed from print_arg_types.  Print arg
1222         number and name if present.  All callers updated.
1223         (dump_fn_fieldlists): Fix indentation of args.
1224
1225 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
1226
1227         * MAINTAINERS (Write After Approval): Add myself.
1228
1229 2014-11-23  Joel Brobecker  <brobecker@adacore.com>
1230
1231         * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
1232         to a bp_call_dummy breakpoint type.
1233
1234 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
1235
1236         * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
1237         registering the signal handler.
1238
1239 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
1240
1241         * event-top.h (call_stdin_event_handler_again_p): Declare.
1242         * event-top.c (call_stdin_event_handler_again_p): Define.
1243         (stdin_event_handler): Use it.
1244         * tui/tui-io.c (tui_getc): Prepare to call the stdin event
1245         handler again if there is pending input following a
1246         start sequence.
1247
1248 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
1249
1250         Pushed by Joel Brobecker  <brobecker@adacore.com>
1251         * linux-fork.c (checkpoint_command): Print index of new
1252         checkpoint in response message.
1253
1254 2014-11-23  Yao Qi  <yao@codesourcery.com>
1255
1256         * valprint.c (read_string): Move local variables 'found_nul',
1257         'chunksize' and 'limit' to inner scope.  Update comments.
1258
1259 2014-11-22  Doug Evans  <xdje42@gmail.com>
1260
1261         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
1262         function comment.
1263         (search_symbols): Fix comments and whitespace.
1264
1265 2014-11-22  Doug Evans  <xdje42@gmail.com>
1266
1267         * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
1268
1269 2014-11-21  Doug Evans  <dje@google.com>
1270
1271         * psymtab.c (psymtab_search_name): Fix whitespace.
1272
1273 2014-11-21  Yao Qi  <yao@codesourcery.com>
1274
1275         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1276         errno.
1277         * gnulib/import/Makefile.am: Re-generated.
1278         * gnulib/import/Makefile.in: Likewise.
1279         * gnulib/import/m4/gnulib-cache.m4: Likewise.
1280
1281 2014-11-21  Yao Qi  <yao@codesourcery.com>
1282
1283         * gdb_wchar.h: Include wchar.h and wctype.h.
1284         [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
1285         include wchar.h and wctype.h.
1286         Don't check HAVE_WCHAR_H.
1287
1288 2014-11-21  Yao Qi  <yao@codesourcery.com>
1289
1290         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
1291         and wctype-h.
1292         * gnulib/import/Makefile.am: Re-generated.
1293         * gnulib/import/Makefile.in: Likewise.
1294         * gnulib/import/m4/gnulib-cache.m4: Likewise.
1295
1296 2014-11-21  Yao Qi  <yao@codesourcery.com>
1297
1298         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
1299         memchr.
1300         * gnulib/import/Makefile.am: Re-generated.
1301         * gnulib/import/Makefile.in: Likewise.
1302         * gnulib/import/m4/gnulib-cache.m4: Likewise.
1303
1304 2014-11-21  Yao Qi  <yao@codesourcery.com>
1305
1306         * common/common-defs.h: Include alloca.h
1307         * configure.ac: Don't invoke AC_FUNC_ALLOCA.
1308         * configure: Re-generated.
1309         * defs.h: Remove code handling alloca.
1310         * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
1311         or not.
1312
1313 2014-11-21  Yao Qi  <yao@codesourcery.com>
1314
1315         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
1316         alloca.
1317         * gnulib/import/Makefile.am: Re-generated.
1318         * gnulib/import/Makefile.in: Likewise..
1319         * gnulib/import/m4/gnulib-cache.m4: Likewise.
1320
1321 2014-11-21  Yao Qi  <yao@codesourcery.com>
1322
1323         * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
1324         alphabetical order.
1325
1326 2014-11-21  Joel Brobecker  <brobecker@adacore.com>
1327
1328         * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
1329         flag_unsigned if HIGH_BOUND is constant and negative.
1330
1331 2014-11-20  Sergio Durigan Junior  <sergiodj@redhat.com>
1332
1333         PR breakpoints/10737
1334         * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
1335         modifier from "struct gdbarch" when compiling without Expat (XML)
1336         support.
1337         (get_syscall_by_number): Likewise.
1338         (get_syscall_by_name): Likewise.
1339         (get_syscall_names): Likewise.
1340
1341 2014-11-20  Sergio Durigan Junior  <sergiodj@redhat.com>
1342
1343         PR breakpoints/10737
1344         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
1345         set_xml_syscall_file_name to provide gdbarch.
1346         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1347         * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
1348         * breakpoint.c (print_it_catch_syscall): Adjust call to
1349         get_syscall_by_number to provide gdbarch.
1350         (print_one_catch_syscall): Likewise.
1351         (print_mention_catch_syscall): Likewise.
1352         (print_recreate_catch_syscall): Likewise.
1353         (catch_syscall_split_args): Adjust calls to get_syscall_by_number
1354         and get_syscall_by_name to provide gdbarch.
1355         (catch_syscall_completer): Adjust call to get_syscall_names to
1356         provide gdbarch.
1357         * gdbarch.c: Regenerate.
1358         * gdbarch.h: Likewise.
1359         * gdbarch.sh: Forward declare "struct syscalls_info".
1360         (xml_syscall_file): New variable.
1361         (syscalls_info): Likewise.
1362         * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
1363         set_xml_syscall_file_name to provide gdbarch.
1364         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1365         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1366         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1367         * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
1368         * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
1369         * xml-syscall.c: Include gdbarch.h.
1370         (set_xml_syscall_file_name): Accept gdbarch parameter.
1371         (get_syscall_by_number): Likewise.
1372         (get_syscall_by_name): Likewise.
1373         (get_syscall_names): Likewise.
1374         (my_gdb_datadir): Delete global variable.
1375         (struct syscalls_info) <my_gdb_datadir>: New variable.
1376         (struct syscalls_info) <sysinfo>: Rename variable to
1377         "syscalls_info".
1378         (sysinfo): Delete global variable.
1379         (have_initialized_sysinfo): Likewise.
1380         (xml_syscall_file): Likewise.
1381         (sysinfo_free_syscalls_desc): Rename to...
1382         (syscalls_info_free_syscalls_desc): ... this.
1383         (free_syscalls_info): Rename "sysinfo" to "syscalls_info".  Adjust
1384         code to the new layout of "struct syscalls_info".
1385         (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
1386         "syscalls_info".
1387         (syscall_create_syscall_desc): Likewise.
1388         (syscall_start_syscall): Likewise.
1389         (syscall_parse_xml): Likewise.
1390         (xml_init_syscalls_info): Likewise.  Drop "const" from return value.
1391         (init_sysinfo): Rename to...
1392         (init_syscalls_info): ...this.  Add gdbarch as a parameter.
1393         Adjust function to deal with gdbarch.
1394         (xml_get_syscall_number): Delete parameter sysinfo.  Accept
1395         gdbarch as a parameter.  Adjust code.
1396         (xml_get_syscall_name): Likewise.
1397         (xml_list_of_syscalls): Likewise.
1398         (set_xml_syscall_file_name): Accept gdbarch as parameter.
1399         (get_syscall_by_number): Likewise.
1400         (get_syscall_by_name): Likewise.
1401         (get_syscall_names): Likewise.
1402         * xml-syscall.h (set_xml_syscall_file_name): Likewise.
1403         (get_syscall_by_number): Likewise.
1404         (get_syscall_by_name): Likewise.
1405         (get_syscall_names): Likewise.
1406
1407 2014-11-20  Doug Evans  <xdje42@gmail.com>
1408
1409         Split struct symtab into two: struct symtab and compunit_symtab.
1410         * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
1411         * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
1412         to "struct compunit_symtab *".  All callers updated.
1413         (set_block_compunit_symtab): Renamed from set_block_symtab.  Change
1414         "struct symtab *" argument to "struct compunit_symtab *".
1415         All callers updated.
1416         (get_block_compunit_symtab): Renamed from get_block_symtab.  Change
1417         result to "struct compunit_symtab *".  All callers updated.
1418         (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
1419         Change result to "struct compunit_symtab *".  All callers updated.
1420         * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
1421         hange type to "struct compunit_symtab *".  All uses updated.
1422         (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
1423         Change type to "struct compunit_symtab *".  All uses updated.
1424         * buildsym.c (struct buildsym_compunit): New struct.
1425         (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
1426         (buildsym_compunit): New static global.
1427         (finish_block_internal): Update to fetch objfile from
1428         buildsym_compunit.
1429         (make_blockvector): Delete objfile argument.
1430         (start_subfile): Rewrite to use buildsym_compunit.  Don't initialize
1431         debugformat, producer.
1432         (start_buildsym_compunit): New function.
1433         (free_buildsym_compunit): Renamed from free_subfiles_list.
1434         All callers updated.
1435         (patch_subfile_names): Rewrite to use buildsym_compunit.
1436         (get_compunit_symtab): New function.
1437         (get_macro_table): Delete argument comp_dir.  All callers updated.
1438         (start_symtab): Change result to "struct compunit_symtab *".
1439         All callers updated.  Create the subfile of the main source file.
1440         (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
1441         (reset_symtab_globals): Update.
1442         (end_symtab_get_static_block): Update to use buildsym_compunit.
1443         (end_symtab_without_blockvector): Rewrite.
1444         (end_symtab_with_blockvector): Change result to
1445         "struct compunit_symtab *".  All callers updated.
1446         Update to use buildsym_compunit.  Don't set symtab->dirname,
1447         instead set it in the compunit.
1448         Explicitly make sure main symtab is first in its list.
1449         Set debugformat, producer, blockvector, block_line_section, and
1450         macrotable in the compunit.
1451         (end_symtab_from_static_block): Change result to
1452         "struct compunit_symtab *".  All callers updated.
1453         (end_symtab, end_expandable_symtab): Ditto.
1454         (set_missing_symtab): Change symtab argument to
1455         "struct compunit_symtab *".  All callers updated.
1456         (augment_type_symtab): Ditto.
1457         (record_debugformat): Update to use buildsym_compunit.
1458         (record_producer): Update to use buildsym_compunit.
1459         * buildsym.h (struct subfile) <dirname>: Delete.
1460         <producer, debugformat>: Delete.
1461         <buildsym_compunit>: New member.
1462         (get_compunit_symtab): Declare.
1463         * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
1464         from primary_symtab.  Change type to "struct compunit_symtab *".
1465         All uses updated.
1466         (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
1467         All callers updated.
1468         (dwarf_decode_macros): Delete comp_dir argument.  All callers updated.
1469         (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
1470         symtab.  Change type to "struct compunit_symtab *".  All uses updated.
1471         (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
1472         All callers updated.
1473         (dw2_find_last_source_symtab): Ditto.
1474         (dw2_lookup_symbol): Ditto.
1475         (recursively_find_pc_sect_compunit_symtab): Renamed from
1476         recursively_find_pc_sect_symtab.  Change result to
1477         "struct compunit_symtab *".  All callers updated.
1478         (dw2_find_pc_sect_compunit_symtab): Renamed from
1479         dw2_find_pc_sect_symtab.  Change result to
1480         "struct compunit_symtab *".  All callers updated.
1481         (get_compunit_symtab): Renamed from get_symtab.  Change result to
1482         "struct compunit_symtab *".  All callers updated.
1483         (recursively_compute_inclusions): Change type of immediate_parent
1484         argument to "struct compunit_symtab *".  All callers updated.
1485         (compute_compunit_symtab_includes): Renamed from
1486         compute_symtab_includes.  All callers updated.  Rewrite to compute
1487         includes of compunit_symtabs and not symtabs.
1488         (process_full_comp_unit): Update to work with struct compunit_symtab.
1489         (process_full_type_unit): Ditto.
1490         (dwarf_decode_lines_1): Delete argument comp_dir.  All callers updated.
1491         (dwarf_decode_lines): Remove special case handling of main subfile.
1492         (macro_start_file): Delete argument comp_dir.  All callers updated.
1493         (dwarf_decode_macro_bytes): Ditto.
1494         * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
1495         use struct compunit_symtab.
1496         * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
1497         * jit.c (finalize_symtab): Build compunit_symtab.
1498         * jv-lang.c (get_java_class_symtab): Change result to
1499         "struct compunit_symtab *".  All callers updated.
1500         * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
1501         * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
1502         comp_dir.  Change type to "struct compunit_symtab *".
1503         All uses updated.
1504         (new_macro_table): Change comp_dir argument to cust,
1505         "struct compunit_symtab *".  All callers updated.
1506         * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
1507         nr_primary_symtabs.  All uses updated.
1508         (count_symtabs_and_blocks): Update to handle compunits.
1509         (report_command_stats): Update output, "primary symtabs" renamed to
1510         "compunits".
1511         * mdebugread.c (new_symtab): Change result to
1512         "struct compunit_symtab *".  All callers updated.
1513         (parse_procedure): Change type of search_symtab argument to
1514         "struct compunit_symtab *".  All callers updated.
1515         * objfiles.c (objfile_relocate1): Loop over blockvectors in a
1516         separate loop.
1517         * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
1518         symtabs.  Change type to "struct compunit_symtab *".  All uses updated.
1519         (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
1520         All uses updated.
1521         (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
1522         All uses updated.
1523         (ALL_FILETABS): Renamed from ALL_SYMTABS.  All uses updated.
1524         (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS.  All uses updated.
1525         * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
1526         symtab.  Change type to "struct compunit_symtab *".  All uses updated.
1527         * psymtab.c (psymtab_to_symtab): Change result type to
1528         "struct compunit_symtab *".  All callers updated.
1529         (find_pc_sect_compunit_symtab_from_partial): Renamed from
1530         find_pc_sect_symtab_from_partial.  Change result type to
1531         "struct compunit_symtab *".  All callers updated.
1532         (lookup_symbol_aux_psymtabs): Change result type to
1533         "struct compunit_symtab *".  All callers updated.
1534         (find_last_source_symtab_from_partial): Ditto.
1535         * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
1536         * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
1537         and macro_table from compunit.
1538         * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
1539         type to "struct compunit_symtab *".  All callers updated.
1540         (debug_qf_lookup_symbol): Ditto.
1541         (debug_qf_find_pc_sect_compunit_symtab): Renamed from
1542         debug_qf_find_pc_sect_symtab, change result type to
1543         "struct compunit_symtab *".  All callers updated.
1544         * symfile.c (allocate_symtab): Delete objfile argument.
1545         New argument cust.
1546         (allocate_compunit_symtab): New function.
1547         (add_compunit_symtab_to_objfile): New function.
1548         * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
1549         Change result type to "struct compunit_symtab *".  All uses updated.
1550         <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
1551         Change result type to "struct compunit_symtab *".  All uses updated.
1552         * symmisc.c (print_objfile_statistics): Compute blockvector count in
1553         separate loop.
1554         (dump_symtab_1): Update test for primary source symtab.
1555         (maintenance_info_symtabs): Update to handle compunit symtabs.
1556         (maintenance_check_symtabs): Ditto.
1557         * symtab.c (set_primary_symtab): Delete.
1558         (compunit_primary_filetab): New function.
1559         (compunit_language): New function.
1560         (iterate_over_some_symtabs): Change type of arguments "first",
1561         "after_last" to "struct compunit_symtab *".  All callers updated.
1562         Update to loop over symtabs in each compunit.
1563         (error_in_psymtab_expansion): Rename symtab argument to cust,
1564         and change type to "struct compunit_symtab *".  All callers updated.
1565         (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
1566         Change result type to "struct compunit_symtab *".  All callers updated.
1567         (find_pc_compunit_symtab): Renamed from find_pc_symtab.
1568         Change result type to "struct compunit_symtab *".  All callers updated.
1569         (find_pc_sect_line): Only loop over symtabs within selected compunit
1570         instead of all symtabs in the objfile.
1571         * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
1572         <compunit_symtab> New member.
1573         <block_line_section>: Moved to compunit_symtab.
1574         <locations_valid>: Ditto.
1575         <epilogue_unwind_valid>: Ditto.
1576         <macro_table>: Ditto.
1577         <dirname>: Ditto.
1578         <debugformat>: Ditto.
1579         <producer>: Ditto.
1580         <objfile>: Ditto.
1581         <call_site_htab>: Ditto.
1582         <includes>: Ditto.
1583         <user>: Ditto.
1584         <primary>: Delete
1585         (SYMTAB_COMPUNIT): New macro.
1586         (SYMTAB_BLOCKVECTOR): Update definition.
1587         (SYMTAB_OBJFILE): Update definition.
1588         (SYMTAB_DIRNAME): Update definition.
1589         (struct compunit_symtab): New type.  Common members among all source
1590         symtabs within a compilation unit moved here.  All uses updated.
1591         (COMPUNIT_OBJFILE): New macro.
1592         (COMPUNIT_FILETABS): New macro.
1593         (COMPUNIT_DEBUGFORMAT): New macro.
1594         (COMPUNIT_PRODUCER): New macro.
1595         (COMPUNIT_DIRNAME): New macro.
1596         (COMPUNIT_BLOCKVECTOR): New macro.
1597         (COMPUNIT_BLOCK_LINE_SECTION): New macro.
1598         (COMPUNIT_LOCATIONS_VALID): New macro.
1599         (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
1600         (COMPUNIT_CALL_SITE_HTAB): New macro.
1601         (COMPUNIT_MACRO_TABLE): New macro.
1602         (ALL_COMPUNIT_FILETABS): New macro.
1603         (compunit_symtab_ptr): New typedef.
1604         (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
1605
1606 2014-11-20  Joel Brobecker  <brobecker@adacore.com>
1607
1608         * ada-lang.c (ada_is_redundant_range_encoding): Return 0
1609         if the TYPE_CODE of range_type's base type does not match
1610         the TYPE_CODE of encoding_type's base type.
1611
1612 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
1613
1614         * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
1615         it starts with '<'.
1616
1617 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
1618
1619         * ada-lang.c (ada_is_redundant_range_encoding): New function.
1620         (ada_is_redundant_index_type_desc): New function.
1621         (to_fixed_array_type): Ignore parallel XA type if redundant.
1622
1623 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
1624
1625         * ada-lang.c (constrained_packed_array_type): Set the length
1626         of the return array as if both bounds where zero if that
1627         returned array's index type is dynamic.
1628
1629 2014-11-19  Yao Qi  <yao@codesourcery.com>
1630
1631         * config/i386/go32.mh (CC): Remove.
1632
1633 2014-11-18  Doug Evans  <xdje42@gmail.com>
1634
1635         * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR.  All uses
1636         updated.
1637
1638 2014-11-18  Doug Evans  <xdje42@gmail.com>
1639
1640         * buildsym.c (buildsym_objfile): New static global.
1641         (buildsym_comp_dir): New static global.
1642         (finish_block_internal): Delete arg objfile.  All callers updated.
1643         (finish_block): Delete arg objfile.  All callers updated.
1644         (start_subfile): Delete arg dirname.  All callers updated.
1645         (patch_subfile_names): Update buildsym_comp_dir.
1646         (get_macro_table): Delete arg objfile.  All callers updated.
1647         (start_symtab): New arg objfile.  All callers updated.
1648         Rename arg dirname to comp_dir.
1649         (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
1650         (end_symtab_get_static_block): Delete arg objfile.  All callers
1651         updated.
1652         (end_symtab_without_blockvector): Ditto.
1653         (end_symtab_with_blockvector): Ditto.
1654         (end_symtab_from_static_block): Ditto.
1655         (end_symtab): Ditto.
1656         (end_expandable_symtab): Ditto.
1657         (augment_type_symtab): Ditto.
1658         * coffread.c (coff_start_symtab): New arg objfile.  All callers
1659         updated.
1660
1661 2014-11-18  Doug Evans  <xdje42@gmail.com>
1662
1663         * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE.  All uses
1664         updated.
1665
1666 2014-11-18  Doug Evans  <xdje42@gmail.com>
1667
1668         * symtab.h (SYMTAB_DIRNAME): New macro.  All uses of member
1669         symtab.dirname updated to use it.
1670
1671 2014-11-18  Doug Evans  <xdje42@gmail.com>
1672
1673         * symtab.h (SYMTAB_OBJFILE): New macro.  All uses of member
1674         symtab.objfile updated to use it.
1675
1676 2014-11-18  Doug Evans  <xdje42@gmail.com>
1677
1678         * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
1679
1680 2014-11-18  Doug Evans  <xdje42@gmail.com>
1681
1682         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
1683         SYMBOL_OBJFILE.
1684         * findvar.c (default_read_var_value): Ditto.
1685         * jv-lang.c (add_class_symtab_symbol): Ditto.
1686         * parse.c (operator_check_standard): Ditto.
1687         * printcmd.c (address_info): Ditto.
1688         * symtab.c (fixup_symbol_section): Ditto.
1689         (skip_prologue_sal): Ditto.
1690         * tracepoint.c (scope_info): Ditto.
1691         * valops.c (find_function_in_inferior): Ditto.
1692         * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
1693         * python/py-symbol.c (set_symbol): Ditto.
1694
1695 2014-11-18  Doug Evans  <xdje42@gmail.com>
1696
1697         * buildsym.c (main_subfile): New static global.
1698         (free_subfiles_list): New function.
1699         (start_symtab): Set main_subfile.
1700         (restart_symtab): Replace init of subfiles, current_subfile with
1701         call to free_subfiles_list.
1702         (watch_main_source_file_lossage): Use main_subfile.
1703         (reset_symtab_globals): Replace init of current_subfile with call
1704         to free_subfiles_list.
1705         (end_symtab_without_blockvector, end_symtab_with_blockvector): New
1706         functions, split out from ...
1707         (end_symtab_from_static_block): ... here.  Rewrite to call them.
1708
1709 2014-11-18  Doug Evans  <xdje42@gmail.com>
1710
1711         The result of symtab expansion is always a primary symtab.
1712         * dwarf2read.c (dw2_instantiate_symtab): Add assert.
1713         (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
1714         * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
1715         (psymtab_to_symtab): Add comment and assert.
1716         (map_matching_symbols_psymtab): Remove unnecessary test for
1717         non-primary symtab.
1718
1719 2014-11-15  Doug Evans  <xdje42@gmail.com>
1720
1721         PR symtab/17559
1722         * symtab.c (find_pc_line_symtab): New function.
1723         * symtab.h (find_pc_line_symtab): Declare.
1724         * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
1725         find_pc_symtab.
1726         * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
1727         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
1728         * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
1729         * tui/tui-win.c (make_visible_with_new_height): Ditto.
1730         * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
1731         (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
1732
1733 2014-11-15  Doug Evans  <xdje42@gmail.com>
1734
1735         * symtab.c (expand_symtab_containing_pc): Renamed from
1736         find_pc_sect_symtab_via_partial.  All callers updated.
1737
1738 2014-11-15  Yao Qi  <yao@codesourcery.com>
1739
1740         * go32-nat.c (go32_create_inferior): Add missing parenthesis.
1741
1742 2014-11-14  Joel Brobecker  <brobecker@adacore.com>
1743
1744         * common/common-defs.h: Move <stdarg.h> #include ahead of
1745         <stdio.h> #include.
1746
1747 2014-11-14  Pedro Alves  <palves@redhat.com>
1748
1749         * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
1750         [!PHONY_ICONV] (gdb_iconv): New function.
1751         [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
1752
1753 2014-11-13  Doug Evans  <dje@google.com>
1754
1755         PR symtab/17591
1756         * dwarf2read.c (find_slot_in_mapped_hash): Handle
1757         "(anonymous namespace)".
1758
1759 2014-11-13  Doug Evans  <dje@google.com>
1760
1761         * dwarf2read.c (update_enumeration_type_from_children): Avoid
1762         infinite loop.
1763
1764 2014-11-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
1765
1766         * NEWS (maint set target-async): Fix typo.
1767
1768 2014-11-12  Pedro Alves  <palves@redhat.com>
1769
1770         * infrun.c (enum infwait_states, infwait_state): Delete.
1771
1772 2014-11-12  Pedro Alves  <palves@redhat.com>
1773
1774         * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
1775         Rewrite stepping over a permanent breakpoint.
1776         (thread_still_needs_step_over, proceed): Don't set
1777         stepping_over_breakpoint for permanent breakpoints.
1778         (handle_signal_stop): Don't clear stepped_breakpoint.  Also pull
1779         single-step breakpoints out of the target on hardware step
1780         targets.
1781         (process_event_stop_test): If stepping a permanent breakpoint
1782         doesn't hit the step-resume breakpoint, delete the step-resume
1783         breakpoint.
1784         (switch_back_to_stepped_thread): Also check if the stepped thread
1785         has advanced already on hardware step targets.
1786         (currently_stepping): Return true if the thread stepped a
1787         breakpoint.
1788
1789 2014-11-12  Pedro Alves  <palves@redhat.com>
1790
1791         Mark locations as permanent, not the whole breakpoint.
1792         * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
1793         (mark_breakpoints_out): Don't mark permanent breakpoints as
1794         uninserted.
1795         (breakpoint_init_inferior): Use mark_breakpoints_out.
1796         (breakpoint_here_p): Adjust.
1797         (bpstat_stop_status, describe_other_breakpoints): Remove handling
1798         of permanent breakpoints.
1799         (make_breakpoint_permanent): Mark each location as permanent,
1800         instead of marking the breakpoint.
1801         (add_location_to_breakpoint): If the location is permanent, mark
1802         it as such, and as inserted.
1803         (init_breakpoint_sal): Don't make the breakpoint permanent here.
1804         (bp_location_compare, update_global_location_list): Adjust.
1805         (update_breakpoint_locations): Don't make the breakpoint permanent
1806         here.
1807         (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1808         breakpoints.
1809         * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1810         (struct bp_location) <permanent>: New field.
1811         * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1812         reference to bp_permanent.
1813
1814 2014-11-12  Pedro Alves  <palves@redhat.com>
1815
1816         * arch-utils.c (default_skip_permanent_breakpoint): New function.
1817         * arch-utils.h (default_skip_permanent_breakpoint): New
1818         declaration.
1819         * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1820         Install default_skip_permanent_breakpoint as default method.
1821         * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1822         (i386_gdbarch_init): Don't install it.
1823         * infrun.c (resume): Assume there's always a
1824         gdbarch_skip_permanent_breakpoint implementation.
1825         * gdbarch.h, gdbarch.c: Regenerate.
1826
1827 2014-11-11  Daniel Colascione  <dancol@dancol.org>
1828
1829         Warn about cross-PID-namespace debugging.
1830         * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1831         * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1832         * linux-thread-db.c (check_pid_namespace_match): New function.
1833         (thread_db_inferior_created): Call it.
1834
1835 2014-11-10  Doug Evans  <xdje42@gmail.com>
1836
1837         * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1838         (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1839
1840 2014-11-10  Doug Evans  <xdje42@gmail.com>
1841
1842         * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1843
1844 2014-11-10  Doug Evans  <xdje42@gmail.com>
1845
1846         PR symtab/17564
1847         * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1848         (lookup_static_symbol): Move definition to new location and rewrite.
1849         (lookup_symbol_in_objfile): New function.
1850         (lookup_symbol_global_iterator_cb): Call it.
1851
1852 2014-11-10  Ulrich Weigand  <uweigand@de.ibm.com>
1853
1854         * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1855
1856 2014-11-07  Pedro Alves  <palves@redhat.com>
1857
1858         * infrun.c (process_event_stop_test) <subroutine check>: Don't
1859         check if we did a "nexti" inside a prologue.
1860         * symtab.c (in_prologue): Delete function.
1861         * symtab.h (in_prologue): Delete declaration.
1862
1863 2014-11-06  Doug Evans  <xdje42@gmail.com>
1864
1865         * symtab.h (lookup_global_symbol): Improve function comment.
1866
1867 2014-11-06  Doug Evans  <xdje42@gmail.com>
1868
1869         * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1870         All callers updated.
1871         * symtab.h (lookup_global_symbol): Update decl.
1872         (lookup_static_symbol): Move decl to better location.
1873
1874 2014-11-06  Doug Evans  <xdje42@gmail.com>
1875
1876         * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1877
1878 2014-11-06  Doug Evans  <xdje42@gmail.com>
1879
1880         * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1881         All callers updated.
1882         (lookup_symbol_in_all_objfiles): Renamed from
1883         lookup_symbol_aux_symtabs.  All callers updated.
1884         (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1885         All callers updated.
1886         (lookup_symbol_in_objfile_symtabs): Renamed from
1887         lookup_symbol_aux_objfile.  All callers updated.
1888
1889 2014-11-06  Doug Evans  <xdje42@gmail.com>
1890
1891         * symtab.c (lookup_symbol_in_block): Renamed from
1892         lookup_symbol_aux_block.  All callers updated.
1893
1894 2014-11-06  Doug Evans  <xdje42@gmail.com>
1895
1896         * symtab.c (lookup_static_symbol): Renamed from
1897         lookup_static_symbol_aux.  All callers updated.
1898         (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1899         All callers updated.
1900
1901 2014-11-06  Doug Evans  <xdje42@gmail.com>
1902
1903         * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1904         * block.c (block_lookup_symbol): Use it.
1905         * cp-support.c (make_symbol_overload_list_block): Use it.
1906         * symtab.c (iterate_over_symbols): Use it.
1907
1908 2014-11-06  Doug Evans  <xdje42@gmail.com>
1909
1910         * symtab.c (lookup_block_symbol): Moved to ...
1911         * block.c (block_lookup_symbol):  ... here and renamed.
1912         All callers updated.
1913         * block.h (block_lookup_symbol): Declare.
1914         * symtab.h (lookup_block_symbol): Delete.
1915
1916 2014-11-06  Doug Evans  <xdje42@gmail.com>
1917
1918         * ada-lang.c (ada_make_symbol_completion_list): Use
1919         ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1920         * symtab.c (lookup_objfile_from_block): Ditto.
1921
1922 2014-11-06  Doug Evans  <xdje42@gmail.com>
1923
1924         * gdbtypes.h (TYPE_CODE_CLASS): Delete.  All uses changed to use
1925         TYPE_CODE_STRUCT.
1926
1927 2014-11-06  Doug Evans  <xdje42@gmail.com>
1928
1929         * objfiles.c (get_objfile_arch): Constify.
1930         * objfiles.h (get_objfile_arch): Update prototype.
1931         * solib.c (solib_global_lookup): Fetch arch from objfile,
1932         not target_gdbarch.
1933
1934 2014-11-06  Sandra Loosemore  <sandra@codesourcery.com>
1935
1936         * nios2-tdep.c (wild_insn): Delete.
1937         (profiler_insn, irqentry_insn): Delete.
1938         (nios2_match_sequence): Delete.
1939         (nios2_analyze_prologue): Update comments.  Remove matching
1940         of obsolete profiler_insn and irqentry_insn sequences.
1941
1942 2014-11-05  Alan Modra  <amodra@gmail.com>
1943
1944         * charset.c (convert_between_encodings): Shrink obstack using
1945         obstack_blank_fast.
1946         * minsyms.c (install_minimal_symbols): Likewise.
1947         * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1948         to char* before doing pointer arithmetic.
1949
1950 2014-11-04  Simon Marchi  <simon.marchi@ericsson.com>
1951
1952         * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1953
1954 2014-11-04  Pedro Alves  <palves@redhat.com>
1955
1956         * breakpoint.c (breakpoint_thread_match): Delete function.
1957         * breakpoint.h (breakpoint_thread_match): Delete declaration.
1958
1959 2014-11-03  Siva Chandra Reddy  <sivachandra@google.com>
1960
1961         PR c++/17494
1962         * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1963         the method args also under EVAL_SKIP when evaluating method
1964         calls under EVAL_SKIP.
1965
1966 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
1967
1968         * dwarf2loc.c (read_pieced_value): Do big endian
1969         processing only if gdb_regnum is not -1.
1970         (write_pieced_value): Ditto.
1971
1972 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
1973
1974         * arm-linux-tdep.c (arm_linux_init_abi): Use
1975         info.byte_order_for_code to choose endianity of breakpoint
1976         instructions snippets.
1977
1978 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
1979
1980         * arm-tdep.c (extract_arm_insn): Use
1981         gdbarch_byte_order_for_code to read arm instruction.
1982
1983 2014-11-02  Doug Evans  <xdje42@gmail.com>
1984
1985         * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1986
1987 2014-11-02  Doug Evans  <xdje42@gmail.com>
1988
1989         * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1990         main_subfile before returning.
1991
1992 2014-10-31  Doug Evans  <xdje42@gmail.com>
1993
1994         * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1995         (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1996
1997 2014-10-31  Doug Evans  <xdje42@gmail.com>
1998
1999         * valops.c (value_cast_pointers): Fix whitespace.
2000         (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
2001         Ditto.
2002
2003 2014-10-30  Doug Evans  <dje@google.com>
2004
2005         * NEWS: Mention ability add attributes to gdb.Objfile and
2006         gdb.Progspace objects.
2007         * python/py-objfile.c (objfile_object): New member dict.
2008         (objfpy_dealloc): Py_XDECREF dict.
2009         (objfpy_initialize): Initialize dict.
2010         (objfile_getset): Add __dict__.
2011         (objfile_object_type): Set tp_dictoffset member.
2012         * python/py-progspace.c (progspace_object): New member dict.
2013         (pspy_dealloc): Py_XDECREF dict.
2014         (pspy_initialize): Initialize dict.
2015         (pspace_getset): Add __dict__.
2016         (pspace_object_type): Set tp_dictoffset member.
2017
2018 2014-10-30  Yao Qi  <yao@codesourcery.com>
2019
2020         * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
2021         replace '\\' with '\\\\'.
2022
2023 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
2024
2025         GDB 7.8.1 released.
2026
2027 2014-10-29  Pedro Alves  <palves@redhat.com>
2028
2029         PR gdb/17408
2030         * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
2031         instead of assuming a thread with a stepping range is always
2032         stepping.
2033
2034 2014-10-29  Pedro Alves  <palves@redhat.com>
2035
2036         PR python/17372
2037         * event-top.c (change_line_handler): Call
2038         gdb_rl_callback_handler_remove instead of
2039         rl_callback_handler_remove.
2040         (callback_handler_installed): New global.
2041         (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
2042         (gdb_rl_callback_handler_reinstall): New functions.
2043         (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
2044         gdb_rl_callback_handler_install instead of
2045         rl_callback_handler_remove and rl_callback_handler_install.
2046         (gdb_disable_readline): Call gdb_rl_callback_handler_remove
2047         instead of rl_callback_handler_remove.
2048         * event-top.h (gdb_rl_callback_handler_remove)
2049         (gdb_rl_callback_handler_install)
2050         (gdb_rl_callback_handler_reinstall): New declarations.
2051         * infrun.c (reinstall_readline_callback_handler_cleanup): New
2052         cleanup function.
2053         (fetch_inferior_event): Install it.
2054         * top.c (gdb_readline_wrapper_line) Call
2055         gdb_rl_callback_handler_remove instead of
2056         rl_callback_handler_remove.
2057         (gdb_readline_wrapper_cleanup): Don't call
2058         rl_callback_handler_install.
2059
2060 2014-10-29  Pedro Alves  <palves@redhat.com>
2061
2062         * event-top.c (command_line_handler): Clear the first byte of
2063         linebuffer, when it is first allocated.
2064
2065 2014-10-29  Pedro Alves  <palves@redhat.com>
2066
2067         * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
2068         TRY_CATCH.
2069
2070 2014-10-29  Pedro Alves  <palves@redhat.com>
2071
2072         PR tui/16138
2073         PR tui/17519
2074         * tui/tui-interp.c (tui_is_toplevel): Delete global.
2075         (tui_allowed_p): Delete function.
2076         * tui/tui.c: Include "interps.h".
2077         (tui_enable): Don't use tui_allowed_p.  Error out here with
2078         detailed error messages if the TUI is the top level interpreter,
2079         or if output is not a terminal.  Use newterm instead of initscr,
2080         and error out if initializing the terminal fails.  Also error out if
2081         the terminal doesn't support cursor addressing.
2082         * tui/tui.h (tui_allowed_p): Delete declaration.
2083
2084 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
2085
2086         * arm-tdep.c (arm_skip_stack_protector): Return early if
2087         address loaded by first "ldr" instruction does not have
2088         a corresponding minimal symbol.  Update comment.
2089
2090 2014-10-29  Yao Qi  <yao@codesourcery.com>
2091
2092         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
2093         loaded address correctly of ldr instruction.
2094
2095 2014-10-28  Pedro Alves  <palves@redhat.com>
2096
2097         PR gdb/12623
2098         * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
2099         field.
2100         * infrun.c (resume) <stepping breakpoint instruction>: Set the
2101         thread's stepped_breakpoint field.  Skip if reverse debugging.
2102         Add comment.
2103         (init_thread_stepping_state, handle_signal_stop): Clear the
2104         thread's stepped_breakpoint field.
2105
2106 2014-10-27  Pedro Alves  <palves@redhat.com>
2107
2108         * remote.c (remote_thread_alive): New, factored out from ...
2109         (remote_thread_alive): ... this.
2110         (remote_update_thread_list): Bail out before deleting threads if
2111         the target returned an empty list, and, the current thread has a
2112         magic/fake ptid.
2113
2114 2014-10-27  Pedro Alves  <palves@redhat.com>
2115
2116         * infrun.c (handle_signal_stop): Also skip handlers when a random
2117         signal arrives while handling a "stepi" or a "nexti".  Set the
2118         thread's 'step_after_step_resume_breakpoint' flag.
2119
2120 2014-10-27  Luis Machado  <lgustavo@codesourcery.com>
2121
2122         * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
2123         (arm_record_ld_st_imm_offset): Reimplement to cover all
2124         load/store cases for ARM opcode 010.
2125         (arm_record_ld_st_multiple): Reimplement to cover all
2126         load/store cases for ARM opcode 100.
2127
2128 2014-10-26  Doug Evans  <xdje42@gmail.com>
2129
2130         * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
2131
2132 2014-10-26  Doug Evans  <xdje42@gmail.com>
2133
2134         * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
2135         parameter "kind" to "block_index".
2136         * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
2137         "block_index".
2138         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
2139
2140 2014-10-26  Doug Evans  <xdje42@gmail.com>
2141
2142         * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
2143
2144 2014-10-26  Doug Evans  <xdje42@gmail.com>
2145
2146         * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
2147         obstack_alloc.
2148
2149 2014-10-26  Doug Evans  <xdje42@gmail.com>
2150
2151         * parser-defs.h (block_found): Move decl from here ...
2152         * symtab.h (block_found): ... to here.
2153
2154 2014-10-26  Doug Evans  <xdje42@gmail.com>
2155
2156         * symtab.h (struct field_of_this_result): Fix typo in comment.
2157         (lookup_symbol_in_language): Move function comment here.
2158         (lookup_symbol): Improve function comment.
2159         (basic_lookup_symbol_nonlocal): Ditto.
2160         (lookup_symbol_static, lookup_symbol_global): Ditto.
2161         (lookup_symbol_aux_block): Ditto.
2162         (lookup_language_this): Add function comment.
2163         (lookup_static_symbol_aux): Explicitly mark as extern.  Improve
2164         function comment.
2165         (lookup_block_symbol): Improve function comment.
2166         (lookup_struct): Fix capitalization in function comment.
2167         (lookup_transparent_type): Add function comment.
2168         (lookup_global_symbol_from_objfile): Explicitly mark as extern.
2169         Improve function comment.
2170         (lookup_objfile_from_block): Add function comment.
2171         * symtab.c (lookup_symbol_in_language): Update function comment.
2172         (lookup_symbol, lookup_language_this): Ditto.
2173         (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
2174         (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
2175         (basic_lookup_symbol_nonlocal): Ditto.
2176         (lookup_symbol_static, lookup_symbol_global): Ditto.
2177         (lookup_transparent_type, lookup_block_symbol): Ditto.
2178
2179 2014-10-25  Doug Evans  <xdje42@gmail.com>
2180
2181         * symtab.c (types_info): Delete forward decl.
2182         (functions_info, variables_info, sources_info): Ditto.
2183         (_initialize_symtab): Rewrite forward decl to use
2184         initialize_file_ftype.
2185
2186 2014-10-25  Doug Evans  <xdje42@gmail.com>
2187
2188         * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
2189
2190 2014-10-25  Doug Evans  <xdje42@gmail.com>
2191
2192         * dwarf2read.c (process_structure_scope): Remove second (nested) copy
2193         of local var child_die.
2194
2195 2014-10-24  Don Breazeal  <donb@codesourcery.com>
2196
2197         * infrun.c (follow_fork_inferior): Update fork message printing
2198         to use target_terminal_ours_for_output instead of
2199         target_terminal_ours, to use _() for all format strings, to print
2200         "vfork" instead of "fork" for vforks, and to add a detach message.
2201         (handle_vfork_child_exec_or_exit): Update message printing to use
2202         target_terminal_ours_for_output instead of target_terminal_ours, to
2203         use _() for all format strings, and to fix some formatting.
2204
2205 2014-10-24  Pedro Alves  <palves@redhat.com>
2206
2207         * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
2208         * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
2209         * config/vax/vax.mh: Delete.
2210         * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
2211         obsolete configurations section.
2212         * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
2213         * vax-nat.c: Delete file.
2214
2215 2014-10-24  Pedro Alves  <palves@redhat.com>
2216
2217         * NEWS (Removed targets): Add OS/arch column.
2218
2219 2014-10-24  Siva Chandra Reddy  <sivachandra@google.com>
2220
2221         * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
2222         on the arg type of a constructor only if it is of reference type.
2223
2224 2014-10-23  Sandra Loosemore  <sandra@codesourcery.com>
2225
2226         * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
2227         accessors and constants from nios2 opcodes update.
2228         (nios2_get_next_pc): Likewise.
2229
2230 2014-10-19  Doug Evans  <xdje42@gmail.com>
2231
2232         * gdbthread.h (set_running): Fix comment.
2233         (set_executing, finish_thread_state): Fix comment.
2234
2235 2014-10-18  Doug Evans  <xdje42@gmail.com>
2236
2237         * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
2238
2239 2014-10-17  Doug Evans  <dje@google.com>
2240
2241         * NEWS: Mention new event gdb.clear_objfiles.
2242         * python/py-event.h (emit_clear_objfiles_event): Clear
2243         * python/py-events.h (events_object): New member clear_objfiles.
2244         * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
2245         event.
2246         * python/py-inferior.c (python_new_objfile): If objfile is NULL,
2247         emit clear_objfiles event.
2248         * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
2249         function.
2250         (emit_clear_objfiles_event): New function.
2251         (clear_objfiles): New event.
2252         * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
2253         Declare.
2254         * python/python.c (_initialize_python): Call
2255         gdbpy_initialize_clear_objfiles_event.
2256
2257 2014-10-17  Doug Evans  <dje@google.com>
2258
2259         * NEWS: Mention new gdb.Objfile.progspace attribute.
2260         * python/py-objfile.c (objfpy_get_progspace): New function.
2261         (objfile_getset): New entry for "progspace".
2262
2263 2014-10-17  Pedro Alves  <palves@redhat.com>
2264
2265         PR gdb/17471
2266         * infcmd.c (strip_bg_char): Change prototype and rewrite.  Now
2267         returns a copy of the input.
2268         (run_command_1, continue_command, step_1, jump_command)
2269         (signal_command, until_command, advance_command, finish_command)
2270         (attach_command): Adjust and install a cleanup to free the
2271         stripped args.
2272
2273 2014-10-17  Pedro Alves  <palves@redhat.com>
2274
2275         PR gdb/17300
2276         * infcmd.c (continue_1): If continuing all threads in the
2277         foreground, make sure the inferior's terminal settings are put in
2278         effect.
2279
2280 2014-10-17  Pedro Alves  <palves@redhat.com>
2281
2282         PR gdb/17472
2283         * annotate.c (annotate_breakpoints_invalid): Use
2284         target_terminal_our_for_output instead of target_terminal_ours.
2285         Give back the terminal to the target.
2286         (annotate_frames_invalid): Likewise.
2287
2288 2014-10-17  Pedro Alves  <palves@redhat.com>
2289
2290         * target.c (enum terminal_state): New enum.
2291         (terminal_state): New global.
2292         (target_terminal_init): New function.
2293         (target_terminal_inferior): Skip if inferior already owns the
2294         terminal.
2295         (target_terminal_ours, target_terminal_ours_for_output): New
2296         functions.
2297         * target.h (target_terminal_init): Convert to function prototype.
2298         (target_terminal_ours_for_output): Convert to function prototype
2299         and tweak comment.
2300         (target_terminal_ours): Convert to function prototype and tweak
2301         comment.
2302         * windows-nat.c (do_initial_windows_stuff): Call
2303         target_terminal_init instead of child_terminal_init_with_pgrp.
2304
2305 2014-10-17  Pedro Alves  <palves@redhat.com>
2306
2307         * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
2308         (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
2309         (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
2310         solib-osf.c.
2311         * NEWS: Mention that support for alpha*-*-osf* has been removed.
2312         * ada-lang.h [__alpha__ && __osf__]
2313         (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
2314         * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
2315         * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
2316         GDB_OSABI_OSF1.
2317         * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
2318         files.
2319         * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
2320         (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
2321         * configure: Regenerate.
2322         * configure.ac: Remove references to osf.
2323         * configure.host: Handle alpha*-*-osf* in the obsolete hosts
2324         section.  Remove all other references to osf.
2325         * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
2326         Remove all other references to osf.
2327         * dec-thread.c: Delete file.
2328         * defs.h (GDB_OSABI_OSF1): Delete.
2329         * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
2330         defined.
2331         * osabi.c (gdb_osabi_names): Delete "OSF/1".
2332         * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
2333         Delete code.
2334         (unconditionally_kill_inferior)
2335         [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
2336         * solib-osf.c: Delete file.
2337
2338 2014-10-17  Pedro Alves  <palves@redhat.com>
2339
2340         * remote.c (clear_threads_listing_context): Move higher up, out of
2341         the HAVE_LIBEXPAT guard.
2342
2343 2014-10-16  Tristan Gingold  <gingold@adacore.com>
2344
2345         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
2346         (i386_darwin_store_inferior_registers): Sanitize gs and fs values
2347         on amd64.
2348
2349 2014-10-15  Pedro Alves  <palves@redhat.com>
2350
2351         * dec-thread.c (dec_thread_count_gdb_threads)
2352         (dec_thread_add_gdb_thread): Delete.
2353         (dec_thread_update_thread_list): Delete.
2354         (dec_thread_find_new_threads): Rename to ...
2355         (dec_thread_update_thread_list): ... this.  Delete GDB-size
2356         threads that are no longer found in dec_thread_list.
2357         (resync_thread_list): Delete.
2358         (dec_thread_wait): Call dec_thread_update_thread_list instead of
2359         resync_thread_list.
2360
2361 2014-10-15  Pedro Alves  <palves@redhat.com>
2362
2363         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
2364         * remote.c (remote_update_thread_list): Skip calling prune_threads
2365         if any thread listing method is supported, and instead walk over
2366         the set of remote threads listed, deleting those that are not
2367         found in GDB's thread list.
2368
2369 2014-10-15  Pedro Alves  <palves@redhat.com>
2370
2371         * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
2372         * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
2373         (bsd_uthread_update_thread_list): ... this.  Call prune_threads.
2374         (bsd_uthread_target): Adjust.
2375         * corelow.c (core_open): Adjust.
2376         * dec-thread.c (dec_thread_find_new_threads): Update comment.
2377         (dec_thread_update_thread_list): New function.
2378         (init_dec_thread_ops): Adjust.
2379         * gdbthread.h (prune_threads): New declaration.
2380         * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
2381         (thread_db_update_thread_list): ... this.  Call prune_threads.
2382         (init_thread_db_ops): Adjust.
2383         * nto-procfs.c (procfs_find_new_threads): Rename to ...
2384         (procfs_update_thread_list): ... this.  Call prune_threads.
2385         (procfs_attach, procfs_create_inferior, init_procfs_targets):
2386         Adjust.
2387         * obsd-nat.c (obsd_find_new_threads): Rename to ...
2388         (obsd_update_thread_list): ... this.  Call prune_threads.
2389         (obsd_add_target): Adjust.
2390         * procfs.c (procfs_target): Adjust.
2391         (procfs_notice_thread): Update comment.
2392         (procfs_find_new_threads): Rename to ...
2393         (procfs_update_thread_list): ... this.  Call prune_threads.
2394         * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
2395         comment.
2396         (ravenscar_wait): Adjust.
2397         (ravenscar_find_new_threads): Rename to ...
2398         (ravenscar_update_thread_list): ... this.  Call prune_threads.
2399         (init_ravenscar_thread_ops): Adjust.
2400         * record-btrace.c (record_btrace_find_new_threads): Rename to ...
2401         (record_btrace_update_thread_list): ... this.  Adjust comment.
2402         (init_record_btrace_ops): Adjust.
2403         * remote.c (remote_threads_info): Rename to ...
2404         (remote_update_thread_list): ... this.  Call prune_threads.
2405         (remote_start_remote, extended_remote_attach_1, init_remote_ops):
2406         Adjust.
2407         * sol-thread.c (check_for_thread_db): Adjust.
2408         (sol_find_new_threads_callback): Rename to ...
2409         (sol_update_thread_list_callback): ... this.
2410         (sol_find_new_threads): Rename to ...
2411         (sol_update_thread_list): ... this.  Call prune_threads.  Adjust.
2412         (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
2413         * target-delegates.c: Regenerate.
2414         * target.c (target_find_new_threads): Rename to ...
2415         (target_update_thread_list): ... this.
2416         * target.h (struct target_ops): Rename to_find_new_threads field
2417         to to_update_thread_list.
2418         (target_find_new_threads): Rename to ...
2419         (target_update_thread_list): ... this.
2420         * thread.c (prune_threads): Make extern.
2421         (update_thread_list): Adjust.
2422
2423 2014-10-15  Pedro Alves  <palves@redhat.com>
2424
2425         * remote.c (remote_get_threadlist, remote_threadlist_iterator):
2426         Add describing comment.  Return -1 if the qL packet is not
2427         supported.
2428         (struct thread_item, thread_item_t): Move higher up in
2429         the file.  Add comments.
2430         (struct threads_parsing_context): Move higher up in
2431         the file, add comments, and remote to ...
2432         (struct threads_listing_context): ... this.
2433         (remote_newthread_step): Don't add the thread to GDB's thread
2434         database here.  Instead push it to the thread_listing_context
2435         list.
2436         (remote_find_new_threads): Rename to ...
2437         (remote_get_threads_with_ql): ... this.  Add target_ops and
2438         targets_listing_context parameters.  Pass down context.
2439         (start_thread): Adjust.
2440         (clear_threads_parsing_context): Rename to ...
2441         (clear_threads_listing_context): ... this.
2442         (remote_get_threads_with_qxfer): New, with parts salvaged from old
2443         remote_threads_info.
2444         (remote_get_threads_with_qthreadinfo): Ditto.
2445         (remote_threads_info): Reimplement.
2446
2447 2014-10-15  Pedro Alves  <palves@redhat.com>
2448
2449         * infrun.c (resume): Don't force displaced-stepping for all
2450         single-steps on software single-stepping archs.
2451
2452 2014-10-15  Pedro Alves  <palves@redhat.com>
2453
2454         * breakpoint.c (single_step_breakpoints): Delete global.
2455         (insert_single_step_breakpoint): Adjust to store the breakpoint
2456         pointer in the current thread.
2457         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2458         (cancel_single_step_breakpoints): Delete functions.
2459         (breakpoint_has_location_inserted_here): Make extern.
2460         (single_step_breakpoint_inserted_here_p): Adjust to walk the
2461         breakpoint list.
2462         * breakpoint.h (breakpoint_has_location_inserted_here): New
2463         declaration.
2464         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
2465         (cancel_single_step_breakpoints): Remove declarations.
2466         * gdbthread.h (struct thread_control_state)
2467         <single_step_breakpoints>: New field.
2468         (delete_single_step_breakpoints)
2469         (thread_has_single_step_breakpoints_set)
2470         (thread_has_single_step_breakpoint_here): New declarations.
2471         * infrun.c (follow_exec): Also clear the single-step breakpoints.
2472         (singlestep_breakpoints_inserted_p, singlestep_ptid)
2473         (singlestep_pc): Delete globals.
2474         (infrun_thread_ptid_changed): Remove references to removed
2475         globals.
2476         (resume_cleanups): Delete the current thread's single-step
2477         breakpoints.
2478         (maybe_software_singlestep): Remove references to removed globals.
2479         (resume): Adjust to use thread_has_single_step_breakpoints_set and
2480         delete_single_step_breakpoints.
2481         (init_wait_for_inferior): Remove references to removed globals.
2482         (delete_thread_infrun_breakpoints): Delete the thread's
2483         single-step breakpoints too.
2484         (delete_just_stopped_threads_infrun_breakpoints): Don't delete
2485         single-step breakpoints here.
2486         (delete_stopped_threads_single_step_breakpoints): New function.
2487         (adjust_pc_after_break): Adjust to use
2488         thread_has_single_step_breakpoints_set.
2489         (handle_inferior_event): Remove references to removed globals.
2490         Use delete_stopped_threads_single_step_breakpoints.
2491         (handle_signal_stop): Adjust to per-thread single-step
2492         breakpoints.  Swap test order to do cheaper tests first.
2493         (switch_back_to_stepped_thread): Extend debug output.  Remove
2494         references to removed globals.
2495         * record-full.c (record_full_wait_1): Adjust to per-thread
2496         single-step breakpoints.
2497         * thread.c (delete_single_step_breakpoints)
2498         (thread_has_single_step_breakpoints_set)
2499         (thread_has_single_step_breakpoint_here): New functions.
2500         (clear_thread_inferior_resources): Also delete the thread's
2501         single-step breakpoints.
2502
2503 2014-10-15  Pedro Alves  <palves@redhat.com>
2504
2505         * thread.c (delete_thread_breakpoint): New function.
2506         (delete_step_resume_breakpoint)
2507         (delete_exception_resume_breakpoint): Use it.
2508         (delete_at_next_stop): New function.
2509         (clear_thread_inferior_resources): Use delete_at_next_stop.
2510
2511 2014-10-15  Pedro Alves  <palves@redhat.com>
2512
2513         * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
2514         (breakpoint_inserted_here_p): ... here.  Remove special case for
2515         software single-step breakpoints.
2516         (find_non_raw_software_breakpoint_inserted_here): Inline ...
2517         (software_breakpoint_inserted_here_p): ... here.  Remove special
2518         case for software single-step breakpoints.
2519         (bp_target_info_copy_insertion_state)
2520         (deprecated_insert_raw_breakpoint)
2521         (deprecated_remove_raw_breakpoint): Delete functions.
2522         * breakpoint.h (deprecated_insert_raw_breakpoint)
2523         (deprecated_remove_raw_breakpoint): Remove declarations.
2524
2525 2014-10-15  Pedro Alves  <palves@redhat.com>
2526
2527         PR breakpoints/9649
2528         * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
2529         Delete array globals.
2530         (single_step_breakpoints): New global.
2531         (breakpoint_xfer_memory): Remove special handling for single-step
2532         breakpoints.
2533         (update_breakpoints_after_exec): Delete bp_single_step
2534         breakpoints.
2535         (detach_breakpoints): Remove special handling for single-step
2536         breakpoints.
2537         (breakpoint_init_inferior): Delete bp_single_step breakpoints.
2538         (bpstat_stop_status): Add comment.
2539         (bpstat_what, bptype_string, print_one_breakpoint_location)
2540         (adjust_breakpoint_address, init_bp_location): Handle
2541         bp_single_step.
2542         (new_single_step_breakpoint): New function.
2543         (set_momentary_breakpoint, bkpt_remove_location): Remove special
2544         handling for single-step breakpoints.
2545         (insert_single_step_breakpoint, single_step_breakpoints_inserted)
2546         (remove_single_step_breakpoints, cancel_single_step_breakpoints):
2547         Rewrite.
2548         (detach_single_step_breakpoints, find_single_step_breakpoint):
2549         Delete functions.
2550         (breakpoint_has_location_inserted_here): New function.
2551         (single_step_breakpoint_inserted_here_p): Rewrite.
2552         * breakpoint.h: Remove FIXME.
2553         (enum bptype) <bp_single_step>: New enum value.
2554         (insert_single_step_breakpoint): Update comment.
2555         * infrun.c (resume_cleanups)
2556         (delete_step_thread_step_resume_breakpoint): Remove single-step
2557         breakpoints.
2558         (fetch_inferior_event): Install a cleanup that removes infrun
2559         breakpoints.
2560         (switch_back_to_stepped_thread) <expect thread advanced also>:
2561         Clear step-over info.
2562
2563 2014-10-15  Pedro Alves  <palves@redhat.com>
2564
2565         * infrun.c (delete_step_resume_breakpoint_callback): Delete.
2566         (delete_thread_infrun_breakpoints): New function, with parts
2567         salvaged from delete_step_resume_breakpoint_callback.
2568         (delete_step_thread_step_resume_breakpoint): Delete.
2569         (for_each_just_stopped_thread_callback_func): New typedef.
2570         (for_each_just_stopped_thread): New function.
2571         (delete_just_stopped_threads_infrun_breakpoints): New function.
2572         (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
2573         (delete_just_stopped_threads_infrun_breakpoints_cleanup):
2574         ... this.  Adjust.
2575         (wait_for_inferior, fetch_inferior_event): Adjust to renames.
2576
2577 2014-10-15  Pedro Alves  <palves@redhat.com>
2578
2579         * breakpoint.c (should_be_inserted): Don't insert watchpoints if
2580         trying to step past a non-steppable watchpoint.
2581         * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
2582         field.
2583         * infrun.c (struct step_over_info): Add new field
2584         'nonsteppable_watchpoint_p' and adjust comments.
2585         (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
2586         Adjust.
2587         (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
2588         (stepping_past_nonsteppable_watchpoint): New function.
2589         (step_over_info_valid_p): Also return true if stepping past a
2590         nonsteppable watchpoint.
2591         (proceed): Adjust call to set_step_over_info.  Remove reference to
2592         init_infwait_state.
2593         (init_wait_for_inferior): Remove reference to init_infwait_state.
2594         (waiton_ptid): Delete global.
2595         (struct execution_control_state)
2596         <stepped_after_stopped_by_watchpoint>: Delete field.
2597         (wait_for_inferior, fetch_inferior_event): Always pass
2598         minus_one_ptid to target_wait.
2599         (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
2600         field.
2601         (init_infwait_state): Delete function.
2602         (handle_inferior_event): Remove infwait_state handling.
2603         (handle_signal_stop) <watchpoints handling>: Adjust after
2604         stepped_after_stopped_by_watchpoint removal.  Don't remove
2605         breakpoints here nor set infwait_state.  Set the thread's
2606         stepping_over_watchpoint flag, and call keep_going instead.
2607         (keep_going): Handle stepping_over_watchpoint.  Adjust
2608         set_step_over_info calls.
2609         * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
2610         function.
2611
2612 2014-10-15  Pedro Alves  <palves@redhat.com>
2613
2614         * infrun.c (step_over_info_valid_p): New function.
2615         (resume): Use step_over_info_valid_p instead of checking the
2616         threads's trap_expected flag.
2617
2618 2014-10-15  Doug Evans  <dje@google.com>
2619             Walfred Tedeschi  <walfred.tedeschi@intel.com>
2620
2621         PR python/17364
2622         * python/lib/gdb/__init__.py (packages): Add "printer".
2623         * python/lib/gdb/command/bound_registers.py: Moved to ...
2624         * python/lib/gdb/printer/bound_registers.py: ... here.
2625         Add printer to global set of builtin printers.  Rename printer from
2626         "bound" to "mpx_bound128".
2627         * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
2628         registered as global "builtin" printer.
2629         (add_builtin_pretty_printer): New function.
2630         * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
2631         gdb/printer/__init__.py.
2632
2633 2014-10-15  Iain Buclaw  <ibuclaw@gdcproject.org>
2634
2635         * Makefile.in (SFILES): Remove d-support.c.
2636         (COMMON_OBS): Remove d-support.o.
2637         * d-lang.h (d_parse_symbol): Remove declaration.
2638         * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
2639         * d-support.c: Remove file.
2640
2641 2014-10-15  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2642
2643         * gdb/infrun.c (process_event_stop_test): Apply
2644         gdbarch_addr_bits_remove to longjmp resume address.
2645
2646 2014-10-15  Pedro Alves  <palves@redhat.com>
2647
2648         * regformats/microblaze.dat: Delete file.
2649
2650 2014-10-15  Ajit Agarwal  <ajitkum@xilinx.com>
2651
2652         * features/Makefile (microblaze-expedite): Replace pc with rpc.
2653         * regformats/microblaze-with-stack-protect.dat: Regenerate.
2654
2655 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
2656
2657         * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
2658         as non-trivial.
2659
2660 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
2661
2662         PR c++/13403
2663         PR c++/15154
2664         * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
2665         with qualified args.
2666
2667 2014-10-14  Joel Brobecker  <brobecker@adacore.com>
2668
2669         * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
2670         of the case where the second operand is a pointer.
2671         <BINOP_SUB>: Likewise.
2672
2673 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
2674
2675         * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
2676         only if it is not NULL.
2677         (bkpt_probe_remove_location): Likewise, for clear_semaphore.
2678         * probe.h (struct probe_ops) <set_semaphore>: Update comment.
2679         (struct probe_ops) <clear_semaphore>: Likewise.
2680         * tracepoint.c (start_tracing): Call set_semaphore only if it is
2681         not NULL.
2682         (stop_tracing): Likewise, for clear_semaphore.
2683
2684 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
2685
2686         * stap-probe.c (stap_parse_argument): Initialize expout explicitly
2687         using language_c, instead of current_language.
2688
2689 2014-10-13  Doug Evans  <dje@google.com>
2690
2691         * python/py-objfile.c (objfpy_initialize): New function.
2692         (objfpy_new, objfile_to_objfile_object): Call it.
2693         * python/py-progspace.c (pspy_initialize): New function.
2694         (pspy_new, pspace_to_pspace_object): Call it.
2695
2696 2014-10-13  Miroslav Franc  <mfranc@redhat.com>
2697             Jan Kratochvil  <jan.kratochvil@redhat.com>
2698
2699         Fix "save breakpoints" for "catch" command.
2700         * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
2701         newline.
2702
2703 2014-10-12  Miroslav Franc  <mfranc@redhat.com>
2704
2705         Fix "save breakpoints" for "disable $bpnum" command.
2706         * breakpoint.c (save_breakpoints): Add $bpnum for disable.
2707
2708 2014-10-10  Pedro Alves  <palves@redhat.com>
2709
2710         * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
2711         (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
2712         (HFILES_NO_SRCDIR): Remove solib-irix.h.
2713         * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
2714         and been removed.
2715         * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
2716         * configure.ac: Remove references to IRIX.
2717         * configure.host: Add *-*-irix* to the obsolete hosts section.
2718         Remove all other references to irix.
2719         * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
2720         Delete files.
2721
2722 2014-10-10  Ajit Agarwal  <ajitkum@xilinx.com>
2723
2724         * microblaze-tdep.c (microblaze_gdbarch_init): If the description
2725         isn't valid, release the tdesc arch data and return NULL.
2726
2727 2014-10-10  Pedro Alves  <palves@redhat.com>
2728
2729         * linux-tdep.c: Include observer.h.
2730         (linux_inferior_data): New global.
2731         (struct linux_info): New structure.
2732         (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
2733         (get_linux_inferior_data): New functions.
2734         (linux_vsyscall_range): Rename to ...
2735         (linux_vsyscall_range_raw): ... this.
2736         (linux_vsyscall_range): New function; handles caching.
2737         (_initialize_linux_tdep): Register linux_inferior_data.  Install
2738         inferior_exit and inferior_appeared observers.
2739
2740 2014-10-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
2741             Pedro Alves  <palves@redhat.com>
2742
2743         PR symtab/14466
2744         * solib-svr4.c (svr4_read_so_list): Rename to ...
2745         (svr4_current_sos_1): ... this and change the function comment.
2746         (svr4_current_sos): New function.
2747
2748 2014-10-10  Pedro Alves  <palves@redhat.com>
2749
2750         * arch-utils.c (default_vsyscall_range): New function.
2751         * arch-utils.h (default_vsyscall_range): New declaration.
2752         * gdbarch.sh (vsyscall_range): New hook.
2753         * gdbarch.h, gdbarch.c: Regenerate.
2754         * linux-tdep.c (linux_vsyscall_range): New function.
2755         (linux_init_abi): Install linux_vsyscall_range as
2756         vsyscall_range gdbarch hook.
2757         * memrange.c (address_in_mem_range): New function.
2758         * memrange.h (address_in_mem_range): New declaration.
2759         * symfile-mem.c (find_vdso_size): Delete function.
2760         (add_vsyscall_page): Use gdbarch_vsyscall_range.
2761
2762 2014-10-10  Pedro Alves  <palves@redhat.com>
2763
2764         * infrun.c (normal_stop): Fix typo in comment.
2765
2766 2014-10-09  Sergio Durigan Junior  <sergiodj@redhat.com>
2767
2768         PR tdep/9390
2769         * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
2770         typo when using logical AND to determine instruction type.
2771
2772 2014-10-09  Yao Qi  <yao@codesourcery.com>
2773
2774         * infrun.c (handle_signal_stop): Remove local variable
2775         'printed'.
2776
2777 2014-10-08  Stan Shebs  <stan@codesourcery.com>
2778
2779         * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
2780
2781 2014-10-08  Gary Benson  <gbenson@redhat.com>
2782
2783         * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
2784
2785 2014-10-08  Gary Benson  <gbenson@redhat.com>
2786
2787         * common/common-defs.h: Include common-exceptions.h.
2788         * exceptions.h: Do not include common-exceptions.h.
2789
2790 2014-10-08  Gary Benson  <gbenson@redhat.com>
2791
2792         * common/common-defs.h: Include cleanups.h.
2793         * common/common-exceptions.c: Do not include cleanups.h.
2794         * utils.h: Likewise.
2795
2796 2014-10-08  Gary Benson  <gbenson@redhat.com>
2797
2798         * ada-lang.c: Do not include exceptions.h.
2799         * ada-valprint.c: Likewise.
2800         * amd64-tdep.c: Likewise.
2801         * auto-load.c: Likewise.
2802         * block.c: Likewise.
2803         * break-catch-throw.c: Likewise.
2804         * breakpoint.c: Likewise.
2805         * btrace.c: Likewise.
2806         * c-lang.c: Likewise.
2807         * cli/cli-cmds.c: Likewise.
2808         * cli/cli-interp.c: Likewise.
2809         * cli/cli-script.c: Likewise.
2810         * completer.c: Likewise.
2811         * corefile.c: Likewise.
2812         * corelow.c: Likewise.
2813         * cp-abi.c: Likewise.
2814         * cp-support.c: Likewise.
2815         * cp-valprint.c: Likewise.
2816         * darwin-nat.c: Likewise.
2817         * dwarf2-frame-tailcall.c: Likewise.
2818         * dwarf2-frame.c: Likewise.
2819         * dwarf2loc.c: Likewise.
2820         * dwarf2read.c: Likewise.
2821         * eval.c: Likewise.
2822         * event-loop.c: Likewise.
2823         * event-top.c: Likewise.
2824         * f-valprint.c: Likewise.
2825         * frame-unwind.c: Likewise.
2826         * frame.c: Likewise.
2827         * gdbtypes.c: Likewise.
2828         * gnu-v2-abi.c: Likewise.
2829         * gnu-v3-abi.c: Likewise.
2830         * guile/scm-auto-load.c: Likewise.
2831         * guile/scm-breakpoint.c: Likewise.
2832         * guile/scm-cmd.c: Likewise.
2833         * guile/scm-frame.c: Likewise.
2834         * guile/scm-lazy-string.c: Likewise.
2835         * guile/scm-param.c: Likewise.
2836         * guile/scm-symbol.c: Likewise.
2837         * guile/scm-type.c: Likewise.
2838         * hppa-hpux-tdep.c: Likewise.
2839         * i386-tdep.c: Likewise.
2840         * inf-loop.c: Likewise.
2841         * infcall.c: Likewise.
2842         * infcmd.c: Likewise.
2843         * infrun.c: Likewise.
2844         * interps.c: Likewise.
2845         * interps.h: Likewise.
2846         * jit.c: Likewise.
2847         * linespec.c: Likewise.
2848         * linux-nat.c: Likewise.
2849         * linux-thread-db.c: Likewise.
2850         * m32r-rom.c: Likewise.
2851         * main.c: Likewise.
2852         * memory-map.c: Likewise.
2853         * mi/mi-cmd-break.c: Likewise.
2854         * mi/mi-cmd-stack.c: Likewise.
2855         * mi/mi-interp.c: Likewise.
2856         * mi/mi-main.c: Likewise.
2857         * monitor.c: Likewise.
2858         * nto-procfs.c: Likewise.
2859         * objc-lang.c: Likewise.
2860         * p-valprint.c: Likewise.
2861         * parse.c: Likewise.
2862         * ppc-linux-tdep.c: Likewise.
2863         * printcmd.c: Likewise.
2864         * probe.c: Likewise.
2865         * python/py-auto-load.c: Likewise.
2866         * python/py-breakpoint.c: Likewise.
2867         * python/py-cmd.c: Likewise.
2868         * python/py-finishbreakpoint.c: Likewise.
2869         * python/py-frame.c: Likewise.
2870         * python/py-framefilter.c: Likewise.
2871         * python/py-function.c: Likewise.
2872         * python/py-gdb-readline.c: Likewise.
2873         * python/py-inferior.c: Likewise.
2874         * python/py-infthread.c: Likewise.
2875         * python/py-lazy-string.c: Likewise.
2876         * python/py-linetable.c: Likewise.
2877         * python/py-param.c: Likewise.
2878         * python/py-prettyprint.c: Likewise.
2879         * python/py-symbol.c: Likewise.
2880         * python/py-type.c: Likewise.
2881         * python/py-value.c: Likewise.
2882         * python/python-internal.h: Likewise.
2883         * python/python.c: Likewise.
2884         * record-btrace.c: Likewise.
2885         * record-full.c: Likewise.
2886         * regcache.c: Likewise.
2887         * remote-fileio.c: Likewise.
2888         * remote-mips.c: Likewise.
2889         * remote.c: Likewise.
2890         * rs6000-aix-tdep.c: Likewise.
2891         * rs6000-nat.c: Likewise.
2892         * skip.c: Likewise.
2893         * solib-darwin.c: Likewise.
2894         * solib-dsbt.c: Likewise.
2895         * solib-frv.c: Likewise.
2896         * solib-ia64-hpux.c: Likewise.
2897         * solib-spu.c: Likewise.
2898         * solib-svr4.c: Likewise.
2899         * solib.c: Likewise.
2900         * spu-tdep.c: Likewise.
2901         * stack.c: Likewise.
2902         * stap-probe.c: Likewise.
2903         * symfile-mem.c: Likewise.
2904         * symmisc.c: Likewise.
2905         * target.c: Likewise.
2906         * thread.c: Likewise.
2907         * top.c: Likewise.
2908         * tracepoint.c: Likewise.
2909         * tui/tui-interp.c: Likewise.
2910         * typeprint.c: Likewise.
2911         * utils.c: Likewise.
2912         * valarith.c: Likewise.
2913         * valops.c: Likewise.
2914         * valprint.c: Likewise.
2915         * value.c: Likewise.
2916         * varobj.c: Likewise.
2917         * windows-nat.c: Likewise.
2918         * xml-support.c: Likewise.
2919
2920 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
2921
2922         * mips-tdep.c (add_offset_16): Rewrite to implement what the
2923         name implies.
2924         (extended_mips16_next_pc): Update accordingly.
2925
2926 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
2927
2928         * mips-tdep.c (mips16_instruction_is_compact_branch): New
2929         function.
2930         (micromips_instruction_is_compact_branch): Likewise.
2931         (mips16_scan_prologue): Terminate scanning upon seeing a branch
2932         or a compact jump, reaching a jump delay slot, or seeing a
2933         second non-prologue instruction.
2934         (micromips_scan_prologue): Also terminate scanning upon seeing a
2935         compact branch or jump, or reaching a branch or jump delay slot.
2936         (mips32_scan_prologue): Terminate scanning upon reaching a branch
2937         or jump delay slot, or seeing a second non-prologue instruction.
2938         (mips32_instruction_has_delay_slot): Retain instruction
2939         examination code only, update arguments accordingly and move
2940         instruction fetch pieces to...
2941         (mips32_insn_at_pc_has_delay_slot): ... this new function.
2942         (micromips_instruction_has_delay_slot): Likewise and to...
2943         (micromips_insn_at_pc_has_delay_slot): ... this new function.
2944         (mips16_instruction_has_delay_slot): Likewise and to...
2945         (mips16_insn_at_pc_has_delay_slot): ... this new function.
2946         (mips_single_step_through_delay): Update accordingly.
2947         (mips_adjust_breakpoint_address): Likewise.
2948
2949 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
2950
2951         * mips-tdep.c (micromips_instruction_has_delay_slot): When
2952         !mustbe32 also return 1 for 32-bit instructions.
2953         (mips16_instruction_has_delay_slot): Likewise.  Add an
2954         explanatory comment.
2955
2956 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
2957
2958         * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2959         symbols special.
2960
2961 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
2962
2963         * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2964         update comments.
2965         * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2966         for the breakpoint's address.  Don't preinitialize `placed_size'.
2967         (insert_bp_location): Set `reqstd_address' rather than
2968         `placed_address'.
2969         (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2970         (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2971         address.
2972         (bkpt_remove_location): Likewise.
2973         (deprecated_insert_raw_breakpoint): Likewise.
2974         (deprecated_remove_raw_breakpoint): Likewise.
2975         (find_single_step_breakpoint): Likewise.
2976         * mem-break.c (default_memory_insert_breakpoint): Use
2977         `reqstd_address' for the breakpoint's address.  Don't set
2978         `placed_address' or `placed_size' if breakpoint contents couldn't
2979         have been determined.
2980         * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2981         the breakpoint's address.
2982         (remote_insert_hw_breakpoint): Likewise.  Don't set
2983         `placed_address' or `placed_size' if breakpoint couldn't have been
2984         set.
2985         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2986         `reqstd_address' for the breakpoint's address.
2987         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2988         * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2989         * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2990         * microblaze-linux-tdep.c
2991         (microblaze_linux_memory_remove_breakpoint): Likewise.
2992         * monitor.c (monitor_insert_breakpoint): Likewise.
2993         * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2994         (procfs_insert_hw_breakpoint): Likewise.
2995         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2996         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2997         * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2998         * remote-mips.c (mips_insert_breakpoint): Likewise.
2999         * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
3000
3001 2014-10-03  Luis Machado  <lgustavo@codesourcery.com>
3002
3003         * valops.c (value_assign): Check for bit field assignments
3004         before calling architecture-specific register value
3005         conversion functions.
3006
3007 2014-10-03  Pierre Muller  <muller@sourceware.org>
3008
3009         * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
3010
3011 2014-10-02  Pedro Alves  <palves@redhat.com>
3012
3013         * breakpoint.c (breakpoints_should_be_inserted_now): Use
3014         threads_are_executing.
3015         * breakpoint.h (breakpoints_should_be_inserted_now): Add
3016         describing comment.
3017         * gdbthread.h (threads_are_executing): Declare.
3018         (handle_signal_stop) <random signals>: Don't print about the
3019         signal here if stopping.
3020         (end_stepping_range): Don't notify observers here.
3021         (normal_stop): Update the thread list.  If stopped by a random
3022         signal or a stepping range ended, notify observers.
3023         * thread.c (threads_executing): New global.
3024         (init_thread_list): Clear 'threads_executing'.
3025         (set_executing): Set or clear 'threads_executing'.
3026         (threads_are_executing): New function.
3027         (update_threads_executing): New function.
3028         (update_thread_list): Use it.
3029
3030 2014-10-02  Pedro Alves  <palves@redhat.com>
3031
3032         PR breakpoints/17431
3033         * breakpoint.c (update_breakpoints_after_exec): Don't create
3034         overlay, longjmp, std terminate nor exception breakpoints here.
3035
3036 2014-10-02  Pedro Alves  <palves@redhat.com>
3037
3038         * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
3039         Adjust comments.
3040         * inferior.c (find_inferior_for_program_space): Give preference to
3041         the current inferior.
3042         * inferior.h (find_inferior_for_program_space): Update comment.
3043         * progspace.c (switch_to_program_space_and_thread): Prefer the
3044         current inferior if it's bound to the program space requested.  If
3045         the inferior found doesn't have a PID yet, don't bother looking up
3046         a thread.
3047         * progspace.h (switch_to_program_space_and_thread): Adjust
3048         comment.
3049         * thread.c (any_thread_of_process, any_live_thread_of_process):
3050         Give preference to the current thread.
3051
3052 2014-10-01  Pedro Alves  <palves@redhat.com>
3053
3054         * breakpoint.c (insert_bp_location): Error out if inserting a
3055         software breakpoint at a read-only address.
3056         * target.c (memory_xfer_check_region): New function, factored out
3057         from ...
3058         (memory_xfer_partial_1): ... this.  Make the 'reg_len' local a
3059         ULONGEST.
3060         (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
3061         against the memory region attributes.
3062
3063 2014-10-01  Simon Marchi  <simon.marchi@ericsson.com>
3064
3065         * NEWS: Announce new exit-code field in -list-thread-groups
3066         output.
3067         * inferior.c (exit_inferior_1): Don't clear exit code.
3068         (inferior_appeared): Clear exit code.
3069         * mi/mi-main.c (print_one_inferior): Add printing of the exit
3070         code.
3071
3072 2014-10-01  Pedro Alves  <palves@redhat.com>
3073
3074         * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
3075         GENERATED" along with emacs/vi read-only markers.
3076         * regformats/aarch64.dat: Regenerate.
3077         * regformats/arm-with-iwmmxt.dat: Regenerate.
3078         * regformats/arm-with-neon.dat: Regenerate.
3079         * regformats/arm-with-vfpv2.dat: Regenerate.
3080         * regformats/arm-with-vfpv3.dat: Regenerate.
3081         * regformats/i386/amd64-avx-linux.dat: Regenerate.
3082         * regformats/i386/amd64-avx.dat: Regenerate.
3083         * regformats/i386/amd64-avx512-linux.dat: Regenerate.
3084         * regformats/i386/amd64-avx512.dat: Regenerate.
3085         * regformats/i386/amd64-linux.dat: Regenerate.
3086         * regformats/i386/amd64-mpx-linux.dat: Regenerate.
3087         * regformats/i386/amd64-mpx.dat: Regenerate.
3088         * regformats/i386/amd64.dat: Regenerate.
3089         * regformats/i386/i386-avx-linux.dat: Regenerate.
3090         * regformats/i386/i386-avx.dat: Regenerate.
3091         * regformats/i386/i386-avx512-linux.dat: Regenerate.
3092         * regformats/i386/i386-avx512.dat: Regenerate.
3093         * regformats/i386/i386-linux.dat: Regenerate.
3094         * regformats/i386/i386-mmx-linux.dat: Regenerate.
3095         * regformats/i386/i386-mmx.dat: Regenerate.
3096         * regformats/i386/i386-mpx-linux.dat: Regenerate.
3097         * regformats/i386/i386-mpx.dat: Regenerate.
3098         * regformats/i386/i386.dat: Regenerate.
3099         * regformats/i386/x32-avx-linux.dat: Regenerate.
3100         * regformats/i386/x32-avx.dat: Regenerate.
3101         * regformats/i386/x32-avx512-linux.dat: Regenerate.
3102         * regformats/i386/x32-avx512.dat: Regenerate.
3103         * regformats/i386/x32-linux.dat: Regenerate.
3104         * regformats/i386/x32.dat: Regenerate.
3105         * regformats/microblaze-with-stack-protect.dat: Regenerate.
3106         * regformats/mips-dsp-linux.dat: Regenerate.
3107         * regformats/mips-linux.dat: Regenerate.
3108         * regformats/mips64-dsp-linux.dat: Regenerate.
3109         * regformats/mips64-linux.dat: Regenerate.
3110         * regformats/nios2-linux.dat: Regenerate.
3111         * regformats/rs6000/powerpc-32.dat: Regenerate.
3112         * regformats/rs6000/powerpc-32l.dat: Regenerate.
3113         * regformats/rs6000/powerpc-64l.dat: Regenerate.
3114         * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
3115         * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
3116         * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
3117         * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
3118         * regformats/rs6000/powerpc-e500l.dat: Regenerate.
3119         * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
3120         * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
3121         * regformats/s390-linux32.dat: Regenerate.
3122         * regformats/s390-linux32v1.dat: Regenerate.
3123         * regformats/s390-linux32v2.dat: Regenerate.
3124         * regformats/s390-linux64.dat: Regenerate.
3125         * regformats/s390-linux64v1.dat: Regenerate.
3126         * regformats/s390-linux64v2.dat: Regenerate.
3127         * regformats/s390-te-linux64.dat: Regenerate.
3128         * regformats/s390x-linux64.dat: Regenerate.
3129         * regformats/s390x-linux64v1.dat: Regenerate.
3130         * regformats/s390x-linux64v2.dat: Regenerate.
3131         * regformats/s390x-te-linux64.dat: Regenerate.
3132         * regformats/tic6x-c62x-linux.dat: Regenerate.
3133         * regformats/tic6x-c62x.dat: Regenerate.
3134         * regformats/tic6x-c64x-linux.dat: Regenerate.
3135         * regformats/tic6x-c64x.dat: Regenerate.
3136         * regformats/tic6x-c64xp-linux.dat: Regenerate.
3137         * regformats/tic6x-c64xp.dat: Regenerate.
3138
3139 2014-10-01  Pedro Alves  <palves@redhat.com>
3140
3141         * features/Makefile: Update comments.
3142         (XMLTOC): List all xml files we build C files from.
3143         (clean-cfiles): New rule.
3144
3145 2014-10-01  Pedro Alves  <palves@redhat.com>
3146
3147         * features/i386/amd64-avx512-linux.c: Regenerate.
3148         * features/i386/amd64-avx512.c: Regenerate.
3149         * features/i386/x32-avx512-linux.c: Regenerate.
3150         * features/i386/x32-avx512.c: Regenerate.
3151
3152 2014-10-01  Pedro Alves  <palves@redhat.com>
3153
3154         * features/Makefile (WHICH): Remove arm-with-m,
3155         arm-with-m-fpa-layout and arm-with-m-vfp-d16.
3156
3157 2014-10-01  Pedro Alves  <palves@redhat.com>
3158
3159         * features/Makefile (clean): New rule.
3160
3161 2014-10-01  Pedro Alves  <palves@redhat.com>
3162
3163         * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
3164         (zmm14h): Add missing end quotes.
3165
3166 2014-10-01  Pedro Alves  <palves@redhat.com>
3167
3168         * features/aarch64-core.xml (cpsr): Change back to 32-bit.
3169         * features/aarch64.c: Regenerate.
3170
3171 2014-09-30  Don Breazeal  <donb@codesourcery.com>
3172
3173         * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
3174         code so as to work with follow_fork_inferior.
3175         * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
3176         (inf_ttrace_create_inferior): Remove reference to
3177         inf_ttrace_vfork_ppid.
3178         (inf_ttrace_attach): Ditto.
3179         (inf_ttrace_detach): Ditto.
3180         (inf_ttrace_kill): Use current_inferior instead of
3181         inf_ttrace_vfork_ppid.
3182         (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
3183         TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
3184         inferior away from the parent.
3185         * infrun.c (follow_fork): Call follow_fork_inferior instead of
3186         target_follow_fork.
3187         (follow_fork_inferior): New function.
3188         (follow_inferior_reset_breakpoints): Make function static.
3189         * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
3190         * linux-nat.c (linux_child_follow_fork): Move target-independent
3191         code to infrun.c:follow_fork_inferior.
3192
3193 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3194
3195         * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
3196         * gdbarch.c: Regenerate.
3197         * gdbarch.h: Likewise.
3198         * corelow.c (sniff_core_bfd): Drop presence check for deleted
3199         gdbarch method 'regset_from_core_section'.
3200         (get_core_register_section): Remove handling for the case that
3201         regset == NULL and regset_from_core_section is defined.
3202         (get_core_registers): Drop check for deleted method.
3203         * procfs.c (procfs_do_thread_registers): Adjust comment.
3204
3205 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3206
3207         * linux-nat.c (linux_nat_collect_thread_registers): Remove.
3208         (linux_nat_make_corefile_notes): Remove.
3209         (linux_target_install_ops): Do not set target method
3210         'make_corefile_notes'.
3211         * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
3212         Remove field.
3213         (linux_corefile_thread_callback): Instead of args->collect, call
3214         linux_collect_thread_registers.
3215         (linux_make_corefile_notes): Remove 'collect' parameter.  Return
3216         NULL unless there is a regset iterator.
3217         (linux_make_corefile_notes_1): Remove.
3218         (linux_init_abi): Replace reference to linux_make_corefile_notes_1
3219         by linux_make_corefile_notes.
3220         * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
3221
3222 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3223
3224         * fbsd-nat.c (find_signalled_thread, find_stop_signal)
3225         (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
3226         Remove.
3227         * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
3228
3229 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3230
3231         * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
3232         (xtensa_iterate_over_regset_sections): New.
3233         (xtensa_gdbarch_init): Adjust gdbarch initialization.
3234
3235 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3236
3237         * vax-tdep.c (vax_regset_from_core_section): Remove.
3238         (vax_iterate_over_regset_sections): New.
3239         (vax_gdbarch_init): Adjust gdbarch initialization.
3240
3241 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3242
3243         * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
3244         (tilegx_regset_from_core_section): Remove.
3245         (tilegx_iterate_over_regset_sections): New.
3246         (tilegx_linux_init_abi): Adjust gdbarch initialization.
3247
3248 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3249
3250         * sparc-tdep.c (sparc_regset_from_core_section): Remove.
3251         (sparc_iterate_over_regset_sections): New.
3252         (sparc32_gdbarch_init): Adjust gdbarch initialization.
3253         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
3254         targets.
3255         * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
3256         (sparc64fbsd_init_abi): Call fbsd_init_abi.
3257         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
3258         target method 'make_corefile_notes'.
3259
3260 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3261
3262         * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
3263         'sizeof_gregset' and 'sizeof_fpregset'.
3264         * sh-tdep.c (sh_regset_from_core_section): Remove.
3265         (sh_iterate_over_regset_sections): New.
3266         (sh_gdbarch_init): Adjust gdbarch initialization.
3267         * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
3268         sizeof_fpregset.
3269         * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
3270         'sizeof_gregset'.
3271
3272 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3273
3274         * score-tdep.c (score7_linux_regset_from_core_section): Remove.
3275         (score7_linux_iterate_over_regset_sections): New.
3276         (score_gdbarch_init): Adjust gdbarch initialization.
3277
3278 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3279
3280         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
3281         FreeBSD targets.
3282         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
3283         method 'make_corefile_notes'.
3284         * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
3285         (ppcfbsd_regset_from_core_section): Remove.
3286         (ppcfbsd_iterate_over_regset_sections): New.
3287         (ppcfbsd_init_abi): Call fbsd_init_abi.  Adjust gdbarch
3288         initialization.
3289         * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
3290         (ppcnbsd_iterate_over_regset_sections): New.
3291         (ppcnbsd_init_abi): Adjust.
3292         * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
3293         (ppcobsd_iterate_over_regset_sections): New.
3294         (ppcobsd_init_abi): Adjust.
3295         * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
3296         (rs6000_aix_iterate_over_regset_sections): New.
3297         (rs6000_aix_init_osabi): Adjust.
3298
3299 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3300
3301         * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
3302         (nios2_regset_from_core_section): Remove.
3303         (nios2_iterate_over_regset_sections): New.
3304         (nios2_linux_init_abi): Adjust gdbarch initialization.
3305
3306 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3307
3308         * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
3309         (am33_iterate_over_regset_sections): New.
3310         (am33_linux_init_osabi): Adjust gdbarch initialization.
3311
3312 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3313
3314         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
3315         (mips_linux_iterate_over_regset_sections): New.
3316         (mips_linux_init_abi): Adjust gdbarch initialization.
3317         * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
3318         (mips64obsd_iterate_over_regset_sections): New.
3319         (mips64obsd_init_abi): Adjust.
3320         * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
3321         (mipsnbsd_iterate_over_regset_sections): New.
3322         (mipsnbsd_init_abi): Adjust.
3323
3324 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3325
3326         * m88k-tdep.c (m88k_regset_from_core_section): Remove.
3327         (m88k_iterate_over_regset_sections): New.
3328         (m88k_gdbarch_init): Adjust gdbarch initialization.
3329
3330 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3331
3332         * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
3333         (ia64_linux_iterate_over_regset_sections): New.
3334         (ia64_linux_init_abi): Adjust gdbarch initialization.
3335
3336 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3337
3338         * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
3339         (m68kbsd_iterate_over_regset_sections): New.
3340         (m68kbsd_init_abi): Adjust gdbarch initialization.
3341         * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
3342         (m68k_linux_iterate_over_regset_sections): New.
3343         (m68k_linux_init_abi): Adjust gdbarch initialization.
3344
3345 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3346
3347         * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
3348         (m32r_linux_regset_from_core_section): Remove.
3349         (m32r_linux_iterate_over_regset_sections): New.
3350         (m32r_linux_init_abi): Adjust gdbarch initialization.
3351
3352 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3353
3354         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
3355         (amd64obsd_iterate_over_regset_sections): New.
3356         (amd64obsd_core_init_abi): Adjust gdbarch initialization.
3357         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3358         Remove.
3359         (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset.  Drop
3360         regset_from_core_section initialization.
3361         * i386-tdep.c (i386_regset_from_core_section): Remove.
3362         (i386_iterate_over_regset_sections): New.
3363         (i386_gdbarch_init): Adjust gdbarch initialization.
3364         * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
3365         (i386_iterate_over_regset_sections): New prototype.
3366         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
3367         Remove.
3368         (i386obsd_aout_iterate_over_regset_sections): New.
3369         (i386obsd_aout_init_abi): Adjust gdbarch initialization.
3370         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
3371         targets.
3372         * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
3373         (amd64fbsd_init_abi): Call fbsd_init_abi.
3374         * i386fbsd-tdep.c (fbsd-tdep.h): Include.
3375         (i386fbsd4_init_abi): Call fbsd_init_abi.
3376         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
3377         target method 'make_corefile_notes'.
3378         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3379
3380 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3381
3382         * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
3383         (hppa_hpux_iterate_over_regset_sections): New.
3384         (hppa_hpux_init_abi): Adjust gdbarch initialization.
3385         * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
3386         (hppa_linux_iterate_over_regset_sections): New.
3387         (hppa_linux_init_abi): Adjust.
3388         * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3389         (hppanbsd_iterate_over_regset_sections): New.
3390         (hppanbsd_init_abi): Adjust.
3391         * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
3392         (hppaobsd_iterate_over_regset_sections): New.
3393         (hppaobsd_init_abi): Adjust.
3394
3395 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3396
3397         * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
3398         (frv_linux_iterate_over_regset_sections): New.
3399         (frv_linux_init_abi): Adjust gdbarch initialization.
3400
3401 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3402
3403         * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
3404         (armbsd_iterate_over_regset_sections): New prototype.
3405         * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
3406         (armbsd_iterate_over_regset_sections): New.
3407         * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
3408         initialization.
3409
3410 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3411
3412         * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
3413         (alpha_linux_iterate_over_regset_sections): New.
3414         (alpha_linux_init_abi): Adjust gdbarch initialization.
3415         * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
3416         prototype.
3417         (alphanbsd_iterate_over_regset_sections): New prototype.
3418
3419 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3420
3421         * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
3422         Remove.
3423         (aarch64_linux_iterate_over_regset_sections): New.
3424         (aarch64_linux_init_abi): Adjust gdbarch initialization.
3425
3426 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3427
3428         * fbsd-tdep.c: New file.
3429         * fbsd-tdep.h: New file.
3430         * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
3431         (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
3432         (ALLDEPFILES): Add fbsd-tdep.c.
3433
3434 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3435
3436         * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
3437         parameter.
3438         * gdbarch.h: Regenerate.
3439         * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
3440         iterator.
3441         (get_core_register_section): Add parameter 'regset' and use it, if
3442         set.  Add parameter 'min_size' and verify the bfd section size
3443         against it.
3444         (get_core_registers_cb): Add parameter 'regset' and pass it to
3445         get_core_register section.  For the "standard" register sections
3446         ".reg" and ".reg2", set an appropriate default for human_name.
3447         (get_core_registers): Don't abort when the gdbarch has an iterator
3448         but no regset_from_core_section.  Add NULL/0 for parameters
3449         'regset'/'min_size' in calls to get_core_register_section.
3450         * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
3451         'regset' and use it instead of calling the
3452         regset_from_core_section gdbarch method.
3453         * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
3454         * i386-tdep.c (i386_supply_xstateregset)
3455         (i386_collect_xstateregset, i386_xstateregset): Moved to
3456         i386-linux-tdep.c.
3457         (i386_regset_from_core_section): Drop handling for .reg-xfp and
3458         .reg-xstate.
3459         (i386_gdbarch_init): Set tdep field 'fpregset'.  Enable generic
3460         core file support only if the regset iterator hasn't been set.
3461         * i386-linux-tdep.c (i386_linux_supply_xstateregset)
3462         (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
3463         Moved from i386-tdep.c and renamed to *_linux*.
3464         (i386_linux_iterate_over_regset_sections): Add regset parameter to
3465         each callback invocation.  Allow any .reg-xstate size when reading
3466         from a core file.
3467         * amd64-tdep.c (amd64_supply_xstateregset)
3468         (amd64_collect_xstateregset, amd64_xstateregset): Moved to
3469         amd64-linux-tdep.c.
3470         (amd64_regset_from_core_section): Remove.
3471         (amd64_init_abi): Set new tdep field 'fpregset'.  No longer
3472         install an amd64-specific regset_from_core_section gdbarch method.
3473         * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
3474         (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
3475         Moved from amd64-tdep.c and renamed to *_linux*.
3476         (amd64_linux_iterate_over_regset_sections): Add regset parameter
3477         to each callback invocation.  Allow any .reg-xstate size when
3478         reading from a core file.
3479         * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
3480         (arm_linux_iterate_over_regset_sections): Add regset parameter to
3481         each callback invocation.
3482         (arm_linux_init_abi): No longer set the regset_from_core_section
3483         gdbarch method.
3484         * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
3485         (ppc_linux_iterate_over_regset_sections): Add regset parameter to
3486         each callback invocation.
3487         (ppc_linux_init_abi): No longer set the regset_from_core_section
3488         gdbarch method.
3489         * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
3490         gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
3491         (s390_regset_from_core_section): Remove.
3492         (s390_iterate_over_regset_sections): Add regset parameter to each
3493         callback invocation.
3494         (s390_gdbarch_init): No longer set the regset_from_core_section
3495         gdbarch method.  Drop initialization of deleted tdep fields.
3496
3497 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3498
3499         * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
3500         (amd64_linux_iterate_over_regset_sections): New.
3501         (amd64_linux_init_abi_common): Don't install the regset section
3502         list, but the new iterator in gdbarch.
3503         * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
3504         (arm_linux_vfp_regset_sections): Remove.  Move combined logic...
3505         (arm_linux_iterate_over_regset_sections): ...here.  New function.
3506         (arm_linux_init_abi): Set iterator instead of section list.
3507         * corelow.c (get_core_registers_cb): New function, logic moved
3508         from...
3509         (get_core_registers): ...loop body here.  Use new iterator method
3510         instead of walking through the regset section list.
3511         * gdbarch.sh: Remove 'core_regset_sections'.  New method
3512         'iterate_over_regset_sections'.  New typedef
3513         'iterate_over_regset_sections_cb'.
3514         * gdbarch.c: Regenerate.
3515         * gdbarch.h: Likewise.
3516         * i386-linux-tdep.c (i386_linux_regset_sections)
3517         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
3518         Remove.
3519         (i386_linux_iterate_over_regset_sections): New.
3520         (i386_linux_init_abi): Don't choose a regset section list, but
3521         install new iterator in gdbarch.
3522         * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
3523         (linux_collect_regset_section_cb): New function, logic moved
3524         from...
3525         (linux_collect_thread_registers): ...loop body here.  Use iterator
3526         method instead of walking through list.
3527         (linux_make_corefile_notes_1): Check for presence of iterator
3528         method instead of regset section list.
3529         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
3530         (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
3531         (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
3532         (ppc64_linux_fp_regset_sections): Remove.  Move combined logic...
3533         (ppc_linux_iterate_over_regset_sections): ...here.  New function.
3534         (ppc_linux_init_abi): Don't choose from above regset section
3535         lists, but install new iterator in gdbarch.
3536         * regset.h (struct core_regset_section): Remove.
3537         * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
3538         have_linux_v1, have_linux_v2, and have_tdb.
3539         (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
3540         (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
3541         (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
3542         (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
3543         (s390x_linux64v2_regset_sections): Remove.  Move combined logic...
3544         (s390_iterate_over_regset_sections): ...here.  New function.  Use
3545         new tdep fields.
3546         (s390_gdbarch_init): Set new tdep fields.  Don't choose from above
3547         regset section lists, but install new iterator.
3548
3549 2014-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
3550
3551         * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
3552
3553 2014-09-26  Simon Marchi  <simon.marchi@ericsson.com>
3554
3555         * progspace.c (print_program_space): Don't prune program spaces
3556         before printing them.
3557
3558 2014-09-25  Pedro Alves  <palves@redhat.com>
3559
3560         * infrun.c (user_visible_resume_ptid): Don't check
3561         singlestep_breakpoints_inserted_p.
3562
3563 2014-09-25  Pedro Alves  <palves@redhat.com>
3564
3565         * breakpoint.c (should_be_inserted): Add debug output.
3566
3567 2014-09-25  Pedro Alves  <palves@redhat.com>
3568
3569         * infrun.c (stepping_past_instruction_at)
3570         (clear_exit_convenience_vars): Point at infrun.h instead of
3571         inferior.h.
3572         (handle_signal_stop): Fix typo.
3573
3574 2014-09-24  Yao Qi  <yao@codesourcery.com>
3575
3576         * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
3577         bitmask.
3578
3579 2014-09-22  Gary Benson  <gbenson@redhat.com>
3580
3581         * target.c (target_stop): Updated comment.
3582
3583 2014-09-22  Gary Benson  <gbenson@redhat.com>
3584
3585         * target/target.h (target_stop_ptid): Renamed as...
3586         (target_stop_and_wait): New function.  Updated comment.
3587         All uses updated.
3588         (target_continue_ptid): Renamed as...
3589         (target_continue_no_signal): New function.  Updated comment.
3590         All uses updated.
3591
3592 2014-09-22  Pedro Alves  <palves@redhat.com>
3593
3594         * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
3595         and "auto" merged.
3596         * breakpoint.c (enum ugll_insert_mode): New enum.
3597         (always_inserted_mode): Now a plain boolean.
3598         (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
3599         (breakpoints_always_inserted_mode): Delete.
3600         (breakpoints_should_be_inserted_now): New function.
3601         (insert_breakpoints): Pass UGLL_INSERT to
3602         update_global_location_list instead of calling
3603         insert_breakpoint_locations manually.
3604         (create_solib_event_breakpoint_1): New, factored out from ...
3605         (create_solib_event_breakpoint): ... this.
3606         (create_and_insert_solib_event_breakpoint): Use
3607         create_solib_event_breakpoint_1 instead of calling
3608         insert_breakpoint_locations manually.
3609         (update_global_location_list): Change parameter type from boolean
3610         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
3611         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3612         (update_global_location_list_nothrow): Change parameter type from
3613         boolean to enum ugll_insert_mode.
3614         (_initialize_breakpoint): "breakpoint always-inserted" option is
3615         now a boolean command.  Update help text.
3616         * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
3617         (breakpoints_should_be_inserted_now): New declaration.
3618         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
3619         Remove breakpoints_always_inserted_mode check.
3620         (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
3621         * remote.c (remote_start_remote): Likewise.
3622
3623 2014-09-22  Pedro Alves  <palves@redhat.com>
3624
3625         * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
3626         (insert_breakpoints): Don't call insert_breakpoint_locations here.
3627         Instead, pass UGLL_INSERT to update_global_location_list.
3628         (update_global_location_list): Change parameter type from boolean
3629         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
3630         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
3631         (create_solib_event_breakpoint_1): New, factored out from ...
3632         (create_solib_event_breakpoint): ... this.
3633         (create_and_insert_solib_event_breakpoint): Use
3634         create_solib_event_breakpoint_1 instead of calling
3635         insert_breakpoint_locations manually.
3636         (update_global_location_list): Handle UGLL_INSERT.
3637
3638 2014-09-22  Pedro Alves  <palves@redhat.com>
3639
3640         * breakpoint.c (enum ugll_insert_mode): New enum.
3641         (update_global_location_list)
3642         (update_global_location_list_nothrow): Change parameter type from
3643         boolean to enum ugll_insert_mode.  All callers adjusted.
3644
3645 2014-09-19  Joel Brobecker  <brobecker@adacore.com>
3646
3647         * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
3648         SystemTap support in GDB.
3649
3650 2014-09-19  Don Breazeal  <donb@codesourcery.com>
3651
3652         * linux-nat.c (linux_handle_extended_wait): Call
3653         linux_ptrace_get_extended_event.
3654         (wait_lwp): Call linux_is_extended_waitstatus.
3655         (linux_nat_filter_event): Call linux_ptrace_get_extended_event
3656         and linux_is_extended_waitstatus.
3657         * nat/linux-ptrace.c (linux_test_for_tracefork): Call
3658         linux_ptrace_get_extended_event.
3659         (linux_ptrace_get_extended_event): New function.
3660         (linux_is_extended_waitstatus): New function.
3661         * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
3662         (linux_is_extended_waitstatus): New declarations.
3663
3664 2014-09-19  Yao Qi  <yao@codesourcery.com>
3665
3666         * dwarf2read.c (dwarf_decode_lines): Update declaration.
3667         (handle_DW_AT_stmt_list): Add argument 'lowpc'.  Update
3668         comments.  Callers update.
3669         (dwarf_decode_lines): Likewise.
3670         (dwarf_decode_lines_1): Add argument 'lowpc'.  Update
3671         comments.  Skip the line table if  'lowpc' is greater than
3672         'address'.  Don't check
3673         dwarf2_per_objfile->has_section_at_zero.
3674
3675 2014-09-18  Doug Evans  <dje@google.com>
3676
3677         * NEWS: Mention new "producer" attribute of gdb.Symtab.
3678         * python/py-symtab.c (stpy_get_producer): New function.
3679         (symtab_object_getset): Add "producer" attribute.
3680
3681 2014-09-17  Ulrich Weigand  <uweigand@de.ibm.com>
3682
3683         PR gdb/17384
3684         * corefile.c (struct captured_read_memory_integer_arguments): Remove.
3685         (do_captured_read_memory_integer): Remove.
3686         (safe_read_memory_integer): Use target_read_memory directly instead
3687         of catching errors in do_captured_read_memory_integer.
3688
3689 2014-09-16  Maciej W. Rozycki  <macro@codesourcery.com>
3690
3691         * CONTRIBUTE (Coding Standards): For internals refer to wiki,
3692         not gdb/doc.
3693
3694 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
3695
3696         * objc-lang.c (find_implementation_from_class): Remove dead code.
3697
3698 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
3699
3700         PR cli/7233
3701         * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
3702         "fprintf_unfiltered (gdb_stdlog...)".
3703
3704 2014-09-16  Patrick Palka  <patrick@parcs.ath.cx>
3705
3706         PR breakpoints/12526
3707         * breakpoint.h (struct watchpoint): New fields val_bitpos and
3708         val_bitsize.
3709         * breakpoint.c (watch_command_1): Use these fields to retain
3710         bitfield information.
3711         (extract_bitfield_from_watchpoint_value): New function.
3712         (watchpoint_check): Use it.
3713         (update_watchpoint): Use it.  Optimize the address and length of a
3714         HW watchpoint pointing to a bitfield.
3715         * value.h (unpack_value_bitfield): New prototype.
3716         * value.c (unpack_value_bitfield): Make extern.
3717
3718 2014-09-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3719
3720         * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
3721         x86-dregs.o.
3722         * gnu-nat.c (inf_threads): New function.
3723         * gnu-nat.h (inf_threads_ftype): New typedef.
3724         (inf_threads): New declaration.
3725         * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
3726         [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
3727         (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
3728         (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
3729         (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
3730         (i386_gnu_dr_get_control): New functions.
3731         (reg_addr): New structure.
3732         (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
3733         i386 debugging register hooks.
3734         * NEWS: Mention this.
3735
3736 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
3737
3738         * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
3739         vector data transfer instructions.
3740         (arm_record_coproc_data_proc): Updated.
3741
3742 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
3743
3744         * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
3745         arm_record_exreg_ld_st_insn.
3746         (arm_record_exreg_ld_st_insn): Add record handler for ex-register
3747         load/store insns.
3748
3749 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
3750
3751         * arm-tdep.c (arm_record_coproc_data_proc): Updated.
3752         (arm_record_vfp_data_proc_insn): Added record handler for VFP data
3753         processing instructions.
3754
3755 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
3756
3757         * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
3758         for advance SIMD struct ld/st insn.
3759         (thumb2_record_decode_insn_handler): Replace stub handler with
3760         thumb2_record_asimd_struct_ld_st.
3761
3762 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
3763
3764         * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
3765         for asimd, vfp and coprocessor insns.
3766         (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
3767         and coprocessor insns.
3768         (thumb2_record_coproc_insn): New function.
3769         (thumb2_record_decode_insn_handler): Update coprocessor insns record
3770         handlers.
3771         (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
3772         opcode 110 insns.
3773
3774 2014-09-13  Doug Evans  <xdje42@gmail.com>
3775
3776         * NEWS: Mention new "queue-signal" command.
3777         * infcmd.c (queue_signal_command): New function.
3778         (_initialize_infcmd): Add new queue-signal command.
3779
3780 2014-09-13  Doug Evans  <xdje42@gmail.com>
3781
3782         * linux-nat.c (wait_lwp): Add debugging printf.
3783         (linux_nat_wait_1): Ditto.
3784
3785 2014-09-12  Pedro Alves  <palves@redhat.com>
3786
3787         * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
3788         (create_and_insert_solib_event_breakpoint): New functions.
3789         * breakpoint.h (create_and_insert_solib_event_breakpoint)
3790         (remove_solib_event_breakpoints_at_next_stop): New declarations.
3791         * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
3792         (remove_dbx_link_breakpoint): Delete function.
3793         (insert_dbx_link_bpt_in_file): Use
3794         create_and_insert_solib_event_breakpoint instead of
3795         deprecated_insert_raw_breakpoint.
3796         (procfs_wait): Don't check whether we hit __dbx_link here.
3797         (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
3798         here.
3799         * solib-irix.c (base_breakpoint): Delete global.
3800         (disable_break): Delete function.
3801         (enable_break): Use create_solib_event_breakpoint
3802         instead of deprecated_insert_raw_breakpoint.
3803         (irix_solib_handle_event): New function.
3804         (irix_solib_create_inferior_hook): Don't run the target or disable
3805         the mapping-complete breakpoint here.
3806         (_initialize_irix_solib): Install irix_solib_handle_event as
3807         so_ops->handle_event hook.
3808
3809 2014-09-12  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
3810             Ulrich Weigand  <uweigand@de.ibm.com>
3811
3812         PR tdep/17379
3813         * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3814         instead of read_memory_unsigned_integer.
3815
3816 2014-09-12  Gary Benson  <gbenson@redhat.com>
3817
3818         * nat/linux-waitpid.c: Include common-defs.h.
3819         [GDBSERVER]: Add FIXME comment.
3820         [!GDBSERVER]: Don't include defs.h or signal.h.
3821         (linux_debug) [!GDBSERVER]: Remove empty block.
3822
3823 2014-09-12  Gary Benson  <gbenson@redhat.com>
3824
3825         * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3826         Don't include defs.h or server.h.
3827
3828 2014-09-12  Gary Benson  <gbenson@redhat.com>
3829
3830         * nat/linux-btrace.c: Include common-defs.h.
3831         Don't include defs.h, server.h or gdbthread.h.
3832         * nat/linux-btrace.h (struct target_ops): New forward declaration.
3833
3834 2014-09-12  Gary Benson  <gbenson@redhat.com>
3835
3836         * common/agent.c: Include common-defs.h.
3837         Don't include defs.h or server.h.
3838         * common/buffer.c: Likewise.
3839         * common/common-debug.c: Likewise.
3840         * common/common-utils.c: Likewise.
3841         * common/errors.c: Likewise.
3842         * common/filestuff.c: Likewise.
3843         * common/format.c: Likewise.
3844         * common/gdb_vecs.c: Likewise.
3845         * common/print-utils.c: Likewise.
3846         * common/ptid.c: Likewise.
3847         * common/rsp-low.c: Likewise.
3848         * common/signals.c: Likewise.
3849         * common/vec.c: Likewise.
3850         * common/xml-utils.c: Likewise.
3851         * nat/linux-osdata.c: Likewise.
3852         * nat/linux-procfs.c: Likewise.
3853         * nat/linux-ptrace.c: Likewise.
3854         * nat/mips-linux-watch.c: Likewise.
3855         * target/waitstatus.c: Likewise.
3856
3857 2014-09-12  Tom Tromey  <tromey@redhat.com>
3858             Gary Benson  <gbenson@redhat.com>
3859
3860         * common/common-regcache.h: New file.
3861         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3862         * regcache.h: Include common-regcache.h.
3863         (regcache_read_pc): Don't declare.
3864         * regcache.c (get_thread_regcache_for_ptid): New function.
3865         * nat/linux-btrace.c: Don't include regcache.h.
3866         Include common-regcache.h.
3867         (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3868
3869 2014-09-11  Thomas Schwinge  <thomas@codesourcery.com>
3870
3871         * regcache.h (struct regset): Declare.
3872
3873 2014-09-11  Pedro Alves  <palves@redhat.com>
3874
3875         PR gdb/17347
3876         * main.c: Include "infrun.h".
3877         (catch_command_errors, catch_command_errors_const): Wait for the
3878         foreground command to complete.
3879         * top.c (maybe_wait_sync_command_done): New function, factored out
3880         from ...
3881         (maybe_wait_sync_command_done): ... here.
3882         * top.h (maybe_wait_sync_command_done): New declaration.
3883
3884 2014-09-11  Tom Tromey  <tromey@redhat.com>
3885             Gary Benson  <gbenson@redhat.com>
3886
3887         * common/symbol.h: New file.
3888         * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3889         * minsyms.c (find_minimal_symbol_address): New function.
3890         * common/agent.c: Include common/symbol.h.
3891         [!GDBSERVER]: Don't include objfiles.h.
3892         (agent_look_up_symbols): Use find_minimal_symbol_address.
3893
3894 2014-09-11  Gary Benson  <gbenson@redhat.com>
3895
3896         * target/target.h (target_stop_ptid, target_continue_ptid):
3897         Declare.
3898         * target.c (target_stop_ptid, target_continue_ptid): New
3899         functions.
3900         * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3901         (agent_run_command): Always use target_stop_ptid and
3902         target_continue_ptid.
3903
3904 2014-09-11  Tom Tromey  <tromey@redhat.com>
3905             Gary Benson  <gbenson@redhat.com>
3906
3907         * target/target.h: New file.
3908         * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3909         * target.h: Include target/target.h.
3910         (target_read_memory, target_write_memory): Don't declare.
3911         * target.c (target_read_uint32): New function.
3912         * common/agent.c: Include target/target.h.
3913         [!GDBSERVER]: Don't include target.h.
3914         (helper_thread_id): Type changed to uint32_t.
3915         (agent_get_helper_thread_id): Use target_read_uint32.
3916         (agent_run_command): Always use target_read_memory and
3917         target_write_memory.
3918         (agent_capability): Type changed to uint32_t.
3919         (agent_capability_check): Use target_read_uint32.
3920
3921 2014-09-11  Gary Benson  <gbenson@redhat.com>
3922
3923         * common/common-debug.h (show_debug_regs): Declare.
3924         * common/common-debug.c (show_debug_regs): Define.
3925         * aarch64-linux-nat.c (debug_hw_points): Don't define.  Replace
3926         all uses with show_debug_regs.  Replace all uses that considered
3927         debug_hw_points as a multi-value integer with straight boolean
3928         uses.
3929         * x86-nat.c (debug_hw_points): Don't define.  Replace all uses
3930         with show_debug_regs.
3931         * nat/x86-dregs.c (debug_hw_points): Don't declare.  Replace
3932         all uses with show_debug_regs.
3933         * mips-linux-nat.c (maint_show_dr): Don't define.  Replace all
3934         uses with show_debug_regs.
3935
3936 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
3937
3938         * findvar.c (address_from_register): Handle targets requiring
3939         a special conversion routine even for plain pointer types.
3940
3941 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
3942
3943         * rs6000-nat.c (exec_one_dummy_insn): Remove.
3944         (store_register): Do not call exec_one_dummy_insn.
3945
3946 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
3947
3948         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3949         dereference it first.  Use value_enclosing_type instead of
3950         value_type.
3951         (ada_array_length): Likewise.
3952
3953 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
3954
3955         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3956         Adjust function implementation and documentation accordingly.
3957         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3958         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3959         Update call to ada_value_ptr_subscript.
3960
3961 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
3962
3963         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3964         instead of VAL's type.
3965
3966 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
3967
3968         * amd64-linux-nat.c: Add <sys/uio.h> #include.
3969
3970 2014-09-09  Doug Evans  <xdje42@gmail.com>
3971
3972         PR guile/17367
3973         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3974         last parameter to pkg-config, not first.
3975         * configure.ac: Pass --with-guile provided pkg-config path to
3976         GDB_GUILE_PROGRAM_NAMES.
3977         * configure: Regenerate.
3978
3979 2014-09-09  Gabriel Krisman Bertazi  <gabriel@krisman.be>
3980
3981         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3982         Bertazi".
3983
3984 2014-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
3985
3986         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3987         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3988         the list of sections determining GDB_OSABI_IRIX.
3989
3990 2014-09-09  James Hogan  <james.hogan@imgtec.com>
3991
3992         * MAINTAINERS (Write After Approval): Add "James Hogan".
3993
3994 2014-09-09  James Hogan  <james.hogan@imgtec.com>
3995
3996         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3997
3998 2014-09-09  Joel Brobecker  <brobecker@adacore.com>
3999
4000         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
4001
4002 2014-09-08  Doug Evans  <xdje42@gmail.com>
4003
4004         PR 17247
4005         * guile.c: #include <signal.h>.
4006         (_initialize_guile): Block SIGCHLD while initializing Guile.
4007
4008         Replaces the following, which is reverted.
4009
4010         2014-07-26  Doug Evans  <xdje42@gmail.com>
4011
4012         PR 17185
4013         * configure.ac: Add check for header gc/gc.h.
4014         Add check for function setenv.
4015         * configure: Regenerate.
4016         * config.in: Regenerate.
4017         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4018
4019 2014-09-08  Doug Evans  <xdje42@gmail.com>
4020
4021         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
4022         with named constant.  Fix style of pointer comparison.
4023         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
4024
4025 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
4026
4027         PR gdb/17035
4028         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
4029         decide whether we display the command on "show user".
4030         * cli/cli-script.c (show_user_1): Only verify cmdlines after
4031         printing command name.
4032         * cli/cli-decode.h (cli_user_command_p): Declare new function.
4033         * cli/cli-decode.c (cli_user_command_p): Create helper function
4034         to verify whether cmd_list_element is a user-defined command.
4035
4036 2014-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
4037
4038         PR python/17355
4039         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
4040         Fix goto out of TRY_CATCH.
4041
4042 2014-09-06  Doug Evans  <xdje42@gmail.com>
4043             Tom Tromey  <tromey@redhat.com>
4044
4045         PR 15276
4046         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
4047         $_any_caller_matches.
4048         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
4049         * python/lib/gdb/function/caller_is.py: New file.
4050
4051 2014-09-06  Doug Evans  <xdje42@gmail.com>
4052
4053         * infcmd.c (program_info): Fix typo.
4054
4055 2014-09-05  Sergio Durigan Junior  <sergiodj@redhat.com>
4056
4057         PR gdb/17235
4058         * stap-probe.c (stap_parse_single_operand): Delete unused variable
4059         'number'.  New variable 'has_digit'.  Rewrite code to deal with
4060         subexpressions on SDT probes.
4061
4062 2014-09-04  Pedro Alves  <palves@redhat.com>
4063
4064         * c-exp.y (parse_number): Skip handling base-switching prefixes if
4065         the input is only one character long.
4066
4067 2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
4068
4069         PR fortran/17237
4070         * f-valprint.c (f_val_print): Specify the correct print option to
4071         use when printing integer values.
4072
4073 2014-09-04  Gary Benson  <gbenson@redhat.com>
4074
4075         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
4076         Remove code to cope with LWPs wrapped as PIDs.
4077         Add assertions to ensure no wrapped LWPs are passed.
4078
4079 2014-09-04  Pedro Alves  <palves@redhat.com>
4080
4081         * value.c (value_ranges_copy_adjusted): New function, factored out
4082         from ...
4083         (value_contents_copy_raw): ... here.
4084         (unpack_value_bits_as_long_1): Rename back to ...
4085         (unpack_bits_as_long): ... this.  Remove 'original_value' and
4086         'result' parameters.  Change return type to LONGEST.
4087         (unpack_value_bits_as_long): Delete.
4088         (unpack_value_field_as_long_1): Delete.
4089         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
4090         (unpack_value_bitfield): New function.
4091         (value_field_bitfield): Reimplement using unpack_value_bitfield.
4092         (value_fetch_lazy): Use unpack_value_bitfield.
4093         * value.h (unpack_value_bits_as_long): Delete declaration.
4094
4095 2014-09-03  Sasha Smundak  <asmundak@google.com>
4096
4097         * python/py-frame.c (frapy_read_register): New function.
4098
4099 2014-09-03  James Hogan  <james.hogan@imgtec.com>
4100
4101         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
4102         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
4103
4104 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
4105
4106         PR python/16699
4107         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
4108         function.
4109         (add_cmd): Set "completer_handle_brkchars" to NULL.
4110         * cli/cli-decode.h (struct cmd_list_element)
4111         <completer_handle_brkchars>: New field.
4112         * command.h (completer_ftype_void): New typedef.
4113         (set_cmd_completer_handle_brkchars): New prototype.
4114         * completer.c (set_gdb_completion_word_break_characters): New
4115         function.
4116         (complete_line_internal): Call "completer_handle_brkchars"
4117         callback from command.
4118         * completer.h: Include "command.h".
4119         (set_gdb_completion_word_break_characters): New prototype.
4120         * python/py-cmd.c (cmdpy_completer_helper): New function.
4121         (cmdpy_completer_handle_brkchars): New function.
4122         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
4123         (cmdpy_init): Set completer_handle_brkchars to
4124         cmdpy_completer_handle_brkchars.
4125
4126 2014-09-03  Gary Benson  <gbenson@redhat.com>
4127
4128         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
4129         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
4130         Loop conditions changed to equivalent form.
4131         (struct x86_debug_reg_state): Updated dr_ref_count comment.
4132         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
4133         ALL_DEBUG_ADDRESS_REGISTERS.
4134
4135 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
4136
4137         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
4138         description fix.
4139
4140 2014-09-02  Doug Evans  <dje@google.com>
4141
4142         * typeprint.c (find_global_typedef): Fix comment.
4143
4144 2014-09-02  Gary Benson  <gbenson@redhat.com>
4145
4146         * i386-nat.h: Renamed as...
4147         * x86-nat.h: New file.  All type, function and variable name
4148         prefixes changed from "i386_" to "x86_".  All references updated.
4149         * i386-nat.c: Renamed as...
4150         * x86-nat.c: New file.  All type, function and variable name
4151         prefixes changed from "i386_" to "x86_".  All references updated.
4152         * common/i386-xstate.h: Renamed as...
4153         * common/x86-xstate.h: New file.  All type, function and variable
4154         name prefixes changed from "i386_" to "x86_".  All references
4155         updated.
4156         * nat/i386-cpuid.h: Renamed as...
4157         * nat/x86-cpuid.h: New file.  All type, function and variable name
4158         prefixes changed from "i386_" to "x86_".  All references updated.
4159         * nat/i386-gcc-cpuid.h: Renamed as...
4160         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
4161         name prefixes changed from "i386_" to "x86_".  All references
4162         updated.
4163         * nat/i386-dregs.h: Renamed as...
4164         * nat/x86-dregs.h: New file.  All type, function and variable name
4165         prefixes changed from "i386_" to "x86_".  All references updated.
4166         * nat/i386-dregs.c: Renamed as...
4167         * nat/x86-dregs.c: New file.  All type, function and variable name
4168         prefixes changed from "i386_" to "x86_".  All references updated.
4169
4170 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
4171
4172         * varobj.c (_initialize_varobj): Move to the end of file.
4173
4174 2014-08-29  Gary Benson  <gbenson@redhat.com>
4175
4176         * common/common-exceptions.h: New file.
4177         * common/common-exceptions.c: Likewise.
4178         * Makefile.in (SFILES): Add common/common-exceptions.c.
4179         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
4180         (COMMON_OBS): Add common-exceptions.o.
4181         (common-exceptions.o): New rule.
4182         * exceptions.h (common-exceptions.h): Include.
4183         (gdb_setjmp.h): Do not include.
4184         (return_reason): Moved to common-exceptions.h.
4185         (enum return_reason): Likewise.
4186         (RETURN_MASK): Likewise.
4187         (typedef return_mask): Likewise.
4188         (enum errors): Likewise.
4189         (struct gdb_exception): Likewise.
4190         (exceptions_state_mc_init): Likewise.
4191         (exceptions_state_mc_action_iter): Likewise.
4192         (exceptions_state_mc_action_iter_1): Likewise.
4193         (TRY_CATCH): Likewise.
4194         (throw_exception): Likewise.
4195         (throw_verror): Likewise.
4196         (throw_vquit): Likewise.
4197         (throw_error): Likewise.
4198         (throw_quit): Likewise.
4199         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
4200         (enum catcher_action): Likewise.
4201         (struct catcher): Likewise.
4202         (current_catcher): Likewise.
4203         (catcher_list_size): Likewise.
4204         (exceptions_state_mc_init): Likewise.
4205         (catcher_pop): Likewise.
4206         (exceptions_state_mc): Likewise.
4207         (exceptions_state_mc_action_iter): Likewise.
4208         (exceptions_state_mc_action_iter_1): Likewise.
4209         (throw_exception): Likewise.
4210         (exception_messages): Likewise.
4211         (exception_messages_size): Likewise.
4212         (throw_it): Likewise.
4213         (throw_verror): Likewise.
4214         (throw_vquit): Likewise.
4215         (throw_error): Likewise.
4216         (throw_quit): Likewise.
4217         (prepare_to_throw_exception): New function.
4218
4219 2014-08-29  Gary Benson  <gbenson@redhat.com>
4220
4221         * common/gdb_setjmp.h: New file.
4222         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
4223         * configure.ac: Move sigsetjmp check...
4224         * common/common.m4: ...here.
4225         * configure: Regenerate.
4226         * cp-support.c (SIGJMP_BUF): Delete.
4227         (SIGSETJMP): Likewise.
4228         (SIGLONGJMP): Likewise.
4229         * exceptions.h (gdb_setjmp.h): Include.
4230         (setjmp.h): Do not include.
4231         (EXCEPTIONS_SIGJMP_BUF): Delete.
4232         (EXCEPTIONS_SIGSETJMP): Likewise.
4233         (EXCEPTIONS_SIGLONGJMP): Likewise.
4234         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
4235         from gdb_setjmp.h.
4236         * exceptions.c: Likewise.
4237
4238 2014-08-29  Gary Benson  <gbenson@redhat.com>
4239
4240         * cleanups.h: Moved to...
4241         * common/cleanups.h: New file.
4242         * cleanups.c: Moved to...
4243         * common/cleanups.c: New file.  Include common-defs.h and
4244         cleanups.h.  Do not include defs.h.
4245         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
4246         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
4247         (cleanups.o): New rule.
4248
4249 2014-08-29  Gary Benson  <gbenson@redhat.com>
4250
4251         * common/errors.h (internal_warning): New declaration.
4252         (internal_vwarning): Likewise.
4253         * common/errors.c (internal_warning): New function.
4254         * utils.h (internal_warning): Don't declare.
4255         (internal_vwarning): Likewise.
4256         * utils.c (internal_warning): Removed.
4257
4258 2014-08-29  Gary Benson  <gbenson@redhat.com>
4259
4260         * main.c (captured_main): Use warning during startup.
4261         Prefix startup warning messages with command name.
4262
4263 2014-08-29  Gary Benson  <gbenson@redhat.com>
4264
4265         * main.c (captured_main): Handle usage errors with error.
4266
4267 2014-08-29  Gary Benson  <gbenson@redhat.com>
4268
4269         * go32-nat.c (go32_create_inferior): Replace a fprintf/
4270         exit pair with a call to error.  Wrap the message with _().
4271
4272 2014-08-29  Gary Benson  <gbenson@redhat.com>
4273
4274         * main.c (captured_main): Replace a fprintf/exit
4275         pair with a call to error.  Wrap the message with _().
4276
4277 2014-08-29  Gary Benson  <gbenson@redhat.com>
4278
4279         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
4280         pairs with calls to error.  Wrap the message with _().
4281
4282 2014-08-29  Gary Benson  <gbenson@redhat.com>
4283
4284         * utils.c (vwarning): Protect calls to target_terminal_ours
4285         and wrap_here.
4286
4287 2014-08-29  Gary Benson  <gbenson@redhat.com>
4288
4289         * exceptions.c (print_flush): Protect calls to
4290         target_terminal_ours and wrap_here.
4291
4292 2014-08-29  Gary Benson  <gbenson@redhat.com>
4293
4294         * utils.h (filtered_printing_initialized): New declaration.
4295         * utils.c (abort_with_message): New function.
4296         (internal_vproblem): Use abort_with_message for first level
4297         recursive internal problems, and if gdb_stderr is not set up.
4298         Protect calls to target_terminal_ours, begin_line and query.
4299
4300 2014-08-28  Doug Evans  <dje@google.com>
4301
4302         * symtab.c (in_prologue): Move definition to better spot.
4303         (skip_prologue_using_sal): Ditto.
4304
4305 2014-08-28  Doug Evans  <dje@google.com>
4306
4307         * symtab.c (find_function_start_sal): Move definition to better spot.
4308
4309 2014-08-28  Yao Qi  <yao@codesourcery.com>
4310
4311         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
4312         found_stack_adjust in forward scan.  Remove condition check
4313         on found_stack_adjust which is always true.  Indent the code.
4314
4315 2014-08-28  Yao Qi  <yao@codesourcery.com>
4316
4317         * dwarf2read.c (dwarf_decode_lines): Update declaration.
4318         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
4319         (dwarf_decode_lines): Remove argument
4320         want_line_info.  Remove condition check on want_line_info.
4321         Callers update.
4322
4323 2014-08-27  Doug Evans  <dje@google.com>
4324
4325         * dwarf2read.c (dwarf_record_line): Fix typo.
4326
4327 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
4328
4329         * target.h (struct target_ops::to_terminal_save_ours): Remove
4330         declaration.
4331         (target_terminal_save_ours): Remove macro.
4332         * target-delegates.c: Regenerate.
4333         * inf-child.c (inf_child_target): Don't set the nonexistent
4334         field to_terminal_save_ours.
4335         * inferior.h (child_terminal_save_ours): Remove declaration.
4336         * terminal.h (gdb_save_tty_state): New declaration.
4337         * inflow.c (child_terminal_save_ours): Rename to ...
4338         (gdb_save_tty_state): ... this.
4339         * tui/tui.c: Include terminal.h.
4340         (tui_enable): Use gdb_save_tty_state instead of
4341         target_terminal_save_ours.
4342         (tui_disable): Likewise.
4343
4344 2014-08-25  Doug Evans  <dje@google.com>
4345
4346         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
4347         Pass NULL instead of 0 for context pointer.
4348
4349 2014-08-25  Yao Qi  <yao@codesourcery.com>
4350
4351         * dwarf2read.c: Fix grammatical error.
4352
4353 2014-08-24  Yao Qi  <yao@codesourcery.com>
4354
4355         * dwarf2read.c (scan_partial_symbols):  Update comments.
4356         Rename argument 'need_pc' with 'set_addrmap'.
4357         ï¼ˆadd_partial_namespace): Rename argument 'need_pc' with
4358         'set_addrmap'.
4359         (add_partial_module): Likewise.
4360         (add_partial_subprogram): Likewise.  Update comments.
4361         (dwarf2_name): Fix typo.
4362
4363 2014-08-22  Doug Evans  <dje@google.com>
4364
4365         PR 17276
4366         * dwarf2read.c (dwarf_record_line_p): New function.
4367         (dwarf_decode_lines_1): Ignore subsequent line number entries
4368         for the same line if any entry had a non-zero discriminator.
4369
4370 2014-08-22  Doug Evans  <dje@google.com>
4371
4372         * buildsym.h (record_line_ftype): New typedef.
4373         (record_line): Use it.
4374         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
4375         (dwarf_decode_lines_1): Call them.
4376
4377 2014-08-22  Yao Qi  <yao@codesourcery.com>
4378
4379         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
4380         (ctf_end): Remove code.
4381
4382 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
4383
4384         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
4385         (linux_make_corefile_notes): call update_thread_list, protected against
4386         exceptions.
4387
4388 2014-08-21  Pedro Alves  <palves@redhat.com>
4389
4390         * infcmd.c (attach_command): Remove comment.
4391
4392 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
4393
4394         * aarch64-linux-nat.c (dr_changed_t): Change the type from
4395         unsigned LONGEST to ULONGEST.
4396
4397 2014-08-20  Pedro Alves  <palves@redhat.com>
4398
4399         * Makefile.in (check-read1): New rule.
4400
4401 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
4402
4403         * value.c (value_from_contents_and_address): Strip resolved_type's
4404         typedef layers before checking its TYPE_DATA_LOCATION.
4405
4406 2014-08-20  Pedro Alves  <palves@redhat.com>
4407
4408         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
4409
4410 2014-08-20  Yao Qi  <yao@codesourcery.com>
4411
4412         * amd64-tdep.c (amd64_classify): Add a blank line after the
4413         example.  Move "*/" to a new line.
4414         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
4415         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
4416         * dwarf2read.c (psymtab_include_file_name): Likewise.
4417
4418 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
4419             Pedro Alves  <palves@redhat.com>
4420
4421         PR symtab/14604
4422         PR symtab/14605
4423         * ada-lang.c (coerce_unspec_val_to_type): Use
4424         value_contents_copy_raw.
4425         * ada-valprint.c (val_print_packed_array_elements): Adjust.
4426         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
4427         * cp-valprint.c (cp_print_value_fields): Let the common printing
4428         code handle optimized out values.
4429         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
4430         * d-valprint.c (dynamic_array_type): Use
4431         value_bits_any_optimized_out.
4432         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
4433         check_any_valid fields.
4434         (check_pieced_value_bits): Delete and inline ...
4435         (check_pieced_synthetic_pointer): ... here.
4436         (check_pieced_value_validity): Delete.
4437         (check_pieced_value_invalid): Delete.
4438         (pieced_value_funcs): Remove check_validity and check_any_valid
4439         fields.
4440         (read_pieced_value): Use mark_value_bits_optimized_out.
4441         (write_pieced_value): Switch to use
4442         mark_value_bytes_optimized_out.
4443         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
4444         of assuming the whole value is optimized out.
4445         * findvar.c (read_frame_register_value): Remove special handling
4446         of optimized out registers.
4447         (value_from_register): Use mark_value_bytes_optimized_out.
4448         * frame-unwind.c (frame_unwind_got_optimized): Use
4449         mark_value_bytes_optimized_out.
4450         * jv-valprint.c (java_value_print): Adjust.
4451         (java_print_value_fields): Let the common printing code handle
4452         optimized out values.
4453         * mips-tdep.c (mips_print_register): Remove special handling of
4454         optimized out registers.
4455         * opencl-lang.c (lval_func_check_validity): Delete.
4456         (lval_func_check_any_valid): Delete.
4457         (opencl_value_funcs): Remove check_validity and check_any_valid
4458         fields.
4459         * p-valprint.c (pascal_object_print_value_fields): Let the common
4460         printing code handle optimized out values.
4461         * stack.c (read_frame_arg): Remove special handling of optimized
4462         out values.  Fetch both VAL and ENTRYVAL before comparing
4463         contents.  Adjust to value_available_contents_eq rename.
4464         * valprint.c (valprint_check_validity)
4465         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
4466         (val_print_array_elements): Adjust.
4467         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
4468         (value_bits_any_optimized_out): New function.
4469         (value_entirely_covered_by_range_vector): New function, factored
4470         out from value_entirely_unavailable.
4471         (value_entirely_unavailable): Reimplement.
4472         (value_entirely_optimized_out): New function.
4473         (insert_into_bit_range_vector): New function, factored out from
4474         mark_value_bits_unavailable.
4475         (mark_value_bits_unavailable): Reimplement.
4476         (struct ranges_and_idx): New struct.
4477         (find_first_range_overlap_and_match): New function, factored out
4478         from value_available_contents_bits_eq.
4479         (value_available_contents_bits_eq): Rename to ...
4480         (value_contents_bits_eq): ... this.  Check both unavailable
4481         contents and optimized out contents.
4482         (value_available_contents_eq): Rename to ...
4483         (value_contents_eq): ... this.
4484         (allocate_value_lazy): Remove reference to the old optimized_out
4485         boolean.
4486         (allocate_optimized_out_value): Use
4487         mark_value_bytes_optimized_out.
4488         (require_not_optimized_out): Adjust to check whether the
4489         optimized_out vec is empty.
4490         (ranges_copy_adjusted): New function, factored out from
4491         value_contents_copy_raw.
4492         (value_contents_copy_raw): Also copy the optimized out ranges.
4493         Assert the destination ranges aren't optimized out.
4494         (value_contents_copy): Update comment, remove call to
4495         require_not_optimized_out.
4496         (value_contents_equal): Adjust to check whether the optimized_out
4497         vec is empty.
4498         (set_value_optimized_out, value_optimized_out_const): Delete.
4499         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4500         New functions.
4501         (value_entirely_optimized_out, value_bits_valid): Delete.
4502         (value_copy): Take a VEC copy of the 'optimized_out' field.
4503         (value_primitive_field): Remove special handling of optimized out.
4504         (value_fetch_lazy): Assert that lazy values have no unavailable
4505         regions.  Use value_bits_any_optimized_out.  Remove some special
4506         handling for optimized out values.
4507         * value.h: Add intro comment about <optimized out> and
4508         <unavailable>.
4509         (struct lval_funcs): Remove check_validity and check_any_valid
4510         fields.
4511         (set_value_optimized_out, value_optimized_out_const): Remove.
4512         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
4513         New declarations.
4514         (value_bits_any_optimized_out): New declaration.
4515         (value_bits_valid): Delete declaration.
4516         (value_available_contents_eq): Rename to ...
4517         (value_contents_eq): ... this, and extend comments.
4518
4519 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
4520
4521         Fix -fsanitize=address on unreadable inferior strings.
4522         * valprint.c (val_print_string): Fix access before BUFFER.
4523
4524 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
4525
4526         * target.c (target_struct_size): Remove.
4527         (target_struct_allocsize): Remove.
4528         (DEFAULT_ALLOCSIZE): Remove.
4529         (target_ops_p): New typedef.
4530         (DEF_VEC_P (target_ops_p)): New vector type.
4531         (target_structs): Change type to VEC (target_ops_p).
4532         (add_target_with_completer): Replace "push" code by VEC_safe_push.
4533         (find_default_run_target): Rewrite for loop following changes to
4534         target_structs.
4535
4536 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
4537
4538         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
4539         Adjust code accordingly.  Adjust function description comment.
4540
4541 2014-08-19  Yao Qi  <yao@codesourcery.com>
4542
4543         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
4544         types.
4545
4546 2014-08-19  Alan Modra  <amodra@gmail.com>
4547
4548         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
4549         * config.in: Regenerate.
4550         * configure: Regenerate.
4551
4552 2014-08-19  Tom Tromey  <tromey@redhat.com>
4553             Gary Benson  <gbenson@redhat.com>
4554
4555         * common/common-debug.h: New file.
4556         * common/common-debug.c: Likewise.
4557         * debug.c: Likewise.
4558         * Makefile.in (SFILES): Add common/common-debug.c.
4559         (HFILES_NO_SRCDIR): Add common/common-debug.h.
4560         (COMMON_OBS): Add common-debug.o and debug.o.
4561         (common-debug.o): New rule.
4562         * common/common-defs.h: Include common-debug.h.
4563         * common/agent.c (debug_agent_printf): New function.
4564         (DEBUG_AGENT): Redefine.
4565         * nat/i386-dregs.c (debug_printf): Undefine.
4566
4567 2014-08-19  Gary Benson  <gbenson@redhat.com>
4568
4569         * common/common-defs.h: Include print-utils.h.
4570         * utils.h: Do not include print-utils.h.
4571
4572 2014-08-19  Tom Tromey  <tromey@redhat.com>
4573             Gary Benson  <gbenson@redhat.com>
4574
4575         * common/common-types.h: New file.
4576         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
4577         * common/common-defs.h: Include common-types.h.
4578         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
4579         (ULONGEST): Remove.
4580
4581 2014-08-19  Tom Tromey  <tromey@redhat.com>
4582             Gary Benson  <gbenson@redhat.com>
4583
4584         * common/errors.h: New file.
4585         * common/errors.c: Likewise.
4586         * Makefile.in (SFILES): Add common/errors.c.
4587         (HFILES_NO_SRCDIR): Add common/errors.h.
4588         (COMMON_OBS): Add errors.o.
4589         (errors.o): New rule.
4590         * common/common-defs.h: Include errors.h.
4591         * utils.h (perror_with_name, error, verror, warning, vwarning):
4592         Don't declare.
4593         * common/common-utils.h: (malloc_failure, internal_error):
4594         Likewise.
4595
4596 2014-08-19  Gary Benson  <gbenson@redhat.com>
4597
4598         * utils.c (internal_vproblem): Always print the message.
4599
4600 2014-08-18  Doug Evans  <dje@google.com>
4601
4602         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
4603
4604 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
4605
4606         * ada-typeprint.c (type_is_full_subrange_of_target_type):
4607         Return 0 if TYPE is dynamic.
4608         (print_range): Add handling of dynamic ranges.
4609
4610 2014-08-18  Keven Boell  <keven.boell@intel.com>
4611             Joel Brobecker  <brobecker@adacore.com>
4612
4613         * gdbtypes.h (struct main_type): Add field "data_location".
4614         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
4615         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
4616         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
4617         a dynamic data location.
4618         (resolve_dynamic_type): Add DW_AT_data_location handling.
4619         (copy_recursive, copy_type): Copy the data_location information
4620         when present.
4621         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
4622         * value.c (value_from_contents_and_address): Add
4623         DW_AT_data_location handling.
4624
4625 2014-08-18  Keven Boell  <keven.boell@intel.com>
4626             Joel Brobecker  <brobecker@adacore.com>
4627
4628         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
4629         field "get_object_address".
4630         * dwarf2expr.c (execute_stack_op): Add handling for
4631         DW_OP_push_object_address.
4632         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
4633         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
4634         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
4635         (dwarf_expr_get_obj_addr): New function.
4636         (dwarf_expr_ctx_funcs): Add get_object_address field.
4637         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
4638         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
4639         (dwarf2_evaluate_property): Add parameter "address".  Use it.
4640         (needs_get_obj_addr): New function.
4641         (needs_frame_ctx_funcs): Add get_object_address field.
4642         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
4643         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
4644         (resolve_dynamic_array): Likewise.
4645
4646 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
4647
4648         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
4649         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
4650         fixed value for records and unions for which some GNAT encodings
4651         are present.
4652
4653 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
4654
4655         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
4656         rewrite to avoid "else if" and "else" constructs.  Should be
4657         a no-op in practice.
4658
4659 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
4660
4661         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
4662         of lexical block.
4663
4664 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
4665
4666         PR c++/17132
4667         * eval.c: Update all calls to find_overload_match.
4668         * valarith.c: Likewise.
4669         (value_user_defined_cpp_op, value_user_defined_op): New
4670         argument NOSIDE.  Update all callers.
4671         * valops.c (find_overload_match): New argument NOSIDE.
4672         * value.h (find_overload_match): Update signature.
4673
4674 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
4675
4676         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
4677         'items' methods instead of 'iteritems' method on dictionaries.
4678
4679 2014-08-15  Doug Evans  <dje@google.com>
4680
4681         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
4682         closer to use.
4683
4684 2014-08-15  Doug Evans  <dje@google.com>
4685
4686         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
4687
4688 2014-08-15  Doug Evans  <dje@google.com>
4689
4690         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
4691
4692 2014-08-15  Doug Evans  <dje@google.com>
4693
4694         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
4695         unused.
4696
4697 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
4698
4699         * dcache.h: Include target.h, to avoid compile time warnings.
4700
4701 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
4702
4703         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
4704         frame_info" partial declaration.
4705         * gdbarch.h: Regenerate.
4706
4707 2014-08-15  Yao Qi  <yao@codesourcery.com>
4708
4709         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
4710         Add parameter 'decode_for_pst_p'.  Callers update.
4711
4712 2014-08-13  Yao Qi  <yao@codesourcery.com>
4713
4714         PR build/17104
4715         * configure.ac: Use local variable 'pos'.
4716         * configure: Regenerated.
4717
4718 2014-08-11  Doug Evans  <dje@google.com>
4719
4720         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
4721         message, it is redundant with "Reading symbols from ..." message.
4722
4723 2014-08-10  Doug Evans  <xdje42@gmail.com>
4724
4725         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
4726
4727 2014-08-09  Yao Qi  <yao@codesourcery.com>
4728
4729         PR remote/9053
4730         * remote.c (remote_xfer_partial): Remove dead code.
4731
4732 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4733
4734         * ia64-linux-tdep.c: Include "regset.h".
4735         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
4736         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
4737         (ia64_linux_supply_fpregset): New function.
4738         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
4739         (ia64_linux_regset_from_core_section): New function.
4740         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
4741         method.
4742
4743 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4744
4745         * m68klinux-tdep.c: Include "regset.h".
4746         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
4747         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
4748         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
4749         (m68k_linux_regset_from_core_section): New function.
4750         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
4751         method.
4752
4753 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4754
4755         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
4756         function.  Move logic to...
4757         (tilegx_linux_regmap): ... this new register map.
4758         (tilegx_linux_regset): Refer to register map, replace supply
4759         method by regcache_supply_regset, and add collect method.
4760         * tilegx-tdep.h (enum tilegx_regnum): New enum value
4761         TILEGX_FIRST_EASY_REGNUM.
4762
4763 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4764
4765         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
4766         that calls regcache_supply_regset and handles the EPC register
4767         separately.  Move main logic to...
4768         (score7_linux_gregmap): ... this new register map.
4769         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
4770         (score7_linux_gregset): Refer to register map.  Add collect method.
4771         (score7_linux_regset_from_core_section): Replace
4772         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
4773         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
4774         (struct regset): Delete unused forward declaraction.
4775         (struct pt_regs): Delete structure definition.
4776         (elf_gregset_t): Delete typedef.
4777
4778 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4779
4780         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
4781         (nios2_core_regset): Add collect method.
4782
4783 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4784
4785         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
4786         platform-independent and don't write to read-only input buffer.
4787         (m32r_linux_collect_gregset): New function.
4788         (m32r_linux_gregset): Add collect method.
4789
4790 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4791
4792         * hppa-linux-tdep.c (greg_map): Rename to...
4793         (hppa_linux_gregmap): ... this.  Also convert to
4794         regcache_map_entry format.
4795         (hppa_linux_supply_regset): Delete function.
4796         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
4797         (hppa_linux_fpregmap): ... this new register map.
4798         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
4799         register map, replace supply method by regcache_supply_regset, and
4800         add collect method regcache_collect_regset.
4801
4802 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4803
4804         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4805         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4806         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4807         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4808         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4809         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4810         (frv_linux_supply_gregset): Replace main logic by call to
4811         regcache_supply_regset, but keep clearing gr32-gr63.
4812         (frv_linux_supply_fpregset): Delete function.
4813         (frv_linux_gregset): Refer to appropriate register map and add
4814         regcache_collect_regset as the collect method.
4815         (frv_linux_fpregset): Likewise.  Also exchange the supply method
4816         by regcache_supply_regset.
4817
4818 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4819
4820         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4821         by call to alpha_supply_int_regs.
4822         (alpha_linux_collect_gregset): New function.
4823         (alpha_linux_supply_fpregset): Replace logic by call to
4824         alpha_supply_fp_regs.
4825         (alpha_linux_collect_fpregset): New function.
4826         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4827
4828 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4829
4830         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4831         by call to regcache_collect_regset.
4832         (supply_gregset, supply_fpregset): Call regcache_supply_regset
4833         instead of aarch64_linux_supply_gregset/_fpregset.
4834         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4835         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4836         header file instead.
4837         (aarch64_linux_supply_gregset, supply_gregset_from_core)
4838         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4839         functions.  Move logic to ...
4840         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4841         register maps.
4842         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4843         refer to new register maps, replace *_regset_from_core by
4844         regcache_supply_regset, and also use regcache_collect_regset.
4845         * aarch64-linux-tdep.h: Include "regset.h".
4846         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4847         Delete prototypes.
4848         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4849         macros, moved from C source file.
4850         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4851         variable declarations.
4852
4853 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4854
4855         * s390-linux-nat.c: Include "regset.h".
4856         (regmap_gregset): Delete macro.
4857         (s390_64_regmap_gregset): New register map for
4858         regcache_supply/_collect_regset.
4859         (s390_64_gregset): New regset.
4860         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4861         (regmap_fpregset): Delete macro.
4862         (s390_native_supply, s390_native_collect): Delete functions.
4863         (supply_gregset, fill_gregset): Replace s390-specific regmap
4864         handling by a call to regcache_supply/_collect_regset.
4865         (supply_fpregset, fill_fpregset): Call regcache_supply/
4866         _collect_regset instead of s390_native_supply/_collect.
4867         (fetch_regset, store_regset): Likewise.  Also change the last
4868         parameter to a regset instead of a regmap.
4869         (s390_linux_fetch_inferior_registers)
4870         (390_linux_store_inferior_registers): Adjust last parameter in
4871         calls to fetch_regset and store_regset.
4872         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4873         (s390_gregmap): ... this.  Also make static const and convert to
4874         regcache_map_entry format.
4875         (s390x_regmap_gregset): Delete.
4876         (s390_regmap_fpregset): Rename to...
4877         (s390_fpregmap): ... this.  Make static const and convert to
4878         regcache_map_entry format.
4879         (s390_regmap_upper, s390_regmap_last_break)
4880         (s390x_regmap_last_break, s390_regmap_system_call)
4881         (s390_regmap_tdb): Likewise.
4882         (s390_supply_regset, s390_collect_regset): Remove functions.
4883         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4884         s390_supply_regset.
4885         (s390_gregset, s390_fpregset, s390_upper_regset)
4886         (s390_last_break_regset, s390x_last_break_regset)
4887         (s390_system_call_regset, s390_tdb_regset): Make global and
4888         replace s390_supply/_collect_regset by regcache_supply/
4889         _collect_regset.
4890         (s390x_gregset): Delete.
4891         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4892         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4893         (s390_regmap_fpregset, s390_regmap_last_break)
4894         (s390x_regmap_last_break, s390_regmap_system_call)
4895         (s390_regmap_tdb): Delete global variable declarations.
4896         (s390_gregset, s390_fpregset, s390_last_break_regset)
4897         (s390x_last_break_regset, s390_system_call_regset)
4898         (s390_tdb_regset): New global variable declarations.
4899
4900 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4901
4902         * regcache.c: Include "regset.h".
4903         (regcache_transfer_regset): New local function.
4904         (regcache_supply_regset, regcache_collect_regset): New functions.
4905         * regcache.h (struct regcache_map_entry): New structure.
4906         (REGCACHE_MAP_SKIP): New enum value.
4907         (regcache_supply_regset, regcache_collect_regset): New prototypes.
4908
4909 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
4910
4911         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4912         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4913         (ppc_linux_collect_gregset ): Likewise.
4914         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4915         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4916         (ppc_collect_vrregset): Likewise.
4917         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4918         Likewise.
4919
4920 2014-08-07  Yao Qi  <yao@codesourcery.com>
4921
4922         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4923         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4924         * remote.c (remote_read_bytes): Likewise.
4925
4926 2014-08-07  Yao Qi  <yao@codesourcery.com>
4927
4928         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4929
4930 2014-08-07  Yao Qi  <yao@codesourcery.com>
4931
4932         PR remote/17230
4933         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4934         TARGET_XFER_OK instead of 0.
4935
4936 2014-08-07  Gary Benson  <gbenson@redhat.com>
4937
4938         * common/common-defs.h: Include errno.h.
4939         * defs.h: Do not include errno.h.
4940         * ada-typeprint.c: Likewise.
4941         * c-typeprint.c: Likewise.
4942         * core-regset.c: Likewise.
4943         * corefile.c: Likewise.
4944         * corelow.c: Likewise.
4945         * event-loop.c: Likewise.
4946         * f-typeprint.c: Likewise.
4947         * gnu-nat.c: Likewise.
4948         * go32-nat.c: Likewise.
4949         * i386gnu-nat.c: Likewise.
4950         * m2-typeprint.c: Likewise.
4951         * nat/linux-btrace.c: Likewise.
4952         * p-typeprint.c: Likewise.
4953         * procfs.c: Likewise.
4954         * remote-sim.c: Likewise.
4955         * rs6000-nat.c: Likewise.
4956         * target.c: Likewise.
4957         * typeprint.c: Likewise.
4958         * ui-file.c: Likewise.
4959         * valops.c: Likewise.
4960         * valprint.c: Likewise.
4961
4962 2014-08-07  Gary Benson  <gbenson@redhat.com>
4963
4964         * common/common-defs.h: Include string.h.
4965         * aarch64-tdep.c: Do not include string.h.
4966         * ada-exp.y: Likewise.
4967         * ada-lang.c: Likewise.
4968         * ada-lex.l: Likewise.
4969         * ada-typeprint.c: Likewise.
4970         * ada-valprint.c: Likewise.
4971         * aix-thread.c: Likewise.
4972         * alpha-linux-tdep.c: Likewise.
4973         * alpha-mdebug-tdep.c: Likewise.
4974         * alpha-nat.c: Likewise.
4975         * alpha-osf1-tdep.c: Likewise.
4976         * alpha-tdep.c: Likewise.
4977         * alphanbsd-tdep.c: Likewise.
4978         * amd64-dicos-tdep.c: Likewise.
4979         * amd64-linux-tdep.c: Likewise.
4980         * amd64-nat.c: Likewise.
4981         * amd64-sol2-tdep.c: Likewise.
4982         * amd64fbsd-tdep.c: Likewise.
4983         * amd64obsd-tdep.c: Likewise.
4984         * arch-utils.c: Likewise.
4985         * arm-linux-nat.c: Likewise.
4986         * arm-linux-tdep.c: Likewise.
4987         * arm-tdep.c: Likewise.
4988         * arm-wince-tdep.c: Likewise.
4989         * armbsd-tdep.c: Likewise.
4990         * armnbsd-nat.c: Likewise.
4991         * armnbsd-tdep.c: Likewise.
4992         * armobsd-tdep.c: Likewise.
4993         * avr-tdep.c: Likewise.
4994         * ax-gdb.c: Likewise.
4995         * ax-general.c: Likewise.
4996         * bcache.c: Likewise.
4997         * bfin-tdep.c: Likewise.
4998         * breakpoint.c: Likewise.
4999         * build-id.c: Likewise.
5000         * buildsym.c: Likewise.
5001         * c-exp.y: Likewise.
5002         * c-lang.c: Likewise.
5003         * c-typeprint.c: Likewise.
5004         * c-valprint.c: Likewise.
5005         * charset.c: Likewise.
5006         * cli-out.c: Likewise.
5007         * cli/cli-cmds.c: Likewise.
5008         * cli/cli-decode.c: Likewise.
5009         * cli/cli-dump.c: Likewise.
5010         * cli/cli-interp.c: Likewise.
5011         * cli/cli-logging.c: Likewise.
5012         * cli/cli-script.c: Likewise.
5013         * cli/cli-setshow.c: Likewise.
5014         * cli/cli-utils.c: Likewise.
5015         * coffread.c: Likewise.
5016         * common/agent.c: Likewise.
5017         * common/buffer.c: Likewise.
5018         * common/buffer.h: Likewise.
5019         * common/common-utils.c: Likewise.
5020         * common/filestuff.c: Likewise.
5021         * common/filestuff.c: Likewise.
5022         * common/format.c: Likewise.
5023         * common/print-utils.c: Likewise.
5024         * common/rsp-low.c: Likewise.
5025         * common/signals.c: Likewise.
5026         * common/vec.h: Likewise.
5027         * common/xml-utils.c: Likewise.
5028         * core-regset.c: Likewise.
5029         * corefile.c: Likewise.
5030         * corelow.c: Likewise.
5031         * cp-abi.c: Likewise.
5032         * cp-name-parser.y: Likewise.
5033         * cp-support.c: Likewise.
5034         * cp-valprint.c: Likewise.
5035         * cris-tdep.c: Likewise.
5036         * d-exp.y: Likewise.
5037         * darwin-nat.c: Likewise.
5038         * dbxread.c: Likewise.
5039         * dcache.c: Likewise.
5040         * demangle.c: Likewise.
5041         * dicos-tdep.c: Likewise.
5042         * disasm.c: Likewise.
5043         * doublest.c: Likewise.
5044         * dsrec.c: Likewise.
5045         * dummy-frame.c: Likewise.
5046         * dwarf2-frame.c: Likewise.
5047         * dwarf2loc.c: Likewise.
5048         * dwarf2read.c: Likewise.
5049         * elfread.c: Likewise.
5050         * environ.c: Likewise.
5051         * eval.c: Likewise.
5052         * event-loop.c: Likewise.
5053         * exceptions.c: Likewise.
5054         * exec.c: Likewise.
5055         * expprint.c: Likewise.
5056         * f-exp.y: Likewise.
5057         * f-lang.c: Likewise.
5058         * f-typeprint.c: Likewise.
5059         * f-valprint.c: Likewise.
5060         * fbsd-nat.c: Likewise.
5061         * findcmd.c: Likewise.
5062         * findvar.c: Likewise.
5063         * fork-child.c: Likewise.
5064         * frame.c: Likewise.
5065         * frv-linux-tdep.c: Likewise.
5066         * frv-tdep.c: Likewise.
5067         * gdb.c: Likewise.
5068         * gdb_bfd.c: Likewise.
5069         * gdbarch.c: Likewise.
5070         * gdbarch.sh: Likewise.
5071         * gdbtypes.c: Likewise.
5072         * gnu-nat.c: Likewise.
5073         * gnu-v2-abi.c: Likewise.
5074         * gnu-v3-abi.c: Likewise.
5075         * go-exp.y: Likewise.
5076         * go-lang.c: Likewise.
5077         * go32-nat.c: Likewise.
5078         * guile/guile.c: Likewise.
5079         * guile/scm-auto-load.c: Likewise.
5080         * hppa-hpux-tdep.c: Likewise.
5081         * hppa-linux-nat.c: Likewise.
5082         * hppanbsd-tdep.c: Likewise.
5083         * hppaobsd-tdep.c: Likewise.
5084         * i386-cygwin-tdep.c: Likewise.
5085         * i386-dicos-tdep.c: Likewise.
5086         * i386-linux-tdep.c: Likewise.
5087         * i386-nto-tdep.c: Likewise.
5088         * i386-sol2-tdep.c: Likewise.
5089         * i386-tdep.c: Likewise.
5090         * i386bsd-tdep.c: Likewise.
5091         * i386gnu-nat.c: Likewise.
5092         * i386nbsd-tdep.c: Likewise.
5093         * i386obsd-tdep.c: Likewise.
5094         * i387-tdep.c: Likewise.
5095         * ia64-libunwind-tdep.c: Likewise.
5096         * ia64-linux-nat.c: Likewise.
5097         * inf-child.c: Likewise.
5098         * inf-ptrace.c: Likewise.
5099         * inf-ttrace.c: Likewise.
5100         * infcall.c: Likewise.
5101         * infcmd.c: Likewise.
5102         * inflow.c: Likewise.
5103         * infrun.c: Likewise.
5104         * interps.c: Likewise.
5105         * iq2000-tdep.c: Likewise.
5106         * irix5-nat.c: Likewise.
5107         * jv-exp.y: Likewise.
5108         * jv-lang.c: Likewise.
5109         * jv-typeprint.c: Likewise.
5110         * jv-valprint.c: Likewise.
5111         * language.c: Likewise.
5112         * linux-fork.c: Likewise.
5113         * linux-nat.c: Likewise.
5114         * lm32-tdep.c: Likewise.
5115         * m2-exp.y: Likewise.
5116         * m2-typeprint.c: Likewise.
5117         * m32c-tdep.c: Likewise.
5118         * m32r-linux-nat.c: Likewise.
5119         * m32r-linux-tdep.c: Likewise.
5120         * m32r-rom.c: Likewise.
5121         * m32r-tdep.c: Likewise.
5122         * m68hc11-tdep.c: Likewise.
5123         * m68k-tdep.c: Likewise.
5124         * m68kbsd-tdep.c: Likewise.
5125         * m68klinux-nat.c: Likewise.
5126         * m68klinux-tdep.c: Likewise.
5127         * m88k-tdep.c: Likewise.
5128         * machoread.c: Likewise.
5129         * macrocmd.c: Likewise.
5130         * main.c: Likewise.
5131         * mdebugread.c: Likewise.
5132         * mem-break.c: Likewise.
5133         * memattr.c: Likewise.
5134         * memory-map.c: Likewise.
5135         * mep-tdep.c: Likewise.
5136         * mi/mi-cmd-break.c: Likewise.
5137         * mi/mi-cmd-disas.c: Likewise.
5138         * mi/mi-cmd-env.c: Likewise.
5139         * mi/mi-cmd-stack.c: Likewise.
5140         * mi/mi-cmd-var.c: Likewise.
5141         * mi/mi-cmds.c: Likewise.
5142         * mi/mi-console.c: Likewise.
5143         * mi/mi-getopt.c: Likewise.
5144         * mi/mi-interp.c: Likewise.
5145         * mi/mi-main.c: Likewise.
5146         * mi/mi-parse.c: Likewise.
5147         * microblaze-rom.c: Likewise.
5148         * microblaze-tdep.c: Likewise.
5149         * mingw-hdep.c: Likewise.
5150         * minidebug.c: Likewise.
5151         * minsyms.c: Likewise.
5152         * mips-irix-tdep.c: Likewise.
5153         * mips-linux-tdep.c: Likewise.
5154         * mips-tdep.c: Likewise.
5155         * mips64obsd-tdep.c: Likewise.
5156         * mipsnbsd-tdep.c: Likewise.
5157         * mipsread.c: Likewise.
5158         * mn10300-linux-tdep.c: Likewise.
5159         * mn10300-tdep.c: Likewise.
5160         * monitor.c: Likewise.
5161         * moxie-tdep.c: Likewise.
5162         * mt-tdep.c: Likewise.
5163         * nat/linux-btrace.c: Likewise.
5164         * nat/linux-osdata.c: Likewise.
5165         * nat/linux-procfs.c: Likewise.
5166         * nat/linux-ptrace.c: Likewise.
5167         * nat/linux-waitpid.c: Likewise.
5168         * nbsd-tdep.c: Likewise.
5169         * nios2-linux-tdep.c: Likewise.
5170         * nto-procfs.c: Likewise.
5171         * nto-tdep.c: Likewise.
5172         * objc-lang.c: Likewise.
5173         * objfiles.c: Likewise.
5174         * opencl-lang.c: Likewise.
5175         * osabi.c: Likewise.
5176         * osdata.c: Likewise.
5177         * p-exp.y: Likewise.
5178         * p-lang.c: Likewise.
5179         * p-typeprint.c: Likewise.
5180         * parse.c: Likewise.
5181         * posix-hdep.c: Likewise.
5182         * ppc-linux-nat.c: Likewise.
5183         * ppc-sysv-tdep.c: Likewise.
5184         * ppcfbsd-tdep.c: Likewise.
5185         * ppcnbsd-tdep.c: Likewise.
5186         * ppcobsd-tdep.c: Likewise.
5187         * printcmd.c: Likewise.
5188         * procfs.c: Likewise.
5189         * prologue-value.c: Likewise.
5190         * python/py-auto-load.c: Likewise.
5191         * python/py-gdb-readline.c: Likewise.
5192         * ravenscar-thread.c: Likewise.
5193         * regcache.c: Likewise.
5194         * registry.c: Likewise.
5195         * remote-fileio.c: Likewise.
5196         * remote-m32r-sdi.c: Likewise.
5197         * remote-mips.c: Likewise.
5198         * remote-notif.c: Likewise.
5199         * remote-sim.c: Likewise.
5200         * remote.c: Likewise.
5201         * reverse.c: Likewise.
5202         * rs6000-aix-tdep.c: Likewise.
5203         * ser-base.c: Likewise.
5204         * ser-go32.c: Likewise.
5205         * ser-mingw.c: Likewise.
5206         * ser-pipe.c: Likewise.
5207         * ser-tcp.c: Likewise.
5208         * ser-unix.c: Likewise.
5209         * serial.c: Likewise.
5210         * sh-tdep.c: Likewise.
5211         * sh64-tdep.c: Likewise.
5212         * shnbsd-tdep.c: Likewise.
5213         * skip.c: Likewise.
5214         * sol-thread.c: Likewise.
5215         * solib-dsbt.c: Likewise.
5216         * solib-frv.c: Likewise.
5217         * solib-osf.c: Likewise.
5218         * solib-som.c: Likewise.
5219         * solib-spu.c: Likewise.
5220         * solib-target.c: Likewise.
5221         * solib.c: Likewise.
5222         * somread.c: Likewise.
5223         * source.c: Likewise.
5224         * sparc-nat.c: Likewise.
5225         * sparc-sol2-tdep.c: Likewise.
5226         * sparc-tdep.c: Likewise.
5227         * sparc64-tdep.c: Likewise.
5228         * sparc64fbsd-tdep.c: Likewise.
5229         * sparc64nbsd-tdep.c: Likewise.
5230         * sparcnbsd-tdep.c: Likewise.
5231         * spu-linux-nat.c: Likewise.
5232         * spu-multiarch.c: Likewise.
5233         * spu-tdep.c: Likewise.
5234         * stabsread.c: Likewise.
5235         * stack.c: Likewise.
5236         * std-regs.c: Likewise.
5237         * symfile.c: Likewise.
5238         * symmisc.c: Likewise.
5239         * symtab.c: Likewise.
5240         * target.c: Likewise.
5241         * thread.c: Likewise.
5242         * tilegx-linux-nat.c: Likewise.
5243         * tilegx-tdep.c: Likewise.
5244         * top.c: Likewise.
5245         * tracepoint.c: Likewise.
5246         * tui/tui-command.c: Likewise.
5247         * tui/tui-data.c: Likewise.
5248         * tui/tui-disasm.c: Likewise.
5249         * tui/tui-file.c: Likewise.
5250         * tui/tui-layout.c: Likewise.
5251         * tui/tui-out.c: Likewise.
5252         * tui/tui-regs.c: Likewise.
5253         * tui/tui-source.c: Likewise.
5254         * tui/tui-stack.c: Likewise.
5255         * tui/tui-win.c: Likewise.
5256         * tui/tui-windata.c: Likewise.
5257         * tui/tui-winsource.c: Likewise.
5258         * typeprint.c: Likewise.
5259         * ui-file.c: Likewise.
5260         * ui-out.c: Likewise.
5261         * user-regs.c: Likewise.
5262         * utils.c: Likewise.
5263         * v850-tdep.c: Likewise.
5264         * valarith.c: Likewise.
5265         * valops.c: Likewise.
5266         * valprint.c: Likewise.
5267         * value.c: Likewise.
5268         * varobj.c: Likewise.
5269         * vax-tdep.c: Likewise.
5270         * vaxnbsd-tdep.c: Likewise.
5271         * vaxobsd-tdep.c: Likewise.
5272         * windows-nat.c: Likewise.
5273         * xcoffread.c: Likewise.
5274         * xml-support.c: Likewise.
5275         * xstormy16-tdep.c: Likewise.
5276         * xtensa-linux-nat.c: Likewise.
5277
5278 2014-08-07  Gary Benson  <gbenson@redhat.com>
5279
5280         * common/common-defs.h: Include gdb_assert.h.
5281         * aarch64-tdep.c: Do not include gdb_assert.h.
5282         * addrmap.c: Likewise.
5283         * aix-thread.c: Likewise.
5284         * alpha-linux-tdep.c: Likewise.
5285         * alpha-mdebug-tdep.c: Likewise.
5286         * alphanbsd-tdep.c: Likewise.
5287         * amd64-nat.c: Likewise.
5288         * amd64-tdep.c: Likewise.
5289         * amd64bsd-nat.c: Likewise.
5290         * amd64fbsd-nat.c: Likewise.
5291         * amd64fbsd-tdep.c: Likewise.
5292         * amd64nbsd-nat.c: Likewise.
5293         * amd64nbsd-tdep.c: Likewise.
5294         * amd64obsd-nat.c: Likewise.
5295         * amd64obsd-tdep.c: Likewise.
5296         * arch-utils.c: Likewise.
5297         * arm-tdep.c: Likewise.
5298         * armbsd-tdep.c: Likewise.
5299         * auxv.c: Likewise.
5300         * bcache.c: Likewise.
5301         * bfin-tdep.c: Likewise.
5302         * blockframe.c: Likewise.
5303         * breakpoint.c: Likewise.
5304         * bsd-kvm.c: Likewise.
5305         * bsd-uthread.c: Likewise.
5306         * buildsym.c: Likewise.
5307         * c-exp.y: Likewise.
5308         * c-lang.c: Likewise.
5309         * charset.c: Likewise.
5310         * cleanups.c: Likewise.
5311         * cli-out.c: Likewise.
5312         * cli/cli-decode.c: Likewise.
5313         * cli/cli-dump.c: Likewise.
5314         * cli/cli-logging.c: Likewise.
5315         * cli/cli-script.c: Likewise.
5316         * cli/cli-utils.c: Likewise.
5317         * coffread.c: Likewise.
5318         * common/common-utils.c: Likewise.
5319         * common/queue.h: Likewise.
5320         * common/signals.c: Likewise.
5321         * common/vec.h: Likewise.
5322         * complaints.c: Likewise.
5323         * completer.c: Likewise.
5324         * corelow.c: Likewise.
5325         * cp-abi.c: Likewise.
5326         * cp-name-parser.y: Likewise.
5327         * cp-namespace.c: Likewise.
5328         * cp-support.c: Likewise.
5329         * cris-tdep.c: Likewise.
5330         * dbxread.c: Likewise.
5331         * dictionary.c: Likewise.
5332         * doublest.c: Likewise.
5333         * dsrec.c: Likewise.
5334         * dummy-frame.c: Likewise.
5335         * dwarf2-frame-tailcall.c: Likewise.
5336         * dwarf2-frame.c: Likewise.
5337         * dwarf2expr.c: Likewise.
5338         * dwarf2loc.c: Likewise.
5339         * dwarf2read.c: Likewise.
5340         * eval.c: Likewise.
5341         * event-loop.c: Likewise.
5342         * exceptions.c: Likewise.
5343         * expprint.c: Likewise.
5344         * f-valprint.c: Likewise.
5345         * fbsd-nat.c: Likewise.
5346         * findvar.c: Likewise.
5347         * frame-unwind.c: Likewise.
5348         * frame.c: Likewise.
5349         * frv-tdep.c: Likewise.
5350         * gcore.c: Likewise.
5351         * gdb-dlfcn.c: Likewise.
5352         * gdb_bfd.c: Likewise.
5353         * gdbarch.c: Likewise.
5354         * gdbarch.sh: Likewise.
5355         * gdbtypes.c: Likewise.
5356         * gnu-nat.c: Likewise.
5357         * gnu-v3-abi.c: Likewise.
5358         * go-lang.c: Likewise.
5359         * guile/scm-exception.c: Likewise.
5360         * guile/scm-gsmob.c: Likewise.
5361         * guile/scm-lazy-string.c: Likewise.
5362         * guile/scm-math.c: Likewise.
5363         * guile/scm-pretty-print.c: Likewise.
5364         * guile/scm-safe-call.c: Likewise.
5365         * guile/scm-utils.c: Likewise.
5366         * guile/scm-value.c: Likewise.
5367         * h8300-tdep.c: Likewise.
5368         * hppa-hpux-nat.c: Likewise.
5369         * hppa-tdep.c: Likewise.
5370         * hppanbsd-tdep.c: Likewise.
5371         * hppaobsd-tdep.c: Likewise.
5372         * i386-darwin-nat.c: Likewise.
5373         * i386-darwin-tdep.c: Likewise.
5374         * i386-nto-tdep.c: Likewise.
5375         * i386-tdep.c: Likewise.
5376         * i386bsd-nat.c: Likewise.
5377         * i386fbsd-tdep.c: Likewise.
5378         * i386gnu-nat.c: Likewise.
5379         * i386nbsd-tdep.c: Likewise.
5380         * i386obsd-tdep.c: Likewise.
5381         * i387-tdep.c: Likewise.
5382         * ia64-libunwind-tdep.c: Likewise.
5383         * ia64-tdep.c: Likewise.
5384         * inf-ptrace.c: Likewise.
5385         * inf-ttrace.c: Likewise.
5386         * infcall.c: Likewise.
5387         * infcmd.c: Likewise.
5388         * infrun.c: Likewise.
5389         * inline-frame.c: Likewise.
5390         * interps.c: Likewise.
5391         * jv-lang.c: Likewise.
5392         * jv-typeprint.c: Likewise.
5393         * linux-fork.c: Likewise.
5394         * linux-nat.c: Likewise.
5395         * linux-thread-db.c: Likewise.
5396         * m32c-tdep.c: Likewise.
5397         * m32r-linux-nat.c: Likewise.
5398         * m32r-tdep.c: Likewise.
5399         * m68k-tdep.c: Likewise.
5400         * m68kbsd-nat.c: Likewise.
5401         * m68kbsd-tdep.c: Likewise.
5402         * m88k-tdep.c: Likewise.
5403         * machoread.c: Likewise.
5404         * macroexp.c: Likewise.
5405         * macrotab.c: Likewise.
5406         * maint.c: Likewise.
5407         * mdebugread.c: Likewise.
5408         * memory-map.c: Likewise.
5409         * mep-tdep.c: Likewise.
5410         * mi/mi-common.c: Likewise.
5411         * microblaze-tdep.c: Likewise.
5412         * mingw-hdep.c: Likewise.
5413         * mips-linux-nat.c: Likewise.
5414         * mips-linux-tdep.c: Likewise.
5415         * mips-tdep.c: Likewise.
5416         * mips64obsd-tdep.c: Likewise.
5417         * mipsnbsd-tdep.c: Likewise.
5418         * mn10300-linux-tdep.c: Likewise.
5419         * mn10300-tdep.c: Likewise.
5420         * moxie-tdep.c: Likewise.
5421         * mt-tdep.c: Likewise.
5422         * nat/linux-btrace.c: Likewise.
5423         * nat/linux-osdata.c: Likewise.
5424         * nat/linux-ptrace.c: Likewise.
5425         * nat/mips-linux-watch.c: Likewise.
5426         * nios2-linux-tdep.c: Likewise.
5427         * nios2-tdep.c: Likewise.
5428         * objc-lang.c: Likewise.
5429         * objfiles.c: Likewise.
5430         * obsd-nat.c: Likewise.
5431         * opencl-lang.c: Likewise.
5432         * osabi.c: Likewise.
5433         * parse.c: Likewise.
5434         * ppc-linux-nat.c: Likewise.
5435         * ppc-sysv-tdep.c: Likewise.
5436         * ppcfbsd-nat.c: Likewise.
5437         * ppcfbsd-tdep.c: Likewise.
5438         * ppcnbsd-nat.c: Likewise.
5439         * ppcnbsd-tdep.c: Likewise.
5440         * ppcobsd-nat.c: Likewise.
5441         * ppcobsd-tdep.c: Likewise.
5442         * printcmd.c: Likewise.
5443         * procfs.c: Likewise.
5444         * prologue-value.c: Likewise.
5445         * psymtab.c: Likewise.
5446         * python/py-lazy-string.c: Likewise.
5447         * python/py-value.c: Likewise.
5448         * regcache.c: Likewise.
5449         * reggroups.c: Likewise.
5450         * registry.c: Likewise.
5451         * remote-sim.c: Likewise.
5452         * remote.c: Likewise.
5453         * rs6000-aix-tdep.c: Likewise.
5454         * rs6000-tdep.c: Likewise.
5455         * s390-linux-tdep.c: Likewise.
5456         * score-tdep.c: Likewise.
5457         * ser-base.c: Likewise.
5458         * ser-mingw.c: Likewise.
5459         * sh-tdep.c: Likewise.
5460         * sh64-tdep.c: Likewise.
5461         * solib-darwin.c: Likewise.
5462         * solib-spu.c: Likewise.
5463         * solib-svr4.c: Likewise.
5464         * source.c: Likewise.
5465         * sparc-nat.c: Likewise.
5466         * sparc-sol2-tdep.c: Likewise.
5467         * sparc-tdep.c: Likewise.
5468         * sparc64-sol2-tdep.c: Likewise.
5469         * sparc64-tdep.c: Likewise.
5470         * sparc64fbsd-tdep.c: Likewise.
5471         * sparc64nbsd-tdep.c: Likewise.
5472         * sparc64obsd-tdep.c: Likewise.
5473         * sparcnbsd-tdep.c: Likewise.
5474         * sparcobsd-tdep.c: Likewise.
5475         * spu-multiarch.c: Likewise.
5476         * spu-tdep.c: Likewise.
5477         * stabsread.c: Likewise.
5478         * stack.c: Likewise.
5479         * symfile.c: Likewise.
5480         * symtab.c: Likewise.
5481         * target-descriptions.c: Likewise.
5482         * target-memory.c: Likewise.
5483         * target.c: Likewise.
5484         * tic6x-linux-tdep.c: Likewise.
5485         * tic6x-tdep.c: Likewise.
5486         * tilegx-linux-nat.c: Likewise.
5487         * tilegx-tdep.c: Likewise.
5488         * top.c: Likewise.
5489         * tramp-frame.c: Likewise.
5490         * tui/tui-out.c: Likewise.
5491         * tui/tui-winsource.c: Likewise.
5492         * ui-out.c: Likewise.
5493         * user-regs.c: Likewise.
5494         * utils.c: Likewise.
5495         * v850-tdep.c: Likewise.
5496         * valops.c: Likewise.
5497         * value.c: Likewise.
5498         * varobj.c: Likewise.
5499         * vax-nat.c: Likewise.
5500         * xml-syscall.c: Likewise.
5501         * xml-tdesc.c: Likewise.
5502         * xstormy16-tdep.c: Likewise.
5503         * xtensa-linux-nat.c: Likewise.
5504         * xtensa-tdep.c: Likewise.
5505
5506 2014-08-07  Gary Benson  <gbenson@redhat.com>
5507
5508         * common/common-defs.h: Include common-utils.h.
5509         * defs.h: Do not include common-utils.h.
5510         * common/gdb_assert.h: Likewise.
5511         * darwin-nat.h: Likewise.
5512         * nat/linux-btrace.c: Likewise.
5513         * target/waitstatus.h: Likewise.
5514
5515 2014-08-07  Gary Benson  <gbenson@redhat.com>
5516
5517         * common/common-defs.h: Include ptid.h.
5518         * defs.h: Do not include ptid.h.
5519         * inferior.h: Likewise.
5520         * infrun.h: Likewise.
5521         * nat/linux-btrace.h: Likewise.
5522         * nat/linux-osdata.h: Likewise.
5523         * target/waitstatus.h: Likewise.
5524
5525 2014-08-07  Gary Benson  <gbenson@redhat.com>
5526
5527         * common/common-defs.h: Include gdb_locale.h.
5528         * defs.h: Do not include gdb_locale.h.
5529
5530 2014-08-07  Gary Benson  <gbenson@redhat.com>
5531
5532         * common/common-defs.h: Include gdb/signals.h.
5533         * defs.h: Do not include gdb/signals.h.
5534
5535 2014-08-07  Gary Benson  <gbenson@redhat.com>
5536
5537         * common/common-defs.h: Include pathmax.h.
5538         * defs.h: Do not include pathmax.h.
5539
5540 2014-08-07  Gary Benson  <gbenson@redhat.com>
5541
5542         * common/common-defs.h: Include libiberty.h.
5543         * defs.h: Do not include libiberty.h.
5544         * common/queue.h: Likewise.
5545         * cp-name-parser.y: Likewise.
5546         * mi/mi-cmd-catch.c: Likewise.
5547         * python/python.c: Likewise.
5548
5549 2014-08-07  Gary Benson  <gbenson@redhat.com>
5550
5551         * common/common-defs.h: Include ansidecl.h.
5552         * defs.h: Do not include ansidecl.h.
5553         * common/buffer.h: Likewise.
5554         * common/common-utils.h: Likewise.
5555
5556 2014-08-07  Gary Benson  <gbenson@redhat.com>
5557
5558         * common/common-defs.h: Include stddef.h.
5559         * defs.h: Do not include stddef.h.
5560         * common/common-utils.h: Likewise.
5561         * amd64fbsd-nat.c: Likewise.
5562         * bcache.c: Likewise.
5563         * charset.c: Likewise.
5564         * common/buffer.h: Likewise.
5565         * common/vec.h: Likewise.
5566         * i386bsd-nat.c: Likewise.
5567         * nat/linux-btrace.h: Likewise.
5568         * ppcfbsd-nat.c: Likewise.
5569         * ppcnbsd-tdep.h: Likewise.
5570         * ppcobsd-nat.c: Likewise.
5571         * ppcobsd-tdep.h: Likewise.
5572         * python/py-gdb-readline.c: Likewise.
5573
5574 2014-08-07  Gary Benson  <gbenson@redhat.com>
5575
5576         * common/common-defs.h: Include stdarg.h.
5577         * defs.h: Do not include stdarg.h.
5578         * ada-lang.c: Likewise.
5579         * common/common-utils.h: Likewise.
5580         * guile/scm-string.c: Likewise.
5581         * guile/scm-utils.c: Likewise.
5582         * m32c-tdep.c: Likewise.
5583
5584 2014-08-07  Gary Benson  <gbenson@redhat.com>
5585
5586         * common/common-defs.h: Include stdlib.h.
5587         * defs.h: Do not include stdlib.h.
5588         * addrmap.c: Likewise.
5589         * bcache.c: Likewise.
5590         * common/buffer.c: Likewise.
5591         * common/common-utils.c: Likewise.
5592         * cp-name-parser.y: Likewise.
5593         * go32-nat.c: Likewise.
5594         * mn10300-linux-tdep.c: Likewise.
5595         * nat/linux-osdata.c: Likewise.
5596         * tui/tui.c: Likewise.
5597         * windows-nat.c: Likewise.
5598
5599 2014-08-07  Gary Benson  <gbenson@redhat.com>
5600
5601         * common/common-defs.h: Include stdio.h.
5602         * defs.h: Do not include stdio.h.
5603         * ada-lang.c: Likewise.
5604         * common/buffer.c: Likewise.
5605         * common/common-utils.c: Likewise.
5606         * cp-name-parser.y: Likewise.
5607         * gnu-nat.c: Likewise.
5608         * go32-nat.c: Likewise.
5609         * i386gnu-nat.c: Likewise.
5610         * proc-api.c: Likewise.
5611         * proc-events.c: Likewise.
5612         * proc-flags.c: Likewise.
5613         * proc-why.c: Likewise.
5614         * python/python-internal.h: Likewise.
5615         * target-memory.c: Likewise.
5616         * tui/tui-io.c: Likewise.
5617         * tui/tui.c: Likewise.
5618
5619 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
5620
5621         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
5622         (scan_dyntag_auxv): Same.
5623
5624 2014-08-06  Yao Qi  <yao@codesourcery.com>
5625
5626         * amd64-linux-nat.c: Remove duplicated include
5627         "x86-linux-nat.h".
5628         * i386-linux-nat.c: Likewise.
5629
5630 2014-08-06  Yao Qi  <yao@codesourcery.com>
5631
5632         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
5633         operand" with "Special opcode" in comments.
5634
5635 2014-08-05  Gary Benson  <gbenson@redhat.com>
5636
5637         * interps.c (initialize_interps): Remove prototype.
5638         (interpreter_initialized): Remove static global.
5639         (interp_add): Do not call initialize_interps.
5640         (initialize_interps): Remove function.
5641
5642 2014-08-05  Gary Benson  <gbenson@redhat.com>
5643
5644         * utils.c (vwarning): Remove spurious va_end.
5645
5646 2014-08-05  Alan Modra  <amodra@gmail.com>
5647
5648         * charset.c (convert_between_encodings): Cast result of obstack_base.
5649         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
5650         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
5651         (read_unwind_info): Use size_t for some locals.
5652         * jit.c (finalize_symtab): Likewise.
5653         * utils.c (hashtab_obstack_allocate): Likewise.
5654         * symmisc.c (print_objfile_statistics): Update format strings.
5655
5656 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
5657
5658         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
5659         (Changes in GDB 7.8): ... here.
5660
5661 2014-08-04  Tom Tromey  <tromey@redhat.com>
5662
5663         * target.c (set_targetdebug): New function.
5664         (initialize_targets): Pass set_targetdebug when creating "set
5665         debug target".
5666
5667 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
5668
5669         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
5670         if detecting a variable-sized field that is not the last field.
5671         Fix struct type length computation.
5672
5673 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
5674
5675         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5676         Add debug trace.
5677
5678 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
5679
5680         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
5681         Remove "+ 8" offset in computation of CHAIN_VMA.
5682
5683 2014-07-31  Doug Evans  <dje@google.com>
5684
5685         * inflow.c (child_terminal_inferior): Add comment.
5686         (child_terminal_ours_for_output): Add comment.
5687         (child_terminal_ours): Add comment.
5688         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
5689         (linux_nat_terminal_ours): Add comment.
5690
5691 2014-07-31  Gary Benson  <gbenson@redhat.com>
5692
5693         * common/btrace-common.h: Do not include defs.h or server.h.
5694         * nat/mips-linux-watch.h: Likewise.
5695         * gdb-dlfcn.h: Do not include defs.h.
5696         * tracefile.h: Likewise.
5697
5698 2014-07-30  Roland McGrath  <mcgrathr@google.com>
5699
5700         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
5701
5702 2014-07-30  Tom Tromey  <tromey@redhat.com>
5703
5704         * bsd-kvm.c (bsd_kvm_open): Constify.
5705         * corelow.c (core_open): Constify.
5706         * ctf.c (ctf_open): Constify.
5707         * dbug-rom.c (dbug_open): Constify.
5708         * exec.c (exec_open): Constify.
5709         * m32r-rom.c (m32r_open, mon2000_open): Constify.
5710         * microblaze-rom.c (picobug_open): Constify.
5711         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
5712         Constify.
5713         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
5714         * record-btrace.c (record_btrace_open): Constify.
5715         * record-full.c (record_full_core_open_1, record_full_open_1)
5716         (record_full_open): Constify.
5717         * remote-m32r-sdi.c (m32r_open): Constify.
5718         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
5719         (rockhopper_open, lsi_open): Constify.
5720         * remote-sim.c (gdbsim_open): Constify.
5721         * remote.c (remote_open, extended_remote_open, remote_open_1):
5722         Constify.
5723         * target.h (struct target_ops) <to_open>: Make "arg" const.
5724         * tracefile-tfile.c (tfile_open): Constify.
5725
5726 2014-07-30  Tom Tromey  <tromey@redhat.com>
5727
5728         * breakpoint.c (map_breakpoint_numbers): Update.
5729         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
5730         (get_number_const): New function.
5731         (get_number): Rewrite using get_number_const.
5732         (init_number_or_range): Make "string" const.
5733         (number_is_in_list): Make "list" const.
5734         * cli/cli-utils.h (get_number_const): Declare.
5735         (struct get_number_or_range_state) <string, end_ptr>: Now const.
5736         (init_number_or_range, number_is_in_list): Update.
5737         * printcmd.c (map_display_numbers): Update.
5738         * value.c (value_from_history_ref): Constify.
5739         * value.h (value_from_history_ref): Update.
5740
5741 2014-07-30  Tom Tromey  <tromey@redhat.com>
5742
5743         * corefile.c (hook_type, call_extra_exec_file_hooks)
5744         (specify_exec_file_hook): Constify.
5745         * exec.c (exec_file_attach): Make "filename" const.
5746         * gdbcore.h (deprecated_exec_file_display_hook)
5747         (specify_exec_file_hook, exec_file_attach): Constify.
5748         * main.c (captured_main): Use catch_command_errors_const.
5749
5750 2014-07-30  Tom Tromey  <tromey@redhat.com>
5751
5752         * target.c (open_target): New function.
5753         (add_target_with_completer, add_deprecated_target_alias): Use
5754         set_cmd_sfunc, set_cmd_context.
5755         (debug_to_open): Remove.
5756         (setup_target_debug): Update.
5757
5758 2014-07-30  Yao Qi  <yao@codesourcery.com>
5759
5760         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
5761         comments.
5762         * parse.c (exp_iterate): Update comments.
5763
5764 2014-07-30  Gary Benson  <gbenson@redhat.com>
5765
5766         * common/common-defs.h: New file.
5767         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
5768         * defs.h: Include common-defs.h.
5769         Do not include config.h or build-gnulib/config.h.
5770
5771 2014-07-30  Gary Benson  <gbenson@redhat.com>
5772
5773         * common/common-utils.h: Do not include config.h.
5774         * nat/linux-btrace.h: Likewise.
5775
5776 2014-07-30  Gary Benson  <gbenson@redhat.com>
5777
5778         * btrace.c: Include defs.h.
5779         * common/ptid.c: Include defs.h or server.h as appropriate.
5780         * nat/mips-linux-watch.c: Likewise.
5781
5782 2014-07-29  Tom Tromey  <tromey@redhat.com>
5783
5784         * target.c (target_is_pushed): Simplify.
5785
5786 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
5787
5788         GDB 7.8 released.
5789
5790 2014-07-29  Yao Qi  <yao@codesourcery.com>
5791
5792         PR gdb/17206
5793         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
5794
5795 2014-07-28  Doug Evans  <xdje42@gmail.com>
5796
5797         PR guile/17203
5798         * guile/scm-param.c (pascm_parameter_defined_p): New function.
5799         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
5800         parameters.
5801
5802 2014-07-28  Will Newton  <will.newton@linaro.org>
5803
5804         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5805         (THUMB2_SET_R7_SIGRETURN2): Likewise.
5806         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5807         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5808         (THUMB2_EABI_SYSCALL): Likewise.
5809         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5810         struct tramp_frame.
5811         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5812         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5813
5814 2014-07-27  Doug Evans  <xdje42@gmail.com>
5815
5816         * guile/scm-param.c (pascm_print_param_smob): Fix output.
5817
5818 2014-07-27  Doug Evans  <xdje42@gmail.com>
5819
5820         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5821
5822 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
5823             Doug Evans  <xdje42@gmail.com>
5824
5825         PR guile/17146
5826         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5827         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5828         * configure.ac: Try to use guild to compile an scm file, if it fails
5829         then disable guile support.
5830         * configure: Regenerate.
5831         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5832         GUILE_FILE_LIST.
5833         (GUILE_COMPILED_FILES): New variable.
5834         (GUILE_FILES) Update.
5835         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5836         (stamp-guile): Compile scm files.
5837         * guile/guile.c (boot_guile_support): New function.
5838         (standard_throw_args_p): New function.
5839         (print_standard_throw_error, print_throw_error): New functions.
5840         (handle_boot_error): New function.
5841         (initialize_scheme_side): Rewrite to call boot_guile_support.
5842         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
5843         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5844
5845 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
5846             Doug Evans  <xdje42@gmail.com>
5847
5848         PR guile/17146
5849         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5850         * guile/lib/gdb/support.scm: New file.
5851         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5852         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5853         All uses updated.
5854         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5855         All uses updated.
5856         (%assert-type): Ditto, and renamed to assert-type.
5857         (%exception-print-style): Delete.
5858
5859 2014-07-26  Doug Evans  <xdje42@gmail.com>
5860
5861         PR build/17105
5862         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5863         * configure: Regenerate.
5864         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5865         PYTHON_FILES.
5866         (PYTHON_FILES): New variable.
5867         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5868         (GUILE_FILES): New variable.
5869         (stamp-python, install-python, uninstall-python): Handle empty
5870         file list.
5871         (stamp-guile, install-guile, uninstall-guile): Ditto.
5872
5873 2014-07-26  Doug Evans  <xdje42@gmail.com>
5874
5875         PR guile/17177
5876         * guile/lib/gdb.scm (pretty-printers): Export.
5877         (set-pretty-printers!): Export.
5878         * guile/lib/gdb/printing.scm (gdb module): Update.
5879         (prepend-pretty-printer!, append-pretty-printer!): Update.
5880         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5881         (pretty_printer_list_var): Delete.
5882         (pretty_printer_list): New static global.
5883         (gdbscm_pretty_printers): New function.
5884         (gdbscm_set_pretty_printers_x): New function.
5885         (ppscm_find_pretty_printer_from_gdb): Update.
5886         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5887         (gdbscm_initialize_pretty_printers): Update.
5888
5889 2014-07-26  Doug Evans  <xdje42@gmail.com>
5890
5891         PR 17185
5892         * configure.ac: Add check for header gc/gc.h.
5893         Add check for function setenv.
5894         * configure: Regenerate.
5895         * config.in: Regenerate.
5896         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5897
5898 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
5899
5900         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5901         variation in gdbarch matching.
5902
5903 2014-07-25  Tom Tromey  <tromey@redhat.com>
5904
5905         * exec.c (using_exec_ops): Remove.
5906         (exec_close_1): Update.  Remove extraneous block, reindent.
5907         (add_target_sections): Use target_is_pushed.
5908
5909 2014-07-25  Pedro Alves  <palves@redhat.com>
5910
5911         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5912         * monitor.c (monitor_create_inferior): Likewise.
5913         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5914         * remote-sim.c (gdbsim_create_inferior): Likewise.
5915         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5916         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5917         * windows-nat.c (do_initial_windows_stuff): Likewise.
5918
5919 2014-07-25  Pedro Alves  <palves@redhat.com>
5920
5921         * NEWS: Mention signal passing and "signal" command changes.
5922         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5923         comment.
5924         * breakpoint.c (until_break_command): Adjust clear_proceed_status
5925         call.
5926         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5927         * infcmd.c (proceed_thread_callback, continue_1, step_once)
5928         (jump_command): Adjust clear_proceed_status call.
5929         (signal_command): Warn if other thread that are resumed have
5930         signals that will be delivered.  Adjust clear_proceed_status call.
5931         (until_next_command, finish_command)
5932         (proceed_after_attach_callback, attach_command_post_wait)
5933         (attach_command): Adjust clear_proceed_status call.
5934         * infrun.c (proceed_after_vfork_done): Likewise.
5935         (proceed_after_attach_callback): Adjust comment.
5936         (clear_proceed_status_thread): Clear stop_signal if not in pass
5937         state.
5938         (clear_proceed_status_callback): Delete.
5939         (clear_proceed_status): New 'step' parameter.  Only clear the
5940         proceed status of threads the command being prepared is about to
5941         resume.
5942         (proceed): If passed in an explicit signal, override stop_signal
5943         with it.  Don't pass the last stop signal to the thread we're
5944         resuming.
5945         (init_wait_for_inferior): Adjust clear_proceed_status call.
5946         (switch_back_to_stepped_thread): Clear the signal if it should not
5947         be passed.
5948         * infrun.h (clear_proceed_status): New 'step' parameter.
5949         (user_visible_resume_ptid): Add comment.
5950         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5951         signal is in pass state.
5952         * remote.c (append_pending_thread_resumptions): Likewise.
5953         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5954
5955 2014-07-25  Tom Tromey  <tromey@redhat.com>
5956
5957         * target.h (target_stopped_data_address)
5958         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
5959         parentheses.
5960
5961 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
5962
5963         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5964         comments.
5965         (avr_pointer_to_address): Likewise.
5966
5967 2014-07-24  Tom Tromey  <tromey@redhat.com>
5968
5969         * monitor.c (compile_pattern): Update.
5970         * target.h (struct target_ops) <to_shortname, to_longname,
5971         to_doc>: Now const.
5972
5973 2014-07-24  Tom Tromey  <tromey@redhat.com>
5974
5975         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5976         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5977         (add_info_alias, add_com): Make "doc" const.
5978         (print_doc_line): Make "str" const.
5979         (delete_cmd): Update.
5980         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5981         (print_doc_line): Update.
5982         * cli/cli-script.c (document_command): Update.
5983         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5984         (add_com, add_info, add_info_alias): Update.
5985         * guile/scm-cmd.c (cmdscm_destroyer): Update.
5986         * python/py-cmd.c (cmdpy_destroyer): Update.
5987
5988 2014-07-24  Tom Tromey  <tromey@redhat.com>
5989
5990         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5991         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5992         (help_cmd_list): Constify.
5993         (lookup_cmd): Update.
5994         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5995         const.
5996         (help_cmd_list, apropos_cmd): Update.
5997         * cli/cli-script.c (show_user): Update.
5998         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5999         * cli/cli-setshow.h (cmd_show_list): Update.
6000         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
6001         (cmd_show_list): Update.
6002         * guile/scm-cmd.c (cmdscm_destroyer): Update.
6003         * python/py-cmd.c (cmdpy_destroyer): Update.
6004
6005 2014-07-24  Tom Tromey  <tromey@redhat.com>
6006
6007         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
6008         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
6009         const.
6010         * command.h (deprecate_cmd): Update.
6011         * maint.c (maintenance_do_deprecate): Add casts.
6012
6013 2014-07-24  Tom Tromey  <tromey@redhat.com>
6014
6015         * cli/cli-decode.c (help_cmd): Make parameter "const".
6016         * cli/cli-decode.h (help_cmd): Update.
6017
6018 2014-07-24  Tom Tromey  <tromey@redhat.com>
6019
6020         * stack.c (up_silently_base, down_silently_base): Make argument
6021         const.
6022
6023 2014-07-24  Tom Tromey  <tromey@redhat.com>
6024
6025         * solib.c (solib_add): Make "pattern" const.
6026         * solib.h (solib_add): Update.
6027
6028 2014-07-24  Tom Tromey  <tromey@redhat.com>
6029
6030         * remote.c (remote_serial_open, print_packet, putpkt)
6031         (putpkt_binary): Constify.
6032         * remote.h (putpkt): Update.
6033
6034 2014-07-24  Tom Tromey  <tromey@redhat.com>
6035
6036         * monitor.c (monitor_open): Make "args" const.
6037         * monitor.h (monitor_open): Update.
6038
6039 2014-07-24  Tom Tromey  <tromey@redhat.com>
6040
6041         * maint.c (match_bfd_flags): Make "string" const.
6042         (print_bfd_section_info): Remove casts.
6043         (print_objfile_section_info): Make "string" const.
6044
6045 2014-07-24  Tom Tromey  <tromey@redhat.com>
6046
6047         * inf-child.c (inf_child_open_target): Make "arg" const.
6048         * inf-child.h (inf_child_open_target): Update.
6049
6050 2014-07-24  Tom Tromey  <tromey@redhat.com>
6051
6052         * environ.c (unset_in_environ): Make "var" const.
6053         * environ.h (unset_in_environ): Update.
6054
6055 2014-07-24  Tom Tromey  <tromey@redhat.com>
6056
6057         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
6058         Make "cmd" const.
6059         (scan_filename_with_cleanup): Likewise.
6060         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
6061         Make arguments const.
6062         (restore_command): Update.
6063
6064 2014-07-24  Pedro Alves  <palves@redhat.com>
6065
6066         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
6067
6068 2014-07-24  Tom Tromey  <tromey@redhat.com>
6069             Gary Benson  <gbenson@redhat.com>
6070
6071         * nat/linux-ptrace.c (additional_flags): New global.
6072         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
6073         additional_flags; don't check GDBSERVER.
6074         (linux_ptrace_set_additional_flags): New function.
6075         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
6076         Declare.
6077         * linux-nat.c (_initialize_linux_nat): Call
6078         linux_ptrace_set_additional_flags.
6079
6080 2014-07-24  Tom Tromey  <tromey@redhat.com>
6081
6082         * make-target-delegates (munge_type, write_debugmethod): New
6083         functions.
6084         (debug_names): New global.
6085         ($TARGET_DEBUG_PRINTER): New global.
6086         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
6087         name.
6088         Write debug methods.  Generate init_debug_target.
6089         * target-debug.h: New file.
6090         * target-delegates.c: Rebuild.
6091         * target.c: Include target-debug.h.
6092         (debug_target): Hoist definition.
6093         (target_kill, target_get_section_table, target_memory_map)
6094         (target_flash_erase, target_flash_done, target_detach)
6095         (target_disconnect, target_wait, target_resume)
6096         (target_pass_signals, target_program_signals, target_follow_fork)
6097         (target_mourn_inferior, target_search_memory)
6098         (target_thread_address_space, target_close)
6099         (target_find_new_threads, target_core_of_thread)
6100         (target_verify_memory, target_insert_mask_watchpoint)
6101         (target_remove_mask_watchpoint): Remove targetdebug code.
6102         (debug_to_post_attach, debug_to_prepare_to_store)
6103         (debug_to_files_info, debug_to_insert_breakpoint)
6104         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
6105         (debug_to_region_ok_for_hw_watchpoint)
6106         (debug_to_can_accel_watchpoint_condition)
6107         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
6108         (debug_to_watchpoint_addr_within_range)
6109         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
6110         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
6111         (debug_to_terminal_init, debug_to_terminal_inferior)
6112         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
6113         (debug_to_terminal_save_ours, debug_to_terminal_info)
6114         (debug_to_load, debug_to_post_startup_inferior)
6115         (debug_to_insert_fork_catchpoint)
6116         (debug_to_remove_fork_catchpoint)
6117         (debug_to_insert_vfork_catchpoint)
6118         (debug_to_remove_vfork_catchpoint)
6119         (debug_to_insert_exec_catchpoint)
6120         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
6121         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
6122         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
6123         (setup_target_debug): Call init_debug_target.
6124         * target.h (TARGET_DEBUG_PRINTER): New macro.
6125         (struct target_ops) <to_resume, to_wait, to_pass_signals,
6126         to_program_signals>: Use TARGET_DEBUG_PRINTER.
6127
6128 2014-07-24  Gary Benson  <gbenson@redhat.com>
6129
6130         * exceptions.h (throw_vfatal): Renamed to...
6131         (throw_vquit): New declaration.
6132         (throw_quit): Likewise.
6133         * exceptions.c (throw_vfatal): Renamed to...
6134         (throw_vquit): New function.
6135         (throw_quit): Likewise.
6136         (throw_error): Call throw_verror rather than throw_it.
6137         * utils.h (vfatal): Removed.
6138         (fatal): Likewise.
6139         * utils.c (vfatal): Removed.
6140         (fatal): Likewise.
6141         (internal_verror): Replaced call to fatal with call to throw_quit.
6142         (quit): Replaced calls to fatal with calls to throw_quit.
6143
6144 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
6145
6146         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
6147         target_read_code.
6148
6149 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
6150
6151         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
6152         less than zero in conditional expression.
6153
6154 2014-07-23  Tom Tromey  <tromey@redhat.com>
6155
6156         * make-target-delegates ($ARGS_PART): Match trailing close paren.
6157         ($INTRO_PART): Don't match whitespace.
6158         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
6159         argument matching.
6160         ($METHOD): Add $METHOD_TRAILER.
6161         (trim): Rewrite.
6162         (scan_target_h): New sub.
6163         Change main loop not to collect state.
6164         * target-delegates.c: Rebuild.
6165
6166 2014-07-23  Gary Benson  <gbenson@redhat.com>
6167
6168         * cp-support.c (gdb_demangle): Fix build on systems without
6169         sigaltstack.
6170
6171 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
6172
6173         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
6174         for reference entry value target data value.
6175
6176 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
6177
6178         * stack.c (read_frame_arg): Verify value_optimized_out before calling
6179         value_available_contents_eq.
6180
6181 2014-07-22  Pedro Alves  <palves@redhat.com>
6182
6183         * value.c (allocate_optimized_out_value): Don't mark value as
6184         non-lazy.
6185
6186 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
6187
6188         * MAINTAINERS (Write After Approval): Update my email address.
6189
6190 2014-07-20  Doug Evans  <dje@google.com>
6191
6192         PR server/17147
6193         * remote.c (putpkt_binary): Add text to error message.
6194
6195 2014-07-20  Yao Qi  <yao@codesourcery.com>
6196
6197         * eval.c: Remove "Chill" from comments.
6198         * gdbtypes.h: Likewise.
6199         * symtab.h: Likewise.
6200
6201 2014-07-20  Yao Qi  <yao@codesourcery.com>
6202
6203         * std-operator.def: Update comments to TERNOP_SLICE.
6204
6205 2014-07-20  Yao Qi  <yao@codesourcery.com>
6206
6207         * std-operator.def: Remove BINOP_RANGE.
6208         * breakpoint.c (watchpoint_exp_is_const): Update.
6209         * expprint.c (dump_subexp_body_standard): Likewise.
6210         * eval.c (init_array_element): Remove dead code.
6211         (evaluate_subexp_standard): Likewise.
6212
6213 2014-07-20  Yao Qi  <yao@codesourcery.com>
6214
6215         * std-operator.def: Remove BINOP_IN.
6216         * breakpoint.c (watchpoint_exp_is_const): Update.
6217         * eval.c (evaluate_subexp_standard): Likewise.
6218         * expprint.c (dump_subexp_body_standard): Likewise.
6219
6220 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
6221
6222         * microblaze-tdep.c (microblaze_register_names): Add
6223         the rshr and rslr register names.
6224         (microblaze_gdbarch_init): Use of tdesc_has_registers.
6225         Use of tdesc_find_feature. Use of tdesc_data_alloc.
6226         Use of tdesc_numbered_register. Use of
6227         microblaze_register_g_packet_guesses. Use of
6228         tdesc_use_registers. Use of set_gdbarch_register_type.
6229         (microblaze_register_g_packet_guesses): New.
6230         * microblaze-tdep.h (microblaze_reg_num): Add
6231         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
6232         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
6233         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
6234         * features/microblaze-core.xml: New file.
6235         * features/microblaze-stack-protect.xml: New file.
6236         * features/microblaze-with-stack-protect.c: New file.
6237         * features/microblaze-with-stack-protect.xml: New file.
6238         * features/microblaze.xml: New file.
6239         * features/microblaze.c: New file.
6240         * features/Makefile (microblaze-with-stack-protect): Add
6241         microblaze-with-stack-protect microblaze and microblaze-expedite.
6242         * regformats/microblaze-with-stack-protect.dat: New file.
6243         * regformats/microblaze.dat: New file.
6244         * doc/gdb.texinfo (MicroBlaze Features): Added.
6245
6246 2014-07-18  Tom Tromey  <tromey@redhat.com>
6247
6248         * exec.c (exec_ops): Now static.
6249         * exec.h (exec_ops): Don't declare.
6250
6251 2014-07-18  Tom Tromey  <tromey@redhat.com>
6252
6253         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
6254         to find_target_beneath.
6255         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
6256         find_target_beneath.
6257         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
6258
6259 2014-07-18  Tom Tromey  <tromey@redhat.com>
6260
6261         PR gdb/17130:
6262         * utils.c (quit): Use target_supports_terminal_ours.
6263         * target.h (target_supports_terminal_ours): Declare.
6264         * target.c (target_supports_delete_record): Don't check
6265         to_delete_record against NULL.
6266         (target_supports_terminal_ours): New function.
6267
6268 2014-07-18  Tom Tromey  <tromey@redhat.com>
6269
6270         PR gdb/17130:
6271         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
6272         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
6273         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
6274         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
6275         * windows-nat.c (windows_xfer_partial): Always delegate.
6276         * record-btrace.c (record_btrace_xfer_partial): Simplify
6277         delegation.
6278         (record_btrace_fetch_registers, record_btrace_store_registers)
6279         (record_btrace_prepare_to_store, record_btrace_resume)
6280         (record_btrace_wait, record_btrace_find_new_threads)
6281         (record_btrace_thread_alive): Likewise.
6282         * procfs.c (procfs_xfer_partial): Always delegate.
6283         * corelow.c (core_xfer_partial): Always delegate.
6284         * sol-thread.c (sol_find_new_threads): Simplify delegation.
6285
6286 2014-07-18  Tom Tromey  <tromey@redhat.com>
6287
6288         * exec.c (exec_make_note_section): Move earlier.
6289
6290 2014-07-17  Doug Evans  <dje@google.com>
6291
6292         PR gdb/17170
6293         * maint.c (count_symtabs_and_blocks): Handle NULL
6294         current_program_space.
6295         (report_command_stats): Check global enabled flag in addition to
6296         recorded enabled flag.
6297         (make_command_stats_cleanup): Handle msg_type == 0, startup.
6298
6299 2014-07-16  Pedro Alves  <palves@redhat.com>
6300
6301         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
6302
6303 2014-07-16  Tom Tromey  <tromey@redhat.com>
6304
6305         * target.h (struct target_ops) <to_delete_record>: Reformat
6306         comment.
6307
6308 2014-07-16  Tom Tromey  <tromey@redhat.com>
6309
6310         * target-delegates.c: Rebuild.
6311
6312 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
6313
6314         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
6315         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
6316         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
6317         (avr_pointer_to_address): Likewise.
6318         (avr_address_class_type_flags): New function.
6319         (avr_address_class_type_flags_to_name): Likewise.
6320         (avr_address_class_name_to_type_flags): Likewise.
6321         (avr_gdbarch_init): Set address_class_type_flags,
6322         address_class_type_flags_to_name and
6323         address_class_name_to_type_flags.
6324
6325 2014-07-15  Pedro Alves  <palves@redhat.com>
6326
6327         * linux-nat.c (kill_callback): Save errno and work with saved
6328         copy.
6329
6330 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
6331
6332         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
6333
6334 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
6335
6336         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
6337         breakpoint support correctly.
6338
6339 2014-07-14  Pedro Alves  <palves@redhat.com>
6340
6341         * utils.c (prompt_for_continue): Call target_terminal_ours.
6342
6343 2014-07-14  Pedro Alves  <palves@redhat.com>
6344
6345         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
6346         catch_errors.  Don't re-enable stdin or notify observers where,
6347         and rethrow error.
6348         (fetch_inferior_event_wrapper): Delete.
6349
6350 2014-07-14  Pedro Alves  <palves@redhat.com>
6351
6352         PR gdb/17072
6353         * top.c: Include "inf-loop.h".
6354         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
6355         field.
6356         (gdb_readline_wrapper_cleanup): Make the target async again, if it
6357         was async before.
6358         (gdb_readline_wrapper): Store whether the target is async, and
6359         make it sync.
6360
6361 2014-07-14  Pedro Alves  <palves@redhat.com>
6362
6363         PR gdb/17072
6364         * top.c (gdb_readline_wrapper_line): Tweak comment.
6365         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
6366         the input handler callback.
6367
6368 2014-07-14  Pedro Alves  <palves@redhat.com>
6369
6370         PR gdb/17072
6371         * main.c: Include event-top.h.
6372         (handle_command_errors): New function.
6373         (catch_command_errors, catch_command_errors_const): Use it.
6374
6375 2014-07-14  Pedro Alves  <palves@redhat.com>
6376
6377         * exceptions.c (catch_command_errors, catch_command_errors_const):
6378         Moved to main.c.
6379         * exceptions.h (catch_command_errors_ftype)
6380         (catch_command_errors_const_ftype): Moved to main.c.
6381         (catch_command_errors, catch_command_errors_const): Delete
6382         declarations.
6383         * main.c (catch_command_errors_ftype)
6384         (catch_command_errors_const_ftype): Moved here from exceptions.h.
6385         (catch_command_errors, catch_command_errors_const)): Moved here
6386         from exceptions.c and make static.
6387
6388 2014-07-14  Pedro Alves  <palves@redhat.com>
6389
6390         * exceptions.c (print_any_exception): Delete.
6391         (catch_exceptions_with_msg): Use exception_print instead of
6392         print_any_exception.
6393         (catch_errors): Use exception_fprintf instead of
6394         print_any_exception.
6395         (catch_command_errors, catch_command_errors_const): Use
6396         exception_print instead of print_any_exception.
6397
6398 2014-07-14  Pedro Alves  <palves@redhat.com>
6399
6400         * infcall.c (run_inferior_call): Set 'sync_execution' while
6401         running the inferior call.
6402
6403 2014-07-14  Pedro Alves  <palves@redhat.com>
6404
6405         * value.c (value_contents_equal): Delete function.
6406         * value.h (value_contents_equal): Delete declaration.
6407
6408 2014-07-14  Tom Tromey  <tromey@redhat.com>
6409
6410         PR exp/17106:
6411         * gdbtypes.c (is_dynamic_type_internal): New function, from
6412         is_dynamic_type.
6413         (is_dynamic_type): Rewrite.
6414         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
6415         (resolve_dynamic_struct): Likewise.
6416         (resolve_dynamic_type_internal): New function, from
6417         resolve_dynamic_type.
6418         (resolve_dynamic_type): Rewrite.
6419
6420 2014-07-14  Tom Tromey  <tromey@redhat.com>
6421
6422         * target.c (target_require_runnable): Also check record_stratum.
6423         Update comment.
6424
6425 2014-07-11  Yao Qi  <yao@codesourcery.com>
6426
6427         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
6428         thumb_instruction_restores_sp return true.
6429
6430 2014-07-11  Yao Qi  <yao@codesourcery.com>
6431
6432         * arm-tdep.c (thumb_instruction_restores_sp): New function.
6433         (thumb_in_function_epilogue_p): Call
6434         thumb_instruction_restores_sp.
6435
6436 2014-07-11  Yao Qi  <yao@codesourcery.com>
6437
6438         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
6439         'add sp, #imm'.
6440         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
6441
6442 2014-07-11  Gary Benson  <gbenson@redhat.com>
6443
6444         * amd64-linux-nat.c (gdbcore.h): Remove include.
6445         (regset.h): Likewise.
6446         (nat/linux-btrace.h): Likewise.
6447         (btrace.h): Likewise.
6448         (gdb_assert.h): Likewise.
6449         (string.h): Likewise.
6450         (sys/uio.h): Likewise.
6451         (sys/debugreg.h): Likewise.
6452         (sys/syscall.h): Likewise.
6453         (sys/procfs.h): Likewise.
6454         (sys/user.h): Likewise.
6455         (asm/ptrace.h): Likewise.
6456         (i386-nat.h): Likewise.
6457         * i386-linux-nat.c (i386-nat.h): Likewise.
6458         (regset.h): Likewise.
6459         (target.h): Likewise.
6460         (linux-nat.h): Likewise.
6461         (nat/linux-btrace.h): Likewise.
6462         (btrace.h): Likewise.
6463         (gdb_assert.h): Likewise.
6464         (string.h): Likewise.
6465         (sys/uio.h): Likewise.
6466         (sys/user.h): Likewise.
6467         (sys/procfs.h): Likewise.
6468         (sys/reg.h): Likewise.
6469         (sys/debugreg.h): Likewise.
6470         (ORIG_EAX): Remove definition.
6471
6472 2014-07-11  Gary Benson  <gbenson@redhat.com>
6473
6474         * i386-linux-nat.h: New file.
6475         * x86-linux-nat.h: Likewise.
6476         * x86-linux-nat.c: Likewise.
6477         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
6478         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
6479         * config/i386/linux64.mh (NATDEPFILES): Likewise.
6480         * amd64-linux-nat.c (x86-linux-nat.h): New include.
6481         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6482         (PTRACE_SETREGSET): Likewise.
6483         (arch_lwp_info): Now in x86-linux-nat.c.
6484         (have_ptrace_getregset): Now in x86-linux-nat.h.
6485         (x86_linux_dr_get): Now in x86-linux-nat.c.
6486         (x86_linux_dr_set): Likewise.
6487         (x86_linux_dr_get_addr): Likewise.
6488         (x86_linux_dr_get_control): Likewise.
6489         (x86_linux_dr_get_status): Likewise.
6490         (update_debug_registers_callback): Likewise.
6491         (x86_linux_dr_set_control): Likewise.
6492         (x86_linux_dr_set_addr): Likewise.
6493         (x86_linux_prepare_to_resume): Likewise.
6494         (x86_linux_new_thread): Likewise.
6495         (x86_linux_new_fork): Likewise.
6496         (x86_linux_get_thread_area): Likewise.
6497         (super_post_startup_inferior): Likewise.
6498         (x86_linux_child_post_startup_inferior): Likewise.
6499         (AMD64_LINUX_USER64_CS): Likewise.
6500         (AMD64_LINUX_X32_DS): Likewise.
6501         (x86_linux_read_description): Likewise.
6502         (x86_linux_enable_btrace): Likewise.
6503         (x86_linux_disable_btrace): Likewise.
6504         (x86_linux_teardown_btrace): Likewise.
6505         (x86_linux_read_btrace): Likewise.
6506         (x86_linux_create_target): Likewise.
6507         (x86_linux_add_target): Likewise.
6508         * i386-linux-nat.c (x86-linux-nat.h): New include.
6509         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
6510         (PTRACE_SETREGSET): Likewise.
6511         (arch_lwp_info): Now in x86-linux-nat.c.
6512         (have_ptrace_getregset): Now in x86-linux-nat.h.
6513         (x86_linux_dr_get): Now in x86-linux-nat.c.
6514         (x86_linux_dr_set): Likewise.
6515         (x86_linux_dr_get_addr): Likewise.
6516         (x86_linux_dr_get_control): Likewise.
6517         (x86_linux_dr_get_status): Likewise.
6518         (update_debug_registers_callback): Likewise.
6519         (x86_linux_dr_set_control): Likewise.
6520         (x86_linux_dr_set_addr): Likewise.
6521         (x86_linux_prepare_to_resume): Likewise.
6522         (x86_linux_new_thread): Likewise.
6523         (x86_linux_new_fork): Likewise.
6524         (x86_linux_get_thread_area): Likewise.
6525         (super_post_startup_inferior): Likewise.
6526         (x86_linux_child_post_startup_inferior): Likewise.
6527         (AMD64_LINUX_USER64_CS): Likewise.
6528         (AMD64_LINUX_X32_DS): Likewise.
6529         (x86_linux_read_description): Likewise.
6530         (x86_linux_enable_btrace): Likewise.
6531         (x86_linux_disable_btrace): Likewise.
6532         (x86_linux_teardown_btrace): Likewise.
6533         (x86_linux_read_btrace): Likewise.
6534         (x86_linux_create_target): Likewise.
6535         (x86_linux_add_target): Likewise.
6536
6537 2014-07-11  Gary Benson  <gbenson@redhat.com>
6538
6539         * amd64-linux-nat.c: Comment and whitespace changes.
6540         * i386-linux-nat.c: Comment and whitespace changes.
6541
6542 2014-07-11  Gary Benson  <gbenson@redhat.com>
6543
6544         * amd64-linux-nat.c (x86_linux_create_target): New function.
6545         (x86_linux_add_target): Likewise.
6546         (_initialize_amd64_linux_nat): Delegate to the above new functions.
6547         * i386-linux-nat.c (x86_linux_create_target): New function.
6548         (x86_linux_add_target): Likewise.
6549         (_initialize_i386_linux_nat): Delegate to the above new functions.
6550
6551 2014-07-11  Gary Benson  <gbenson@redhat.com>
6552
6553         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
6554         (ps_get_thread_area): Delegate to the above in 32-bit mode.
6555         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
6556         (ps_get_thread_area): Delegate to the above.
6557
6558 2014-07-11  Gary Benson  <gbenson@redhat.com>
6559
6560         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
6561         x86_linux_read_description.  All uses updated.  amd64-specific
6562         code conditionalized.  Conditionalized i386-specific code added.
6563         Redundant cast removed.
6564         * i386-linux-nat.c (i386_linux_read_description): Renamed to
6565         x86_linux_read_description.  All uses updated.  i386-specific
6566         code conditionalized.  Conditionalized amd64-specific code added.
6567         One sizeof replaced with the actual type it is describing.
6568
6569 2014-07-11  Gary Benson  <gbenson@redhat.com>
6570
6571         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
6572         x86_linux_dr_get.  All uses updated.
6573         (amd64_linux_dr_set): Renamed to
6574         x86_linux_dr_set.  All uses updated.
6575         (amd64_linux_dr_get_addr): Renamed to
6576         x86_linux_dr_get_addr.  All uses updated.
6577         (amd64_linux_dr_get_control): Renamed to
6578         x86_linux_dr_get_control.  All uses updated.
6579         (amd64_linux_dr_get_status): Renamed to
6580         x86_linux_dr_get_status.  All uses updated.
6581         (amd64_linux_dr_set_control): Renamed to
6582         x86_linux_dr_set_control.  All uses updated.
6583         (amd64_linux_dr_set_addr): Renamed to
6584         x86_linux_dr_set_addr.  All uses updated.
6585         (amd64_linux_prepare_to_resume): Renamed to
6586         x86_linux_prepare_to_resume.  All uses updated.
6587         (amd64_linux_new_thread): Renamed to
6588         x86_linux_new_thread.  All uses updated.
6589         (amd64_linux_new_fork): Renamed to
6590         x86_linux_new_fork.  All uses updated.
6591         (amd64_linux_child_post_startup_inferior): Renamed to
6592         x86_linux_child_post_startup_inferior.  All uses updated.
6593         (amd64_linux_enable_btrace): Renamed to
6594         x86_linux_enable_btrace.  All uses updated.
6595         (amd64_linux_disable_btrace): Renamed to
6596         x86_linux_disable_btrace.  All uses updated.
6597         (amd64_linux_teardown_btrace): Renamed to
6598         x86_linux_teardown_btrace.  All uses updated.
6599         (amd64_linux_read_btrace): Renamed to
6600         x86_linux_read_btrace.  All uses updated.
6601         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
6602         x86_linux_dr_get.  All uses updated.
6603         (i386_linux_dr_set): Renamed to
6604         x86_linux_dr_set.  All uses updated.
6605         (i386_linux_dr_get_addr): Renamed to
6606         x86_linux_dr_get_addr.  All uses updated.
6607         (i386_linux_dr_get_control): Renamed to
6608         x86_linux_dr_get_control.  All uses updated.
6609         (i386_linux_dr_get_status): Renamed to
6610         x86_linux_dr_get_status.  All uses updated.
6611         (i386_linux_dr_set_control): Renamed to
6612         x86_linux_dr_set_control.  All uses updated.
6613         (i386_linux_dr_set_addr): Renamed to
6614         x86_linux_dr_set_addr.  All uses updated.
6615         (i386_linux_prepare_to_resume): Renamed to
6616         x86_linux_prepare_to_resume.  All uses updated.
6617         (i386_linux_new_thread): Renamed to
6618         x86_linux_new_thread.  All uses updated.
6619         (i386_linux_new_fork): Renamed to
6620         x86_linux_new_fork.  All uses updated.
6621         (i386_linux_child_post_startup_inferior): Renamed to
6622         x86_linux_child_post_startup_inferior.  All uses updated.
6623         (i386_linux_enable_btrace): Renamed to
6624         x86_linux_enable_btrace.  All uses updated.
6625         (i386_linux_disable_btrace): Renamed to
6626         x86_linux_disable_btrace.  All uses updated.
6627         (i386_linux_teardown_btrace): Renamed to
6628         x86_linux_teardown_btrace.  All uses updated.
6629         (i386_linux_read_btrace): Renamed to
6630         x86_linux_read_btrace.  All uses updated.
6631
6632 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
6633
6634         * remote.c (extended_remote_post_attach): New function.
6635         (init_extended_remote_ops): Install it as to_post_attach method.
6636
6637 2014-07-09  Pedro Alves  <palves@redhat.com>
6638
6639         * infcmd.c (attach_command_post_wait): Don't call
6640         target_terminal_inferior here.
6641         (attach_command): Call it here instead.
6642
6643 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
6644
6645         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
6646         field.
6647         * c-varobj.c (c_is_path_expr_parent): New function, moved core
6648         from varobj.c, with additional checks.
6649         (c_varobj_ops): Fill in is_path_expr_parent field.
6650         (cplus_varobj_ops): Fill in is_path_expr_parent field.
6651         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
6652         field.
6653         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
6654         ops method.
6655         (varobj_default_is_path_expr_parent): New function.
6656         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
6657         (varobj_default_is_path_expr_parent): Declare new function.
6658
6659 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
6660
6661         * infcmd.c (finish_backward): Turn internal error into normal error.
6662
6663 2014-07-07  Pedro Alves  <palves@redhat.com>
6664
6665         PR gdb/17096
6666         * remote.c (async_handle_remote_sigint)
6667         (async_handle_remote_sigint_twice): Call
6668         gdb_call_async_signal_handler instead of
6669         mark_async_signal_handler.
6670
6671 2014-07-07  Tom Tromey  <tromey@redhat.com>
6672
6673         * target-delegates.c: Rebuild.
6674         * target.c (target_info_record): Remove.
6675         * record.c (info_record_command): Unconditionally call
6676         to_info_record.
6677         * target.h (struct target_ops) <to_info_record>: Use
6678         TARGET_DEFAULT_IGNORE.
6679         (target_info_record): Remove.
6680
6681 2014-07-07  Tom Tromey  <tromey@redhat.com>
6682
6683         * target.h (struct target_ops) <to_get_thread_local_address>: Use
6684         TARGET_DEFAULT_NORETURN.
6685         * target.c (generic_tls_error): New function.
6686         (target_translate_tls_address): Don't search target stack.
6687         * target-delegates.c: Rebuild.
6688         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
6689         stack.
6690         * linux-thread-db.c (thread_db_get_thread_local_address):
6691         Unconditionally call beneath target.
6692
6693 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
6694
6695         * cli/cli-logging.c (pop_output_files): Assign targerr to
6696         gdb_stdtargerr.
6697
6698 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
6699
6700         * MAINTAINERS (Write After Approval): Update my email address.
6701
6702 2014-07-02  Gary Benson  <gbenson@redhat.com>
6703
6704         * proc-service.c (ps_xfer_memory): Update comment.
6705         (ps_pstop): Remove unused function.
6706         (ps_pcontinue): Likewise.
6707         (ps_lstop): Likewise.
6708         (ps_lcontinue): Likewise.
6709         (ps_lgetxregsize): Likewise.
6710         (ps_lgetxregs): Likewise.
6711         (ps_lsetxregs): Likewise.
6712         (ps_plog): Likewise.
6713         (ps_ptread): Likewise.
6714         (ps_ptwrite): Likewise.
6715
6716 2014-07-01  Mark Wielaard  <mjw@redhat.com>
6717
6718         * dwarf2read.c (add_array_cv_type): New function.
6719         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
6720         (read_tag_volatile_type): Likewise.
6721
6722 2014-07-01  Tom Tromey  <tromey@redhat.com>
6723
6724         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
6725         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
6726         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
6727         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
6728         * command.h (cmd_cfunc_ftype): Move earlier.
6729         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
6730         (add_com, add_info): Use cmd_cfunc_ftype.
6731
6732 2014-06-30  Tom Tromey  <tromey@redhat.com>
6733
6734         * symtab.c (operator_chars): Make parameters and return type
6735         const.
6736         (file_matches): Make "files" const.
6737         (struct search_symbols_data) <files>: Now const.
6738         (search_symbols): Make "regexp" and "files" parameters const.
6739         Update.
6740         (symtab_symbol_info): Remove cast.
6741         (rbreak_command): Update.
6742         * symtab.h (search_symbols): Update.
6743
6744 2014-06-27  Yao Qi  <yao@codesourcery.com>
6745
6746         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
6747         Change parameter type to 'struct thread_info *'.  Caller
6748         updated.
6749         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
6750         Update declaration.
6751         * dummy-frame.c (struct dummy_frame_id): New.
6752         (dummy_frame_id_eq): New function.
6753         (struct dummy_frame) <id>: Change its type to 'struct
6754         dummy_frame_id'.
6755         (dummy_frame_push): Add parameter ptid and save it in
6756         dummy_frame_id.
6757         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
6758         inferior_ptid.
6759         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
6760         to inferior_ptid.
6761         (lookup_dummy_frame): Change parameter type to 'struct
6762         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
6763         instead of frame_id_eq.
6764         (dummy_frame_pop): Add parameter ptid.  Callers updated.
6765         Update comments.  Compose dummy_frame_id and pass it to
6766         lookup_dummy_frame.
6767         (dummy_frame_discard): Add parameter ptid.
6768         (dummy_frame_sniffer): Compose dummy_frame_id and call
6769         dummy_frame_id_eq instead of frame_id_eq.
6770         (fprint_dummy_frames): Print ptid.
6771         * dummy-frame.h: Remove comments.
6772         (dummy_frame_push): Add ptid in declaration.
6773         (dummy_frame_pop, dummy_frame_discard): Likewise.
6774
6775 2014-06-26  Tom Tromey  <tromey@redhat.com>
6776
6777         * cli/cli-cmds.c (error_no_arg): Make "why" const.
6778         * command.h (error_no_arg): Update.
6779
6780 2014-06-26  Tom Tromey  <tromey@redhat.com>
6781
6782         * cli/cli-setshow.c (do_set_command): Make "arg" const.
6783         (do_show_command): Make "arg" const.
6784         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
6785
6786 2014-06-26  Tom Tromey  <tromey@redhat.com>
6787
6788         * record-full.c (record_full_get_bookmark): Make "args" const.
6789         (record_full_goto_bookmark): Make "raw_bookmark" const.
6790         * record.c (record_goto): New function.
6791         (cmd_record_goto): Use it.  Now static.
6792         * record.h (record_goto): Declare.
6793         (cmd_record_goto): Remove declaration.
6794         * target-delegates.c: Rebuild.
6795         * target.h (struct target_ops) <to_get_bookmark,
6796         to_goto_bookmark>: Make parameter const.
6797
6798 2014-06-26  Tom Tromey  <tromey@redhat.com>
6799
6800         * defs.h (generic_load): Update.
6801         * m32r-rom.c (m32r_load_gen): Make "filename" const.
6802         * monitor.c (monitor_load): Make "args" const.
6803         * remote-m32r-sdi.c (m32r_load): Make "args" const.
6804         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6805         const.
6806         (mips_load): Make "file" const.
6807         * remote-sim.c (gdbsim_load): Make "args" const.
6808         * remote.c (remote_load): Make "name" const.
6809         * symfile.c (generic_load): Make "args" const.
6810         * target-delegates.c: Rebuild.
6811         * target.c (target_load): Make "arg" const.
6812         (debug_to_load): Make "args" const.
6813         * target.h (struct target_ops) <to_load>: Make parameter const.
6814         (target_load): Update.
6815
6816 2014-06-26  Tom Tromey  <tromey@redhat.com>
6817
6818         PR symtab/16902:
6819         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6820         (dwarf2_physname, read_partial_die)
6821         (guess_partial_die_structure_name, fixup_partial_die)
6822         (guess_full_die_structure_name, anonymous_struct_prefix)
6823         (dwarf2_name): Use per-BFD obstack.
6824
6825 2014-06-26  Yao Qi  <yao@codesourcery.com>
6826
6827         * dummy-frame.c (dummy_frame_sniffer): Move local variables
6828         dummyframe and this_id into inner block below.
6829
6830 2014-06-26  Yao Qi  <yao@codesourcery.com>
6831
6832         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6833         with "signal_pass[0]" in the initialization of signal_pass.
6834
6835 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
6836
6837         * record-btrace.c (record_btrace_generating_corefile)
6838         (record_btrace_prepare_to_generate_core)
6839         (record_btrace_done_generating_core): New.
6840         (record_btrace_xfer_partial, record_btrace_fetch_registers)
6841         (record_btrace_store_registers, record_btrace_prepare_to_store):
6842         Forward request when generating a core file.
6843         (record_btrace_open): Set record_btrace_generating_corefile to zero.
6844         (init_record_btrace_ops): Set to_prepare_to_generate_core and
6845         to_done_generating_core.
6846
6847 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
6848
6849         * target.h (target_ops) <to_prepare_to_generate_core>
6850         <to_done_generating_core>: New.
6851         (target_prepare_to_generate_core, target_done_generating_core): New.
6852         * target.c (target_prepare_to_generate_core)
6853         (target_done_generating_core): New.
6854         * target-delegates.c: Regenerate.
6855         * gcore.c: (write_gcore_file): Rename to ...
6856         (write_gcore_file_1): ...this.
6857         (write_gcore_file): Call target_prepare_to_generate_core
6858         and target_done_generating_core.
6859
6860 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
6861
6862         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6863         * gcore.c (write_gcore_file): Free memory returned from
6864         make_corefile_notes.
6865         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6866         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6867
6868 2014-06-24  Yao Qi  <yao@codesourcery.com>
6869
6870         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6871         (arm_linux_init_abi): Set skip_trampoline_code with
6872         gdbarch_skip_trampoline_code instead of
6873         find_solib_trampoline_target.
6874
6875 2014-06-24  Yao Qi  <yao@codesourcery.com>
6876
6877         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6878         arm_skip_bx_reg returns non-zero.
6879
6880 2014-06-24  Yao Qi  <yao@codesourcery.com>
6881
6882         * arm-tdep.c (arm_skip_bx_reg): New function.
6883         (arm_skip_stub): Call arm_skip_bx_reg.
6884
6885 2014-06-23  Don Breazeal  <donb@codesourcery.com>
6886
6887         * MAINTAINERS: Add myself as write-after-approval maintainer.
6888
6889 2014-06-23  Pedro Alves  <palves@redhat.com>
6890
6891         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6892         DR_CONTROL before setting DR0..DR3.
6893         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6894         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6895         bits of DR_CONTROL related to the debug register slot being
6896         disabled.  If all slots are vacant, clear local slowdown as well,
6897         and assert DR_CONTROL is 0.
6898
6899 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
6900
6901         * python/lib/gdb/command/xmethods.py
6902         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
6903         current progspace only if the string "progspace" matches LOCUS_RE.
6904
6905 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
6906
6907         Fix --with-system-readline with readline-6.3 patch 5.
6908         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6909         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6910         types.
6911
6912 2014-06-20  Tom Tromey  <tromey@redhat.com>
6913
6914         * dwarf2read.c (dw2_get_real_path): Use correct type in
6915         OBSTACK_CALLOC.
6916         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6917
6918 2014-06-20  Gary Benson  <gbenson@redhat.com>
6919
6920         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
6921         * common/glibc_thread_db.h: Likewise.
6922         * common/i386-cpuid.h: Likewise.
6923         * common/i386-gcc-cpuid.h: Likewise.
6924         * common/linux-btrace.h: Likewise.
6925         * common/linux-osdata.h: Likewise.
6926         * common/linux-procfs.h: Likewise.
6927         * common/linux-ptrace.h: Likewise.
6928         * common/mips-linux-watch.h: Likewise.
6929         * common/linux-btrace.c: Moved to nat.
6930         * common/linux-osdata.c: Likewise.
6931         * common/linux-procfs.c: Likewise.
6932         * common/linux-ptrace.c: Likewise.
6933         * common/mips-linux-watch.c: Likewise.
6934         * nat/gdb_thread_db.h: Moved from common.
6935         * nat/glibc_thread_db.h: Likewise.
6936         * nat/i386-cpuid.h: Likewise.
6937         * nat/i386-gcc-cpuid.h: Likewise.
6938         * nat/linux-btrace.c: Likewise.
6939         * nat/linux-btrace.h: Likewise.
6940         * nat/linux-osdata.c: Likewise.
6941         * nat/linux-osdata.h: Likewise.
6942         * nat/linux-procfs.c: Likewise.
6943         * nat/linux-procfs.h: Likewise.
6944         * nat/linux-ptrace.c: Likewise.
6945         * nat/linux-ptrace.h: Likewise.
6946         * nat/mips-linux-watch.c: Likewise.
6947         * nat/mips-linux-watch.h: Likewise.
6948         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6949         (object file files): Reordered.
6950         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6951         of glibc_thread_db.h.
6952
6953 2014-06-20  Gary Benson  <gbenson@redhat.com>
6954
6955         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6956         (i386_dr_low_type): Moved to nat/i386-dregs.h.
6957         (i386_dr_low): Likewise.
6958         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6959         (i386_dr_low_set_addr): Likewise.
6960         (i386_dr_low_get_addr): Likewise.
6961         (i386_dr_low_can_set_control): Likewise.
6962         (i386_dr_low_set_control): Likewise.
6963         (i386_dr_low_get_control): Likewise.
6964         (i386_dr_low_get_status): Likewise.
6965         (i386_get_debug_register_length): Likewise.
6966         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6967         (i386_dr_low): Likewise.
6968         * nat/i386-dregs.c (i386-low.h): Remove include.
6969         (i386-nat.h): Likewise.
6970         (nat/i386-dregs.h): New include.
6971         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6972         (i386_dr_low_set_addr): Likewise.
6973         (i386_dr_low_get_addr): Likewise.
6974         (i386_dr_low_can_set_control): Likewise.
6975         (i386_dr_low_set_control): Likewise.
6976         (i386_dr_low_get_control): Likewise.
6977         (i386_dr_low_get_status): Likewise.
6978         (i386_get_debug_register_length): Likewise.
6979         (debug_hw_points): Likewise.
6980
6981 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
6982
6983         * Makefile.in (SFILES): Add d-exp.y.
6984         (YYFILES): Add d-exp.c.
6985         (YYOBJ): Add d-exp.o.
6986         (local-maintainer-clean): Delete d-exp.c.
6987         * d-exp.y: New file.
6988         * d-lang.h (d_parse): New declaration.
6989         (d_error): New declaration.
6990         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6991         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6992         PREC_ORDER operators.
6993         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6994
6995 2014-06-19  Yao Qi  <yao@codesourcery.com>
6996
6997         * gdbthread.h (any_running): Remove the declaration.
6998         * thread.c (any_running): Remove.
6999
7000 2014-06-19  Yao Qi  <yao@codesourcery.com>
7001
7002         * gdbthread.h (struct thread_info) <state>: Change its type to
7003         'enum thread_state'.  Update comments.
7004
7005 2014-06-19  Pedro Alves  <palves@redhat.com>
7006
7007         * gdbthread.h (ALL_THREADS): Delete.
7008         (ALL_NON_EXITED_THREADS): New macro.
7009         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
7010         instead of ALL_THREADS.
7011         * infrun.c (find_thread_needs_step_over)
7012         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
7013         instead of ALL_THREADS.
7014         * record-btrace.c (record_btrace_open)
7015         (record_btrace_stop_recording, record_btrace_close)
7016         (record_btrace_is_replaying, record_btrace_resume)
7017         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
7018         * remote.c (append_pending_thread_resumptions): Likewise.
7019         * thread.c (thread_apply_all_command): Likewise.
7020
7021 2014-06-19  Gary Benson  <gbenson@redhat.com>
7022
7023         * i386-nat.c (i386_stopped_by_watchpoint):
7024         Use i386_dr_stopped_by_watchpoint.
7025         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
7026         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
7027
7028 2014-06-19  Gary Benson  <gbenson@redhat.com>
7029
7030         * nat/i386-dregs.c: New file.
7031         * Makefile.in (i386-dregs.o): New rule.
7032         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
7033         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
7034         * config/i386/darwin.mh (NATDEPFILES): Likewise.
7035         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
7036         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
7037         * config/i386/go32.mh (NATDEPFILES): Likewise.
7038         * config/i386/linux.mh (NATDEPFILES): Likewise.
7039         * config/i386/linux64.mh (NATDEPFILES): Likewise.
7040         * config/i386/mingw.mh (NATDEPFILES): Likewise.
7041         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
7042         * i386-nat.h (debug_hw_points): New declaration.
7043         * i386-nat.c (breakpoint.h): Remove include.
7044         (command.h): Likewise.
7045         (target.h): Likewise.
7046         (gdb_assert.h): Likewise.
7047         (debug_hw_points): Made nonstatic.
7048         (debug_printf): Now in i386-dregs.c.
7049         (TARGET_HAS_DR_LEN_8): Likewise.
7050         (DR_CONTROL_SHIFT): Likewise.
7051         (DR_CONTROL_SIZE): Likewise.
7052         (DR_RW_EXECUTE): Likewise.
7053         (DR_RW_WRITE): Likewise.
7054         (DR_RW_READ): Likewise.
7055         (DR_RW_IORW): Likewise.
7056         (DR_LEN_1): Likewise.
7057         (DR_LEN_2): Likewise.
7058         (DR_LEN_4): Likewise.
7059         (DR_LEN_8): Likewise.
7060         (DR_LOCAL_ENABLE_SHIFT): Likewise.
7061         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
7062         (DR_ENABLE_SIZE): Likewise.
7063         (DR_LOCAL_SLOWDOWN): Likewise.
7064         (DR_GLOBAL_SLOWDOWN): Likewise.
7065         (DR_CONTROL_RESERVED): Likewise.
7066         (I386_DR_CONTROL_MASK): Likewise.
7067         (I386_DR_VACANT): Likewise.
7068         (I386_DR_LOCAL_ENABLE): Likewise.
7069         (I386_DR_GLOBAL_ENABLE): Likewise.
7070         (I386_DR_DISABLE): Likewise.
7071         (I386_DR_SET_RW_LEN): Likewise.
7072         (I386_DR_GET_RW_LEN): Likewise.
7073         (I386_DR_WATCH_HIT): Likewise.
7074         (i386_wp_op_t): Likewise.
7075         (i386_show_dr): Likewise.
7076         (i386_length_and_rw_bits): Likewise.
7077         (i386_insert_aligned_watchpoint): Likewise.
7078         (i386_remove_aligned_watchpoint): Likewise.
7079         (i386_handle_nonaligned_watchpoint): Likewise.
7080         (i386_update_inferior_debug_regs): Likewise.
7081         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
7082         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
7083         (i386_region_ok_for_watchpoint):
7084         Use i386_dr_region_ok_for_watchpoint.
7085         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
7086
7087 2014-06-19  Gary Benson  <gbenson@redhat.com>
7088
7089         * i386-nat.c (i386_insert_hw_breakpoint): Use
7090         i386_insert_watchpoint.
7091         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
7092
7093 2014-06-19  Gary Benson  <gbenson@redhat.com>
7094
7095         * i386-nat.c (i386_dr_show): Renamed to
7096         i386_show_dr and made static.  All uses updated.
7097         (i386_dr_length_and_rw_bits): Renamed to
7098         i386_length_and_rw_bits and made static.
7099         All uses updated.
7100         (i386_dr_insert_aligned_watchpoint): Renamed to
7101         i386_insert_aligned_watchpoint and made static.
7102         All uses updated.
7103         (i386_dr_remove_aligned_watchpoint): Renamed to
7104         i386_remove_aligned_watchpoint and made static.
7105         All uses updated.
7106         (i386_dr_update_inferior_debug_regs): Renamed to
7107         i386_update_inferior_debug_regs and made static.
7108         All uses updated.
7109         * nat/i386-dregs.h (i386_dr_show): Removed.
7110         (i386_dr_length_and_rw_bits): Likewise.
7111         (i386_dr_insert_aligned_watchpoint): Likewise.
7112         (i386_dr_remove_aligned_watchpoint): Likewise.
7113         (i386_dr_update_inferior_debug_regs): Likewise.
7114
7115 2014-06-19  Gary Benson  <gbenson@redhat.com>
7116
7117         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
7118         * configure: Regenerate.
7119         * config.in: Likewise.
7120         * main.c (signal.h): New include.
7121         (setup_alternate_signal_stack): New function.
7122         (captured_main): Call the above.
7123         * cp-support.c (signal.h): New include.
7124         (catch_demangler_crashes): New flag.
7125         (SIGJMP_BUF): New define.
7126         (SIGSETJMP): Likewise.
7127         (SIGLONGJMP): Likewise.
7128         (gdb_demangle_jmp_buf): New static global.
7129         (gdb_demangle_attempt_core_dump): Likewise.
7130         (gdb_demangle_signal_handler): New function.
7131         (gdb_demangle): If catch_demangler_crashes is set, install the
7132         above signal handler before calling bfd_demangle, and restore
7133         the original signal handler afterwards.  Display the offending
7134         symbol and call demangler_warning the first time a segmentation
7135         fault is caught.
7136         (_initialize_cp_support): New maint set/show command.
7137
7138 2014-06-19  Gary Benson  <gbenson@redhat.com>
7139
7140         * utils.h (resource_limit_kind): New enum.
7141         (can_dump_core): New declaration.
7142         (warn_cant_dump_core): Likewise.
7143         (dump_core): Likewise.
7144         * utils.c (dump_core): Made nonstatic.  Added new
7145         parameter "limit_kind".
7146         (can_dump_core): Made nonstatic. Moved printing code to...
7147         (warn_cant_dump_core): New function.
7148         (can_dump_core_warn): Likewise.
7149         (internal_vproblem): Replace calls to can_dump_core with
7150         calls to can_dump_core_warn.  Supply new argument to each.
7151
7152 2014-06-19  Gary Benson  <gbenson@redhat.com>
7153
7154         * utils.h (demangler_vwarning): New declaration.
7155         (demangler_warning): Likewise.
7156         * utils.c (struct internal_problem)
7157         <user_settable_should_quit>: New field.
7158         <user_settable_should_dump_core>: Likewise
7159         (internal_error_problem): Add values for above new fields.
7160         (internal_warning_problem): Likewise.
7161         (demangler_warning_problem): New static global.
7162         (demangler_vwarning): New function.
7163         (demangler_warning): Likewise.
7164         (add_internal_problem_command): Selectively add commands.
7165         (_initialize_utils): New internal problem command.
7166         * maint.c (maintenance_demangler_warning): New function.
7167         (_initialize_maint_cmds): New command.
7168
7169 2014-06-18  Tom Tromey  <tromey@redhat.com>
7170
7171         * f-valprint.c (info_common_command_for_block): Update.
7172         * symtab.h (struct general_symbol_info) <common_block>: Now
7173         const.
7174
7175 2014-06-18  Tom Tromey  <tromey@redhat.com>
7176
7177         * symtab.h (struct symtab) <blockvector>: Now const.
7178         * ada-lang.c (ada_add_global_exceptions): Update.
7179         * buildsym.c (augment_type_symtab): Update.
7180         * dwarf2read.c (dw2_lookup_symbol): Update.
7181         * jit.c (finalize_symtab): Update.
7182         * jv-lang.c (add_class_symtab_symbol): Update.
7183         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
7184         Update.
7185         * objfiles.c (objfile_relocate1): Update.
7186         * psymtab.c (lookup_symbol_aux_psymtabs)
7187         (maintenance_check_psymtabs): Update.
7188         * python/py-symtab.c (stpy_global_block, stpy_static_block):
7189         Update.
7190         * spu-tdep.c (spu_catch_start): Update.
7191         * symmisc.c (dump_symtab_1): Update.
7192         * symtab.c (lookup_global_symbol_from_objfile)
7193         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
7194         (basic_lookup_transparent_type_quick)
7195         (basic_lookup_transparent_type, find_pc_sect_symtab)
7196         (find_pc_sect_line, search_symbols): Update.
7197         * block.c (find_block_in_blockvector): Make "bl" const.
7198         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
7199         const.
7200         (blockvector_contains_pc): Make "bv" const.
7201         (block_for_pc_sect): Update.
7202         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7203         (blockvector_contains_pc): Update.
7204         * breakpoint.c (resolve_sal_pc): Update.
7205         * inline-frame.c (block_starting_point_at): Update.
7206
7207 2014-06-18  Tom Tromey  <tromey@redhat.com>
7208
7209         * completer.c (complete_line): Make "line_buffer" const.
7210         * completer.h (complete_line): Update.
7211
7212 2014-06-18  Tom Tromey  <tromey@redhat.com>
7213
7214         * symtab.c (add_macro_name): Remove unneeded cast.
7215
7216 2014-06-18  Tom Tromey  <tromey@redhat.com>
7217
7218         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
7219         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
7220
7221 2014-06-18  Tom Tromey  <tromey@redhat.com>
7222
7223         * probe.c (info_probes_for_ops): Make "arg" const.
7224         * probe.h (info_probes_for_ops): Update.
7225
7226 2014-06-18  Tom Tromey  <tromey@redhat.com>
7227
7228         * varobj.c (varobj_create): Update.
7229         * valops.c (value_of_this): Update.
7230         * tracepoint.c (add_local_symbols, scope_info): Update.
7231         * symtab.h (struct general_symbol_info) <block>: Now const.
7232         * symtab.c (skip_prologue_sal)
7233         (default_make_symbol_completion_list_break_on)
7234         (skip_prologue_using_sal): Update.
7235         * stack.h (iterate_over_block_locals)
7236         (iterate_over_block_local_vars): Update.
7237         * stack.c (print_frame_args): Update.
7238         (iterate_over_block_locals, iterate_over_block_local_vars): Make
7239         parameter const.
7240         (get_selected_block): Make return type const.
7241         * python/py-frame.c (frapy_block): Update.
7242         * python/py-block.c (gdbpy_block_for_pc): Update.
7243         * p-exp.y (%union) <bval>: Now const.
7244         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7245         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
7246         * m2-exp.y (%union) <bval>: Now const.
7247         * linespec.c (get_current_search_block): Make return type const.
7248         (create_sals_line_offset, find_label_symbols): Update.
7249         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7250         Update.
7251         (block_starting_point_at): Make "block" const.
7252         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
7253         (check_exception_resume): Update.
7254         * guile/scm-frame.c (gdbscm_frame_block): Update.
7255         * guile/scm-block.c (gdbscm_lookup_block): Update.
7256         * frame.h (get_frame_block): Update.
7257         (get_selected_block): Make return type const.
7258         * frame.c (frame_id_inner): Update.
7259         * f-valprint.c (info_common_command_for_block)
7260         (info_common_command): Update.
7261         * dwarf2loc.c (dwarf2_find_location_expression)
7262         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
7263         (locexpr_describe_location_piece): Update.
7264         * c-exp.y (%union) <bval>: Now const.
7265         * breakpoint.c (resolve_sal_pc): Update.
7266         * blockframe.c (get_frame_block):Make return type const.
7267         (get_pc_function_start, get_frame_function, find_pc_sect_function)
7268         (block_innermost_frame): Update.
7269         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
7270         (block_for_pc, block_for_pc_sect): Update.
7271         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
7272         'pblock' const.
7273         (block_for_pc_sect, block_for_pc): Make return type const.
7274         * ax-gdb.c (gen_expr): Update.
7275         * alpha-mdebug-tdep.c (find_proc_desc): Update.
7276         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
7277         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
7278         (ada_read_var_value): Update.
7279         * ada-exp.y (struct name_info) <block>: Now const.
7280         (%union): Likewise.
7281         (block_lookup): Constify.
7282
7283 2014-06-18  Gary Benson  <gbenson@redhat.com>
7284
7285         * nat/i386-dregs.h: New file.
7286         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
7287         * i386-nat.h (i386-dregs.h): New include.
7288         (DR_FIRSTADDR): Now in i386-dregs.h.
7289         (DR_LASTADDR): Likewise.
7290         (DR_NADDR): Likewise.
7291         (DR_STATUS): Likewise.
7292         (DR_CONTROL): Likewise.
7293         (i386_debug_reg_state): Likewise.
7294         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
7295
7296 2014-06-18  Don Breazeal  <donb@codesourcery.com>
7297
7298         * breakpoint.c (set_longjmp_breakpoint): Call
7299         momentary_breakpoint_from_master with additional argument.
7300         (set_longjmp_breakpoint_for_call_dummy): Call
7301         momentary_breakpoint_from_master with additional argument.
7302         (set_std_terminate_breakpoint): Call
7303         momentary_breakpoint_from_master with additional argument.
7304         (momentary_breakpoint_from_master): Add argument to function
7305         definition and use it to initialize structure member flag.
7306         (clone_momentary_breakpoint): Call
7307         momentary_breakpoint_from_master with additional argument.
7308         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
7309         member flags set in momentary_breakpoint_from_master.
7310
7311 2014-06-18  Gary Benson  <gbenson@redhat.com>
7312
7313         * i386-nat.c (i386_show_dr): Renamed to
7314         i386_dr_show and made nonstatic.  All uses updated.
7315         (i386_length_and_rw_bits): Renamed to
7316         i386_dr_length_and_rw_bits and made nonstatic.
7317         All uses updated.
7318         (i386_insert_aligned_watchpoint): Renamed to
7319         i386_dr_insert_aligned_watchpoint and made nonstatic.
7320         All uses updated.
7321         (i386_remove_aligned_watchpoint): Renamed to
7322         i386_dr_remove_aligned_watchpoint and made nonstatic.
7323         All uses updated.
7324         (i386_update_inferior_debug_regs): Renamed to
7325         i386_dr_update_inferior_debug_regs and made nonstatic.
7326         All uses updated.
7327
7328 2014-06-18  Gary Benson  <gbenson@redhat.com>
7329
7330         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
7331         (i386_dr_low_can_set_control): Likewise.
7332         (i386_dr_low_set_addr): Likewise.
7333         (i386_dr_low_set_control): Likewise.
7334         (i386_dr_low_get_addr): Likewise.
7335         (i386_dr_low_get_status): Likewise.
7336         (i386_dr_low_get_control): Likewise.
7337         (i386_insert_aligned_watchpoint): Use new macros.
7338         (i386_update_inferior_debug_regs): Likewise.
7339         (i386_stopped_data_address): Likewise.
7340
7341 2014-06-18  Gary Benson  <gbenson@redhat.com>
7342
7343         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
7344         New parameter.  All uses updated.
7345
7346 2014-06-18  Gary Benson  <gbenson@redhat.com>
7347
7348         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
7349         All uses updated.
7350
7351 2014-06-18  Gary Benson  <gbenson@redhat.com>
7352
7353         * i386-nat.c (debug_printf): New macro.
7354         (i386_get_debug_register_length): Likewise.
7355         (TARGET_HAS_DR_LEN_8): Use above macro.
7356         (i386_show_dr): Use debug_printf instead of puts_unfiltered
7357         and printf_unfiltered.  Use phex to format values.
7358
7359 2014-06-18  Gary Benson  <gbenson@redhat.com>
7360
7361         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
7362         Make const.
7363
7364 2014-06-18  Gary Benson  <gbenson@redhat.com>
7365
7366         * i386-nat.c: Comment changes.
7367
7368 2014-06-18  Gary Benson  <gbenson@redhat.com>
7369
7370         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
7371
7372 2014-06-18  Gary Benson  <gbenson@redhat.com>
7373
7374         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
7375         (i386_insert_aligned_watchpoint): Likewise.
7376         (i386_remove_aligned_watchpoint): Likewise.
7377         (i386_handle_nonaligned_watchpoint): Likewise.
7378
7379 2014-06-18  Gary Benson  <gbenson@redhat.com>
7380
7381         * i386-nat.c: Whitespace changes.
7382
7383 2014-06-17  Samuel Bronson  <naesten@gmail.com>
7384
7385         * MAINTAINERS: Update Roland McGrath's email address.
7386         Thanks to Sergio Durigan Junior for pointing out that he left
7387         Red Hat a while ago, and giving me a current address.
7388
7389 2014-06-17  Tom Tromey  <tromey@redhat.com>
7390
7391         * utils.h (savestring): Remove declaration.
7392
7393 2014-06-17  Tom Tromey  <tromey@redhat.com>
7394
7395         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
7396
7397 2014-06-16  Keith Seitz  <keiths@redhat.com>
7398
7399         PR mi/15863
7400         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
7401         to update the varobj if inferior_ptid is null_ptid.
7402
7403 2014-06-16  Tom Tromey  <tromey@redhat.com>
7404
7405         * target.h (struct target_ops) <to_info_proc>: Make parameter
7406         const.
7407         (target_info_proc): Update.
7408         * target.c (target_info_proc): Make "args" const.
7409         * procfs.c (procfs_info_proc): Update.
7410         * linux-tdep.c (linux_info_proc): Update.
7411         (linux_core_info_proc_mappings): Make "args" const.
7412         (linux_core_info_proc): Update.
7413         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
7414         * gdbarch.c: Rebuild.
7415         * gdbarch.h: Rebuild.
7416         * corelow.c (core_info_proc): Update.
7417
7418 2014-06-16  Tom Tromey  <tromey@redhat.com>
7419
7420         * target.h (struct target_ops) <to_disconnect>: Make parameter
7421         const.
7422         (target_disconnect): Update.
7423         * target.c (target_disconnect): Make "args" const.
7424         * target-delegates.c: Rebuild.
7425         * remote.c (remote_disconnect): Update.
7426         * record.h (record_disconnect): Update.
7427         * record.c (record_disconnect): Update.
7428         * inf-child.c (inf_child_disconnect): Update.
7429
7430 2014-06-16  Tom Tromey  <tromey@redhat.com>
7431
7432         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
7433         * target.c (debug_to_rcmd, default_rcmd): Update.
7434         * target-delegates.c: Rebuild.
7435         * remote.c (remote_rcmd): Update.
7436         * monitor.c (monitor_rcmd): Update.
7437
7438 2014-06-16  Pedro Alves  <palves@redhat.com>
7439
7440         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
7441         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
7442         have OBJF_SHARED set.
7443         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
7444         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
7445         instead of OBJF_USERLOADED.
7446         * objfiles.h (OBJF_SHARED): Update comment.
7447         (userloaded_objfile_contains_address_p): Rename to ...
7448         (shared_objfile_contains_address_p): ... this, and update
7449         comments.
7450         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
7451         new objfile.
7452         (remove_symbol_file_command): Skip objfiles that don't have
7453         OBJF_SHARED set.
7454
7455 2014-06-16  Tom Tromey  <tromey@redhat.com>
7456
7457         * minsyms.h (prim_record_minimal_symbol)
7458         (prim_record_minimal_symbol_and_info): Update comments.
7459
7460 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
7461
7462         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
7463         or --without-guile, according to how GDB was built.
7464
7465 2014-06-13  Tom Tromey  <tromey@redhat.com>
7466
7467         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
7468         to help_list.
7469         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
7470         to help_list.
7471         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
7472         help_list.
7473         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
7474         help_list.Pass all_commands, not -1, to help_list.
7475         * cli/cli-dump.c (dump_command, append_command)
7476         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
7477         (binary_dump_command, binary_append_command): Pass all_commands,
7478         not -1, to help_list.
7479         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
7480         -1, to help_list.
7481         * valprint.c (set_print, set_print_raw): Pass all_commands, not
7482         -1, to help_list.
7483         * typeprint.c (set_print_type): Pass all_commands, not -1, to
7484         help_list.
7485         * top.c (set_history): Pass all_commands, not -1, to help_list.
7486         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
7487         all_commands, not -1, to help_list.
7488         * symfile.c (overlay_command): Pass all_commands, not -1, to
7489         help_list.
7490         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
7491         help_list.
7492         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
7493         help_list.
7494         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
7495         -1, to help_list.
7496         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
7497         not -1, to help_list.
7498         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
7499         not -1, to help_list.
7500         * maint.c (maintenance_command, maintenance_info_command)
7501         (maintenance_print_command, maintenance_set_cmd): Pass
7502         all_commands, not -1, to help_list.
7503         * macrocmd.c (macro_command): Pass all_commands, not -1, to
7504         help_list.
7505         * language.c (set_check): Pass all_commands, not -1, to help_list.
7506         * infcmd.c (unset_command): Pass all_commands, not -1, to
7507         help_list.
7508         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
7509         help_list.
7510         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
7511         help_list.
7512         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
7513         help_list.
7514         * breakpoint.c (save_command): Pass all_commands, not -1, to
7515         help_list.
7516         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
7517         all_commands, not -1, to help_list.
7518
7519 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
7520
7521         * regcache.c (struct register_to_invalidate): New structure.
7522         (do_register_invalidate, make_cleanup_regcache_invalidate): New
7523         functions.
7524         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
7525
7526 2014-06-12  Yao Qi  <yao@codesourcery.com>
7527
7528         * varobj.c (varobj_get_num_children): Call
7529         varobj_is_dynamic_p.
7530         (varobj_list_children): Likewise.
7531         (varobj_update): Likewise.  Update comments.
7532
7533 2014-06-12  Yao Qi  <yao@codesourcery.com>
7534
7535         * varobj.c (varobj_pretty_printed_p): Rename to ...
7536         (varobj_is_dynamic_p): ... this.  New function.
7537         * varobj.h (varobj_pretty_printed_p): Remove declaration.
7538         (varobj_is_dynamic_p): Declare.
7539         * mi/mi-cmd-var.c (print_varobj): All callers updated.
7540         (mi_print_value_p, varobj_update_one): Likewise.
7541
7542 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
7543             Yao Qi  <yao@codesourcery.com>
7544
7545         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
7546         (varobj_get_iterator): Wrap up code for pretty-printer by
7547         "#if HAVE_PYTHON" and "#endif".
7548         (update_dynamic_varobj_children): Likewise.
7549
7550 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
7551             Yao Qi  <yao@codesourcery.com>
7552
7553         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
7554         gdb_python_initialized is false.  Move some code from varobj.c.
7555         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
7556         * varobj.c: Move "varobj-iter.h" inclusion earlier.
7557         (struct varobj_item): Moved to varobj-iter.h".
7558         (varobj_clear_saved_item): New function.
7559         (update_dynamic_varobj_children): Move python-related code to
7560         py-varobj.c.
7561         (free_variable): Call varobj_clear_saved_item and
7562         varobj_iter_delete.
7563
7564 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
7565             Yao Qi  <yao@codesourcery.com>
7566
7567         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
7568         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
7569         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
7570         (py-varobj.o): New rule.
7571         * python/py-varobj.c: New file.
7572         * python/python-internal.h (py_varobj_get_iterator): Declare.
7573         * varobj-iter.h: New file.
7574         * varobj.c: Include "varobj-iter.h"
7575         (struct varobj) <child_iter>: Change its type from "PyObject *"
7576         to "struct varobj_iter *".
7577         <saved_item>: Likewise.
7578         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
7579         [HAVE_PYTHON] (varobj_get_iterator): New function.
7580         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
7581         python-specific code to python/py-varobj.c.
7582         (install_visualizer): Call varobj_iter_delete instead of
7583         Py_XDECREF.
7584         * varobj.h (varobj_ensure_python_env): Declare.
7585
7586 2014-06-12  Yao Qi  <yao@codesourcery.com>
7587
7588         * varobj.c (struct varobj_item): New structure.
7589         (create_child_with_value): Update declaration.
7590         (varobj_add_child): Replace arguments 'name' and 'value' with
7591         'item'.  All callers updated.
7592         (install_dynamic_child): Likewise.
7593         (update_dynamic_varobj_children): Likewise.
7594         (varobj_add_child): Likewise.
7595         (create_child_with_value): Likewise.
7596
7597 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
7598
7599         * NEWS: Create a new section for the next release branch.
7600         Rename the section of the current branch, now that it has
7601         been cut.
7602
7603 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
7604
7605         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
7606         * version.in: Bump version to 7.8.50.DATE-cvs.
7607
7608 2014-06-11  Pedro Alves  <palves@redhat.com>
7609
7610         PR remote/17028
7611         * ser-mingw.c (net_windows_socket_check_pending): New function.
7612         (net_windows_select_thread): Ignore spurious wakeups.  Use
7613         net_windows_socket_check_pending.
7614         (net_windows_wait_handle): Check for pending events with
7615         ioctlsocket, through net_windows_socket_check_pending, instead of
7616         checking the socket's event.
7617
7618 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
7619
7620         * python/python-internal.h (gdb_PyObject_GetAttrString)
7621         (gdb_PyObject_HasAttrString): New inline function definitions.
7622         * py-value.c (get_field_flag): Remove the now unnecessary cast to
7623         char * of the second argument to PyObject_GetAttrString.
7624
7625 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
7626
7627         * serial.c (serial_write): Fix index of character to be printed
7628         in call to serial_logchar when serial debug traces are enabled.
7629
7630 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
7631
7632         * gdbtypes (resolve_dynamic_range): Add function description.
7633
7634 2014-06-09  Pedro Alves  <palves@redhat.com>
7635
7636         * linux-nat.c (linux_child_follow_fork): Initialize status with
7637         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
7638         inner block.  Only pass the signal to PTRACE_DETACH if in pass
7639         state.
7640
7641 2014-06-09  Gary Benson  <gbenson@redhat.com>
7642
7643         * common/signals.c (gdb_signal_from_host): Reorder to separate
7644         the always-available ANSI-standard signals from the signals that
7645         require checking.
7646         (do_gdb_signal_to_host): Likewise.
7647         * proc-events.c (signal_table): Likewise.
7648
7649 2014-06-08  Hui Zhu  <hui@codesourcery.com>
7650
7651         * common/linux-ptrace.c (linux_disable_event_reporting): New
7652         function.
7653         * common/linux-ptrace.h (linux_disable_event_reporting): New
7654         declaration.
7655         * linux-nat.c (linux_child_follow_fork): Do a single step before
7656         detach.
7657
7658 2014-06-07  Keith Seitz  <keiths@redhat.com>
7659
7660         Revert:
7661         PR c++/16253
7662         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
7663         from symbol_matches_domain in symtab.c. All local callers
7664         of symbol_matches_domain updated.
7665         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
7666         search STRUCT_DOMAIN.
7667         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
7668         independently.  standard_lookup will do that automatically.
7669         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
7670         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7671         (cp_lookup_symbol_in_namespace): Likewise.
7672         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
7673         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
7674         may return a STRUCT_DOMAIN match.
7675         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
7676         * cp-support.c: Include language.h.
7677         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
7678         VAR_DOMAIN.
7679         * psymtab.c (match_partial_symbol): Compare the requested
7680         domain with the symbol's domain directly.
7681         (lookup_partial_symbol): Likewise.
7682         * symtab.c (lookup_symbol_in_language): Explain when/why
7683         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
7684         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
7685         appropriate languages.
7686         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
7687         and moved to ada-lang.c
7688         (lookup_block_symbol): Explain that this function only returns
7689         symbol matching the requested DOMAIN.
7690         Compare the requested domain with the symbol's domain directly.
7691         (iterate_over_symbols): Compare the requested domain with the
7692         symbol's domain directly.
7693         * symtab.h (symbol_matches_domain): Remove.
7694
7695 2014-06-06  Doug Evans  <xdje42@gmail.com>
7696
7697         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
7698         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
7699         (gdbscm_guile_version_is_at_least): Declare.
7700         (gdbscm_scm_string_to_int): Declare.
7701         * guile/guile.c (gdbscm_guile_major_version): New global.
7702         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
7703         (guile_datadir): New static global.
7704         (gdbscm_guile_data_directory): New function.
7705         (initialize_scheme_side): Update.
7706         (misc_guile_functions): Add guile-data-directory.
7707         (initialize_gdb_module): Fetch guile version number.
7708         * guile/lib/gdb.scm: Remove call to add-to-load-path.
7709         * guile/lib/gdb/init.scm (%initialize!): Ditto.
7710         * guile/lib/gdb/boot.scm: Use guile-data-directory.
7711         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
7712         comments.
7713         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
7714         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
7715         * guile/scm-value.c (gdbscm_value_to_string): Only call
7716         scm_port_conversion_strategy if Guile version >= 2.0.6.
7717
7718 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
7719
7720         * main.c (print_gdb_help): Add -q and --silent.
7721
7722 2014-06-06  Gary Benson  <gbenson@redhat.com>
7723
7724         * common/signals.c: Remove preprocessor conditionals for
7725         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
7726         SIGSEGV and SIGTERM.
7727         * proc-events.c: Likewise.
7728
7729 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
7730
7731         * symfile.c (symfile_free_objfile): Remove restriction to
7732         OBJF_USERLOADED.
7733         * symfile-mem.c (symbol_file_add_from_memory): Call
7734         add_target_sections_of_objfile.
7735
7736 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
7737
7738         * guile/scm-value.c (gdbscm_history_append_x): Use
7739         'vlscm_get_value_smob_arg_unsafe' instead of
7740         'vlscm_scm_to_value'.
7741
7742 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
7743
7744         PR mi/15806
7745         * utils.c (printchar): Don't escape at all if quoter is NUL.
7746         Update function documentation to clarify effect of parameter
7747         QUOTER.
7748         * remote.c (escape_buffer): Pass '\\' as the quoter to
7749         fputstrn_unfiltered.
7750         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
7751         generate the output.
7752         (mi_solib_unloaded): Same.
7753
7754 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
7755
7756         * development.sh: Delete.
7757         * Makefile.in (config.status): Adjust dependency on development.sh.
7758         * configure.ac: Adjust development.sh source call.
7759         * configure: Regenerate.
7760
7761 2014-06-04  Doug Evans  <xdje42@gmail.com>
7762
7763         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
7764         is_scheme_bkpt, spec.
7765         (bpscm_make_breakpoint_smob): Initialize new members.
7766         (gdbscm_create_breakpoint_x): Split into two ...
7767         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
7768         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
7769         (scheme_function breakpoint_functions): Update.
7770         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
7771         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
7772         register-breakpoint!.
7773
7774 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
7775
7776         PR server/17023
7777         * mem-break.c (z_type_supported): Return zero if
7778         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7779
7780 2014-06-04  Tom Tromey  <tromey@redhat.com>
7781
7782         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
7783         value_from_contents_and_address_unresolved.
7784         (ada_template_to_fixed_record_type_1): Likewise.
7785         (ada_which_variant_applies): Likewise.
7786         * value.h (value_from_contents_and_address_unresolved): Declare.
7787         * value.c (value_from_contents_and_address_unresolved): New
7788         function.
7789         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
7790         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
7791         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
7792
7793 2014-06-04  Tom Tromey  <tromey@redhat.com>
7794
7795         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
7796
7797 2014-06-04  Tom Tromey  <tromey@redhat.com>
7798
7799         * procfs.c (procfs_attach): Make "args" const.
7800         * windows-nat.c (windows_attach): Make "args" const.
7801         * nto-procfs.c (procfs_attach): Make "args" const.
7802         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
7803         * go32-nat.c (go32_attach): Make "args" const.
7804         * gnu-nat.c (gnu_attach): Make "args" const.
7805         * darwin-nat.c (darwin_attach): Make "args" const.
7806         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7807         * linux-nat.c (linux_nat_attach): Make "args" const.
7808         * remote.c (extended_remote_attach_1, extended_remote_attach):
7809         Make "args" const.
7810         * target.h (struct target_ops) <to_attach>: Make "args" const.
7811         (find_default_attach): Likewise.
7812         * utils.c (parse_pid_to_attach): Make "args" const.
7813         * utils.h (parse_pid_to_attach): Update.
7814
7815 2014-06-04  Tom Tromey  <tromey@redhat.com>
7816
7817         * target-delegates.c: Rebuild.
7818         * target.c (default_thread_address_space): New function.
7819         (target_thread_address_space): Simplify.
7820         * target.h (struct target_ops) <to_thread_address_space>: Add
7821         TARGET_DEFAULT_FUNC.
7822
7823 2014-06-04  Doug Evans  <xdje42@gmail.com>
7824
7825         * guile/scm-type.c (type_smob): Remove duplicate typedef.
7826
7827 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
7828
7829         * record-btrace.c: Include event-loop.h and inf-loop.h.
7830         (record_btrace_resume_exec_dir)
7831         (record_btrace_async_inferior_event_handler)
7832         (record_btrace_handle_async_inferior_event): New.
7833         (record_btrace_open): Create async event handler.
7834         (record_btrace_close): Delete async event handler.
7835         (record_btrace_resume): Set record_btrace_resume_exec_dir,
7836         Mark async event handler.
7837         (record_btrace_execution_direction): New.
7838         (init_record_btrace_ops): Initialize to_execution_direction.
7839
7840 2014-06-03  Doug Evans  <xdje42@gmail.com>
7841
7842         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7843         (gdbscm_make_parameter): Ditto.
7844
7845 2014-06-03  Doug Evans  <dje@google.com>
7846
7847         * exec.c (exec_close_1): Call clear_section_table instead of
7848         resize_section_table.
7849         (clear_section_table): New function.
7850         (resize_section_table): Make static.  Rename arg num_added to
7851         adjustment.
7852         * exec.h (clear_section_table): Declare.
7853         (resize_section_table): Delete.
7854         * progspace.c (release_program_space): Call clear_section_table
7855         instead of resize_section_table.
7856
7857 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
7858
7859         * NEWS (Python Scripting): Add entry about the new xmethods
7860         feature.
7861
7862 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
7863
7864         * python/py-xmethods.c: New file.
7865         * python/py-objfile.c (objfile_object): New field 'xmethods'.
7866         (objfpy_dealloc): XDECREF on the new xmethods field.
7867         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7868         field.
7869         (objfpy_get_xmethods): New function.
7870         (objfile_getset): New entry 'xmethods'.
7871         * python/py-progspace.c (pspace_object): New field 'xmethods'.
7872         (pspy_dealloc): XDECREF on the new xmethods field.
7873         (pspy_new, pspace_to_pspace_object): Initialize xmethods
7874         field.
7875         (pspy_get_xmethods): New function.
7876         (pspace_getset): New entry 'xmethods'.
7877         * python/python-internal.h: Add declarations for new functions.
7878         * python/python.c (_initialize_python): Invoke
7879         gdbpy_initialize_xmethods.
7880         * python/lib/gdb/__init__.py (xmethods): New
7881         attribute.
7882         * python/lib/gdb/xmethod.py: New file.
7883         * python/lib/gdb/command/xmethods.py: New file.
7884
7885 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
7886
7887         * eval.c (evaluate_subexp_standard): Call the xmethod if the
7888         best match method returned by find_overload_match is an xmethod.
7889         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7890         the best matching operator returned by find_overload_match is an
7891         xmethod.
7892         * valops.c: #include "extension.h".
7893         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7894         Return void.  The list of matching source methods is returned in
7895         "fn_list" and a vector of matching debug method workers is
7896         returned in "xm_worker_vec".  Update all callers.
7897         (value_find_oload_method_list): Likewise.
7898         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
7899         non-NULL, then the index of the best matching method in this
7900         vector is returned.  Update all callers.
7901         (find_overload_match): Include xmethods while performing overload
7902         resolution.
7903
7904 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
7905
7906         * defs.h (enum lval_type): New enumerator "lval_xcallable".
7907         * extension-priv.h (struct extension_language_ops): Add the
7908         xmethod interface.
7909         * extension.c (new_xmethod_worker, clone_xmethod_worker,
7910         get_matching_xmethod_workers, get_xmethod_argtypes,
7911         invoke_xmethod, free_xmethod_worker,
7912         free_xmethod_worker_vec): New functions.
7913         * extension.h: #include "common/vec.h".
7914         New function declarations.
7915         (struct xmethod_worker): New struct.
7916         (VEC (xmethod_worker_ptr)): New vector type.
7917         (xmethod_worker_ptr): New typedef.
7918         (xmethod_worker_vec): Likewise.
7919         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7920         builtin_type.
7921         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7922         (struct builtin_type): New field "xmethod".
7923         * valarith.c (value_ptradd): Assert that the value argument is not
7924         lval_xcallable.
7925         * valops.c (value_must_coerce_to_target): Return 0 for
7926         lval_xcallable values.
7927         * value.c (struct value): New field XM_WORKER in the field
7928         LOCATION.
7929         (value_address, value_raw_address): Return 0 for lval_xcallable
7930         values.
7931         (set_value_address): Assert that the value is not an
7932         lval_xcallable.
7933         (value_free): Free the associated xmethod worker when freeing
7934         lval_xcallable values.
7935         (set_value_component_location): Assert that the WHOLE value is not
7936         lval_xcallable.
7937         (value_of_xmethod, call_xmethod): New functions.
7938         * value.h: Declare "struct xmethod_worker".
7939         Declare new functions value_of_xmethod, call_xmethod.
7940
7941 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
7942             Pedro Alves  <palves@redhat.com>
7943
7944         PR breakpoints/17000
7945         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7946         New function, extracted from software_breakpoint_inserted_here_p.
7947         (software_breakpoint_inserted_here_p): Replace factored out code
7948         by call to find_non_raw_software_breakpoint_inserted_here.
7949         (bp_target_info_copy_insertion_state): New function.
7950         (bkpt_insert_location): Handle the case of a single-step
7951         breakpoint already inserted at the same address.
7952         (bkpt_remove_location): Handle the case of a single-step
7953         breakpoint still inserted at the same address.
7954         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7955         breakpoint already inserted at the same address.
7956         (deprecated_remove_raw_breakpoint): Handle the case of a
7957         non-raw breakpoint still inserted at the same address.
7958         (find_single_step_breakpoint): New function, extracted from
7959         single_step_breakpoint_inserted_here_p.
7960         (find_single_step_breakpoint): New function,
7961         factored out from single_step_breakpoint_inserted_here_p.
7962         (single_step_breakpoint_inserted_here_p): Reimplement.
7963
7964 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
7965
7966         Pushed by Joel Brobecker  <brobecker@adacore.com>
7967         * source.c (show_substitute_path_command): Fix display of matching
7968         substitution rules.
7969
7970 2014-06-03  Gary Benson  <gbenson@redhat.com>
7971
7972         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7973
7974 2014-06-02  Doug Evans  <xdje42@gmail.com>
7975
7976         Add parameter support for Guile.
7977         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7978         (SUBDIR_GUILE_SRCS): Add scm-param.c.
7979         (scm-param.o): New rule.
7980         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7981         (gdbscm_misc_error): Declare.
7982         (gdbscm_canonicalize_command_name): Declare.
7983         (gdbscm_scm_to_host_string): Declare.
7984         (gdbscm_scm_from_host_string): Declare.
7985         (gdbscm_initialize_parameters): Declare.
7986         * guile/guile.c (initialize_gdb_module): Call
7987         gdbscm_initialize_parameters.
7988         * guile/lib/gdb.scm: Export parameter symbols.
7989         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7990         cmdscm_canonicalize_name and made public.  All callers updated.
7991         * guile/scm-exception.c (gdbscm_misc_error): New function.
7992         * guile/scm-param.c: New file.
7993         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7994         (gdbscm_scm_to_host_string): New function.
7995         (gdbscm_scm_from_host_string): New function.
7996         * scm-utils.c (gdbscm_gc_dup_argv): New function.
7997
7998 2014-06-02  Doug Evans  <xdje42@gmail.com>
7999
8000         Add command support for Guile.
8001         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
8002         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
8003         (scm-cmd.o): New rule.
8004         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
8005         (gdbscm_user_error_p): Declare.
8006         (gdbscm_parse_command_name): Declare.
8007         (gdbscm_valid_command_class_p): Declare.
8008         (gdbscm_initialize_commands): Declare.
8009         * guile/guile.c (initialize_gdb_module): Call
8010         gdbscm_initialize_commands.
8011         * guile/lib/gdb.scm: Export command symbols.
8012         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
8013         (throw-user-error): New function.
8014         * guile/scm-cmd.c: New file.
8015         * guile/scm-exception.c (user_error_symbol): New static global.
8016         (gdbscm_user_error_p): New function.
8017         (gdbscm_initialize_exceptions): Set user_error_symbol.
8018         * scm-utils.c (gdbscm_gc_xstrdup): New function.
8019
8020 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
8021
8022         * top.c (command_loop): Handle comments here...
8023         (command_line_input): ... not here.
8024
8025 2014-06-02  Doug Evans  <xdje42@gmail.com>
8026
8027         Add progspace support for Guile.
8028         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
8029         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
8030         (scm-progspace.o): New rule.
8031         * guile/guile-internal.h (pspace_smob): New typedef.
8032         (psscm_pspace_smob_pretty_printers): Declare.
8033         (psscm_pspace_smob_from_pspace): Declare.
8034         (psscm_scm_from_pspace): Declare.
8035         * guile/guile.c (initialize_gdb_module): Call
8036         gdbscm_initialize_pspaces.
8037         * guile/lib/gdb.scm: Export progspace symbols.
8038         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
8039         support.
8040         (append-pretty-printer!): Ditto.
8041         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
8042         Implement.
8043         * guile/scm-progspace.c: New file.
8044
8045 2014-06-03  Alan Modra  <amodra@gmail.com>
8046
8047         * ppc64-tdep.c (ppc64_standard_linkage8): New.
8048         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
8049
8050 2014-06-02  Doug Evans  <dje@google.com>
8051
8052         Add support for skeletonless type units.
8053         * dwarf2read.c (struct dwarf2_per_objfile): New member
8054         n_allocated_type_units.
8055         (struct dwarf2_per_objfile) <tu_stats>: New member
8056         nr_all_type_units_reallocs.
8057         (create_signatured_type_table_from_index): Initialize
8058         n_allocated_type_units
8059         (create_all_type_units): Ditto.
8060         (add_type_unit): Move up in file.  New arg slot.
8061         All callers updated.  Increase space for all_type_units more
8062         efficiently.
8063         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
8064         (lookup_dwo_signatured_type): Handle skeletonless TUs.
8065         (lookup_dwp_signatured_type): Ditto.
8066         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
8067         All callers updated.
8068         (build_type_psymtabs_1): Leave type_unit_groups as
8069         NULL if no TUs present.
8070         (print_tu_stats): New function.
8071         (process_skeletonless_type_unit): New function.
8072         (process_dwo_file_for_skeletonless_type_units): New
8073         function.
8074         (process_skeletonless_type_units): New function.
8075         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
8076         Call print tu_stats if debugging enabled.
8077
8078 2014-06-02  Pedro Alves  <palves@redhat.com>
8079
8080         * breakpoint.c (build_target_command_list): Don't build a command
8081         list if we have any duplicate location that isn't a dprintf.
8082
8083 2014-06-02  Pedro Alves  <palves@redhat.com>
8084
8085         * breakpoint.c (dprintf_breakpoint_hit): New function.
8086         (initialize_breakpoint_ops): Install it as dprintf's
8087         breakpoint_hit method.
8088
8089 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
8090
8091         * source.c (substitute_path_rule_matches): Simplify using
8092         filename_ncmp instead of FILENAME_CMP.
8093
8094 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
8095
8096         * source.c (substitute_path_rule_matches): Remove trailing spaces.
8097
8098 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
8099
8100         * configure.ac: When Guile is available, check for the
8101         availability of 'scm_new_smob'.
8102         * configure, config.h.in: Regenerate.
8103         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
8104         function.
8105
8106 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
8107
8108         * frame.c (struct frame_info): Add stop_string field.
8109         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
8110         (get_prev_frame_always): Old content moved into
8111         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
8112         TRY_CATCH, handle MEMORY_ERROR exceptions.
8113         (frame_stop_reason_string): New function definition.
8114         * frame.h (unwind_stop_reason_to_string): Extend comment to
8115         mention frame_stop_reason_string.
8116         (frame_stop_reason_string): New function declaration.
8117         * stack.c (frame_info): Switch to frame_stop_reason_string.
8118         (backtrace_command_1): Switch to frame_stop_reason_string.
8119         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
8120         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
8121         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
8122
8123 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
8124
8125         * frame.c (frame_stop_reason_string): Rename to ...
8126         (unwind_stop_reason_to_string): this.
8127         * frame.h (frame_stop_reason_string): Rename to ...
8128         (unwind_stop_reason_to_string): this.
8129         * stack.c (frame_info): Update call to frame_stop_reason_string.
8130         (backtrace_command_1): Likewise.
8131         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
8132         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
8133
8134 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
8135
8136         * frame.c (remove_prev_frame): New function.
8137         (get_prev_frame_if_no_cycle): Create / discard cleanup using
8138         remove_prev_frame.
8139
8140 2014-05-29  Pedro Alves  <palves@redhat.com>
8141
8142         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
8143         and make it const.  When a single-step decays to a continue,
8144         clear 'step', not 'hw_step'.  Pass whether the caller wanted
8145         to step to user_visible_resume_ptid, not what we ask the
8146         target to do.
8147
8148 2014-05-29  Pedro Alves  <palves@redhat.com>
8149
8150         * infrun.c (process_event_stop_test, handle_step_into_function)
8151         (handle_step_into_function_backward): Adjust.
8152         Don't set the even thread's stop_step and call stop_waiting before
8153         calling end_stepping_range.  Instead do that ...
8154         (end_stepping_range): ... here.  Take an ecs pointer parameter.
8155
8156 2014-05-29  Pedro Alves  <palves@redhat.com>
8157
8158         * infrun.c (stop_stepping): Rename to ...
8159         (stop_waiting): ... this.
8160         (proceed): Update comment.
8161         (process_event_stop_test, handle_inferior_event)
8162         (handle_signal_stop, handle_step_into_function)
8163         (handle_step_into_function_backward): Update.
8164
8165 2014-05-29  Pedro Alves  <palves@redhat.com>
8166
8167         * infcall.c (run_inferior_call): Don't check whether the current
8168         thread is running after the proceed call.
8169
8170 2014-05-29  Pedro Alves  <palves@redhat.com>
8171             Tom Tromey  <tromey@redhat.com>
8172
8173         * NEWS: Mention "maint set target-async", "set mi-async", and that
8174         background execution commands are now always available.
8175         * target.h (target_async_permitted): Update comment.
8176         * target.c (target_async_permitted, target_async_permitted_1):
8177         Default to 1.
8178         (set_target_async_command): Rename to ...
8179         (maint_set_target_async_command): ... this.
8180         (show_target_async_command): Rename to ...
8181         (maint_show_target_async_command): ... this.
8182         (_initialize_target): Adjust.
8183         * infcmd.c (prepare_execution_command): Make extern.
8184         * inferior.h (prepare_execution_command): Declare.
8185         * infrun.c (set_observer_mode): Leave target async alone.
8186         * mi/mi-interp.c (mi_interpreter_init): Install
8187         mi_on_sync_execution_done as sync_execution_done observer.
8188         (mi_on_sync_execution_done): New function.
8189         (mi_execute_command_input_handler): Don't print the prompt if we
8190         just started a synchronous command with an async target.
8191         (mi_on_resume): Check sync_execution before printing prompt.
8192         * mi/mi-main.h (mi_async_p): Declare.
8193         * mi/mi-main.c: Include gdbcmd.h.
8194         (mi_async_p): New function.
8195         (mi_async, mi_async_1): New globals.
8196         (set_mi_async_command, show_mi_async_command, mi_async): New
8197         functions.
8198         (exec_continue): Call prepare_execution_command.
8199         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
8200         (mi_execute_async_cli_command): Use mi_async_p.
8201         (_initialize_mi_main): Install "set mi-async".  Make
8202         "target-async" a deprecated alias.
8203
8204 2014-05-29  Pedro Alves  <palves@redhat.com>
8205
8206         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
8207         (_initialize_cli_interp): Adjust.
8208         * event-loop.c: Include "observer.h".
8209         (start_event_loop): Notify 'command_error' observers instead of
8210         calling display_gdb_prompt.  Remove FIXME comment.
8211         * event-top.c (display_gdb_prompt): Remove call into the
8212         interpreters.
8213         * inf-loop.c: Include "observer.h".
8214         (inferior_event_handler): Notify 'command_error' observers instead
8215         of calling display_gdb_prompt.
8216         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
8217         observers instead of calling display_gdb_prompt.
8218         * interps.c (interp_set): Don't call display_gdb_prompt.
8219         (current_interp_display_prompt_p): Delete.
8220         * interps.h (interp_prompt_p): Delete declaration.
8221         (interp_prompt_p_ftype): Delete.
8222         (struct interp_procs) <prompt_proc_p>: Delete field.
8223         (current_interp_display_prompt_p): Delete declaration.
8224         * mi-interp.c (mi_interpreter_prompt_p): Delete.
8225         (_initialize_mi_interp): Adjust.
8226         * tui-interp.c (tui_init): Install 'sync_execution_done' and
8227         'command_error' observers.
8228         (tui_on_sync_execution_done, tui_on_command_error): New
8229         functions.
8230         (tui_display_prompt_p): Delete.
8231         (_initialize_tui_interp): Adjust.
8232
8233 2014-05-29  Pedro Alves  <palves@redhat.com>
8234
8235         PR gdb/13860
8236         * cli/cli-interp.c: Include infrun.h and observer.h.
8237         (cli_uiout, cli_interp): New globals.
8238         (cli_on_signal_received, cli_on_end_stepping_range)
8239         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
8240         functions.
8241         (cli_interpreter_init): Install them as 'end_stepping_range',
8242         'signal_received' 'signal_exited', 'exited' and 'no_history'
8243         observers.
8244         (_initialize_cli_interp): Remove cli_interp local.
8245         * infrun.c (handle_inferior_event): Call the several stop reason
8246         observers instead of printing the stop reason directly.
8247         (end_stepping_range): New function.
8248         (print_end_stepping_range_reason, print_signal_exited_reason)
8249         (print_exited_reason, print_signal_received_reason)
8250         (print_no_history_reason): Make static, and add an uiout
8251         parameter.  Print to that instead of to CURRENT_UIOUT.
8252         * infrun.h (print_end_stepping_range_reason)
8253         (print_signal_exited_reason, print_exited_reason)
8254         (print_signal_received_reason print_no_history_reason): New
8255         declarations.
8256         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
8257         'mi_uiout'.
8258         <cli_uiout>: New field.
8259         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
8260         uiout for CLI output.  Install 'signal_received',
8261         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
8262         observers.
8263         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
8264         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
8265         (mi_on_no_history): New functions.
8266         (ui_out_free_cleanup): Delete function.
8267         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
8268         instead use the one already stored in the MI interpreter data.
8269         (mi_ui_out): Adjust.
8270         * tui/tui-interp.c: Include infrun.h and observer.h.
8271         (tui_interp): New global.
8272         (tui_on_signal_received, tui_on_end_stepping_range)
8273         (tui_on_signal_exited, tui_on_exited)
8274         (tui_on_no_history): New functions.
8275         (tui_init): Install them as 'end_stepping_range',
8276         'signal_received' 'signal_exited', 'exited' and 'no_history'
8277         observers.
8278         (_initialize_tui_interp): Delete tui_interp local.
8279
8280 2014-05-29  Pedro Alves  <palves@redhat.com>
8281
8282         PR gdb/15713
8283         * linux-nat.c (linux_nat_resume_callback): Rename the second
8284         parameter to 'except'.  Skip LP if it points to EXCEPT.
8285         (linux_nat_resume): Don't mark the event lwp as not stopped
8286         before resuming sibling lwps.  Instead ask
8287         linux_nat_resume_callback to skip the event lwp.  Mark it as not
8288         stopped after actually resuming it.
8289         (linux_handle_syscall_trap): Mark the lwp as not stopped after
8290         resuming it.
8291         (wait_lwp): Mark the lwp as stopped here.
8292         (stop_wait_callback): Mark the lwp as not stopped right after
8293         resuming it.  Don't mark lwps as stopped here.
8294         (linux_nat_filter_event): Mark the lwp as stopped earlier.
8295         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
8296
8297 2014-05-29  Pedro Alves  <palves@redhat.com>
8298
8299         PR PR15693
8300         * infrun.c (resume): Determine how much to resume depending on
8301         whether the caller wanted a step, not whether we can hardware step
8302         the target.  Mark all threads that we intend to run as running,
8303         unless we're calling an inferior function.
8304         (normal_stop): If the thread is running an infcall, don't finish
8305         thread state.
8306         * target.c (target_resume): Don't mark threads as running here.
8307
8308 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
8309
8310         * serial.c (_initialize_serial): Remove support for
8311         the "set remotebaud" and "show remotebaud" commands.
8312         * NEWS: Add entry documenting the removal of that command.
8313
8314 2014-05-28  Yao Qi  <yao@codesourcery.com>
8315
8316         * charset.c: Fix typo in comments.
8317
8318 2014-05-27  Gary Benson  <gbenson@redhat.com>
8319
8320         * utils.c (internal_vproblem): Prompt for a bug report.
8321
8322 2014-05-26  Andy Wingo  <wingo@igalia.com>
8323
8324         * guile/scm-arch.c (arscm_mark_arch_smob):
8325         * guile/scm-block.c (bkscm_mark_block_smob)
8326         (bkscm_mark_block_syms_progress_smob):
8327         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
8328         * guile/scm-exception.c (exscm_mark_exception_smob):
8329         * guile/scm-frame.c (frscm_mark_frame_smob):
8330         * guile/scm-iterator.c (itscm_mark_iterator_smob):
8331         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
8332         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
8333         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
8334         (ppscm_mark_pretty_printer_worker_smob):
8335         * guile/scm-symbol.c (syscm_mark_symbol_smob):
8336         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
8337         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
8338         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
8339         mark functions.
8340         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
8341         function.
8342
8343 2014-05-26  Andy Wingo  <wingo@igalia.com>
8344             Doug Evans  <xdje42@gmail.com>
8345
8346         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
8347         empty_base_class.  All uses updated.
8348         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
8349         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
8350         Adapt all callers.
8351         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
8352         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
8353         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
8354         (gdbscm_gsmob_has_property_p, add_property_name)
8355         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
8356         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
8357         (gdb-object-has-property?, gdb-object-properties): Remove.
8358         (gdb-object-kind): Renamed from gsmob-kind.
8359
8360 2014-05-26  Andy Wingo  <wingo@igalia.com>
8361
8362         * configure.ac (try_guile_versions): Allow building with guile 2.2.
8363         * configure: Regenerate.
8364
8365 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
8366
8367         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
8368
8369 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
8370
8371         * record-btrace.c (record_btrace_allow_memory_access): Remove.
8372         (replay_memory_access_read_only, replay_memory_access_read_write)
8373         (replay_memory_access_types, replay_memory_access)
8374         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
8375         (cmd_set_record_btrace, cmd_show_record_btrace)
8376         (cmd_show_replay_memory_access): New.
8377         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
8378         (record_btrace_remove_breakpoint): Replace
8379         record_btrace_allow_memory_access with replay_memory_access.
8380         (_initialize_record_btrace): Add commands.
8381         * NEWS: Announce it.
8382
8383 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8384
8385         * aarch64-linux-nat.c (asm/ptrace.h): Include.
8386
8387 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8388
8389         * MAINTAINERS (Write After Approval): Move self back from
8390         paper trail.
8391
8392 2014-05-22  Pedro Alves  <palves@redhat.com>
8393
8394         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
8395         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
8396         (disable_randomization, enum exec_direction_kind)
8397         (execution_direction, stop_registers, start_remote)
8398         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
8399         (wait_for_inferior, normal_stop, get_last_target_status)
8400         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
8401         (insert_step_resume_breakpoint_at_sal)
8402         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
8403         (set_step_info, print_stop_event, signal_stop_state)
8404         (signal_print_state, signal_pass_state, signal_stop_update)
8405         (signal_print_update, signal_pass_update)
8406         (update_signals_program_target, clear_exit_convenience_vars)
8407         (displaced_step_dump_bytes, update_observer_mode)
8408         (signal_catch_update, gdb_signal_from_command): Move
8409         declarations ...
8410         * infrun.h: ... to this new file.
8411         * amd64-tdep.c: Include infrun.h.
8412         * annotate.c: Include infrun.h.
8413         * arch-utils.c: Include infrun.h.
8414         * arm-linux-tdep.c: Include infrun.h.
8415         * arm-tdep.c: Include infrun.h.
8416         * break-catch-sig.c: Include infrun.h.
8417         * breakpoint.c: Include infrun.h.
8418         * common/agent.c: Include infrun.h instead of inferior.h.
8419         * corelow.c: Include infrun.h.
8420         * event-top.c: Include infrun.h.
8421         * go32-nat.c: Include infrun.h.
8422         * i386-tdep.c: Include infrun.h.
8423         * inf-loop.c: Include infrun.h.
8424         * infcall.c: Include infrun.h.
8425         * infcmd.c: Include infrun.h.
8426         * infrun.c: Include infrun.h.
8427         * linux-fork.c: Include infrun.h.
8428         * linux-nat.c: Include infrun.h.
8429         * linux-thread-db.c: Include infrun.h.
8430         * monitor.c: Include infrun.h.
8431         * nto-tdep.c: Include infrun.h.
8432         * procfs.c: Include infrun.h.
8433         * record-btrace.c: Include infrun.h.
8434         * record-full.c: Include infrun.h.
8435         * remote-m32r-sdi.c: Include infrun.h.
8436         * remote-mips.c: Include infrun.h.
8437         * remote-notif.c: Include infrun.h.
8438         * remote-sim.c: Include infrun.h.
8439         * remote.c: Include infrun.h.
8440         * reverse.c: Include infrun.h.
8441         * rs6000-tdep.c: Include infrun.h.
8442         * s390-linux-tdep.c: Include infrun.h.
8443         * solib-irix.c: Include infrun.h.
8444         * solib-osf.c: Include infrun.h.
8445         * solib-svr4.c: Include infrun.h.
8446         * target.c: Include infrun.h.
8447         * top.c: Include infrun.h.
8448         * windows-nat.c: Include infrun.h.
8449         * mi/mi-interp.c: Include infrun.h.
8450         * mi/mi-main.c: Include infrun.h.
8451         * python/py-threadevent.c: Include infrun.h.
8452
8453 2014-05-22  Pedro Alves  <palves@redhat.com>
8454
8455         * infrun.c (handle_inferior_event): Store the exit code for
8456         --return-child-result here, instead of ...
8457         (print_exited_reason): ... here.
8458
8459 2014-05-21  Pedro Alves  <palves@redhat.com>
8460
8461         PR gdb/13860
8462         * gdbthread.h (struct thread_control_state): New field
8463         `command_interp'.
8464         * infrun.c (follow_fork): Copy the new thread control field to the
8465         child fork thread.
8466         (clear_proceed_status_thread): Clear the new thread control field.
8467         (proceed): Set the new thread control field.
8468         * interps.h (command_interp): Declare.
8469         * interps.c (command_interpreter): New global.
8470         (command_interp): New function.
8471         (interp_exec): Set `command_interpreter' while here.
8472         * cli-out.c (cli_uiout_dtor): New function.
8473         (cli_ui_out_impl): Install it.
8474         * mi/mi-interp.c: Include cli-out.h.
8475         (mi_cmd_interpreter_exec): Add comment.
8476         (restore_current_uiout_cleanup): New function.
8477         (ui_out_free_cleanup): New function.
8478         (mi_on_normal_stop): If finishing an execution command started by
8479         a CLI command, or any kind of breakpoint-like event triggered,
8480         print the stop event to the output (CLI) stream.
8481         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
8482
8483 2014-05-21  Pedro Alves  <palves@redhat.com>
8484
8485         * cli/cli-cmds.c (list_command): Handle the first "list" after the
8486         current source line having changed.
8487         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
8488         * infrun.c (normal_stop): Adjust call to
8489         set_current_sal_from_frame.
8490         * source.c (clear_lines_listed_range): New function.
8491         (set_current_source_symtab_and_line, identify_source_line): Clear
8492         the lines listed range.
8493         (line_info): Handle the first "info line" after the current source
8494         line having changed.
8495         * stack.c (print_stack_frame): Remove center handling.
8496         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
8497         center sal.line.
8498
8499 2014-05-21  Pedro Alves  <palves@redhat.com>
8500
8501         * inf-child.c (inf_child_mourn_inferior): New function.
8502         * inf-child.h (inf_child_mourn_inferior): New declaration.
8503         * darwin-nat.c (darwin_mourn_inferior): Use
8504         inf_child_mourn_inferior.
8505         * gnu-nat.c (gnu_mourn_inferior): Likewise.
8506         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
8507         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
8508         * nto-procfs.c (procfs_mourn_inferior): Likewise.
8509         * windows-nat.c (windows_mourn_inferior): Likewise.
8510
8511 2014-05-21  Doug Evans  <xdje42@gmail.com>
8512
8513         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
8514
8515 2014-05-21  Doug Evans  <xdje42@gmail.com>
8516
8517         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
8518         (gdbscm_out_of_range_error): Ditto.
8519         (gdbscm_memory_error): Ditto.
8520         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
8521         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
8522         (gdbscm_out_of_range_error): Update.
8523         (gdbscm_memory_error): Update.
8524         (gdbscm_scm_to_target_string_unsafe): Delete.
8525
8526 2014-05-21  Pedro Alves  <palves@redhat.com>
8527
8528         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
8529         globals.
8530         (inf_child_open_target): New function.
8531         (inf_child_open): Use inf_child_open_target to push the target
8532         instead of erroring out.
8533         (inf_child_disconnect, inf_child_close)
8534         (inf_child_maybe_unpush_target): New functions.
8535         (inf_child_target): Install inf_child_disconnect and
8536         inf_child_close.  Store a pointer to the returned object.
8537         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
8538         declarations.
8539         * target.c (auto_connect_native_target): New global.
8540         (show_default_run_target): New function.
8541         (find_default_run_target): Return NULL if automatically connecting
8542         to the native target is disabled.
8543         (_initialize_target): Install set/show auto-connect-native-target.
8544         * NEWS: Mention "set auto-connect-native-target", and "target
8545         native".
8546         * linux-nat.c (super_close): New global.
8547         (linux_nat_close): Call super_close.
8548         (linux_nat_add_target): Store a pointer to the base class's
8549         to_close method.
8550         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
8551         inf_child_maybe_unpush.
8552         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
8553         already pushed.
8554         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
8555         the inferior.  Use inf_child_maybe_unpush_target.
8556         (inf_ttrace_attach): Don't push the target if it is already
8557         pushed.
8558         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
8559         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
8560         after mourning the inferior.  Use inf_child_maybe_unpush_target.
8561         (darwin_attach_pid): Don't push the target if it is already
8562         pushed.
8563         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
8564         mourning the inferior.  Use inf_child_maybe_unpush_target.
8565         (gnu_detach): Use inf_child_maybe_unpush_target.
8566         * go32-nat.c (go32_create_inferior): Don't push the target if it
8567         is already pushed.
8568         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
8569         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
8570         (procfs_open): Rename to ...
8571         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
8572         comments.  Can target_preopen before changing node.  Call
8573         inf_child_open_target to push the target explicitly.
8574         (procfs_attach): Don't push the target if it is already pushed.
8575         (procfs_detach): Use inf_child_maybe_unpush_target.
8576         (procfs_create_inferior): Don't push the target if it is already
8577         pushed.
8578         (nto_native_ops): New global.
8579         (procfs_open): Reimplement.
8580         (procfs_native_open): New function.
8581         (init_procfs_targets): Install procfs_native_open as to_open of
8582         "target native".  Store a pointer to the "native" target in
8583         nto_native_ops.
8584         * procfs.c (procfs_attach): Don't push the target if it is already
8585         pushed.
8586         (procfs_detach): Use inf_child_maybe_unpush_target.
8587         (procfs_mourn_inferior): Only unpush the target after mourning the
8588         inferior.  Use inf_child_maybe_unpush_target.
8589         (procfs_init_inferior): Don't push the target if it is already
8590         pushed.
8591         * windows-nat.c (do_initial_windows_stuff): Don't push the target
8592         if it is already pushed.
8593
8594 2014-05-21  Pedro Alves  <palves@redhat.com>
8595
8596         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
8597         and "procfs" targets are now called "native" instead.
8598
8599 2014-05-21  Pedro Alves  <palves@redhat.com>
8600
8601         * go32-nat.c (go32_open): Delete.
8602         (go32_target): Don't override the to_open method.
8603
8604 2014-05-21  Pedro Alves  <palves@redhat.com>
8605
8606         * nto-procfs.c (procfs_can_run): New function.
8607         (nto_procfs_ops): New global.
8608         (init_procfs_targets): New, based on procfs_target.  Install
8609         "target native" in addition to "target procfs".
8610         (_initialize_procfs): Call init_procfs_targets instead of adding
8611         the target here.
8612
8613 2014-05-21  Pedro Alves  <palves@redhat.com>
8614
8615         * windows-nat.c (windows_target): Don't override to_shortname,
8616         to_longname or to_doc.
8617
8618 2014-05-21  Pedro Alves  <palves@redhat.com>
8619
8620         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
8621         to_doc.
8622
8623 2014-05-21  Pedro Alves  <palves@redhat.com>
8624
8625         * darwin-nat.c (_initialize_darwin_inferior): Don't override
8626         to_shortname, to_longname or to_doc.
8627
8628 2014-05-21  Pedro Alves  <palves@redhat.com>
8629
8630         * go32-nat.c (go32_target): Don't override to_shortname,
8631         to_longname or to_doc.
8632
8633 2014-05-21  Pedro Alves  <palves@redhat.com>
8634
8635         * inf-child.c (inf_child_open): Remove mention of "child".
8636         (inf_child_target): Rename target to "native" instead of "child".
8637
8638 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8639
8640         * Makefile.in (SFILES): Delete "regset.c".
8641         (COMMON_OBS): Delete "regset.o".
8642         * regset.c: Remove.
8643         * regset.h (regset_alloc): Delete prototype.
8644
8645 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8646
8647         * sparc-linux-tdep.c (sparc32_linux_gregset)
8648         (sparc32_linux_fpregset): New static regset structures.
8649         (sparc32_linux_init_abi): Drop dynamic regset allocations.
8650         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
8651         'fpregset' fields.
8652         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
8653         (sparc64_linux_fpregset): New static regset structures.
8654         (sparc64_linux_init_abi): Drop dynamic regset allocations.
8655         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
8656         New static regset structures.
8657         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
8658         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
8659         New static regset structures.
8660         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
8661         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
8662         New static regset structures.
8663         (sparc64obsd_init_abi): Drop dynamic regset allocations.
8664         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
8665         New static regset structures.
8666         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
8667
8668 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8669
8670         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
8671         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
8672         register maps ("regmaps") from "*regset" to "*regmap".  Do this
8673         for all regmap types and variables.
8674         * sparc-linux-tdep.c (sparc32_linux_step_trap)
8675         (sparc32_linux_supply_core_gregset)
8676         (sparc32_linux_collect_core_gregset)
8677         (sparc32_linux_supply_core_fpregset)
8678         (sparc32_linux_collect_core_fpregset): Likewise.
8679         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
8680         (sparc_gregmap, sparc_fpregmap): ... these.
8681         (sparc_supply_gregset, sparc_collect_gregset)
8682         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8683         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
8684         (_initialize_sparc_nat): Rename regmaps.
8685         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
8686         (sparc_gregmap, sparc_fpregmap): ... these.
8687         (sparc_supply_gregset, sparc_collect_gregset)
8688         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
8689         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
8690         Rename macros to...
8691         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
8692         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
8693         Likewise.
8694         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
8695         Rename to...
8696         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
8697         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
8698         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
8699         regmaps.
8700         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8701         (sparc32_bsd_fpregset): Rename to...
8702         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8703         (sparc32_bsd_fpregmap): ... these.
8704         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
8705         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
8706         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
8707         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
8708         (struct sparc_gregmap, struct sparc_fpregmap)
8709         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
8710         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
8711         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
8712         (sparc32_supply_regset, sparc32_collect_gregset)
8713         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
8714         prototypes.
8715         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
8716         (sparc64_linux_ptrace_gregmap): ... this.
8717         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
8718         (_initialize_sparc64_linux_nat): Rename regmaps.
8719         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
8720         (sparc64_linux_core_gregmap): ... this.
8721         (sparc64_linux_supply_core_gregset)
8722         (sparc64_linux_collect_core_gregset)
8723         (sparc64_linux_supply_core_fpregset)
8724         (sparc64_linux_collect_core_fpregset): Rename regmaps.
8725         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
8726         (sparc64_sol2_fpregset): Rename to...
8727         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
8728         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
8729         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
8730         regmaps.
8731         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
8732         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
8733         (sparc64_bsd_fpregset): Rename to...
8734         (struct sparc_gregmap, sparc64_sol2_gregmap)
8735         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
8736         (sparc64_bsd_fpregmap): ... these.
8737         (sparc64_supply_gregset, sparc64_collect_gregset)
8738         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
8739         prototypes.
8740         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
8741         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
8742         (sparc64fbsd_gregmap): ... this.
8743         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
8744         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
8745         Rename regmaps.
8746         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
8747         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
8748         (sparc64nbsd_collect_fpregset): Likewise.
8749         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
8750         (sparc64nbsd_gregmap): ... this.
8751         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
8752         regmaps.
8753         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
8754         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
8755         (sparc64obsd_gregmap): ... this.
8756         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
8757         regmaps.
8758         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
8759         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
8760         (sparc32nbsd_gregmap): ... this.
8761         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
8762         regmaps.
8763
8764 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8765
8766         * score-tdep.c (score7_linux_gregset): New static regset
8767         structure.
8768         (score7_linux_regset_from_core_section): Remove dynamic regset
8769         allocation.
8770         (score_gdbarch_init): Drop allocation of tdep structure.
8771         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
8772
8773 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8774
8775         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
8776         regset structures.
8777         (am33_regset_from_core_section): Remove dynamic regset
8778         allocations.
8779
8780 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8781
8782         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
8783         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
8784         structures.
8785         (mips_linux_regset_from_core_section): Remove dynamic regset
8786         allocations.
8787         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8788         'gregset64', 'fpregset', and 'fpregset64'.
8789         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
8790         deleted tdep fields.
8791
8792 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8793
8794         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
8795         regset structures.
8796         (amd64_regset_from_core_section): Remove dynamic regset
8797         allocations.
8798         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
8799         structure.
8800         (amd64obsd_regset_from_core_section): Remove dynamic regset
8801         allocation.
8802         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
8803         Likewise.
8804         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8805         x86-common regset supply function.
8806         * i386-tdep.c (i386_collect_gregset): Make static.
8807         (i386_gregset): New global regset structure.
8808         (i386_fpregset, i386_xstateregset): New static regset structures.
8809         (i386_regset_from_core_section): Remove dynamic regset
8810         allocations.
8811         (i386_gdbarch_init): Remove initialization of tdep fields
8812         'gregset', 'fpregset', and 'xstateregset'.
8813         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8814         'fpregset', and 'xstateregset'.
8815         (i386_collect_gregset): Remove prototype.
8816         (i386_gregset): New declaration.
8817         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8818         structure.
8819         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8820         allocation.
8821
8822 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8823
8824         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8825         (arm_linux_vfpregset): New static regset structures.
8826         (arm_linux_regset_from_core_section): Remove dynamic allocation of
8827         regset structures.
8828         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8829         and 'vfpregset' fields.
8830
8831 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8832
8833         * aarch64-linux-tdep.c (aarch64_linux_gregset)
8834         (aarch64_linux_fpregset): New static regset structures.
8835         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8836         of regset structures.
8837         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8838         'fpregset' fields.
8839
8840 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8841
8842         * regset.h (struct regset): Remove gdbarch field.
8843         * regset.c (regset_alloc): Drop initialization of gdbarch field.
8844         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8845         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8846         Likewise.
8847         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8848         (ppc32_linux_fpregset, ppc32_linux_vrregset)
8849         (ppc32_linux_vsxregset): Likewise.
8850         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8851         via the regcache instead of the regset.
8852         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8853         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8854         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8855         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8856         Likewise.
8857
8858 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8859
8860         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8861         Constify structures.
8862         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8863         (alphanbsd_aout_gregset): Likewise.
8864         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8865         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8866         Likewise.
8867         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8868         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8869         Likewise.
8870         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8871         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8872         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8873         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8874         * m88k-tdep.c (m88k_gregset): Likewise.
8875         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8876         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8877         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8878         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8879         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8880         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8881         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8882         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8883         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8884         Likewise.
8885         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8886         * sh-tdep.h (sh_corefile_gregset): Likewise.
8887         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8888         * vax-tdep.c (vax_gregset): Likewise.
8889
8890 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8891
8892         Fix TLS access for -static -pthread.
8893         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8894         (try_thread_db_load_1): Initialize it.
8895         (thread_db_get_thread_local_address): Call it if LM is zero.
8896         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8897         * target.h (struct target_ops) (to_get_thread_local_address): Add
8898         load_module_addr comment.
8899
8900 2014-05-21  Pedro Alves  <palves@redhat.com>
8901
8902         * dcache.c (dcache_read_memory_partial): If reading the cache line
8903         fails, fallback to reading just the memory the caller wanted.
8904
8905 2014-05-20  Doug Evans  <dje@google.com>
8906
8907         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8908         instead of get_current_arch.
8909
8910 2014-05-20  Pedro Alves  <palves@redhat.com>
8911
8912         * NEWS: Mention that compare-sections now works with all targets.
8913
8914         * remote.c (PACKET_qCRC): New enum value.
8915         (remote_verify_memory): Don't send qCRC if the target has no
8916         execution.  Use packet_support/packet_ok.  If the target doesn't
8917         support the qCRC packet, fallback to a deep memory copy.
8918         (compare_sections_command): Say "target image" instead of "remote
8919         executable".
8920         (_initialize_remote): Add PACKET_qCRC to the list of config
8921         packets that have no associated command.  Extend comment.
8922         * target.c (simple_verify_memory, default_verify_memory): New
8923         function.
8924         * target.h (struct target_ops) <to_verify_memory>: Default to
8925         default_verify_memory.
8926         (simple_verify_memory): New declaration.
8927         * target-delegates.c: Regenerate.
8928
8929 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
8930
8931         * record-btrace.c (record_btrace_step_thread): Check for empty history.
8932
8933 2014-05-20  Hui Zhu  <hui@codesourcery.com>
8934             Yao Qi  <yao@codesourcery.com>
8935
8936         PR backtrace/16558
8937         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8938         and change address of sp and pc.
8939
8940 2014-05-19  Tom Tromey  <tromey@redhat.com>
8941
8942         * gdbtypes.c (rank_function): Use XNEWVEC.
8943         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8944
8945 2014-05-19  Doug Evans  <dje@google.com>
8946
8947         * dwarf2read.c (build_type_psymtabs_1): Renamed from
8948         build_type_unit_groups and moved closer to only caller.  Remove
8949         arguments.  All references updated.  Remove outdated .gdb_index
8950         comment.
8951         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8952         build_type_psymtabs_1.
8953
8954 2014-05-19  Doug Evans  <dje@google.com>
8955
8956         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8957         n_type_unit_groups, all_type_unit_groups.  All uses removed.
8958         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8959         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
8960         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
8961         (add_type_unit_group_to_table): Delete.
8962
8963 2014-05-19  Doug Evans  <dje@google.com>
8964
8965         * eval.c (evaluate_subexp_standard): Add some comments.
8966
8967 2014-05-17  Doug Evans  <xdje42@gmail.com>
8968
8969         * progspace.c (remove_program_space): Delete, unused.
8970         * progspace.h (remove_program_space): Ditto.
8971
8972 2014-05-17  Doug Evans  <xdje42@gmail.com>
8973
8974         * inferior.c (prune_inferiors): Fix comment.
8975         (remove_inferior_command): Call prune_program_spaces.
8976
8977 2014-05-16  Doug Evans  <dje@google.com>
8978
8979         New command line option -D.
8980         * NEWS: Mention it.
8981         * main.c (set_gdb_data_directory): New function.
8982         (captured_main): Recognize -D.  Flag error for --data-directory "".
8983         Call set_gdb_data_directory.
8984         (print_gdb_help): Print --data-directory, -D.
8985         * main.h (set_gdb_data_directory): Declare.
8986         * top.c (staged_gdb_datadir): New static global.
8987         (set_gdb_datadir): Call set_gdb_data_directory
8988         (show_gdb_datadir): New function.
8989         (init_main): Update init of data-directory parameter.
8990
8991 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
8992
8993         Import the "dirfd" gnulib module.
8994         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8995         * gnulib/aclocal.m4: Update.
8996         * gnulib/config.in: Update.
8997         * gnulib/configure: Update.
8998         * gnulib/import/Makefile.am: Update.
8999         * gnulib/import/Makefile.in: Update.
9000         * gnulib/import/dirfd.c: New.
9001         * gnulib/import/m4/dirfd.m4: New.
9002         * gnulib/import/m4/gnulib-cache.m4: Update.
9003         * gnulib/import/m4/gnulib-comp.m4: Update.
9004
9005 2014-05-16  Pierre Muller  <muller@sourceware.org>
9006             Yao Qi  <yao@codesourcery.com>
9007
9008         * valprint.c (print_wchar): Move the code on checking whether
9009         W is a printable wide char to the default branch of switch
9010         statement below.  Call wchar_printable instead of gdb_iswprint.
9011
9012 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
9013
9014         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
9015         ldr.w and ldrd instructions.
9016
9017 2014-05-15  Doug Evans  <dje@google.com>
9018
9019         * dwarf2read.c (read_structure_type): Delete outdated comments.
9020
9021 2014-05-14  Tom Tromey  <tromey@redhat.com>
9022
9023         * macrocmd.c (print_macro_definition): Reindent.
9024
9025 2014-05-13  Doug Evans  <xdje42@gmail.com>
9026
9027         * python/py-cmd.c (cmdpy_completer): Add comment.
9028         (completers): Make const.
9029
9030 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
9031
9032         * infrun.c (resume): Remove should_resume (unused).  Move up
9033         declaration of resume_ptid.
9034
9035 2014-05-13  Tom Tromey  <tromey@redhat.com>
9036
9037         * language.h (unop_type_check): Remove.
9038         (binop_type_check): Don't declare.
9039
9040 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
9041
9042         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
9043         call to regcache_raw_collect.
9044
9045 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
9046
9047         * mi/mi-console.c (mi_console_raw_packet): Use the value from
9048         mi_console->quote as the quoting character.
9049
9050 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
9051
9052         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
9053
9054 2014-04-29  Tom Tromey  <tromey@redhat.com>
9055
9056         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
9057         "show debug varobj".
9058
9059 2014-05-07  Kyle McMartin  <kyle@redhat.com>
9060
9061         Pushed by Joel Brobecker  <brobecker@adacore.com>.
9062         * aarch64-tdep.c (aarch64_software_single_step): New function.
9063         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
9064         with aarch64_software_single_step.
9065
9066 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
9067
9068         GDB 7.7.1 released.
9069
9070 2014-05-05  Keith Seitz  <keiths@redhat.com>
9071
9072         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
9073         variable or history value is successfully parsed.
9074
9075 2014-05-05  Yao Qi  <yao@codesourcery.com>
9076             Pedro Alves  <palves@redhat.com>
9077
9078         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
9079         address of blocks that intersects the requested range.  Trim
9080         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
9081         sections.
9082         * ctf.c (ctf_xfer_partial): Likewise.
9083
9084 2014-05-05  Yao Qi  <yao@codesourcery.com>
9085
9086         * printcmd.c (display_command): Remove the check to
9087         target_has_execution.
9088
9089 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
9090
9091         * ppcobsd-nat.c: Include "obsd-nat.h".
9092         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
9093         add_target.
9094         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9095
9096 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
9097
9098         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
9099         and 16-bit signed and unsigned arguments.  Update comment.
9100         (stap_parse_probe_arguments): Extend code to handle such
9101         arguments.  Use warning instead of complaint to notify about
9102         unrecognized bitness.
9103
9104 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
9105
9106         PR breakpoints/16889
9107         * stap-probe.c (stap_parse_probe_arguments): Simplify
9108         check for non-prefixed probes (i.e., probes whose
9109         arguments do not start with "N@").  Always set the
9110         argument type to a sane value.
9111
9112 2014-05-01  David Taylor  <dtaylor@emc.com>
9113
9114         * remote.c (compare_sections_command): Add -r option to compare
9115         all loadable read-only sections.
9116
9117 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
9118
9119         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
9120         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
9121         Update all callers.
9122         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
9123         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
9124         Remove unused CORE_ADDR argument.  Update all callers.
9125
9126 2014-04-29  Pedro Alves  <palves@redhat.com>
9127
9128         * remote.c (struct packet_config) <detect>: Extend comment.
9129         (add_packet_config_cmd): Don't set the config's detect or support
9130         fields here.
9131         (init_all_packet_configs): Also initialize the config's 'detect'
9132         field.
9133         (reset_all_packet_configs_support): New function.
9134         (remote_open_1): Call reset_all_packet_configs_support instead of
9135         init_all_packet_configs.
9136         (_initialize_remote): Initialize all packet configs.  Assert that
9137         all packets have an associated command, except a few known
9138         outliers.
9139
9140 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
9141
9142         * dwarf2read.c (read_subrange_type): Handle dynamic
9143         DW_AT_lower_bound attributes.
9144
9145 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
9146
9147         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
9148         dynamic bounds before computing its upper bound.
9149         (ada_discrete_type_low_bound): Same as above with the lower bound.
9150
9151 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
9152
9153         * dwarf2read.c (is_dynamic_type): Return true for dynamic
9154         range types.  Adjust the array handling implementation to
9155         take advantage of this change.
9156         (resolve_dynamic_range): New function, mostly extracted from
9157         resolve_dynamic_bounds.
9158         (resolve_dynamic_array): New function, mostly extracted from
9159         resolve_dynamic_bounds.
9160         (resolve_dynamic_bounds): Delete.
9161         (resolve_dynamic_type): Reimplement.  Add handling of
9162         TYPE_CODE_RANGE types.
9163
9164 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
9165
9166         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
9167         handling of parallel ___XA types.
9168
9169 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
9170
9171         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
9172         unnecessary second call to static_unwrap_type.
9173
9174 2014-04-27  Hui Zhu  <hui@codesourcery.com>
9175
9176         * stack.c (print_frame_info): Call do_gdb_disassembly with
9177         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
9178
9179 2014-04-26  Doug Evans  <xdje42@gmail.com>
9180
9181         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
9182
9183 2014-04-25  Pedro Alves  <palves@redhat.com>
9184
9185         PR server/16255
9186         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
9187         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
9188         and newline from built string.
9189         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
9190         (linux_ptrace_attach_fail_reason): ... this.
9191         * linux-nat.c (linux_nat_attach): Adjust to use
9192         linux_ptrace_attach_fail_reason.
9193
9194 2014-04-25  Pedro Alves  <palves@redhat.com>
9195
9196         * remote.c (struct remote_state): Remove multi_process_aware,
9197         non_stop_aware, cond_tracepoints, cond_breakpoints,
9198         breakpoint_commands, fast_tracepoints, static_tracepoints,
9199         install_in_trace, disconnected_tracing,
9200         enable_disable_tracepoints, string_tracing, and
9201         augmented_libraries_svr4_read fields.
9202         (remote_multi_process_p): Move further below in the file.
9203         (struct packet_config): Add comments.
9204         (update_packet_config): Delete function.
9205         (show_packet_config_cmd): Use packet_config_support.
9206         (add_packet_config_cmd): Use NULL as set callback.
9207         (packet_ok): "set remote foo-packet"-style commands no longer
9208         change config->supported -- adjust.
9209         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
9210         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
9211         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
9212         (PACKET_QNonStop, PACKET_multiprocess_feature)
9213         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
9214         (PACKET_DisconnectedTracing_feature)
9215         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
9216         (set_remote_protocol_packet_cmd): Delete function.
9217         (packet_config_support, packet_support): New functions.
9218         (set_remote_protocol_Z_packet_cmd): Don't call
9219         update_packet_config.
9220         (remote_query_attached, remote_pass_signals)
9221         (remote_program_signals, remote_threads_info)
9222         (remote_threads_extra_info, remote_start_remote): Use
9223         packet_support.
9224         (remote_start_remote): Use packet_config_support and
9225         packet_support.
9226         (init_all_packet_configs): Set all packets to unknown support,
9227         instead of calling update_packet_config.
9228         (remote_check_symbols): Use packet_support.
9229         (remote_supported_packet): Unconditionally set the packet config's
9230         support status.
9231         (remote_multi_process_feature, remote_non_stop_feature)
9232         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
9233         (remote_breakpoint_commands_feature)
9234         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
9235         (remote_install_in_trace_feature)
9236         (remote_disconnected_tracing_feature)
9237         (remote_enable_disable_tracepoint_feature)
9238         (remote_string_tracing_feature)
9239         (remote_augmented_libraries_svr4_read_feature): Delete functions.
9240         (remote_protocol_features): Adjust to use remote_supported_packet
9241         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
9242         "ConditionalTracepoints", "ConditionalBreakpoints",
9243         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
9244         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
9245         "EnableDisableTracepoints", and "tracenz".
9246         (remote_query_supported): Use packet_support.
9247         (remote_open_1): Adjust.
9248         (extended_remote_attach_1): Use packet_support.  Switch on the
9249         result of packet_ok instead of checking whether the packet ended
9250         up disabled.
9251         (remote_vcont_resume): Use packet_support.
9252         (remote_resume, remote_stop_ns, fetch_register_using_p)
9253         (remote_prepare_to_store, store_register_using_P)
9254         (check_binary_download, remote_write_bytes): Use packet_support.
9255         (remote_vkill): Use packet_support.  Switch on the result of
9256         packet_ok instead of checking whether the packet ended up
9257         disabled.
9258         (extended_remote_supports_disable_randomization): Use
9259         packet_support.
9260         (extended_remote_run): Switch on the result of packet_ok instead
9261         of checking whether the packet ended up disabled.
9262         (remote_insert_breakpoint, remote_remove_breakpoint)
9263         (remote_insert_watchpoint, remote_remove_watchpoint)
9264         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
9265         packet_support.
9266         (remote_search_memory): Use packet_config_support.
9267         (remote_get_thread_local_address, remote_get_tib_address)
9268         (remote_hostio_send_command, remote_can_execute_reverse): Use
9269         packet_support.
9270         (remote_supports_cond_tracepoints)
9271         (remote_supports_cond_breakpoints)
9272         (remote_supports_fast_tracepoints)
9273         (remote_supports_static_tracepoints)
9274         (remote_supports_install_in_trace)
9275         (remote_supports_enable_disable_tracepoint)
9276         (remote_supports_string_tracing)
9277         (remote_can_run_breakpoint_commands): Rewrite, checking whether
9278         the packet config says the feature is enabled or disabled.
9279         (remote_download_tracepoint, remote_trace_set_readonly_regions)
9280         (remote_get_trace_status): Use packet_support.
9281         (remote_set_disconnected_tracing): Adjust to check whether the
9282         feature is enabled with packet_support.
9283         (remote_set_trace_buffer_size, remote_use_agent)
9284         (remote_can_use_agent, remote_supports_btrace): Use
9285         packet_support.
9286         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
9287         Use packet_config_support.
9288         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
9289         the packet config says the feature is enabled or disabled.
9290         (set_range_stepping): Use packet_support.
9291
9292 2014-04-25  Tom Tromey  <tromey@redhat.com>
9293
9294         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
9295         argument.
9296
9297 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
9298
9299         * NEWS: Mention support for C99 variable length arrays.
9300
9301 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
9302
9303         * ada-lang.c (standard_exc): Expand introductory comment.
9304
9305 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
9306             Walfred Tedeschi  <walfred.tedeschi@intel.com>
9307
9308         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
9309         AVX512 registers.
9310         (amd64_linux_read_description): Add code to handle AVX512 xstate
9311         mask and return respective tdesc.
9312         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
9313         and features/i386/x32-avx512-linux.c.
9314         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
9315         (amd64_linux_core_read_description): Add code to handle AVX512
9316         xstate mask and return respective tdesc.
9317         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
9318         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
9319         calculation.
9320         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
9321         (tdesc_amd64_avx512_linux): New prototype.
9322         (tdesc_x32_avx512_linux): Likewise.
9323         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
9324         features/i386/x32-avx512.c.
9325         (amd64_ymm_avx512_names): New register names for pseudo
9326         registers YMM16-31.
9327         (amd64_ymmh_avx512_names): New register names for raw registers
9328         YMMH16-31.
9329         (amd64_k_names): New register names for K registers.
9330         (amd64_zmmh_names): New register names for ZMM raw registers.
9331         (amd64_zmm_names): New registers names for ZMM pseudo registers.
9332         (amd64_xmm_avx512_names): New register names for XMM16-31
9333         registers.
9334         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
9335         registers.
9336         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
9337         if feature is present.
9338         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
9339         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
9340         (AMD64_NUM_REGS): Adjust to new number of registers.
9341         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
9342         registers supplied via XSTATE by AVX512 registers.
9343         (i386_linux_read_description): Add case for AVX512.
9344         * i386-linux-tdep.c: Include i386-avx512-linux.c.
9345         (i386_linux_gregset_reg_offset): Add AVX512 registers.
9346         (i386_linux_core_read_description): Add case for AVX512.
9347         (i386_linux_init_abi): Install supported register note section
9348         for AVX512.
9349         (_initialize_i386_linux_tdep): Add call to tdesc init function for
9350         AVX512.
9351         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
9352         registers to be number of zmm7h + 1.
9353         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
9354         * i386-tdep.c: Include features/i386/i386-avx512.c.
9355         (i386_zmm_names): Add ZMM pseudo register names array.
9356         (i386_zmmh_names): Add ZMM raw register names array.
9357         (i386_k_names): Add K raw register names array.
9358         (num_lower_zmm_regs): Add constant for the number of lower ZMM
9359         registers. AVX512 has 16 more ZMM registers than there are YMM
9360         registers.
9361         (i386_zmmh_regnum_p): Add function to look up register number of
9362         ZMM raw registers.
9363         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
9364         (i386_k_regnum_p): Likewise for K raw registers.
9365         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
9366         registers added by AVX512.
9367         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
9368         registers added by AVX512.
9369         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
9370         added by AVX512.
9371         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
9372         (i386_pseudo_register_name): Add ZMM pseudo registers.
9373         (i386_zmm_type): Construct and return vector registers type for ZMM
9374         registers.
9375         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
9376         ZMM0-31 pseudo registers and K registers.
9377         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
9378         and YMM16-31 registers from register cache.
9379         (i386_pseudo_register_write): Add code to write  K, ZMM and
9380         YMM16-31 registers.
9381         (i386_register_reggroup_p): Add code to include/exclude AVX512
9382         registers in/from respective register groups.
9383         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
9384         registers if feature is present in xcr0.
9385         (i386_gdbarch_init): Add code to initialize AVX512 feature
9386         variables in tdep structure, wire in pseudo registers and call
9387         initialize_tdesc_i386_avx512.
9388         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
9389         variables.
9390         (i386_regnum): Add AVX512 registers.
9391         (I386_SSE_NUM_REGS): New define for number of SSE registers.
9392         (I386_AVX_NUM_REGS): Likewise for AVX registers.
9393         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
9394         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
9395         512 bits wide.
9396         (i386_xmm_avx512_regnum_p): New prototype for register look up.
9397         (i386_ymm_avx512_regnum_p): Likewise.
9398         (i386_k_regnum_p): Likewise.
9399         (i386_zmm_regnum_p): Likewise.
9400         (i386_zmmh_regnum_p): Likewise.
9401         * i387-tdep.c : Update year in copyright notice.
9402         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
9403         XSAVE buffer.
9404         (XSAVE_YMM_AVX512_ADDR): New macro.
9405         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
9406         XSAVE buffer.
9407         (XSAVE_XMM_AVX512_ADDR): New macro.
9408         (xsave_avx512_k_offset): New table for K register offsets in
9409         XSAVE buffer.
9410         (XSAVE_AVX512_K_ADDR): New macro.
9411         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
9412         in XSAVE buffer.
9413         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
9414         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
9415         buffer.
9416         (i387_collect_xsave): Add code to collect AVX512 registers from
9417         XSAVE buffer.
9418         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
9419         of XMM16-31 registers.
9420         (I387_NUM_K_REGS): New define for number of K registers.
9421         (I387_K0_REGNUM): New define for K0 register number.
9422         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
9423         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
9424         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
9425         registers.
9426         (I387_YMM16H_REGNUM): New define for YMM16H register number.
9427         (I387_XMM16_REGNUM): New define for XMM16 register number.
9428         (I387_YMM0_REGNUM): New define for YMM0 register number.
9429         (I387_KEND_REGNUM): New define for last K register number.
9430         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
9431         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
9432         number.
9433         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
9434         number.
9435         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
9436         size.
9437         * features/Makefile: Add AVX512 related files.
9438         * features/i386/32bit-avx512.xml: New file.
9439         * features/i386/64bit-avx512.xml: Likewise.
9440         * features/i386/amd64-avx512-linux.c: Likewise.
9441         * features/i386/amd64-avx512-linux.xml: Likewise.
9442         * features/i386/amd64-avx512.c: Likewise.
9443         * features/i386/amd64-avx512.xml: Likewise.
9444         * features/i386/i386-avx512-linux.c: Likewise.
9445         * features/i386/i386-avx512-linux.xml: Likewise.
9446         * features/i386/i386-avx512.c: Likewise.
9447         * features/i386/i386-avx512.xml: Likewise.
9448         * features/i386/x32-avx512-linux.c: Likewise.
9449         * features/i386/x32-avx512-linux.xml: Likewise.
9450         * features/i386/x32-avx512.c: Likewise.
9451         * features/i386/x32-avx512.xml: Likewise.
9452         * regformats/i386/amd64-avx512-linux.dat: New file.
9453         * regformats/i386/amd64-avx512.dat: Likewise.
9454         * regformats/i386/i386-avx512-linux.dat: Likewise.
9455         * regformats/i386/i386-avx512.dat: Likewise.
9456         * regformats/i386/x32-avx512-linux.dat: Likewise.
9457         * regformats/i386/x32-avx512.dat: Likewise.
9458         * NEWS: Add note about new support for AVX512.
9459
9460
9461 2014-04-23  Pedro Alves  <palves@redhat.com>
9462
9463         * breakpoint.c (insert_bp_location): Tolerate errors if the
9464         breakpoint is set in a user-loaded objfile.
9465         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
9466         location is marked shlib_disabled.  If the breakpoint is set in a
9467         user-loaded objfile is a GDB-side memory breakpoint, validate it
9468         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
9469         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
9470         flag.
9471         * mem-break.c (memory_validate_breakpoint): New function.
9472         * objfiles.c (userloaded_objfile_contains_address_p): New
9473         function.
9474         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
9475         * target.h (memory_validate_breakpoint): New declaration.
9476
9477 2014-04-23  Pedro Alves  <palves@redhat.com>
9478
9479         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
9480         the breakpoint is set in a shared library, only suppress
9481         errors for software breakpoints, not hardware breakpoints.
9482
9483 2014-04-22  Pedro Alves  <palves@redhat.com>
9484
9485         * infrun.c (schedlock_applies): New function, factored out from
9486         find_thread_needs_step_over.
9487         (find_thread_needs_step_over): Use it.
9488         (switch_back_to_stepped_thread): Always clear trap_expected if the
9489         step over is finished.  Return early if scheduler locking applies.
9490         Look for the stepping thread and a potential step-over thread with
9491         a single loop.
9492         (currently_stepping_or_nexting_callback): Delete.
9493
9494 2014-04-22  Nick Clifton  <nickc@redhat.com>
9495
9496         * NEWS: Mention that ARM sim now supports tracing.
9497
9498 2014-04-22  Yao Qi  <yao@codesourcery.com>
9499
9500         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
9501         to ...
9502         * tracefile.c (tracefile_fetch_registers): ... it.  New
9503         function.
9504         * tracefile.h (tracefile_fetch_registers): Declare.
9505         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
9506         tracefile_fetch_registers.
9507
9508 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
9509
9510         PR gdb/14018
9511         * windows-nat.c (thread_rec): Don't display a warning when
9512         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
9513         fails for any reason, set th->suspended to -1, so that we don't
9514         try to resume such a thread.  Also, don't return NULL in these
9515         cases, to avoid completely ruin the session due to "PC register is
9516         not available" error.
9517         (do_windows_fetch_inferior_registers): Check errors in
9518         GetThreadContext call.
9519         (windows_continue): Accept an additional argument KILLED; if not
9520         zero, ignore errors in the SetThreadContext call, since the
9521         inferior was killed and is shutting down.
9522         (windows_resume, get_windows_debug_event)
9523         (windows_create_inferior, windows_mourn_inferior)
9524         (windows_kill_inferior): All callers of windows_continue changed
9525         to adjust to its new calling sequence.
9526
9527 2014-04-19  Yao Qi  <yao@codesourcery.com>
9528
9529         * ctf.c (ctf_open): Call post_create_inferior.
9530
9531 2014-04-19  Yao Qi  <yao@codesourcery.com>
9532
9533         * ctf.c (handle_id): New static variable.
9534         (ctf_open_dir): Get handle_id from bt_context_add_trace return
9535         value.  Get the declaration of event "register" and get length
9536         of field "contents".
9537
9538 2014-04-19  Yao Qi  <yao@codesourcery.com>
9539
9540         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
9541
9542 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
9543
9544         * valops.c (oload_method_static): Remove unnecessary argument
9545         METHOD.  Update all callers.
9546
9547 2014-04-18  Pedro alves  <palves@redhat.com>
9548             Tom Tromey  <tromey@redhat.com>
9549
9550         PR backtrace/15558
9551         * frame.c (get_prev_frame_1): Rename to ...
9552         (get_prev_frame_always): ... this, and make extern.  Adjust.
9553         (skip_artificial_frames): Use get_prev_frame_always.
9554         (frame_unwind_caller_id, frame_pop, get_prev_frame)
9555         (get_frame_unwind_stop_reason): Adjust to rename.
9556         * frame.h (get_prev_frame_always): Declare.
9557         * inline-frame.c: Include frame.h.
9558         (inline_frame_this_id): Use get_prev_frame_always.
9559
9560 2014-04-18  Tristan Gingold  <gingold@adacore.com>
9561
9562         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
9563         code by using bfd_mach_o_get_base_address.
9564
9565 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
9566
9567         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
9568         (spu_ax_pseudo_register_collect): New function.
9569         (spu_ax_pseudo_register_push_stack): Likewise.
9570         (spu_dwarf_reg_to_regnum): Likewise.
9571         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
9572
9573 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
9574
9575         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
9576         Replace FRAME argument with FRAME_ID.
9577         * gdbarch.c, gdbarch.h: Regenerate.
9578         * findvar.c (default_value_from_register): Add GDBARCH argument;
9579         replace FRAME by FRAME_ID.  No longer call get_frame_id.
9580         (value_from_register): Update call to gdbarch_value_from_register.
9581         * value.h (default_value_from_register): Update prototype.
9582         * s390-linux-tdep.c (s390_value_from_register): Update interface
9583         and call to default_value_from_register.
9584         * spu-tdep.c (spu_value_from_register): Likewise.
9585
9586         * findvar.c (address_from_register): Remove TYPE argument.
9587         Do not call value_from_register; use gdbarch_value_from_register
9588         with null_frame_id instead.
9589         * value.h (address_from_register): Update prototype.
9590         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
9591         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
9592         address_from_register interface change.
9593
9594 2014-04-17  Yao Qi  <yao@codesourcery.com>
9595
9596         * gdbtypes.h: Update comments to link to types and macros'
9597         definitions.
9598
9599 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
9600
9601         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
9602
9603 2014-04-16  Keith Seitz  <keiths@redhat.com>
9604
9605         PR gdb/15827
9606         * dwarf2read.c (skip_one_die): Check that all relative-offset
9607         sibling DIEs fall within range of the current reader's buffer.
9608         (read_partial_die): Likewise.
9609
9610 2014-04-16  Keith Seitz  <keiths@redhat.com>
9611
9612         PR c++/16597
9613         * cp-namespace.c (lookup_symbol_file): If the type name of
9614         `this' is NULL, return immediately.
9615
9616 2014-04-14  Keith Seitz  <keiths@redhat.com>
9617
9618         PR c++/16253
9619         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
9620         from symbol_matches_domain in symtab.c. All local callers
9621         of symbol_matches_domain updated.
9622         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
9623         search STRUCT_DOMAIN.
9624         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
9625         independently.  standard_lookup will do that automatically.
9626         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
9627         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9628         (cp_lookup_symbol_in_namespace): Likewise.
9629         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
9630         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
9631         may return a STRUCT_DOMAIN match.
9632         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
9633         * cp-support.c: Include language.h.
9634         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
9635         VAR_DOMAIN.
9636         * psymtab.c (match_partial_symbol): Compare the requested
9637         domain with the symbol's domain directly.
9638         (lookup_partial_symbol): Likewise.
9639         * symtab.c (lookup_symbol_in_language): Explain when/why
9640         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
9641         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
9642         appropriate languages.
9643         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
9644         and moved to ada-lang.c
9645         (lookup_block_symbol): Explain that this function only returns
9646         symbol matching the requested DOMAIN.
9647         Compare the requested domain with the symbol's domain directly.
9648         (iterate_over_symbols): Compare the requested domain with the
9649         symbol's domain directly.
9650         * symtab.h (symbol_matches_domain): Remove.
9651
9652 2014-04-14  Tom Tromey  <tromey@redhat.com>
9653
9654         PR c++/15246:
9655         * c-exp.y (type_aggregate_p): New function.
9656         (qualified_name, classify_inner_name): Use it.
9657         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
9658         and TYPE_TARGET_TYPE of an enum type.
9659         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
9660         an enum type.
9661         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
9662         handle TYPE_DECLARED_CLASS.
9663         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
9664         types.
9665         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
9666         * valops.c (enum_constant_from_type): New function.
9667         (value_aggregate_elt): Use it.
9668         * cp-namespace.c (cp_lookup_nested_symbol): Handle
9669         TYPE_CODE_ENUM.
9670
9671 2014-04-14  Tom Tromey  <tromey@redhat.com>
9672
9673         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
9674         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
9675         const.
9676         * value.h (value_aggregate_elt): Update.
9677
9678 2014-04-14  Tom Tromey  <tromey@redhat.com>
9679
9680         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
9681
9682 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9683
9684         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9685         (evaluate_subexp_standard): Pass noside argument.
9686         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9687         if noside equals EVAL_NORMAL. If the subscript yields a vla type
9688         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9689         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9690         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9691
9692 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9693
9694         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9695         points to a constant blob.
9696
9697 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9698
9699         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9700         property and store it as the high bound and flag the range accordingly.
9701         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9702         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9703         * gdbtypes.h (enum range_flags): New enum.
9704         (struct range_bounds): Add flags member.
9705
9706 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9707
9708         * c-typeprint.c (c_type_print_varspec_suffix): Added
9709         check for not yet resolved high bound. If unresolved, print
9710         "variable length" string to the console instead of random
9711         length.
9712
9713 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9714
9715         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
9716         value.
9717         (ada_template_to_fixed_record_type_1): Likewise.
9718         (ada_to_fixed_type_1): Likewise.
9719         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9720         (cp_print_value): Likewise.
9721         * d-valprint.c (dynamic_array_type): Likewise.
9722         * findvar.c (address_of_variable): Likewise.
9723         * jv-valprint.c (java_value_print): Likewise.
9724         * valops.c (value_ind): Likewise.
9725         * value.c (coerce_ref): Likewise.
9726
9727 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9728
9729         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9730         value and retrieve the dynamic type size.
9731
9732 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9733
9734         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9735         passed to sizeof is dynamic evaluate the argument to compute the length.
9736
9737 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
9738             Joel Brobecker  <brobecker@adacore.com>
9739
9740         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9741         (dwarf2_evaluate_property): New function.
9742         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9743         * dwarf2read.c (attr_to_dynamic_prop): New function.
9744         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9745         attribute.
9746         * gdbtypes.c: Include dwarf2loc.h.
9747         (is_dynamic_type): New function.
9748         (resolve_dynamic_type): New function.
9749         (resolve_dynamic_bounds): New function.
9750         (get_type_length): New function.
9751         (check_typedef): Use get_type_length to compute type length.
9752         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9753         (TYPE_LOW_BOUND_KIND): New macro.
9754         (is_dynamic_type): New function prototype.
9755         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9756         to resolve dynamic properties of the type. Update comment.
9757         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9758
9759 2014-04-14  Richard Henderson  <rth@redhat.com>
9760
9761         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
9762
9763 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
9764             Doug Evans  <xdje42@gmail.com>
9765
9766         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
9767         dereference TYPE_CODE_REF values.
9768
9769 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
9770
9771         Revert the following changes due to regressions:
9772
9773         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9774         (dwarf2_evaluate_property): New function.
9775         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9776         * dwarf2read.c (attr_to_dynamic_prop): New function.
9777         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9778         attribute.
9779         * gdbtypes.c: Include dwarf2loc.h.
9780         (is_dynamic_type): New function.
9781         (resolve_dynamic_type): New function.
9782         (resolve_dynamic_bounds): New function.
9783         (get_type_length): New function.
9784         (check_typedef): Use get_type_length to compute type length.
9785         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9786         (TYPE_LOW_BOUND_KIND): New macro.
9787         (is_dynamic_type): New function prototype.
9788         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9789         to resolve dynamic properties of the type. Update comment.
9790         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9791
9792         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9793         passed to sizeof is dynamic evaluate the argument to compute the length.
9794
9795         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9796         value and retrieve the dynamic type size.
9797
9798         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9799         (ada_template_to_fixed_record_type_1): Likewise.
9800         (ada_to_fixed_type_1): Likewise.
9801         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9802         (cp_print_value): Likewise.
9803         * d-valprint.c (dynamic_array_type): Likewise.
9804         * eval.c (evaluate_subexp_with_coercion): Likewise.
9805         * findvar.c (address_of_variable): Likewise.
9806         * jv-valprint.c (java_value_print): Likewise.
9807         * valops.c (value_ind): Likewise.
9808         * value.c (coerce_ref): Likewise.
9809
9810         * c-typeprint.c (c_type_print_varspec_suffix): Added
9811         check for not yet resolved high bound. If unresolved, print
9812         "variable length" string to the console instead of random
9813         length.
9814
9815         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9816         property and store it as the high bound and flag the range accordingly.
9817         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9818         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9819         * gdbtypes.h (enum range_flags): New enum.
9820         (struct range_bounds): Add flags member.
9821
9822         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9823         points to a constant blob.
9824
9825         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9826         (evaluate_subexp_standard): Pass noside argument.
9827         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9828         if noside equals EVAL_NORMAL. If the subscript yields a vla type
9829         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9830         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9831         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9832
9833 2014-04-11  Keith Seitz  <keiths@redhat.com>
9834
9835         PR c++/16675
9836         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9837         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9838         reference types.
9839
9840 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9841
9842         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9843         (evaluate_subexp_standard): Pass noside argument.
9844         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9845         if noside equals EVAL_NORMAL. If the subscript yields a vla type
9846         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9847         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9848         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9849
9850 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9851
9852         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9853         points to a constant blob.
9854
9855 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9856
9857         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9858         property and store it as the high bound and flag the range accordingly.
9859         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9860         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9861         * gdbtypes.h (enum range_flags): New enum.
9862         (struct range_bounds): Add flags member.
9863
9864 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9865
9866         * c-typeprint.c (c_type_print_varspec_suffix): Added
9867         check for not yet resolved high bound. If unresolved, print
9868         "variable length" string to the console instead of random
9869         length.
9870
9871 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9872
9873         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9874         (ada_template_to_fixed_record_type_1): Likewise.
9875         (ada_to_fixed_type_1): Likewise.
9876         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9877         (cp_print_value): Likewise.
9878         * d-valprint.c (dynamic_array_type): Likewise.
9879         * eval.c (evaluate_subexp_with_coercion): Likewise.
9880         * findvar.c (address_of_variable): Likewise.
9881         * jv-valprint.c (java_value_print): Likewise.
9882         * valops.c (value_ind): Likewise.
9883         * value.c (coerce_ref): Likewise.
9884
9885 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9886
9887         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9888         value and retrieve the dynamic type size.
9889
9890 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9891
9892         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9893         passed to sizeof is dynamic evaluate the argument to compute the length.
9894
9895 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9896
9897         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9898         (dwarf2_evaluate_property): New function.
9899         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9900         * dwarf2read.c (attr_to_dynamic_prop): New function.
9901         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9902         attribute.
9903         * gdbtypes.c: Include dwarf2loc.h.
9904         (is_dynamic_type): New function.
9905         (resolve_dynamic_type): New function.
9906         (resolve_dynamic_bounds): New function.
9907         (get_type_length): New function.
9908         (check_typedef): Use get_type_length to compute type length.
9909         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9910         (TYPE_LOW_BOUND_KIND): New macro.
9911         (is_dynamic_type): New function prototype.
9912         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9913         to resolve dynamic properties of the type. Update comment.
9914         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9915
9916 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9917
9918         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9919         declaring high/low bounds and change uses accordingly. Call
9920         create_range_type instead of create_static_range_type.
9921         * gdbtypes.c (create_range_type): New function.
9922         (create_range_type): Convert bounds into struct bound_prop and pass
9923         them to create_range_type.
9924         * gdbtypes.h (struct bound_prop): New struct.
9925         (create_range_type): New function prototype.
9926         (struct range_bounds): Use struct bound_prop instead of LONGEST for
9927         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9928         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9929         part of the bound.
9930         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9931
9932 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
9933
9934         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9935         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9936         * ada-lang.c: All uses of create_range_type updated.
9937         * coffread.c: All uses of create_range_type updated.
9938         * dwarf2read.c: All uses of create_range_type updated.
9939         * f-exp.y: All uses of create_range_type updated.
9940         * m2-valprint.c: All uses of create_range_type updated.
9941         * mdebugread.c: All uses of create_range_type updated.
9942         * stabsread.c: All uses of create_range_type updated.
9943         * valops.c: All uses of create_range_type updated.
9944         * valprint.c: All uses of create_range_type updated.
9945
9946 2014-04-10  Pedro Alves  <palves@redhat.com>
9947
9948         * breakpoint.c (single_step_breakpoints)
9949         (single_step_gdbarch): Move up in the file.
9950         (one_breakpoint_xfer_memory): New function, factored out from ...
9951         (breakpoint_xfer_memory): ... here.  Also process single-step
9952         breakpoints.
9953
9954 2014-04-09  Tristan Gingold  <gingold@adacore.com>
9955
9956         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9957         comments.
9958         (darwin_decode_exception_message): Free port only after use.
9959
9960 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
9961
9962         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9963         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9964         when setting the size of call_length.
9965
9966 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
9967
9968         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9969         dereference TYPE_CODE_REF values.
9970
9971 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
9972
9973         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9974         end of warning message.
9975
9976 2014-04-03  Doug Evans  <dje@google.com>
9977
9978         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9979         of stub_comp_unit_die, stub_comp_dir is non-NULL.
9980
9981 2014-04-02  Alan Modra  <amodra@gmail.com>
9982
9983         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9984         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
9985         (struct symbol_file_add_from_memory_args): Add size field.
9986         (find_vdso_size): New function.
9987         (add_vsyscall_page): Attempt to find vdso size.
9988
9989 2014-04-01  Doug Evans  <dje@google.com>
9990
9991         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9992
9993 2014-04-01  Tristan Gingold  <gingold@adacore.com>
9994
9995         * darwin-nat.c (darwin_encode_reply): Add prototype.
9996         (darwin_decode_exception_message): Reply to unknown inferiors.
9997         (darwin_decode_message): Handle message by id.  Ignore message
9998         to unknown inferior.
9999         (darwin_wait): Discard unknown messages, add debug trace.
10000
10001 2014-03-31  Doug Evans  <dje@google.com>
10002
10003         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
10004         comp_dir_string.
10005
10006 2014-03-31  Doug Evans  <dje@google.com>
10007
10008         New option "set print symbol-loading".
10009         * NEWS: Mention it.
10010         * solib.c (solib_read_symbols): Only print symbol loading messages
10011         if requested.
10012         (solib_add): If symbol loading is in "brief" mode, notify user
10013         symbols are being loaded.
10014         (reload_shared_libraries_1): Ditto.
10015         * symfile.c (print_symbol_loading_off): New static global.
10016         (print_symbol_loading_brief): New static global.
10017         (print_symbol_loading_full): New static global.
10018         (print_symbol_loading_enums): New static global.
10019         (print_symbol_loading): New static global.
10020         (print_symbol_loading_p): New function.
10021         (symbol_file_add_with_addrs): Only print symbol loading messages
10022         if requested.
10023         (_initialize_symfile): Register "print symbol-loading" set/show
10024         command.
10025         * symfile.h (print_symbol_loading_p): Declare.
10026
10027 2014-03-30  Doug Evans  <xdje42@gmail.com>
10028
10029         * infrun.c (set_last_target_status): New function.
10030         (handle_inferior_event): Call it.
10031
10032 2014-03-30  Doug Evans  <xdje42@gmail.com>
10033
10034         * inferior.h (enum stop_kind): Improve comment.
10035
10036 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
10037
10038         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
10039         a reference, strip the reference layer before calling
10040         the lang_ops value_has_mutated callback.
10041
10042 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
10043
10044         Remove some globals from our parser.
10045         * language.c (unk_lang_parser): Add "struct parser_state"
10046         argument.
10047         * language.h (struct language_defn) <la_parser>: Likewise.
10048         * parse.c (expout, expout_size, expout_ptr): Remove variables.
10049         (initialize_expout): Add "struct parser_state" argument.
10050         Rewrite function to use the parser state.
10051         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
10052         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
10053         write_exp_elt_longcst, write_exp_elt_dblcst,
10054         write_exp_elt_decfloatcst, write_exp_elt_type,
10055         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
10056         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
10057         write_dollar_variable): Likewise.
10058         (parse_exp_in_context_1): Use parser state.
10059         (insert_type_address_space): Add "struct parser_state" argument.
10060         Use parser state.
10061         (increase_expout_size): New function.
10062         * parser-defs.h: Forward declare "struct language_defn" and
10063         "struct parser_state".
10064         (expout, expout_size, expout_ptr): Remove extern declarations.
10065         (parse_gdbarch, parse_language): Rewrite macro declarations to
10066         accept the parser state.
10067         (struct parser_state): New struct.
10068         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
10069         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
10070         write_exp_elt_decfloatcst, write_exp_elt_type,
10071         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
10072         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
10073         write_exp_msymbol, write_dollar_variable,
10074         mark_struct_expression, insert_type_address_space): Add "struct
10075         parser_state" argument.
10076         (increase_expout_size): New function.
10077         * utils.c (do_clear_parser_state): New function.
10078         (make_cleanup_clear_parser_state): Likewise.
10079         * utils.h (make_cleanup_clear_parser_state): New function
10080         prototype.
10081         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
10082         Update calls to write_exp* in order to pass the parser state.
10083         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
10084         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
10085         (i386_stap_parse_special_token_three_arg_disp): Likewise.
10086         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
10087         * stap-probe.c (stap_parse_register_operand): Likewise.
10088         (stap_parse_single_operand): Likewise.
10089         (stap_parse_argument_1): Likewise.
10090         (stap_parse_argument): Use parser state.
10091         * stap-probe.h: Include "parser-defs.h".
10092         (struct stap_parse_info) <pstate>: New field.
10093         * c-exp.y (parse_type): Rewrite to use parser state.
10094         (yyparse): Redefine to c_parse_internal.
10095         (pstate): New global variable.
10096         (parse_number): Add "struct parser_state" argument.
10097         (write_destructor_name): Likewise.
10098         (type_exp): Update calls to write_exp* and similars in order to
10099         use parser state.
10100         (exp1, exp, variable, qualified_name, space_identifier,
10101         typename, typebase): Likewise.
10102         (write_destructor_name, parse_number, lex_one_token,
10103         classify_name, classify_inner_name, c_parse): Add "struct
10104         parser_state" argument.  Update function to use parser state.
10105         * c-lang.h: Forward declare "struct parser_state".
10106         (c_parse): Add "struct parser_state" argument.
10107         * ada-exp.y (parse_type): Rewrite macro to use parser state.
10108         (yyparse): Redefine macro to ada_parse_internal.
10109         (pstate): New variable.
10110         (write_int, write_object_renaming, write_var_or_type,
10111         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
10112         type_int, type_long, type_long_long, type_float, type_double,
10113         type_long_double, type_char, type_boolean, type_system_address):
10114         Add "struct parser_state" argument.
10115         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
10116         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
10117         var_or_type, aggregate, aggregate_component_list,
10118         positional_list, others, component_group,
10119         component_associations): Update calls to write_exp* and similar
10120         functions in order to use parser state.
10121         (ada_parse, write_var_from_sym, write_int,
10122         write_exp_op_with_string, write_object_renaming,
10123         find_primitive_type, write_selectors, write_ambiguous_var,
10124         write_var_or_type, write_name_assoc, type_int, type_long,
10125         type_long_long, type_float, type_double, type_long_double,
10126         type_char, type_boolean, type_system_address): Add "struct
10127         parser_state" argument.  Adjust function to use parser state.
10128         * ada-lang.c (parse): Likewise.
10129         * ada-lang.h: Forward declare "struct parser_state".
10130         (ada_parse): Add "struct parser_state" argument.
10131         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
10132         calls to both functions.
10133         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
10134         parser state.
10135         (yyparse): Redefine macro to f_parse_internal.
10136         (pstate): New variable.
10137         (parse_number): Add "struct parser_state" argument.
10138         (type_exp, exp, subrange, typebase): Update calls to write_exp*
10139         and similars in order to use parser state.
10140         (parse_number): Adjust code to use parser state.
10141         (yylex): Likewise.
10142         (f_parse): New function.
10143         * f-lang.h: Forward declare "struct parser_state".
10144         (f_parse): Add "struct parser_state" argument.
10145         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
10146         parser state.
10147         (yyparse): Redefine macro for java_parse_internal.
10148         (pstate): New variable.
10149         (push_expression_name, push_expression_name, insert_exp): Add
10150         "struct parser_state" argument.
10151         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
10152         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
10153         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
10154         PostIncrementExpression, PostDecrementExpression,
10155         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
10156         UnaryExpressionNotPlusMinus, CastExpression,
10157         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
10158         RelationalExpression, EqualityExpression, AndExpression,
10159         ExclusiveOrExpression, InclusiveOrExpression,
10160         ConditionalAndExpression, ConditionalOrExpression,
10161         ConditionalExpression, Assignment, LeftHandSide): Update
10162         calls to write_exp* and similars in order to use parser state.
10163         (parse_number): Ajust code to use parser state.
10164         (yylex): Likewise.
10165         (java_parse): New function.
10166         (push_variable): Add "struct parser_state" argument.  Adjust
10167         code to user parser state.
10168         (push_fieldnames, push_qualified_expression_name,
10169         push_expression_name, insert_exp): Likewise.
10170         * jv-lang.h: Forward declare "struct parser_state".
10171         (java_parse): Add "struct parser_state" argument.
10172         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
10173         parser state.
10174         (yyparse): Redefine macro to m2_parse_internal.
10175         (pstate): New variable.
10176         (type_exp, exp, fblock, variable, type): Update calls to
10177         write_exp* and similars to use parser state.
10178         (yylex): Likewise.
10179         (m2_parse): New function.
10180         * m2-lang.h: Forward declare "struct parser_state".
10181         (m2_parse): Add "struct parser_state" argument.
10182         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
10183         * objc-lang.h: Forward declare "struct parser_state".
10184         (end_msglist): Add "struct parser_state" argument.
10185         * p-exp.y (parse_type): Rewrite macro to use parser state.
10186         (yyparse): Redefine macro to pascal_parse_internal.
10187         (pstate): New variable.
10188         (parse_number): Add "struct parser_state" argument.
10189         (type_exp, exp1, exp, qualified_name, variable): Update calls to
10190         write_exp* and similars in order to use parser state.
10191         (parse_number, yylex): Adjust code to use parser state.
10192         (pascal_parse): New function.
10193         * p-lang.h: Forward declare "struct parser_state".
10194         (pascal_parse): Add "struct parser_state" argument.
10195         * go-exp.y (parse_type): Rewrite macro to use parser state.
10196         (yyparse): Redefine macro to go_parse_internal.
10197         (pstate): New variable.
10198         (parse_number): Add "struct parser_state" argument.
10199         (type_exp, exp1, exp, variable, type): Update calls to
10200         write_exp* and similars in order to use parser state.
10201         (parse_number, lex_one_token, classify_name, yylex): Adjust code
10202         to use parser state.
10203         (go_parse): Likewise.
10204         * go-lang.h: Forward declare "struct parser_state".
10205         (go_parse): Add "struct parser_state" argument.
10206
10207 2014-03-27  Doug Evans  <dje@google.com>
10208
10209         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
10210
10211 2014-03-27  Doug Evans  <dje@google.com>
10212
10213         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
10214         Remove argument abbrev_section.  All callers updated.
10215
10216 2014-03-27  Doug Evans  <dje@google.com>
10217
10218         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
10219         addr_base, ranges_base.
10220
10221 2014-03-26  Keith Seitz  <keiths@redhat.com>
10222
10223         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
10224         types, not VAR_DOMAIN.
10225
10226 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
10227
10228         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
10229         "ra" registers.
10230         * features/nios2-linux.c: Regenerated.
10231         * features/nios2.c: Regenerated.
10232
10233 2014-03-25  Pedro Alves  <palves@redhat.com>
10234
10235         * cli/cli-script.c (script_from_file): Force the interpreter to
10236         sync mode.
10237
10238 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
10239
10240         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
10241         small stack allocation.
10242
10243 2014-03-24  Tristan Gingold  <gingold@adacore.com>
10244
10245         * darwin-nat.c (exc_server): Remove unused prototype.
10246         (darwin_dump_message): Correctly display data on x86_64.
10247         (darwin_encode_reply): Fix style.
10248         Add comments and fix indentation.
10249
10250 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
10251
10252         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
10253
10254 2014-03-22  Doug Evans  <xdje42@gmail.com>
10255
10256         * infcmd.c: Whitespace fixes.
10257         (interrupt_command): Merge two function comments into one.
10258
10259 2014-03-22  Doug Evans  <xdje42@gmail.com>
10260
10261         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
10262         All uses updated.
10263
10264 2014-03-22  Yao Qi  <yao@codesourcery.com>
10265
10266         * remote.c (target_read_live_memory): Remove.
10267         (memory_xfer_live_readonly_partial): Rename it to
10268         remote_xfer_live_readonly_partial.  Remove argument 'object'.
10269         All callers updated.  Call remote_read_bytes_1
10270         instead of target_read_live_memory.
10271         * tracepoint.c (set_traceframe_number): Remove.
10272         (make_cleanup_restore_traceframe_number): Likewise .
10273         * tracepoint.h (set_traceframe_number): Remove declaration.
10274         (make_cleanup_restore_traceframe_number): Likewise.
10275
10276 2014-03-22  Yao Qi  <yao@codesourcery.com>
10277
10278         * remote.c (remote_read_bytes): Move code on reading from the
10279         remote stub to ...
10280         (remote_read_bytes_1): ... here.  New function.
10281
10282 2014-03-22  Yao Qi  <yao@codesourcery.com>
10283
10284         * ctf.c (ctf_xfer_partial): Check the return value of
10285         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
10286         return TARGET_XFER_UNAVAILABLE.
10287         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10288         * target.c (target_read_live_memory): Move it to remote.c.
10289         (memory_xfer_live_readonly_partial): Likewise.
10290         (memory_xfer_partial_1): Move some code to remote_read_bytes.
10291         * remote.c (target_read_live_memory): Moved from target.c.
10292         (memory_xfer_live_readonly_partial): Likewise.
10293         (remote_read_bytes): Factored out from
10294         memory_xfer_partial_1.
10295
10296 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
10297
10298         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
10299         NULL pointer.
10300
10301 2014-03-21  Pedro Alves  <palves@redhat.com>
10302
10303         * infrun.c (normal_stop): Extend comment.
10304
10305 2014-03-21  Hui Zhu  <hui@codesourcery.com>
10306             Pedro Alves  <palves@redhat.com>
10307
10308         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
10309         static buffer.
10310         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
10311         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
10312         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
10313
10314 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
10315
10316         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
10317         `z' formatted output modifier.
10318
10319 2014-03-20  Tom Tromey  <tromey@redhat.com>
10320             Sergio Durigan Junior  <sergiodj@redhat.com>
10321
10322         * probe.c (parse_probes): Turn assert into an ordinary error.
10323         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
10324         exceptions when parsing probes.  Rearrange the code for clarity.
10325
10326 2014-03-20  Tom Tromey  <tromey@redhat.com>
10327
10328         PR gdb/14135
10329         * top.c (execute_command): Only dispatch events if the command
10330         started the target.
10331
10332 2014-03-20  Tom Tromey  <tromey@redhat.com>
10333
10334         PR cli/15718
10335         * infcall.c: Include event-top.h.
10336         (run_inferior_call): Call async_disable_stdin if needed.
10337
10338 2014-03-20  Pedro Alves  <palves@redhat.com>
10339
10340         * infrun.c (prepare_to_proceed): Delete.
10341         (thread_still_needs_step_over): New function.
10342         (find_thread_needs_step_over): New function.
10343         (proceed): If the current thread needs a step-over, set its
10344         steping_over_breakpoint flag.  Adjust to use
10345         find_thread_needs_step_over instead of prepare_to_proceed.
10346         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
10347         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
10348         breakpoint.
10349         (switch_back_to_stepped_thread): Step over breakpoints of all
10350         threads not the stepping thread, before switching back to the
10351         stepping thread.
10352
10353 2014-03-20  Pedro Alves  <palves@redhat.com>
10354
10355         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
10356         extern.
10357         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
10358         * infrun.c (saved_singlestep_ptid)
10359         (stepping_past_singlestep_breakpoint): Delete.
10360         (resume): Remove stepping_past_singlestep_breakpoint handling.
10361         (proceed): Store the prev_pc of the stepping thread too.
10362         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
10363         singlestep_pc.
10364         (enum infwait_states): Delete infwait_thread_hop_state.
10365         (struct execution_control_state) <hit_singlestep_breakpoint>: New
10366         field.
10367         (handle_inferior_event): Adjust.
10368         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
10369         handling and the thread-hop code.  Before removing single-step
10370         breakpoints, check whether the thread hit a single-step breakpoint
10371         of another thread.  If it did, the trap is not a random signal.
10372         (switch_back_to_stepped_thread): If the event thread hit a
10373         single-step breakpoint, unblock it before switching to the
10374         stepping thread.  Handle the case of the stepped thread having
10375         advanced already.
10376         (keep_going): Handle the case of the current thread moving past a
10377         single-step breakpoint.
10378
10379 2014-03-20  Pedro Alves  <palves@redhat.com>
10380
10381         PR breakpoints/7143
10382         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
10383         are being stepped over.
10384         (breakpoint_address_match): Make extern.
10385         * breakpoint.h (breakpoint_address_match): New declaration.
10386         * inferior.h (stepping_past_instruction_at): New declaration.
10387         * infrun.c (struct step_over_info): New type.
10388         (step_over_info): New global.
10389         (set_step_over_info, clear_step_over_info)
10390         (stepping_past_instruction_at): New functions.
10391         (handle_inferior_event): Clear the step-over info when
10392         trap_expected is cleared.
10393         (resume): Remove now stale comment.
10394         (clear_proceed_status): Clear step-over info.
10395         (proceed): Adjust step-over handling to set or clear the step-over
10396         info instead of removing all breakpoints.
10397         (handle_signal_stop): When setting up a thread-hop, don't remove
10398         breakpoints here.
10399         (stop_stepping): Clear step-over info.
10400         (keep_going): Adjust step-over handling to set or clear step-over
10401         info and then always inserting breakpoints, instead of removing
10402         all breakpoints when stepping over one.
10403
10404 2014-03-20  Pedro Alves  <palves@redhat.com>
10405
10406         * infrun.c (previous_inferior_ptid): Adjust comment.
10407         (deferred_step_ptid): Delete.
10408         (infrun_thread_ptid_changed, prepare_to_proceed)
10409         (init_wait_for_inferior): Adjust.
10410         (handle_signal_stop): Delete deferred_step_ptid handling.
10411
10412 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
10413
10414         PR gdb/15358
10415         * defs.h (sync_quit_force_run): New declaration.
10416         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
10417         * event-top.c (async_sigterm_handler): New declaration.
10418         (async_sigterm_token): New variable.
10419         (async_init_signals): Create also async_sigterm_token.
10420         (async_sigterm_handler): New function.
10421         (sync_quit_force_run): New variable.
10422         (handle_sigterm): Replace quit_force call by other calls.
10423         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
10424
10425 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
10426
10427         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
10428         offset into SPE pseudo registers.
10429
10430 2014-03-18  Pedro Alves  <palves@redhat.com>
10431
10432         PR gdb/13860
10433         * inferior.h (print_stop_event): Declare.
10434         * infrun.c (print_stop_event): New, factored out from ...
10435         (normal_stop): ... this.
10436         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
10437         of bpstat_print/print_stack_frame.
10438
10439 2014-03-17  Tom Tromey  <tromey@redhat.com>
10440
10441         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
10442
10443 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
10444
10445         * ada-lang.c (decode_constrained_packed_array): Perform a
10446         minimal coercion for reference with coerce_ref instead of
10447         ada_coerce_ref.
10448
10449 2014-03-17  Tristan Gingold  <gingold@adacore.com>
10450
10451         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
10452         (darwin_solib_create_inferior_hook): Emit a warning if version
10453         is unhandled.
10454
10455 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
10456
10457         * python/py-value.c (get_field_flag): Cast flag_name argument to
10458         PyObject_GetAttrString to support Python 2.4.
10459
10460 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
10461
10462         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
10463         (Global Maintainers): Remove Jan Kratochvil.
10464
10465 2014-03-14  Pedro Alves  <palves@redhat.com>
10466
10467         * inferior.h (terminal_ours_for_output): Rename to ...
10468         (child_terminal_ours_for_output): ... this.
10469         (terminal_save_ours): Rename to ...
10470         (child_terminal_save_ours): ... this.
10471         (terminal_ours): Rename to ...
10472         (child_terminal_ours): ... this.
10473         (terminal_inferior): Rename to ...
10474         (child_terminal_inferior): ... this.
10475         (terminal_init_inferior): Rename to ...
10476         (child_terminal_init_inferior): ... this.
10477         (terminal_init_inferior_with_pgrp): Rename to ...
10478         (child_terminal_init_inferior_with_pgrp): ... this.
10479         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
10480         (child_terminal_init_with_pgrp): ... this.
10481         (terminal_save_ours): Rename to ...
10482         (child_terminal_save_ours): ... this.
10483         (terminal_init_inferior): Rename to ...
10484         (child_terminal_init): ... this.  Adjust.
10485         (terminal_inferior): Rename to ...
10486         (child_terminal_inferior): ... this.
10487         (terminal_ours_for_output): Rename to ...
10488         (child_terminal_ours_for_output): ... this.  Adjust.
10489         (terminal_ours): Rename to ...
10490         (child_terminal_ours): ... this.
10491         (terminal_ours_1): Rename to ...
10492         (child_terminal_ours_1): ... this.  Adjust.
10493         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
10494         * windows-nat.c (do_initial_windows_stuff): Adjust.
10495         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
10496         (gnu_terminal_init): ... this.  Adjust.
10497         (gnu_target): Adjust.
10498         * inf-child.c (inf_child_target): Adjust.
10499
10500 2014-03-13  Doug Evans  <xdje42@gmail.com>
10501
10502         PR guile/16612
10503         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
10504         new eq?-hashtab.
10505
10506 2014-03-13  Doug Evans  <xdje42@gmail.com>
10507
10508         * value.c (record_latest_value): Call release_value_or_incref
10509         instead of release_value.
10510
10511 2014-03-13  Pedro Alves  <palves@redhat.com>
10512
10513         * procfs.c (procfs_target): Don't override to_shortname,
10514         to_longname or to_doc.
10515
10516 2014-03-13  Pedro Alves  <palves@redhat.com>
10517
10518         * inf-child.c (inf_child_open, inf_child_target): Don't mention
10519         Unix in user visible strings.
10520
10521 2014-03-12  Stan Shebs  <stan@codesourcery.com>
10522
10523         * gdbtypes.h: Annotate comments for Doxygen, add a page
10524         block comment with some general info.
10525
10526 2014-03-12  Pedro Alves  <palves@redhat.com>
10527
10528         * infcmd.c (prepare_execution_command): New function, factored out
10529         from several execution commands.
10530         (run_command_1, continue_command, step_1, jump_command)
10531         (signal_command, until_command, advance_command, finish_command)
10532         (attach_command): Use prepare_execution_command.
10533
10534 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
10535
10536         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
10537         (MAX_BPTS): Define.
10538         (MAX_WPTS): Define.
10539         (struct arm_linux_thread_points): Removed.
10540         (struct arm_linux_process_info): New.
10541         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
10542         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
10543         (arm_linux_find_breakpoints_by_tid): Removed.
10544         (struct arch_lwp_info): New.
10545         (arm_linux_find_process_pid): New functions.
10546         (arm_linux_add_process): New functions.
10547         (arm_linux_process_info_get): New functions.
10548         (arm_linux_forget_process): New function.
10549         (arm_linux_get_debug_reg_state): New function.
10550         (struct update_registers_data): New.
10551         (update_registers_callback): New function.
10552         (arm_linux_insert_hw_breakpoint1): Updated.
10553         (arm_linux_remove_hw_breakpoint1): Updated.
10554         (arm_linux_insert_hw_breakpoint): Updated.
10555         (arm_linux_remove_hw_breakpoint): Updated.
10556         (arm_linux_insert_watchpoint): Updated.
10557         (arm_linux_remove_watchpoint): Updated.
10558         (arm_linux_new_thread): Updated.
10559         (arm_linux_prepare_to_resume): New function.
10560         (arm_linux_new_fork): New function.
10561         (_initialize_arm_linux_nat): Updated.
10562
10563 2014-03-12  Pedro Alves  <palves@redhat.com>
10564
10565         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
10566
10567 2014-03-12  Tom Tromey  <tromey@redhat.com>
10568
10569         * inf-child.c (return_zero): New function.
10570         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
10571         * aix-thread.c (aix_thread_inferior_created): New function.
10572         (aix_thread_attach): Remove.
10573         (init_aix_thread_ops): Don't set to_attach.
10574         (_initialize_aix_thread): Register inferior_created observer.
10575         * corelow.c (init_core_ops): Don't set to_attach or
10576         to_create_inferior.
10577         * exec.c (init_exec_ops): Don't set to_attach or
10578         to_create_inferior.
10579         * infcmd.c (run_command_1): Use find_run_target.  Make direct
10580         target calls.
10581         (attach_command): Use find_attach_target.  Make direct target
10582         calls.
10583         * record-btrace.c (init_record_btrace_ops): Don't set
10584         to_create_inferior.
10585         * record-full.c (record_full_can_async_p, record_full_is_async_p):
10586         Remove.
10587         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
10588         set to_create_inferior.
10589         * target.c (complete_target_initialization): Add assertion.
10590         (target_create_inferior): Remove.
10591         (find_default_attach, find_default_create_inferior): Remove.
10592         (find_attach_target, find_run_target): New functions.
10593         (find_default_is_async_p, find_default_can_async_p)
10594         (target_supports_non_stop, target_attach): Remove.
10595         (init_dummy_target): Don't set to_create_inferior or
10596         to_supports_non_stop.
10597         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
10598         TARGET_DEFAULT_FUNC.
10599         <to_create_inferior>: Add comment.
10600         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
10601         TARGET_DEFAULT_RETURN.
10602         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
10603         (find_attach_target, find_run_target): Declare.
10604         (target_create_inferior): Remove.
10605         (target_has_execution_1): Update comment.
10606         (target_supports_non_stop): Remove.
10607         * target-delegates.c: Rebuild.
10608
10609 2014-03-12  Pedro Alves  <palves@redhat.com>
10610
10611         * inf-child.h: Update comment to not mention Unix.
10612
10613 2014-03-12  Pedro Alves  <palves@redhat.com>
10614
10615         * inf-child.c: Update top comment to not mention Unix.  Add
10616         generic comment describing how this target is meant to be used.
10617         (inf_child_post_attach, inf_child_post_startup_inferior)
10618         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
10619         Unix in comment.
10620
10621 2014-03-12  Pedro Alves  <palves@redhat.com>
10622
10623         * nto-procfs.c: Include inf-child.h.
10624         (procfs_ops): Delete global.
10625         (procfs_can_run): Delete method.
10626         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
10627         target pointer instead of referencing procfs_ops.
10628         (procfs_prepare_to_store): Delete.
10629         (init_procfs_ops): Delete function.
10630         (procfs_target): New function, based on init_procfs_ops, but
10631         inherit inf_child_target.
10632         (_initialize_procfs): Use procfs_target.
10633
10634 2014-03-12  Pedro Alves  <palves@redhat.com>
10635
10636         * windows-nat.c: Include inf-child.h.
10637         (windows_ops): Delete global.
10638         (windows_open, windows_prepare_to_store, windows_can_run): Delete
10639         methods.
10640         (init_windows_ops): Delete function.
10641         (windows_target): New function, based on init_windows_ops, but
10642         inherit inf_child_target.
10643         (_initialize_windows_nat): Use windows_target.  Install x86
10644         specific target methods here.
10645
10646 2014-03-10  Doug Evans  <xdje42@gmail.com>
10647
10648         * guile/guile.c (call_initialize_gdb_module): New function.
10649         (initialize_guile): Replace call to scm_init_guile with call to
10650         scm_with_guile.
10651
10652 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
10653
10654         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
10655         in call to TYPE_CODE macro.
10656
10657 2014-03-10  Jerome Guitton  <guitton@adacore.com>
10658
10659         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
10660         Resolve tagged types to full view.
10661
10662 2014-03-10  Hui Zhu  <hui@codesourcery.com>
10663
10664         * target.h (target_insert_breakpoint): Remove "hardware" from its
10665         comments.
10666
10667 2014-03-07  Doug Evans  <dje@google.com>
10668
10669         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
10670
10671 2014-03-07  Doug Evans  <dje@google.com>
10672
10673         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
10674         Remove unused local comp_dir_attr.  Assert exactly one of
10675         stub_comp_unit_die, stub_comp_dir is non-NULL.
10676
10677 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
10678
10679         * target.h (complete_target_initialization, add_target):
10680         Add comment.
10681
10682 2014-03-07  Pedro Alves  <palves@redhat.com>
10683
10684         * go32-nat.c: Include inf-child.h.
10685         (go32_ops): Delete global.
10686         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
10687         Delete methods.
10688         (go32_create_inferior): Push the passed in target pointer instead
10689         of referencing go32_ops.
10690         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
10691         (go32_target): New function, based on init_go32_ops, but inherit
10692         inf_child_target.
10693         (_initialize_go32_nat): Use go32_target.  Move parts of
10694         init_go32_ops here.
10695
10696 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
10697
10698         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
10699         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
10700         SYMBOL_VALUE_ADDRESS.
10701         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
10702
10703 2014-03-06  Yao Qi  <yao@codesourcery.com>
10704
10705         * breakpoint.c (get_tracepoint_by_number): Remove argument
10706         optional_p.  All callers updated.  Adjust comments.  Update
10707         output message.
10708         * breakpoint.h (get_tracepoint_by_number): Update declaration.
10709
10710 2014-03-06  Yao Qi  <yao@codesourcery.com>
10711
10712         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
10713         early if get_number returns zero.  Use 'p' instead of 'args'.
10714
10715 2014-03-06  Yao Qi  <yao@codesourcery.com>
10716
10717         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
10718         message.
10719
10720 2014-03-06  Yao Qi  <yao@codesourcery.com>
10721
10722         PR breakpoints/16508
10723         * tracepoint.c (check_trace_running): New function.
10724         (trace_find_command): Move code to check_trace_running and
10725         call check_trace_running.
10726         (trace_find_pc_command): Likewise.
10727         (trace_find_tracepoint_command): Likewise.
10728         (trace_find_line_command): Likewise.
10729         (trace_find_range_command): Likewise.
10730         * tracepoint.h (check_trace_running): Likewise.
10731         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
10732
10733 2014-03-06  Yao Qi  <yao@codesourcery.com>
10734
10735         * target.h (struct target_ops) <to_traceframe_info>: Use
10736         TARGET_DEFAULT_NORETURN (tcomplain ()).
10737         * target-delegates.c: Regenerated.
10738
10739 2014-03-05  Pedro Alves  <palves@redhat.com>
10740
10741         PR gdb/16575
10742         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
10743         void.  Update comment.
10744         (dcache_xfer_memory): Delete.
10745         (dcache_read_memory_partial): New, based on the read bits of
10746         dcache_xfer_memory.
10747         (dcache_update): Add status parameter.  Use ULONGEST for len, and
10748         adjust.  Discard cache lines if the reason for the update was
10749         error.
10750         * dcache.h (dcache_xfer_memory): Delete declaration.
10751         (dcache_read_memory_partial): New declaration.
10752         (dcache_update): Update prototype.
10753         * target.c (raw_memory_xfer_partial): Update the dcache here.
10754         (memory_xfer_partial_1): Don't handle dcache writes here.
10755
10756 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
10757
10758         * remote-sim.c (gdbsim_load): Add const to prog.
10759
10760 2014-03-03  Tom Tromey  <tromey@redhat.com>
10761
10762         * elfread.c (probe_key): Change to bfd_data.
10763         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
10764         now per-BFD, not per-objfile.
10765         * stap-probe.c (stap_probe_destroy): Update comment.
10766         (handle_stap_probe): Allocate on the per-BFD obstack.
10767
10768 2014-03-03  Tom Tromey  <tromey@redhat.com>
10769
10770         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
10771         * breakpoint.c (create_longjmp_master_breakpoint): Use
10772         get_probe_address.
10773         (add_location_to_breakpoint, bkpt_probe_insert_location)
10774         (bkpt_probe_remove_location): Update.
10775         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
10776         * elfread.c (elf_symfile_relocate_probe): Remove.
10777         (elf_probe_fns): Update.
10778         (insert_exception_resume_breakpoint): Change type of "probe"
10779         parameter to bound_probe.
10780         (check_exception_resume): Update.
10781         * objfiles.c (objfile_relocate1): Don't relocate probes.
10782         * probe.c (bound_probe_s): New typedef.
10783         (parse_probes): Use get_probe_address.  Set sal's objfile.
10784         (find_probe_by_pc): Return a bound_probe.
10785         (collect_probes): Return a VEC(bound_probe_s).
10786         (compare_probes): Update.
10787         (gen_ui_out_table_header_info): Change type of "probes"
10788         parameter.  Update.
10789         (info_probes_for_ops): Update.
10790         (get_probe_address): New function.
10791         (probe_safe_evaluate_at_pc): Update.
10792         * probe.h (struct probe_ops) <get_probe_address>: New field.
10793         <set_semaphore, clear_semaphore>: Add objfile parameter.
10794         (struct probe) <objfile>: Remove field.
10795         <arch>: New field.
10796         <address>: Update comment.
10797         (struct bound_probe): New.
10798         (find_probe_by_pc): Return a bound_probe.
10799         (get_probe_address): Declare.
10800         * solib-svr4.c (struct probe_and_action) <address>: New field.
10801         (hash_probe_and_action, equal_probe_and_action): Update.
10802         (register_solib_event_probe): Add address parameter.
10803         (solib_event_probe_at): Update.
10804         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
10805         get_probe_address.
10806         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10807         (stap_get_probe_address): New function.
10808         (stap_can_evaluate_probe_arguments, compute_probe_arg)
10809         (compile_probe_arg): Update.
10810         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10811         address.
10812         (handle_stap_probe): Don't relocate the probe.
10813         (stap_relocate): Remove.
10814         (stap_gen_info_probes_table_values): Update.
10815         (stap_probe_ops): Remove stap_relocate.
10816         * symfile-debug.c (debug_sym_relocate_probe): Remove.
10817         (debug_sym_probe_fns): Update.
10818         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10819         * symtab.c (init_sal): Use memset.
10820         * symtab.h (struct symtab_and_line) <objfile>: New field.
10821         * tracepoint.c (start_tracing, stop_tracing): Update.
10822
10823 2014-03-03  Tom Tromey  <tromey@redhat.com>
10824
10825         * probe.h (parse_probes, find_probe_by_pc)
10826         (find_probes_in_objfile): Fix comments.
10827
10828 2014-03-02  Doug Evans  <xdje42@gmail.com>
10829
10830         * infrun.c (handle_signal_stop): Replace test for
10831         TARGET_WAITKIND_STOPPED with an assert.
10832
10833 2014-03-02  Doug Evans  <xdje42@gmail.com>
10834
10835         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10836
10837 2014-03-02  Doug Evans  <xdje42@gmail.com>
10838
10839         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10840
10841 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10842
10843         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10844
10845 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10846
10847         * i386obsd-nat.c: Include "obsd-nat.h".
10848         (_initialize_i386obsd_nat): Call obsd_add_target instead of
10849         add_target.
10850         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10851
10852 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10853
10854         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10855
10856 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10857
10858         * mips64obsd-nat.c: Include "obsd-nath".
10859         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10860         add_target
10861         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10862
10863 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
10864
10865         * amd64obsd-nat.c: Include "obsd-nat,h.
10866         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10867         add_target.
10868         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10869
10870 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
10871
10872         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10873         (find_overload_match): Update call to find_oload_champ.
10874         (find_oload_champ_namespace_loop): Likewise
10875
10876 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
10877
10878         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10879
10880         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10881         * config/sparc/obsd64.mh: New file.
10882         * sparc64obsd-nat.c: New file.
10883
10884         * obsd-nat.h: New file.
10885         * obsd-nat.c: New file.
10886         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10887         (ALLDEPFILES): Add obsd-nat.c.
10888
10889 2014-02-28  Tom Tromey  <tromey@redhat.com>
10890
10891         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
10892         * cli-out.h (cli_ui_out_impl): Now const.
10893         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
10894         * ui-out.c (struct ui_out) <impl>: Now const.
10895         (default_ui_out_impl): Now const.
10896         (ui_out_new): Make 'impl' parameter const.
10897         * ui-out.h (ui_out_new): Update.
10898
10899 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
10900
10901         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10902
10903 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
10904
10905         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10906
10907 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
10908
10909         Additional PR 8882 fix.
10910         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10911
10912 2014-02-27  Pedro Alves  <palves@redhat.com>
10913
10914         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10915         isn't set.
10916
10917 2014-02-27  Pedro Alves  <palves@redhat.com>
10918
10919         PR 12702
10920         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10921         * nat/linux-waitpid.c: Include string.h.
10922         (status_to_str): Moved here and made extern.
10923         * nat/linux-waitpid.h (status_to_str): New declaration.
10924
10925 2014-02-27  Hui Zhu  <hui@codesourcery.com>
10926
10927         PR 12702
10928         * infrun.c (ptid_match): Move ...
10929         * common/ptid.c (ptid_match): ... here.
10930         * inferior.h (ptid_match): Move ...
10931         * common/ptid.h (ptid_match): ... here.
10932
10933 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
10934
10935         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10936         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10937         gdb_target_obs.
10938
10939 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
10940
10941         * obsd-tdep.c (obsd_auxv_parse): New function.
10942         (obsd_init_abi): Set auxv_parse.
10943
10944         * gdbarch.sh (auxv_parse): New.
10945         * gdbarch.h: Regenerated.
10946         * gdbarch.c: Regenerated.
10947         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10948
10949 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
10950
10951         * guile/scm-value.c (gdbscm_history_append_x): New function.
10952         (value_functions): Add it.
10953
10954 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
10955
10956         * dwarf2read.c (attr_value_as_address): New function.
10957         (dwarf2_find_base_address, read_call_site_scope): Use
10958         attr_value_as_address in place of DW_ADDR.
10959         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10960         the low and high addresses.  Slight rework of the handling
10961         of the high pc being a constant form, and limit it to
10962         DWARF verson 4 or higher.
10963         (dwarf2_record_block_ranges): Likewise.
10964         (read_partial_die): Likewise.
10965         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10966
10967 2014-02-26  Tom Tromey  <tromey@redhat.com>
10968
10969         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10970
10971 2014-02-26  Tom Tromey  <tromey@redhat.com>
10972
10973         * elfread.c (elf_read_minimal_symbols): Return early if
10974         minimal symbols have already been read.  Add "ei" parameter.
10975         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10976         * minsyms.c (prim_record_minimal_symbol_full): Update.
10977         * objfiles.h (struct objstats) <n_minsyms>: Move...
10978         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10979         * symmisc.c (print_objfile_statistics): Update.
10980
10981 2014-02-26  Tom Tromey  <tromey@redhat.com>
10982
10983         * elfread.c (elf_read_minimal_symbols): New function, from
10984         elf_symfile_read.
10985         (elf_symfile_read): Call it.
10986
10987 2014-02-26  Tom Tromey  <tromey@redhat.com>
10988
10989         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10990         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10991         (lookup_minimal_symbol_solib_trampoline)
10992         (lookup_minimal_symbol_by_pc_section_1)
10993         (lookup_minimal_symbol_and_objfile): Update.
10994         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10995         Don't allocate a minimal symbol if minsyms have already been read.
10996         (build_minimal_symbol_hash_tables): Update.
10997         (install_minimal_symbols): Do nothing if minsyms already read.
10998         Use the per-BFD obstack.
10999         (terminate_minimal_symbol_table): Use the per-BFD obstack.
11000         * objfiles.c (allocate_objfile): Call
11001         terminate_minimal_symbol_table later.
11002         (have_minimal_symbols): Update.
11003         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
11004         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
11005         Move from struct objfile.
11006         <minsyms_read>: New field.
11007         (struct objfile) <msymbols, minimal_symbol_count,
11008         msymbol_hash, msymbol_demangled_hash>: Move.
11009         (ALL_OBJFILE_MSYMBOLS): Update.
11010         * symfile.c (read_symbols): Set minsyms_read.
11011         (reread_symbols): Update.
11012         * symmisc.c (dump_objfile, dump_msymbols): Update.
11013
11014 2014-02-26  Tom Tromey  <tromey@redhat.com>
11015
11016         * minsyms.c (msymbols_sort): Remove.
11017         * minsyms.h (msymbols_sort): Remove.
11018         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
11019         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
11020         * elfread.c (elf_symtab_read): Don't add section offsets.
11021         * xcoffread.c (record_minimal_symbol): Don't add section offset
11022         to minimal symbol address.
11023         * somread.c (text_offset, data_offset): Remove.
11024         (som_symtab_read): Don't add section offsets to minimal symbol
11025         addresses.
11026         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
11027         Don't add section offsets to minimal symbols.
11028         * coffread.c (coff_symtab_read): Don't add section offsets
11029         to minimal symbol addresses.
11030         * machoread.c (macho_symtab_add_minsym): Don't add section offset
11031         to minimal symbol addresses.
11032         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
11033         section offset to minimal symbol addresses.
11034         * mdebugread.c (parse_partial_symbols): Don't add section
11035         offset to minimal symbol addresses.
11036         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
11037         offset to minimal symbol addresses.
11038
11039 2014-02-26  Tom Tromey  <tromey@redhat.com>
11040
11041         * ada-lang.c (ada_main_name): Update.
11042         (ada_add_standard_exceptions): Update.
11043         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
11044         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11045         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
11046         * auxv.c (ld_so_xfer_auxv): Update.
11047         * avr-tdep.c (avr_scan_prologue): Update.
11048         * ax-gdb.c (gen_var_ref): Update.
11049         * blockframe.c (get_pc_function_start)
11050         (find_pc_partial_function_gnu_ifunc): Update.
11051         * breakpoint.c (create_overlay_event_breakpoint)
11052         (create_longjmp_master_breakpoint)
11053         (create_std_terminate_master_breakpoint)
11054         (create_exception_master_breakpoint): Update.
11055         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11056         * c-valprint.c (c_val_print): Update.
11057         * coff-pe-read.c (add_pe_forwarded_sym): Update.
11058         * common/agent.c (agent_look_up_symbols): Update.
11059         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
11060         * dwarf2loc.c (call_site_to_target_addr): Update.
11061         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
11062         * elfread.c (elf_gnu_ifunc_record_cache)
11063         (elf_gnu_ifunc_resolve_by_got): Update.
11064         * findvar.c (default_read_var_value): Update.
11065         * frame.c (inside_main_func): Update.
11066         * frv-tdep.c (frv_frame_this_id): Update.
11067         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11068         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
11069         Update.
11070         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
11071         (hppa_hpux_find_dummy_bpaddr): Update.
11072         * hppa-tdep.c (hppa_symbol_address): Update.
11073         * infcmd.c (until_next_command): Update.
11074         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
11075         Update.
11076         * linespec.c (minsym_found, add_minsym): Update.
11077         * linux-nat.c (get_signo): Update.
11078         * linux-thread-db.c (inferior_has_bug): Update.
11079         * m32c-tdep.c (m32c_return_value)
11080         (m32c_m16c_address_to_pointer): Update.
11081         * m32r-tdep.c (m32r_frame_this_id): Update.
11082         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11083         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11084         * maint.c (maintenance_translate_address): Update.
11085         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
11086         (frob_address): New function.
11087         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
11088         frob_address.  Rename parameter to "pc_in".
11089         (compare_minimal_symbols, compact_minimal_symbols): Use raw
11090         addresses.
11091         (find_solib_trampoline_target, minimal_symbol_upper_bound):
11092         Update.
11093         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11094         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
11095         * objc-lang.c (find_objc_msgsend): Update.
11096         * objfiles.c (objfile_relocate1): Update.
11097         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11098         * p-valprint.c (pascal_val_print): Update.
11099         * parse.c (write_exp_msymbol): Update.
11100         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
11101         (ppc_elfv2_skip_entrypoint): Update.
11102         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11103         * printcmd.c (build_address_symbolic, msym_info)
11104         (address_info): Update.
11105         * proc-service.c (ps_pglobal_lookup): Update.
11106         * psymtab.c (find_pc_sect_psymtab_closer)
11107         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
11108         Change msymbol parameter to bound_minimal_symbol.
11109         * ravenscar-thread.c (get_running_thread_id): Update.
11110         * remote.c (remote_check_symbols): Update.
11111         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
11112         address.
11113         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11114         * solib-dsbt.c (lm_base): Update.
11115         * solib-frv.c (lm_base, main_got): Update.
11116         * solib-irix.c (locate_base): Update.
11117         * solib-som.c (som_solib_create_inferior_hook)
11118         (link_map_start): Update.
11119         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
11120         * solib-svr4.c (elf_locate_base, enable_break): Update.
11121         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
11122         (flush_ea_cache): Update.
11123         * stabsread.c (define_symbol, scan_file_globals): Update.
11124         * stack.c (find_frame_funname): Update.
11125         * symfile-debug.c (debug_qf_expand_symtabs_matching)
11126         (debug_qf_find_pc_sect_symtab): Update.
11127         * symfile.c (simple_read_overlay_table)
11128         (simple_overlay_update): Update.
11129         * symfile.h (struct quick_symbol_functions)
11130         <find_pc_sect_symtab>: Change type of msymbol to
11131         bound_minimal_symbol.
11132         * symmisc.c (dump_msymbols): Update.
11133         * symtab.c (find_pc_sect_symtab_via_partial)
11134         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
11135         (search_symbols, print_msymbol_info): Update.
11136         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
11137         (MSYMBOL_VALUE_ADDRESS): Redefine.
11138         (BMSYMBOL_VALUE_ADDRESS): New macro.
11139         * tracepoint.c (scope_info): Update.
11140         * tui/tui-disasm.c (tui_find_disassembly_address)
11141         (tui_get_begin_asm_address): Update.
11142         * valops.c (find_function_in_inferior): Update.
11143         * value.c (value_static_field, value_fn_field): Update.
11144
11145 2014-02-26  Tom Tromey  <tromey@redhat.com>
11146
11147         * ada-lang.c (ada_update_initial_language): Update.
11148         (ada_main_name, ada_has_this_exception_support): Update.
11149         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
11150         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11151         * arm-tdep.c (arm_skip_stub): Update.
11152         * auxv.c (ld_so_xfer_auxv): Update.
11153         * avr-tdep.c (avr_scan_prologue): Update.
11154         * ax-gdb.c (gen_var_ref): Update.
11155         * breakpoint.c (struct breakpoint_objfile_data)
11156         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
11157         type to bound_minimal_symbol.
11158         (create_overlay_event_breakpoint)
11159         (create_longjmp_master_breakpoint)
11160         (create_std_terminate_master_breakpoint)
11161         (create_exception_master_breakpoint): Update.
11162         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11163         * c-exp.y (classify_name): Update.
11164         * coffread.c (coff_symfile_read): Update.
11165         * common/agent.c (agent_look_up_symbols): Update.
11166         * d-lang.c (d_main_name): Update.
11167         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
11168         * dec-thread.c (enable_dec_thread): Update.
11169         * dwarf2loc.c (call_site_to_target_addr): Update.
11170         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
11171         * eval.c (evaluate_subexp_standard): Update.
11172         * findvar.c (struct minsym_lookup_data) <result>: Change type
11173         to bound_minimal_symbol.
11174         <objfile>: Remove.
11175         (minsym_lookup_iterator_cb, default_read_var_value): Update.
11176         * frame.c (inside_main_func): Update.
11177         * frv-tdep.c (frv_frame_this_id): Update.
11178         * gcore.c (call_target_sbrk): Update.
11179         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11180         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
11181         Update.
11182         * go-lang.c (go_main_name): Update.
11183         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
11184         (hppa_hpux_find_import_stub_for_addr): Update.
11185         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
11186         Update.  Change return type.
11187         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
11188         type.
11189         * jit.c (jit_breakpoint_re_set_internal): Update.
11190         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
11191         Update.
11192         * linux-nat.c (get_signo): Update.
11193         * linux-thread-db.c (inferior_has_bug): Update
11194         * m32c-tdep.c (m32c_return_value)
11195         (m32c_m16c_address_to_pointer): Update.
11196         * m32r-tdep.c (m32r_frame_this_id): Update.
11197         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11198         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11199         * minsyms.c (lookup_minimal_symbol_internal): Rename to
11200         lookup_minimal_symbol.  Change return type.
11201         (lookup_minimal_symbol): Remove.
11202         (lookup_bound_minimal_symbol): Update.
11203         (lookup_minimal_symbol_text): Change return type.
11204         (lookup_minimal_symbol_solib_trampoline): Change return type.
11205         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
11206         (lookup_minimal_symbol_solib_trampoline): Change return type.
11207         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11208         * objc-lang.c (lookup_objc_class, lookup_child_selector)
11209         (value_nsstring, find_imps): Update.
11210         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11211         * p-lang.c (pascal_main_name): Update.
11212         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
11213         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11214         * proc-service.c (ps_pglobal_lookup): Update.
11215         * ravenscar-thread.c (get_running_thread_msymbol): Change
11216         return type.
11217         (has_ravenscar_runtime, get_running_thread_id): Update.
11218         * remote.c (remote_check_symbols): Update.
11219         * sol-thread.c (ps_pglobal_lookup): Update.
11220         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11221         * solib-dsbt.c (lm_base): Update.
11222         * solib-frv.c (lm_base, frv_relocate_section_addresses):
11223         Update.
11224         * solib-irix.c (locate_base): Update.
11225         * solib-som.c (som_solib_create_inferior_hook)
11226         (som_solib_desire_dynamic_linker_symbols, link_map_start):
11227         Update.
11228         * solib-spu.c (spu_enable_break): Update.
11229         * solib-svr4.c (elf_locate_base, enable_break): Update.
11230         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
11231         (flush_ea_cache): Update.
11232         * stabsread.c (define_symbol): Update.
11233         * symfile.c (simple_read_overlay_table): Update.
11234         * symtab.c (find_pc_sect_line): Update.
11235         * tracepoint.c (scope_info): Update.
11236         * tui-disasm.c (tui_get_begin_asm_address): Update.
11237         * value.c (value_static_field): Update.
11238
11239 2014-02-26  Tom Tromey  <tromey@redhat.com>
11240
11241         * minsyms.c (prim_record_minimal_symbol_full): Use
11242         SET_MSYMBOL_VALUE_ADDRESS.
11243         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
11244         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
11245         SET_MSYMBOL_VALUE_ADDRESS.
11246         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
11247         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
11248
11249 2014-02-26  Tom Tromey  <tromey@redhat.com>
11250
11251         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
11252         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
11253         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
11254         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
11255         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
11256         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
11257         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
11258         * ada-lang.c (ada_main_name): Update.
11259         (ada_lookup_simple_minsym): Update.
11260         (ada_make_symbol_completion_list): Update.
11261         (ada_add_standard_exceptions): Update.
11262         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
11263         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
11264         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
11265         * arm-tdep.c (skip_prologue_function): Update.
11266         (arm_skip_stack_protector, arm_skip_stub): Update.
11267         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
11268         (arm_wince_skip_main_prologue): Update.
11269         * auxv.c (ld_so_xfer_auxv): Update.
11270         * avr-tdep.c (avr_scan_prologue): Update.
11271         * ax-gdb.c (gen_var_ref): Update.
11272         * block.c (call_site_for_pc): Update.
11273         * blockframe.c (get_pc_function_start): Update.
11274         (find_pc_partial_function_gnu_ifunc): Update.
11275         * breakpoint.c (create_overlay_event_breakpoint): Update.
11276         (create_longjmp_master_breakpoint): Update.
11277         (create_std_terminate_master_breakpoint): Update.
11278         (create_exception_master_breakpoint): Update.
11279         (resolve_sal_pc): Update.
11280         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
11281         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
11282         Update.
11283         * c-valprint.c (c_val_print): Update.
11284         * coff-pe-read.c (add_pe_forwarded_sym): Update.
11285         * coffread.c (coff_symfile_read): Update.
11286         * common/agent.c (agent_look_up_symbols): Update.
11287         * dbxread.c (find_stab_function_addr): Update.
11288         (end_psymtab): Update.
11289         * dwarf2loc.c (call_site_to_target_addr): Update.
11290         (func_verify_no_selftailcall): Update.
11291         (tailcall_dump): Update.
11292         (call_site_find_chain_1): Update.
11293         (dwarf_expr_reg_to_entry_parameter): Update.
11294         * elfread.c (elf_gnu_ifunc_record_cache): Update.
11295         (elf_gnu_ifunc_resolve_by_got): Update.
11296         * f-valprint.c (info_common_command): Update.
11297         * findvar.c (read_var_value): Update.
11298         * frame.c (get_prev_frame_1): Update.
11299         (inside_main_func): Update.
11300         * frv-tdep.c (frv_skip_main_prologue): Update.
11301         (frv_frame_this_id): Update.
11302         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
11303         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
11304         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
11305         (gnuv3_skip_trampoline): Update.
11306         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
11307         (hppa64_hpux_in_solib_call_trampoline): Update.
11308         (hppa_hpux_skip_trampoline_code): Update.
11309         (hppa64_hpux_search_dummy_call_sequence): Update.
11310         (hppa_hpux_find_import_stub_for_addr): Update.
11311         (hppa_hpux_find_dummy_bpaddr): Update.
11312         * hppa-tdep.c (hppa_symbol_address)
11313         (hppa_lookup_stub_minimal_symbol): Update.
11314         * i386-tdep.c (i386_skip_main_prologue): Update.
11315         (i386_pe_skip_trampoline_code): Update.
11316         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
11317         * infcall.c (get_function_name): Update.
11318         * infcmd.c (until_next_command): Update.
11319         * jit.c (jit_breakpoint_re_set_internal): Update.
11320         (jit_inferior_init): Update.
11321         * linespec.c (minsym_found): Update.
11322         (add_minsym): Update.
11323         * linux-fork.c (info_checkpoints_command): Update.
11324         * linux-nat.c (get_signo): Update.
11325         * linux-thread-db.c (inferior_has_bug): Update.
11326         * m32c-tdep.c (m32c_return_value): Update.
11327         (m32c_m16c_address_to_pointer): Update.
11328         (m32c_m16c_pointer_to_address): Update.
11329         * m32r-tdep.c (m32r_frame_this_id): Update.
11330         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
11331         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
11332         * maint.c (maintenance_translate_address): Update.
11333         * minsyms.c (add_minsym_to_hash_table): Update.
11334         (add_minsym_to_demangled_hash_table): Update.
11335         (msymbol_objfile): Update.
11336         (lookup_minimal_symbol): Update.
11337         (iterate_over_minimal_symbols): Update.
11338         (lookup_minimal_symbol_text): Update.
11339         (lookup_minimal_symbol_by_pc_name): Update.
11340         (lookup_minimal_symbol_solib_trampoline): Update.
11341         (lookup_minimal_symbol_by_pc_section_1): Update.
11342         (lookup_minimal_symbol_and_objfile): Update.
11343         (prim_record_minimal_symbol_full): Update.
11344         (compare_minimal_symbols): Update.
11345         (compact_minimal_symbols): Update.
11346         (build_minimal_symbol_hash_tables): Update.
11347         (install_minimal_symbols): Update.
11348         (terminate_minimal_symbol_table): Update.
11349         (find_solib_trampoline_target): Update.
11350         (minimal_symbol_upper_bound): Update.
11351         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
11352         * mips-tdep.c (mips_stub_frame_sniffer): Update.
11353         (mips_skip_pic_trampoline_code): Update.
11354         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
11355         * objc-lang.c (selectors_info): Update.
11356         (classes_info): Update.
11357         (find_methods): Update.
11358         (find_imps): Update.
11359         (find_objc_msgsend): Update.
11360         * objfiles.c (objfile_relocate1): Update.
11361         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
11362         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
11363         * p-valprint.c (pascal_val_print): Update.
11364         * parse.c (write_exp_msymbol): Update.
11365         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
11366         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
11367         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
11368         * printcmd.c (build_address_symbolic): Update.
11369         (sym_info): Update.
11370         (address_info): Update.
11371         * proc-service.c (ps_pglobal_lookup): Update.
11372         * psymtab.c (find_pc_sect_psymtab_closer): Update.
11373         (find_pc_sect_psymtab): Update.
11374         * python/py-framefilter.c (py_print_frame): Update.
11375         * ravenscar-thread.c (get_running_thread_id): Update.
11376         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
11377         Update.
11378         * remote.c (remote_check_symbols): Update.
11379         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
11380         (rs6000_skip_trampoline_code): Update.
11381         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
11382         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
11383         * solib-dsbt.c (lm_base): Update.
11384         * solib-frv.c (lm_base): Update.
11385         (main_got): Update.
11386         * solib-irix.c (locate_base): Update.
11387         * solib-som.c (som_solib_create_inferior_hook): Update.
11388         (som_solib_desire_dynamic_linker_symbols): Update.
11389         (link_map_start): Update.
11390         * solib-spu.c (spu_enable_break): Update.
11391         (ocl_enable_break): Update.
11392         * solib-svr4.c (elf_locate_base): Update.
11393         (enable_break): Update.
11394         * spu-tdep.c (spu_get_overlay_table): Update.
11395         (spu_catch_start): Update.
11396         (flush_ea_cache): Update.
11397         * stabsread.c (define_symbol): Update.
11398         (scan_file_globals): Update.
11399         * stack.c (find_frame_funname): Update.
11400         (frame_info): Update.
11401         * symfile.c (simple_read_overlay_table): Update.
11402         (simple_overlay_update): Update.
11403         * symmisc.c (dump_msymbols): Update.
11404         * symtab.c (fixup_section): Update.
11405         (find_pc_sect_line): Update.
11406         (skip_prologue_sal): Update.
11407         (search_symbols): Update.
11408         (print_msymbol_info): Update.
11409         (rbreak_command): Update.
11410         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
11411         (completion_list_objc_symbol): Update.
11412         (default_make_symbol_completion_list_break_on): Update.
11413         * tracepoint.c (scope_info): Update.
11414         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
11415         (tui_get_begin_asm_address): Update.
11416         * valops.c (find_function_in_inferior): Update.
11417         * value.c (value_static_field): Update.
11418         (value_fn_field): Update.
11419
11420 2014-02-26  Tom Tromey  <tromey@redhat.com>
11421
11422         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
11423         bound minimal symbols.  Move code that knows about minsym
11424         table layout...
11425         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
11426         function.
11427         * minsyms.h (minimal_symbol_upper_bound): Declare.
11428         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
11429         minimal_symbol_upper_bound.
11430
11431 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
11432
11433         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
11434         Use the type's name if its basic type does not have a tag.
11435
11436 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
11437
11438         * dwarf2read.c (read_subrange_type): Add comment.
11439
11440 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
11441
11442         * dwarf2read.c (update_enumeration_type_from_children): New
11443         function, mostly extracted from process_structure_scope.
11444         (read_enumeration_type): Call update_enumeration_type_from_children.
11445         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
11446         and flag_flag_enum fields.
11447
11448 2014-02-26  Pedro Alves  <palves@redhat.com>
11449
11450         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
11451         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
11452         to_xfer_partial method.
11453
11454 2014-02-26  Pedro Alves  <palves@redhat.com>
11455
11456         * target.c (complete_target_initialization): Don't install
11457         default_xfer_partial as to_xfer_partial hook.
11458         (nomemory): Delete.
11459         (update_current_target): Don't INHERIT nor de_fault
11460         deprecated_xfer_memory.  Delete de_fault macro.
11461         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
11462         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
11463         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
11464         field.
11465
11466 2014-02-26  Pedro Alves  <palves@redhat.com>
11467
11468         * go32-nat.c (my_write_child): New function.
11469         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
11470         (go32_xfer_partial): New function.
11471         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
11472         Instead install a to_xfer_partial hook.
11473
11474 2014-02-26  Pedro Alves  <palves@redhat.com>
11475
11476         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
11477         to_xfer_partial helper.  Rewrite.
11478         (procfs_xfer_partial): New function.
11479         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
11480         Install a to_xfer_partial hook.
11481
11482 2014-02-26  Pedro Alves  <palves@redhat.com>
11483
11484         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
11485         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
11486         (m32r_xfer_partial): New function.
11487         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
11488         Install a to_xfer_partial hook.
11489
11490 2014-02-26  Pedro Alves  <palves@redhat.com>
11491
11492         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
11493         helper.
11494         (mips_xfer_partial): New function.
11495         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
11496         hook.  Install a to_xfer_partial hook.
11497
11498 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
11499
11500         * gdbtypes.h (create_array_type_with_stride): Add declaration.
11501         * gdbtypes.c (create_array_type_with_stride): New function,
11502         renaming create_array_type, but with an added parameter
11503         called "bit_stride".
11504         (create_array_type): Re-implement using
11505         create_array_type_with_stride.
11506         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
11507         and DW_AT_bit_stride attributes.
11508
11509 2014-02-26  Pedro Alves  <palves@redhat.com>
11510
11511         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
11512         task-specific breakpoints.
11513
11514 2014-02-25  Pedro Alves  <palves@redhat.com>
11515
11516         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
11517         handling of object == TARGET_OBJECT_UNWIND_TABLE.
11518
11519 2014-02-25  Stan Shebs  <stan@codesourcery.com>
11520
11521         * defs.h: Annotate comments for Doxygen.
11522
11523 2014-02-25  Tom Tromey  <tromey@redhat.com>
11524
11525         * target.h (target_ignore): Don't declare.
11526         * target.c (target_ignore): Remove.
11527
11528 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
11529
11530         PR gdb/16626
11531         * auto-load.c (auto_load_objfile_script_1): Change filename to
11532         debugfile.
11533
11534 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
11535
11536         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
11537         documentation.  Adjust prototype to match the target_ops
11538         to_xfer_partial method.  Adjust implementation accordingly.
11539
11540 2014-02-25  Hui Zhu  <hui@codesourcery.com>
11541
11542         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
11543         to_traceframe_info.
11544
11545 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
11546
11547         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
11548         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
11549         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
11550         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
11551         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
11552         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
11553         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
11554         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
11555         New constants.
11556         (rl78_register_type): Use a data pointer type for SP and
11557         new pseudo registers mentioned above.  Use a 16 bit integer
11558         type for all other register pairs.
11559         (rl78_register_name, rl78_g10_register_name): Update for
11560         new pseudo registers.
11561         (rl78_pseudo_register_read): Likewise.
11562         (rl78_pseudo_register_write): Likewise.
11563         (rl78_dwarf_reg_to_regnum): Return register numbers representing
11564         to the newly added pseudo registers.
11565
11566 2014-02-24  Doug Evans  <dje@google.com>
11567
11568         * value.c (record_latest_value): Fix comment.
11569         * printcmd.c (print_command_1): Remove code to handle -1 return from
11570         record_latest_value.
11571
11572 2014-02-24  Pedro Alves  <palves@redhat.com>
11573
11574         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
11575         deprecated_xfer_memory hook.
11576         (procfs_xfer_partial): Call procfs_xfer_memory instead
11577         of the deprecated_xfer_memory target hook.
11578         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
11579         helper.
11580
11581 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
11582
11583         * windows-nat.c (windows_xfer_shared_libraries): Return
11584         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
11585         requested object is TARGET_OBJECT_LIBRARIES.
11586
11587 2014-02-24  Yao Qi  <yao@codesourcery.com>
11588
11589         * target.h (enum target_xfer_status)
11590         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
11591         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
11592         explicitly.  New.
11593         * corefile.c (memory_error_message): User updated.
11594         * exec.c (section_table_read_available_memory): Likewise.
11595         * record-btrace.c (record_btrace_xfer_partial): Likewise.
11596         * target.c (target_xfer_status_to_string): Likewise.
11597         (raw_memory_xfer_partial): Likewise.
11598         (memory_xfer_partial_1, target_xfer_partial): Likewise.
11599         * valops.c (read_value_memory): Likewise.
11600         * exec.h: Update comments.
11601
11602 2014-02-24  Yao Qi  <yao@codesourcery.com>
11603
11604         * target.c (target_xfer_status_to_string): Rename argument err
11605         to status.
11606         * target.h (target_xfer_status_to_string): Update declaration.
11607         Replace target_xfer_error_to_string with
11608         target_xfer_status_to_string in comment.
11609
11610 2014-02-24  Yao Qi  <yao@codesourcery.com>
11611
11612         * mips-linux-nat.c (super_close): Update its type.
11613         (mips_linux_close): Pass 'self' to super_close.
11614
11615 2014-02-24  Yao Qi  <yao@codesourcery.com>
11616
11617         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
11618         * corefile.c (read_memory): Adjusted.
11619         * target.c (target_write_with_progress): Adjusted.
11620
11621 2014-02-23  Yao Qi  <yao@codesourcery.com>
11622
11623         Revert two patches:
11624
11625         2013-10-25  Yao Qi  <yao@codesourcery.com>
11626
11627         * remote.c (remote_traceframe_info): Return early if
11628         traceframe is not selected.
11629
11630         2013-07-19  Yao Qi  <yao@codesourcery.com>
11631
11632         * target.c (update_current_target): Change the default action
11633         of 'to_traceframe_info' from tcomplain to return_zero.
11634         * target.h (struct target_ops) <to_traceframe_info>: Add more
11635         comments.
11636
11637 2014-02-23  Yao Qi  <yao@codesourcery.com>
11638
11639         * valops.c (read_value_memory): Rewrite it.  Call
11640         target_xfer_partial in a loop.
11641         * exec.h (section_table_available_memory): Remove declaration.
11642         Move comments to ...
11643         * exec.c (section_table_available_memory): ... here.  Make it
11644         static.
11645
11646 2014-02-23  Yao Qi  <yao@codesourcery.com>
11647
11648         * exec.c (section_table_read_available_memory): New function.
11649         * exec.h (section_table_read_available_memory): Declare.
11650         * ctf.c (ctf_xfer_partial): Call
11651         section_table_read_available_memory.
11652         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11653
11654 2014-02-23  Yao Qi  <yao@codesourcery.com>
11655
11656         * ctf.c (ctf_xfer_partial): Move code to ...
11657         * exec.c (exec_read_partial_read_only): ... it.  New function.
11658         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
11659         * tracefile.c: Include "exec.h".
11660         * exec.h (exec_read_partial_read_only): Declare.
11661
11662 2014-02-23  Yao Qi  <yao@codesourcery.com>
11663
11664         * tracefile-tfile.c (tfile_has_all_memory): Remove.
11665         (tfile_has_memory): Remove.
11666         (init_tfile_ops): Don't set fields to_has_all_memory and
11667         to_has_memory of tfile_ops.
11668         * tracefile.c (tracefile_has_all_memory): New function.
11669         (tracefile_has_memory): New function.
11670         (init_tracefile_ops): Initialize fields to_has_all_memory and
11671         to_has_memory of 'ops'.
11672
11673 2014-02-23  Yao Qi  <yao@codesourcery.com>
11674
11675         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
11676         (ctf_thread_alive, ctf_get_trace_status): Remove.
11677         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
11678         init_tracefile_ops.
11679         * tracefile-tfile.c (tfile_get_trace_status): Remove.
11680         (tfile_has_stack, tfile_has_registers): Remove.
11681         (tfile_thread_alive): Remove.
11682         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
11683         init_tracefile_ops.
11684         * tracefile.c (tracefile_has_stack): New function.
11685         (tracefile_has_registers): New function.
11686         (tracefile_thread_alive): New function.
11687         (tracefile_get_trace_status): New function.
11688         (init_tracefile_ops): New function.
11689         * tracefile.h (init_tracefile_ops): Declare.
11690
11691 2014-02-23  Yao Qi  <yao@codesourcery.com>
11692
11693         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
11694         (O_LARGEFILE): Likewise.
11695         (tfile_ops): Likewise.
11696         (TRACE_HEADER_SIZE): Likewise.
11697         (trace_fd, trace_frames_offset, cur_offset): Likewise.
11698         (cur_data_size): Likewise.
11699         (tfile_read, tfile_open, tfile_interp_line): Likewise.
11700         (tfile_close, tfile_files_info): Likewise.
11701         (tfile_get_trace_status): Likewise.
11702         (tfile_get_tracepoint_status): Likewise.
11703         (tfile_get_traceframe_address): Likewise.
11704         (tfile_trace_find, match_blocktype): Likewise.
11705         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
11706         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
11707         (tfile_get_trace_state_variable_value): Likewise.
11708         (tfile_has_all_memory, tfile_has_memory): Likewise.
11709         (tfile_has_stack, tfile_has_registers): Likewise.
11710         (tfile_thread_alive, build_traceframe_info): Likewise.
11711         (tfile_traceframe_info, init_tfile_ops): Likewise.
11712         (_initialize_tracepoint): Don't call init_tfile_ops
11713         and add_target_with_completer.
11714         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
11715         exec.h, completer.h and filenames.h.
11716         (_initialize_tracefile_tfile): New function.
11717
11718 2014-02-23  Yao Qi  <yao@codesourcery.com>
11719
11720         * Makefile.in (REMOTE_OBS): Append tracefile.o and
11721         tracefile-tfile.o.
11722         (HFILES_NO_SRCDIR): Add tracefile.h.
11723         * ctf.c: Include "tracefile.h".
11724         * tracefile.h: New file.
11725         * tracefile.c: New file
11726         * tracefile-tfile.c: New file.
11727         * tracepoint.c: Include "tracefile.h".
11728         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
11729         (stop_reason_names): Add const.
11730         (trace_file_writer_xfree): Move it to tracefile.c.
11731         (trace_save, trace_save_command, trace_save_tfile): Likewise.
11732         (trace_save_ctf): Likewise.
11733         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
11734         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
11735         (tfile_write_header, tfile_write_regblock_type): Likewise.
11736         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
11737         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
11738         (tfile_write_raw_data, tfile_end): Likewise.
11739         (tfile_trace_file_writer_new): Likewise.
11740         (free_uploaded_tp): Make it extern.
11741         (free_uploaded_tsv): Make it extern.
11742         (_initialize_tracepoint): Move code to register command 'tsave'
11743         to tracefile.c.
11744         * tracepoint.h (stop_reason_names): Declare.
11745         (struct trace_frame_write_ops): Move it to tracefile.h.
11746         (struct trace_file_write_ops): Likewise.
11747         (struct trace_file_writer): Likewise.
11748         (free_uploaded_tsvs, free_uploaded_tps): Declare.
11749
11750 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
11751
11752         PR gdb/16594
11753         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
11754         process name.
11755         (get_cores_used_by_process): New parameter num_cores, use it.
11756         (linux_xfer_osdata_processes): Pass num_cores to it.
11757         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
11758         process name.
11759
11760 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
11761
11762         * target.c (memory_xfer_partial): Fix length arg in call to
11763         breakpoint_xfer_memory.
11764
11765 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
11766
11767         PR tdep/16397
11768         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
11769         number comes after the + or - signs.  Adjust length of register
11770         name to be extracted.
11771
11772 2014-02-20  Tom Tromey  <tromey@redhat.com>
11773
11774         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
11775         (ada_varobj_ops): Mark "extern".
11776
11777 2014-02-20  Tom Tromey  <tromey@redhat.com>
11778
11779         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
11780
11781 2014-02-20  Doug Evans  <xdje42@gmail.com>
11782
11783         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
11784         All callers updated.
11785         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
11786         All callers updated.
11787         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
11788         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
11789
11790 2014-02-20  lin zuojian  <manjian2006@gmail.com>
11791             Joel Brobecker  <brobecker@adacore.com>
11792             Doug Evans  <xdje42@gmail.com>
11793
11794         PR symtab/16581
11795         * dwarf2read.c (struct die_info): New member in_process.
11796         (reset_die_in_process): New function.
11797         (process_die): Set it at the start, reset when returning.
11798         (inherit_abstract_dies): Only call process_die if origin_child_die
11799         not already being processed.
11800
11801 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11802
11803         * windows-nat.c (handle_unload_dll): Add function documentation.
11804         (do_initial_windows_stuff): Add comment explaining why we wait
11805         until after inferior initialization has finished before
11806         processing all DLLs.
11807
11808 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11809
11810         * windows-nat.c (get_module_name): Delete.
11811         (windows_get_exec_module_filename): New function, mostly
11812         inspired from get_module_name.
11813         (windows_pid_to_exec_file): Replace call to get_module_name
11814         by call to windows_get_exec_module_filename.
11815
11816 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11817
11818         * windows-nat.c (handle_load_dll): Rewrite this function's
11819         introductory comment.  Remove code using get_module_name
11820         to get the DLL's name.
11821
11822 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11823
11824         * windows-nat.c (get_windows_debug_event): Ignore
11825         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11826         if windows_initialization_done == 0.
11827         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11828         Adjust implementation to always load all DLLs.
11829         (do_initial_windows_stuff): Replace call to
11830         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11831
11832 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11833
11834         * windows-nat.c (_initialize_windows_nat): Deprecate the
11835         "dll-symbols" command.  Turn the "add-shared-symbol-files"
11836         and "assf" aliases into commands, and deprecate them as well.
11837         * NEWS: Add entry explaining that "dll-symbols" and its two
11838         aliases are now deprecated.
11839
11840 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
11841
11842         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11843         new-line in debug string.  Remove trailing spaces.
11844
11845 2014-02-19  Stan Shebs  <stan@codesourcery.com>
11846
11847         * darwin-nat.c (darwin_xfer_partial): Fix return type.
11848
11849 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
11850
11851         * NEWS: Add entry for the new feature
11852         * python/py-value.c (valpy_binop): Call value_x_binop for struct
11853         and class values.
11854
11855 2014-02-19  Stan Shebs  <stan@codesourcery.com>
11856
11857         * MAINTAINERS: List Yao Qi as nios2 maintainer.
11858
11859 2014-02-19  Pedro Alves  <palves@redhat.com>
11860
11861         * common/ptid.h (struct ptid): Mention that process_stratum
11862         targets should prefer ptid.lwp.
11863
11864 2014-02-19  Pedro Alves  <palves@redhat.com>
11865
11866         * remote.c (remote_thread_alive, write_ptid, read_ptid)
11867         (read_ptid, remote_newthread_step, remote_threads_extra_info)
11868         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11869         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11870         store remote thread ids rather than ptid.tid.
11871         (_initialize_remote): Adjust.
11872
11873 2014-02-19  Tom Tromey  <tromey@redhat.com>
11874
11875         * target.c (target_get_unwinder): Rewrite.
11876         (target_get_tailcall_unwinder): Rewrite.
11877         * record-btrace.c (record_btrace_to_get_unwinder): New function.
11878         (record_btrace_to_get_tailcall_unwinder): New function.
11879         (init_record_btrace_ops): Update.
11880         * target.h (struct target_ops) <to_get_unwinder,
11881         to_get_tailcall_unwinder>: Now function pointers.  Use
11882         TARGET_DEFAULT_RETURN.
11883
11884 2014-02-19  Tom Tromey  <tromey@redhat.com>
11885
11886         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11887         argument.
11888         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11889
11890 2014-02-19  Tom Tromey  <tromey@redhat.com>
11891
11892         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11893         directly.
11894         * target-delegates.c: Rebuild.
11895         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11896         TARGET_DEFAULT_FUNC.
11897         * target.c (default_target_decr_pc_after_break): Rename from
11898         forward_target_decr_pc_after_break.  Simplify.
11899         (target_decr_pc_after_break): Rely on delegation.
11900
11901 2014-02-19  Tom Tromey  <tromey@redhat.com>
11902
11903         * target.c (update_current_target): Do not INHERIT to_doc or
11904         to_magic.  Do not de_fault to_open or to_close.
11905
11906 2014-02-19  Tom Tromey  <tromey@redhat.com>
11907
11908         * gcore.h (objfile_find_memory_regions): Declare.
11909         * gcore.c (objfile_find_memory_regions): No longer static.  Add
11910         "self" argument.
11911         (_initialize_gcore): Don't call exec_set_find_memory_regions.
11912         * exec.c: Include gcore.h.
11913         (exec_set_find_memory_regions): Remove.
11914         (exec_find_memory_regions): Remove.
11915         (exec_do_find_memory_regions): Remove.
11916         (init_exec_ops): Update.
11917         * defs.h (exec_set_find_memory_regions): Remove.
11918
11919 2014-02-19  Tom Tromey  <tromey@redhat.com>
11920
11921         * target-delegates.c: Rebuild.
11922         * target.h (struct target_ops) <to_extra_thread_info,
11923         to_thread_name, to_pid_to_exec_file, to_get_section_table,
11924         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11925         not 0, in TARGET_DEFAULT_RETURN.
11926
11927 2014-02-19  Tom Tromey  <tromey@redhat.com>
11928
11929         * target.c (complete_target_initialization): Remove casts.  Use
11930         return_zero_has_execution.
11931         (return_zero): Add "ignore" argument.
11932         (return_zero_has_execution): New function.
11933         (init_dummy_target): Remove casts.  Use
11934         return_zero_has_execution.
11935
11936 2014-02-19  Tom Tromey  <tromey@redhat.com>
11937
11938         * target.c (update_current_target): Update comments.  Do not
11939         INHERIT to_stratum.
11940
11941 2014-02-19  Tom Tromey  <tromey@redhat.com>
11942
11943         * arm-linux-nat.c (arm_linux_read_description): Delegate when
11944         needed.
11945         * corelow.c (core_read_description): Delegate when needed.
11946         * remote.c (remote_read_description): Delegate when needed.
11947         * target-delegates.c: Rebuild.
11948         * target.c (target_read_description): Rewrite.
11949         * target.h (struct target_ops) <to_read_description>: Update
11950         comment.  Use TARGET_DEFAULT_RETURN.
11951
11952 2014-02-19  Tom Tromey  <tromey@redhat.com>
11953
11954         * target-delegates.c: Rebuild.
11955         * target.c (update_current_target): Don't inherit or default
11956         to_can_run.
11957         (find_default_run_target): Check against delegate_can_run.
11958         * target.h (struct target_ops) <to_can_run>: Use
11959         TARGET_DEFAULT_RETURN.
11960
11961 2014-02-19  Tom Tromey  <tromey@redhat.com>
11962
11963         * target-delegates.c: Rebuild.
11964         * target.c (target_disconnect): Unconditionally delegate.
11965         * target.h (struct target_ops) <to_disconnect>: Use
11966         TARGET_DEFAULT_NORETURN.
11967
11968 2014-02-19  Tom Tromey  <tromey@redhat.com>
11969
11970         * record.c (record_stop): Unconditionally delegate.
11971         * target-delegates.c: Rebuild.
11972         * target.c (target_stop_recording): Unconditionally delegate.
11973         * target.h (struct target_ops) <to_stop_recording>: Use
11974         TARGET_DEFAULT_IGNORE.
11975
11976 2014-02-19  Tom Tromey  <tromey@redhat.com>
11977
11978         * target-delegates.c: Rebuild.
11979         * target.c (target_enable_btrace): Unconditionally delegate.
11980         * target.h (struct target_ops) <to_enable_btrace>: Use
11981         TARGET_DEFAULT_NORETURN.
11982
11983 2014-02-19  Tom Tromey  <tromey@redhat.com>
11984
11985         * target-delegates.c: Rebuild.
11986         * target.c (target_read_btrace): Unconditionally delegate.
11987         * target.h (struct target_ops) <to_read_btrace>: Use
11988         TARGET_DEFAULT_NORETURN.
11989
11990 2014-02-19  Tom Tromey  <tromey@redhat.com>
11991
11992         * target-delegates.c: Rebuild.
11993         * target.c (target_teardown_btrace): Unconditionally delegate.
11994         * target.h (struct target_ops) <to_teardown_btrace>: Use
11995         TARGET_DEFAULT_NORETURN.
11996
11997 2014-02-19  Tom Tromey  <tromey@redhat.com>
11998
11999         * target-delegates.c: Rebuild.
12000         * target.c (target_disable_btrace): Unconditionally delegate.
12001         * target.h (struct target_ops) <to_disable_btrace>: Use
12002         TARGET_DEFAULT_NORETURN.
12003
12004 2014-02-19  Tom Tromey  <tromey@redhat.com>
12005
12006         * target-delegates.c: Rebuild.
12007         * target.c (default_search_memory): New function.
12008         (simple_search_memory): Update comment.
12009         (target_search_memory): Unconditionally delegate.
12010         * target.h (struct target_ops) <to_search_memory>: Use
12011         TARGET_DEFAULT_FUNC.
12012
12013 2014-02-19  Tom Tromey  <tromey@redhat.com>
12014
12015         * auxv.c (default_auxv_parse): No longer static.
12016         (target_auxv_parse): Unconditionally delegate.
12017         * auxv.h (default_auxv_parse): Declare.
12018         * target-delegates.c: Rebuild.
12019         * target.c: Include auxv.h.
12020         * target.h (struct target_ops) <to_auxv_parse>: Use
12021         TARGET_DEFAULT_FUNC.
12022
12023 2014-02-19  Tom Tromey  <tromey@redhat.com>
12024
12025         * target-delegates.c: Rebuild.
12026         * target.c (target_memory_map): Unconditionally delegate.
12027         * target.h (struct target_ops) <to_memory_map>: Use
12028         TARGET_DEFAULT_RETURN.
12029
12030 2014-02-19  Tom Tromey  <tromey@redhat.com>
12031
12032         * target-delegates.c: Rebuild.
12033         * target.c (target_thread_alive): Unconditionally delegate.
12034         * target.h (struct target_ops) <to_thread_alive>: Use
12035         TARGET_DEFAULT_RETURN.
12036
12037 2014-02-19  Tom Tromey  <tromey@redhat.com>
12038
12039         * target-delegates.c: Rebuild.
12040         * target.c (target_save_record): Unconditionally delegate.
12041         * target.h (struct target_ops) <to_save_record>: Use
12042         TARGET_DEFAULT_NORETURN.
12043
12044 2014-02-19  Tom Tromey  <tromey@redhat.com>
12045
12046         * target-delegates.c: Rebuild.
12047         * target.c (target_delete_record): Unconditionally delegate.
12048         * target.h (struct target_ops) <to_delete_record>: Use
12049         TARGET_DEFAULT_NORETURN.
12050
12051 2014-02-19  Tom Tromey  <tromey@redhat.com>
12052
12053         * target-delegates.c: Rebuild.
12054         * target.c (target_record_is_replaying): Unconditionally
12055         delegate.
12056         * target.h (struct target_ops) <to_record_is_replaying>: Use
12057         TARGET_DEFAULT_RETURN.
12058
12059 2014-02-19  Tom Tromey  <tromey@redhat.com>
12060
12061         * target-delegates.c: Rebuild.
12062         * target.c (target_goto_record_begin): Unconditionally delegate.
12063         * target.h (struct target_ops) <to_goto_record_begin>: Use
12064         TARGET_DEFAULT_NORETURN.
12065
12066 2014-02-19  Tom Tromey  <tromey@redhat.com>
12067
12068         * target-delegates.c: Rebuild.
12069         * target.c (target_goto_record_end): Unconditionally delegate.
12070         * target.h (struct target_ops) <to_goto_record_end>: Use
12071         TARGET_DEFAULT_NORETURN.
12072
12073 2014-02-19  Tom Tromey  <tromey@redhat.com>
12074
12075         * target-delegates.c: Rebuild.
12076         * target.c (target_goto_record): Unconditionally delegate.
12077         * target.h (struct target_ops) <to_goto_record>: Use
12078         TARGET_DEFAULT_NORETURN.
12079
12080 2014-02-19  Tom Tromey  <tromey@redhat.com>
12081
12082         * target-delegates.c: Rebuild.
12083         * target.c (target_insn_history): Unconditionally delegate.
12084         * target.h (struct target_ops) <to_insn_history>: Use
12085         TARGET_DEFAULT_NORETURN.
12086
12087 2014-02-19  Tom Tromey  <tromey@redhat.com>
12088
12089         * target-delegates.c: Rebuild.
12090         * target.c (target_insn_history_from): Unconditionally delegate.
12091         * target.h (struct target_ops) <to_insn_history_from>: Use
12092         TARGET_DEFAULT_NORETURN.
12093
12094 2014-02-19  Tom Tromey  <tromey@redhat.com>
12095
12096         * target-delegates.c: Rebuild.
12097         * target.c (target_insn_history_range): Unconditionally delegate.
12098         * target.h (struct target_ops) <to_insn_history_range>: Use
12099         TARGET_DEFAULT_NORETURN.
12100
12101 2014-02-19  Tom Tromey  <tromey@redhat.com>
12102
12103         * target-delegates.c: Rebuild.
12104         * target.c (target_call_history): Unconditionally delegate.
12105         * target.h (struct target_ops) <to_call_history>: Use
12106         TARGET_DEFAULT_NORETURN.
12107
12108 2014-02-19  Tom Tromey  <tromey@redhat.com>
12109
12110         * target-delegates.c: Rebuild.
12111         * target.c (target_call_history_from): Unconditionally delegate.
12112         * target.h (struct target_ops) <to_call_history_from>: Use
12113         TARGET_DEFAULT_NORETURN.
12114
12115 2014-02-19  Tom Tromey  <tromey@redhat.com>
12116
12117         * target-delegates.c: Rebuild.
12118         * target.c (target_call_history_range): Unconditionally delegate.
12119         * target.h (struct target_ops) <to_call_history_range>: Use
12120         TARGET_DEFAULT_NORETURN.
12121
12122 2014-02-19  Tom Tromey  <tromey@redhat.com>
12123
12124         * target-delegates.c: Rebuild.
12125         * target.c (target_verify_memory): Unconditionally delegate.
12126         * target.h (struct target_ops) <to_verify_memory>: Use
12127         TARGET_DEFAULT_NORETURN.
12128
12129 2014-02-19  Tom Tromey  <tromey@redhat.com>
12130
12131         * target-delegates.c: Rebuild.
12132         * target.c (target_core_of_thread): Unconditionally delegate.
12133         * target.h (struct target_ops) <to_core_of_thread>: Use
12134         TARGET_DEFAULT_RETURN.
12135
12136 2014-02-19  Tom Tromey  <tromey@redhat.com>
12137
12138         * target-delegates.c: Rebuild.
12139         * target.c (target_flash_done): Unconditionally delegate.
12140         * target.h (struct target_ops) <to_flash_done>: Use
12141         TARGET_DEFAULT_NORETURN.
12142
12143 2014-02-19  Tom Tromey  <tromey@redhat.com>
12144
12145         * target-delegates.c: Rebuild.
12146         * target.c (target_flash_erase): Unconditionally delegate.
12147         * target.h (struct target_ops) <to_flash_erase>: Use
12148         TARGET_DEFAULT_NORETURN.
12149
12150 2014-02-19  Tom Tromey  <tromey@redhat.com>
12151
12152         * target-delegates.c: Rebuild.
12153         * target.c (target_get_section_table): Unconditionally delegate.
12154         * target.h (struct target_ops) <to_get_section_table>: Use
12155         TARGET_DEFAULT_RETURN.
12156
12157 2014-02-19  Tom Tromey  <tromey@redhat.com>
12158
12159         * target-delegates.c: Rebuild.
12160         * target.c (target_pid_to_str): Unconditionally delegate.
12161         (init_dummy_target): Don't initialize to_pid_to_str.
12162         (default_pid_to_str): Rename from dummy_pid_to_str.
12163         * target.h (struct target_ops) <to_pid_to_str>: Use
12164         TARGET_DEFAULT_FUNC.
12165
12166 2014-02-19  Tom Tromey  <tromey@redhat.com>
12167
12168         * target-delegates.c: Rebuild.
12169         * target.c (target_find_new_threads): Unconditionally delegate.
12170         * target.h (struct target_ops) <to_find_new_threads>: Use
12171         TARGET_DEFAULT_RETURN.
12172
12173 2014-02-19  Tom Tromey  <tromey@redhat.com>
12174
12175         * target-delegates.c: Rebuild.
12176         * target.c (target_program_signals): Unconditionally delegate.
12177         * target.h (struct target_ops) <to_program_signals>: Use
12178         TARGET_DEFAULT_IGNORE.
12179
12180 2014-02-19  Tom Tromey  <tromey@redhat.com>
12181
12182         * target-delegates.c: Rebuild.
12183         * target.c (target_pass_signals): Unconditionally delegate.
12184         * target.h (struct target_ops) <to_pass_signals>: Use
12185         TARGET_DEFAULT_IGNORE.
12186
12187 2014-02-19  Tom Tromey  <tromey@redhat.com>
12188
12189         * target-delegates.c: Rebuild.
12190         * target.c (default_mourn_inferior): New function.
12191         (target_mourn_inferior): Unconditionally delegate.
12192         * target.h (struct target_ops) <to_mourn_inferior>: Use
12193         TARGET_DEFAULT_FUNC.
12194
12195 2014-02-19  Tom Tromey  <tromey@redhat.com>
12196
12197         * target-delegates.c: Rebuild.
12198         * target.c (default_follow_fork): New function.
12199         (target_follow_fork): Unconditionally delegate.
12200         * target.h (struct target_ops) <to_follow_fork>: Use
12201         TARGET_DEFAULT_FUNC.
12202
12203 2014-02-19  Tom Tromey  <tromey@redhat.com>
12204
12205         * target-delegates.c: Rebuild.
12206         * target.c (target_kill): Unconditionally delegate.
12207         * target.h (struct target_ops) <to_kill>: Use
12208         TARGET_DEFAULT_NORETURN.
12209
12210 2014-02-19  Tom Tromey  <tromey@redhat.com>
12211
12212         * target-delegates.c: Rebuild.
12213         * target.c (target_masked_watch_num_registers): Unconditionally
12214         delegate.
12215         * target.h (struct target_ops) <to_masked_watch_num_registers>:
12216         Use TARGET_DEFAULT_RETURN.
12217
12218 2014-02-19  Tom Tromey  <tromey@redhat.com>
12219
12220         * target-delegates.c: Rebuild.
12221         * target.c (target_remove_mask_watchpoint): Unconditionally
12222         delegate.
12223         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
12224         TARGET_DEFAULT_RETURN.
12225
12226 2014-02-19  Tom Tromey  <tromey@redhat.com>
12227
12228         * target-delegates.c: Rebuild.
12229         * target.c (target_insert_mask_watchpoint): Unconditionally
12230         delegate.
12231         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
12232         TARGET_DEFAULT_RETURN.
12233
12234 2014-02-19  Tom Tromey  <tromey@redhat.com>
12235
12236         * target-delegates.c: Rebuild.
12237         * target.c (target_ranged_break_num_registers): Unconditionally
12238         delegate.
12239         * target.h (struct target_ops) <to_ranged_break_num_registers>:
12240         Use TARGET_DEFAULT_RETURN.
12241
12242 2014-02-19  Tom Tromey  <tromey@redhat.com>
12243
12244         * target-delegates.c: Rebuild.
12245         * target.c (target_fetch_registers): Unconditionally delegate.
12246         * target.h (struct target_ops) <to_fetch_registers>: Use
12247         TARGET_DEFAULT_NORETURN.
12248
12249 2014-02-19  Tom Tromey  <tromey@redhat.com>
12250
12251         * target-delegates.c: Rebuild.
12252         * target.c (update_current_target): Don't inherit or default
12253         to_stop.
12254         * target.h (struct target_ops) <to_stop>: Use
12255         TARGET_DEFAULT_IGNORE.
12256
12257 2014-02-19  Tom Tromey  <tromey@redhat.com>
12258
12259         * target-delegates.c: Rebuild.
12260         * target.c (update_current_target): Don't inherit or default
12261         to_can_run_breakpoint_commands.
12262         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12263         Use TARGET_DEFAULT_RETURN.
12264
12265 2014-02-19  Tom Tromey  <tromey@redhat.com>
12266
12267         * target-delegates.c: Rebuild.
12268         * target.c (update_current_target): Don't inherit or default
12269         to_supports_evaluation_of_breakpoint_conditions.
12270         * target.h (struct target_ops)
12271         <to_supports_evaluation_of_breakpoint_conditions>: Use
12272         TARGET_DEFAULT_RETURN.
12273
12274 2014-02-19  Tom Tromey  <tromey@redhat.com>
12275
12276         * target-delegates.c: Rebuild.
12277         * target.c (update_current_target): Don't inherit or default
12278         to_augmented_libraries_svr4_read.
12279         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12280         Use TARGET_DEFAULT_RETURN.
12281
12282 2014-02-19  Tom Tromey  <tromey@redhat.com>
12283
12284         * target-delegates.c: Rebuild.
12285         * target.c (update_current_target): Don't inherit or default
12286         to_can_use_agent.
12287         * target.h (struct target_ops) <to_can_use_agent>: Use
12288         TARGET_DEFAULT_RETURN.
12289
12290 2014-02-19  Tom Tromey  <tromey@redhat.com>
12291
12292         * target-delegates.c: Rebuild.
12293         * target.c (update_current_target): Don't inherit or default
12294         to_use_agent.
12295         * target.h (struct target_ops) <to_use_agent>: Use
12296         TARGET_DEFAULT_NORETURN.
12297
12298 2014-02-19  Tom Tromey  <tromey@redhat.com>
12299
12300         * target-delegates.c: Rebuild.
12301         * target.c (update_current_target): Don't inherit or default
12302         to_traceframe_info.
12303         (return_null): Remove.
12304         * target.h (struct target_ops) <to_traceframe_info>: Use
12305         TARGET_DEFAULT_RETURN.
12306
12307 2014-02-19  Tom Tromey  <tromey@redhat.com>
12308
12309         * target-delegates.c: Rebuild.
12310         * target.c (update_current_target): Don't inherit or default
12311         to_static_tracepoint_markers_by_strid.
12312         * target.h (struct target_ops)
12313         <to_static_tracepoint_markers_by_strid>: Use
12314         TARGET_DEFAULT_NORETURN.
12315
12316 2014-02-19  Tom Tromey  <tromey@redhat.com>
12317
12318         * target-delegates.c: Rebuild.
12319         * target.c (update_current_target): Don't inherit or default
12320         to_static_tracepoint_marker_at.
12321         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12322         Use TARGET_DEFAULT_RETURN.
12323
12324 2014-02-19  Tom Tromey  <tromey@redhat.com>
12325
12326         * target-delegates.c: Rebuild.
12327         * target.c (update_current_target): Don't inherit or default
12328         to_set_permissions.
12329         * target.h (struct target_ops) <to_set_permissions>: Use
12330         TARGET_DEFAULT_IGNORE.
12331
12332 2014-02-19  Tom Tromey  <tromey@redhat.com>
12333
12334         * target-delegates.c: Rebuild.
12335         * target.c (update_current_target): Don't inherit or default
12336         to_get_tib_address.
12337         * target.h (struct target_ops) <to_get_tib_address>: Use
12338         TARGET_DEFAULT_NORETURN.
12339
12340 2014-02-19  Tom Tromey  <tromey@redhat.com>
12341
12342         * target-delegates.c: Rebuild.
12343         * target.c (update_current_target): Don't inherit or default
12344         to_set_trace_notes.
12345         * target.h (struct target_ops) <to_set_trace_notes>: Use
12346         TARGET_DEFAULT_RETURN.
12347
12348 2014-02-19  Tom Tromey  <tromey@redhat.com>
12349
12350         * target-delegates.c: Rebuild.
12351         * target.c (update_current_target): Don't initialize
12352         to_set_trace_buffer_size.
12353         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
12354         TARGET_DEFAULT_IGNORE.
12355
12356 2014-02-19  Tom Tromey  <tromey@redhat.com>
12357
12358         * target-delegates.c: Rebuild.
12359         * target.c (update_current_target): Don't inherit or default
12360         to_set_circular_trace_buffer.
12361         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
12362         TARGET_DEFAULT_IGNORE.
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_set_disconnected_tracing.
12369         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
12370         TARGET_DEFAULT_IGNORE.
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_get_min_fast_tracepoint_insn_len.
12377         (return_minus_one): Remove.
12378         * target.h (struct target_ops)
12379         <to_get_min_fast_tracepoint_insn_len>: Use 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_get_raw_trace_data.
12386         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
12387         TARGET_DEFAULT_NORETURN.
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_upload_trace_state_variables.
12394         * target.h (struct target_ops) <to_upload_trace_state_variables>:
12395         Use 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_upload_tracepoints.
12402         * target.h (struct target_ops) <to_upload_tracepoints>: Use
12403         TARGET_DEFAULT_RETURN.
12404
12405 2014-02-19  Tom Tromey  <tromey@redhat.com>
12406
12407         * target-delegates.c: Rebuild.
12408         * target.c (update_current_target): Don't inherit or default
12409         to_save_trace_data.
12410         * target.h (struct target_ops) <to_save_trace_data>: Use
12411         TARGET_DEFAULT_NORETURN.
12412
12413 2014-02-19  Tom Tromey  <tromey@redhat.com>
12414
12415         * target-delegates.c: Rebuild.
12416         * target.c (update_current_target): Don't inherit or default
12417         to_get_trace_state_variable_value.
12418         * target.h (struct target_ops)
12419         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
12420
12421 2014-02-19  Tom Tromey  <tromey@redhat.com>
12422
12423         * target-delegates.c: Rebuild.
12424         * target.c (update_current_target): Don't inherit or default
12425         to_trace_find.
12426         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
12427
12428 2014-02-19  Tom Tromey  <tromey@redhat.com>
12429
12430         * target-delegates.c: Rebuild.
12431         * target.c (update_current_target): Don't inherit or default
12432         to_trace_stop.
12433         * target.h (struct target_ops) <to_trace_stop>: Use
12434         TARGET_DEFAULT_NORETURN.
12435
12436 2014-02-19  Tom Tromey  <tromey@redhat.com>
12437
12438         * target-delegates.c: Rebuild.
12439         * target.c (update_current_target): Don't inherit or default
12440         to_get_tracepoint_status.
12441         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
12442         TARGET_DEFAULT_NORETURN.
12443
12444 2014-02-19  Tom Tromey  <tromey@redhat.com>
12445
12446         * target-delegates.c: Rebuild.
12447         * target.c (update_current_target): Don't inherit or default
12448         to_get_trace_status.
12449         * target.h (struct target_ops) <to_get_trace_status>: Use
12450         TARGET_DEFAULT_RETURN.
12451
12452 2014-02-19  Tom Tromey  <tromey@redhat.com>
12453
12454         * target-delegates.c: Rebuild.
12455         * target.c (update_current_target): Don't inherit or default
12456         to_trace_start.
12457         * target.h (struct target_ops) <to_trace_start>: Use
12458         TARGET_DEFAULT_NORETURN.
12459
12460 2014-02-19  Tom Tromey  <tromey@redhat.com>
12461
12462         * target-delegates.c: Rebuild.
12463         * target.c (update_current_target): Don't inherit or default
12464         to_trace_set_readonly_regions.
12465         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12466         Use TARGET_DEFAULT_NORETURN.
12467
12468 2014-02-19  Tom Tromey  <tromey@redhat.com>
12469
12470         * target-delegates.c: Rebuild.
12471         * target.c (update_current_target): Don't inherit or default
12472         to_disable_tracepoint.
12473         * target.h (struct target_ops) <to_disable_tracepoint>: Use
12474         TARGET_DEFAULT_NORETURN.
12475
12476 2014-02-19  Tom Tromey  <tromey@redhat.com>
12477
12478         * target-delegates.c: Rebuild.
12479         * target.c (update_current_target): Don't inherit or default
12480         to_enable_tracepoint.
12481         * target.h (struct target_ops) <to_enable_tracepoint>: Use
12482         TARGET_DEFAULT_NORETURN.
12483
12484 2014-02-19  Tom Tromey  <tromey@redhat.com>
12485
12486         * target-delegates.c: Rebuild.
12487         * target.c (update_current_target): Don't inherit or default
12488         to_download_trace_state_variable.
12489         * target.h (struct target_ops) <to_download_trace_state_variable>:
12490         Use TARGET_DEFAULT_NORETURN.
12491
12492 2014-02-19  Tom Tromey  <tromey@redhat.com>
12493
12494         * target-delegates.c: Rebuild.
12495         * target.c (update_current_target): Don't inherit or default
12496         to_can_download_tracepoint.
12497         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
12498         TARGET_DEFAULT_RETURN.
12499
12500 2014-02-19  Tom Tromey  <tromey@redhat.com>
12501
12502         * target-delegates.c: Rebuild.
12503         * target.c (update_current_target): Don't inherit or default
12504         to_download_tracepoint.
12505         * target.h (struct target_ops) <to_download_tracepoint>: Use
12506         TARGET_DEFAULT_NORETURN.
12507
12508 2014-02-19  Tom Tromey  <tromey@redhat.com>
12509
12510         * target-delegates.c: Rebuild.
12511         * target.c (update_current_target): Don't inherit or default
12512         to_trace_init.
12513         * target.h (struct target_ops) <to_trace_init>: Use
12514         TARGET_DEFAULT_RETURN.
12515
12516 2014-02-19  Tom Tromey  <tromey@redhat.com>
12517
12518         * target-delegates.c: Rebuild.
12519         * target.c (update_current_target): Don't inherit or default
12520         to_supports_string_tracing.
12521         * target.h (struct target_ops) <to_supports_string_tracing>: Use
12522         TARGET_DEFAULT_RETURN.
12523
12524 2014-02-19  Tom Tromey  <tromey@redhat.com>
12525
12526         * target-delegates.c: Rebuild.
12527         * target.c (update_current_target): Don't inherit or default
12528         to_supports_enable_disable_tracepoint.
12529         * target.h (struct target_ops)
12530         <to_supports_enable_disable_tracepoint>: Use
12531         TARGET_DEFAULT_RETURN.
12532
12533 2014-02-19  Tom Tromey  <tromey@redhat.com>
12534
12535         * target-delegates.c: Rebuild.
12536         * target.c (update_current_target): Don't inherit or default
12537         to_supports_multi_process.
12538         * target.h (struct target_ops) <to_supports_multi_process>: Use
12539         TARGET_DEFAULT_RETURN.
12540
12541 2014-02-19  Tom Tromey  <tromey@redhat.com>
12542
12543         * target-delegates.c: Rebuild.
12544         * target.c (update_current_target): Don't inherit or default
12545         to_get_ada_task_ptid.
12546         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
12547         TARGET_DEFAULT_FUNC.
12548
12549 2014-02-19  Tom Tromey  <tromey@redhat.com>
12550
12551         * target-delegates.c: Rebuild.
12552         * target.c (update_current_target): Don't inherit or default
12553         to_thread_architecture.
12554         * target.h (struct target_ops) <to_thread_architecture>: Use
12555         TARGET_DEFAULT_FUNC.
12556
12557 2014-02-19  Tom Tromey  <tromey@redhat.com>
12558
12559         * target-delegates.c: Rebuild.
12560         * target.c (update_current_target): Don't inherit or default
12561         to_execution_direction.
12562         * target.h (struct target_ops) <to_execution_direction>: Use
12563         TARGET_DEFAULT_FUNC.
12564
12565 2014-02-19  Tom Tromey  <tromey@redhat.com>
12566
12567         * target-delegates.c: Rebuild.
12568         * target.c (update_current_target): Don't inherit or default
12569         to_can_execute_reverse.
12570         * target.h (struct target_ops) <to_can_execute_reverse>: Use
12571         TARGET_DEFAULT_RETURN.
12572         (target_can_execute_reverse): Unconditionally delegate.
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_goto_bookmark.
12579         (dummy_goto_bookmark): Remove.
12580         (init_dummy_target): Don't inherit or default to_goto_bookmark.
12581         * target.h (struct target_ops) <to_goto_bookmark>: Use
12582         TARGET_DEFAULT_NORETURN.
12583
12584 2014-02-19  Tom Tromey  <tromey@redhat.com>
12585
12586         * target-delegates.c: Rebuild.
12587         * target.c (update_current_target): Don't inherit or default
12588         to_get_bookmark.
12589         (dummy_get_bookmark): Remove.
12590         (init_dummy_target): Don't inherit or default to_get_bookmark.
12591         * target.h (struct target_ops) <to_get_bookmark>: Use
12592         TARGET_DEFAULT_NORETURN
12593
12594 2014-02-19  Tom Tromey  <tromey@redhat.com>
12595
12596         * target-delegates.c: Rebuild.
12597         * target.c (update_current_target): Don't inherit or default
12598         to_make_corefile_notes.
12599         (init_dummy_target): Don't initialize to_make_corefile_notes.
12600         * target.h (struct target_ops) <to_make_corefile_notes>: Use
12601         TARGET_DEFAULT_FUNC.
12602
12603 2014-02-19  Tom Tromey  <tromey@redhat.com>
12604
12605         * target-delegates.c: Rebuild.
12606         * target.c (update_current_target): Don't inherit or default
12607         to_find_memory_regions.
12608         (init_dummy_target): Don't initialize to_find_memory_regions.
12609         * target.h (struct target_ops) <to_find_memory_regions>: Use
12610         TARGET_DEFAULT_FUNC.
12611
12612 2014-02-19  Tom Tromey  <tromey@redhat.com>
12613
12614         * target-delegates.c: Rebuild.
12615         * target.c (update_current_target): Don't inherit or default
12616         to_log_command.
12617         * target.h (struct target_ops) <to_log_command>: Use
12618         TARGET_DEFAULT_IGNORE.
12619         (target_log_command): Unconditionally delegate.
12620
12621 2014-02-19  Tom Tromey  <tromey@redhat.com>
12622
12623         * target-delegates.c: Rebuild.
12624         * target.c (update_current_target): Don't inherit or default
12625         to_pid_to_exec_file.
12626         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
12627         TARGET_DEFAULT_RETURN.
12628
12629 2014-02-19  Tom Tromey  <tromey@redhat.com>
12630
12631         * target-delegates.c: Rebuild.
12632         * target.c (update_current_target): Don't inherit or default
12633         to_thread_name.
12634         (target_thread_name): Unconditionally delegate.
12635         * target.h (struct target_ops) <to_thread_name>: Use
12636         TARGET_DEFAULT_RETURN.
12637
12638 2014-02-19  Tom Tromey  <tromey@redhat.com>
12639
12640         * target-delegates.c: Rebuild.
12641         * target.c (update_current_target): Don't inherit or default
12642         to_extra_thread_info.
12643         * target.h (struct target_ops) <to_extra_thread_info>: Use
12644         TARGET_DEFAULT_RETURN.
12645
12646 2014-02-19  Tom Tromey  <tromey@redhat.com>
12647
12648         * target-delegates.c: Rebuild.
12649         * target.c (update_current_target): Don't inherit or default
12650         to_has_exited.
12651         * target.h (struct target_ops) <to_has_exited>: Use
12652         TARGET_DEFAULT_RETURN..
12653
12654 2014-02-19  Tom Tromey  <tromey@redhat.com>
12655
12656         * target-delegates.c: Rebuild.
12657         * target.c (update_current_target): Don't inherit or default
12658         to_set_syscall_catchpoint.
12659         (return_one): Remove.
12660         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
12661         TARGET_DEFAULT_RETURN.
12662
12663 2014-02-19  Tom Tromey  <tromey@redhat.com>
12664
12665         * target-delegates.c: Rebuild.
12666         * target.c (update_current_target): Don't inherit or default
12667         to_insert_exec_catchpoint.
12668         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12669         TARGET_DEFAULT_RETURN.
12670
12671 2014-01-08  Tom Tromey  <tromey@redhat.com>
12672
12673         * target-delegates.c: Rebuild.
12674         * target.c (update_current_target): Don't inherit or default
12675         to_insert_exec_catchpoint.
12676         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
12677         TARGET_DEFAULT_RETURN.
12678
12679 2014-02-19  Tom Tromey  <tromey@redhat.com>
12680
12681         * target-delegates.c: Rebuild.
12682         * target.c (update_current_target): Don't inherit or default
12683         to_remove_vfork_catchpoint.
12684         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
12685         TARGET_DEFAULT_RETURN.
12686
12687 2014-02-19  Tom Tromey  <tromey@redhat.com>
12688
12689         * target-delegates.c: Rebuild.
12690         * target.c (update_current_target): Don't inherit or default
12691         to_insert_vfork_catchpoint.
12692         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
12693         TARGET_DEFAULT_RETURN.
12694
12695 2014-02-19  Tom Tromey  <tromey@redhat.com>
12696
12697         * target-delegates.c: Rebuild.
12698         * target.c (update_current_target): Don't inherit or default
12699         to_remove_fork_catchpoint.
12700         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
12701         TARGET_DEFAULT_RETURN.
12702
12703 2014-02-19  Tom Tromey  <tromey@redhat.com>
12704
12705         * target-delegates.c: Rebuild.
12706         * target.c (update_current_target): Don't inherit or default
12707         to_insert_fork_catchpoint.
12708         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
12709         TARGET_DEFAULT_RETURN.
12710
12711 2014-02-19  Tom Tromey  <tromey@redhat.com>
12712
12713         * target-delegates.c: Rebuild.
12714         * target.c (update_current_target): Don't inherit or default
12715         to_post_startup_inferior.
12716         * target.h (struct target_ops) <to_post_startup_inferior>: Use
12717         TARGET_DEFAULT_IGNORE.
12718
12719 2014-02-19  Tom Tromey  <tromey@redhat.com>
12720
12721         * target-delegates.c: Rebuild.
12722         * target.c (update_current_target): Don't inherit or default
12723         to_load.
12724         * target.h (struct target_ops) <to_load>: Use
12725         TARGET_DEFAULT_NORETURN.
12726
12727 2014-02-19  Tom Tromey  <tromey@redhat.com>
12728
12729         * target-delegates.c: Rebuild.
12730         * target.c (update_current_target): Don't inherit or default
12731         to_terminal_info.
12732         * target.h (struct target_ops) <to_terminal_info>: Use
12733         TARGET_DEFAULT_FUNC.
12734
12735 2014-02-19  Tom Tromey  <tromey@redhat.com>
12736
12737         * target-delegates.c: Rebuild.
12738         * target.c (update_current_target): Don't inherit or default
12739         to_terminal_save_ours.
12740         * target.h (struct target_ops) <to_terminal_save_ours>: Use
12741         TARGET_DEFAULT_IGNORE.
12742
12743 2014-02-19  Tom Tromey  <tromey@redhat.com>
12744
12745         * target-delegates.c: Rebuild.
12746         * target.c (update_current_target): Don't inherit or default
12747         to_terminal_ours.
12748         * target.h (struct target_ops) <to_terminal_ours>: Use
12749         TARGET_DEFAULT_IGNORE.
12750
12751 2014-02-19  Tom Tromey  <tromey@redhat.com>
12752
12753         * target-delegates.c: Rebuild.
12754         * target.c (update_current_target): Don't inherit or default
12755         to_terminal_ours_for_output.
12756         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
12757         TARGET_DEFAULT_IGNORE.
12758
12759 2014-02-19  Tom Tromey  <tromey@redhat.com>
12760
12761         * target-delegates.c: Rebuild.
12762         * target.c (update_current_target): Don't inherit or default
12763         to_terminal_inferior.
12764         * target.h (struct target_ops) <to_terminal_inferior>: Use
12765         TARGET_DEFAULT_IGNORE.
12766
12767 2014-02-19  Tom Tromey  <tromey@redhat.com>
12768
12769         * target-delegates.c: Rebuild.
12770         * target.c (update_current_target): Don't inherit or default
12771         to_terminal_init.
12772         * target.h (struct target_ops) <to_terminal_init>: Use
12773         TARGET_DEFAULT_IGNORE.
12774
12775 2014-02-19  Tom Tromey  <tromey@redhat.com>
12776
12777         * target-delegates.c: Rebuild.
12778         * target.c (update_current_target): Don't inherit or default
12779         to_can_accel_watchpoint_condition.
12780         * target.h (struct target_ops)
12781         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
12782
12783 2014-02-19  Tom Tromey  <tromey@redhat.com>
12784
12785         * target-delegates.c: Rebuild.
12786         * target.c (update_current_target): Don't inherit or default
12787         to_region_ok_for_hw_watchpoint.
12788         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12789         Use TARGET_DEFAULT_FUNC.
12790
12791 2014-02-19  Tom Tromey  <tromey@redhat.com>
12792
12793         * target-delegates.c: Rebuild.
12794         * target.c (update_current_target): Don't inherit or default
12795         to_watchpoint_addr_within_range.
12796         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
12797         Use TARGET_DEFAULT_FUNC.
12798
12799 2014-02-19  Tom Tromey  <tromey@redhat.com>
12800
12801         * target-delegates.c: Rebuild.
12802         * target.c (update_current_target): Don't inherit or default
12803         to_remove_watchpoint.
12804         * target.h (struct target_ops) <to_remove_watchpoint>: Use
12805         TARGET_DEFAULT_NORETURN.
12806
12807 2014-02-19  Tom Tromey  <tromey@redhat.com>
12808
12809         * target-delegates.c: Rebuild.
12810         * target.c (update_current_target): Don't inherit or default
12811         to_insert_watchpoint.
12812         * target.h (struct target_ops) <to_insert_watchpoint>: Use
12813         TARGET_DEFAULT_RETURN.
12814
12815 2014-02-19  Tom Tromey  <tromey@redhat.com>
12816
12817         * target-delegates.c: Rebuild.
12818         * target.c (update_current_target): Don't inherit or default
12819         to_remove_hw_breakpoint.
12820         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12821         TARGET_DEFAULT_RETURN.
12822
12823 2014-02-19  Tom Tromey  <tromey@redhat.com>
12824
12825         * target-delegates.c: Rebuild.
12826         * target.c (update_current_target): Don't inherit or default
12827         to_insert_hw_breakpoint.
12828         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12829         TARGET_DEFAULT_RETURN.
12830
12831 2014-02-19  Tom Tromey  <tromey@redhat.com>
12832
12833         * target-delegates.c: Rebuild.
12834         * target.c (update_current_target): Don't inherit or default
12835         to_can_use_hw_breakpoint.
12836         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12837         TARGET_DEFAULT_RETURN.
12838
12839 2014-02-19  Tom Tromey  <tromey@redhat.com>
12840
12841         * target-delegates.c: Rebuild.
12842         * target.c (update_current_target): Don't inherit or default
12843         to_files_info.
12844         * target.h (struct target_ops) <to_files_info>: Use
12845         TARGET_DEFAULT_IGNORE.
12846
12847 2014-02-19  Tom Tromey  <tromey@redhat.com>
12848
12849         * target-delegates.c: Rebuild.
12850         * target.c (update_current_target): Don't inherit or default
12851         to_store.
12852         * target.h (struct target_ops) <to_store>: Use
12853         TARGET_DEFAULT_NORETURN.
12854
12855 2014-02-19  Tom Tromey  <tromey@redhat.com>
12856
12857         * target-delegates.c: Rebuild.
12858         * target.c (update_current_target): Don't inherit or default
12859         to_post_attach.
12860         * target.h (struct target_ops) <to_post_attach>: Use
12861         TARGET_DEFAULT_IGNORE.
12862
12863 2014-02-19  Tom Tromey  <tromey@redhat.com>
12864
12865         * target-delegates.c: Rebuild.
12866         * target.c (update_current_target): Don't inherit or default
12867         to_rcmd.
12868         (default_rcmd): New function.
12869         (do_monitor_command): Unconditionally delegate.
12870         * target.h (struct target_ops) <to_rmcd>: Use
12871         TARGET_DEFAULT_FUNC.
12872
12873 2014-02-19  Tom Tromey  <tromey@redhat.com>
12874
12875         * target-delegates.c: Rebuild.
12876         * target.c (init_dummy_target): Don't initialize to_attach.
12877         (target_attach): Unconditionally delegate.
12878         * target.h (struct target_ops) <to_attach>: Use
12879         TARGET_DEFAULT_FUNC.
12880
12881 2014-02-19  Tom Tromey  <tromey@redhat.com>
12882
12883         * target-delegates.c: Rebuild.
12884         * target.c (target_detach): Unconditionally delegate.
12885         (init_dummy_target): Don't initialize to_detach.
12886         * target.h (struct target_ops) <to_detach>: Use
12887         TARGET_DEFAULT_IGNORE.
12888
12889 2014-02-19  Tom Tromey  <tromey@redhat.com>
12890
12891         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12892         Add argument.
12893         (target_augmented_libraries_svr4_read): Add argument.
12894         * target.c (update_current_target): Update.
12895         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12896         argument.
12897
12898 2014-02-19  Tom Tromey  <tromey@redhat.com>
12899
12900         * target.h (struct target_ops) <to_call_history_range>: Add
12901         argument.
12902         * target.c (target_call_history_range): Add argument.
12903         * record-btrace.c (record_btrace_call_history_range): Add 'self'
12904         argument.
12905         (record_btrace_call_history_from): Update.
12906
12907 2014-02-19  Tom Tromey  <tromey@redhat.com>
12908
12909         * target.h (struct target_ops) <to_call_history_from>: Add
12910         argument.
12911         * target.c (target_call_history_from): Add argument.
12912         * record-btrace.c (record_btrace_call_history_from): Add 'self'
12913         argument.
12914
12915 2014-02-19  Tom Tromey  <tromey@redhat.com>
12916
12917         * target.h (struct target_ops) <to_call_history>: Add argument.
12918         * target.c (target_call_history): Add argument.
12919         * record-btrace.c (record_btrace_call_history): Add 'self'
12920         argument.
12921
12922 2014-02-19  Tom Tromey  <tromey@redhat.com>
12923
12924         * target.h (struct target_ops) <to_insn_history_range>: Add
12925         argument.
12926         * target.c (target_insn_history_range): Add argument.
12927         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12928         argument.
12929         (record_btrace_insn_history_from): Update.
12930
12931 2014-02-19  Tom Tromey  <tromey@redhat.com>
12932
12933         * target.h (struct target_ops) <to_insn_history_from>: Add
12934         argument.
12935         * target.c (target_insn_history_from): Add argument.
12936         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12937         argument.
12938
12939 2014-02-19  Tom Tromey  <tromey@redhat.com>
12940
12941         * target.h (struct target_ops) <to_insn_history>: Add argument.
12942         * target.c (target_insn_history): Add argument.
12943         * record-btrace.c (record_btrace_insn_history): Add 'self'
12944         argument.
12945
12946 2014-02-19  Tom Tromey  <tromey@redhat.com>
12947
12948         * target.h (struct target_ops) <to_goto_record>: Add argument.
12949         * target.c (target_goto_record): Add argument.
12950         * record-full.c (record_full_goto): Add 'self' argument.
12951         * record-btrace.c (record_btrace_goto): Add 'self' argument.
12952
12953 2014-02-19  Tom Tromey  <tromey@redhat.com>
12954
12955         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12956         * target.c (target_goto_record_end): Add argument.
12957         * record-full.c (record_full_goto_end): Add 'self' argument.
12958         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12959
12960 2014-02-19  Tom Tromey  <tromey@redhat.com>
12961
12962         * target.h (struct target_ops) <to_goto_record_begin>: Add
12963         argument.
12964         * target.c (target_goto_record_begin): Add argument.
12965         * record-full.c (record_full_goto_begin): Add 'self' argument.
12966         * record-btrace.c (record_btrace_goto_begin): Add 'self'
12967         argument.
12968
12969 2014-02-19  Tom Tromey  <tromey@redhat.com>
12970
12971         * target.h (struct target_ops) <to_record_is_replaying>: Add
12972         argument.
12973         * target.c (target_record_is_replaying): Add argument.
12974         * record-full.c (record_full_is_replaying): Add 'self' argument.
12975         * record-btrace.c (record_btrace_is_replaying): Add 'self'
12976         argument.
12977         (record_btrace_xfer_partial, record_btrace_store_registers)
12978         (record_btrace_prepare_to_store, record_btrace_resume)
12979         (record_btrace_wait, record_btrace_decr_pc_after_break)
12980         (record_btrace_find_new_threads, record_btrace_thread_alive):
12981         Update.
12982
12983 2014-02-19  Tom Tromey  <tromey@redhat.com>
12984
12985         * target.h (struct target_ops) <to_delete_record>: Add argument.
12986         * target.c (target_delete_record): Add argument.
12987         * record-full.c (record_full_delete): Add 'self' argument.
12988
12989 2014-02-19  Tom Tromey  <tromey@redhat.com>
12990
12991         * target.h (struct target_ops) <to_save_record>: Add argument.
12992         * target.c (target_save_record): Add argument.
12993         * record-full.c (record_full_save): Add 'self' argument.
12994         (record_full_save): Add 'self' argument.
12995
12996 2014-02-19  Tom Tromey  <tromey@redhat.com>
12997
12998         * target.h (struct target_ops) <to_info_record>: Add argument.
12999         * target.c (target_info_record): Add argument.
13000         * record.c (info_record_command): Add argument.
13001         * record-full.c (record_full_info): Add 'self' argument.
13002         * record-btrace.c (record_btrace_info): Add 'self' argument.
13003
13004 2014-02-19  Tom Tromey  <tromey@redhat.com>
13005
13006         * target.h (struct target_ops) <to_stop_recording>: Add argument.
13007         * target.c (target_stop_recording): Add argument.
13008         * record.c (record_stop): Add argument.
13009         * record-btrace.c (record_btrace_stop_recording): Add 'self'
13010         argument.
13011
13012 2014-02-19  Tom Tromey  <tromey@redhat.com>
13013
13014         * target.h (struct target_ops) <to_read_btrace>: Add argument.
13015         * target.c (struct target_ops) <to_read_btrace>: Add argument.
13016         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
13017         argument.
13018         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
13019         (_initialize_amd64_linux_nat): Use it.
13020         * i386-linux-nat.c (i386_linux_read_btrace): New function.
13021         (_initialize_i386_linux_nat): Use it.
13022
13023 2014-02-19  Tom Tromey  <tromey@redhat.com>
13024
13025         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
13026         * target.c (target_teardown_btrace): Add argument.
13027         * remote.c (remote_teardown_btrace): Add 'self' argument.
13028         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
13029         argument.
13030         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
13031         argument.
13032
13033 2014-02-19  Tom Tromey  <tromey@redhat.com>
13034
13035         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
13036         * target.c (target_disable_btrace): Add argument.
13037         * remote.c (remote_disable_btrace): Add 'self' argument.
13038         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
13039         argument.
13040         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
13041         argument.
13042
13043 2014-02-19  Tom Tromey  <tromey@redhat.com>
13044
13045         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
13046         * target.c (target_enable_btrace): Add argument.
13047         * remote.c (remote_enable_btrace): Add 'self' argument.
13048         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
13049         argument.
13050         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
13051         argument.
13052
13053 2014-02-19  Tom Tromey  <tromey@redhat.com>
13054
13055         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
13056         (target_can_use_agent): Add argument.
13057         * target.c (update_current_target): Update.
13058         * remote.c (remote_can_use_agent): Add 'self' argument.
13059         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
13060
13061 2014-02-19  Tom Tromey  <tromey@redhat.com>
13062
13063         * target.h (struct target_ops) <to_use_agent>: Add argument.
13064         (target_use_agent): Add argument.
13065         * target.c (update_current_target): Update.
13066         * remote.c (remote_use_agent): Add 'self' argument.
13067         * inf-child.c (inf_child_use_agent): Add 'self' argument.
13068
13069 2014-02-19  Tom Tromey  <tromey@redhat.com>
13070
13071         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
13072         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
13073         (target_traceframe_info): Add argument.
13074         * target.c (update_current_target): Update.
13075         * remote.c (remote_traceframe_info): Add 'self' argument.
13076         * ctf.c (ctf_traceframe_info): Add 'self' argument.
13077
13078 2014-02-19  Tom Tromey  <tromey@redhat.com>
13079
13080         * target.h (target_static_tracepoint_markers_by_strid): Add
13081         argument.
13082         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
13083         'self' argument.
13084         * target.c (update_current_target): Update.
13085         * remote.c (struct target_ops)
13086         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
13087         * linux-nat.c (struct target_ops)
13088         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
13089
13090 2014-02-19  Tom Tromey  <tromey@redhat.com>
13091
13092         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
13093         Add argument.
13094         (target_static_tracepoint_marker_at): Add argument.
13095         * target.c (update_current_target): Update.
13096         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
13097         argument.
13098
13099 2014-02-19  Tom Tromey  <tromey@redhat.com>
13100
13101         * target.h (struct target_ops) <to_set_permissions>: Add argument.
13102         (target_set_permissions): Add argument.
13103         * target.c (update_current_target): Update.
13104         * remote.c (remote_set_permissions): Add 'self' argument.
13105         (remote_start_remote): Update.
13106
13107 2014-02-19  Tom Tromey  <tromey@redhat.com>
13108
13109         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
13110         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
13111         (target_get_tib_address): Add argument.
13112         * target.c (update_current_target): Update.
13113         * remote.c (remote_get_tib_address): Add 'self' argument.
13114
13115 2014-02-19  Tom Tromey  <tromey@redhat.com>
13116
13117         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
13118         (target_set_trace_notes): Add argument.
13119         * target.c (update_current_target): Update.
13120         * remote.c (remote_set_trace_notes): Add 'self' argument.
13121
13122 2014-02-19  Tom Tromey  <tromey@redhat.com>
13123
13124         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
13125         argument.
13126         (target_set_trace_buffer_size): Add argument.
13127         * target.c (update_current_target): Update.
13128         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
13129
13130 2014-02-19  Tom Tromey  <tromey@redhat.com>
13131
13132         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
13133         argument.
13134         (target_set_circular_trace_buffer): Add argument.
13135         * target.c (update_current_target): Update.
13136         * remote.c (remote_set_circular_trace_buffer): Add 'self'
13137         argument.
13138
13139 2014-02-19  Tom Tromey  <tromey@redhat.com>
13140
13141         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
13142         argument.
13143         (target_set_disconnected_tracing): Add argument.
13144         * target.c (update_current_target): Update.
13145         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
13146
13147 2014-02-19  Tom Tromey  <tromey@redhat.com>
13148
13149         * target.h (struct target_ops)
13150         <to_get_min_fast_tracepoint_insn_len>: Add argument.
13151         (target_get_min_fast_tracepoint_insn_len): Add argument.
13152         * target.c (update_current_target): Update.
13153         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
13154         argument.
13155
13156 2014-02-19  Tom Tromey  <tromey@redhat.com>
13157
13158         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
13159         argument.
13160         (target_get_raw_trace_data): Add argument.
13161         * target.c (update_current_target): Update.
13162         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
13163
13164 2014-02-19  Tom Tromey  <tromey@redhat.com>
13165
13166         * target.h (struct target_ops) <to_upload_trace_state_variables>:
13167         Add argument.
13168         (target_upload_trace_state_variables): Add argument.
13169         * target.c (update_current_target): Update.
13170         * remote.c (remote_upload_trace_state_variables): Add 'self'
13171         argument.
13172         (remote_start_remote): Update.
13173
13174 2014-02-19  Tom Tromey  <tromey@redhat.com>
13175
13176         * target.h (struct target_ops) <to_upload_tracepoints>: Add
13177         argument.
13178         (target_upload_tracepoints): Add argument.
13179         * target.c (update_current_target): Update.
13180         * remote.c (remote_upload_tracepoints): Add 'self' argument.
13181         (remote_start_remote): Update.
13182
13183 2014-02-19  Tom Tromey  <tromey@redhat.com>
13184
13185         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
13186         (target_save_trace_data): Add argument.
13187         * target.c (update_current_target): Update.
13188         * remote.c (remote_save_trace_data): Add 'self' argument.
13189
13190 2014-02-19  Tom Tromey  <tromey@redhat.com>
13191
13192         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
13193         argument.
13194         * target.h (struct target_ops)
13195         <to_get_trace_state_variable_value>: Add argument.
13196         (target_get_trace_state_variable_value): Add argument.
13197         * target.c (update_current_target): Update.
13198         * remote.c (remote_get_trace_state_variable_value): Add 'self'
13199         argument.
13200         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
13201
13202 2014-02-19  Tom Tromey  <tromey@redhat.com>
13203
13204         * tracepoint.c (tfile_trace_find): Add 'self' argument.
13205         * target.h (struct target_ops) <to_trace_find>: Add argument.
13206         (target_trace_find): Add argument.
13207         * target.c (update_current_target): Update.
13208         * remote.c (remote_trace_find): Add 'self' argument.
13209         * ctf.c (ctf_trace_find): Add 'self' argument.
13210
13211 2014-02-19  Tom Tromey  <tromey@redhat.com>
13212
13213         * target.h (struct target_ops) <to_trace_stop>: Add argument.
13214         (target_trace_stop): Add argument.
13215         * target.c (update_current_target): Update.
13216         * remote.c (remote_trace_stop): Add 'self' argument.
13217
13218 2014-02-19  Tom Tromey  <tromey@redhat.com>
13219
13220         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
13221         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
13222         argument.
13223         (target_get_tracepoint_status): Add argument.
13224         * target.c (update_current_target): Update.
13225         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
13226
13227 2014-02-19  Tom Tromey  <tromey@redhat.com>
13228
13229         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
13230         * target.h (struct target_ops) <to_get_trace_status>: Add
13231         argument.
13232         (target_get_trace_status): Add argument.
13233         * target.c (update_current_target): Update.
13234         * remote.c (remote_get_trace_status): Add 'self' argument.
13235         (remote_start_remote, remote_can_download_tracepoint): Update.
13236         * ctf.c (ctf_get_trace_status): Add 'self' argument.
13237
13238 2014-02-19  Tom Tromey  <tromey@redhat.com>
13239
13240         * target.h (struct target_ops) <to_trace_start>: Add argument.
13241         (target_trace_start): Add argument.
13242         * target.c (update_current_target): Update.
13243         * remote.c (remote_trace_start): Add 'self' argument.
13244
13245 2014-02-19  Tom Tromey  <tromey@redhat.com>
13246
13247         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
13248         Add argument.
13249         (target_trace_set_readonly_regions): Add argument.
13250         * target.c (update_current_target): Update.
13251         * remote.c (remote_trace_set_readonly_regions): Add 'self'
13252         argument.
13253
13254 2014-02-19  Tom Tromey  <tromey@redhat.com>
13255
13256         * target.h (struct target_ops) <to_disable_tracepoint>: Add
13257         argument.
13258         (target_disable_tracepoint): Add argument.
13259         * target.c (update_current_target): Update.
13260         * remote.c (remote_disable_tracepoint): Add 'self' argument.
13261
13262 2014-02-19  Tom Tromey  <tromey@redhat.com>
13263
13264         * target.h (struct target_ops) <to_enable_tracepoint>: Add
13265         argument.
13266         (target_enable_tracepoint): Add argument.
13267         * target.c (update_current_target): Update.
13268         * remote.c (remote_enable_tracepoint): Add 'self' argument.
13269
13270 2014-02-19  Tom Tromey  <tromey@redhat.com>
13271
13272         * target.h (struct target_ops) <to_download_trace_state_variable>:
13273         Add argument.
13274         (target_download_trace_state_variable): Add argument.
13275         * target.c (update_current_target): Update.
13276         * remote.c (remote_download_trace_state_variable): Add 'self'
13277         argument.
13278
13279 2014-02-19  Tom Tromey  <tromey@redhat.com>
13280
13281         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
13282         argument.
13283         (target_can_download_tracepoint): Add argument.
13284         * target.c (update_current_target): Update.
13285         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
13286
13287 2014-02-19  Tom Tromey  <tromey@redhat.com>
13288
13289         * target.h (struct target_ops) <to_download_tracepoint>: Add
13290         argument.
13291         (target_download_tracepoint): Add argument.
13292         * target.c (update_current_target): Update.
13293         * remote.c (remote_download_tracepoint): Add 'self' argument.
13294
13295 2014-02-19  Tom Tromey  <tromey@redhat.com>
13296
13297         * target.h (struct target_ops) <to_trace_init>: Add argument.
13298         (target_trace_init): Add argument.
13299         * target.c (update_current_target): Update.
13300         * remote.c (remote_trace_init): Add 'self' argument.
13301
13302 2014-02-19  Tom Tromey  <tromey@redhat.com>
13303
13304         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
13305         * target.c (target_fileio_readlink): Add argument.
13306         * remote.c (remote_hostio_readlink): Add 'self' argument.
13307         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
13308
13309 2014-02-19  Tom Tromey  <tromey@redhat.com>
13310
13311         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
13312         * target.c (target_fileio_unlink): Add argument.
13313         * remote.c (remote_hostio_unlink): Add 'self' argument.
13314         (remote_file_delete): Update.
13315         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
13316
13317 2014-02-19  Tom Tromey  <tromey@redhat.com>
13318
13319         * target.h (struct target_ops) <to_fileio_close>: Add argument.
13320         * target.c (target_fileio_close): Add argument.
13321         * remote.c (remote_hostio_close): Add 'self' argument.
13322         (remote_hostio_close_cleanup): Update.
13323         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
13324         Update.
13325         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
13326
13327 2014-02-19  Tom Tromey  <tromey@redhat.com>
13328
13329         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
13330         * target.c (target_fileio_pread): Add argument.
13331         * remote.c (remote_hostio_pread): Add 'self' argument.
13332         (remote_bfd_iovec_pread, remote_file_get): Update.
13333         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
13334
13335 2014-02-19  Tom Tromey  <tromey@redhat.com>
13336
13337         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
13338         * target.c (target_fileio_pwrite): Add argument.
13339         * remote.c (remote_hostio_pwrite): Add 'self' argument.
13340         (remote_file_put): Update.
13341         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
13342
13343 2014-02-19  Tom Tromey  <tromey@redhat.com>
13344
13345         * target.h (struct target_ops) <to_fileio_open>: Add argument.
13346         * target.c (target_fileio_open): Add argument.
13347         * remote.c (remote_hostio_open): Add 'self' argument.
13348         (remote_bfd_iovec_open): Add 'self' argument.
13349         (remote_file_put): Add 'self' argument.
13350         (remote_file_get): Add 'self' argument.
13351         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
13352
13353 2014-02-19  Tom Tromey  <tromey@redhat.com>
13354
13355         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
13356         Add argument.
13357         (target_can_run_breakpoint_commands): Add argument.
13358         * target.c (update_current_target): Update.
13359         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
13360         argument.
13361         (remote_insert_breakpoint): Add 'self' argument.
13362         (remote_insert_hw_breakpoint): Add 'self' argument.
13363         (remote_can_run_breakpoint_commands): Add 'self' argument.
13364
13365 2014-02-19  Tom Tromey  <tromey@redhat.com>
13366
13367         * target.h (struct target_ops)
13368         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
13369         (target_supports_evaluation_of_breakpoint_conditions): Add
13370         argument.
13371         * target.c (update_current_target): Update.
13372         * remote.c (remote_supports_cond_breakpoints): Add 'self'
13373         argument.
13374         (remote_insert_breakpoint): Add 'self' argument.
13375         (remote_insert_hw_breakpoint): Add 'self' argument.
13376         (remote_supports_cond_breakpoints): Add 'self' argument.
13377
13378 2014-02-19  Tom Tromey  <tromey@redhat.com>
13379
13380         * target.h (struct target_ops) <to_supports_string_tracing>: Add
13381         argument.
13382         (target_supports_string_tracing): Add argument.
13383         * target.c (update_current_target): Update.
13384         * remote.c (remote_supports_string_tracing): Add 'self' argument.
13385
13386 2014-02-19  Tom Tromey  <tromey@redhat.com>
13387
13388         * target.h (struct target_ops)
13389         <to_supports_disable_randomization>: Add argument.
13390         * target.c (find_default_supports_disable_randomization): Add
13391         argument.
13392         (target_supports_disable_randomization): Add argument.
13393         (find_default_supports_disable_randomization): Add 'self'
13394         argument.
13395         * remote.c (extended_remote_supports_disable_randomization): Add
13396         'self' argument.
13397         (remote_supports_disable_randomization): Add 'self' argument.
13398         (extended_remote_create_inferior): Update.
13399         * linux-nat.c (linux_nat_supports_disable_randomization): Add
13400         'self' argument.
13401
13402 2014-02-19  Tom Tromey  <tromey@redhat.com>
13403
13404         * target.h (struct target_ops)
13405         <to_supports_enable_disable_tracepoint>: Add argument.
13406         (target_supports_enable_disable_tracepoint): Add argument.
13407         * target.c (update_current_target): Update.
13408         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
13409         argument.
13410
13411 2014-02-19  Tom Tromey  <tromey@redhat.com>
13412
13413         * target.h (struct target_ops) <to_supports_multi_process>: Add
13414         argument.
13415         (target_supports_multi_process): Add argument.
13416         * target.c (update_current_target): Update.
13417         * remote.c (remote_supports_multi_process): Add 'self' argument.
13418         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
13419         argument.
13420         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
13421         argument.
13422
13423 2014-02-19  Tom Tromey  <tromey@redhat.com>
13424
13425         * target.h (struct target_ops) <to_execution_direction>: Add
13426         argument.
13427         (target_execution_direction): Add argument.
13428         * target.c (default_execution_direction): Add 'self' argument.
13429         * record-full.c (record_full_execution_direction): Add 'self'
13430         argument.
13431
13432 2014-02-19  Tom Tromey  <tromey@redhat.com>
13433
13434         * target.h (struct target_ops) <to_can_execute_reverse>: Add
13435         argument.
13436         (target_can_execute_reverse): Add argument.
13437         * remote.c (remote_can_execute_reverse): Add 'self' argument.
13438         * record-full.c (record_full_can_execute_reverse): Add 'self'
13439         argument.
13440         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
13441         argument.
13442
13443 2014-02-19  Tom Tromey  <tromey@redhat.com>
13444
13445         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
13446         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
13447         argument.
13448         (target_get_ada_task_ptid): Add argument.
13449         * target.c (update_current_target): Update.
13450         (default_get_ada_task_ptid): Add 'self' argument.
13451         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
13452         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
13453         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
13454         argument.
13455         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
13456         argument.
13457         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
13458         argument.
13459         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
13460         argument.
13461         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
13462         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
13463         argument.
13464
13465 2014-02-19  Tom Tromey  <tromey@redhat.com>
13466
13467         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
13468         (target_goto_bookmark): Add argument.
13469         * target.c (dummy_goto_bookmark): Add 'self' argument.
13470         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
13471
13472 2014-02-19  Tom Tromey  <tromey@redhat.com>
13473
13474         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
13475         (target_get_bookmark): Add argument.
13476         * target.c (dummy_get_bookmark): Add 'self' argument.
13477         * record-full.c (record_full_get_bookmark): Add 'self' argument.
13478
13479 2014-02-19  Tom Tromey  <tromey@redhat.com>
13480
13481         * target.h (struct target_ops) <to_make_corefile_notes>: Add
13482         argument.
13483         (target_make_corefile_notes): Add argument.
13484         * target.c (dummy_make_corefile_notes): Add 'self' argument.
13485         * procfs.c (procfs_make_note_section): Add 'self' argument.
13486         (procfs_make_note_section): Add 'self' argument.
13487         (procfs_make_note_section): Add 'self' argument.
13488         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
13489         argument.
13490         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
13491         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
13492         * exec.c (exec_make_note_section): Add 'self' argument.
13493         (exec_make_note_section): Add 'self' argument.
13494
13495 2014-02-19  Tom Tromey  <tromey@redhat.com>
13496
13497         * target.h (struct target_ops) <to_find_memory_regions>: Add
13498         argument.
13499         (target_find_memory_regions): Add argument.
13500         * target.c (dummy_find_memory_regions): Add 'self' argument.
13501         * procfs.c (proc_find_memory_regions): Add 'self' argument.
13502         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
13503         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
13504         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
13505         * exec. (exec_do_find_memory_regions): New global.
13506         (exec_set_find_memory_regions): Rewrite.
13507         (exec_find_memory_regions): New function.
13508         (init_exec_ops): Use exec_find_memory_regions.
13509
13510 2014-02-19  Tom Tromey  <tromey@redhat.com>
13511
13512         * target.h (struct target_ops) <to_supports_non_stop>: Add
13513         argument.
13514         * target.c (find_default_supports_non_stop): Add argument.
13515         (target_supports_non_stop): Add argument.
13516         (find_default_supports_non_stop): Add 'self' argument.
13517         * remote.c (remote_supports_non_stop): Add 'self' argument.
13518         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
13519
13520 2014-02-19  Tom Tromey  <tromey@redhat.com>
13521
13522         * target.h (struct target_ops) <to_log_command>: Add argument.
13523         (target_log_command): Add argument.
13524         * serial.h (serial_log_command): Add 'self' argument.
13525         * serial.c (serial_log_command): Add 'self' argument.
13526
13527 2014-02-19  Tom Tromey  <tromey@redhat.com>
13528
13529         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
13530         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
13531         argument.
13532         (target_pid_to_exec_file): Add argument.
13533         * target.c (debug_to_pid_to_exec_file): Add argument.
13534         (update_current_target): Update.
13535         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
13536         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
13537         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
13538         (linux_handle_extended_wait): Update.
13539         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
13540         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
13541         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
13542         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
13543
13544 2014-02-19  Tom Tromey  <tromey@redhat.com>
13545
13546         * target.h (struct target_ops) <to_rcmd>: Add argument.
13547         (target_rcmd): Add argument.
13548         * target.c (debug_to_rcmd): Add argument.
13549         (update_current_target, do_monitor_command): Update.
13550         * remote.c (remote_rcmd): Add 'self' argument.
13551         * monitor.c (monitor_rcmd): Add 'self' argument.
13552
13553 2014-02-19  Tom Tromey  <tromey@redhat.com>
13554
13555         * windows-nat.c (windows_stop): Add 'self' argument.
13556         * target.h (struct target_ops) <to_stop>: Add argument.
13557         * target.c (target_stop): Add argument.
13558         (debug_to_stop): Add argument.
13559         (update_current_target): Update.
13560         * remote.c (remote_stop): Add 'self' argument.
13561         * remote-sim.c (gdbsim_stop): Add 'self' argument.
13562         (gdbsim_cntrl_c): Update.
13563         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
13564         * procfs.c (procfs_stop): Add 'self' argument.
13565         * nto-procfs.c (procfs_stop): Add 'self' argument.
13566         * monitor.c (monitor_stop): Add 'self' argument.
13567         (monitor_open): Update.
13568         * linux-nat.c (linux_nat_stop): Add argument.
13569         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
13570         * gnu-nat.c (gnu_stop): Add 'self' argument.
13571         * darwin-nat.c (darwin_stop): Add 'self' argument.
13572
13573 2014-02-19  Tom Tromey  <tromey@redhat.com>
13574
13575         * target.h (struct target_ops) <to_thread_name>: Add argument.
13576         * target.c (target_thread_name): Add argument.
13577         (update_current_target): Update.
13578         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
13579
13580 2014-02-19  Tom Tromey  <tromey@redhat.com>
13581
13582         * target.h (struct target_ops) <to_extra_thread_info>: Add
13583         argument.
13584         (target_extra_thread_info): Add argument.
13585         * target.c (update_current_target): Update.
13586         * remote.c (remote_threads_extra_info): Add 'self' argument.
13587         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
13588         argument.
13589         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
13590         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
13591         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
13592         argument.
13593         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
13594         argument.
13595         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
13596         argument.
13597         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
13598         argument.
13599
13600 2014-02-19  Tom Tromey  <tromey@redhat.com>
13601
13602         * target.h (struct target_ops) <to_program_signals>: Add argument.
13603         * target.c (target_program_signals): Add argument.
13604         * remote.c (remote_program_signals): Add 'self' argument.
13605
13606 2014-02-19  Tom Tromey  <tromey@redhat.com>
13607
13608         * target.h (struct target_ops) <to_pass_signals>: Add argument.
13609         * target.c (target_pass_signals): Add argument.
13610         * remote.c (remote_pass_signals): Add 'self' argument.
13611         (remote_start_remote): Update.
13612         * procfs.c (procfs_pass_signals): Add 'self' argument.
13613         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
13614         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
13615         (linux_nat_create_inferior, linux_nat_attach): Update.
13616
13617 2014-02-19  Tom Tromey  <tromey@redhat.com>
13618
13619         * windows-nat.c (windows_can_run): Add 'self' argument.
13620         * target.h (struct target_ops) <to_can_run>: Add argument.
13621         (target_can_run): Add argument.
13622         * target.c (debug_to_can_run): Add argument.
13623         (update_current_target): Update.
13624         * nto-procfs.c (procfs_can_run): Add 'self' argument.
13625         * inf-child.c (inf_child_can_run): Add 'self' argument.
13626         * go32-nat.c (go32_can_run): Add 'self' argument.
13627
13628 2014-02-19  Tom Tromey  <tromey@redhat.com>
13629
13630         * target.h (struct target_ops) <to_has_exited>: Add argument.
13631         (target_has_exited): Add argument.
13632         * target.c (debug_to_has_exited): Add argument.
13633         (update_current_target): Update.
13634
13635 2014-02-19  Tom Tromey  <tromey@redhat.com>
13636
13637         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
13638         argument.
13639         (target_set_syscall_catchpoint): Add argument.
13640         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
13641         argument.
13642         * target.c (update_current_target): Update.
13643
13644 2014-02-19  Tom Tromey  <tromey@redhat.com>
13645
13646         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
13647         argument.
13648         (target_remove_exec_catchpoint): Add argument.
13649         * target.c (debug_to_remove_exec_catchpoint): Add argument.
13650         (update_current_target): Update.
13651         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
13652         argument.
13653
13654 2014-02-19  Tom Tromey  <tromey@redhat.com>
13655
13656         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
13657         argument.
13658         (target_insert_exec_catchpoint): Add argument.
13659         * target.c (debug_to_insert_exec_catchpoint): Add argument.
13660         (update_current_target): Update.
13661         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
13662         argument.
13663
13664 2014-02-19  Tom Tromey  <tromey@redhat.com>
13665
13666         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
13667         argument.
13668         (target_remove_vfork_catchpoint): Add argument.
13669         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
13670         (update_current_target): Update.
13671         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
13672         argument.
13673
13674 2014-02-19  Tom Tromey  <tromey@redhat.com>
13675
13676         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
13677         argument.
13678         (target_insert_vfork_catchpoint): Add argument.
13679         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
13680         (update_current_target): Update.
13681         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
13682         argument.
13683
13684 2014-02-19  Tom Tromey  <tromey@redhat.com>
13685
13686         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
13687         argument.
13688         (target_remove_fork_catchpoint): Add argument.
13689         * target.c (debug_to_remove_fork_catchpoint): Add argument.
13690         (update_current_target): Update.
13691         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
13692         argument.
13693
13694 2014-02-19  Tom Tromey  <tromey@redhat.com>
13695
13696         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
13697         argument.
13698         (target_insert_fork_catchpoint): Add argument.
13699         * target.c (debug_to_insert_fork_catchpoint): Add argument.
13700         (update_current_target): Update.
13701         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
13702         argument.
13703
13704 2014-02-19  Tom Tromey  <tromey@redhat.com>
13705
13706         * target.h (struct target_ops) <to_post_startup_inferior>: Add
13707         argument.
13708         (target_post_startup_inferior): Add argument.
13709         * target.c (debug_to_post_startup_inferior): Add argument.
13710         (update_current_target): Update.
13711         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
13712         argument.
13713         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
13714         argument.
13715         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
13716         argument.
13717         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
13718         argument.
13719         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
13720         'self' argument.
13721         (super_post_startup_inferior): Likewise.
13722         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
13723         'self' argument.
13724         (super_post_startup_inferior): Likewise.
13725         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
13726         Add 'self' argument.
13727         (super_post_startup_inferior): Likewise.
13728
13729 2014-02-19  Tom Tromey  <tromey@redhat.com>
13730
13731         * target.h (struct target_ops) <to_load>: Add argument.
13732         * target.c (target_load): Add argument.
13733         (debug_to_load): Add argument.
13734         (update_current_target): Update.
13735         * remote.c (remote_load): Add 'self' argument.
13736         * remote-sim.c (gdbsim_load): Add 'self' argument.
13737         * remote-mips.c (mips_load): Add 'self' argument.
13738         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
13739         * monitor.c (monitor_load): Add 'self' argument.
13740         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
13741
13742 2014-02-19  Tom Tromey  <tromey@redhat.com>
13743
13744         * target.h (struct target_ops) <to_terminal_info>: Add argument.
13745         (target_terminal_info): Add argument.
13746         * target.c (debug_to_terminal_info): Add argument.
13747         (default_terminal_info): Likewise.
13748         * inflow.c (child_terminal_info): Add 'self' argument.
13749         * inferior.h (child_terminal_info): Add 'self' argument.
13750         * go32-nat.c (go32_terminal_info): Add 'self' argument.
13751
13752 2014-02-19  Tom Tromey  <tromey@redhat.com>
13753
13754         * target.h (struct target_ops) <to_terminal_save_ours>: Add
13755         argument.
13756         (target_terminal_save_ours): Add argument.
13757         * target.c (debug_to_terminal_save_ours): Add argument.
13758         (update_current_target): Update.
13759         * inflow.c (terminal_save_ours): Add 'self' argument.
13760         * inferior.h (terminal_save_ours): Add 'self' argument.
13761
13762 2014-02-19  Tom Tromey  <tromey@redhat.com>
13763
13764         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
13765         (target_terminal_ours): Add argument.
13766         * target.c (debug_to_terminal_ours): Add argument.
13767         (update_current_target): Update.
13768         * remote.c (remote_terminal_ours): Add 'self' argument.
13769         (remote_close): Update.
13770         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
13771         * inflow.c (terminal_ours): Add 'self' argument.
13772         * inferior.h (terminal_ours): Add 'self' argument.
13773         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13774
13775 2014-02-19  Pedro Alves  <palves@redhat.com>
13776             Tom Tromey  <tromey@redhat.com>
13777
13778         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
13779         argument.
13780         (target_terminal_ours_for_output): Add argument.
13781         * target.c (debug_to_terminal_ours_for_output): Add argument.
13782         (update_current_target): Update.
13783         * inflow.c (terminal_ours_for_output): Add 'self' argument.
13784         * inferior.h (terminal_ours_for_output): Add 'self' argument.
13785         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
13786
13787 2014-02-19  Tom Tromey  <tromey@redhat.com>
13788
13789         * target.h (struct target_ops) <to_terminal_inferior>: Add
13790         argument.
13791         * target.c (target_terminal_inferior): Add argument.
13792         (update_current_target): Update.
13793         * remote.c (remote_terminal_inferior): Add 'self' argument.
13794         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
13795         * inflow.c (terminal_inferior): Add 'self' argument.
13796         * inferior.h (terminal_inferior): Add 'self' argument.
13797         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
13798         (go32_terminal_inferior): Add 'self' argument.
13799
13800 2014-02-19  Tom Tromey  <tromey@redhat.com>
13801
13802         * target.h (struct target_ops) <to_terminal_init>: Add argument.
13803         (target_terminal_init): Add argument.
13804         * target.c (debug_to_terminal_init): Add argument.
13805         (update_current_target): Update.
13806         * inflow.c (terminal_init_inferior): Add 'self' argument.
13807         * inferior.h (terminal_init_inferior): Add 'self' argument.
13808         * go32-nat.c (go32_terminal_init): Add 'self' argument.
13809         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13810
13811 2014-02-19  Tom Tromey  <tromey@redhat.com>
13812
13813         * target.h (struct target_ops)
13814         <to_can_accel_watchpoint_condition>: Add argument.
13815         (target_can_accel_watchpoint_condition): Add argument.
13816         * target.c (debug_to_can_accel_watchpoint_condition): Add
13817         argument.
13818         (update_current_target): Update.
13819         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13820         'self' argument.
13821
13822 2014-02-19  Tom Tromey  <tromey@redhat.com>
13823
13824         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13825         Add argument.
13826         (target_region_ok_for_hw_watchpoint): Add argument.
13827         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13828         (default_region_ok_for_hw_watchpoint): Add argument.
13829         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13830         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13831         argument.
13832         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13833         argument.
13834         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13835         argument.
13836         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13837         'self' argument.
13838         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13839         'self' argument.
13840         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13841         'self' argument.
13842         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13843         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13844         'self' argument.
13845         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13846         Add 'self' argument.
13847
13848 2014-02-19  Tom Tromey  <tromey@redhat.com>
13849
13850         * target.h (struct target_ops) <to_insert_watchpoint>: Add
13851         argument.
13852         (target_insert_watchpoint): Add argument.
13853         * target.c (debug_to_insert_watchpoint): Add argument.
13854         (update_current_target): Update.
13855         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13856         * remote.c (remote_insert_watchpoint): Add 'self' argument.
13857         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13858         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13859         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13860         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13861         argument.
13862         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13863         (procfs_insert_hw_watchpoint): Add 'self' argument.
13864         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13865         argument.
13866         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13867         argument.
13868         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13869         argument.
13870         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13871         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13872         argument.
13873         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13874         'self' argument.
13875
13876 2014-02-19  Tom Tromey  <tromey@redhat.com>
13877
13878         * target.h (struct target_ops) <to_remove_watchpoint>: Add
13879         argument.
13880         (target_remove_watchpoint): Add argument.
13881         * target.c (debug_to_remove_watchpoint): Add argument.
13882         (update_current_target): Update.
13883         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13884         * remote.c (remote_remove_watchpoint): Add 'self' argument.
13885         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13886         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13887         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13888         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13889         argument.
13890         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13891         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13892         argument.
13893         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13894         argument.
13895         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13896         argument.
13897         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13898         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13899         argument.
13900         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13901         'self' argument.
13902
13903 2014-02-19  Tom Tromey  <tromey@redhat.com>
13904
13905         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13906         argument.
13907         (target_remove_hw_breakpoint): Add argument.
13908         * target.c (debug_to_remove_hw_breakpoint): Add argument.
13909         (update_current_target): Update.
13910         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13911         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13912         argument.
13913         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13914         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13915         argument.
13916         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13917         'self' argument.
13918
13919 2014-02-19  Tom Tromey  <tromey@redhat.com>
13920
13921         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13922         argument.
13923         (target_insert_hw_breakpoint): Add argument.
13924         * target.c (debug_to_insert_hw_breakpoint): Add argument.
13925         (update_current_target): Update.
13926         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13927         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13928         argument.
13929         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13930         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13931         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13932         argument.
13933         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13934         'self' argument.
13935
13936 2014-02-19  Tom Tromey  <tromey@redhat.com>
13937
13938         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13939         argument.
13940         (target_can_use_hardware_watchpoint): Add argument.
13941         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13942         (update_current_target): Update.
13943         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13944         argument.
13945         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13946         argument.
13947         * remote.c (remote_check_watch_resources): Add 'self' argument.
13948         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13949         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13950         argument.
13951         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13952         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13953         argument.
13954         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13955         argument.
13956         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13957         argument.
13958         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13959         argument.
13960         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13961         argument.
13962         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13963         argument.
13964         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13965         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13966         argument.
13967         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13968         'self' argument.
13969
13970 2014-02-19  Tom Tromey  <tromey@redhat.com>
13971
13972         * target.h (struct target_ops) <to_post_attach>: Add argument.
13973         (target_post_attach): Add argument.
13974         * target.c (debug_to_post_attach): Add argument.
13975         (update_current_target): Update.
13976         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13977         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13978         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13979         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13980         * inf-child.c (inf_child_post_attach): Add 'self' argument.
13981
13982 2014-02-19  Tom Tromey  <tromey@redhat.com>
13983
13984         * windows-nat.c (windows_close): Add 'self' argument.
13985         * tracepoint.c (tfile_close): Add 'self' argument.
13986         * target.h (struct target_ops) <to_close>: Add argument.
13987         * target.c (target_close): Add argument.
13988         (update_current_target): Update.
13989         * remote.c (remote_close): Add 'self' argument.
13990         * remote-sim.c (gdbsim_close): Add 'self' argument.
13991         * remote-mips.c (mips_close): Add 'self' argument.
13992         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13993         * record-full.c (record_full_close): Add 'self' argument.
13994         * record-btrace.c (record_btrace_close): Add 'self' argument.
13995         * monitor.h (monitor_close): Add 'self' argument.
13996         * monitor.c (monitor_close): Add 'self' argument.
13997         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13998         * linux-nat.c (linux_nat_close): Add argument.
13999         * go32-nat.c (go32_close): Add 'self' argument.
14000         * exec.c (exec_close_1): Add 'self' argument.
14001         * ctf.c (ctf_close): Add 'self' argument.
14002         * corelow.c (core_close): Add 'self' argument.
14003         (core_close_cleanup): Update.
14004         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
14005         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
14006
14007 2014-02-19  Tom Tromey  <tromey@redhat.com>
14008
14009         * remote.c (remote_load): New function.
14010         (init_remote_ops): Use it.
14011
14012 2014-02-19  Tom Tromey  <tromey@redhat.com>
14013
14014         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
14015         argument.
14016         * common/linux-btrace.h (linux_supports_btrace): Update.
14017         * remote.c (remote_supports_btrace): Add "self" argument.
14018         * target-delegates.c: Rebuild.
14019         * target.c (target_supports_btrace): Remove.
14020         * target.h (struct target_ops) <to_supports_btrace>: Add
14021         target_ops argument.
14022         (target_supports_btrace): New define.
14023
14024 2014-02-19  Tom Tromey  <tromey@redhat.com>
14025
14026         * record-full.c (record_full_beneath_to_resume_ops)
14027         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
14028         (record_full_beneath_to_wait)
14029         (record_full_beneath_to_store_registers_ops)
14030         (record_full_beneath_to_store_registers)
14031         (record_full_beneath_to_xfer_partial_ops)
14032         (record_full_beneath_to_xfer_partial)
14033         (record_full_beneath_to_insert_breakpoint_ops)
14034         (record_full_beneath_to_insert_breakpoint)
14035         (record_full_beneath_to_remove_breakpoint_ops)
14036         (record_full_beneath_to_remove_breakpoint)
14037         (record_full_beneath_to_stopped_by_watchpoint)
14038         (record_full_beneath_to_stopped_data_address)
14039         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
14040         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
14041         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
14042         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
14043         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
14044         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
14045         (tmp_to_stopped_data_address, tmp_to_async): Remove.
14046         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
14047         (record_full_resume, record_full_wait_1)
14048         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
14049         (record_full_store_registers, record_full_xfer_partial)
14050         (record_full_insert_breakpoint, record_full_remove_breakpoint)
14051         (record_full_async, record_full_core_xfer_partial): Use target
14052         delegation.
14053         * target-delegates.c: Rebuild.
14054         * target.c (current_xfer_partial): Remove.
14055         (update_current_target): Do not INHERIT or de_fault
14056         to_insert_breakpoint, to_remove_breakpoint,
14057         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
14058         to_is_async_p, to_async.  Do not set to_xfer_partial field.
14059         (default_xfer_partial): Simplify.
14060         (current_xfer_partial): Remove.
14061         (target_wait, target_resume): Simplify.
14062         (find_default_can_async_p, find_default_is_async_p): Update.
14063         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
14064         to_xfer_partial, to_stopped_by_watchpoint,
14065         to_stopped_data_address.
14066         (target_store_registers): Simplify.
14067         (forward_target_remove_breakpoint)
14068         (forward_target_insert_breakpoint): Remove.
14069         (target_remove_breakpoint, target_insert_breakpoint)
14070         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
14071         * target.h (struct target_ops) <to_resume, to_wait,
14072         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
14073         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
14074         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
14075         markup.
14076         (forward_target_remove_breakpoint)
14077         (forward_target_insert_breakpoint): Remove.
14078         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
14079         directly.
14080         (record_btrace_insert_breakpoint): Delegate directly.
14081
14082 2014-02-19  Tom Tromey  <tromey@redhat.com>
14083
14084         PR build/7701:
14085         * target-delegates.c: New file.
14086         * target.c: Include target-delegates.c.
14087         (init_dummy_target): Call install_dummy_methods.
14088         (complete_target_initialization): Call install_delegators.
14089         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
14090         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
14091         * make-target-delegates: New file.
14092
14093 2014-02-19  Tom Tromey  <tromey@redhat.com>
14094
14095         * record.c (find_record_target): Use find_target_at.
14096         * target.c (find_target_at): New function.
14097         * target.h (find_target_at): Declare.
14098
14099 2014-02-19  Tom Tromey  <tromey@redhat.com>
14100
14101         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
14102         Add 'ops' argument.
14103         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
14104         'ops' argument.
14105         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
14106         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
14107         'ops' argument.
14108         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
14109         argument.
14110         * linux-nat.c (save_sigtrap): Update.
14111         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
14112         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
14113         (linux_nat_close): Update.
14114         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
14115         argument.
14116         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
14117         argument.
14118         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
14119         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
14120         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
14121         (tmp_to_async): Add 'ops' argument.
14122         (record_full_stopped_by_watchpoint, record_full_async)
14123         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
14124         argument.
14125         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
14126         (m32r_stopped_by_watchpoint): Add 'ops' argument.
14127         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
14128         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
14129         (remote_is_async_p, remote_async): Add 'ops' argument.
14130         (remote_stopped_data_address): Update.
14131         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
14132         * target.c (update_current_target)
14133         (find_default_can_async_p, find_default_is_async_p): Update.
14134         (init_dummy_target): Update.
14135         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
14136         * target.h (struct target_ops) <to_stopped_by_watchpoint,
14137         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
14138         (target_can_async_p, target_is_async_p, target_async)
14139         (target_stopped_by_watchpoint): Update.
14140
14141 2014-02-19  Yao Qi  <yao@codesourcery.com>
14142
14143         PR gdb/16220
14144         * gdbarch.sh: Remove startup_gdbarch.
14145         * gdbarch.c: Regenerated.
14146         * gdbarch.h: Likewise.
14147
14148 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
14149
14150         * rl78-tdep.c (rl78_g10_register_name): New function.
14151         (rl78_return_value): Add g10 support.
14152         (rl78_gdbarch_init): Register rl78_g10_register_name for the
14153         g10.
14154
14155 2014-02-17  Doug Evans  <xdje42@gmail.com>
14156
14157         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
14158         (SUBDIR_GUILE_SRCS): Ditto.
14159         (scm-gsmob.o): Ditto.
14160
14161 2014-02-17  Yao Qi  <yao@codesourcery.com>
14162
14163         * gnu-nat.c (ILL_RPC): Declare defined function.
14164
14165 2014-02-17  Yao Qi  <yao@codesourcery.com>
14166
14167         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
14168         mach_msg_type_number_t.
14169         (gnu_write_inferior): Likewise.
14170
14171 2014-02-17  Yao Qi  <yao@codesourcery.com>
14172
14173         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
14174         in format string.
14175         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
14176         (inf_validate_procs, inf_signal): Likewise.
14177         (S_exception_raise_request): Likewise.
14178         (do_mach_notify_dead_name): Likewise.
14179         (steal_exc_port): Likewise.
14180         (gnu_read_inferior): Change 'copy_count''s type to
14181         mach_msg_type_number_t.
14182         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
14183         format string.
14184
14185 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
14186
14187         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
14188         flag.  Adjust all users; in particular...
14189         (gnu_wait): ..., don't decrement its value in here...
14190         (gnu_create_inferior): ..., and instead set the flag in here,
14191         around the startup_inferior call, and call that one with
14192         START_INFERIOR_TRAPS_EXPECTED.
14193
14194         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
14195         (ILL_RPC): ... new macro.
14196         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
14197         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
14198         (do_mach_notify_send_once, S_proc_setmsgport_reply)
14199         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
14200         functions with ILL_RPC macro.
14201         (S_proc_pid2task_reply, S_proc_task2pid_reply)
14202         (S_proc_task2proc_reply, S_proc_proc2task_reply)
14203         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
14204         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
14205         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
14206         (S_proc_getlogin_reply, S_proc_getsid_reply)
14207         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
14208         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
14209         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
14210         (S_proc_getnports_reply, S_proc_is_important_reply)
14211         (S_proc_get_code_reply): New stub functions, generated with
14212         ILL_RPC macro.
14213
14214         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
14215         collected the type check structures.
14216
14217         * reply_mig_hack.awk: Don't expect to see the auto keyword.
14218
14219 2014-02-14  Doug Evans  <dje@google.com>
14220
14221         * target.c (target_write_partial): Fix result type.
14222
14223 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
14224
14225         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
14226         the proper offsets to access fpregset_t.
14227
14228 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
14229
14230         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
14231         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
14232         * h8300-tdep.c (setmachinelist): Remove global.
14233         * hppa-tdep.c (hppa_sigtramp): Remove global.
14234         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
14235         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
14236         * ravenscar-thread.c (update_target_observer): Remove global.
14237         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
14238
14239 2014-02-12  Tom Tromey  <tromey@redhat.com>
14240
14241         * common/rsp-low.c: Update comments.
14242         * common/rsp-low.h: Update comments.
14243
14244 2014-02-12  Tom Tromey  <tromey@redhat.com>
14245
14246         * common/rsp-low.c (convert_ascii_to_int): Remove.
14247         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
14248
14249 2014-02-12  Tom Tromey  <tromey@redhat.com>
14250
14251         * common/rsp-low.h (unhexify): Don't declare.
14252         * common/rsp-low.c (unhexify): Remove.
14253
14254 2014-02-12  Tom Tromey  <tromey@redhat.com>
14255
14256         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
14257         * common/rsp-low.c (convert_int_to_ascii): Remove.
14258
14259 2014-02-12  Tom Tromey  <tromey@redhat.com>
14260
14261         * common/rsp-low.h (hexify): Don't declare.
14262         * common/rsp-low.c (hexify): Remove.
14263
14264 2014-02-12  Tom Tromey  <tromey@redhat.com>
14265
14266         * common/rsp-low.c (hexify): Never take strlen of argument.
14267
14268 2014-02-12  Tom Tromey  <tromey@redhat.com>
14269
14270         * common/rsp-low.c (bin2hex): Never take strlen of argument.
14271         * remote.c (extended_remote_run, remote_rcmd)
14272         (remote_download_trace_state_variable, remote_save_trace_data)
14273         (remote_set_trace_notes): Update.
14274         * tracepoint.c (encode_source_string, tfile_write_status)
14275         (tfile_write_uploaded_tsv): Update.
14276
14277 2014-02-12  Tom Tromey  <tromey@redhat.com>
14278
14279         * tracepoint.c: Include rsp-low.h.
14280         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
14281         * remote.c: Include rsp-low.h.
14282         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
14283         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
14284         (remote_unescape_input): Move to common/rsp-low.c.
14285         * common/rsp-low.h: New file.
14286         * common/rsp-low.c: New file.
14287         * Makefile.in (SFILES): Add common/rsp-low.c.
14288         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
14289         (COMMON_OBS): Add rsp-low.o.
14290         (rsp-low.o): New target.
14291
14292 2014-02-12  Tom Tromey  <tromey@redhat.com>
14293
14294         * utils.h: Include print-utils.h.
14295         (host_address_to_string, plongest, pulongest, phex, phex_nz)
14296         (int_string, core_addr_to_string, core_addr_to_string_nz)
14297         (hex_string, hex_string_custom): Don't declare.
14298         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
14299         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
14300         (hex_string_custom, int_string, core_addr_to_string)
14301         (core_addr_to_string_nz, host_address_to_string): Move to
14302         common/print-utils.c.
14303         * common/print-utils.h: New file.
14304         * common/print-utils.c: New file
14305         * Makefile.in (SFILES): Add common/print-utils.c.
14306         (HFILES_NO_SRCDIR): Add common/print-utils.h.
14307         (COMMON_OBS): Add print-utils.o.
14308         (print-utils.o): New target.
14309
14310 2014-02-12  Tom Tromey  <tromey@redhat.com>
14311
14312         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
14313
14314 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
14315
14316         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
14317
14318 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
14319
14320         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
14321         if a PT_IO ptrace request returns sucessfully but indicates that 0
14322         bytes were transferred.
14323
14324 2014-02-12  Pedro Alves  <palves@redhat.com>
14325             Kevin Buettner <kevinb@redhat.com>
14326
14327         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
14328         TYPE_INSTANCE_FLAG_CODE_SPACE.
14329
14330 2014-02-12  Pedro Alves  <palves@redhat.com>
14331
14332         * h8300-tdep.c (pseudo_from_raw_register)
14333         (raw_from_pseudo_register): New functions.
14334         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
14335         them.
14336
14337 2014-02-12  Pedro Alves  <palves@redhat.com>
14338
14339         * h8300-tdep.c (h8300_register_sim_regno): New function.
14340         (h8300_gdbarch_init): Install h8300_register_sim_regno as
14341         gdbarch_register_sim_regno hook.
14342
14343 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
14344
14345         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
14346
14347 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
14348
14349         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
14350
14351 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
14352
14353         * obsd-tdep.h (obsd_init_abi): New prototype.
14354         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
14355         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
14356         (obsd_init_abi): New functions.
14357         * i386obsd-tdep.c: Include "obsd-tdep.h".
14358         (i386obsd_init_abi): Call obsd_init_abi.
14359         * amd64obsd-tdep.c: Include "obsd-tdep.h".
14360         (amd64obsd_init_abi): Call obsd_init_abi.
14361         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
14362         obsd-tdep.c to gdb_target_obs.
14363
14364 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
14365
14366         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
14367         double float arguments to 16-byte in the argument slots.
14368
14369 2014-02-11  Doug Evans  <xdje42@gmail.com>
14370
14371         * configure.ac: Don't crash if pkg-config is not found and guile
14372         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
14373         in guile checks.
14374         * configure: Regenerate.
14375
14376 2014-02-11  Yao Qi  <yao@codesourcery.com>
14377
14378         * aix-thread.c (aix_thread_xfer_partial): Update comments.
14379         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
14380         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14381         * gnu-nat.c (gnu_xfer_memory): Likewise.
14382         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
14383         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14384         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14385         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14386
14387 2014-02-11  Yao Qi  <yao@codesourcery.com>
14388
14389         * target.h (enum target_xfer_error): Rename to ...
14390         (enum target_xfer_status): ... it.  New.  All users updated.
14391         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
14392         New.
14393         (TARGET_XFER_STATUS_ERROR_P): New macro.
14394         (target_xfer_error_to_string): Remove declaration.
14395         (target_xfer_status_to_string): Declare.
14396         (target_xfer_partial_ftype): Adjust it.
14397         (struct target_ops) <to_xfer_partial>: Return
14398         target_xfer_status.  Add argument xfered_len.  Update
14399         comments.
14400         * target.c (target_xfer_error_to_string): Rename to ...
14401         (target_xfer_status_to_string): ... it.  New.  All callers
14402         updated.
14403         (target_read_live_memory): Likewise.  Call target_xfer_partial
14404         instead of target_read.
14405         (memory_xfer_live_readonly_partial): Return
14406         target_xfer_status.  Add argument xfered_len.
14407         (raw_memory_xfer_partial): Likewise.
14408         (memory_xfer_partial_1): Likewise.
14409         (memory_xfer_partial): Likewise.
14410         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
14411         properly.  Update debug message.
14412         (default_xfer_partial, current_xfer_partial): Likewise.
14413         (target_write_partial): Likewise.
14414         (target_read_partial): Likewise.  All callers updated.
14415         (read_whatever_is_readable): Likewise.
14416         (target_write_with_progress): Likewise.
14417         (target_read_alloc_1): Likewise.
14418
14419         * aix-thread.c (aix_thread_xfer_partial): Likewise.
14420         * auxv.c (procfs_xfer_auxv): Likewise.
14421         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
14422         * bfd-target.c (target_bfd_xfer_partial): Likewise.
14423         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14424         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
14425         * corefile.c (read_memory): Adjust.
14426         * corelow.c (core_xfer_partial): Likewise.
14427         * ctf.c (ctf_xfer_partial): Likewise.
14428         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
14429         updated.
14430         (darwin_xfer_partial): Likewise.
14431         * exec.c (section_table_xfer_memory_partial): Likewise.  All
14432         callers updated.
14433         (exec_xfer_partial): Likewise.
14434         * exec.h (section_table_xfer_memory_partial): Update
14435         declaration.
14436         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
14437         negative.
14438         (gnu_xfer_partial): Likewise.
14439         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
14440         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
14441         (ia64_hpux_xfer_solib_got): Likewise.
14442         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
14443         type of 'partial_len' to ULONGEST.
14444         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14445         * linux-nat.c (linux_xfer_siginfo ): Likewise.
14446         (linux_nat_xfer_partial): Likewise.
14447         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
14448         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
14449         * monitor.c (monitor_xfer_memory): Likewise.
14450         (monitor_xfer_partial): Likewise.
14451         * procfs.c (procfs_xfer_partial): Likewise.
14452         * record-btrace.c (record_btrace_xfer_partial): Likewise.
14453         * record-full.c (record_full_xfer_partial): Likewise.
14454         (record_full_core_xfer_partial): Likewise.
14455         * remote-sim.c (gdbsim_xfer_memory): Likewise.
14456         (gdbsim_xfer_partial): Likewise.
14457         * remote.c (remote_write_bytes_aux): Likewise.  All callers
14458         updated.
14459         (remote_write_bytes, remote_read_bytes): Likewise.  All
14460         callers updated.
14461         (remote_flash_erase): Likewise.  All callers updated.
14462         (remote_write_qxfer): Likewise.  All callers updated.
14463         (remote_read_qxfer): Likewise.  All callers updated.
14464         (remote_xfer_partial): Likewise.
14465         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14466         (rs6000_xfer_shared_libraries): Likewise.
14467         * sol-thread.c (sol_thread_xfer_partial): Likewise.
14468         (sol_thread_xfer_partial): Likewise.
14469         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14470         (sparc_xfer_partial): Likewise.
14471         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
14472         updated.
14473         (spu_xfer_partial): Likewise.
14474         * spu-multiarch.c (spu_xfer_partial): Likewise.
14475         * tracepoint.c (tfile_xfer_partial): Likewise.
14476         * windows-nat.c (windows_xfer_memory): Likewise.
14477         (windows_xfer_shared_libraries): Likewise.
14478         (windows_xfer_partial): Likewise.
14479         * valprint.c: Replace 'target_xfer_error' with
14480         'target_xfer_status' in comments.
14481
14482 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
14483
14484         Checked in by Joel Brobecker <brobecker@adacore.com>.
14485         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
14486
14487 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
14488
14489         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
14490         function parameters.
14491
14492 2014-02-10  Will Newton  <will.newton@linaro.org>
14493
14494         * elfread.c (elf_rel_plt_read): Look for a .got section if
14495         looking up .got.plt fails.
14496         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
14497         on address passed to elf_gnu_ifunc_record_cache.
14498         (elf_gnu_ifunc_resolve_addr): Likewise.
14499         (elf_gnu_ifunc_resolver_return_stop): Likewise.
14500
14501 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
14502
14503         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
14504         (X_RETTURN): New macro.
14505         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
14506
14507         * sparc64-tdep.c (sparc64_init_abi): Hook
14508         sparc_in_function_epilogue_p.
14509
14510 2014-02-10  Gary Benson  <gbenson@redhat.com>
14511
14512         * symfile-debug.c (debug_qf_expand_symtabs_matching):
14513         Rename name_matcher to symbol_matcher.
14514
14515 2014-02-10  Gary Benson  <gbenson@redhat.com>
14516
14517         * symfile-debug.c (debug_qf_expand_symtabs_matching):
14518         Use expand_symtabs_file_matcher_ftype and
14519         expand_symtabs_symbol_matcher_ftype.
14520
14521 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
14522
14523         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
14524         (struct ada_symbol_cache): New.
14525         (ada_free_symbol_cache): Forward declare.
14526         (struct ada_pspace_data): New.
14527         (ada_pspace_data_handle): New static global.
14528         (get_ada_pspace_data, ada_pspace_data_cleanup)
14529         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
14530         (cache_space, cache): Delete, now folded inside struct
14531         ada_pspace_data.
14532         (ada_get_symbol_cache): New function.
14533         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
14534         implementation.
14535         (_initialize_ada_language): Remove initialization of cache_space.
14536         Move call to observer_attach_inferior_exit up, grouping it
14537         with the other observer registrations inside this function.
14538         Rename command to be more general.  Add call to
14539         register_program_space_data_with_cleanup.
14540
14541 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
14542
14543         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
14544         ada_new_objfile_observer.
14545         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
14546         (_initialize_tasks): Update uses of ada_new_objfile_observer
14547         and ada_tasks_normal_stop_observer.
14548
14549 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
14550
14551         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
14552         returned by the 'Length attribute to integer.
14553
14554 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
14555
14556         * ada-lang.c (_initialize_ada_language): Initialize
14557         cache_space obstack.
14558
14559 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
14560
14561         * ada-lang.c (HASH_SIZE): New macro.
14562         (struct cache_entry): New type.
14563         (cache_space, cache): New static globals.
14564         (ada_clear_symbol_cache, find_entry): New functions.
14565         (lookup_cached_symbol, cache_symbol): Implement.
14566         (ada_new_objfile_observer, ada_free_objfile_observer): New.
14567         (_initialize_ada_language): Attach ada_new_objfile_observer
14568         and ada_free_objfile_observer.
14569
14570 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
14571
14572         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
14573         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
14574         struct block * parameter.
14575         (ada_lookup_symbol_list_worker): Constify local variable "block".
14576         Remove cast which is no longer necessary.
14577
14578 2014-02-10  Doug Evans  <xdje42@gmail.com>
14579
14580         Add Guile as an extension language.
14581         * NEWS: Mention Guile scripting.
14582         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
14583         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
14584         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
14585         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
14586         (CLIBS): Add GUILE_LIBS.
14587         (install-guile): New rule.
14588         (guile.o): New rule.
14589         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
14590         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
14591         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
14592         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
14593         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
14594         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
14595         (scm-type.o, scm-utils.o, scm-value.o): New rules.
14596         * configure.ac: New option --with-guile.
14597         * configure: Regenerate.
14598         * config.in: Regenerate.
14599         * auto-load.c: Remove #include "python/python.h".  Add #include
14600         "gdb/section-scripts.h".
14601         (source_section_scripts): Handle Guile scripts.
14602         (_initialize_auto_load): Add name of Guile objfile script to
14603         scripts-directory help text.
14604         * breakpoint.c (condition_command): Tweak comment to include Scheme.
14605         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
14606         (struct breakpoint): New member scm_bp_object.
14607         * defs.h (enum command_control_type): New value guile_control.
14608         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
14609         "extension.h".
14610         (show_user): Update comment.
14611         (_initialize_cli_cmds): Update help text for "show user".  Update help
14612         text for max-user-call-depth.
14613         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
14614         "extension.h".
14615         (multi_line_command_p): Add guile_control.
14616         (print_command_lines): Handle guile_control.
14617         (execute_control_command, recurse_read_control_structure): Ditto.
14618         (process_next_line): Recognize "guile" commands.
14619         * disasm.c (gdb_disassemble_info): Make non-static.
14620         * disasm.h: #include "dis-asm.h".
14621         (struct gdbarch): Add forward decl.
14622         (gdb_disassemble_info): Declare.
14623         * extension.c: #include "guile/guile.h".
14624         (extension_languages): Add guile.
14625         (get_ext_lang_defn): Handle EXT_LANG_GDB.
14626         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
14627         * gdbtypes.c (get_unsigned_type_max): New function.
14628         (get_signed_type_minmax): New function.
14629         * gdbtypes.h (get_unsigned_type_max): Declare.
14630         (get_signed_type_minmax): Declare.
14631         * guile/README: New file.
14632         * guile/guile-internal.h: New file.
14633         * guile/guile.c: New file.
14634         * guile/guile.h: New file.
14635         * guile/scm-arch.c: New file.
14636         * guile/scm-auto-load.c: New file.
14637         * guile/scm-block.c: New file.
14638         * guile/scm-breakpoint.c: New file.
14639         * guile/scm-disasm.c: New file.
14640         * guile/scm-exception.c: New file.
14641         * guile/scm-frame.c: New file.
14642         * guile/scm-gsmob.c: New file.
14643         * guile/scm-iterator.c: New file.
14644         * guile/scm-lazy-string.c: New file.
14645         * guile/scm-math.c: New file.
14646         * guile/scm-objfile.c: New file.
14647         * guile/scm-ports.c: New file.
14648         * guile/scm-pretty-print.c: New file.
14649         * guile/scm-safe-call.c: New file.
14650         * guile/scm-string.c: New file.
14651         * guile/scm-symbol.c: New file.
14652         * guile/scm-symtab.c: New file.
14653         * guile/scm-type.c: New file.
14654         * guile/scm-utils.c: New file.
14655         * guile/scm-value.c: New file.
14656         * guile/lib/gdb.scm: New file.
14657         * guile/lib/gdb/boot.scm: New file.
14658         * guile/lib/gdb/experimental.scm: New file.
14659         * guile/lib/gdb/init.scm: New file.
14660         * guile/lib/gdb/iterator.scm: New file.
14661         * guile/lib/gdb/printing.scm: New file.
14662         * guile/lib/gdb/types.scm: New file.
14663         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
14664         (VPATH): Add $(GUILE_SRCDIR).
14665         (GUILE_DIR): New variable.
14666         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
14667         (all): Add stamp-guile dependency.
14668         (stamp-guile): New rule.
14669         (clean-guile, install-guile, uninstall-guile): New rules.
14670         (install-only): Add install-guile dependency.
14671         (uninstall): Add uninstall-guile dependency.
14672         (clean): Add clean-guile dependency.
14673
14674 2014-02-09  Doug Evans  <xdje42@gmail.com>
14675
14676         Revert this patch (which I approved, mea culpa).
14677
14678         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
14679
14680         * Makefile.in (all-lib): Remove.
14681         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14682
14683 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
14684
14685         Fix Python stack corruption.
14686         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
14687         gdb_py_longest.
14688
14689 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
14690
14691         * Makefile.in (all-lib): Remove.
14692         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
14693
14694 2014-02-07  Doug Evans  <dje@google.com>
14695
14696         * extension-priv.h (extension_language_script_ops): Add comment.
14697         (extension_language_ops): Add comment.
14698         (active_ext_lang_state): Fix typo in comment.
14699
14700 2014-02-07  Pedro Alves  <palves@redhat.com>
14701
14702         PR breakpoints/16292
14703         * infrun.c (handle_signal_stop) <signal arrives while stepping
14704         over a breakpoint>: Switch back to the stepping thread.
14705
14706 2014-02-07  Yao Qi  <yao@codesourcery.com>
14707
14708         * target.c (target_xfer_partial): Return zero if LEN is zero.
14709
14710 2014-02-07  Yao Qi  <yao@codesourcery.com>
14711
14712         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
14713         (ld_so_xfer_auxv): Likewise.
14714         * bfd-target.c (target_bfd_xfer_partial): Likewise.
14715         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14716         * corelow.c (core_xfer_partial): Likewise.
14717         * ctf.c (ctf_xfer_partial): Likewise.
14718         * darwin-nat.c (darwin_read_dyld_info): Likewise.
14719         (darwin_xfer_partial): Likewise.
14720         * exec.c (exec_xfer_partial): Likewise.
14721         * gnu-nat.c (gnu_xfer_partial): Likewise.
14722         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
14723         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
14724         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
14725         * linux-nat.c (linux_xfer_siginfo): Likewise.
14726         (linux_proc_xfer_spu): Likewise.
14727         * procfs.c (procfs_xfer_partial): Likewise.
14728         * record-full.c (record_full_xfer_partial): Likewise.
14729         (record_full_core_xfer_partial): Likewise.
14730         * remote-sim.c (gdbsim_xfer_partial): Likewise.
14731         * remote.c (remote_write_qxfer): Likewise.
14732         (remote_write_qxfer, remote_read_qxfer): Likewise.
14733         (remote_xfer_partial): Likewise.
14734         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14735         (rs6000_xfer_shared_libraries): Likewise.
14736         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14737         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14738         (spu_xfer_partial): Likewise.
14739         * target.c (memory_xfer_partial_1): Likewise.
14740         * tracepoint.c (tfile_xfer_partial): Likewise.
14741         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
14742         (windows_xfer_partial): Likewise.
14743
14744 2014-02-07  Yao Qi  <yao@codesourcery.com>
14745
14746         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
14747         comments.
14748         (core_xfer_shared_libraries_aix): Likewise.
14749         * gdbarch.c, gdbarch.h: Regenerated.
14750         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
14751         ULONGEST.  Change 'len_avail' type to ULONGEST.
14752         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14753         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14754         declaration.
14755         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
14756
14757 2014-02-07  Yao Qi  <yao@codesourcery.com>
14758
14759         * corefile.c (memory_error): Get 'exception' from ERR and pass
14760         'exception' to throw_error.
14761
14762 2014-02-06  Doug Evans  <xdje42@gmail.com>
14763
14764         * configure.ac (libpython checking): Remove all but python.o from
14765         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
14766         * configure: Regenerate.
14767
14768         * Makefile.in (SFILES): Add extension.c.
14769         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
14770         (COMMON_OBS): Add extension.o.
14771         * extension.h: New file.
14772         * extension-priv.h: New file.
14773         * extension.c: New file.
14774
14775         * python/python-internal.h: #include "extension.h".
14776         (gdbpy_auto_load_enabled): Declare.
14777         (gdbpy_apply_val_pretty_printer): Declare.
14778         (gdbpy_apply_frame_filter): Declare.
14779         (gdbpy_preserve_values): Declare.
14780         (gdbpy_breakpoint_cond_says_stop): Declare.
14781         (gdbpy_breakpoint_has_cond): Declare.
14782         (void source_python_script_for_objfile): Delete.
14783         * python/python.c: #include "extension-priv.h".
14784         Delete inclusion of "observer.h".
14785         (extension_language_python): Moved here and renamed from
14786         script_language_python in py-auto-load.c.
14787         Redefined to be of type extension_language_defn.
14788         (python_extension_script_ops): New global.
14789         (python_extension_ops): New global.
14790         (struct python_env): New member previous_active.
14791         (restore_python_env): Call restore_active_ext_lang.
14792         (ensure_python_env): Call set_active_ext_lang.
14793         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
14794         New arg extlang.
14795         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
14796         New arg extlang.
14797         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
14798         New arg extlang.
14799         (gdbpy_eval_from_control_command): Renamed from
14800         eval_python_from_control_command, made static.  New arg extlang.
14801         (gdbpy_source_script) Renamed from source_python_script, made static.
14802         New arg extlang.
14803         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
14804         result to int.  New arg extlang.
14805         (gdbpy_source_objfile_script): Renamed from
14806         source_python_script_for_objfile, made static.  New arg extlang.
14807         (gdbpy_start_type_printers): Renamed from start_type_printers, made
14808         static.  New args extlang, extlang_printers.  Change result type to
14809         "void".
14810         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14811         static.  New arg extlang.  Rename arg printers to extlang_printers
14812         and change type to ext_lang_type_printers *.
14813         (gdbpy_free_type_printers): Renamed from free_type_printers, made
14814         static.  Replace argument arg with extlang, extlang_printers.
14815         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14816         (!HAVE_PYTHON, source_python_script): Delete.
14817         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14818         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14819         (!HAVE_PYTHON, start_type_printers): Delete.
14820         (!HAVE_PYTHON, apply_type_printers): Delete.
14821         (!HAVE_PYTHON, free_type_printers): Delete.
14822         (_initialize_python): Delete call to observer_attach_before_prompt.
14823         (finalize_python): Set/restore active extension language.
14824         (gdbpy_finish_initialization) Renamed from
14825         finish_python_initialization, made static.  New arg extlang.
14826         (gdbpy_initialized): New function.
14827         * python/python.h: #include "extension.h".  Delete #include
14828         "value.h", "mi/mi-cmds.h".
14829         (extension_language_python): Declare.
14830         (GDBPY_AUTO_FILE_NAME): Delete.
14831         (enum py_bt_status): Moved to extension.h and renamed to
14832         ext_lang_bt_status.
14833         (enum frame_filter_flags): Moved to extension.h.
14834         (enum py_frame_args): Moved to extension.h and renamed to
14835         ext_lang_frame_args.
14836         (finish_python_initialization): Delete.
14837         (eval_python_from_control_command): Delete.
14838         (source_python_script): Delete.
14839         (apply_val_pretty_printer): Delete.
14840         (apply_frame_filter): Delete.
14841         (preserve_python_values): Delete.
14842         (gdbpy_script_language_defn): Delete.
14843         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14844         (start_type_printers, apply_type_printers, free_type_printers): Delete.
14845
14846         * auto-load.c: #include "extension.h".
14847         (GDB_AUTO_FILE_NAME): Delete.
14848         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
14849         (script_language_gdb): Delete, moved to extension.c and renamed to
14850         extension_language_gdb.
14851         (source_gdb_script_for_objfile): Delete.
14852         (auto_load_pspace_info): New member unsupported_script_warning_printed.
14853         (loaded_script): Change type of language member to
14854         struct extension_language_defn *.
14855         (init_loaded_scripts_info): Initialize
14856         unsupported_script_warning_printed.
14857         (maybe_add_script): Make static.  Change type of language arg to
14858         struct extension_language_defn *.
14859         (clear_section_scripts): Reset unsupported_script_warning_printed.
14860         (auto_load_objfile_script_1): Rewrite to use extension language API.
14861         (auto_load_objfile_script): Make public.  Remove support-compiled-in
14862         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14863         (source_section_scripts): Rewrite to use extension language API.
14864         (load_auto_scripts_for_objfile): Rewrite to use
14865         auto_load_scripts_for_objfile.
14866         (collect_matching_scripts_data): Change type of language member to
14867         struct extension_language_defn *.
14868         (auto_load_info_scripts): Change type of language arg to
14869         struct extension_language_defn *.
14870         (unsupported_script_warning_print): New function.
14871         (script_not_found_warning_print): Make static.
14872         (_initialize_auto_load): Rewrite construction of scripts-directory
14873         help.
14874         * auto-load.h (struct objfile): Add forward decl.
14875         (struct script_language): Delete.
14876         (struct auto_load_pspace_info): Add forward decl.
14877         (struct extension_language_defn): Add forward decl.
14878         (maybe_add_script): Delete.
14879         (auto_load_objfile_script): Declare.
14880         (script_not_found_warning_print): Delete.
14881         (auto_load_info_scripts): Update prototype.
14882         (auto_load_gdb_scripts_enabled): Declare.
14883         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14884         auto_load_python_scripts_enabled and made public.
14885         (script_language_python): Delete, moved to python.c.
14886         (gdbpy_script_language_defn): Delete.
14887         (info_auto_load_python_scripts): Update to use
14888         extension_language_python.
14889
14890         * breakpoint.c (condition_command): Replace call to
14891         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14892         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14893         with call to breakpoint_ext_lang_cond_says_stop.
14894         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14895         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
14896         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14897         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14898         New arg slang.
14899         (local_setattro): Print name of extension language with existing
14900         stop condition.
14901
14902         * valprint.c (val_print, value_print): Update to call
14903         apply_ext_lang_val_pretty_printer.
14904         * cp-valprint.c (cp_print_value): Update call to
14905         apply_ext_lang_val_pretty_printer.
14906         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14907         (gdbpy_apply_val_pretty_printer): Renamed from
14908         apply_val_pretty_printer.  New arg extlang.
14909         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14910
14911         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14912         extension language API.
14913         * cli/cli-script.c (execute_control_command): Update to call
14914         eval_ext_lang_from_control_command.
14915
14916         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14917         enum ext_lang_bt_status values.  Update call to
14918         apply_ext_lang_frame_filter.
14919         (mi_cmd_stack_list_locals): Ditto.
14920         (mi_cmd_stack_list_args): Ditto.
14921         (mi_cmd_stack_list_variables): Ditto.
14922         * mi/mi-main.c: Delete #include "python/python-internal.h".
14923         Add #include "extension.h".
14924         (mi_cmd_list_features): Replace reference to python internal variable
14925         gdb_python_initialized with call to ext_lang_initialized_p.
14926
14927         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14928         Update to use enum ext_lang_frame_args.  Update to call
14929         apply_ext_lang_frame_filter.
14930         * python/py-framefilter.c (extract_sym): Update to use enum
14931         ext_lang_bt_status.
14932         (extract_value, py_print_type, py_print_value): Ditto.
14933         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14934         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14935         (py_print_frame): Ditto.
14936         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14937         New arg extlang.  Update to use enum ext_lang_bt_status.
14938
14939         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14940         finish_python_initialization.  Replace with call to
14941         finish_ext_lang_initialization.
14942
14943         * typeprint.c (do_free_global_table): Update to call
14944         free_ext_lang_type_printers.
14945         (create_global_typedef_table): Update to call
14946         start_ext_lang_type_printers.
14947         (find_global_typedef): Update to call apply_ext_lang_type_printers.
14948         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14949         (type_print_options): Change type of global_printers from "void *"
14950         to "struct ext_lang_type_printers *".
14951
14952         * value.c (preserve_values): Update to call preserve_ext_lang_values.
14953         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14954         (gdbpy_preserve_values): Renamed from preserve_python_values.
14955         New arg extlang.
14956         (!HAVE_PYTHON, preserve_python_values): Delete.
14957
14958         * utils.c (quit_flag): Delete, moved to extension.c.
14959         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14960         extension.c.
14961
14962         * eval.c: Delete #include "python/python.h".
14963         * main.c: Delete #include "python/python.h".
14964
14965         * defs.h: Update comment.
14966
14967 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
14968
14969         GDB 7.7 released.
14970
14971 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
14972
14973         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14974         defined.
14975
14976 2014-02-05  Yao Qi  <yao@codesourcery.com>
14977
14978         * remote.c (remote_pass_signals): Remove local 'buf' and use
14979         rs->buf.
14980         (remote_program_signals): Likewise.
14981
14982 2014-02-05  Yao Qi  <yao@codesourcery.com>
14983
14984         * ctf.c: Include "inferior.h" and "gdbthread.h".
14985         (CTF_PID): A new macro.
14986         (ctf_open): Call inferior_appeared and add_thread_silent.
14987         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14988         (ctf_thread_alive): New function.
14989         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14990
14991 2014-02-05  Yao Qi  <yao@codesourcery.com>
14992
14993         Revert this patch:
14994
14995         2013-05-24  Yao Qi  <yao@codesourcery.com>
14996
14997         * tracepoint.c (TFILE_PID): Remove.
14998         (tfile_open): Don't add thread and inferior.
14999         (tfile_close): Don't set 'inferior_ptid'.  Don't call
15000         exit_inferior_silent.
15001         (tfile_thread_alive): Remove.
15002         (init_tfile_ops): Don't set field 'to_thread_alive' of
15003         tfile_ops.
15004
15005 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
15006
15007         * remote.c (remote_start_remote): Call remote_check_symbols even
15008         if only symbol-file (not file) has been given.
15009
15010 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
15011
15012         * gdbarch.sh (skip_entrypoint): New callback.
15013         * gdbarch.c, gdbarch.h: Regenerate.
15014         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
15015         * infrun.c (fill_in_stop_func): Likewise.
15016         * ppc-linux-tdep.c: Include "elf/ppc64.h".
15017         (ppc_elfv2_elf_make_msymbol_special): New function.
15018         (ppc_elfv2_skip_entrypoint): Likewise.
15019         (ppc_linux_init_abi): Install them for ELFv2.
15020
15021 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
15022
15023         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
15024         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
15025         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
15026         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
15027         structures returned in GPRs.
15028
15029 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
15030
15031         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
15032         offset to the stack parameter list for the ELFv2 ABI.
15033
15034 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
15035
15036         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
15037         set_gdbarch_convert_from_func_ptr_addr and
15038         set_gdbarch_elf_make_msymbol_special for ELFv1.
15039         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
15040         function descriptors on ELFv1.
15041         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
15042         set up r12 at function entry.
15043
15044 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
15045
15046         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
15047         (struct gdbarch_tdep): New member elf_abi.
15048
15049         * rs6000-tdep.c: Include "elf/ppc64.h".
15050         (rs6000_gdbarch_init): Detect ELF ABI version.
15051
15052 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
15053
15054         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
15055         within a register pair holding a DFP 128-bit value on little-endian.
15056         (ppc64_sysv_abi_return_value_base): Likewise.
15057         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
15058         (dfp_pseudo_register_write): Likewise.
15059
15060 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
15061
15062         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
15063         offset on little-endian when passing _Decimal32.
15064         (ppc64_sysv_abi_return_value_base): Likewise for return values.
15065
15066 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
15067
15068         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
15069         of the overlapped FP register within the VSX register on little-
15070         endian platforms.
15071         (efpr_pseudo_register_write): Likewise.
15072
15073 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
15074
15075         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
15076         offset on little-endian when passing small structures.
15077
15078 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
15079
15080         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
15081         (struct ppc64_sysv_argpos): New data structure.
15082         (ppc64_sysv_abi_push_float): Remove.
15083         (ppc64_sysv_abi_push_val): New function.
15084         (ppc64_sysv_abi_push_integer): Likewise.
15085         (ppc64_sysv_abi_push_freg): Likewise.
15086         (ppc64_sysv_abi_push_vreg): Likewise.
15087         (ppc64_sysv_abi_push_param): Likewise.
15088         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
15089         (ppc64_sysv_abi_return_value_base): New function.
15090         (ppc64_sysv_abi_return_value): Refactor to use it.
15091
15092 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
15093
15094         * NEWS: Document new target powerpc64le-*-linux*.
15095
15096 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
15097
15098         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
15099         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
15100         core dumps.
15101         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
15102         register set used in ELF core dumps.  Add floating-point register set.
15103
15104 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
15105
15106         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
15107         dwarf2_to_gdb[] table using symbolic constants.  Adjust
15108         penultimate entry from number representing the PC register
15109         to symbolic constant representing the MDR register.  Add
15110         constant for the PC register to the end of the table.
15111
15112 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
15113
15114         * bsd-kvm.c: Include <sys/param.h>
15115
15116 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
15117
15118         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
15119
15120 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
15121
15122         * ada-lang.h (clear_ada_sym_cache): Delete.
15123
15124 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
15125
15126         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
15127
15128 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
15129
15130         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
15131           the sigreturn register save area only if the syscall is
15132           sigreturn.
15133
15134 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
15135
15136         * valops.c (value_slice): Minor reformatting.
15137
15138 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
15139
15140         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
15141
15142 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
15143
15144         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
15145         New static globals.
15146         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
15147         (ada_ignore_descriptive_types_p): New static global.
15148         (find_parallel_type_by_descriptive_type): Return immediately
15149         if ada_ignore_descriptive_types_p is set.
15150         (_initialize_ada_language): Register new commands "maintenance
15151         set ada", "maintenance show ada", "maintenance set ada
15152         ignore-descriptive-types" and "maintenance show ada
15153         ignore-descriptive-types".
15154         * NEWS: Add entry for new "maint ada set/show
15155         ignore-descriptive-types" commands.
15156
15157 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
15158
15159         * record-btrace.c (record_btrace_close): Call btrace_teardown
15160         for all threads.
15161
15162 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
15163
15164         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
15165         "ui-out.h".
15166
15167 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
15168
15169         * ada-typeprint (type_is_full_subrange_of_target_type):
15170         New function.
15171         (print_range): Add parameter bounds_prefered_p.  If not set,
15172         try printing range types using the name of their base type.
15173         (print_range_type): Add parameter bounds_prefered_p.
15174         Use it in call to print_range.
15175         (print_array_type, ada_print_type): Update calls to print_range
15176         and print_range_type.
15177
15178 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
15179
15180         * ada-typeprint.c (print_array_type, print_choices, print_range)
15181         (print_range_bound, print_dynamic_range_bound, print_range_type):
15182         Remove declaration.
15183
15184 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
15185
15186         * ada-typeprint.c (print_range): Add missing empty line
15187         after local declaration.
15188
15189 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
15190
15191         * ada-valprint.c (print_optional_low_bound): Get index_type's
15192         target type for as long as it is a TYPE_CODE_RANGE.
15193
15194 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
15195
15196         * procfs.c (procfs_make_note_section): Remove assertion and
15197         associated comment.
15198
15199 2014-01-24  Yao Qi  <yao@codesourcery.com>
15200
15201         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
15202         * corelow.c (get_core_siginfo): Likewise.
15203
15204 2014-01-24  Yao Qi  <yao@codesourcery.com>
15205
15206         * remote.c (remote_write_bytes_aux): Change type of 'len' to
15207         ULONGEST.  Don't check 'len' is negative.
15208         (remote_write_bytes):  Change type of 'len' to ULONGEST.
15209
15210 2014-01-23  Tom Tromey  <tromey@redhat.com>
15211
15212         PR python/16485:
15213         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
15214         Handle exception from frame.block.
15215         (FrameVars.fetch_frame_locals): Likewise.
15216
15217 2014-01-23  Tom Tromey  <tromey@redhat.com>
15218
15219         PR python/16487:
15220         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
15221         on a NULL pointer.  Move "goto error" to correct place.
15222
15223 2014-01-23  Tom Tromey  <tromey@redhat.com>
15224
15225         PR python/16491:
15226         * python/py-framefilter.c (apply_frame_filter): Call
15227         ensure_python_env after computing gdbarch.
15228
15229 2014-01-23  Yao Qi  <yao@codesourcery.com>
15230
15231         * target.c (raw_memory_xfer_partial): Change argument type
15232         from void * to gdb_byte *.
15233         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
15234
15235 2014-01-22  Doug Evans  <dje@google.com>
15236
15237         New gdbserver option --debug-format=timestamp.
15238         * NEWS: Mention it.
15239
15240 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
15241
15242         * syscalls/s390x-linux.xml: New file.
15243         * syscalls/s390-linux.xml: New file.
15244         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
15245         (XML_SYSCALL_FILENAME_S390X): Likewise.
15246         (op_svc): New enum value for SVC opcode.
15247         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
15248         (s390_linux_get_syscall_number): New function.
15249         (s390_gdbarch_init): Register '*get_syscall_number' and the
15250         syscall xml file name.
15251         * data-directory/Makefile.in (SYSCALLS_FILES): Add
15252         "s390-linux.xml" and "s390x-linux.xml".
15253         * NEWS: Announce new feature.
15254
15255 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
15256
15257         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
15258
15259 2014-01-22  Pedro Alves  <palves@redhat.com>
15260
15261         * xtensa-config.c: Include defs.h.
15262
15263 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
15264
15265         * common/common-utils.h: Add "ARI:" comment beside __func__
15266         reference.
15267
15268 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
15269
15270         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
15271         documentation a bit.
15272
15273 2014-01-21  Roland McGrath  <mcgrathr@google.com>
15274
15275         * configure.ac: Call AM_PROG_INSTALL_STRIP.
15276         * configure: Regenerate.
15277         * aclocal.m4: Regenerate.
15278         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
15279         New substituted variables.
15280         (install-strip): New target.
15281         (INSTALL_SCRIPT): New substituted variable.
15282         (FLAGS_TO_PASS): Add it.
15283         (install-only): Use $(INSTALL_SCRIPT) rather than
15284         $(INSTALL_PROGRAM) for gcore.
15285
15286 2014-01-20  Tom Tromey  <tromey@redhat.com>
15287
15288         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
15289         together.
15290
15291 2014-01-20  Tom Tromey  <tromey@redhat.com>
15292
15293         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
15294         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
15295         (deprecated_cmd_warning, complete_on_cmdlist): Update.
15296         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
15297         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
15298         (struct cmd_list_element) <flags>: Remove.
15299         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
15300         doc_allocated>: New fields.
15301         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
15302         bitfields.
15303         * maint.c (maintenance_do_deprecate): Update.
15304         * top.c (execute_command): Update.
15305
15306 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
15307
15308         * xtensa-linux-nat.c: Include asm/ptrace.h.
15309
15310 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
15311
15312         * Makefile.in (SFILES): Add d-support.c.
15313         (COMMON_OBS): Add d-support.o.
15314         * d-lang.h (d_parse_symbol): Add comment, now defined in
15315         d-support.c.
15316         * d-lang.c (parse_call_convention)
15317         (parse_attributes, parse_function_types)
15318         (parse_function_args, parse_type, parse_identifier)
15319         (call_convention_p, d_parse_symbol): Move functions to ...
15320         * d-support.c: ... New file.
15321
15322 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
15323
15324         * d-lang.h (d_parse_symbol): Add declaration.
15325         * d-lang.c (extract_identifiers)
15326         (extract_type_info): Remove functions.
15327         (parse_call_convention, parse_attributes)
15328         (parse_function_types, parse_function_args)
15329         (parse_type, parse_identifier, call_convention_p)
15330         (d_parse_symbol): New functions.
15331         (d_demangle): Use d_parse_symbol to demangle D symbols.
15332
15333 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
15334
15335         * d-lang.h (struct builtin_d_type): New data type.
15336         (builtin_d_type): Add declaration.
15337         * d-lang.c (d_language_arch_info, build_d_types)
15338         (builtin_d_type): New functions.
15339         (enum d_primitive_types): New data type.
15340         (d_language_defn): Change c_language_arch_info to
15341         d_language_arch_info.
15342         (d_type_data): New static variable.
15343         (_initialize_d_language): Initialize d_type_data.
15344
15345 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
15346
15347         * d-lang.h (d_main_name): Add declaration.
15348         * d-lang.c (d_main_name): New function.
15349         * symtab.c (find_main_name): Add call to d_main_name.
15350
15351 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
15352
15353         * d-lang.c (d_language_defn): Change macro_expansion_c to
15354         macro_expansion_no.
15355
15356 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
15357
15358         * MAINTAINERS: Add myself as a write-after-approval maintainer.
15359
15360 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
15361
15362         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
15363         gdb_exception" declaration.
15364         * remote.c (getpkt_or_notif_sane): Likewise.
15365
15366 2014-01-17  Doug Evans  <dje@google.com>
15367
15368         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
15369         function, contents of dirnames_to_char_ptr_vec_append moved here.
15370         (delim_string_to_char_ptr_vec): New function.
15371         (dirnames_to_char_ptr_vec_append): Rewrite.
15372         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
15373
15374 2014-01-17  Doug Evans  <dje@google.com>
15375
15376         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
15377         and moved here ...
15378         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
15379         #include "common-utils.h".
15380         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
15381         * common/vec.h (VEC_ASSERT_PASS): Update.
15382         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
15383         (MACH_CHECK_ERROR): Update.
15384
15385 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
15386
15387         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
15388         comments.
15389         * gdbarch.h: Regenerate.
15390
15391 2014-01-16  Tom Tromey  <tromey@redhat.com>
15392
15393         * value.c (struct value) <regnum>: Move earlier.
15394
15395 2014-01-16  Tom Tromey  <tromey@redhat.com>
15396
15397         * remote.c (extended_remote_create_inferior): Rename from
15398         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
15399         old implementation.
15400
15401 2014-01-16  Pedro Alves  <palves@redhat.com>
15402
15403         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
15404         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
15405         the backchain.
15406
15407 2014-01-16  Doug Evans  <dje@google.com>
15408
15409         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
15410
15411 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15412
15413         * btrace.h (btrace_thread_flag): New.
15414         (struct btrace_thread_info) <flags>: New.
15415         * record-btrace.c (record_btrace_resume_thread)
15416         (record_btrace_find_thread_to_move, btrace_step_no_history)
15417         (btrace_step_stopped, record_btrace_start_replaying)
15418         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
15419         (record_btrace_find_resume_thread): New.
15420         (record_btrace_resume, record_btrace_wait): Extend.
15421         (record_btrace_can_execute_reverse): New.
15422         (record_btrace_open): Fail in non-stop mode.
15423         (record_btrace_set_replay): Split into this, ...
15424         (record_btrace_stop_replaying): ... this, ...
15425         (record_btrace_clear_histories): ... and this.
15426         (init_record_btrace_ops): Init to_can_execute_reverse.
15427         * NEWS: Announce it.
15428
15429 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15430
15431         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
15432         (forward_target_decr_pc_after_break)
15433         (target_decr_pc_after_break): New.
15434         * target.c (forward_target_decr_pc_after_break)
15435         (target_decr_pc_after_break): New.
15436         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
15437         instead of gdbarch_decr_pc_after_break.
15438         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15439         instead of gdbarch_decr_pc_after_break.
15440         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
15441         instead of gdbarch_decr_pc_after_break.
15442         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
15443         instead of gdbarch_decr_pc_after_break.
15444         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
15445         instead of gdbarch_decr_pc_after_break.
15446         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
15447         instead of gdbarch_decr_pc_after_break.
15448
15449 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15450
15451         * btrace.c: Include regcache.h.
15452         (btrace_add_pc): New.
15453         (btrace_enable): Call btrace_add_pc.
15454         (btrace_is_empty): New.
15455         * btrace.h (btrace_is_empty): New.
15456         * record-btrace.c (require_btrace, record_btrace_info): Call
15457         btrace_is_empty.
15458
15459 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15460
15461         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
15462         Support delta reads.
15463         (linux_disable_btrace): Change return type.
15464         * common/linux-btrace.h (linux_read_btrace): Change parameters
15465         and return type to allow error reporting.  Update users.
15466         (linux_disable_btrace): Change return type.  Update users.
15467         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
15468         New.
15469         (btrace_error): New.
15470         (btrace_block) <begin>: Comment on BEGIN == 0.
15471         * btrace.c (btrace_compute_ftrace): Start from the end of
15472         the current trace.
15473         (btrace_stitch_trace, btrace_clear_history): New.
15474         (btrace_fetch): Read delta trace, return if replaying.
15475         (btrace_clear): Move clear history code to btrace_clear_history.
15476         (parse_xml_btrace): Throw an error if parsing failed.
15477         * target.h (struct target_ops) <to_read_btrace>: Change parameters
15478         and return type to allow error reporting.
15479         (target_read_btrace): Change parameters and return type to allow
15480         error reporting.
15481         * target.c (target_read_btrace): Update.
15482         * remote.c (remote_read_btrace): Support delta reads.  Pass
15483         errors on.
15484         * NEWS: Announce it.
15485
15486 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15487
15488         * record.h (record_btrace_frame_unwind)
15489         (record_btrace_tailcall_frame_unwind): New declarations.
15490         * dwarf2-frame: Include record.h
15491         (dwarf2_frame_cfa): Throw an error for btrace frames.
15492         * record-btrace.c: Include hashtab.h.
15493         (btrace_get_bfun_name): New.
15494         (btrace_call_history): Call btrace_get_bfun_name.
15495         (struct btrace_frame_cache): New.
15496         (bfcache): New.
15497         (bfcache_hash, bfcache_eq, bfcache_new): New.
15498         (btrace_get_frame_function): New.
15499         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
15500         (record_btrace_frame_this_id): Compute own id.
15501         (record_btrace_frame_prev_register): Provide PC, throw_error
15502         for all other registers.
15503         (record_btrace_frame_sniffer): Detect btrace frames.
15504         (record_btrace_tailcall_frame_sniffer): New.
15505         (record_btrace_frame_dealloc_cache): New.
15506         (record_btrace_frame_unwind): Add new functions.
15507         (record_btrace_tailcall_frame_unwind): New.
15508         (_initialize_record_btrace): Allocate cache.
15509         * btrace.c (btrace_clear): Call reinit_frame_cache.
15510         * NEWS: Announce it.
15511
15512 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15513
15514         * record-btrace.c (record_btrace_set_replay)
15515         (record_btrace_goto_begin, record_btrace_goto_end)
15516         (record_btrace_goto): New.
15517         (init_record_btrace_ops): Initialize them.
15518         * NEWS: Announce it.
15519
15520 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15521
15522         * record-btrace.c (record_btrace_find_new_threads)
15523         (record_btrace_thread_alive): New.
15524         (init_record_btrace_ops): Initialize to_find_new_threads and
15525         to_thread_alive.
15526
15527 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15528
15529         * record-btrace.c (record_btrace_resume): New.
15530         (record_btrace_wait): New.
15531         (init_record_btrace_ops): Initialize to_wait and to_resume.
15532
15533 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15534
15535         * record-btrace.c (record_btrace_xfer_partial)
15536         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
15537         (record_btrace_allow_memory_access): New.
15538         (init_record_btrace_ops): Initialize new methods.
15539         * target.c (raw_memory_xfer_partial): Bail out if target reports
15540         that this memory is not available.
15541
15542 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15543
15544         * target.h (target_ops) <to_insert_breakpoint>
15545         <to_remove_breakpoint>: Add target_ops parameter.
15546         (forward_target_insert_breakpoint): New.
15547         (forward_target_remove_breakpoint): New.
15548         (memory_remove_breakpoint, memory_insert_breakpoint):
15549         Add target_ops parameter.
15550         * target.c (target_insert_breakpoint): Split into this and ...
15551         (forward_target_insert_breakpoint): ... this.
15552         (target_remove_breakpoint): Split into this and ...
15553         (forward_target_remove_breakpoint): ... this.
15554         (debug_to_insert_breakpoint): Add target_ops parameter.
15555         Call forward_target_insert_breakpoint.
15556         (debug_to_remove_breakpoint): Add target_ops parameter.
15557         Call forward_target_remove_breakpoint.
15558         (update_current_target): Do not inherit or default to_insert_breakpoint
15559         and to_remove_breakpoint.
15560         * corelow.c (ignore): Add target_ops parameter.
15561         * exec.c (ignore): Add target_ops parameter.
15562         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
15563         Add target_ops parameter.
15564         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
15565         Add target_ops parameter.
15566         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
15567         Add target_ops parameter.
15568         * record-full.c (record_full_beneath_to_insert_breakpoint)
15569         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
15570         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
15571         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
15572         (record_full_core_remove_breakpoint): Add target_ops parameter.
15573         Update users.
15574         (record_full_beneath_to_insert_breakpoint_ops)
15575         (record_full_beneath_to_remove_breakpoint_ops)
15576         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
15577         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
15578         tmp_to_remove_breakpoint_ops,
15579         record_full_beneath_to_insert_breakpoint_ops, and
15580         record_full_beneath_to_remove_breakpoint_ops.
15581         * remote-m32r-sdi.c (m32r_insert_breakpoint)
15582         (m32r_remove_breakpoint): Add target_ops parameter.
15583         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
15584         Add target_ops parameter.
15585         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
15586         Add target_ops parameter.
15587
15588 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
15589             Markus Metzger  <markus.t.metzger@intel.com>
15590
15591         * record-btrace.c: Include frame-unwind.h.
15592         (record_btrace_frame_unwind_stop_reason)
15593         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
15594         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
15595         New.
15596         (init_record_btrace_ops): Install it.
15597
15598 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
15599
15600         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
15601         get_prev_frame_1.
15602
15603 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
15604
15605         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
15606         earlier.
15607
15608 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
15609
15610         * frame-unwind.c: Include target.h.
15611         (frame_unwind_try_unwinder): New function with code from ...
15612         (frame_unwind_find_by_frame): ... here.  New variable
15613         unwinder_from_target, call also target_get_unwinder)
15614         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
15615         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
15616         * target.h (struct target_ops): New fields to_get_unwinder and
15617         to_get_tailcall_unwinder.
15618         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
15619
15620 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15621
15622         * record-btrace.c (record_btrace_fetch_registers)
15623         (record_btrace_store_registers)
15624         (record_btrace_to_prepare_to_store): New.
15625         (init_record_btrace_ops): Add the above.
15626
15627 2014-01-16  Tom Tromey  <tromey@redhat.com>
15628
15629         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
15630         * target.h (struct target_ops) <to_prepare_to_store>: Add
15631         argument.
15632         (target_prepare_to_store): Add argument.
15633         * target.c (debug_to_prepare_to_store): Add argument.
15634         (update_current_target): Update.
15635         * remote.c (remote_prepare_to_store): Add 'self' argument.
15636         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
15637         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
15638         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
15639         * record-full.c (record_full_core_prepare_to_store): Add 'self'
15640         argument.
15641         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
15642         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
15643         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
15644         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
15645         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
15646
15647 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15648
15649         * btrace.h (replay) <replay>: New.
15650         (btrace_is_replaying): New.
15651         * btrace.c (btrace_clear): Free replay iterator.
15652         (btrace_is_replaying): New.
15653         * record-btrace.c (record_btrace_is_replaying): New.
15654         (record_btrace_info): Print insn number if replaying.
15655         (record_btrace_insn_history): Start at replay position.
15656         (record_btrace_call_history): Start at replay position.
15657         (init_record_btrace_ops): Init to_record_is_replaying.
15658
15659 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15660
15661         * record-btrace.c (record_btrace_insn_history_range): Include
15662         end.
15663         (record_btrace_insn_history_from): Adjust range.
15664         (record_btrace_call_history_range): Include
15665         end.
15666         (record_btrace_call_history_from): Adjust range.
15667         * NEWS: Announce changes.
15668
15669 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15670
15671         * record.h (enum record_print_flag)
15672         <record_print_indent_calls>: New.
15673         * record.c (get_call_history_modifiers): Recognize /c modifier.
15674         (_initialize_record): Document /c modifier.
15675         * record-btrace.c (btrace_call_history): Add btinfo parameter.
15676         Reorder fields.  Optionally indent the function name.  Update
15677         all users.
15678         * NEWS: Announce changes.
15679
15680 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15681
15682         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
15683
15684 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15685
15686         * btrace.c (ftrace_new_function): Start counting at one.
15687         * record-btrace.c (record_btrace_info): Adjust number of calls
15688         and insns.
15689         * NEWS: Announce it.
15690
15691 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15692
15693         * record-btrace.c (btrace_call_history_insn_range): Print
15694         insn range as [begin, end].
15695
15696 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15697
15698         * btrace.h (struct btrace_func_link): New.
15699         (enum btrace_function_flag): New.
15700         (struct btrace_inst): Rename to ...
15701         (struct btrace_insn): ...this. Update all users.
15702         (struct btrace_func) <ibegin, iend>: Remove.
15703         (struct btrace_func_link): New.
15704         (struct btrace_func): Rename to ...
15705         (struct btrace_function): ...this. Update all users.
15706         (struct btrace_function) <segment, flow, up, insn, insn_offset)
15707         (number, level, flags>: New.
15708         (struct btrace_insn_iterator): Rename to ...
15709         (struct btrace_insn_history): ...this.
15710         Update all users.
15711         (struct btrace_insn_iterator, btrace_call_iterator): New.
15712         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
15713         (struct btrace_target_info) <begin, end, level>
15714         <insn_history, call_history>: New.
15715         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15716         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15717         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15718         (btrace_call_number, btrace_call_begin, btrace_call_end)
15719         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15720         (btrace_find_function_by_number, btrace_set_insn_history)
15721         (btrace_set_call_history): New.
15722         * btrace.c (btrace_init_insn_iterator)
15723         (btrace_init_func_iterator, compute_itrace): Remove.
15724         (ftrace_print_function_name, ftrace_print_filename)
15725         (ftrace_skip_file): Change
15726         parameter to const.
15727         (ftrace_init_func): Remove.
15728         (ftrace_debug): Use new btrace_function fields.
15729         (ftrace_function_switched): Also consider gaining and
15730         losing symbol information).
15731         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
15732         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
15733         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
15734         New.
15735         (ftrace_new_function): Move. Remove debug print.
15736         (ftrace_update_lines, ftrace_update_insns): New.
15737         (ftrace_update_function): Check for call, ret, and jump.
15738         (compute_ftrace): Renamed to ...
15739         (btrace_compute_ftrace): ...this. Rewritten to compute call
15740         stack.
15741         (btrace_fetch, btrace_clear): Updated.
15742         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
15743         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
15744         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
15745         (btrace_call_number, btrace_call_begin, btrace_call_end)
15746         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
15747         (btrace_find_function_by_number, btrace_set_insn_history)
15748         (btrace_set_call_history): New.
15749         * record-btrace.c (require_btrace): Use new btrace thread
15750         info fields.
15751         (record_btrace_info, btrace_insn_history)
15752         (record_btrace_insn_history, record_btrace_insn_history_range):
15753         Use new btrace thread info fields and new iterator.
15754         (btrace_func_history_src_line): Rename to ...
15755         (btrace_call_history_src_line): ...this. Use new btrace
15756         thread info fields.
15757         (btrace_func_history): Rename to ...
15758         (btrace_call_history): ...this. Use new btrace thread info
15759         fields and new iterator.
15760         (record_btrace_call_history, record_btrace_call_history_range):
15761         Use new btrace thread info fields and new iterator.
15762
15763 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15764
15765         * frame.h (frame_id_build_unavailable_stack_special): New.
15766         * frame.c (frame_id_build_unavailable_stack_special): New.
15767
15768 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15769
15770         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
15771         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
15772         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
15773         to gdbarch.
15774         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
15775         (i386_insn_is_jump, i386_jmp_p): New.
15776         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
15777         insn_is_jump to gdbarch.
15778         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
15779         * gdbarch.h: Regenerated.
15780         * gdbarch.c: Regenerated.
15781         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
15782         (default_insn_is_jump): New.
15783         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
15784         (default_insn_is_jump): New.
15785
15786 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15787
15788         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
15789         Change to ...
15790         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
15791         (btrace_read_type) <btrace_read_new>: Change to ...
15792         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
15793
15794 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
15795
15796         * common/linux-btrace.c (linux_read_btrace): Free trace from
15797         previous iteration.
15798
15799 2014-01-15  Doug Evans  <dje@google.com>
15800
15801         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15802         uint32_t.
15803
15804 2014-01-15  Tom Tromey  <tromey@redhat.com>
15805
15806         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15807         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15808         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15809         (set_objfile_main_name): New function.
15810         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15811         language_of_main>: New fields.
15812         (set_objfile_main_name): Declare.
15813         * symtab.c (find_main_name): Loop over objfiles to find the main
15814         name and language.
15815         (set_main_name): Now static.
15816         (get_main_info): Add comment.
15817         * symtab.h (set_main_name): Don't declare.
15818
15819 2014-01-15  Tom Tromey  <tromey@redhat.com>
15820
15821         * symtab.c (main_progspace_key): New global.
15822         (struct main_info): New.
15823         (name_of_main, language_of_main): Remove.
15824         (get_main_info, main_info_cleanup): New function.
15825         (set_main_name, main_name, main_language): Use get_main_info.
15826         (_initialize_symtab): Initialize main_progspace_key.
15827
15828 2014-01-15  Tom Tromey  <tromey@redhat.com>
15829
15830         * dbxread.c (process_one_symbol): Update.
15831         * dwarf2read.c (read_partial_die): Update.
15832         * symfile.c (set_initial_language): Call main_language.
15833         * symtab.c (language_of_main): Now static.
15834         (set_main_name): Add 'lang' parameter.
15835         (find_main_name): Update.
15836         (main_language): New function.
15837         (symtab_observer_executable_changed): Update.
15838         * symtab.h (set_main_name): Update.
15839         (language_of_main): Remove.
15840         (main_language): Declare.
15841
15842 2014-01-15  Tom Tromey  <tromey@redhat.com>
15843
15844         * symfile.c (init_entry_point_info): Use new "initialized" field.
15845         Update.
15846         * objfiles.h (struct entry_point) <initialized>: New field.
15847         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15848         (struct objfile) <ei>: ...here.  Remove.
15849         * objfiles.c (entry_point_address_query): Update.
15850
15851 2014-01-15  Tom Tromey  <tromey@redhat.com>
15852
15853         * objfiles.c (entry_point_address_query): Relocate entry point
15854         address.
15855         (objfile_relocate1): Do not relocate entry point address.
15856         * objfiles.h (struct entry_info) <entry_point>: Update comment.
15857         <the_bfd_section_index>: New field.
15858         * symfile.c (init_entry_point_info): Find the entry point's
15859         section.
15860
15861 2014-01-15  Tom Tromey  <tromey@redhat.com>
15862
15863         * solib-frv.c (enable_break): Use entry_point_address_query.
15864
15865 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15866
15867         * NEWS: Add note on improved process record-replay on
15868         arm*-linux* targets.
15869
15870 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15871
15872         * arm-tdep.c (enum arm_record_result): New enum.
15873         (arm_record_unsupported_insn): New function.
15874         (arm_record_coproc_data_proc): Removed.
15875         (thumb2_record_ld_st_multiple): New function.
15876         (thumb2_record_ld_st_dual_ex_tbb): New function.
15877         (thumb2_record_data_proc_sreg_mimm): New function.
15878         (thumb2_record_ps_dest_generic): New function.
15879         (thumb2_record_branch_misc_cntrl): New function.
15880         (thumb2_record_str_single_data): New function.
15881         (thumb2_record_ld_mem_hints): New function.
15882         (thumb2_record_ld_word): New function.
15883         (thumb2_record_lmul_lmla_div): New function.
15884         (thumb2_record_decode_insn_handler): New function.
15885         (decode_insn): Add thumb32 instruction handlers.
15886
15887 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15888
15889         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15890         (struct arm_linux_record_tdep): Declare.
15891         (arm_canonicalize_syscall): New function.
15892         (arm_all_but_pc_registers_record): New function.
15893         (arm_linux_syscall_record): New function.
15894         (arm_linux_init_abi): Add syscall recording constructs.
15895         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15896         decoding.  (arm_record_coproc_data_proc): Update arm syscall
15897         decoding.
15898         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15899         <arm_syscall_record>: New field.
15900         * configure.tgt (arm*-*-linux*): Add linux-record.o to
15901         gdb_target_obs.
15902
15903 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15904
15905         * arm-tdep.c (thumb_record_misc): Update to use sp as base
15906         register for push instruction recording.
15907
15908 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15909
15910         * arm-tdep.c (thumb_record_misc): Update to correct logical
15911         error while recording ldm, ldmia and pop instructions.
15912
15913 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
15914
15915         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15916
15917 2014-01-15  Pedro Alves  <palves@redhat.com>
15918
15919         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15920         (go32_resume, go32_fetch_registers, store_register)
15921         (go32_store_registers, go32_prepare_to_store)
15922         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15923         (go32_create_inferior, go32_can_run, go32_terminal_init)
15924         (go32_terminal_inferior, go32_terminal_ours): Delete forward
15925         declarations.
15926
15927 2014-01-15  Tom Tromey  <tromey@redhat.com>
15928
15929         * target.h (async_callback_ftype): New typedef.
15930         (struct target_ops) <to_async>: Use it.
15931
15932 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
15933
15934         * python/py-value.c (get_field_type): Remove unnecessary curly
15935         braces for single-statement if block.
15936
15937 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
15938
15939         * python/py-type.c (convert_field): Add missing empty line
15940         after declarations.
15941
15942 2014-01-14  Doug Evans  <dje@google.com>
15943
15944         * symfile.h (expand_symtabs_matching): Renamed from
15945         expand_partial_symbol_names.  Update prototype.
15946         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15947         * symfile.c (expand_symtabs_matching): Renamed from
15948         expand_partial_symbol_names.  New args file_matcher, kind.
15949         Rename arg fun to symbol_matcher.
15950         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15951         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15952         ada_expand_partial_symbol_name.
15953         (ada_make_symbol_completion_list): Update to call
15954         expand_symtabs_matching.
15955         (ada_add_global_exceptions): Call expand_symtabs_matching.
15956         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15957         call map_symbol_filenames.
15958         * symtab.c (sources_info): Update to call map_symbol_filenames.
15959         (search_symbols): Call expand_symtabs_matching.
15960         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15961         (default_make_symbol_completion_list_break_on): Update to call
15962         expand_symtabs_matching.
15963         (make_source_files_completion_list): Update to call
15964         map_symbol_filenames.
15965
15966 2014-01-14  Doug Evans  <dje@google.com>
15967
15968         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15969         (expand_symtabs_symbol_matcher_ftype): New typedef.
15970         (quick_symbol_functions.expand_symtabs_matching): Update to use.
15971         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15972         * symfile.c (expand_partial_symbol_names): Update to use
15973         expand_symtabs_symbol_matcher_ftype.
15974         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15975         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15976         Arg name_matcher renamed to symbol_matcher.
15977         * psymtab.c (recursively_search_psymtabs): Update to use
15978         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
15979         sym_matcher.
15980         (expand_symtabs_matching_via_partial): Update to use
15981         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15982         Arg name_matcher renamed to symbol_matcher.
15983
15984 2014-01-14  Doug Evans  <dje@google.com>
15985
15986         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15987         (map_partial_symbol_filenames): Ditto.
15988         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15989         (map_partial_symbol_filenames): Ditto.
15990         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15991         (map_partial_symbol_filenames): Ditto.
15992         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15993         (map_partial_symbol_filenames): Ditto.
15994         * symtab.c: Delete #include "psymtab.h".
15995
15996 2014-01-14  Pedro Alves  <palves@redhat.com>
15997             Tom Tromey  <tromey@redhat.com>
15998
15999         * infrun.c (use_displaced_stepping): Use find_record_target
16000         instead of RECORD_IS_USED.
16001         (adjust_pc_after_break): Use record_full_is_used instead of
16002         RECORD_IS_USED.
16003         * record-btrace.c (record_btrace_open): Call record_preopen
16004         instead of checking RECORD_IS_USED.
16005         * record-full.c (record_full_shortname)
16006         (record_full_core_shortname): New globals.
16007         (record_full_is_used): New function.
16008         (find_full_open): Call record_preopen instead of checking
16009         RECORD_IS_USED.
16010         (init_record_full_ops): Set the target's shortname to
16011         record_full_shortname.
16012         (init_record_full_core_ops): Set the target's shortname to
16013         record_full_core_shortname.
16014         * record-full.h (record_full_is_used): Declare.
16015         * record.c (find_record_target): Make extern.
16016         (record_preopen): New function.
16017         * record.h (RECORD_IS_USED): Delete macro.
16018         (find_record_target, record_preopen): Declare functions.
16019
16020 2014-01-14  Yao Qi  <yao@codesourcery.com>
16021
16022         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
16023         'len''s type to ULONGEST.
16024         (core_xfer_shared_libraries_aix): Likewise.
16025         * gdbarch.c, gdbarch.h: Regenerated.
16026         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
16027         Change type of 'len' to ULONGEST.
16028         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
16029         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
16030
16031 2014-01-14  Yao Qi  <yao@codesourcery.com>
16032
16033         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
16034         type of 'len' to ULONGEST.
16035         (linux_xfer_osdata_processgroups): Likewise.
16036         (linux_xfer_osdata_threads): Likewise.
16037         (linux_xfer_osdata_fds): Likewise.
16038         (linux_xfer_osdata_isockets): Likewise.
16039         (linux_xfer_osdata_shm): Likewise.
16040         (linux_xfer_osdata_sem): Likewise.
16041         (linux_xfer_osdata_msg): Likewise.
16042         (linux_common_xfer_osdata): Likewise.
16043         (struct osdata_type) <getter>: Likewise.
16044         * common/linux-osdata.h (linux_common_xfer_osdata): Update
16045         the declaration.
16046
16047 2014-01-14  Yao Qi  <yao@codesourcery.com>
16048
16049         * target.h (target_xfer_partial_ftype): Update.
16050         (struct target_ops) <to_xfer_partial>: Change 'len' type to
16051         ULONGEST.
16052         * aix-thread.c (aix_thread_xfer_partial): Change type of
16053         argument 'len' to ULONGEST.
16054         * auxv.c (procfs_xfer_auxv): Likewise.
16055         (ld_so_xfer_auxv): Likewise.
16056         (memory_xfer_auxv): Likewise.
16057         * bfd-target.c (target_bfd_xfer_partial): Likewise.
16058         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
16059         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
16060         * corelow.c (core_xfer_partial): Likewise.
16061         * ctf.c (ctf_xfer_partial): Likewise.
16062         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
16063         '%u'.
16064         (darwin_read_dyld_info): Likewise.
16065         (darwin_xfer_partial): Likewise.
16066         * exec.c (section_table_xfer_memory_partial): Likewise.
16067         (exec_xfer_partial): Likewise.
16068         * exec.h (section_table_xfer_memory_partial): Update
16069         declaration.
16070         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
16071         instead of plongest.
16072         (gnu_xfer_partial): Likewise.
16073         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
16074         (ia64_hpux_xfer_solib_got): Likewise.
16075         (ia64_hpux_xfer_partial): Likewise.
16076         * ia64-linux-nat.c (ia64_linux_xfer_partial):
16077         * inf-ptrace.c (inf_ptrace_xfer_partial):
16078         * inf-ttrace.c (inf_ttrace_xfer_partial):
16079         * linux-nat.c (linux_xfer_siginfo): Likewise.
16080         (linux_nat_xfer_partial): Likewise.
16081         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
16082         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
16083         * monitor.c (monitor_xfer_memory): Likewise.
16084         (monitor_xfer_partial): Likewise.
16085         * procfs.c (procfs_xfer_partial): Likewise.
16086         * record-full.c (record_full_xfer_partial): Likewise.
16087         (record_full_core_xfer_partial): Likewise.
16088         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
16089         instead of plongest.
16090         (gdbsim_xfer_partial): Likewise.
16091         * remote.c (remote_xfer_partial): Likewise.
16092         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
16093         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
16094         declaration.
16095         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
16096         (rs6000_xfer_shared_libraries): Likewise.
16097         * sol-thread.c (sol_thread_xfer_partial): Likewise.
16098         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
16099         (sparc_xfer_partial): Likewise.
16100         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
16101         (spu_xfer_partial): Likewise.
16102         * spu-multiarch.c (spu_xfer_partial): Likewise.
16103         * target.c (target_read_live_memory): Likewise.
16104         (memory_xfer_live_readonly_partial): Likewise.
16105         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
16106         (target_xfer_partial, default_xfer_partial): Likewise.
16107         (current_xfer_partial): Likewise.
16108         * tracepoint.c (tfile_xfer_partial): Likewise.
16109         * windows-nat.c (windows_xfer_memory): Likewise.  Call
16110         pulongest instead of plongest.
16111         (windows_xfer_partial): Likewise.
16112         (windows_xfer_shared_libraries): Likewise.
16113
16114 2014-01-14  Yao Qi  <yao@codesourcery.com>
16115
16116         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
16117         target_xfer_partial_ftype.
16118
16119 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
16120
16121         PR python/15464
16122         PR python/16113
16123         * valops.c (value_struct_elt_bitpos): New function
16124         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
16125         object to 'None' if the field name is an empty string ("").
16126         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
16127         attribute to look for a field when 'name' is 'None'.
16128         (get_field_type): New function
16129
16130 2014-01-13  Doug Evans  <dje@google.com>
16131
16132         PR symtab/16426
16133         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
16134         (try_open_dwop_file): Ditto.
16135         * gdb_bfd.c: #include "vec.h".
16136         (bfdp): New typedef.
16137         (struct gdb_bfd_data): New member included_bfds.
16138         (gdb_bfd_unref): Unref all included bfds.
16139         (gdb_bfd_record_inclusion): New function.
16140         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
16141
16142 2014-01-13  Tom Tromey  <tromey@redhat.com>
16143
16144         * gdbcore.h (deprecated_core_resize_section_table): Remove.
16145
16146 2014-01-13  Tom Tromey  <tromey@redhat.com>
16147
16148         * defs.h (use_windows): Remove.
16149         * gdb.c (main): Update.
16150         * main.c (captured_main, gdb_main): Update.
16151         * main.h (struct captured_main_args) <use_windows>: Remove.
16152         * top.c (use_windows): Remove.
16153
16154 2014-01-13  Tom Tromey  <tromey@redhat.com>
16155
16156         * defs.h (deprecated_flush_hook): Remove.
16157
16158 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
16159
16160         PR threads/16216
16161         * linux-thread-db.c (try_thread_db_load): Add parameter
16162         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
16163         (try_thread_db_load_from_pdir_1): Move it there from here.
16164         (try_thread_db_load_from_sdir): Update caller.
16165         (try_thread_db_load_from_dir): Move it there from here.
16166
16167 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
16168
16169         * regformats/regdat.sh: Always rewrite the register file.
16170
16171 2014-01-13  Pedro Alves  <palves@redhat.com>
16172
16173         * Makefile.in (CHECK_HEADERS): New variable.
16174         (check-headers:): New rule.
16175
16176 2014-01-13  Tom Tromey  <tromey@redhat.com>
16177
16178         * cli/cli-setshow.c (do_set_command): Update.
16179         * defs.h (deprecated_set_hook): Remove.
16180         * top.c (deprecated_set_hook): Remove.
16181
16182 2014-01-13  Pedro Alves  <palves@redhat.com>
16183
16184         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
16185         the tracepoint if the PC is a pseudo-register.
16186
16187 2014-01-13  Tom Tromey  <tromey@redhat.com>
16188
16189         * defs.h (XCALLOC): Remove.
16190         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
16191         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
16192         * dwarf2loc.c (allocate_piece_closure): Likewise.
16193         * elfread.c (elf_symfile_segments): Likewise.
16194         (elf_symfile_segments): Likewise.
16195         * gdbtypes.c (copy_type_recursive): Likewise.
16196         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
16197         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
16198         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
16199         XCALLOC.
16200         * mt-tdep.c (mt_gdbarch_init): Likewise.
16201         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
16202         XCALLOC.
16203         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
16204         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
16205         * registry.c (registry_alloc_data): Likewise.
16206         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
16207         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
16208         * serial.c (serial_fdopen_ops): Likewise.
16209         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
16210         XCALLOC.
16211         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
16212         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
16213         not XCALLOC.
16214
16215 2014-01-13  Tom Tromey  <tromey@redhat.com>
16216
16217         * defs.h (XMALLOC): Remove.
16218         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
16219         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
16220         * cli-out.c (struct ui_out *): Likewise.
16221         * cli/cli-dump.c (add_dump_command): Likewise.
16222         (add_dump_command): Likewise.
16223         * complaints.c (get_complaints): Likewise.
16224         (find_complaint): Likewise.
16225         * dwarf2-frame.c (execute_cfa_program): Likewise.
16226         * dwarf2read.c (abbrev_table_read_table): Likewise.
16227         * gdbarch.sh: Likewise.
16228         * gdbarch.c: Rebuild.
16229         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
16230         * interps.c (interp_new): Likewise.
16231         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
16232         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
16233         * mi/mi-console.c (mi_console_file_new): Likewise.
16234         * mi/mi-interp.c (mi_interpreter_init): Likewise.
16235         * mi/mi-out.c (mi_out_new): Likewise.
16236         * mi/mi-parse.c (mi_parse): Likewise.
16237         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
16238         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
16239         * observer.c (xalloc_observer_list_node): Likewise.
16240         * regcache.c (regcache_xmalloc_1): Likewise.
16241         * reggroups.c (reggroup_new): Likewise.
16242         (_initialize_reggroup): Likewise.
16243         * registry.c (register_data_with_cleanup): Likewise.
16244         * remote.c (remote_notif_stop_alloc_reply): Likewise.
16245         * ser-base.c (serial_ttystate): Likewise.
16246         * ser-mingw.c (make_pipe_state): Likewise.
16247         * ser-pipe.c (pipe_open): Likewise.
16248         * serial.c (serial_open): Likewise.
16249         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
16250         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
16251         (tui_alloc_win_info): Likewise.
16252         (tui_add_content_elements): Likewise.
16253         * tui/tui-file.c (tui_file_new): Likewise.
16254         * tui/tui-out.c (tui_out_new): Likewise.
16255         * ui-file.c (mem_file_new): Likewise.
16256         * ui-out.c (push_level): Likewise.
16257         (make_cleanup_ui_out_end): Likewise.
16258         (append_header_to_list): Likewise.
16259         (ui_out_new): Likewise.
16260         * user-regs.c (user_reg_add_builtin): Likewise.
16261
16262 2014-01-13  Tom Tromey  <tromey@redhat.com>
16263
16264         * defs.h (XZALLOC): Remove.
16265         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
16266         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
16267         (get_ada_tasks_inferior_data): Likewise.
16268         * auto-load.c (get_auto_load_pspace_data): Likewise.
16269         * auxv.c (get_auxv_inferior_data): Likewise.
16270         * bfd-target.c (target_bfd_reopen): Likewise.
16271         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
16272         (deprecated_insert_raw_breakpoint): Likewise.
16273         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
16274         * corelow.c (core_open): Likewise.
16275         * darwin-nat.c (darwin_check_new_threads): Likewise.
16276         (darwin_attach_pid): Likewise.
16277         * dummy-frame.c (dummy_frame_push): Likewise.
16278         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
16279         * dwarf2loc.c (allocate_piece_closure): Likewise.
16280         * elfread.c (elf_symfile_segments): Likewise.
16281         * eval.c (ptrmath_type_p): Likewise.
16282         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
16283         * gdbtypes.c (alloc_type_arch): Likewise.
16284         (alloc_type_instance): Likewise.
16285         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
16286         * inf-child.c (inf_child_can_use_agent): Likewise.
16287         * inflow.c (get_inflow_inferior_data): Likewise.
16288         * infrun.c (save_infcall_suspend_state): Likewise.
16289         * jit.c (jit_reader_load): Likewise.
16290         (get_jit_objfile_data): Likewise.
16291         (get_jit_program_space_data): Likewise.
16292         (jit_object_open_impl): Likewise.
16293         (jit_symtab_open_impl): Likewise.
16294         (jit_block_open_impl): Likewise.
16295         (jit_frame_sniffer): Likewise.
16296         * linux-fork.c (add_fork): Likewise.
16297         * maint.c (make_command_stats_cleanup): Likewise.
16298         * objfiles.c (get_objfile_pspace_data): Likewise.
16299         * opencl-lang.c (struct lval_closure): Likewise.
16300         * osdata.c (osdata_start_osdata): Likewise.
16301         * progspace.c (new_address_space): Likewise.
16302         (add_program_space): Likewise.
16303         * remote-sim.c (get_sim_inferior_data): Likewise.
16304         * sh-tdep.c (sh_gdbarch_init): Likewise.
16305         * skip.c (Ignore): Likewise.
16306         (skip_delete_command): Likewise.
16307         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
16308         (library_list_start_library): Likewise.
16309         (solib_aix_current_sos): Likewise.
16310         * solib-darwin.c (get_darwin_info): Likewise.
16311         (darwin_current_sos): Likewise.
16312         * solib-dsbt.c (get_dsbt_info): Likewise.
16313         * solib-ia64-hpux.c (new_so_list): Likewise.
16314         (ia64_hpux_get_solib_linkage_addr): Likewise.
16315         * solib-spu.c (append_ocl_sos): Likewise.
16316         (spu_current_sos): Likewise.
16317         * solib-svr4.c (get_svr4_info): Likewise.
16318         (svr4_keep_data_in_core): Likewise.
16319         (library_list_start_library): Likewise.
16320         (svr4_default_sos): Likewise.
16321         (svr4_read_so_list): Likewise.
16322         * solib-target.c (library_list_start_library): Likewise.
16323         (solib_target_current_sos): Likewise.
16324         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
16325         * symfile-debug.c (install_symfile_debug_logging): Likewise.
16326         * symfile.c (default_symfile_segments): Likewise.
16327         * target-descriptions.c (tdesc_data_init): Likewise.
16328         (tdesc_create_reg): Likewise.
16329         (struct tdesc_type *): Likewise.
16330         (tdesc_create_vector): Likewise.
16331         (tdesc_set_struct_size): Likewise.
16332         (struct tdesc_type *): Likewise.
16333         (tdesc_free_feature): Likewise.
16334         (tdesc_create_feature): Likewise.
16335         * windows-nat.c (windows_add_thread): Likewise.
16336         (windows_make_so): Likewise.
16337         * xml-support.c (gdb_xml_body_text): Likewise.
16338         (gdb_xml_create_parser_and_cleanup): Likewise.
16339         (xml_process_xincludes): Likewise.
16340         * xml-syscall.c (allocate_syscalls_info): Likewise.
16341         (syscall_create_syscall_desc): Likewise.
16342
16343 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
16344
16345         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
16346         function, with code from i386_stap_parse_special_token.
16347         (i386_stap_parse_special_token_three_arg_disp): Likewise.
16348         (i386_stap_parse_special_token): Move code to the two functions
16349         above; simplify it.
16350
16351 2014-01-09  Pedro Alves  <palves@redhat.com>
16352             Hui Zhu  <hui@codesourcery.com>
16353
16354         PR gdb/16101
16355         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
16356         bp_err_string.  Don't mark the location shlib_disabled if the
16357         error thrown wasn't a generic or memory error.  Catch errors
16358         thrown while inserting breakpoints in overlayed code.  Output
16359         error message of software breakpoints.
16360         * remote.c (remote_insert_breakpoint): If this breakpoint has
16361         target-side commands but this stub doesn't support Z0 packets,
16362         throw NOT_SUPPORTED_ERROR error.
16363         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
16364         * target.h (target_insert_breakpoint): Extend comment.
16365         (target_insert_hw_breakpoint): Add comment.
16366
16367 2014-01-08  Pedro Alves  <palves@redhat.com>
16368
16369         * remote.c (remote_add_thread): Add threads silently if starting
16370         up.
16371         (remote_notice_new_inferior): If in all-stop, and starting up,
16372         don't call notice_new_inferior.
16373         (get_current_thread): New function, factored out from ...
16374         (add_current_inferior_and_thread): ... this.  Adjust.
16375         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
16376         found any thread, then select the remote's current thread as GDB's
16377         current thread too.
16378
16379 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
16380
16381         * NEWS: Create a new section for the next release branch.
16382         Rename the section of the current branch, now that it has
16383         been cut.
16384
16385 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
16386
16387         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
16388         * version.in: Bump version to 7.7.50.DATE-cvs.
16389
16390 2014-01-08  Yao Qi  <yao@codesourcery.com>
16391
16392         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
16393         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
16394         (spu_xfer_partial): Cast 'buf' to 'const char *'.
16395
16396 2014-01-08  Yao Qi  <yao@codesourcery.com>
16397
16398         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
16399         return value of bfd_get_filename to symbol_file_add_from_bfd.
16400
16401 2014-01-08  Pierre Muller  <muller@sourceware.org>
16402
16403         Fix PR16201.
16404         * coff-pe-read.c (struct read_pe_section_data): Add index field.
16405         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
16406         to prim_record_mininal_symbol_and_info.
16407         (add_pe_forwarded_sym): Use known section number of forwarded symbol
16408         in call to prim_record_minimal_symbol_and_info.
16409         (read_pe_exported_syms): Set index field of section_data.
16410
16411 2014-01-07  Andrew Pinski  <apinski@cavium.com>
16412
16413         * features/aarch64-core.xml (cpsr): Change to be 64bit.
16414         * features/aarch64.c: Regenerate.
16415
16416 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
16417
16418         * target.c (return_null): Define.
16419         (update_current_target): Use it instead of return_zero for
16420         functions that return a pointer.
16421
16422 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
16423
16424         * source.c (add_path): Fix check for duplicated paths in the previously
16425         included paths.
16426
16427 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
16428
16429         * ada-lang.c: Remove duplicated include statements.
16430         * alphabsd-nat.c: Ditto.
16431         * amd64-darwin-tdep.c: Ditto.
16432         * amd64fbsd-nat.c: Ditto.
16433         * auto-load.c: Ditto.
16434         * ax-gdb.c: Ditto.
16435         * breakpoint.c: Ditto.
16436         * dbxread.c: Ditto.
16437         * fork-child.c: Ditto.
16438         * gdb_usleep.c: Ditto.
16439         * i386-darwin-tdep.c: Ditto.
16440         * i386fbsd-nat.c: Ditto.
16441         * infcmd.c: Ditto.
16442         * inferior.c: Ditto.
16443         * jv-lang.c: Ditto.
16444         * linux-nat.c: Ditto.
16445         * linux-tdep.c: Ditto.
16446         * m68kbsd-nat.c: Ditto.
16447         * m68klinux-nat.c: Ditto.
16448         * microblaze-tdep.c: Ditto.
16449         * mips-linux-tdep.c: Ditto.
16450         * mn10300-tdep.c: Ditto.
16451         * nto-tdep.c: Ditto.
16452         * opencl-lang.c: Ditto.
16453         * osdata.c: Ditto.
16454         * printcmd.c: Ditto.
16455         * regcache.c: Ditto.
16456         * remote-m32r-sdi.c: Ditto.
16457         * remote.c: Ditto.
16458         * symfile.c: Ditto.
16459         * symtab.c: Ditto.
16460         * tilegx-linux-nat.c: Ditto.
16461         * tilegx-tdep.c: Ditto.
16462         * tracepoint.c: Ditto.
16463         * valops.c: Ditto.
16464         * vaxbsd-nat.c: Ditto.
16465         * windows-nat.c: Ditto.
16466         * xtensa-tdep.c: Ditto.
16467
16468 2014-01-07  Yao Qi  <yao@codesourcery.com>
16469
16470         * spu-linux-nat.c (_initialize_spu_nat): Declare.
16471
16472 2014-01-07  Yao Qi  <yao@codesourcery.com>
16473             Joel Brobecker  <brobecker@adacore.com>
16474
16475         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
16476         (pdc_write_regs): Likewise.
16477         (fetch_regs_kernel_thread): Likewise.
16478         (store_regs_kernel_thread): Likewise.
16479
16480 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16481
16482         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
16483         tagged type objects to their actual type.
16484
16485 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16486
16487         * ada-valprint.c (print_field_values): Add "language" parameter.
16488         Update calls to print_field_values and print_variant_part.
16489         Pass new parameter "language" in call to val_print instead
16490         of "current_language".  Replace call to ada_val_print by call
16491         to val_print.
16492         (print_variant_part): Add "language" parameter.
16493         (ada_val_print_struct_union): Update call to print_field_values.
16494
16495 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16496
16497         * ada-valprint.c (ui_memcpy): Delete.
16498         (ada_print_floating): Update documentation.  Add empty line
16499         between between function documentation and implementation.
16500         Delete variable "buffer".  Use ui_file_xstrdup in place of
16501         ui_file_put.  Minor adjustments following this change.
16502
16503 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16504
16505         * ada-valprint.c (ada_val_print_string): New function,
16506         extracted from ada_val_print_array.
16507         (ada_val_print_array): Replace extracted code by call
16508         to ada_val_print_string followed by a return.  Move
16509         "else" branch to the function's top block.
16510
16511 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16512
16513         * ada-valprint.c (ada_val_print_array): Move implementation
16514         down.  Rename parameter "offset" and "val" into "offset_aligned"
16515         and "original_value" respectively.  Add parameter "offset".
16516
16517 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16518
16519         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
16520         re-organizing the code. Change the "???" message printed
16521         when target type is a TYPE_CODE_UNDEF into
16522         "<ref to undefined type>".
16523
16524 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16525
16526         * ada-valprint.c (print_record): Delete, implementation inlined...
16527         (ada_val_print_struct_union): ... here.  Remove call to
16528         ada_check_typedef in inlined implementation.
16529
16530 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16531
16532         * ada-valprint.c (ada_val_print_gnat_array): New function,
16533         extracted from ada_val_print_1;
16534         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
16535         (ada_val_print_flt, ada_val_print_struct_union)
16536         (ada_val_print_ref): Likewise.
16537         (ada_val_print_1): Delete variables i and elttype.
16538         Replace extracted-out code by call to corresponding
16539         new functions.
16540
16541 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16542
16543         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
16544
16545 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16546
16547         * ada-valprint.c (ada_val_print_1): Replace calls to
16548         ada_val_print_1 by calls to val_print.
16549
16550 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16551
16552         * ada-valprint.c (ada_val_print_1): Add parameter "language".
16553         Update calls to self accordingly.  Replace calls to c_val_print
16554         by calls to val_print.
16555
16556 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16557
16558         * ada-valprint.c (print_record): Delete declaration.
16559         (adjust_type_signedness, ada_val_print_1): Likewise.
16560         (ada_val_print): Move function implementation down.
16561         (print_variant_part, print_field_values, print_record):
16562         Move function implementation up.
16563
16564 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
16565
16566         * python/py-type.c (typy_get_name): New function.
16567         (type_object_getset): Add entry for attribute "name".
16568         * NEWS: Add entry mentioning this new attribute.
16569
16570 2014-01-07  Yao Qi  <yao@codesourcery.com>
16571
16572         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
16573         statement.
16574
16575 2014-01-07  Yao Qi  <yao@codesourcery.com>
16576
16577         * gnu-nat.c (info_port_rights): Add qualifier const to
16578         argument args.
16579
16580 2014-01-07  Yao Qi  <yao@codesourcery.com>
16581
16582         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
16583
16584 2014-01-07  Yao Qi  <yao@codesourcery.com>
16585
16586         * gnu-nat.c (make_inf) Update declaration.
16587         (make_inf): Make it static.
16588         (inf_set_traced): Likewise.
16589         (inf_port_to_thread, inf_task_died_status): Likewise.
16590
16591 2014-01-07  Yao Qi  <yao@codesourcery.com>
16592
16593         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
16594
16595 2014-01-07  Yao Qi  <yao@codesourcery.com>
16596
16597         * gnu-nat.c (_initialize_gnu_nat): Declare.
16598
16599 2014-01-07  Yao Qi  <yao@codesourcery.com>
16600
16601         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
16602         'enum bfd_endian'.
16603         (struct gdbarch_info) <byte_order>: Change type to
16604         'enum bfd_endian'.
16605         <byte_order_for_code>: Likewise.
16606         * gdbarch.c, gdbarch.h: Regenerated.
16607
16608 2014-01-06  Sasha Smundak  <asmundak@google.com>
16609
16610         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
16611
16612 2014-01-06  Tom Tromey  <tromey@redhat.com>
16613
16614         * doublest.c (convert_doublest_to_floatformat): Use const, not
16615         CONST.
16616         * somread.c (som_symtab_read): Likewise.
16617
16618 2014-01-07  Hui Zhu  <hui@codesourcery.com>
16619
16620         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
16621         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
16622         (gdb_bfd_fopen): Ditto.
16623         (gdb_bfd_openr): Ditto.
16624         (gdb_bfd_openw): Ditto.
16625         (gdb_bfd_openr_iovec): Ditto.
16626         (gdb_bfd_fdopenr): Ditto.
16627         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
16628         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
16629         with xstrdup.
16630         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
16631         with xstrdup.
16632         * symfile-mem.c (symbol_file_add_from_memory): Removed
16633         gdb_bfd_stash_filename.
16634
16635 2014-01-03  Doug Evans  <dje@google.com>
16636
16637         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
16638         output.
16639
16640 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
16641
16642         Update year range in copyright notice of all files.
16643
16644 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
16645
16646         * top.c (print_gdb_version): Set copyright year to 2014.
16647
16648 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
16649
16650         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
16651
16652 For older changes see ChangeLog-2013.
16653 \f
16654 Local Variables:
16655 mode: change-log
16656 left-margin: 8
16657 fill-column: 74
16658 version-control: never
16659 coding: utf-8
16660 End: