Import errno explicitly
[external/binutils.git] / gdb / ChangeLog
1 2014-11-21  Yao Qi  <yao@codesourcery.com>
2
3         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
4         errno.
5         * gnulib/import/Makefile.am: Re-generated.
6         * gnulib/import/Makefile.in: Likewise.
7         * gnulib/import/m4/gnulib-cache.m4: Likewise.
8
9 2014-11-21  Yao Qi  <yao@codesourcery.com>
10
11         * gdb_wchar.h: Include wchar.h and wctype.h.
12         [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
13         include wchar.h and wctype.h.
14         Don't check HAVE_WCHAR_H.
15
16 2014-11-21  Yao Qi  <yao@codesourcery.com>
17
18         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
19         and wctype-h.
20         * gnulib/import/Makefile.am: Re-generated.
21         * gnulib/import/Makefile.in: Likewise.
22         * gnulib/import/m4/gnulib-cache.m4: Likewise.
23
24 2014-11-21  Yao Qi  <yao@codesourcery.com>
25
26         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
27         memchr.
28         * gnulib/import/Makefile.am: Re-generated.
29         * gnulib/import/Makefile.in: Likewise.
30         * gnulib/import/m4/gnulib-cache.m4: Likewise.
31
32 2014-11-21  Yao Qi  <yao@codesourcery.com>
33
34         * common/common-defs.h: Include alloca.h
35         * configure.ac: Don't invoke AC_FUNC_ALLOCA.
36         * configure: Re-generated.
37         * defs.h: Remove code handling alloca.
38         * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
39         or not.
40
41 2014-11-21  Yao Qi  <yao@codesourcery.com>
42
43         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
44         alloca.
45         * gnulib/import/Makefile.am: Re-generated.
46         * gnulib/import/Makefile.in: Likewise..
47         * gnulib/import/m4/gnulib-cache.m4: Likewise.
48
49 2014-11-21  Yao Qi  <yao@codesourcery.com>
50
51         * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
52         alphabetical order.
53
54 2014-11-21  Joel Brobecker  <brobecker@adacore.com>
55
56         * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
57         flag_unsigned if HIGH_BOUND is constant and negative.
58
59 2014-11-20  Sergio Durigan Junior  <sergiodj@redhat.com>
60
61         PR breakpoints/10737
62         * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
63         modifier from "struct gdbarch" when compiling without Expat (XML)
64         support.
65         (get_syscall_by_number): Likewise.
66         (get_syscall_by_name): Likewise.
67         (get_syscall_names): Likewise.
68
69 2014-11-20  Sergio Durigan Junior  <sergiodj@redhat.com>
70
71         PR breakpoints/10737
72         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
73         set_xml_syscall_file_name to provide gdbarch.
74         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
75         * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
76         * breakpoint.c (print_it_catch_syscall): Adjust call to
77         get_syscall_by_number to provide gdbarch.
78         (print_one_catch_syscall): Likewise.
79         (print_mention_catch_syscall): Likewise.
80         (print_recreate_catch_syscall): Likewise.
81         (catch_syscall_split_args): Adjust calls to get_syscall_by_number
82         and get_syscall_by_name to provide gdbarch.
83         (catch_syscall_completer): Adjust call to get_syscall_names to
84         provide gdbarch.
85         * gdbarch.c: Regenerate.
86         * gdbarch.h: Likewise.
87         * gdbarch.sh: Forward declare "struct syscalls_info".
88         (xml_syscall_file): New variable.
89         (syscalls_info): Likewise.
90         * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
91         set_xml_syscall_file_name to provide gdbarch.
92         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
93         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
94         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
95         * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
96         * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
97         * xml-syscall.c: Include gdbarch.h.
98         (set_xml_syscall_file_name): Accept gdbarch parameter.
99         (get_syscall_by_number): Likewise.
100         (get_syscall_by_name): Likewise.
101         (get_syscall_names): Likewise.
102         (my_gdb_datadir): Delete global variable.
103         (struct syscalls_info) <my_gdb_datadir>: New variable.
104         (struct syscalls_info) <sysinfo>: Rename variable to
105         "syscalls_info".
106         (sysinfo): Delete global variable.
107         (have_initialized_sysinfo): Likewise.
108         (xml_syscall_file): Likewise.
109         (sysinfo_free_syscalls_desc): Rename to...
110         (syscalls_info_free_syscalls_desc): ... this.
111         (free_syscalls_info): Rename "sysinfo" to "syscalls_info".  Adjust
112         code to the new layout of "struct syscalls_info".
113         (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
114         "syscalls_info".
115         (syscall_create_syscall_desc): Likewise.
116         (syscall_start_syscall): Likewise.
117         (syscall_parse_xml): Likewise.
118         (xml_init_syscalls_info): Likewise.  Drop "const" from return value.
119         (init_sysinfo): Rename to...
120         (init_syscalls_info): ...this.  Add gdbarch as a parameter.
121         Adjust function to deal with gdbarch.
122         (xml_get_syscall_number): Delete parameter sysinfo.  Accept
123         gdbarch as a parameter.  Adjust code.
124         (xml_get_syscall_name): Likewise.
125         (xml_list_of_syscalls): Likewise.
126         (set_xml_syscall_file_name): Accept gdbarch as parameter.
127         (get_syscall_by_number): Likewise.
128         (get_syscall_by_name): Likewise.
129         (get_syscall_names): Likewise.
130         * xml-syscall.h (set_xml_syscall_file_name): Likewise.
131         (get_syscall_by_number): Likewise.
132         (get_syscall_by_name): Likewise.
133         (get_syscall_names): Likewise.
134
135 2014-11-20  Doug Evans  <xdje42@gmail.com>
136
137         Split struct symtab into two: struct symtab and compunit_symtab.
138         * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
139         * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
140         to "struct compunit_symtab *".  All callers updated.
141         (set_block_compunit_symtab): Renamed from set_block_symtab.  Change
142         "struct symtab *" argument to "struct compunit_symtab *".
143         All callers updated.
144         (get_block_compunit_symtab): Renamed from get_block_symtab.  Change
145         result to "struct compunit_symtab *".  All callers updated.
146         (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
147         Change result to "struct compunit_symtab *".  All callers updated.
148         * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
149         hange type to "struct compunit_symtab *".  All uses updated.
150         (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
151         Change type to "struct compunit_symtab *".  All uses updated.
152         * buildsym.c (struct buildsym_compunit): New struct.
153         (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
154         (buildsym_compunit): New static global.
155         (finish_block_internal): Update to fetch objfile from
156         buildsym_compunit.
157         (make_blockvector): Delete objfile argument.
158         (start_subfile): Rewrite to use buildsym_compunit.  Don't initialize
159         debugformat, producer.
160         (start_buildsym_compunit): New function.
161         (free_buildsym_compunit): Renamed from free_subfiles_list.
162         All callers updated.
163         (patch_subfile_names): Rewrite to use buildsym_compunit.
164         (get_compunit_symtab): New function.
165         (get_macro_table): Delete argument comp_dir.  All callers updated.
166         (start_symtab): Change result to "struct compunit_symtab *".
167         All callers updated.  Create the subfile of the main source file.
168         (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
169         (reset_symtab_globals): Update.
170         (end_symtab_get_static_block): Update to use buildsym_compunit.
171         (end_symtab_without_blockvector): Rewrite.
172         (end_symtab_with_blockvector): Change result to
173         "struct compunit_symtab *".  All callers updated.
174         Update to use buildsym_compunit.  Don't set symtab->dirname,
175         instead set it in the compunit.
176         Explicitly make sure main symtab is first in its list.
177         Set debugformat, producer, blockvector, block_line_section, and
178         macrotable in the compunit.
179         (end_symtab_from_static_block): Change result to
180         "struct compunit_symtab *".  All callers updated.
181         (end_symtab, end_expandable_symtab): Ditto.
182         (set_missing_symtab): Change symtab argument to
183         "struct compunit_symtab *".  All callers updated.
184         (augment_type_symtab): Ditto.
185         (record_debugformat): Update to use buildsym_compunit.
186         (record_producer): Update to use buildsym_compunit.
187         * buildsym.h (struct subfile) <dirname>: Delete.
188         <producer, debugformat>: Delete.
189         <buildsym_compunit>: New member.
190         (get_compunit_symtab): Declare.
191         * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
192         from primary_symtab.  Change type to "struct compunit_symtab *".
193         All uses updated.
194         (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
195         All callers updated.
196         (dwarf_decode_macros): Delete comp_dir argument.  All callers updated.
197         (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
198         symtab.  Change type to "struct compunit_symtab *".  All uses updated.
199         (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
200         All callers updated.
201         (dw2_find_last_source_symtab): Ditto.
202         (dw2_lookup_symbol): Ditto.
203         (recursively_find_pc_sect_compunit_symtab): Renamed from
204         recursively_find_pc_sect_symtab.  Change result to
205         "struct compunit_symtab *".  All callers updated.
206         (dw2_find_pc_sect_compunit_symtab): Renamed from
207         dw2_find_pc_sect_symtab.  Change result to
208         "struct compunit_symtab *".  All callers updated.
209         (get_compunit_symtab): Renamed from get_symtab.  Change result to
210         "struct compunit_symtab *".  All callers updated.
211         (recursively_compute_inclusions): Change type of immediate_parent
212         argument to "struct compunit_symtab *".  All callers updated.
213         (compute_compunit_symtab_includes): Renamed from
214         compute_symtab_includes.  All callers updated.  Rewrite to compute
215         includes of compunit_symtabs and not symtabs.
216         (process_full_comp_unit): Update to work with struct compunit_symtab.
217         (process_full_type_unit): Ditto.
218         (dwarf_decode_lines_1): Delete argument comp_dir.  All callers updated.
219         (dwarf_decode_lines): Remove special case handling of main subfile.
220         (macro_start_file): Delete argument comp_dir.  All callers updated.
221         (dwarf_decode_macro_bytes): Ditto.
222         * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
223         use struct compunit_symtab.
224         * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
225         * jit.c (finalize_symtab): Build compunit_symtab.
226         * jv-lang.c (get_java_class_symtab): Change result to
227         "struct compunit_symtab *".  All callers updated.
228         * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
229         * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
230         comp_dir.  Change type to "struct compunit_symtab *".
231         All uses updated.
232         (new_macro_table): Change comp_dir argument to cust,
233         "struct compunit_symtab *".  All callers updated.
234         * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
235         nr_primary_symtabs.  All uses updated.
236         (count_symtabs_and_blocks): Update to handle compunits.
237         (report_command_stats): Update output, "primary symtabs" renamed to
238         "compunits".
239         * mdebugread.c (new_symtab): Change result to
240         "struct compunit_symtab *".  All callers updated.
241         (parse_procedure): Change type of search_symtab argument to
242         "struct compunit_symtab *".  All callers updated.
243         * objfiles.c (objfile_relocate1): Loop over blockvectors in a
244         separate loop.
245         * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
246         symtabs.  Change type to "struct compunit_symtab *".  All uses updated.
247         (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
248         All uses updated.
249         (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
250         All uses updated.
251         (ALL_FILETABS): Renamed from ALL_SYMTABS.  All uses updated.
252         (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS.  All uses updated.
253         * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
254         symtab.  Change type to "struct compunit_symtab *".  All uses updated.
255         * psymtab.c (psymtab_to_symtab): Change result type to
256         "struct compunit_symtab *".  All callers updated.
257         (find_pc_sect_compunit_symtab_from_partial): Renamed from
258         find_pc_sect_symtab_from_partial.  Change result type to
259         "struct compunit_symtab *".  All callers updated.
260         (lookup_symbol_aux_psymtabs): Change result type to
261         "struct compunit_symtab *".  All callers updated.
262         (find_last_source_symtab_from_partial): Ditto.
263         * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
264         * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
265         and macro_table from compunit.
266         * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
267         type to "struct compunit_symtab *".  All callers updated.
268         (debug_qf_lookup_symbol): Ditto.
269         (debug_qf_find_pc_sect_compunit_symtab): Renamed from
270         debug_qf_find_pc_sect_symtab, change result type to
271         "struct compunit_symtab *".  All callers updated.
272         * symfile.c (allocate_symtab): Delete objfile argument.
273         New argument cust.
274         (allocate_compunit_symtab): New function.
275         (add_compunit_symtab_to_objfile): New function.
276         * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
277         Change result type to "struct compunit_symtab *".  All uses updated.
278         <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
279         Change result type to "struct compunit_symtab *".  All uses updated.
280         * symmisc.c (print_objfile_statistics): Compute blockvector count in
281         separate loop.
282         (dump_symtab_1): Update test for primary source symtab.
283         (maintenance_info_symtabs): Update to handle compunit symtabs.
284         (maintenance_check_symtabs): Ditto.
285         * symtab.c (set_primary_symtab): Delete.
286         (compunit_primary_filetab): New function.
287         (compunit_language): New function.
288         (iterate_over_some_symtabs): Change type of arguments "first",
289         "after_last" to "struct compunit_symtab *".  All callers updated.
290         Update to loop over symtabs in each compunit.
291         (error_in_psymtab_expansion): Rename symtab argument to cust,
292         and change type to "struct compunit_symtab *".  All callers updated.
293         (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
294         Change result type to "struct compunit_symtab *".  All callers updated.
295         (find_pc_compunit_symtab): Renamed from find_pc_symtab.
296         Change result type to "struct compunit_symtab *".  All callers updated.
297         (find_pc_sect_line): Only loop over symtabs within selected compunit
298         instead of all symtabs in the objfile.
299         * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
300         <compunit_symtab> New member.
301         <block_line_section>: Moved to compunit_symtab.
302         <locations_valid>: Ditto.
303         <epilogue_unwind_valid>: Ditto.
304         <macro_table>: Ditto.
305         <dirname>: Ditto.
306         <debugformat>: Ditto.
307         <producer>: Ditto.
308         <objfile>: Ditto.
309         <call_site_htab>: Ditto.
310         <includes>: Ditto.
311         <user>: Ditto.
312         <primary>: Delete
313         (SYMTAB_COMPUNIT): New macro.
314         (SYMTAB_BLOCKVECTOR): Update definition.
315         (SYMTAB_OBJFILE): Update definition.
316         (SYMTAB_DIRNAME): Update definition.
317         (struct compunit_symtab): New type.  Common members among all source
318         symtabs within a compilation unit moved here.  All uses updated.
319         (COMPUNIT_OBJFILE): New macro.
320         (COMPUNIT_FILETABS): New macro.
321         (COMPUNIT_DEBUGFORMAT): New macro.
322         (COMPUNIT_PRODUCER): New macro.
323         (COMPUNIT_DIRNAME): New macro.
324         (COMPUNIT_BLOCKVECTOR): New macro.
325         (COMPUNIT_BLOCK_LINE_SECTION): New macro.
326         (COMPUNIT_LOCATIONS_VALID): New macro.
327         (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
328         (COMPUNIT_CALL_SITE_HTAB): New macro.
329         (COMPUNIT_MACRO_TABLE): New macro.
330         (ALL_COMPUNIT_FILETABS): New macro.
331         (compunit_symtab_ptr): New typedef.
332         (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
333
334 2014-11-20  Joel Brobecker  <brobecker@adacore.com>
335
336         * ada-lang.c (ada_is_redundant_range_encoding): Return 0
337         if the TYPE_CODE of range_type's base type does not match
338         the TYPE_CODE of encoding_type's base type.
339
340 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
341
342         * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
343         it starts with '<'.
344
345 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
346
347         * ada-lang.c (ada_is_redundant_range_encoding): New function.
348         (ada_is_redundant_index_type_desc): New function.
349         (to_fixed_array_type): Ignore parallel XA type if redundant.
350
351 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
352
353         * ada-lang.c (constrained_packed_array_type): Set the length
354         of the return array as if both bounds where zero if that
355         returned array's index type is dynamic.
356
357 2014-11-19  Yao Qi  <yao@codesourcery.com>
358
359         * config/i386/go32.mh (CC): Remove.
360
361 2014-11-18  Doug Evans  <xdje42@gmail.com>
362
363         * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR.  All uses
364         updated.
365
366 2014-11-18  Doug Evans  <xdje42@gmail.com>
367
368         * buildsym.c (buildsym_objfile): New static global.
369         (buildsym_comp_dir): New static global.
370         (finish_block_internal): Delete arg objfile.  All callers updated.
371         (finish_block): Delete arg objfile.  All callers updated.
372         (start_subfile): Delete arg dirname.  All callers updated.
373         (patch_subfile_names): Update buildsym_comp_dir.
374         (get_macro_table): Delete arg objfile.  All callers updated.
375         (start_symtab): New arg objfile.  All callers updated.
376         Rename arg dirname to comp_dir.
377         (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
378         (end_symtab_get_static_block): Delete arg objfile.  All callers
379         updated.
380         (end_symtab_without_blockvector): Ditto.
381         (end_symtab_with_blockvector): Ditto.
382         (end_symtab_from_static_block): Ditto.
383         (end_symtab): Ditto.
384         (end_expandable_symtab): Ditto.
385         (augment_type_symtab): Ditto.
386         * coffread.c (coff_start_symtab): New arg objfile.  All callers
387         updated.
388
389 2014-11-18  Doug Evans  <xdje42@gmail.com>
390
391         * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE.  All uses
392         updated.
393
394 2014-11-18  Doug Evans  <xdje42@gmail.com>
395
396         * symtab.h (SYMTAB_DIRNAME): New macro.  All uses of member
397         symtab.dirname updated to use it.
398
399 2014-11-18  Doug Evans  <xdje42@gmail.com>
400
401         * symtab.h (SYMTAB_OBJFILE): New macro.  All uses of member
402         symtab.objfile updated to use it.
403
404 2014-11-18  Doug Evans  <xdje42@gmail.com>
405
406         * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
407
408 2014-11-18  Doug Evans  <xdje42@gmail.com>
409
410         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
411         SYMBOL_OBJFILE.
412         * findvar.c (default_read_var_value): Ditto.
413         * jv-lang.c (add_class_symtab_symbol): Ditto.
414         * parse.c (operator_check_standard): Ditto.
415         * printcmd.c (address_info): Ditto.
416         * symtab.c (fixup_symbol_section): Ditto.
417         (skip_prologue_sal): Ditto.
418         * tracepoint.c (scope_info): Ditto.
419         * valops.c (find_function_in_inferior): Ditto.
420         * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
421         * python/py-symbol.c (set_symbol): Ditto.
422
423 2014-11-18  Doug Evans  <xdje42@gmail.com>
424
425         * buildsym.c (main_subfile): New static global.
426         (free_subfiles_list): New function.
427         (start_symtab): Set main_subfile.
428         (restart_symtab): Replace init of subfiles, current_subfile with
429         call to free_subfiles_list.
430         (watch_main_source_file_lossage): Use main_subfile.
431         (reset_symtab_globals): Replace init of current_subfile with call
432         to free_subfiles_list.
433         (end_symtab_without_blockvector, end_symtab_with_blockvector): New
434         functions, split out from ...
435         (end_symtab_from_static_block): ... here.  Rewrite to call them.
436
437 2014-11-18  Doug Evans  <xdje42@gmail.com>
438
439         The result of symtab expansion is always a primary symtab.
440         * dwarf2read.c (dw2_instantiate_symtab): Add assert.
441         (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
442         * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
443         (psymtab_to_symtab): Add comment and assert.
444         (map_matching_symbols_psymtab): Remove unnecessary test for
445         non-primary symtab.
446
447 2014-11-15  Doug Evans  <xdje42@gmail.com>
448
449         PR symtab/17559
450         * symtab.c (find_pc_line_symtab): New function.
451         * symtab.h (find_pc_line_symtab): Declare.
452         * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
453         find_pc_symtab.
454         * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
455         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
456         * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
457         * tui/tui-win.c (make_visible_with_new_height): Ditto.
458         * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
459         (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
460
461 2014-11-15  Doug Evans  <xdje42@gmail.com>
462
463         * symtab.c (expand_symtab_containing_pc): Renamed from
464         find_pc_sect_symtab_via_partial.  All callers updated.
465
466 2014-11-15  Yao Qi  <yao@codesourcery.com>
467
468         * go32-nat.c (go32_create_inferior): Add missing parenthesis.
469
470 2014-11-14  Joel Brobecker  <brobecker@adacore.com>
471
472         * common/common-defs.h: Move <stdarg.h> #include ahead of
473         <stdio.h> #include.
474
475 2014-11-14  Pedro Alves  <palves@redhat.com>
476
477         * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
478         [!PHONY_ICONV] (gdb_iconv): New function.
479         [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
480
481 2014-11-13  Doug Evans  <dje@google.com>
482
483         PR symtab/17591
484         * dwarf2read.c (find_slot_in_mapped_hash): Handle
485         "(anonymous namespace)".
486
487 2014-11-13  Doug Evans  <dje@google.com>
488
489         * dwarf2read.c (update_enumeration_type_from_children): Avoid
490         infinite loop.
491
492 2014-11-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
493
494         * NEWS (maint set target-async): Fix typo.
495
496 2014-11-12  Pedro Alves  <palves@redhat.com>
497
498         * infrun.c (enum infwait_states, infwait_state): Delete.
499
500 2014-11-12  Pedro Alves  <palves@redhat.com>
501
502         * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
503         Rewrite stepping over a permanent breakpoint.
504         (thread_still_needs_step_over, proceed): Don't set
505         stepping_over_breakpoint for permanent breakpoints.
506         (handle_signal_stop): Don't clear stepped_breakpoint.  Also pull
507         single-step breakpoints out of the target on hardware step
508         targets.
509         (process_event_stop_test): If stepping a permanent breakpoint
510         doesn't hit the step-resume breakpoint, delete the step-resume
511         breakpoint.
512         (switch_back_to_stepped_thread): Also check if the stepped thread
513         has advanced already on hardware step targets.
514         (currently_stepping): Return true if the thread stepped a
515         breakpoint.
516
517 2014-11-12  Pedro Alves  <palves@redhat.com>
518
519         Mark locations as permanent, not the whole breakpoint.
520         * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
521         (mark_breakpoints_out): Don't mark permanent breakpoints as
522         uninserted.
523         (breakpoint_init_inferior): Use mark_breakpoints_out.
524         (breakpoint_here_p): Adjust.
525         (bpstat_stop_status, describe_other_breakpoints): Remove handling
526         of permanent breakpoints.
527         (make_breakpoint_permanent): Mark each location as permanent,
528         instead of marking the breakpoint.
529         (add_location_to_breakpoint): If the location is permanent, mark
530         it as such, and as inserted.
531         (init_breakpoint_sal): Don't make the breakpoint permanent here.
532         (bp_location_compare, update_global_location_list): Adjust.
533         (update_breakpoint_locations): Don't make the breakpoint permanent
534         here.
535         (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
536         breakpoints.
537         * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
538         (struct bp_location) <permanent>: New field.
539         * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
540         reference to bp_permanent.
541
542 2014-11-12  Pedro Alves  <palves@redhat.com>
543
544         * arch-utils.c (default_skip_permanent_breakpoint): New function.
545         * arch-utils.h (default_skip_permanent_breakpoint): New
546         declaration.
547         * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
548         Install default_skip_permanent_breakpoint as default method.
549         * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
550         (i386_gdbarch_init): Don't install it.
551         * infrun.c (resume): Assume there's always a
552         gdbarch_skip_permanent_breakpoint implementation.
553         * gdbarch.h, gdbarch.c: Regenerate.
554
555 2014-11-11  Daniel Colascione  <dancol@dancol.org>
556
557         Warn about cross-PID-namespace debugging.
558         * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
559         * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
560         * linux-thread-db.c (check_pid_namespace_match): New function.
561         (thread_db_inferior_created): Call it.
562
563 2014-11-10  Doug Evans  <xdje42@gmail.com>
564
565         * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
566         (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
567
568 2014-11-10  Doug Evans  <xdje42@gmail.com>
569
570         * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
571
572 2014-11-10  Doug Evans  <xdje42@gmail.com>
573
574         PR symtab/17564
575         * symtab.c (lookup_symbol_in_all_objfiles): Delete.
576         (lookup_static_symbol): Move definition to new location and rewrite.
577         (lookup_symbol_in_objfile): New function.
578         (lookup_symbol_global_iterator_cb): Call it.
579
580 2014-11-10  Ulrich Weigand  <uweigand@de.ibm.com>
581
582         * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
583
584 2014-11-07  Pedro Alves  <palves@redhat.com>
585
586         * infrun.c (process_event_stop_test) <subroutine check>: Don't
587         check if we did a "nexti" inside a prologue.
588         * symtab.c (in_prologue): Delete function.
589         * symtab.h (in_prologue): Delete declaration.
590
591 2014-11-06  Doug Evans  <xdje42@gmail.com>
592
593         * symtab.h (lookup_global_symbol): Improve function comment.
594
595 2014-11-06  Doug Evans  <xdje42@gmail.com>
596
597         * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
598         All callers updated.
599         * symtab.h (lookup_global_symbol): Update decl.
600         (lookup_static_symbol): Move decl to better location.
601
602 2014-11-06  Doug Evans  <xdje42@gmail.com>
603
604         * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
605
606 2014-11-06  Doug Evans  <xdje42@gmail.com>
607
608         * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
609         All callers updated.
610         (lookup_symbol_in_all_objfiles): Renamed from
611         lookup_symbol_aux_symtabs.  All callers updated.
612         (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
613         All callers updated.
614         (lookup_symbol_in_objfile_symtabs): Renamed from
615         lookup_symbol_aux_objfile.  All callers updated.
616
617 2014-11-06  Doug Evans  <xdje42@gmail.com>
618
619         * symtab.c (lookup_symbol_in_block): Renamed from
620         lookup_symbol_aux_block.  All callers updated.
621
622 2014-11-06  Doug Evans  <xdje42@gmail.com>
623
624         * symtab.c (lookup_static_symbol): Renamed from
625         lookup_static_symbol_aux.  All callers updated.
626         (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
627         All callers updated.
628
629 2014-11-06  Doug Evans  <xdje42@gmail.com>
630
631         * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
632         * block.c (block_lookup_symbol): Use it.
633         * cp-support.c (make_symbol_overload_list_block): Use it.
634         * symtab.c (iterate_over_symbols): Use it.
635
636 2014-11-06  Doug Evans  <xdje42@gmail.com>
637
638         * symtab.c (lookup_block_symbol): Moved to ...
639         * block.c (block_lookup_symbol):  ... here and renamed.
640         All callers updated.
641         * block.h (block_lookup_symbol): Declare.
642         * symtab.h (lookup_block_symbol): Delete.
643
644 2014-11-06  Doug Evans  <xdje42@gmail.com>
645
646         * ada-lang.c (ada_make_symbol_completion_list): Use
647         ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
648         * symtab.c (lookup_objfile_from_block): Ditto.
649
650 2014-11-06  Doug Evans  <xdje42@gmail.com>
651
652         * gdbtypes.h (TYPE_CODE_CLASS): Delete.  All uses changed to use
653         TYPE_CODE_STRUCT.
654
655 2014-11-06  Doug Evans  <xdje42@gmail.com>
656
657         * objfiles.c (get_objfile_arch): Constify.
658         * objfiles.h (get_objfile_arch): Update prototype.
659         * solib.c (solib_global_lookup): Fetch arch from objfile,
660         not target_gdbarch.
661
662 2014-11-06  Sandra Loosemore  <sandra@codesourcery.com>
663
664         * nios2-tdep.c (wild_insn): Delete.
665         (profiler_insn, irqentry_insn): Delete.
666         (nios2_match_sequence): Delete.
667         (nios2_analyze_prologue): Update comments.  Remove matching
668         of obsolete profiler_insn and irqentry_insn sequences.
669
670 2014-11-05  Alan Modra  <amodra@gmail.com>
671
672         * charset.c (convert_between_encodings): Shrink obstack using
673         obstack_blank_fast.
674         * minsyms.c (install_minimal_symbols): Likewise.
675         * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
676         to char* before doing pointer arithmetic.
677
678 2014-11-04  Simon Marchi  <simon.marchi@ericsson.com>
679
680         * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
681
682 2014-11-04  Pedro Alves  <palves@redhat.com>
683
684         * breakpoint.c (breakpoint_thread_match): Delete function.
685         * breakpoint.h (breakpoint_thread_match): Delete declaration.
686
687 2014-11-03  Siva Chandra Reddy  <sivachandra@google.com>
688
689         PR c++/17494
690         * eval.c (evaluate_subexp_standard): Evaluate the "object" and
691         the method args also under EVAL_SKIP when evaluating method
692         calls under EVAL_SKIP.
693
694 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
695
696         * dwarf2loc.c (read_pieced_value): Do big endian
697         processing only if gdb_regnum is not -1.
698         (write_pieced_value): Ditto.
699
700 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
701
702         * arm-linux-tdep.c (arm_linux_init_abi): Use
703         info.byte_order_for_code to choose endianity of breakpoint
704         instructions snippets.
705
706 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
707
708         * arm-tdep.c (extract_arm_insn): Use
709         gdbarch_byte_order_for_code to read arm instruction.
710
711 2014-11-02  Doug Evans  <xdje42@gmail.com>
712
713         * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
714
715 2014-11-02  Doug Evans  <xdje42@gmail.com>
716
717         * xcoffread.c (process_linenos): Delete unnecessary zeroing of
718         main_subfile before returning.
719
720 2014-10-31  Doug Evans  <xdje42@gmail.com>
721
722         * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
723         (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
724
725 2014-10-31  Doug Evans  <xdje42@gmail.com>
726
727         * valops.c (value_cast_pointers): Fix whitespace.
728         (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
729         Ditto.
730
731 2014-10-30  Doug Evans  <dje@google.com>
732
733         * NEWS: Mention ability add attributes to gdb.Objfile and
734         gdb.Progspace objects.
735         * python/py-objfile.c (objfile_object): New member dict.
736         (objfpy_dealloc): Py_XDECREF dict.
737         (objfpy_initialize): Initialize dict.
738         (objfile_getset): Add __dict__.
739         (objfile_object_type): Set tp_dictoffset member.
740         * python/py-progspace.c (progspace_object): New member dict.
741         (pspy_dealloc): Py_XDECREF dict.
742         (pspy_initialize): Initialize dict.
743         (pspace_getset): Add __dict__.
744         (pspace_object_type): Set tp_dictoffset member.
745
746 2014-10-30  Yao Qi  <yao@codesourcery.com>
747
748         * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
749         replace '\\' with '\\\\'.
750
751 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
752
753         GDB 7.8.1 released.
754
755 2014-10-29  Pedro Alves  <palves@redhat.com>
756
757         PR gdb/17408
758         * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
759         instead of assuming a thread with a stepping range is always
760         stepping.
761
762 2014-10-29  Pedro Alves  <palves@redhat.com>
763
764         PR python/17372
765         * event-top.c (change_line_handler): Call
766         gdb_rl_callback_handler_remove instead of
767         rl_callback_handler_remove.
768         (callback_handler_installed): New global.
769         (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
770         (gdb_rl_callback_handler_reinstall): New functions.
771         (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
772         gdb_rl_callback_handler_install instead of
773         rl_callback_handler_remove and rl_callback_handler_install.
774         (gdb_disable_readline): Call gdb_rl_callback_handler_remove
775         instead of rl_callback_handler_remove.
776         * event-top.h (gdb_rl_callback_handler_remove)
777         (gdb_rl_callback_handler_install)
778         (gdb_rl_callback_handler_reinstall): New declarations.
779         * infrun.c (reinstall_readline_callback_handler_cleanup): New
780         cleanup function.
781         (fetch_inferior_event): Install it.
782         * top.c (gdb_readline_wrapper_line) Call
783         gdb_rl_callback_handler_remove instead of
784         rl_callback_handler_remove.
785         (gdb_readline_wrapper_cleanup): Don't call
786         rl_callback_handler_install.
787
788 2014-10-29  Pedro Alves  <palves@redhat.com>
789
790         * event-top.c (command_line_handler): Clear the first byte of
791         linebuffer, when it is first allocated.
792
793 2014-10-29  Pedro Alves  <palves@redhat.com>
794
795         * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
796         TRY_CATCH.
797
798 2014-10-29  Pedro Alves  <palves@redhat.com>
799
800         PR tui/16138
801         PR tui/17519
802         * tui/tui-interp.c (tui_is_toplevel): Delete global.
803         (tui_allowed_p): Delete function.
804         * tui/tui.c: Include "interps.h".
805         (tui_enable): Don't use tui_allowed_p.  Error out here with
806         detailed error messages if the TUI is the top level interpreter,
807         or if output is not a terminal.  Use newterm instead of initscr,
808         and error out if initializing the terminal fails.  Also error out if
809         the terminal doesn't support cursor addressing.
810         * tui/tui.h (tui_allowed_p): Delete declaration.
811
812 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
813
814         * arm-tdep.c (arm_skip_stack_protector): Return early if
815         address loaded by first "ldr" instruction does not have
816         a corresponding minimal symbol.  Update comment.
817
818 2014-10-29  Yao Qi  <yao@codesourcery.com>
819
820         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
821         loaded address correctly of ldr instruction.
822
823 2014-10-28  Pedro Alves  <palves@redhat.com>
824
825         PR gdb/12623
826         * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
827         field.
828         * infrun.c (resume) <stepping breakpoint instruction>: Set the
829         thread's stepped_breakpoint field.  Skip if reverse debugging.
830         Add comment.
831         (init_thread_stepping_state, handle_signal_stop): Clear the
832         thread's stepped_breakpoint field.
833
834 2014-10-27  Pedro Alves  <palves@redhat.com>
835
836         * remote.c (remote_thread_alive): New, factored out from ...
837         (remote_thread_alive): ... this.
838         (remote_update_thread_list): Bail out before deleting threads if
839         the target returned an empty list, and, the current thread has a
840         magic/fake ptid.
841
842 2014-10-27  Pedro Alves  <palves@redhat.com>
843
844         * infrun.c (handle_signal_stop): Also skip handlers when a random
845         signal arrives while handling a "stepi" or a "nexti".  Set the
846         thread's 'step_after_step_resume_breakpoint' flag.
847
848 2014-10-27  Luis Machado  <lgustavo@codesourcery.com>
849
850         * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
851         (arm_record_ld_st_imm_offset): Reimplement to cover all
852         load/store cases for ARM opcode 010.
853         (arm_record_ld_st_multiple): Reimplement to cover all
854         load/store cases for ARM opcode 100.
855
856 2014-10-26  Doug Evans  <xdje42@gmail.com>
857
858         * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
859
860 2014-10-26  Doug Evans  <xdje42@gmail.com>
861
862         * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
863         parameter "kind" to "block_index".
864         * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
865         "block_index".
866         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
867
868 2014-10-26  Doug Evans  <xdje42@gmail.com>
869
870         * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
871
872 2014-10-26  Doug Evans  <xdje42@gmail.com>
873
874         * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
875         obstack_alloc.
876
877 2014-10-26  Doug Evans  <xdje42@gmail.com>
878
879         * parser-defs.h (block_found): Move decl from here ...
880         * symtab.h (block_found): ... to here.
881
882 2014-10-26  Doug Evans  <xdje42@gmail.com>
883
884         * symtab.h (struct field_of_this_result): Fix typo in comment.
885         (lookup_symbol_in_language): Move function comment here.
886         (lookup_symbol): Improve function comment.
887         (basic_lookup_symbol_nonlocal): Ditto.
888         (lookup_symbol_static, lookup_symbol_global): Ditto.
889         (lookup_symbol_aux_block): Ditto.
890         (lookup_language_this): Add function comment.
891         (lookup_static_symbol_aux): Explicitly mark as extern.  Improve
892         function comment.
893         (lookup_block_symbol): Improve function comment.
894         (lookup_struct): Fix capitalization in function comment.
895         (lookup_transparent_type): Add function comment.
896         (lookup_global_symbol_from_objfile): Explicitly mark as extern.
897         Improve function comment.
898         (lookup_objfile_from_block): Add function comment.
899         * symtab.c (lookup_symbol_in_language): Update function comment.
900         (lookup_symbol, lookup_language_this): Ditto.
901         (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
902         (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
903         (basic_lookup_symbol_nonlocal): Ditto.
904         (lookup_symbol_static, lookup_symbol_global): Ditto.
905         (lookup_transparent_type, lookup_block_symbol): Ditto.
906
907 2014-10-25  Doug Evans  <xdje42@gmail.com>
908
909         * symtab.c (types_info): Delete forward decl.
910         (functions_info, variables_info, sources_info): Ditto.
911         (_initialize_symtab): Rewrite forward decl to use
912         initialize_file_ftype.
913
914 2014-10-25  Doug Evans  <xdje42@gmail.com>
915
916         * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
917
918 2014-10-25  Doug Evans  <xdje42@gmail.com>
919
920         * dwarf2read.c (process_structure_scope): Remove second (nested) copy
921         of local var child_die.
922
923 2014-10-24  Don Breazeal  <donb@codesourcery.com>
924
925         * infrun.c (follow_fork_inferior): Update fork message printing
926         to use target_terminal_ours_for_output instead of
927         target_terminal_ours, to use _() for all format strings, to print
928         "vfork" instead of "fork" for vforks, and to add a detach message.
929         (handle_vfork_child_exec_or_exit): Update message printing to use
930         target_terminal_ours_for_output instead of target_terminal_ours, to
931         use _() for all format strings, and to fix some formatting.
932
933 2014-10-24  Pedro Alves  <palves@redhat.com>
934
935         * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
936         * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
937         * config/vax/vax.mh: Delete.
938         * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
939         obsolete configurations section.
940         * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
941         * vax-nat.c: Delete file.
942
943 2014-10-24  Pedro Alves  <palves@redhat.com>
944
945         * NEWS (Removed targets): Add OS/arch column.
946
947 2014-10-24  Siva Chandra Reddy  <sivachandra@google.com>
948
949         * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
950         on the arg type of a constructor only if it is of reference type.
951
952 2014-10-23  Sandra Loosemore  <sandra@codesourcery.com>
953
954         * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
955         accessors and constants from nios2 opcodes update.
956         (nios2_get_next_pc): Likewise.
957
958 2014-10-19  Doug Evans  <xdje42@gmail.com>
959
960         * gdbthread.h (set_running): Fix comment.
961         (set_executing, finish_thread_state): Fix comment.
962
963 2014-10-18  Doug Evans  <xdje42@gmail.com>
964
965         * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
966
967 2014-10-17  Doug Evans  <dje@google.com>
968
969         * NEWS: Mention new event gdb.clear_objfiles.
970         * python/py-event.h (emit_clear_objfiles_event): Clear
971         * python/py-events.h (events_object): New member clear_objfiles.
972         * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
973         event.
974         * python/py-inferior.c (python_new_objfile): If objfile is NULL,
975         emit clear_objfiles event.
976         * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
977         function.
978         (emit_clear_objfiles_event): New function.
979         (clear_objfiles): New event.
980         * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
981         Declare.
982         * python/python.c (_initialize_python): Call
983         gdbpy_initialize_clear_objfiles_event.
984
985 2014-10-17  Doug Evans  <dje@google.com>
986
987         * NEWS: Mention new gdb.Objfile.progspace attribute.
988         * python/py-objfile.c (objfpy_get_progspace): New function.
989         (objfile_getset): New entry for "progspace".
990
991 2014-10-17  Pedro Alves  <palves@redhat.com>
992
993         PR gdb/17471
994         * infcmd.c (strip_bg_char): Change prototype and rewrite.  Now
995         returns a copy of the input.
996         (run_command_1, continue_command, step_1, jump_command)
997         (signal_command, until_command, advance_command, finish_command)
998         (attach_command): Adjust and install a cleanup to free the
999         stripped args.
1000
1001 2014-10-17  Pedro Alves  <palves@redhat.com>
1002
1003         PR gdb/17300
1004         * infcmd.c (continue_1): If continuing all threads in the
1005         foreground, make sure the inferior's terminal settings are put in
1006         effect.
1007
1008 2014-10-17  Pedro Alves  <palves@redhat.com>
1009
1010         PR gdb/17472
1011         * annotate.c (annotate_breakpoints_invalid): Use
1012         target_terminal_our_for_output instead of target_terminal_ours.
1013         Give back the terminal to the target.
1014         (annotate_frames_invalid): Likewise.
1015
1016 2014-10-17  Pedro Alves  <palves@redhat.com>
1017
1018         * target.c (enum terminal_state): New enum.
1019         (terminal_state): New global.
1020         (target_terminal_init): New function.
1021         (target_terminal_inferior): Skip if inferior already owns the
1022         terminal.
1023         (target_terminal_ours, target_terminal_ours_for_output): New
1024         functions.
1025         * target.h (target_terminal_init): Convert to function prototype.
1026         (target_terminal_ours_for_output): Convert to function prototype
1027         and tweak comment.
1028         (target_terminal_ours): Convert to function prototype and tweak
1029         comment.
1030         * windows-nat.c (do_initial_windows_stuff): Call
1031         target_terminal_init instead of child_terminal_init_with_pgrp.
1032
1033 2014-10-17  Pedro Alves  <palves@redhat.com>
1034
1035         * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1036         (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1037         (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1038         solib-osf.c.
1039         * NEWS: Mention that support for alpha*-*-osf* has been removed.
1040         * ada-lang.h [__alpha__ && __osf__]
1041         (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1042         * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1043         * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1044         GDB_OSABI_OSF1.
1045         * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1046         files.
1047         * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1048         (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1049         * configure: Regenerate.
1050         * configure.ac: Remove references to osf.
1051         * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1052         section.  Remove all other references to osf.
1053         * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1054         Remove all other references to osf.
1055         * dec-thread.c: Delete file.
1056         * defs.h (GDB_OSABI_OSF1): Delete.
1057         * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1058         defined.
1059         * osabi.c (gdb_osabi_names): Delete "OSF/1".
1060         * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1061         Delete code.
1062         (unconditionally_kill_inferior)
1063         [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1064         * solib-osf.c: Delete file.
1065
1066 2014-10-17  Pedro Alves  <palves@redhat.com>
1067
1068         * remote.c (clear_threads_listing_context): Move higher up, out of
1069         the HAVE_LIBEXPAT guard.
1070
1071 2014-10-16  Tristan Gingold  <gingold@adacore.com>
1072
1073         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1074         (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1075         on amd64.
1076
1077 2014-10-15  Pedro Alves  <palves@redhat.com>
1078
1079         * dec-thread.c (dec_thread_count_gdb_threads)
1080         (dec_thread_add_gdb_thread): Delete.
1081         (dec_thread_update_thread_list): Delete.
1082         (dec_thread_find_new_threads): Rename to ...
1083         (dec_thread_update_thread_list): ... this.  Delete GDB-size
1084         threads that are no longer found in dec_thread_list.
1085         (resync_thread_list): Delete.
1086         (dec_thread_wait): Call dec_thread_update_thread_list instead of
1087         resync_thread_list.
1088
1089 2014-10-15  Pedro Alves  <palves@redhat.com>
1090
1091         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1092         * remote.c (remote_update_thread_list): Skip calling prune_threads
1093         if any thread listing method is supported, and instead walk over
1094         the set of remote threads listed, deleting those that are not
1095         found in GDB's thread list.
1096
1097 2014-10-15  Pedro Alves  <palves@redhat.com>
1098
1099         * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1100         * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1101         (bsd_uthread_update_thread_list): ... this.  Call prune_threads.
1102         (bsd_uthread_target): Adjust.
1103         * corelow.c (core_open): Adjust.
1104         * dec-thread.c (dec_thread_find_new_threads): Update comment.
1105         (dec_thread_update_thread_list): New function.
1106         (init_dec_thread_ops): Adjust.
1107         * gdbthread.h (prune_threads): New declaration.
1108         * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1109         (thread_db_update_thread_list): ... this.  Call prune_threads.
1110         (init_thread_db_ops): Adjust.
1111         * nto-procfs.c (procfs_find_new_threads): Rename to ...
1112         (procfs_update_thread_list): ... this.  Call prune_threads.
1113         (procfs_attach, procfs_create_inferior, init_procfs_targets):
1114         Adjust.
1115         * obsd-nat.c (obsd_find_new_threads): Rename to ...
1116         (obsd_update_thread_list): ... this.  Call prune_threads.
1117         (obsd_add_target): Adjust.
1118         * procfs.c (procfs_target): Adjust.
1119         (procfs_notice_thread): Update comment.
1120         (procfs_find_new_threads): Rename to ...
1121         (procfs_update_thread_list): ... this.  Call prune_threads.
1122         * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1123         comment.
1124         (ravenscar_wait): Adjust.
1125         (ravenscar_find_new_threads): Rename to ...
1126         (ravenscar_update_thread_list): ... this.  Call prune_threads.
1127         (init_ravenscar_thread_ops): Adjust.
1128         * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1129         (record_btrace_update_thread_list): ... this.  Adjust comment.
1130         (init_record_btrace_ops): Adjust.
1131         * remote.c (remote_threads_info): Rename to ...
1132         (remote_update_thread_list): ... this.  Call prune_threads.
1133         (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1134         Adjust.
1135         * sol-thread.c (check_for_thread_db): Adjust.
1136         (sol_find_new_threads_callback): Rename to ...
1137         (sol_update_thread_list_callback): ... this.
1138         (sol_find_new_threads): Rename to ...
1139         (sol_update_thread_list): ... this.  Call prune_threads.  Adjust.
1140         (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1141         * target-delegates.c: Regenerate.
1142         * target.c (target_find_new_threads): Rename to ...
1143         (target_update_thread_list): ... this.
1144         * target.h (struct target_ops): Rename to_find_new_threads field
1145         to to_update_thread_list.
1146         (target_find_new_threads): Rename to ...
1147         (target_update_thread_list): ... this.
1148         * thread.c (prune_threads): Make extern.
1149         (update_thread_list): Adjust.
1150
1151 2014-10-15  Pedro Alves  <palves@redhat.com>
1152
1153         * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1154         Add describing comment.  Return -1 if the qL packet is not
1155         supported.
1156         (struct thread_item, thread_item_t): Move higher up in
1157         the file.  Add comments.
1158         (struct threads_parsing_context): Move higher up in
1159         the file, add comments, and remote to ...
1160         (struct threads_listing_context): ... this.
1161         (remote_newthread_step): Don't add the thread to GDB's thread
1162         database here.  Instead push it to the thread_listing_context
1163         list.
1164         (remote_find_new_threads): Rename to ...
1165         (remote_get_threads_with_ql): ... this.  Add target_ops and
1166         targets_listing_context parameters.  Pass down context.
1167         (start_thread): Adjust.
1168         (clear_threads_parsing_context): Rename to ...
1169         (clear_threads_listing_context): ... this.
1170         (remote_get_threads_with_qxfer): New, with parts salvaged from old
1171         remote_threads_info.
1172         (remote_get_threads_with_qthreadinfo): Ditto.
1173         (remote_threads_info): Reimplement.
1174
1175 2014-10-15  Pedro Alves  <palves@redhat.com>
1176
1177         * infrun.c (resume): Don't force displaced-stepping for all
1178         single-steps on software single-stepping archs.
1179
1180 2014-10-15  Pedro Alves  <palves@redhat.com>
1181
1182         * breakpoint.c (single_step_breakpoints): Delete global.
1183         (insert_single_step_breakpoint): Adjust to store the breakpoint
1184         pointer in the current thread.
1185         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1186         (cancel_single_step_breakpoints): Delete functions.
1187         (breakpoint_has_location_inserted_here): Make extern.
1188         (single_step_breakpoint_inserted_here_p): Adjust to walk the
1189         breakpoint list.
1190         * breakpoint.h (breakpoint_has_location_inserted_here): New
1191         declaration.
1192         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1193         (cancel_single_step_breakpoints): Remove declarations.
1194         * gdbthread.h (struct thread_control_state)
1195         <single_step_breakpoints>: New field.
1196         (delete_single_step_breakpoints)
1197         (thread_has_single_step_breakpoints_set)
1198         (thread_has_single_step_breakpoint_here): New declarations.
1199         * infrun.c (follow_exec): Also clear the single-step breakpoints.
1200         (singlestep_breakpoints_inserted_p, singlestep_ptid)
1201         (singlestep_pc): Delete globals.
1202         (infrun_thread_ptid_changed): Remove references to removed
1203         globals.
1204         (resume_cleanups): Delete the current thread's single-step
1205         breakpoints.
1206         (maybe_software_singlestep): Remove references to removed globals.
1207         (resume): Adjust to use thread_has_single_step_breakpoints_set and
1208         delete_single_step_breakpoints.
1209         (init_wait_for_inferior): Remove references to removed globals.
1210         (delete_thread_infrun_breakpoints): Delete the thread's
1211         single-step breakpoints too.
1212         (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1213         single-step breakpoints here.
1214         (delete_stopped_threads_single_step_breakpoints): New function.
1215         (adjust_pc_after_break): Adjust to use
1216         thread_has_single_step_breakpoints_set.
1217         (handle_inferior_event): Remove references to removed globals.
1218         Use delete_stopped_threads_single_step_breakpoints.
1219         (handle_signal_stop): Adjust to per-thread single-step
1220         breakpoints.  Swap test order to do cheaper tests first.
1221         (switch_back_to_stepped_thread): Extend debug output.  Remove
1222         references to removed globals.
1223         * record-full.c (record_full_wait_1): Adjust to per-thread
1224         single-step breakpoints.
1225         * thread.c (delete_single_step_breakpoints)
1226         (thread_has_single_step_breakpoints_set)
1227         (thread_has_single_step_breakpoint_here): New functions.
1228         (clear_thread_inferior_resources): Also delete the thread's
1229         single-step breakpoints.
1230
1231 2014-10-15  Pedro Alves  <palves@redhat.com>
1232
1233         * thread.c (delete_thread_breakpoint): New function.
1234         (delete_step_resume_breakpoint)
1235         (delete_exception_resume_breakpoint): Use it.
1236         (delete_at_next_stop): New function.
1237         (clear_thread_inferior_resources): Use delete_at_next_stop.
1238
1239 2014-10-15  Pedro Alves  <palves@redhat.com>
1240
1241         * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1242         (breakpoint_inserted_here_p): ... here.  Remove special case for
1243         software single-step breakpoints.
1244         (find_non_raw_software_breakpoint_inserted_here): Inline ...
1245         (software_breakpoint_inserted_here_p): ... here.  Remove special
1246         case for software single-step breakpoints.
1247         (bp_target_info_copy_insertion_state)
1248         (deprecated_insert_raw_breakpoint)
1249         (deprecated_remove_raw_breakpoint): Delete functions.
1250         * breakpoint.h (deprecated_insert_raw_breakpoint)
1251         (deprecated_remove_raw_breakpoint): Remove declarations.
1252
1253 2014-10-15  Pedro Alves  <palves@redhat.com>
1254
1255         PR breakpoints/9649
1256         * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1257         Delete array globals.
1258         (single_step_breakpoints): New global.
1259         (breakpoint_xfer_memory): Remove special handling for single-step
1260         breakpoints.
1261         (update_breakpoints_after_exec): Delete bp_single_step
1262         breakpoints.
1263         (detach_breakpoints): Remove special handling for single-step
1264         breakpoints.
1265         (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1266         (bpstat_stop_status): Add comment.
1267         (bpstat_what, bptype_string, print_one_breakpoint_location)
1268         (adjust_breakpoint_address, init_bp_location): Handle
1269         bp_single_step.
1270         (new_single_step_breakpoint): New function.
1271         (set_momentary_breakpoint, bkpt_remove_location): Remove special
1272         handling for single-step breakpoints.
1273         (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1274         (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1275         Rewrite.
1276         (detach_single_step_breakpoints, find_single_step_breakpoint):
1277         Delete functions.
1278         (breakpoint_has_location_inserted_here): New function.
1279         (single_step_breakpoint_inserted_here_p): Rewrite.
1280         * breakpoint.h: Remove FIXME.
1281         (enum bptype) <bp_single_step>: New enum value.
1282         (insert_single_step_breakpoint): Update comment.
1283         * infrun.c (resume_cleanups)
1284         (delete_step_thread_step_resume_breakpoint): Remove single-step
1285         breakpoints.
1286         (fetch_inferior_event): Install a cleanup that removes infrun
1287         breakpoints.
1288         (switch_back_to_stepped_thread) <expect thread advanced also>:
1289         Clear step-over info.
1290
1291 2014-10-15  Pedro Alves  <palves@redhat.com>
1292
1293         * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1294         (delete_thread_infrun_breakpoints): New function, with parts
1295         salvaged from delete_step_resume_breakpoint_callback.
1296         (delete_step_thread_step_resume_breakpoint): Delete.
1297         (for_each_just_stopped_thread_callback_func): New typedef.
1298         (for_each_just_stopped_thread): New function.
1299         (delete_just_stopped_threads_infrun_breakpoints): New function.
1300         (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1301         (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1302         ... this.  Adjust.
1303         (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1304
1305 2014-10-15  Pedro Alves  <palves@redhat.com>
1306
1307         * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1308         trying to step past a non-steppable watchpoint.
1309         * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1310         field.
1311         * infrun.c (struct step_over_info): Add new field
1312         'nonsteppable_watchpoint_p' and adjust comments.
1313         (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1314         Adjust.
1315         (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1316         (stepping_past_nonsteppable_watchpoint): New function.
1317         (step_over_info_valid_p): Also return true if stepping past a
1318         nonsteppable watchpoint.
1319         (proceed): Adjust call to set_step_over_info.  Remove reference to
1320         init_infwait_state.
1321         (init_wait_for_inferior): Remove reference to init_infwait_state.
1322         (waiton_ptid): Delete global.
1323         (struct execution_control_state)
1324         <stepped_after_stopped_by_watchpoint>: Delete field.
1325         (wait_for_inferior, fetch_inferior_event): Always pass
1326         minus_one_ptid to target_wait.
1327         (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1328         field.
1329         (init_infwait_state): Delete function.
1330         (handle_inferior_event): Remove infwait_state handling.
1331         (handle_signal_stop) <watchpoints handling>: Adjust after
1332         stepped_after_stopped_by_watchpoint removal.  Don't remove
1333         breakpoints here nor set infwait_state.  Set the thread's
1334         stepping_over_watchpoint flag, and call keep_going instead.
1335         (keep_going): Handle stepping_over_watchpoint.  Adjust
1336         set_step_over_info calls.
1337         * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1338         function.
1339
1340 2014-10-15  Pedro Alves  <palves@redhat.com>
1341
1342         * infrun.c (step_over_info_valid_p): New function.
1343         (resume): Use step_over_info_valid_p instead of checking the
1344         threads's trap_expected flag.
1345
1346 2014-10-15  Doug Evans  <dje@google.com>
1347             Walfred Tedeschi  <walfred.tedeschi@intel.com>
1348
1349         PR python/17364
1350         * python/lib/gdb/__init__.py (packages): Add "printer".
1351         * python/lib/gdb/command/bound_registers.py: Moved to ...
1352         * python/lib/gdb/printer/bound_registers.py: ... here.
1353         Add printer to global set of builtin printers.  Rename printer from
1354         "bound" to "mpx_bound128".
1355         * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1356         registered as global "builtin" printer.
1357         (add_builtin_pretty_printer): New function.
1358         * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1359         gdb/printer/__init__.py.
1360
1361 2014-10-15  Iain Buclaw  <ibuclaw@gdcproject.org>
1362
1363         * Makefile.in (SFILES): Remove d-support.c.
1364         (COMMON_OBS): Remove d-support.o.
1365         * d-lang.h (d_parse_symbol): Remove declaration.
1366         * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1367         * d-support.c: Remove file.
1368
1369 2014-10-15  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1370
1371         * gdb/infrun.c (process_event_stop_test): Apply
1372         gdbarch_addr_bits_remove to longjmp resume address.
1373
1374 2014-10-15  Pedro Alves  <palves@redhat.com>
1375
1376         * regformats/microblaze.dat: Delete file.
1377
1378 2014-10-15  Ajit Agarwal  <ajitkum@xilinx.com>
1379
1380         * features/Makefile (microblaze-expedite): Replace pc with rpc.
1381         * regformats/microblaze-with-stack-protect.dat: Regenerate.
1382
1383 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
1384
1385         * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1386         as non-trivial.
1387
1388 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
1389
1390         PR c++/13403
1391         PR c++/15154
1392         * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1393         with qualified args.
1394
1395 2014-10-14  Joel Brobecker  <brobecker@adacore.com>
1396
1397         * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1398         of the case where the second operand is a pointer.
1399         <BINOP_SUB>: Likewise.
1400
1401 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
1402
1403         * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1404         only if it is not NULL.
1405         (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1406         * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1407         (struct probe_ops) <clear_semaphore>: Likewise.
1408         * tracepoint.c (start_tracing): Call set_semaphore only if it is
1409         not NULL.
1410         (stop_tracing): Likewise, for clear_semaphore.
1411
1412 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
1413
1414         * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1415         using language_c, instead of current_language.
1416
1417 2014-10-13  Doug Evans  <dje@google.com>
1418
1419         * python/py-objfile.c (objfpy_initialize): New function.
1420         (objfpy_new, objfile_to_objfile_object): Call it.
1421         * python/py-progspace.c (pspy_initialize): New function.
1422         (pspy_new, pspace_to_pspace_object): Call it.
1423
1424 2014-10-13  Miroslav Franc  <mfranc@redhat.com>
1425             Jan Kratochvil  <jan.kratochvil@redhat.com>
1426
1427         Fix "save breakpoints" for "catch" command.
1428         * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1429         newline.
1430
1431 2014-10-12  Miroslav Franc  <mfranc@redhat.com>
1432
1433         Fix "save breakpoints" for "disable $bpnum" command.
1434         * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1435
1436 2014-10-10  Pedro Alves  <palves@redhat.com>
1437
1438         * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1439         (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1440         (HFILES_NO_SRCDIR): Remove solib-irix.h.
1441         * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1442         and been removed.
1443         * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1444         * configure.ac: Remove references to IRIX.
1445         * configure.host: Add *-*-irix* to the obsolete hosts section.
1446         Remove all other references to irix.
1447         * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1448         Delete files.
1449
1450 2014-10-10  Ajit Agarwal  <ajitkum@xilinx.com>
1451
1452         * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1453         isn't valid, release the tdesc arch data and return NULL.
1454
1455 2014-10-10  Pedro Alves  <palves@redhat.com>
1456
1457         * linux-tdep.c: Include observer.h.
1458         (linux_inferior_data): New global.
1459         (struct linux_info): New structure.
1460         (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1461         (get_linux_inferior_data): New functions.
1462         (linux_vsyscall_range): Rename to ...
1463         (linux_vsyscall_range_raw): ... this.
1464         (linux_vsyscall_range): New function; handles caching.
1465         (_initialize_linux_tdep): Register linux_inferior_data.  Install
1466         inferior_exit and inferior_appeared observers.
1467
1468 2014-10-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
1469             Pedro Alves  <palves@redhat.com>
1470
1471         PR symtab/14466
1472         * solib-svr4.c (svr4_read_so_list): Rename to ...
1473         (svr4_current_sos_1): ... this and change the function comment.
1474         (svr4_current_sos): New function.
1475
1476 2014-10-10  Pedro Alves  <palves@redhat.com>
1477
1478         * arch-utils.c (default_vsyscall_range): New function.
1479         * arch-utils.h (default_vsyscall_range): New declaration.
1480         * gdbarch.sh (vsyscall_range): New hook.
1481         * gdbarch.h, gdbarch.c: Regenerate.
1482         * linux-tdep.c (linux_vsyscall_range): New function.
1483         (linux_init_abi): Install linux_vsyscall_range as
1484         vsyscall_range gdbarch hook.
1485         * memrange.c (address_in_mem_range): New function.
1486         * memrange.h (address_in_mem_range): New declaration.
1487         * symfile-mem.c (find_vdso_size): Delete function.
1488         (add_vsyscall_page): Use gdbarch_vsyscall_range.
1489
1490 2014-10-10  Pedro Alves  <palves@redhat.com>
1491
1492         * infrun.c (normal_stop): Fix typo in comment.
1493
1494 2014-10-09  Sergio Durigan Junior  <sergiodj@redhat.com>
1495
1496         PR tdep/9390
1497         * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1498         typo when using logical AND to determine instruction type.
1499
1500 2014-10-09  Yao Qi  <yao@codesourcery.com>
1501
1502         * infrun.c (handle_signal_stop): Remove local variable
1503         'printed'.
1504
1505 2014-10-08  Stan Shebs  <stan@codesourcery.com>
1506
1507         * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1508
1509 2014-10-08  Gary Benson  <gbenson@redhat.com>
1510
1511         * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1512
1513 2014-10-08  Gary Benson  <gbenson@redhat.com>
1514
1515         * common/common-defs.h: Include common-exceptions.h.
1516         * exceptions.h: Do not include common-exceptions.h.
1517
1518 2014-10-08  Gary Benson  <gbenson@redhat.com>
1519
1520         * common/common-defs.h: Include cleanups.h.
1521         * common/common-exceptions.c: Do not include cleanups.h.
1522         * utils.h: Likewise.
1523
1524 2014-10-08  Gary Benson  <gbenson@redhat.com>
1525
1526         * ada-lang.c: Do not include exceptions.h.
1527         * ada-valprint.c: Likewise.
1528         * amd64-tdep.c: Likewise.
1529         * auto-load.c: Likewise.
1530         * block.c: Likewise.
1531         * break-catch-throw.c: Likewise.
1532         * breakpoint.c: Likewise.
1533         * btrace.c: Likewise.
1534         * c-lang.c: Likewise.
1535         * cli/cli-cmds.c: Likewise.
1536         * cli/cli-interp.c: Likewise.
1537         * cli/cli-script.c: Likewise.
1538         * completer.c: Likewise.
1539         * corefile.c: Likewise.
1540         * corelow.c: Likewise.
1541         * cp-abi.c: Likewise.
1542         * cp-support.c: Likewise.
1543         * cp-valprint.c: Likewise.
1544         * darwin-nat.c: Likewise.
1545         * dwarf2-frame-tailcall.c: Likewise.
1546         * dwarf2-frame.c: Likewise.
1547         * dwarf2loc.c: Likewise.
1548         * dwarf2read.c: Likewise.
1549         * eval.c: Likewise.
1550         * event-loop.c: Likewise.
1551         * event-top.c: Likewise.
1552         * f-valprint.c: Likewise.
1553         * frame-unwind.c: Likewise.
1554         * frame.c: Likewise.
1555         * gdbtypes.c: Likewise.
1556         * gnu-v2-abi.c: Likewise.
1557         * gnu-v3-abi.c: Likewise.
1558         * guile/scm-auto-load.c: Likewise.
1559         * guile/scm-breakpoint.c: Likewise.
1560         * guile/scm-cmd.c: Likewise.
1561         * guile/scm-frame.c: Likewise.
1562         * guile/scm-lazy-string.c: Likewise.
1563         * guile/scm-param.c: Likewise.
1564         * guile/scm-symbol.c: Likewise.
1565         * guile/scm-type.c: Likewise.
1566         * hppa-hpux-tdep.c: Likewise.
1567         * i386-tdep.c: Likewise.
1568         * inf-loop.c: Likewise.
1569         * infcall.c: Likewise.
1570         * infcmd.c: Likewise.
1571         * infrun.c: Likewise.
1572         * interps.c: Likewise.
1573         * interps.h: Likewise.
1574         * jit.c: Likewise.
1575         * linespec.c: Likewise.
1576         * linux-nat.c: Likewise.
1577         * linux-thread-db.c: Likewise.
1578         * m32r-rom.c: Likewise.
1579         * main.c: Likewise.
1580         * memory-map.c: Likewise.
1581         * mi/mi-cmd-break.c: Likewise.
1582         * mi/mi-cmd-stack.c: Likewise.
1583         * mi/mi-interp.c: Likewise.
1584         * mi/mi-main.c: Likewise.
1585         * monitor.c: Likewise.
1586         * nto-procfs.c: Likewise.
1587         * objc-lang.c: Likewise.
1588         * p-valprint.c: Likewise.
1589         * parse.c: Likewise.
1590         * ppc-linux-tdep.c: Likewise.
1591         * printcmd.c: Likewise.
1592         * probe.c: Likewise.
1593         * python/py-auto-load.c: Likewise.
1594         * python/py-breakpoint.c: Likewise.
1595         * python/py-cmd.c: Likewise.
1596         * python/py-finishbreakpoint.c: Likewise.
1597         * python/py-frame.c: Likewise.
1598         * python/py-framefilter.c: Likewise.
1599         * python/py-function.c: Likewise.
1600         * python/py-gdb-readline.c: Likewise.
1601         * python/py-inferior.c: Likewise.
1602         * python/py-infthread.c: Likewise.
1603         * python/py-lazy-string.c: Likewise.
1604         * python/py-linetable.c: Likewise.
1605         * python/py-param.c: Likewise.
1606         * python/py-prettyprint.c: Likewise.
1607         * python/py-symbol.c: Likewise.
1608         * python/py-type.c: Likewise.
1609         * python/py-value.c: Likewise.
1610         * python/python-internal.h: Likewise.
1611         * python/python.c: Likewise.
1612         * record-btrace.c: Likewise.
1613         * record-full.c: Likewise.
1614         * regcache.c: Likewise.
1615         * remote-fileio.c: Likewise.
1616         * remote-mips.c: Likewise.
1617         * remote.c: Likewise.
1618         * rs6000-aix-tdep.c: Likewise.
1619         * rs6000-nat.c: Likewise.
1620         * skip.c: Likewise.
1621         * solib-darwin.c: Likewise.
1622         * solib-dsbt.c: Likewise.
1623         * solib-frv.c: Likewise.
1624         * solib-ia64-hpux.c: Likewise.
1625         * solib-spu.c: Likewise.
1626         * solib-svr4.c: Likewise.
1627         * solib.c: Likewise.
1628         * spu-tdep.c: Likewise.
1629         * stack.c: Likewise.
1630         * stap-probe.c: Likewise.
1631         * symfile-mem.c: Likewise.
1632         * symmisc.c: Likewise.
1633         * target.c: Likewise.
1634         * thread.c: Likewise.
1635         * top.c: Likewise.
1636         * tracepoint.c: Likewise.
1637         * tui/tui-interp.c: Likewise.
1638         * typeprint.c: Likewise.
1639         * utils.c: Likewise.
1640         * valarith.c: Likewise.
1641         * valops.c: Likewise.
1642         * valprint.c: Likewise.
1643         * value.c: Likewise.
1644         * varobj.c: Likewise.
1645         * windows-nat.c: Likewise.
1646         * xml-support.c: Likewise.
1647
1648 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
1649
1650         * mips-tdep.c (add_offset_16): Rewrite to implement what the
1651         name implies.
1652         (extended_mips16_next_pc): Update accordingly.
1653
1654 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
1655
1656         * mips-tdep.c (mips16_instruction_is_compact_branch): New
1657         function.
1658         (micromips_instruction_is_compact_branch): Likewise.
1659         (mips16_scan_prologue): Terminate scanning upon seeing a branch
1660         or a compact jump, reaching a jump delay slot, or seeing a
1661         second non-prologue instruction.
1662         (micromips_scan_prologue): Also terminate scanning upon seeing a
1663         compact branch or jump, or reaching a branch or jump delay slot.
1664         (mips32_scan_prologue): Terminate scanning upon reaching a branch
1665         or jump delay slot, or seeing a second non-prologue instruction.
1666         (mips32_instruction_has_delay_slot): Retain instruction
1667         examination code only, update arguments accordingly and move
1668         instruction fetch pieces to...
1669         (mips32_insn_at_pc_has_delay_slot): ... this new function.
1670         (micromips_instruction_has_delay_slot): Likewise and to...
1671         (micromips_insn_at_pc_has_delay_slot): ... this new function.
1672         (mips16_instruction_has_delay_slot): Likewise and to...
1673         (mips16_insn_at_pc_has_delay_slot): ... this new function.
1674         (mips_single_step_through_delay): Update accordingly.
1675         (mips_adjust_breakpoint_address): Likewise.
1676
1677 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
1678
1679         * mips-tdep.c (micromips_instruction_has_delay_slot): When
1680         !mustbe32 also return 1 for 32-bit instructions.
1681         (mips16_instruction_has_delay_slot): Likewise.  Add an
1682         explanatory comment.
1683
1684 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
1685
1686         * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1687         symbols special.
1688
1689 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
1690
1691         * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1692         update comments.
1693         * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1694         for the breakpoint's address.  Don't preinitialize `placed_size'.
1695         (insert_bp_location): Set `reqstd_address' rather than
1696         `placed_address'.
1697         (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1698         (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1699         address.
1700         (bkpt_remove_location): Likewise.
1701         (deprecated_insert_raw_breakpoint): Likewise.
1702         (deprecated_remove_raw_breakpoint): Likewise.
1703         (find_single_step_breakpoint): Likewise.
1704         * mem-break.c (default_memory_insert_breakpoint): Use
1705         `reqstd_address' for the breakpoint's address.  Don't set
1706         `placed_address' or `placed_size' if breakpoint contents couldn't
1707         have been determined.
1708         * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1709         the breakpoint's address.
1710         (remote_insert_hw_breakpoint): Likewise.  Don't set
1711         `placed_address' or `placed_size' if breakpoint couldn't have been
1712         set.
1713         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1714         `reqstd_address' for the breakpoint's address.
1715         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1716         * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1717         * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1718         * microblaze-linux-tdep.c
1719         (microblaze_linux_memory_remove_breakpoint): Likewise.
1720         * monitor.c (monitor_insert_breakpoint): Likewise.
1721         * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1722         (procfs_insert_hw_breakpoint): Likewise.
1723         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1724         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1725         * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1726         * remote-mips.c (mips_insert_breakpoint): Likewise.
1727         * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1728
1729 2014-10-03  Luis Machado  <lgustavo@codesourcery.com>
1730
1731         * valops.c (value_assign): Check for bit field assignments
1732         before calling architecture-specific register value
1733         conversion functions.
1734
1735 2014-10-03  Pierre Muller  <muller@sourceware.org>
1736
1737         * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1738
1739 2014-10-02  Pedro Alves  <palves@redhat.com>
1740
1741         * breakpoint.c (breakpoints_should_be_inserted_now): Use
1742         threads_are_executing.
1743         * breakpoint.h (breakpoints_should_be_inserted_now): Add
1744         describing comment.
1745         * gdbthread.h (threads_are_executing): Declare.
1746         (handle_signal_stop) <random signals>: Don't print about the
1747         signal here if stopping.
1748         (end_stepping_range): Don't notify observers here.
1749         (normal_stop): Update the thread list.  If stopped by a random
1750         signal or a stepping range ended, notify observers.
1751         * thread.c (threads_executing): New global.
1752         (init_thread_list): Clear 'threads_executing'.
1753         (set_executing): Set or clear 'threads_executing'.
1754         (threads_are_executing): New function.
1755         (update_threads_executing): New function.
1756         (update_thread_list): Use it.
1757
1758 2014-10-02  Pedro Alves  <palves@redhat.com>
1759
1760         PR breakpoints/17431
1761         * breakpoint.c (update_breakpoints_after_exec): Don't create
1762         overlay, longjmp, std terminate nor exception breakpoints here.
1763
1764 2014-10-02  Pedro Alves  <palves@redhat.com>
1765
1766         * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1767         Adjust comments.
1768         * inferior.c (find_inferior_for_program_space): Give preference to
1769         the current inferior.
1770         * inferior.h (find_inferior_for_program_space): Update comment.
1771         * progspace.c (switch_to_program_space_and_thread): Prefer the
1772         current inferior if it's bound to the program space requested.  If
1773         the inferior found doesn't have a PID yet, don't bother looking up
1774         a thread.
1775         * progspace.h (switch_to_program_space_and_thread): Adjust
1776         comment.
1777         * thread.c (any_thread_of_process, any_live_thread_of_process):
1778         Give preference to the current thread.
1779
1780 2014-10-01  Pedro Alves  <palves@redhat.com>
1781
1782         * breakpoint.c (insert_bp_location): Error out if inserting a
1783         software breakpoint at a read-only address.
1784         * target.c (memory_xfer_check_region): New function, factored out
1785         from ...
1786         (memory_xfer_partial_1): ... this.  Make the 'reg_len' local a
1787         ULONGEST.
1788         (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
1789         against the memory region attributes.
1790
1791 2014-10-01  Simon Marchi  <simon.marchi@ericsson.com>
1792
1793         * NEWS: Announce new exit-code field in -list-thread-groups
1794         output.
1795         * inferior.c (exit_inferior_1): Don't clear exit code.
1796         (inferior_appeared): Clear exit code.
1797         * mi/mi-main.c (print_one_inferior): Add printing of the exit
1798         code.
1799
1800 2014-10-01  Pedro Alves  <palves@redhat.com>
1801
1802         * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
1803         GENERATED" along with emacs/vi read-only markers.
1804         * regformats/aarch64.dat: Regenerate.
1805         * regformats/arm-with-iwmmxt.dat: Regenerate.
1806         * regformats/arm-with-neon.dat: Regenerate.
1807         * regformats/arm-with-vfpv2.dat: Regenerate.
1808         * regformats/arm-with-vfpv3.dat: Regenerate.
1809         * regformats/i386/amd64-avx-linux.dat: Regenerate.
1810         * regformats/i386/amd64-avx.dat: Regenerate.
1811         * regformats/i386/amd64-avx512-linux.dat: Regenerate.
1812         * regformats/i386/amd64-avx512.dat: Regenerate.
1813         * regformats/i386/amd64-linux.dat: Regenerate.
1814         * regformats/i386/amd64-mpx-linux.dat: Regenerate.
1815         * regformats/i386/amd64-mpx.dat: Regenerate.
1816         * regformats/i386/amd64.dat: Regenerate.
1817         * regformats/i386/i386-avx-linux.dat: Regenerate.
1818         * regformats/i386/i386-avx.dat: Regenerate.
1819         * regformats/i386/i386-avx512-linux.dat: Regenerate.
1820         * regformats/i386/i386-avx512.dat: Regenerate.
1821         * regformats/i386/i386-linux.dat: Regenerate.
1822         * regformats/i386/i386-mmx-linux.dat: Regenerate.
1823         * regformats/i386/i386-mmx.dat: Regenerate.
1824         * regformats/i386/i386-mpx-linux.dat: Regenerate.
1825         * regformats/i386/i386-mpx.dat: Regenerate.
1826         * regformats/i386/i386.dat: Regenerate.
1827         * regformats/i386/x32-avx-linux.dat: Regenerate.
1828         * regformats/i386/x32-avx.dat: Regenerate.
1829         * regformats/i386/x32-avx512-linux.dat: Regenerate.
1830         * regformats/i386/x32-avx512.dat: Regenerate.
1831         * regformats/i386/x32-linux.dat: Regenerate.
1832         * regformats/i386/x32.dat: Regenerate.
1833         * regformats/microblaze-with-stack-protect.dat: Regenerate.
1834         * regformats/mips-dsp-linux.dat: Regenerate.
1835         * regformats/mips-linux.dat: Regenerate.
1836         * regformats/mips64-dsp-linux.dat: Regenerate.
1837         * regformats/mips64-linux.dat: Regenerate.
1838         * regformats/nios2-linux.dat: Regenerate.
1839         * regformats/rs6000/powerpc-32.dat: Regenerate.
1840         * regformats/rs6000/powerpc-32l.dat: Regenerate.
1841         * regformats/rs6000/powerpc-64l.dat: Regenerate.
1842         * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
1843         * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
1844         * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
1845         * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
1846         * regformats/rs6000/powerpc-e500l.dat: Regenerate.
1847         * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
1848         * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
1849         * regformats/s390-linux32.dat: Regenerate.
1850         * regformats/s390-linux32v1.dat: Regenerate.
1851         * regformats/s390-linux32v2.dat: Regenerate.
1852         * regformats/s390-linux64.dat: Regenerate.
1853         * regformats/s390-linux64v1.dat: Regenerate.
1854         * regformats/s390-linux64v2.dat: Regenerate.
1855         * regformats/s390-te-linux64.dat: Regenerate.
1856         * regformats/s390x-linux64.dat: Regenerate.
1857         * regformats/s390x-linux64v1.dat: Regenerate.
1858         * regformats/s390x-linux64v2.dat: Regenerate.
1859         * regformats/s390x-te-linux64.dat: Regenerate.
1860         * regformats/tic6x-c62x-linux.dat: Regenerate.
1861         * regformats/tic6x-c62x.dat: Regenerate.
1862         * regformats/tic6x-c64x-linux.dat: Regenerate.
1863         * regformats/tic6x-c64x.dat: Regenerate.
1864         * regformats/tic6x-c64xp-linux.dat: Regenerate.
1865         * regformats/tic6x-c64xp.dat: Regenerate.
1866
1867 2014-10-01  Pedro Alves  <palves@redhat.com>
1868
1869         * features/Makefile: Update comments.
1870         (XMLTOC): List all xml files we build C files from.
1871         (clean-cfiles): New rule.
1872
1873 2014-10-01  Pedro Alves  <palves@redhat.com>
1874
1875         * features/i386/amd64-avx512-linux.c: Regenerate.
1876         * features/i386/amd64-avx512.c: Regenerate.
1877         * features/i386/x32-avx512-linux.c: Regenerate.
1878         * features/i386/x32-avx512.c: Regenerate.
1879
1880 2014-10-01  Pedro Alves  <palves@redhat.com>
1881
1882         * features/Makefile (WHICH): Remove arm-with-m,
1883         arm-with-m-fpa-layout and arm-with-m-vfp-d16.
1884
1885 2014-10-01  Pedro Alves  <palves@redhat.com>
1886
1887         * features/Makefile (clean): New rule.
1888
1889 2014-10-01  Pedro Alves  <palves@redhat.com>
1890
1891         * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
1892         (zmm14h): Add missing end quotes.
1893
1894 2014-10-01  Pedro Alves  <palves@redhat.com>
1895
1896         * features/aarch64-core.xml (cpsr): Change back to 32-bit.
1897         * features/aarch64.c: Regenerate.
1898
1899 2014-09-30  Don Breazeal  <donb@codesourcery.com>
1900
1901         * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
1902         code so as to work with follow_fork_inferior.
1903         * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
1904         (inf_ttrace_create_inferior): Remove reference to
1905         inf_ttrace_vfork_ppid.
1906         (inf_ttrace_attach): Ditto.
1907         (inf_ttrace_detach): Ditto.
1908         (inf_ttrace_kill): Use current_inferior instead of
1909         inf_ttrace_vfork_ppid.
1910         (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
1911         TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
1912         inferior away from the parent.
1913         * infrun.c (follow_fork): Call follow_fork_inferior instead of
1914         target_follow_fork.
1915         (follow_fork_inferior): New function.
1916         (follow_inferior_reset_breakpoints): Make function static.
1917         * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
1918         * linux-nat.c (linux_child_follow_fork): Move target-independent
1919         code to infrun.c:follow_fork_inferior.
1920
1921 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1922
1923         * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
1924         * gdbarch.c: Regenerate.
1925         * gdbarch.h: Likewise.
1926         * corelow.c (sniff_core_bfd): Drop presence check for deleted
1927         gdbarch method 'regset_from_core_section'.
1928         (get_core_register_section): Remove handling for the case that
1929         regset == NULL and regset_from_core_section is defined.
1930         (get_core_registers): Drop check for deleted method.
1931         * procfs.c (procfs_do_thread_registers): Adjust comment.
1932
1933 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1934
1935         * linux-nat.c (linux_nat_collect_thread_registers): Remove.
1936         (linux_nat_make_corefile_notes): Remove.
1937         (linux_target_install_ops): Do not set target method
1938         'make_corefile_notes'.
1939         * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
1940         Remove field.
1941         (linux_corefile_thread_callback): Instead of args->collect, call
1942         linux_collect_thread_registers.
1943         (linux_make_corefile_notes): Remove 'collect' parameter.  Return
1944         NULL unless there is a regset iterator.
1945         (linux_make_corefile_notes_1): Remove.
1946         (linux_init_abi): Replace reference to linux_make_corefile_notes_1
1947         by linux_make_corefile_notes.
1948         * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
1949
1950 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1951
1952         * fbsd-nat.c (find_signalled_thread, find_stop_signal)
1953         (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
1954         Remove.
1955         * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
1956
1957 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1958
1959         * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
1960         (xtensa_iterate_over_regset_sections): New.
1961         (xtensa_gdbarch_init): Adjust gdbarch initialization.
1962
1963 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1964
1965         * vax-tdep.c (vax_regset_from_core_section): Remove.
1966         (vax_iterate_over_regset_sections): New.
1967         (vax_gdbarch_init): Adjust gdbarch initialization.
1968
1969 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1970
1971         * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
1972         (tilegx_regset_from_core_section): Remove.
1973         (tilegx_iterate_over_regset_sections): New.
1974         (tilegx_linux_init_abi): Adjust gdbarch initialization.
1975
1976 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1977
1978         * sparc-tdep.c (sparc_regset_from_core_section): Remove.
1979         (sparc_iterate_over_regset_sections): New.
1980         (sparc32_gdbarch_init): Adjust gdbarch initialization.
1981         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
1982         targets.
1983         * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
1984         (sparc64fbsd_init_abi): Call fbsd_init_abi.
1985         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
1986         target method 'make_corefile_notes'.
1987
1988 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1989
1990         * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
1991         'sizeof_gregset' and 'sizeof_fpregset'.
1992         * sh-tdep.c (sh_regset_from_core_section): Remove.
1993         (sh_iterate_over_regset_sections): New.
1994         (sh_gdbarch_init): Adjust gdbarch initialization.
1995         * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
1996         sizeof_fpregset.
1997         * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
1998         'sizeof_gregset'.
1999
2000 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2001
2002         * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2003         (score7_linux_iterate_over_regset_sections): New.
2004         (score_gdbarch_init): Adjust gdbarch initialization.
2005
2006 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2007
2008         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2009         FreeBSD targets.
2010         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2011         method 'make_corefile_notes'.
2012         * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2013         (ppcfbsd_regset_from_core_section): Remove.
2014         (ppcfbsd_iterate_over_regset_sections): New.
2015         (ppcfbsd_init_abi): Call fbsd_init_abi.  Adjust gdbarch
2016         initialization.
2017         * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2018         (ppcnbsd_iterate_over_regset_sections): New.
2019         (ppcnbsd_init_abi): Adjust.
2020         * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2021         (ppcobsd_iterate_over_regset_sections): New.
2022         (ppcobsd_init_abi): Adjust.
2023         * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2024         (rs6000_aix_iterate_over_regset_sections): New.
2025         (rs6000_aix_init_osabi): Adjust.
2026
2027 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2028
2029         * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2030         (nios2_regset_from_core_section): Remove.
2031         (nios2_iterate_over_regset_sections): New.
2032         (nios2_linux_init_abi): Adjust gdbarch initialization.
2033
2034 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2035
2036         * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2037         (am33_iterate_over_regset_sections): New.
2038         (am33_linux_init_osabi): Adjust gdbarch initialization.
2039
2040 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2041
2042         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2043         (mips_linux_iterate_over_regset_sections): New.
2044         (mips_linux_init_abi): Adjust gdbarch initialization.
2045         * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2046         (mips64obsd_iterate_over_regset_sections): New.
2047         (mips64obsd_init_abi): Adjust.
2048         * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2049         (mipsnbsd_iterate_over_regset_sections): New.
2050         (mipsnbsd_init_abi): Adjust.
2051
2052 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2053
2054         * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2055         (m88k_iterate_over_regset_sections): New.
2056         (m88k_gdbarch_init): Adjust gdbarch initialization.
2057
2058 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2059
2060         * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2061         (ia64_linux_iterate_over_regset_sections): New.
2062         (ia64_linux_init_abi): Adjust gdbarch initialization.
2063
2064 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2065
2066         * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2067         (m68kbsd_iterate_over_regset_sections): New.
2068         (m68kbsd_init_abi): Adjust gdbarch initialization.
2069         * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2070         (m68k_linux_iterate_over_regset_sections): New.
2071         (m68k_linux_init_abi): Adjust gdbarch initialization.
2072
2073 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2074
2075         * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2076         (m32r_linux_regset_from_core_section): Remove.
2077         (m32r_linux_iterate_over_regset_sections): New.
2078         (m32r_linux_init_abi): Adjust gdbarch initialization.
2079
2080 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2081
2082         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2083         (amd64obsd_iterate_over_regset_sections): New.
2084         (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2085         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2086         Remove.
2087         (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset.  Drop
2088         regset_from_core_section initialization.
2089         * i386-tdep.c (i386_regset_from_core_section): Remove.
2090         (i386_iterate_over_regset_sections): New.
2091         (i386_gdbarch_init): Adjust gdbarch initialization.
2092         * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2093         (i386_iterate_over_regset_sections): New prototype.
2094         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2095         Remove.
2096         (i386obsd_aout_iterate_over_regset_sections): New.
2097         (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2098         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2099         targets.
2100         * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2101         (amd64fbsd_init_abi): Call fbsd_init_abi.
2102         * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2103         (i386fbsd4_init_abi): Call fbsd_init_abi.
2104         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2105         target method 'make_corefile_notes'.
2106         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2107
2108 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2109
2110         * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2111         (hppa_hpux_iterate_over_regset_sections): New.
2112         (hppa_hpux_init_abi): Adjust gdbarch initialization.
2113         * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2114         (hppa_linux_iterate_over_regset_sections): New.
2115         (hppa_linux_init_abi): Adjust.
2116         * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2117         (hppanbsd_iterate_over_regset_sections): New.
2118         (hppanbsd_init_abi): Adjust.
2119         * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2120         (hppaobsd_iterate_over_regset_sections): New.
2121         (hppaobsd_init_abi): Adjust.
2122
2123 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2124
2125         * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2126         (frv_linux_iterate_over_regset_sections): New.
2127         (frv_linux_init_abi): Adjust gdbarch initialization.
2128
2129 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2130
2131         * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2132         (armbsd_iterate_over_regset_sections): New prototype.
2133         * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2134         (armbsd_iterate_over_regset_sections): New.
2135         * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2136         initialization.
2137
2138 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2139
2140         * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2141         (alpha_linux_iterate_over_regset_sections): New.
2142         (alpha_linux_init_abi): Adjust gdbarch initialization.
2143         * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2144         prototype.
2145         (alphanbsd_iterate_over_regset_sections): New prototype.
2146
2147 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2148
2149         * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2150         Remove.
2151         (aarch64_linux_iterate_over_regset_sections): New.
2152         (aarch64_linux_init_abi): Adjust gdbarch initialization.
2153
2154 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2155
2156         * fbsd-tdep.c: New file.
2157         * fbsd-tdep.h: New file.
2158         * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2159         (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2160         (ALLDEPFILES): Add fbsd-tdep.c.
2161
2162 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2163
2164         * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2165         parameter.
2166         * gdbarch.h: Regenerate.
2167         * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2168         iterator.
2169         (get_core_register_section): Add parameter 'regset' and use it, if
2170         set.  Add parameter 'min_size' and verify the bfd section size
2171         against it.
2172         (get_core_registers_cb): Add parameter 'regset' and pass it to
2173         get_core_register section.  For the "standard" register sections
2174         ".reg" and ".reg2", set an appropriate default for human_name.
2175         (get_core_registers): Don't abort when the gdbarch has an iterator
2176         but no regset_from_core_section.  Add NULL/0 for parameters
2177         'regset'/'min_size' in calls to get_core_register_section.
2178         * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2179         'regset' and use it instead of calling the
2180         regset_from_core_section gdbarch method.
2181         * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2182         * i386-tdep.c (i386_supply_xstateregset)
2183         (i386_collect_xstateregset, i386_xstateregset): Moved to
2184         i386-linux-tdep.c.
2185         (i386_regset_from_core_section): Drop handling for .reg-xfp and
2186         .reg-xstate.
2187         (i386_gdbarch_init): Set tdep field 'fpregset'.  Enable generic
2188         core file support only if the regset iterator hasn't been set.
2189         * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2190         (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2191         Moved from i386-tdep.c and renamed to *_linux*.
2192         (i386_linux_iterate_over_regset_sections): Add regset parameter to
2193         each callback invocation.  Allow any .reg-xstate size when reading
2194         from a core file.
2195         * amd64-tdep.c (amd64_supply_xstateregset)
2196         (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2197         amd64-linux-tdep.c.
2198         (amd64_regset_from_core_section): Remove.
2199         (amd64_init_abi): Set new tdep field 'fpregset'.  No longer
2200         install an amd64-specific regset_from_core_section gdbarch method.
2201         * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2202         (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2203         Moved from amd64-tdep.c and renamed to *_linux*.
2204         (amd64_linux_iterate_over_regset_sections): Add regset parameter
2205         to each callback invocation.  Allow any .reg-xstate size when
2206         reading from a core file.
2207         * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2208         (arm_linux_iterate_over_regset_sections): Add regset parameter to
2209         each callback invocation.
2210         (arm_linux_init_abi): No longer set the regset_from_core_section
2211         gdbarch method.
2212         * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2213         (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2214         each callback invocation.
2215         (ppc_linux_init_abi): No longer set the regset_from_core_section
2216         gdbarch method.
2217         * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2218         gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2219         (s390_regset_from_core_section): Remove.
2220         (s390_iterate_over_regset_sections): Add regset parameter to each
2221         callback invocation.
2222         (s390_gdbarch_init): No longer set the regset_from_core_section
2223         gdbarch method.  Drop initialization of deleted tdep fields.
2224
2225 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2226
2227         * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2228         (amd64_linux_iterate_over_regset_sections): New.
2229         (amd64_linux_init_abi_common): Don't install the regset section
2230         list, but the new iterator in gdbarch.
2231         * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2232         (arm_linux_vfp_regset_sections): Remove.  Move combined logic...
2233         (arm_linux_iterate_over_regset_sections): ...here.  New function.
2234         (arm_linux_init_abi): Set iterator instead of section list.
2235         * corelow.c (get_core_registers_cb): New function, logic moved
2236         from...
2237         (get_core_registers): ...loop body here.  Use new iterator method
2238         instead of walking through the regset section list.
2239         * gdbarch.sh: Remove 'core_regset_sections'.  New method
2240         'iterate_over_regset_sections'.  New typedef
2241         'iterate_over_regset_sections_cb'.
2242         * gdbarch.c: Regenerate.
2243         * gdbarch.h: Likewise.
2244         * i386-linux-tdep.c (i386_linux_regset_sections)
2245         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2246         Remove.
2247         (i386_linux_iterate_over_regset_sections): New.
2248         (i386_linux_init_abi): Don't choose a regset section list, but
2249         install new iterator in gdbarch.
2250         * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2251         (linux_collect_regset_section_cb): New function, logic moved
2252         from...
2253         (linux_collect_thread_registers): ...loop body here.  Use iterator
2254         method instead of walking through list.
2255         (linux_make_corefile_notes_1): Check for presence of iterator
2256         method instead of regset section list.
2257         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2258         (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2259         (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2260         (ppc64_linux_fp_regset_sections): Remove.  Move combined logic...
2261         (ppc_linux_iterate_over_regset_sections): ...here.  New function.
2262         (ppc_linux_init_abi): Don't choose from above regset section
2263         lists, but install new iterator in gdbarch.
2264         * regset.h (struct core_regset_section): Remove.
2265         * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2266         have_linux_v1, have_linux_v2, and have_tdb.
2267         (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2268         (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2269         (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2270         (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2271         (s390x_linux64v2_regset_sections): Remove.  Move combined logic...
2272         (s390_iterate_over_regset_sections): ...here.  New function.  Use
2273         new tdep fields.
2274         (s390_gdbarch_init): Set new tdep fields.  Don't choose from above
2275         regset section lists, but install new iterator.
2276
2277 2014-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
2278
2279         * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2280
2281 2014-09-26  Simon Marchi  <simon.marchi@ericsson.com>
2282
2283         * progspace.c (print_program_space): Don't prune program spaces
2284         before printing them.
2285
2286 2014-09-25  Pedro Alves  <palves@redhat.com>
2287
2288         * infrun.c (user_visible_resume_ptid): Don't check
2289         singlestep_breakpoints_inserted_p.
2290
2291 2014-09-25  Pedro Alves  <palves@redhat.com>
2292
2293         * breakpoint.c (should_be_inserted): Add debug output.
2294
2295 2014-09-25  Pedro Alves  <palves@redhat.com>
2296
2297         * infrun.c (stepping_past_instruction_at)
2298         (clear_exit_convenience_vars): Point at infrun.h instead of
2299         inferior.h.
2300         (handle_signal_stop): Fix typo.
2301
2302 2014-09-24  Yao Qi  <yao@codesourcery.com>
2303
2304         * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2305         bitmask.
2306
2307 2014-09-22  Gary Benson  <gbenson@redhat.com>
2308
2309         * target.c (target_stop): Updated comment.
2310
2311 2014-09-22  Gary Benson  <gbenson@redhat.com>
2312
2313         * target/target.h (target_stop_ptid): Renamed as...
2314         (target_stop_and_wait): New function.  Updated comment.
2315         All uses updated.
2316         (target_continue_ptid): Renamed as...
2317         (target_continue_no_signal): New function.  Updated comment.
2318         All uses updated.
2319
2320 2014-09-22  Pedro Alves  <palves@redhat.com>
2321
2322         * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2323         and "auto" merged.
2324         * breakpoint.c (enum ugll_insert_mode): New enum.
2325         (always_inserted_mode): Now a plain boolean.
2326         (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2327         (breakpoints_always_inserted_mode): Delete.
2328         (breakpoints_should_be_inserted_now): New function.
2329         (insert_breakpoints): Pass UGLL_INSERT to
2330         update_global_location_list instead of calling
2331         insert_breakpoint_locations manually.
2332         (create_solib_event_breakpoint_1): New, factored out from ...
2333         (create_solib_event_breakpoint): ... this.
2334         (create_and_insert_solib_event_breakpoint): Use
2335         create_solib_event_breakpoint_1 instead of calling
2336         insert_breakpoint_locations manually.
2337         (update_global_location_list): Change parameter type from boolean
2338         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
2339         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2340         (update_global_location_list_nothrow): Change parameter type from
2341         boolean to enum ugll_insert_mode.
2342         (_initialize_breakpoint): "breakpoint always-inserted" option is
2343         now a boolean command.  Update help text.
2344         * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2345         (breakpoints_should_be_inserted_now): New declaration.
2346         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2347         Remove breakpoints_always_inserted_mode check.
2348         (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2349         * remote.c (remote_start_remote): Likewise.
2350
2351 2014-09-22  Pedro Alves  <palves@redhat.com>
2352
2353         * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2354         (insert_breakpoints): Don't call insert_breakpoint_locations here.
2355         Instead, pass UGLL_INSERT to update_global_location_list.
2356         (update_global_location_list): Change parameter type from boolean
2357         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
2358         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2359         (create_solib_event_breakpoint_1): New, factored out from ...
2360         (create_solib_event_breakpoint): ... this.
2361         (create_and_insert_solib_event_breakpoint): Use
2362         create_solib_event_breakpoint_1 instead of calling
2363         insert_breakpoint_locations manually.
2364         (update_global_location_list): Handle UGLL_INSERT.
2365
2366 2014-09-22  Pedro Alves  <palves@redhat.com>
2367
2368         * breakpoint.c (enum ugll_insert_mode): New enum.
2369         (update_global_location_list)
2370         (update_global_location_list_nothrow): Change parameter type from
2371         boolean to enum ugll_insert_mode.  All callers adjusted.
2372
2373 2014-09-19  Joel Brobecker  <brobecker@adacore.com>
2374
2375         * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2376         SystemTap support in GDB.
2377
2378 2014-09-19  Don Breazeal  <donb@codesourcery.com>
2379
2380         * linux-nat.c (linux_handle_extended_wait): Call
2381         linux_ptrace_get_extended_event.
2382         (wait_lwp): Call linux_is_extended_waitstatus.
2383         (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2384         and linux_is_extended_waitstatus.
2385         * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2386         linux_ptrace_get_extended_event.
2387         (linux_ptrace_get_extended_event): New function.
2388         (linux_is_extended_waitstatus): New function.
2389         * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2390         (linux_is_extended_waitstatus): New declarations.
2391
2392 2014-09-19  Yao Qi  <yao@codesourcery.com>
2393
2394         * dwarf2read.c (dwarf_decode_lines): Update declaration.
2395         (handle_DW_AT_stmt_list): Add argument 'lowpc'.  Update
2396         comments.  Callers update.
2397         (dwarf_decode_lines): Likewise.
2398         (dwarf_decode_lines_1): Add argument 'lowpc'.  Update
2399         comments.  Skip the line table if  'lowpc' is greater than
2400         'address'.  Don't check
2401         dwarf2_per_objfile->has_section_at_zero.
2402
2403 2014-09-18  Doug Evans  <dje@google.com>
2404
2405         * NEWS: Mention new "producer" attribute of gdb.Symtab.
2406         * python/py-symtab.c (stpy_get_producer): New function.
2407         (symtab_object_getset): Add "producer" attribute.
2408
2409 2014-09-17  Ulrich Weigand  <uweigand@de.ibm.com>
2410
2411         PR gdb/17384
2412         * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2413         (do_captured_read_memory_integer): Remove.
2414         (safe_read_memory_integer): Use target_read_memory directly instead
2415         of catching errors in do_captured_read_memory_integer.
2416
2417 2014-09-16  Maciej W. Rozycki  <macro@codesourcery.com>
2418
2419         * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2420         not gdb/doc.
2421
2422 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
2423
2424         * objc-lang.c (find_implementation_from_class): Remove dead code.
2425
2426 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
2427
2428         PR cli/7233
2429         * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2430         "fprintf_unfiltered (gdb_stdlog...)".
2431
2432 2014-09-16  Patrick Palka  <patrick@parcs.ath.cx>
2433
2434         PR breakpoints/12526
2435         * breakpoint.h (struct watchpoint): New fields val_bitpos and
2436         val_bitsize.
2437         * breakpoint.c (watch_command_1): Use these fields to retain
2438         bitfield information.
2439         (extract_bitfield_from_watchpoint_value): New function.
2440         (watchpoint_check): Use it.
2441         (update_watchpoint): Use it.  Optimize the address and length of a
2442         HW watchpoint pointing to a bitfield.
2443         * value.h (unpack_value_bitfield): New prototype.
2444         * value.c (unpack_value_bitfield): Make extern.
2445
2446 2014-09-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2447
2448         * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2449         x86-dregs.o.
2450         * gnu-nat.c (inf_threads): New function.
2451         * gnu-nat.h (inf_threads_ftype): New typedef.
2452         (inf_threads): New declaration.
2453         * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2454         [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2455         (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2456         (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2457         (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2458         (i386_gnu_dr_get_control): New functions.
2459         (reg_addr): New structure.
2460         (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2461         i386 debugging register hooks.
2462         * NEWS: Mention this.
2463
2464 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2465
2466         * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2467         vector data transfer instructions.
2468         (arm_record_coproc_data_proc): Updated.
2469
2470 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2471
2472         * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2473         arm_record_exreg_ld_st_insn.
2474         (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2475         load/store insns.
2476
2477 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2478
2479         * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2480         (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2481         processing instructions.
2482
2483 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2484
2485         * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2486         for advance SIMD struct ld/st insn.
2487         (thumb2_record_decode_insn_handler): Replace stub handler with
2488         thumb2_record_asimd_struct_ld_st.
2489
2490 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2491
2492         * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2493         for asimd, vfp and coprocessor insns.
2494         (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2495         and coprocessor insns.
2496         (thumb2_record_coproc_insn): New function.
2497         (thumb2_record_decode_insn_handler): Update coprocessor insns record
2498         handlers.
2499         (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2500         opcode 110 insns.
2501
2502 2014-09-13  Doug Evans  <xdje42@gmail.com>
2503
2504         * NEWS: Mention new "queue-signal" command.
2505         * infcmd.c (queue_signal_command): New function.
2506         (_initialize_infcmd): Add new queue-signal command.
2507
2508 2014-09-13  Doug Evans  <xdje42@gmail.com>
2509
2510         * linux-nat.c (wait_lwp): Add debugging printf.
2511         (linux_nat_wait_1): Ditto.
2512
2513 2014-09-12  Pedro Alves  <palves@redhat.com>
2514
2515         * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2516         (create_and_insert_solib_event_breakpoint): New functions.
2517         * breakpoint.h (create_and_insert_solib_event_breakpoint)
2518         (remove_solib_event_breakpoints_at_next_stop): New declarations.
2519         * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2520         (remove_dbx_link_breakpoint): Delete function.
2521         (insert_dbx_link_bpt_in_file): Use
2522         create_and_insert_solib_event_breakpoint instead of
2523         deprecated_insert_raw_breakpoint.
2524         (procfs_wait): Don't check whether we hit __dbx_link here.
2525         (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2526         here.
2527         * solib-irix.c (base_breakpoint): Delete global.
2528         (disable_break): Delete function.
2529         (enable_break): Use create_solib_event_breakpoint
2530         instead of deprecated_insert_raw_breakpoint.
2531         (irix_solib_handle_event): New function.
2532         (irix_solib_create_inferior_hook): Don't run the target or disable
2533         the mapping-complete breakpoint here.
2534         (_initialize_irix_solib): Install irix_solib_handle_event as
2535         so_ops->handle_event hook.
2536
2537 2014-09-12  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
2538             Ulrich Weigand  <uweigand@de.ibm.com>
2539
2540         PR tdep/17379
2541         * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2542         instead of read_memory_unsigned_integer.
2543
2544 2014-09-12  Gary Benson  <gbenson@redhat.com>
2545
2546         * nat/linux-waitpid.c: Include common-defs.h.
2547         [GDBSERVER]: Add FIXME comment.
2548         [!GDBSERVER]: Don't include defs.h or signal.h.
2549         (linux_debug) [!GDBSERVER]: Remove empty block.
2550
2551 2014-09-12  Gary Benson  <gbenson@redhat.com>
2552
2553         * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2554         Don't include defs.h or server.h.
2555
2556 2014-09-12  Gary Benson  <gbenson@redhat.com>
2557
2558         * nat/linux-btrace.c: Include common-defs.h.
2559         Don't include defs.h, server.h or gdbthread.h.
2560         * nat/linux-btrace.h (struct target_ops): New forward declaration.
2561
2562 2014-09-12  Gary Benson  <gbenson@redhat.com>
2563
2564         * common/agent.c: Include common-defs.h.
2565         Don't include defs.h or server.h.
2566         * common/buffer.c: Likewise.
2567         * common/common-debug.c: Likewise.
2568         * common/common-utils.c: Likewise.
2569         * common/errors.c: Likewise.
2570         * common/filestuff.c: Likewise.
2571         * common/format.c: Likewise.
2572         * common/gdb_vecs.c: Likewise.
2573         * common/print-utils.c: Likewise.
2574         * common/ptid.c: Likewise.
2575         * common/rsp-low.c: Likewise.
2576         * common/signals.c: Likewise.
2577         * common/vec.c: Likewise.
2578         * common/xml-utils.c: Likewise.
2579         * nat/linux-osdata.c: Likewise.
2580         * nat/linux-procfs.c: Likewise.
2581         * nat/linux-ptrace.c: Likewise.
2582         * nat/mips-linux-watch.c: Likewise.
2583         * target/waitstatus.c: Likewise.
2584
2585 2014-09-12  Tom Tromey  <tromey@redhat.com>
2586             Gary Benson  <gbenson@redhat.com>
2587
2588         * common/common-regcache.h: New file.
2589         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2590         * regcache.h: Include common-regcache.h.
2591         (regcache_read_pc): Don't declare.
2592         * regcache.c (get_thread_regcache_for_ptid): New function.
2593         * nat/linux-btrace.c: Don't include regcache.h.
2594         Include common-regcache.h.
2595         (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2596
2597 2014-09-11  Thomas Schwinge  <thomas@codesourcery.com>
2598
2599         * regcache.h (struct regset): Declare.
2600
2601 2014-09-11  Pedro Alves  <palves@redhat.com>
2602
2603         PR gdb/17347
2604         * main.c: Include "infrun.h".
2605         (catch_command_errors, catch_command_errors_const): Wait for the
2606         foreground command to complete.
2607         * top.c (maybe_wait_sync_command_done): New function, factored out
2608         from ...
2609         (maybe_wait_sync_command_done): ... here.
2610         * top.h (maybe_wait_sync_command_done): New declaration.
2611
2612 2014-09-11  Tom Tromey  <tromey@redhat.com>
2613             Gary Benson  <gbenson@redhat.com>
2614
2615         * common/symbol.h: New file.
2616         * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2617         * minsyms.c (find_minimal_symbol_address): New function.
2618         * common/agent.c: Include common/symbol.h.
2619         [!GDBSERVER]: Don't include objfiles.h.
2620         (agent_look_up_symbols): Use find_minimal_symbol_address.
2621
2622 2014-09-11  Gary Benson  <gbenson@redhat.com>
2623
2624         * target/target.h (target_stop_ptid, target_continue_ptid):
2625         Declare.
2626         * target.c (target_stop_ptid, target_continue_ptid): New
2627         functions.
2628         * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2629         (agent_run_command): Always use target_stop_ptid and
2630         target_continue_ptid.
2631
2632 2014-09-11  Tom Tromey  <tromey@redhat.com>
2633             Gary Benson  <gbenson@redhat.com>
2634
2635         * target/target.h: New file.
2636         * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2637         * target.h: Include target/target.h.
2638         (target_read_memory, target_write_memory): Don't declare.
2639         * target.c (target_read_uint32): New function.
2640         * common/agent.c: Include target/target.h.
2641         [!GDBSERVER]: Don't include target.h.
2642         (helper_thread_id): Type changed to uint32_t.
2643         (agent_get_helper_thread_id): Use target_read_uint32.
2644         (agent_run_command): Always use target_read_memory and
2645         target_write_memory.
2646         (agent_capability): Type changed to uint32_t.
2647         (agent_capability_check): Use target_read_uint32.
2648
2649 2014-09-11  Gary Benson  <gbenson@redhat.com>
2650
2651         * common/common-debug.h (show_debug_regs): Declare.
2652         * common/common-debug.c (show_debug_regs): Define.
2653         * aarch64-linux-nat.c (debug_hw_points): Don't define.  Replace
2654         all uses with show_debug_regs.  Replace all uses that considered
2655         debug_hw_points as a multi-value integer with straight boolean
2656         uses.
2657         * x86-nat.c (debug_hw_points): Don't define.  Replace all uses
2658         with show_debug_regs.
2659         * nat/x86-dregs.c (debug_hw_points): Don't declare.  Replace
2660         all uses with show_debug_regs.
2661         * mips-linux-nat.c (maint_show_dr): Don't define.  Replace all
2662         uses with show_debug_regs.
2663
2664 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
2665
2666         * findvar.c (address_from_register): Handle targets requiring
2667         a special conversion routine even for plain pointer types.
2668
2669 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
2670
2671         * rs6000-nat.c (exec_one_dummy_insn): Remove.
2672         (store_register): Do not call exec_one_dummy_insn.
2673
2674 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2675
2676         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2677         dereference it first.  Use value_enclosing_type instead of
2678         value_type.
2679         (ada_array_length): Likewise.
2680
2681 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2682
2683         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2684         Adjust function implementation and documentation accordingly.
2685         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2686         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2687         Update call to ada_value_ptr_subscript.
2688
2689 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2690
2691         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2692         instead of VAL's type.
2693
2694 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2695
2696         * amd64-linux-nat.c: Add <sys/uio.h> #include.
2697
2698 2014-09-09  Doug Evans  <xdje42@gmail.com>
2699
2700         PR guile/17367
2701         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2702         last parameter to pkg-config, not first.
2703         * configure.ac: Pass --with-guile provided pkg-config path to
2704         GDB_GUILE_PROGRAM_NAMES.
2705         * configure: Regenerate.
2706
2707 2014-09-09  Gabriel Krisman Bertazi  <gabriel@krisman.be>
2708
2709         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2710         Bertazi".
2711
2712 2014-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
2713
2714         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2715         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2716         the list of sections determining GDB_OSABI_IRIX.
2717
2718 2014-09-09  James Hogan  <james.hogan@imgtec.com>
2719
2720         * MAINTAINERS (Write After Approval): Add "James Hogan".
2721
2722 2014-09-09  James Hogan  <james.hogan@imgtec.com>
2723
2724         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2725
2726 2014-09-09  Joel Brobecker  <brobecker@adacore.com>
2727
2728         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2729
2730 2014-09-08  Doug Evans  <xdje42@gmail.com>
2731
2732         PR 17247
2733         * guile.c: #include <signal.h>.
2734         (_initialize_guile): Block SIGCHLD while initializing Guile.
2735
2736         Replaces the following, which is reverted.
2737
2738         2014-07-26  Doug Evans  <xdje42@gmail.com>
2739
2740         PR 17185
2741         * configure.ac: Add check for header gc/gc.h.
2742         Add check for function setenv.
2743         * configure: Regenerate.
2744         * config.in: Regenerate.
2745         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2746
2747 2014-09-08  Doug Evans  <xdje42@gmail.com>
2748
2749         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2750         with named constant.  Fix style of pointer comparison.
2751         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2752
2753 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
2754
2755         PR gdb/17035
2756         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2757         decide whether we display the command on "show user".
2758         * cli/cli-script.c (show_user_1): Only verify cmdlines after
2759         printing command name.
2760         * cli/cli-decode.h (cli_user_command_p): Declare new function.
2761         * cli/cli-decode.c (cli_user_command_p): Create helper function
2762         to verify whether cmd_list_element is a user-defined command.
2763
2764 2014-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2765
2766         PR python/17355
2767         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2768         Fix goto out of TRY_CATCH.
2769
2770 2014-09-06  Doug Evans  <xdje42@gmail.com>
2771             Tom Tromey  <tromey@redhat.com>
2772
2773         PR 15276
2774         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2775         $_any_caller_matches.
2776         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2777         * python/lib/gdb/function/caller_is.py: New file.
2778
2779 2014-09-06  Doug Evans  <xdje42@gmail.com>
2780
2781         * infcmd.c (program_info): Fix typo.
2782
2783 2014-09-05  Sergio Durigan Junior  <sergiodj@redhat.com>
2784
2785         PR gdb/17235
2786         * stap-probe.c (stap_parse_single_operand): Delete unused variable
2787         'number'.  New variable 'has_digit'.  Rewrite code to deal with
2788         subexpressions on SDT probes.
2789
2790 2014-09-04  Pedro Alves  <palves@redhat.com>
2791
2792         * c-exp.y (parse_number): Skip handling base-switching prefixes if
2793         the input is only one character long.
2794
2795 2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
2796
2797         PR fortran/17237
2798         * f-valprint.c (f_val_print): Specify the correct print option to
2799         use when printing integer values.
2800
2801 2014-09-04  Gary Benson  <gbenson@redhat.com>
2802
2803         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
2804         Remove code to cope with LWPs wrapped as PIDs.
2805         Add assertions to ensure no wrapped LWPs are passed.
2806
2807 2014-09-04  Pedro Alves  <palves@redhat.com>
2808
2809         * value.c (value_ranges_copy_adjusted): New function, factored out
2810         from ...
2811         (value_contents_copy_raw): ... here.
2812         (unpack_value_bits_as_long_1): Rename back to ...
2813         (unpack_bits_as_long): ... this.  Remove 'original_value' and
2814         'result' parameters.  Change return type to LONGEST.
2815         (unpack_value_bits_as_long): Delete.
2816         (unpack_value_field_as_long_1): Delete.
2817         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
2818         (unpack_value_bitfield): New function.
2819         (value_field_bitfield): Reimplement using unpack_value_bitfield.
2820         (value_fetch_lazy): Use unpack_value_bitfield.
2821         * value.h (unpack_value_bits_as_long): Delete declaration.
2822
2823 2014-09-03  Sasha Smundak  <asmundak@google.com>
2824
2825         * python/py-frame.c (frapy_read_register): New function.
2826
2827 2014-09-03  James Hogan  <james.hogan@imgtec.com>
2828
2829         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
2830         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
2831
2832 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
2833
2834         PR python/16699
2835         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
2836         function.
2837         (add_cmd): Set "completer_handle_brkchars" to NULL.
2838         * cli/cli-decode.h (struct cmd_list_element)
2839         <completer_handle_brkchars>: New field.
2840         * command.h (completer_ftype_void): New typedef.
2841         (set_cmd_completer_handle_brkchars): New prototype.
2842         * completer.c (set_gdb_completion_word_break_characters): New
2843         function.
2844         (complete_line_internal): Call "completer_handle_brkchars"
2845         callback from command.
2846         * completer.h: Include "command.h".
2847         (set_gdb_completion_word_break_characters): New prototype.
2848         * python/py-cmd.c (cmdpy_completer_helper): New function.
2849         (cmdpy_completer_handle_brkchars): New function.
2850         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
2851         (cmdpy_init): Set completer_handle_brkchars to
2852         cmdpy_completer_handle_brkchars.
2853
2854 2014-09-03  Gary Benson  <gbenson@redhat.com>
2855
2856         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
2857         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
2858         Loop conditions changed to equivalent form.
2859         (struct x86_debug_reg_state): Updated dr_ref_count comment.
2860         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
2861         ALL_DEBUG_ADDRESS_REGISTERS.
2862
2863 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
2864
2865         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
2866         description fix.
2867
2868 2014-09-02  Doug Evans  <dje@google.com>
2869
2870         * typeprint.c (find_global_typedef): Fix comment.
2871
2872 2014-09-02  Gary Benson  <gbenson@redhat.com>
2873
2874         * i386-nat.h: Renamed as...
2875         * x86-nat.h: New file.  All type, function and variable name
2876         prefixes changed from "i386_" to "x86_".  All references updated.
2877         * i386-nat.c: Renamed as...
2878         * x86-nat.c: New file.  All type, function and variable name
2879         prefixes changed from "i386_" to "x86_".  All references updated.
2880         * common/i386-xstate.h: Renamed as...
2881         * common/x86-xstate.h: New file.  All type, function and variable
2882         name prefixes changed from "i386_" to "x86_".  All references
2883         updated.
2884         * nat/i386-cpuid.h: Renamed as...
2885         * nat/x86-cpuid.h: New file.  All type, function and variable name
2886         prefixes changed from "i386_" to "x86_".  All references updated.
2887         * nat/i386-gcc-cpuid.h: Renamed as...
2888         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
2889         name prefixes changed from "i386_" to "x86_".  All references
2890         updated.
2891         * nat/i386-dregs.h: Renamed as...
2892         * nat/x86-dregs.h: New file.  All type, function and variable name
2893         prefixes changed from "i386_" to "x86_".  All references updated.
2894         * nat/i386-dregs.c: Renamed as...
2895         * nat/x86-dregs.c: New file.  All type, function and variable name
2896         prefixes changed from "i386_" to "x86_".  All references updated.
2897
2898 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
2899
2900         * varobj.c (_initialize_varobj): Move to the end of file.
2901
2902 2014-08-29  Gary Benson  <gbenson@redhat.com>
2903
2904         * common/common-exceptions.h: New file.
2905         * common/common-exceptions.c: Likewise.
2906         * Makefile.in (SFILES): Add common/common-exceptions.c.
2907         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
2908         (COMMON_OBS): Add common-exceptions.o.
2909         (common-exceptions.o): New rule.
2910         * exceptions.h (common-exceptions.h): Include.
2911         (gdb_setjmp.h): Do not include.
2912         (return_reason): Moved to common-exceptions.h.
2913         (enum return_reason): Likewise.
2914         (RETURN_MASK): Likewise.
2915         (typedef return_mask): Likewise.
2916         (enum errors): Likewise.
2917         (struct gdb_exception): Likewise.
2918         (exceptions_state_mc_init): Likewise.
2919         (exceptions_state_mc_action_iter): Likewise.
2920         (exceptions_state_mc_action_iter_1): Likewise.
2921         (TRY_CATCH): Likewise.
2922         (throw_exception): Likewise.
2923         (throw_verror): Likewise.
2924         (throw_vquit): Likewise.
2925         (throw_error): Likewise.
2926         (throw_quit): Likewise.
2927         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
2928         (enum catcher_action): Likewise.
2929         (struct catcher): Likewise.
2930         (current_catcher): Likewise.
2931         (catcher_list_size): Likewise.
2932         (exceptions_state_mc_init): Likewise.
2933         (catcher_pop): Likewise.
2934         (exceptions_state_mc): Likewise.
2935         (exceptions_state_mc_action_iter): Likewise.
2936         (exceptions_state_mc_action_iter_1): Likewise.
2937         (throw_exception): Likewise.
2938         (exception_messages): Likewise.
2939         (exception_messages_size): Likewise.
2940         (throw_it): Likewise.
2941         (throw_verror): Likewise.
2942         (throw_vquit): Likewise.
2943         (throw_error): Likewise.
2944         (throw_quit): Likewise.
2945         (prepare_to_throw_exception): New function.
2946
2947 2014-08-29  Gary Benson  <gbenson@redhat.com>
2948
2949         * common/gdb_setjmp.h: New file.
2950         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
2951         * configure.ac: Move sigsetjmp check...
2952         * common/common.m4: ...here.
2953         * configure: Regenerate.
2954         * cp-support.c (SIGJMP_BUF): Delete.
2955         (SIGSETJMP): Likewise.
2956         (SIGLONGJMP): Likewise.
2957         * exceptions.h (gdb_setjmp.h): Include.
2958         (setjmp.h): Do not include.
2959         (EXCEPTIONS_SIGJMP_BUF): Delete.
2960         (EXCEPTIONS_SIGSETJMP): Likewise.
2961         (EXCEPTIONS_SIGLONGJMP): Likewise.
2962         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
2963         from gdb_setjmp.h.
2964         * exceptions.c: Likewise.
2965
2966 2014-08-29  Gary Benson  <gbenson@redhat.com>
2967
2968         * cleanups.h: Moved to...
2969         * common/cleanups.h: New file.
2970         * cleanups.c: Moved to...
2971         * common/cleanups.c: New file.  Include common-defs.h and
2972         cleanups.h.  Do not include defs.h.
2973         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
2974         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
2975         (cleanups.o): New rule.
2976
2977 2014-08-29  Gary Benson  <gbenson@redhat.com>
2978
2979         * common/errors.h (internal_warning): New declaration.
2980         (internal_vwarning): Likewise.
2981         * common/errors.c (internal_warning): New function.
2982         * utils.h (internal_warning): Don't declare.
2983         (internal_vwarning): Likewise.
2984         * utils.c (internal_warning): Removed.
2985
2986 2014-08-29  Gary Benson  <gbenson@redhat.com>
2987
2988         * main.c (captured_main): Use warning during startup.
2989         Prefix startup warning messages with command name.
2990
2991 2014-08-29  Gary Benson  <gbenson@redhat.com>
2992
2993         * main.c (captured_main): Handle usage errors with error.
2994
2995 2014-08-29  Gary Benson  <gbenson@redhat.com>
2996
2997         * go32-nat.c (go32_create_inferior): Replace a fprintf/
2998         exit pair with a call to error.  Wrap the message with _().
2999
3000 2014-08-29  Gary Benson  <gbenson@redhat.com>
3001
3002         * main.c (captured_main): Replace a fprintf/exit
3003         pair with a call to error.  Wrap the message with _().
3004
3005 2014-08-29  Gary Benson  <gbenson@redhat.com>
3006
3007         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3008         pairs with calls to error.  Wrap the message with _().
3009
3010 2014-08-29  Gary Benson  <gbenson@redhat.com>
3011
3012         * utils.c (vwarning): Protect calls to target_terminal_ours
3013         and wrap_here.
3014
3015 2014-08-29  Gary Benson  <gbenson@redhat.com>
3016
3017         * exceptions.c (print_flush): Protect calls to
3018         target_terminal_ours and wrap_here.
3019
3020 2014-08-29  Gary Benson  <gbenson@redhat.com>
3021
3022         * utils.h (filtered_printing_initialized): New declaration.
3023         * utils.c (abort_with_message): New function.
3024         (internal_vproblem): Use abort_with_message for first level
3025         recursive internal problems, and if gdb_stderr is not set up.
3026         Protect calls to target_terminal_ours, begin_line and query.
3027
3028 2014-08-28  Doug Evans  <dje@google.com>
3029
3030         * symtab.c (in_prologue): Move definition to better spot.
3031         (skip_prologue_using_sal): Ditto.
3032
3033 2014-08-28  Doug Evans  <dje@google.com>
3034
3035         * symtab.c (find_function_start_sal): Move definition to better spot.
3036
3037 2014-08-28  Yao Qi  <yao@codesourcery.com>
3038
3039         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3040         found_stack_adjust in forward scan.  Remove condition check
3041         on found_stack_adjust which is always true.  Indent the code.
3042
3043 2014-08-28  Yao Qi  <yao@codesourcery.com>
3044
3045         * dwarf2read.c (dwarf_decode_lines): Update declaration.
3046         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3047         (dwarf_decode_lines): Remove argument
3048         want_line_info.  Remove condition check on want_line_info.
3049         Callers update.
3050
3051 2014-08-27  Doug Evans  <dje@google.com>
3052
3053         * dwarf2read.c (dwarf_record_line): Fix typo.
3054
3055 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
3056
3057         * target.h (struct target_ops::to_terminal_save_ours): Remove
3058         declaration.
3059         (target_terminal_save_ours): Remove macro.
3060         * target-delegates.c: Regenerate.
3061         * inf-child.c (inf_child_target): Don't set the nonexistent
3062         field to_terminal_save_ours.
3063         * inferior.h (child_terminal_save_ours): Remove declaration.
3064         * terminal.h (gdb_save_tty_state): New declaration.
3065         * inflow.c (child_terminal_save_ours): Rename to ...
3066         (gdb_save_tty_state): ... this.
3067         * tui/tui.c: Include terminal.h.
3068         (tui_enable): Use gdb_save_tty_state instead of
3069         target_terminal_save_ours.
3070         (tui_disable): Likewise.
3071
3072 2014-08-25  Doug Evans  <dje@google.com>
3073
3074         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3075         Pass NULL instead of 0 for context pointer.
3076
3077 2014-08-25  Yao Qi  <yao@codesourcery.com>
3078
3079         * dwarf2read.c: Fix grammatical error.
3080
3081 2014-08-24  Yao Qi  <yao@codesourcery.com>
3082
3083         * dwarf2read.c (scan_partial_symbols):  Update comments.
3084         Rename argument 'need_pc' with 'set_addrmap'.
3085         ï¼ˆadd_partial_namespace): Rename argument 'need_pc' with
3086         'set_addrmap'.
3087         (add_partial_module): Likewise.
3088         (add_partial_subprogram): Likewise.  Update comments.
3089         (dwarf2_name): Fix typo.
3090
3091 2014-08-22  Doug Evans  <dje@google.com>
3092
3093         PR 17276
3094         * dwarf2read.c (dwarf_record_line_p): New function.
3095         (dwarf_decode_lines_1): Ignore subsequent line number entries
3096         for the same line if any entry had a non-zero discriminator.
3097
3098 2014-08-22  Doug Evans  <dje@google.com>
3099
3100         * buildsym.h (record_line_ftype): New typedef.
3101         (record_line): Use it.
3102         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3103         (dwarf_decode_lines_1): Call them.
3104
3105 2014-08-22  Yao Qi  <yao@codesourcery.com>
3106
3107         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3108         (ctf_end): Remove code.
3109
3110 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
3111
3112         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3113         (linux_make_corefile_notes): call update_thread_list, protected against
3114         exceptions.
3115
3116 2014-08-21  Pedro Alves  <palves@redhat.com>
3117
3118         * infcmd.c (attach_command): Remove comment.
3119
3120 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
3121
3122         * aarch64-linux-nat.c (dr_changed_t): Change the type from
3123         unsigned LONGEST to ULONGEST.
3124
3125 2014-08-20  Pedro Alves  <palves@redhat.com>
3126
3127         * Makefile.in (check-read1): New rule.
3128
3129 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
3130
3131         * value.c (value_from_contents_and_address): Strip resolved_type's
3132         typedef layers before checking its TYPE_DATA_LOCATION.
3133
3134 2014-08-20  Pedro Alves  <palves@redhat.com>
3135
3136         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3137
3138 2014-08-20  Yao Qi  <yao@codesourcery.com>
3139
3140         * amd64-tdep.c (amd64_classify): Add a blank line after the
3141         example.  Move "*/" to a new line.
3142         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3143         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3144         * dwarf2read.c (psymtab_include_file_name): Likewise.
3145
3146 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
3147             Pedro Alves  <palves@redhat.com>
3148
3149         PR symtab/14604
3150         PR symtab/14605
3151         * ada-lang.c (coerce_unspec_val_to_type): Use
3152         value_contents_copy_raw.
3153         * ada-valprint.c (val_print_packed_array_elements): Adjust.
3154         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3155         * cp-valprint.c (cp_print_value_fields): Let the common printing
3156         code handle optimized out values.
3157         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3158         * d-valprint.c (dynamic_array_type): Use
3159         value_bits_any_optimized_out.
3160         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3161         check_any_valid fields.
3162         (check_pieced_value_bits): Delete and inline ...
3163         (check_pieced_synthetic_pointer): ... here.
3164         (check_pieced_value_validity): Delete.
3165         (check_pieced_value_invalid): Delete.
3166         (pieced_value_funcs): Remove check_validity and check_any_valid
3167         fields.
3168         (read_pieced_value): Use mark_value_bits_optimized_out.
3169         (write_pieced_value): Switch to use
3170         mark_value_bytes_optimized_out.
3171         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3172         of assuming the whole value is optimized out.
3173         * findvar.c (read_frame_register_value): Remove special handling
3174         of optimized out registers.
3175         (value_from_register): Use mark_value_bytes_optimized_out.
3176         * frame-unwind.c (frame_unwind_got_optimized): Use
3177         mark_value_bytes_optimized_out.
3178         * jv-valprint.c (java_value_print): Adjust.
3179         (java_print_value_fields): Let the common printing code handle
3180         optimized out values.
3181         * mips-tdep.c (mips_print_register): Remove special handling of
3182         optimized out registers.
3183         * opencl-lang.c (lval_func_check_validity): Delete.
3184         (lval_func_check_any_valid): Delete.
3185         (opencl_value_funcs): Remove check_validity and check_any_valid
3186         fields.
3187         * p-valprint.c (pascal_object_print_value_fields): Let the common
3188         printing code handle optimized out values.
3189         * stack.c (read_frame_arg): Remove special handling of optimized
3190         out values.  Fetch both VAL and ENTRYVAL before comparing
3191         contents.  Adjust to value_available_contents_eq rename.
3192         * valprint.c (valprint_check_validity)
3193         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3194         (val_print_array_elements): Adjust.
3195         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3196         (value_bits_any_optimized_out): New function.
3197         (value_entirely_covered_by_range_vector): New function, factored
3198         out from value_entirely_unavailable.
3199         (value_entirely_unavailable): Reimplement.
3200         (value_entirely_optimized_out): New function.
3201         (insert_into_bit_range_vector): New function, factored out from
3202         mark_value_bits_unavailable.
3203         (mark_value_bits_unavailable): Reimplement.
3204         (struct ranges_and_idx): New struct.
3205         (find_first_range_overlap_and_match): New function, factored out
3206         from value_available_contents_bits_eq.
3207         (value_available_contents_bits_eq): Rename to ...
3208         (value_contents_bits_eq): ... this.  Check both unavailable
3209         contents and optimized out contents.
3210         (value_available_contents_eq): Rename to ...
3211         (value_contents_eq): ... this.
3212         (allocate_value_lazy): Remove reference to the old optimized_out
3213         boolean.
3214         (allocate_optimized_out_value): Use
3215         mark_value_bytes_optimized_out.
3216         (require_not_optimized_out): Adjust to check whether the
3217         optimized_out vec is empty.
3218         (ranges_copy_adjusted): New function, factored out from
3219         value_contents_copy_raw.
3220         (value_contents_copy_raw): Also copy the optimized out ranges.
3221         Assert the destination ranges aren't optimized out.
3222         (value_contents_copy): Update comment, remove call to
3223         require_not_optimized_out.
3224         (value_contents_equal): Adjust to check whether the optimized_out
3225         vec is empty.
3226         (set_value_optimized_out, value_optimized_out_const): Delete.
3227         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3228         New functions.
3229         (value_entirely_optimized_out, value_bits_valid): Delete.
3230         (value_copy): Take a VEC copy of the 'optimized_out' field.
3231         (value_primitive_field): Remove special handling of optimized out.
3232         (value_fetch_lazy): Assert that lazy values have no unavailable
3233         regions.  Use value_bits_any_optimized_out.  Remove some special
3234         handling for optimized out values.
3235         * value.h: Add intro comment about <optimized out> and
3236         <unavailable>.
3237         (struct lval_funcs): Remove check_validity and check_any_valid
3238         fields.
3239         (set_value_optimized_out, value_optimized_out_const): Remove.
3240         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3241         New declarations.
3242         (value_bits_any_optimized_out): New declaration.
3243         (value_bits_valid): Delete declaration.
3244         (value_available_contents_eq): Rename to ...
3245         (value_contents_eq): ... this, and extend comments.
3246
3247 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
3248
3249         Fix -fsanitize=address on unreadable inferior strings.
3250         * valprint.c (val_print_string): Fix access before BUFFER.
3251
3252 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
3253
3254         * target.c (target_struct_size): Remove.
3255         (target_struct_allocsize): Remove.
3256         (DEFAULT_ALLOCSIZE): Remove.
3257         (target_ops_p): New typedef.
3258         (DEF_VEC_P (target_ops_p)): New vector type.
3259         (target_structs): Change type to VEC (target_ops_p).
3260         (add_target_with_completer): Replace "push" code by VEC_safe_push.
3261         (find_default_run_target): Rewrite for loop following changes to
3262         target_structs.
3263
3264 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
3265
3266         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3267         Adjust code accordingly.  Adjust function description comment.
3268
3269 2014-08-19  Yao Qi  <yao@codesourcery.com>
3270
3271         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3272         types.
3273
3274 2014-08-19  Alan Modra  <amodra@gmail.com>
3275
3276         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3277         * config.in: Regenerate.
3278         * configure: Regenerate.
3279
3280 2014-08-19  Tom Tromey  <tromey@redhat.com>
3281             Gary Benson  <gbenson@redhat.com>
3282
3283         * common/common-debug.h: New file.
3284         * common/common-debug.c: Likewise.
3285         * debug.c: Likewise.
3286         * Makefile.in (SFILES): Add common/common-debug.c.
3287         (HFILES_NO_SRCDIR): Add common/common-debug.h.
3288         (COMMON_OBS): Add common-debug.o and debug.o.
3289         (common-debug.o): New rule.
3290         * common/common-defs.h: Include common-debug.h.
3291         * common/agent.c (debug_agent_printf): New function.
3292         (DEBUG_AGENT): Redefine.
3293         * nat/i386-dregs.c (debug_printf): Undefine.
3294
3295 2014-08-19  Gary Benson  <gbenson@redhat.com>
3296
3297         * common/common-defs.h: Include print-utils.h.
3298         * utils.h: Do not include print-utils.h.
3299
3300 2014-08-19  Tom Tromey  <tromey@redhat.com>
3301             Gary Benson  <gbenson@redhat.com>
3302
3303         * common/common-types.h: New file.
3304         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3305         * common/common-defs.h: Include common-types.h.
3306         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3307         (ULONGEST): Remove.
3308
3309 2014-08-19  Tom Tromey  <tromey@redhat.com>
3310             Gary Benson  <gbenson@redhat.com>
3311
3312         * common/errors.h: New file.
3313         * common/errors.c: Likewise.
3314         * Makefile.in (SFILES): Add common/errors.c.
3315         (HFILES_NO_SRCDIR): Add common/errors.h.
3316         (COMMON_OBS): Add errors.o.
3317         (errors.o): New rule.
3318         * common/common-defs.h: Include errors.h.
3319         * utils.h (perror_with_name, error, verror, warning, vwarning):
3320         Don't declare.
3321         * common/common-utils.h: (malloc_failure, internal_error):
3322         Likewise.
3323
3324 2014-08-19  Gary Benson  <gbenson@redhat.com>
3325
3326         * utils.c (internal_vproblem): Always print the message.
3327
3328 2014-08-18  Doug Evans  <dje@google.com>
3329
3330         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3331
3332 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
3333
3334         * ada-typeprint.c (type_is_full_subrange_of_target_type):
3335         Return 0 if TYPE is dynamic.
3336         (print_range): Add handling of dynamic ranges.
3337
3338 2014-08-18  Keven Boell  <keven.boell@intel.com>
3339             Joel Brobecker  <brobecker@adacore.com>
3340
3341         * gdbtypes.h (struct main_type): Add field "data_location".
3342         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3343         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3344         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3345         a dynamic data location.
3346         (resolve_dynamic_type): Add DW_AT_data_location handling.
3347         (copy_recursive, copy_type): Copy the data_location information
3348         when present.
3349         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3350         * value.c (value_from_contents_and_address): Add
3351         DW_AT_data_location handling.
3352
3353 2014-08-18  Keven Boell  <keven.boell@intel.com>
3354             Joel Brobecker  <brobecker@adacore.com>
3355
3356         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3357         field "get_object_address".
3358         * dwarf2expr.c (execute_stack_op): Add handling for
3359         DW_OP_push_object_address.
3360         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3361         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3362         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3363         (dwarf_expr_get_obj_addr): New function.
3364         (dwarf_expr_ctx_funcs): Add get_object_address field.
3365         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3366         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
3367         (dwarf2_evaluate_property): Add parameter "address".  Use it.
3368         (needs_get_obj_addr): New function.
3369         (needs_frame_ctx_funcs): Add get_object_address field.
3370         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3371         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
3372         (resolve_dynamic_array): Likewise.
3373
3374 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
3375
3376         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3377         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3378         fixed value for records and unions for which some GNAT encodings
3379         are present.
3380
3381 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
3382
3383         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3384         rewrite to avoid "else if" and "else" constructs.  Should be
3385         a no-op in practice.
3386
3387 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
3388
3389         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3390         of lexical block.
3391
3392 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
3393
3394         PR c++/17132
3395         * eval.c: Update all calls to find_overload_match.
3396         * valarith.c: Likewise.
3397         (value_user_defined_cpp_op, value_user_defined_op): New
3398         argument NOSIDE.  Update all callers.
3399         * valops.c (find_overload_match): New argument NOSIDE.
3400         * value.h (find_overload_match): Update signature.
3401
3402 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
3403
3404         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3405         'items' methods instead of 'iteritems' method on dictionaries.
3406
3407 2014-08-15  Doug Evans  <dje@google.com>
3408
3409         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3410         closer to use.
3411
3412 2014-08-15  Doug Evans  <dje@google.com>
3413
3414         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3415
3416 2014-08-15  Doug Evans  <dje@google.com>
3417
3418         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3419
3420 2014-08-15  Doug Evans  <dje@google.com>
3421
3422         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3423         unused.
3424
3425 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
3426
3427         * dcache.h: Include target.h, to avoid compile time warnings.
3428
3429 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
3430
3431         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
3432         frame_info" partial declaration.
3433         * gdbarch.h: Regenerate.
3434
3435 2014-08-15  Yao Qi  <yao@codesourcery.com>
3436
3437         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3438         Add parameter 'decode_for_pst_p'.  Callers update.
3439
3440 2014-08-13  Yao Qi  <yao@codesourcery.com>
3441
3442         PR build/17104
3443         * configure.ac: Use local variable 'pos'.
3444         * configure: Regenerated.
3445
3446 2014-08-11  Doug Evans  <dje@google.com>
3447
3448         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3449         message, it is redundant with "Reading symbols from ..." message.
3450
3451 2014-08-10  Doug Evans  <xdje42@gmail.com>
3452
3453         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3454
3455 2014-08-09  Yao Qi  <yao@codesourcery.com>
3456
3457         PR remote/9053
3458         * remote.c (remote_xfer_partial): Remove dead code.
3459
3460 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3461
3462         * ia64-linux-tdep.c: Include "regset.h".
3463         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3464         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3465         (ia64_linux_supply_fpregset): New function.
3466         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3467         (ia64_linux_regset_from_core_section): New function.
3468         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3469         method.
3470
3471 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3472
3473         * m68klinux-tdep.c: Include "regset.h".
3474         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3475         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3476         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3477         (m68k_linux_regset_from_core_section): New function.
3478         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3479         method.
3480
3481 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3482
3483         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3484         function.  Move logic to...
3485         (tilegx_linux_regmap): ... this new register map.
3486         (tilegx_linux_regset): Refer to register map, replace supply
3487         method by regcache_supply_regset, and add collect method.
3488         * tilegx-tdep.h (enum tilegx_regnum): New enum value
3489         TILEGX_FIRST_EASY_REGNUM.
3490
3491 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3492
3493         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3494         that calls regcache_supply_regset and handles the EPC register
3495         separately.  Move main logic to...
3496         (score7_linux_gregmap): ... this new register map.
3497         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3498         (score7_linux_gregset): Refer to register map.  Add collect method.
3499         (score7_linux_regset_from_core_section): Replace
3500         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3501         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3502         (struct regset): Delete unused forward declaraction.
3503         (struct pt_regs): Delete structure definition.
3504         (elf_gregset_t): Delete typedef.
3505
3506 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3507
3508         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3509         (nios2_core_regset): Add collect method.
3510
3511 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3512
3513         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3514         platform-independent and don't write to read-only input buffer.
3515         (m32r_linux_collect_gregset): New function.
3516         (m32r_linux_gregset): Add collect method.
3517
3518 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3519
3520         * hppa-linux-tdep.c (greg_map): Rename to...
3521         (hppa_linux_gregmap): ... this.  Also convert to
3522         regcache_map_entry format.
3523         (hppa_linux_supply_regset): Delete function.
3524         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
3525         (hppa_linux_fpregmap): ... this new register map.
3526         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3527         register map, replace supply method by regcache_supply_regset, and
3528         add collect method regcache_collect_regset.
3529
3530 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3531
3532         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3533         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3534         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3535         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3536         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3537         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3538         (frv_linux_supply_gregset): Replace main logic by call to
3539         regcache_supply_regset, but keep clearing gr32-gr63.
3540         (frv_linux_supply_fpregset): Delete function.
3541         (frv_linux_gregset): Refer to appropriate register map and add
3542         regcache_collect_regset as the collect method.
3543         (frv_linux_fpregset): Likewise.  Also exchange the supply method
3544         by regcache_supply_regset.
3545
3546 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3547
3548         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3549         by call to alpha_supply_int_regs.
3550         (alpha_linux_collect_gregset): New function.
3551         (alpha_linux_supply_fpregset): Replace logic by call to
3552         alpha_supply_fp_regs.
3553         (alpha_linux_collect_fpregset): New function.
3554         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3555
3556 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3557
3558         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3559         by call to regcache_collect_regset.
3560         (supply_gregset, supply_fpregset): Call regcache_supply_regset
3561         instead of aarch64_linux_supply_gregset/_fpregset.
3562         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3563         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3564         header file instead.
3565         (aarch64_linux_supply_gregset, supply_gregset_from_core)
3566         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3567         functions.  Move logic to ...
3568         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3569         register maps.
3570         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3571         refer to new register maps, replace *_regset_from_core by
3572         regcache_supply_regset, and also use regcache_collect_regset.
3573         * aarch64-linux-tdep.h: Include "regset.h".
3574         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3575         Delete prototypes.
3576         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3577         macros, moved from C source file.
3578         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3579         variable declarations.
3580
3581 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3582
3583         * s390-linux-nat.c: Include "regset.h".
3584         (regmap_gregset): Delete macro.
3585         (s390_64_regmap_gregset): New register map for
3586         regcache_supply/_collect_regset.
3587         (s390_64_gregset): New regset.
3588         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3589         (regmap_fpregset): Delete macro.
3590         (s390_native_supply, s390_native_collect): Delete functions.
3591         (supply_gregset, fill_gregset): Replace s390-specific regmap
3592         handling by a call to regcache_supply/_collect_regset.
3593         (supply_fpregset, fill_fpregset): Call regcache_supply/
3594         _collect_regset instead of s390_native_supply/_collect.
3595         (fetch_regset, store_regset): Likewise.  Also change the last
3596         parameter to a regset instead of a regmap.
3597         (s390_linux_fetch_inferior_registers)
3598         (390_linux_store_inferior_registers): Adjust last parameter in
3599         calls to fetch_regset and store_regset.
3600         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3601         (s390_gregmap): ... this.  Also make static const and convert to
3602         regcache_map_entry format.
3603         (s390x_regmap_gregset): Delete.
3604         (s390_regmap_fpregset): Rename to...
3605         (s390_fpregmap): ... this.  Make static const and convert to
3606         regcache_map_entry format.
3607         (s390_regmap_upper, s390_regmap_last_break)
3608         (s390x_regmap_last_break, s390_regmap_system_call)
3609         (s390_regmap_tdb): Likewise.
3610         (s390_supply_regset, s390_collect_regset): Remove functions.
3611         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3612         s390_supply_regset.
3613         (s390_gregset, s390_fpregset, s390_upper_regset)
3614         (s390_last_break_regset, s390x_last_break_regset)
3615         (s390_system_call_regset, s390_tdb_regset): Make global and
3616         replace s390_supply/_collect_regset by regcache_supply/
3617         _collect_regset.
3618         (s390x_gregset): Delete.
3619         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3620         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3621         (s390_regmap_fpregset, s390_regmap_last_break)
3622         (s390x_regmap_last_break, s390_regmap_system_call)
3623         (s390_regmap_tdb): Delete global variable declarations.
3624         (s390_gregset, s390_fpregset, s390_last_break_regset)
3625         (s390x_last_break_regset, s390_system_call_regset)
3626         (s390_tdb_regset): New global variable declarations.
3627
3628 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3629
3630         * regcache.c: Include "regset.h".
3631         (regcache_transfer_regset): New local function.
3632         (regcache_supply_regset, regcache_collect_regset): New functions.
3633         * regcache.h (struct regcache_map_entry): New structure.
3634         (REGCACHE_MAP_SKIP): New enum value.
3635         (regcache_supply_regset, regcache_collect_regset): New prototypes.
3636
3637 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3638
3639         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3640         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3641         (ppc_linux_collect_gregset ): Likewise.
3642         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3643         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3644         (ppc_collect_vrregset): Likewise.
3645         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3646         Likewise.
3647
3648 2014-08-07  Yao Qi  <yao@codesourcery.com>
3649
3650         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3651         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3652         * remote.c (remote_read_bytes): Likewise.
3653
3654 2014-08-07  Yao Qi  <yao@codesourcery.com>
3655
3656         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3657
3658 2014-08-07  Yao Qi  <yao@codesourcery.com>
3659
3660         PR remote/17230
3661         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3662         TARGET_XFER_OK instead of 0.
3663
3664 2014-08-07  Gary Benson  <gbenson@redhat.com>
3665
3666         * common/common-defs.h: Include errno.h.
3667         * defs.h: Do not include errno.h.
3668         * ada-typeprint.c: Likewise.
3669         * c-typeprint.c: Likewise.
3670         * core-regset.c: Likewise.
3671         * corefile.c: Likewise.
3672         * corelow.c: Likewise.
3673         * event-loop.c: Likewise.
3674         * f-typeprint.c: Likewise.
3675         * gnu-nat.c: Likewise.
3676         * go32-nat.c: Likewise.
3677         * i386gnu-nat.c: Likewise.
3678         * m2-typeprint.c: Likewise.
3679         * nat/linux-btrace.c: Likewise.
3680         * p-typeprint.c: Likewise.
3681         * procfs.c: Likewise.
3682         * remote-sim.c: Likewise.
3683         * rs6000-nat.c: Likewise.
3684         * target.c: Likewise.
3685         * typeprint.c: Likewise.
3686         * ui-file.c: Likewise.
3687         * valops.c: Likewise.
3688         * valprint.c: Likewise.
3689
3690 2014-08-07  Gary Benson  <gbenson@redhat.com>
3691
3692         * common/common-defs.h: Include string.h.
3693         * aarch64-tdep.c: Do not include string.h.
3694         * ada-exp.y: Likewise.
3695         * ada-lang.c: Likewise.
3696         * ada-lex.l: Likewise.
3697         * ada-typeprint.c: Likewise.
3698         * ada-valprint.c: Likewise.
3699         * aix-thread.c: Likewise.
3700         * alpha-linux-tdep.c: Likewise.
3701         * alpha-mdebug-tdep.c: Likewise.
3702         * alpha-nat.c: Likewise.
3703         * alpha-osf1-tdep.c: Likewise.
3704         * alpha-tdep.c: Likewise.
3705         * alphanbsd-tdep.c: Likewise.
3706         * amd64-dicos-tdep.c: Likewise.
3707         * amd64-linux-tdep.c: Likewise.
3708         * amd64-nat.c: Likewise.
3709         * amd64-sol2-tdep.c: Likewise.
3710         * amd64fbsd-tdep.c: Likewise.
3711         * amd64obsd-tdep.c: Likewise.
3712         * arch-utils.c: Likewise.
3713         * arm-linux-nat.c: Likewise.
3714         * arm-linux-tdep.c: Likewise.
3715         * arm-tdep.c: Likewise.
3716         * arm-wince-tdep.c: Likewise.
3717         * armbsd-tdep.c: Likewise.
3718         * armnbsd-nat.c: Likewise.
3719         * armnbsd-tdep.c: Likewise.
3720         * armobsd-tdep.c: Likewise.
3721         * avr-tdep.c: Likewise.
3722         * ax-gdb.c: Likewise.
3723         * ax-general.c: Likewise.
3724         * bcache.c: Likewise.
3725         * bfin-tdep.c: Likewise.
3726         * breakpoint.c: Likewise.
3727         * build-id.c: Likewise.
3728         * buildsym.c: Likewise.
3729         * c-exp.y: Likewise.
3730         * c-lang.c: Likewise.
3731         * c-typeprint.c: Likewise.
3732         * c-valprint.c: Likewise.
3733         * charset.c: Likewise.
3734         * cli-out.c: Likewise.
3735         * cli/cli-cmds.c: Likewise.
3736         * cli/cli-decode.c: Likewise.
3737         * cli/cli-dump.c: Likewise.
3738         * cli/cli-interp.c: Likewise.
3739         * cli/cli-logging.c: Likewise.
3740         * cli/cli-script.c: Likewise.
3741         * cli/cli-setshow.c: Likewise.
3742         * cli/cli-utils.c: Likewise.
3743         * coffread.c: Likewise.
3744         * common/agent.c: Likewise.
3745         * common/buffer.c: Likewise.
3746         * common/buffer.h: Likewise.
3747         * common/common-utils.c: Likewise.
3748         * common/filestuff.c: Likewise.
3749         * common/filestuff.c: Likewise.
3750         * common/format.c: Likewise.
3751         * common/print-utils.c: Likewise.
3752         * common/rsp-low.c: Likewise.
3753         * common/signals.c: Likewise.
3754         * common/vec.h: Likewise.
3755         * common/xml-utils.c: Likewise.
3756         * core-regset.c: Likewise.
3757         * corefile.c: Likewise.
3758         * corelow.c: Likewise.
3759         * cp-abi.c: Likewise.
3760         * cp-name-parser.y: Likewise.
3761         * cp-support.c: Likewise.
3762         * cp-valprint.c: Likewise.
3763         * cris-tdep.c: Likewise.
3764         * d-exp.y: Likewise.
3765         * darwin-nat.c: Likewise.
3766         * dbxread.c: Likewise.
3767         * dcache.c: Likewise.
3768         * demangle.c: Likewise.
3769         * dicos-tdep.c: Likewise.
3770         * disasm.c: Likewise.
3771         * doublest.c: Likewise.
3772         * dsrec.c: Likewise.
3773         * dummy-frame.c: Likewise.
3774         * dwarf2-frame.c: Likewise.
3775         * dwarf2loc.c: Likewise.
3776         * dwarf2read.c: Likewise.
3777         * elfread.c: Likewise.
3778         * environ.c: Likewise.
3779         * eval.c: Likewise.
3780         * event-loop.c: Likewise.
3781         * exceptions.c: Likewise.
3782         * exec.c: Likewise.
3783         * expprint.c: Likewise.
3784         * f-exp.y: Likewise.
3785         * f-lang.c: Likewise.
3786         * f-typeprint.c: Likewise.
3787         * f-valprint.c: Likewise.
3788         * fbsd-nat.c: Likewise.
3789         * findcmd.c: Likewise.
3790         * findvar.c: Likewise.
3791         * fork-child.c: Likewise.
3792         * frame.c: Likewise.
3793         * frv-linux-tdep.c: Likewise.
3794         * frv-tdep.c: Likewise.
3795         * gdb.c: Likewise.
3796         * gdb_bfd.c: Likewise.
3797         * gdbarch.c: Likewise.
3798         * gdbarch.sh: Likewise.
3799         * gdbtypes.c: Likewise.
3800         * gnu-nat.c: Likewise.
3801         * gnu-v2-abi.c: Likewise.
3802         * gnu-v3-abi.c: Likewise.
3803         * go-exp.y: Likewise.
3804         * go-lang.c: Likewise.
3805         * go32-nat.c: Likewise.
3806         * guile/guile.c: Likewise.
3807         * guile/scm-auto-load.c: Likewise.
3808         * hppa-hpux-tdep.c: Likewise.
3809         * hppa-linux-nat.c: Likewise.
3810         * hppanbsd-tdep.c: Likewise.
3811         * hppaobsd-tdep.c: Likewise.
3812         * i386-cygwin-tdep.c: Likewise.
3813         * i386-dicos-tdep.c: Likewise.
3814         * i386-linux-tdep.c: Likewise.
3815         * i386-nto-tdep.c: Likewise.
3816         * i386-sol2-tdep.c: Likewise.
3817         * i386-tdep.c: Likewise.
3818         * i386bsd-tdep.c: Likewise.
3819         * i386gnu-nat.c: Likewise.
3820         * i386nbsd-tdep.c: Likewise.
3821         * i386obsd-tdep.c: Likewise.
3822         * i387-tdep.c: Likewise.
3823         * ia64-libunwind-tdep.c: Likewise.
3824         * ia64-linux-nat.c: Likewise.
3825         * inf-child.c: Likewise.
3826         * inf-ptrace.c: Likewise.
3827         * inf-ttrace.c: Likewise.
3828         * infcall.c: Likewise.
3829         * infcmd.c: Likewise.
3830         * inflow.c: Likewise.
3831         * infrun.c: Likewise.
3832         * interps.c: Likewise.
3833         * iq2000-tdep.c: Likewise.
3834         * irix5-nat.c: Likewise.
3835         * jv-exp.y: Likewise.
3836         * jv-lang.c: Likewise.
3837         * jv-typeprint.c: Likewise.
3838         * jv-valprint.c: Likewise.
3839         * language.c: Likewise.
3840         * linux-fork.c: Likewise.
3841         * linux-nat.c: Likewise.
3842         * lm32-tdep.c: Likewise.
3843         * m2-exp.y: Likewise.
3844         * m2-typeprint.c: Likewise.
3845         * m32c-tdep.c: Likewise.
3846         * m32r-linux-nat.c: Likewise.
3847         * m32r-linux-tdep.c: Likewise.
3848         * m32r-rom.c: Likewise.
3849         * m32r-tdep.c: Likewise.
3850         * m68hc11-tdep.c: Likewise.
3851         * m68k-tdep.c: Likewise.
3852         * m68kbsd-tdep.c: Likewise.
3853         * m68klinux-nat.c: Likewise.
3854         * m68klinux-tdep.c: Likewise.
3855         * m88k-tdep.c: Likewise.
3856         * machoread.c: Likewise.
3857         * macrocmd.c: Likewise.
3858         * main.c: Likewise.
3859         * mdebugread.c: Likewise.
3860         * mem-break.c: Likewise.
3861         * memattr.c: Likewise.
3862         * memory-map.c: Likewise.
3863         * mep-tdep.c: Likewise.
3864         * mi/mi-cmd-break.c: Likewise.
3865         * mi/mi-cmd-disas.c: Likewise.
3866         * mi/mi-cmd-env.c: Likewise.
3867         * mi/mi-cmd-stack.c: Likewise.
3868         * mi/mi-cmd-var.c: Likewise.
3869         * mi/mi-cmds.c: Likewise.
3870         * mi/mi-console.c: Likewise.
3871         * mi/mi-getopt.c: Likewise.
3872         * mi/mi-interp.c: Likewise.
3873         * mi/mi-main.c: Likewise.
3874         * mi/mi-parse.c: Likewise.
3875         * microblaze-rom.c: Likewise.
3876         * microblaze-tdep.c: Likewise.
3877         * mingw-hdep.c: Likewise.
3878         * minidebug.c: Likewise.
3879         * minsyms.c: Likewise.
3880         * mips-irix-tdep.c: Likewise.
3881         * mips-linux-tdep.c: Likewise.
3882         * mips-tdep.c: Likewise.
3883         * mips64obsd-tdep.c: Likewise.
3884         * mipsnbsd-tdep.c: Likewise.
3885         * mipsread.c: Likewise.
3886         * mn10300-linux-tdep.c: Likewise.
3887         * mn10300-tdep.c: Likewise.
3888         * monitor.c: Likewise.
3889         * moxie-tdep.c: Likewise.
3890         * mt-tdep.c: Likewise.
3891         * nat/linux-btrace.c: Likewise.
3892         * nat/linux-osdata.c: Likewise.
3893         * nat/linux-procfs.c: Likewise.
3894         * nat/linux-ptrace.c: Likewise.
3895         * nat/linux-waitpid.c: Likewise.
3896         * nbsd-tdep.c: Likewise.
3897         * nios2-linux-tdep.c: Likewise.
3898         * nto-procfs.c: Likewise.
3899         * nto-tdep.c: Likewise.
3900         * objc-lang.c: Likewise.
3901         * objfiles.c: Likewise.
3902         * opencl-lang.c: Likewise.
3903         * osabi.c: Likewise.
3904         * osdata.c: Likewise.
3905         * p-exp.y: Likewise.
3906         * p-lang.c: Likewise.
3907         * p-typeprint.c: Likewise.
3908         * parse.c: Likewise.
3909         * posix-hdep.c: Likewise.
3910         * ppc-linux-nat.c: Likewise.
3911         * ppc-sysv-tdep.c: Likewise.
3912         * ppcfbsd-tdep.c: Likewise.
3913         * ppcnbsd-tdep.c: Likewise.
3914         * ppcobsd-tdep.c: Likewise.
3915         * printcmd.c: Likewise.
3916         * procfs.c: Likewise.
3917         * prologue-value.c: Likewise.
3918         * python/py-auto-load.c: Likewise.
3919         * python/py-gdb-readline.c: Likewise.
3920         * ravenscar-thread.c: Likewise.
3921         * regcache.c: Likewise.
3922         * registry.c: Likewise.
3923         * remote-fileio.c: Likewise.
3924         * remote-m32r-sdi.c: Likewise.
3925         * remote-mips.c: Likewise.
3926         * remote-notif.c: Likewise.
3927         * remote-sim.c: Likewise.
3928         * remote.c: Likewise.
3929         * reverse.c: Likewise.
3930         * rs6000-aix-tdep.c: Likewise.
3931         * ser-base.c: Likewise.
3932         * ser-go32.c: Likewise.
3933         * ser-mingw.c: Likewise.
3934         * ser-pipe.c: Likewise.
3935         * ser-tcp.c: Likewise.
3936         * ser-unix.c: Likewise.
3937         * serial.c: Likewise.
3938         * sh-tdep.c: Likewise.
3939         * sh64-tdep.c: Likewise.
3940         * shnbsd-tdep.c: Likewise.
3941         * skip.c: Likewise.
3942         * sol-thread.c: Likewise.
3943         * solib-dsbt.c: Likewise.
3944         * solib-frv.c: Likewise.
3945         * solib-osf.c: Likewise.
3946         * solib-som.c: Likewise.
3947         * solib-spu.c: Likewise.
3948         * solib-target.c: Likewise.
3949         * solib.c: Likewise.
3950         * somread.c: Likewise.
3951         * source.c: Likewise.
3952         * sparc-nat.c: Likewise.
3953         * sparc-sol2-tdep.c: Likewise.
3954         * sparc-tdep.c: Likewise.
3955         * sparc64-tdep.c: Likewise.
3956         * sparc64fbsd-tdep.c: Likewise.
3957         * sparc64nbsd-tdep.c: Likewise.
3958         * sparcnbsd-tdep.c: Likewise.
3959         * spu-linux-nat.c: Likewise.
3960         * spu-multiarch.c: Likewise.
3961         * spu-tdep.c: Likewise.
3962         * stabsread.c: Likewise.
3963         * stack.c: Likewise.
3964         * std-regs.c: Likewise.
3965         * symfile.c: Likewise.
3966         * symmisc.c: Likewise.
3967         * symtab.c: Likewise.
3968         * target.c: Likewise.
3969         * thread.c: Likewise.
3970         * tilegx-linux-nat.c: Likewise.
3971         * tilegx-tdep.c: Likewise.
3972         * top.c: Likewise.
3973         * tracepoint.c: Likewise.
3974         * tui/tui-command.c: Likewise.
3975         * tui/tui-data.c: Likewise.
3976         * tui/tui-disasm.c: Likewise.
3977         * tui/tui-file.c: Likewise.
3978         * tui/tui-layout.c: Likewise.
3979         * tui/tui-out.c: Likewise.
3980         * tui/tui-regs.c: Likewise.
3981         * tui/tui-source.c: Likewise.
3982         * tui/tui-stack.c: Likewise.
3983         * tui/tui-win.c: Likewise.
3984         * tui/tui-windata.c: Likewise.
3985         * tui/tui-winsource.c: Likewise.
3986         * typeprint.c: Likewise.
3987         * ui-file.c: Likewise.
3988         * ui-out.c: Likewise.
3989         * user-regs.c: Likewise.
3990         * utils.c: Likewise.
3991         * v850-tdep.c: Likewise.
3992         * valarith.c: Likewise.
3993         * valops.c: Likewise.
3994         * valprint.c: Likewise.
3995         * value.c: Likewise.
3996         * varobj.c: Likewise.
3997         * vax-tdep.c: Likewise.
3998         * vaxnbsd-tdep.c: Likewise.
3999         * vaxobsd-tdep.c: Likewise.
4000         * windows-nat.c: Likewise.
4001         * xcoffread.c: Likewise.
4002         * xml-support.c: Likewise.
4003         * xstormy16-tdep.c: Likewise.
4004         * xtensa-linux-nat.c: Likewise.
4005
4006 2014-08-07  Gary Benson  <gbenson@redhat.com>
4007
4008         * common/common-defs.h: Include gdb_assert.h.
4009         * aarch64-tdep.c: Do not include gdb_assert.h.
4010         * addrmap.c: Likewise.
4011         * aix-thread.c: Likewise.
4012         * alpha-linux-tdep.c: Likewise.
4013         * alpha-mdebug-tdep.c: Likewise.
4014         * alphanbsd-tdep.c: Likewise.
4015         * amd64-nat.c: Likewise.
4016         * amd64-tdep.c: Likewise.
4017         * amd64bsd-nat.c: Likewise.
4018         * amd64fbsd-nat.c: Likewise.
4019         * amd64fbsd-tdep.c: Likewise.
4020         * amd64nbsd-nat.c: Likewise.
4021         * amd64nbsd-tdep.c: Likewise.
4022         * amd64obsd-nat.c: Likewise.
4023         * amd64obsd-tdep.c: Likewise.
4024         * arch-utils.c: Likewise.
4025         * arm-tdep.c: Likewise.
4026         * armbsd-tdep.c: Likewise.
4027         * auxv.c: Likewise.
4028         * bcache.c: Likewise.
4029         * bfin-tdep.c: Likewise.
4030         * blockframe.c: Likewise.
4031         * breakpoint.c: Likewise.
4032         * bsd-kvm.c: Likewise.
4033         * bsd-uthread.c: Likewise.
4034         * buildsym.c: Likewise.
4035         * c-exp.y: Likewise.
4036         * c-lang.c: Likewise.
4037         * charset.c: Likewise.
4038         * cleanups.c: Likewise.
4039         * cli-out.c: Likewise.
4040         * cli/cli-decode.c: Likewise.
4041         * cli/cli-dump.c: Likewise.
4042         * cli/cli-logging.c: Likewise.
4043         * cli/cli-script.c: Likewise.
4044         * cli/cli-utils.c: Likewise.
4045         * coffread.c: Likewise.
4046         * common/common-utils.c: Likewise.
4047         * common/queue.h: Likewise.
4048         * common/signals.c: Likewise.
4049         * common/vec.h: Likewise.
4050         * complaints.c: Likewise.
4051         * completer.c: Likewise.
4052         * corelow.c: Likewise.
4053         * cp-abi.c: Likewise.
4054         * cp-name-parser.y: Likewise.
4055         * cp-namespace.c: Likewise.
4056         * cp-support.c: Likewise.
4057         * cris-tdep.c: Likewise.
4058         * dbxread.c: Likewise.
4059         * dictionary.c: Likewise.
4060         * doublest.c: Likewise.
4061         * dsrec.c: Likewise.
4062         * dummy-frame.c: Likewise.
4063         * dwarf2-frame-tailcall.c: Likewise.
4064         * dwarf2-frame.c: Likewise.
4065         * dwarf2expr.c: Likewise.
4066         * dwarf2loc.c: Likewise.
4067         * dwarf2read.c: Likewise.
4068         * eval.c: Likewise.
4069         * event-loop.c: Likewise.
4070         * exceptions.c: Likewise.
4071         * expprint.c: Likewise.
4072         * f-valprint.c: Likewise.
4073         * fbsd-nat.c: Likewise.
4074         * findvar.c: Likewise.
4075         * frame-unwind.c: Likewise.
4076         * frame.c: Likewise.
4077         * frv-tdep.c: Likewise.
4078         * gcore.c: Likewise.
4079         * gdb-dlfcn.c: Likewise.
4080         * gdb_bfd.c: Likewise.
4081         * gdbarch.c: Likewise.
4082         * gdbarch.sh: Likewise.
4083         * gdbtypes.c: Likewise.
4084         * gnu-nat.c: Likewise.
4085         * gnu-v3-abi.c: Likewise.
4086         * go-lang.c: Likewise.
4087         * guile/scm-exception.c: Likewise.
4088         * guile/scm-gsmob.c: Likewise.
4089         * guile/scm-lazy-string.c: Likewise.
4090         * guile/scm-math.c: Likewise.
4091         * guile/scm-pretty-print.c: Likewise.
4092         * guile/scm-safe-call.c: Likewise.
4093         * guile/scm-utils.c: Likewise.
4094         * guile/scm-value.c: Likewise.
4095         * h8300-tdep.c: Likewise.
4096         * hppa-hpux-nat.c: Likewise.
4097         * hppa-tdep.c: Likewise.
4098         * hppanbsd-tdep.c: Likewise.
4099         * hppaobsd-tdep.c: Likewise.
4100         * i386-darwin-nat.c: Likewise.
4101         * i386-darwin-tdep.c: Likewise.
4102         * i386-nto-tdep.c: Likewise.
4103         * i386-tdep.c: Likewise.
4104         * i386bsd-nat.c: Likewise.
4105         * i386fbsd-tdep.c: Likewise.
4106         * i386gnu-nat.c: Likewise.
4107         * i386nbsd-tdep.c: Likewise.
4108         * i386obsd-tdep.c: Likewise.
4109         * i387-tdep.c: Likewise.
4110         * ia64-libunwind-tdep.c: Likewise.
4111         * ia64-tdep.c: Likewise.
4112         * inf-ptrace.c: Likewise.
4113         * inf-ttrace.c: Likewise.
4114         * infcall.c: Likewise.
4115         * infcmd.c: Likewise.
4116         * infrun.c: Likewise.
4117         * inline-frame.c: Likewise.
4118         * interps.c: Likewise.
4119         * jv-lang.c: Likewise.
4120         * jv-typeprint.c: Likewise.
4121         * linux-fork.c: Likewise.
4122         * linux-nat.c: Likewise.
4123         * linux-thread-db.c: Likewise.
4124         * m32c-tdep.c: Likewise.
4125         * m32r-linux-nat.c: Likewise.
4126         * m32r-tdep.c: Likewise.
4127         * m68k-tdep.c: Likewise.
4128         * m68kbsd-nat.c: Likewise.
4129         * m68kbsd-tdep.c: Likewise.
4130         * m88k-tdep.c: Likewise.
4131         * machoread.c: Likewise.
4132         * macroexp.c: Likewise.
4133         * macrotab.c: Likewise.
4134         * maint.c: Likewise.
4135         * mdebugread.c: Likewise.
4136         * memory-map.c: Likewise.
4137         * mep-tdep.c: Likewise.
4138         * mi/mi-common.c: Likewise.
4139         * microblaze-tdep.c: Likewise.
4140         * mingw-hdep.c: Likewise.
4141         * mips-linux-nat.c: Likewise.
4142         * mips-linux-tdep.c: Likewise.
4143         * mips-tdep.c: Likewise.
4144         * mips64obsd-tdep.c: Likewise.
4145         * mipsnbsd-tdep.c: Likewise.
4146         * mn10300-linux-tdep.c: Likewise.
4147         * mn10300-tdep.c: Likewise.
4148         * moxie-tdep.c: Likewise.
4149         * mt-tdep.c: Likewise.
4150         * nat/linux-btrace.c: Likewise.
4151         * nat/linux-osdata.c: Likewise.
4152         * nat/linux-ptrace.c: Likewise.
4153         * nat/mips-linux-watch.c: Likewise.
4154         * nios2-linux-tdep.c: Likewise.
4155         * nios2-tdep.c: Likewise.
4156         * objc-lang.c: Likewise.
4157         * objfiles.c: Likewise.
4158         * obsd-nat.c: Likewise.
4159         * opencl-lang.c: Likewise.
4160         * osabi.c: Likewise.
4161         * parse.c: Likewise.
4162         * ppc-linux-nat.c: Likewise.
4163         * ppc-sysv-tdep.c: Likewise.
4164         * ppcfbsd-nat.c: Likewise.
4165         * ppcfbsd-tdep.c: Likewise.
4166         * ppcnbsd-nat.c: Likewise.
4167         * ppcnbsd-tdep.c: Likewise.
4168         * ppcobsd-nat.c: Likewise.
4169         * ppcobsd-tdep.c: Likewise.
4170         * printcmd.c: Likewise.
4171         * procfs.c: Likewise.
4172         * prologue-value.c: Likewise.
4173         * psymtab.c: Likewise.
4174         * python/py-lazy-string.c: Likewise.
4175         * python/py-value.c: Likewise.
4176         * regcache.c: Likewise.
4177         * reggroups.c: Likewise.
4178         * registry.c: Likewise.
4179         * remote-sim.c: Likewise.
4180         * remote.c: Likewise.
4181         * rs6000-aix-tdep.c: Likewise.
4182         * rs6000-tdep.c: Likewise.
4183         * s390-linux-tdep.c: Likewise.
4184         * score-tdep.c: Likewise.
4185         * ser-base.c: Likewise.
4186         * ser-mingw.c: Likewise.
4187         * sh-tdep.c: Likewise.
4188         * sh64-tdep.c: Likewise.
4189         * solib-darwin.c: Likewise.
4190         * solib-spu.c: Likewise.
4191         * solib-svr4.c: Likewise.
4192         * source.c: Likewise.
4193         * sparc-nat.c: Likewise.
4194         * sparc-sol2-tdep.c: Likewise.
4195         * sparc-tdep.c: Likewise.
4196         * sparc64-sol2-tdep.c: Likewise.
4197         * sparc64-tdep.c: Likewise.
4198         * sparc64fbsd-tdep.c: Likewise.
4199         * sparc64nbsd-tdep.c: Likewise.
4200         * sparc64obsd-tdep.c: Likewise.
4201         * sparcnbsd-tdep.c: Likewise.
4202         * sparcobsd-tdep.c: Likewise.
4203         * spu-multiarch.c: Likewise.
4204         * spu-tdep.c: Likewise.
4205         * stabsread.c: Likewise.
4206         * stack.c: Likewise.
4207         * symfile.c: Likewise.
4208         * symtab.c: Likewise.
4209         * target-descriptions.c: Likewise.
4210         * target-memory.c: Likewise.
4211         * target.c: Likewise.
4212         * tic6x-linux-tdep.c: Likewise.
4213         * tic6x-tdep.c: Likewise.
4214         * tilegx-linux-nat.c: Likewise.
4215         * tilegx-tdep.c: Likewise.
4216         * top.c: Likewise.
4217         * tramp-frame.c: Likewise.
4218         * tui/tui-out.c: Likewise.
4219         * tui/tui-winsource.c: Likewise.
4220         * ui-out.c: Likewise.
4221         * user-regs.c: Likewise.
4222         * utils.c: Likewise.
4223         * v850-tdep.c: Likewise.
4224         * valops.c: Likewise.
4225         * value.c: Likewise.
4226         * varobj.c: Likewise.
4227         * vax-nat.c: Likewise.
4228         * xml-syscall.c: Likewise.
4229         * xml-tdesc.c: Likewise.
4230         * xstormy16-tdep.c: Likewise.
4231         * xtensa-linux-nat.c: Likewise.
4232         * xtensa-tdep.c: Likewise.
4233
4234 2014-08-07  Gary Benson  <gbenson@redhat.com>
4235
4236         * common/common-defs.h: Include common-utils.h.
4237         * defs.h: Do not include common-utils.h.
4238         * common/gdb_assert.h: Likewise.
4239         * darwin-nat.h: Likewise.
4240         * nat/linux-btrace.c: Likewise.
4241         * target/waitstatus.h: Likewise.
4242
4243 2014-08-07  Gary Benson  <gbenson@redhat.com>
4244
4245         * common/common-defs.h: Include ptid.h.
4246         * defs.h: Do not include ptid.h.
4247         * inferior.h: Likewise.
4248         * infrun.h: Likewise.
4249         * nat/linux-btrace.h: Likewise.
4250         * nat/linux-osdata.h: Likewise.
4251         * target/waitstatus.h: Likewise.
4252
4253 2014-08-07  Gary Benson  <gbenson@redhat.com>
4254
4255         * common/common-defs.h: Include gdb_locale.h.
4256         * defs.h: Do not include gdb_locale.h.
4257
4258 2014-08-07  Gary Benson  <gbenson@redhat.com>
4259
4260         * common/common-defs.h: Include gdb/signals.h.
4261         * defs.h: Do not include gdb/signals.h.
4262
4263 2014-08-07  Gary Benson  <gbenson@redhat.com>
4264
4265         * common/common-defs.h: Include pathmax.h.
4266         * defs.h: Do not include pathmax.h.
4267
4268 2014-08-07  Gary Benson  <gbenson@redhat.com>
4269
4270         * common/common-defs.h: Include libiberty.h.
4271         * defs.h: Do not include libiberty.h.
4272         * common/queue.h: Likewise.
4273         * cp-name-parser.y: Likewise.
4274         * mi/mi-cmd-catch.c: Likewise.
4275         * python/python.c: Likewise.
4276
4277 2014-08-07  Gary Benson  <gbenson@redhat.com>
4278
4279         * common/common-defs.h: Include ansidecl.h.
4280         * defs.h: Do not include ansidecl.h.
4281         * common/buffer.h: Likewise.
4282         * common/common-utils.h: Likewise.
4283
4284 2014-08-07  Gary Benson  <gbenson@redhat.com>
4285
4286         * common/common-defs.h: Include stddef.h.
4287         * defs.h: Do not include stddef.h.
4288         * common/common-utils.h: Likewise.
4289         * amd64fbsd-nat.c: Likewise.
4290         * bcache.c: Likewise.
4291         * charset.c: Likewise.
4292         * common/buffer.h: Likewise.
4293         * common/vec.h: Likewise.
4294         * i386bsd-nat.c: Likewise.
4295         * nat/linux-btrace.h: Likewise.
4296         * ppcfbsd-nat.c: Likewise.
4297         * ppcnbsd-tdep.h: Likewise.
4298         * ppcobsd-nat.c: Likewise.
4299         * ppcobsd-tdep.h: Likewise.
4300         * python/py-gdb-readline.c: Likewise.
4301
4302 2014-08-07  Gary Benson  <gbenson@redhat.com>
4303
4304         * common/common-defs.h: Include stdarg.h.
4305         * defs.h: Do not include stdarg.h.
4306         * ada-lang.c: Likewise.
4307         * common/common-utils.h: Likewise.
4308         * guile/scm-string.c: Likewise.
4309         * guile/scm-utils.c: Likewise.
4310         * m32c-tdep.c: Likewise.
4311
4312 2014-08-07  Gary Benson  <gbenson@redhat.com>
4313
4314         * common/common-defs.h: Include stdlib.h.
4315         * defs.h: Do not include stdlib.h.
4316         * addrmap.c: Likewise.
4317         * bcache.c: Likewise.
4318         * common/buffer.c: Likewise.
4319         * common/common-utils.c: Likewise.
4320         * cp-name-parser.y: Likewise.
4321         * go32-nat.c: Likewise.
4322         * mn10300-linux-tdep.c: Likewise.
4323         * nat/linux-osdata.c: Likewise.
4324         * tui/tui.c: Likewise.
4325         * windows-nat.c: Likewise.
4326
4327 2014-08-07  Gary Benson  <gbenson@redhat.com>
4328
4329         * common/common-defs.h: Include stdio.h.
4330         * defs.h: Do not include stdio.h.
4331         * ada-lang.c: Likewise.
4332         * common/buffer.c: Likewise.
4333         * common/common-utils.c: Likewise.
4334         * cp-name-parser.y: Likewise.
4335         * gnu-nat.c: Likewise.
4336         * go32-nat.c: Likewise.
4337         * i386gnu-nat.c: Likewise.
4338         * proc-api.c: Likewise.
4339         * proc-events.c: Likewise.
4340         * proc-flags.c: Likewise.
4341         * proc-why.c: Likewise.
4342         * python/python-internal.h: Likewise.
4343         * target-memory.c: Likewise.
4344         * tui/tui-io.c: Likewise.
4345         * tui/tui.c: Likewise.
4346
4347 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
4348
4349         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4350         (scan_dyntag_auxv): Same.
4351
4352 2014-08-06  Yao Qi  <yao@codesourcery.com>
4353
4354         * amd64-linux-nat.c: Remove duplicated include
4355         "x86-linux-nat.h".
4356         * i386-linux-nat.c: Likewise.
4357
4358 2014-08-06  Yao Qi  <yao@codesourcery.com>
4359
4360         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4361         operand" with "Special opcode" in comments.
4362
4363 2014-08-05  Gary Benson  <gbenson@redhat.com>
4364
4365         * interps.c (initialize_interps): Remove prototype.
4366         (interpreter_initialized): Remove static global.
4367         (interp_add): Do not call initialize_interps.
4368         (initialize_interps): Remove function.
4369
4370 2014-08-05  Gary Benson  <gbenson@redhat.com>
4371
4372         * utils.c (vwarning): Remove spurious va_end.
4373
4374 2014-08-05  Alan Modra  <amodra@gmail.com>
4375
4376         * charset.c (convert_between_encodings): Cast result of obstack_base.
4377         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4378         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4379         (read_unwind_info): Use size_t for some locals.
4380         * jit.c (finalize_symtab): Likewise.
4381         * utils.c (hashtab_obstack_allocate): Likewise.
4382         * symmisc.c (print_objfile_statistics): Update format strings.
4383
4384 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4385
4386         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4387         (Changes in GDB 7.8): ... here.
4388
4389 2014-08-04  Tom Tromey  <tromey@redhat.com>
4390
4391         * target.c (set_targetdebug): New function.
4392         (initialize_targets): Pass set_targetdebug when creating "set
4393         debug target".
4394
4395 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
4396
4397         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4398         if detecting a variable-sized field that is not the last field.
4399         Fix struct type length computation.
4400
4401 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
4402
4403         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4404         Add debug trace.
4405
4406 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
4407
4408         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4409         Remove "+ 8" offset in computation of CHAIN_VMA.
4410
4411 2014-07-31  Doug Evans  <dje@google.com>
4412
4413         * inflow.c (child_terminal_inferior): Add comment.
4414         (child_terminal_ours_for_output): Add comment.
4415         (child_terminal_ours): Add comment.
4416         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4417         (linux_nat_terminal_ours): Add comment.
4418
4419 2014-07-31  Gary Benson  <gbenson@redhat.com>
4420
4421         * common/btrace-common.h: Do not include defs.h or server.h.
4422         * nat/mips-linux-watch.h: Likewise.
4423         * gdb-dlfcn.h: Do not include defs.h.
4424         * tracefile.h: Likewise.
4425
4426 2014-07-30  Roland McGrath  <mcgrathr@google.com>
4427
4428         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4429
4430 2014-07-30  Tom Tromey  <tromey@redhat.com>
4431
4432         * bsd-kvm.c (bsd_kvm_open): Constify.
4433         * corelow.c (core_open): Constify.
4434         * ctf.c (ctf_open): Constify.
4435         * dbug-rom.c (dbug_open): Constify.
4436         * exec.c (exec_open): Constify.
4437         * m32r-rom.c (m32r_open, mon2000_open): Constify.
4438         * microblaze-rom.c (picobug_open): Constify.
4439         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4440         Constify.
4441         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4442         * record-btrace.c (record_btrace_open): Constify.
4443         * record-full.c (record_full_core_open_1, record_full_open_1)
4444         (record_full_open): Constify.
4445         * remote-m32r-sdi.c (m32r_open): Constify.
4446         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4447         (rockhopper_open, lsi_open): Constify.
4448         * remote-sim.c (gdbsim_open): Constify.
4449         * remote.c (remote_open, extended_remote_open, remote_open_1):
4450         Constify.
4451         * target.h (struct target_ops) <to_open>: Make "arg" const.
4452         * tracefile-tfile.c (tfile_open): Constify.
4453
4454 2014-07-30  Tom Tromey  <tromey@redhat.com>
4455
4456         * breakpoint.c (map_breakpoint_numbers): Update.
4457         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
4458         (get_number_const): New function.
4459         (get_number): Rewrite using get_number_const.
4460         (init_number_or_range): Make "string" const.
4461         (number_is_in_list): Make "list" const.
4462         * cli/cli-utils.h (get_number_const): Declare.
4463         (struct get_number_or_range_state) <string, end_ptr>: Now const.
4464         (init_number_or_range, number_is_in_list): Update.
4465         * printcmd.c (map_display_numbers): Update.
4466         * value.c (value_from_history_ref): Constify.
4467         * value.h (value_from_history_ref): Update.
4468
4469 2014-07-30  Tom Tromey  <tromey@redhat.com>
4470
4471         * corefile.c (hook_type, call_extra_exec_file_hooks)
4472         (specify_exec_file_hook): Constify.
4473         * exec.c (exec_file_attach): Make "filename" const.
4474         * gdbcore.h (deprecated_exec_file_display_hook)
4475         (specify_exec_file_hook, exec_file_attach): Constify.
4476         * main.c (captured_main): Use catch_command_errors_const.
4477
4478 2014-07-30  Tom Tromey  <tromey@redhat.com>
4479
4480         * target.c (open_target): New function.
4481         (add_target_with_completer, add_deprecated_target_alias): Use
4482         set_cmd_sfunc, set_cmd_context.
4483         (debug_to_open): Remove.
4484         (setup_target_debug): Update.
4485
4486 2014-07-30  Yao Qi  <yao@codesourcery.com>
4487
4488         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4489         comments.
4490         * parse.c (exp_iterate): Update comments.
4491
4492 2014-07-30  Gary Benson  <gbenson@redhat.com>
4493
4494         * common/common-defs.h: New file.
4495         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4496         * defs.h: Include common-defs.h.
4497         Do not include config.h or build-gnulib/config.h.
4498
4499 2014-07-30  Gary Benson  <gbenson@redhat.com>
4500
4501         * common/common-utils.h: Do not include config.h.
4502         * nat/linux-btrace.h: Likewise.
4503
4504 2014-07-30  Gary Benson  <gbenson@redhat.com>
4505
4506         * btrace.c: Include defs.h.
4507         * common/ptid.c: Include defs.h or server.h as appropriate.
4508         * nat/mips-linux-watch.c: Likewise.
4509
4510 2014-07-29  Tom Tromey  <tromey@redhat.com>
4511
4512         * target.c (target_is_pushed): Simplify.
4513
4514 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
4515
4516         GDB 7.8 released.
4517
4518 2014-07-29  Yao Qi  <yao@codesourcery.com>
4519
4520         PR gdb/17206
4521         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4522
4523 2014-07-28  Doug Evans  <xdje42@gmail.com>
4524
4525         PR guile/17203
4526         * guile/scm-param.c (pascm_parameter_defined_p): New function.
4527         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
4528         parameters.
4529
4530 2014-07-28  Will Newton  <will.newton@linaro.org>
4531
4532         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4533         (THUMB2_SET_R7_SIGRETURN2): Likewise.
4534         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4535         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4536         (THUMB2_EABI_SYSCALL): Likewise.
4537         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4538         struct tramp_frame.
4539         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4540         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4541
4542 2014-07-27  Doug Evans  <xdje42@gmail.com>
4543
4544         * guile/scm-param.c (pascm_print_param_smob): Fix output.
4545
4546 2014-07-27  Doug Evans  <xdje42@gmail.com>
4547
4548         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4549
4550 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
4551             Doug Evans  <xdje42@gmail.com>
4552
4553         PR guile/17146
4554         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4555         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4556         * configure.ac: Try to use guild to compile an scm file, if it fails
4557         then disable guile support.
4558         * configure: Regenerate.
4559         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4560         GUILE_FILE_LIST.
4561         (GUILE_COMPILED_FILES): New variable.
4562         (GUILE_FILES) Update.
4563         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4564         (stamp-guile): Compile scm files.
4565         * guile/guile.c (boot_guile_support): New function.
4566         (standard_throw_args_p): New function.
4567         (print_standard_throw_error, print_throw_error): New functions.
4568         (handle_boot_error): New function.
4569         (initialize_scheme_side): Rewrite to call boot_guile_support.
4570         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
4571         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4572
4573 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
4574             Doug Evans  <xdje42@gmail.com>
4575
4576         PR guile/17146
4577         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4578         * guile/lib/gdb/support.scm: New file.
4579         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4580         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4581         All uses updated.
4582         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4583         All uses updated.
4584         (%assert-type): Ditto, and renamed to assert-type.
4585         (%exception-print-style): Delete.
4586
4587 2014-07-26  Doug Evans  <xdje42@gmail.com>
4588
4589         PR build/17105
4590         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4591         * configure: Regenerate.
4592         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4593         PYTHON_FILES.
4594         (PYTHON_FILES): New variable.
4595         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4596         (GUILE_FILES): New variable.
4597         (stamp-python, install-python, uninstall-python): Handle empty
4598         file list.
4599         (stamp-guile, install-guile, uninstall-guile): Ditto.
4600
4601 2014-07-26  Doug Evans  <xdje42@gmail.com>
4602
4603         PR guile/17177
4604         * guile/lib/gdb.scm (pretty-printers): Export.
4605         (set-pretty-printers!): Export.
4606         * guile/lib/gdb/printing.scm (gdb module): Update.
4607         (prepend-pretty-printer!, append-pretty-printer!): Update.
4608         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4609         (pretty_printer_list_var): Delete.
4610         (pretty_printer_list): New static global.
4611         (gdbscm_pretty_printers): New function.
4612         (gdbscm_set_pretty_printers_x): New function.
4613         (ppscm_find_pretty_printer_from_gdb): Update.
4614         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4615         (gdbscm_initialize_pretty_printers): Update.
4616
4617 2014-07-26  Doug Evans  <xdje42@gmail.com>
4618
4619         PR 17185
4620         * configure.ac: Add check for header gc/gc.h.
4621         Add check for function setenv.
4622         * configure: Regenerate.
4623         * config.in: Regenerate.
4624         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4625
4626 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
4627
4628         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4629         variation in gdbarch matching.
4630
4631 2014-07-25  Tom Tromey  <tromey@redhat.com>
4632
4633         * exec.c (using_exec_ops): Remove.
4634         (exec_close_1): Update.  Remove extraneous block, reindent.
4635         (add_target_sections): Use target_is_pushed.
4636
4637 2014-07-25  Pedro Alves  <palves@redhat.com>
4638
4639         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4640         * monitor.c (monitor_create_inferior): Likewise.
4641         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4642         * remote-sim.c (gdbsim_create_inferior): Likewise.
4643         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4644         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4645         * windows-nat.c (do_initial_windows_stuff): Likewise.
4646
4647 2014-07-25  Pedro Alves  <palves@redhat.com>
4648
4649         * NEWS: Mention signal passing and "signal" command changes.
4650         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4651         comment.
4652         * breakpoint.c (until_break_command): Adjust clear_proceed_status
4653         call.
4654         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4655         * infcmd.c (proceed_thread_callback, continue_1, step_once)
4656         (jump_command): Adjust clear_proceed_status call.
4657         (signal_command): Warn if other thread that are resumed have
4658         signals that will be delivered.  Adjust clear_proceed_status call.
4659         (until_next_command, finish_command)
4660         (proceed_after_attach_callback, attach_command_post_wait)
4661         (attach_command): Adjust clear_proceed_status call.
4662         * infrun.c (proceed_after_vfork_done): Likewise.
4663         (proceed_after_attach_callback): Adjust comment.
4664         (clear_proceed_status_thread): Clear stop_signal if not in pass
4665         state.
4666         (clear_proceed_status_callback): Delete.
4667         (clear_proceed_status): New 'step' parameter.  Only clear the
4668         proceed status of threads the command being prepared is about to
4669         resume.
4670         (proceed): If passed in an explicit signal, override stop_signal
4671         with it.  Don't pass the last stop signal to the thread we're
4672         resuming.
4673         (init_wait_for_inferior): Adjust clear_proceed_status call.
4674         (switch_back_to_stepped_thread): Clear the signal if it should not
4675         be passed.
4676         * infrun.h (clear_proceed_status): New 'step' parameter.
4677         (user_visible_resume_ptid): Add comment.
4678         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4679         signal is in pass state.
4680         * remote.c (append_pending_thread_resumptions): Likewise.
4681         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4682
4683 2014-07-25  Tom Tromey  <tromey@redhat.com>
4684
4685         * target.h (target_stopped_data_address)
4686         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
4687         parentheses.
4688
4689 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
4690
4691         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4692         comments.
4693         (avr_pointer_to_address): Likewise.
4694
4695 2014-07-24  Tom Tromey  <tromey@redhat.com>
4696
4697         * monitor.c (compile_pattern): Update.
4698         * target.h (struct target_ops) <to_shortname, to_longname,
4699         to_doc>: Now const.
4700
4701 2014-07-24  Tom Tromey  <tromey@redhat.com>
4702
4703         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4704         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4705         (add_info_alias, add_com): Make "doc" const.
4706         (print_doc_line): Make "str" const.
4707         (delete_cmd): Update.
4708         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4709         (print_doc_line): Update.
4710         * cli/cli-script.c (document_command): Update.
4711         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4712         (add_com, add_info, add_info_alias): Update.
4713         * guile/scm-cmd.c (cmdscm_destroyer): Update.
4714         * python/py-cmd.c (cmdpy_destroyer): Update.
4715
4716 2014-07-24  Tom Tromey  <tromey@redhat.com>
4717
4718         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4719         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4720         (help_cmd_list): Constify.
4721         (lookup_cmd): Update.
4722         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4723         const.
4724         (help_cmd_list, apropos_cmd): Update.
4725         * cli/cli-script.c (show_user): Update.
4726         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4727         * cli/cli-setshow.h (cmd_show_list): Update.
4728         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4729         (cmd_show_list): Update.
4730         * guile/scm-cmd.c (cmdscm_destroyer): Update.
4731         * python/py-cmd.c (cmdpy_destroyer): Update.
4732
4733 2014-07-24  Tom Tromey  <tromey@redhat.com>
4734
4735         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4736         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4737         const.
4738         * command.h (deprecate_cmd): Update.
4739         * maint.c (maintenance_do_deprecate): Add casts.
4740
4741 2014-07-24  Tom Tromey  <tromey@redhat.com>
4742
4743         * cli/cli-decode.c (help_cmd): Make parameter "const".
4744         * cli/cli-decode.h (help_cmd): Update.
4745
4746 2014-07-24  Tom Tromey  <tromey@redhat.com>
4747
4748         * stack.c (up_silently_base, down_silently_base): Make argument
4749         const.
4750
4751 2014-07-24  Tom Tromey  <tromey@redhat.com>
4752
4753         * solib.c (solib_add): Make "pattern" const.
4754         * solib.h (solib_add): Update.
4755
4756 2014-07-24  Tom Tromey  <tromey@redhat.com>
4757
4758         * remote.c (remote_serial_open, print_packet, putpkt)
4759         (putpkt_binary): Constify.
4760         * remote.h (putpkt): Update.
4761
4762 2014-07-24  Tom Tromey  <tromey@redhat.com>
4763
4764         * monitor.c (monitor_open): Make "args" const.
4765         * monitor.h (monitor_open): Update.
4766
4767 2014-07-24  Tom Tromey  <tromey@redhat.com>
4768
4769         * maint.c (match_bfd_flags): Make "string" const.
4770         (print_bfd_section_info): Remove casts.
4771         (print_objfile_section_info): Make "string" const.
4772
4773 2014-07-24  Tom Tromey  <tromey@redhat.com>
4774
4775         * inf-child.c (inf_child_open_target): Make "arg" const.
4776         * inf-child.h (inf_child_open_target): Update.
4777
4778 2014-07-24  Tom Tromey  <tromey@redhat.com>
4779
4780         * environ.c (unset_in_environ): Make "var" const.
4781         * environ.h (unset_in_environ): Update.
4782
4783 2014-07-24  Tom Tromey  <tromey@redhat.com>
4784
4785         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4786         Make "cmd" const.
4787         (scan_filename_with_cleanup): Likewise.
4788         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
4789         Make arguments const.
4790         (restore_command): Update.
4791
4792 2014-07-24  Pedro Alves  <palves@redhat.com>
4793
4794         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
4795
4796 2014-07-24  Tom Tromey  <tromey@redhat.com>
4797             Gary Benson  <gbenson@redhat.com>
4798
4799         * nat/linux-ptrace.c (additional_flags): New global.
4800         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
4801         additional_flags; don't check GDBSERVER.
4802         (linux_ptrace_set_additional_flags): New function.
4803         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
4804         Declare.
4805         * linux-nat.c (_initialize_linux_nat): Call
4806         linux_ptrace_set_additional_flags.
4807
4808 2014-07-24  Tom Tromey  <tromey@redhat.com>
4809
4810         * make-target-delegates (munge_type, write_debugmethod): New
4811         functions.
4812         (debug_names): New global.
4813         ($TARGET_DEBUG_PRINTER): New global.
4814         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
4815         name.
4816         Write debug methods.  Generate init_debug_target.
4817         * target-debug.h: New file.
4818         * target-delegates.c: Rebuild.
4819         * target.c: Include target-debug.h.
4820         (debug_target): Hoist definition.
4821         (target_kill, target_get_section_table, target_memory_map)
4822         (target_flash_erase, target_flash_done, target_detach)
4823         (target_disconnect, target_wait, target_resume)
4824         (target_pass_signals, target_program_signals, target_follow_fork)
4825         (target_mourn_inferior, target_search_memory)
4826         (target_thread_address_space, target_close)
4827         (target_find_new_threads, target_core_of_thread)
4828         (target_verify_memory, target_insert_mask_watchpoint)
4829         (target_remove_mask_watchpoint): Remove targetdebug code.
4830         (debug_to_post_attach, debug_to_prepare_to_store)
4831         (debug_to_files_info, debug_to_insert_breakpoint)
4832         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
4833         (debug_to_region_ok_for_hw_watchpoint)
4834         (debug_to_can_accel_watchpoint_condition)
4835         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
4836         (debug_to_watchpoint_addr_within_range)
4837         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
4838         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
4839         (debug_to_terminal_init, debug_to_terminal_inferior)
4840         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
4841         (debug_to_terminal_save_ours, debug_to_terminal_info)
4842         (debug_to_load, debug_to_post_startup_inferior)
4843         (debug_to_insert_fork_catchpoint)
4844         (debug_to_remove_fork_catchpoint)
4845         (debug_to_insert_vfork_catchpoint)
4846         (debug_to_remove_vfork_catchpoint)
4847         (debug_to_insert_exec_catchpoint)
4848         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
4849         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
4850         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
4851         (setup_target_debug): Call init_debug_target.
4852         * target.h (TARGET_DEBUG_PRINTER): New macro.
4853         (struct target_ops) <to_resume, to_wait, to_pass_signals,
4854         to_program_signals>: Use TARGET_DEBUG_PRINTER.
4855
4856 2014-07-24  Gary Benson  <gbenson@redhat.com>
4857
4858         * exceptions.h (throw_vfatal): Renamed to...
4859         (throw_vquit): New declaration.
4860         (throw_quit): Likewise.
4861         * exceptions.c (throw_vfatal): Renamed to...
4862         (throw_vquit): New function.
4863         (throw_quit): Likewise.
4864         (throw_error): Call throw_verror rather than throw_it.
4865         * utils.h (vfatal): Removed.
4866         (fatal): Likewise.
4867         * utils.c (vfatal): Removed.
4868         (fatal): Likewise.
4869         (internal_verror): Replaced call to fatal with call to throw_quit.
4870         (quit): Replaced calls to fatal with calls to throw_quit.
4871
4872 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
4873
4874         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
4875         target_read_code.
4876
4877 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
4878
4879         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
4880         less than zero in conditional expression.
4881
4882 2014-07-23  Tom Tromey  <tromey@redhat.com>
4883
4884         * make-target-delegates ($ARGS_PART): Match trailing close paren.
4885         ($INTRO_PART): Don't match whitespace.
4886         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
4887         argument matching.
4888         ($METHOD): Add $METHOD_TRAILER.
4889         (trim): Rewrite.
4890         (scan_target_h): New sub.
4891         Change main loop not to collect state.
4892         * target-delegates.c: Rebuild.
4893
4894 2014-07-23  Gary Benson  <gbenson@redhat.com>
4895
4896         * cp-support.c (gdb_demangle): Fix build on systems without
4897         sigaltstack.
4898
4899 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
4900
4901         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
4902         for reference entry value target data value.
4903
4904 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
4905
4906         * stack.c (read_frame_arg): Verify value_optimized_out before calling
4907         value_available_contents_eq.
4908
4909 2014-07-22  Pedro Alves  <palves@redhat.com>
4910
4911         * value.c (allocate_optimized_out_value): Don't mark value as
4912         non-lazy.
4913
4914 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
4915
4916         * MAINTAINERS (Write After Approval): Update my email address.
4917
4918 2014-07-20  Doug Evans  <dje@google.com>
4919
4920         PR server/17147
4921         * remote.c (putpkt_binary): Add text to error message.
4922
4923 2014-07-20  Yao Qi  <yao@codesourcery.com>
4924
4925         * eval.c: Remove "Chill" from comments.
4926         * gdbtypes.h: Likewise.
4927         * symtab.h: Likewise.
4928
4929 2014-07-20  Yao Qi  <yao@codesourcery.com>
4930
4931         * std-operator.def: Update comments to TERNOP_SLICE.
4932
4933 2014-07-20  Yao Qi  <yao@codesourcery.com>
4934
4935         * std-operator.def: Remove BINOP_RANGE.
4936         * breakpoint.c (watchpoint_exp_is_const): Update.
4937         * expprint.c (dump_subexp_body_standard): Likewise.
4938         * eval.c (init_array_element): Remove dead code.
4939         (evaluate_subexp_standard): Likewise.
4940
4941 2014-07-20  Yao Qi  <yao@codesourcery.com>
4942
4943         * std-operator.def: Remove BINOP_IN.
4944         * breakpoint.c (watchpoint_exp_is_const): Update.
4945         * eval.c (evaluate_subexp_standard): Likewise.
4946         * expprint.c (dump_subexp_body_standard): Likewise.
4947
4948 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
4949
4950         * microblaze-tdep.c (microblaze_register_names): Add
4951         the rshr and rslr register names.
4952         (microblaze_gdbarch_init): Use of tdesc_has_registers.
4953         Use of tdesc_find_feature. Use of tdesc_data_alloc.
4954         Use of tdesc_numbered_register. Use of
4955         microblaze_register_g_packet_guesses. Use of
4956         tdesc_use_registers. Use of set_gdbarch_register_type.
4957         (microblaze_register_g_packet_guesses): New.
4958         * microblaze-tdep.h (microblaze_reg_num): Add
4959         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
4960         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
4961         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
4962         * features/microblaze-core.xml: New file.
4963         * features/microblaze-stack-protect.xml: New file.
4964         * features/microblaze-with-stack-protect.c: New file.
4965         * features/microblaze-with-stack-protect.xml: New file.
4966         * features/microblaze.xml: New file.
4967         * features/microblaze.c: New file.
4968         * features/Makefile (microblaze-with-stack-protect): Add
4969         microblaze-with-stack-protect microblaze and microblaze-expedite.
4970         * regformats/microblaze-with-stack-protect.dat: New file.
4971         * regformats/microblaze.dat: New file.
4972         * doc/gdb.texinfo (MicroBlaze Features): Added.
4973
4974 2014-07-18  Tom Tromey  <tromey@redhat.com>
4975
4976         * exec.c (exec_ops): Now static.
4977         * exec.h (exec_ops): Don't declare.
4978
4979 2014-07-18  Tom Tromey  <tromey@redhat.com>
4980
4981         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
4982         to find_target_beneath.
4983         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
4984         find_target_beneath.
4985         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
4986
4987 2014-07-18  Tom Tromey  <tromey@redhat.com>
4988
4989         PR gdb/17130:
4990         * utils.c (quit): Use target_supports_terminal_ours.
4991         * target.h (target_supports_terminal_ours): Declare.
4992         * target.c (target_supports_delete_record): Don't check
4993         to_delete_record against NULL.
4994         (target_supports_terminal_ours): New function.
4995
4996 2014-07-18  Tom Tromey  <tromey@redhat.com>
4997
4998         PR gdb/17130:
4999         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5000         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5001         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5002         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5003         * windows-nat.c (windows_xfer_partial): Always delegate.
5004         * record-btrace.c (record_btrace_xfer_partial): Simplify
5005         delegation.
5006         (record_btrace_fetch_registers, record_btrace_store_registers)
5007         (record_btrace_prepare_to_store, record_btrace_resume)
5008         (record_btrace_wait, record_btrace_find_new_threads)
5009         (record_btrace_thread_alive): Likewise.
5010         * procfs.c (procfs_xfer_partial): Always delegate.
5011         * corelow.c (core_xfer_partial): Always delegate.
5012         * sol-thread.c (sol_find_new_threads): Simplify delegation.
5013
5014 2014-07-18  Tom Tromey  <tromey@redhat.com>
5015
5016         * exec.c (exec_make_note_section): Move earlier.
5017
5018 2014-07-17  Doug Evans  <dje@google.com>
5019
5020         PR gdb/17170
5021         * maint.c (count_symtabs_and_blocks): Handle NULL
5022         current_program_space.
5023         (report_command_stats): Check global enabled flag in addition to
5024         recorded enabled flag.
5025         (make_command_stats_cleanup): Handle msg_type == 0, startup.
5026
5027 2014-07-16  Pedro Alves  <palves@redhat.com>
5028
5029         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5030
5031 2014-07-16  Tom Tromey  <tromey@redhat.com>
5032
5033         * target.h (struct target_ops) <to_delete_record>: Reformat
5034         comment.
5035
5036 2014-07-16  Tom Tromey  <tromey@redhat.com>
5037
5038         * target-delegates.c: Rebuild.
5039
5040 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
5041
5042         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5043         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5044         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5045         (avr_pointer_to_address): Likewise.
5046         (avr_address_class_type_flags): New function.
5047         (avr_address_class_type_flags_to_name): Likewise.
5048         (avr_address_class_name_to_type_flags): Likewise.
5049         (avr_gdbarch_init): Set address_class_type_flags,
5050         address_class_type_flags_to_name and
5051         address_class_name_to_type_flags.
5052
5053 2014-07-15  Pedro Alves  <palves@redhat.com>
5054
5055         * linux-nat.c (kill_callback): Save errno and work with saved
5056         copy.
5057
5058 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
5059
5060         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5061
5062 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
5063
5064         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5065         breakpoint support correctly.
5066
5067 2014-07-14  Pedro Alves  <palves@redhat.com>
5068
5069         * utils.c (prompt_for_continue): Call target_terminal_ours.
5070
5071 2014-07-14  Pedro Alves  <palves@redhat.com>
5072
5073         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5074         catch_errors.  Don't re-enable stdin or notify observers where,
5075         and rethrow error.
5076         (fetch_inferior_event_wrapper): Delete.
5077
5078 2014-07-14  Pedro Alves  <palves@redhat.com>
5079
5080         PR gdb/17072
5081         * top.c: Include "inf-loop.h".
5082         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5083         field.
5084         (gdb_readline_wrapper_cleanup): Make the target async again, if it
5085         was async before.
5086         (gdb_readline_wrapper): Store whether the target is async, and
5087         make it sync.
5088
5089 2014-07-14  Pedro Alves  <palves@redhat.com>
5090
5091         PR gdb/17072
5092         * top.c (gdb_readline_wrapper_line): Tweak comment.
5093         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5094         the input handler callback.
5095
5096 2014-07-14  Pedro Alves  <palves@redhat.com>
5097
5098         PR gdb/17072
5099         * main.c: Include event-top.h.
5100         (handle_command_errors): New function.
5101         (catch_command_errors, catch_command_errors_const): Use it.
5102
5103 2014-07-14  Pedro Alves  <palves@redhat.com>
5104
5105         * exceptions.c (catch_command_errors, catch_command_errors_const):
5106         Moved to main.c.
5107         * exceptions.h (catch_command_errors_ftype)
5108         (catch_command_errors_const_ftype): Moved to main.c.
5109         (catch_command_errors, catch_command_errors_const): Delete
5110         declarations.
5111         * main.c (catch_command_errors_ftype)
5112         (catch_command_errors_const_ftype): Moved here from exceptions.h.
5113         (catch_command_errors, catch_command_errors_const)): Moved here
5114         from exceptions.c and make static.
5115
5116 2014-07-14  Pedro Alves  <palves@redhat.com>
5117
5118         * exceptions.c (print_any_exception): Delete.
5119         (catch_exceptions_with_msg): Use exception_print instead of
5120         print_any_exception.
5121         (catch_errors): Use exception_fprintf instead of
5122         print_any_exception.
5123         (catch_command_errors, catch_command_errors_const): Use
5124         exception_print instead of print_any_exception.
5125
5126 2014-07-14  Pedro Alves  <palves@redhat.com>
5127
5128         * infcall.c (run_inferior_call): Set 'sync_execution' while
5129         running the inferior call.
5130
5131 2014-07-14  Pedro Alves  <palves@redhat.com>
5132
5133         * value.c (value_contents_equal): Delete function.
5134         * value.h (value_contents_equal): Delete declaration.
5135
5136 2014-07-14  Tom Tromey  <tromey@redhat.com>
5137
5138         PR exp/17106:
5139         * gdbtypes.c (is_dynamic_type_internal): New function, from
5140         is_dynamic_type.
5141         (is_dynamic_type): Rewrite.
5142         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5143         (resolve_dynamic_struct): Likewise.
5144         (resolve_dynamic_type_internal): New function, from
5145         resolve_dynamic_type.
5146         (resolve_dynamic_type): Rewrite.
5147
5148 2014-07-14  Tom Tromey  <tromey@redhat.com>
5149
5150         * target.c (target_require_runnable): Also check record_stratum.
5151         Update comment.
5152
5153 2014-07-11  Yao Qi  <yao@codesourcery.com>
5154
5155         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5156         thumb_instruction_restores_sp return true.
5157
5158 2014-07-11  Yao Qi  <yao@codesourcery.com>
5159
5160         * arm-tdep.c (thumb_instruction_restores_sp): New function.
5161         (thumb_in_function_epilogue_p): Call
5162         thumb_instruction_restores_sp.
5163
5164 2014-07-11  Yao Qi  <yao@codesourcery.com>
5165
5166         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5167         'add sp, #imm'.
5168         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5169
5170 2014-07-11  Gary Benson  <gbenson@redhat.com>
5171
5172         * amd64-linux-nat.c (gdbcore.h): Remove include.
5173         (regset.h): Likewise.
5174         (nat/linux-btrace.h): Likewise.
5175         (btrace.h): Likewise.
5176         (gdb_assert.h): Likewise.
5177         (string.h): Likewise.
5178         (sys/uio.h): Likewise.
5179         (sys/debugreg.h): Likewise.
5180         (sys/syscall.h): Likewise.
5181         (sys/procfs.h): Likewise.
5182         (sys/user.h): Likewise.
5183         (asm/ptrace.h): Likewise.
5184         (i386-nat.h): Likewise.
5185         * i386-linux-nat.c (i386-nat.h): Likewise.
5186         (regset.h): Likewise.
5187         (target.h): Likewise.
5188         (linux-nat.h): Likewise.
5189         (nat/linux-btrace.h): Likewise.
5190         (btrace.h): Likewise.
5191         (gdb_assert.h): Likewise.
5192         (string.h): Likewise.
5193         (sys/uio.h): Likewise.
5194         (sys/user.h): Likewise.
5195         (sys/procfs.h): Likewise.
5196         (sys/reg.h): Likewise.
5197         (sys/debugreg.h): Likewise.
5198         (ORIG_EAX): Remove definition.
5199
5200 2014-07-11  Gary Benson  <gbenson@redhat.com>
5201
5202         * i386-linux-nat.h: New file.
5203         * x86-linux-nat.h: Likewise.
5204         * x86-linux-nat.c: Likewise.
5205         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5206         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5207         * config/i386/linux64.mh (NATDEPFILES): Likewise.
5208         * amd64-linux-nat.c (x86-linux-nat.h): New include.
5209         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5210         (PTRACE_SETREGSET): Likewise.
5211         (arch_lwp_info): Now in x86-linux-nat.c.
5212         (have_ptrace_getregset): Now in x86-linux-nat.h.
5213         (x86_linux_dr_get): Now in x86-linux-nat.c.
5214         (x86_linux_dr_set): Likewise.
5215         (x86_linux_dr_get_addr): Likewise.
5216         (x86_linux_dr_get_control): Likewise.
5217         (x86_linux_dr_get_status): Likewise.
5218         (update_debug_registers_callback): Likewise.
5219         (x86_linux_dr_set_control): Likewise.
5220         (x86_linux_dr_set_addr): Likewise.
5221         (x86_linux_prepare_to_resume): Likewise.
5222         (x86_linux_new_thread): Likewise.
5223         (x86_linux_new_fork): Likewise.
5224         (x86_linux_get_thread_area): Likewise.
5225         (super_post_startup_inferior): Likewise.
5226         (x86_linux_child_post_startup_inferior): Likewise.
5227         (AMD64_LINUX_USER64_CS): Likewise.
5228         (AMD64_LINUX_X32_DS): Likewise.
5229         (x86_linux_read_description): Likewise.
5230         (x86_linux_enable_btrace): Likewise.
5231         (x86_linux_disable_btrace): Likewise.
5232         (x86_linux_teardown_btrace): Likewise.
5233         (x86_linux_read_btrace): Likewise.
5234         (x86_linux_create_target): Likewise.
5235         (x86_linux_add_target): Likewise.
5236         * i386-linux-nat.c (x86-linux-nat.h): New include.
5237         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5238         (PTRACE_SETREGSET): Likewise.
5239         (arch_lwp_info): Now in x86-linux-nat.c.
5240         (have_ptrace_getregset): Now in x86-linux-nat.h.
5241         (x86_linux_dr_get): Now in x86-linux-nat.c.
5242         (x86_linux_dr_set): Likewise.
5243         (x86_linux_dr_get_addr): Likewise.
5244         (x86_linux_dr_get_control): Likewise.
5245         (x86_linux_dr_get_status): Likewise.
5246         (update_debug_registers_callback): Likewise.
5247         (x86_linux_dr_set_control): Likewise.
5248         (x86_linux_dr_set_addr): Likewise.
5249         (x86_linux_prepare_to_resume): Likewise.
5250         (x86_linux_new_thread): Likewise.
5251         (x86_linux_new_fork): Likewise.
5252         (x86_linux_get_thread_area): Likewise.
5253         (super_post_startup_inferior): Likewise.
5254         (x86_linux_child_post_startup_inferior): Likewise.
5255         (AMD64_LINUX_USER64_CS): Likewise.
5256         (AMD64_LINUX_X32_DS): Likewise.
5257         (x86_linux_read_description): Likewise.
5258         (x86_linux_enable_btrace): Likewise.
5259         (x86_linux_disable_btrace): Likewise.
5260         (x86_linux_teardown_btrace): Likewise.
5261         (x86_linux_read_btrace): Likewise.
5262         (x86_linux_create_target): Likewise.
5263         (x86_linux_add_target): Likewise.
5264
5265 2014-07-11  Gary Benson  <gbenson@redhat.com>
5266
5267         * amd64-linux-nat.c: Comment and whitespace changes.
5268         * i386-linux-nat.c: Comment and whitespace changes.
5269
5270 2014-07-11  Gary Benson  <gbenson@redhat.com>
5271
5272         * amd64-linux-nat.c (x86_linux_create_target): New function.
5273         (x86_linux_add_target): Likewise.
5274         (_initialize_amd64_linux_nat): Delegate to the above new functions.
5275         * i386-linux-nat.c (x86_linux_create_target): New function.
5276         (x86_linux_add_target): Likewise.
5277         (_initialize_i386_linux_nat): Delegate to the above new functions.
5278
5279 2014-07-11  Gary Benson  <gbenson@redhat.com>
5280
5281         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5282         (ps_get_thread_area): Delegate to the above in 32-bit mode.
5283         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5284         (ps_get_thread_area): Delegate to the above.
5285
5286 2014-07-11  Gary Benson  <gbenson@redhat.com>
5287
5288         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5289         x86_linux_read_description.  All uses updated.  amd64-specific
5290         code conditionalized.  Conditionalized i386-specific code added.
5291         Redundant cast removed.
5292         * i386-linux-nat.c (i386_linux_read_description): Renamed to
5293         x86_linux_read_description.  All uses updated.  i386-specific
5294         code conditionalized.  Conditionalized amd64-specific code added.
5295         One sizeof replaced with the actual type it is describing.
5296
5297 2014-07-11  Gary Benson  <gbenson@redhat.com>
5298
5299         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5300         x86_linux_dr_get.  All uses updated.
5301         (amd64_linux_dr_set): Renamed to
5302         x86_linux_dr_set.  All uses updated.
5303         (amd64_linux_dr_get_addr): Renamed to
5304         x86_linux_dr_get_addr.  All uses updated.
5305         (amd64_linux_dr_get_control): Renamed to
5306         x86_linux_dr_get_control.  All uses updated.
5307         (amd64_linux_dr_get_status): Renamed to
5308         x86_linux_dr_get_status.  All uses updated.
5309         (amd64_linux_dr_set_control): Renamed to
5310         x86_linux_dr_set_control.  All uses updated.
5311         (amd64_linux_dr_set_addr): Renamed to
5312         x86_linux_dr_set_addr.  All uses updated.
5313         (amd64_linux_prepare_to_resume): Renamed to
5314         x86_linux_prepare_to_resume.  All uses updated.
5315         (amd64_linux_new_thread): Renamed to
5316         x86_linux_new_thread.  All uses updated.
5317         (amd64_linux_new_fork): Renamed to
5318         x86_linux_new_fork.  All uses updated.
5319         (amd64_linux_child_post_startup_inferior): Renamed to
5320         x86_linux_child_post_startup_inferior.  All uses updated.
5321         (amd64_linux_enable_btrace): Renamed to
5322         x86_linux_enable_btrace.  All uses updated.
5323         (amd64_linux_disable_btrace): Renamed to
5324         x86_linux_disable_btrace.  All uses updated.
5325         (amd64_linux_teardown_btrace): Renamed to
5326         x86_linux_teardown_btrace.  All uses updated.
5327         (amd64_linux_read_btrace): Renamed to
5328         x86_linux_read_btrace.  All uses updated.
5329         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5330         x86_linux_dr_get.  All uses updated.
5331         (i386_linux_dr_set): Renamed to
5332         x86_linux_dr_set.  All uses updated.
5333         (i386_linux_dr_get_addr): Renamed to
5334         x86_linux_dr_get_addr.  All uses updated.
5335         (i386_linux_dr_get_control): Renamed to
5336         x86_linux_dr_get_control.  All uses updated.
5337         (i386_linux_dr_get_status): Renamed to
5338         x86_linux_dr_get_status.  All uses updated.
5339         (i386_linux_dr_set_control): Renamed to
5340         x86_linux_dr_set_control.  All uses updated.
5341         (i386_linux_dr_set_addr): Renamed to
5342         x86_linux_dr_set_addr.  All uses updated.
5343         (i386_linux_prepare_to_resume): Renamed to
5344         x86_linux_prepare_to_resume.  All uses updated.
5345         (i386_linux_new_thread): Renamed to
5346         x86_linux_new_thread.  All uses updated.
5347         (i386_linux_new_fork): Renamed to
5348         x86_linux_new_fork.  All uses updated.
5349         (i386_linux_child_post_startup_inferior): Renamed to
5350         x86_linux_child_post_startup_inferior.  All uses updated.
5351         (i386_linux_enable_btrace): Renamed to
5352         x86_linux_enable_btrace.  All uses updated.
5353         (i386_linux_disable_btrace): Renamed to
5354         x86_linux_disable_btrace.  All uses updated.
5355         (i386_linux_teardown_btrace): Renamed to
5356         x86_linux_teardown_btrace.  All uses updated.
5357         (i386_linux_read_btrace): Renamed to
5358         x86_linux_read_btrace.  All uses updated.
5359
5360 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
5361
5362         * remote.c (extended_remote_post_attach): New function.
5363         (init_extended_remote_ops): Install it as to_post_attach method.
5364
5365 2014-07-09  Pedro Alves  <palves@redhat.com>
5366
5367         * infcmd.c (attach_command_post_wait): Don't call
5368         target_terminal_inferior here.
5369         (attach_command): Call it here instead.
5370
5371 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
5372
5373         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5374         field.
5375         * c-varobj.c (c_is_path_expr_parent): New function, moved core
5376         from varobj.c, with additional checks.
5377         (c_varobj_ops): Fill in is_path_expr_parent field.
5378         (cplus_varobj_ops): Fill in is_path_expr_parent field.
5379         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5380         field.
5381         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5382         ops method.
5383         (varobj_default_is_path_expr_parent): New function.
5384         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5385         (varobj_default_is_path_expr_parent): Declare new function.
5386
5387 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
5388
5389         * infcmd.c (finish_backward): Turn internal error into normal error.
5390
5391 2014-07-07  Pedro Alves  <palves@redhat.com>
5392
5393         PR gdb/17096
5394         * remote.c (async_handle_remote_sigint)
5395         (async_handle_remote_sigint_twice): Call
5396         gdb_call_async_signal_handler instead of
5397         mark_async_signal_handler.
5398
5399 2014-07-07  Tom Tromey  <tromey@redhat.com>
5400
5401         * target-delegates.c: Rebuild.
5402         * target.c (target_info_record): Remove.
5403         * record.c (info_record_command): Unconditionally call
5404         to_info_record.
5405         * target.h (struct target_ops) <to_info_record>: Use
5406         TARGET_DEFAULT_IGNORE.
5407         (target_info_record): Remove.
5408
5409 2014-07-07  Tom Tromey  <tromey@redhat.com>
5410
5411         * target.h (struct target_ops) <to_get_thread_local_address>: Use
5412         TARGET_DEFAULT_NORETURN.
5413         * target.c (generic_tls_error): New function.
5414         (target_translate_tls_address): Don't search target stack.
5415         * target-delegates.c: Rebuild.
5416         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5417         stack.
5418         * linux-thread-db.c (thread_db_get_thread_local_address):
5419         Unconditionally call beneath target.
5420
5421 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
5422
5423         * cli/cli-logging.c (pop_output_files): Assign targerr to
5424         gdb_stdtargerr.
5425
5426 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
5427
5428         * MAINTAINERS (Write After Approval): Update my email address.
5429
5430 2014-07-02  Gary Benson  <gbenson@redhat.com>
5431
5432         * proc-service.c (ps_xfer_memory): Update comment.
5433         (ps_pstop): Remove unused function.
5434         (ps_pcontinue): Likewise.
5435         (ps_lstop): Likewise.
5436         (ps_lcontinue): Likewise.
5437         (ps_lgetxregsize): Likewise.
5438         (ps_lgetxregs): Likewise.
5439         (ps_lsetxregs): Likewise.
5440         (ps_plog): Likewise.
5441         (ps_ptread): Likewise.
5442         (ps_ptwrite): Likewise.
5443
5444 2014-07-01  Mark Wielaard  <mjw@redhat.com>
5445
5446         * dwarf2read.c (add_array_cv_type): New function.
5447         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5448         (read_tag_volatile_type): Likewise.
5449
5450 2014-07-01  Tom Tromey  <tromey@redhat.com>
5451
5452         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5453         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5454         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5455         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5456         * command.h (cmd_cfunc_ftype): Move earlier.
5457         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5458         (add_com, add_info): Use cmd_cfunc_ftype.
5459
5460 2014-06-30  Tom Tromey  <tromey@redhat.com>
5461
5462         * symtab.c (operator_chars): Make parameters and return type
5463         const.
5464         (file_matches): Make "files" const.
5465         (struct search_symbols_data) <files>: Now const.
5466         (search_symbols): Make "regexp" and "files" parameters const.
5467         Update.
5468         (symtab_symbol_info): Remove cast.
5469         (rbreak_command): Update.
5470         * symtab.h (search_symbols): Update.
5471
5472 2014-06-27  Yao Qi  <yao@codesourcery.com>
5473
5474         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5475         Change parameter type to 'struct thread_info *'.  Caller
5476         updated.
5477         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5478         Update declaration.
5479         * dummy-frame.c (struct dummy_frame_id): New.
5480         (dummy_frame_id_eq): New function.
5481         (struct dummy_frame) <id>: Change its type to 'struct
5482         dummy_frame_id'.
5483         (dummy_frame_push): Add parameter ptid and save it in
5484         dummy_frame_id.
5485         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5486         inferior_ptid.
5487         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5488         to inferior_ptid.
5489         (lookup_dummy_frame): Change parameter type to 'struct
5490         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
5491         instead of frame_id_eq.
5492         (dummy_frame_pop): Add parameter ptid.  Callers updated.
5493         Update comments.  Compose dummy_frame_id and pass it to
5494         lookup_dummy_frame.
5495         (dummy_frame_discard): Add parameter ptid.
5496         (dummy_frame_sniffer): Compose dummy_frame_id and call
5497         dummy_frame_id_eq instead of frame_id_eq.
5498         (fprint_dummy_frames): Print ptid.
5499         * dummy-frame.h: Remove comments.
5500         (dummy_frame_push): Add ptid in declaration.
5501         (dummy_frame_pop, dummy_frame_discard): Likewise.
5502
5503 2014-06-26  Tom Tromey  <tromey@redhat.com>
5504
5505         * cli/cli-cmds.c (error_no_arg): Make "why" const.
5506         * command.h (error_no_arg): Update.
5507
5508 2014-06-26  Tom Tromey  <tromey@redhat.com>
5509
5510         * cli/cli-setshow.c (do_set_command): Make "arg" const.
5511         (do_show_command): Make "arg" const.
5512         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5513
5514 2014-06-26  Tom Tromey  <tromey@redhat.com>
5515
5516         * record-full.c (record_full_get_bookmark): Make "args" const.
5517         (record_full_goto_bookmark): Make "raw_bookmark" const.
5518         * record.c (record_goto): New function.
5519         (cmd_record_goto): Use it.  Now static.
5520         * record.h (record_goto): Declare.
5521         (cmd_record_goto): Remove declaration.
5522         * target-delegates.c: Rebuild.
5523         * target.h (struct target_ops) <to_get_bookmark,
5524         to_goto_bookmark>: Make parameter const.
5525
5526 2014-06-26  Tom Tromey  <tromey@redhat.com>
5527
5528         * defs.h (generic_load): Update.
5529         * m32r-rom.c (m32r_load_gen): Make "filename" const.
5530         * monitor.c (monitor_load): Make "args" const.
5531         * remote-m32r-sdi.c (m32r_load): Make "args" const.
5532         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5533         const.
5534         (mips_load): Make "file" const.
5535         * remote-sim.c (gdbsim_load): Make "args" const.
5536         * remote.c (remote_load): Make "name" const.
5537         * symfile.c (generic_load): Make "args" const.
5538         * target-delegates.c: Rebuild.
5539         * target.c (target_load): Make "arg" const.
5540         (debug_to_load): Make "args" const.
5541         * target.h (struct target_ops) <to_load>: Make parameter const.
5542         (target_load): Update.
5543
5544 2014-06-26  Tom Tromey  <tromey@redhat.com>
5545
5546         PR symtab/16902:
5547         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5548         (dwarf2_physname, read_partial_die)
5549         (guess_partial_die_structure_name, fixup_partial_die)
5550         (guess_full_die_structure_name, anonymous_struct_prefix)
5551         (dwarf2_name): Use per-BFD obstack.
5552
5553 2014-06-26  Yao Qi  <yao@codesourcery.com>
5554
5555         * dummy-frame.c (dummy_frame_sniffer): Move local variables
5556         dummyframe and this_id into inner block below.
5557
5558 2014-06-26  Yao Qi  <yao@codesourcery.com>
5559
5560         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5561         with "signal_pass[0]" in the initialization of signal_pass.
5562
5563 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
5564
5565         * record-btrace.c (record_btrace_generating_corefile)
5566         (record_btrace_prepare_to_generate_core)
5567         (record_btrace_done_generating_core): New.
5568         (record_btrace_xfer_partial, record_btrace_fetch_registers)
5569         (record_btrace_store_registers, record_btrace_prepare_to_store):
5570         Forward request when generating a core file.
5571         (record_btrace_open): Set record_btrace_generating_corefile to zero.
5572         (init_record_btrace_ops): Set to_prepare_to_generate_core and
5573         to_done_generating_core.
5574
5575 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
5576
5577         * target.h (target_ops) <to_prepare_to_generate_core>
5578         <to_done_generating_core>: New.
5579         (target_prepare_to_generate_core, target_done_generating_core): New.
5580         * target.c (target_prepare_to_generate_core)
5581         (target_done_generating_core): New.
5582         * target-delegates.c: Regenerate.
5583         * gcore.c: (write_gcore_file): Rename to ...
5584         (write_gcore_file_1): ...this.
5585         (write_gcore_file): Call target_prepare_to_generate_core
5586         and target_done_generating_core.
5587
5588 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
5589
5590         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5591         * gcore.c (write_gcore_file): Free memory returned from
5592         make_corefile_notes.
5593         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5594         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5595
5596 2014-06-24  Yao Qi  <yao@codesourcery.com>
5597
5598         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5599         (arm_linux_init_abi): Set skip_trampoline_code with
5600         gdbarch_skip_trampoline_code instead of
5601         find_solib_trampoline_target.
5602
5603 2014-06-24  Yao Qi  <yao@codesourcery.com>
5604
5605         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5606         arm_skip_bx_reg returns non-zero.
5607
5608 2014-06-24  Yao Qi  <yao@codesourcery.com>
5609
5610         * arm-tdep.c (arm_skip_bx_reg): New function.
5611         (arm_skip_stub): Call arm_skip_bx_reg.
5612
5613 2014-06-23  Don Breazeal  <donb@codesourcery.com>
5614
5615         * MAINTAINERS: Add myself as write-after-approval maintainer.
5616
5617 2014-06-23  Pedro Alves  <palves@redhat.com>
5618
5619         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5620         DR_CONTROL before setting DR0..DR3.
5621         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5622         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5623         bits of DR_CONTROL related to the debug register slot being
5624         disabled.  If all slots are vacant, clear local slowdown as well,
5625         and assert DR_CONTROL is 0.
5626
5627 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
5628
5629         * python/lib/gdb/command/xmethods.py
5630         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
5631         current progspace only if the string "progspace" matches LOCUS_RE.
5632
5633 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
5634
5635         Fix --with-system-readline with readline-6.3 patch 5.
5636         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5637         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5638         types.
5639
5640 2014-06-20  Tom Tromey  <tromey@redhat.com>
5641
5642         * dwarf2read.c (dw2_get_real_path): Use correct type in
5643         OBSTACK_CALLOC.
5644         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5645
5646 2014-06-20  Gary Benson  <gbenson@redhat.com>
5647
5648         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
5649         * common/glibc_thread_db.h: Likewise.
5650         * common/i386-cpuid.h: Likewise.
5651         * common/i386-gcc-cpuid.h: Likewise.
5652         * common/linux-btrace.h: Likewise.
5653         * common/linux-osdata.h: Likewise.
5654         * common/linux-procfs.h: Likewise.
5655         * common/linux-ptrace.h: Likewise.
5656         * common/mips-linux-watch.h: Likewise.
5657         * common/linux-btrace.c: Moved to nat.
5658         * common/linux-osdata.c: Likewise.
5659         * common/linux-procfs.c: Likewise.
5660         * common/linux-ptrace.c: Likewise.
5661         * common/mips-linux-watch.c: Likewise.
5662         * nat/gdb_thread_db.h: Moved from common.
5663         * nat/glibc_thread_db.h: Likewise.
5664         * nat/i386-cpuid.h: Likewise.
5665         * nat/i386-gcc-cpuid.h: Likewise.
5666         * nat/linux-btrace.c: Likewise.
5667         * nat/linux-btrace.h: Likewise.
5668         * nat/linux-osdata.c: Likewise.
5669         * nat/linux-osdata.h: Likewise.
5670         * nat/linux-procfs.c: Likewise.
5671         * nat/linux-procfs.h: Likewise.
5672         * nat/linux-ptrace.c: Likewise.
5673         * nat/linux-ptrace.h: Likewise.
5674         * nat/mips-linux-watch.c: Likewise.
5675         * nat/mips-linux-watch.h: Likewise.
5676         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5677         (object file files): Reordered.
5678         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5679         of glibc_thread_db.h.
5680
5681 2014-06-20  Gary Benson  <gbenson@redhat.com>
5682
5683         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5684         (i386_dr_low_type): Moved to nat/i386-dregs.h.
5685         (i386_dr_low): Likewise.
5686         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5687         (i386_dr_low_set_addr): Likewise.
5688         (i386_dr_low_get_addr): Likewise.
5689         (i386_dr_low_can_set_control): Likewise.
5690         (i386_dr_low_set_control): Likewise.
5691         (i386_dr_low_get_control): Likewise.
5692         (i386_dr_low_get_status): Likewise.
5693         (i386_get_debug_register_length): Likewise.
5694         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5695         (i386_dr_low): Likewise.
5696         * nat/i386-dregs.c (i386-low.h): Remove include.
5697         (i386-nat.h): Likewise.
5698         (nat/i386-dregs.h): New include.
5699         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5700         (i386_dr_low_set_addr): Likewise.
5701         (i386_dr_low_get_addr): Likewise.
5702         (i386_dr_low_can_set_control): Likewise.
5703         (i386_dr_low_set_control): Likewise.
5704         (i386_dr_low_get_control): Likewise.
5705         (i386_dr_low_get_status): Likewise.
5706         (i386_get_debug_register_length): Likewise.
5707         (debug_hw_points): Likewise.
5708
5709 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
5710
5711         * Makefile.in (SFILES): Add d-exp.y.
5712         (YYFILES): Add d-exp.c.
5713         (YYOBJ): Add d-exp.o.
5714         (local-maintainer-clean): Delete d-exp.c.
5715         * d-exp.y: New file.
5716         * d-lang.h (d_parse): New declaration.
5717         (d_error): New declaration.
5718         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5719         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5720         PREC_ORDER operators.
5721         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5722
5723 2014-06-19  Yao Qi  <yao@codesourcery.com>
5724
5725         * gdbthread.h (any_running): Remove the declaration.
5726         * thread.c (any_running): Remove.
5727
5728 2014-06-19  Yao Qi  <yao@codesourcery.com>
5729
5730         * gdbthread.h (struct thread_info) <state>: Change its type to
5731         'enum thread_state'.  Update comments.
5732
5733 2014-06-19  Pedro Alves  <palves@redhat.com>
5734
5735         * gdbthread.h (ALL_THREADS): Delete.
5736         (ALL_NON_EXITED_THREADS): New macro.
5737         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5738         instead of ALL_THREADS.
5739         * infrun.c (find_thread_needs_step_over)
5740         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5741         instead of ALL_THREADS.
5742         * record-btrace.c (record_btrace_open)
5743         (record_btrace_stop_recording, record_btrace_close)
5744         (record_btrace_is_replaying, record_btrace_resume)
5745         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5746         * remote.c (append_pending_thread_resumptions): Likewise.
5747         * thread.c (thread_apply_all_command): Likewise.
5748
5749 2014-06-19  Gary Benson  <gbenson@redhat.com>
5750
5751         * i386-nat.c (i386_stopped_by_watchpoint):
5752         Use i386_dr_stopped_by_watchpoint.
5753         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5754         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5755
5756 2014-06-19  Gary Benson  <gbenson@redhat.com>
5757
5758         * nat/i386-dregs.c: New file.
5759         * Makefile.in (i386-dregs.o): New rule.
5760         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5761         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5762         * config/i386/darwin.mh (NATDEPFILES): Likewise.
5763         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5764         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5765         * config/i386/go32.mh (NATDEPFILES): Likewise.
5766         * config/i386/linux.mh (NATDEPFILES): Likewise.
5767         * config/i386/linux64.mh (NATDEPFILES): Likewise.
5768         * config/i386/mingw.mh (NATDEPFILES): Likewise.
5769         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5770         * i386-nat.h (debug_hw_points): New declaration.
5771         * i386-nat.c (breakpoint.h): Remove include.
5772         (command.h): Likewise.
5773         (target.h): Likewise.
5774         (gdb_assert.h): Likewise.
5775         (debug_hw_points): Made nonstatic.
5776         (debug_printf): Now in i386-dregs.c.
5777         (TARGET_HAS_DR_LEN_8): Likewise.
5778         (DR_CONTROL_SHIFT): Likewise.
5779         (DR_CONTROL_SIZE): Likewise.
5780         (DR_RW_EXECUTE): Likewise.
5781         (DR_RW_WRITE): Likewise.
5782         (DR_RW_READ): Likewise.
5783         (DR_RW_IORW): Likewise.
5784         (DR_LEN_1): Likewise.
5785         (DR_LEN_2): Likewise.
5786         (DR_LEN_4): Likewise.
5787         (DR_LEN_8): Likewise.
5788         (DR_LOCAL_ENABLE_SHIFT): Likewise.
5789         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
5790         (DR_ENABLE_SIZE): Likewise.
5791         (DR_LOCAL_SLOWDOWN): Likewise.
5792         (DR_GLOBAL_SLOWDOWN): Likewise.
5793         (DR_CONTROL_RESERVED): Likewise.
5794         (I386_DR_CONTROL_MASK): Likewise.
5795         (I386_DR_VACANT): Likewise.
5796         (I386_DR_LOCAL_ENABLE): Likewise.
5797         (I386_DR_GLOBAL_ENABLE): Likewise.
5798         (I386_DR_DISABLE): Likewise.
5799         (I386_DR_SET_RW_LEN): Likewise.
5800         (I386_DR_GET_RW_LEN): Likewise.
5801         (I386_DR_WATCH_HIT): Likewise.
5802         (i386_wp_op_t): Likewise.
5803         (i386_show_dr): Likewise.
5804         (i386_length_and_rw_bits): Likewise.
5805         (i386_insert_aligned_watchpoint): Likewise.
5806         (i386_remove_aligned_watchpoint): Likewise.
5807         (i386_handle_nonaligned_watchpoint): Likewise.
5808         (i386_update_inferior_debug_regs): Likewise.
5809         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
5810         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
5811         (i386_region_ok_for_watchpoint):
5812         Use i386_dr_region_ok_for_watchpoint.
5813         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
5814
5815 2014-06-19  Gary Benson  <gbenson@redhat.com>
5816
5817         * i386-nat.c (i386_insert_hw_breakpoint): Use
5818         i386_insert_watchpoint.
5819         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
5820
5821 2014-06-19  Gary Benson  <gbenson@redhat.com>
5822
5823         * i386-nat.c (i386_dr_show): Renamed to
5824         i386_show_dr and made static.  All uses updated.
5825         (i386_dr_length_and_rw_bits): Renamed to
5826         i386_length_and_rw_bits and made static.
5827         All uses updated.
5828         (i386_dr_insert_aligned_watchpoint): Renamed to
5829         i386_insert_aligned_watchpoint and made static.
5830         All uses updated.
5831         (i386_dr_remove_aligned_watchpoint): Renamed to
5832         i386_remove_aligned_watchpoint and made static.
5833         All uses updated.
5834         (i386_dr_update_inferior_debug_regs): Renamed to
5835         i386_update_inferior_debug_regs and made static.
5836         All uses updated.
5837         * nat/i386-dregs.h (i386_dr_show): Removed.
5838         (i386_dr_length_and_rw_bits): Likewise.
5839         (i386_dr_insert_aligned_watchpoint): Likewise.
5840         (i386_dr_remove_aligned_watchpoint): Likewise.
5841         (i386_dr_update_inferior_debug_regs): Likewise.
5842
5843 2014-06-19  Gary Benson  <gbenson@redhat.com>
5844
5845         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
5846         * configure: Regenerate.
5847         * config.in: Likewise.
5848         * main.c (signal.h): New include.
5849         (setup_alternate_signal_stack): New function.
5850         (captured_main): Call the above.
5851         * cp-support.c (signal.h): New include.
5852         (catch_demangler_crashes): New flag.
5853         (SIGJMP_BUF): New define.
5854         (SIGSETJMP): Likewise.
5855         (SIGLONGJMP): Likewise.
5856         (gdb_demangle_jmp_buf): New static global.
5857         (gdb_demangle_attempt_core_dump): Likewise.
5858         (gdb_demangle_signal_handler): New function.
5859         (gdb_demangle): If catch_demangler_crashes is set, install the
5860         above signal handler before calling bfd_demangle, and restore
5861         the original signal handler afterwards.  Display the offending
5862         symbol and call demangler_warning the first time a segmentation
5863         fault is caught.
5864         (_initialize_cp_support): New maint set/show command.
5865
5866 2014-06-19  Gary Benson  <gbenson@redhat.com>
5867
5868         * utils.h (resource_limit_kind): New enum.
5869         (can_dump_core): New declaration.
5870         (warn_cant_dump_core): Likewise.
5871         (dump_core): Likewise.
5872         * utils.c (dump_core): Made nonstatic.  Added new
5873         parameter "limit_kind".
5874         (can_dump_core): Made nonstatic. Moved printing code to...
5875         (warn_cant_dump_core): New function.
5876         (can_dump_core_warn): Likewise.
5877         (internal_vproblem): Replace calls to can_dump_core with
5878         calls to can_dump_core_warn.  Supply new argument to each.
5879
5880 2014-06-19  Gary Benson  <gbenson@redhat.com>
5881
5882         * utils.h (demangler_vwarning): New declaration.
5883         (demangler_warning): Likewise.
5884         * utils.c (struct internal_problem)
5885         <user_settable_should_quit>: New field.
5886         <user_settable_should_dump_core>: Likewise
5887         (internal_error_problem): Add values for above new fields.
5888         (internal_warning_problem): Likewise.
5889         (demangler_warning_problem): New static global.
5890         (demangler_vwarning): New function.
5891         (demangler_warning): Likewise.
5892         (add_internal_problem_command): Selectively add commands.
5893         (_initialize_utils): New internal problem command.
5894         * maint.c (maintenance_demangler_warning): New function.
5895         (_initialize_maint_cmds): New command.
5896
5897 2014-06-18  Tom Tromey  <tromey@redhat.com>
5898
5899         * f-valprint.c (info_common_command_for_block): Update.
5900         * symtab.h (struct general_symbol_info) <common_block>: Now
5901         const.
5902
5903 2014-06-18  Tom Tromey  <tromey@redhat.com>
5904
5905         * symtab.h (struct symtab) <blockvector>: Now const.
5906         * ada-lang.c (ada_add_global_exceptions): Update.
5907         * buildsym.c (augment_type_symtab): Update.
5908         * dwarf2read.c (dw2_lookup_symbol): Update.
5909         * jit.c (finalize_symtab): Update.
5910         * jv-lang.c (add_class_symtab_symbol): Update.
5911         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
5912         Update.
5913         * objfiles.c (objfile_relocate1): Update.
5914         * psymtab.c (lookup_symbol_aux_psymtabs)
5915         (maintenance_check_psymtabs): Update.
5916         * python/py-symtab.c (stpy_global_block, stpy_static_block):
5917         Update.
5918         * spu-tdep.c (spu_catch_start): Update.
5919         * symmisc.c (dump_symtab_1): Update.
5920         * symtab.c (lookup_global_symbol_from_objfile)
5921         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
5922         (basic_lookup_transparent_type_quick)
5923         (basic_lookup_transparent_type, find_pc_sect_symtab)
5924         (find_pc_sect_line, search_symbols): Update.
5925         * block.c (find_block_in_blockvector): Make "bl" const.
5926         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
5927         const.
5928         (blockvector_contains_pc): Make "bv" const.
5929         (block_for_pc_sect): Update.
5930         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5931         (blockvector_contains_pc): Update.
5932         * breakpoint.c (resolve_sal_pc): Update.
5933         * inline-frame.c (block_starting_point_at): Update.
5934
5935 2014-06-18  Tom Tromey  <tromey@redhat.com>
5936
5937         * completer.c (complete_line): Make "line_buffer" const.
5938         * completer.h (complete_line): Update.
5939
5940 2014-06-18  Tom Tromey  <tromey@redhat.com>
5941
5942         * symtab.c (add_macro_name): Remove unneeded cast.
5943
5944 2014-06-18  Tom Tromey  <tromey@redhat.com>
5945
5946         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
5947         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
5948
5949 2014-06-18  Tom Tromey  <tromey@redhat.com>
5950
5951         * probe.c (info_probes_for_ops): Make "arg" const.
5952         * probe.h (info_probes_for_ops): Update.
5953
5954 2014-06-18  Tom Tromey  <tromey@redhat.com>
5955
5956         * varobj.c (varobj_create): Update.
5957         * valops.c (value_of_this): Update.
5958         * tracepoint.c (add_local_symbols, scope_info): Update.
5959         * symtab.h (struct general_symbol_info) <block>: Now const.
5960         * symtab.c (skip_prologue_sal)
5961         (default_make_symbol_completion_list_break_on)
5962         (skip_prologue_using_sal): Update.
5963         * stack.h (iterate_over_block_locals)
5964         (iterate_over_block_local_vars): Update.
5965         * stack.c (print_frame_args): Update.
5966         (iterate_over_block_locals, iterate_over_block_local_vars): Make
5967         parameter const.
5968         (get_selected_block): Make return type const.
5969         * python/py-frame.c (frapy_block): Update.
5970         * python/py-block.c (gdbpy_block_for_pc): Update.
5971         * p-exp.y (%union) <bval>: Now const.
5972         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5973         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
5974         * m2-exp.y (%union) <bval>: Now const.
5975         * linespec.c (get_current_search_block): Make return type const.
5976         (create_sals_line_offset, find_label_symbols): Update.
5977         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5978         Update.
5979         (block_starting_point_at): Make "block" const.
5980         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
5981         (check_exception_resume): Update.
5982         * guile/scm-frame.c (gdbscm_frame_block): Update.
5983         * guile/scm-block.c (gdbscm_lookup_block): Update.
5984         * frame.h (get_frame_block): Update.
5985         (get_selected_block): Make return type const.
5986         * frame.c (frame_id_inner): Update.
5987         * f-valprint.c (info_common_command_for_block)
5988         (info_common_command): Update.
5989         * dwarf2loc.c (dwarf2_find_location_expression)
5990         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
5991         (locexpr_describe_location_piece): Update.
5992         * c-exp.y (%union) <bval>: Now const.
5993         * breakpoint.c (resolve_sal_pc): Update.
5994         * blockframe.c (get_frame_block):Make return type const.
5995         (get_pc_function_start, get_frame_function, find_pc_sect_function)
5996         (block_innermost_frame): Update.
5997         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
5998         (block_for_pc, block_for_pc_sect): Update.
5999         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6000         'pblock' const.
6001         (block_for_pc_sect, block_for_pc): Make return type const.
6002         * ax-gdb.c (gen_expr): Update.
6003         * alpha-mdebug-tdep.c (find_proc_desc): Update.
6004         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6005         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6006         (ada_read_var_value): Update.
6007         * ada-exp.y (struct name_info) <block>: Now const.
6008         (%union): Likewise.
6009         (block_lookup): Constify.
6010
6011 2014-06-18  Gary Benson  <gbenson@redhat.com>
6012
6013         * nat/i386-dregs.h: New file.
6014         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6015         * i386-nat.h (i386-dregs.h): New include.
6016         (DR_FIRSTADDR): Now in i386-dregs.h.
6017         (DR_LASTADDR): Likewise.
6018         (DR_NADDR): Likewise.
6019         (DR_STATUS): Likewise.
6020         (DR_CONTROL): Likewise.
6021         (i386_debug_reg_state): Likewise.
6022         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6023
6024 2014-06-18  Don Breazeal  <donb@codesourcery.com>
6025
6026         * breakpoint.c (set_longjmp_breakpoint): Call
6027         momentary_breakpoint_from_master with additional argument.
6028         (set_longjmp_breakpoint_for_call_dummy): Call
6029         momentary_breakpoint_from_master with additional argument.
6030         (set_std_terminate_breakpoint): Call
6031         momentary_breakpoint_from_master with additional argument.
6032         (momentary_breakpoint_from_master): Add argument to function
6033         definition and use it to initialize structure member flag.
6034         (clone_momentary_breakpoint): Call
6035         momentary_breakpoint_from_master with additional argument.
6036         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6037         member flags set in momentary_breakpoint_from_master.
6038
6039 2014-06-18  Gary Benson  <gbenson@redhat.com>
6040
6041         * i386-nat.c (i386_show_dr): Renamed to
6042         i386_dr_show and made nonstatic.  All uses updated.
6043         (i386_length_and_rw_bits): Renamed to
6044         i386_dr_length_and_rw_bits and made nonstatic.
6045         All uses updated.
6046         (i386_insert_aligned_watchpoint): Renamed to
6047         i386_dr_insert_aligned_watchpoint and made nonstatic.
6048         All uses updated.
6049         (i386_remove_aligned_watchpoint): Renamed to
6050         i386_dr_remove_aligned_watchpoint and made nonstatic.
6051         All uses updated.
6052         (i386_update_inferior_debug_regs): Renamed to
6053         i386_dr_update_inferior_debug_regs and made nonstatic.
6054         All uses updated.
6055
6056 2014-06-18  Gary Benson  <gbenson@redhat.com>
6057
6058         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6059         (i386_dr_low_can_set_control): Likewise.
6060         (i386_dr_low_set_addr): Likewise.
6061         (i386_dr_low_set_control): Likewise.
6062         (i386_dr_low_get_addr): Likewise.
6063         (i386_dr_low_get_status): Likewise.
6064         (i386_dr_low_get_control): Likewise.
6065         (i386_insert_aligned_watchpoint): Use new macros.
6066         (i386_update_inferior_debug_regs): Likewise.
6067         (i386_stopped_data_address): Likewise.
6068
6069 2014-06-18  Gary Benson  <gbenson@redhat.com>
6070
6071         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6072         New parameter.  All uses updated.
6073
6074 2014-06-18  Gary Benson  <gbenson@redhat.com>
6075
6076         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6077         All uses updated.
6078
6079 2014-06-18  Gary Benson  <gbenson@redhat.com>
6080
6081         * i386-nat.c (debug_printf): New macro.
6082         (i386_get_debug_register_length): Likewise.
6083         (TARGET_HAS_DR_LEN_8): Use above macro.
6084         (i386_show_dr): Use debug_printf instead of puts_unfiltered
6085         and printf_unfiltered.  Use phex to format values.
6086
6087 2014-06-18  Gary Benson  <gbenson@redhat.com>
6088
6089         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6090         Make const.
6091
6092 2014-06-18  Gary Benson  <gbenson@redhat.com>
6093
6094         * i386-nat.c: Comment changes.
6095
6096 2014-06-18  Gary Benson  <gbenson@redhat.com>
6097
6098         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6099
6100 2014-06-18  Gary Benson  <gbenson@redhat.com>
6101
6102         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6103         (i386_insert_aligned_watchpoint): Likewise.
6104         (i386_remove_aligned_watchpoint): Likewise.
6105         (i386_handle_nonaligned_watchpoint): Likewise.
6106
6107 2014-06-18  Gary Benson  <gbenson@redhat.com>
6108
6109         * i386-nat.c: Whitespace changes.
6110
6111 2014-06-17  Samuel Bronson  <naesten@gmail.com>
6112
6113         * MAINTAINERS: Update Roland McGrath's email address.
6114         Thanks to Sergio Durigan Junior for pointing out that he left
6115         Red Hat a while ago, and giving me a current address.
6116
6117 2014-06-17  Tom Tromey  <tromey@redhat.com>
6118
6119         * utils.h (savestring): Remove declaration.
6120
6121 2014-06-17  Tom Tromey  <tromey@redhat.com>
6122
6123         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6124
6125 2014-06-16  Keith Seitz  <keiths@redhat.com>
6126
6127         PR mi/15863
6128         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6129         to update the varobj if inferior_ptid is null_ptid.
6130
6131 2014-06-16  Tom Tromey  <tromey@redhat.com>
6132
6133         * target.h (struct target_ops) <to_info_proc>: Make parameter
6134         const.
6135         (target_info_proc): Update.
6136         * target.c (target_info_proc): Make "args" const.
6137         * procfs.c (procfs_info_proc): Update.
6138         * linux-tdep.c (linux_info_proc): Update.
6139         (linux_core_info_proc_mappings): Make "args" const.
6140         (linux_core_info_proc): Update.
6141         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6142         * gdbarch.c: Rebuild.
6143         * gdbarch.h: Rebuild.
6144         * corelow.c (core_info_proc): Update.
6145
6146 2014-06-16  Tom Tromey  <tromey@redhat.com>
6147
6148         * target.h (struct target_ops) <to_disconnect>: Make parameter
6149         const.
6150         (target_disconnect): Update.
6151         * target.c (target_disconnect): Make "args" const.
6152         * target-delegates.c: Rebuild.
6153         * remote.c (remote_disconnect): Update.
6154         * record.h (record_disconnect): Update.
6155         * record.c (record_disconnect): Update.
6156         * inf-child.c (inf_child_disconnect): Update.
6157
6158 2014-06-16  Tom Tromey  <tromey@redhat.com>
6159
6160         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6161         * target.c (debug_to_rcmd, default_rcmd): Update.
6162         * target-delegates.c: Rebuild.
6163         * remote.c (remote_rcmd): Update.
6164         * monitor.c (monitor_rcmd): Update.
6165
6166 2014-06-16  Pedro Alves  <palves@redhat.com>
6167
6168         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6169         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6170         have OBJF_SHARED set.
6171         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6172         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
6173         instead of OBJF_USERLOADED.
6174         * objfiles.h (OBJF_SHARED): Update comment.
6175         (userloaded_objfile_contains_address_p): Rename to ...
6176         (shared_objfile_contains_address_p): ... this, and update
6177         comments.
6178         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6179         new objfile.
6180         (remove_symbol_file_command): Skip objfiles that don't have
6181         OBJF_SHARED set.
6182
6183 2014-06-16  Tom Tromey  <tromey@redhat.com>
6184
6185         * minsyms.h (prim_record_minimal_symbol)
6186         (prim_record_minimal_symbol_and_info): Update comments.
6187
6188 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
6189
6190         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6191         or --without-guile, according to how GDB was built.
6192
6193 2014-06-13  Tom Tromey  <tromey@redhat.com>
6194
6195         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6196         to help_list.
6197         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6198         to help_list.
6199         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6200         help_list.
6201         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6202         help_list.Pass all_commands, not -1, to help_list.
6203         * cli/cli-dump.c (dump_command, append_command)
6204         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6205         (binary_dump_command, binary_append_command): Pass all_commands,
6206         not -1, to help_list.
6207         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6208         -1, to help_list.
6209         * valprint.c (set_print, set_print_raw): Pass all_commands, not
6210         -1, to help_list.
6211         * typeprint.c (set_print_type): Pass all_commands, not -1, to
6212         help_list.
6213         * top.c (set_history): Pass all_commands, not -1, to help_list.
6214         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6215         all_commands, not -1, to help_list.
6216         * symfile.c (overlay_command): Pass all_commands, not -1, to
6217         help_list.
6218         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6219         help_list.
6220         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6221         help_list.
6222         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6223         -1, to help_list.
6224         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6225         not -1, to help_list.
6226         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6227         not -1, to help_list.
6228         * maint.c (maintenance_command, maintenance_info_command)
6229         (maintenance_print_command, maintenance_set_cmd): Pass
6230         all_commands, not -1, to help_list.
6231         * macrocmd.c (macro_command): Pass all_commands, not -1, to
6232         help_list.
6233         * language.c (set_check): Pass all_commands, not -1, to help_list.
6234         * infcmd.c (unset_command): Pass all_commands, not -1, to
6235         help_list.
6236         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6237         help_list.
6238         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6239         help_list.
6240         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6241         help_list.
6242         * breakpoint.c (save_command): Pass all_commands, not -1, to
6243         help_list.
6244         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6245         all_commands, not -1, to help_list.
6246
6247 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
6248
6249         * regcache.c (struct register_to_invalidate): New structure.
6250         (do_register_invalidate, make_cleanup_regcache_invalidate): New
6251         functions.
6252         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6253
6254 2014-06-12  Yao Qi  <yao@codesourcery.com>
6255
6256         * varobj.c (varobj_get_num_children): Call
6257         varobj_is_dynamic_p.
6258         (varobj_list_children): Likewise.
6259         (varobj_update): Likewise.  Update comments.
6260
6261 2014-06-12  Yao Qi  <yao@codesourcery.com>
6262
6263         * varobj.c (varobj_pretty_printed_p): Rename to ...
6264         (varobj_is_dynamic_p): ... this.  New function.
6265         * varobj.h (varobj_pretty_printed_p): Remove declaration.
6266         (varobj_is_dynamic_p): Declare.
6267         * mi/mi-cmd-var.c (print_varobj): All callers updated.
6268         (mi_print_value_p, varobj_update_one): Likewise.
6269
6270 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
6271             Yao Qi  <yao@codesourcery.com>
6272
6273         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6274         (varobj_get_iterator): Wrap up code for pretty-printer by
6275         "#if HAVE_PYTHON" and "#endif".
6276         (update_dynamic_varobj_children): Likewise.
6277
6278 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
6279             Yao Qi  <yao@codesourcery.com>
6280
6281         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6282         gdb_python_initialized is false.  Move some code from varobj.c.
6283         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6284         * varobj.c: Move "varobj-iter.h" inclusion earlier.
6285         (struct varobj_item): Moved to varobj-iter.h".
6286         (varobj_clear_saved_item): New function.
6287         (update_dynamic_varobj_children): Move python-related code to
6288         py-varobj.c.
6289         (free_variable): Call varobj_clear_saved_item and
6290         varobj_iter_delete.
6291
6292 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
6293             Yao Qi  <yao@codesourcery.com>
6294
6295         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6296         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6297         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6298         (py-varobj.o): New rule.
6299         * python/py-varobj.c: New file.
6300         * python/python-internal.h (py_varobj_get_iterator): Declare.
6301         * varobj-iter.h: New file.
6302         * varobj.c: Include "varobj-iter.h"
6303         (struct varobj) <child_iter>: Change its type from "PyObject *"
6304         to "struct varobj_iter *".
6305         <saved_item>: Likewise.
6306         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6307         [HAVE_PYTHON] (varobj_get_iterator): New function.
6308         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6309         python-specific code to python/py-varobj.c.
6310         (install_visualizer): Call varobj_iter_delete instead of
6311         Py_XDECREF.
6312         * varobj.h (varobj_ensure_python_env): Declare.
6313
6314 2014-06-12  Yao Qi  <yao@codesourcery.com>
6315
6316         * varobj.c (struct varobj_item): New structure.
6317         (create_child_with_value): Update declaration.
6318         (varobj_add_child): Replace arguments 'name' and 'value' with
6319         'item'.  All callers updated.
6320         (install_dynamic_child): Likewise.
6321         (update_dynamic_varobj_children): Likewise.
6322         (varobj_add_child): Likewise.
6323         (create_child_with_value): Likewise.
6324
6325 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
6326
6327         * NEWS: Create a new section for the next release branch.
6328         Rename the section of the current branch, now that it has
6329         been cut.
6330
6331 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
6332
6333         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6334         * version.in: Bump version to 7.8.50.DATE-cvs.
6335
6336 2014-06-11  Pedro Alves  <palves@redhat.com>
6337
6338         PR remote/17028
6339         * ser-mingw.c (net_windows_socket_check_pending): New function.
6340         (net_windows_select_thread): Ignore spurious wakeups.  Use
6341         net_windows_socket_check_pending.
6342         (net_windows_wait_handle): Check for pending events with
6343         ioctlsocket, through net_windows_socket_check_pending, instead of
6344         checking the socket's event.
6345
6346 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
6347
6348         * python/python-internal.h (gdb_PyObject_GetAttrString)
6349         (gdb_PyObject_HasAttrString): New inline function definitions.
6350         * py-value.c (get_field_flag): Remove the now unnecessary cast to
6351         char * of the second argument to PyObject_GetAttrString.
6352
6353 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
6354
6355         * serial.c (serial_write): Fix index of character to be printed
6356         in call to serial_logchar when serial debug traces are enabled.
6357
6358 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
6359
6360         * gdbtypes (resolve_dynamic_range): Add function description.
6361
6362 2014-06-09  Pedro Alves  <palves@redhat.com>
6363
6364         * linux-nat.c (linux_child_follow_fork): Initialize status with
6365         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
6366         inner block.  Only pass the signal to PTRACE_DETACH if in pass
6367         state.
6368
6369 2014-06-09  Gary Benson  <gbenson@redhat.com>
6370
6371         * common/signals.c (gdb_signal_from_host): Reorder to separate
6372         the always-available ANSI-standard signals from the signals that
6373         require checking.
6374         (do_gdb_signal_to_host): Likewise.
6375         * proc-events.c (signal_table): Likewise.
6376
6377 2014-06-08  Hui Zhu  <hui@codesourcery.com>
6378
6379         * common/linux-ptrace.c (linux_disable_event_reporting): New
6380         function.
6381         * common/linux-ptrace.h (linux_disable_event_reporting): New
6382         declaration.
6383         * linux-nat.c (linux_child_follow_fork): Do a single step before
6384         detach.
6385
6386 2014-06-07  Keith Seitz  <keiths@redhat.com>
6387
6388         Revert:
6389         PR c++/16253
6390         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6391         from symbol_matches_domain in symtab.c. All local callers
6392         of symbol_matches_domain updated.
6393         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6394         search STRUCT_DOMAIN.
6395         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6396         independently.  standard_lookup will do that automatically.
6397         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6398         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6399         (cp_lookup_symbol_in_namespace): Likewise.
6400         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6401         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6402         may return a STRUCT_DOMAIN match.
6403         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6404         * cp-support.c: Include language.h.
6405         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6406         VAR_DOMAIN.
6407         * psymtab.c (match_partial_symbol): Compare the requested
6408         domain with the symbol's domain directly.
6409         (lookup_partial_symbol): Likewise.
6410         * symtab.c (lookup_symbol_in_language): Explain when/why
6411         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6412         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6413         appropriate languages.
6414         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6415         and moved to ada-lang.c
6416         (lookup_block_symbol): Explain that this function only returns
6417         symbol matching the requested DOMAIN.
6418         Compare the requested domain with the symbol's domain directly.
6419         (iterate_over_symbols): Compare the requested domain with the
6420         symbol's domain directly.
6421         * symtab.h (symbol_matches_domain): Remove.
6422
6423 2014-06-06  Doug Evans  <xdje42@gmail.com>
6424
6425         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6426         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6427         (gdbscm_guile_version_is_at_least): Declare.
6428         (gdbscm_scm_string_to_int): Declare.
6429         * guile/guile.c (gdbscm_guile_major_version): New global.
6430         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6431         (guile_datadir): New static global.
6432         (gdbscm_guile_data_directory): New function.
6433         (initialize_scheme_side): Update.
6434         (misc_guile_functions): Add guile-data-directory.
6435         (initialize_gdb_module): Fetch guile version number.
6436         * guile/lib/gdb.scm: Remove call to add-to-load-path.
6437         * guile/lib/gdb/init.scm (%initialize!): Ditto.
6438         * guile/lib/gdb/boot.scm: Use guile-data-directory.
6439         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6440         comments.
6441         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6442         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6443         * guile/scm-value.c (gdbscm_value_to_string): Only call
6444         scm_port_conversion_strategy if Guile version >= 2.0.6.
6445
6446 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
6447
6448         * main.c (print_gdb_help): Add -q and --silent.
6449
6450 2014-06-06  Gary Benson  <gbenson@redhat.com>
6451
6452         * common/signals.c: Remove preprocessor conditionals for
6453         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6454         SIGSEGV and SIGTERM.
6455         * proc-events.c: Likewise.
6456
6457 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
6458
6459         * symfile.c (symfile_free_objfile): Remove restriction to
6460         OBJF_USERLOADED.
6461         * symfile-mem.c (symbol_file_add_from_memory): Call
6462         add_target_sections_of_objfile.
6463
6464 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
6465
6466         * guile/scm-value.c (gdbscm_history_append_x): Use
6467         'vlscm_get_value_smob_arg_unsafe' instead of
6468         'vlscm_scm_to_value'.
6469
6470 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
6471
6472         PR mi/15806
6473         * utils.c (printchar): Don't escape at all if quoter is NUL.
6474         Update function documentation to clarify effect of parameter
6475         QUOTER.
6476         * remote.c (escape_buffer): Pass '\\' as the quoter to
6477         fputstrn_unfiltered.
6478         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6479         generate the output.
6480         (mi_solib_unloaded): Same.
6481
6482 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
6483
6484         * development.sh: Delete.
6485         * Makefile.in (config.status): Adjust dependency on development.sh.
6486         * configure.ac: Adjust development.sh source call.
6487         * configure: Regenerate.
6488
6489 2014-06-04  Doug Evans  <xdje42@gmail.com>
6490
6491         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6492         is_scheme_bkpt, spec.
6493         (bpscm_make_breakpoint_smob): Initialize new members.
6494         (gdbscm_create_breakpoint_x): Split into two ...
6495         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6496         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6497         (scheme_function breakpoint_functions): Update.
6498         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
6499         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
6500         register-breakpoint!.
6501
6502 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
6503
6504         PR server/17023
6505         * mem-break.c (z_type_supported): Return zero if
6506         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6507
6508 2014-06-04  Tom Tromey  <tromey@redhat.com>
6509
6510         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6511         value_from_contents_and_address_unresolved.
6512         (ada_template_to_fixed_record_type_1): Likewise.
6513         (ada_which_variant_applies): Likewise.
6514         * value.h (value_from_contents_and_address_unresolved): Declare.
6515         * value.c (value_from_contents_and_address_unresolved): New
6516         function.
6517         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6518         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6519         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6520
6521 2014-06-04  Tom Tromey  <tromey@redhat.com>
6522
6523         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6524
6525 2014-06-04  Tom Tromey  <tromey@redhat.com>
6526
6527         * procfs.c (procfs_attach): Make "args" const.
6528         * windows-nat.c (windows_attach): Make "args" const.
6529         * nto-procfs.c (procfs_attach): Make "args" const.
6530         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6531         * go32-nat.c (go32_attach): Make "args" const.
6532         * gnu-nat.c (gnu_attach): Make "args" const.
6533         * darwin-nat.c (darwin_attach): Make "args" const.
6534         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6535         * linux-nat.c (linux_nat_attach): Make "args" const.
6536         * remote.c (extended_remote_attach_1, extended_remote_attach):
6537         Make "args" const.
6538         * target.h (struct target_ops) <to_attach>: Make "args" const.
6539         (find_default_attach): Likewise.
6540         * utils.c (parse_pid_to_attach): Make "args" const.
6541         * utils.h (parse_pid_to_attach): Update.
6542
6543 2014-06-04  Tom Tromey  <tromey@redhat.com>
6544
6545         * target-delegates.c: Rebuild.
6546         * target.c (default_thread_address_space): New function.
6547         (target_thread_address_space): Simplify.
6548         * target.h (struct target_ops) <to_thread_address_space>: Add
6549         TARGET_DEFAULT_FUNC.
6550
6551 2014-06-04  Doug Evans  <xdje42@gmail.com>
6552
6553         * guile/scm-type.c (type_smob): Remove duplicate typedef.
6554
6555 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
6556
6557         * record-btrace.c: Include event-loop.h and inf-loop.h.
6558         (record_btrace_resume_exec_dir)
6559         (record_btrace_async_inferior_event_handler)
6560         (record_btrace_handle_async_inferior_event): New.
6561         (record_btrace_open): Create async event handler.
6562         (record_btrace_close): Delete async event handler.
6563         (record_btrace_resume): Set record_btrace_resume_exec_dir,
6564         Mark async event handler.
6565         (record_btrace_execution_direction): New.
6566         (init_record_btrace_ops): Initialize to_execution_direction.
6567
6568 2014-06-03  Doug Evans  <xdje42@gmail.com>
6569
6570         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6571         (gdbscm_make_parameter): Ditto.
6572
6573 2014-06-03  Doug Evans  <dje@google.com>
6574
6575         * exec.c (exec_close_1): Call clear_section_table instead of
6576         resize_section_table.
6577         (clear_section_table): New function.
6578         (resize_section_table): Make static.  Rename arg num_added to
6579         adjustment.
6580         * exec.h (clear_section_table): Declare.
6581         (resize_section_table): Delete.
6582         * progspace.c (release_program_space): Call clear_section_table
6583         instead of resize_section_table.
6584
6585 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
6586
6587         * NEWS (Python Scripting): Add entry about the new xmethods
6588         feature.
6589
6590 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
6591
6592         * python/py-xmethods.c: New file.
6593         * python/py-objfile.c (objfile_object): New field 'xmethods'.
6594         (objfpy_dealloc): XDECREF on the new xmethods field.
6595         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6596         field.
6597         (objfpy_get_xmethods): New function.
6598         (objfile_getset): New entry 'xmethods'.
6599         * python/py-progspace.c (pspace_object): New field 'xmethods'.
6600         (pspy_dealloc): XDECREF on the new xmethods field.
6601         (pspy_new, pspace_to_pspace_object): Initialize xmethods
6602         field.
6603         (pspy_get_xmethods): New function.
6604         (pspace_getset): New entry 'xmethods'.
6605         * python/python-internal.h: Add declarations for new functions.
6606         * python/python.c (_initialize_python): Invoke
6607         gdbpy_initialize_xmethods.
6608         * python/lib/gdb/__init__.py (xmethods): New
6609         attribute.
6610         * python/lib/gdb/xmethod.py: New file.
6611         * python/lib/gdb/command/xmethods.py: New file.
6612
6613 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
6614
6615         * eval.c (evaluate_subexp_standard): Call the xmethod if the
6616         best match method returned by find_overload_match is an xmethod.
6617         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6618         the best matching operator returned by find_overload_match is an
6619         xmethod.
6620         * valops.c: #include "extension.h".
6621         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6622         Return void.  The list of matching source methods is returned in
6623         "fn_list" and a vector of matching debug method workers is
6624         returned in "xm_worker_vec".  Update all callers.
6625         (value_find_oload_method_list): Likewise.
6626         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
6627         non-NULL, then the index of the best matching method in this
6628         vector is returned.  Update all callers.
6629         (find_overload_match): Include xmethods while performing overload
6630         resolution.
6631
6632 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
6633
6634         * defs.h (enum lval_type): New enumerator "lval_xcallable".
6635         * extension-priv.h (struct extension_language_ops): Add the
6636         xmethod interface.
6637         * extension.c (new_xmethod_worker, clone_xmethod_worker,
6638         get_matching_xmethod_workers, get_xmethod_argtypes,
6639         invoke_xmethod, free_xmethod_worker,
6640         free_xmethod_worker_vec): New functions.
6641         * extension.h: #include "common/vec.h".
6642         New function declarations.
6643         (struct xmethod_worker): New struct.
6644         (VEC (xmethod_worker_ptr)): New vector type.
6645         (xmethod_worker_ptr): New typedef.
6646         (xmethod_worker_vec): Likewise.
6647         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6648         builtin_type.
6649         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6650         (struct builtin_type): New field "xmethod".
6651         * valarith.c (value_ptradd): Assert that the value argument is not
6652         lval_xcallable.
6653         * valops.c (value_must_coerce_to_target): Return 0 for
6654         lval_xcallable values.
6655         * value.c (struct value): New field XM_WORKER in the field
6656         LOCATION.
6657         (value_address, value_raw_address): Return 0 for lval_xcallable
6658         values.
6659         (set_value_address): Assert that the value is not an
6660         lval_xcallable.
6661         (value_free): Free the associated xmethod worker when freeing
6662         lval_xcallable values.
6663         (set_value_component_location): Assert that the WHOLE value is not
6664         lval_xcallable.
6665         (value_of_xmethod, call_xmethod): New functions.
6666         * value.h: Declare "struct xmethod_worker".
6667         Declare new functions value_of_xmethod, call_xmethod.
6668
6669 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
6670             Pedro Alves  <palves@redhat.com>
6671
6672         PR breakpoints/17000
6673         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6674         New function, extracted from software_breakpoint_inserted_here_p.
6675         (software_breakpoint_inserted_here_p): Replace factored out code
6676         by call to find_non_raw_software_breakpoint_inserted_here.
6677         (bp_target_info_copy_insertion_state): New function.
6678         (bkpt_insert_location): Handle the case of a single-step
6679         breakpoint already inserted at the same address.
6680         (bkpt_remove_location): Handle the case of a single-step
6681         breakpoint still inserted at the same address.
6682         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6683         breakpoint already inserted at the same address.
6684         (deprecated_remove_raw_breakpoint): Handle the case of a
6685         non-raw breakpoint still inserted at the same address.
6686         (find_single_step_breakpoint): New function, extracted from
6687         single_step_breakpoint_inserted_here_p.
6688         (find_single_step_breakpoint): New function,
6689         factored out from single_step_breakpoint_inserted_here_p.
6690         (single_step_breakpoint_inserted_here_p): Reimplement.
6691
6692 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
6693
6694         Pushed by Joel Brobecker  <brobecker@adacore.com>
6695         * source.c (show_substitute_path_command): Fix display of matching
6696         substitution rules.
6697
6698 2014-06-03  Gary Benson  <gbenson@redhat.com>
6699
6700         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6701
6702 2014-06-02  Doug Evans  <xdje42@gmail.com>
6703
6704         Add parameter support for Guile.
6705         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6706         (SUBDIR_GUILE_SRCS): Add scm-param.c.
6707         (scm-param.o): New rule.
6708         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6709         (gdbscm_misc_error): Declare.
6710         (gdbscm_canonicalize_command_name): Declare.
6711         (gdbscm_scm_to_host_string): Declare.
6712         (gdbscm_scm_from_host_string): Declare.
6713         (gdbscm_initialize_parameters): Declare.
6714         * guile/guile.c (initialize_gdb_module): Call
6715         gdbscm_initialize_parameters.
6716         * guile/lib/gdb.scm: Export parameter symbols.
6717         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6718         cmdscm_canonicalize_name and made public.  All callers updated.
6719         * guile/scm-exception.c (gdbscm_misc_error): New function.
6720         * guile/scm-param.c: New file.
6721         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6722         (gdbscm_scm_to_host_string): New function.
6723         (gdbscm_scm_from_host_string): New function.
6724         * scm-utils.c (gdbscm_gc_dup_argv): New function.
6725
6726 2014-06-02  Doug Evans  <xdje42@gmail.com>
6727
6728         Add command support for Guile.
6729         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6730         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6731         (scm-cmd.o): New rule.
6732         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6733         (gdbscm_user_error_p): Declare.
6734         (gdbscm_parse_command_name): Declare.
6735         (gdbscm_valid_command_class_p): Declare.
6736         (gdbscm_initialize_commands): Declare.
6737         * guile/guile.c (initialize_gdb_module): Call
6738         gdbscm_initialize_commands.
6739         * guile/lib/gdb.scm: Export command symbols.
6740         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6741         (throw-user-error): New function.
6742         * guile/scm-cmd.c: New file.
6743         * guile/scm-exception.c (user_error_symbol): New static global.
6744         (gdbscm_user_error_p): New function.
6745         (gdbscm_initialize_exceptions): Set user_error_symbol.
6746         * scm-utils.c (gdbscm_gc_xstrdup): New function.
6747
6748 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
6749
6750         * top.c (command_loop): Handle comments here...
6751         (command_line_input): ... not here.
6752
6753 2014-06-02  Doug Evans  <xdje42@gmail.com>
6754
6755         Add progspace support for Guile.
6756         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6757         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6758         (scm-progspace.o): New rule.
6759         * guile/guile-internal.h (pspace_smob): New typedef.
6760         (psscm_pspace_smob_pretty_printers): Declare.
6761         (psscm_pspace_smob_from_pspace): Declare.
6762         (psscm_scm_from_pspace): Declare.
6763         * guile/guile.c (initialize_gdb_module): Call
6764         gdbscm_initialize_pspaces.
6765         * guile/lib/gdb.scm: Export progspace symbols.
6766         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6767         support.
6768         (append-pretty-printer!): Ditto.
6769         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6770         Implement.
6771         * guile/scm-progspace.c: New file.
6772
6773 2014-06-03  Alan Modra  <amodra@gmail.com>
6774
6775         * ppc64-tdep.c (ppc64_standard_linkage8): New.
6776         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6777
6778 2014-06-02  Doug Evans  <dje@google.com>
6779
6780         Add support for skeletonless type units.
6781         * dwarf2read.c (struct dwarf2_per_objfile): New member
6782         n_allocated_type_units.
6783         (struct dwarf2_per_objfile) <tu_stats>: New member
6784         nr_all_type_units_reallocs.
6785         (create_signatured_type_table_from_index): Initialize
6786         n_allocated_type_units
6787         (create_all_type_units): Ditto.
6788         (add_type_unit): Move up in file.  New arg slot.
6789         All callers updated.  Increase space for all_type_units more
6790         efficiently.
6791         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
6792         (lookup_dwo_signatured_type): Handle skeletonless TUs.
6793         (lookup_dwp_signatured_type): Ditto.
6794         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
6795         All callers updated.
6796         (build_type_psymtabs_1): Leave type_unit_groups as
6797         NULL if no TUs present.
6798         (print_tu_stats): New function.
6799         (process_skeletonless_type_unit): New function.
6800         (process_dwo_file_for_skeletonless_type_units): New
6801         function.
6802         (process_skeletonless_type_units): New function.
6803         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
6804         Call print tu_stats if debugging enabled.
6805
6806 2014-06-02  Pedro Alves  <palves@redhat.com>
6807
6808         * breakpoint.c (build_target_command_list): Don't build a command
6809         list if we have any duplicate location that isn't a dprintf.
6810
6811 2014-06-02  Pedro Alves  <palves@redhat.com>
6812
6813         * breakpoint.c (dprintf_breakpoint_hit): New function.
6814         (initialize_breakpoint_ops): Install it as dprintf's
6815         breakpoint_hit method.
6816
6817 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
6818
6819         * source.c (substitute_path_rule_matches): Simplify using
6820         filename_ncmp instead of FILENAME_CMP.
6821
6822 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
6823
6824         * source.c (substitute_path_rule_matches): Remove trailing spaces.
6825
6826 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
6827
6828         * configure.ac: When Guile is available, check for the
6829         availability of 'scm_new_smob'.
6830         * configure, config.h.in: Regenerate.
6831         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
6832         function.
6833
6834 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
6835
6836         * frame.c (struct frame_info): Add stop_string field.
6837         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
6838         (get_prev_frame_always): Old content moved into
6839         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
6840         TRY_CATCH, handle MEMORY_ERROR exceptions.
6841         (frame_stop_reason_string): New function definition.
6842         * frame.h (unwind_stop_reason_to_string): Extend comment to
6843         mention frame_stop_reason_string.
6844         (frame_stop_reason_string): New function declaration.
6845         * stack.c (frame_info): Switch to frame_stop_reason_string.
6846         (backtrace_command_1): Switch to frame_stop_reason_string.
6847         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
6848         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
6849         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
6850
6851 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
6852
6853         * frame.c (frame_stop_reason_string): Rename to ...
6854         (unwind_stop_reason_to_string): this.
6855         * frame.h (frame_stop_reason_string): Rename to ...
6856         (unwind_stop_reason_to_string): this.
6857         * stack.c (frame_info): Update call to frame_stop_reason_string.
6858         (backtrace_command_1): Likewise.
6859         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
6860         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
6861
6862 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
6863
6864         * frame.c (remove_prev_frame): New function.
6865         (get_prev_frame_if_no_cycle): Create / discard cleanup using
6866         remove_prev_frame.
6867
6868 2014-05-29  Pedro Alves  <palves@redhat.com>
6869
6870         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
6871         and make it const.  When a single-step decays to a continue,
6872         clear 'step', not 'hw_step'.  Pass whether the caller wanted
6873         to step to user_visible_resume_ptid, not what we ask the
6874         target to do.
6875
6876 2014-05-29  Pedro Alves  <palves@redhat.com>
6877
6878         * infrun.c (process_event_stop_test, handle_step_into_function)
6879         (handle_step_into_function_backward): Adjust.
6880         Don't set the even thread's stop_step and call stop_waiting before
6881         calling end_stepping_range.  Instead do that ...
6882         (end_stepping_range): ... here.  Take an ecs pointer parameter.
6883
6884 2014-05-29  Pedro Alves  <palves@redhat.com>
6885
6886         * infrun.c (stop_stepping): Rename to ...
6887         (stop_waiting): ... this.
6888         (proceed): Update comment.
6889         (process_event_stop_test, handle_inferior_event)
6890         (handle_signal_stop, handle_step_into_function)
6891         (handle_step_into_function_backward): Update.
6892
6893 2014-05-29  Pedro Alves  <palves@redhat.com>
6894
6895         * infcall.c (run_inferior_call): Don't check whether the current
6896         thread is running after the proceed call.
6897
6898 2014-05-29  Pedro Alves  <palves@redhat.com>
6899             Tom Tromey  <tromey@redhat.com>
6900
6901         * NEWS: Mention "maint set target-async", "set mi-async", and that
6902         background execution commands are now always available.
6903         * target.h (target_async_permitted): Update comment.
6904         * target.c (target_async_permitted, target_async_permitted_1):
6905         Default to 1.
6906         (set_target_async_command): Rename to ...
6907         (maint_set_target_async_command): ... this.
6908         (show_target_async_command): Rename to ...
6909         (maint_show_target_async_command): ... this.
6910         (_initialize_target): Adjust.
6911         * infcmd.c (prepare_execution_command): Make extern.
6912         * inferior.h (prepare_execution_command): Declare.
6913         * infrun.c (set_observer_mode): Leave target async alone.
6914         * mi/mi-interp.c (mi_interpreter_init): Install
6915         mi_on_sync_execution_done as sync_execution_done observer.
6916         (mi_on_sync_execution_done): New function.
6917         (mi_execute_command_input_handler): Don't print the prompt if we
6918         just started a synchronous command with an async target.
6919         (mi_on_resume): Check sync_execution before printing prompt.
6920         * mi/mi-main.h (mi_async_p): Declare.
6921         * mi/mi-main.c: Include gdbcmd.h.
6922         (mi_async_p): New function.
6923         (mi_async, mi_async_1): New globals.
6924         (set_mi_async_command, show_mi_async_command, mi_async): New
6925         functions.
6926         (exec_continue): Call prepare_execution_command.
6927         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
6928         (mi_execute_async_cli_command): Use mi_async_p.
6929         (_initialize_mi_main): Install "set mi-async".  Make
6930         "target-async" a deprecated alias.
6931
6932 2014-05-29  Pedro Alves  <palves@redhat.com>
6933
6934         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
6935         (_initialize_cli_interp): Adjust.
6936         * event-loop.c: Include "observer.h".
6937         (start_event_loop): Notify 'command_error' observers instead of
6938         calling display_gdb_prompt.  Remove FIXME comment.
6939         * event-top.c (display_gdb_prompt): Remove call into the
6940         interpreters.
6941         * inf-loop.c: Include "observer.h".
6942         (inferior_event_handler): Notify 'command_error' observers instead
6943         of calling display_gdb_prompt.
6944         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
6945         observers instead of calling display_gdb_prompt.
6946         * interps.c (interp_set): Don't call display_gdb_prompt.
6947         (current_interp_display_prompt_p): Delete.
6948         * interps.h (interp_prompt_p): Delete declaration.
6949         (interp_prompt_p_ftype): Delete.
6950         (struct interp_procs) <prompt_proc_p>: Delete field.
6951         (current_interp_display_prompt_p): Delete declaration.
6952         * mi-interp.c (mi_interpreter_prompt_p): Delete.
6953         (_initialize_mi_interp): Adjust.
6954         * tui-interp.c (tui_init): Install 'sync_execution_done' and
6955         'command_error' observers.
6956         (tui_on_sync_execution_done, tui_on_command_error): New
6957         functions.
6958         (tui_display_prompt_p): Delete.
6959         (_initialize_tui_interp): Adjust.
6960
6961 2014-05-29  Pedro Alves  <palves@redhat.com>
6962
6963         PR gdb/13860
6964         * cli/cli-interp.c: Include infrun.h and observer.h.
6965         (cli_uiout, cli_interp): New globals.
6966         (cli_on_signal_received, cli_on_end_stepping_range)
6967         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
6968         functions.
6969         (cli_interpreter_init): Install them as 'end_stepping_range',
6970         'signal_received' 'signal_exited', 'exited' and 'no_history'
6971         observers.
6972         (_initialize_cli_interp): Remove cli_interp local.
6973         * infrun.c (handle_inferior_event): Call the several stop reason
6974         observers instead of printing the stop reason directly.
6975         (end_stepping_range): New function.
6976         (print_end_stepping_range_reason, print_signal_exited_reason)
6977         (print_exited_reason, print_signal_received_reason)
6978         (print_no_history_reason): Make static, and add an uiout
6979         parameter.  Print to that instead of to CURRENT_UIOUT.
6980         * infrun.h (print_end_stepping_range_reason)
6981         (print_signal_exited_reason, print_exited_reason)
6982         (print_signal_received_reason print_no_history_reason): New
6983         declarations.
6984         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
6985         'mi_uiout'.
6986         <cli_uiout>: New field.
6987         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
6988         uiout for CLI output.  Install 'signal_received',
6989         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
6990         observers.
6991         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
6992         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
6993         (mi_on_no_history): New functions.
6994         (ui_out_free_cleanup): Delete function.
6995         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
6996         instead use the one already stored in the MI interpreter data.
6997         (mi_ui_out): Adjust.
6998         * tui/tui-interp.c: Include infrun.h and observer.h.
6999         (tui_interp): New global.
7000         (tui_on_signal_received, tui_on_end_stepping_range)
7001         (tui_on_signal_exited, tui_on_exited)
7002         (tui_on_no_history): New functions.
7003         (tui_init): Install them as 'end_stepping_range',
7004         'signal_received' 'signal_exited', 'exited' and 'no_history'
7005         observers.
7006         (_initialize_tui_interp): Delete tui_interp local.
7007
7008 2014-05-29  Pedro Alves  <palves@redhat.com>
7009
7010         PR gdb/15713
7011         * linux-nat.c (linux_nat_resume_callback): Rename the second
7012         parameter to 'except'.  Skip LP if it points to EXCEPT.
7013         (linux_nat_resume): Don't mark the event lwp as not stopped
7014         before resuming sibling lwps.  Instead ask
7015         linux_nat_resume_callback to skip the event lwp.  Mark it as not
7016         stopped after actually resuming it.
7017         (linux_handle_syscall_trap): Mark the lwp as not stopped after
7018         resuming it.
7019         (wait_lwp): Mark the lwp as stopped here.
7020         (stop_wait_callback): Mark the lwp as not stopped right after
7021         resuming it.  Don't mark lwps as stopped here.
7022         (linux_nat_filter_event): Mark the lwp as stopped earlier.
7023         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7024
7025 2014-05-29  Pedro Alves  <palves@redhat.com>
7026
7027         PR PR15693
7028         * infrun.c (resume): Determine how much to resume depending on
7029         whether the caller wanted a step, not whether we can hardware step
7030         the target.  Mark all threads that we intend to run as running,
7031         unless we're calling an inferior function.
7032         (normal_stop): If the thread is running an infcall, don't finish
7033         thread state.
7034         * target.c (target_resume): Don't mark threads as running here.
7035
7036 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
7037
7038         * serial.c (_initialize_serial): Remove support for
7039         the "set remotebaud" and "show remotebaud" commands.
7040         * NEWS: Add entry documenting the removal of that command.
7041
7042 2014-05-28  Yao Qi  <yao@codesourcery.com>
7043
7044         * charset.c: Fix typo in comments.
7045
7046 2014-05-27  Gary Benson  <gbenson@redhat.com>
7047
7048         * utils.c (internal_vproblem): Prompt for a bug report.
7049
7050 2014-05-26  Andy Wingo  <wingo@igalia.com>
7051
7052         * guile/scm-arch.c (arscm_mark_arch_smob):
7053         * guile/scm-block.c (bkscm_mark_block_smob)
7054         (bkscm_mark_block_syms_progress_smob):
7055         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7056         * guile/scm-exception.c (exscm_mark_exception_smob):
7057         * guile/scm-frame.c (frscm_mark_frame_smob):
7058         * guile/scm-iterator.c (itscm_mark_iterator_smob):
7059         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7060         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7061         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7062         (ppscm_mark_pretty_printer_worker_smob):
7063         * guile/scm-symbol.c (syscm_mark_symbol_smob):
7064         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7065         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7066         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7067         mark functions.
7068         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7069         function.
7070
7071 2014-05-26  Andy Wingo  <wingo@igalia.com>
7072             Doug Evans  <xdje42@gmail.com>
7073
7074         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7075         empty_base_class.  All uses updated.
7076         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7077         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7078         Adapt all callers.
7079         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7080         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7081         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7082         (gdbscm_gsmob_has_property_p, add_property_name)
7083         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7084         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7085         (gdb-object-has-property?, gdb-object-properties): Remove.
7086         (gdb-object-kind): Renamed from gsmob-kind.
7087
7088 2014-05-26  Andy Wingo  <wingo@igalia.com>
7089
7090         * configure.ac (try_guile_versions): Allow building with guile 2.2.
7091         * configure: Regenerate.
7092
7093 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
7094
7095         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7096
7097 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
7098
7099         * record-btrace.c (record_btrace_allow_memory_access): Remove.
7100         (replay_memory_access_read_only, replay_memory_access_read_write)
7101         (replay_memory_access_types, replay_memory_access)
7102         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7103         (cmd_set_record_btrace, cmd_show_record_btrace)
7104         (cmd_show_replay_memory_access): New.
7105         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7106         (record_btrace_remove_breakpoint): Replace
7107         record_btrace_allow_memory_access with replay_memory_access.
7108         (_initialize_record_btrace): Add commands.
7109         * NEWS: Announce it.
7110
7111 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7112
7113         * aarch64-linux-nat.c (asm/ptrace.h): Include.
7114
7115 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7116
7117         * MAINTAINERS (Write After Approval): Move self back from
7118         paper trail.
7119
7120 2014-05-22  Pedro Alves  <palves@redhat.com>
7121
7122         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7123         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7124         (disable_randomization, enum exec_direction_kind)
7125         (execution_direction, stop_registers, start_remote)
7126         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7127         (wait_for_inferior, normal_stop, get_last_target_status)
7128         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7129         (insert_step_resume_breakpoint_at_sal)
7130         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7131         (set_step_info, print_stop_event, signal_stop_state)
7132         (signal_print_state, signal_pass_state, signal_stop_update)
7133         (signal_print_update, signal_pass_update)
7134         (update_signals_program_target, clear_exit_convenience_vars)
7135         (displaced_step_dump_bytes, update_observer_mode)
7136         (signal_catch_update, gdb_signal_from_command): Move
7137         declarations ...
7138         * infrun.h: ... to this new file.
7139         * amd64-tdep.c: Include infrun.h.
7140         * annotate.c: Include infrun.h.
7141         * arch-utils.c: Include infrun.h.
7142         * arm-linux-tdep.c: Include infrun.h.
7143         * arm-tdep.c: Include infrun.h.
7144         * break-catch-sig.c: Include infrun.h.
7145         * breakpoint.c: Include infrun.h.
7146         * common/agent.c: Include infrun.h instead of inferior.h.
7147         * corelow.c: Include infrun.h.
7148         * event-top.c: Include infrun.h.
7149         * go32-nat.c: Include infrun.h.
7150         * i386-tdep.c: Include infrun.h.
7151         * inf-loop.c: Include infrun.h.
7152         * infcall.c: Include infrun.h.
7153         * infcmd.c: Include infrun.h.
7154         * infrun.c: Include infrun.h.
7155         * linux-fork.c: Include infrun.h.
7156         * linux-nat.c: Include infrun.h.
7157         * linux-thread-db.c: Include infrun.h.
7158         * monitor.c: Include infrun.h.
7159         * nto-tdep.c: Include infrun.h.
7160         * procfs.c: Include infrun.h.
7161         * record-btrace.c: Include infrun.h.
7162         * record-full.c: Include infrun.h.
7163         * remote-m32r-sdi.c: Include infrun.h.
7164         * remote-mips.c: Include infrun.h.
7165         * remote-notif.c: Include infrun.h.
7166         * remote-sim.c: Include infrun.h.
7167         * remote.c: Include infrun.h.
7168         * reverse.c: Include infrun.h.
7169         * rs6000-tdep.c: Include infrun.h.
7170         * s390-linux-tdep.c: Include infrun.h.
7171         * solib-irix.c: Include infrun.h.
7172         * solib-osf.c: Include infrun.h.
7173         * solib-svr4.c: Include infrun.h.
7174         * target.c: Include infrun.h.
7175         * top.c: Include infrun.h.
7176         * windows-nat.c: Include infrun.h.
7177         * mi/mi-interp.c: Include infrun.h.
7178         * mi/mi-main.c: Include infrun.h.
7179         * python/py-threadevent.c: Include infrun.h.
7180
7181 2014-05-22  Pedro Alves  <palves@redhat.com>
7182
7183         * infrun.c (handle_inferior_event): Store the exit code for
7184         --return-child-result here, instead of ...
7185         (print_exited_reason): ... here.
7186
7187 2014-05-21  Pedro Alves  <palves@redhat.com>
7188
7189         PR gdb/13860
7190         * gdbthread.h (struct thread_control_state): New field
7191         `command_interp'.
7192         * infrun.c (follow_fork): Copy the new thread control field to the
7193         child fork thread.
7194         (clear_proceed_status_thread): Clear the new thread control field.
7195         (proceed): Set the new thread control field.
7196         * interps.h (command_interp): Declare.
7197         * interps.c (command_interpreter): New global.
7198         (command_interp): New function.
7199         (interp_exec): Set `command_interpreter' while here.
7200         * cli-out.c (cli_uiout_dtor): New function.
7201         (cli_ui_out_impl): Install it.
7202         * mi/mi-interp.c: Include cli-out.h.
7203         (mi_cmd_interpreter_exec): Add comment.
7204         (restore_current_uiout_cleanup): New function.
7205         (ui_out_free_cleanup): New function.
7206         (mi_on_normal_stop): If finishing an execution command started by
7207         a CLI command, or any kind of breakpoint-like event triggered,
7208         print the stop event to the output (CLI) stream.
7209         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7210
7211 2014-05-21  Pedro Alves  <palves@redhat.com>
7212
7213         * cli/cli-cmds.c (list_command): Handle the first "list" after the
7214         current source line having changed.
7215         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7216         * infrun.c (normal_stop): Adjust call to
7217         set_current_sal_from_frame.
7218         * source.c (clear_lines_listed_range): New function.
7219         (set_current_source_symtab_and_line, identify_source_line): Clear
7220         the lines listed range.
7221         (line_info): Handle the first "info line" after the current source
7222         line having changed.
7223         * stack.c (print_stack_frame): Remove center handling.
7224         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
7225         center sal.line.
7226
7227 2014-05-21  Pedro Alves  <palves@redhat.com>
7228
7229         * inf-child.c (inf_child_mourn_inferior): New function.
7230         * inf-child.h (inf_child_mourn_inferior): New declaration.
7231         * darwin-nat.c (darwin_mourn_inferior): Use
7232         inf_child_mourn_inferior.
7233         * gnu-nat.c (gnu_mourn_inferior): Likewise.
7234         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7235         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7236         * nto-procfs.c (procfs_mourn_inferior): Likewise.
7237         * windows-nat.c (windows_mourn_inferior): Likewise.
7238
7239 2014-05-21  Doug Evans  <xdje42@gmail.com>
7240
7241         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7242
7243 2014-05-21  Doug Evans  <xdje42@gmail.com>
7244
7245         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7246         (gdbscm_out_of_range_error): Ditto.
7247         (gdbscm_memory_error): Ditto.
7248         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7249         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7250         (gdbscm_out_of_range_error): Update.
7251         (gdbscm_memory_error): Update.
7252         (gdbscm_scm_to_target_string_unsafe): Delete.
7253
7254 2014-05-21  Pedro Alves  <palves@redhat.com>
7255
7256         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7257         globals.
7258         (inf_child_open_target): New function.
7259         (inf_child_open): Use inf_child_open_target to push the target
7260         instead of erroring out.
7261         (inf_child_disconnect, inf_child_close)
7262         (inf_child_maybe_unpush_target): New functions.
7263         (inf_child_target): Install inf_child_disconnect and
7264         inf_child_close.  Store a pointer to the returned object.
7265         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7266         declarations.
7267         * target.c (auto_connect_native_target): New global.
7268         (show_default_run_target): New function.
7269         (find_default_run_target): Return NULL if automatically connecting
7270         to the native target is disabled.
7271         (_initialize_target): Install set/show auto-connect-native-target.
7272         * NEWS: Mention "set auto-connect-native-target", and "target
7273         native".
7274         * linux-nat.c (super_close): New global.
7275         (linux_nat_close): Call super_close.
7276         (linux_nat_add_target): Store a pointer to the base class's
7277         to_close method.
7278         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7279         inf_child_maybe_unpush.
7280         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7281         already pushed.
7282         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7283         the inferior.  Use inf_child_maybe_unpush_target.
7284         (inf_ttrace_attach): Don't push the target if it is already
7285         pushed.
7286         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7287         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7288         after mourning the inferior.  Use inf_child_maybe_unpush_target.
7289         (darwin_attach_pid): Don't push the target if it is already
7290         pushed.
7291         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7292         mourning the inferior.  Use inf_child_maybe_unpush_target.
7293         (gnu_detach): Use inf_child_maybe_unpush_target.
7294         * go32-nat.c (go32_create_inferior): Don't push the target if it
7295         is already pushed.
7296         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7297         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7298         (procfs_open): Rename to ...
7299         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
7300         comments.  Can target_preopen before changing node.  Call
7301         inf_child_open_target to push the target explicitly.
7302         (procfs_attach): Don't push the target if it is already pushed.
7303         (procfs_detach): Use inf_child_maybe_unpush_target.
7304         (procfs_create_inferior): Don't push the target if it is already
7305         pushed.
7306         (nto_native_ops): New global.
7307         (procfs_open): Reimplement.
7308         (procfs_native_open): New function.
7309         (init_procfs_targets): Install procfs_native_open as to_open of
7310         "target native".  Store a pointer to the "native" target in
7311         nto_native_ops.
7312         * procfs.c (procfs_attach): Don't push the target if it is already
7313         pushed.
7314         (procfs_detach): Use inf_child_maybe_unpush_target.
7315         (procfs_mourn_inferior): Only unpush the target after mourning the
7316         inferior.  Use inf_child_maybe_unpush_target.
7317         (procfs_init_inferior): Don't push the target if it is already
7318         pushed.
7319         * windows-nat.c (do_initial_windows_stuff): Don't push the target
7320         if it is already pushed.
7321
7322 2014-05-21  Pedro Alves  <palves@redhat.com>
7323
7324         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7325         and "procfs" targets are now called "native" instead.
7326
7327 2014-05-21  Pedro Alves  <palves@redhat.com>
7328
7329         * go32-nat.c (go32_open): Delete.
7330         (go32_target): Don't override the to_open method.
7331
7332 2014-05-21  Pedro Alves  <palves@redhat.com>
7333
7334         * nto-procfs.c (procfs_can_run): New function.
7335         (nto_procfs_ops): New global.
7336         (init_procfs_targets): New, based on procfs_target.  Install
7337         "target native" in addition to "target procfs".
7338         (_initialize_procfs): Call init_procfs_targets instead of adding
7339         the target here.
7340
7341 2014-05-21  Pedro Alves  <palves@redhat.com>
7342
7343         * windows-nat.c (windows_target): Don't override to_shortname,
7344         to_longname or to_doc.
7345
7346 2014-05-21  Pedro Alves  <palves@redhat.com>
7347
7348         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7349         to_doc.
7350
7351 2014-05-21  Pedro Alves  <palves@redhat.com>
7352
7353         * darwin-nat.c (_initialize_darwin_inferior): Don't override
7354         to_shortname, to_longname or to_doc.
7355
7356 2014-05-21  Pedro Alves  <palves@redhat.com>
7357
7358         * go32-nat.c (go32_target): Don't override to_shortname,
7359         to_longname or to_doc.
7360
7361 2014-05-21  Pedro Alves  <palves@redhat.com>
7362
7363         * inf-child.c (inf_child_open): Remove mention of "child".
7364         (inf_child_target): Rename target to "native" instead of "child".
7365
7366 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7367
7368         * Makefile.in (SFILES): Delete "regset.c".
7369         (COMMON_OBS): Delete "regset.o".
7370         * regset.c: Remove.
7371         * regset.h (regset_alloc): Delete prototype.
7372
7373 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7374
7375         * sparc-linux-tdep.c (sparc32_linux_gregset)
7376         (sparc32_linux_fpregset): New static regset structures.
7377         (sparc32_linux_init_abi): Drop dynamic regset allocations.
7378         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7379         'fpregset' fields.
7380         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7381         (sparc64_linux_fpregset): New static regset structures.
7382         (sparc64_linux_init_abi): Drop dynamic regset allocations.
7383         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7384         New static regset structures.
7385         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7386         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7387         New static regset structures.
7388         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7389         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7390         New static regset structures.
7391         (sparc64obsd_init_abi): Drop dynamic regset allocations.
7392         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7393         New static regset structures.
7394         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7395
7396 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7397
7398         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7399         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7400         register maps ("regmaps") from "*regset" to "*regmap".  Do this
7401         for all regmap types and variables.
7402         * sparc-linux-tdep.c (sparc32_linux_step_trap)
7403         (sparc32_linux_supply_core_gregset)
7404         (sparc32_linux_collect_core_gregset)
7405         (sparc32_linux_supply_core_fpregset)
7406         (sparc32_linux_collect_core_fpregset): Likewise.
7407         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7408         (sparc_gregmap, sparc_fpregmap): ... these.
7409         (sparc_supply_gregset, sparc_collect_gregset)
7410         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7411         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7412         (_initialize_sparc_nat): Rename regmaps.
7413         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7414         (sparc_gregmap, sparc_fpregmap): ... these.
7415         (sparc_supply_gregset, sparc_collect_gregset)
7416         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7417         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7418         Rename macros to...
7419         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7420         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7421         Likewise.
7422         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7423         Rename to...
7424         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7425         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7426         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7427         regmaps.
7428         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7429         (sparc32_bsd_fpregset): Rename to...
7430         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7431         (sparc32_bsd_fpregmap): ... these.
7432         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7433         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7434         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7435         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7436         (struct sparc_gregmap, struct sparc_fpregmap)
7437         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7438         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7439         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7440         (sparc32_supply_regset, sparc32_collect_gregset)
7441         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7442         prototypes.
7443         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7444         (sparc64_linux_ptrace_gregmap): ... this.
7445         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7446         (_initialize_sparc64_linux_nat): Rename regmaps.
7447         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7448         (sparc64_linux_core_gregmap): ... this.
7449         (sparc64_linux_supply_core_gregset)
7450         (sparc64_linux_collect_core_gregset)
7451         (sparc64_linux_supply_core_fpregset)
7452         (sparc64_linux_collect_core_fpregset): Rename regmaps.
7453         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7454         (sparc64_sol2_fpregset): Rename to...
7455         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7456         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7457         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7458         regmaps.
7459         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7460         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7461         (sparc64_bsd_fpregset): Rename to...
7462         (struct sparc_gregmap, sparc64_sol2_gregmap)
7463         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7464         (sparc64_bsd_fpregmap): ... these.
7465         (sparc64_supply_gregset, sparc64_collect_gregset)
7466         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7467         prototypes.
7468         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7469         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7470         (sparc64fbsd_gregmap): ... this.
7471         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7472         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7473         Rename regmaps.
7474         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7475         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7476         (sparc64nbsd_collect_fpregset): Likewise.
7477         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7478         (sparc64nbsd_gregmap): ... this.
7479         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7480         regmaps.
7481         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7482         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7483         (sparc64obsd_gregmap): ... this.
7484         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7485         regmaps.
7486         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7487         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7488         (sparc32nbsd_gregmap): ... this.
7489         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7490         regmaps.
7491
7492 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7493
7494         * score-tdep.c (score7_linux_gregset): New static regset
7495         structure.
7496         (score7_linux_regset_from_core_section): Remove dynamic regset
7497         allocation.
7498         (score_gdbarch_init): Drop allocation of tdep structure.
7499         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7500
7501 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7502
7503         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7504         regset structures.
7505         (am33_regset_from_core_section): Remove dynamic regset
7506         allocations.
7507
7508 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7509
7510         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7511         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7512         structures.
7513         (mips_linux_regset_from_core_section): Remove dynamic regset
7514         allocations.
7515         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7516         'gregset64', 'fpregset', and 'fpregset64'.
7517         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7518         deleted tdep fields.
7519
7520 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7521
7522         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7523         regset structures.
7524         (amd64_regset_from_core_section): Remove dynamic regset
7525         allocations.
7526         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7527         structure.
7528         (amd64obsd_regset_from_core_section): Remove dynamic regset
7529         allocation.
7530         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7531         Likewise.
7532         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7533         x86-common regset supply function.
7534         * i386-tdep.c (i386_collect_gregset): Make static.
7535         (i386_gregset): New global regset structure.
7536         (i386_fpregset, i386_xstateregset): New static regset structures.
7537         (i386_regset_from_core_section): Remove dynamic regset
7538         allocations.
7539         (i386_gdbarch_init): Remove initialization of tdep fields
7540         'gregset', 'fpregset', and 'xstateregset'.
7541         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7542         'fpregset', and 'xstateregset'.
7543         (i386_collect_gregset): Remove prototype.
7544         (i386_gregset): New declaration.
7545         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7546         structure.
7547         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7548         allocation.
7549
7550 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7551
7552         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7553         (arm_linux_vfpregset): New static regset structures.
7554         (arm_linux_regset_from_core_section): Remove dynamic allocation of
7555         regset structures.
7556         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7557         and 'vfpregset' fields.
7558
7559 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7560
7561         * aarch64-linux-tdep.c (aarch64_linux_gregset)
7562         (aarch64_linux_fpregset): New static regset structures.
7563         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7564         of regset structures.
7565         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7566         'fpregset' fields.
7567
7568 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7569
7570         * regset.h (struct regset): Remove gdbarch field.
7571         * regset.c (regset_alloc): Drop initialization of gdbarch field.
7572         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7573         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7574         Likewise.
7575         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7576         (ppc32_linux_fpregset, ppc32_linux_vrregset)
7577         (ppc32_linux_vsxregset): Likewise.
7578         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7579         via the regcache instead of the regset.
7580         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7581         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7582         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7583         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7584         Likewise.
7585
7586 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7587
7588         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7589         Constify structures.
7590         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7591         (alphanbsd_aout_gregset): Likewise.
7592         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7593         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7594         Likewise.
7595         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7596         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7597         Likewise.
7598         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7599         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7600         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7601         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7602         * m88k-tdep.c (m88k_gregset): Likewise.
7603         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7604         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7605         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7606         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7607         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7608         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7609         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7610         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7611         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7612         Likewise.
7613         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7614         * sh-tdep.h (sh_corefile_gregset): Likewise.
7615         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7616         * vax-tdep.c (vax_gregset): Likewise.
7617
7618 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
7619
7620         Fix TLS access for -static -pthread.
7621         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7622         (try_thread_db_load_1): Initialize it.
7623         (thread_db_get_thread_local_address): Call it if LM is zero.
7624         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7625         * target.h (struct target_ops) (to_get_thread_local_address): Add
7626         load_module_addr comment.
7627
7628 2014-05-21  Pedro Alves  <palves@redhat.com>
7629
7630         * dcache.c (dcache_read_memory_partial): If reading the cache line
7631         fails, fallback to reading just the memory the caller wanted.
7632
7633 2014-05-20  Doug Evans  <dje@google.com>
7634
7635         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7636         instead of get_current_arch.
7637
7638 2014-05-20  Pedro Alves  <palves@redhat.com>
7639
7640         * NEWS: Mention that compare-sections now works with all targets.
7641
7642         * remote.c (PACKET_qCRC): New enum value.
7643         (remote_verify_memory): Don't send qCRC if the target has no
7644         execution.  Use packet_support/packet_ok.  If the target doesn't
7645         support the qCRC packet, fallback to a deep memory copy.
7646         (compare_sections_command): Say "target image" instead of "remote
7647         executable".
7648         (_initialize_remote): Add PACKET_qCRC to the list of config
7649         packets that have no associated command.  Extend comment.
7650         * target.c (simple_verify_memory, default_verify_memory): New
7651         function.
7652         * target.h (struct target_ops) <to_verify_memory>: Default to
7653         default_verify_memory.
7654         (simple_verify_memory): New declaration.
7655         * target-delegates.c: Regenerate.
7656
7657 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
7658
7659         * record-btrace.c (record_btrace_step_thread): Check for empty history.
7660
7661 2014-05-20  Hui Zhu  <hui@codesourcery.com>
7662             Yao Qi  <yao@codesourcery.com>
7663
7664         PR backtrace/16558
7665         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7666         and change address of sp and pc.
7667
7668 2014-05-19  Tom Tromey  <tromey@redhat.com>
7669
7670         * gdbtypes.c (rank_function): Use XNEWVEC.
7671         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7672
7673 2014-05-19  Doug Evans  <dje@google.com>
7674
7675         * dwarf2read.c (build_type_psymtabs_1): Renamed from
7676         build_type_unit_groups and moved closer to only caller.  Remove
7677         arguments.  All references updated.  Remove outdated .gdb_index
7678         comment.
7679         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7680         build_type_psymtabs_1.
7681
7682 2014-05-19  Doug Evans  <dje@google.com>
7683
7684         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7685         n_type_unit_groups, all_type_unit_groups.  All uses removed.
7686         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7687         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
7688         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
7689         (add_type_unit_group_to_table): Delete.
7690
7691 2014-05-19  Doug Evans  <dje@google.com>
7692
7693         * eval.c (evaluate_subexp_standard): Add some comments.
7694
7695 2014-05-17  Doug Evans  <xdje42@gmail.com>
7696
7697         * progspace.c (remove_program_space): Delete, unused.
7698         * progspace.h (remove_program_space): Ditto.
7699
7700 2014-05-17  Doug Evans  <xdje42@gmail.com>
7701
7702         * inferior.c (prune_inferiors): Fix comment.
7703         (remove_inferior_command): Call prune_program_spaces.
7704
7705 2014-05-16  Doug Evans  <dje@google.com>
7706
7707         New command line option -D.
7708         * NEWS: Mention it.
7709         * main.c (set_gdb_data_directory): New function.
7710         (captured_main): Recognize -D.  Flag error for --data-directory "".
7711         Call set_gdb_data_directory.
7712         (print_gdb_help): Print --data-directory, -D.
7713         * main.h (set_gdb_data_directory): Declare.
7714         * top.c (staged_gdb_datadir): New static global.
7715         (set_gdb_datadir): Call set_gdb_data_directory
7716         (show_gdb_datadir): New function.
7717         (init_main): Update init of data-directory parameter.
7718
7719 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
7720
7721         Import the "dirfd" gnulib module.
7722         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7723         * gnulib/aclocal.m4: Update.
7724         * gnulib/config.in: Update.
7725         * gnulib/configure: Update.
7726         * gnulib/import/Makefile.am: Update.
7727         * gnulib/import/Makefile.in: Update.
7728         * gnulib/import/dirfd.c: New.
7729         * gnulib/import/m4/dirfd.m4: New.
7730         * gnulib/import/m4/gnulib-cache.m4: Update.
7731         * gnulib/import/m4/gnulib-comp.m4: Update.
7732
7733 2014-05-16  Pierre Muller  <muller@sourceware.org>
7734             Yao Qi  <yao@codesourcery.com>
7735
7736         * valprint.c (print_wchar): Move the code on checking whether
7737         W is a printable wide char to the default branch of switch
7738         statement below.  Call wchar_printable instead of gdb_iswprint.
7739
7740 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
7741
7742         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7743         ldr.w and ldrd instructions.
7744
7745 2014-05-15  Doug Evans  <dje@google.com>
7746
7747         * dwarf2read.c (read_structure_type): Delete outdated comments.
7748
7749 2014-05-14  Tom Tromey  <tromey@redhat.com>
7750
7751         * macrocmd.c (print_macro_definition): Reindent.
7752
7753 2014-05-13  Doug Evans  <xdje42@gmail.com>
7754
7755         * python/py-cmd.c (cmdpy_completer): Add comment.
7756         (completers): Make const.
7757
7758 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
7759
7760         * infrun.c (resume): Remove should_resume (unused).  Move up
7761         declaration of resume_ptid.
7762
7763 2014-05-13  Tom Tromey  <tromey@redhat.com>
7764
7765         * language.h (unop_type_check): Remove.
7766         (binop_type_check): Don't declare.
7767
7768 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
7769
7770         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7771         call to regcache_raw_collect.
7772
7773 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
7774
7775         * mi/mi-console.c (mi_console_raw_packet): Use the value from
7776         mi_console->quote as the quoting character.
7777
7778 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
7779
7780         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7781
7782 2014-04-29  Tom Tromey  <tromey@redhat.com>
7783
7784         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7785         "show debug varobj".
7786
7787 2014-05-07  Kyle McMartin  <kyle@redhat.com>
7788
7789         Pushed by Joel Brobecker  <brobecker@adacore.com>.
7790         * aarch64-tdep.c (aarch64_software_single_step): New function.
7791         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
7792         with aarch64_software_single_step.
7793
7794 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
7795
7796         GDB 7.7.1 released.
7797
7798 2014-05-05  Keith Seitz  <keiths@redhat.com>
7799
7800         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
7801         variable or history value is successfully parsed.
7802
7803 2014-05-05  Yao Qi  <yao@codesourcery.com>
7804             Pedro Alves  <palves@redhat.com>
7805
7806         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
7807         address of blocks that intersects the requested range.  Trim
7808         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
7809         sections.
7810         * ctf.c (ctf_xfer_partial): Likewise.
7811
7812 2014-05-05  Yao Qi  <yao@codesourcery.com>
7813
7814         * printcmd.c (display_command): Remove the check to
7815         target_has_execution.
7816
7817 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
7818
7819         * ppcobsd-nat.c: Include "obsd-nat.h".
7820         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
7821         add_target.
7822         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7823
7824 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
7825
7826         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
7827         and 16-bit signed and unsigned arguments.  Update comment.
7828         (stap_parse_probe_arguments): Extend code to handle such
7829         arguments.  Use warning instead of complaint to notify about
7830         unrecognized bitness.
7831
7832 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
7833
7834         PR breakpoints/16889
7835         * stap-probe.c (stap_parse_probe_arguments): Simplify
7836         check for non-prefixed probes (i.e., probes whose
7837         arguments do not start with "N@").  Always set the
7838         argument type to a sane value.
7839
7840 2014-05-01  David Taylor  <dtaylor@emc.com>
7841
7842         * remote.c (compare_sections_command): Add -r option to compare
7843         all loadable read-only sections.
7844
7845 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
7846
7847         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
7848         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
7849         Update all callers.
7850         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
7851         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
7852         Remove unused CORE_ADDR argument.  Update all callers.
7853
7854 2014-04-29  Pedro Alves  <palves@redhat.com>
7855
7856         * remote.c (struct packet_config) <detect>: Extend comment.
7857         (add_packet_config_cmd): Don't set the config's detect or support
7858         fields here.
7859         (init_all_packet_configs): Also initialize the config's 'detect'
7860         field.
7861         (reset_all_packet_configs_support): New function.
7862         (remote_open_1): Call reset_all_packet_configs_support instead of
7863         init_all_packet_configs.
7864         (_initialize_remote): Initialize all packet configs.  Assert that
7865         all packets have an associated command, except a few known
7866         outliers.
7867
7868 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
7869
7870         * dwarf2read.c (read_subrange_type): Handle dynamic
7871         DW_AT_lower_bound attributes.
7872
7873 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
7874
7875         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
7876         dynamic bounds before computing its upper bound.
7877         (ada_discrete_type_low_bound): Same as above with the lower bound.
7878
7879 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
7880
7881         * dwarf2read.c (is_dynamic_type): Return true for dynamic
7882         range types.  Adjust the array handling implementation to
7883         take advantage of this change.
7884         (resolve_dynamic_range): New function, mostly extracted from
7885         resolve_dynamic_bounds.
7886         (resolve_dynamic_array): New function, mostly extracted from
7887         resolve_dynamic_bounds.
7888         (resolve_dynamic_bounds): Delete.
7889         (resolve_dynamic_type): Reimplement.  Add handling of
7890         TYPE_CODE_RANGE types.
7891
7892 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
7893
7894         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
7895         handling of parallel ___XA types.
7896
7897 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
7898
7899         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
7900         unnecessary second call to static_unwrap_type.
7901
7902 2014-04-27  Hui Zhu  <hui@codesourcery.com>
7903
7904         * stack.c (print_frame_info): Call do_gdb_disassembly with
7905         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
7906
7907 2014-04-26  Doug Evans  <xdje42@gmail.com>
7908
7909         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
7910
7911 2014-04-25  Pedro Alves  <palves@redhat.com>
7912
7913         PR server/16255
7914         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
7915         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
7916         and newline from built string.
7917         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
7918         (linux_ptrace_attach_fail_reason): ... this.
7919         * linux-nat.c (linux_nat_attach): Adjust to use
7920         linux_ptrace_attach_fail_reason.
7921
7922 2014-04-25  Pedro Alves  <palves@redhat.com>
7923
7924         * remote.c (struct remote_state): Remove multi_process_aware,
7925         non_stop_aware, cond_tracepoints, cond_breakpoints,
7926         breakpoint_commands, fast_tracepoints, static_tracepoints,
7927         install_in_trace, disconnected_tracing,
7928         enable_disable_tracepoints, string_tracing, and
7929         augmented_libraries_svr4_read fields.
7930         (remote_multi_process_p): Move further below in the file.
7931         (struct packet_config): Add comments.
7932         (update_packet_config): Delete function.
7933         (show_packet_config_cmd): Use packet_config_support.
7934         (add_packet_config_cmd): Use NULL as set callback.
7935         (packet_ok): "set remote foo-packet"-style commands no longer
7936         change config->supported -- adjust.
7937         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
7938         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
7939         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
7940         (PACKET_QNonStop, PACKET_multiprocess_feature)
7941         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
7942         (PACKET_DisconnectedTracing_feature)
7943         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
7944         (set_remote_protocol_packet_cmd): Delete function.
7945         (packet_config_support, packet_support): New functions.
7946         (set_remote_protocol_Z_packet_cmd): Don't call
7947         update_packet_config.
7948         (remote_query_attached, remote_pass_signals)
7949         (remote_program_signals, remote_threads_info)
7950         (remote_threads_extra_info, remote_start_remote): Use
7951         packet_support.
7952         (remote_start_remote): Use packet_config_support and
7953         packet_support.
7954         (init_all_packet_configs): Set all packets to unknown support,
7955         instead of calling update_packet_config.
7956         (remote_check_symbols): Use packet_support.
7957         (remote_supported_packet): Unconditionally set the packet config's
7958         support status.
7959         (remote_multi_process_feature, remote_non_stop_feature)
7960         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
7961         (remote_breakpoint_commands_feature)
7962         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
7963         (remote_install_in_trace_feature)
7964         (remote_disconnected_tracing_feature)
7965         (remote_enable_disable_tracepoint_feature)
7966         (remote_string_tracing_feature)
7967         (remote_augmented_libraries_svr4_read_feature): Delete functions.
7968         (remote_protocol_features): Adjust to use remote_supported_packet
7969         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
7970         "ConditionalTracepoints", "ConditionalBreakpoints",
7971         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
7972         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
7973         "EnableDisableTracepoints", and "tracenz".
7974         (remote_query_supported): Use packet_support.
7975         (remote_open_1): Adjust.
7976         (extended_remote_attach_1): Use packet_support.  Switch on the
7977         result of packet_ok instead of checking whether the packet ended
7978         up disabled.
7979         (remote_vcont_resume): Use packet_support.
7980         (remote_resume, remote_stop_ns, fetch_register_using_p)
7981         (remote_prepare_to_store, store_register_using_P)
7982         (check_binary_download, remote_write_bytes): Use packet_support.
7983         (remote_vkill): Use packet_support.  Switch on the result of
7984         packet_ok instead of checking whether the packet ended up
7985         disabled.
7986         (extended_remote_supports_disable_randomization): Use
7987         packet_support.
7988         (extended_remote_run): Switch on the result of packet_ok instead
7989         of checking whether the packet ended up disabled.
7990         (remote_insert_breakpoint, remote_remove_breakpoint)
7991         (remote_insert_watchpoint, remote_remove_watchpoint)
7992         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
7993         packet_support.
7994         (remote_search_memory): Use packet_config_support.
7995         (remote_get_thread_local_address, remote_get_tib_address)
7996         (remote_hostio_send_command, remote_can_execute_reverse): Use
7997         packet_support.
7998         (remote_supports_cond_tracepoints)
7999         (remote_supports_cond_breakpoints)
8000         (remote_supports_fast_tracepoints)
8001         (remote_supports_static_tracepoints)
8002         (remote_supports_install_in_trace)
8003         (remote_supports_enable_disable_tracepoint)
8004         (remote_supports_string_tracing)
8005         (remote_can_run_breakpoint_commands): Rewrite, checking whether
8006         the packet config says the feature is enabled or disabled.
8007         (remote_download_tracepoint, remote_trace_set_readonly_regions)
8008         (remote_get_trace_status): Use packet_support.
8009         (remote_set_disconnected_tracing): Adjust to check whether the
8010         feature is enabled with packet_support.
8011         (remote_set_trace_buffer_size, remote_use_agent)
8012         (remote_can_use_agent, remote_supports_btrace): Use
8013         packet_support.
8014         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8015         Use packet_config_support.
8016         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8017         the packet config says the feature is enabled or disabled.
8018         (set_range_stepping): Use packet_support.
8019
8020 2014-04-25  Tom Tromey  <tromey@redhat.com>
8021
8022         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8023         argument.
8024
8025 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
8026
8027         * NEWS: Mention support for C99 variable length arrays.
8028
8029 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
8030
8031         * ada-lang.c (standard_exc): Expand introductory comment.
8032
8033 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
8034             Walfred Tedeschi  <walfred.tedeschi@intel.com>
8035
8036         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8037         AVX512 registers.
8038         (amd64_linux_read_description): Add code to handle AVX512 xstate
8039         mask and return respective tdesc.
8040         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8041         and features/i386/x32-avx512-linux.c.
8042         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8043         (amd64_linux_core_read_description): Add code to handle AVX512
8044         xstate mask and return respective tdesc.
8045         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8046         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8047         calculation.
8048         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8049         (tdesc_amd64_avx512_linux): New prototype.
8050         (tdesc_x32_avx512_linux): Likewise.
8051         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8052         features/i386/x32-avx512.c.
8053         (amd64_ymm_avx512_names): New register names for pseudo
8054         registers YMM16-31.
8055         (amd64_ymmh_avx512_names): New register names for raw registers
8056         YMMH16-31.
8057         (amd64_k_names): New register names for K registers.
8058         (amd64_zmmh_names): New register names for ZMM raw registers.
8059         (amd64_zmm_names): New registers names for ZMM pseudo registers.
8060         (amd64_xmm_avx512_names): New register names for XMM16-31
8061         registers.
8062         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8063         registers.
8064         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8065         if feature is present.
8066         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8067         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8068         (AMD64_NUM_REGS): Adjust to new number of registers.
8069         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8070         registers supplied via XSTATE by AVX512 registers.
8071         (i386_linux_read_description): Add case for AVX512.
8072         * i386-linux-tdep.c: Include i386-avx512-linux.c.
8073         (i386_linux_gregset_reg_offset): Add AVX512 registers.
8074         (i386_linux_core_read_description): Add case for AVX512.
8075         (i386_linux_init_abi): Install supported register note section
8076         for AVX512.
8077         (_initialize_i386_linux_tdep): Add call to tdesc init function for
8078         AVX512.
8079         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8080         registers to be number of zmm7h + 1.
8081         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8082         * i386-tdep.c: Include features/i386/i386-avx512.c.
8083         (i386_zmm_names): Add ZMM pseudo register names array.
8084         (i386_zmmh_names): Add ZMM raw register names array.
8085         (i386_k_names): Add K raw register names array.
8086         (num_lower_zmm_regs): Add constant for the number of lower ZMM
8087         registers. AVX512 has 16 more ZMM registers than there are YMM
8088         registers.
8089         (i386_zmmh_regnum_p): Add function to look up register number of
8090         ZMM raw registers.
8091         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8092         (i386_k_regnum_p): Likewise for K raw registers.
8093         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8094         registers added by AVX512.
8095         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8096         registers added by AVX512.
8097         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8098         added by AVX512.
8099         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8100         (i386_pseudo_register_name): Add ZMM pseudo registers.
8101         (i386_zmm_type): Construct and return vector registers type for ZMM
8102         registers.
8103         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8104         ZMM0-31 pseudo registers and K registers.
8105         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8106         and YMM16-31 registers from register cache.
8107         (i386_pseudo_register_write): Add code to write  K, ZMM and
8108         YMM16-31 registers.
8109         (i386_register_reggroup_p): Add code to include/exclude AVX512
8110         registers in/from respective register groups.
8111         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8112         registers if feature is present in xcr0.
8113         (i386_gdbarch_init): Add code to initialize AVX512 feature
8114         variables in tdep structure, wire in pseudo registers and call
8115         initialize_tdesc_i386_avx512.
8116         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8117         variables.
8118         (i386_regnum): Add AVX512 registers.
8119         (I386_SSE_NUM_REGS): New define for number of SSE registers.
8120         (I386_AVX_NUM_REGS): Likewise for AVX registers.
8121         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8122         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8123         512 bits wide.
8124         (i386_xmm_avx512_regnum_p): New prototype for register look up.
8125         (i386_ymm_avx512_regnum_p): Likewise.
8126         (i386_k_regnum_p): Likewise.
8127         (i386_zmm_regnum_p): Likewise.
8128         (i386_zmmh_regnum_p): Likewise.
8129         * i387-tdep.c : Update year in copyright notice.
8130         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8131         XSAVE buffer.
8132         (XSAVE_YMM_AVX512_ADDR): New macro.
8133         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8134         XSAVE buffer.
8135         (XSAVE_XMM_AVX512_ADDR): New macro.
8136         (xsave_avx512_k_offset): New table for K register offsets in
8137         XSAVE buffer.
8138         (XSAVE_AVX512_K_ADDR): New macro.
8139         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8140         in XSAVE buffer.
8141         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8142         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8143         buffer.
8144         (i387_collect_xsave): Add code to collect AVX512 registers from
8145         XSAVE buffer.
8146         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8147         of XMM16-31 registers.
8148         (I387_NUM_K_REGS): New define for number of K registers.
8149         (I387_K0_REGNUM): New define for K0 register number.
8150         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8151         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8152         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8153         registers.
8154         (I387_YMM16H_REGNUM): New define for YMM16H register number.
8155         (I387_XMM16_REGNUM): New define for XMM16 register number.
8156         (I387_YMM0_REGNUM): New define for YMM0 register number.
8157         (I387_KEND_REGNUM): New define for last K register number.
8158         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8159         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8160         number.
8161         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8162         number.
8163         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8164         size.
8165         * features/Makefile: Add AVX512 related files.
8166         * features/i386/32bit-avx512.xml: New file.
8167         * features/i386/64bit-avx512.xml: Likewise.
8168         * features/i386/amd64-avx512-linux.c: Likewise.
8169         * features/i386/amd64-avx512-linux.xml: Likewise.
8170         * features/i386/amd64-avx512.c: Likewise.
8171         * features/i386/amd64-avx512.xml: Likewise.
8172         * features/i386/i386-avx512-linux.c: Likewise.
8173         * features/i386/i386-avx512-linux.xml: Likewise.
8174         * features/i386/i386-avx512.c: Likewise.
8175         * features/i386/i386-avx512.xml: Likewise.
8176         * features/i386/x32-avx512-linux.c: Likewise.
8177         * features/i386/x32-avx512-linux.xml: Likewise.
8178         * features/i386/x32-avx512.c: Likewise.
8179         * features/i386/x32-avx512.xml: Likewise.
8180         * regformats/i386/amd64-avx512-linux.dat: New file.
8181         * regformats/i386/amd64-avx512.dat: Likewise.
8182         * regformats/i386/i386-avx512-linux.dat: Likewise.
8183         * regformats/i386/i386-avx512.dat: Likewise.
8184         * regformats/i386/x32-avx512-linux.dat: Likewise.
8185         * regformats/i386/x32-avx512.dat: Likewise.
8186         * NEWS: Add note about new support for AVX512.
8187
8188
8189 2014-04-23  Pedro Alves  <palves@redhat.com>
8190
8191         * breakpoint.c (insert_bp_location): Tolerate errors if the
8192         breakpoint is set in a user-loaded objfile.
8193         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
8194         location is marked shlib_disabled.  If the breakpoint is set in a
8195         user-loaded objfile is a GDB-side memory breakpoint, validate it
8196         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
8197         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
8198         flag.
8199         * mem-break.c (memory_validate_breakpoint): New function.
8200         * objfiles.c (userloaded_objfile_contains_address_p): New
8201         function.
8202         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8203         * target.h (memory_validate_breakpoint): New declaration.
8204
8205 2014-04-23  Pedro Alves  <palves@redhat.com>
8206
8207         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8208         the breakpoint is set in a shared library, only suppress
8209         errors for software breakpoints, not hardware breakpoints.
8210
8211 2014-04-22  Pedro Alves  <palves@redhat.com>
8212
8213         * infrun.c (schedlock_applies): New function, factored out from
8214         find_thread_needs_step_over.
8215         (find_thread_needs_step_over): Use it.
8216         (switch_back_to_stepped_thread): Always clear trap_expected if the
8217         step over is finished.  Return early if scheduler locking applies.
8218         Look for the stepping thread and a potential step-over thread with
8219         a single loop.
8220         (currently_stepping_or_nexting_callback): Delete.
8221
8222 2014-04-22  Nick Clifton  <nickc@redhat.com>
8223
8224         * NEWS: Mention that ARM sim now supports tracing.
8225
8226 2014-04-22  Yao Qi  <yao@codesourcery.com>
8227
8228         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8229         to ...
8230         * tracefile.c (tracefile_fetch_registers): ... it.  New
8231         function.
8232         * tracefile.h (tracefile_fetch_registers): Declare.
8233         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
8234         tracefile_fetch_registers.
8235
8236 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
8237
8238         PR gdb/14018
8239         * windows-nat.c (thread_rec): Don't display a warning when
8240         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
8241         fails for any reason, set th->suspended to -1, so that we don't
8242         try to resume such a thread.  Also, don't return NULL in these
8243         cases, to avoid completely ruin the session due to "PC register is
8244         not available" error.
8245         (do_windows_fetch_inferior_registers): Check errors in
8246         GetThreadContext call.
8247         (windows_continue): Accept an additional argument KILLED; if not
8248         zero, ignore errors in the SetThreadContext call, since the
8249         inferior was killed and is shutting down.
8250         (windows_resume, get_windows_debug_event)
8251         (windows_create_inferior, windows_mourn_inferior)
8252         (windows_kill_inferior): All callers of windows_continue changed
8253         to adjust to its new calling sequence.
8254
8255 2014-04-19  Yao Qi  <yao@codesourcery.com>
8256
8257         * ctf.c (ctf_open): Call post_create_inferior.
8258
8259 2014-04-19  Yao Qi  <yao@codesourcery.com>
8260
8261         * ctf.c (handle_id): New static variable.
8262         (ctf_open_dir): Get handle_id from bt_context_add_trace return
8263         value.  Get the declaration of event "register" and get length
8264         of field "contents".
8265
8266 2014-04-19  Yao Qi  <yao@codesourcery.com>
8267
8268         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8269
8270 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
8271
8272         * valops.c (oload_method_static): Remove unnecessary argument
8273         METHOD.  Update all callers.
8274
8275 2014-04-18  Pedro alves  <palves@redhat.com>
8276             Tom Tromey  <tromey@redhat.com>
8277
8278         PR backtrace/15558
8279         * frame.c (get_prev_frame_1): Rename to ...
8280         (get_prev_frame_always): ... this, and make extern.  Adjust.
8281         (skip_artificial_frames): Use get_prev_frame_always.
8282         (frame_unwind_caller_id, frame_pop, get_prev_frame)
8283         (get_frame_unwind_stop_reason): Adjust to rename.
8284         * frame.h (get_prev_frame_always): Declare.
8285         * inline-frame.c: Include frame.h.
8286         (inline_frame_this_id): Use get_prev_frame_always.
8287
8288 2014-04-18  Tristan Gingold  <gingold@adacore.com>
8289
8290         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8291         code by using bfd_mach_o_get_base_address.
8292
8293 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
8294
8295         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8296         (spu_ax_pseudo_register_collect): New function.
8297         (spu_ax_pseudo_register_push_stack): Likewise.
8298         (spu_dwarf_reg_to_regnum): Likewise.
8299         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
8300
8301 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
8302
8303         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8304         Replace FRAME argument with FRAME_ID.
8305         * gdbarch.c, gdbarch.h: Regenerate.
8306         * findvar.c (default_value_from_register): Add GDBARCH argument;
8307         replace FRAME by FRAME_ID.  No longer call get_frame_id.
8308         (value_from_register): Update call to gdbarch_value_from_register.
8309         * value.h (default_value_from_register): Update prototype.
8310         * s390-linux-tdep.c (s390_value_from_register): Update interface
8311         and call to default_value_from_register.
8312         * spu-tdep.c (spu_value_from_register): Likewise.
8313
8314         * findvar.c (address_from_register): Remove TYPE argument.
8315         Do not call value_from_register; use gdbarch_value_from_register
8316         with null_frame_id instead.
8317         * value.h (address_from_register): Update prototype.
8318         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8319         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8320         address_from_register interface change.
8321
8322 2014-04-17  Yao Qi  <yao@codesourcery.com>
8323
8324         * gdbtypes.h: Update comments to link to types and macros'
8325         definitions.
8326
8327 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
8328
8329         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8330
8331 2014-04-16  Keith Seitz  <keiths@redhat.com>
8332
8333         PR gdb/15827
8334         * dwarf2read.c (skip_one_die): Check that all relative-offset
8335         sibling DIEs fall within range of the current reader's buffer.
8336         (read_partial_die): Likewise.
8337
8338 2014-04-16  Keith Seitz  <keiths@redhat.com>
8339
8340         PR c++/16597
8341         * cp-namespace.c (lookup_symbol_file): If the type name of
8342         `this' is NULL, return immediately.
8343
8344 2014-04-14  Keith Seitz  <keiths@redhat.com>
8345
8346         PR c++/16253
8347         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8348         from symbol_matches_domain in symtab.c. All local callers
8349         of symbol_matches_domain updated.
8350         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8351         search STRUCT_DOMAIN.
8352         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8353         independently.  standard_lookup will do that automatically.
8354         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8355         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8356         (cp_lookup_symbol_in_namespace): Likewise.
8357         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8358         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8359         may return a STRUCT_DOMAIN match.
8360         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8361         * cp-support.c: Include language.h.
8362         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8363         VAR_DOMAIN.
8364         * psymtab.c (match_partial_symbol): Compare the requested
8365         domain with the symbol's domain directly.
8366         (lookup_partial_symbol): Likewise.
8367         * symtab.c (lookup_symbol_in_language): Explain when/why
8368         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8369         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8370         appropriate languages.
8371         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8372         and moved to ada-lang.c
8373         (lookup_block_symbol): Explain that this function only returns
8374         symbol matching the requested DOMAIN.
8375         Compare the requested domain with the symbol's domain directly.
8376         (iterate_over_symbols): Compare the requested domain with the
8377         symbol's domain directly.
8378         * symtab.h (symbol_matches_domain): Remove.
8379
8380 2014-04-14  Tom Tromey  <tromey@redhat.com>
8381
8382         PR c++/15246:
8383         * c-exp.y (type_aggregate_p): New function.
8384         (qualified_name, classify_inner_name): Use it.
8385         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8386         and TYPE_TARGET_TYPE of an enum type.
8387         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8388         an enum type.
8389         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8390         handle TYPE_DECLARED_CLASS.
8391         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8392         types.
8393         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8394         * valops.c (enum_constant_from_type): New function.
8395         (value_aggregate_elt): Use it.
8396         * cp-namespace.c (cp_lookup_nested_symbol): Handle
8397         TYPE_CODE_ENUM.
8398
8399 2014-04-14  Tom Tromey  <tromey@redhat.com>
8400
8401         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8402         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8403         const.
8404         * value.h (value_aggregate_elt): Update.
8405
8406 2014-04-14  Tom Tromey  <tromey@redhat.com>
8407
8408         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8409
8410 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8411
8412         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8413         (evaluate_subexp_standard): Pass noside argument.
8414         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8415         if noside equals EVAL_NORMAL. If the subscript yields a vla type
8416         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8417         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8418         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8419
8420 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8421
8422         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8423         points to a constant blob.
8424
8425 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8426
8427         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8428         property and store it as the high bound and flag the range accordingly.
8429         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8430         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8431         * gdbtypes.h (enum range_flags): New enum.
8432         (struct range_bounds): Add flags member.
8433
8434 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8435
8436         * c-typeprint.c (c_type_print_varspec_suffix): Added
8437         check for not yet resolved high bound. If unresolved, print
8438         "variable length" string to the console instead of random
8439         length.
8440
8441 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8442
8443         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8444         value.
8445         (ada_template_to_fixed_record_type_1): Likewise.
8446         (ada_to_fixed_type_1): Likewise.
8447         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8448         (cp_print_value): Likewise.
8449         * d-valprint.c (dynamic_array_type): Likewise.
8450         * findvar.c (address_of_variable): Likewise.
8451         * jv-valprint.c (java_value_print): Likewise.
8452         * valops.c (value_ind): Likewise.
8453         * value.c (coerce_ref): Likewise.
8454
8455 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8456
8457         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8458         value and retrieve the dynamic type size.
8459
8460 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8461
8462         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8463         passed to sizeof is dynamic evaluate the argument to compute the length.
8464
8465 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8466             Joel Brobecker  <brobecker@adacore.com>
8467
8468         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8469         (dwarf2_evaluate_property): New function.
8470         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8471         * dwarf2read.c (attr_to_dynamic_prop): New function.
8472         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8473         attribute.
8474         * gdbtypes.c: Include dwarf2loc.h.
8475         (is_dynamic_type): New function.
8476         (resolve_dynamic_type): New function.
8477         (resolve_dynamic_bounds): New function.
8478         (get_type_length): New function.
8479         (check_typedef): Use get_type_length to compute type length.
8480         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8481         (TYPE_LOW_BOUND_KIND): New macro.
8482         (is_dynamic_type): New function prototype.
8483         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8484         to resolve dynamic properties of the type. Update comment.
8485         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8486
8487 2014-04-14  Richard Henderson  <rth@redhat.com>
8488
8489         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8490
8491 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
8492             Doug Evans  <xdje42@gmail.com>
8493
8494         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8495         dereference TYPE_CODE_REF values.
8496
8497 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
8498
8499         Revert the following changes due to regressions:
8500
8501         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8502         (dwarf2_evaluate_property): New function.
8503         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8504         * dwarf2read.c (attr_to_dynamic_prop): New function.
8505         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8506         attribute.
8507         * gdbtypes.c: Include dwarf2loc.h.
8508         (is_dynamic_type): New function.
8509         (resolve_dynamic_type): New function.
8510         (resolve_dynamic_bounds): New function.
8511         (get_type_length): New function.
8512         (check_typedef): Use get_type_length to compute type length.
8513         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8514         (TYPE_LOW_BOUND_KIND): New macro.
8515         (is_dynamic_type): New function prototype.
8516         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8517         to resolve dynamic properties of the type. Update comment.
8518         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8519
8520         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8521         passed to sizeof is dynamic evaluate the argument to compute the length.
8522
8523         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8524         value and retrieve the dynamic type size.
8525
8526         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8527         (ada_template_to_fixed_record_type_1): Likewise.
8528         (ada_to_fixed_type_1): Likewise.
8529         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8530         (cp_print_value): Likewise.
8531         * d-valprint.c (dynamic_array_type): Likewise.
8532         * eval.c (evaluate_subexp_with_coercion): Likewise.
8533         * findvar.c (address_of_variable): Likewise.
8534         * jv-valprint.c (java_value_print): Likewise.
8535         * valops.c (value_ind): Likewise.
8536         * value.c (coerce_ref): Likewise.
8537
8538         * c-typeprint.c (c_type_print_varspec_suffix): Added
8539         check for not yet resolved high bound. If unresolved, print
8540         "variable length" string to the console instead of random
8541         length.
8542
8543         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8544         property and store it as the high bound and flag the range accordingly.
8545         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8546         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8547         * gdbtypes.h (enum range_flags): New enum.
8548         (struct range_bounds): Add flags member.
8549
8550         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8551         points to a constant blob.
8552
8553         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8554         (evaluate_subexp_standard): Pass noside argument.
8555         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8556         if noside equals EVAL_NORMAL. If the subscript yields a vla type
8557         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8558         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8559         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8560
8561 2014-04-11  Keith Seitz  <keiths@redhat.com>
8562
8563         PR c++/16675
8564         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8565         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8566         reference types.
8567
8568 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8569
8570         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8571         (evaluate_subexp_standard): Pass noside argument.
8572         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8573         if noside equals EVAL_NORMAL. If the subscript yields a vla type
8574         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8575         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8576         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8577
8578 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8579
8580         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8581         points to a constant blob.
8582
8583 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8584
8585         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8586         property and store it as the high bound and flag the range accordingly.
8587         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8588         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8589         * gdbtypes.h (enum range_flags): New enum.
8590         (struct range_bounds): Add flags member.
8591
8592 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8593
8594         * c-typeprint.c (c_type_print_varspec_suffix): Added
8595         check for not yet resolved high bound. If unresolved, print
8596         "variable length" string to the console instead of random
8597         length.
8598
8599 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8600
8601         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8602         (ada_template_to_fixed_record_type_1): Likewise.
8603         (ada_to_fixed_type_1): Likewise.
8604         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8605         (cp_print_value): Likewise.
8606         * d-valprint.c (dynamic_array_type): Likewise.
8607         * eval.c (evaluate_subexp_with_coercion): Likewise.
8608         * findvar.c (address_of_variable): Likewise.
8609         * jv-valprint.c (java_value_print): Likewise.
8610         * valops.c (value_ind): Likewise.
8611         * value.c (coerce_ref): Likewise.
8612
8613 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8614
8615         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8616         value and retrieve the dynamic type size.
8617
8618 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8619
8620         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8621         passed to sizeof is dynamic evaluate the argument to compute the length.
8622
8623 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8624
8625         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8626         (dwarf2_evaluate_property): New function.
8627         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8628         * dwarf2read.c (attr_to_dynamic_prop): New function.
8629         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8630         attribute.
8631         * gdbtypes.c: Include dwarf2loc.h.
8632         (is_dynamic_type): New function.
8633         (resolve_dynamic_type): New function.
8634         (resolve_dynamic_bounds): New function.
8635         (get_type_length): New function.
8636         (check_typedef): Use get_type_length to compute type length.
8637         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8638         (TYPE_LOW_BOUND_KIND): New macro.
8639         (is_dynamic_type): New function prototype.
8640         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8641         to resolve dynamic properties of the type. Update comment.
8642         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8643
8644 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8645
8646         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8647         declaring high/low bounds and change uses accordingly. Call
8648         create_range_type instead of create_static_range_type.
8649         * gdbtypes.c (create_range_type): New function.
8650         (create_range_type): Convert bounds into struct bound_prop and pass
8651         them to create_range_type.
8652         * gdbtypes.h (struct bound_prop): New struct.
8653         (create_range_type): New function prototype.
8654         (struct range_bounds): Use struct bound_prop instead of LONGEST for
8655         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8656         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8657         part of the bound.
8658         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8659
8660 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8661
8662         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8663         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8664         * ada-lang.c: All uses of create_range_type updated.
8665         * coffread.c: All uses of create_range_type updated.
8666         * dwarf2read.c: All uses of create_range_type updated.
8667         * f-exp.y: All uses of create_range_type updated.
8668         * m2-valprint.c: All uses of create_range_type updated.
8669         * mdebugread.c: All uses of create_range_type updated.
8670         * stabsread.c: All uses of create_range_type updated.
8671         * valops.c: All uses of create_range_type updated.
8672         * valprint.c: All uses of create_range_type updated.
8673
8674 2014-04-10  Pedro Alves  <palves@redhat.com>
8675
8676         * breakpoint.c (single_step_breakpoints)
8677         (single_step_gdbarch): Move up in the file.
8678         (one_breakpoint_xfer_memory): New function, factored out from ...
8679         (breakpoint_xfer_memory): ... here.  Also process single-step
8680         breakpoints.
8681
8682 2014-04-09  Tristan Gingold  <gingold@adacore.com>
8683
8684         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8685         comments.
8686         (darwin_decode_exception_message): Free port only after use.
8687
8688 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
8689
8690         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8691         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8692         when setting the size of call_length.
8693
8694 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
8695
8696         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8697         dereference TYPE_CODE_REF values.
8698
8699 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
8700
8701         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8702         end of warning message.
8703
8704 2014-04-03  Doug Evans  <dje@google.com>
8705
8706         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8707         of stub_comp_unit_die, stub_comp_dir is non-NULL.
8708
8709 2014-04-02  Alan Modra  <amodra@gmail.com>
8710
8711         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8712         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
8713         (struct symbol_file_add_from_memory_args): Add size field.
8714         (find_vdso_size): New function.
8715         (add_vsyscall_page): Attempt to find vdso size.
8716
8717 2014-04-01  Doug Evans  <dje@google.com>
8718
8719         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8720
8721 2014-04-01  Tristan Gingold  <gingold@adacore.com>
8722
8723         * darwin-nat.c (darwin_encode_reply): Add prototype.
8724         (darwin_decode_exception_message): Reply to unknown inferiors.
8725         (darwin_decode_message): Handle message by id.  Ignore message
8726         to unknown inferior.
8727         (darwin_wait): Discard unknown messages, add debug trace.
8728
8729 2014-03-31  Doug Evans  <dje@google.com>
8730
8731         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8732         comp_dir_string.
8733
8734 2014-03-31  Doug Evans  <dje@google.com>
8735
8736         New option "set print symbol-loading".
8737         * NEWS: Mention it.
8738         * solib.c (solib_read_symbols): Only print symbol loading messages
8739         if requested.
8740         (solib_add): If symbol loading is in "brief" mode, notify user
8741         symbols are being loaded.
8742         (reload_shared_libraries_1): Ditto.
8743         * symfile.c (print_symbol_loading_off): New static global.
8744         (print_symbol_loading_brief): New static global.
8745         (print_symbol_loading_full): New static global.
8746         (print_symbol_loading_enums): New static global.
8747         (print_symbol_loading): New static global.
8748         (print_symbol_loading_p): New function.
8749         (symbol_file_add_with_addrs): Only print symbol loading messages
8750         if requested.
8751         (_initialize_symfile): Register "print symbol-loading" set/show
8752         command.
8753         * symfile.h (print_symbol_loading_p): Declare.
8754
8755 2014-03-30  Doug Evans  <xdje42@gmail.com>
8756
8757         * infrun.c (set_last_target_status): New function.
8758         (handle_inferior_event): Call it.
8759
8760 2014-03-30  Doug Evans  <xdje42@gmail.com>
8761
8762         * inferior.h (enum stop_kind): Improve comment.
8763
8764 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
8765
8766         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8767         a reference, strip the reference layer before calling
8768         the lang_ops value_has_mutated callback.
8769
8770 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
8771
8772         Remove some globals from our parser.
8773         * language.c (unk_lang_parser): Add "struct parser_state"
8774         argument.
8775         * language.h (struct language_defn) <la_parser>: Likewise.
8776         * parse.c (expout, expout_size, expout_ptr): Remove variables.
8777         (initialize_expout): Add "struct parser_state" argument.
8778         Rewrite function to use the parser state.
8779         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8780         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8781         write_exp_elt_longcst, write_exp_elt_dblcst,
8782         write_exp_elt_decfloatcst, write_exp_elt_type,
8783         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8784         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8785         write_dollar_variable): Likewise.
8786         (parse_exp_in_context_1): Use parser state.
8787         (insert_type_address_space): Add "struct parser_state" argument.
8788         Use parser state.
8789         (increase_expout_size): New function.
8790         * parser-defs.h: Forward declare "struct language_defn" and
8791         "struct parser_state".
8792         (expout, expout_size, expout_ptr): Remove extern declarations.
8793         (parse_gdbarch, parse_language): Rewrite macro declarations to
8794         accept the parser state.
8795         (struct parser_state): New struct.
8796         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
8797         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
8798         write_exp_elt_decfloatcst, write_exp_elt_type,
8799         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8800         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
8801         write_exp_msymbol, write_dollar_variable,
8802         mark_struct_expression, insert_type_address_space): Add "struct
8803         parser_state" argument.
8804         (increase_expout_size): New function.
8805         * utils.c (do_clear_parser_state): New function.
8806         (make_cleanup_clear_parser_state): Likewise.
8807         * utils.h (make_cleanup_clear_parser_state): New function
8808         prototype.
8809         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
8810         Update calls to write_exp* in order to pass the parser state.
8811         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
8812         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
8813         (i386_stap_parse_special_token_three_arg_disp): Likewise.
8814         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
8815         * stap-probe.c (stap_parse_register_operand): Likewise.
8816         (stap_parse_single_operand): Likewise.
8817         (stap_parse_argument_1): Likewise.
8818         (stap_parse_argument): Use parser state.
8819         * stap-probe.h: Include "parser-defs.h".
8820         (struct stap_parse_info) <pstate>: New field.
8821         * c-exp.y (parse_type): Rewrite to use parser state.
8822         (yyparse): Redefine to c_parse_internal.
8823         (pstate): New global variable.
8824         (parse_number): Add "struct parser_state" argument.
8825         (write_destructor_name): Likewise.
8826         (type_exp): Update calls to write_exp* and similars in order to
8827         use parser state.
8828         (exp1, exp, variable, qualified_name, space_identifier,
8829         typename, typebase): Likewise.
8830         (write_destructor_name, parse_number, lex_one_token,
8831         classify_name, classify_inner_name, c_parse): Add "struct
8832         parser_state" argument.  Update function to use parser state.
8833         * c-lang.h: Forward declare "struct parser_state".
8834         (c_parse): Add "struct parser_state" argument.
8835         * ada-exp.y (parse_type): Rewrite macro to use parser state.
8836         (yyparse): Redefine macro to ada_parse_internal.
8837         (pstate): New variable.
8838         (write_int, write_object_renaming, write_var_or_type,
8839         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
8840         type_int, type_long, type_long_long, type_float, type_double,
8841         type_long_double, type_char, type_boolean, type_system_address):
8842         Add "struct parser_state" argument.
8843         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
8844         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
8845         var_or_type, aggregate, aggregate_component_list,
8846         positional_list, others, component_group,
8847         component_associations): Update calls to write_exp* and similar
8848         functions in order to use parser state.
8849         (ada_parse, write_var_from_sym, write_int,
8850         write_exp_op_with_string, write_object_renaming,
8851         find_primitive_type, write_selectors, write_ambiguous_var,
8852         write_var_or_type, write_name_assoc, type_int, type_long,
8853         type_long_long, type_float, type_double, type_long_double,
8854         type_char, type_boolean, type_system_address): Add "struct
8855         parser_state" argument.  Adjust function to use parser state.
8856         * ada-lang.c (parse): Likewise.
8857         * ada-lang.h: Forward declare "struct parser_state".
8858         (ada_parse): Add "struct parser_state" argument.
8859         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
8860         calls to both functions.
8861         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
8862         parser state.
8863         (yyparse): Redefine macro to f_parse_internal.
8864         (pstate): New variable.
8865         (parse_number): Add "struct parser_state" argument.
8866         (type_exp, exp, subrange, typebase): Update calls to write_exp*
8867         and similars in order to use parser state.
8868         (parse_number): Adjust code to use parser state.
8869         (yylex): Likewise.
8870         (f_parse): New function.
8871         * f-lang.h: Forward declare "struct parser_state".
8872         (f_parse): Add "struct parser_state" argument.
8873         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
8874         parser state.
8875         (yyparse): Redefine macro for java_parse_internal.
8876         (pstate): New variable.
8877         (push_expression_name, push_expression_name, insert_exp): Add
8878         "struct parser_state" argument.
8879         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
8880         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
8881         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
8882         PostIncrementExpression, PostDecrementExpression,
8883         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
8884         UnaryExpressionNotPlusMinus, CastExpression,
8885         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
8886         RelationalExpression, EqualityExpression, AndExpression,
8887         ExclusiveOrExpression, InclusiveOrExpression,
8888         ConditionalAndExpression, ConditionalOrExpression,
8889         ConditionalExpression, Assignment, LeftHandSide): Update
8890         calls to write_exp* and similars in order to use parser state.
8891         (parse_number): Ajust code to use parser state.
8892         (yylex): Likewise.
8893         (java_parse): New function.
8894         (push_variable): Add "struct parser_state" argument.  Adjust
8895         code to user parser state.
8896         (push_fieldnames, push_qualified_expression_name,
8897         push_expression_name, insert_exp): Likewise.
8898         * jv-lang.h: Forward declare "struct parser_state".
8899         (java_parse): Add "struct parser_state" argument.
8900         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
8901         parser state.
8902         (yyparse): Redefine macro to m2_parse_internal.
8903         (pstate): New variable.
8904         (type_exp, exp, fblock, variable, type): Update calls to
8905         write_exp* and similars to use parser state.
8906         (yylex): Likewise.
8907         (m2_parse): New function.
8908         * m2-lang.h: Forward declare "struct parser_state".
8909         (m2_parse): Add "struct parser_state" argument.
8910         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
8911         * objc-lang.h: Forward declare "struct parser_state".
8912         (end_msglist): Add "struct parser_state" argument.
8913         * p-exp.y (parse_type): Rewrite macro to use parser state.
8914         (yyparse): Redefine macro to pascal_parse_internal.
8915         (pstate): New variable.
8916         (parse_number): Add "struct parser_state" argument.
8917         (type_exp, exp1, exp, qualified_name, variable): Update calls to
8918         write_exp* and similars in order to use parser state.
8919         (parse_number, yylex): Adjust code to use parser state.
8920         (pascal_parse): New function.
8921         * p-lang.h: Forward declare "struct parser_state".
8922         (pascal_parse): Add "struct parser_state" argument.
8923         * go-exp.y (parse_type): Rewrite macro to use parser state.
8924         (yyparse): Redefine macro to go_parse_internal.
8925         (pstate): New variable.
8926         (parse_number): Add "struct parser_state" argument.
8927         (type_exp, exp1, exp, variable, type): Update calls to
8928         write_exp* and similars in order to use parser state.
8929         (parse_number, lex_one_token, classify_name, yylex): Adjust code
8930         to use parser state.
8931         (go_parse): Likewise.
8932         * go-lang.h: Forward declare "struct parser_state".
8933         (go_parse): Add "struct parser_state" argument.
8934
8935 2014-03-27  Doug Evans  <dje@google.com>
8936
8937         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
8938
8939 2014-03-27  Doug Evans  <dje@google.com>
8940
8941         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
8942         Remove argument abbrev_section.  All callers updated.
8943
8944 2014-03-27  Doug Evans  <dje@google.com>
8945
8946         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
8947         addr_base, ranges_base.
8948
8949 2014-03-26  Keith Seitz  <keiths@redhat.com>
8950
8951         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
8952         types, not VAR_DOMAIN.
8953
8954 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
8955
8956         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
8957         "ra" registers.
8958         * features/nios2-linux.c: Regenerated.
8959         * features/nios2.c: Regenerated.
8960
8961 2014-03-25  Pedro Alves  <palves@redhat.com>
8962
8963         * cli/cli-script.c (script_from_file): Force the interpreter to
8964         sync mode.
8965
8966 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
8967
8968         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
8969         small stack allocation.
8970
8971 2014-03-24  Tristan Gingold  <gingold@adacore.com>
8972
8973         * darwin-nat.c (exc_server): Remove unused prototype.
8974         (darwin_dump_message): Correctly display data on x86_64.
8975         (darwin_encode_reply): Fix style.
8976         Add comments and fix indentation.
8977
8978 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
8979
8980         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
8981
8982 2014-03-22  Doug Evans  <xdje42@gmail.com>
8983
8984         * infcmd.c: Whitespace fixes.
8985         (interrupt_command): Merge two function comments into one.
8986
8987 2014-03-22  Doug Evans  <xdje42@gmail.com>
8988
8989         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
8990         All uses updated.
8991
8992 2014-03-22  Yao Qi  <yao@codesourcery.com>
8993
8994         * remote.c (target_read_live_memory): Remove.
8995         (memory_xfer_live_readonly_partial): Rename it to
8996         remote_xfer_live_readonly_partial.  Remove argument 'object'.
8997         All callers updated.  Call remote_read_bytes_1
8998         instead of target_read_live_memory.
8999         * tracepoint.c (set_traceframe_number): Remove.
9000         (make_cleanup_restore_traceframe_number): Likewise .
9001         * tracepoint.h (set_traceframe_number): Remove declaration.
9002         (make_cleanup_restore_traceframe_number): Likewise.
9003
9004 2014-03-22  Yao Qi  <yao@codesourcery.com>
9005
9006         * remote.c (remote_read_bytes): Move code on reading from the
9007         remote stub to ...
9008         (remote_read_bytes_1): ... here.  New function.
9009
9010 2014-03-22  Yao Qi  <yao@codesourcery.com>
9011
9012         * ctf.c (ctf_xfer_partial): Check the return value of
9013         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9014         return TARGET_XFER_UNAVAILABLE.
9015         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9016         * target.c (target_read_live_memory): Move it to remote.c.
9017         (memory_xfer_live_readonly_partial): Likewise.
9018         (memory_xfer_partial_1): Move some code to remote_read_bytes.
9019         * remote.c (target_read_live_memory): Moved from target.c.
9020         (memory_xfer_live_readonly_partial): Likewise.
9021         (remote_read_bytes): Factored out from
9022         memory_xfer_partial_1.
9023
9024 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
9025
9026         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9027         NULL pointer.
9028
9029 2014-03-21  Pedro Alves  <palves@redhat.com>
9030
9031         * infrun.c (normal_stop): Extend comment.
9032
9033 2014-03-21  Hui Zhu  <hui@codesourcery.com>
9034             Pedro Alves  <palves@redhat.com>
9035
9036         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9037         static buffer.
9038         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9039         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9040         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9041
9042 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
9043
9044         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9045         `z' formatted output modifier.
9046
9047 2014-03-20  Tom Tromey  <tromey@redhat.com>
9048             Sergio Durigan Junior  <sergiodj@redhat.com>
9049
9050         * probe.c (parse_probes): Turn assert into an ordinary error.
9051         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9052         exceptions when parsing probes.  Rearrange the code for clarity.
9053
9054 2014-03-20  Tom Tromey  <tromey@redhat.com>
9055
9056         PR gdb/14135
9057         * top.c (execute_command): Only dispatch events if the command
9058         started the target.
9059
9060 2014-03-20  Tom Tromey  <tromey@redhat.com>
9061
9062         PR cli/15718
9063         * infcall.c: Include event-top.h.
9064         (run_inferior_call): Call async_disable_stdin if needed.
9065
9066 2014-03-20  Pedro Alves  <palves@redhat.com>
9067
9068         * infrun.c (prepare_to_proceed): Delete.
9069         (thread_still_needs_step_over): New function.
9070         (find_thread_needs_step_over): New function.
9071         (proceed): If the current thread needs a step-over, set its
9072         steping_over_breakpoint flag.  Adjust to use
9073         find_thread_needs_step_over instead of prepare_to_proceed.
9074         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9075         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9076         breakpoint.
9077         (switch_back_to_stepped_thread): Step over breakpoints of all
9078         threads not the stepping thread, before switching back to the
9079         stepping thread.
9080
9081 2014-03-20  Pedro Alves  <palves@redhat.com>
9082
9083         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9084         extern.
9085         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9086         * infrun.c (saved_singlestep_ptid)
9087         (stepping_past_singlestep_breakpoint): Delete.
9088         (resume): Remove stepping_past_singlestep_breakpoint handling.
9089         (proceed): Store the prev_pc of the stepping thread too.
9090         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
9091         singlestep_pc.
9092         (enum infwait_states): Delete infwait_thread_hop_state.
9093         (struct execution_control_state) <hit_singlestep_breakpoint>: New
9094         field.
9095         (handle_inferior_event): Adjust.
9096         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9097         handling and the thread-hop code.  Before removing single-step
9098         breakpoints, check whether the thread hit a single-step breakpoint
9099         of another thread.  If it did, the trap is not a random signal.
9100         (switch_back_to_stepped_thread): If the event thread hit a
9101         single-step breakpoint, unblock it before switching to the
9102         stepping thread.  Handle the case of the stepped thread having
9103         advanced already.
9104         (keep_going): Handle the case of the current thread moving past a
9105         single-step breakpoint.
9106
9107 2014-03-20  Pedro Alves  <palves@redhat.com>
9108
9109         PR breakpoints/7143
9110         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9111         are being stepped over.
9112         (breakpoint_address_match): Make extern.
9113         * breakpoint.h (breakpoint_address_match): New declaration.
9114         * inferior.h (stepping_past_instruction_at): New declaration.
9115         * infrun.c (struct step_over_info): New type.
9116         (step_over_info): New global.
9117         (set_step_over_info, clear_step_over_info)
9118         (stepping_past_instruction_at): New functions.
9119         (handle_inferior_event): Clear the step-over info when
9120         trap_expected is cleared.
9121         (resume): Remove now stale comment.
9122         (clear_proceed_status): Clear step-over info.
9123         (proceed): Adjust step-over handling to set or clear the step-over
9124         info instead of removing all breakpoints.
9125         (handle_signal_stop): When setting up a thread-hop, don't remove
9126         breakpoints here.
9127         (stop_stepping): Clear step-over info.
9128         (keep_going): Adjust step-over handling to set or clear step-over
9129         info and then always inserting breakpoints, instead of removing
9130         all breakpoints when stepping over one.
9131
9132 2014-03-20  Pedro Alves  <palves@redhat.com>
9133
9134         * infrun.c (previous_inferior_ptid): Adjust comment.
9135         (deferred_step_ptid): Delete.
9136         (infrun_thread_ptid_changed, prepare_to_proceed)
9137         (init_wait_for_inferior): Adjust.
9138         (handle_signal_stop): Delete deferred_step_ptid handling.
9139
9140 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
9141
9142         PR gdb/15358
9143         * defs.h (sync_quit_force_run): New declaration.
9144         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9145         * event-top.c (async_sigterm_handler): New declaration.
9146         (async_sigterm_token): New variable.
9147         (async_init_signals): Create also async_sigterm_token.
9148         (async_sigterm_handler): New function.
9149         (sync_quit_force_run): New variable.
9150         (handle_sigterm): Replace quit_force call by other calls.
9151         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9152
9153 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
9154
9155         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9156         offset into SPE pseudo registers.
9157
9158 2014-03-18  Pedro Alves  <palves@redhat.com>
9159
9160         PR gdb/13860
9161         * inferior.h (print_stop_event): Declare.
9162         * infrun.c (print_stop_event): New, factored out from ...
9163         (normal_stop): ... this.
9164         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9165         of bpstat_print/print_stack_frame.
9166
9167 2014-03-17  Tom Tromey  <tromey@redhat.com>
9168
9169         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9170
9171 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
9172
9173         * ada-lang.c (decode_constrained_packed_array): Perform a
9174         minimal coercion for reference with coerce_ref instead of
9175         ada_coerce_ref.
9176
9177 2014-03-17  Tristan Gingold  <gingold@adacore.com>
9178
9179         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9180         (darwin_solib_create_inferior_hook): Emit a warning if version
9181         is unhandled.
9182
9183 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
9184
9185         * python/py-value.c (get_field_flag): Cast flag_name argument to
9186         PyObject_GetAttrString to support Python 2.4.
9187
9188 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9189
9190         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9191         (Global Maintainers): Remove Jan Kratochvil.
9192
9193 2014-03-14  Pedro Alves  <palves@redhat.com>
9194
9195         * inferior.h (terminal_ours_for_output): Rename to ...
9196         (child_terminal_ours_for_output): ... this.
9197         (terminal_save_ours): Rename to ...
9198         (child_terminal_save_ours): ... this.
9199         (terminal_ours): Rename to ...
9200         (child_terminal_ours): ... this.
9201         (terminal_inferior): Rename to ...
9202         (child_terminal_inferior): ... this.
9203         (terminal_init_inferior): Rename to ...
9204         (child_terminal_init_inferior): ... this.
9205         (terminal_init_inferior_with_pgrp): Rename to ...
9206         (child_terminal_init_inferior_with_pgrp): ... this.
9207         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9208         (child_terminal_init_with_pgrp): ... this.
9209         (terminal_save_ours): Rename to ...
9210         (child_terminal_save_ours): ... this.
9211         (terminal_init_inferior): Rename to ...
9212         (child_terminal_init): ... this.  Adjust.
9213         (terminal_inferior): Rename to ...
9214         (child_terminal_inferior): ... this.
9215         (terminal_ours_for_output): Rename to ...
9216         (child_terminal_ours_for_output): ... this.  Adjust.
9217         (terminal_ours): Rename to ...
9218         (child_terminal_ours): ... this.
9219         (terminal_ours_1): Rename to ...
9220         (child_terminal_ours_1): ... this.  Adjust.
9221         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9222         * windows-nat.c (do_initial_windows_stuff): Adjust.
9223         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9224         (gnu_terminal_init): ... this.  Adjust.
9225         (gnu_target): Adjust.
9226         * inf-child.c (inf_child_target): Adjust.
9227
9228 2014-03-13  Doug Evans  <xdje42@gmail.com>
9229
9230         PR guile/16612
9231         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9232         new eq?-hashtab.
9233
9234 2014-03-13  Doug Evans  <xdje42@gmail.com>
9235
9236         * value.c (record_latest_value): Call release_value_or_incref
9237         instead of release_value.
9238
9239 2014-03-13  Pedro Alves  <palves@redhat.com>
9240
9241         * procfs.c (procfs_target): Don't override to_shortname,
9242         to_longname or to_doc.
9243
9244 2014-03-13  Pedro Alves  <palves@redhat.com>
9245
9246         * inf-child.c (inf_child_open, inf_child_target): Don't mention
9247         Unix in user visible strings.
9248
9249 2014-03-12  Stan Shebs  <stan@codesourcery.com>
9250
9251         * gdbtypes.h: Annotate comments for Doxygen, add a page
9252         block comment with some general info.
9253
9254 2014-03-12  Pedro Alves  <palves@redhat.com>
9255
9256         * infcmd.c (prepare_execution_command): New function, factored out
9257         from several execution commands.
9258         (run_command_1, continue_command, step_1, jump_command)
9259         (signal_command, until_command, advance_command, finish_command)
9260         (attach_command): Use prepare_execution_command.
9261
9262 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
9263
9264         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9265         (MAX_BPTS): Define.
9266         (MAX_WPTS): Define.
9267         (struct arm_linux_thread_points): Removed.
9268         (struct arm_linux_process_info): New.
9269         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9270         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9271         (arm_linux_find_breakpoints_by_tid): Removed.
9272         (struct arch_lwp_info): New.
9273         (arm_linux_find_process_pid): New functions.
9274         (arm_linux_add_process): New functions.
9275         (arm_linux_process_info_get): New functions.
9276         (arm_linux_forget_process): New function.
9277         (arm_linux_get_debug_reg_state): New function.
9278         (struct update_registers_data): New.
9279         (update_registers_callback): New function.
9280         (arm_linux_insert_hw_breakpoint1): Updated.
9281         (arm_linux_remove_hw_breakpoint1): Updated.
9282         (arm_linux_insert_hw_breakpoint): Updated.
9283         (arm_linux_remove_hw_breakpoint): Updated.
9284         (arm_linux_insert_watchpoint): Updated.
9285         (arm_linux_remove_watchpoint): Updated.
9286         (arm_linux_new_thread): Updated.
9287         (arm_linux_prepare_to_resume): New function.
9288         (arm_linux_new_fork): New function.
9289         (_initialize_arm_linux_nat): Updated.
9290
9291 2014-03-12  Pedro Alves  <palves@redhat.com>
9292
9293         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9294
9295 2014-03-12  Tom Tromey  <tromey@redhat.com>
9296
9297         * inf-child.c (return_zero): New function.
9298         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9299         * aix-thread.c (aix_thread_inferior_created): New function.
9300         (aix_thread_attach): Remove.
9301         (init_aix_thread_ops): Don't set to_attach.
9302         (_initialize_aix_thread): Register inferior_created observer.
9303         * corelow.c (init_core_ops): Don't set to_attach or
9304         to_create_inferior.
9305         * exec.c (init_exec_ops): Don't set to_attach or
9306         to_create_inferior.
9307         * infcmd.c (run_command_1): Use find_run_target.  Make direct
9308         target calls.
9309         (attach_command): Use find_attach_target.  Make direct target
9310         calls.
9311         * record-btrace.c (init_record_btrace_ops): Don't set
9312         to_create_inferior.
9313         * record-full.c (record_full_can_async_p, record_full_is_async_p):
9314         Remove.
9315         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
9316         set to_create_inferior.
9317         * target.c (complete_target_initialization): Add assertion.
9318         (target_create_inferior): Remove.
9319         (find_default_attach, find_default_create_inferior): Remove.
9320         (find_attach_target, find_run_target): New functions.
9321         (find_default_is_async_p, find_default_can_async_p)
9322         (target_supports_non_stop, target_attach): Remove.
9323         (init_dummy_target): Don't set to_create_inferior or
9324         to_supports_non_stop.
9325         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
9326         TARGET_DEFAULT_FUNC.
9327         <to_create_inferior>: Add comment.
9328         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9329         TARGET_DEFAULT_RETURN.
9330         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9331         (find_attach_target, find_run_target): Declare.
9332         (target_create_inferior): Remove.
9333         (target_has_execution_1): Update comment.
9334         (target_supports_non_stop): Remove.
9335         * target-delegates.c: Rebuild.
9336
9337 2014-03-12  Pedro Alves  <palves@redhat.com>
9338
9339         * inf-child.h: Update comment to not mention Unix.
9340
9341 2014-03-12  Pedro Alves  <palves@redhat.com>
9342
9343         * inf-child.c: Update top comment to not mention Unix.  Add
9344         generic comment describing how this target is meant to be used.
9345         (inf_child_post_attach, inf_child_post_startup_inferior)
9346         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9347         Unix in comment.
9348
9349 2014-03-12  Pedro Alves  <palves@redhat.com>
9350
9351         * nto-procfs.c: Include inf-child.h.
9352         (procfs_ops): Delete global.
9353         (procfs_can_run): Delete method.
9354         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9355         target pointer instead of referencing procfs_ops.
9356         (procfs_prepare_to_store): Delete.
9357         (init_procfs_ops): Delete function.
9358         (procfs_target): New function, based on init_procfs_ops, but
9359         inherit inf_child_target.
9360         (_initialize_procfs): Use procfs_target.
9361
9362 2014-03-12  Pedro Alves  <palves@redhat.com>
9363
9364         * windows-nat.c: Include inf-child.h.
9365         (windows_ops): Delete global.
9366         (windows_open, windows_prepare_to_store, windows_can_run): Delete
9367         methods.
9368         (init_windows_ops): Delete function.
9369         (windows_target): New function, based on init_windows_ops, but
9370         inherit inf_child_target.
9371         (_initialize_windows_nat): Use windows_target.  Install x86
9372         specific target methods here.
9373
9374 2014-03-10  Doug Evans  <xdje42@gmail.com>
9375
9376         * guile/guile.c (call_initialize_gdb_module): New function.
9377         (initialize_guile): Replace call to scm_init_guile with call to
9378         scm_with_guile.
9379
9380 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
9381
9382         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9383         in call to TYPE_CODE macro.
9384
9385 2014-03-10  Jerome Guitton  <guitton@adacore.com>
9386
9387         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9388         Resolve tagged types to full view.
9389
9390 2014-03-10  Hui Zhu  <hui@codesourcery.com>
9391
9392         * target.h (target_insert_breakpoint): Remove "hardware" from its
9393         comments.
9394
9395 2014-03-07  Doug Evans  <dje@google.com>
9396
9397         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9398
9399 2014-03-07  Doug Evans  <dje@google.com>
9400
9401         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9402         Remove unused local comp_dir_attr.  Assert exactly one of
9403         stub_comp_unit_die, stub_comp_dir is non-NULL.
9404
9405 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
9406
9407         * target.h (complete_target_initialization, add_target):
9408         Add comment.
9409
9410 2014-03-07  Pedro Alves  <palves@redhat.com>
9411
9412         * go32-nat.c: Include inf-child.h.
9413         (go32_ops): Delete global.
9414         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9415         Delete methods.
9416         (go32_create_inferior): Push the passed in target pointer instead
9417         of referencing go32_ops.
9418         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
9419         (go32_target): New function, based on init_go32_ops, but inherit
9420         inf_child_target.
9421         (_initialize_go32_nat): Use go32_target.  Move parts of
9422         init_go32_ops here.
9423
9424 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
9425
9426         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9427         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9428         SYMBOL_VALUE_ADDRESS.
9429         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9430
9431 2014-03-06  Yao Qi  <yao@codesourcery.com>
9432
9433         * breakpoint.c (get_tracepoint_by_number): Remove argument
9434         optional_p.  All callers updated.  Adjust comments.  Update
9435         output message.
9436         * breakpoint.h (get_tracepoint_by_number): Update declaration.
9437
9438 2014-03-06  Yao Qi  <yao@codesourcery.com>
9439
9440         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
9441         early if get_number returns zero.  Use 'p' instead of 'args'.
9442
9443 2014-03-06  Yao Qi  <yao@codesourcery.com>
9444
9445         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9446         message.
9447
9448 2014-03-06  Yao Qi  <yao@codesourcery.com>
9449
9450         PR breakpoints/16508
9451         * tracepoint.c (check_trace_running): New function.
9452         (trace_find_command): Move code to check_trace_running and
9453         call check_trace_running.
9454         (trace_find_pc_command): Likewise.
9455         (trace_find_tracepoint_command): Likewise.
9456         (trace_find_line_command): Likewise.
9457         (trace_find_range_command): Likewise.
9458         * tracepoint.h (check_trace_running): Likewise.
9459         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9460
9461 2014-03-06  Yao Qi  <yao@codesourcery.com>
9462
9463         * target.h (struct target_ops) <to_traceframe_info>: Use
9464         TARGET_DEFAULT_NORETURN (tcomplain ()).
9465         * target-delegates.c: Regenerated.
9466
9467 2014-03-05  Pedro Alves  <palves@redhat.com>
9468
9469         PR gdb/16575
9470         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
9471         void.  Update comment.
9472         (dcache_xfer_memory): Delete.
9473         (dcache_read_memory_partial): New, based on the read bits of
9474         dcache_xfer_memory.
9475         (dcache_update): Add status parameter.  Use ULONGEST for len, and
9476         adjust.  Discard cache lines if the reason for the update was
9477         error.
9478         * dcache.h (dcache_xfer_memory): Delete declaration.
9479         (dcache_read_memory_partial): New declaration.
9480         (dcache_update): Update prototype.
9481         * target.c (raw_memory_xfer_partial): Update the dcache here.
9482         (memory_xfer_partial_1): Don't handle dcache writes here.
9483
9484 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
9485
9486         * remote-sim.c (gdbsim_load): Add const to prog.
9487
9488 2014-03-03  Tom Tromey  <tromey@redhat.com>
9489
9490         * elfread.c (probe_key): Change to bfd_data.
9491         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9492         now per-BFD, not per-objfile.
9493         * stap-probe.c (stap_probe_destroy): Update comment.
9494         (handle_stap_probe): Allocate on the per-BFD obstack.
9495
9496 2014-03-03  Tom Tromey  <tromey@redhat.com>
9497
9498         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9499         * breakpoint.c (create_longjmp_master_breakpoint): Use
9500         get_probe_address.
9501         (add_location_to_breakpoint, bkpt_probe_insert_location)
9502         (bkpt_probe_remove_location): Update.
9503         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9504         * elfread.c (elf_symfile_relocate_probe): Remove.
9505         (elf_probe_fns): Update.
9506         (insert_exception_resume_breakpoint): Change type of "probe"
9507         parameter to bound_probe.
9508         (check_exception_resume): Update.
9509         * objfiles.c (objfile_relocate1): Don't relocate probes.
9510         * probe.c (bound_probe_s): New typedef.
9511         (parse_probes): Use get_probe_address.  Set sal's objfile.
9512         (find_probe_by_pc): Return a bound_probe.
9513         (collect_probes): Return a VEC(bound_probe_s).
9514         (compare_probes): Update.
9515         (gen_ui_out_table_header_info): Change type of "probes"
9516         parameter.  Update.
9517         (info_probes_for_ops): Update.
9518         (get_probe_address): New function.
9519         (probe_safe_evaluate_at_pc): Update.
9520         * probe.h (struct probe_ops) <get_probe_address>: New field.
9521         <set_semaphore, clear_semaphore>: Add objfile parameter.
9522         (struct probe) <objfile>: Remove field.
9523         <arch>: New field.
9524         <address>: Update comment.
9525         (struct bound_probe): New.
9526         (find_probe_by_pc): Return a bound_probe.
9527         (get_probe_address): Declare.
9528         * solib-svr4.c (struct probe_and_action) <address>: New field.
9529         (hash_probe_and_action, equal_probe_and_action): Update.
9530         (register_solib_event_probe): Add address parameter.
9531         (solib_event_probe_at): Update.
9532         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
9533         get_probe_address.
9534         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9535         (stap_get_probe_address): New function.
9536         (stap_can_evaluate_probe_arguments, compute_probe_arg)
9537         (compile_probe_arg): Update.
9538         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9539         address.
9540         (handle_stap_probe): Don't relocate the probe.
9541         (stap_relocate): Remove.
9542         (stap_gen_info_probes_table_values): Update.
9543         (stap_probe_ops): Remove stap_relocate.
9544         * symfile-debug.c (debug_sym_relocate_probe): Remove.
9545         (debug_sym_probe_fns): Update.
9546         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9547         * symtab.c (init_sal): Use memset.
9548         * symtab.h (struct symtab_and_line) <objfile>: New field.
9549         * tracepoint.c (start_tracing, stop_tracing): Update.
9550
9551 2014-03-03  Tom Tromey  <tromey@redhat.com>
9552
9553         * probe.h (parse_probes, find_probe_by_pc)
9554         (find_probes_in_objfile): Fix comments.
9555
9556 2014-03-02  Doug Evans  <xdje42@gmail.com>
9557
9558         * infrun.c (handle_signal_stop): Replace test for
9559         TARGET_WAITKIND_STOPPED with an assert.
9560
9561 2014-03-02  Doug Evans  <xdje42@gmail.com>
9562
9563         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9564
9565 2014-03-02  Doug Evans  <xdje42@gmail.com>
9566
9567         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9568
9569 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
9570
9571         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9572
9573 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
9574
9575         * i386obsd-nat.c: Include "obsd-nat.h".
9576         (_initialize_i386obsd_nat): Call obsd_add_target instead of
9577         add_target.
9578         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9579
9580 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
9581
9582         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9583
9584 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
9585
9586         * mips64obsd-nat.c: Include "obsd-nath".
9587         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9588         add_target
9589         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9590
9591 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
9592
9593         * amd64obsd-nat.c: Include "obsd-nat,h.
9594         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9595         add_target.
9596         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9597
9598 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
9599
9600         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9601         (find_overload_match): Update call to find_oload_champ.
9602         (find_oload_champ_namespace_loop): Likewise
9603
9604 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
9605
9606         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9607
9608         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9609         * config/sparc/obsd64.mh: New file.
9610         * sparc64obsd-nat.c: New file.
9611
9612         * obsd-nat.h: New file.
9613         * obsd-nat.c: New file.
9614         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9615         (ALLDEPFILES): Add obsd-nat.c.
9616
9617 2014-02-28  Tom Tromey  <tromey@redhat.com>
9618
9619         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
9620         * cli-out.h (cli_ui_out_impl): Now const.
9621         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
9622         * ui-out.c (struct ui_out) <impl>: Now const.
9623         (default_ui_out_impl): Now const.
9624         (ui_out_new): Make 'impl' parameter const.
9625         * ui-out.h (ui_out_new): Update.
9626
9627 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9628
9629         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9630
9631 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9632
9633         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9634
9635 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9636
9637         Additional PR 8882 fix.
9638         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9639
9640 2014-02-27  Pedro Alves  <palves@redhat.com>
9641
9642         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9643         isn't set.
9644
9645 2014-02-27  Pedro Alves  <palves@redhat.com>
9646
9647         PR 12702
9648         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9649         * nat/linux-waitpid.c: Include string.h.
9650         (status_to_str): Moved here and made extern.
9651         * nat/linux-waitpid.h (status_to_str): New declaration.
9652
9653 2014-02-27  Hui Zhu  <hui@codesourcery.com>
9654
9655         PR 12702
9656         * infrun.c (ptid_match): Move ...
9657         * common/ptid.c (ptid_match): ... here.
9658         * inferior.h (ptid_match): Move ...
9659         * common/ptid.h (ptid_match): ... here.
9660
9661 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9662
9663         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9664         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9665         gdb_target_obs.
9666
9667 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9668
9669         * obsd-tdep.c (obsd_auxv_parse): New function.
9670         (obsd_init_abi): Set auxv_parse.
9671
9672         * gdbarch.sh (auxv_parse): New.
9673         * gdbarch.h: Regenerated.
9674         * gdbarch.c: Regenerated.
9675         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9676
9677 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
9678
9679         * guile/scm-value.c (gdbscm_history_append_x): New function.
9680         (value_functions): Add it.
9681
9682 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
9683
9684         * dwarf2read.c (attr_value_as_address): New function.
9685         (dwarf2_find_base_address, read_call_site_scope): Use
9686         attr_value_as_address in place of DW_ADDR.
9687         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9688         the low and high addresses.  Slight rework of the handling
9689         of the high pc being a constant form, and limit it to
9690         DWARF verson 4 or higher.
9691         (dwarf2_record_block_ranges): Likewise.
9692         (read_partial_die): Likewise.
9693         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9694
9695 2014-02-26  Tom Tromey  <tromey@redhat.com>
9696
9697         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9698
9699 2014-02-26  Tom Tromey  <tromey@redhat.com>
9700
9701         * elfread.c (elf_read_minimal_symbols): Return early if
9702         minimal symbols have already been read.  Add "ei" parameter.
9703         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9704         * minsyms.c (prim_record_minimal_symbol_full): Update.
9705         * objfiles.h (struct objstats) <n_minsyms>: Move...
9706         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9707         * symmisc.c (print_objfile_statistics): Update.
9708
9709 2014-02-26  Tom Tromey  <tromey@redhat.com>
9710
9711         * elfread.c (elf_read_minimal_symbols): New function, from
9712         elf_symfile_read.
9713         (elf_symfile_read): Call it.
9714
9715 2014-02-26  Tom Tromey  <tromey@redhat.com>
9716
9717         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9718         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9719         (lookup_minimal_symbol_solib_trampoline)
9720         (lookup_minimal_symbol_by_pc_section_1)
9721         (lookup_minimal_symbol_and_objfile): Update.
9722         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9723         Don't allocate a minimal symbol if minsyms have already been read.
9724         (build_minimal_symbol_hash_tables): Update.
9725         (install_minimal_symbols): Do nothing if minsyms already read.
9726         Use the per-BFD obstack.
9727         (terminate_minimal_symbol_table): Use the per-BFD obstack.
9728         * objfiles.c (allocate_objfile): Call
9729         terminate_minimal_symbol_table later.
9730         (have_minimal_symbols): Update.
9731         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9732         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9733         Move from struct objfile.
9734         <minsyms_read>: New field.
9735         (struct objfile) <msymbols, minimal_symbol_count,
9736         msymbol_hash, msymbol_demangled_hash>: Move.
9737         (ALL_OBJFILE_MSYMBOLS): Update.
9738         * symfile.c (read_symbols): Set minsyms_read.
9739         (reread_symbols): Update.
9740         * symmisc.c (dump_objfile, dump_msymbols): Update.
9741
9742 2014-02-26  Tom Tromey  <tromey@redhat.com>
9743
9744         * minsyms.c (msymbols_sort): Remove.
9745         * minsyms.h (msymbols_sort): Remove.
9746         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9747         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9748         * elfread.c (elf_symtab_read): Don't add section offsets.
9749         * xcoffread.c (record_minimal_symbol): Don't add section offset
9750         to minimal symbol address.
9751         * somread.c (text_offset, data_offset): Remove.
9752         (som_symtab_read): Don't add section offsets to minimal symbol
9753         addresses.
9754         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9755         Don't add section offsets to minimal symbols.
9756         * coffread.c (coff_symtab_read): Don't add section offsets
9757         to minimal symbol addresses.
9758         * machoread.c (macho_symtab_add_minsym): Don't add section offset
9759         to minimal symbol addresses.
9760         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9761         section offset to minimal symbol addresses.
9762         * mdebugread.c (parse_partial_symbols): Don't add section
9763         offset to minimal symbol addresses.
9764         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9765         offset to minimal symbol addresses.
9766
9767 2014-02-26  Tom Tromey  <tromey@redhat.com>
9768
9769         * ada-lang.c (ada_main_name): Update.
9770         (ada_add_standard_exceptions): Update.
9771         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9772         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9773         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9774         * auxv.c (ld_so_xfer_auxv): Update.
9775         * avr-tdep.c (avr_scan_prologue): Update.
9776         * ax-gdb.c (gen_var_ref): Update.
9777         * blockframe.c (get_pc_function_start)
9778         (find_pc_partial_function_gnu_ifunc): Update.
9779         * breakpoint.c (create_overlay_event_breakpoint)
9780         (create_longjmp_master_breakpoint)
9781         (create_std_terminate_master_breakpoint)
9782         (create_exception_master_breakpoint): Update.
9783         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9784         * c-valprint.c (c_val_print): Update.
9785         * coff-pe-read.c (add_pe_forwarded_sym): Update.
9786         * common/agent.c (agent_look_up_symbols): Update.
9787         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9788         * dwarf2loc.c (call_site_to_target_addr): Update.
9789         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
9790         * elfread.c (elf_gnu_ifunc_record_cache)
9791         (elf_gnu_ifunc_resolve_by_got): Update.
9792         * findvar.c (default_read_var_value): Update.
9793         * frame.c (inside_main_func): Update.
9794         * frv-tdep.c (frv_frame_this_id): Update.
9795         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9796         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9797         Update.
9798         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
9799         (hppa_hpux_find_dummy_bpaddr): Update.
9800         * hppa-tdep.c (hppa_symbol_address): Update.
9801         * infcmd.c (until_next_command): Update.
9802         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
9803         Update.
9804         * linespec.c (minsym_found, add_minsym): Update.
9805         * linux-nat.c (get_signo): Update.
9806         * linux-thread-db.c (inferior_has_bug): Update.
9807         * m32c-tdep.c (m32c_return_value)
9808         (m32c_m16c_address_to_pointer): Update.
9809         * m32r-tdep.c (m32r_frame_this_id): Update.
9810         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9811         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9812         * maint.c (maintenance_translate_address): Update.
9813         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
9814         (frob_address): New function.
9815         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
9816         frob_address.  Rename parameter to "pc_in".
9817         (compare_minimal_symbols, compact_minimal_symbols): Use raw
9818         addresses.
9819         (find_solib_trampoline_target, minimal_symbol_upper_bound):
9820         Update.
9821         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9822         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
9823         * objc-lang.c (find_objc_msgsend): Update.
9824         * objfiles.c (objfile_relocate1): Update.
9825         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9826         * p-valprint.c (pascal_val_print): Update.
9827         * parse.c (write_exp_msymbol): Update.
9828         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
9829         (ppc_elfv2_skip_entrypoint): Update.
9830         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9831         * printcmd.c (build_address_symbolic, msym_info)
9832         (address_info): Update.
9833         * proc-service.c (ps_pglobal_lookup): Update.
9834         * psymtab.c (find_pc_sect_psymtab_closer)
9835         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
9836         Change msymbol parameter to bound_minimal_symbol.
9837         * ravenscar-thread.c (get_running_thread_id): Update.
9838         * remote.c (remote_check_symbols): Update.
9839         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
9840         address.
9841         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9842         * solib-dsbt.c (lm_base): Update.
9843         * solib-frv.c (lm_base, main_got): Update.
9844         * solib-irix.c (locate_base): Update.
9845         * solib-som.c (som_solib_create_inferior_hook)
9846         (link_map_start): Update.
9847         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
9848         * solib-svr4.c (elf_locate_base, enable_break): Update.
9849         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9850         (flush_ea_cache): Update.
9851         * stabsread.c (define_symbol, scan_file_globals): Update.
9852         * stack.c (find_frame_funname): Update.
9853         * symfile-debug.c (debug_qf_expand_symtabs_matching)
9854         (debug_qf_find_pc_sect_symtab): Update.
9855         * symfile.c (simple_read_overlay_table)
9856         (simple_overlay_update): Update.
9857         * symfile.h (struct quick_symbol_functions)
9858         <find_pc_sect_symtab>: Change type of msymbol to
9859         bound_minimal_symbol.
9860         * symmisc.c (dump_msymbols): Update.
9861         * symtab.c (find_pc_sect_symtab_via_partial)
9862         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
9863         (search_symbols, print_msymbol_info): Update.
9864         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
9865         (MSYMBOL_VALUE_ADDRESS): Redefine.
9866         (BMSYMBOL_VALUE_ADDRESS): New macro.
9867         * tracepoint.c (scope_info): Update.
9868         * tui/tui-disasm.c (tui_find_disassembly_address)
9869         (tui_get_begin_asm_address): Update.
9870         * valops.c (find_function_in_inferior): Update.
9871         * value.c (value_static_field, value_fn_field): Update.
9872
9873 2014-02-26  Tom Tromey  <tromey@redhat.com>
9874
9875         * ada-lang.c (ada_update_initial_language): Update.
9876         (ada_main_name, ada_has_this_exception_support): Update.
9877         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9878         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9879         * arm-tdep.c (arm_skip_stub): Update.
9880         * auxv.c (ld_so_xfer_auxv): Update.
9881         * avr-tdep.c (avr_scan_prologue): Update.
9882         * ax-gdb.c (gen_var_ref): Update.
9883         * breakpoint.c (struct breakpoint_objfile_data)
9884         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
9885         type to bound_minimal_symbol.
9886         (create_overlay_event_breakpoint)
9887         (create_longjmp_master_breakpoint)
9888         (create_std_terminate_master_breakpoint)
9889         (create_exception_master_breakpoint): Update.
9890         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9891         * c-exp.y (classify_name): Update.
9892         * coffread.c (coff_symfile_read): Update.
9893         * common/agent.c (agent_look_up_symbols): Update.
9894         * d-lang.c (d_main_name): Update.
9895         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
9896         * dec-thread.c (enable_dec_thread): Update.
9897         * dwarf2loc.c (call_site_to_target_addr): Update.
9898         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
9899         * eval.c (evaluate_subexp_standard): Update.
9900         * findvar.c (struct minsym_lookup_data) <result>: Change type
9901         to bound_minimal_symbol.
9902         <objfile>: Remove.
9903         (minsym_lookup_iterator_cb, default_read_var_value): Update.
9904         * frame.c (inside_main_func): Update.
9905         * frv-tdep.c (frv_frame_this_id): Update.
9906         * gcore.c (call_target_sbrk): Update.
9907         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
9908         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
9909         Update.
9910         * go-lang.c (go_main_name): Update.
9911         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
9912         (hppa_hpux_find_import_stub_for_addr): Update.
9913         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
9914         Update.  Change return type.
9915         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
9916         type.
9917         * jit.c (jit_breakpoint_re_set_internal): Update.
9918         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
9919         Update.
9920         * linux-nat.c (get_signo): Update.
9921         * linux-thread-db.c (inferior_has_bug): Update
9922         * m32c-tdep.c (m32c_return_value)
9923         (m32c_m16c_address_to_pointer): Update.
9924         * m32r-tdep.c (m32r_frame_this_id): Update.
9925         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
9926         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
9927         * minsyms.c (lookup_minimal_symbol_internal): Rename to
9928         lookup_minimal_symbol.  Change return type.
9929         (lookup_minimal_symbol): Remove.
9930         (lookup_bound_minimal_symbol): Update.
9931         (lookup_minimal_symbol_text): Change return type.
9932         (lookup_minimal_symbol_solib_trampoline): Change return type.
9933         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
9934         (lookup_minimal_symbol_solib_trampoline): Change return type.
9935         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
9936         * objc-lang.c (lookup_objc_class, lookup_child_selector)
9937         (value_nsstring, find_imps): Update.
9938         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
9939         * p-lang.c (pascal_main_name): Update.
9940         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
9941         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
9942         * proc-service.c (ps_pglobal_lookup): Update.
9943         * ravenscar-thread.c (get_running_thread_msymbol): Change
9944         return type.
9945         (has_ravenscar_runtime, get_running_thread_id): Update.
9946         * remote.c (remote_check_symbols): Update.
9947         * sol-thread.c (ps_pglobal_lookup): Update.
9948         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
9949         * solib-dsbt.c (lm_base): Update.
9950         * solib-frv.c (lm_base, frv_relocate_section_addresses):
9951         Update.
9952         * solib-irix.c (locate_base): Update.
9953         * solib-som.c (som_solib_create_inferior_hook)
9954         (som_solib_desire_dynamic_linker_symbols, link_map_start):
9955         Update.
9956         * solib-spu.c (spu_enable_break): Update.
9957         * solib-svr4.c (elf_locate_base, enable_break): Update.
9958         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
9959         (flush_ea_cache): Update.
9960         * stabsread.c (define_symbol): Update.
9961         * symfile.c (simple_read_overlay_table): Update.
9962         * symtab.c (find_pc_sect_line): Update.
9963         * tracepoint.c (scope_info): Update.
9964         * tui-disasm.c (tui_get_begin_asm_address): Update.
9965         * value.c (value_static_field): Update.
9966
9967 2014-02-26  Tom Tromey  <tromey@redhat.com>
9968
9969         * minsyms.c (prim_record_minimal_symbol_full): Use
9970         SET_MSYMBOL_VALUE_ADDRESS.
9971         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
9972         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
9973         SET_MSYMBOL_VALUE_ADDRESS.
9974         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
9975         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
9976
9977 2014-02-26  Tom Tromey  <tromey@redhat.com>
9978
9979         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
9980         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
9981         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
9982         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
9983         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
9984         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
9985         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
9986         * ada-lang.c (ada_main_name): Update.
9987         (ada_lookup_simple_minsym): Update.
9988         (ada_make_symbol_completion_list): Update.
9989         (ada_add_standard_exceptions): Update.
9990         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
9991         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9992         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
9993         * arm-tdep.c (skip_prologue_function): Update.
9994         (arm_skip_stack_protector, arm_skip_stub): Update.
9995         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
9996         (arm_wince_skip_main_prologue): Update.
9997         * auxv.c (ld_so_xfer_auxv): Update.
9998         * avr-tdep.c (avr_scan_prologue): Update.
9999         * ax-gdb.c (gen_var_ref): Update.
10000         * block.c (call_site_for_pc): Update.
10001         * blockframe.c (get_pc_function_start): Update.
10002         (find_pc_partial_function_gnu_ifunc): Update.
10003         * breakpoint.c (create_overlay_event_breakpoint): Update.
10004         (create_longjmp_master_breakpoint): Update.
10005         (create_std_terminate_master_breakpoint): Update.
10006         (create_exception_master_breakpoint): Update.
10007         (resolve_sal_pc): Update.
10008         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10009         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10010         Update.
10011         * c-valprint.c (c_val_print): Update.
10012         * coff-pe-read.c (add_pe_forwarded_sym): Update.
10013         * coffread.c (coff_symfile_read): Update.
10014         * common/agent.c (agent_look_up_symbols): Update.
10015         * dbxread.c (find_stab_function_addr): Update.
10016         (end_psymtab): Update.
10017         * dwarf2loc.c (call_site_to_target_addr): Update.
10018         (func_verify_no_selftailcall): Update.
10019         (tailcall_dump): Update.
10020         (call_site_find_chain_1): Update.
10021         (dwarf_expr_reg_to_entry_parameter): Update.
10022         * elfread.c (elf_gnu_ifunc_record_cache): Update.
10023         (elf_gnu_ifunc_resolve_by_got): Update.
10024         * f-valprint.c (info_common_command): Update.
10025         * findvar.c (read_var_value): Update.
10026         * frame.c (get_prev_frame_1): Update.
10027         (inside_main_func): Update.
10028         * frv-tdep.c (frv_skip_main_prologue): Update.
10029         (frv_frame_this_id): Update.
10030         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10031         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10032         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10033         (gnuv3_skip_trampoline): Update.
10034         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10035         (hppa64_hpux_in_solib_call_trampoline): Update.
10036         (hppa_hpux_skip_trampoline_code): Update.
10037         (hppa64_hpux_search_dummy_call_sequence): Update.
10038         (hppa_hpux_find_import_stub_for_addr): Update.
10039         (hppa_hpux_find_dummy_bpaddr): Update.
10040         * hppa-tdep.c (hppa_symbol_address)
10041         (hppa_lookup_stub_minimal_symbol): Update.
10042         * i386-tdep.c (i386_skip_main_prologue): Update.
10043         (i386_pe_skip_trampoline_code): Update.
10044         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10045         * infcall.c (get_function_name): Update.
10046         * infcmd.c (until_next_command): Update.
10047         * jit.c (jit_breakpoint_re_set_internal): Update.
10048         (jit_inferior_init): Update.
10049         * linespec.c (minsym_found): Update.
10050         (add_minsym): Update.
10051         * linux-fork.c (info_checkpoints_command): Update.
10052         * linux-nat.c (get_signo): Update.
10053         * linux-thread-db.c (inferior_has_bug): Update.
10054         * m32c-tdep.c (m32c_return_value): Update.
10055         (m32c_m16c_address_to_pointer): Update.
10056         (m32c_m16c_pointer_to_address): Update.
10057         * m32r-tdep.c (m32r_frame_this_id): Update.
10058         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10059         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10060         * maint.c (maintenance_translate_address): Update.
10061         * minsyms.c (add_minsym_to_hash_table): Update.
10062         (add_minsym_to_demangled_hash_table): Update.
10063         (msymbol_objfile): Update.
10064         (lookup_minimal_symbol): Update.
10065         (iterate_over_minimal_symbols): Update.
10066         (lookup_minimal_symbol_text): Update.
10067         (lookup_minimal_symbol_by_pc_name): Update.
10068         (lookup_minimal_symbol_solib_trampoline): Update.
10069         (lookup_minimal_symbol_by_pc_section_1): Update.
10070         (lookup_minimal_symbol_and_objfile): Update.
10071         (prim_record_minimal_symbol_full): Update.
10072         (compare_minimal_symbols): Update.
10073         (compact_minimal_symbols): Update.
10074         (build_minimal_symbol_hash_tables): Update.
10075         (install_minimal_symbols): Update.
10076         (terminate_minimal_symbol_table): Update.
10077         (find_solib_trampoline_target): Update.
10078         (minimal_symbol_upper_bound): Update.
10079         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10080         * mips-tdep.c (mips_stub_frame_sniffer): Update.
10081         (mips_skip_pic_trampoline_code): Update.
10082         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10083         * objc-lang.c (selectors_info): Update.
10084         (classes_info): Update.
10085         (find_methods): Update.
10086         (find_imps): Update.
10087         (find_objc_msgsend): Update.
10088         * objfiles.c (objfile_relocate1): Update.
10089         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10090         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10091         * p-valprint.c (pascal_val_print): Update.
10092         * parse.c (write_exp_msymbol): Update.
10093         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10094         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10095         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10096         * printcmd.c (build_address_symbolic): Update.
10097         (sym_info): Update.
10098         (address_info): Update.
10099         * proc-service.c (ps_pglobal_lookup): Update.
10100         * psymtab.c (find_pc_sect_psymtab_closer): Update.
10101         (find_pc_sect_psymtab): Update.
10102         * python/py-framefilter.c (py_print_frame): Update.
10103         * ravenscar-thread.c (get_running_thread_id): Update.
10104         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10105         Update.
10106         * remote.c (remote_check_symbols): Update.
10107         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10108         (rs6000_skip_trampoline_code): Update.
10109         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10110         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10111         * solib-dsbt.c (lm_base): Update.
10112         * solib-frv.c (lm_base): Update.
10113         (main_got): Update.
10114         * solib-irix.c (locate_base): Update.
10115         * solib-som.c (som_solib_create_inferior_hook): Update.
10116         (som_solib_desire_dynamic_linker_symbols): Update.
10117         (link_map_start): Update.
10118         * solib-spu.c (spu_enable_break): Update.
10119         (ocl_enable_break): Update.
10120         * solib-svr4.c (elf_locate_base): Update.
10121         (enable_break): Update.
10122         * spu-tdep.c (spu_get_overlay_table): Update.
10123         (spu_catch_start): Update.
10124         (flush_ea_cache): Update.
10125         * stabsread.c (define_symbol): Update.
10126         (scan_file_globals): Update.
10127         * stack.c (find_frame_funname): Update.
10128         (frame_info): Update.
10129         * symfile.c (simple_read_overlay_table): Update.
10130         (simple_overlay_update): Update.
10131         * symmisc.c (dump_msymbols): Update.
10132         * symtab.c (fixup_section): Update.
10133         (find_pc_sect_line): Update.
10134         (skip_prologue_sal): Update.
10135         (search_symbols): Update.
10136         (print_msymbol_info): Update.
10137         (rbreak_command): Update.
10138         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10139         (completion_list_objc_symbol): Update.
10140         (default_make_symbol_completion_list_break_on): Update.
10141         * tracepoint.c (scope_info): Update.
10142         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10143         (tui_get_begin_asm_address): Update.
10144         * valops.c (find_function_in_inferior): Update.
10145         * value.c (value_static_field): Update.
10146         (value_fn_field): Update.
10147
10148 2014-02-26  Tom Tromey  <tromey@redhat.com>
10149
10150         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10151         bound minimal symbols.  Move code that knows about minsym
10152         table layout...
10153         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
10154         function.
10155         * minsyms.h (minimal_symbol_upper_bound): Declare.
10156         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10157         minimal_symbol_upper_bound.
10158
10159 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
10160
10161         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10162         Use the type's name if its basic type does not have a tag.
10163
10164 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
10165
10166         * dwarf2read.c (read_subrange_type): Add comment.
10167
10168 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
10169
10170         * dwarf2read.c (update_enumeration_type_from_children): New
10171         function, mostly extracted from process_structure_scope.
10172         (read_enumeration_type): Call update_enumeration_type_from_children.
10173         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10174         and flag_flag_enum fields.
10175
10176 2014-02-26  Pedro Alves  <palves@redhat.com>
10177
10178         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10179         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10180         to_xfer_partial method.
10181
10182 2014-02-26  Pedro Alves  <palves@redhat.com>
10183
10184         * target.c (complete_target_initialization): Don't install
10185         default_xfer_partial as to_xfer_partial hook.
10186         (nomemory): Delete.
10187         (update_current_target): Don't INHERIT nor de_fault
10188         deprecated_xfer_memory.  Delete de_fault macro.
10189         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10190         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10191         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10192         field.
10193
10194 2014-02-26  Pedro Alves  <palves@redhat.com>
10195
10196         * go32-nat.c (my_write_child): New function.
10197         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10198         (go32_xfer_partial): New function.
10199         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10200         Instead install a to_xfer_partial hook.
10201
10202 2014-02-26  Pedro Alves  <palves@redhat.com>
10203
10204         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10205         to_xfer_partial helper.  Rewrite.
10206         (procfs_xfer_partial): New function.
10207         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10208         Install a to_xfer_partial hook.
10209
10210 2014-02-26  Pedro Alves  <palves@redhat.com>
10211
10212         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10213         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10214         (m32r_xfer_partial): New function.
10215         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10216         Install a to_xfer_partial hook.
10217
10218 2014-02-26  Pedro Alves  <palves@redhat.com>
10219
10220         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10221         helper.
10222         (mips_xfer_partial): New function.
10223         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10224         hook.  Install a to_xfer_partial hook.
10225
10226 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
10227
10228         * gdbtypes.h (create_array_type_with_stride): Add declaration.
10229         * gdbtypes.c (create_array_type_with_stride): New function,
10230         renaming create_array_type, but with an added parameter
10231         called "bit_stride".
10232         (create_array_type): Re-implement using
10233         create_array_type_with_stride.
10234         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10235         and DW_AT_bit_stride attributes.
10236
10237 2014-02-26  Pedro Alves  <palves@redhat.com>
10238
10239         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10240         task-specific breakpoints.
10241
10242 2014-02-25  Pedro Alves  <palves@redhat.com>
10243
10244         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10245         handling of object == TARGET_OBJECT_UNWIND_TABLE.
10246
10247 2014-02-25  Stan Shebs  <stan@codesourcery.com>
10248
10249         * defs.h: Annotate comments for Doxygen.
10250
10251 2014-02-25  Tom Tromey  <tromey@redhat.com>
10252
10253         * target.h (target_ignore): Don't declare.
10254         * target.c (target_ignore): Remove.
10255
10256 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
10257
10258         PR gdb/16626
10259         * auto-load.c (auto_load_objfile_script_1): Change filename to
10260         debugfile.
10261
10262 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
10263
10264         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10265         documentation.  Adjust prototype to match the target_ops
10266         to_xfer_partial method.  Adjust implementation accordingly.
10267
10268 2014-02-25  Hui Zhu  <hui@codesourcery.com>
10269
10270         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10271         to_traceframe_info.
10272
10273 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
10274
10275         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10276         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10277         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10278         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10279         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10280         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10281         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10282         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10283         New constants.
10284         (rl78_register_type): Use a data pointer type for SP and
10285         new pseudo registers mentioned above.  Use a 16 bit integer
10286         type for all other register pairs.
10287         (rl78_register_name, rl78_g10_register_name): Update for
10288         new pseudo registers.
10289         (rl78_pseudo_register_read): Likewise.
10290         (rl78_pseudo_register_write): Likewise.
10291         (rl78_dwarf_reg_to_regnum): Return register numbers representing
10292         to the newly added pseudo registers.
10293
10294 2014-02-24  Doug Evans  <dje@google.com>
10295
10296         * value.c (record_latest_value): Fix comment.
10297         * printcmd.c (print_command_1): Remove code to handle -1 return from
10298         record_latest_value.
10299
10300 2014-02-24  Pedro Alves  <palves@redhat.com>
10301
10302         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10303         deprecated_xfer_memory hook.
10304         (procfs_xfer_partial): Call procfs_xfer_memory instead
10305         of the deprecated_xfer_memory target hook.
10306         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10307         helper.
10308
10309 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
10310
10311         * windows-nat.c (windows_xfer_shared_libraries): Return
10312         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10313         requested object is TARGET_OBJECT_LIBRARIES.
10314
10315 2014-02-24  Yao Qi  <yao@codesourcery.com>
10316
10317         * target.h (enum target_xfer_status)
10318         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10319         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10320         explicitly.  New.
10321         * corefile.c (memory_error_message): User updated.
10322         * exec.c (section_table_read_available_memory): Likewise.
10323         * record-btrace.c (record_btrace_xfer_partial): Likewise.
10324         * target.c (target_xfer_status_to_string): Likewise.
10325         (raw_memory_xfer_partial): Likewise.
10326         (memory_xfer_partial_1, target_xfer_partial): Likewise.
10327         * valops.c (read_value_memory): Likewise.
10328         * exec.h: Update comments.
10329
10330 2014-02-24  Yao Qi  <yao@codesourcery.com>
10331
10332         * target.c (target_xfer_status_to_string): Rename argument err
10333         to status.
10334         * target.h (target_xfer_status_to_string): Update declaration.
10335         Replace target_xfer_error_to_string with
10336         target_xfer_status_to_string in comment.
10337
10338 2014-02-24  Yao Qi  <yao@codesourcery.com>
10339
10340         * mips-linux-nat.c (super_close): Update its type.
10341         (mips_linux_close): Pass 'self' to super_close.
10342
10343 2014-02-24  Yao Qi  <yao@codesourcery.com>
10344
10345         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10346         * corefile.c (read_memory): Adjusted.
10347         * target.c (target_write_with_progress): Adjusted.
10348
10349 2014-02-23  Yao Qi  <yao@codesourcery.com>
10350
10351         Revert two patches:
10352
10353         2013-10-25  Yao Qi  <yao@codesourcery.com>
10354
10355         * remote.c (remote_traceframe_info): Return early if
10356         traceframe is not selected.
10357
10358         2013-07-19  Yao Qi  <yao@codesourcery.com>
10359
10360         * target.c (update_current_target): Change the default action
10361         of 'to_traceframe_info' from tcomplain to return_zero.
10362         * target.h (struct target_ops) <to_traceframe_info>: Add more
10363         comments.
10364
10365 2014-02-23  Yao Qi  <yao@codesourcery.com>
10366
10367         * valops.c (read_value_memory): Rewrite it.  Call
10368         target_xfer_partial in a loop.
10369         * exec.h (section_table_available_memory): Remove declaration.
10370         Move comments to ...
10371         * exec.c (section_table_available_memory): ... here.  Make it
10372         static.
10373
10374 2014-02-23  Yao Qi  <yao@codesourcery.com>
10375
10376         * exec.c (section_table_read_available_memory): New function.
10377         * exec.h (section_table_read_available_memory): Declare.
10378         * ctf.c (ctf_xfer_partial): Call
10379         section_table_read_available_memory.
10380         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10381
10382 2014-02-23  Yao Qi  <yao@codesourcery.com>
10383
10384         * ctf.c (ctf_xfer_partial): Move code to ...
10385         * exec.c (exec_read_partial_read_only): ... it.  New function.
10386         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10387         * tracefile.c: Include "exec.h".
10388         * exec.h (exec_read_partial_read_only): Declare.
10389
10390 2014-02-23  Yao Qi  <yao@codesourcery.com>
10391
10392         * tracefile-tfile.c (tfile_has_all_memory): Remove.
10393         (tfile_has_memory): Remove.
10394         (init_tfile_ops): Don't set fields to_has_all_memory and
10395         to_has_memory of tfile_ops.
10396         * tracefile.c (tracefile_has_all_memory): New function.
10397         (tracefile_has_memory): New function.
10398         (init_tracefile_ops): Initialize fields to_has_all_memory and
10399         to_has_memory of 'ops'.
10400
10401 2014-02-23  Yao Qi  <yao@codesourcery.com>
10402
10403         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10404         (ctf_thread_alive, ctf_get_trace_status): Remove.
10405         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
10406         init_tracefile_ops.
10407         * tracefile-tfile.c (tfile_get_trace_status): Remove.
10408         (tfile_has_stack, tfile_has_registers): Remove.
10409         (tfile_thread_alive): Remove.
10410         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
10411         init_tracefile_ops.
10412         * tracefile.c (tracefile_has_stack): New function.
10413         (tracefile_has_registers): New function.
10414         (tracefile_thread_alive): New function.
10415         (tracefile_get_trace_status): New function.
10416         (init_tracefile_ops): New function.
10417         * tracefile.h (init_tracefile_ops): Declare.
10418
10419 2014-02-23  Yao Qi  <yao@codesourcery.com>
10420
10421         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10422         (O_LARGEFILE): Likewise.
10423         (tfile_ops): Likewise.
10424         (TRACE_HEADER_SIZE): Likewise.
10425         (trace_fd, trace_frames_offset, cur_offset): Likewise.
10426         (cur_data_size): Likewise.
10427         (tfile_read, tfile_open, tfile_interp_line): Likewise.
10428         (tfile_close, tfile_files_info): Likewise.
10429         (tfile_get_trace_status): Likewise.
10430         (tfile_get_tracepoint_status): Likewise.
10431         (tfile_get_traceframe_address): Likewise.
10432         (tfile_trace_find, match_blocktype): Likewise.
10433         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10434         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10435         (tfile_get_trace_state_variable_value): Likewise.
10436         (tfile_has_all_memory, tfile_has_memory): Likewise.
10437         (tfile_has_stack, tfile_has_registers): Likewise.
10438         (tfile_thread_alive, build_traceframe_info): Likewise.
10439         (tfile_traceframe_info, init_tfile_ops): Likewise.
10440         (_initialize_tracepoint): Don't call init_tfile_ops
10441         and add_target_with_completer.
10442         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10443         exec.h, completer.h and filenames.h.
10444         (_initialize_tracefile_tfile): New function.
10445
10446 2014-02-23  Yao Qi  <yao@codesourcery.com>
10447
10448         * Makefile.in (REMOTE_OBS): Append tracefile.o and
10449         tracefile-tfile.o.
10450         (HFILES_NO_SRCDIR): Add tracefile.h.
10451         * ctf.c: Include "tracefile.h".
10452         * tracefile.h: New file.
10453         * tracefile.c: New file
10454         * tracefile-tfile.c: New file.
10455         * tracepoint.c: Include "tracefile.h".
10456         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10457         (stop_reason_names): Add const.
10458         (trace_file_writer_xfree): Move it to tracefile.c.
10459         (trace_save, trace_save_command, trace_save_tfile): Likewise.
10460         (trace_save_ctf): Likewise.
10461         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10462         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10463         (tfile_write_header, tfile_write_regblock_type): Likewise.
10464         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10465         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10466         (tfile_write_raw_data, tfile_end): Likewise.
10467         (tfile_trace_file_writer_new): Likewise.
10468         (free_uploaded_tp): Make it extern.
10469         (free_uploaded_tsv): Make it extern.
10470         (_initialize_tracepoint): Move code to register command 'tsave'
10471         to tracefile.c.
10472         * tracepoint.h (stop_reason_names): Declare.
10473         (struct trace_frame_write_ops): Move it to tracefile.h.
10474         (struct trace_file_write_ops): Likewise.
10475         (struct trace_file_writer): Likewise.
10476         (free_uploaded_tsvs, free_uploaded_tps): Declare.
10477
10478 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
10479
10480         PR gdb/16594
10481         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10482         process name.
10483         (get_cores_used_by_process): New parameter num_cores, use it.
10484         (linux_xfer_osdata_processes): Pass num_cores to it.
10485         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10486         process name.
10487
10488 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
10489
10490         * target.c (memory_xfer_partial): Fix length arg in call to
10491         breakpoint_xfer_memory.
10492
10493 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
10494
10495         PR tdep/16397
10496         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10497         number comes after the + or - signs.  Adjust length of register
10498         name to be extracted.
10499
10500 2014-02-20  Tom Tromey  <tromey@redhat.com>
10501
10502         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10503         (ada_varobj_ops): Mark "extern".
10504
10505 2014-02-20  Tom Tromey  <tromey@redhat.com>
10506
10507         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10508
10509 2014-02-20  Doug Evans  <xdje42@gmail.com>
10510
10511         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10512         All callers updated.
10513         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10514         All callers updated.
10515         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10516         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10517
10518 2014-02-20  lin zuojian  <manjian2006@gmail.com>
10519             Joel Brobecker  <brobecker@adacore.com>
10520             Doug Evans  <xdje42@gmail.com>
10521
10522         PR symtab/16581
10523         * dwarf2read.c (struct die_info): New member in_process.
10524         (reset_die_in_process): New function.
10525         (process_die): Set it at the start, reset when returning.
10526         (inherit_abstract_dies): Only call process_die if origin_child_die
10527         not already being processed.
10528
10529 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10530
10531         * windows-nat.c (handle_unload_dll): Add function documentation.
10532         (do_initial_windows_stuff): Add comment explaining why we wait
10533         until after inferior initialization has finished before
10534         processing all DLLs.
10535
10536 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10537
10538         * windows-nat.c (get_module_name): Delete.
10539         (windows_get_exec_module_filename): New function, mostly
10540         inspired from get_module_name.
10541         (windows_pid_to_exec_file): Replace call to get_module_name
10542         by call to windows_get_exec_module_filename.
10543
10544 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10545
10546         * windows-nat.c (handle_load_dll): Rewrite this function's
10547         introductory comment.  Remove code using get_module_name
10548         to get the DLL's name.
10549
10550 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10551
10552         * windows-nat.c (get_windows_debug_event): Ignore
10553         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10554         if windows_initialization_done == 0.
10555         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10556         Adjust implementation to always load all DLLs.
10557         (do_initial_windows_stuff): Replace call to
10558         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10559
10560 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10561
10562         * windows-nat.c (_initialize_windows_nat): Deprecate the
10563         "dll-symbols" command.  Turn the "add-shared-symbol-files"
10564         and "assf" aliases into commands, and deprecate them as well.
10565         * NEWS: Add entry explaining that "dll-symbols" and its two
10566         aliases are now deprecated.
10567
10568 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10569
10570         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10571         new-line in debug string.  Remove trailing spaces.
10572
10573 2014-02-19  Stan Shebs  <stan@codesourcery.com>
10574
10575         * darwin-nat.c (darwin_xfer_partial): Fix return type.
10576
10577 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
10578
10579         * NEWS: Add entry for the new feature
10580         * python/py-value.c (valpy_binop): Call value_x_binop for struct
10581         and class values.
10582
10583 2014-02-19  Stan Shebs  <stan@codesourcery.com>
10584
10585         * MAINTAINERS: List Yao Qi as nios2 maintainer.
10586
10587 2014-02-19  Pedro Alves  <palves@redhat.com>
10588
10589         * common/ptid.h (struct ptid): Mention that process_stratum
10590         targets should prefer ptid.lwp.
10591
10592 2014-02-19  Pedro Alves  <palves@redhat.com>
10593
10594         * remote.c (remote_thread_alive, write_ptid, read_ptid)
10595         (read_ptid, remote_newthread_step, remote_threads_extra_info)
10596         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10597         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10598         store remote thread ids rather than ptid.tid.
10599         (_initialize_remote): Adjust.
10600
10601 2014-02-19  Tom Tromey  <tromey@redhat.com>
10602
10603         * target.c (target_get_unwinder): Rewrite.
10604         (target_get_tailcall_unwinder): Rewrite.
10605         * record-btrace.c (record_btrace_to_get_unwinder): New function.
10606         (record_btrace_to_get_tailcall_unwinder): New function.
10607         (init_record_btrace_ops): Update.
10608         * target.h (struct target_ops) <to_get_unwinder,
10609         to_get_tailcall_unwinder>: Now function pointers.  Use
10610         TARGET_DEFAULT_RETURN.
10611
10612 2014-02-19  Tom Tromey  <tromey@redhat.com>
10613
10614         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10615         argument.
10616         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10617
10618 2014-02-19  Tom Tromey  <tromey@redhat.com>
10619
10620         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10621         directly.
10622         * target-delegates.c: Rebuild.
10623         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10624         TARGET_DEFAULT_FUNC.
10625         * target.c (default_target_decr_pc_after_break): Rename from
10626         forward_target_decr_pc_after_break.  Simplify.
10627         (target_decr_pc_after_break): Rely on delegation.
10628
10629 2014-02-19  Tom Tromey  <tromey@redhat.com>
10630
10631         * target.c (update_current_target): Do not INHERIT to_doc or
10632         to_magic.  Do not de_fault to_open or to_close.
10633
10634 2014-02-19  Tom Tromey  <tromey@redhat.com>
10635
10636         * gcore.h (objfile_find_memory_regions): Declare.
10637         * gcore.c (objfile_find_memory_regions): No longer static.  Add
10638         "self" argument.
10639         (_initialize_gcore): Don't call exec_set_find_memory_regions.
10640         * exec.c: Include gcore.h.
10641         (exec_set_find_memory_regions): Remove.
10642         (exec_find_memory_regions): Remove.
10643         (exec_do_find_memory_regions): Remove.
10644         (init_exec_ops): Update.
10645         * defs.h (exec_set_find_memory_regions): Remove.
10646
10647 2014-02-19  Tom Tromey  <tromey@redhat.com>
10648
10649         * target-delegates.c: Rebuild.
10650         * target.h (struct target_ops) <to_extra_thread_info,
10651         to_thread_name, to_pid_to_exec_file, to_get_section_table,
10652         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10653         not 0, in TARGET_DEFAULT_RETURN.
10654
10655 2014-02-19  Tom Tromey  <tromey@redhat.com>
10656
10657         * target.c (complete_target_initialization): Remove casts.  Use
10658         return_zero_has_execution.
10659         (return_zero): Add "ignore" argument.
10660         (return_zero_has_execution): New function.
10661         (init_dummy_target): Remove casts.  Use
10662         return_zero_has_execution.
10663
10664 2014-02-19  Tom Tromey  <tromey@redhat.com>
10665
10666         * target.c (update_current_target): Update comments.  Do not
10667         INHERIT to_stratum.
10668
10669 2014-02-19  Tom Tromey  <tromey@redhat.com>
10670
10671         * arm-linux-nat.c (arm_linux_read_description): Delegate when
10672         needed.
10673         * corelow.c (core_read_description): Delegate when needed.
10674         * remote.c (remote_read_description): Delegate when needed.
10675         * target-delegates.c: Rebuild.
10676         * target.c (target_read_description): Rewrite.
10677         * target.h (struct target_ops) <to_read_description>: Update
10678         comment.  Use TARGET_DEFAULT_RETURN.
10679
10680 2014-02-19  Tom Tromey  <tromey@redhat.com>
10681
10682         * target-delegates.c: Rebuild.
10683         * target.c (update_current_target): Don't inherit or default
10684         to_can_run.
10685         (find_default_run_target): Check against delegate_can_run.
10686         * target.h (struct target_ops) <to_can_run>: Use
10687         TARGET_DEFAULT_RETURN.
10688
10689 2014-02-19  Tom Tromey  <tromey@redhat.com>
10690
10691         * target-delegates.c: Rebuild.
10692         * target.c (target_disconnect): Unconditionally delegate.
10693         * target.h (struct target_ops) <to_disconnect>: Use
10694         TARGET_DEFAULT_NORETURN.
10695
10696 2014-02-19  Tom Tromey  <tromey@redhat.com>
10697
10698         * record.c (record_stop): Unconditionally delegate.
10699         * target-delegates.c: Rebuild.
10700         * target.c (target_stop_recording): Unconditionally delegate.
10701         * target.h (struct target_ops) <to_stop_recording>: Use
10702         TARGET_DEFAULT_IGNORE.
10703
10704 2014-02-19  Tom Tromey  <tromey@redhat.com>
10705
10706         * target-delegates.c: Rebuild.
10707         * target.c (target_enable_btrace): Unconditionally delegate.
10708         * target.h (struct target_ops) <to_enable_btrace>: Use
10709         TARGET_DEFAULT_NORETURN.
10710
10711 2014-02-19  Tom Tromey  <tromey@redhat.com>
10712
10713         * target-delegates.c: Rebuild.
10714         * target.c (target_read_btrace): Unconditionally delegate.
10715         * target.h (struct target_ops) <to_read_btrace>: Use
10716         TARGET_DEFAULT_NORETURN.
10717
10718 2014-02-19  Tom Tromey  <tromey@redhat.com>
10719
10720         * target-delegates.c: Rebuild.
10721         * target.c (target_teardown_btrace): Unconditionally delegate.
10722         * target.h (struct target_ops) <to_teardown_btrace>: Use
10723         TARGET_DEFAULT_NORETURN.
10724
10725 2014-02-19  Tom Tromey  <tromey@redhat.com>
10726
10727         * target-delegates.c: Rebuild.
10728         * target.c (target_disable_btrace): Unconditionally delegate.
10729         * target.h (struct target_ops) <to_disable_btrace>: Use
10730         TARGET_DEFAULT_NORETURN.
10731
10732 2014-02-19  Tom Tromey  <tromey@redhat.com>
10733
10734         * target-delegates.c: Rebuild.
10735         * target.c (default_search_memory): New function.
10736         (simple_search_memory): Update comment.
10737         (target_search_memory): Unconditionally delegate.
10738         * target.h (struct target_ops) <to_search_memory>: Use
10739         TARGET_DEFAULT_FUNC.
10740
10741 2014-02-19  Tom Tromey  <tromey@redhat.com>
10742
10743         * auxv.c (default_auxv_parse): No longer static.
10744         (target_auxv_parse): Unconditionally delegate.
10745         * auxv.h (default_auxv_parse): Declare.
10746         * target-delegates.c: Rebuild.
10747         * target.c: Include auxv.h.
10748         * target.h (struct target_ops) <to_auxv_parse>: Use
10749         TARGET_DEFAULT_FUNC.
10750
10751 2014-02-19  Tom Tromey  <tromey@redhat.com>
10752
10753         * target-delegates.c: Rebuild.
10754         * target.c (target_memory_map): Unconditionally delegate.
10755         * target.h (struct target_ops) <to_memory_map>: Use
10756         TARGET_DEFAULT_RETURN.
10757
10758 2014-02-19  Tom Tromey  <tromey@redhat.com>
10759
10760         * target-delegates.c: Rebuild.
10761         * target.c (target_thread_alive): Unconditionally delegate.
10762         * target.h (struct target_ops) <to_thread_alive>: Use
10763         TARGET_DEFAULT_RETURN.
10764
10765 2014-02-19  Tom Tromey  <tromey@redhat.com>
10766
10767         * target-delegates.c: Rebuild.
10768         * target.c (target_save_record): Unconditionally delegate.
10769         * target.h (struct target_ops) <to_save_record>: Use
10770         TARGET_DEFAULT_NORETURN.
10771
10772 2014-02-19  Tom Tromey  <tromey@redhat.com>
10773
10774         * target-delegates.c: Rebuild.
10775         * target.c (target_delete_record): Unconditionally delegate.
10776         * target.h (struct target_ops) <to_delete_record>: Use
10777         TARGET_DEFAULT_NORETURN.
10778
10779 2014-02-19  Tom Tromey  <tromey@redhat.com>
10780
10781         * target-delegates.c: Rebuild.
10782         * target.c (target_record_is_replaying): Unconditionally
10783         delegate.
10784         * target.h (struct target_ops) <to_record_is_replaying>: Use
10785         TARGET_DEFAULT_RETURN.
10786
10787 2014-02-19  Tom Tromey  <tromey@redhat.com>
10788
10789         * target-delegates.c: Rebuild.
10790         * target.c (target_goto_record_begin): Unconditionally delegate.
10791         * target.h (struct target_ops) <to_goto_record_begin>: Use
10792         TARGET_DEFAULT_NORETURN.
10793
10794 2014-02-19  Tom Tromey  <tromey@redhat.com>
10795
10796         * target-delegates.c: Rebuild.
10797         * target.c (target_goto_record_end): Unconditionally delegate.
10798         * target.h (struct target_ops) <to_goto_record_end>: Use
10799         TARGET_DEFAULT_NORETURN.
10800
10801 2014-02-19  Tom Tromey  <tromey@redhat.com>
10802
10803         * target-delegates.c: Rebuild.
10804         * target.c (target_goto_record): Unconditionally delegate.
10805         * target.h (struct target_ops) <to_goto_record>: Use
10806         TARGET_DEFAULT_NORETURN.
10807
10808 2014-02-19  Tom Tromey  <tromey@redhat.com>
10809
10810         * target-delegates.c: Rebuild.
10811         * target.c (target_insn_history): Unconditionally delegate.
10812         * target.h (struct target_ops) <to_insn_history>: Use
10813         TARGET_DEFAULT_NORETURN.
10814
10815 2014-02-19  Tom Tromey  <tromey@redhat.com>
10816
10817         * target-delegates.c: Rebuild.
10818         * target.c (target_insn_history_from): Unconditionally delegate.
10819         * target.h (struct target_ops) <to_insn_history_from>: Use
10820         TARGET_DEFAULT_NORETURN.
10821
10822 2014-02-19  Tom Tromey  <tromey@redhat.com>
10823
10824         * target-delegates.c: Rebuild.
10825         * target.c (target_insn_history_range): Unconditionally delegate.
10826         * target.h (struct target_ops) <to_insn_history_range>: Use
10827         TARGET_DEFAULT_NORETURN.
10828
10829 2014-02-19  Tom Tromey  <tromey@redhat.com>
10830
10831         * target-delegates.c: Rebuild.
10832         * target.c (target_call_history): Unconditionally delegate.
10833         * target.h (struct target_ops) <to_call_history>: Use
10834         TARGET_DEFAULT_NORETURN.
10835
10836 2014-02-19  Tom Tromey  <tromey@redhat.com>
10837
10838         * target-delegates.c: Rebuild.
10839         * target.c (target_call_history_from): Unconditionally delegate.
10840         * target.h (struct target_ops) <to_call_history_from>: Use
10841         TARGET_DEFAULT_NORETURN.
10842
10843 2014-02-19  Tom Tromey  <tromey@redhat.com>
10844
10845         * target-delegates.c: Rebuild.
10846         * target.c (target_call_history_range): Unconditionally delegate.
10847         * target.h (struct target_ops) <to_call_history_range>: Use
10848         TARGET_DEFAULT_NORETURN.
10849
10850 2014-02-19  Tom Tromey  <tromey@redhat.com>
10851
10852         * target-delegates.c: Rebuild.
10853         * target.c (target_verify_memory): Unconditionally delegate.
10854         * target.h (struct target_ops) <to_verify_memory>: Use
10855         TARGET_DEFAULT_NORETURN.
10856
10857 2014-02-19  Tom Tromey  <tromey@redhat.com>
10858
10859         * target-delegates.c: Rebuild.
10860         * target.c (target_core_of_thread): Unconditionally delegate.
10861         * target.h (struct target_ops) <to_core_of_thread>: Use
10862         TARGET_DEFAULT_RETURN.
10863
10864 2014-02-19  Tom Tromey  <tromey@redhat.com>
10865
10866         * target-delegates.c: Rebuild.
10867         * target.c (target_flash_done): Unconditionally delegate.
10868         * target.h (struct target_ops) <to_flash_done>: Use
10869         TARGET_DEFAULT_NORETURN.
10870
10871 2014-02-19  Tom Tromey  <tromey@redhat.com>
10872
10873         * target-delegates.c: Rebuild.
10874         * target.c (target_flash_erase): Unconditionally delegate.
10875         * target.h (struct target_ops) <to_flash_erase>: Use
10876         TARGET_DEFAULT_NORETURN.
10877
10878 2014-02-19  Tom Tromey  <tromey@redhat.com>
10879
10880         * target-delegates.c: Rebuild.
10881         * target.c (target_get_section_table): Unconditionally delegate.
10882         * target.h (struct target_ops) <to_get_section_table>: Use
10883         TARGET_DEFAULT_RETURN.
10884
10885 2014-02-19  Tom Tromey  <tromey@redhat.com>
10886
10887         * target-delegates.c: Rebuild.
10888         * target.c (target_pid_to_str): Unconditionally delegate.
10889         (init_dummy_target): Don't initialize to_pid_to_str.
10890         (default_pid_to_str): Rename from dummy_pid_to_str.
10891         * target.h (struct target_ops) <to_pid_to_str>: Use
10892         TARGET_DEFAULT_FUNC.
10893
10894 2014-02-19  Tom Tromey  <tromey@redhat.com>
10895
10896         * target-delegates.c: Rebuild.
10897         * target.c (target_find_new_threads): Unconditionally delegate.
10898         * target.h (struct target_ops) <to_find_new_threads>: Use
10899         TARGET_DEFAULT_RETURN.
10900
10901 2014-02-19  Tom Tromey  <tromey@redhat.com>
10902
10903         * target-delegates.c: Rebuild.
10904         * target.c (target_program_signals): Unconditionally delegate.
10905         * target.h (struct target_ops) <to_program_signals>: Use
10906         TARGET_DEFAULT_IGNORE.
10907
10908 2014-02-19  Tom Tromey  <tromey@redhat.com>
10909
10910         * target-delegates.c: Rebuild.
10911         * target.c (target_pass_signals): Unconditionally delegate.
10912         * target.h (struct target_ops) <to_pass_signals>: Use
10913         TARGET_DEFAULT_IGNORE.
10914
10915 2014-02-19  Tom Tromey  <tromey@redhat.com>
10916
10917         * target-delegates.c: Rebuild.
10918         * target.c (default_mourn_inferior): New function.
10919         (target_mourn_inferior): Unconditionally delegate.
10920         * target.h (struct target_ops) <to_mourn_inferior>: Use
10921         TARGET_DEFAULT_FUNC.
10922
10923 2014-02-19  Tom Tromey  <tromey@redhat.com>
10924
10925         * target-delegates.c: Rebuild.
10926         * target.c (default_follow_fork): New function.
10927         (target_follow_fork): Unconditionally delegate.
10928         * target.h (struct target_ops) <to_follow_fork>: Use
10929         TARGET_DEFAULT_FUNC.
10930
10931 2014-02-19  Tom Tromey  <tromey@redhat.com>
10932
10933         * target-delegates.c: Rebuild.
10934         * target.c (target_kill): Unconditionally delegate.
10935         * target.h (struct target_ops) <to_kill>: Use
10936         TARGET_DEFAULT_NORETURN.
10937
10938 2014-02-19  Tom Tromey  <tromey@redhat.com>
10939
10940         * target-delegates.c: Rebuild.
10941         * target.c (target_masked_watch_num_registers): Unconditionally
10942         delegate.
10943         * target.h (struct target_ops) <to_masked_watch_num_registers>:
10944         Use TARGET_DEFAULT_RETURN.
10945
10946 2014-02-19  Tom Tromey  <tromey@redhat.com>
10947
10948         * target-delegates.c: Rebuild.
10949         * target.c (target_remove_mask_watchpoint): Unconditionally
10950         delegate.
10951         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
10952         TARGET_DEFAULT_RETURN.
10953
10954 2014-02-19  Tom Tromey  <tromey@redhat.com>
10955
10956         * target-delegates.c: Rebuild.
10957         * target.c (target_insert_mask_watchpoint): Unconditionally
10958         delegate.
10959         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
10960         TARGET_DEFAULT_RETURN.
10961
10962 2014-02-19  Tom Tromey  <tromey@redhat.com>
10963
10964         * target-delegates.c: Rebuild.
10965         * target.c (target_ranged_break_num_registers): Unconditionally
10966         delegate.
10967         * target.h (struct target_ops) <to_ranged_break_num_registers>:
10968         Use TARGET_DEFAULT_RETURN.
10969
10970 2014-02-19  Tom Tromey  <tromey@redhat.com>
10971
10972         * target-delegates.c: Rebuild.
10973         * target.c (target_fetch_registers): Unconditionally delegate.
10974         * target.h (struct target_ops) <to_fetch_registers>: Use
10975         TARGET_DEFAULT_NORETURN.
10976
10977 2014-02-19  Tom Tromey  <tromey@redhat.com>
10978
10979         * target-delegates.c: Rebuild.
10980         * target.c (update_current_target): Don't inherit or default
10981         to_stop.
10982         * target.h (struct target_ops) <to_stop>: Use
10983         TARGET_DEFAULT_IGNORE.
10984
10985 2014-02-19  Tom Tromey  <tromey@redhat.com>
10986
10987         * target-delegates.c: Rebuild.
10988         * target.c (update_current_target): Don't inherit or default
10989         to_can_run_breakpoint_commands.
10990         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10991         Use TARGET_DEFAULT_RETURN.
10992
10993 2014-02-19  Tom Tromey  <tromey@redhat.com>
10994
10995         * target-delegates.c: Rebuild.
10996         * target.c (update_current_target): Don't inherit or default
10997         to_supports_evaluation_of_breakpoint_conditions.
10998         * target.h (struct target_ops)
10999         <to_supports_evaluation_of_breakpoint_conditions>: Use
11000         TARGET_DEFAULT_RETURN.
11001
11002 2014-02-19  Tom Tromey  <tromey@redhat.com>
11003
11004         * target-delegates.c: Rebuild.
11005         * target.c (update_current_target): Don't inherit or default
11006         to_augmented_libraries_svr4_read.
11007         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11008         Use TARGET_DEFAULT_RETURN.
11009
11010 2014-02-19  Tom Tromey  <tromey@redhat.com>
11011
11012         * target-delegates.c: Rebuild.
11013         * target.c (update_current_target): Don't inherit or default
11014         to_can_use_agent.
11015         * target.h (struct target_ops) <to_can_use_agent>: Use
11016         TARGET_DEFAULT_RETURN.
11017
11018 2014-02-19  Tom Tromey  <tromey@redhat.com>
11019
11020         * target-delegates.c: Rebuild.
11021         * target.c (update_current_target): Don't inherit or default
11022         to_use_agent.
11023         * target.h (struct target_ops) <to_use_agent>: Use
11024         TARGET_DEFAULT_NORETURN.
11025
11026 2014-02-19  Tom Tromey  <tromey@redhat.com>
11027
11028         * target-delegates.c: Rebuild.
11029         * target.c (update_current_target): Don't inherit or default
11030         to_traceframe_info.
11031         (return_null): Remove.
11032         * target.h (struct target_ops) <to_traceframe_info>: Use
11033         TARGET_DEFAULT_RETURN.
11034
11035 2014-02-19  Tom Tromey  <tromey@redhat.com>
11036
11037         * target-delegates.c: Rebuild.
11038         * target.c (update_current_target): Don't inherit or default
11039         to_static_tracepoint_markers_by_strid.
11040         * target.h (struct target_ops)
11041         <to_static_tracepoint_markers_by_strid>: Use
11042         TARGET_DEFAULT_NORETURN.
11043
11044 2014-02-19  Tom Tromey  <tromey@redhat.com>
11045
11046         * target-delegates.c: Rebuild.
11047         * target.c (update_current_target): Don't inherit or default
11048         to_static_tracepoint_marker_at.
11049         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11050         Use TARGET_DEFAULT_RETURN.
11051
11052 2014-02-19  Tom Tromey  <tromey@redhat.com>
11053
11054         * target-delegates.c: Rebuild.
11055         * target.c (update_current_target): Don't inherit or default
11056         to_set_permissions.
11057         * target.h (struct target_ops) <to_set_permissions>: Use
11058         TARGET_DEFAULT_IGNORE.
11059
11060 2014-02-19  Tom Tromey  <tromey@redhat.com>
11061
11062         * target-delegates.c: Rebuild.
11063         * target.c (update_current_target): Don't inherit or default
11064         to_get_tib_address.
11065         * target.h (struct target_ops) <to_get_tib_address>: Use
11066         TARGET_DEFAULT_NORETURN.
11067
11068 2014-02-19  Tom Tromey  <tromey@redhat.com>
11069
11070         * target-delegates.c: Rebuild.
11071         * target.c (update_current_target): Don't inherit or default
11072         to_set_trace_notes.
11073         * target.h (struct target_ops) <to_set_trace_notes>: Use
11074         TARGET_DEFAULT_RETURN.
11075
11076 2014-02-19  Tom Tromey  <tromey@redhat.com>
11077
11078         * target-delegates.c: Rebuild.
11079         * target.c (update_current_target): Don't initialize
11080         to_set_trace_buffer_size.
11081         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11082         TARGET_DEFAULT_IGNORE.
11083
11084 2014-02-19  Tom Tromey  <tromey@redhat.com>
11085
11086         * target-delegates.c: Rebuild.
11087         * target.c (update_current_target): Don't inherit or default
11088         to_set_circular_trace_buffer.
11089         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11090         TARGET_DEFAULT_IGNORE.
11091
11092 2014-02-19  Tom Tromey  <tromey@redhat.com>
11093
11094         * target-delegates.c: Rebuild.
11095         * target.c (update_current_target): Don't inherit or default
11096         to_set_disconnected_tracing.
11097         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11098         TARGET_DEFAULT_IGNORE.
11099
11100 2014-02-19  Tom Tromey  <tromey@redhat.com>
11101
11102         * target-delegates.c: Rebuild.
11103         * target.c (update_current_target): Don't inherit or default
11104         to_get_min_fast_tracepoint_insn_len.
11105         (return_minus_one): Remove.
11106         * target.h (struct target_ops)
11107         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11108
11109 2014-02-19  Tom Tromey  <tromey@redhat.com>
11110
11111         * target-delegates.c: Rebuild.
11112         * target.c (update_current_target): Don't inherit or default
11113         to_get_raw_trace_data.
11114         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11115         TARGET_DEFAULT_NORETURN.
11116
11117 2014-02-19  Tom Tromey  <tromey@redhat.com>
11118
11119         * target-delegates.c: Rebuild.
11120         * target.c (update_current_target): Don't inherit or default
11121         to_upload_trace_state_variables.
11122         * target.h (struct target_ops) <to_upload_trace_state_variables>:
11123         Use TARGET_DEFAULT_RETURN.
11124
11125 2014-02-19  Tom Tromey  <tromey@redhat.com>
11126
11127         * target-delegates.c: Rebuild.
11128         * target.c (update_current_target): Don't inherit or default
11129         to_upload_tracepoints.
11130         * target.h (struct target_ops) <to_upload_tracepoints>: Use
11131         TARGET_DEFAULT_RETURN.
11132
11133 2014-02-19  Tom Tromey  <tromey@redhat.com>
11134
11135         * target-delegates.c: Rebuild.
11136         * target.c (update_current_target): Don't inherit or default
11137         to_save_trace_data.
11138         * target.h (struct target_ops) <to_save_trace_data>: Use
11139         TARGET_DEFAULT_NORETURN.
11140
11141 2014-02-19  Tom Tromey  <tromey@redhat.com>
11142
11143         * target-delegates.c: Rebuild.
11144         * target.c (update_current_target): Don't inherit or default
11145         to_get_trace_state_variable_value.
11146         * target.h (struct target_ops)
11147         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11148
11149 2014-02-19  Tom Tromey  <tromey@redhat.com>
11150
11151         * target-delegates.c: Rebuild.
11152         * target.c (update_current_target): Don't inherit or default
11153         to_trace_find.
11154         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11155
11156 2014-02-19  Tom Tromey  <tromey@redhat.com>
11157
11158         * target-delegates.c: Rebuild.
11159         * target.c (update_current_target): Don't inherit or default
11160         to_trace_stop.
11161         * target.h (struct target_ops) <to_trace_stop>: Use
11162         TARGET_DEFAULT_NORETURN.
11163
11164 2014-02-19  Tom Tromey  <tromey@redhat.com>
11165
11166         * target-delegates.c: Rebuild.
11167         * target.c (update_current_target): Don't inherit or default
11168         to_get_tracepoint_status.
11169         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11170         TARGET_DEFAULT_NORETURN.
11171
11172 2014-02-19  Tom Tromey  <tromey@redhat.com>
11173
11174         * target-delegates.c: Rebuild.
11175         * target.c (update_current_target): Don't inherit or default
11176         to_get_trace_status.
11177         * target.h (struct target_ops) <to_get_trace_status>: Use
11178         TARGET_DEFAULT_RETURN.
11179
11180 2014-02-19  Tom Tromey  <tromey@redhat.com>
11181
11182         * target-delegates.c: Rebuild.
11183         * target.c (update_current_target): Don't inherit or default
11184         to_trace_start.
11185         * target.h (struct target_ops) <to_trace_start>: Use
11186         TARGET_DEFAULT_NORETURN.
11187
11188 2014-02-19  Tom Tromey  <tromey@redhat.com>
11189
11190         * target-delegates.c: Rebuild.
11191         * target.c (update_current_target): Don't inherit or default
11192         to_trace_set_readonly_regions.
11193         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11194         Use TARGET_DEFAULT_NORETURN.
11195
11196 2014-02-19  Tom Tromey  <tromey@redhat.com>
11197
11198         * target-delegates.c: Rebuild.
11199         * target.c (update_current_target): Don't inherit or default
11200         to_disable_tracepoint.
11201         * target.h (struct target_ops) <to_disable_tracepoint>: Use
11202         TARGET_DEFAULT_NORETURN.
11203
11204 2014-02-19  Tom Tromey  <tromey@redhat.com>
11205
11206         * target-delegates.c: Rebuild.
11207         * target.c (update_current_target): Don't inherit or default
11208         to_enable_tracepoint.
11209         * target.h (struct target_ops) <to_enable_tracepoint>: Use
11210         TARGET_DEFAULT_NORETURN.
11211
11212 2014-02-19  Tom Tromey  <tromey@redhat.com>
11213
11214         * target-delegates.c: Rebuild.
11215         * target.c (update_current_target): Don't inherit or default
11216         to_download_trace_state_variable.
11217         * target.h (struct target_ops) <to_download_trace_state_variable>:
11218         Use TARGET_DEFAULT_NORETURN.
11219
11220 2014-02-19  Tom Tromey  <tromey@redhat.com>
11221
11222         * target-delegates.c: Rebuild.
11223         * target.c (update_current_target): Don't inherit or default
11224         to_can_download_tracepoint.
11225         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11226         TARGET_DEFAULT_RETURN.
11227
11228 2014-02-19  Tom Tromey  <tromey@redhat.com>
11229
11230         * target-delegates.c: Rebuild.
11231         * target.c (update_current_target): Don't inherit or default
11232         to_download_tracepoint.
11233         * target.h (struct target_ops) <to_download_tracepoint>: Use
11234         TARGET_DEFAULT_NORETURN.
11235
11236 2014-02-19  Tom Tromey  <tromey@redhat.com>
11237
11238         * target-delegates.c: Rebuild.
11239         * target.c (update_current_target): Don't inherit or default
11240         to_trace_init.
11241         * target.h (struct target_ops) <to_trace_init>: Use
11242         TARGET_DEFAULT_RETURN.
11243
11244 2014-02-19  Tom Tromey  <tromey@redhat.com>
11245
11246         * target-delegates.c: Rebuild.
11247         * target.c (update_current_target): Don't inherit or default
11248         to_supports_string_tracing.
11249         * target.h (struct target_ops) <to_supports_string_tracing>: Use
11250         TARGET_DEFAULT_RETURN.
11251
11252 2014-02-19  Tom Tromey  <tromey@redhat.com>
11253
11254         * target-delegates.c: Rebuild.
11255         * target.c (update_current_target): Don't inherit or default
11256         to_supports_enable_disable_tracepoint.
11257         * target.h (struct target_ops)
11258         <to_supports_enable_disable_tracepoint>: Use
11259         TARGET_DEFAULT_RETURN.
11260
11261 2014-02-19  Tom Tromey  <tromey@redhat.com>
11262
11263         * target-delegates.c: Rebuild.
11264         * target.c (update_current_target): Don't inherit or default
11265         to_supports_multi_process.
11266         * target.h (struct target_ops) <to_supports_multi_process>: Use
11267         TARGET_DEFAULT_RETURN.
11268
11269 2014-02-19  Tom Tromey  <tromey@redhat.com>
11270
11271         * target-delegates.c: Rebuild.
11272         * target.c (update_current_target): Don't inherit or default
11273         to_get_ada_task_ptid.
11274         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11275         TARGET_DEFAULT_FUNC.
11276
11277 2014-02-19  Tom Tromey  <tromey@redhat.com>
11278
11279         * target-delegates.c: Rebuild.
11280         * target.c (update_current_target): Don't inherit or default
11281         to_thread_architecture.
11282         * target.h (struct target_ops) <to_thread_architecture>: Use
11283         TARGET_DEFAULT_FUNC.
11284
11285 2014-02-19  Tom Tromey  <tromey@redhat.com>
11286
11287         * target-delegates.c: Rebuild.
11288         * target.c (update_current_target): Don't inherit or default
11289         to_execution_direction.
11290         * target.h (struct target_ops) <to_execution_direction>: Use
11291         TARGET_DEFAULT_FUNC.
11292
11293 2014-02-19  Tom Tromey  <tromey@redhat.com>
11294
11295         * target-delegates.c: Rebuild.
11296         * target.c (update_current_target): Don't inherit or default
11297         to_can_execute_reverse.
11298         * target.h (struct target_ops) <to_can_execute_reverse>: Use
11299         TARGET_DEFAULT_RETURN.
11300         (target_can_execute_reverse): Unconditionally delegate.
11301
11302 2014-02-19  Tom Tromey  <tromey@redhat.com>
11303
11304         * target-delegates.c: Rebuild.
11305         * target.c (update_current_target): Don't inherit or default
11306         to_goto_bookmark.
11307         (dummy_goto_bookmark): Remove.
11308         (init_dummy_target): Don't inherit or default to_goto_bookmark.
11309         * target.h (struct target_ops) <to_goto_bookmark>: Use
11310         TARGET_DEFAULT_NORETURN.
11311
11312 2014-02-19  Tom Tromey  <tromey@redhat.com>
11313
11314         * target-delegates.c: Rebuild.
11315         * target.c (update_current_target): Don't inherit or default
11316         to_get_bookmark.
11317         (dummy_get_bookmark): Remove.
11318         (init_dummy_target): Don't inherit or default to_get_bookmark.
11319         * target.h (struct target_ops) <to_get_bookmark>: Use
11320         TARGET_DEFAULT_NORETURN
11321
11322 2014-02-19  Tom Tromey  <tromey@redhat.com>
11323
11324         * target-delegates.c: Rebuild.
11325         * target.c (update_current_target): Don't inherit or default
11326         to_make_corefile_notes.
11327         (init_dummy_target): Don't initialize to_make_corefile_notes.
11328         * target.h (struct target_ops) <to_make_corefile_notes>: Use
11329         TARGET_DEFAULT_FUNC.
11330
11331 2014-02-19  Tom Tromey  <tromey@redhat.com>
11332
11333         * target-delegates.c: Rebuild.
11334         * target.c (update_current_target): Don't inherit or default
11335         to_find_memory_regions.
11336         (init_dummy_target): Don't initialize to_find_memory_regions.
11337         * target.h (struct target_ops) <to_find_memory_regions>: Use
11338         TARGET_DEFAULT_FUNC.
11339
11340 2014-02-19  Tom Tromey  <tromey@redhat.com>
11341
11342         * target-delegates.c: Rebuild.
11343         * target.c (update_current_target): Don't inherit or default
11344         to_log_command.
11345         * target.h (struct target_ops) <to_log_command>: Use
11346         TARGET_DEFAULT_IGNORE.
11347         (target_log_command): Unconditionally delegate.
11348
11349 2014-02-19  Tom Tromey  <tromey@redhat.com>
11350
11351         * target-delegates.c: Rebuild.
11352         * target.c (update_current_target): Don't inherit or default
11353         to_pid_to_exec_file.
11354         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11355         TARGET_DEFAULT_RETURN.
11356
11357 2014-02-19  Tom Tromey  <tromey@redhat.com>
11358
11359         * target-delegates.c: Rebuild.
11360         * target.c (update_current_target): Don't inherit or default
11361         to_thread_name.
11362         (target_thread_name): Unconditionally delegate.
11363         * target.h (struct target_ops) <to_thread_name>: Use
11364         TARGET_DEFAULT_RETURN.
11365
11366 2014-02-19  Tom Tromey  <tromey@redhat.com>
11367
11368         * target-delegates.c: Rebuild.
11369         * target.c (update_current_target): Don't inherit or default
11370         to_extra_thread_info.
11371         * target.h (struct target_ops) <to_extra_thread_info>: Use
11372         TARGET_DEFAULT_RETURN.
11373
11374 2014-02-19  Tom Tromey  <tromey@redhat.com>
11375
11376         * target-delegates.c: Rebuild.
11377         * target.c (update_current_target): Don't inherit or default
11378         to_has_exited.
11379         * target.h (struct target_ops) <to_has_exited>: Use
11380         TARGET_DEFAULT_RETURN..
11381
11382 2014-02-19  Tom Tromey  <tromey@redhat.com>
11383
11384         * target-delegates.c: Rebuild.
11385         * target.c (update_current_target): Don't inherit or default
11386         to_set_syscall_catchpoint.
11387         (return_one): Remove.
11388         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11389         TARGET_DEFAULT_RETURN.
11390
11391 2014-02-19  Tom Tromey  <tromey@redhat.com>
11392
11393         * target-delegates.c: Rebuild.
11394         * target.c (update_current_target): Don't inherit or default
11395         to_insert_exec_catchpoint.
11396         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11397         TARGET_DEFAULT_RETURN.
11398
11399 2014-01-08  Tom Tromey  <tromey@redhat.com>
11400
11401         * target-delegates.c: Rebuild.
11402         * target.c (update_current_target): Don't inherit or default
11403         to_insert_exec_catchpoint.
11404         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11405         TARGET_DEFAULT_RETURN.
11406
11407 2014-02-19  Tom Tromey  <tromey@redhat.com>
11408
11409         * target-delegates.c: Rebuild.
11410         * target.c (update_current_target): Don't inherit or default
11411         to_remove_vfork_catchpoint.
11412         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11413         TARGET_DEFAULT_RETURN.
11414
11415 2014-02-19  Tom Tromey  <tromey@redhat.com>
11416
11417         * target-delegates.c: Rebuild.
11418         * target.c (update_current_target): Don't inherit or default
11419         to_insert_vfork_catchpoint.
11420         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11421         TARGET_DEFAULT_RETURN.
11422
11423 2014-02-19  Tom Tromey  <tromey@redhat.com>
11424
11425         * target-delegates.c: Rebuild.
11426         * target.c (update_current_target): Don't inherit or default
11427         to_remove_fork_catchpoint.
11428         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11429         TARGET_DEFAULT_RETURN.
11430
11431 2014-02-19  Tom Tromey  <tromey@redhat.com>
11432
11433         * target-delegates.c: Rebuild.
11434         * target.c (update_current_target): Don't inherit or default
11435         to_insert_fork_catchpoint.
11436         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11437         TARGET_DEFAULT_RETURN.
11438
11439 2014-02-19  Tom Tromey  <tromey@redhat.com>
11440
11441         * target-delegates.c: Rebuild.
11442         * target.c (update_current_target): Don't inherit or default
11443         to_post_startup_inferior.
11444         * target.h (struct target_ops) <to_post_startup_inferior>: Use
11445         TARGET_DEFAULT_IGNORE.
11446
11447 2014-02-19  Tom Tromey  <tromey@redhat.com>
11448
11449         * target-delegates.c: Rebuild.
11450         * target.c (update_current_target): Don't inherit or default
11451         to_load.
11452         * target.h (struct target_ops) <to_load>: Use
11453         TARGET_DEFAULT_NORETURN.
11454
11455 2014-02-19  Tom Tromey  <tromey@redhat.com>
11456
11457         * target-delegates.c: Rebuild.
11458         * target.c (update_current_target): Don't inherit or default
11459         to_terminal_info.
11460         * target.h (struct target_ops) <to_terminal_info>: Use
11461         TARGET_DEFAULT_FUNC.
11462
11463 2014-02-19  Tom Tromey  <tromey@redhat.com>
11464
11465         * target-delegates.c: Rebuild.
11466         * target.c (update_current_target): Don't inherit or default
11467         to_terminal_save_ours.
11468         * target.h (struct target_ops) <to_terminal_save_ours>: Use
11469         TARGET_DEFAULT_IGNORE.
11470
11471 2014-02-19  Tom Tromey  <tromey@redhat.com>
11472
11473         * target-delegates.c: Rebuild.
11474         * target.c (update_current_target): Don't inherit or default
11475         to_terminal_ours.
11476         * target.h (struct target_ops) <to_terminal_ours>: Use
11477         TARGET_DEFAULT_IGNORE.
11478
11479 2014-02-19  Tom Tromey  <tromey@redhat.com>
11480
11481         * target-delegates.c: Rebuild.
11482         * target.c (update_current_target): Don't inherit or default
11483         to_terminal_ours_for_output.
11484         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11485         TARGET_DEFAULT_IGNORE.
11486
11487 2014-02-19  Tom Tromey  <tromey@redhat.com>
11488
11489         * target-delegates.c: Rebuild.
11490         * target.c (update_current_target): Don't inherit or default
11491         to_terminal_inferior.
11492         * target.h (struct target_ops) <to_terminal_inferior>: Use
11493         TARGET_DEFAULT_IGNORE.
11494
11495 2014-02-19  Tom Tromey  <tromey@redhat.com>
11496
11497         * target-delegates.c: Rebuild.
11498         * target.c (update_current_target): Don't inherit or default
11499         to_terminal_init.
11500         * target.h (struct target_ops) <to_terminal_init>: Use
11501         TARGET_DEFAULT_IGNORE.
11502
11503 2014-02-19  Tom Tromey  <tromey@redhat.com>
11504
11505         * target-delegates.c: Rebuild.
11506         * target.c (update_current_target): Don't inherit or default
11507         to_can_accel_watchpoint_condition.
11508         * target.h (struct target_ops)
11509         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11510
11511 2014-02-19  Tom Tromey  <tromey@redhat.com>
11512
11513         * target-delegates.c: Rebuild.
11514         * target.c (update_current_target): Don't inherit or default
11515         to_region_ok_for_hw_watchpoint.
11516         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11517         Use TARGET_DEFAULT_FUNC.
11518
11519 2014-02-19  Tom Tromey  <tromey@redhat.com>
11520
11521         * target-delegates.c: Rebuild.
11522         * target.c (update_current_target): Don't inherit or default
11523         to_watchpoint_addr_within_range.
11524         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11525         Use TARGET_DEFAULT_FUNC.
11526
11527 2014-02-19  Tom Tromey  <tromey@redhat.com>
11528
11529         * target-delegates.c: Rebuild.
11530         * target.c (update_current_target): Don't inherit or default
11531         to_remove_watchpoint.
11532         * target.h (struct target_ops) <to_remove_watchpoint>: Use
11533         TARGET_DEFAULT_NORETURN.
11534
11535 2014-02-19  Tom Tromey  <tromey@redhat.com>
11536
11537         * target-delegates.c: Rebuild.
11538         * target.c (update_current_target): Don't inherit or default
11539         to_insert_watchpoint.
11540         * target.h (struct target_ops) <to_insert_watchpoint>: Use
11541         TARGET_DEFAULT_RETURN.
11542
11543 2014-02-19  Tom Tromey  <tromey@redhat.com>
11544
11545         * target-delegates.c: Rebuild.
11546         * target.c (update_current_target): Don't inherit or default
11547         to_remove_hw_breakpoint.
11548         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11549         TARGET_DEFAULT_RETURN.
11550
11551 2014-02-19  Tom Tromey  <tromey@redhat.com>
11552
11553         * target-delegates.c: Rebuild.
11554         * target.c (update_current_target): Don't inherit or default
11555         to_insert_hw_breakpoint.
11556         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11557         TARGET_DEFAULT_RETURN.
11558
11559 2014-02-19  Tom Tromey  <tromey@redhat.com>
11560
11561         * target-delegates.c: Rebuild.
11562         * target.c (update_current_target): Don't inherit or default
11563         to_can_use_hw_breakpoint.
11564         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11565         TARGET_DEFAULT_RETURN.
11566
11567 2014-02-19  Tom Tromey  <tromey@redhat.com>
11568
11569         * target-delegates.c: Rebuild.
11570         * target.c (update_current_target): Don't inherit or default
11571         to_files_info.
11572         * target.h (struct target_ops) <to_files_info>: Use
11573         TARGET_DEFAULT_IGNORE.
11574
11575 2014-02-19  Tom Tromey  <tromey@redhat.com>
11576
11577         * target-delegates.c: Rebuild.
11578         * target.c (update_current_target): Don't inherit or default
11579         to_store.
11580         * target.h (struct target_ops) <to_store>: Use
11581         TARGET_DEFAULT_NORETURN.
11582
11583 2014-02-19  Tom Tromey  <tromey@redhat.com>
11584
11585         * target-delegates.c: Rebuild.
11586         * target.c (update_current_target): Don't inherit or default
11587         to_post_attach.
11588         * target.h (struct target_ops) <to_post_attach>: Use
11589         TARGET_DEFAULT_IGNORE.
11590
11591 2014-02-19  Tom Tromey  <tromey@redhat.com>
11592
11593         * target-delegates.c: Rebuild.
11594         * target.c (update_current_target): Don't inherit or default
11595         to_rcmd.
11596         (default_rcmd): New function.
11597         (do_monitor_command): Unconditionally delegate.
11598         * target.h (struct target_ops) <to_rmcd>: Use
11599         TARGET_DEFAULT_FUNC.
11600
11601 2014-02-19  Tom Tromey  <tromey@redhat.com>
11602
11603         * target-delegates.c: Rebuild.
11604         * target.c (init_dummy_target): Don't initialize to_attach.
11605         (target_attach): Unconditionally delegate.
11606         * target.h (struct target_ops) <to_attach>: Use
11607         TARGET_DEFAULT_FUNC.
11608
11609 2014-02-19  Tom Tromey  <tromey@redhat.com>
11610
11611         * target-delegates.c: Rebuild.
11612         * target.c (target_detach): Unconditionally delegate.
11613         (init_dummy_target): Don't initialize to_detach.
11614         * target.h (struct target_ops) <to_detach>: Use
11615         TARGET_DEFAULT_IGNORE.
11616
11617 2014-02-19  Tom Tromey  <tromey@redhat.com>
11618
11619         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11620         Add argument.
11621         (target_augmented_libraries_svr4_read): Add argument.
11622         * target.c (update_current_target): Update.
11623         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11624         argument.
11625
11626 2014-02-19  Tom Tromey  <tromey@redhat.com>
11627
11628         * target.h (struct target_ops) <to_call_history_range>: Add
11629         argument.
11630         * target.c (target_call_history_range): Add argument.
11631         * record-btrace.c (record_btrace_call_history_range): Add 'self'
11632         argument.
11633         (record_btrace_call_history_from): Update.
11634
11635 2014-02-19  Tom Tromey  <tromey@redhat.com>
11636
11637         * target.h (struct target_ops) <to_call_history_from>: Add
11638         argument.
11639         * target.c (target_call_history_from): Add argument.
11640         * record-btrace.c (record_btrace_call_history_from): Add 'self'
11641         argument.
11642
11643 2014-02-19  Tom Tromey  <tromey@redhat.com>
11644
11645         * target.h (struct target_ops) <to_call_history>: Add argument.
11646         * target.c (target_call_history): Add argument.
11647         * record-btrace.c (record_btrace_call_history): Add 'self'
11648         argument.
11649
11650 2014-02-19  Tom Tromey  <tromey@redhat.com>
11651
11652         * target.h (struct target_ops) <to_insn_history_range>: Add
11653         argument.
11654         * target.c (target_insn_history_range): Add argument.
11655         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11656         argument.
11657         (record_btrace_insn_history_from): Update.
11658
11659 2014-02-19  Tom Tromey  <tromey@redhat.com>
11660
11661         * target.h (struct target_ops) <to_insn_history_from>: Add
11662         argument.
11663         * target.c (target_insn_history_from): Add argument.
11664         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11665         argument.
11666
11667 2014-02-19  Tom Tromey  <tromey@redhat.com>
11668
11669         * target.h (struct target_ops) <to_insn_history>: Add argument.
11670         * target.c (target_insn_history): Add argument.
11671         * record-btrace.c (record_btrace_insn_history): Add 'self'
11672         argument.
11673
11674 2014-02-19  Tom Tromey  <tromey@redhat.com>
11675
11676         * target.h (struct target_ops) <to_goto_record>: Add argument.
11677         * target.c (target_goto_record): Add argument.
11678         * record-full.c (record_full_goto): Add 'self' argument.
11679         * record-btrace.c (record_btrace_goto): Add 'self' argument.
11680
11681 2014-02-19  Tom Tromey  <tromey@redhat.com>
11682
11683         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11684         * target.c (target_goto_record_end): Add argument.
11685         * record-full.c (record_full_goto_end): Add 'self' argument.
11686         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11687
11688 2014-02-19  Tom Tromey  <tromey@redhat.com>
11689
11690         * target.h (struct target_ops) <to_goto_record_begin>: Add
11691         argument.
11692         * target.c (target_goto_record_begin): Add argument.
11693         * record-full.c (record_full_goto_begin): Add 'self' argument.
11694         * record-btrace.c (record_btrace_goto_begin): Add 'self'
11695         argument.
11696
11697 2014-02-19  Tom Tromey  <tromey@redhat.com>
11698
11699         * target.h (struct target_ops) <to_record_is_replaying>: Add
11700         argument.
11701         * target.c (target_record_is_replaying): Add argument.
11702         * record-full.c (record_full_is_replaying): Add 'self' argument.
11703         * record-btrace.c (record_btrace_is_replaying): Add 'self'
11704         argument.
11705         (record_btrace_xfer_partial, record_btrace_store_registers)
11706         (record_btrace_prepare_to_store, record_btrace_resume)
11707         (record_btrace_wait, record_btrace_decr_pc_after_break)
11708         (record_btrace_find_new_threads, record_btrace_thread_alive):
11709         Update.
11710
11711 2014-02-19  Tom Tromey  <tromey@redhat.com>
11712
11713         * target.h (struct target_ops) <to_delete_record>: Add argument.
11714         * target.c (target_delete_record): Add argument.
11715         * record-full.c (record_full_delete): Add 'self' argument.
11716
11717 2014-02-19  Tom Tromey  <tromey@redhat.com>
11718
11719         * target.h (struct target_ops) <to_save_record>: Add argument.
11720         * target.c (target_save_record): Add argument.
11721         * record-full.c (record_full_save): Add 'self' argument.
11722         (record_full_save): Add 'self' argument.
11723
11724 2014-02-19  Tom Tromey  <tromey@redhat.com>
11725
11726         * target.h (struct target_ops) <to_info_record>: Add argument.
11727         * target.c (target_info_record): Add argument.
11728         * record.c (info_record_command): Add argument.
11729         * record-full.c (record_full_info): Add 'self' argument.
11730         * record-btrace.c (record_btrace_info): Add 'self' argument.
11731
11732 2014-02-19  Tom Tromey  <tromey@redhat.com>
11733
11734         * target.h (struct target_ops) <to_stop_recording>: Add argument.
11735         * target.c (target_stop_recording): Add argument.
11736         * record.c (record_stop): Add argument.
11737         * record-btrace.c (record_btrace_stop_recording): Add 'self'
11738         argument.
11739
11740 2014-02-19  Tom Tromey  <tromey@redhat.com>
11741
11742         * target.h (struct target_ops) <to_read_btrace>: Add argument.
11743         * target.c (struct target_ops) <to_read_btrace>: Add argument.
11744         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11745         argument.
11746         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11747         (_initialize_amd64_linux_nat): Use it.
11748         * i386-linux-nat.c (i386_linux_read_btrace): New function.
11749         (_initialize_i386_linux_nat): Use it.
11750
11751 2014-02-19  Tom Tromey  <tromey@redhat.com>
11752
11753         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11754         * target.c (target_teardown_btrace): Add argument.
11755         * remote.c (remote_teardown_btrace): Add 'self' argument.
11756         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11757         argument.
11758         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11759         argument.
11760
11761 2014-02-19  Tom Tromey  <tromey@redhat.com>
11762
11763         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11764         * target.c (target_disable_btrace): Add argument.
11765         * remote.c (remote_disable_btrace): Add 'self' argument.
11766         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11767         argument.
11768         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11769         argument.
11770
11771 2014-02-19  Tom Tromey  <tromey@redhat.com>
11772
11773         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11774         * target.c (target_enable_btrace): Add argument.
11775         * remote.c (remote_enable_btrace): Add 'self' argument.
11776         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11777         argument.
11778         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11779         argument.
11780
11781 2014-02-19  Tom Tromey  <tromey@redhat.com>
11782
11783         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11784         (target_can_use_agent): Add argument.
11785         * target.c (update_current_target): Update.
11786         * remote.c (remote_can_use_agent): Add 'self' argument.
11787         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
11788
11789 2014-02-19  Tom Tromey  <tromey@redhat.com>
11790
11791         * target.h (struct target_ops) <to_use_agent>: Add argument.
11792         (target_use_agent): Add argument.
11793         * target.c (update_current_target): Update.
11794         * remote.c (remote_use_agent): Add 'self' argument.
11795         * inf-child.c (inf_child_use_agent): Add 'self' argument.
11796
11797 2014-02-19  Tom Tromey  <tromey@redhat.com>
11798
11799         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
11800         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
11801         (target_traceframe_info): Add argument.
11802         * target.c (update_current_target): Update.
11803         * remote.c (remote_traceframe_info): Add 'self' argument.
11804         * ctf.c (ctf_traceframe_info): Add 'self' argument.
11805
11806 2014-02-19  Tom Tromey  <tromey@redhat.com>
11807
11808         * target.h (target_static_tracepoint_markers_by_strid): Add
11809         argument.
11810         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
11811         'self' argument.
11812         * target.c (update_current_target): Update.
11813         * remote.c (struct target_ops)
11814         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11815         * linux-nat.c (struct target_ops)
11816         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
11817
11818 2014-02-19  Tom Tromey  <tromey@redhat.com>
11819
11820         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11821         Add argument.
11822         (target_static_tracepoint_marker_at): Add argument.
11823         * target.c (update_current_target): Update.
11824         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
11825         argument.
11826
11827 2014-02-19  Tom Tromey  <tromey@redhat.com>
11828
11829         * target.h (struct target_ops) <to_set_permissions>: Add argument.
11830         (target_set_permissions): Add argument.
11831         * target.c (update_current_target): Update.
11832         * remote.c (remote_set_permissions): Add 'self' argument.
11833         (remote_start_remote): Update.
11834
11835 2014-02-19  Tom Tromey  <tromey@redhat.com>
11836
11837         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
11838         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
11839         (target_get_tib_address): Add argument.
11840         * target.c (update_current_target): Update.
11841         * remote.c (remote_get_tib_address): Add 'self' argument.
11842
11843 2014-02-19  Tom Tromey  <tromey@redhat.com>
11844
11845         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
11846         (target_set_trace_notes): Add argument.
11847         * target.c (update_current_target): Update.
11848         * remote.c (remote_set_trace_notes): Add 'self' argument.
11849
11850 2014-02-19  Tom Tromey  <tromey@redhat.com>
11851
11852         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
11853         argument.
11854         (target_set_trace_buffer_size): Add argument.
11855         * target.c (update_current_target): Update.
11856         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
11857
11858 2014-02-19  Tom Tromey  <tromey@redhat.com>
11859
11860         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
11861         argument.
11862         (target_set_circular_trace_buffer): Add argument.
11863         * target.c (update_current_target): Update.
11864         * remote.c (remote_set_circular_trace_buffer): Add 'self'
11865         argument.
11866
11867 2014-02-19  Tom Tromey  <tromey@redhat.com>
11868
11869         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
11870         argument.
11871         (target_set_disconnected_tracing): Add argument.
11872         * target.c (update_current_target): Update.
11873         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
11874
11875 2014-02-19  Tom Tromey  <tromey@redhat.com>
11876
11877         * target.h (struct target_ops)
11878         <to_get_min_fast_tracepoint_insn_len>: Add argument.
11879         (target_get_min_fast_tracepoint_insn_len): Add argument.
11880         * target.c (update_current_target): Update.
11881         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
11882         argument.
11883
11884 2014-02-19  Tom Tromey  <tromey@redhat.com>
11885
11886         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
11887         argument.
11888         (target_get_raw_trace_data): Add argument.
11889         * target.c (update_current_target): Update.
11890         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
11891
11892 2014-02-19  Tom Tromey  <tromey@redhat.com>
11893
11894         * target.h (struct target_ops) <to_upload_trace_state_variables>:
11895         Add argument.
11896         (target_upload_trace_state_variables): Add argument.
11897         * target.c (update_current_target): Update.
11898         * remote.c (remote_upload_trace_state_variables): Add 'self'
11899         argument.
11900         (remote_start_remote): Update.
11901
11902 2014-02-19  Tom Tromey  <tromey@redhat.com>
11903
11904         * target.h (struct target_ops) <to_upload_tracepoints>: Add
11905         argument.
11906         (target_upload_tracepoints): Add argument.
11907         * target.c (update_current_target): Update.
11908         * remote.c (remote_upload_tracepoints): Add 'self' argument.
11909         (remote_start_remote): Update.
11910
11911 2014-02-19  Tom Tromey  <tromey@redhat.com>
11912
11913         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
11914         (target_save_trace_data): Add argument.
11915         * target.c (update_current_target): Update.
11916         * remote.c (remote_save_trace_data): Add 'self' argument.
11917
11918 2014-02-19  Tom Tromey  <tromey@redhat.com>
11919
11920         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
11921         argument.
11922         * target.h (struct target_ops)
11923         <to_get_trace_state_variable_value>: Add argument.
11924         (target_get_trace_state_variable_value): Add argument.
11925         * target.c (update_current_target): Update.
11926         * remote.c (remote_get_trace_state_variable_value): Add 'self'
11927         argument.
11928         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
11929
11930 2014-02-19  Tom Tromey  <tromey@redhat.com>
11931
11932         * tracepoint.c (tfile_trace_find): Add 'self' argument.
11933         * target.h (struct target_ops) <to_trace_find>: Add argument.
11934         (target_trace_find): Add argument.
11935         * target.c (update_current_target): Update.
11936         * remote.c (remote_trace_find): Add 'self' argument.
11937         * ctf.c (ctf_trace_find): Add 'self' argument.
11938
11939 2014-02-19  Tom Tromey  <tromey@redhat.com>
11940
11941         * target.h (struct target_ops) <to_trace_stop>: Add argument.
11942         (target_trace_stop): Add argument.
11943         * target.c (update_current_target): Update.
11944         * remote.c (remote_trace_stop): Add 'self' argument.
11945
11946 2014-02-19  Tom Tromey  <tromey@redhat.com>
11947
11948         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
11949         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
11950         argument.
11951         (target_get_tracepoint_status): Add argument.
11952         * target.c (update_current_target): Update.
11953         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
11954
11955 2014-02-19  Tom Tromey  <tromey@redhat.com>
11956
11957         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
11958         * target.h (struct target_ops) <to_get_trace_status>: Add
11959         argument.
11960         (target_get_trace_status): Add argument.
11961         * target.c (update_current_target): Update.
11962         * remote.c (remote_get_trace_status): Add 'self' argument.
11963         (remote_start_remote, remote_can_download_tracepoint): Update.
11964         * ctf.c (ctf_get_trace_status): Add 'self' argument.
11965
11966 2014-02-19  Tom Tromey  <tromey@redhat.com>
11967
11968         * target.h (struct target_ops) <to_trace_start>: Add argument.
11969         (target_trace_start): Add argument.
11970         * target.c (update_current_target): Update.
11971         * remote.c (remote_trace_start): Add 'self' argument.
11972
11973 2014-02-19  Tom Tromey  <tromey@redhat.com>
11974
11975         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11976         Add argument.
11977         (target_trace_set_readonly_regions): Add argument.
11978         * target.c (update_current_target): Update.
11979         * remote.c (remote_trace_set_readonly_regions): Add 'self'
11980         argument.
11981
11982 2014-02-19  Tom Tromey  <tromey@redhat.com>
11983
11984         * target.h (struct target_ops) <to_disable_tracepoint>: Add
11985         argument.
11986         (target_disable_tracepoint): Add argument.
11987         * target.c (update_current_target): Update.
11988         * remote.c (remote_disable_tracepoint): Add 'self' argument.
11989
11990 2014-02-19  Tom Tromey  <tromey@redhat.com>
11991
11992         * target.h (struct target_ops) <to_enable_tracepoint>: Add
11993         argument.
11994         (target_enable_tracepoint): Add argument.
11995         * target.c (update_current_target): Update.
11996         * remote.c (remote_enable_tracepoint): Add 'self' argument.
11997
11998 2014-02-19  Tom Tromey  <tromey@redhat.com>
11999
12000         * target.h (struct target_ops) <to_download_trace_state_variable>:
12001         Add argument.
12002         (target_download_trace_state_variable): Add argument.
12003         * target.c (update_current_target): Update.
12004         * remote.c (remote_download_trace_state_variable): Add 'self'
12005         argument.
12006
12007 2014-02-19  Tom Tromey  <tromey@redhat.com>
12008
12009         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12010         argument.
12011         (target_can_download_tracepoint): Add argument.
12012         * target.c (update_current_target): Update.
12013         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12014
12015 2014-02-19  Tom Tromey  <tromey@redhat.com>
12016
12017         * target.h (struct target_ops) <to_download_tracepoint>: Add
12018         argument.
12019         (target_download_tracepoint): Add argument.
12020         * target.c (update_current_target): Update.
12021         * remote.c (remote_download_tracepoint): Add 'self' argument.
12022
12023 2014-02-19  Tom Tromey  <tromey@redhat.com>
12024
12025         * target.h (struct target_ops) <to_trace_init>: Add argument.
12026         (target_trace_init): Add argument.
12027         * target.c (update_current_target): Update.
12028         * remote.c (remote_trace_init): Add 'self' argument.
12029
12030 2014-02-19  Tom Tromey  <tromey@redhat.com>
12031
12032         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12033         * target.c (target_fileio_readlink): Add argument.
12034         * remote.c (remote_hostio_readlink): Add 'self' argument.
12035         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12036
12037 2014-02-19  Tom Tromey  <tromey@redhat.com>
12038
12039         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12040         * target.c (target_fileio_unlink): Add argument.
12041         * remote.c (remote_hostio_unlink): Add 'self' argument.
12042         (remote_file_delete): Update.
12043         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12044
12045 2014-02-19  Tom Tromey  <tromey@redhat.com>
12046
12047         * target.h (struct target_ops) <to_fileio_close>: Add argument.
12048         * target.c (target_fileio_close): Add argument.
12049         * remote.c (remote_hostio_close): Add 'self' argument.
12050         (remote_hostio_close_cleanup): Update.
12051         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12052         Update.
12053         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12054
12055 2014-02-19  Tom Tromey  <tromey@redhat.com>
12056
12057         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12058         * target.c (target_fileio_pread): Add argument.
12059         * remote.c (remote_hostio_pread): Add 'self' argument.
12060         (remote_bfd_iovec_pread, remote_file_get): Update.
12061         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12062
12063 2014-02-19  Tom Tromey  <tromey@redhat.com>
12064
12065         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12066         * target.c (target_fileio_pwrite): Add argument.
12067         * remote.c (remote_hostio_pwrite): Add 'self' argument.
12068         (remote_file_put): Update.
12069         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12070
12071 2014-02-19  Tom Tromey  <tromey@redhat.com>
12072
12073         * target.h (struct target_ops) <to_fileio_open>: Add argument.
12074         * target.c (target_fileio_open): Add argument.
12075         * remote.c (remote_hostio_open): Add 'self' argument.
12076         (remote_bfd_iovec_open): Add 'self' argument.
12077         (remote_file_put): Add 'self' argument.
12078         (remote_file_get): Add 'self' argument.
12079         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12080
12081 2014-02-19  Tom Tromey  <tromey@redhat.com>
12082
12083         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12084         Add argument.
12085         (target_can_run_breakpoint_commands): Add argument.
12086         * target.c (update_current_target): Update.
12087         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12088         argument.
12089         (remote_insert_breakpoint): Add 'self' argument.
12090         (remote_insert_hw_breakpoint): Add 'self' argument.
12091         (remote_can_run_breakpoint_commands): Add 'self' argument.
12092
12093 2014-02-19  Tom Tromey  <tromey@redhat.com>
12094
12095         * target.h (struct target_ops)
12096         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12097         (target_supports_evaluation_of_breakpoint_conditions): Add
12098         argument.
12099         * target.c (update_current_target): Update.
12100         * remote.c (remote_supports_cond_breakpoints): Add 'self'
12101         argument.
12102         (remote_insert_breakpoint): Add 'self' argument.
12103         (remote_insert_hw_breakpoint): Add 'self' argument.
12104         (remote_supports_cond_breakpoints): Add 'self' argument.
12105
12106 2014-02-19  Tom Tromey  <tromey@redhat.com>
12107
12108         * target.h (struct target_ops) <to_supports_string_tracing>: Add
12109         argument.
12110         (target_supports_string_tracing): Add argument.
12111         * target.c (update_current_target): Update.
12112         * remote.c (remote_supports_string_tracing): Add 'self' argument.
12113
12114 2014-02-19  Tom Tromey  <tromey@redhat.com>
12115
12116         * target.h (struct target_ops)
12117         <to_supports_disable_randomization>: Add argument.
12118         * target.c (find_default_supports_disable_randomization): Add
12119         argument.
12120         (target_supports_disable_randomization): Add argument.
12121         (find_default_supports_disable_randomization): Add 'self'
12122         argument.
12123         * remote.c (extended_remote_supports_disable_randomization): Add
12124         'self' argument.
12125         (remote_supports_disable_randomization): Add 'self' argument.
12126         (extended_remote_create_inferior): Update.
12127         * linux-nat.c (linux_nat_supports_disable_randomization): Add
12128         'self' argument.
12129
12130 2014-02-19  Tom Tromey  <tromey@redhat.com>
12131
12132         * target.h (struct target_ops)
12133         <to_supports_enable_disable_tracepoint>: Add argument.
12134         (target_supports_enable_disable_tracepoint): Add argument.
12135         * target.c (update_current_target): Update.
12136         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12137         argument.
12138
12139 2014-02-19  Tom Tromey  <tromey@redhat.com>
12140
12141         * target.h (struct target_ops) <to_supports_multi_process>: Add
12142         argument.
12143         (target_supports_multi_process): Add argument.
12144         * target.c (update_current_target): Update.
12145         * remote.c (remote_supports_multi_process): Add 'self' argument.
12146         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12147         argument.
12148         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12149         argument.
12150
12151 2014-02-19  Tom Tromey  <tromey@redhat.com>
12152
12153         * target.h (struct target_ops) <to_execution_direction>: Add
12154         argument.
12155         (target_execution_direction): Add argument.
12156         * target.c (default_execution_direction): Add 'self' argument.
12157         * record-full.c (record_full_execution_direction): Add 'self'
12158         argument.
12159
12160 2014-02-19  Tom Tromey  <tromey@redhat.com>
12161
12162         * target.h (struct target_ops) <to_can_execute_reverse>: Add
12163         argument.
12164         (target_can_execute_reverse): Add argument.
12165         * remote.c (remote_can_execute_reverse): Add 'self' argument.
12166         * record-full.c (record_full_can_execute_reverse): Add 'self'
12167         argument.
12168         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12169         argument.
12170
12171 2014-02-19  Tom Tromey  <tromey@redhat.com>
12172
12173         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12174         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12175         argument.
12176         (target_get_ada_task_ptid): Add argument.
12177         * target.c (update_current_target): Update.
12178         (default_get_ada_task_ptid): Add 'self' argument.
12179         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12180         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12181         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12182         argument.
12183         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12184         argument.
12185         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12186         argument.
12187         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12188         argument.
12189         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12190         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12191         argument.
12192
12193 2014-02-19  Tom Tromey  <tromey@redhat.com>
12194
12195         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12196         (target_goto_bookmark): Add argument.
12197         * target.c (dummy_goto_bookmark): Add 'self' argument.
12198         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12199
12200 2014-02-19  Tom Tromey  <tromey@redhat.com>
12201
12202         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12203         (target_get_bookmark): Add argument.
12204         * target.c (dummy_get_bookmark): Add 'self' argument.
12205         * record-full.c (record_full_get_bookmark): Add 'self' argument.
12206
12207 2014-02-19  Tom Tromey  <tromey@redhat.com>
12208
12209         * target.h (struct target_ops) <to_make_corefile_notes>: Add
12210         argument.
12211         (target_make_corefile_notes): Add argument.
12212         * target.c (dummy_make_corefile_notes): Add 'self' argument.
12213         * procfs.c (procfs_make_note_section): Add 'self' argument.
12214         (procfs_make_note_section): Add 'self' argument.
12215         (procfs_make_note_section): Add 'self' argument.
12216         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12217         argument.
12218         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12219         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12220         * exec.c (exec_make_note_section): Add 'self' argument.
12221         (exec_make_note_section): Add 'self' argument.
12222
12223 2014-02-19  Tom Tromey  <tromey@redhat.com>
12224
12225         * target.h (struct target_ops) <to_find_memory_regions>: Add
12226         argument.
12227         (target_find_memory_regions): Add argument.
12228         * target.c (dummy_find_memory_regions): Add 'self' argument.
12229         * procfs.c (proc_find_memory_regions): Add 'self' argument.
12230         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12231         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12232         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12233         * exec. (exec_do_find_memory_regions): New global.
12234         (exec_set_find_memory_regions): Rewrite.
12235         (exec_find_memory_regions): New function.
12236         (init_exec_ops): Use exec_find_memory_regions.
12237
12238 2014-02-19  Tom Tromey  <tromey@redhat.com>
12239
12240         * target.h (struct target_ops) <to_supports_non_stop>: Add
12241         argument.
12242         * target.c (find_default_supports_non_stop): Add argument.
12243         (target_supports_non_stop): Add argument.
12244         (find_default_supports_non_stop): Add 'self' argument.
12245         * remote.c (remote_supports_non_stop): Add 'self' argument.
12246         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12247
12248 2014-02-19  Tom Tromey  <tromey@redhat.com>
12249
12250         * target.h (struct target_ops) <to_log_command>: Add argument.
12251         (target_log_command): Add argument.
12252         * serial.h (serial_log_command): Add 'self' argument.
12253         * serial.c (serial_log_command): Add 'self' argument.
12254
12255 2014-02-19  Tom Tromey  <tromey@redhat.com>
12256
12257         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12258         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12259         argument.
12260         (target_pid_to_exec_file): Add argument.
12261         * target.c (debug_to_pid_to_exec_file): Add argument.
12262         (update_current_target): Update.
12263         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12264         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12265         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12266         (linux_handle_extended_wait): Update.
12267         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12268         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12269         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12270         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12271
12272 2014-02-19  Tom Tromey  <tromey@redhat.com>
12273
12274         * target.h (struct target_ops) <to_rcmd>: Add argument.
12275         (target_rcmd): Add argument.
12276         * target.c (debug_to_rcmd): Add argument.
12277         (update_current_target, do_monitor_command): Update.
12278         * remote.c (remote_rcmd): Add 'self' argument.
12279         * monitor.c (monitor_rcmd): Add 'self' argument.
12280
12281 2014-02-19  Tom Tromey  <tromey@redhat.com>
12282
12283         * windows-nat.c (windows_stop): Add 'self' argument.
12284         * target.h (struct target_ops) <to_stop>: Add argument.
12285         * target.c (target_stop): Add argument.
12286         (debug_to_stop): Add argument.
12287         (update_current_target): Update.
12288         * remote.c (remote_stop): Add 'self' argument.
12289         * remote-sim.c (gdbsim_stop): Add 'self' argument.
12290         (gdbsim_cntrl_c): Update.
12291         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12292         * procfs.c (procfs_stop): Add 'self' argument.
12293         * nto-procfs.c (procfs_stop): Add 'self' argument.
12294         * monitor.c (monitor_stop): Add 'self' argument.
12295         (monitor_open): Update.
12296         * linux-nat.c (linux_nat_stop): Add argument.
12297         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12298         * gnu-nat.c (gnu_stop): Add 'self' argument.
12299         * darwin-nat.c (darwin_stop): Add 'self' argument.
12300
12301 2014-02-19  Tom Tromey  <tromey@redhat.com>
12302
12303         * target.h (struct target_ops) <to_thread_name>: Add argument.
12304         * target.c (target_thread_name): Add argument.
12305         (update_current_target): Update.
12306         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12307
12308 2014-02-19  Tom Tromey  <tromey@redhat.com>
12309
12310         * target.h (struct target_ops) <to_extra_thread_info>: Add
12311         argument.
12312         (target_extra_thread_info): Add argument.
12313         * target.c (update_current_target): Update.
12314         * remote.c (remote_threads_extra_info): Add 'self' argument.
12315         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12316         argument.
12317         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12318         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12319         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12320         argument.
12321         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12322         argument.
12323         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12324         argument.
12325         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12326         argument.
12327
12328 2014-02-19  Tom Tromey  <tromey@redhat.com>
12329
12330         * target.h (struct target_ops) <to_program_signals>: Add argument.
12331         * target.c (target_program_signals): Add argument.
12332         * remote.c (remote_program_signals): Add 'self' argument.
12333
12334 2014-02-19  Tom Tromey  <tromey@redhat.com>
12335
12336         * target.h (struct target_ops) <to_pass_signals>: Add argument.
12337         * target.c (target_pass_signals): Add argument.
12338         * remote.c (remote_pass_signals): Add 'self' argument.
12339         (remote_start_remote): Update.
12340         * procfs.c (procfs_pass_signals): Add 'self' argument.
12341         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12342         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12343         (linux_nat_create_inferior, linux_nat_attach): Update.
12344
12345 2014-02-19  Tom Tromey  <tromey@redhat.com>
12346
12347         * windows-nat.c (windows_can_run): Add 'self' argument.
12348         * target.h (struct target_ops) <to_can_run>: Add argument.
12349         (target_can_run): Add argument.
12350         * target.c (debug_to_can_run): Add argument.
12351         (update_current_target): Update.
12352         * nto-procfs.c (procfs_can_run): Add 'self' argument.
12353         * inf-child.c (inf_child_can_run): Add 'self' argument.
12354         * go32-nat.c (go32_can_run): Add 'self' argument.
12355
12356 2014-02-19  Tom Tromey  <tromey@redhat.com>
12357
12358         * target.h (struct target_ops) <to_has_exited>: Add argument.
12359         (target_has_exited): Add argument.
12360         * target.c (debug_to_has_exited): Add argument.
12361         (update_current_target): Update.
12362
12363 2014-02-19  Tom Tromey  <tromey@redhat.com>
12364
12365         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12366         argument.
12367         (target_set_syscall_catchpoint): Add argument.
12368         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12369         argument.
12370         * target.c (update_current_target): Update.
12371
12372 2014-02-19  Tom Tromey  <tromey@redhat.com>
12373
12374         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12375         argument.
12376         (target_remove_exec_catchpoint): Add argument.
12377         * target.c (debug_to_remove_exec_catchpoint): Add argument.
12378         (update_current_target): Update.
12379         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12380         argument.
12381
12382 2014-02-19  Tom Tromey  <tromey@redhat.com>
12383
12384         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12385         argument.
12386         (target_insert_exec_catchpoint): Add argument.
12387         * target.c (debug_to_insert_exec_catchpoint): Add argument.
12388         (update_current_target): Update.
12389         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12390         argument.
12391
12392 2014-02-19  Tom Tromey  <tromey@redhat.com>
12393
12394         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12395         argument.
12396         (target_remove_vfork_catchpoint): Add argument.
12397         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12398         (update_current_target): Update.
12399         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12400         argument.
12401
12402 2014-02-19  Tom Tromey  <tromey@redhat.com>
12403
12404         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12405         argument.
12406         (target_insert_vfork_catchpoint): Add argument.
12407         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12408         (update_current_target): Update.
12409         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12410         argument.
12411
12412 2014-02-19  Tom Tromey  <tromey@redhat.com>
12413
12414         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12415         argument.
12416         (target_remove_fork_catchpoint): Add argument.
12417         * target.c (debug_to_remove_fork_catchpoint): Add argument.
12418         (update_current_target): Update.
12419         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12420         argument.
12421
12422 2014-02-19  Tom Tromey  <tromey@redhat.com>
12423
12424         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12425         argument.
12426         (target_insert_fork_catchpoint): Add argument.
12427         * target.c (debug_to_insert_fork_catchpoint): Add argument.
12428         (update_current_target): Update.
12429         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12430         argument.
12431
12432 2014-02-19  Tom Tromey  <tromey@redhat.com>
12433
12434         * target.h (struct target_ops) <to_post_startup_inferior>: Add
12435         argument.
12436         (target_post_startup_inferior): Add argument.
12437         * target.c (debug_to_post_startup_inferior): Add argument.
12438         (update_current_target): Update.
12439         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12440         argument.
12441         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12442         argument.
12443         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12444         argument.
12445         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12446         argument.
12447         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12448         'self' argument.
12449         (super_post_startup_inferior): Likewise.
12450         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12451         'self' argument.
12452         (super_post_startup_inferior): Likewise.
12453         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12454         Add 'self' argument.
12455         (super_post_startup_inferior): Likewise.
12456
12457 2014-02-19  Tom Tromey  <tromey@redhat.com>
12458
12459         * target.h (struct target_ops) <to_load>: Add argument.
12460         * target.c (target_load): Add argument.
12461         (debug_to_load): Add argument.
12462         (update_current_target): Update.
12463         * remote.c (remote_load): Add 'self' argument.
12464         * remote-sim.c (gdbsim_load): Add 'self' argument.
12465         * remote-mips.c (mips_load): Add 'self' argument.
12466         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12467         * monitor.c (monitor_load): Add 'self' argument.
12468         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12469
12470 2014-02-19  Tom Tromey  <tromey@redhat.com>
12471
12472         * target.h (struct target_ops) <to_terminal_info>: Add argument.
12473         (target_terminal_info): Add argument.
12474         * target.c (debug_to_terminal_info): Add argument.
12475         (default_terminal_info): Likewise.
12476         * inflow.c (child_terminal_info): Add 'self' argument.
12477         * inferior.h (child_terminal_info): Add 'self' argument.
12478         * go32-nat.c (go32_terminal_info): Add 'self' argument.
12479
12480 2014-02-19  Tom Tromey  <tromey@redhat.com>
12481
12482         * target.h (struct target_ops) <to_terminal_save_ours>: Add
12483         argument.
12484         (target_terminal_save_ours): Add argument.
12485         * target.c (debug_to_terminal_save_ours): Add argument.
12486         (update_current_target): Update.
12487         * inflow.c (terminal_save_ours): Add 'self' argument.
12488         * inferior.h (terminal_save_ours): Add 'self' argument.
12489
12490 2014-02-19  Tom Tromey  <tromey@redhat.com>
12491
12492         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12493         (target_terminal_ours): Add argument.
12494         * target.c (debug_to_terminal_ours): Add argument.
12495         (update_current_target): Update.
12496         * remote.c (remote_terminal_ours): Add 'self' argument.
12497         (remote_close): Update.
12498         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12499         * inflow.c (terminal_ours): Add 'self' argument.
12500         * inferior.h (terminal_ours): Add 'self' argument.
12501         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12502
12503 2014-02-19  Pedro Alves  <palves@redhat.com>
12504             Tom Tromey  <tromey@redhat.com>
12505
12506         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12507         argument.
12508         (target_terminal_ours_for_output): Add argument.
12509         * target.c (debug_to_terminal_ours_for_output): Add argument.
12510         (update_current_target): Update.
12511         * inflow.c (terminal_ours_for_output): Add 'self' argument.
12512         * inferior.h (terminal_ours_for_output): Add 'self' argument.
12513         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12514
12515 2014-02-19  Tom Tromey  <tromey@redhat.com>
12516
12517         * target.h (struct target_ops) <to_terminal_inferior>: Add
12518         argument.
12519         * target.c (target_terminal_inferior): Add argument.
12520         (update_current_target): Update.
12521         * remote.c (remote_terminal_inferior): Add 'self' argument.
12522         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12523         * inflow.c (terminal_inferior): Add 'self' argument.
12524         * inferior.h (terminal_inferior): Add 'self' argument.
12525         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12526         (go32_terminal_inferior): Add 'self' argument.
12527
12528 2014-02-19  Tom Tromey  <tromey@redhat.com>
12529
12530         * target.h (struct target_ops) <to_terminal_init>: Add argument.
12531         (target_terminal_init): Add argument.
12532         * target.c (debug_to_terminal_init): Add argument.
12533         (update_current_target): Update.
12534         * inflow.c (terminal_init_inferior): Add 'self' argument.
12535         * inferior.h (terminal_init_inferior): Add 'self' argument.
12536         * go32-nat.c (go32_terminal_init): Add 'self' argument.
12537         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12538
12539 2014-02-19  Tom Tromey  <tromey@redhat.com>
12540
12541         * target.h (struct target_ops)
12542         <to_can_accel_watchpoint_condition>: Add argument.
12543         (target_can_accel_watchpoint_condition): Add argument.
12544         * target.c (debug_to_can_accel_watchpoint_condition): Add
12545         argument.
12546         (update_current_target): Update.
12547         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12548         'self' argument.
12549
12550 2014-02-19  Tom Tromey  <tromey@redhat.com>
12551
12552         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12553         Add argument.
12554         (target_region_ok_for_hw_watchpoint): Add argument.
12555         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12556         (default_region_ok_for_hw_watchpoint): Add argument.
12557         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12558         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12559         argument.
12560         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12561         argument.
12562         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12563         argument.
12564         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12565         'self' argument.
12566         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12567         'self' argument.
12568         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12569         'self' argument.
12570         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12571         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12572         'self' argument.
12573         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12574         Add 'self' argument.
12575
12576 2014-02-19  Tom Tromey  <tromey@redhat.com>
12577
12578         * target.h (struct target_ops) <to_insert_watchpoint>: Add
12579         argument.
12580         (target_insert_watchpoint): Add argument.
12581         * target.c (debug_to_insert_watchpoint): Add argument.
12582         (update_current_target): Update.
12583         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12584         * remote.c (remote_insert_watchpoint): Add 'self' argument.
12585         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12586         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12587         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12588         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12589         argument.
12590         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12591         (procfs_insert_hw_watchpoint): Add 'self' argument.
12592         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12593         argument.
12594         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12595         argument.
12596         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12597         argument.
12598         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12599         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12600         argument.
12601         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12602         'self' argument.
12603
12604 2014-02-19  Tom Tromey  <tromey@redhat.com>
12605
12606         * target.h (struct target_ops) <to_remove_watchpoint>: Add
12607         argument.
12608         (target_remove_watchpoint): Add argument.
12609         * target.c (debug_to_remove_watchpoint): Add argument.
12610         (update_current_target): Update.
12611         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12612         * remote.c (remote_remove_watchpoint): Add 'self' argument.
12613         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12614         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12615         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12616         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12617         argument.
12618         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12619         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12620         argument.
12621         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12622         argument.
12623         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12624         argument.
12625         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12626         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12627         argument.
12628         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12629         'self' argument.
12630
12631 2014-02-19  Tom Tromey  <tromey@redhat.com>
12632
12633         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12634         argument.
12635         (target_remove_hw_breakpoint): Add argument.
12636         * target.c (debug_to_remove_hw_breakpoint): Add argument.
12637         (update_current_target): Update.
12638         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12639         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12640         argument.
12641         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12642         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12643         argument.
12644         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12645         'self' argument.
12646
12647 2014-02-19  Tom Tromey  <tromey@redhat.com>
12648
12649         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12650         argument.
12651         (target_insert_hw_breakpoint): Add argument.
12652         * target.c (debug_to_insert_hw_breakpoint): Add argument.
12653         (update_current_target): Update.
12654         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12655         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12656         argument.
12657         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12658         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12659         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12660         argument.
12661         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12662         'self' argument.
12663
12664 2014-02-19  Tom Tromey  <tromey@redhat.com>
12665
12666         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12667         argument.
12668         (target_can_use_hardware_watchpoint): Add argument.
12669         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12670         (update_current_target): Update.
12671         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12672         argument.
12673         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12674         argument.
12675         * remote.c (remote_check_watch_resources): Add 'self' argument.
12676         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12677         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12678         argument.
12679         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12680         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12681         argument.
12682         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12683         argument.
12684         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12685         argument.
12686         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12687         argument.
12688         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12689         argument.
12690         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12691         argument.
12692         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12693         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12694         argument.
12695         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12696         'self' argument.
12697
12698 2014-02-19  Tom Tromey  <tromey@redhat.com>
12699
12700         * target.h (struct target_ops) <to_post_attach>: Add argument.
12701         (target_post_attach): Add argument.
12702         * target.c (debug_to_post_attach): Add argument.
12703         (update_current_target): Update.
12704         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12705         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12706         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12707         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12708         * inf-child.c (inf_child_post_attach): Add 'self' argument.
12709
12710 2014-02-19  Tom Tromey  <tromey@redhat.com>
12711
12712         * windows-nat.c (windows_close): Add 'self' argument.
12713         * tracepoint.c (tfile_close): Add 'self' argument.
12714         * target.h (struct target_ops) <to_close>: Add argument.
12715         * target.c (target_close): Add argument.
12716         (update_current_target): Update.
12717         * remote.c (remote_close): Add 'self' argument.
12718         * remote-sim.c (gdbsim_close): Add 'self' argument.
12719         * remote-mips.c (mips_close): Add 'self' argument.
12720         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12721         * record-full.c (record_full_close): Add 'self' argument.
12722         * record-btrace.c (record_btrace_close): Add 'self' argument.
12723         * monitor.h (monitor_close): Add 'self' argument.
12724         * monitor.c (monitor_close): Add 'self' argument.
12725         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12726         * linux-nat.c (linux_nat_close): Add argument.
12727         * go32-nat.c (go32_close): Add 'self' argument.
12728         * exec.c (exec_close_1): Add 'self' argument.
12729         * ctf.c (ctf_close): Add 'self' argument.
12730         * corelow.c (core_close): Add 'self' argument.
12731         (core_close_cleanup): Update.
12732         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12733         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12734
12735 2014-02-19  Tom Tromey  <tromey@redhat.com>
12736
12737         * remote.c (remote_load): New function.
12738         (init_remote_ops): Use it.
12739
12740 2014-02-19  Tom Tromey  <tromey@redhat.com>
12741
12742         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12743         argument.
12744         * common/linux-btrace.h (linux_supports_btrace): Update.
12745         * remote.c (remote_supports_btrace): Add "self" argument.
12746         * target-delegates.c: Rebuild.
12747         * target.c (target_supports_btrace): Remove.
12748         * target.h (struct target_ops) <to_supports_btrace>: Add
12749         target_ops argument.
12750         (target_supports_btrace): New define.
12751
12752 2014-02-19  Tom Tromey  <tromey@redhat.com>
12753
12754         * record-full.c (record_full_beneath_to_resume_ops)
12755         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12756         (record_full_beneath_to_wait)
12757         (record_full_beneath_to_store_registers_ops)
12758         (record_full_beneath_to_store_registers)
12759         (record_full_beneath_to_xfer_partial_ops)
12760         (record_full_beneath_to_xfer_partial)
12761         (record_full_beneath_to_insert_breakpoint_ops)
12762         (record_full_beneath_to_insert_breakpoint)
12763         (record_full_beneath_to_remove_breakpoint_ops)
12764         (record_full_beneath_to_remove_breakpoint)
12765         (record_full_beneath_to_stopped_by_watchpoint)
12766         (record_full_beneath_to_stopped_data_address)
12767         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12768         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12769         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12770         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12771         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12772         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12773         (tmp_to_stopped_data_address, tmp_to_async): Remove.
12774         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
12775         (record_full_resume, record_full_wait_1)
12776         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12777         (record_full_store_registers, record_full_xfer_partial)
12778         (record_full_insert_breakpoint, record_full_remove_breakpoint)
12779         (record_full_async, record_full_core_xfer_partial): Use target
12780         delegation.
12781         * target-delegates.c: Rebuild.
12782         * target.c (current_xfer_partial): Remove.
12783         (update_current_target): Do not INHERIT or de_fault
12784         to_insert_breakpoint, to_remove_breakpoint,
12785         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12786         to_is_async_p, to_async.  Do not set to_xfer_partial field.
12787         (default_xfer_partial): Simplify.
12788         (current_xfer_partial): Remove.
12789         (target_wait, target_resume): Simplify.
12790         (find_default_can_async_p, find_default_is_async_p): Update.
12791         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
12792         to_xfer_partial, to_stopped_by_watchpoint,
12793         to_stopped_data_address.
12794         (target_store_registers): Simplify.
12795         (forward_target_remove_breakpoint)
12796         (forward_target_insert_breakpoint): Remove.
12797         (target_remove_breakpoint, target_insert_breakpoint)
12798         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
12799         * target.h (struct target_ops) <to_resume, to_wait,
12800         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
12801         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
12802         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
12803         markup.
12804         (forward_target_remove_breakpoint)
12805         (forward_target_insert_breakpoint): Remove.
12806         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
12807         directly.
12808         (record_btrace_insert_breakpoint): Delegate directly.
12809
12810 2014-02-19  Tom Tromey  <tromey@redhat.com>
12811
12812         PR build/7701:
12813         * target-delegates.c: New file.
12814         * target.c: Include target-delegates.c.
12815         (init_dummy_target): Call install_dummy_methods.
12816         (complete_target_initialization): Call install_delegators.
12817         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
12818         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
12819         * make-target-delegates: New file.
12820
12821 2014-02-19  Tom Tromey  <tromey@redhat.com>
12822
12823         * record.c (find_record_target): Use find_target_at.
12824         * target.c (find_target_at): New function.
12825         * target.h (find_target_at): Declare.
12826
12827 2014-02-19  Tom Tromey  <tromey@redhat.com>
12828
12829         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
12830         Add 'ops' argument.
12831         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
12832         'ops' argument.
12833         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
12834         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
12835         'ops' argument.
12836         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
12837         argument.
12838         * linux-nat.c (save_sigtrap): Update.
12839         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
12840         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
12841         (linux_nat_close): Update.
12842         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
12843         argument.
12844         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
12845         argument.
12846         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
12847         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
12848         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
12849         (tmp_to_async): Add 'ops' argument.
12850         (record_full_stopped_by_watchpoint, record_full_async)
12851         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
12852         argument.
12853         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
12854         (m32r_stopped_by_watchpoint): Add 'ops' argument.
12855         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
12856         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
12857         (remote_is_async_p, remote_async): Add 'ops' argument.
12858         (remote_stopped_data_address): Update.
12859         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
12860         * target.c (update_current_target)
12861         (find_default_can_async_p, find_default_is_async_p): Update.
12862         (init_dummy_target): Update.
12863         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
12864         * target.h (struct target_ops) <to_stopped_by_watchpoint,
12865         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
12866         (target_can_async_p, target_is_async_p, target_async)
12867         (target_stopped_by_watchpoint): Update.
12868
12869 2014-02-19  Yao Qi  <yao@codesourcery.com>
12870
12871         PR gdb/16220
12872         * gdbarch.sh: Remove startup_gdbarch.
12873         * gdbarch.c: Regenerated.
12874         * gdbarch.h: Likewise.
12875
12876 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
12877
12878         * rl78-tdep.c (rl78_g10_register_name): New function.
12879         (rl78_return_value): Add g10 support.
12880         (rl78_gdbarch_init): Register rl78_g10_register_name for the
12881         g10.
12882
12883 2014-02-17  Doug Evans  <xdje42@gmail.com>
12884
12885         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
12886         (SUBDIR_GUILE_SRCS): Ditto.
12887         (scm-gsmob.o): Ditto.
12888
12889 2014-02-17  Yao Qi  <yao@codesourcery.com>
12890
12891         * gnu-nat.c (ILL_RPC): Declare defined function.
12892
12893 2014-02-17  Yao Qi  <yao@codesourcery.com>
12894
12895         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
12896         mach_msg_type_number_t.
12897         (gnu_write_inferior): Likewise.
12898
12899 2014-02-17  Yao Qi  <yao@codesourcery.com>
12900
12901         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
12902         in format string.
12903         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
12904         (inf_validate_procs, inf_signal): Likewise.
12905         (S_exception_raise_request): Likewise.
12906         (do_mach_notify_dead_name): Likewise.
12907         (steal_exc_port): Likewise.
12908         (gnu_read_inferior): Change 'copy_count''s type to
12909         mach_msg_type_number_t.
12910         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
12911         format string.
12912
12913 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
12914
12915         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
12916         flag.  Adjust all users; in particular...
12917         (gnu_wait): ..., don't decrement its value in here...
12918         (gnu_create_inferior): ..., and instead set the flag in here,
12919         around the startup_inferior call, and call that one with
12920         START_INFERIOR_TRAPS_EXPECTED.
12921
12922         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
12923         (ILL_RPC): ... new macro.
12924         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
12925         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
12926         (do_mach_notify_send_once, S_proc_setmsgport_reply)
12927         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
12928         functions with ILL_RPC macro.
12929         (S_proc_pid2task_reply, S_proc_task2pid_reply)
12930         (S_proc_task2proc_reply, S_proc_proc2task_reply)
12931         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
12932         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
12933         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
12934         (S_proc_getlogin_reply, S_proc_getsid_reply)
12935         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
12936         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
12937         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
12938         (S_proc_getnports_reply, S_proc_is_important_reply)
12939         (S_proc_get_code_reply): New stub functions, generated with
12940         ILL_RPC macro.
12941
12942         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
12943         collected the type check structures.
12944
12945         * reply_mig_hack.awk: Don't expect to see the auto keyword.
12946
12947 2014-02-14  Doug Evans  <dje@google.com>
12948
12949         * target.c (target_write_partial): Fix result type.
12950
12951 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
12952
12953         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
12954         the proper offsets to access fpregset_t.
12955
12956 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
12957
12958         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
12959         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
12960         * h8300-tdep.c (setmachinelist): Remove global.
12961         * hppa-tdep.c (hppa_sigtramp): Remove global.
12962         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
12963         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
12964         * ravenscar-thread.c (update_target_observer): Remove global.
12965         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
12966
12967 2014-02-12  Tom Tromey  <tromey@redhat.com>
12968
12969         * common/rsp-low.c: Update comments.
12970         * common/rsp-low.h: Update comments.
12971
12972 2014-02-12  Tom Tromey  <tromey@redhat.com>
12973
12974         * common/rsp-low.c (convert_ascii_to_int): Remove.
12975         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
12976
12977 2014-02-12  Tom Tromey  <tromey@redhat.com>
12978
12979         * common/rsp-low.h (unhexify): Don't declare.
12980         * common/rsp-low.c (unhexify): Remove.
12981
12982 2014-02-12  Tom Tromey  <tromey@redhat.com>
12983
12984         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
12985         * common/rsp-low.c (convert_int_to_ascii): Remove.
12986
12987 2014-02-12  Tom Tromey  <tromey@redhat.com>
12988
12989         * common/rsp-low.h (hexify): Don't declare.
12990         * common/rsp-low.c (hexify): Remove.
12991
12992 2014-02-12  Tom Tromey  <tromey@redhat.com>
12993
12994         * common/rsp-low.c (hexify): Never take strlen of argument.
12995
12996 2014-02-12  Tom Tromey  <tromey@redhat.com>
12997
12998         * common/rsp-low.c (bin2hex): Never take strlen of argument.
12999         * remote.c (extended_remote_run, remote_rcmd)
13000         (remote_download_trace_state_variable, remote_save_trace_data)
13001         (remote_set_trace_notes): Update.
13002         * tracepoint.c (encode_source_string, tfile_write_status)
13003         (tfile_write_uploaded_tsv): Update.
13004
13005 2014-02-12  Tom Tromey  <tromey@redhat.com>
13006
13007         * tracepoint.c: Include rsp-low.h.
13008         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13009         * remote.c: Include rsp-low.h.
13010         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13011         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13012         (remote_unescape_input): Move to common/rsp-low.c.
13013         * common/rsp-low.h: New file.
13014         * common/rsp-low.c: New file.
13015         * Makefile.in (SFILES): Add common/rsp-low.c.
13016         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13017         (COMMON_OBS): Add rsp-low.o.
13018         (rsp-low.o): New target.
13019
13020 2014-02-12  Tom Tromey  <tromey@redhat.com>
13021
13022         * utils.h: Include print-utils.h.
13023         (host_address_to_string, plongest, pulongest, phex, phex_nz)
13024         (int_string, core_addr_to_string, core_addr_to_string_nz)
13025         (hex_string, hex_string_custom): Don't declare.
13026         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13027         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13028         (hex_string_custom, int_string, core_addr_to_string)
13029         (core_addr_to_string_nz, host_address_to_string): Move to
13030         common/print-utils.c.
13031         * common/print-utils.h: New file.
13032         * common/print-utils.c: New file
13033         * Makefile.in (SFILES): Add common/print-utils.c.
13034         (HFILES_NO_SRCDIR): Add common/print-utils.h.
13035         (COMMON_OBS): Add print-utils.o.
13036         (print-utils.o): New target.
13037
13038 2014-02-12  Tom Tromey  <tromey@redhat.com>
13039
13040         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13041
13042 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
13043
13044         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13045
13046 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
13047
13048         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13049         if a PT_IO ptrace request returns sucessfully but indicates that 0
13050         bytes were transferred.
13051
13052 2014-02-12  Pedro Alves  <palves@redhat.com>
13053             Kevin Buettner <kevinb@redhat.com>
13054
13055         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13056         TYPE_INSTANCE_FLAG_CODE_SPACE.
13057
13058 2014-02-12  Pedro Alves  <palves@redhat.com>
13059
13060         * h8300-tdep.c (pseudo_from_raw_register)
13061         (raw_from_pseudo_register): New functions.
13062         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13063         them.
13064
13065 2014-02-12  Pedro Alves  <palves@redhat.com>
13066
13067         * h8300-tdep.c (h8300_register_sim_regno): New function.
13068         (h8300_gdbarch_init): Install h8300_register_sim_regno as
13069         gdbarch_register_sim_regno hook.
13070
13071 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
13072
13073         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13074
13075 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
13076
13077         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13078
13079 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
13080
13081         * obsd-tdep.h (obsd_init_abi): New prototype.
13082         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13083         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13084         (obsd_init_abi): New functions.
13085         * i386obsd-tdep.c: Include "obsd-tdep.h".
13086         (i386obsd_init_abi): Call obsd_init_abi.
13087         * amd64obsd-tdep.c: Include "obsd-tdep.h".
13088         (amd64obsd_init_abi): Call obsd_init_abi.
13089         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13090         obsd-tdep.c to gdb_target_obs.
13091
13092 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
13093
13094         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13095         double float arguments to 16-byte in the argument slots.
13096
13097 2014-02-11  Doug Evans  <xdje42@gmail.com>
13098
13099         * configure.ac: Don't crash if pkg-config is not found and guile
13100         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
13101         in guile checks.
13102         * configure: Regenerate.
13103
13104 2014-02-11  Yao Qi  <yao@codesourcery.com>
13105
13106         * aix-thread.c (aix_thread_xfer_partial): Update comments.
13107         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13108         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13109         * gnu-nat.c (gnu_xfer_memory): Likewise.
13110         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
13111         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13112         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13113         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13114
13115 2014-02-11  Yao Qi  <yao@codesourcery.com>
13116
13117         * target.h (enum target_xfer_error): Rename to ...
13118         (enum target_xfer_status): ... it.  New.  All users updated.
13119         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13120         New.
13121         (TARGET_XFER_STATUS_ERROR_P): New macro.
13122         (target_xfer_error_to_string): Remove declaration.
13123         (target_xfer_status_to_string): Declare.
13124         (target_xfer_partial_ftype): Adjust it.
13125         (struct target_ops) <to_xfer_partial>: Return
13126         target_xfer_status.  Add argument xfered_len.  Update
13127         comments.
13128         * target.c (target_xfer_error_to_string): Rename to ...
13129         (target_xfer_status_to_string): ... it.  New.  All callers
13130         updated.
13131         (target_read_live_memory): Likewise.  Call target_xfer_partial
13132         instead of target_read.
13133         (memory_xfer_live_readonly_partial): Return
13134         target_xfer_status.  Add argument xfered_len.
13135         (raw_memory_xfer_partial): Likewise.
13136         (memory_xfer_partial_1): Likewise.
13137         (memory_xfer_partial): Likewise.
13138         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
13139         properly.  Update debug message.
13140         (default_xfer_partial, current_xfer_partial): Likewise.
13141         (target_write_partial): Likewise.
13142         (target_read_partial): Likewise.  All callers updated.
13143         (read_whatever_is_readable): Likewise.
13144         (target_write_with_progress): Likewise.
13145         (target_read_alloc_1): Likewise.
13146
13147         * aix-thread.c (aix_thread_xfer_partial): Likewise.
13148         * auxv.c (procfs_xfer_auxv): Likewise.
13149         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13150         * bfd-target.c (target_bfd_xfer_partial): Likewise.
13151         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13152         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13153         * corefile.c (read_memory): Adjust.
13154         * corelow.c (core_xfer_partial): Likewise.
13155         * ctf.c (ctf_xfer_partial): Likewise.
13156         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
13157         updated.
13158         (darwin_xfer_partial): Likewise.
13159         * exec.c (section_table_xfer_memory_partial): Likewise.  All
13160         callers updated.
13161         (exec_xfer_partial): Likewise.
13162         * exec.h (section_table_xfer_memory_partial): Update
13163         declaration.
13164         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
13165         negative.
13166         (gnu_xfer_partial): Likewise.
13167         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13168         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13169         (ia64_hpux_xfer_solib_got): Likewise.
13170         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
13171         type of 'partial_len' to ULONGEST.
13172         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13173         * linux-nat.c (linux_xfer_siginfo ): Likewise.
13174         (linux_nat_xfer_partial): Likewise.
13175         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13176         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13177         * monitor.c (monitor_xfer_memory): Likewise.
13178         (monitor_xfer_partial): Likewise.
13179         * procfs.c (procfs_xfer_partial): Likewise.
13180         * record-btrace.c (record_btrace_xfer_partial): Likewise.
13181         * record-full.c (record_full_xfer_partial): Likewise.
13182         (record_full_core_xfer_partial): Likewise.
13183         * remote-sim.c (gdbsim_xfer_memory): Likewise.
13184         (gdbsim_xfer_partial): Likewise.
13185         * remote.c (remote_write_bytes_aux): Likewise.  All callers
13186         updated.
13187         (remote_write_bytes, remote_read_bytes): Likewise.  All
13188         callers updated.
13189         (remote_flash_erase): Likewise.  All callers updated.
13190         (remote_write_qxfer): Likewise.  All callers updated.
13191         (remote_read_qxfer): Likewise.  All callers updated.
13192         (remote_xfer_partial): Likewise.
13193         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13194         (rs6000_xfer_shared_libraries): Likewise.
13195         * sol-thread.c (sol_thread_xfer_partial): Likewise.
13196         (sol_thread_xfer_partial): Likewise.
13197         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13198         (sparc_xfer_partial): Likewise.
13199         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
13200         updated.
13201         (spu_xfer_partial): Likewise.
13202         * spu-multiarch.c (spu_xfer_partial): Likewise.
13203         * tracepoint.c (tfile_xfer_partial): Likewise.
13204         * windows-nat.c (windows_xfer_memory): Likewise.
13205         (windows_xfer_shared_libraries): Likewise.
13206         (windows_xfer_partial): Likewise.
13207         * valprint.c: Replace 'target_xfer_error' with
13208         'target_xfer_status' in comments.
13209
13210 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
13211
13212         Checked in by Joel Brobecker <brobecker@adacore.com>.
13213         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13214
13215 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
13216
13217         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13218         function parameters.
13219
13220 2014-02-10  Will Newton  <will.newton@linaro.org>
13221
13222         * elfread.c (elf_rel_plt_read): Look for a .got section if
13223         looking up .got.plt fails.
13224         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13225         on address passed to elf_gnu_ifunc_record_cache.
13226         (elf_gnu_ifunc_resolve_addr): Likewise.
13227         (elf_gnu_ifunc_resolver_return_stop): Likewise.
13228
13229 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
13230
13231         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13232         (X_RETTURN): New macro.
13233         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13234
13235         * sparc64-tdep.c (sparc64_init_abi): Hook
13236         sparc_in_function_epilogue_p.
13237
13238 2014-02-10  Gary Benson  <gbenson@redhat.com>
13239
13240         * symfile-debug.c (debug_qf_expand_symtabs_matching):
13241         Rename name_matcher to symbol_matcher.
13242
13243 2014-02-10  Gary Benson  <gbenson@redhat.com>
13244
13245         * symfile-debug.c (debug_qf_expand_symtabs_matching):
13246         Use expand_symtabs_file_matcher_ftype and
13247         expand_symtabs_symbol_matcher_ftype.
13248
13249 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13250
13251         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13252         (struct ada_symbol_cache): New.
13253         (ada_free_symbol_cache): Forward declare.
13254         (struct ada_pspace_data): New.
13255         (ada_pspace_data_handle): New static global.
13256         (get_ada_pspace_data, ada_pspace_data_cleanup)
13257         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13258         (cache_space, cache): Delete, now folded inside struct
13259         ada_pspace_data.
13260         (ada_get_symbol_cache): New function.
13261         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13262         implementation.
13263         (_initialize_ada_language): Remove initialization of cache_space.
13264         Move call to observer_attach_inferior_exit up, grouping it
13265         with the other observer registrations inside this function.
13266         Rename command to be more general.  Add call to
13267         register_program_space_data_with_cleanup.
13268
13269 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13270
13271         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13272         ada_new_objfile_observer.
13273         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13274         (_initialize_tasks): Update uses of ada_new_objfile_observer
13275         and ada_tasks_normal_stop_observer.
13276
13277 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13278
13279         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13280         returned by the 'Length attribute to integer.
13281
13282 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13283
13284         * ada-lang.c (_initialize_ada_language): Initialize
13285         cache_space obstack.
13286
13287 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13288
13289         * ada-lang.c (HASH_SIZE): New macro.
13290         (struct cache_entry): New type.
13291         (cache_space, cache): New static globals.
13292         (ada_clear_symbol_cache, find_entry): New functions.
13293         (lookup_cached_symbol, cache_symbol): Implement.
13294         (ada_new_objfile_observer, ada_free_objfile_observer): New.
13295         (_initialize_ada_language): Attach ada_new_objfile_observer
13296         and ada_free_objfile_observer.
13297
13298 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13299
13300         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13301         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13302         struct block * parameter.
13303         (ada_lookup_symbol_list_worker): Constify local variable "block".
13304         Remove cast which is no longer necessary.
13305
13306 2014-02-10  Doug Evans  <xdje42@gmail.com>
13307
13308         Add Guile as an extension language.
13309         * NEWS: Mention Guile scripting.
13310         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13311         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13312         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13313         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13314         (CLIBS): Add GUILE_LIBS.
13315         (install-guile): New rule.
13316         (guile.o): New rule.
13317         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13318         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13319         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13320         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13321         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13322         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13323         (scm-type.o, scm-utils.o, scm-value.o): New rules.
13324         * configure.ac: New option --with-guile.
13325         * configure: Regenerate.
13326         * config.in: Regenerate.
13327         * auto-load.c: Remove #include "python/python.h".  Add #include
13328         "gdb/section-scripts.h".
13329         (source_section_scripts): Handle Guile scripts.
13330         (_initialize_auto_load): Add name of Guile objfile script to
13331         scripts-directory help text.
13332         * breakpoint.c (condition_command): Tweak comment to include Scheme.
13333         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13334         (struct breakpoint): New member scm_bp_object.
13335         * defs.h (enum command_control_type): New value guile_control.
13336         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
13337         "extension.h".
13338         (show_user): Update comment.
13339         (_initialize_cli_cmds): Update help text for "show user".  Update help
13340         text for max-user-call-depth.
13341         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
13342         "extension.h".
13343         (multi_line_command_p): Add guile_control.
13344         (print_command_lines): Handle guile_control.
13345         (execute_control_command, recurse_read_control_structure): Ditto.
13346         (process_next_line): Recognize "guile" commands.
13347         * disasm.c (gdb_disassemble_info): Make non-static.
13348         * disasm.h: #include "dis-asm.h".
13349         (struct gdbarch): Add forward decl.
13350         (gdb_disassemble_info): Declare.
13351         * extension.c: #include "guile/guile.h".
13352         (extension_languages): Add guile.
13353         (get_ext_lang_defn): Handle EXT_LANG_GDB.
13354         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13355         * gdbtypes.c (get_unsigned_type_max): New function.
13356         (get_signed_type_minmax): New function.
13357         * gdbtypes.h (get_unsigned_type_max): Declare.
13358         (get_signed_type_minmax): Declare.
13359         * guile/README: New file.
13360         * guile/guile-internal.h: New file.
13361         * guile/guile.c: New file.
13362         * guile/guile.h: New file.
13363         * guile/scm-arch.c: New file.
13364         * guile/scm-auto-load.c: New file.
13365         * guile/scm-block.c: New file.
13366         * guile/scm-breakpoint.c: New file.
13367         * guile/scm-disasm.c: New file.
13368         * guile/scm-exception.c: New file.
13369         * guile/scm-frame.c: New file.
13370         * guile/scm-gsmob.c: New file.
13371         * guile/scm-iterator.c: New file.
13372         * guile/scm-lazy-string.c: New file.
13373         * guile/scm-math.c: New file.
13374         * guile/scm-objfile.c: New file.
13375         * guile/scm-ports.c: New file.
13376         * guile/scm-pretty-print.c: New file.
13377         * guile/scm-safe-call.c: New file.
13378         * guile/scm-string.c: New file.
13379         * guile/scm-symbol.c: New file.
13380         * guile/scm-symtab.c: New file.
13381         * guile/scm-type.c: New file.
13382         * guile/scm-utils.c: New file.
13383         * guile/scm-value.c: New file.
13384         * guile/lib/gdb.scm: New file.
13385         * guile/lib/gdb/boot.scm: New file.
13386         * guile/lib/gdb/experimental.scm: New file.
13387         * guile/lib/gdb/init.scm: New file.
13388         * guile/lib/gdb/iterator.scm: New file.
13389         * guile/lib/gdb/printing.scm: New file.
13390         * guile/lib/gdb/types.scm: New file.
13391         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13392         (VPATH): Add $(GUILE_SRCDIR).
13393         (GUILE_DIR): New variable.
13394         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13395         (all): Add stamp-guile dependency.
13396         (stamp-guile): New rule.
13397         (clean-guile, install-guile, uninstall-guile): New rules.
13398         (install-only): Add install-guile dependency.
13399         (uninstall): Add uninstall-guile dependency.
13400         (clean): Add clean-guile dependency.
13401
13402 2014-02-09  Doug Evans  <xdje42@gmail.com>
13403
13404         Revert this patch (which I approved, mea culpa).
13405
13406         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
13407
13408         * Makefile.in (all-lib): Remove.
13409         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13410
13411 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
13412
13413         Fix Python stack corruption.
13414         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13415         gdb_py_longest.
13416
13417 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
13418
13419         * Makefile.in (all-lib): Remove.
13420         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13421
13422 2014-02-07  Doug Evans  <dje@google.com>
13423
13424         * extension-priv.h (extension_language_script_ops): Add comment.
13425         (extension_language_ops): Add comment.
13426         (active_ext_lang_state): Fix typo in comment.
13427
13428 2014-02-07  Pedro Alves  <palves@redhat.com>
13429
13430         PR breakpoints/16292
13431         * infrun.c (handle_signal_stop) <signal arrives while stepping
13432         over a breakpoint>: Switch back to the stepping thread.
13433
13434 2014-02-07  Yao Qi  <yao@codesourcery.com>
13435
13436         * target.c (target_xfer_partial): Return zero if LEN is zero.
13437
13438 2014-02-07  Yao Qi  <yao@codesourcery.com>
13439
13440         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13441         (ld_so_xfer_auxv): Likewise.
13442         * bfd-target.c (target_bfd_xfer_partial): Likewise.
13443         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13444         * corelow.c (core_xfer_partial): Likewise.
13445         * ctf.c (ctf_xfer_partial): Likewise.
13446         * darwin-nat.c (darwin_read_dyld_info): Likewise.
13447         (darwin_xfer_partial): Likewise.
13448         * exec.c (exec_xfer_partial): Likewise.
13449         * gnu-nat.c (gnu_xfer_partial): Likewise.
13450         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13451         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13452         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13453         * linux-nat.c (linux_xfer_siginfo): Likewise.
13454         (linux_proc_xfer_spu): Likewise.
13455         * procfs.c (procfs_xfer_partial): Likewise.
13456         * record-full.c (record_full_xfer_partial): Likewise.
13457         (record_full_core_xfer_partial): Likewise.
13458         * remote-sim.c (gdbsim_xfer_partial): Likewise.
13459         * remote.c (remote_write_qxfer): Likewise.
13460         (remote_write_qxfer, remote_read_qxfer): Likewise.
13461         (remote_xfer_partial): Likewise.
13462         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13463         (rs6000_xfer_shared_libraries): Likewise.
13464         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13465         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13466         (spu_xfer_partial): Likewise.
13467         * target.c (memory_xfer_partial_1): Likewise.
13468         * tracepoint.c (tfile_xfer_partial): Likewise.
13469         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13470         (windows_xfer_partial): Likewise.
13471
13472 2014-02-07  Yao Qi  <yao@codesourcery.com>
13473
13474         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
13475         comments.
13476         (core_xfer_shared_libraries_aix): Likewise.
13477         * gdbarch.c, gdbarch.h: Regenerated.
13478         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13479         ULONGEST.  Change 'len_avail' type to ULONGEST.
13480         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13481         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13482         declaration.
13483         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13484
13485 2014-02-07  Yao Qi  <yao@codesourcery.com>
13486
13487         * corefile.c (memory_error): Get 'exception' from ERR and pass
13488         'exception' to throw_error.
13489
13490 2014-02-06  Doug Evans  <xdje42@gmail.com>
13491
13492         * configure.ac (libpython checking): Remove all but python.o from
13493         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
13494         * configure: Regenerate.
13495
13496         * Makefile.in (SFILES): Add extension.c.
13497         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13498         (COMMON_OBS): Add extension.o.
13499         * extension.h: New file.
13500         * extension-priv.h: New file.
13501         * extension.c: New file.
13502
13503         * python/python-internal.h: #include "extension.h".
13504         (gdbpy_auto_load_enabled): Declare.
13505         (gdbpy_apply_val_pretty_printer): Declare.
13506         (gdbpy_apply_frame_filter): Declare.
13507         (gdbpy_preserve_values): Declare.
13508         (gdbpy_breakpoint_cond_says_stop): Declare.
13509         (gdbpy_breakpoint_has_cond): Declare.
13510         (void source_python_script_for_objfile): Delete.
13511         * python/python.c: #include "extension-priv.h".
13512         Delete inclusion of "observer.h".
13513         (extension_language_python): Moved here and renamed from
13514         script_language_python in py-auto-load.c.
13515         Redefined to be of type extension_language_defn.
13516         (python_extension_script_ops): New global.
13517         (python_extension_ops): New global.
13518         (struct python_env): New member previous_active.
13519         (restore_python_env): Call restore_active_ext_lang.
13520         (ensure_python_env): Call set_active_ext_lang.
13521         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13522         New arg extlang.
13523         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13524         New arg extlang.
13525         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13526         New arg extlang.
13527         (gdbpy_eval_from_control_command): Renamed from
13528         eval_python_from_control_command, made static.  New arg extlang.
13529         (gdbpy_source_script) Renamed from source_python_script, made static.
13530         New arg extlang.
13531         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
13532         result to int.  New arg extlang.
13533         (gdbpy_source_objfile_script): Renamed from
13534         source_python_script_for_objfile, made static.  New arg extlang.
13535         (gdbpy_start_type_printers): Renamed from start_type_printers, made
13536         static.  New args extlang, extlang_printers.  Change result type to
13537         "void".
13538         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13539         static.  New arg extlang.  Rename arg printers to extlang_printers
13540         and change type to ext_lang_type_printers *.
13541         (gdbpy_free_type_printers): Renamed from free_type_printers, made
13542         static.  Replace argument arg with extlang, extlang_printers.
13543         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13544         (!HAVE_PYTHON, source_python_script): Delete.
13545         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13546         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13547         (!HAVE_PYTHON, start_type_printers): Delete.
13548         (!HAVE_PYTHON, apply_type_printers): Delete.
13549         (!HAVE_PYTHON, free_type_printers): Delete.
13550         (_initialize_python): Delete call to observer_attach_before_prompt.
13551         (finalize_python): Set/restore active extension language.
13552         (gdbpy_finish_initialization) Renamed from
13553         finish_python_initialization, made static.  New arg extlang.
13554         (gdbpy_initialized): New function.
13555         * python/python.h: #include "extension.h".  Delete #include
13556         "value.h", "mi/mi-cmds.h".
13557         (extension_language_python): Declare.
13558         (GDBPY_AUTO_FILE_NAME): Delete.
13559         (enum py_bt_status): Moved to extension.h and renamed to
13560         ext_lang_bt_status.
13561         (enum frame_filter_flags): Moved to extension.h.
13562         (enum py_frame_args): Moved to extension.h and renamed to
13563         ext_lang_frame_args.
13564         (finish_python_initialization): Delete.
13565         (eval_python_from_control_command): Delete.
13566         (source_python_script): Delete.
13567         (apply_val_pretty_printer): Delete.
13568         (apply_frame_filter): Delete.
13569         (preserve_python_values): Delete.
13570         (gdbpy_script_language_defn): Delete.
13571         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13572         (start_type_printers, apply_type_printers, free_type_printers): Delete.
13573
13574         * auto-load.c: #include "extension.h".
13575         (GDB_AUTO_FILE_NAME): Delete.
13576         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
13577         (script_language_gdb): Delete, moved to extension.c and renamed to
13578         extension_language_gdb.
13579         (source_gdb_script_for_objfile): Delete.
13580         (auto_load_pspace_info): New member unsupported_script_warning_printed.
13581         (loaded_script): Change type of language member to
13582         struct extension_language_defn *.
13583         (init_loaded_scripts_info): Initialize
13584         unsupported_script_warning_printed.
13585         (maybe_add_script): Make static.  Change type of language arg to
13586         struct extension_language_defn *.
13587         (clear_section_scripts): Reset unsupported_script_warning_printed.
13588         (auto_load_objfile_script_1): Rewrite to use extension language API.
13589         (auto_load_objfile_script): Make public.  Remove support-compiled-in
13590         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13591         (source_section_scripts): Rewrite to use extension language API.
13592         (load_auto_scripts_for_objfile): Rewrite to use
13593         auto_load_scripts_for_objfile.
13594         (collect_matching_scripts_data): Change type of language member to
13595         struct extension_language_defn *.
13596         (auto_load_info_scripts): Change type of language arg to
13597         struct extension_language_defn *.
13598         (unsupported_script_warning_print): New function.
13599         (script_not_found_warning_print): Make static.
13600         (_initialize_auto_load): Rewrite construction of scripts-directory
13601         help.
13602         * auto-load.h (struct objfile): Add forward decl.
13603         (struct script_language): Delete.
13604         (struct auto_load_pspace_info): Add forward decl.
13605         (struct extension_language_defn): Add forward decl.
13606         (maybe_add_script): Delete.
13607         (auto_load_objfile_script): Declare.
13608         (script_not_found_warning_print): Delete.
13609         (auto_load_info_scripts): Update prototype.
13610         (auto_load_gdb_scripts_enabled): Declare.
13611         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13612         auto_load_python_scripts_enabled and made public.
13613         (script_language_python): Delete, moved to python.c.
13614         (gdbpy_script_language_defn): Delete.
13615         (info_auto_load_python_scripts): Update to use
13616         extension_language_python.
13617
13618         * breakpoint.c (condition_command): Replace call to
13619         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13620         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13621         with call to breakpoint_ext_lang_cond_says_stop.
13622         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13623         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
13624         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13625         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13626         New arg slang.
13627         (local_setattro): Print name of extension language with existing
13628         stop condition.
13629
13630         * valprint.c (val_print, value_print): Update to call
13631         apply_ext_lang_val_pretty_printer.
13632         * cp-valprint.c (cp_print_value): Update call to
13633         apply_ext_lang_val_pretty_printer.
13634         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13635         (gdbpy_apply_val_pretty_printer): Renamed from
13636         apply_val_pretty_printer.  New arg extlang.
13637         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13638
13639         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13640         extension language API.
13641         * cli/cli-script.c (execute_control_command): Update to call
13642         eval_ext_lang_from_control_command.
13643
13644         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13645         enum ext_lang_bt_status values.  Update call to
13646         apply_ext_lang_frame_filter.
13647         (mi_cmd_stack_list_locals): Ditto.
13648         (mi_cmd_stack_list_args): Ditto.
13649         (mi_cmd_stack_list_variables): Ditto.
13650         * mi/mi-main.c: Delete #include "python/python-internal.h".
13651         Add #include "extension.h".
13652         (mi_cmd_list_features): Replace reference to python internal variable
13653         gdb_python_initialized with call to ext_lang_initialized_p.
13654
13655         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13656         Update to use enum ext_lang_frame_args.  Update to call
13657         apply_ext_lang_frame_filter.
13658         * python/py-framefilter.c (extract_sym): Update to use enum
13659         ext_lang_bt_status.
13660         (extract_value, py_print_type, py_print_value): Ditto.
13661         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13662         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13663         (py_print_frame): Ditto.
13664         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13665         New arg extlang.  Update to use enum ext_lang_bt_status.
13666
13667         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13668         finish_python_initialization.  Replace with call to
13669         finish_ext_lang_initialization.
13670
13671         * typeprint.c (do_free_global_table): Update to call
13672         free_ext_lang_type_printers.
13673         (create_global_typedef_table): Update to call
13674         start_ext_lang_type_printers.
13675         (find_global_typedef): Update to call apply_ext_lang_type_printers.
13676         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13677         (type_print_options): Change type of global_printers from "void *"
13678         to "struct ext_lang_type_printers *".
13679
13680         * value.c (preserve_values): Update to call preserve_ext_lang_values.
13681         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13682         (gdbpy_preserve_values): Renamed from preserve_python_values.
13683         New arg extlang.
13684         (!HAVE_PYTHON, preserve_python_values): Delete.
13685
13686         * utils.c (quit_flag): Delete, moved to extension.c.
13687         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13688         extension.c.
13689
13690         * eval.c: Delete #include "python/python.h".
13691         * main.c: Delete #include "python/python.h".
13692
13693         * defs.h: Update comment.
13694
13695 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
13696
13697         GDB 7.7 released.
13698
13699 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
13700
13701         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13702         defined.
13703
13704 2014-02-05  Yao Qi  <yao@codesourcery.com>
13705
13706         * remote.c (remote_pass_signals): Remove local 'buf' and use
13707         rs->buf.
13708         (remote_program_signals): Likewise.
13709
13710 2014-02-05  Yao Qi  <yao@codesourcery.com>
13711
13712         * ctf.c: Include "inferior.h" and "gdbthread.h".
13713         (CTF_PID): A new macro.
13714         (ctf_open): Call inferior_appeared and add_thread_silent.
13715         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13716         (ctf_thread_alive): New function.
13717         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13718
13719 2014-02-05  Yao Qi  <yao@codesourcery.com>
13720
13721         Revert this patch:
13722
13723         2013-05-24  Yao Qi  <yao@codesourcery.com>
13724
13725         * tracepoint.c (TFILE_PID): Remove.
13726         (tfile_open): Don't add thread and inferior.
13727         (tfile_close): Don't set 'inferior_ptid'.  Don't call
13728         exit_inferior_silent.
13729         (tfile_thread_alive): Remove.
13730         (init_tfile_ops): Don't set field 'to_thread_alive' of
13731         tfile_ops.
13732
13733 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
13734
13735         * remote.c (remote_start_remote): Call remote_check_symbols even
13736         if only symbol-file (not file) has been given.
13737
13738 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13739
13740         * gdbarch.sh (skip_entrypoint): New callback.
13741         * gdbarch.c, gdbarch.h: Regenerate.
13742         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13743         * infrun.c (fill_in_stop_func): Likewise.
13744         * ppc-linux-tdep.c: Include "elf/ppc64.h".
13745         (ppc_elfv2_elf_make_msymbol_special): New function.
13746         (ppc_elfv2_skip_entrypoint): Likewise.
13747         (ppc_linux_init_abi): Install them for ELFv2.
13748
13749 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13750
13751         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13752         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13753         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13754         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
13755         structures returned in GPRs.
13756
13757 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13758
13759         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13760         offset to the stack parameter list for the ELFv2 ABI.
13761
13762 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13763
13764         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13765         set_gdbarch_convert_from_func_ptr_addr and
13766         set_gdbarch_elf_make_msymbol_special for ELFv1.
13767         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13768         function descriptors on ELFv1.
13769         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
13770         set up r12 at function entry.
13771
13772 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13773
13774         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13775         (struct gdbarch_tdep): New member elf_abi.
13776
13777         * rs6000-tdep.c: Include "elf/ppc64.h".
13778         (rs6000_gdbarch_init): Detect ELF ABI version.
13779
13780 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13781
13782         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13783         within a register pair holding a DFP 128-bit value on little-endian.
13784         (ppc64_sysv_abi_return_value_base): Likewise.
13785         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13786         (dfp_pseudo_register_write): Likewise.
13787
13788 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13789
13790         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
13791         offset on little-endian when passing _Decimal32.
13792         (ppc64_sysv_abi_return_value_base): Likewise for return values.
13793
13794 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13795
13796         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
13797         of the overlapped FP register within the VSX register on little-
13798         endian platforms.
13799         (efpr_pseudo_register_write): Likewise.
13800
13801 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13802
13803         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
13804         offset on little-endian when passing small structures.
13805
13806 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13807
13808         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
13809         (struct ppc64_sysv_argpos): New data structure.
13810         (ppc64_sysv_abi_push_float): Remove.
13811         (ppc64_sysv_abi_push_val): New function.
13812         (ppc64_sysv_abi_push_integer): Likewise.
13813         (ppc64_sysv_abi_push_freg): Likewise.
13814         (ppc64_sysv_abi_push_vreg): Likewise.
13815         (ppc64_sysv_abi_push_param): Likewise.
13816         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
13817         (ppc64_sysv_abi_return_value_base): New function.
13818         (ppc64_sysv_abi_return_value): Refactor to use it.
13819
13820 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13821
13822         * NEWS: Document new target powerpc64le-*-linux*.
13823
13824 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
13825
13826         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
13827         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
13828         core dumps.
13829         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
13830         register set used in ELF core dumps.  Add floating-point register set.
13831
13832 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
13833
13834         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
13835         dwarf2_to_gdb[] table using symbolic constants.  Adjust
13836         penultimate entry from number representing the PC register
13837         to symbolic constant representing the MDR register.  Add
13838         constant for the PC register to the end of the table.
13839
13840 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
13841
13842         * bsd-kvm.c: Include <sys/param.h>
13843
13844 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
13845
13846         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
13847
13848 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
13849
13850         * ada-lang.h (clear_ada_sym_cache): Delete.
13851
13852 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
13853
13854         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
13855
13856 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
13857
13858         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
13859           the sigreturn register save area only if the syscall is
13860           sigreturn.
13861
13862 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
13863
13864         * valops.c (value_slice): Minor reformatting.
13865
13866 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
13867
13868         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
13869
13870 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
13871
13872         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
13873         New static globals.
13874         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
13875         (ada_ignore_descriptive_types_p): New static global.
13876         (find_parallel_type_by_descriptive_type): Return immediately
13877         if ada_ignore_descriptive_types_p is set.
13878         (_initialize_ada_language): Register new commands "maintenance
13879         set ada", "maintenance show ada", "maintenance set ada
13880         ignore-descriptive-types" and "maintenance show ada
13881         ignore-descriptive-types".
13882         * NEWS: Add entry for new "maint ada set/show
13883         ignore-descriptive-types" commands.
13884
13885 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
13886
13887         * record-btrace.c (record_btrace_close): Call btrace_teardown
13888         for all threads.
13889
13890 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13891
13892         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
13893         "ui-out.h".
13894
13895 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13896
13897         * ada-typeprint (type_is_full_subrange_of_target_type):
13898         New function.
13899         (print_range): Add parameter bounds_prefered_p.  If not set,
13900         try printing range types using the name of their base type.
13901         (print_range_type): Add parameter bounds_prefered_p.
13902         Use it in call to print_range.
13903         (print_array_type, ada_print_type): Update calls to print_range
13904         and print_range_type.
13905
13906 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13907
13908         * ada-typeprint.c (print_array_type, print_choices, print_range)
13909         (print_range_bound, print_dynamic_range_bound, print_range_type):
13910         Remove declaration.
13911
13912 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13913
13914         * ada-typeprint.c (print_range): Add missing empty line
13915         after local declaration.
13916
13917 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13918
13919         * ada-valprint.c (print_optional_low_bound): Get index_type's
13920         target type for as long as it is a TYPE_CODE_RANGE.
13921
13922 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
13923
13924         * procfs.c (procfs_make_note_section): Remove assertion and
13925         associated comment.
13926
13927 2014-01-24  Yao Qi  <yao@codesourcery.com>
13928
13929         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
13930         * corelow.c (get_core_siginfo): Likewise.
13931
13932 2014-01-24  Yao Qi  <yao@codesourcery.com>
13933
13934         * remote.c (remote_write_bytes_aux): Change type of 'len' to
13935         ULONGEST.  Don't check 'len' is negative.
13936         (remote_write_bytes):  Change type of 'len' to ULONGEST.
13937
13938 2014-01-23  Tom Tromey  <tromey@redhat.com>
13939
13940         PR python/16485:
13941         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
13942         Handle exception from frame.block.
13943         (FrameVars.fetch_frame_locals): Likewise.
13944
13945 2014-01-23  Tom Tromey  <tromey@redhat.com>
13946
13947         PR python/16487:
13948         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
13949         on a NULL pointer.  Move "goto error" to correct place.
13950
13951 2014-01-23  Tom Tromey  <tromey@redhat.com>
13952
13953         PR python/16491:
13954         * python/py-framefilter.c (apply_frame_filter): Call
13955         ensure_python_env after computing gdbarch.
13956
13957 2014-01-23  Yao Qi  <yao@codesourcery.com>
13958
13959         * target.c (raw_memory_xfer_partial): Change argument type
13960         from void * to gdb_byte *.
13961         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
13962
13963 2014-01-22  Doug Evans  <dje@google.com>
13964
13965         New gdbserver option --debug-format=timestamp.
13966         * NEWS: Mention it.
13967
13968 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
13969
13970         * syscalls/s390x-linux.xml: New file.
13971         * syscalls/s390-linux.xml: New file.
13972         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
13973         (XML_SYSCALL_FILENAME_S390X): Likewise.
13974         (op_svc): New enum value for SVC opcode.
13975         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
13976         (s390_linux_get_syscall_number): New function.
13977         (s390_gdbarch_init): Register '*get_syscall_number' and the
13978         syscall xml file name.
13979         * data-directory/Makefile.in (SYSCALLS_FILES): Add
13980         "s390-linux.xml" and "s390x-linux.xml".
13981         * NEWS: Announce new feature.
13982
13983 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
13984
13985         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
13986
13987 2014-01-22  Pedro Alves  <palves@redhat.com>
13988
13989         * xtensa-config.c: Include defs.h.
13990
13991 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
13992
13993         * common/common-utils.h: Add "ARI:" comment beside __func__
13994         reference.
13995
13996 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
13997
13998         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
13999         documentation a bit.
14000
14001 2014-01-21  Roland McGrath  <mcgrathr@google.com>
14002
14003         * configure.ac: Call AM_PROG_INSTALL_STRIP.
14004         * configure: Regenerate.
14005         * aclocal.m4: Regenerate.
14006         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14007         New substituted variables.
14008         (install-strip): New target.
14009         (INSTALL_SCRIPT): New substituted variable.
14010         (FLAGS_TO_PASS): Add it.
14011         (install-only): Use $(INSTALL_SCRIPT) rather than
14012         $(INSTALL_PROGRAM) for gcore.
14013
14014 2014-01-20  Tom Tromey  <tromey@redhat.com>
14015
14016         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14017         together.
14018
14019 2014-01-20  Tom Tromey  <tromey@redhat.com>
14020
14021         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14022         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14023         (deprecated_cmd_warning, complete_on_cmdlist): Update.
14024         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14025         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14026         (struct cmd_list_element) <flags>: Remove.
14027         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14028         doc_allocated>: New fields.
14029         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14030         bitfields.
14031         * maint.c (maintenance_do_deprecate): Update.
14032         * top.c (execute_command): Update.
14033
14034 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
14035
14036         * xtensa-linux-nat.c: Include asm/ptrace.h.
14037
14038 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14039
14040         * Makefile.in (SFILES): Add d-support.c.
14041         (COMMON_OBS): Add d-support.o.
14042         * d-lang.h (d_parse_symbol): Add comment, now defined in
14043         d-support.c.
14044         * d-lang.c (parse_call_convention)
14045         (parse_attributes, parse_function_types)
14046         (parse_function_args, parse_type, parse_identifier)
14047         (call_convention_p, d_parse_symbol): Move functions to ...
14048         * d-support.c: ... New file.
14049
14050 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14051
14052         * d-lang.h (d_parse_symbol): Add declaration.
14053         * d-lang.c (extract_identifiers)
14054         (extract_type_info): Remove functions.
14055         (parse_call_convention, parse_attributes)
14056         (parse_function_types, parse_function_args)
14057         (parse_type, parse_identifier, call_convention_p)
14058         (d_parse_symbol): New functions.
14059         (d_demangle): Use d_parse_symbol to demangle D symbols.
14060
14061 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14062
14063         * d-lang.h (struct builtin_d_type): New data type.
14064         (builtin_d_type): Add declaration.
14065         * d-lang.c (d_language_arch_info, build_d_types)
14066         (builtin_d_type): New functions.
14067         (enum d_primitive_types): New data type.
14068         (d_language_defn): Change c_language_arch_info to
14069         d_language_arch_info.
14070         (d_type_data): New static variable.
14071         (_initialize_d_language): Initialize d_type_data.
14072
14073 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14074
14075         * d-lang.h (d_main_name): Add declaration.
14076         * d-lang.c (d_main_name): New function.
14077         * symtab.c (find_main_name): Add call to d_main_name.
14078
14079 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14080
14081         * d-lang.c (d_language_defn): Change macro_expansion_c to
14082         macro_expansion_no.
14083
14084 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14085
14086         * MAINTAINERS: Add myself as a write-after-approval maintainer.
14087
14088 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
14089
14090         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14091         gdb_exception" declaration.
14092         * remote.c (getpkt_or_notif_sane): Likewise.
14093
14094 2014-01-17  Doug Evans  <dje@google.com>
14095
14096         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14097         function, contents of dirnames_to_char_ptr_vec_append moved here.
14098         (delim_string_to_char_ptr_vec): New function.
14099         (dirnames_to_char_ptr_vec_append): Rewrite.
14100         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14101
14102 2014-01-17  Doug Evans  <dje@google.com>
14103
14104         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14105         and moved here ...
14106         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14107         #include "common-utils.h".
14108         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14109         * common/vec.h (VEC_ASSERT_PASS): Update.
14110         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14111         (MACH_CHECK_ERROR): Update.
14112
14113 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
14114
14115         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14116         comments.
14117         * gdbarch.h: Regenerate.
14118
14119 2014-01-16  Tom Tromey  <tromey@redhat.com>
14120
14121         * value.c (struct value) <regnum>: Move earlier.
14122
14123 2014-01-16  Tom Tromey  <tromey@redhat.com>
14124
14125         * remote.c (extended_remote_create_inferior): Rename from
14126         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
14127         old implementation.
14128
14129 2014-01-16  Pedro Alves  <palves@redhat.com>
14130
14131         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14132         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14133         the backchain.
14134
14135 2014-01-16  Doug Evans  <dje@google.com>
14136
14137         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14138
14139 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14140
14141         * btrace.h (btrace_thread_flag): New.
14142         (struct btrace_thread_info) <flags>: New.
14143         * record-btrace.c (record_btrace_resume_thread)
14144         (record_btrace_find_thread_to_move, btrace_step_no_history)
14145         (btrace_step_stopped, record_btrace_start_replaying)
14146         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14147         (record_btrace_find_resume_thread): New.
14148         (record_btrace_resume, record_btrace_wait): Extend.
14149         (record_btrace_can_execute_reverse): New.
14150         (record_btrace_open): Fail in non-stop mode.
14151         (record_btrace_set_replay): Split into this, ...
14152         (record_btrace_stop_replaying): ... this, ...
14153         (record_btrace_clear_histories): ... and this.
14154         (init_record_btrace_ops): Init to_can_execute_reverse.
14155         * NEWS: Announce it.
14156
14157 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14158
14159         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14160         (forward_target_decr_pc_after_break)
14161         (target_decr_pc_after_break): New.
14162         * target.c (forward_target_decr_pc_after_break)
14163         (target_decr_pc_after_break): New.
14164         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14165         instead of gdbarch_decr_pc_after_break.
14166         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14167         instead of gdbarch_decr_pc_after_break.
14168         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14169         instead of gdbarch_decr_pc_after_break.
14170         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14171         instead of gdbarch_decr_pc_after_break.
14172         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14173         instead of gdbarch_decr_pc_after_break.
14174         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14175         instead of gdbarch_decr_pc_after_break.
14176
14177 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14178
14179         * btrace.c: Include regcache.h.
14180         (btrace_add_pc): New.
14181         (btrace_enable): Call btrace_add_pc.
14182         (btrace_is_empty): New.
14183         * btrace.h (btrace_is_empty): New.
14184         * record-btrace.c (require_btrace, record_btrace_info): Call
14185         btrace_is_empty.
14186
14187 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14188
14189         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14190         Support delta reads.
14191         (linux_disable_btrace): Change return type.
14192         * common/linux-btrace.h (linux_read_btrace): Change parameters
14193         and return type to allow error reporting.  Update users.
14194         (linux_disable_btrace): Change return type.  Update users.
14195         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14196         New.
14197         (btrace_error): New.
14198         (btrace_block) <begin>: Comment on BEGIN == 0.
14199         * btrace.c (btrace_compute_ftrace): Start from the end of
14200         the current trace.
14201         (btrace_stitch_trace, btrace_clear_history): New.
14202         (btrace_fetch): Read delta trace, return if replaying.
14203         (btrace_clear): Move clear history code to btrace_clear_history.
14204         (parse_xml_btrace): Throw an error if parsing failed.
14205         * target.h (struct target_ops) <to_read_btrace>: Change parameters
14206         and return type to allow error reporting.
14207         (target_read_btrace): Change parameters and return type to allow
14208         error reporting.
14209         * target.c (target_read_btrace): Update.
14210         * remote.c (remote_read_btrace): Support delta reads.  Pass
14211         errors on.
14212         * NEWS: Announce it.
14213
14214 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14215
14216         * record.h (record_btrace_frame_unwind)
14217         (record_btrace_tailcall_frame_unwind): New declarations.
14218         * dwarf2-frame: Include record.h
14219         (dwarf2_frame_cfa): Throw an error for btrace frames.
14220         * record-btrace.c: Include hashtab.h.
14221         (btrace_get_bfun_name): New.
14222         (btrace_call_history): Call btrace_get_bfun_name.
14223         (struct btrace_frame_cache): New.
14224         (bfcache): New.
14225         (bfcache_hash, bfcache_eq, bfcache_new): New.
14226         (btrace_get_frame_function): New.
14227         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14228         (record_btrace_frame_this_id): Compute own id.
14229         (record_btrace_frame_prev_register): Provide PC, throw_error
14230         for all other registers.
14231         (record_btrace_frame_sniffer): Detect btrace frames.
14232         (record_btrace_tailcall_frame_sniffer): New.
14233         (record_btrace_frame_dealloc_cache): New.
14234         (record_btrace_frame_unwind): Add new functions.
14235         (record_btrace_tailcall_frame_unwind): New.
14236         (_initialize_record_btrace): Allocate cache.
14237         * btrace.c (btrace_clear): Call reinit_frame_cache.
14238         * NEWS: Announce it.
14239
14240 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14241
14242         * record-btrace.c (record_btrace_set_replay)
14243         (record_btrace_goto_begin, record_btrace_goto_end)
14244         (record_btrace_goto): New.
14245         (init_record_btrace_ops): Initialize them.
14246         * NEWS: Announce it.
14247
14248 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14249
14250         * record-btrace.c (record_btrace_find_new_threads)
14251         (record_btrace_thread_alive): New.
14252         (init_record_btrace_ops): Initialize to_find_new_threads and
14253         to_thread_alive.
14254
14255 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14256
14257         * record-btrace.c (record_btrace_resume): New.
14258         (record_btrace_wait): New.
14259         (init_record_btrace_ops): Initialize to_wait and to_resume.
14260
14261 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14262
14263         * record-btrace.c (record_btrace_xfer_partial)
14264         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14265         (record_btrace_allow_memory_access): New.
14266         (init_record_btrace_ops): Initialize new methods.
14267         * target.c (raw_memory_xfer_partial): Bail out if target reports
14268         that this memory is not available.
14269
14270 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14271
14272         * target.h (target_ops) <to_insert_breakpoint>
14273         <to_remove_breakpoint>: Add target_ops parameter.
14274         (forward_target_insert_breakpoint): New.
14275         (forward_target_remove_breakpoint): New.
14276         (memory_remove_breakpoint, memory_insert_breakpoint):
14277         Add target_ops parameter.
14278         * target.c (target_insert_breakpoint): Split into this and ...
14279         (forward_target_insert_breakpoint): ... this.
14280         (target_remove_breakpoint): Split into this and ...
14281         (forward_target_remove_breakpoint): ... this.
14282         (debug_to_insert_breakpoint): Add target_ops parameter.
14283         Call forward_target_insert_breakpoint.
14284         (debug_to_remove_breakpoint): Add target_ops parameter.
14285         Call forward_target_remove_breakpoint.
14286         (update_current_target): Do not inherit or default to_insert_breakpoint
14287         and to_remove_breakpoint.
14288         * corelow.c (ignore): Add target_ops parameter.
14289         * exec.c (ignore): Add target_ops parameter.
14290         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14291         Add target_ops parameter.
14292         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14293         Add target_ops parameter.
14294         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14295         Add target_ops parameter.
14296         * record-full.c (record_full_beneath_to_insert_breakpoint)
14297         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14298         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14299         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14300         (record_full_core_remove_breakpoint): Add target_ops parameter.
14301         Update users.
14302         (record_full_beneath_to_insert_breakpoint_ops)
14303         (record_full_beneath_to_remove_breakpoint_ops)
14304         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14305         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14306         tmp_to_remove_breakpoint_ops,
14307         record_full_beneath_to_insert_breakpoint_ops, and
14308         record_full_beneath_to_remove_breakpoint_ops.
14309         * remote-m32r-sdi.c (m32r_insert_breakpoint)
14310         (m32r_remove_breakpoint): Add target_ops parameter.
14311         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14312         Add target_ops parameter.
14313         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14314         Add target_ops parameter.
14315
14316 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
14317             Markus Metzger  <markus.t.metzger@intel.com>
14318
14319         * record-btrace.c: Include frame-unwind.h.
14320         (record_btrace_frame_unwind_stop_reason)
14321         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14322         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14323         New.
14324         (init_record_btrace_ops): Install it.
14325
14326 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
14327
14328         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14329         get_prev_frame_1.
14330
14331 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
14332
14333         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14334         earlier.
14335
14336 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
14337
14338         * frame-unwind.c: Include target.h.
14339         (frame_unwind_try_unwinder): New function with code from ...
14340         (frame_unwind_find_by_frame): ... here.  New variable
14341         unwinder_from_target, call also target_get_unwinder)
14342         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14343         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14344         * target.h (struct target_ops): New fields to_get_unwinder and
14345         to_get_tailcall_unwinder.
14346         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14347
14348 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14349
14350         * record-btrace.c (record_btrace_fetch_registers)
14351         (record_btrace_store_registers)
14352         (record_btrace_to_prepare_to_store): New.
14353         (init_record_btrace_ops): Add the above.
14354
14355 2014-01-16  Tom Tromey  <tromey@redhat.com>
14356
14357         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14358         * target.h (struct target_ops) <to_prepare_to_store>: Add
14359         argument.
14360         (target_prepare_to_store): Add argument.
14361         * target.c (debug_to_prepare_to_store): Add argument.
14362         (update_current_target): Update.
14363         * remote.c (remote_prepare_to_store): Add 'self' argument.
14364         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14365         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14366         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14367         * record-full.c (record_full_core_prepare_to_store): Add 'self'
14368         argument.
14369         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14370         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14371         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14372         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14373         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14374
14375 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14376
14377         * btrace.h (replay) <replay>: New.
14378         (btrace_is_replaying): New.
14379         * btrace.c (btrace_clear): Free replay iterator.
14380         (btrace_is_replaying): New.
14381         * record-btrace.c (record_btrace_is_replaying): New.
14382         (record_btrace_info): Print insn number if replaying.
14383         (record_btrace_insn_history): Start at replay position.
14384         (record_btrace_call_history): Start at replay position.
14385         (init_record_btrace_ops): Init to_record_is_replaying.
14386
14387 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14388
14389         * record-btrace.c (record_btrace_insn_history_range): Include
14390         end.
14391         (record_btrace_insn_history_from): Adjust range.
14392         (record_btrace_call_history_range): Include
14393         end.
14394         (record_btrace_call_history_from): Adjust range.
14395         * NEWS: Announce changes.
14396
14397 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14398
14399         * record.h (enum record_print_flag)
14400         <record_print_indent_calls>: New.
14401         * record.c (get_call_history_modifiers): Recognize /c modifier.
14402         (_initialize_record): Document /c modifier.
14403         * record-btrace.c (btrace_call_history): Add btinfo parameter.
14404         Reorder fields.  Optionally indent the function name.  Update
14405         all users.
14406         * NEWS: Announce changes.
14407
14408 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14409
14410         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14411
14412 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14413
14414         * btrace.c (ftrace_new_function): Start counting at one.
14415         * record-btrace.c (record_btrace_info): Adjust number of calls
14416         and insns.
14417         * NEWS: Announce it.
14418
14419 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14420
14421         * record-btrace.c (btrace_call_history_insn_range): Print
14422         insn range as [begin, end].
14423
14424 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14425
14426         * btrace.h (struct btrace_func_link): New.
14427         (enum btrace_function_flag): New.
14428         (struct btrace_inst): Rename to ...
14429         (struct btrace_insn): ...this. Update all users.
14430         (struct btrace_func) <ibegin, iend>: Remove.
14431         (struct btrace_func_link): New.
14432         (struct btrace_func): Rename to ...
14433         (struct btrace_function): ...this. Update all users.
14434         (struct btrace_function) <segment, flow, up, insn, insn_offset)
14435         (number, level, flags>: New.
14436         (struct btrace_insn_iterator): Rename to ...
14437         (struct btrace_insn_history): ...this.
14438         Update all users.
14439         (struct btrace_insn_iterator, btrace_call_iterator): New.
14440         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14441         (struct btrace_target_info) <begin, end, level>
14442         <insn_history, call_history>: New.
14443         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14444         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14445         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14446         (btrace_call_number, btrace_call_begin, btrace_call_end)
14447         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14448         (btrace_find_function_by_number, btrace_set_insn_history)
14449         (btrace_set_call_history): New.
14450         * btrace.c (btrace_init_insn_iterator)
14451         (btrace_init_func_iterator, compute_itrace): Remove.
14452         (ftrace_print_function_name, ftrace_print_filename)
14453         (ftrace_skip_file): Change
14454         parameter to const.
14455         (ftrace_init_func): Remove.
14456         (ftrace_debug): Use new btrace_function fields.
14457         (ftrace_function_switched): Also consider gaining and
14458         losing symbol information).
14459         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14460         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14461         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14462         New.
14463         (ftrace_new_function): Move. Remove debug print.
14464         (ftrace_update_lines, ftrace_update_insns): New.
14465         (ftrace_update_function): Check for call, ret, and jump.
14466         (compute_ftrace): Renamed to ...
14467         (btrace_compute_ftrace): ...this. Rewritten to compute call
14468         stack.
14469         (btrace_fetch, btrace_clear): Updated.
14470         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14471         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14472         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14473         (btrace_call_number, btrace_call_begin, btrace_call_end)
14474         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14475         (btrace_find_function_by_number, btrace_set_insn_history)
14476         (btrace_set_call_history): New.
14477         * record-btrace.c (require_btrace): Use new btrace thread
14478         info fields.
14479         (record_btrace_info, btrace_insn_history)
14480         (record_btrace_insn_history, record_btrace_insn_history_range):
14481         Use new btrace thread info fields and new iterator.
14482         (btrace_func_history_src_line): Rename to ...
14483         (btrace_call_history_src_line): ...this. Use new btrace
14484         thread info fields.
14485         (btrace_func_history): Rename to ...
14486         (btrace_call_history): ...this. Use new btrace thread info
14487         fields and new iterator.
14488         (record_btrace_call_history, record_btrace_call_history_range):
14489         Use new btrace thread info fields and new iterator.
14490
14491 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14492
14493         * frame.h (frame_id_build_unavailable_stack_special): New.
14494         * frame.c (frame_id_build_unavailable_stack_special): New.
14495
14496 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14497
14498         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14499         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14500         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14501         to gdbarch.
14502         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14503         (i386_insn_is_jump, i386_jmp_p): New.
14504         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14505         insn_is_jump to gdbarch.
14506         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14507         * gdbarch.h: Regenerated.
14508         * gdbarch.c: Regenerated.
14509         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14510         (default_insn_is_jump): New.
14511         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14512         (default_insn_is_jump): New.
14513
14514 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14515
14516         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14517         Change to ...
14518         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
14519         (btrace_read_type) <btrace_read_new>: Change to ...
14520         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
14521
14522 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14523
14524         * common/linux-btrace.c (linux_read_btrace): Free trace from
14525         previous iteration.
14526
14527 2014-01-15  Doug Evans  <dje@google.com>
14528
14529         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14530         uint32_t.
14531
14532 2014-01-15  Tom Tromey  <tromey@redhat.com>
14533
14534         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14535         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14536         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14537         (set_objfile_main_name): New function.
14538         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14539         language_of_main>: New fields.
14540         (set_objfile_main_name): Declare.
14541         * symtab.c (find_main_name): Loop over objfiles to find the main
14542         name and language.
14543         (set_main_name): Now static.
14544         (get_main_info): Add comment.
14545         * symtab.h (set_main_name): Don't declare.
14546
14547 2014-01-15  Tom Tromey  <tromey@redhat.com>
14548
14549         * symtab.c (main_progspace_key): New global.
14550         (struct main_info): New.
14551         (name_of_main, language_of_main): Remove.
14552         (get_main_info, main_info_cleanup): New function.
14553         (set_main_name, main_name, main_language): Use get_main_info.
14554         (_initialize_symtab): Initialize main_progspace_key.
14555
14556 2014-01-15  Tom Tromey  <tromey@redhat.com>
14557
14558         * dbxread.c (process_one_symbol): Update.
14559         * dwarf2read.c (read_partial_die): Update.
14560         * symfile.c (set_initial_language): Call main_language.
14561         * symtab.c (language_of_main): Now static.
14562         (set_main_name): Add 'lang' parameter.
14563         (find_main_name): Update.
14564         (main_language): New function.
14565         (symtab_observer_executable_changed): Update.
14566         * symtab.h (set_main_name): Update.
14567         (language_of_main): Remove.
14568         (main_language): Declare.
14569
14570 2014-01-15  Tom Tromey  <tromey@redhat.com>
14571
14572         * symfile.c (init_entry_point_info): Use new "initialized" field.
14573         Update.
14574         * objfiles.h (struct entry_point) <initialized>: New field.
14575         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14576         (struct objfile) <ei>: ...here.  Remove.
14577         * objfiles.c (entry_point_address_query): Update.
14578
14579 2014-01-15  Tom Tromey  <tromey@redhat.com>
14580
14581         * objfiles.c (entry_point_address_query): Relocate entry point
14582         address.
14583         (objfile_relocate1): Do not relocate entry point address.
14584         * objfiles.h (struct entry_info) <entry_point>: Update comment.
14585         <the_bfd_section_index>: New field.
14586         * symfile.c (init_entry_point_info): Find the entry point's
14587         section.
14588
14589 2014-01-15  Tom Tromey  <tromey@redhat.com>
14590
14591         * solib-frv.c (enable_break): Use entry_point_address_query.
14592
14593 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14594
14595         * NEWS: Add note on improved process record-replay on
14596         arm*-linux* targets.
14597
14598 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14599
14600         * arm-tdep.c (enum arm_record_result): New enum.
14601         (arm_record_unsupported_insn): New function.
14602         (arm_record_coproc_data_proc): Removed.
14603         (thumb2_record_ld_st_multiple): New function.
14604         (thumb2_record_ld_st_dual_ex_tbb): New function.
14605         (thumb2_record_data_proc_sreg_mimm): New function.
14606         (thumb2_record_ps_dest_generic): New function.
14607         (thumb2_record_branch_misc_cntrl): New function.
14608         (thumb2_record_str_single_data): New function.
14609         (thumb2_record_ld_mem_hints): New function.
14610         (thumb2_record_ld_word): New function.
14611         (thumb2_record_lmul_lmla_div): New function.
14612         (thumb2_record_decode_insn_handler): New function.
14613         (decode_insn): Add thumb32 instruction handlers.
14614
14615 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14616
14617         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14618         (struct arm_linux_record_tdep): Declare.
14619         (arm_canonicalize_syscall): New function.
14620         (arm_all_but_pc_registers_record): New function.
14621         (arm_linux_syscall_record): New function.
14622         (arm_linux_init_abi): Add syscall recording constructs.
14623         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14624         decoding.  (arm_record_coproc_data_proc): Update arm syscall
14625         decoding.
14626         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14627         <arm_syscall_record>: New field.
14628         * configure.tgt (arm*-*-linux*): Add linux-record.o to
14629         gdb_target_obs.
14630
14631 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14632
14633         * arm-tdep.c (thumb_record_misc): Update to use sp as base
14634         register for push instruction recording.
14635
14636 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14637
14638         * arm-tdep.c (thumb_record_misc): Update to correct logical
14639         error while recording ldm, ldmia and pop instructions.
14640
14641 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14642
14643         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14644
14645 2014-01-15  Pedro Alves  <palves@redhat.com>
14646
14647         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14648         (go32_resume, go32_fetch_registers, store_register)
14649         (go32_store_registers, go32_prepare_to_store)
14650         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14651         (go32_create_inferior, go32_can_run, go32_terminal_init)
14652         (go32_terminal_inferior, go32_terminal_ours): Delete forward
14653         declarations.
14654
14655 2014-01-15  Tom Tromey  <tromey@redhat.com>
14656
14657         * target.h (async_callback_ftype): New typedef.
14658         (struct target_ops) <to_async>: Use it.
14659
14660 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
14661
14662         * python/py-value.c (get_field_type): Remove unnecessary curly
14663         braces for single-statement if block.
14664
14665 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
14666
14667         * python/py-type.c (convert_field): Add missing empty line
14668         after declarations.
14669
14670 2014-01-14  Doug Evans  <dje@google.com>
14671
14672         * symfile.h (expand_symtabs_matching): Renamed from
14673         expand_partial_symbol_names.  Update prototype.
14674         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14675         * symfile.c (expand_symtabs_matching): Renamed from
14676         expand_partial_symbol_names.  New args file_matcher, kind.
14677         Rename arg fun to symbol_matcher.
14678         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14679         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14680         ada_expand_partial_symbol_name.
14681         (ada_make_symbol_completion_list): Update to call
14682         expand_symtabs_matching.
14683         (ada_add_global_exceptions): Call expand_symtabs_matching.
14684         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14685         call map_symbol_filenames.
14686         * symtab.c (sources_info): Update to call map_symbol_filenames.
14687         (search_symbols): Call expand_symtabs_matching.
14688         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14689         (default_make_symbol_completion_list_break_on): Update to call
14690         expand_symtabs_matching.
14691         (make_source_files_completion_list): Update to call
14692         map_symbol_filenames.
14693
14694 2014-01-14  Doug Evans  <dje@google.com>
14695
14696         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14697         (expand_symtabs_symbol_matcher_ftype): New typedef.
14698         (quick_symbol_functions.expand_symtabs_matching): Update to use.
14699         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14700         * symfile.c (expand_partial_symbol_names): Update to use
14701         expand_symtabs_symbol_matcher_ftype.
14702         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14703         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14704         Arg name_matcher renamed to symbol_matcher.
14705         * psymtab.c (recursively_search_psymtabs): Update to use
14706         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
14707         sym_matcher.
14708         (expand_symtabs_matching_via_partial): Update to use
14709         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14710         Arg name_matcher renamed to symbol_matcher.
14711
14712 2014-01-14  Doug Evans  <dje@google.com>
14713
14714         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14715         (map_partial_symbol_filenames): Ditto.
14716         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14717         (map_partial_symbol_filenames): Ditto.
14718         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14719         (map_partial_symbol_filenames): Ditto.
14720         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14721         (map_partial_symbol_filenames): Ditto.
14722         * symtab.c: Delete #include "psymtab.h".
14723
14724 2014-01-14  Pedro Alves  <palves@redhat.com>
14725             Tom Tromey  <tromey@redhat.com>
14726
14727         * infrun.c (use_displaced_stepping): Use find_record_target
14728         instead of RECORD_IS_USED.
14729         (adjust_pc_after_break): Use record_full_is_used instead of
14730         RECORD_IS_USED.
14731         * record-btrace.c (record_btrace_open): Call record_preopen
14732         instead of checking RECORD_IS_USED.
14733         * record-full.c (record_full_shortname)
14734         (record_full_core_shortname): New globals.
14735         (record_full_is_used): New function.
14736         (find_full_open): Call record_preopen instead of checking
14737         RECORD_IS_USED.
14738         (init_record_full_ops): Set the target's shortname to
14739         record_full_shortname.
14740         (init_record_full_core_ops): Set the target's shortname to
14741         record_full_core_shortname.
14742         * record-full.h (record_full_is_used): Declare.
14743         * record.c (find_record_target): Make extern.
14744         (record_preopen): New function.
14745         * record.h (RECORD_IS_USED): Delete macro.
14746         (find_record_target, record_preopen): Declare functions.
14747
14748 2014-01-14  Yao Qi  <yao@codesourcery.com>
14749
14750         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14751         'len''s type to ULONGEST.
14752         (core_xfer_shared_libraries_aix): Likewise.
14753         * gdbarch.c, gdbarch.h: Regenerated.
14754         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14755         Change type of 'len' to ULONGEST.
14756         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14757         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14758
14759 2014-01-14  Yao Qi  <yao@codesourcery.com>
14760
14761         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14762         type of 'len' to ULONGEST.
14763         (linux_xfer_osdata_processgroups): Likewise.
14764         (linux_xfer_osdata_threads): Likewise.
14765         (linux_xfer_osdata_fds): Likewise.
14766         (linux_xfer_osdata_isockets): Likewise.
14767         (linux_xfer_osdata_shm): Likewise.
14768         (linux_xfer_osdata_sem): Likewise.
14769         (linux_xfer_osdata_msg): Likewise.
14770         (linux_common_xfer_osdata): Likewise.
14771         (struct osdata_type) <getter>: Likewise.
14772         * common/linux-osdata.h (linux_common_xfer_osdata): Update
14773         the declaration.
14774
14775 2014-01-14  Yao Qi  <yao@codesourcery.com>
14776
14777         * target.h (target_xfer_partial_ftype): Update.
14778         (struct target_ops) <to_xfer_partial>: Change 'len' type to
14779         ULONGEST.
14780         * aix-thread.c (aix_thread_xfer_partial): Change type of
14781         argument 'len' to ULONGEST.
14782         * auxv.c (procfs_xfer_auxv): Likewise.
14783         (ld_so_xfer_auxv): Likewise.
14784         (memory_xfer_auxv): Likewise.
14785         * bfd-target.c (target_bfd_xfer_partial): Likewise.
14786         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
14787         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
14788         * corelow.c (core_xfer_partial): Likewise.
14789         * ctf.c (ctf_xfer_partial): Likewise.
14790         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
14791         '%u'.
14792         (darwin_read_dyld_info): Likewise.
14793         (darwin_xfer_partial): Likewise.
14794         * exec.c (section_table_xfer_memory_partial): Likewise.
14795         (exec_xfer_partial): Likewise.
14796         * exec.h (section_table_xfer_memory_partial): Update
14797         declaration.
14798         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
14799         instead of plongest.
14800         (gnu_xfer_partial): Likewise.
14801         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
14802         (ia64_hpux_xfer_solib_got): Likewise.
14803         (ia64_hpux_xfer_partial): Likewise.
14804         * ia64-linux-nat.c (ia64_linux_xfer_partial):
14805         * inf-ptrace.c (inf_ptrace_xfer_partial):
14806         * inf-ttrace.c (inf_ttrace_xfer_partial):
14807         * linux-nat.c (linux_xfer_siginfo): Likewise.
14808         (linux_nat_xfer_partial): Likewise.
14809         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
14810         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
14811         * monitor.c (monitor_xfer_memory): Likewise.
14812         (monitor_xfer_partial): Likewise.
14813         * procfs.c (procfs_xfer_partial): Likewise.
14814         * record-full.c (record_full_xfer_partial): Likewise.
14815         (record_full_core_xfer_partial): Likewise.
14816         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
14817         instead of plongest.
14818         (gdbsim_xfer_partial): Likewise.
14819         * remote.c (remote_xfer_partial): Likewise.
14820         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14821         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
14822         declaration.
14823         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
14824         (rs6000_xfer_shared_libraries): Likewise.
14825         * sol-thread.c (sol_thread_xfer_partial): Likewise.
14826         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
14827         (sparc_xfer_partial): Likewise.
14828         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
14829         (spu_xfer_partial): Likewise.
14830         * spu-multiarch.c (spu_xfer_partial): Likewise.
14831         * target.c (target_read_live_memory): Likewise.
14832         (memory_xfer_live_readonly_partial): Likewise.
14833         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
14834         (target_xfer_partial, default_xfer_partial): Likewise.
14835         (current_xfer_partial): Likewise.
14836         * tracepoint.c (tfile_xfer_partial): Likewise.
14837         * windows-nat.c (windows_xfer_memory): Likewise.  Call
14838         pulongest instead of plongest.
14839         (windows_xfer_partial): Likewise.
14840         (windows_xfer_shared_libraries): Likewise.
14841
14842 2014-01-14  Yao Qi  <yao@codesourcery.com>
14843
14844         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
14845         target_xfer_partial_ftype.
14846
14847 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
14848
14849         PR python/15464
14850         PR python/16113
14851         * valops.c (value_struct_elt_bitpos): New function
14852         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
14853         object to 'None' if the field name is an empty string ("").
14854         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
14855         attribute to look for a field when 'name' is 'None'.
14856         (get_field_type): New function
14857
14858 2014-01-13  Doug Evans  <dje@google.com>
14859
14860         PR symtab/16426
14861         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
14862         (try_open_dwop_file): Ditto.
14863         * gdb_bfd.c: #include "vec.h".
14864         (bfdp): New typedef.
14865         (struct gdb_bfd_data): New member included_bfds.
14866         (gdb_bfd_unref): Unref all included bfds.
14867         (gdb_bfd_record_inclusion): New function.
14868         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
14869
14870 2014-01-13  Tom Tromey  <tromey@redhat.com>
14871
14872         * gdbcore.h (deprecated_core_resize_section_table): Remove.
14873
14874 2014-01-13  Tom Tromey  <tromey@redhat.com>
14875
14876         * defs.h (use_windows): Remove.
14877         * gdb.c (main): Update.
14878         * main.c (captured_main, gdb_main): Update.
14879         * main.h (struct captured_main_args) <use_windows>: Remove.
14880         * top.c (use_windows): Remove.
14881
14882 2014-01-13  Tom Tromey  <tromey@redhat.com>
14883
14884         * defs.h (deprecated_flush_hook): Remove.
14885
14886 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
14887
14888         PR threads/16216
14889         * linux-thread-db.c (try_thread_db_load): Add parameter
14890         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
14891         (try_thread_db_load_from_pdir_1): Move it there from here.
14892         (try_thread_db_load_from_sdir): Update caller.
14893         (try_thread_db_load_from_dir): Move it there from here.
14894
14895 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
14896
14897         * regformats/regdat.sh: Always rewrite the register file.
14898
14899 2014-01-13  Pedro Alves  <palves@redhat.com>
14900
14901         * Makefile.in (CHECK_HEADERS): New variable.
14902         (check-headers:): New rule.
14903
14904 2014-01-13  Tom Tromey  <tromey@redhat.com>
14905
14906         * cli/cli-setshow.c (do_set_command): Update.
14907         * defs.h (deprecated_set_hook): Remove.
14908         * top.c (deprecated_set_hook): Remove.
14909
14910 2014-01-13  Pedro Alves  <palves@redhat.com>
14911
14912         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
14913         the tracepoint if the PC is a pseudo-register.
14914
14915 2014-01-13  Tom Tromey  <tromey@redhat.com>
14916
14917         * defs.h (XCALLOC): Remove.
14918         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
14919         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
14920         * dwarf2loc.c (allocate_piece_closure): Likewise.
14921         * elfread.c (elf_symfile_segments): Likewise.
14922         (elf_symfile_segments): Likewise.
14923         * gdbtypes.c (copy_type_recursive): Likewise.
14924         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
14925         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
14926         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
14927         XCALLOC.
14928         * mt-tdep.c (mt_gdbarch_init): Likewise.
14929         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
14930         XCALLOC.
14931         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
14932         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
14933         * registry.c (registry_alloc_data): Likewise.
14934         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
14935         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
14936         * serial.c (serial_fdopen_ops): Likewise.
14937         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
14938         XCALLOC.
14939         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
14940         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
14941         not XCALLOC.
14942
14943 2014-01-13  Tom Tromey  <tromey@redhat.com>
14944
14945         * defs.h (XMALLOC): Remove.
14946         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
14947         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
14948         * cli-out.c (struct ui_out *): Likewise.
14949         * cli/cli-dump.c (add_dump_command): Likewise.
14950         (add_dump_command): Likewise.
14951         * complaints.c (get_complaints): Likewise.
14952         (find_complaint): Likewise.
14953         * dwarf2-frame.c (execute_cfa_program): Likewise.
14954         * dwarf2read.c (abbrev_table_read_table): Likewise.
14955         * gdbarch.sh: Likewise.
14956         * gdbarch.c: Rebuild.
14957         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
14958         * interps.c (interp_new): Likewise.
14959         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
14960         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
14961         * mi/mi-console.c (mi_console_file_new): Likewise.
14962         * mi/mi-interp.c (mi_interpreter_init): Likewise.
14963         * mi/mi-out.c (mi_out_new): Likewise.
14964         * mi/mi-parse.c (mi_parse): Likewise.
14965         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
14966         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
14967         * observer.c (xalloc_observer_list_node): Likewise.
14968         * regcache.c (regcache_xmalloc_1): Likewise.
14969         * reggroups.c (reggroup_new): Likewise.
14970         (_initialize_reggroup): Likewise.
14971         * registry.c (register_data_with_cleanup): Likewise.
14972         * remote.c (remote_notif_stop_alloc_reply): Likewise.
14973         * ser-base.c (serial_ttystate): Likewise.
14974         * ser-mingw.c (make_pipe_state): Likewise.
14975         * ser-pipe.c (pipe_open): Likewise.
14976         * serial.c (serial_open): Likewise.
14977         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
14978         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
14979         (tui_alloc_win_info): Likewise.
14980         (tui_add_content_elements): Likewise.
14981         * tui/tui-file.c (tui_file_new): Likewise.
14982         * tui/tui-out.c (tui_out_new): Likewise.
14983         * ui-file.c (mem_file_new): Likewise.
14984         * ui-out.c (push_level): Likewise.
14985         (make_cleanup_ui_out_end): Likewise.
14986         (append_header_to_list): Likewise.
14987         (ui_out_new): Likewise.
14988         * user-regs.c (user_reg_add_builtin): Likewise.
14989
14990 2014-01-13  Tom Tromey  <tromey@redhat.com>
14991
14992         * defs.h (XZALLOC): Remove.
14993         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
14994         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
14995         (get_ada_tasks_inferior_data): Likewise.
14996         * auto-load.c (get_auto_load_pspace_data): Likewise.
14997         * auxv.c (get_auxv_inferior_data): Likewise.
14998         * bfd-target.c (target_bfd_reopen): Likewise.
14999         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15000         (deprecated_insert_raw_breakpoint): Likewise.
15001         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15002         * corelow.c (core_open): Likewise.
15003         * darwin-nat.c (darwin_check_new_threads): Likewise.
15004         (darwin_attach_pid): Likewise.
15005         * dummy-frame.c (dummy_frame_push): Likewise.
15006         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15007         * dwarf2loc.c (allocate_piece_closure): Likewise.
15008         * elfread.c (elf_symfile_segments): Likewise.
15009         * eval.c (ptrmath_type_p): Likewise.
15010         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15011         * gdbtypes.c (alloc_type_arch): Likewise.
15012         (alloc_type_instance): Likewise.
15013         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15014         * inf-child.c (inf_child_can_use_agent): Likewise.
15015         * inflow.c (get_inflow_inferior_data): Likewise.
15016         * infrun.c (save_infcall_suspend_state): Likewise.
15017         * jit.c (jit_reader_load): Likewise.
15018         (get_jit_objfile_data): Likewise.
15019         (get_jit_program_space_data): Likewise.
15020         (jit_object_open_impl): Likewise.
15021         (jit_symtab_open_impl): Likewise.
15022         (jit_block_open_impl): Likewise.
15023         (jit_frame_sniffer): Likewise.
15024         * linux-fork.c (add_fork): Likewise.
15025         * maint.c (make_command_stats_cleanup): Likewise.
15026         * objfiles.c (get_objfile_pspace_data): Likewise.
15027         * opencl-lang.c (struct lval_closure): Likewise.
15028         * osdata.c (osdata_start_osdata): Likewise.
15029         * progspace.c (new_address_space): Likewise.
15030         (add_program_space): Likewise.
15031         * remote-sim.c (get_sim_inferior_data): Likewise.
15032         * sh-tdep.c (sh_gdbarch_init): Likewise.
15033         * skip.c (Ignore): Likewise.
15034         (skip_delete_command): Likewise.
15035         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15036         (library_list_start_library): Likewise.
15037         (solib_aix_current_sos): Likewise.
15038         * solib-darwin.c (get_darwin_info): Likewise.
15039         (darwin_current_sos): Likewise.
15040         * solib-dsbt.c (get_dsbt_info): Likewise.
15041         * solib-ia64-hpux.c (new_so_list): Likewise.
15042         (ia64_hpux_get_solib_linkage_addr): Likewise.
15043         * solib-spu.c (append_ocl_sos): Likewise.
15044         (spu_current_sos): Likewise.
15045         * solib-svr4.c (get_svr4_info): Likewise.
15046         (svr4_keep_data_in_core): Likewise.
15047         (library_list_start_library): Likewise.
15048         (svr4_default_sos): Likewise.
15049         (svr4_read_so_list): Likewise.
15050         * solib-target.c (library_list_start_library): Likewise.
15051         (solib_target_current_sos): Likewise.
15052         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15053         * symfile-debug.c (install_symfile_debug_logging): Likewise.
15054         * symfile.c (default_symfile_segments): Likewise.
15055         * target-descriptions.c (tdesc_data_init): Likewise.
15056         (tdesc_create_reg): Likewise.
15057         (struct tdesc_type *): Likewise.
15058         (tdesc_create_vector): Likewise.
15059         (tdesc_set_struct_size): Likewise.
15060         (struct tdesc_type *): Likewise.
15061         (tdesc_free_feature): Likewise.
15062         (tdesc_create_feature): Likewise.
15063         * windows-nat.c (windows_add_thread): Likewise.
15064         (windows_make_so): Likewise.
15065         * xml-support.c (gdb_xml_body_text): Likewise.
15066         (gdb_xml_create_parser_and_cleanup): Likewise.
15067         (xml_process_xincludes): Likewise.
15068         * xml-syscall.c (allocate_syscalls_info): Likewise.
15069         (syscall_create_syscall_desc): Likewise.
15070
15071 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
15072
15073         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15074         function, with code from i386_stap_parse_special_token.
15075         (i386_stap_parse_special_token_three_arg_disp): Likewise.
15076         (i386_stap_parse_special_token): Move code to the two functions
15077         above; simplify it.
15078
15079 2014-01-09  Pedro Alves  <palves@redhat.com>
15080             Hui Zhu  <hui@codesourcery.com>
15081
15082         PR gdb/16101
15083         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15084         bp_err_string.  Don't mark the location shlib_disabled if the
15085         error thrown wasn't a generic or memory error.  Catch errors
15086         thrown while inserting breakpoints in overlayed code.  Output
15087         error message of software breakpoints.
15088         * remote.c (remote_insert_breakpoint): If this breakpoint has
15089         target-side commands but this stub doesn't support Z0 packets,
15090         throw NOT_SUPPORTED_ERROR error.
15091         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15092         * target.h (target_insert_breakpoint): Extend comment.
15093         (target_insert_hw_breakpoint): Add comment.
15094
15095 2014-01-08  Pedro Alves  <palves@redhat.com>
15096
15097         * remote.c (remote_add_thread): Add threads silently if starting
15098         up.
15099         (remote_notice_new_inferior): If in all-stop, and starting up,
15100         don't call notice_new_inferior.
15101         (get_current_thread): New function, factored out from ...
15102         (add_current_inferior_and_thread): ... this.  Adjust.
15103         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
15104         found any thread, then select the remote's current thread as GDB's
15105         current thread too.
15106
15107 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
15108
15109         * NEWS: Create a new section for the next release branch.
15110         Rename the section of the current branch, now that it has
15111         been cut.
15112
15113 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
15114
15115         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15116         * version.in: Bump version to 7.7.50.DATE-cvs.
15117
15118 2014-01-08  Yao Qi  <yao@codesourcery.com>
15119
15120         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15121         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
15122         (spu_xfer_partial): Cast 'buf' to 'const char *'.
15123
15124 2014-01-08  Yao Qi  <yao@codesourcery.com>
15125
15126         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15127         return value of bfd_get_filename to symbol_file_add_from_bfd.
15128
15129 2014-01-08  Pierre Muller  <muller@sourceware.org>
15130
15131         Fix PR16201.
15132         * coff-pe-read.c (struct read_pe_section_data): Add index field.
15133         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15134         to prim_record_mininal_symbol_and_info.
15135         (add_pe_forwarded_sym): Use known section number of forwarded symbol
15136         in call to prim_record_minimal_symbol_and_info.
15137         (read_pe_exported_syms): Set index field of section_data.
15138
15139 2014-01-07  Andrew Pinski  <apinski@cavium.com>
15140
15141         * features/aarch64-core.xml (cpsr): Change to be 64bit.
15142         * features/aarch64.c: Regenerate.
15143
15144 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
15145
15146         * target.c (return_null): Define.
15147         (update_current_target): Use it instead of return_zero for
15148         functions that return a pointer.
15149
15150 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
15151
15152         * source.c (add_path): Fix check for duplicated paths in the previously
15153         included paths.
15154
15155 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
15156
15157         * ada-lang.c: Remove duplicated include statements.
15158         * alphabsd-nat.c: Ditto.
15159         * amd64-darwin-tdep.c: Ditto.
15160         * amd64fbsd-nat.c: Ditto.
15161         * auto-load.c: Ditto.
15162         * ax-gdb.c: Ditto.
15163         * breakpoint.c: Ditto.
15164         * dbxread.c: Ditto.
15165         * fork-child.c: Ditto.
15166         * gdb_usleep.c: Ditto.
15167         * i386-darwin-tdep.c: Ditto.
15168         * i386fbsd-nat.c: Ditto.
15169         * infcmd.c: Ditto.
15170         * inferior.c: Ditto.
15171         * jv-lang.c: Ditto.
15172         * linux-nat.c: Ditto.
15173         * linux-tdep.c: Ditto.
15174         * m68kbsd-nat.c: Ditto.
15175         * m68klinux-nat.c: Ditto.
15176         * microblaze-tdep.c: Ditto.
15177         * mips-linux-tdep.c: Ditto.
15178         * mn10300-tdep.c: Ditto.
15179         * nto-tdep.c: Ditto.
15180         * opencl-lang.c: Ditto.
15181         * osdata.c: Ditto.
15182         * printcmd.c: Ditto.
15183         * regcache.c: Ditto.
15184         * remote-m32r-sdi.c: Ditto.
15185         * remote.c: Ditto.
15186         * symfile.c: Ditto.
15187         * symtab.c: Ditto.
15188         * tilegx-linux-nat.c: Ditto.
15189         * tilegx-tdep.c: Ditto.
15190         * tracepoint.c: Ditto.
15191         * valops.c: Ditto.
15192         * vaxbsd-nat.c: Ditto.
15193         * windows-nat.c: Ditto.
15194         * xtensa-tdep.c: Ditto.
15195
15196 2014-01-07  Yao Qi  <yao@codesourcery.com>
15197
15198         * spu-linux-nat.c (_initialize_spu_nat): Declare.
15199
15200 2014-01-07  Yao Qi  <yao@codesourcery.com>
15201             Joel Brobecker  <brobecker@adacore.com>
15202
15203         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15204         (pdc_write_regs): Likewise.
15205         (fetch_regs_kernel_thread): Likewise.
15206         (store_regs_kernel_thread): Likewise.
15207
15208 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15209
15210         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15211         tagged type objects to their actual type.
15212
15213 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15214
15215         * ada-valprint.c (print_field_values): Add "language" parameter.
15216         Update calls to print_field_values and print_variant_part.
15217         Pass new parameter "language" in call to val_print instead
15218         of "current_language".  Replace call to ada_val_print by call
15219         to val_print.
15220         (print_variant_part): Add "language" parameter.
15221         (ada_val_print_struct_union): Update call to print_field_values.
15222
15223 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15224
15225         * ada-valprint.c (ui_memcpy): Delete.
15226         (ada_print_floating): Update documentation.  Add empty line
15227         between between function documentation and implementation.
15228         Delete variable "buffer".  Use ui_file_xstrdup in place of
15229         ui_file_put.  Minor adjustments following this change.
15230
15231 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15232
15233         * ada-valprint.c (ada_val_print_string): New function,
15234         extracted from ada_val_print_array.
15235         (ada_val_print_array): Replace extracted code by call
15236         to ada_val_print_string followed by a return.  Move
15237         "else" branch to the function's top block.
15238
15239 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15240
15241         * ada-valprint.c (ada_val_print_array): Move implementation
15242         down.  Rename parameter "offset" and "val" into "offset_aligned"
15243         and "original_value" respectively.  Add parameter "offset".
15244
15245 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15246
15247         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15248         re-organizing the code. Change the "???" message printed
15249         when target type is a TYPE_CODE_UNDEF into
15250         "<ref to undefined type>".
15251
15252 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15253
15254         * ada-valprint.c (print_record): Delete, implementation inlined...
15255         (ada_val_print_struct_union): ... here.  Remove call to
15256         ada_check_typedef in inlined implementation.
15257
15258 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15259
15260         * ada-valprint.c (ada_val_print_gnat_array): New function,
15261         extracted from ada_val_print_1;
15262         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15263         (ada_val_print_flt, ada_val_print_struct_union)
15264         (ada_val_print_ref): Likewise.
15265         (ada_val_print_1): Delete variables i and elttype.
15266         Replace extracted-out code by call to corresponding
15267         new functions.
15268
15269 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15270
15271         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15272
15273 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15274
15275         * ada-valprint.c (ada_val_print_1): Replace calls to
15276         ada_val_print_1 by calls to val_print.
15277
15278 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15279
15280         * ada-valprint.c (ada_val_print_1): Add parameter "language".
15281         Update calls to self accordingly.  Replace calls to c_val_print
15282         by calls to val_print.
15283
15284 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15285
15286         * ada-valprint.c (print_record): Delete declaration.
15287         (adjust_type_signedness, ada_val_print_1): Likewise.
15288         (ada_val_print): Move function implementation down.
15289         (print_variant_part, print_field_values, print_record):
15290         Move function implementation up.
15291
15292 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15293
15294         * python/py-type.c (typy_get_name): New function.
15295         (type_object_getset): Add entry for attribute "name".
15296         * NEWS: Add entry mentioning this new attribute.
15297
15298 2014-01-07  Yao Qi  <yao@codesourcery.com>
15299
15300         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15301         statement.
15302
15303 2014-01-07  Yao Qi  <yao@codesourcery.com>
15304
15305         * gnu-nat.c (info_port_rights): Add qualifier const to
15306         argument args.
15307
15308 2014-01-07  Yao Qi  <yao@codesourcery.com>
15309
15310         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15311
15312 2014-01-07  Yao Qi  <yao@codesourcery.com>
15313
15314         * gnu-nat.c (make_inf) Update declaration.
15315         (make_inf): Make it static.
15316         (inf_set_traced): Likewise.
15317         (inf_port_to_thread, inf_task_died_status): Likewise.
15318
15319 2014-01-07  Yao Qi  <yao@codesourcery.com>
15320
15321         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15322
15323 2014-01-07  Yao Qi  <yao@codesourcery.com>
15324
15325         * gnu-nat.c (_initialize_gnu_nat): Declare.
15326
15327 2014-01-07  Yao Qi  <yao@codesourcery.com>
15328
15329         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15330         'enum bfd_endian'.
15331         (struct gdbarch_info) <byte_order>: Change type to
15332         'enum bfd_endian'.
15333         <byte_order_for_code>: Likewise.
15334         * gdbarch.c, gdbarch.h: Regenerated.
15335
15336 2014-01-06  Sasha Smundak  <asmundak@google.com>
15337
15338         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15339
15340 2014-01-06  Tom Tromey  <tromey@redhat.com>
15341
15342         * doublest.c (convert_doublest_to_floatformat): Use const, not
15343         CONST.
15344         * somread.c (som_symtab_read): Likewise.
15345
15346 2014-01-07  Hui Zhu  <hui@codesourcery.com>
15347
15348         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15349         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15350         (gdb_bfd_fopen): Ditto.
15351         (gdb_bfd_openr): Ditto.
15352         (gdb_bfd_openw): Ditto.
15353         (gdb_bfd_openr_iovec): Ditto.
15354         (gdb_bfd_fdopenr): Ditto.
15355         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15356         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15357         with xstrdup.
15358         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15359         with xstrdup.
15360         * symfile-mem.c (symbol_file_add_from_memory): Removed
15361         gdb_bfd_stash_filename.
15362
15363 2014-01-03  Doug Evans  <dje@google.com>
15364
15365         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15366         output.
15367
15368 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
15369
15370         Update year range in copyright notice of all files.
15371
15372 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
15373
15374         * top.c (print_gdb_version): Set copyright year to 2014.
15375
15376 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
15377
15378         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15379
15380 For older changes see ChangeLog-2013.
15381 \f
15382 Local Variables:
15383 mode: change-log
15384 left-margin: 8
15385 fill-column: 74
15386 version-control: never
15387 coding: utf-8
15388 End: