Import rename module
[external/binutils.git] / gdb / ChangeLog
1 2014-11-28  Yao Qi  <yao@codesourcery.com>
2
3         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
4         rename.
5         * gnulib/aclocal.m4: Re-generated.
6         * gnulib/config.in: Re-generated.
7         * gnulib/configure: Re-generated.
8         * gnulib/import/Makefile.am: Re-generated.
9         * gnulib/import/Makefile.in: Re-generated.
10         * gnulib/import/m4/gnulib-cache.m4: Re-generated.
11         * gnulib/import/m4/gnulib-comp.m4: Re-generated.
12         * import/basename-lgpl.c: New file.
13         * import/dirname-lgpl.c: New file.
14         * import/dirname.h: New file.
15         * import/m4/dirname.m4: New file.
16         * import/m4/malloc.m4: New file.
17         * import/m4/rename.m4: New file.
18         * import/m4/rmdir.m4: New file.
19         * import/m4/stdio_h.m4: New file.
20         * import/malloc.c: New file.
21         * import/rename.c: New file.
22         * import/rmdir.c: New file.
23         * import/same-inode.h: New file.
24         * import/stdio.c: New file.
25         * import/stdio.in.h: New file.
26         * import/stripslash.c: New file.
27
28 2014-11-28  Yao Qi  <yao@codesourcery.com>
29
30         * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
31         and realpath.
32         * config.in: Re-generated.
33         * configure: Re-generated.
34         * utils.c (gdb_realpath): Remove code calling realpath,
35         canonicalize_file_name and pathconf.
36         [!_WIN32]: Call canonicalize_file_name.
37
38 2014-11-28  Yao Qi  <yao@codesourcery.com>
39
40         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
41         canonicalize-lgpl.
42         * aclocal.m4: Re-generated.
43         * config.in: Re-generated.
44         * configure: Re-generated.
45         * import/Makefile.am: Re-generated.
46         * import/Makefile.in: Re-generated.
47         * import/m4/gnulib-cache.m4: Re-generated.
48         * import/m4/gnulib-comp.m4: Re-generated.
49         * import/canonicalize-lgpl.c: New file.
50         * import/extra/snippet/_Noreturn.h: New file.
51         * import/m4/canonicalize.m4: New file.
52         * import/m4/double-slash-root.m4: New file.
53         * import/m4/eealloc.m4: New file.
54         * import/m4/malloca.m4: New file.
55         * import/m4/nocrash.m4: New file.
56         * import/m4/stdlib_h.m4: New file.
57         * import/malloca.c: New file.
58         * import/malloca.h: New file.
59         * import/malloca.valgrind: New file.
60
61 2014-11-28  Yao Qi  <yao@codesourcery.com>
62
63         * configure.ac (AC_CHECK_FUNCS): Remove lstat.
64         * config.in, configure: Regenerate.
65         * symfile.c (find_separate_debug_file_by_debuglink): Remove
66         code checking HAVE_LSTAT is defined.
67
68 2014-11-28  Yao Qi  <yao@codesourcery.com>
69
70         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
71         lstat.
72         * gnulib/aclocal.m4: Re-generated.
73         * gnulib/config.in: Re-generated.
74         * gnulib/configure: Re-generated.
75         * gnulib/import/Makefile.am: Re-generated.
76         * gnulib/import/Makefile.in: Re-generated.
77         * gnulib/import/m4/gnulib-cache.m4: Re-generated.
78         * gnulib/import/m4/gnulib-comp.m4: Re-generated.
79         * gnulib/import/lstat.c: New file.
80         * gnulib/import/m4/lstat.m4: New file.
81
82 2014-11-28  Yao Qi  <yao@codesourcery.com>
83
84         * configure.ac (AC_CHECK_FUNCS): Remove readlink.
85         * config.in, configure: Re-generate.
86         * inf-child.c (inf_child_fileio_readlink): Don't check
87         HAVE_READLINK is defined.
88
89 2014-11-28  Yao Qi  <yao@codesourcery.com>
90
91         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
92         * gnulib/aclocal.m4: Re-generated.
93         * gnulib/config.in: Likewise.
94         * gnulib/configure: Likewise.
95         * gnulib/import/Makefile.am: Likewise.
96         * gnulib/import/Makefile.in: Likewise.
97         * gnulib/import/m4/gnulib-cache.m4: Likewise.
98         * gnulib/import/m4/gnulib-comp.m4: Likewise.
99         * gnulib/import/dosname.h: New file
100         * gnulib/import/m4/largefile.m4: New file.
101         * gnulib/import/m4/readlink.m4: New file.
102         * gnulib/import/m4/stat.m4: New file.
103         * gnulib/import/readlink.c: New file.
104         * gnulib/import/stat.c: New file.
105
106 2014-11-26  Mark Wielaard  <mjw@redhat.com>
107
108         * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
109         DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
110
111 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
112
113         * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
114         that there can be only one stack adjustment in the prologue
115         with tests to detect specific disallowed stack adjustments.
116
117 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
118
119         * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
120         adjustments.
121
122 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
123
124         * nios2-tdep.c (nios2_fetch_insn): Move up in file.  Disassemble
125         the instruction as well as reading it from memory.
126         (nios2_match_add): New.
127         (nios2_match_sub): New.
128         (nios2_match_addi): New.
129         (nios2_match_orhi): New.
130         (nios2_match_stw): New.
131         (nios2_match_ldw): New.
132         (nios2_match_rdctl): New.
133         (enum branch_condition): New.
134         (nios2_match_branch): New.
135         (nios2_match_jmpi): New.
136         (nios2_match_calli): New.
137         (nios2_match_jmpr): New.
138         (nios2_match_callr): New.
139         (nios2_match_break): New.
140         (nios2_match_trap): New.
141         (nios2_in_epilogue_p): Rewrite to use new functions.
142         (nios2_analyze_prologue): Likewise.
143         (nios2_skip_prologue): Delete unused local limit_pc.
144         (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
145         (nios2_get_next_pc): Rewrite to use new functions.
146
147 2014-11-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
148
149         * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
150
151 2014-11-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
152
153         Pushed by Joel Brobecker  <brobecker@adacore.com>
154         * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
155         elements pi_len by the size of the elements before calling
156         vm_deallocate.
157         (inf_validate_task_sc): Likewise, and properly deallocate the
158         noise array.
159
160 2014-11-23  Doug Evans  <xdje42@gmail.com>
161
162         * gdbtypes.c (print_args): Renamed from print_arg_types.  Print arg
163         number and name if present.  All callers updated.
164         (dump_fn_fieldlists): Fix indentation of args.
165
166 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
167
168         * MAINTAINERS (Write After Approval): Add myself.
169
170 2014-11-23  Joel Brobecker  <brobecker@adacore.com>
171
172         * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
173         to a bp_call_dummy breakpoint type.
174
175 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
176
177         * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
178         registering the signal handler.
179
180 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
181
182         * event-top.h (call_stdin_event_handler_again_p): Declare.
183         * event-top.c (call_stdin_event_handler_again_p): Define.
184         (stdin_event_handler): Use it.
185         * tui/tui-io.c (tui_getc): Prepare to call the stdin event
186         handler again if there is pending input following a
187         start sequence.
188
189 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
190
191         Pushed by Joel Brobecker  <brobecker@adacore.com>
192         * linux-fork.c (checkpoint_command): Print index of new
193         checkpoint in response message.
194
195 2014-11-23  Yao Qi  <yao@codesourcery.com>
196
197         * valprint.c (read_string): Move local variables 'found_nul',
198         'chunksize' and 'limit' to inner scope.  Update comments.
199
200 2014-11-22  Doug Evans  <xdje42@gmail.com>
201
202         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
203         function comment.
204         (search_symbols): Fix comments and whitespace.
205
206 2014-11-22  Doug Evans  <xdje42@gmail.com>
207
208         * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
209
210 2014-11-21  Doug Evans  <dje@google.com>
211
212         * psymtab.c (psymtab_search_name): Fix whitespace.
213
214 2014-11-21  Yao Qi  <yao@codesourcery.com>
215
216         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
217         errno.
218         * gnulib/import/Makefile.am: Re-generated.
219         * gnulib/import/Makefile.in: Likewise.
220         * gnulib/import/m4/gnulib-cache.m4: Likewise.
221
222 2014-11-21  Yao Qi  <yao@codesourcery.com>
223
224         * gdb_wchar.h: Include wchar.h and wctype.h.
225         [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
226         include wchar.h and wctype.h.
227         Don't check HAVE_WCHAR_H.
228
229 2014-11-21  Yao Qi  <yao@codesourcery.com>
230
231         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
232         and wctype-h.
233         * gnulib/import/Makefile.am: Re-generated.
234         * gnulib/import/Makefile.in: Likewise.
235         * gnulib/import/m4/gnulib-cache.m4: Likewise.
236
237 2014-11-21  Yao Qi  <yao@codesourcery.com>
238
239         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
240         memchr.
241         * gnulib/import/Makefile.am: Re-generated.
242         * gnulib/import/Makefile.in: Likewise.
243         * gnulib/import/m4/gnulib-cache.m4: Likewise.
244
245 2014-11-21  Yao Qi  <yao@codesourcery.com>
246
247         * common/common-defs.h: Include alloca.h
248         * configure.ac: Don't invoke AC_FUNC_ALLOCA.
249         * configure: Re-generated.
250         * defs.h: Remove code handling alloca.
251         * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
252         or not.
253
254 2014-11-21  Yao Qi  <yao@codesourcery.com>
255
256         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
257         alloca.
258         * gnulib/import/Makefile.am: Re-generated.
259         * gnulib/import/Makefile.in: Likewise..
260         * gnulib/import/m4/gnulib-cache.m4: Likewise.
261
262 2014-11-21  Yao Qi  <yao@codesourcery.com>
263
264         * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
265         alphabetical order.
266
267 2014-11-21  Joel Brobecker  <brobecker@adacore.com>
268
269         * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
270         flag_unsigned if HIGH_BOUND is constant and negative.
271
272 2014-11-20  Sergio Durigan Junior  <sergiodj@redhat.com>
273
274         PR breakpoints/10737
275         * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
276         modifier from "struct gdbarch" when compiling without Expat (XML)
277         support.
278         (get_syscall_by_number): Likewise.
279         (get_syscall_by_name): Likewise.
280         (get_syscall_names): Likewise.
281
282 2014-11-20  Sergio Durigan Junior  <sergiodj@redhat.com>
283
284         PR breakpoints/10737
285         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
286         set_xml_syscall_file_name to provide gdbarch.
287         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
288         * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
289         * breakpoint.c (print_it_catch_syscall): Adjust call to
290         get_syscall_by_number to provide gdbarch.
291         (print_one_catch_syscall): Likewise.
292         (print_mention_catch_syscall): Likewise.
293         (print_recreate_catch_syscall): Likewise.
294         (catch_syscall_split_args): Adjust calls to get_syscall_by_number
295         and get_syscall_by_name to provide gdbarch.
296         (catch_syscall_completer): Adjust call to get_syscall_names to
297         provide gdbarch.
298         * gdbarch.c: Regenerate.
299         * gdbarch.h: Likewise.
300         * gdbarch.sh: Forward declare "struct syscalls_info".
301         (xml_syscall_file): New variable.
302         (syscalls_info): Likewise.
303         * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
304         set_xml_syscall_file_name to provide gdbarch.
305         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
306         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
307         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
308         * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
309         * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
310         * xml-syscall.c: Include gdbarch.h.
311         (set_xml_syscall_file_name): Accept gdbarch parameter.
312         (get_syscall_by_number): Likewise.
313         (get_syscall_by_name): Likewise.
314         (get_syscall_names): Likewise.
315         (my_gdb_datadir): Delete global variable.
316         (struct syscalls_info) <my_gdb_datadir>: New variable.
317         (struct syscalls_info) <sysinfo>: Rename variable to
318         "syscalls_info".
319         (sysinfo): Delete global variable.
320         (have_initialized_sysinfo): Likewise.
321         (xml_syscall_file): Likewise.
322         (sysinfo_free_syscalls_desc): Rename to...
323         (syscalls_info_free_syscalls_desc): ... this.
324         (free_syscalls_info): Rename "sysinfo" to "syscalls_info".  Adjust
325         code to the new layout of "struct syscalls_info".
326         (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
327         "syscalls_info".
328         (syscall_create_syscall_desc): Likewise.
329         (syscall_start_syscall): Likewise.
330         (syscall_parse_xml): Likewise.
331         (xml_init_syscalls_info): Likewise.  Drop "const" from return value.
332         (init_sysinfo): Rename to...
333         (init_syscalls_info): ...this.  Add gdbarch as a parameter.
334         Adjust function to deal with gdbarch.
335         (xml_get_syscall_number): Delete parameter sysinfo.  Accept
336         gdbarch as a parameter.  Adjust code.
337         (xml_get_syscall_name): Likewise.
338         (xml_list_of_syscalls): Likewise.
339         (set_xml_syscall_file_name): Accept gdbarch as parameter.
340         (get_syscall_by_number): Likewise.
341         (get_syscall_by_name): Likewise.
342         (get_syscall_names): Likewise.
343         * xml-syscall.h (set_xml_syscall_file_name): Likewise.
344         (get_syscall_by_number): Likewise.
345         (get_syscall_by_name): Likewise.
346         (get_syscall_names): Likewise.
347
348 2014-11-20  Doug Evans  <xdje42@gmail.com>
349
350         Split struct symtab into two: struct symtab and compunit_symtab.
351         * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
352         * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
353         to "struct compunit_symtab *".  All callers updated.
354         (set_block_compunit_symtab): Renamed from set_block_symtab.  Change
355         "struct symtab *" argument to "struct compunit_symtab *".
356         All callers updated.
357         (get_block_compunit_symtab): Renamed from get_block_symtab.  Change
358         result to "struct compunit_symtab *".  All callers updated.
359         (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
360         Change result to "struct compunit_symtab *".  All callers updated.
361         * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
362         hange type to "struct compunit_symtab *".  All uses updated.
363         (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
364         Change type to "struct compunit_symtab *".  All uses updated.
365         * buildsym.c (struct buildsym_compunit): New struct.
366         (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
367         (buildsym_compunit): New static global.
368         (finish_block_internal): Update to fetch objfile from
369         buildsym_compunit.
370         (make_blockvector): Delete objfile argument.
371         (start_subfile): Rewrite to use buildsym_compunit.  Don't initialize
372         debugformat, producer.
373         (start_buildsym_compunit): New function.
374         (free_buildsym_compunit): Renamed from free_subfiles_list.
375         All callers updated.
376         (patch_subfile_names): Rewrite to use buildsym_compunit.
377         (get_compunit_symtab): New function.
378         (get_macro_table): Delete argument comp_dir.  All callers updated.
379         (start_symtab): Change result to "struct compunit_symtab *".
380         All callers updated.  Create the subfile of the main source file.
381         (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
382         (reset_symtab_globals): Update.
383         (end_symtab_get_static_block): Update to use buildsym_compunit.
384         (end_symtab_without_blockvector): Rewrite.
385         (end_symtab_with_blockvector): Change result to
386         "struct compunit_symtab *".  All callers updated.
387         Update to use buildsym_compunit.  Don't set symtab->dirname,
388         instead set it in the compunit.
389         Explicitly make sure main symtab is first in its list.
390         Set debugformat, producer, blockvector, block_line_section, and
391         macrotable in the compunit.
392         (end_symtab_from_static_block): Change result to
393         "struct compunit_symtab *".  All callers updated.
394         (end_symtab, end_expandable_symtab): Ditto.
395         (set_missing_symtab): Change symtab argument to
396         "struct compunit_symtab *".  All callers updated.
397         (augment_type_symtab): Ditto.
398         (record_debugformat): Update to use buildsym_compunit.
399         (record_producer): Update to use buildsym_compunit.
400         * buildsym.h (struct subfile) <dirname>: Delete.
401         <producer, debugformat>: Delete.
402         <buildsym_compunit>: New member.
403         (get_compunit_symtab): Declare.
404         * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
405         from primary_symtab.  Change type to "struct compunit_symtab *".
406         All uses updated.
407         (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
408         All callers updated.
409         (dwarf_decode_macros): Delete comp_dir argument.  All callers updated.
410         (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
411         symtab.  Change type to "struct compunit_symtab *".  All uses updated.
412         (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
413         All callers updated.
414         (dw2_find_last_source_symtab): Ditto.
415         (dw2_lookup_symbol): Ditto.
416         (recursively_find_pc_sect_compunit_symtab): Renamed from
417         recursively_find_pc_sect_symtab.  Change result to
418         "struct compunit_symtab *".  All callers updated.
419         (dw2_find_pc_sect_compunit_symtab): Renamed from
420         dw2_find_pc_sect_symtab.  Change result to
421         "struct compunit_symtab *".  All callers updated.
422         (get_compunit_symtab): Renamed from get_symtab.  Change result to
423         "struct compunit_symtab *".  All callers updated.
424         (recursively_compute_inclusions): Change type of immediate_parent
425         argument to "struct compunit_symtab *".  All callers updated.
426         (compute_compunit_symtab_includes): Renamed from
427         compute_symtab_includes.  All callers updated.  Rewrite to compute
428         includes of compunit_symtabs and not symtabs.
429         (process_full_comp_unit): Update to work with struct compunit_symtab.
430         (process_full_type_unit): Ditto.
431         (dwarf_decode_lines_1): Delete argument comp_dir.  All callers updated.
432         (dwarf_decode_lines): Remove special case handling of main subfile.
433         (macro_start_file): Delete argument comp_dir.  All callers updated.
434         (dwarf_decode_macro_bytes): Ditto.
435         * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
436         use struct compunit_symtab.
437         * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
438         * jit.c (finalize_symtab): Build compunit_symtab.
439         * jv-lang.c (get_java_class_symtab): Change result to
440         "struct compunit_symtab *".  All callers updated.
441         * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
442         * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
443         comp_dir.  Change type to "struct compunit_symtab *".
444         All uses updated.
445         (new_macro_table): Change comp_dir argument to cust,
446         "struct compunit_symtab *".  All callers updated.
447         * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
448         nr_primary_symtabs.  All uses updated.
449         (count_symtabs_and_blocks): Update to handle compunits.
450         (report_command_stats): Update output, "primary symtabs" renamed to
451         "compunits".
452         * mdebugread.c (new_symtab): Change result to
453         "struct compunit_symtab *".  All callers updated.
454         (parse_procedure): Change type of search_symtab argument to
455         "struct compunit_symtab *".  All callers updated.
456         * objfiles.c (objfile_relocate1): Loop over blockvectors in a
457         separate loop.
458         * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
459         symtabs.  Change type to "struct compunit_symtab *".  All uses updated.
460         (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
461         All uses updated.
462         (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
463         All uses updated.
464         (ALL_FILETABS): Renamed from ALL_SYMTABS.  All uses updated.
465         (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS.  All uses updated.
466         * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
467         symtab.  Change type to "struct compunit_symtab *".  All uses updated.
468         * psymtab.c (psymtab_to_symtab): Change result type to
469         "struct compunit_symtab *".  All callers updated.
470         (find_pc_sect_compunit_symtab_from_partial): Renamed from
471         find_pc_sect_symtab_from_partial.  Change result type to
472         "struct compunit_symtab *".  All callers updated.
473         (lookup_symbol_aux_psymtabs): Change result type to
474         "struct compunit_symtab *".  All callers updated.
475         (find_last_source_symtab_from_partial): Ditto.
476         * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
477         * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
478         and macro_table from compunit.
479         * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
480         type to "struct compunit_symtab *".  All callers updated.
481         (debug_qf_lookup_symbol): Ditto.
482         (debug_qf_find_pc_sect_compunit_symtab): Renamed from
483         debug_qf_find_pc_sect_symtab, change result type to
484         "struct compunit_symtab *".  All callers updated.
485         * symfile.c (allocate_symtab): Delete objfile argument.
486         New argument cust.
487         (allocate_compunit_symtab): New function.
488         (add_compunit_symtab_to_objfile): New function.
489         * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
490         Change result type to "struct compunit_symtab *".  All uses updated.
491         <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
492         Change result type to "struct compunit_symtab *".  All uses updated.
493         * symmisc.c (print_objfile_statistics): Compute blockvector count in
494         separate loop.
495         (dump_symtab_1): Update test for primary source symtab.
496         (maintenance_info_symtabs): Update to handle compunit symtabs.
497         (maintenance_check_symtabs): Ditto.
498         * symtab.c (set_primary_symtab): Delete.
499         (compunit_primary_filetab): New function.
500         (compunit_language): New function.
501         (iterate_over_some_symtabs): Change type of arguments "first",
502         "after_last" to "struct compunit_symtab *".  All callers updated.
503         Update to loop over symtabs in each compunit.
504         (error_in_psymtab_expansion): Rename symtab argument to cust,
505         and change type to "struct compunit_symtab *".  All callers updated.
506         (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
507         Change result type to "struct compunit_symtab *".  All callers updated.
508         (find_pc_compunit_symtab): Renamed from find_pc_symtab.
509         Change result type to "struct compunit_symtab *".  All callers updated.
510         (find_pc_sect_line): Only loop over symtabs within selected compunit
511         instead of all symtabs in the objfile.
512         * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
513         <compunit_symtab> New member.
514         <block_line_section>: Moved to compunit_symtab.
515         <locations_valid>: Ditto.
516         <epilogue_unwind_valid>: Ditto.
517         <macro_table>: Ditto.
518         <dirname>: Ditto.
519         <debugformat>: Ditto.
520         <producer>: Ditto.
521         <objfile>: Ditto.
522         <call_site_htab>: Ditto.
523         <includes>: Ditto.
524         <user>: Ditto.
525         <primary>: Delete
526         (SYMTAB_COMPUNIT): New macro.
527         (SYMTAB_BLOCKVECTOR): Update definition.
528         (SYMTAB_OBJFILE): Update definition.
529         (SYMTAB_DIRNAME): Update definition.
530         (struct compunit_symtab): New type.  Common members among all source
531         symtabs within a compilation unit moved here.  All uses updated.
532         (COMPUNIT_OBJFILE): New macro.
533         (COMPUNIT_FILETABS): New macro.
534         (COMPUNIT_DEBUGFORMAT): New macro.
535         (COMPUNIT_PRODUCER): New macro.
536         (COMPUNIT_DIRNAME): New macro.
537         (COMPUNIT_BLOCKVECTOR): New macro.
538         (COMPUNIT_BLOCK_LINE_SECTION): New macro.
539         (COMPUNIT_LOCATIONS_VALID): New macro.
540         (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
541         (COMPUNIT_CALL_SITE_HTAB): New macro.
542         (COMPUNIT_MACRO_TABLE): New macro.
543         (ALL_COMPUNIT_FILETABS): New macro.
544         (compunit_symtab_ptr): New typedef.
545         (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
546
547 2014-11-20  Joel Brobecker  <brobecker@adacore.com>
548
549         * ada-lang.c (ada_is_redundant_range_encoding): Return 0
550         if the TYPE_CODE of range_type's base type does not match
551         the TYPE_CODE of encoding_type's base type.
552
553 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
554
555         * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
556         it starts with '<'.
557
558 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
559
560         * ada-lang.c (ada_is_redundant_range_encoding): New function.
561         (ada_is_redundant_index_type_desc): New function.
562         (to_fixed_array_type): Ignore parallel XA type if redundant.
563
564 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
565
566         * ada-lang.c (constrained_packed_array_type): Set the length
567         of the return array as if both bounds where zero if that
568         returned array's index type is dynamic.
569
570 2014-11-19  Yao Qi  <yao@codesourcery.com>
571
572         * config/i386/go32.mh (CC): Remove.
573
574 2014-11-18  Doug Evans  <xdje42@gmail.com>
575
576         * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR.  All uses
577         updated.
578
579 2014-11-18  Doug Evans  <xdje42@gmail.com>
580
581         * buildsym.c (buildsym_objfile): New static global.
582         (buildsym_comp_dir): New static global.
583         (finish_block_internal): Delete arg objfile.  All callers updated.
584         (finish_block): Delete arg objfile.  All callers updated.
585         (start_subfile): Delete arg dirname.  All callers updated.
586         (patch_subfile_names): Update buildsym_comp_dir.
587         (get_macro_table): Delete arg objfile.  All callers updated.
588         (start_symtab): New arg objfile.  All callers updated.
589         Rename arg dirname to comp_dir.
590         (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
591         (end_symtab_get_static_block): Delete arg objfile.  All callers
592         updated.
593         (end_symtab_without_blockvector): Ditto.
594         (end_symtab_with_blockvector): Ditto.
595         (end_symtab_from_static_block): Ditto.
596         (end_symtab): Ditto.
597         (end_expandable_symtab): Ditto.
598         (augment_type_symtab): Ditto.
599         * coffread.c (coff_start_symtab): New arg objfile.  All callers
600         updated.
601
602 2014-11-18  Doug Evans  <xdje42@gmail.com>
603
604         * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE.  All uses
605         updated.
606
607 2014-11-18  Doug Evans  <xdje42@gmail.com>
608
609         * symtab.h (SYMTAB_DIRNAME): New macro.  All uses of member
610         symtab.dirname updated to use it.
611
612 2014-11-18  Doug Evans  <xdje42@gmail.com>
613
614         * symtab.h (SYMTAB_OBJFILE): New macro.  All uses of member
615         symtab.objfile updated to use it.
616
617 2014-11-18  Doug Evans  <xdje42@gmail.com>
618
619         * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
620
621 2014-11-18  Doug Evans  <xdje42@gmail.com>
622
623         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
624         SYMBOL_OBJFILE.
625         * findvar.c (default_read_var_value): Ditto.
626         * jv-lang.c (add_class_symtab_symbol): Ditto.
627         * parse.c (operator_check_standard): Ditto.
628         * printcmd.c (address_info): Ditto.
629         * symtab.c (fixup_symbol_section): Ditto.
630         (skip_prologue_sal): Ditto.
631         * tracepoint.c (scope_info): Ditto.
632         * valops.c (find_function_in_inferior): Ditto.
633         * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
634         * python/py-symbol.c (set_symbol): Ditto.
635
636 2014-11-18  Doug Evans  <xdje42@gmail.com>
637
638         * buildsym.c (main_subfile): New static global.
639         (free_subfiles_list): New function.
640         (start_symtab): Set main_subfile.
641         (restart_symtab): Replace init of subfiles, current_subfile with
642         call to free_subfiles_list.
643         (watch_main_source_file_lossage): Use main_subfile.
644         (reset_symtab_globals): Replace init of current_subfile with call
645         to free_subfiles_list.
646         (end_symtab_without_blockvector, end_symtab_with_blockvector): New
647         functions, split out from ...
648         (end_symtab_from_static_block): ... here.  Rewrite to call them.
649
650 2014-11-18  Doug Evans  <xdje42@gmail.com>
651
652         The result of symtab expansion is always a primary symtab.
653         * dwarf2read.c (dw2_instantiate_symtab): Add assert.
654         (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
655         * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
656         (psymtab_to_symtab): Add comment and assert.
657         (map_matching_symbols_psymtab): Remove unnecessary test for
658         non-primary symtab.
659
660 2014-11-15  Doug Evans  <xdje42@gmail.com>
661
662         PR symtab/17559
663         * symtab.c (find_pc_line_symtab): New function.
664         * symtab.h (find_pc_line_symtab): Declare.
665         * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
666         find_pc_symtab.
667         * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
668         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
669         * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
670         * tui/tui-win.c (make_visible_with_new_height): Ditto.
671         * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
672         (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
673
674 2014-11-15  Doug Evans  <xdje42@gmail.com>
675
676         * symtab.c (expand_symtab_containing_pc): Renamed from
677         find_pc_sect_symtab_via_partial.  All callers updated.
678
679 2014-11-15  Yao Qi  <yao@codesourcery.com>
680
681         * go32-nat.c (go32_create_inferior): Add missing parenthesis.
682
683 2014-11-14  Joel Brobecker  <brobecker@adacore.com>
684
685         * common/common-defs.h: Move <stdarg.h> #include ahead of
686         <stdio.h> #include.
687
688 2014-11-14  Pedro Alves  <palves@redhat.com>
689
690         * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
691         [!PHONY_ICONV] (gdb_iconv): New function.
692         [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
693
694 2014-11-13  Doug Evans  <dje@google.com>
695
696         PR symtab/17591
697         * dwarf2read.c (find_slot_in_mapped_hash): Handle
698         "(anonymous namespace)".
699
700 2014-11-13  Doug Evans  <dje@google.com>
701
702         * dwarf2read.c (update_enumeration_type_from_children): Avoid
703         infinite loop.
704
705 2014-11-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
706
707         * NEWS (maint set target-async): Fix typo.
708
709 2014-11-12  Pedro Alves  <palves@redhat.com>
710
711         * infrun.c (enum infwait_states, infwait_state): Delete.
712
713 2014-11-12  Pedro Alves  <palves@redhat.com>
714
715         * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
716         Rewrite stepping over a permanent breakpoint.
717         (thread_still_needs_step_over, proceed): Don't set
718         stepping_over_breakpoint for permanent breakpoints.
719         (handle_signal_stop): Don't clear stepped_breakpoint.  Also pull
720         single-step breakpoints out of the target on hardware step
721         targets.
722         (process_event_stop_test): If stepping a permanent breakpoint
723         doesn't hit the step-resume breakpoint, delete the step-resume
724         breakpoint.
725         (switch_back_to_stepped_thread): Also check if the stepped thread
726         has advanced already on hardware step targets.
727         (currently_stepping): Return true if the thread stepped a
728         breakpoint.
729
730 2014-11-12  Pedro Alves  <palves@redhat.com>
731
732         Mark locations as permanent, not the whole breakpoint.
733         * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
734         (mark_breakpoints_out): Don't mark permanent breakpoints as
735         uninserted.
736         (breakpoint_init_inferior): Use mark_breakpoints_out.
737         (breakpoint_here_p): Adjust.
738         (bpstat_stop_status, describe_other_breakpoints): Remove handling
739         of permanent breakpoints.
740         (make_breakpoint_permanent): Mark each location as permanent,
741         instead of marking the breakpoint.
742         (add_location_to_breakpoint): If the location is permanent, mark
743         it as such, and as inserted.
744         (init_breakpoint_sal): Don't make the breakpoint permanent here.
745         (bp_location_compare, update_global_location_list): Adjust.
746         (update_breakpoint_locations): Don't make the breakpoint permanent
747         here.
748         (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
749         breakpoints.
750         * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
751         (struct bp_location) <permanent>: New field.
752         * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
753         reference to bp_permanent.
754
755 2014-11-12  Pedro Alves  <palves@redhat.com>
756
757         * arch-utils.c (default_skip_permanent_breakpoint): New function.
758         * arch-utils.h (default_skip_permanent_breakpoint): New
759         declaration.
760         * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
761         Install default_skip_permanent_breakpoint as default method.
762         * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
763         (i386_gdbarch_init): Don't install it.
764         * infrun.c (resume): Assume there's always a
765         gdbarch_skip_permanent_breakpoint implementation.
766         * gdbarch.h, gdbarch.c: Regenerate.
767
768 2014-11-11  Daniel Colascione  <dancol@dancol.org>
769
770         Warn about cross-PID-namespace debugging.
771         * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
772         * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
773         * linux-thread-db.c (check_pid_namespace_match): New function.
774         (thread_db_inferior_created): Call it.
775
776 2014-11-10  Doug Evans  <xdje42@gmail.com>
777
778         * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
779         (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
780
781 2014-11-10  Doug Evans  <xdje42@gmail.com>
782
783         * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
784
785 2014-11-10  Doug Evans  <xdje42@gmail.com>
786
787         PR symtab/17564
788         * symtab.c (lookup_symbol_in_all_objfiles): Delete.
789         (lookup_static_symbol): Move definition to new location and rewrite.
790         (lookup_symbol_in_objfile): New function.
791         (lookup_symbol_global_iterator_cb): Call it.
792
793 2014-11-10  Ulrich Weigand  <uweigand@de.ibm.com>
794
795         * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
796
797 2014-11-07  Pedro Alves  <palves@redhat.com>
798
799         * infrun.c (process_event_stop_test) <subroutine check>: Don't
800         check if we did a "nexti" inside a prologue.
801         * symtab.c (in_prologue): Delete function.
802         * symtab.h (in_prologue): Delete declaration.
803
804 2014-11-06  Doug Evans  <xdje42@gmail.com>
805
806         * symtab.h (lookup_global_symbol): Improve function comment.
807
808 2014-11-06  Doug Evans  <xdje42@gmail.com>
809
810         * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
811         All callers updated.
812         * symtab.h (lookup_global_symbol): Update decl.
813         (lookup_static_symbol): Move decl to better location.
814
815 2014-11-06  Doug Evans  <xdje42@gmail.com>
816
817         * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
818
819 2014-11-06  Doug Evans  <xdje42@gmail.com>
820
821         * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
822         All callers updated.
823         (lookup_symbol_in_all_objfiles): Renamed from
824         lookup_symbol_aux_symtabs.  All callers updated.
825         (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
826         All callers updated.
827         (lookup_symbol_in_objfile_symtabs): Renamed from
828         lookup_symbol_aux_objfile.  All callers updated.
829
830 2014-11-06  Doug Evans  <xdje42@gmail.com>
831
832         * symtab.c (lookup_symbol_in_block): Renamed from
833         lookup_symbol_aux_block.  All callers updated.
834
835 2014-11-06  Doug Evans  <xdje42@gmail.com>
836
837         * symtab.c (lookup_static_symbol): Renamed from
838         lookup_static_symbol_aux.  All callers updated.
839         (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
840         All callers updated.
841
842 2014-11-06  Doug Evans  <xdje42@gmail.com>
843
844         * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
845         * block.c (block_lookup_symbol): Use it.
846         * cp-support.c (make_symbol_overload_list_block): Use it.
847         * symtab.c (iterate_over_symbols): Use it.
848
849 2014-11-06  Doug Evans  <xdje42@gmail.com>
850
851         * symtab.c (lookup_block_symbol): Moved to ...
852         * block.c (block_lookup_symbol):  ... here and renamed.
853         All callers updated.
854         * block.h (block_lookup_symbol): Declare.
855         * symtab.h (lookup_block_symbol): Delete.
856
857 2014-11-06  Doug Evans  <xdje42@gmail.com>
858
859         * ada-lang.c (ada_make_symbol_completion_list): Use
860         ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
861         * symtab.c (lookup_objfile_from_block): Ditto.
862
863 2014-11-06  Doug Evans  <xdje42@gmail.com>
864
865         * gdbtypes.h (TYPE_CODE_CLASS): Delete.  All uses changed to use
866         TYPE_CODE_STRUCT.
867
868 2014-11-06  Doug Evans  <xdje42@gmail.com>
869
870         * objfiles.c (get_objfile_arch): Constify.
871         * objfiles.h (get_objfile_arch): Update prototype.
872         * solib.c (solib_global_lookup): Fetch arch from objfile,
873         not target_gdbarch.
874
875 2014-11-06  Sandra Loosemore  <sandra@codesourcery.com>
876
877         * nios2-tdep.c (wild_insn): Delete.
878         (profiler_insn, irqentry_insn): Delete.
879         (nios2_match_sequence): Delete.
880         (nios2_analyze_prologue): Update comments.  Remove matching
881         of obsolete profiler_insn and irqentry_insn sequences.
882
883 2014-11-05  Alan Modra  <amodra@gmail.com>
884
885         * charset.c (convert_between_encodings): Shrink obstack using
886         obstack_blank_fast.
887         * minsyms.c (install_minimal_symbols): Likewise.
888         * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
889         to char* before doing pointer arithmetic.
890
891 2014-11-04  Simon Marchi  <simon.marchi@ericsson.com>
892
893         * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
894
895 2014-11-04  Pedro Alves  <palves@redhat.com>
896
897         * breakpoint.c (breakpoint_thread_match): Delete function.
898         * breakpoint.h (breakpoint_thread_match): Delete declaration.
899
900 2014-11-03  Siva Chandra Reddy  <sivachandra@google.com>
901
902         PR c++/17494
903         * eval.c (evaluate_subexp_standard): Evaluate the "object" and
904         the method args also under EVAL_SKIP when evaluating method
905         calls under EVAL_SKIP.
906
907 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
908
909         * dwarf2loc.c (read_pieced_value): Do big endian
910         processing only if gdb_regnum is not -1.
911         (write_pieced_value): Ditto.
912
913 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
914
915         * arm-linux-tdep.c (arm_linux_init_abi): Use
916         info.byte_order_for_code to choose endianity of breakpoint
917         instructions snippets.
918
919 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
920
921         * arm-tdep.c (extract_arm_insn): Use
922         gdbarch_byte_order_for_code to read arm instruction.
923
924 2014-11-02  Doug Evans  <xdje42@gmail.com>
925
926         * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
927
928 2014-11-02  Doug Evans  <xdje42@gmail.com>
929
930         * xcoffread.c (process_linenos): Delete unnecessary zeroing of
931         main_subfile before returning.
932
933 2014-10-31  Doug Evans  <xdje42@gmail.com>
934
935         * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
936         (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
937
938 2014-10-31  Doug Evans  <xdje42@gmail.com>
939
940         * valops.c (value_cast_pointers): Fix whitespace.
941         (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
942         Ditto.
943
944 2014-10-30  Doug Evans  <dje@google.com>
945
946         * NEWS: Mention ability add attributes to gdb.Objfile and
947         gdb.Progspace objects.
948         * python/py-objfile.c (objfile_object): New member dict.
949         (objfpy_dealloc): Py_XDECREF dict.
950         (objfpy_initialize): Initialize dict.
951         (objfile_getset): Add __dict__.
952         (objfile_object_type): Set tp_dictoffset member.
953         * python/py-progspace.c (progspace_object): New member dict.
954         (pspy_dealloc): Py_XDECREF dict.
955         (pspy_initialize): Initialize dict.
956         (pspace_getset): Add __dict__.
957         (pspace_object_type): Set tp_dictoffset member.
958
959 2014-10-30  Yao Qi  <yao@codesourcery.com>
960
961         * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
962         replace '\\' with '\\\\'.
963
964 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
965
966         GDB 7.8.1 released.
967
968 2014-10-29  Pedro Alves  <palves@redhat.com>
969
970         PR gdb/17408
971         * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
972         instead of assuming a thread with a stepping range is always
973         stepping.
974
975 2014-10-29  Pedro Alves  <palves@redhat.com>
976
977         PR python/17372
978         * event-top.c (change_line_handler): Call
979         gdb_rl_callback_handler_remove instead of
980         rl_callback_handler_remove.
981         (callback_handler_installed): New global.
982         (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
983         (gdb_rl_callback_handler_reinstall): New functions.
984         (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
985         gdb_rl_callback_handler_install instead of
986         rl_callback_handler_remove and rl_callback_handler_install.
987         (gdb_disable_readline): Call gdb_rl_callback_handler_remove
988         instead of rl_callback_handler_remove.
989         * event-top.h (gdb_rl_callback_handler_remove)
990         (gdb_rl_callback_handler_install)
991         (gdb_rl_callback_handler_reinstall): New declarations.
992         * infrun.c (reinstall_readline_callback_handler_cleanup): New
993         cleanup function.
994         (fetch_inferior_event): Install it.
995         * top.c (gdb_readline_wrapper_line) Call
996         gdb_rl_callback_handler_remove instead of
997         rl_callback_handler_remove.
998         (gdb_readline_wrapper_cleanup): Don't call
999         rl_callback_handler_install.
1000
1001 2014-10-29  Pedro Alves  <palves@redhat.com>
1002
1003         * event-top.c (command_line_handler): Clear the first byte of
1004         linebuffer, when it is first allocated.
1005
1006 2014-10-29  Pedro Alves  <palves@redhat.com>
1007
1008         * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1009         TRY_CATCH.
1010
1011 2014-10-29  Pedro Alves  <palves@redhat.com>
1012
1013         PR tui/16138
1014         PR tui/17519
1015         * tui/tui-interp.c (tui_is_toplevel): Delete global.
1016         (tui_allowed_p): Delete function.
1017         * tui/tui.c: Include "interps.h".
1018         (tui_enable): Don't use tui_allowed_p.  Error out here with
1019         detailed error messages if the TUI is the top level interpreter,
1020         or if output is not a terminal.  Use newterm instead of initscr,
1021         and error out if initializing the terminal fails.  Also error out if
1022         the terminal doesn't support cursor addressing.
1023         * tui/tui.h (tui_allowed_p): Delete declaration.
1024
1025 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
1026
1027         * arm-tdep.c (arm_skip_stack_protector): Return early if
1028         address loaded by first "ldr" instruction does not have
1029         a corresponding minimal symbol.  Update comment.
1030
1031 2014-10-29  Yao Qi  <yao@codesourcery.com>
1032
1033         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1034         loaded address correctly of ldr instruction.
1035
1036 2014-10-28  Pedro Alves  <palves@redhat.com>
1037
1038         PR gdb/12623
1039         * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1040         field.
1041         * infrun.c (resume) <stepping breakpoint instruction>: Set the
1042         thread's stepped_breakpoint field.  Skip if reverse debugging.
1043         Add comment.
1044         (init_thread_stepping_state, handle_signal_stop): Clear the
1045         thread's stepped_breakpoint field.
1046
1047 2014-10-27  Pedro Alves  <palves@redhat.com>
1048
1049         * remote.c (remote_thread_alive): New, factored out from ...
1050         (remote_thread_alive): ... this.
1051         (remote_update_thread_list): Bail out before deleting threads if
1052         the target returned an empty list, and, the current thread has a
1053         magic/fake ptid.
1054
1055 2014-10-27  Pedro Alves  <palves@redhat.com>
1056
1057         * infrun.c (handle_signal_stop): Also skip handlers when a random
1058         signal arrives while handling a "stepi" or a "nexti".  Set the
1059         thread's 'step_after_step_resume_breakpoint' flag.
1060
1061 2014-10-27  Luis Machado  <lgustavo@codesourcery.com>
1062
1063         * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1064         (arm_record_ld_st_imm_offset): Reimplement to cover all
1065         load/store cases for ARM opcode 010.
1066         (arm_record_ld_st_multiple): Reimplement to cover all
1067         load/store cases for ARM opcode 100.
1068
1069 2014-10-26  Doug Evans  <xdje42@gmail.com>
1070
1071         * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1072
1073 2014-10-26  Doug Evans  <xdje42@gmail.com>
1074
1075         * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1076         parameter "kind" to "block_index".
1077         * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1078         "block_index".
1079         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1080
1081 2014-10-26  Doug Evans  <xdje42@gmail.com>
1082
1083         * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1084
1085 2014-10-26  Doug Evans  <xdje42@gmail.com>
1086
1087         * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1088         obstack_alloc.
1089
1090 2014-10-26  Doug Evans  <xdje42@gmail.com>
1091
1092         * parser-defs.h (block_found): Move decl from here ...
1093         * symtab.h (block_found): ... to here.
1094
1095 2014-10-26  Doug Evans  <xdje42@gmail.com>
1096
1097         * symtab.h (struct field_of_this_result): Fix typo in comment.
1098         (lookup_symbol_in_language): Move function comment here.
1099         (lookup_symbol): Improve function comment.
1100         (basic_lookup_symbol_nonlocal): Ditto.
1101         (lookup_symbol_static, lookup_symbol_global): Ditto.
1102         (lookup_symbol_aux_block): Ditto.
1103         (lookup_language_this): Add function comment.
1104         (lookup_static_symbol_aux): Explicitly mark as extern.  Improve
1105         function comment.
1106         (lookup_block_symbol): Improve function comment.
1107         (lookup_struct): Fix capitalization in function comment.
1108         (lookup_transparent_type): Add function comment.
1109         (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1110         Improve function comment.
1111         (lookup_objfile_from_block): Add function comment.
1112         * symtab.c (lookup_symbol_in_language): Update function comment.
1113         (lookup_symbol, lookup_language_this): Ditto.
1114         (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1115         (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1116         (basic_lookup_symbol_nonlocal): Ditto.
1117         (lookup_symbol_static, lookup_symbol_global): Ditto.
1118         (lookup_transparent_type, lookup_block_symbol): Ditto.
1119
1120 2014-10-25  Doug Evans  <xdje42@gmail.com>
1121
1122         * symtab.c (types_info): Delete forward decl.
1123         (functions_info, variables_info, sources_info): Ditto.
1124         (_initialize_symtab): Rewrite forward decl to use
1125         initialize_file_ftype.
1126
1127 2014-10-25  Doug Evans  <xdje42@gmail.com>
1128
1129         * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1130
1131 2014-10-25  Doug Evans  <xdje42@gmail.com>
1132
1133         * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1134         of local var child_die.
1135
1136 2014-10-24  Don Breazeal  <donb@codesourcery.com>
1137
1138         * infrun.c (follow_fork_inferior): Update fork message printing
1139         to use target_terminal_ours_for_output instead of
1140         target_terminal_ours, to use _() for all format strings, to print
1141         "vfork" instead of "fork" for vforks, and to add a detach message.
1142         (handle_vfork_child_exec_or_exit): Update message printing to use
1143         target_terminal_ours_for_output instead of target_terminal_ours, to
1144         use _() for all format strings, and to fix some formatting.
1145
1146 2014-10-24  Pedro Alves  <palves@redhat.com>
1147
1148         * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1149         * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1150         * config/vax/vax.mh: Delete.
1151         * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1152         obsolete configurations section.
1153         * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1154         * vax-nat.c: Delete file.
1155
1156 2014-10-24  Pedro Alves  <palves@redhat.com>
1157
1158         * NEWS (Removed targets): Add OS/arch column.
1159
1160 2014-10-24  Siva Chandra Reddy  <sivachandra@google.com>
1161
1162         * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1163         on the arg type of a constructor only if it is of reference type.
1164
1165 2014-10-23  Sandra Loosemore  <sandra@codesourcery.com>
1166
1167         * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1168         accessors and constants from nios2 opcodes update.
1169         (nios2_get_next_pc): Likewise.
1170
1171 2014-10-19  Doug Evans  <xdje42@gmail.com>
1172
1173         * gdbthread.h (set_running): Fix comment.
1174         (set_executing, finish_thread_state): Fix comment.
1175
1176 2014-10-18  Doug Evans  <xdje42@gmail.com>
1177
1178         * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1179
1180 2014-10-17  Doug Evans  <dje@google.com>
1181
1182         * NEWS: Mention new event gdb.clear_objfiles.
1183         * python/py-event.h (emit_clear_objfiles_event): Clear
1184         * python/py-events.h (events_object): New member clear_objfiles.
1185         * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1186         event.
1187         * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1188         emit clear_objfiles event.
1189         * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1190         function.
1191         (emit_clear_objfiles_event): New function.
1192         (clear_objfiles): New event.
1193         * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1194         Declare.
1195         * python/python.c (_initialize_python): Call
1196         gdbpy_initialize_clear_objfiles_event.
1197
1198 2014-10-17  Doug Evans  <dje@google.com>
1199
1200         * NEWS: Mention new gdb.Objfile.progspace attribute.
1201         * python/py-objfile.c (objfpy_get_progspace): New function.
1202         (objfile_getset): New entry for "progspace".
1203
1204 2014-10-17  Pedro Alves  <palves@redhat.com>
1205
1206         PR gdb/17471
1207         * infcmd.c (strip_bg_char): Change prototype and rewrite.  Now
1208         returns a copy of the input.
1209         (run_command_1, continue_command, step_1, jump_command)
1210         (signal_command, until_command, advance_command, finish_command)
1211         (attach_command): Adjust and install a cleanup to free the
1212         stripped args.
1213
1214 2014-10-17  Pedro Alves  <palves@redhat.com>
1215
1216         PR gdb/17300
1217         * infcmd.c (continue_1): If continuing all threads in the
1218         foreground, make sure the inferior's terminal settings are put in
1219         effect.
1220
1221 2014-10-17  Pedro Alves  <palves@redhat.com>
1222
1223         PR gdb/17472
1224         * annotate.c (annotate_breakpoints_invalid): Use
1225         target_terminal_our_for_output instead of target_terminal_ours.
1226         Give back the terminal to the target.
1227         (annotate_frames_invalid): Likewise.
1228
1229 2014-10-17  Pedro Alves  <palves@redhat.com>
1230
1231         * target.c (enum terminal_state): New enum.
1232         (terminal_state): New global.
1233         (target_terminal_init): New function.
1234         (target_terminal_inferior): Skip if inferior already owns the
1235         terminal.
1236         (target_terminal_ours, target_terminal_ours_for_output): New
1237         functions.
1238         * target.h (target_terminal_init): Convert to function prototype.
1239         (target_terminal_ours_for_output): Convert to function prototype
1240         and tweak comment.
1241         (target_terminal_ours): Convert to function prototype and tweak
1242         comment.
1243         * windows-nat.c (do_initial_windows_stuff): Call
1244         target_terminal_init instead of child_terminal_init_with_pgrp.
1245
1246 2014-10-17  Pedro Alves  <palves@redhat.com>
1247
1248         * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1249         (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1250         (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1251         solib-osf.c.
1252         * NEWS: Mention that support for alpha*-*-osf* has been removed.
1253         * ada-lang.h [__alpha__ && __osf__]
1254         (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1255         * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1256         * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1257         GDB_OSABI_OSF1.
1258         * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1259         files.
1260         * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1261         (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1262         * configure: Regenerate.
1263         * configure.ac: Remove references to osf.
1264         * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1265         section.  Remove all other references to osf.
1266         * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1267         Remove all other references to osf.
1268         * dec-thread.c: Delete file.
1269         * defs.h (GDB_OSABI_OSF1): Delete.
1270         * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1271         defined.
1272         * osabi.c (gdb_osabi_names): Delete "OSF/1".
1273         * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1274         Delete code.
1275         (unconditionally_kill_inferior)
1276         [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1277         * solib-osf.c: Delete file.
1278
1279 2014-10-17  Pedro Alves  <palves@redhat.com>
1280
1281         * remote.c (clear_threads_listing_context): Move higher up, out of
1282         the HAVE_LIBEXPAT guard.
1283
1284 2014-10-16  Tristan Gingold  <gingold@adacore.com>
1285
1286         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1287         (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1288         on amd64.
1289
1290 2014-10-15  Pedro Alves  <palves@redhat.com>
1291
1292         * dec-thread.c (dec_thread_count_gdb_threads)
1293         (dec_thread_add_gdb_thread): Delete.
1294         (dec_thread_update_thread_list): Delete.
1295         (dec_thread_find_new_threads): Rename to ...
1296         (dec_thread_update_thread_list): ... this.  Delete GDB-size
1297         threads that are no longer found in dec_thread_list.
1298         (resync_thread_list): Delete.
1299         (dec_thread_wait): Call dec_thread_update_thread_list instead of
1300         resync_thread_list.
1301
1302 2014-10-15  Pedro Alves  <palves@redhat.com>
1303
1304         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1305         * remote.c (remote_update_thread_list): Skip calling prune_threads
1306         if any thread listing method is supported, and instead walk over
1307         the set of remote threads listed, deleting those that are not
1308         found in GDB's thread list.
1309
1310 2014-10-15  Pedro Alves  <palves@redhat.com>
1311
1312         * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1313         * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1314         (bsd_uthread_update_thread_list): ... this.  Call prune_threads.
1315         (bsd_uthread_target): Adjust.
1316         * corelow.c (core_open): Adjust.
1317         * dec-thread.c (dec_thread_find_new_threads): Update comment.
1318         (dec_thread_update_thread_list): New function.
1319         (init_dec_thread_ops): Adjust.
1320         * gdbthread.h (prune_threads): New declaration.
1321         * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1322         (thread_db_update_thread_list): ... this.  Call prune_threads.
1323         (init_thread_db_ops): Adjust.
1324         * nto-procfs.c (procfs_find_new_threads): Rename to ...
1325         (procfs_update_thread_list): ... this.  Call prune_threads.
1326         (procfs_attach, procfs_create_inferior, init_procfs_targets):
1327         Adjust.
1328         * obsd-nat.c (obsd_find_new_threads): Rename to ...
1329         (obsd_update_thread_list): ... this.  Call prune_threads.
1330         (obsd_add_target): Adjust.
1331         * procfs.c (procfs_target): Adjust.
1332         (procfs_notice_thread): Update comment.
1333         (procfs_find_new_threads): Rename to ...
1334         (procfs_update_thread_list): ... this.  Call prune_threads.
1335         * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1336         comment.
1337         (ravenscar_wait): Adjust.
1338         (ravenscar_find_new_threads): Rename to ...
1339         (ravenscar_update_thread_list): ... this.  Call prune_threads.
1340         (init_ravenscar_thread_ops): Adjust.
1341         * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1342         (record_btrace_update_thread_list): ... this.  Adjust comment.
1343         (init_record_btrace_ops): Adjust.
1344         * remote.c (remote_threads_info): Rename to ...
1345         (remote_update_thread_list): ... this.  Call prune_threads.
1346         (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1347         Adjust.
1348         * sol-thread.c (check_for_thread_db): Adjust.
1349         (sol_find_new_threads_callback): Rename to ...
1350         (sol_update_thread_list_callback): ... this.
1351         (sol_find_new_threads): Rename to ...
1352         (sol_update_thread_list): ... this.  Call prune_threads.  Adjust.
1353         (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1354         * target-delegates.c: Regenerate.
1355         * target.c (target_find_new_threads): Rename to ...
1356         (target_update_thread_list): ... this.
1357         * target.h (struct target_ops): Rename to_find_new_threads field
1358         to to_update_thread_list.
1359         (target_find_new_threads): Rename to ...
1360         (target_update_thread_list): ... this.
1361         * thread.c (prune_threads): Make extern.
1362         (update_thread_list): Adjust.
1363
1364 2014-10-15  Pedro Alves  <palves@redhat.com>
1365
1366         * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1367         Add describing comment.  Return -1 if the qL packet is not
1368         supported.
1369         (struct thread_item, thread_item_t): Move higher up in
1370         the file.  Add comments.
1371         (struct threads_parsing_context): Move higher up in
1372         the file, add comments, and remote to ...
1373         (struct threads_listing_context): ... this.
1374         (remote_newthread_step): Don't add the thread to GDB's thread
1375         database here.  Instead push it to the thread_listing_context
1376         list.
1377         (remote_find_new_threads): Rename to ...
1378         (remote_get_threads_with_ql): ... this.  Add target_ops and
1379         targets_listing_context parameters.  Pass down context.
1380         (start_thread): Adjust.
1381         (clear_threads_parsing_context): Rename to ...
1382         (clear_threads_listing_context): ... this.
1383         (remote_get_threads_with_qxfer): New, with parts salvaged from old
1384         remote_threads_info.
1385         (remote_get_threads_with_qthreadinfo): Ditto.
1386         (remote_threads_info): Reimplement.
1387
1388 2014-10-15  Pedro Alves  <palves@redhat.com>
1389
1390         * infrun.c (resume): Don't force displaced-stepping for all
1391         single-steps on software single-stepping archs.
1392
1393 2014-10-15  Pedro Alves  <palves@redhat.com>
1394
1395         * breakpoint.c (single_step_breakpoints): Delete global.
1396         (insert_single_step_breakpoint): Adjust to store the breakpoint
1397         pointer in the current thread.
1398         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1399         (cancel_single_step_breakpoints): Delete functions.
1400         (breakpoint_has_location_inserted_here): Make extern.
1401         (single_step_breakpoint_inserted_here_p): Adjust to walk the
1402         breakpoint list.
1403         * breakpoint.h (breakpoint_has_location_inserted_here): New
1404         declaration.
1405         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1406         (cancel_single_step_breakpoints): Remove declarations.
1407         * gdbthread.h (struct thread_control_state)
1408         <single_step_breakpoints>: New field.
1409         (delete_single_step_breakpoints)
1410         (thread_has_single_step_breakpoints_set)
1411         (thread_has_single_step_breakpoint_here): New declarations.
1412         * infrun.c (follow_exec): Also clear the single-step breakpoints.
1413         (singlestep_breakpoints_inserted_p, singlestep_ptid)
1414         (singlestep_pc): Delete globals.
1415         (infrun_thread_ptid_changed): Remove references to removed
1416         globals.
1417         (resume_cleanups): Delete the current thread's single-step
1418         breakpoints.
1419         (maybe_software_singlestep): Remove references to removed globals.
1420         (resume): Adjust to use thread_has_single_step_breakpoints_set and
1421         delete_single_step_breakpoints.
1422         (init_wait_for_inferior): Remove references to removed globals.
1423         (delete_thread_infrun_breakpoints): Delete the thread's
1424         single-step breakpoints too.
1425         (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1426         single-step breakpoints here.
1427         (delete_stopped_threads_single_step_breakpoints): New function.
1428         (adjust_pc_after_break): Adjust to use
1429         thread_has_single_step_breakpoints_set.
1430         (handle_inferior_event): Remove references to removed globals.
1431         Use delete_stopped_threads_single_step_breakpoints.
1432         (handle_signal_stop): Adjust to per-thread single-step
1433         breakpoints.  Swap test order to do cheaper tests first.
1434         (switch_back_to_stepped_thread): Extend debug output.  Remove
1435         references to removed globals.
1436         * record-full.c (record_full_wait_1): Adjust to per-thread
1437         single-step breakpoints.
1438         * thread.c (delete_single_step_breakpoints)
1439         (thread_has_single_step_breakpoints_set)
1440         (thread_has_single_step_breakpoint_here): New functions.
1441         (clear_thread_inferior_resources): Also delete the thread's
1442         single-step breakpoints.
1443
1444 2014-10-15  Pedro Alves  <palves@redhat.com>
1445
1446         * thread.c (delete_thread_breakpoint): New function.
1447         (delete_step_resume_breakpoint)
1448         (delete_exception_resume_breakpoint): Use it.
1449         (delete_at_next_stop): New function.
1450         (clear_thread_inferior_resources): Use delete_at_next_stop.
1451
1452 2014-10-15  Pedro Alves  <palves@redhat.com>
1453
1454         * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1455         (breakpoint_inserted_here_p): ... here.  Remove special case for
1456         software single-step breakpoints.
1457         (find_non_raw_software_breakpoint_inserted_here): Inline ...
1458         (software_breakpoint_inserted_here_p): ... here.  Remove special
1459         case for software single-step breakpoints.
1460         (bp_target_info_copy_insertion_state)
1461         (deprecated_insert_raw_breakpoint)
1462         (deprecated_remove_raw_breakpoint): Delete functions.
1463         * breakpoint.h (deprecated_insert_raw_breakpoint)
1464         (deprecated_remove_raw_breakpoint): Remove declarations.
1465
1466 2014-10-15  Pedro Alves  <palves@redhat.com>
1467
1468         PR breakpoints/9649
1469         * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1470         Delete array globals.
1471         (single_step_breakpoints): New global.
1472         (breakpoint_xfer_memory): Remove special handling for single-step
1473         breakpoints.
1474         (update_breakpoints_after_exec): Delete bp_single_step
1475         breakpoints.
1476         (detach_breakpoints): Remove special handling for single-step
1477         breakpoints.
1478         (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1479         (bpstat_stop_status): Add comment.
1480         (bpstat_what, bptype_string, print_one_breakpoint_location)
1481         (adjust_breakpoint_address, init_bp_location): Handle
1482         bp_single_step.
1483         (new_single_step_breakpoint): New function.
1484         (set_momentary_breakpoint, bkpt_remove_location): Remove special
1485         handling for single-step breakpoints.
1486         (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1487         (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1488         Rewrite.
1489         (detach_single_step_breakpoints, find_single_step_breakpoint):
1490         Delete functions.
1491         (breakpoint_has_location_inserted_here): New function.
1492         (single_step_breakpoint_inserted_here_p): Rewrite.
1493         * breakpoint.h: Remove FIXME.
1494         (enum bptype) <bp_single_step>: New enum value.
1495         (insert_single_step_breakpoint): Update comment.
1496         * infrun.c (resume_cleanups)
1497         (delete_step_thread_step_resume_breakpoint): Remove single-step
1498         breakpoints.
1499         (fetch_inferior_event): Install a cleanup that removes infrun
1500         breakpoints.
1501         (switch_back_to_stepped_thread) <expect thread advanced also>:
1502         Clear step-over info.
1503
1504 2014-10-15  Pedro Alves  <palves@redhat.com>
1505
1506         * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1507         (delete_thread_infrun_breakpoints): New function, with parts
1508         salvaged from delete_step_resume_breakpoint_callback.
1509         (delete_step_thread_step_resume_breakpoint): Delete.
1510         (for_each_just_stopped_thread_callback_func): New typedef.
1511         (for_each_just_stopped_thread): New function.
1512         (delete_just_stopped_threads_infrun_breakpoints): New function.
1513         (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1514         (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1515         ... this.  Adjust.
1516         (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1517
1518 2014-10-15  Pedro Alves  <palves@redhat.com>
1519
1520         * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1521         trying to step past a non-steppable watchpoint.
1522         * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1523         field.
1524         * infrun.c (struct step_over_info): Add new field
1525         'nonsteppable_watchpoint_p' and adjust comments.
1526         (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1527         Adjust.
1528         (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1529         (stepping_past_nonsteppable_watchpoint): New function.
1530         (step_over_info_valid_p): Also return true if stepping past a
1531         nonsteppable watchpoint.
1532         (proceed): Adjust call to set_step_over_info.  Remove reference to
1533         init_infwait_state.
1534         (init_wait_for_inferior): Remove reference to init_infwait_state.
1535         (waiton_ptid): Delete global.
1536         (struct execution_control_state)
1537         <stepped_after_stopped_by_watchpoint>: Delete field.
1538         (wait_for_inferior, fetch_inferior_event): Always pass
1539         minus_one_ptid to target_wait.
1540         (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1541         field.
1542         (init_infwait_state): Delete function.
1543         (handle_inferior_event): Remove infwait_state handling.
1544         (handle_signal_stop) <watchpoints handling>: Adjust after
1545         stepped_after_stopped_by_watchpoint removal.  Don't remove
1546         breakpoints here nor set infwait_state.  Set the thread's
1547         stepping_over_watchpoint flag, and call keep_going instead.
1548         (keep_going): Handle stepping_over_watchpoint.  Adjust
1549         set_step_over_info calls.
1550         * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1551         function.
1552
1553 2014-10-15  Pedro Alves  <palves@redhat.com>
1554
1555         * infrun.c (step_over_info_valid_p): New function.
1556         (resume): Use step_over_info_valid_p instead of checking the
1557         threads's trap_expected flag.
1558
1559 2014-10-15  Doug Evans  <dje@google.com>
1560             Walfred Tedeschi  <walfred.tedeschi@intel.com>
1561
1562         PR python/17364
1563         * python/lib/gdb/__init__.py (packages): Add "printer".
1564         * python/lib/gdb/command/bound_registers.py: Moved to ...
1565         * python/lib/gdb/printer/bound_registers.py: ... here.
1566         Add printer to global set of builtin printers.  Rename printer from
1567         "bound" to "mpx_bound128".
1568         * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1569         registered as global "builtin" printer.
1570         (add_builtin_pretty_printer): New function.
1571         * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1572         gdb/printer/__init__.py.
1573
1574 2014-10-15  Iain Buclaw  <ibuclaw@gdcproject.org>
1575
1576         * Makefile.in (SFILES): Remove d-support.c.
1577         (COMMON_OBS): Remove d-support.o.
1578         * d-lang.h (d_parse_symbol): Remove declaration.
1579         * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1580         * d-support.c: Remove file.
1581
1582 2014-10-15  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1583
1584         * gdb/infrun.c (process_event_stop_test): Apply
1585         gdbarch_addr_bits_remove to longjmp resume address.
1586
1587 2014-10-15  Pedro Alves  <palves@redhat.com>
1588
1589         * regformats/microblaze.dat: Delete file.
1590
1591 2014-10-15  Ajit Agarwal  <ajitkum@xilinx.com>
1592
1593         * features/Makefile (microblaze-expedite): Replace pc with rpc.
1594         * regformats/microblaze-with-stack-protect.dat: Regenerate.
1595
1596 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
1597
1598         * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1599         as non-trivial.
1600
1601 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
1602
1603         PR c++/13403
1604         PR c++/15154
1605         * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1606         with qualified args.
1607
1608 2014-10-14  Joel Brobecker  <brobecker@adacore.com>
1609
1610         * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1611         of the case where the second operand is a pointer.
1612         <BINOP_SUB>: Likewise.
1613
1614 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
1615
1616         * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1617         only if it is not NULL.
1618         (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1619         * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1620         (struct probe_ops) <clear_semaphore>: Likewise.
1621         * tracepoint.c (start_tracing): Call set_semaphore only if it is
1622         not NULL.
1623         (stop_tracing): Likewise, for clear_semaphore.
1624
1625 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
1626
1627         * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1628         using language_c, instead of current_language.
1629
1630 2014-10-13  Doug Evans  <dje@google.com>
1631
1632         * python/py-objfile.c (objfpy_initialize): New function.
1633         (objfpy_new, objfile_to_objfile_object): Call it.
1634         * python/py-progspace.c (pspy_initialize): New function.
1635         (pspy_new, pspace_to_pspace_object): Call it.
1636
1637 2014-10-13  Miroslav Franc  <mfranc@redhat.com>
1638             Jan Kratochvil  <jan.kratochvil@redhat.com>
1639
1640         Fix "save breakpoints" for "catch" command.
1641         * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1642         newline.
1643
1644 2014-10-12  Miroslav Franc  <mfranc@redhat.com>
1645
1646         Fix "save breakpoints" for "disable $bpnum" command.
1647         * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1648
1649 2014-10-10  Pedro Alves  <palves@redhat.com>
1650
1651         * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1652         (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1653         (HFILES_NO_SRCDIR): Remove solib-irix.h.
1654         * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1655         and been removed.
1656         * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1657         * configure.ac: Remove references to IRIX.
1658         * configure.host: Add *-*-irix* to the obsolete hosts section.
1659         Remove all other references to irix.
1660         * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1661         Delete files.
1662
1663 2014-10-10  Ajit Agarwal  <ajitkum@xilinx.com>
1664
1665         * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1666         isn't valid, release the tdesc arch data and return NULL.
1667
1668 2014-10-10  Pedro Alves  <palves@redhat.com>
1669
1670         * linux-tdep.c: Include observer.h.
1671         (linux_inferior_data): New global.
1672         (struct linux_info): New structure.
1673         (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1674         (get_linux_inferior_data): New functions.
1675         (linux_vsyscall_range): Rename to ...
1676         (linux_vsyscall_range_raw): ... this.
1677         (linux_vsyscall_range): New function; handles caching.
1678         (_initialize_linux_tdep): Register linux_inferior_data.  Install
1679         inferior_exit and inferior_appeared observers.
1680
1681 2014-10-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
1682             Pedro Alves  <palves@redhat.com>
1683
1684         PR symtab/14466
1685         * solib-svr4.c (svr4_read_so_list): Rename to ...
1686         (svr4_current_sos_1): ... this and change the function comment.
1687         (svr4_current_sos): New function.
1688
1689 2014-10-10  Pedro Alves  <palves@redhat.com>
1690
1691         * arch-utils.c (default_vsyscall_range): New function.
1692         * arch-utils.h (default_vsyscall_range): New declaration.
1693         * gdbarch.sh (vsyscall_range): New hook.
1694         * gdbarch.h, gdbarch.c: Regenerate.
1695         * linux-tdep.c (linux_vsyscall_range): New function.
1696         (linux_init_abi): Install linux_vsyscall_range as
1697         vsyscall_range gdbarch hook.
1698         * memrange.c (address_in_mem_range): New function.
1699         * memrange.h (address_in_mem_range): New declaration.
1700         * symfile-mem.c (find_vdso_size): Delete function.
1701         (add_vsyscall_page): Use gdbarch_vsyscall_range.
1702
1703 2014-10-10  Pedro Alves  <palves@redhat.com>
1704
1705         * infrun.c (normal_stop): Fix typo in comment.
1706
1707 2014-10-09  Sergio Durigan Junior  <sergiodj@redhat.com>
1708
1709         PR tdep/9390
1710         * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1711         typo when using logical AND to determine instruction type.
1712
1713 2014-10-09  Yao Qi  <yao@codesourcery.com>
1714
1715         * infrun.c (handle_signal_stop): Remove local variable
1716         'printed'.
1717
1718 2014-10-08  Stan Shebs  <stan@codesourcery.com>
1719
1720         * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1721
1722 2014-10-08  Gary Benson  <gbenson@redhat.com>
1723
1724         * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1725
1726 2014-10-08  Gary Benson  <gbenson@redhat.com>
1727
1728         * common/common-defs.h: Include common-exceptions.h.
1729         * exceptions.h: Do not include common-exceptions.h.
1730
1731 2014-10-08  Gary Benson  <gbenson@redhat.com>
1732
1733         * common/common-defs.h: Include cleanups.h.
1734         * common/common-exceptions.c: Do not include cleanups.h.
1735         * utils.h: Likewise.
1736
1737 2014-10-08  Gary Benson  <gbenson@redhat.com>
1738
1739         * ada-lang.c: Do not include exceptions.h.
1740         * ada-valprint.c: Likewise.
1741         * amd64-tdep.c: Likewise.
1742         * auto-load.c: Likewise.
1743         * block.c: Likewise.
1744         * break-catch-throw.c: Likewise.
1745         * breakpoint.c: Likewise.
1746         * btrace.c: Likewise.
1747         * c-lang.c: Likewise.
1748         * cli/cli-cmds.c: Likewise.
1749         * cli/cli-interp.c: Likewise.
1750         * cli/cli-script.c: Likewise.
1751         * completer.c: Likewise.
1752         * corefile.c: Likewise.
1753         * corelow.c: Likewise.
1754         * cp-abi.c: Likewise.
1755         * cp-support.c: Likewise.
1756         * cp-valprint.c: Likewise.
1757         * darwin-nat.c: Likewise.
1758         * dwarf2-frame-tailcall.c: Likewise.
1759         * dwarf2-frame.c: Likewise.
1760         * dwarf2loc.c: Likewise.
1761         * dwarf2read.c: Likewise.
1762         * eval.c: Likewise.
1763         * event-loop.c: Likewise.
1764         * event-top.c: Likewise.
1765         * f-valprint.c: Likewise.
1766         * frame-unwind.c: Likewise.
1767         * frame.c: Likewise.
1768         * gdbtypes.c: Likewise.
1769         * gnu-v2-abi.c: Likewise.
1770         * gnu-v3-abi.c: Likewise.
1771         * guile/scm-auto-load.c: Likewise.
1772         * guile/scm-breakpoint.c: Likewise.
1773         * guile/scm-cmd.c: Likewise.
1774         * guile/scm-frame.c: Likewise.
1775         * guile/scm-lazy-string.c: Likewise.
1776         * guile/scm-param.c: Likewise.
1777         * guile/scm-symbol.c: Likewise.
1778         * guile/scm-type.c: Likewise.
1779         * hppa-hpux-tdep.c: Likewise.
1780         * i386-tdep.c: Likewise.
1781         * inf-loop.c: Likewise.
1782         * infcall.c: Likewise.
1783         * infcmd.c: Likewise.
1784         * infrun.c: Likewise.
1785         * interps.c: Likewise.
1786         * interps.h: Likewise.
1787         * jit.c: Likewise.
1788         * linespec.c: Likewise.
1789         * linux-nat.c: Likewise.
1790         * linux-thread-db.c: Likewise.
1791         * m32r-rom.c: Likewise.
1792         * main.c: Likewise.
1793         * memory-map.c: Likewise.
1794         * mi/mi-cmd-break.c: Likewise.
1795         * mi/mi-cmd-stack.c: Likewise.
1796         * mi/mi-interp.c: Likewise.
1797         * mi/mi-main.c: Likewise.
1798         * monitor.c: Likewise.
1799         * nto-procfs.c: Likewise.
1800         * objc-lang.c: Likewise.
1801         * p-valprint.c: Likewise.
1802         * parse.c: Likewise.
1803         * ppc-linux-tdep.c: Likewise.
1804         * printcmd.c: Likewise.
1805         * probe.c: Likewise.
1806         * python/py-auto-load.c: Likewise.
1807         * python/py-breakpoint.c: Likewise.
1808         * python/py-cmd.c: Likewise.
1809         * python/py-finishbreakpoint.c: Likewise.
1810         * python/py-frame.c: Likewise.
1811         * python/py-framefilter.c: Likewise.
1812         * python/py-function.c: Likewise.
1813         * python/py-gdb-readline.c: Likewise.
1814         * python/py-inferior.c: Likewise.
1815         * python/py-infthread.c: Likewise.
1816         * python/py-lazy-string.c: Likewise.
1817         * python/py-linetable.c: Likewise.
1818         * python/py-param.c: Likewise.
1819         * python/py-prettyprint.c: Likewise.
1820         * python/py-symbol.c: Likewise.
1821         * python/py-type.c: Likewise.
1822         * python/py-value.c: Likewise.
1823         * python/python-internal.h: Likewise.
1824         * python/python.c: Likewise.
1825         * record-btrace.c: Likewise.
1826         * record-full.c: Likewise.
1827         * regcache.c: Likewise.
1828         * remote-fileio.c: Likewise.
1829         * remote-mips.c: Likewise.
1830         * remote.c: Likewise.
1831         * rs6000-aix-tdep.c: Likewise.
1832         * rs6000-nat.c: Likewise.
1833         * skip.c: Likewise.
1834         * solib-darwin.c: Likewise.
1835         * solib-dsbt.c: Likewise.
1836         * solib-frv.c: Likewise.
1837         * solib-ia64-hpux.c: Likewise.
1838         * solib-spu.c: Likewise.
1839         * solib-svr4.c: Likewise.
1840         * solib.c: Likewise.
1841         * spu-tdep.c: Likewise.
1842         * stack.c: Likewise.
1843         * stap-probe.c: Likewise.
1844         * symfile-mem.c: Likewise.
1845         * symmisc.c: Likewise.
1846         * target.c: Likewise.
1847         * thread.c: Likewise.
1848         * top.c: Likewise.
1849         * tracepoint.c: Likewise.
1850         * tui/tui-interp.c: Likewise.
1851         * typeprint.c: Likewise.
1852         * utils.c: Likewise.
1853         * valarith.c: Likewise.
1854         * valops.c: Likewise.
1855         * valprint.c: Likewise.
1856         * value.c: Likewise.
1857         * varobj.c: Likewise.
1858         * windows-nat.c: Likewise.
1859         * xml-support.c: Likewise.
1860
1861 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
1862
1863         * mips-tdep.c (add_offset_16): Rewrite to implement what the
1864         name implies.
1865         (extended_mips16_next_pc): Update accordingly.
1866
1867 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
1868
1869         * mips-tdep.c (mips16_instruction_is_compact_branch): New
1870         function.
1871         (micromips_instruction_is_compact_branch): Likewise.
1872         (mips16_scan_prologue): Terminate scanning upon seeing a branch
1873         or a compact jump, reaching a jump delay slot, or seeing a
1874         second non-prologue instruction.
1875         (micromips_scan_prologue): Also terminate scanning upon seeing a
1876         compact branch or jump, or reaching a branch or jump delay slot.
1877         (mips32_scan_prologue): Terminate scanning upon reaching a branch
1878         or jump delay slot, or seeing a second non-prologue instruction.
1879         (mips32_instruction_has_delay_slot): Retain instruction
1880         examination code only, update arguments accordingly and move
1881         instruction fetch pieces to...
1882         (mips32_insn_at_pc_has_delay_slot): ... this new function.
1883         (micromips_instruction_has_delay_slot): Likewise and to...
1884         (micromips_insn_at_pc_has_delay_slot): ... this new function.
1885         (mips16_instruction_has_delay_slot): Likewise and to...
1886         (mips16_insn_at_pc_has_delay_slot): ... this new function.
1887         (mips_single_step_through_delay): Update accordingly.
1888         (mips_adjust_breakpoint_address): Likewise.
1889
1890 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
1891
1892         * mips-tdep.c (micromips_instruction_has_delay_slot): When
1893         !mustbe32 also return 1 for 32-bit instructions.
1894         (mips16_instruction_has_delay_slot): Likewise.  Add an
1895         explanatory comment.
1896
1897 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
1898
1899         * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1900         symbols special.
1901
1902 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
1903
1904         * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1905         update comments.
1906         * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1907         for the breakpoint's address.  Don't preinitialize `placed_size'.
1908         (insert_bp_location): Set `reqstd_address' rather than
1909         `placed_address'.
1910         (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1911         (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1912         address.
1913         (bkpt_remove_location): Likewise.
1914         (deprecated_insert_raw_breakpoint): Likewise.
1915         (deprecated_remove_raw_breakpoint): Likewise.
1916         (find_single_step_breakpoint): Likewise.
1917         * mem-break.c (default_memory_insert_breakpoint): Use
1918         `reqstd_address' for the breakpoint's address.  Don't set
1919         `placed_address' or `placed_size' if breakpoint contents couldn't
1920         have been determined.
1921         * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1922         the breakpoint's address.
1923         (remote_insert_hw_breakpoint): Likewise.  Don't set
1924         `placed_address' or `placed_size' if breakpoint couldn't have been
1925         set.
1926         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1927         `reqstd_address' for the breakpoint's address.
1928         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1929         * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1930         * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1931         * microblaze-linux-tdep.c
1932         (microblaze_linux_memory_remove_breakpoint): Likewise.
1933         * monitor.c (monitor_insert_breakpoint): Likewise.
1934         * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1935         (procfs_insert_hw_breakpoint): Likewise.
1936         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1937         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1938         * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1939         * remote-mips.c (mips_insert_breakpoint): Likewise.
1940         * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1941
1942 2014-10-03  Luis Machado  <lgustavo@codesourcery.com>
1943
1944         * valops.c (value_assign): Check for bit field assignments
1945         before calling architecture-specific register value
1946         conversion functions.
1947
1948 2014-10-03  Pierre Muller  <muller@sourceware.org>
1949
1950         * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1951
1952 2014-10-02  Pedro Alves  <palves@redhat.com>
1953
1954         * breakpoint.c (breakpoints_should_be_inserted_now): Use
1955         threads_are_executing.
1956         * breakpoint.h (breakpoints_should_be_inserted_now): Add
1957         describing comment.
1958         * gdbthread.h (threads_are_executing): Declare.
1959         (handle_signal_stop) <random signals>: Don't print about the
1960         signal here if stopping.
1961         (end_stepping_range): Don't notify observers here.
1962         (normal_stop): Update the thread list.  If stopped by a random
1963         signal or a stepping range ended, notify observers.
1964         * thread.c (threads_executing): New global.
1965         (init_thread_list): Clear 'threads_executing'.
1966         (set_executing): Set or clear 'threads_executing'.
1967         (threads_are_executing): New function.
1968         (update_threads_executing): New function.
1969         (update_thread_list): Use it.
1970
1971 2014-10-02  Pedro Alves  <palves@redhat.com>
1972
1973         PR breakpoints/17431
1974         * breakpoint.c (update_breakpoints_after_exec): Don't create
1975         overlay, longjmp, std terminate nor exception breakpoints here.
1976
1977 2014-10-02  Pedro Alves  <palves@redhat.com>
1978
1979         * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1980         Adjust comments.
1981         * inferior.c (find_inferior_for_program_space): Give preference to
1982         the current inferior.
1983         * inferior.h (find_inferior_for_program_space): Update comment.
1984         * progspace.c (switch_to_program_space_and_thread): Prefer the
1985         current inferior if it's bound to the program space requested.  If
1986         the inferior found doesn't have a PID yet, don't bother looking up
1987         a thread.
1988         * progspace.h (switch_to_program_space_and_thread): Adjust
1989         comment.
1990         * thread.c (any_thread_of_process, any_live_thread_of_process):
1991         Give preference to the current thread.
1992
1993 2014-10-01  Pedro Alves  <palves@redhat.com>
1994
1995         * breakpoint.c (insert_bp_location): Error out if inserting a
1996         software breakpoint at a read-only address.
1997         * target.c (memory_xfer_check_region): New function, factored out
1998         from ...
1999         (memory_xfer_partial_1): ... this.  Make the 'reg_len' local a
2000         ULONGEST.
2001         (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2002         against the memory region attributes.
2003
2004 2014-10-01  Simon Marchi  <simon.marchi@ericsson.com>
2005
2006         * NEWS: Announce new exit-code field in -list-thread-groups
2007         output.
2008         * inferior.c (exit_inferior_1): Don't clear exit code.
2009         (inferior_appeared): Clear exit code.
2010         * mi/mi-main.c (print_one_inferior): Add printing of the exit
2011         code.
2012
2013 2014-10-01  Pedro Alves  <palves@redhat.com>
2014
2015         * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2016         GENERATED" along with emacs/vi read-only markers.
2017         * regformats/aarch64.dat: Regenerate.
2018         * regformats/arm-with-iwmmxt.dat: Regenerate.
2019         * regformats/arm-with-neon.dat: Regenerate.
2020         * regformats/arm-with-vfpv2.dat: Regenerate.
2021         * regformats/arm-with-vfpv3.dat: Regenerate.
2022         * regformats/i386/amd64-avx-linux.dat: Regenerate.
2023         * regformats/i386/amd64-avx.dat: Regenerate.
2024         * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2025         * regformats/i386/amd64-avx512.dat: Regenerate.
2026         * regformats/i386/amd64-linux.dat: Regenerate.
2027         * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2028         * regformats/i386/amd64-mpx.dat: Regenerate.
2029         * regformats/i386/amd64.dat: Regenerate.
2030         * regformats/i386/i386-avx-linux.dat: Regenerate.
2031         * regformats/i386/i386-avx.dat: Regenerate.
2032         * regformats/i386/i386-avx512-linux.dat: Regenerate.
2033         * regformats/i386/i386-avx512.dat: Regenerate.
2034         * regformats/i386/i386-linux.dat: Regenerate.
2035         * regformats/i386/i386-mmx-linux.dat: Regenerate.
2036         * regformats/i386/i386-mmx.dat: Regenerate.
2037         * regformats/i386/i386-mpx-linux.dat: Regenerate.
2038         * regformats/i386/i386-mpx.dat: Regenerate.
2039         * regformats/i386/i386.dat: Regenerate.
2040         * regformats/i386/x32-avx-linux.dat: Regenerate.
2041         * regformats/i386/x32-avx.dat: Regenerate.
2042         * regformats/i386/x32-avx512-linux.dat: Regenerate.
2043         * regformats/i386/x32-avx512.dat: Regenerate.
2044         * regformats/i386/x32-linux.dat: Regenerate.
2045         * regformats/i386/x32.dat: Regenerate.
2046         * regformats/microblaze-with-stack-protect.dat: Regenerate.
2047         * regformats/mips-dsp-linux.dat: Regenerate.
2048         * regformats/mips-linux.dat: Regenerate.
2049         * regformats/mips64-dsp-linux.dat: Regenerate.
2050         * regformats/mips64-linux.dat: Regenerate.
2051         * regformats/nios2-linux.dat: Regenerate.
2052         * regformats/rs6000/powerpc-32.dat: Regenerate.
2053         * regformats/rs6000/powerpc-32l.dat: Regenerate.
2054         * regformats/rs6000/powerpc-64l.dat: Regenerate.
2055         * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2056         * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2057         * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2058         * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2059         * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2060         * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2061         * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2062         * regformats/s390-linux32.dat: Regenerate.
2063         * regformats/s390-linux32v1.dat: Regenerate.
2064         * regformats/s390-linux32v2.dat: Regenerate.
2065         * regformats/s390-linux64.dat: Regenerate.
2066         * regformats/s390-linux64v1.dat: Regenerate.
2067         * regformats/s390-linux64v2.dat: Regenerate.
2068         * regformats/s390-te-linux64.dat: Regenerate.
2069         * regformats/s390x-linux64.dat: Regenerate.
2070         * regformats/s390x-linux64v1.dat: Regenerate.
2071         * regformats/s390x-linux64v2.dat: Regenerate.
2072         * regformats/s390x-te-linux64.dat: Regenerate.
2073         * regformats/tic6x-c62x-linux.dat: Regenerate.
2074         * regformats/tic6x-c62x.dat: Regenerate.
2075         * regformats/tic6x-c64x-linux.dat: Regenerate.
2076         * regformats/tic6x-c64x.dat: Regenerate.
2077         * regformats/tic6x-c64xp-linux.dat: Regenerate.
2078         * regformats/tic6x-c64xp.dat: Regenerate.
2079
2080 2014-10-01  Pedro Alves  <palves@redhat.com>
2081
2082         * features/Makefile: Update comments.
2083         (XMLTOC): List all xml files we build C files from.
2084         (clean-cfiles): New rule.
2085
2086 2014-10-01  Pedro Alves  <palves@redhat.com>
2087
2088         * features/i386/amd64-avx512-linux.c: Regenerate.
2089         * features/i386/amd64-avx512.c: Regenerate.
2090         * features/i386/x32-avx512-linux.c: Regenerate.
2091         * features/i386/x32-avx512.c: Regenerate.
2092
2093 2014-10-01  Pedro Alves  <palves@redhat.com>
2094
2095         * features/Makefile (WHICH): Remove arm-with-m,
2096         arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2097
2098 2014-10-01  Pedro Alves  <palves@redhat.com>
2099
2100         * features/Makefile (clean): New rule.
2101
2102 2014-10-01  Pedro Alves  <palves@redhat.com>
2103
2104         * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2105         (zmm14h): Add missing end quotes.
2106
2107 2014-10-01  Pedro Alves  <palves@redhat.com>
2108
2109         * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2110         * features/aarch64.c: Regenerate.
2111
2112 2014-09-30  Don Breazeal  <donb@codesourcery.com>
2113
2114         * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2115         code so as to work with follow_fork_inferior.
2116         * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2117         (inf_ttrace_create_inferior): Remove reference to
2118         inf_ttrace_vfork_ppid.
2119         (inf_ttrace_attach): Ditto.
2120         (inf_ttrace_detach): Ditto.
2121         (inf_ttrace_kill): Use current_inferior instead of
2122         inf_ttrace_vfork_ppid.
2123         (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2124         TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2125         inferior away from the parent.
2126         * infrun.c (follow_fork): Call follow_fork_inferior instead of
2127         target_follow_fork.
2128         (follow_fork_inferior): New function.
2129         (follow_inferior_reset_breakpoints): Make function static.
2130         * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2131         * linux-nat.c (linux_child_follow_fork): Move target-independent
2132         code to infrun.c:follow_fork_inferior.
2133
2134 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2135
2136         * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2137         * gdbarch.c: Regenerate.
2138         * gdbarch.h: Likewise.
2139         * corelow.c (sniff_core_bfd): Drop presence check for deleted
2140         gdbarch method 'regset_from_core_section'.
2141         (get_core_register_section): Remove handling for the case that
2142         regset == NULL and regset_from_core_section is defined.
2143         (get_core_registers): Drop check for deleted method.
2144         * procfs.c (procfs_do_thread_registers): Adjust comment.
2145
2146 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2147
2148         * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2149         (linux_nat_make_corefile_notes): Remove.
2150         (linux_target_install_ops): Do not set target method
2151         'make_corefile_notes'.
2152         * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2153         Remove field.
2154         (linux_corefile_thread_callback): Instead of args->collect, call
2155         linux_collect_thread_registers.
2156         (linux_make_corefile_notes): Remove 'collect' parameter.  Return
2157         NULL unless there is a regset iterator.
2158         (linux_make_corefile_notes_1): Remove.
2159         (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2160         by linux_make_corefile_notes.
2161         * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2162
2163 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2164
2165         * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2166         (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2167         Remove.
2168         * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2169
2170 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2171
2172         * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2173         (xtensa_iterate_over_regset_sections): New.
2174         (xtensa_gdbarch_init): Adjust gdbarch initialization.
2175
2176 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2177
2178         * vax-tdep.c (vax_regset_from_core_section): Remove.
2179         (vax_iterate_over_regset_sections): New.
2180         (vax_gdbarch_init): Adjust gdbarch initialization.
2181
2182 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2183
2184         * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2185         (tilegx_regset_from_core_section): Remove.
2186         (tilegx_iterate_over_regset_sections): New.
2187         (tilegx_linux_init_abi): Adjust gdbarch initialization.
2188
2189 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2190
2191         * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2192         (sparc_iterate_over_regset_sections): New.
2193         (sparc32_gdbarch_init): Adjust gdbarch initialization.
2194         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2195         targets.
2196         * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2197         (sparc64fbsd_init_abi): Call fbsd_init_abi.
2198         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2199         target method 'make_corefile_notes'.
2200
2201 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2202
2203         * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2204         'sizeof_gregset' and 'sizeof_fpregset'.
2205         * sh-tdep.c (sh_regset_from_core_section): Remove.
2206         (sh_iterate_over_regset_sections): New.
2207         (sh_gdbarch_init): Adjust gdbarch initialization.
2208         * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2209         sizeof_fpregset.
2210         * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2211         'sizeof_gregset'.
2212
2213 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2214
2215         * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2216         (score7_linux_iterate_over_regset_sections): New.
2217         (score_gdbarch_init): Adjust gdbarch initialization.
2218
2219 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2220
2221         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2222         FreeBSD targets.
2223         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2224         method 'make_corefile_notes'.
2225         * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2226         (ppcfbsd_regset_from_core_section): Remove.
2227         (ppcfbsd_iterate_over_regset_sections): New.
2228         (ppcfbsd_init_abi): Call fbsd_init_abi.  Adjust gdbarch
2229         initialization.
2230         * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2231         (ppcnbsd_iterate_over_regset_sections): New.
2232         (ppcnbsd_init_abi): Adjust.
2233         * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2234         (ppcobsd_iterate_over_regset_sections): New.
2235         (ppcobsd_init_abi): Adjust.
2236         * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2237         (rs6000_aix_iterate_over_regset_sections): New.
2238         (rs6000_aix_init_osabi): Adjust.
2239
2240 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2241
2242         * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2243         (nios2_regset_from_core_section): Remove.
2244         (nios2_iterate_over_regset_sections): New.
2245         (nios2_linux_init_abi): Adjust gdbarch initialization.
2246
2247 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2248
2249         * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2250         (am33_iterate_over_regset_sections): New.
2251         (am33_linux_init_osabi): Adjust gdbarch initialization.
2252
2253 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2254
2255         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2256         (mips_linux_iterate_over_regset_sections): New.
2257         (mips_linux_init_abi): Adjust gdbarch initialization.
2258         * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2259         (mips64obsd_iterate_over_regset_sections): New.
2260         (mips64obsd_init_abi): Adjust.
2261         * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2262         (mipsnbsd_iterate_over_regset_sections): New.
2263         (mipsnbsd_init_abi): Adjust.
2264
2265 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2266
2267         * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2268         (m88k_iterate_over_regset_sections): New.
2269         (m88k_gdbarch_init): Adjust gdbarch initialization.
2270
2271 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2272
2273         * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2274         (ia64_linux_iterate_over_regset_sections): New.
2275         (ia64_linux_init_abi): Adjust gdbarch initialization.
2276
2277 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2278
2279         * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2280         (m68kbsd_iterate_over_regset_sections): New.
2281         (m68kbsd_init_abi): Adjust gdbarch initialization.
2282         * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2283         (m68k_linux_iterate_over_regset_sections): New.
2284         (m68k_linux_init_abi): Adjust gdbarch initialization.
2285
2286 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2287
2288         * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2289         (m32r_linux_regset_from_core_section): Remove.
2290         (m32r_linux_iterate_over_regset_sections): New.
2291         (m32r_linux_init_abi): Adjust gdbarch initialization.
2292
2293 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2294
2295         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2296         (amd64obsd_iterate_over_regset_sections): New.
2297         (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2298         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2299         Remove.
2300         (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset.  Drop
2301         regset_from_core_section initialization.
2302         * i386-tdep.c (i386_regset_from_core_section): Remove.
2303         (i386_iterate_over_regset_sections): New.
2304         (i386_gdbarch_init): Adjust gdbarch initialization.
2305         * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2306         (i386_iterate_over_regset_sections): New prototype.
2307         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2308         Remove.
2309         (i386obsd_aout_iterate_over_regset_sections): New.
2310         (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2311         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2312         targets.
2313         * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2314         (amd64fbsd_init_abi): Call fbsd_init_abi.
2315         * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2316         (i386fbsd4_init_abi): Call fbsd_init_abi.
2317         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2318         target method 'make_corefile_notes'.
2319         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2320
2321 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2322
2323         * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2324         (hppa_hpux_iterate_over_regset_sections): New.
2325         (hppa_hpux_init_abi): Adjust gdbarch initialization.
2326         * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2327         (hppa_linux_iterate_over_regset_sections): New.
2328         (hppa_linux_init_abi): Adjust.
2329         * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2330         (hppanbsd_iterate_over_regset_sections): New.
2331         (hppanbsd_init_abi): Adjust.
2332         * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2333         (hppaobsd_iterate_over_regset_sections): New.
2334         (hppaobsd_init_abi): Adjust.
2335
2336 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2337
2338         * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2339         (frv_linux_iterate_over_regset_sections): New.
2340         (frv_linux_init_abi): Adjust gdbarch initialization.
2341
2342 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2343
2344         * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2345         (armbsd_iterate_over_regset_sections): New prototype.
2346         * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2347         (armbsd_iterate_over_regset_sections): New.
2348         * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2349         initialization.
2350
2351 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2352
2353         * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2354         (alpha_linux_iterate_over_regset_sections): New.
2355         (alpha_linux_init_abi): Adjust gdbarch initialization.
2356         * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2357         prototype.
2358         (alphanbsd_iterate_over_regset_sections): New prototype.
2359
2360 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2361
2362         * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2363         Remove.
2364         (aarch64_linux_iterate_over_regset_sections): New.
2365         (aarch64_linux_init_abi): Adjust gdbarch initialization.
2366
2367 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2368
2369         * fbsd-tdep.c: New file.
2370         * fbsd-tdep.h: New file.
2371         * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2372         (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2373         (ALLDEPFILES): Add fbsd-tdep.c.
2374
2375 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2376
2377         * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2378         parameter.
2379         * gdbarch.h: Regenerate.
2380         * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2381         iterator.
2382         (get_core_register_section): Add parameter 'regset' and use it, if
2383         set.  Add parameter 'min_size' and verify the bfd section size
2384         against it.
2385         (get_core_registers_cb): Add parameter 'regset' and pass it to
2386         get_core_register section.  For the "standard" register sections
2387         ".reg" and ".reg2", set an appropriate default for human_name.
2388         (get_core_registers): Don't abort when the gdbarch has an iterator
2389         but no regset_from_core_section.  Add NULL/0 for parameters
2390         'regset'/'min_size' in calls to get_core_register_section.
2391         * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2392         'regset' and use it instead of calling the
2393         regset_from_core_section gdbarch method.
2394         * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2395         * i386-tdep.c (i386_supply_xstateregset)
2396         (i386_collect_xstateregset, i386_xstateregset): Moved to
2397         i386-linux-tdep.c.
2398         (i386_regset_from_core_section): Drop handling for .reg-xfp and
2399         .reg-xstate.
2400         (i386_gdbarch_init): Set tdep field 'fpregset'.  Enable generic
2401         core file support only if the regset iterator hasn't been set.
2402         * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2403         (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2404         Moved from i386-tdep.c and renamed to *_linux*.
2405         (i386_linux_iterate_over_regset_sections): Add regset parameter to
2406         each callback invocation.  Allow any .reg-xstate size when reading
2407         from a core file.
2408         * amd64-tdep.c (amd64_supply_xstateregset)
2409         (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2410         amd64-linux-tdep.c.
2411         (amd64_regset_from_core_section): Remove.
2412         (amd64_init_abi): Set new tdep field 'fpregset'.  No longer
2413         install an amd64-specific regset_from_core_section gdbarch method.
2414         * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2415         (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2416         Moved from amd64-tdep.c and renamed to *_linux*.
2417         (amd64_linux_iterate_over_regset_sections): Add regset parameter
2418         to each callback invocation.  Allow any .reg-xstate size when
2419         reading from a core file.
2420         * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2421         (arm_linux_iterate_over_regset_sections): Add regset parameter to
2422         each callback invocation.
2423         (arm_linux_init_abi): No longer set the regset_from_core_section
2424         gdbarch method.
2425         * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2426         (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2427         each callback invocation.
2428         (ppc_linux_init_abi): No longer set the regset_from_core_section
2429         gdbarch method.
2430         * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2431         gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2432         (s390_regset_from_core_section): Remove.
2433         (s390_iterate_over_regset_sections): Add regset parameter to each
2434         callback invocation.
2435         (s390_gdbarch_init): No longer set the regset_from_core_section
2436         gdbarch method.  Drop initialization of deleted tdep fields.
2437
2438 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2439
2440         * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2441         (amd64_linux_iterate_over_regset_sections): New.
2442         (amd64_linux_init_abi_common): Don't install the regset section
2443         list, but the new iterator in gdbarch.
2444         * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2445         (arm_linux_vfp_regset_sections): Remove.  Move combined logic...
2446         (arm_linux_iterate_over_regset_sections): ...here.  New function.
2447         (arm_linux_init_abi): Set iterator instead of section list.
2448         * corelow.c (get_core_registers_cb): New function, logic moved
2449         from...
2450         (get_core_registers): ...loop body here.  Use new iterator method
2451         instead of walking through the regset section list.
2452         * gdbarch.sh: Remove 'core_regset_sections'.  New method
2453         'iterate_over_regset_sections'.  New typedef
2454         'iterate_over_regset_sections_cb'.
2455         * gdbarch.c: Regenerate.
2456         * gdbarch.h: Likewise.
2457         * i386-linux-tdep.c (i386_linux_regset_sections)
2458         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2459         Remove.
2460         (i386_linux_iterate_over_regset_sections): New.
2461         (i386_linux_init_abi): Don't choose a regset section list, but
2462         install new iterator in gdbarch.
2463         * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2464         (linux_collect_regset_section_cb): New function, logic moved
2465         from...
2466         (linux_collect_thread_registers): ...loop body here.  Use iterator
2467         method instead of walking through list.
2468         (linux_make_corefile_notes_1): Check for presence of iterator
2469         method instead of regset section list.
2470         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2471         (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2472         (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2473         (ppc64_linux_fp_regset_sections): Remove.  Move combined logic...
2474         (ppc_linux_iterate_over_regset_sections): ...here.  New function.
2475         (ppc_linux_init_abi): Don't choose from above regset section
2476         lists, but install new iterator in gdbarch.
2477         * regset.h (struct core_regset_section): Remove.
2478         * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2479         have_linux_v1, have_linux_v2, and have_tdb.
2480         (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2481         (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2482         (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2483         (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2484         (s390x_linux64v2_regset_sections): Remove.  Move combined logic...
2485         (s390_iterate_over_regset_sections): ...here.  New function.  Use
2486         new tdep fields.
2487         (s390_gdbarch_init): Set new tdep fields.  Don't choose from above
2488         regset section lists, but install new iterator.
2489
2490 2014-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
2491
2492         * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2493
2494 2014-09-26  Simon Marchi  <simon.marchi@ericsson.com>
2495
2496         * progspace.c (print_program_space): Don't prune program spaces
2497         before printing them.
2498
2499 2014-09-25  Pedro Alves  <palves@redhat.com>
2500
2501         * infrun.c (user_visible_resume_ptid): Don't check
2502         singlestep_breakpoints_inserted_p.
2503
2504 2014-09-25  Pedro Alves  <palves@redhat.com>
2505
2506         * breakpoint.c (should_be_inserted): Add debug output.
2507
2508 2014-09-25  Pedro Alves  <palves@redhat.com>
2509
2510         * infrun.c (stepping_past_instruction_at)
2511         (clear_exit_convenience_vars): Point at infrun.h instead of
2512         inferior.h.
2513         (handle_signal_stop): Fix typo.
2514
2515 2014-09-24  Yao Qi  <yao@codesourcery.com>
2516
2517         * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2518         bitmask.
2519
2520 2014-09-22  Gary Benson  <gbenson@redhat.com>
2521
2522         * target.c (target_stop): Updated comment.
2523
2524 2014-09-22  Gary Benson  <gbenson@redhat.com>
2525
2526         * target/target.h (target_stop_ptid): Renamed as...
2527         (target_stop_and_wait): New function.  Updated comment.
2528         All uses updated.
2529         (target_continue_ptid): Renamed as...
2530         (target_continue_no_signal): New function.  Updated comment.
2531         All uses updated.
2532
2533 2014-09-22  Pedro Alves  <palves@redhat.com>
2534
2535         * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2536         and "auto" merged.
2537         * breakpoint.c (enum ugll_insert_mode): New enum.
2538         (always_inserted_mode): Now a plain boolean.
2539         (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2540         (breakpoints_always_inserted_mode): Delete.
2541         (breakpoints_should_be_inserted_now): New function.
2542         (insert_breakpoints): Pass UGLL_INSERT to
2543         update_global_location_list instead of calling
2544         insert_breakpoint_locations manually.
2545         (create_solib_event_breakpoint_1): New, factored out from ...
2546         (create_solib_event_breakpoint): ... this.
2547         (create_and_insert_solib_event_breakpoint): Use
2548         create_solib_event_breakpoint_1 instead of calling
2549         insert_breakpoint_locations manually.
2550         (update_global_location_list): Change parameter type from boolean
2551         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
2552         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2553         (update_global_location_list_nothrow): Change parameter type from
2554         boolean to enum ugll_insert_mode.
2555         (_initialize_breakpoint): "breakpoint always-inserted" option is
2556         now a boolean command.  Update help text.
2557         * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2558         (breakpoints_should_be_inserted_now): New declaration.
2559         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2560         Remove breakpoints_always_inserted_mode check.
2561         (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2562         * remote.c (remote_start_remote): Likewise.
2563
2564 2014-09-22  Pedro Alves  <palves@redhat.com>
2565
2566         * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2567         (insert_breakpoints): Don't call insert_breakpoint_locations here.
2568         Instead, pass UGLL_INSERT to update_global_location_list.
2569         (update_global_location_list): Change parameter type from boolean
2570         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
2571         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2572         (create_solib_event_breakpoint_1): New, factored out from ...
2573         (create_solib_event_breakpoint): ... this.
2574         (create_and_insert_solib_event_breakpoint): Use
2575         create_solib_event_breakpoint_1 instead of calling
2576         insert_breakpoint_locations manually.
2577         (update_global_location_list): Handle UGLL_INSERT.
2578
2579 2014-09-22  Pedro Alves  <palves@redhat.com>
2580
2581         * breakpoint.c (enum ugll_insert_mode): New enum.
2582         (update_global_location_list)
2583         (update_global_location_list_nothrow): Change parameter type from
2584         boolean to enum ugll_insert_mode.  All callers adjusted.
2585
2586 2014-09-19  Joel Brobecker  <brobecker@adacore.com>
2587
2588         * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2589         SystemTap support in GDB.
2590
2591 2014-09-19  Don Breazeal  <donb@codesourcery.com>
2592
2593         * linux-nat.c (linux_handle_extended_wait): Call
2594         linux_ptrace_get_extended_event.
2595         (wait_lwp): Call linux_is_extended_waitstatus.
2596         (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2597         and linux_is_extended_waitstatus.
2598         * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2599         linux_ptrace_get_extended_event.
2600         (linux_ptrace_get_extended_event): New function.
2601         (linux_is_extended_waitstatus): New function.
2602         * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2603         (linux_is_extended_waitstatus): New declarations.
2604
2605 2014-09-19  Yao Qi  <yao@codesourcery.com>
2606
2607         * dwarf2read.c (dwarf_decode_lines): Update declaration.
2608         (handle_DW_AT_stmt_list): Add argument 'lowpc'.  Update
2609         comments.  Callers update.
2610         (dwarf_decode_lines): Likewise.
2611         (dwarf_decode_lines_1): Add argument 'lowpc'.  Update
2612         comments.  Skip the line table if  'lowpc' is greater than
2613         'address'.  Don't check
2614         dwarf2_per_objfile->has_section_at_zero.
2615
2616 2014-09-18  Doug Evans  <dje@google.com>
2617
2618         * NEWS: Mention new "producer" attribute of gdb.Symtab.
2619         * python/py-symtab.c (stpy_get_producer): New function.
2620         (symtab_object_getset): Add "producer" attribute.
2621
2622 2014-09-17  Ulrich Weigand  <uweigand@de.ibm.com>
2623
2624         PR gdb/17384
2625         * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2626         (do_captured_read_memory_integer): Remove.
2627         (safe_read_memory_integer): Use target_read_memory directly instead
2628         of catching errors in do_captured_read_memory_integer.
2629
2630 2014-09-16  Maciej W. Rozycki  <macro@codesourcery.com>
2631
2632         * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2633         not gdb/doc.
2634
2635 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
2636
2637         * objc-lang.c (find_implementation_from_class): Remove dead code.
2638
2639 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
2640
2641         PR cli/7233
2642         * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2643         "fprintf_unfiltered (gdb_stdlog...)".
2644
2645 2014-09-16  Patrick Palka  <patrick@parcs.ath.cx>
2646
2647         PR breakpoints/12526
2648         * breakpoint.h (struct watchpoint): New fields val_bitpos and
2649         val_bitsize.
2650         * breakpoint.c (watch_command_1): Use these fields to retain
2651         bitfield information.
2652         (extract_bitfield_from_watchpoint_value): New function.
2653         (watchpoint_check): Use it.
2654         (update_watchpoint): Use it.  Optimize the address and length of a
2655         HW watchpoint pointing to a bitfield.
2656         * value.h (unpack_value_bitfield): New prototype.
2657         * value.c (unpack_value_bitfield): Make extern.
2658
2659 2014-09-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2660
2661         * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2662         x86-dregs.o.
2663         * gnu-nat.c (inf_threads): New function.
2664         * gnu-nat.h (inf_threads_ftype): New typedef.
2665         (inf_threads): New declaration.
2666         * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2667         [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2668         (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2669         (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2670         (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2671         (i386_gnu_dr_get_control): New functions.
2672         (reg_addr): New structure.
2673         (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2674         i386 debugging register hooks.
2675         * NEWS: Mention this.
2676
2677 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2678
2679         * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2680         vector data transfer instructions.
2681         (arm_record_coproc_data_proc): Updated.
2682
2683 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2684
2685         * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2686         arm_record_exreg_ld_st_insn.
2687         (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2688         load/store insns.
2689
2690 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2691
2692         * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2693         (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2694         processing instructions.
2695
2696 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2697
2698         * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2699         for advance SIMD struct ld/st insn.
2700         (thumb2_record_decode_insn_handler): Replace stub handler with
2701         thumb2_record_asimd_struct_ld_st.
2702
2703 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2704
2705         * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2706         for asimd, vfp and coprocessor insns.
2707         (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2708         and coprocessor insns.
2709         (thumb2_record_coproc_insn): New function.
2710         (thumb2_record_decode_insn_handler): Update coprocessor insns record
2711         handlers.
2712         (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2713         opcode 110 insns.
2714
2715 2014-09-13  Doug Evans  <xdje42@gmail.com>
2716
2717         * NEWS: Mention new "queue-signal" command.
2718         * infcmd.c (queue_signal_command): New function.
2719         (_initialize_infcmd): Add new queue-signal command.
2720
2721 2014-09-13  Doug Evans  <xdje42@gmail.com>
2722
2723         * linux-nat.c (wait_lwp): Add debugging printf.
2724         (linux_nat_wait_1): Ditto.
2725
2726 2014-09-12  Pedro Alves  <palves@redhat.com>
2727
2728         * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2729         (create_and_insert_solib_event_breakpoint): New functions.
2730         * breakpoint.h (create_and_insert_solib_event_breakpoint)
2731         (remove_solib_event_breakpoints_at_next_stop): New declarations.
2732         * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2733         (remove_dbx_link_breakpoint): Delete function.
2734         (insert_dbx_link_bpt_in_file): Use
2735         create_and_insert_solib_event_breakpoint instead of
2736         deprecated_insert_raw_breakpoint.
2737         (procfs_wait): Don't check whether we hit __dbx_link here.
2738         (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2739         here.
2740         * solib-irix.c (base_breakpoint): Delete global.
2741         (disable_break): Delete function.
2742         (enable_break): Use create_solib_event_breakpoint
2743         instead of deprecated_insert_raw_breakpoint.
2744         (irix_solib_handle_event): New function.
2745         (irix_solib_create_inferior_hook): Don't run the target or disable
2746         the mapping-complete breakpoint here.
2747         (_initialize_irix_solib): Install irix_solib_handle_event as
2748         so_ops->handle_event hook.
2749
2750 2014-09-12  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
2751             Ulrich Weigand  <uweigand@de.ibm.com>
2752
2753         PR tdep/17379
2754         * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2755         instead of read_memory_unsigned_integer.
2756
2757 2014-09-12  Gary Benson  <gbenson@redhat.com>
2758
2759         * nat/linux-waitpid.c: Include common-defs.h.
2760         [GDBSERVER]: Add FIXME comment.
2761         [!GDBSERVER]: Don't include defs.h or signal.h.
2762         (linux_debug) [!GDBSERVER]: Remove empty block.
2763
2764 2014-09-12  Gary Benson  <gbenson@redhat.com>
2765
2766         * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2767         Don't include defs.h or server.h.
2768
2769 2014-09-12  Gary Benson  <gbenson@redhat.com>
2770
2771         * nat/linux-btrace.c: Include common-defs.h.
2772         Don't include defs.h, server.h or gdbthread.h.
2773         * nat/linux-btrace.h (struct target_ops): New forward declaration.
2774
2775 2014-09-12  Gary Benson  <gbenson@redhat.com>
2776
2777         * common/agent.c: Include common-defs.h.
2778         Don't include defs.h or server.h.
2779         * common/buffer.c: Likewise.
2780         * common/common-debug.c: Likewise.
2781         * common/common-utils.c: Likewise.
2782         * common/errors.c: Likewise.
2783         * common/filestuff.c: Likewise.
2784         * common/format.c: Likewise.
2785         * common/gdb_vecs.c: Likewise.
2786         * common/print-utils.c: Likewise.
2787         * common/ptid.c: Likewise.
2788         * common/rsp-low.c: Likewise.
2789         * common/signals.c: Likewise.
2790         * common/vec.c: Likewise.
2791         * common/xml-utils.c: Likewise.
2792         * nat/linux-osdata.c: Likewise.
2793         * nat/linux-procfs.c: Likewise.
2794         * nat/linux-ptrace.c: Likewise.
2795         * nat/mips-linux-watch.c: Likewise.
2796         * target/waitstatus.c: Likewise.
2797
2798 2014-09-12  Tom Tromey  <tromey@redhat.com>
2799             Gary Benson  <gbenson@redhat.com>
2800
2801         * common/common-regcache.h: New file.
2802         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2803         * regcache.h: Include common-regcache.h.
2804         (regcache_read_pc): Don't declare.
2805         * regcache.c (get_thread_regcache_for_ptid): New function.
2806         * nat/linux-btrace.c: Don't include regcache.h.
2807         Include common-regcache.h.
2808         (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2809
2810 2014-09-11  Thomas Schwinge  <thomas@codesourcery.com>
2811
2812         * regcache.h (struct regset): Declare.
2813
2814 2014-09-11  Pedro Alves  <palves@redhat.com>
2815
2816         PR gdb/17347
2817         * main.c: Include "infrun.h".
2818         (catch_command_errors, catch_command_errors_const): Wait for the
2819         foreground command to complete.
2820         * top.c (maybe_wait_sync_command_done): New function, factored out
2821         from ...
2822         (maybe_wait_sync_command_done): ... here.
2823         * top.h (maybe_wait_sync_command_done): New declaration.
2824
2825 2014-09-11  Tom Tromey  <tromey@redhat.com>
2826             Gary Benson  <gbenson@redhat.com>
2827
2828         * common/symbol.h: New file.
2829         * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2830         * minsyms.c (find_minimal_symbol_address): New function.
2831         * common/agent.c: Include common/symbol.h.
2832         [!GDBSERVER]: Don't include objfiles.h.
2833         (agent_look_up_symbols): Use find_minimal_symbol_address.
2834
2835 2014-09-11  Gary Benson  <gbenson@redhat.com>
2836
2837         * target/target.h (target_stop_ptid, target_continue_ptid):
2838         Declare.
2839         * target.c (target_stop_ptid, target_continue_ptid): New
2840         functions.
2841         * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2842         (agent_run_command): Always use target_stop_ptid and
2843         target_continue_ptid.
2844
2845 2014-09-11  Tom Tromey  <tromey@redhat.com>
2846             Gary Benson  <gbenson@redhat.com>
2847
2848         * target/target.h: New file.
2849         * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2850         * target.h: Include target/target.h.
2851         (target_read_memory, target_write_memory): Don't declare.
2852         * target.c (target_read_uint32): New function.
2853         * common/agent.c: Include target/target.h.
2854         [!GDBSERVER]: Don't include target.h.
2855         (helper_thread_id): Type changed to uint32_t.
2856         (agent_get_helper_thread_id): Use target_read_uint32.
2857         (agent_run_command): Always use target_read_memory and
2858         target_write_memory.
2859         (agent_capability): Type changed to uint32_t.
2860         (agent_capability_check): Use target_read_uint32.
2861
2862 2014-09-11  Gary Benson  <gbenson@redhat.com>
2863
2864         * common/common-debug.h (show_debug_regs): Declare.
2865         * common/common-debug.c (show_debug_regs): Define.
2866         * aarch64-linux-nat.c (debug_hw_points): Don't define.  Replace
2867         all uses with show_debug_regs.  Replace all uses that considered
2868         debug_hw_points as a multi-value integer with straight boolean
2869         uses.
2870         * x86-nat.c (debug_hw_points): Don't define.  Replace all uses
2871         with show_debug_regs.
2872         * nat/x86-dregs.c (debug_hw_points): Don't declare.  Replace
2873         all uses with show_debug_regs.
2874         * mips-linux-nat.c (maint_show_dr): Don't define.  Replace all
2875         uses with show_debug_regs.
2876
2877 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
2878
2879         * findvar.c (address_from_register): Handle targets requiring
2880         a special conversion routine even for plain pointer types.
2881
2882 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
2883
2884         * rs6000-nat.c (exec_one_dummy_insn): Remove.
2885         (store_register): Do not call exec_one_dummy_insn.
2886
2887 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2888
2889         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2890         dereference it first.  Use value_enclosing_type instead of
2891         value_type.
2892         (ada_array_length): Likewise.
2893
2894 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2895
2896         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2897         Adjust function implementation and documentation accordingly.
2898         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2899         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2900         Update call to ada_value_ptr_subscript.
2901
2902 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2903
2904         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2905         instead of VAL's type.
2906
2907 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2908
2909         * amd64-linux-nat.c: Add <sys/uio.h> #include.
2910
2911 2014-09-09  Doug Evans  <xdje42@gmail.com>
2912
2913         PR guile/17367
2914         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2915         last parameter to pkg-config, not first.
2916         * configure.ac: Pass --with-guile provided pkg-config path to
2917         GDB_GUILE_PROGRAM_NAMES.
2918         * configure: Regenerate.
2919
2920 2014-09-09  Gabriel Krisman Bertazi  <gabriel@krisman.be>
2921
2922         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2923         Bertazi".
2924
2925 2014-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
2926
2927         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2928         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2929         the list of sections determining GDB_OSABI_IRIX.
2930
2931 2014-09-09  James Hogan  <james.hogan@imgtec.com>
2932
2933         * MAINTAINERS (Write After Approval): Add "James Hogan".
2934
2935 2014-09-09  James Hogan  <james.hogan@imgtec.com>
2936
2937         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2938
2939 2014-09-09  Joel Brobecker  <brobecker@adacore.com>
2940
2941         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2942
2943 2014-09-08  Doug Evans  <xdje42@gmail.com>
2944
2945         PR 17247
2946         * guile.c: #include <signal.h>.
2947         (_initialize_guile): Block SIGCHLD while initializing Guile.
2948
2949         Replaces the following, which is reverted.
2950
2951         2014-07-26  Doug Evans  <xdje42@gmail.com>
2952
2953         PR 17185
2954         * configure.ac: Add check for header gc/gc.h.
2955         Add check for function setenv.
2956         * configure: Regenerate.
2957         * config.in: Regenerate.
2958         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2959
2960 2014-09-08  Doug Evans  <xdje42@gmail.com>
2961
2962         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2963         with named constant.  Fix style of pointer comparison.
2964         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2965
2966 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
2967
2968         PR gdb/17035
2969         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2970         decide whether we display the command on "show user".
2971         * cli/cli-script.c (show_user_1): Only verify cmdlines after
2972         printing command name.
2973         * cli/cli-decode.h (cli_user_command_p): Declare new function.
2974         * cli/cli-decode.c (cli_user_command_p): Create helper function
2975         to verify whether cmd_list_element is a user-defined command.
2976
2977 2014-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2978
2979         PR python/17355
2980         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2981         Fix goto out of TRY_CATCH.
2982
2983 2014-09-06  Doug Evans  <xdje42@gmail.com>
2984             Tom Tromey  <tromey@redhat.com>
2985
2986         PR 15276
2987         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
2988         $_any_caller_matches.
2989         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
2990         * python/lib/gdb/function/caller_is.py: New file.
2991
2992 2014-09-06  Doug Evans  <xdje42@gmail.com>
2993
2994         * infcmd.c (program_info): Fix typo.
2995
2996 2014-09-05  Sergio Durigan Junior  <sergiodj@redhat.com>
2997
2998         PR gdb/17235
2999         * stap-probe.c (stap_parse_single_operand): Delete unused variable
3000         'number'.  New variable 'has_digit'.  Rewrite code to deal with
3001         subexpressions on SDT probes.
3002
3003 2014-09-04  Pedro Alves  <palves@redhat.com>
3004
3005         * c-exp.y (parse_number): Skip handling base-switching prefixes if
3006         the input is only one character long.
3007
3008 2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
3009
3010         PR fortran/17237
3011         * f-valprint.c (f_val_print): Specify the correct print option to
3012         use when printing integer values.
3013
3014 2014-09-04  Gary Benson  <gbenson@redhat.com>
3015
3016         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3017         Remove code to cope with LWPs wrapped as PIDs.
3018         Add assertions to ensure no wrapped LWPs are passed.
3019
3020 2014-09-04  Pedro Alves  <palves@redhat.com>
3021
3022         * value.c (value_ranges_copy_adjusted): New function, factored out
3023         from ...
3024         (value_contents_copy_raw): ... here.
3025         (unpack_value_bits_as_long_1): Rename back to ...
3026         (unpack_bits_as_long): ... this.  Remove 'original_value' and
3027         'result' parameters.  Change return type to LONGEST.
3028         (unpack_value_bits_as_long): Delete.
3029         (unpack_value_field_as_long_1): Delete.
3030         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3031         (unpack_value_bitfield): New function.
3032         (value_field_bitfield): Reimplement using unpack_value_bitfield.
3033         (value_fetch_lazy): Use unpack_value_bitfield.
3034         * value.h (unpack_value_bits_as_long): Delete declaration.
3035
3036 2014-09-03  Sasha Smundak  <asmundak@google.com>
3037
3038         * python/py-frame.c (frapy_read_register): New function.
3039
3040 2014-09-03  James Hogan  <james.hogan@imgtec.com>
3041
3042         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3043         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3044
3045 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
3046
3047         PR python/16699
3048         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3049         function.
3050         (add_cmd): Set "completer_handle_brkchars" to NULL.
3051         * cli/cli-decode.h (struct cmd_list_element)
3052         <completer_handle_brkchars>: New field.
3053         * command.h (completer_ftype_void): New typedef.
3054         (set_cmd_completer_handle_brkchars): New prototype.
3055         * completer.c (set_gdb_completion_word_break_characters): New
3056         function.
3057         (complete_line_internal): Call "completer_handle_brkchars"
3058         callback from command.
3059         * completer.h: Include "command.h".
3060         (set_gdb_completion_word_break_characters): New prototype.
3061         * python/py-cmd.c (cmdpy_completer_helper): New function.
3062         (cmdpy_completer_handle_brkchars): New function.
3063         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3064         (cmdpy_init): Set completer_handle_brkchars to
3065         cmdpy_completer_handle_brkchars.
3066
3067 2014-09-03  Gary Benson  <gbenson@redhat.com>
3068
3069         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3070         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
3071         Loop conditions changed to equivalent form.
3072         (struct x86_debug_reg_state): Updated dr_ref_count comment.
3073         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3074         ALL_DEBUG_ADDRESS_REGISTERS.
3075
3076 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
3077
3078         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3079         description fix.
3080
3081 2014-09-02  Doug Evans  <dje@google.com>
3082
3083         * typeprint.c (find_global_typedef): Fix comment.
3084
3085 2014-09-02  Gary Benson  <gbenson@redhat.com>
3086
3087         * i386-nat.h: Renamed as...
3088         * x86-nat.h: New file.  All type, function and variable name
3089         prefixes changed from "i386_" to "x86_".  All references updated.
3090         * i386-nat.c: Renamed as...
3091         * x86-nat.c: New file.  All type, function and variable name
3092         prefixes changed from "i386_" to "x86_".  All references updated.
3093         * common/i386-xstate.h: Renamed as...
3094         * common/x86-xstate.h: New file.  All type, function and variable
3095         name prefixes changed from "i386_" to "x86_".  All references
3096         updated.
3097         * nat/i386-cpuid.h: Renamed as...
3098         * nat/x86-cpuid.h: New file.  All type, function and variable name
3099         prefixes changed from "i386_" to "x86_".  All references updated.
3100         * nat/i386-gcc-cpuid.h: Renamed as...
3101         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
3102         name prefixes changed from "i386_" to "x86_".  All references
3103         updated.
3104         * nat/i386-dregs.h: Renamed as...
3105         * nat/x86-dregs.h: New file.  All type, function and variable name
3106         prefixes changed from "i386_" to "x86_".  All references updated.
3107         * nat/i386-dregs.c: Renamed as...
3108         * nat/x86-dregs.c: New file.  All type, function and variable name
3109         prefixes changed from "i386_" to "x86_".  All references updated.
3110
3111 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
3112
3113         * varobj.c (_initialize_varobj): Move to the end of file.
3114
3115 2014-08-29  Gary Benson  <gbenson@redhat.com>
3116
3117         * common/common-exceptions.h: New file.
3118         * common/common-exceptions.c: Likewise.
3119         * Makefile.in (SFILES): Add common/common-exceptions.c.
3120         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3121         (COMMON_OBS): Add common-exceptions.o.
3122         (common-exceptions.o): New rule.
3123         * exceptions.h (common-exceptions.h): Include.
3124         (gdb_setjmp.h): Do not include.
3125         (return_reason): Moved to common-exceptions.h.
3126         (enum return_reason): Likewise.
3127         (RETURN_MASK): Likewise.
3128         (typedef return_mask): Likewise.
3129         (enum errors): Likewise.
3130         (struct gdb_exception): Likewise.
3131         (exceptions_state_mc_init): Likewise.
3132         (exceptions_state_mc_action_iter): Likewise.
3133         (exceptions_state_mc_action_iter_1): Likewise.
3134         (TRY_CATCH): Likewise.
3135         (throw_exception): Likewise.
3136         (throw_verror): Likewise.
3137         (throw_vquit): Likewise.
3138         (throw_error): Likewise.
3139         (throw_quit): Likewise.
3140         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3141         (enum catcher_action): Likewise.
3142         (struct catcher): Likewise.
3143         (current_catcher): Likewise.
3144         (catcher_list_size): Likewise.
3145         (exceptions_state_mc_init): Likewise.
3146         (catcher_pop): Likewise.
3147         (exceptions_state_mc): Likewise.
3148         (exceptions_state_mc_action_iter): Likewise.
3149         (exceptions_state_mc_action_iter_1): Likewise.
3150         (throw_exception): Likewise.
3151         (exception_messages): Likewise.
3152         (exception_messages_size): Likewise.
3153         (throw_it): Likewise.
3154         (throw_verror): Likewise.
3155         (throw_vquit): Likewise.
3156         (throw_error): Likewise.
3157         (throw_quit): Likewise.
3158         (prepare_to_throw_exception): New function.
3159
3160 2014-08-29  Gary Benson  <gbenson@redhat.com>
3161
3162         * common/gdb_setjmp.h: New file.
3163         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3164         * configure.ac: Move sigsetjmp check...
3165         * common/common.m4: ...here.
3166         * configure: Regenerate.
3167         * cp-support.c (SIGJMP_BUF): Delete.
3168         (SIGSETJMP): Likewise.
3169         (SIGLONGJMP): Likewise.
3170         * exceptions.h (gdb_setjmp.h): Include.
3171         (setjmp.h): Do not include.
3172         (EXCEPTIONS_SIGJMP_BUF): Delete.
3173         (EXCEPTIONS_SIGSETJMP): Likewise.
3174         (EXCEPTIONS_SIGLONGJMP): Likewise.
3175         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3176         from gdb_setjmp.h.
3177         * exceptions.c: Likewise.
3178
3179 2014-08-29  Gary Benson  <gbenson@redhat.com>
3180
3181         * cleanups.h: Moved to...
3182         * common/cleanups.h: New file.
3183         * cleanups.c: Moved to...
3184         * common/cleanups.c: New file.  Include common-defs.h and
3185         cleanups.h.  Do not include defs.h.
3186         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3187         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3188         (cleanups.o): New rule.
3189
3190 2014-08-29  Gary Benson  <gbenson@redhat.com>
3191
3192         * common/errors.h (internal_warning): New declaration.
3193         (internal_vwarning): Likewise.
3194         * common/errors.c (internal_warning): New function.
3195         * utils.h (internal_warning): Don't declare.
3196         (internal_vwarning): Likewise.
3197         * utils.c (internal_warning): Removed.
3198
3199 2014-08-29  Gary Benson  <gbenson@redhat.com>
3200
3201         * main.c (captured_main): Use warning during startup.
3202         Prefix startup warning messages with command name.
3203
3204 2014-08-29  Gary Benson  <gbenson@redhat.com>
3205
3206         * main.c (captured_main): Handle usage errors with error.
3207
3208 2014-08-29  Gary Benson  <gbenson@redhat.com>
3209
3210         * go32-nat.c (go32_create_inferior): Replace a fprintf/
3211         exit pair with a call to error.  Wrap the message with _().
3212
3213 2014-08-29  Gary Benson  <gbenson@redhat.com>
3214
3215         * main.c (captured_main): Replace a fprintf/exit
3216         pair with a call to error.  Wrap the message with _().
3217
3218 2014-08-29  Gary Benson  <gbenson@redhat.com>
3219
3220         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3221         pairs with calls to error.  Wrap the message with _().
3222
3223 2014-08-29  Gary Benson  <gbenson@redhat.com>
3224
3225         * utils.c (vwarning): Protect calls to target_terminal_ours
3226         and wrap_here.
3227
3228 2014-08-29  Gary Benson  <gbenson@redhat.com>
3229
3230         * exceptions.c (print_flush): Protect calls to
3231         target_terminal_ours and wrap_here.
3232
3233 2014-08-29  Gary Benson  <gbenson@redhat.com>
3234
3235         * utils.h (filtered_printing_initialized): New declaration.
3236         * utils.c (abort_with_message): New function.
3237         (internal_vproblem): Use abort_with_message for first level
3238         recursive internal problems, and if gdb_stderr is not set up.
3239         Protect calls to target_terminal_ours, begin_line and query.
3240
3241 2014-08-28  Doug Evans  <dje@google.com>
3242
3243         * symtab.c (in_prologue): Move definition to better spot.
3244         (skip_prologue_using_sal): Ditto.
3245
3246 2014-08-28  Doug Evans  <dje@google.com>
3247
3248         * symtab.c (find_function_start_sal): Move definition to better spot.
3249
3250 2014-08-28  Yao Qi  <yao@codesourcery.com>
3251
3252         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3253         found_stack_adjust in forward scan.  Remove condition check
3254         on found_stack_adjust which is always true.  Indent the code.
3255
3256 2014-08-28  Yao Qi  <yao@codesourcery.com>
3257
3258         * dwarf2read.c (dwarf_decode_lines): Update declaration.
3259         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3260         (dwarf_decode_lines): Remove argument
3261         want_line_info.  Remove condition check on want_line_info.
3262         Callers update.
3263
3264 2014-08-27  Doug Evans  <dje@google.com>
3265
3266         * dwarf2read.c (dwarf_record_line): Fix typo.
3267
3268 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
3269
3270         * target.h (struct target_ops::to_terminal_save_ours): Remove
3271         declaration.
3272         (target_terminal_save_ours): Remove macro.
3273         * target-delegates.c: Regenerate.
3274         * inf-child.c (inf_child_target): Don't set the nonexistent
3275         field to_terminal_save_ours.
3276         * inferior.h (child_terminal_save_ours): Remove declaration.
3277         * terminal.h (gdb_save_tty_state): New declaration.
3278         * inflow.c (child_terminal_save_ours): Rename to ...
3279         (gdb_save_tty_state): ... this.
3280         * tui/tui.c: Include terminal.h.
3281         (tui_enable): Use gdb_save_tty_state instead of
3282         target_terminal_save_ours.
3283         (tui_disable): Likewise.
3284
3285 2014-08-25  Doug Evans  <dje@google.com>
3286
3287         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3288         Pass NULL instead of 0 for context pointer.
3289
3290 2014-08-25  Yao Qi  <yao@codesourcery.com>
3291
3292         * dwarf2read.c: Fix grammatical error.
3293
3294 2014-08-24  Yao Qi  <yao@codesourcery.com>
3295
3296         * dwarf2read.c (scan_partial_symbols):  Update comments.
3297         Rename argument 'need_pc' with 'set_addrmap'.
3298         ï¼ˆadd_partial_namespace): Rename argument 'need_pc' with
3299         'set_addrmap'.
3300         (add_partial_module): Likewise.
3301         (add_partial_subprogram): Likewise.  Update comments.
3302         (dwarf2_name): Fix typo.
3303
3304 2014-08-22  Doug Evans  <dje@google.com>
3305
3306         PR 17276
3307         * dwarf2read.c (dwarf_record_line_p): New function.
3308         (dwarf_decode_lines_1): Ignore subsequent line number entries
3309         for the same line if any entry had a non-zero discriminator.
3310
3311 2014-08-22  Doug Evans  <dje@google.com>
3312
3313         * buildsym.h (record_line_ftype): New typedef.
3314         (record_line): Use it.
3315         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3316         (dwarf_decode_lines_1): Call them.
3317
3318 2014-08-22  Yao Qi  <yao@codesourcery.com>
3319
3320         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3321         (ctf_end): Remove code.
3322
3323 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
3324
3325         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3326         (linux_make_corefile_notes): call update_thread_list, protected against
3327         exceptions.
3328
3329 2014-08-21  Pedro Alves  <palves@redhat.com>
3330
3331         * infcmd.c (attach_command): Remove comment.
3332
3333 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
3334
3335         * aarch64-linux-nat.c (dr_changed_t): Change the type from
3336         unsigned LONGEST to ULONGEST.
3337
3338 2014-08-20  Pedro Alves  <palves@redhat.com>
3339
3340         * Makefile.in (check-read1): New rule.
3341
3342 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
3343
3344         * value.c (value_from_contents_and_address): Strip resolved_type's
3345         typedef layers before checking its TYPE_DATA_LOCATION.
3346
3347 2014-08-20  Pedro Alves  <palves@redhat.com>
3348
3349         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3350
3351 2014-08-20  Yao Qi  <yao@codesourcery.com>
3352
3353         * amd64-tdep.c (amd64_classify): Add a blank line after the
3354         example.  Move "*/" to a new line.
3355         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3356         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3357         * dwarf2read.c (psymtab_include_file_name): Likewise.
3358
3359 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
3360             Pedro Alves  <palves@redhat.com>
3361
3362         PR symtab/14604
3363         PR symtab/14605
3364         * ada-lang.c (coerce_unspec_val_to_type): Use
3365         value_contents_copy_raw.
3366         * ada-valprint.c (val_print_packed_array_elements): Adjust.
3367         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3368         * cp-valprint.c (cp_print_value_fields): Let the common printing
3369         code handle optimized out values.
3370         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3371         * d-valprint.c (dynamic_array_type): Use
3372         value_bits_any_optimized_out.
3373         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3374         check_any_valid fields.
3375         (check_pieced_value_bits): Delete and inline ...
3376         (check_pieced_synthetic_pointer): ... here.
3377         (check_pieced_value_validity): Delete.
3378         (check_pieced_value_invalid): Delete.
3379         (pieced_value_funcs): Remove check_validity and check_any_valid
3380         fields.
3381         (read_pieced_value): Use mark_value_bits_optimized_out.
3382         (write_pieced_value): Switch to use
3383         mark_value_bytes_optimized_out.
3384         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3385         of assuming the whole value is optimized out.
3386         * findvar.c (read_frame_register_value): Remove special handling
3387         of optimized out registers.
3388         (value_from_register): Use mark_value_bytes_optimized_out.
3389         * frame-unwind.c (frame_unwind_got_optimized): Use
3390         mark_value_bytes_optimized_out.
3391         * jv-valprint.c (java_value_print): Adjust.
3392         (java_print_value_fields): Let the common printing code handle
3393         optimized out values.
3394         * mips-tdep.c (mips_print_register): Remove special handling of
3395         optimized out registers.
3396         * opencl-lang.c (lval_func_check_validity): Delete.
3397         (lval_func_check_any_valid): Delete.
3398         (opencl_value_funcs): Remove check_validity and check_any_valid
3399         fields.
3400         * p-valprint.c (pascal_object_print_value_fields): Let the common
3401         printing code handle optimized out values.
3402         * stack.c (read_frame_arg): Remove special handling of optimized
3403         out values.  Fetch both VAL and ENTRYVAL before comparing
3404         contents.  Adjust to value_available_contents_eq rename.
3405         * valprint.c (valprint_check_validity)
3406         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3407         (val_print_array_elements): Adjust.
3408         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3409         (value_bits_any_optimized_out): New function.
3410         (value_entirely_covered_by_range_vector): New function, factored
3411         out from value_entirely_unavailable.
3412         (value_entirely_unavailable): Reimplement.
3413         (value_entirely_optimized_out): New function.
3414         (insert_into_bit_range_vector): New function, factored out from
3415         mark_value_bits_unavailable.
3416         (mark_value_bits_unavailable): Reimplement.
3417         (struct ranges_and_idx): New struct.
3418         (find_first_range_overlap_and_match): New function, factored out
3419         from value_available_contents_bits_eq.
3420         (value_available_contents_bits_eq): Rename to ...
3421         (value_contents_bits_eq): ... this.  Check both unavailable
3422         contents and optimized out contents.
3423         (value_available_contents_eq): Rename to ...
3424         (value_contents_eq): ... this.
3425         (allocate_value_lazy): Remove reference to the old optimized_out
3426         boolean.
3427         (allocate_optimized_out_value): Use
3428         mark_value_bytes_optimized_out.
3429         (require_not_optimized_out): Adjust to check whether the
3430         optimized_out vec is empty.
3431         (ranges_copy_adjusted): New function, factored out from
3432         value_contents_copy_raw.
3433         (value_contents_copy_raw): Also copy the optimized out ranges.
3434         Assert the destination ranges aren't optimized out.
3435         (value_contents_copy): Update comment, remove call to
3436         require_not_optimized_out.
3437         (value_contents_equal): Adjust to check whether the optimized_out
3438         vec is empty.
3439         (set_value_optimized_out, value_optimized_out_const): Delete.
3440         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3441         New functions.
3442         (value_entirely_optimized_out, value_bits_valid): Delete.
3443         (value_copy): Take a VEC copy of the 'optimized_out' field.
3444         (value_primitive_field): Remove special handling of optimized out.
3445         (value_fetch_lazy): Assert that lazy values have no unavailable
3446         regions.  Use value_bits_any_optimized_out.  Remove some special
3447         handling for optimized out values.
3448         * value.h: Add intro comment about <optimized out> and
3449         <unavailable>.
3450         (struct lval_funcs): Remove check_validity and check_any_valid
3451         fields.
3452         (set_value_optimized_out, value_optimized_out_const): Remove.
3453         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3454         New declarations.
3455         (value_bits_any_optimized_out): New declaration.
3456         (value_bits_valid): Delete declaration.
3457         (value_available_contents_eq): Rename to ...
3458         (value_contents_eq): ... this, and extend comments.
3459
3460 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
3461
3462         Fix -fsanitize=address on unreadable inferior strings.
3463         * valprint.c (val_print_string): Fix access before BUFFER.
3464
3465 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
3466
3467         * target.c (target_struct_size): Remove.
3468         (target_struct_allocsize): Remove.
3469         (DEFAULT_ALLOCSIZE): Remove.
3470         (target_ops_p): New typedef.
3471         (DEF_VEC_P (target_ops_p)): New vector type.
3472         (target_structs): Change type to VEC (target_ops_p).
3473         (add_target_with_completer): Replace "push" code by VEC_safe_push.
3474         (find_default_run_target): Rewrite for loop following changes to
3475         target_structs.
3476
3477 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
3478
3479         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3480         Adjust code accordingly.  Adjust function description comment.
3481
3482 2014-08-19  Yao Qi  <yao@codesourcery.com>
3483
3484         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3485         types.
3486
3487 2014-08-19  Alan Modra  <amodra@gmail.com>
3488
3489         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3490         * config.in: Regenerate.
3491         * configure: Regenerate.
3492
3493 2014-08-19  Tom Tromey  <tromey@redhat.com>
3494             Gary Benson  <gbenson@redhat.com>
3495
3496         * common/common-debug.h: New file.
3497         * common/common-debug.c: Likewise.
3498         * debug.c: Likewise.
3499         * Makefile.in (SFILES): Add common/common-debug.c.
3500         (HFILES_NO_SRCDIR): Add common/common-debug.h.
3501         (COMMON_OBS): Add common-debug.o and debug.o.
3502         (common-debug.o): New rule.
3503         * common/common-defs.h: Include common-debug.h.
3504         * common/agent.c (debug_agent_printf): New function.
3505         (DEBUG_AGENT): Redefine.
3506         * nat/i386-dregs.c (debug_printf): Undefine.
3507
3508 2014-08-19  Gary Benson  <gbenson@redhat.com>
3509
3510         * common/common-defs.h: Include print-utils.h.
3511         * utils.h: Do not include print-utils.h.
3512
3513 2014-08-19  Tom Tromey  <tromey@redhat.com>
3514             Gary Benson  <gbenson@redhat.com>
3515
3516         * common/common-types.h: New file.
3517         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3518         * common/common-defs.h: Include common-types.h.
3519         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3520         (ULONGEST): Remove.
3521
3522 2014-08-19  Tom Tromey  <tromey@redhat.com>
3523             Gary Benson  <gbenson@redhat.com>
3524
3525         * common/errors.h: New file.
3526         * common/errors.c: Likewise.
3527         * Makefile.in (SFILES): Add common/errors.c.
3528         (HFILES_NO_SRCDIR): Add common/errors.h.
3529         (COMMON_OBS): Add errors.o.
3530         (errors.o): New rule.
3531         * common/common-defs.h: Include errors.h.
3532         * utils.h (perror_with_name, error, verror, warning, vwarning):
3533         Don't declare.
3534         * common/common-utils.h: (malloc_failure, internal_error):
3535         Likewise.
3536
3537 2014-08-19  Gary Benson  <gbenson@redhat.com>
3538
3539         * utils.c (internal_vproblem): Always print the message.
3540
3541 2014-08-18  Doug Evans  <dje@google.com>
3542
3543         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3544
3545 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
3546
3547         * ada-typeprint.c (type_is_full_subrange_of_target_type):
3548         Return 0 if TYPE is dynamic.
3549         (print_range): Add handling of dynamic ranges.
3550
3551 2014-08-18  Keven Boell  <keven.boell@intel.com>
3552             Joel Brobecker  <brobecker@adacore.com>
3553
3554         * gdbtypes.h (struct main_type): Add field "data_location".
3555         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3556         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3557         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3558         a dynamic data location.
3559         (resolve_dynamic_type): Add DW_AT_data_location handling.
3560         (copy_recursive, copy_type): Copy the data_location information
3561         when present.
3562         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3563         * value.c (value_from_contents_and_address): Add
3564         DW_AT_data_location handling.
3565
3566 2014-08-18  Keven Boell  <keven.boell@intel.com>
3567             Joel Brobecker  <brobecker@adacore.com>
3568
3569         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3570         field "get_object_address".
3571         * dwarf2expr.c (execute_stack_op): Add handling for
3572         DW_OP_push_object_address.
3573         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3574         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3575         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3576         (dwarf_expr_get_obj_addr): New function.
3577         (dwarf_expr_ctx_funcs): Add get_object_address field.
3578         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3579         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
3580         (dwarf2_evaluate_property): Add parameter "address".  Use it.
3581         (needs_get_obj_addr): New function.
3582         (needs_frame_ctx_funcs): Add get_object_address field.
3583         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3584         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
3585         (resolve_dynamic_array): Likewise.
3586
3587 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
3588
3589         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3590         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3591         fixed value for records and unions for which some GNAT encodings
3592         are present.
3593
3594 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
3595
3596         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3597         rewrite to avoid "else if" and "else" constructs.  Should be
3598         a no-op in practice.
3599
3600 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
3601
3602         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3603         of lexical block.
3604
3605 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
3606
3607         PR c++/17132
3608         * eval.c: Update all calls to find_overload_match.
3609         * valarith.c: Likewise.
3610         (value_user_defined_cpp_op, value_user_defined_op): New
3611         argument NOSIDE.  Update all callers.
3612         * valops.c (find_overload_match): New argument NOSIDE.
3613         * value.h (find_overload_match): Update signature.
3614
3615 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
3616
3617         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3618         'items' methods instead of 'iteritems' method on dictionaries.
3619
3620 2014-08-15  Doug Evans  <dje@google.com>
3621
3622         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3623         closer to use.
3624
3625 2014-08-15  Doug Evans  <dje@google.com>
3626
3627         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3628
3629 2014-08-15  Doug Evans  <dje@google.com>
3630
3631         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3632
3633 2014-08-15  Doug Evans  <dje@google.com>
3634
3635         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3636         unused.
3637
3638 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
3639
3640         * dcache.h: Include target.h, to avoid compile time warnings.
3641
3642 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
3643
3644         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
3645         frame_info" partial declaration.
3646         * gdbarch.h: Regenerate.
3647
3648 2014-08-15  Yao Qi  <yao@codesourcery.com>
3649
3650         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3651         Add parameter 'decode_for_pst_p'.  Callers update.
3652
3653 2014-08-13  Yao Qi  <yao@codesourcery.com>
3654
3655         PR build/17104
3656         * configure.ac: Use local variable 'pos'.
3657         * configure: Regenerated.
3658
3659 2014-08-11  Doug Evans  <dje@google.com>
3660
3661         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3662         message, it is redundant with "Reading symbols from ..." message.
3663
3664 2014-08-10  Doug Evans  <xdje42@gmail.com>
3665
3666         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3667
3668 2014-08-09  Yao Qi  <yao@codesourcery.com>
3669
3670         PR remote/9053
3671         * remote.c (remote_xfer_partial): Remove dead code.
3672
3673 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3674
3675         * ia64-linux-tdep.c: Include "regset.h".
3676         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3677         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3678         (ia64_linux_supply_fpregset): New function.
3679         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3680         (ia64_linux_regset_from_core_section): New function.
3681         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3682         method.
3683
3684 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3685
3686         * m68klinux-tdep.c: Include "regset.h".
3687         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3688         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3689         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3690         (m68k_linux_regset_from_core_section): New function.
3691         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3692         method.
3693
3694 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3695
3696         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3697         function.  Move logic to...
3698         (tilegx_linux_regmap): ... this new register map.
3699         (tilegx_linux_regset): Refer to register map, replace supply
3700         method by regcache_supply_regset, and add collect method.
3701         * tilegx-tdep.h (enum tilegx_regnum): New enum value
3702         TILEGX_FIRST_EASY_REGNUM.
3703
3704 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3705
3706         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3707         that calls regcache_supply_regset and handles the EPC register
3708         separately.  Move main logic to...
3709         (score7_linux_gregmap): ... this new register map.
3710         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3711         (score7_linux_gregset): Refer to register map.  Add collect method.
3712         (score7_linux_regset_from_core_section): Replace
3713         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3714         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3715         (struct regset): Delete unused forward declaraction.
3716         (struct pt_regs): Delete structure definition.
3717         (elf_gregset_t): Delete typedef.
3718
3719 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3720
3721         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3722         (nios2_core_regset): Add collect method.
3723
3724 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3725
3726         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3727         platform-independent and don't write to read-only input buffer.
3728         (m32r_linux_collect_gregset): New function.
3729         (m32r_linux_gregset): Add collect method.
3730
3731 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3732
3733         * hppa-linux-tdep.c (greg_map): Rename to...
3734         (hppa_linux_gregmap): ... this.  Also convert to
3735         regcache_map_entry format.
3736         (hppa_linux_supply_regset): Delete function.
3737         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
3738         (hppa_linux_fpregmap): ... this new register map.
3739         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3740         register map, replace supply method by regcache_supply_regset, and
3741         add collect method regcache_collect_regset.
3742
3743 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3744
3745         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3746         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3747         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3748         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3749         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3750         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3751         (frv_linux_supply_gregset): Replace main logic by call to
3752         regcache_supply_regset, but keep clearing gr32-gr63.
3753         (frv_linux_supply_fpregset): Delete function.
3754         (frv_linux_gregset): Refer to appropriate register map and add
3755         regcache_collect_regset as the collect method.
3756         (frv_linux_fpregset): Likewise.  Also exchange the supply method
3757         by regcache_supply_regset.
3758
3759 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3760
3761         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3762         by call to alpha_supply_int_regs.
3763         (alpha_linux_collect_gregset): New function.
3764         (alpha_linux_supply_fpregset): Replace logic by call to
3765         alpha_supply_fp_regs.
3766         (alpha_linux_collect_fpregset): New function.
3767         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3768
3769 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3770
3771         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3772         by call to regcache_collect_regset.
3773         (supply_gregset, supply_fpregset): Call regcache_supply_regset
3774         instead of aarch64_linux_supply_gregset/_fpregset.
3775         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3776         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3777         header file instead.
3778         (aarch64_linux_supply_gregset, supply_gregset_from_core)
3779         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3780         functions.  Move logic to ...
3781         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3782         register maps.
3783         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3784         refer to new register maps, replace *_regset_from_core by
3785         regcache_supply_regset, and also use regcache_collect_regset.
3786         * aarch64-linux-tdep.h: Include "regset.h".
3787         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3788         Delete prototypes.
3789         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3790         macros, moved from C source file.
3791         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3792         variable declarations.
3793
3794 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3795
3796         * s390-linux-nat.c: Include "regset.h".
3797         (regmap_gregset): Delete macro.
3798         (s390_64_regmap_gregset): New register map for
3799         regcache_supply/_collect_regset.
3800         (s390_64_gregset): New regset.
3801         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3802         (regmap_fpregset): Delete macro.
3803         (s390_native_supply, s390_native_collect): Delete functions.
3804         (supply_gregset, fill_gregset): Replace s390-specific regmap
3805         handling by a call to regcache_supply/_collect_regset.
3806         (supply_fpregset, fill_fpregset): Call regcache_supply/
3807         _collect_regset instead of s390_native_supply/_collect.
3808         (fetch_regset, store_regset): Likewise.  Also change the last
3809         parameter to a regset instead of a regmap.
3810         (s390_linux_fetch_inferior_registers)
3811         (390_linux_store_inferior_registers): Adjust last parameter in
3812         calls to fetch_regset and store_regset.
3813         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3814         (s390_gregmap): ... this.  Also make static const and convert to
3815         regcache_map_entry format.
3816         (s390x_regmap_gregset): Delete.
3817         (s390_regmap_fpregset): Rename to...
3818         (s390_fpregmap): ... this.  Make static const and convert to
3819         regcache_map_entry format.
3820         (s390_regmap_upper, s390_regmap_last_break)
3821         (s390x_regmap_last_break, s390_regmap_system_call)
3822         (s390_regmap_tdb): Likewise.
3823         (s390_supply_regset, s390_collect_regset): Remove functions.
3824         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3825         s390_supply_regset.
3826         (s390_gregset, s390_fpregset, s390_upper_regset)
3827         (s390_last_break_regset, s390x_last_break_regset)
3828         (s390_system_call_regset, s390_tdb_regset): Make global and
3829         replace s390_supply/_collect_regset by regcache_supply/
3830         _collect_regset.
3831         (s390x_gregset): Delete.
3832         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3833         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3834         (s390_regmap_fpregset, s390_regmap_last_break)
3835         (s390x_regmap_last_break, s390_regmap_system_call)
3836         (s390_regmap_tdb): Delete global variable declarations.
3837         (s390_gregset, s390_fpregset, s390_last_break_regset)
3838         (s390x_last_break_regset, s390_system_call_regset)
3839         (s390_tdb_regset): New global variable declarations.
3840
3841 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3842
3843         * regcache.c: Include "regset.h".
3844         (regcache_transfer_regset): New local function.
3845         (regcache_supply_regset, regcache_collect_regset): New functions.
3846         * regcache.h (struct regcache_map_entry): New structure.
3847         (REGCACHE_MAP_SKIP): New enum value.
3848         (regcache_supply_regset, regcache_collect_regset): New prototypes.
3849
3850 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3851
3852         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3853         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3854         (ppc_linux_collect_gregset ): Likewise.
3855         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3856         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3857         (ppc_collect_vrregset): Likewise.
3858         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3859         Likewise.
3860
3861 2014-08-07  Yao Qi  <yao@codesourcery.com>
3862
3863         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3864         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3865         * remote.c (remote_read_bytes): Likewise.
3866
3867 2014-08-07  Yao Qi  <yao@codesourcery.com>
3868
3869         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3870
3871 2014-08-07  Yao Qi  <yao@codesourcery.com>
3872
3873         PR remote/17230
3874         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3875         TARGET_XFER_OK instead of 0.
3876
3877 2014-08-07  Gary Benson  <gbenson@redhat.com>
3878
3879         * common/common-defs.h: Include errno.h.
3880         * defs.h: Do not include errno.h.
3881         * ada-typeprint.c: Likewise.
3882         * c-typeprint.c: Likewise.
3883         * core-regset.c: Likewise.
3884         * corefile.c: Likewise.
3885         * corelow.c: Likewise.
3886         * event-loop.c: Likewise.
3887         * f-typeprint.c: Likewise.
3888         * gnu-nat.c: Likewise.
3889         * go32-nat.c: Likewise.
3890         * i386gnu-nat.c: Likewise.
3891         * m2-typeprint.c: Likewise.
3892         * nat/linux-btrace.c: Likewise.
3893         * p-typeprint.c: Likewise.
3894         * procfs.c: Likewise.
3895         * remote-sim.c: Likewise.
3896         * rs6000-nat.c: Likewise.
3897         * target.c: Likewise.
3898         * typeprint.c: Likewise.
3899         * ui-file.c: Likewise.
3900         * valops.c: Likewise.
3901         * valprint.c: Likewise.
3902
3903 2014-08-07  Gary Benson  <gbenson@redhat.com>
3904
3905         * common/common-defs.h: Include string.h.
3906         * aarch64-tdep.c: Do not include string.h.
3907         * ada-exp.y: Likewise.
3908         * ada-lang.c: Likewise.
3909         * ada-lex.l: Likewise.
3910         * ada-typeprint.c: Likewise.
3911         * ada-valprint.c: Likewise.
3912         * aix-thread.c: Likewise.
3913         * alpha-linux-tdep.c: Likewise.
3914         * alpha-mdebug-tdep.c: Likewise.
3915         * alpha-nat.c: Likewise.
3916         * alpha-osf1-tdep.c: Likewise.
3917         * alpha-tdep.c: Likewise.
3918         * alphanbsd-tdep.c: Likewise.
3919         * amd64-dicos-tdep.c: Likewise.
3920         * amd64-linux-tdep.c: Likewise.
3921         * amd64-nat.c: Likewise.
3922         * amd64-sol2-tdep.c: Likewise.
3923         * amd64fbsd-tdep.c: Likewise.
3924         * amd64obsd-tdep.c: Likewise.
3925         * arch-utils.c: Likewise.
3926         * arm-linux-nat.c: Likewise.
3927         * arm-linux-tdep.c: Likewise.
3928         * arm-tdep.c: Likewise.
3929         * arm-wince-tdep.c: Likewise.
3930         * armbsd-tdep.c: Likewise.
3931         * armnbsd-nat.c: Likewise.
3932         * armnbsd-tdep.c: Likewise.
3933         * armobsd-tdep.c: Likewise.
3934         * avr-tdep.c: Likewise.
3935         * ax-gdb.c: Likewise.
3936         * ax-general.c: Likewise.
3937         * bcache.c: Likewise.
3938         * bfin-tdep.c: Likewise.
3939         * breakpoint.c: Likewise.
3940         * build-id.c: Likewise.
3941         * buildsym.c: Likewise.
3942         * c-exp.y: Likewise.
3943         * c-lang.c: Likewise.
3944         * c-typeprint.c: Likewise.
3945         * c-valprint.c: Likewise.
3946         * charset.c: Likewise.
3947         * cli-out.c: Likewise.
3948         * cli/cli-cmds.c: Likewise.
3949         * cli/cli-decode.c: Likewise.
3950         * cli/cli-dump.c: Likewise.
3951         * cli/cli-interp.c: Likewise.
3952         * cli/cli-logging.c: Likewise.
3953         * cli/cli-script.c: Likewise.
3954         * cli/cli-setshow.c: Likewise.
3955         * cli/cli-utils.c: Likewise.
3956         * coffread.c: Likewise.
3957         * common/agent.c: Likewise.
3958         * common/buffer.c: Likewise.
3959         * common/buffer.h: Likewise.
3960         * common/common-utils.c: Likewise.
3961         * common/filestuff.c: Likewise.
3962         * common/filestuff.c: Likewise.
3963         * common/format.c: Likewise.
3964         * common/print-utils.c: Likewise.
3965         * common/rsp-low.c: Likewise.
3966         * common/signals.c: Likewise.
3967         * common/vec.h: Likewise.
3968         * common/xml-utils.c: Likewise.
3969         * core-regset.c: Likewise.
3970         * corefile.c: Likewise.
3971         * corelow.c: Likewise.
3972         * cp-abi.c: Likewise.
3973         * cp-name-parser.y: Likewise.
3974         * cp-support.c: Likewise.
3975         * cp-valprint.c: Likewise.
3976         * cris-tdep.c: Likewise.
3977         * d-exp.y: Likewise.
3978         * darwin-nat.c: Likewise.
3979         * dbxread.c: Likewise.
3980         * dcache.c: Likewise.
3981         * demangle.c: Likewise.
3982         * dicos-tdep.c: Likewise.
3983         * disasm.c: Likewise.
3984         * doublest.c: Likewise.
3985         * dsrec.c: Likewise.
3986         * dummy-frame.c: Likewise.
3987         * dwarf2-frame.c: Likewise.
3988         * dwarf2loc.c: Likewise.
3989         * dwarf2read.c: Likewise.
3990         * elfread.c: Likewise.
3991         * environ.c: Likewise.
3992         * eval.c: Likewise.
3993         * event-loop.c: Likewise.
3994         * exceptions.c: Likewise.
3995         * exec.c: Likewise.
3996         * expprint.c: Likewise.
3997         * f-exp.y: Likewise.
3998         * f-lang.c: Likewise.
3999         * f-typeprint.c: Likewise.
4000         * f-valprint.c: Likewise.
4001         * fbsd-nat.c: Likewise.
4002         * findcmd.c: Likewise.
4003         * findvar.c: Likewise.
4004         * fork-child.c: Likewise.
4005         * frame.c: Likewise.
4006         * frv-linux-tdep.c: Likewise.
4007         * frv-tdep.c: Likewise.
4008         * gdb.c: Likewise.
4009         * gdb_bfd.c: Likewise.
4010         * gdbarch.c: Likewise.
4011         * gdbarch.sh: Likewise.
4012         * gdbtypes.c: Likewise.
4013         * gnu-nat.c: Likewise.
4014         * gnu-v2-abi.c: Likewise.
4015         * gnu-v3-abi.c: Likewise.
4016         * go-exp.y: Likewise.
4017         * go-lang.c: Likewise.
4018         * go32-nat.c: Likewise.
4019         * guile/guile.c: Likewise.
4020         * guile/scm-auto-load.c: Likewise.
4021         * hppa-hpux-tdep.c: Likewise.
4022         * hppa-linux-nat.c: Likewise.
4023         * hppanbsd-tdep.c: Likewise.
4024         * hppaobsd-tdep.c: Likewise.
4025         * i386-cygwin-tdep.c: Likewise.
4026         * i386-dicos-tdep.c: Likewise.
4027         * i386-linux-tdep.c: Likewise.
4028         * i386-nto-tdep.c: Likewise.
4029         * i386-sol2-tdep.c: Likewise.
4030         * i386-tdep.c: Likewise.
4031         * i386bsd-tdep.c: Likewise.
4032         * i386gnu-nat.c: Likewise.
4033         * i386nbsd-tdep.c: Likewise.
4034         * i386obsd-tdep.c: Likewise.
4035         * i387-tdep.c: Likewise.
4036         * ia64-libunwind-tdep.c: Likewise.
4037         * ia64-linux-nat.c: Likewise.
4038         * inf-child.c: Likewise.
4039         * inf-ptrace.c: Likewise.
4040         * inf-ttrace.c: Likewise.
4041         * infcall.c: Likewise.
4042         * infcmd.c: Likewise.
4043         * inflow.c: Likewise.
4044         * infrun.c: Likewise.
4045         * interps.c: Likewise.
4046         * iq2000-tdep.c: Likewise.
4047         * irix5-nat.c: Likewise.
4048         * jv-exp.y: Likewise.
4049         * jv-lang.c: Likewise.
4050         * jv-typeprint.c: Likewise.
4051         * jv-valprint.c: Likewise.
4052         * language.c: Likewise.
4053         * linux-fork.c: Likewise.
4054         * linux-nat.c: Likewise.
4055         * lm32-tdep.c: Likewise.
4056         * m2-exp.y: Likewise.
4057         * m2-typeprint.c: Likewise.
4058         * m32c-tdep.c: Likewise.
4059         * m32r-linux-nat.c: Likewise.
4060         * m32r-linux-tdep.c: Likewise.
4061         * m32r-rom.c: Likewise.
4062         * m32r-tdep.c: Likewise.
4063         * m68hc11-tdep.c: Likewise.
4064         * m68k-tdep.c: Likewise.
4065         * m68kbsd-tdep.c: Likewise.
4066         * m68klinux-nat.c: Likewise.
4067         * m68klinux-tdep.c: Likewise.
4068         * m88k-tdep.c: Likewise.
4069         * machoread.c: Likewise.
4070         * macrocmd.c: Likewise.
4071         * main.c: Likewise.
4072         * mdebugread.c: Likewise.
4073         * mem-break.c: Likewise.
4074         * memattr.c: Likewise.
4075         * memory-map.c: Likewise.
4076         * mep-tdep.c: Likewise.
4077         * mi/mi-cmd-break.c: Likewise.
4078         * mi/mi-cmd-disas.c: Likewise.
4079         * mi/mi-cmd-env.c: Likewise.
4080         * mi/mi-cmd-stack.c: Likewise.
4081         * mi/mi-cmd-var.c: Likewise.
4082         * mi/mi-cmds.c: Likewise.
4083         * mi/mi-console.c: Likewise.
4084         * mi/mi-getopt.c: Likewise.
4085         * mi/mi-interp.c: Likewise.
4086         * mi/mi-main.c: Likewise.
4087         * mi/mi-parse.c: Likewise.
4088         * microblaze-rom.c: Likewise.
4089         * microblaze-tdep.c: Likewise.
4090         * mingw-hdep.c: Likewise.
4091         * minidebug.c: Likewise.
4092         * minsyms.c: Likewise.
4093         * mips-irix-tdep.c: Likewise.
4094         * mips-linux-tdep.c: Likewise.
4095         * mips-tdep.c: Likewise.
4096         * mips64obsd-tdep.c: Likewise.
4097         * mipsnbsd-tdep.c: Likewise.
4098         * mipsread.c: Likewise.
4099         * mn10300-linux-tdep.c: Likewise.
4100         * mn10300-tdep.c: Likewise.
4101         * monitor.c: Likewise.
4102         * moxie-tdep.c: Likewise.
4103         * mt-tdep.c: Likewise.
4104         * nat/linux-btrace.c: Likewise.
4105         * nat/linux-osdata.c: Likewise.
4106         * nat/linux-procfs.c: Likewise.
4107         * nat/linux-ptrace.c: Likewise.
4108         * nat/linux-waitpid.c: Likewise.
4109         * nbsd-tdep.c: Likewise.
4110         * nios2-linux-tdep.c: Likewise.
4111         * nto-procfs.c: Likewise.
4112         * nto-tdep.c: Likewise.
4113         * objc-lang.c: Likewise.
4114         * objfiles.c: Likewise.
4115         * opencl-lang.c: Likewise.
4116         * osabi.c: Likewise.
4117         * osdata.c: Likewise.
4118         * p-exp.y: Likewise.
4119         * p-lang.c: Likewise.
4120         * p-typeprint.c: Likewise.
4121         * parse.c: Likewise.
4122         * posix-hdep.c: Likewise.
4123         * ppc-linux-nat.c: Likewise.
4124         * ppc-sysv-tdep.c: Likewise.
4125         * ppcfbsd-tdep.c: Likewise.
4126         * ppcnbsd-tdep.c: Likewise.
4127         * ppcobsd-tdep.c: Likewise.
4128         * printcmd.c: Likewise.
4129         * procfs.c: Likewise.
4130         * prologue-value.c: Likewise.
4131         * python/py-auto-load.c: Likewise.
4132         * python/py-gdb-readline.c: Likewise.
4133         * ravenscar-thread.c: Likewise.
4134         * regcache.c: Likewise.
4135         * registry.c: Likewise.
4136         * remote-fileio.c: Likewise.
4137         * remote-m32r-sdi.c: Likewise.
4138         * remote-mips.c: Likewise.
4139         * remote-notif.c: Likewise.
4140         * remote-sim.c: Likewise.
4141         * remote.c: Likewise.
4142         * reverse.c: Likewise.
4143         * rs6000-aix-tdep.c: Likewise.
4144         * ser-base.c: Likewise.
4145         * ser-go32.c: Likewise.
4146         * ser-mingw.c: Likewise.
4147         * ser-pipe.c: Likewise.
4148         * ser-tcp.c: Likewise.
4149         * ser-unix.c: Likewise.
4150         * serial.c: Likewise.
4151         * sh-tdep.c: Likewise.
4152         * sh64-tdep.c: Likewise.
4153         * shnbsd-tdep.c: Likewise.
4154         * skip.c: Likewise.
4155         * sol-thread.c: Likewise.
4156         * solib-dsbt.c: Likewise.
4157         * solib-frv.c: Likewise.
4158         * solib-osf.c: Likewise.
4159         * solib-som.c: Likewise.
4160         * solib-spu.c: Likewise.
4161         * solib-target.c: Likewise.
4162         * solib.c: Likewise.
4163         * somread.c: Likewise.
4164         * source.c: Likewise.
4165         * sparc-nat.c: Likewise.
4166         * sparc-sol2-tdep.c: Likewise.
4167         * sparc-tdep.c: Likewise.
4168         * sparc64-tdep.c: Likewise.
4169         * sparc64fbsd-tdep.c: Likewise.
4170         * sparc64nbsd-tdep.c: Likewise.
4171         * sparcnbsd-tdep.c: Likewise.
4172         * spu-linux-nat.c: Likewise.
4173         * spu-multiarch.c: Likewise.
4174         * spu-tdep.c: Likewise.
4175         * stabsread.c: Likewise.
4176         * stack.c: Likewise.
4177         * std-regs.c: Likewise.
4178         * symfile.c: Likewise.
4179         * symmisc.c: Likewise.
4180         * symtab.c: Likewise.
4181         * target.c: Likewise.
4182         * thread.c: Likewise.
4183         * tilegx-linux-nat.c: Likewise.
4184         * tilegx-tdep.c: Likewise.
4185         * top.c: Likewise.
4186         * tracepoint.c: Likewise.
4187         * tui/tui-command.c: Likewise.
4188         * tui/tui-data.c: Likewise.
4189         * tui/tui-disasm.c: Likewise.
4190         * tui/tui-file.c: Likewise.
4191         * tui/tui-layout.c: Likewise.
4192         * tui/tui-out.c: Likewise.
4193         * tui/tui-regs.c: Likewise.
4194         * tui/tui-source.c: Likewise.
4195         * tui/tui-stack.c: Likewise.
4196         * tui/tui-win.c: Likewise.
4197         * tui/tui-windata.c: Likewise.
4198         * tui/tui-winsource.c: Likewise.
4199         * typeprint.c: Likewise.
4200         * ui-file.c: Likewise.
4201         * ui-out.c: Likewise.
4202         * user-regs.c: Likewise.
4203         * utils.c: Likewise.
4204         * v850-tdep.c: Likewise.
4205         * valarith.c: Likewise.
4206         * valops.c: Likewise.
4207         * valprint.c: Likewise.
4208         * value.c: Likewise.
4209         * varobj.c: Likewise.
4210         * vax-tdep.c: Likewise.
4211         * vaxnbsd-tdep.c: Likewise.
4212         * vaxobsd-tdep.c: Likewise.
4213         * windows-nat.c: Likewise.
4214         * xcoffread.c: Likewise.
4215         * xml-support.c: Likewise.
4216         * xstormy16-tdep.c: Likewise.
4217         * xtensa-linux-nat.c: Likewise.
4218
4219 2014-08-07  Gary Benson  <gbenson@redhat.com>
4220
4221         * common/common-defs.h: Include gdb_assert.h.
4222         * aarch64-tdep.c: Do not include gdb_assert.h.
4223         * addrmap.c: Likewise.
4224         * aix-thread.c: Likewise.
4225         * alpha-linux-tdep.c: Likewise.
4226         * alpha-mdebug-tdep.c: Likewise.
4227         * alphanbsd-tdep.c: Likewise.
4228         * amd64-nat.c: Likewise.
4229         * amd64-tdep.c: Likewise.
4230         * amd64bsd-nat.c: Likewise.
4231         * amd64fbsd-nat.c: Likewise.
4232         * amd64fbsd-tdep.c: Likewise.
4233         * amd64nbsd-nat.c: Likewise.
4234         * amd64nbsd-tdep.c: Likewise.
4235         * amd64obsd-nat.c: Likewise.
4236         * amd64obsd-tdep.c: Likewise.
4237         * arch-utils.c: Likewise.
4238         * arm-tdep.c: Likewise.
4239         * armbsd-tdep.c: Likewise.
4240         * auxv.c: Likewise.
4241         * bcache.c: Likewise.
4242         * bfin-tdep.c: Likewise.
4243         * blockframe.c: Likewise.
4244         * breakpoint.c: Likewise.
4245         * bsd-kvm.c: Likewise.
4246         * bsd-uthread.c: Likewise.
4247         * buildsym.c: Likewise.
4248         * c-exp.y: Likewise.
4249         * c-lang.c: Likewise.
4250         * charset.c: Likewise.
4251         * cleanups.c: Likewise.
4252         * cli-out.c: Likewise.
4253         * cli/cli-decode.c: Likewise.
4254         * cli/cli-dump.c: Likewise.
4255         * cli/cli-logging.c: Likewise.
4256         * cli/cli-script.c: Likewise.
4257         * cli/cli-utils.c: Likewise.
4258         * coffread.c: Likewise.
4259         * common/common-utils.c: Likewise.
4260         * common/queue.h: Likewise.
4261         * common/signals.c: Likewise.
4262         * common/vec.h: Likewise.
4263         * complaints.c: Likewise.
4264         * completer.c: Likewise.
4265         * corelow.c: Likewise.
4266         * cp-abi.c: Likewise.
4267         * cp-name-parser.y: Likewise.
4268         * cp-namespace.c: Likewise.
4269         * cp-support.c: Likewise.
4270         * cris-tdep.c: Likewise.
4271         * dbxread.c: Likewise.
4272         * dictionary.c: Likewise.
4273         * doublest.c: Likewise.
4274         * dsrec.c: Likewise.
4275         * dummy-frame.c: Likewise.
4276         * dwarf2-frame-tailcall.c: Likewise.
4277         * dwarf2-frame.c: Likewise.
4278         * dwarf2expr.c: Likewise.
4279         * dwarf2loc.c: Likewise.
4280         * dwarf2read.c: Likewise.
4281         * eval.c: Likewise.
4282         * event-loop.c: Likewise.
4283         * exceptions.c: Likewise.
4284         * expprint.c: Likewise.
4285         * f-valprint.c: Likewise.
4286         * fbsd-nat.c: Likewise.
4287         * findvar.c: Likewise.
4288         * frame-unwind.c: Likewise.
4289         * frame.c: Likewise.
4290         * frv-tdep.c: Likewise.
4291         * gcore.c: Likewise.
4292         * gdb-dlfcn.c: Likewise.
4293         * gdb_bfd.c: Likewise.
4294         * gdbarch.c: Likewise.
4295         * gdbarch.sh: Likewise.
4296         * gdbtypes.c: Likewise.
4297         * gnu-nat.c: Likewise.
4298         * gnu-v3-abi.c: Likewise.
4299         * go-lang.c: Likewise.
4300         * guile/scm-exception.c: Likewise.
4301         * guile/scm-gsmob.c: Likewise.
4302         * guile/scm-lazy-string.c: Likewise.
4303         * guile/scm-math.c: Likewise.
4304         * guile/scm-pretty-print.c: Likewise.
4305         * guile/scm-safe-call.c: Likewise.
4306         * guile/scm-utils.c: Likewise.
4307         * guile/scm-value.c: Likewise.
4308         * h8300-tdep.c: Likewise.
4309         * hppa-hpux-nat.c: Likewise.
4310         * hppa-tdep.c: Likewise.
4311         * hppanbsd-tdep.c: Likewise.
4312         * hppaobsd-tdep.c: Likewise.
4313         * i386-darwin-nat.c: Likewise.
4314         * i386-darwin-tdep.c: Likewise.
4315         * i386-nto-tdep.c: Likewise.
4316         * i386-tdep.c: Likewise.
4317         * i386bsd-nat.c: Likewise.
4318         * i386fbsd-tdep.c: Likewise.
4319         * i386gnu-nat.c: Likewise.
4320         * i386nbsd-tdep.c: Likewise.
4321         * i386obsd-tdep.c: Likewise.
4322         * i387-tdep.c: Likewise.
4323         * ia64-libunwind-tdep.c: Likewise.
4324         * ia64-tdep.c: Likewise.
4325         * inf-ptrace.c: Likewise.
4326         * inf-ttrace.c: Likewise.
4327         * infcall.c: Likewise.
4328         * infcmd.c: Likewise.
4329         * infrun.c: Likewise.
4330         * inline-frame.c: Likewise.
4331         * interps.c: Likewise.
4332         * jv-lang.c: Likewise.
4333         * jv-typeprint.c: Likewise.
4334         * linux-fork.c: Likewise.
4335         * linux-nat.c: Likewise.
4336         * linux-thread-db.c: Likewise.
4337         * m32c-tdep.c: Likewise.
4338         * m32r-linux-nat.c: Likewise.
4339         * m32r-tdep.c: Likewise.
4340         * m68k-tdep.c: Likewise.
4341         * m68kbsd-nat.c: Likewise.
4342         * m68kbsd-tdep.c: Likewise.
4343         * m88k-tdep.c: Likewise.
4344         * machoread.c: Likewise.
4345         * macroexp.c: Likewise.
4346         * macrotab.c: Likewise.
4347         * maint.c: Likewise.
4348         * mdebugread.c: Likewise.
4349         * memory-map.c: Likewise.
4350         * mep-tdep.c: Likewise.
4351         * mi/mi-common.c: Likewise.
4352         * microblaze-tdep.c: Likewise.
4353         * mingw-hdep.c: Likewise.
4354         * mips-linux-nat.c: Likewise.
4355         * mips-linux-tdep.c: Likewise.
4356         * mips-tdep.c: Likewise.
4357         * mips64obsd-tdep.c: Likewise.
4358         * mipsnbsd-tdep.c: Likewise.
4359         * mn10300-linux-tdep.c: Likewise.
4360         * mn10300-tdep.c: Likewise.
4361         * moxie-tdep.c: Likewise.
4362         * mt-tdep.c: Likewise.
4363         * nat/linux-btrace.c: Likewise.
4364         * nat/linux-osdata.c: Likewise.
4365         * nat/linux-ptrace.c: Likewise.
4366         * nat/mips-linux-watch.c: Likewise.
4367         * nios2-linux-tdep.c: Likewise.
4368         * nios2-tdep.c: Likewise.
4369         * objc-lang.c: Likewise.
4370         * objfiles.c: Likewise.
4371         * obsd-nat.c: Likewise.
4372         * opencl-lang.c: Likewise.
4373         * osabi.c: Likewise.
4374         * parse.c: Likewise.
4375         * ppc-linux-nat.c: Likewise.
4376         * ppc-sysv-tdep.c: Likewise.
4377         * ppcfbsd-nat.c: Likewise.
4378         * ppcfbsd-tdep.c: Likewise.
4379         * ppcnbsd-nat.c: Likewise.
4380         * ppcnbsd-tdep.c: Likewise.
4381         * ppcobsd-nat.c: Likewise.
4382         * ppcobsd-tdep.c: Likewise.
4383         * printcmd.c: Likewise.
4384         * procfs.c: Likewise.
4385         * prologue-value.c: Likewise.
4386         * psymtab.c: Likewise.
4387         * python/py-lazy-string.c: Likewise.
4388         * python/py-value.c: Likewise.
4389         * regcache.c: Likewise.
4390         * reggroups.c: Likewise.
4391         * registry.c: Likewise.
4392         * remote-sim.c: Likewise.
4393         * remote.c: Likewise.
4394         * rs6000-aix-tdep.c: Likewise.
4395         * rs6000-tdep.c: Likewise.
4396         * s390-linux-tdep.c: Likewise.
4397         * score-tdep.c: Likewise.
4398         * ser-base.c: Likewise.
4399         * ser-mingw.c: Likewise.
4400         * sh-tdep.c: Likewise.
4401         * sh64-tdep.c: Likewise.
4402         * solib-darwin.c: Likewise.
4403         * solib-spu.c: Likewise.
4404         * solib-svr4.c: Likewise.
4405         * source.c: Likewise.
4406         * sparc-nat.c: Likewise.
4407         * sparc-sol2-tdep.c: Likewise.
4408         * sparc-tdep.c: Likewise.
4409         * sparc64-sol2-tdep.c: Likewise.
4410         * sparc64-tdep.c: Likewise.
4411         * sparc64fbsd-tdep.c: Likewise.
4412         * sparc64nbsd-tdep.c: Likewise.
4413         * sparc64obsd-tdep.c: Likewise.
4414         * sparcnbsd-tdep.c: Likewise.
4415         * sparcobsd-tdep.c: Likewise.
4416         * spu-multiarch.c: Likewise.
4417         * spu-tdep.c: Likewise.
4418         * stabsread.c: Likewise.
4419         * stack.c: Likewise.
4420         * symfile.c: Likewise.
4421         * symtab.c: Likewise.
4422         * target-descriptions.c: Likewise.
4423         * target-memory.c: Likewise.
4424         * target.c: Likewise.
4425         * tic6x-linux-tdep.c: Likewise.
4426         * tic6x-tdep.c: Likewise.
4427         * tilegx-linux-nat.c: Likewise.
4428         * tilegx-tdep.c: Likewise.
4429         * top.c: Likewise.
4430         * tramp-frame.c: Likewise.
4431         * tui/tui-out.c: Likewise.
4432         * tui/tui-winsource.c: Likewise.
4433         * ui-out.c: Likewise.
4434         * user-regs.c: Likewise.
4435         * utils.c: Likewise.
4436         * v850-tdep.c: Likewise.
4437         * valops.c: Likewise.
4438         * value.c: Likewise.
4439         * varobj.c: Likewise.
4440         * vax-nat.c: Likewise.
4441         * xml-syscall.c: Likewise.
4442         * xml-tdesc.c: Likewise.
4443         * xstormy16-tdep.c: Likewise.
4444         * xtensa-linux-nat.c: Likewise.
4445         * xtensa-tdep.c: Likewise.
4446
4447 2014-08-07  Gary Benson  <gbenson@redhat.com>
4448
4449         * common/common-defs.h: Include common-utils.h.
4450         * defs.h: Do not include common-utils.h.
4451         * common/gdb_assert.h: Likewise.
4452         * darwin-nat.h: Likewise.
4453         * nat/linux-btrace.c: Likewise.
4454         * target/waitstatus.h: Likewise.
4455
4456 2014-08-07  Gary Benson  <gbenson@redhat.com>
4457
4458         * common/common-defs.h: Include ptid.h.
4459         * defs.h: Do not include ptid.h.
4460         * inferior.h: Likewise.
4461         * infrun.h: Likewise.
4462         * nat/linux-btrace.h: Likewise.
4463         * nat/linux-osdata.h: Likewise.
4464         * target/waitstatus.h: Likewise.
4465
4466 2014-08-07  Gary Benson  <gbenson@redhat.com>
4467
4468         * common/common-defs.h: Include gdb_locale.h.
4469         * defs.h: Do not include gdb_locale.h.
4470
4471 2014-08-07  Gary Benson  <gbenson@redhat.com>
4472
4473         * common/common-defs.h: Include gdb/signals.h.
4474         * defs.h: Do not include gdb/signals.h.
4475
4476 2014-08-07  Gary Benson  <gbenson@redhat.com>
4477
4478         * common/common-defs.h: Include pathmax.h.
4479         * defs.h: Do not include pathmax.h.
4480
4481 2014-08-07  Gary Benson  <gbenson@redhat.com>
4482
4483         * common/common-defs.h: Include libiberty.h.
4484         * defs.h: Do not include libiberty.h.
4485         * common/queue.h: Likewise.
4486         * cp-name-parser.y: Likewise.
4487         * mi/mi-cmd-catch.c: Likewise.
4488         * python/python.c: Likewise.
4489
4490 2014-08-07  Gary Benson  <gbenson@redhat.com>
4491
4492         * common/common-defs.h: Include ansidecl.h.
4493         * defs.h: Do not include ansidecl.h.
4494         * common/buffer.h: Likewise.
4495         * common/common-utils.h: Likewise.
4496
4497 2014-08-07  Gary Benson  <gbenson@redhat.com>
4498
4499         * common/common-defs.h: Include stddef.h.
4500         * defs.h: Do not include stddef.h.
4501         * common/common-utils.h: Likewise.
4502         * amd64fbsd-nat.c: Likewise.
4503         * bcache.c: Likewise.
4504         * charset.c: Likewise.
4505         * common/buffer.h: Likewise.
4506         * common/vec.h: Likewise.
4507         * i386bsd-nat.c: Likewise.
4508         * nat/linux-btrace.h: Likewise.
4509         * ppcfbsd-nat.c: Likewise.
4510         * ppcnbsd-tdep.h: Likewise.
4511         * ppcobsd-nat.c: Likewise.
4512         * ppcobsd-tdep.h: Likewise.
4513         * python/py-gdb-readline.c: Likewise.
4514
4515 2014-08-07  Gary Benson  <gbenson@redhat.com>
4516
4517         * common/common-defs.h: Include stdarg.h.
4518         * defs.h: Do not include stdarg.h.
4519         * ada-lang.c: Likewise.
4520         * common/common-utils.h: Likewise.
4521         * guile/scm-string.c: Likewise.
4522         * guile/scm-utils.c: Likewise.
4523         * m32c-tdep.c: Likewise.
4524
4525 2014-08-07  Gary Benson  <gbenson@redhat.com>
4526
4527         * common/common-defs.h: Include stdlib.h.
4528         * defs.h: Do not include stdlib.h.
4529         * addrmap.c: Likewise.
4530         * bcache.c: Likewise.
4531         * common/buffer.c: Likewise.
4532         * common/common-utils.c: Likewise.
4533         * cp-name-parser.y: Likewise.
4534         * go32-nat.c: Likewise.
4535         * mn10300-linux-tdep.c: Likewise.
4536         * nat/linux-osdata.c: Likewise.
4537         * tui/tui.c: Likewise.
4538         * windows-nat.c: Likewise.
4539
4540 2014-08-07  Gary Benson  <gbenson@redhat.com>
4541
4542         * common/common-defs.h: Include stdio.h.
4543         * defs.h: Do not include stdio.h.
4544         * ada-lang.c: Likewise.
4545         * common/buffer.c: Likewise.
4546         * common/common-utils.c: Likewise.
4547         * cp-name-parser.y: Likewise.
4548         * gnu-nat.c: Likewise.
4549         * go32-nat.c: Likewise.
4550         * i386gnu-nat.c: Likewise.
4551         * proc-api.c: Likewise.
4552         * proc-events.c: Likewise.
4553         * proc-flags.c: Likewise.
4554         * proc-why.c: Likewise.
4555         * python/python-internal.h: Likewise.
4556         * target-memory.c: Likewise.
4557         * tui/tui-io.c: Likewise.
4558         * tui/tui.c: Likewise.
4559
4560 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
4561
4562         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4563         (scan_dyntag_auxv): Same.
4564
4565 2014-08-06  Yao Qi  <yao@codesourcery.com>
4566
4567         * amd64-linux-nat.c: Remove duplicated include
4568         "x86-linux-nat.h".
4569         * i386-linux-nat.c: Likewise.
4570
4571 2014-08-06  Yao Qi  <yao@codesourcery.com>
4572
4573         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4574         operand" with "Special opcode" in comments.
4575
4576 2014-08-05  Gary Benson  <gbenson@redhat.com>
4577
4578         * interps.c (initialize_interps): Remove prototype.
4579         (interpreter_initialized): Remove static global.
4580         (interp_add): Do not call initialize_interps.
4581         (initialize_interps): Remove function.
4582
4583 2014-08-05  Gary Benson  <gbenson@redhat.com>
4584
4585         * utils.c (vwarning): Remove spurious va_end.
4586
4587 2014-08-05  Alan Modra  <amodra@gmail.com>
4588
4589         * charset.c (convert_between_encodings): Cast result of obstack_base.
4590         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4591         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4592         (read_unwind_info): Use size_t for some locals.
4593         * jit.c (finalize_symtab): Likewise.
4594         * utils.c (hashtab_obstack_allocate): Likewise.
4595         * symmisc.c (print_objfile_statistics): Update format strings.
4596
4597 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4598
4599         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4600         (Changes in GDB 7.8): ... here.
4601
4602 2014-08-04  Tom Tromey  <tromey@redhat.com>
4603
4604         * target.c (set_targetdebug): New function.
4605         (initialize_targets): Pass set_targetdebug when creating "set
4606         debug target".
4607
4608 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
4609
4610         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4611         if detecting a variable-sized field that is not the last field.
4612         Fix struct type length computation.
4613
4614 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
4615
4616         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4617         Add debug trace.
4618
4619 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
4620
4621         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4622         Remove "+ 8" offset in computation of CHAIN_VMA.
4623
4624 2014-07-31  Doug Evans  <dje@google.com>
4625
4626         * inflow.c (child_terminal_inferior): Add comment.
4627         (child_terminal_ours_for_output): Add comment.
4628         (child_terminal_ours): Add comment.
4629         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4630         (linux_nat_terminal_ours): Add comment.
4631
4632 2014-07-31  Gary Benson  <gbenson@redhat.com>
4633
4634         * common/btrace-common.h: Do not include defs.h or server.h.
4635         * nat/mips-linux-watch.h: Likewise.
4636         * gdb-dlfcn.h: Do not include defs.h.
4637         * tracefile.h: Likewise.
4638
4639 2014-07-30  Roland McGrath  <mcgrathr@google.com>
4640
4641         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4642
4643 2014-07-30  Tom Tromey  <tromey@redhat.com>
4644
4645         * bsd-kvm.c (bsd_kvm_open): Constify.
4646         * corelow.c (core_open): Constify.
4647         * ctf.c (ctf_open): Constify.
4648         * dbug-rom.c (dbug_open): Constify.
4649         * exec.c (exec_open): Constify.
4650         * m32r-rom.c (m32r_open, mon2000_open): Constify.
4651         * microblaze-rom.c (picobug_open): Constify.
4652         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4653         Constify.
4654         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4655         * record-btrace.c (record_btrace_open): Constify.
4656         * record-full.c (record_full_core_open_1, record_full_open_1)
4657         (record_full_open): Constify.
4658         * remote-m32r-sdi.c (m32r_open): Constify.
4659         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4660         (rockhopper_open, lsi_open): Constify.
4661         * remote-sim.c (gdbsim_open): Constify.
4662         * remote.c (remote_open, extended_remote_open, remote_open_1):
4663         Constify.
4664         * target.h (struct target_ops) <to_open>: Make "arg" const.
4665         * tracefile-tfile.c (tfile_open): Constify.
4666
4667 2014-07-30  Tom Tromey  <tromey@redhat.com>
4668
4669         * breakpoint.c (map_breakpoint_numbers): Update.
4670         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
4671         (get_number_const): New function.
4672         (get_number): Rewrite using get_number_const.
4673         (init_number_or_range): Make "string" const.
4674         (number_is_in_list): Make "list" const.
4675         * cli/cli-utils.h (get_number_const): Declare.
4676         (struct get_number_or_range_state) <string, end_ptr>: Now const.
4677         (init_number_or_range, number_is_in_list): Update.
4678         * printcmd.c (map_display_numbers): Update.
4679         * value.c (value_from_history_ref): Constify.
4680         * value.h (value_from_history_ref): Update.
4681
4682 2014-07-30  Tom Tromey  <tromey@redhat.com>
4683
4684         * corefile.c (hook_type, call_extra_exec_file_hooks)
4685         (specify_exec_file_hook): Constify.
4686         * exec.c (exec_file_attach): Make "filename" const.
4687         * gdbcore.h (deprecated_exec_file_display_hook)
4688         (specify_exec_file_hook, exec_file_attach): Constify.
4689         * main.c (captured_main): Use catch_command_errors_const.
4690
4691 2014-07-30  Tom Tromey  <tromey@redhat.com>
4692
4693         * target.c (open_target): New function.
4694         (add_target_with_completer, add_deprecated_target_alias): Use
4695         set_cmd_sfunc, set_cmd_context.
4696         (debug_to_open): Remove.
4697         (setup_target_debug): Update.
4698
4699 2014-07-30  Yao Qi  <yao@codesourcery.com>
4700
4701         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4702         comments.
4703         * parse.c (exp_iterate): Update comments.
4704
4705 2014-07-30  Gary Benson  <gbenson@redhat.com>
4706
4707         * common/common-defs.h: New file.
4708         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4709         * defs.h: Include common-defs.h.
4710         Do not include config.h or build-gnulib/config.h.
4711
4712 2014-07-30  Gary Benson  <gbenson@redhat.com>
4713
4714         * common/common-utils.h: Do not include config.h.
4715         * nat/linux-btrace.h: Likewise.
4716
4717 2014-07-30  Gary Benson  <gbenson@redhat.com>
4718
4719         * btrace.c: Include defs.h.
4720         * common/ptid.c: Include defs.h or server.h as appropriate.
4721         * nat/mips-linux-watch.c: Likewise.
4722
4723 2014-07-29  Tom Tromey  <tromey@redhat.com>
4724
4725         * target.c (target_is_pushed): Simplify.
4726
4727 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
4728
4729         GDB 7.8 released.
4730
4731 2014-07-29  Yao Qi  <yao@codesourcery.com>
4732
4733         PR gdb/17206
4734         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4735
4736 2014-07-28  Doug Evans  <xdje42@gmail.com>
4737
4738         PR guile/17203
4739         * guile/scm-param.c (pascm_parameter_defined_p): New function.
4740         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
4741         parameters.
4742
4743 2014-07-28  Will Newton  <will.newton@linaro.org>
4744
4745         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4746         (THUMB2_SET_R7_SIGRETURN2): Likewise.
4747         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4748         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4749         (THUMB2_EABI_SYSCALL): Likewise.
4750         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4751         struct tramp_frame.
4752         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4753         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4754
4755 2014-07-27  Doug Evans  <xdje42@gmail.com>
4756
4757         * guile/scm-param.c (pascm_print_param_smob): Fix output.
4758
4759 2014-07-27  Doug Evans  <xdje42@gmail.com>
4760
4761         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4762
4763 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
4764             Doug Evans  <xdje42@gmail.com>
4765
4766         PR guile/17146
4767         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4768         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4769         * configure.ac: Try to use guild to compile an scm file, if it fails
4770         then disable guile support.
4771         * configure: Regenerate.
4772         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4773         GUILE_FILE_LIST.
4774         (GUILE_COMPILED_FILES): New variable.
4775         (GUILE_FILES) Update.
4776         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4777         (stamp-guile): Compile scm files.
4778         * guile/guile.c (boot_guile_support): New function.
4779         (standard_throw_args_p): New function.
4780         (print_standard_throw_error, print_throw_error): New functions.
4781         (handle_boot_error): New function.
4782         (initialize_scheme_side): Rewrite to call boot_guile_support.
4783         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
4784         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4785
4786 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
4787             Doug Evans  <xdje42@gmail.com>
4788
4789         PR guile/17146
4790         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4791         * guile/lib/gdb/support.scm: New file.
4792         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4793         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4794         All uses updated.
4795         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4796         All uses updated.
4797         (%assert-type): Ditto, and renamed to assert-type.
4798         (%exception-print-style): Delete.
4799
4800 2014-07-26  Doug Evans  <xdje42@gmail.com>
4801
4802         PR build/17105
4803         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4804         * configure: Regenerate.
4805         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4806         PYTHON_FILES.
4807         (PYTHON_FILES): New variable.
4808         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4809         (GUILE_FILES): New variable.
4810         (stamp-python, install-python, uninstall-python): Handle empty
4811         file list.
4812         (stamp-guile, install-guile, uninstall-guile): Ditto.
4813
4814 2014-07-26  Doug Evans  <xdje42@gmail.com>
4815
4816         PR guile/17177
4817         * guile/lib/gdb.scm (pretty-printers): Export.
4818         (set-pretty-printers!): Export.
4819         * guile/lib/gdb/printing.scm (gdb module): Update.
4820         (prepend-pretty-printer!, append-pretty-printer!): Update.
4821         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4822         (pretty_printer_list_var): Delete.
4823         (pretty_printer_list): New static global.
4824         (gdbscm_pretty_printers): New function.
4825         (gdbscm_set_pretty_printers_x): New function.
4826         (ppscm_find_pretty_printer_from_gdb): Update.
4827         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4828         (gdbscm_initialize_pretty_printers): Update.
4829
4830 2014-07-26  Doug Evans  <xdje42@gmail.com>
4831
4832         PR 17185
4833         * configure.ac: Add check for header gc/gc.h.
4834         Add check for function setenv.
4835         * configure: Regenerate.
4836         * config.in: Regenerate.
4837         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4838
4839 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
4840
4841         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4842         variation in gdbarch matching.
4843
4844 2014-07-25  Tom Tromey  <tromey@redhat.com>
4845
4846         * exec.c (using_exec_ops): Remove.
4847         (exec_close_1): Update.  Remove extraneous block, reindent.
4848         (add_target_sections): Use target_is_pushed.
4849
4850 2014-07-25  Pedro Alves  <palves@redhat.com>
4851
4852         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4853         * monitor.c (monitor_create_inferior): Likewise.
4854         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4855         * remote-sim.c (gdbsim_create_inferior): Likewise.
4856         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4857         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4858         * windows-nat.c (do_initial_windows_stuff): Likewise.
4859
4860 2014-07-25  Pedro Alves  <palves@redhat.com>
4861
4862         * NEWS: Mention signal passing and "signal" command changes.
4863         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4864         comment.
4865         * breakpoint.c (until_break_command): Adjust clear_proceed_status
4866         call.
4867         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4868         * infcmd.c (proceed_thread_callback, continue_1, step_once)
4869         (jump_command): Adjust clear_proceed_status call.
4870         (signal_command): Warn if other thread that are resumed have
4871         signals that will be delivered.  Adjust clear_proceed_status call.
4872         (until_next_command, finish_command)
4873         (proceed_after_attach_callback, attach_command_post_wait)
4874         (attach_command): Adjust clear_proceed_status call.
4875         * infrun.c (proceed_after_vfork_done): Likewise.
4876         (proceed_after_attach_callback): Adjust comment.
4877         (clear_proceed_status_thread): Clear stop_signal if not in pass
4878         state.
4879         (clear_proceed_status_callback): Delete.
4880         (clear_proceed_status): New 'step' parameter.  Only clear the
4881         proceed status of threads the command being prepared is about to
4882         resume.
4883         (proceed): If passed in an explicit signal, override stop_signal
4884         with it.  Don't pass the last stop signal to the thread we're
4885         resuming.
4886         (init_wait_for_inferior): Adjust clear_proceed_status call.
4887         (switch_back_to_stepped_thread): Clear the signal if it should not
4888         be passed.
4889         * infrun.h (clear_proceed_status): New 'step' parameter.
4890         (user_visible_resume_ptid): Add comment.
4891         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4892         signal is in pass state.
4893         * remote.c (append_pending_thread_resumptions): Likewise.
4894         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4895
4896 2014-07-25  Tom Tromey  <tromey@redhat.com>
4897
4898         * target.h (target_stopped_data_address)
4899         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
4900         parentheses.
4901
4902 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
4903
4904         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4905         comments.
4906         (avr_pointer_to_address): Likewise.
4907
4908 2014-07-24  Tom Tromey  <tromey@redhat.com>
4909
4910         * monitor.c (compile_pattern): Update.
4911         * target.h (struct target_ops) <to_shortname, to_longname,
4912         to_doc>: Now const.
4913
4914 2014-07-24  Tom Tromey  <tromey@redhat.com>
4915
4916         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4917         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4918         (add_info_alias, add_com): Make "doc" const.
4919         (print_doc_line): Make "str" const.
4920         (delete_cmd): Update.
4921         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4922         (print_doc_line): Update.
4923         * cli/cli-script.c (document_command): Update.
4924         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4925         (add_com, add_info, add_info_alias): Update.
4926         * guile/scm-cmd.c (cmdscm_destroyer): Update.
4927         * python/py-cmd.c (cmdpy_destroyer): Update.
4928
4929 2014-07-24  Tom Tromey  <tromey@redhat.com>
4930
4931         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4932         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4933         (help_cmd_list): Constify.
4934         (lookup_cmd): Update.
4935         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4936         const.
4937         (help_cmd_list, apropos_cmd): Update.
4938         * cli/cli-script.c (show_user): Update.
4939         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4940         * cli/cli-setshow.h (cmd_show_list): Update.
4941         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4942         (cmd_show_list): Update.
4943         * guile/scm-cmd.c (cmdscm_destroyer): Update.
4944         * python/py-cmd.c (cmdpy_destroyer): Update.
4945
4946 2014-07-24  Tom Tromey  <tromey@redhat.com>
4947
4948         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4949         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4950         const.
4951         * command.h (deprecate_cmd): Update.
4952         * maint.c (maintenance_do_deprecate): Add casts.
4953
4954 2014-07-24  Tom Tromey  <tromey@redhat.com>
4955
4956         * cli/cli-decode.c (help_cmd): Make parameter "const".
4957         * cli/cli-decode.h (help_cmd): Update.
4958
4959 2014-07-24  Tom Tromey  <tromey@redhat.com>
4960
4961         * stack.c (up_silently_base, down_silently_base): Make argument
4962         const.
4963
4964 2014-07-24  Tom Tromey  <tromey@redhat.com>
4965
4966         * solib.c (solib_add): Make "pattern" const.
4967         * solib.h (solib_add): Update.
4968
4969 2014-07-24  Tom Tromey  <tromey@redhat.com>
4970
4971         * remote.c (remote_serial_open, print_packet, putpkt)
4972         (putpkt_binary): Constify.
4973         * remote.h (putpkt): Update.
4974
4975 2014-07-24  Tom Tromey  <tromey@redhat.com>
4976
4977         * monitor.c (monitor_open): Make "args" const.
4978         * monitor.h (monitor_open): Update.
4979
4980 2014-07-24  Tom Tromey  <tromey@redhat.com>
4981
4982         * maint.c (match_bfd_flags): Make "string" const.
4983         (print_bfd_section_info): Remove casts.
4984         (print_objfile_section_info): Make "string" const.
4985
4986 2014-07-24  Tom Tromey  <tromey@redhat.com>
4987
4988         * inf-child.c (inf_child_open_target): Make "arg" const.
4989         * inf-child.h (inf_child_open_target): Update.
4990
4991 2014-07-24  Tom Tromey  <tromey@redhat.com>
4992
4993         * environ.c (unset_in_environ): Make "var" const.
4994         * environ.h (unset_in_environ): Update.
4995
4996 2014-07-24  Tom Tromey  <tromey@redhat.com>
4997
4998         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
4999         Make "cmd" const.
5000         (scan_filename_with_cleanup): Likewise.
5001         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5002         Make arguments const.
5003         (restore_command): Update.
5004
5005 2014-07-24  Pedro Alves  <palves@redhat.com>
5006
5007         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5008
5009 2014-07-24  Tom Tromey  <tromey@redhat.com>
5010             Gary Benson  <gbenson@redhat.com>
5011
5012         * nat/linux-ptrace.c (additional_flags): New global.
5013         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5014         additional_flags; don't check GDBSERVER.
5015         (linux_ptrace_set_additional_flags): New function.
5016         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5017         Declare.
5018         * linux-nat.c (_initialize_linux_nat): Call
5019         linux_ptrace_set_additional_flags.
5020
5021 2014-07-24  Tom Tromey  <tromey@redhat.com>
5022
5023         * make-target-delegates (munge_type, write_debugmethod): New
5024         functions.
5025         (debug_names): New global.
5026         ($TARGET_DEBUG_PRINTER): New global.
5027         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5028         name.
5029         Write debug methods.  Generate init_debug_target.
5030         * target-debug.h: New file.
5031         * target-delegates.c: Rebuild.
5032         * target.c: Include target-debug.h.
5033         (debug_target): Hoist definition.
5034         (target_kill, target_get_section_table, target_memory_map)
5035         (target_flash_erase, target_flash_done, target_detach)
5036         (target_disconnect, target_wait, target_resume)
5037         (target_pass_signals, target_program_signals, target_follow_fork)
5038         (target_mourn_inferior, target_search_memory)
5039         (target_thread_address_space, target_close)
5040         (target_find_new_threads, target_core_of_thread)
5041         (target_verify_memory, target_insert_mask_watchpoint)
5042         (target_remove_mask_watchpoint): Remove targetdebug code.
5043         (debug_to_post_attach, debug_to_prepare_to_store)
5044         (debug_to_files_info, debug_to_insert_breakpoint)
5045         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5046         (debug_to_region_ok_for_hw_watchpoint)
5047         (debug_to_can_accel_watchpoint_condition)
5048         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5049         (debug_to_watchpoint_addr_within_range)
5050         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5051         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5052         (debug_to_terminal_init, debug_to_terminal_inferior)
5053         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5054         (debug_to_terminal_save_ours, debug_to_terminal_info)
5055         (debug_to_load, debug_to_post_startup_inferior)
5056         (debug_to_insert_fork_catchpoint)
5057         (debug_to_remove_fork_catchpoint)
5058         (debug_to_insert_vfork_catchpoint)
5059         (debug_to_remove_vfork_catchpoint)
5060         (debug_to_insert_exec_catchpoint)
5061         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5062         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5063         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5064         (setup_target_debug): Call init_debug_target.
5065         * target.h (TARGET_DEBUG_PRINTER): New macro.
5066         (struct target_ops) <to_resume, to_wait, to_pass_signals,
5067         to_program_signals>: Use TARGET_DEBUG_PRINTER.
5068
5069 2014-07-24  Gary Benson  <gbenson@redhat.com>
5070
5071         * exceptions.h (throw_vfatal): Renamed to...
5072         (throw_vquit): New declaration.
5073         (throw_quit): Likewise.
5074         * exceptions.c (throw_vfatal): Renamed to...
5075         (throw_vquit): New function.
5076         (throw_quit): Likewise.
5077         (throw_error): Call throw_verror rather than throw_it.
5078         * utils.h (vfatal): Removed.
5079         (fatal): Likewise.
5080         * utils.c (vfatal): Removed.
5081         (fatal): Likewise.
5082         (internal_verror): Replaced call to fatal with call to throw_quit.
5083         (quit): Replaced calls to fatal with calls to throw_quit.
5084
5085 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
5086
5087         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5088         target_read_code.
5089
5090 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
5091
5092         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5093         less than zero in conditional expression.
5094
5095 2014-07-23  Tom Tromey  <tromey@redhat.com>
5096
5097         * make-target-delegates ($ARGS_PART): Match trailing close paren.
5098         ($INTRO_PART): Don't match whitespace.
5099         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
5100         argument matching.
5101         ($METHOD): Add $METHOD_TRAILER.
5102         (trim): Rewrite.
5103         (scan_target_h): New sub.
5104         Change main loop not to collect state.
5105         * target-delegates.c: Rebuild.
5106
5107 2014-07-23  Gary Benson  <gbenson@redhat.com>
5108
5109         * cp-support.c (gdb_demangle): Fix build on systems without
5110         sigaltstack.
5111
5112 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
5113
5114         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5115         for reference entry value target data value.
5116
5117 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
5118
5119         * stack.c (read_frame_arg): Verify value_optimized_out before calling
5120         value_available_contents_eq.
5121
5122 2014-07-22  Pedro Alves  <palves@redhat.com>
5123
5124         * value.c (allocate_optimized_out_value): Don't mark value as
5125         non-lazy.
5126
5127 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
5128
5129         * MAINTAINERS (Write After Approval): Update my email address.
5130
5131 2014-07-20  Doug Evans  <dje@google.com>
5132
5133         PR server/17147
5134         * remote.c (putpkt_binary): Add text to error message.
5135
5136 2014-07-20  Yao Qi  <yao@codesourcery.com>
5137
5138         * eval.c: Remove "Chill" from comments.
5139         * gdbtypes.h: Likewise.
5140         * symtab.h: Likewise.
5141
5142 2014-07-20  Yao Qi  <yao@codesourcery.com>
5143
5144         * std-operator.def: Update comments to TERNOP_SLICE.
5145
5146 2014-07-20  Yao Qi  <yao@codesourcery.com>
5147
5148         * std-operator.def: Remove BINOP_RANGE.
5149         * breakpoint.c (watchpoint_exp_is_const): Update.
5150         * expprint.c (dump_subexp_body_standard): Likewise.
5151         * eval.c (init_array_element): Remove dead code.
5152         (evaluate_subexp_standard): Likewise.
5153
5154 2014-07-20  Yao Qi  <yao@codesourcery.com>
5155
5156         * std-operator.def: Remove BINOP_IN.
5157         * breakpoint.c (watchpoint_exp_is_const): Update.
5158         * eval.c (evaluate_subexp_standard): Likewise.
5159         * expprint.c (dump_subexp_body_standard): Likewise.
5160
5161 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
5162
5163         * microblaze-tdep.c (microblaze_register_names): Add
5164         the rshr and rslr register names.
5165         (microblaze_gdbarch_init): Use of tdesc_has_registers.
5166         Use of tdesc_find_feature. Use of tdesc_data_alloc.
5167         Use of tdesc_numbered_register. Use of
5168         microblaze_register_g_packet_guesses. Use of
5169         tdesc_use_registers. Use of set_gdbarch_register_type.
5170         (microblaze_register_g_packet_guesses): New.
5171         * microblaze-tdep.h (microblaze_reg_num): Add
5172         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5173         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5174         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5175         * features/microblaze-core.xml: New file.
5176         * features/microblaze-stack-protect.xml: New file.
5177         * features/microblaze-with-stack-protect.c: New file.
5178         * features/microblaze-with-stack-protect.xml: New file.
5179         * features/microblaze.xml: New file.
5180         * features/microblaze.c: New file.
5181         * features/Makefile (microblaze-with-stack-protect): Add
5182         microblaze-with-stack-protect microblaze and microblaze-expedite.
5183         * regformats/microblaze-with-stack-protect.dat: New file.
5184         * regformats/microblaze.dat: New file.
5185         * doc/gdb.texinfo (MicroBlaze Features): Added.
5186
5187 2014-07-18  Tom Tromey  <tromey@redhat.com>
5188
5189         * exec.c (exec_ops): Now static.
5190         * exec.h (exec_ops): Don't declare.
5191
5192 2014-07-18  Tom Tromey  <tromey@redhat.com>
5193
5194         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5195         to find_target_beneath.
5196         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5197         find_target_beneath.
5198         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5199
5200 2014-07-18  Tom Tromey  <tromey@redhat.com>
5201
5202         PR gdb/17130:
5203         * utils.c (quit): Use target_supports_terminal_ours.
5204         * target.h (target_supports_terminal_ours): Declare.
5205         * target.c (target_supports_delete_record): Don't check
5206         to_delete_record against NULL.
5207         (target_supports_terminal_ours): New function.
5208
5209 2014-07-18  Tom Tromey  <tromey@redhat.com>
5210
5211         PR gdb/17130:
5212         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5213         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5214         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5215         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5216         * windows-nat.c (windows_xfer_partial): Always delegate.
5217         * record-btrace.c (record_btrace_xfer_partial): Simplify
5218         delegation.
5219         (record_btrace_fetch_registers, record_btrace_store_registers)
5220         (record_btrace_prepare_to_store, record_btrace_resume)
5221         (record_btrace_wait, record_btrace_find_new_threads)
5222         (record_btrace_thread_alive): Likewise.
5223         * procfs.c (procfs_xfer_partial): Always delegate.
5224         * corelow.c (core_xfer_partial): Always delegate.
5225         * sol-thread.c (sol_find_new_threads): Simplify delegation.
5226
5227 2014-07-18  Tom Tromey  <tromey@redhat.com>
5228
5229         * exec.c (exec_make_note_section): Move earlier.
5230
5231 2014-07-17  Doug Evans  <dje@google.com>
5232
5233         PR gdb/17170
5234         * maint.c (count_symtabs_and_blocks): Handle NULL
5235         current_program_space.
5236         (report_command_stats): Check global enabled flag in addition to
5237         recorded enabled flag.
5238         (make_command_stats_cleanup): Handle msg_type == 0, startup.
5239
5240 2014-07-16  Pedro Alves  <palves@redhat.com>
5241
5242         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5243
5244 2014-07-16  Tom Tromey  <tromey@redhat.com>
5245
5246         * target.h (struct target_ops) <to_delete_record>: Reformat
5247         comment.
5248
5249 2014-07-16  Tom Tromey  <tromey@redhat.com>
5250
5251         * target-delegates.c: Rebuild.
5252
5253 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
5254
5255         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5256         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5257         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5258         (avr_pointer_to_address): Likewise.
5259         (avr_address_class_type_flags): New function.
5260         (avr_address_class_type_flags_to_name): Likewise.
5261         (avr_address_class_name_to_type_flags): Likewise.
5262         (avr_gdbarch_init): Set address_class_type_flags,
5263         address_class_type_flags_to_name and
5264         address_class_name_to_type_flags.
5265
5266 2014-07-15  Pedro Alves  <palves@redhat.com>
5267
5268         * linux-nat.c (kill_callback): Save errno and work with saved
5269         copy.
5270
5271 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
5272
5273         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5274
5275 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
5276
5277         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5278         breakpoint support correctly.
5279
5280 2014-07-14  Pedro Alves  <palves@redhat.com>
5281
5282         * utils.c (prompt_for_continue): Call target_terminal_ours.
5283
5284 2014-07-14  Pedro Alves  <palves@redhat.com>
5285
5286         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5287         catch_errors.  Don't re-enable stdin or notify observers where,
5288         and rethrow error.
5289         (fetch_inferior_event_wrapper): Delete.
5290
5291 2014-07-14  Pedro Alves  <palves@redhat.com>
5292
5293         PR gdb/17072
5294         * top.c: Include "inf-loop.h".
5295         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5296         field.
5297         (gdb_readline_wrapper_cleanup): Make the target async again, if it
5298         was async before.
5299         (gdb_readline_wrapper): Store whether the target is async, and
5300         make it sync.
5301
5302 2014-07-14  Pedro Alves  <palves@redhat.com>
5303
5304         PR gdb/17072
5305         * top.c (gdb_readline_wrapper_line): Tweak comment.
5306         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5307         the input handler callback.
5308
5309 2014-07-14  Pedro Alves  <palves@redhat.com>
5310
5311         PR gdb/17072
5312         * main.c: Include event-top.h.
5313         (handle_command_errors): New function.
5314         (catch_command_errors, catch_command_errors_const): Use it.
5315
5316 2014-07-14  Pedro Alves  <palves@redhat.com>
5317
5318         * exceptions.c (catch_command_errors, catch_command_errors_const):
5319         Moved to main.c.
5320         * exceptions.h (catch_command_errors_ftype)
5321         (catch_command_errors_const_ftype): Moved to main.c.
5322         (catch_command_errors, catch_command_errors_const): Delete
5323         declarations.
5324         * main.c (catch_command_errors_ftype)
5325         (catch_command_errors_const_ftype): Moved here from exceptions.h.
5326         (catch_command_errors, catch_command_errors_const)): Moved here
5327         from exceptions.c and make static.
5328
5329 2014-07-14  Pedro Alves  <palves@redhat.com>
5330
5331         * exceptions.c (print_any_exception): Delete.
5332         (catch_exceptions_with_msg): Use exception_print instead of
5333         print_any_exception.
5334         (catch_errors): Use exception_fprintf instead of
5335         print_any_exception.
5336         (catch_command_errors, catch_command_errors_const): Use
5337         exception_print instead of print_any_exception.
5338
5339 2014-07-14  Pedro Alves  <palves@redhat.com>
5340
5341         * infcall.c (run_inferior_call): Set 'sync_execution' while
5342         running the inferior call.
5343
5344 2014-07-14  Pedro Alves  <palves@redhat.com>
5345
5346         * value.c (value_contents_equal): Delete function.
5347         * value.h (value_contents_equal): Delete declaration.
5348
5349 2014-07-14  Tom Tromey  <tromey@redhat.com>
5350
5351         PR exp/17106:
5352         * gdbtypes.c (is_dynamic_type_internal): New function, from
5353         is_dynamic_type.
5354         (is_dynamic_type): Rewrite.
5355         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5356         (resolve_dynamic_struct): Likewise.
5357         (resolve_dynamic_type_internal): New function, from
5358         resolve_dynamic_type.
5359         (resolve_dynamic_type): Rewrite.
5360
5361 2014-07-14  Tom Tromey  <tromey@redhat.com>
5362
5363         * target.c (target_require_runnable): Also check record_stratum.
5364         Update comment.
5365
5366 2014-07-11  Yao Qi  <yao@codesourcery.com>
5367
5368         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5369         thumb_instruction_restores_sp return true.
5370
5371 2014-07-11  Yao Qi  <yao@codesourcery.com>
5372
5373         * arm-tdep.c (thumb_instruction_restores_sp): New function.
5374         (thumb_in_function_epilogue_p): Call
5375         thumb_instruction_restores_sp.
5376
5377 2014-07-11  Yao Qi  <yao@codesourcery.com>
5378
5379         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5380         'add sp, #imm'.
5381         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5382
5383 2014-07-11  Gary Benson  <gbenson@redhat.com>
5384
5385         * amd64-linux-nat.c (gdbcore.h): Remove include.
5386         (regset.h): Likewise.
5387         (nat/linux-btrace.h): Likewise.
5388         (btrace.h): Likewise.
5389         (gdb_assert.h): Likewise.
5390         (string.h): Likewise.
5391         (sys/uio.h): Likewise.
5392         (sys/debugreg.h): Likewise.
5393         (sys/syscall.h): Likewise.
5394         (sys/procfs.h): Likewise.
5395         (sys/user.h): Likewise.
5396         (asm/ptrace.h): Likewise.
5397         (i386-nat.h): Likewise.
5398         * i386-linux-nat.c (i386-nat.h): Likewise.
5399         (regset.h): Likewise.
5400         (target.h): Likewise.
5401         (linux-nat.h): Likewise.
5402         (nat/linux-btrace.h): Likewise.
5403         (btrace.h): Likewise.
5404         (gdb_assert.h): Likewise.
5405         (string.h): Likewise.
5406         (sys/uio.h): Likewise.
5407         (sys/user.h): Likewise.
5408         (sys/procfs.h): Likewise.
5409         (sys/reg.h): Likewise.
5410         (sys/debugreg.h): Likewise.
5411         (ORIG_EAX): Remove definition.
5412
5413 2014-07-11  Gary Benson  <gbenson@redhat.com>
5414
5415         * i386-linux-nat.h: New file.
5416         * x86-linux-nat.h: Likewise.
5417         * x86-linux-nat.c: Likewise.
5418         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5419         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5420         * config/i386/linux64.mh (NATDEPFILES): Likewise.
5421         * amd64-linux-nat.c (x86-linux-nat.h): New include.
5422         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5423         (PTRACE_SETREGSET): Likewise.
5424         (arch_lwp_info): Now in x86-linux-nat.c.
5425         (have_ptrace_getregset): Now in x86-linux-nat.h.
5426         (x86_linux_dr_get): Now in x86-linux-nat.c.
5427         (x86_linux_dr_set): Likewise.
5428         (x86_linux_dr_get_addr): Likewise.
5429         (x86_linux_dr_get_control): Likewise.
5430         (x86_linux_dr_get_status): Likewise.
5431         (update_debug_registers_callback): Likewise.
5432         (x86_linux_dr_set_control): Likewise.
5433         (x86_linux_dr_set_addr): Likewise.
5434         (x86_linux_prepare_to_resume): Likewise.
5435         (x86_linux_new_thread): Likewise.
5436         (x86_linux_new_fork): Likewise.
5437         (x86_linux_get_thread_area): Likewise.
5438         (super_post_startup_inferior): Likewise.
5439         (x86_linux_child_post_startup_inferior): Likewise.
5440         (AMD64_LINUX_USER64_CS): Likewise.
5441         (AMD64_LINUX_X32_DS): Likewise.
5442         (x86_linux_read_description): Likewise.
5443         (x86_linux_enable_btrace): Likewise.
5444         (x86_linux_disable_btrace): Likewise.
5445         (x86_linux_teardown_btrace): Likewise.
5446         (x86_linux_read_btrace): Likewise.
5447         (x86_linux_create_target): Likewise.
5448         (x86_linux_add_target): Likewise.
5449         * i386-linux-nat.c (x86-linux-nat.h): New include.
5450         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5451         (PTRACE_SETREGSET): Likewise.
5452         (arch_lwp_info): Now in x86-linux-nat.c.
5453         (have_ptrace_getregset): Now in x86-linux-nat.h.
5454         (x86_linux_dr_get): Now in x86-linux-nat.c.
5455         (x86_linux_dr_set): Likewise.
5456         (x86_linux_dr_get_addr): Likewise.
5457         (x86_linux_dr_get_control): Likewise.
5458         (x86_linux_dr_get_status): Likewise.
5459         (update_debug_registers_callback): Likewise.
5460         (x86_linux_dr_set_control): Likewise.
5461         (x86_linux_dr_set_addr): Likewise.
5462         (x86_linux_prepare_to_resume): Likewise.
5463         (x86_linux_new_thread): Likewise.
5464         (x86_linux_new_fork): Likewise.
5465         (x86_linux_get_thread_area): Likewise.
5466         (super_post_startup_inferior): Likewise.
5467         (x86_linux_child_post_startup_inferior): Likewise.
5468         (AMD64_LINUX_USER64_CS): Likewise.
5469         (AMD64_LINUX_X32_DS): Likewise.
5470         (x86_linux_read_description): Likewise.
5471         (x86_linux_enable_btrace): Likewise.
5472         (x86_linux_disable_btrace): Likewise.
5473         (x86_linux_teardown_btrace): Likewise.
5474         (x86_linux_read_btrace): Likewise.
5475         (x86_linux_create_target): Likewise.
5476         (x86_linux_add_target): Likewise.
5477
5478 2014-07-11  Gary Benson  <gbenson@redhat.com>
5479
5480         * amd64-linux-nat.c: Comment and whitespace changes.
5481         * i386-linux-nat.c: Comment and whitespace changes.
5482
5483 2014-07-11  Gary Benson  <gbenson@redhat.com>
5484
5485         * amd64-linux-nat.c (x86_linux_create_target): New function.
5486         (x86_linux_add_target): Likewise.
5487         (_initialize_amd64_linux_nat): Delegate to the above new functions.
5488         * i386-linux-nat.c (x86_linux_create_target): New function.
5489         (x86_linux_add_target): Likewise.
5490         (_initialize_i386_linux_nat): Delegate to the above new functions.
5491
5492 2014-07-11  Gary Benson  <gbenson@redhat.com>
5493
5494         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5495         (ps_get_thread_area): Delegate to the above in 32-bit mode.
5496         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5497         (ps_get_thread_area): Delegate to the above.
5498
5499 2014-07-11  Gary Benson  <gbenson@redhat.com>
5500
5501         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5502         x86_linux_read_description.  All uses updated.  amd64-specific
5503         code conditionalized.  Conditionalized i386-specific code added.
5504         Redundant cast removed.
5505         * i386-linux-nat.c (i386_linux_read_description): Renamed to
5506         x86_linux_read_description.  All uses updated.  i386-specific
5507         code conditionalized.  Conditionalized amd64-specific code added.
5508         One sizeof replaced with the actual type it is describing.
5509
5510 2014-07-11  Gary Benson  <gbenson@redhat.com>
5511
5512         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5513         x86_linux_dr_get.  All uses updated.
5514         (amd64_linux_dr_set): Renamed to
5515         x86_linux_dr_set.  All uses updated.
5516         (amd64_linux_dr_get_addr): Renamed to
5517         x86_linux_dr_get_addr.  All uses updated.
5518         (amd64_linux_dr_get_control): Renamed to
5519         x86_linux_dr_get_control.  All uses updated.
5520         (amd64_linux_dr_get_status): Renamed to
5521         x86_linux_dr_get_status.  All uses updated.
5522         (amd64_linux_dr_set_control): Renamed to
5523         x86_linux_dr_set_control.  All uses updated.
5524         (amd64_linux_dr_set_addr): Renamed to
5525         x86_linux_dr_set_addr.  All uses updated.
5526         (amd64_linux_prepare_to_resume): Renamed to
5527         x86_linux_prepare_to_resume.  All uses updated.
5528         (amd64_linux_new_thread): Renamed to
5529         x86_linux_new_thread.  All uses updated.
5530         (amd64_linux_new_fork): Renamed to
5531         x86_linux_new_fork.  All uses updated.
5532         (amd64_linux_child_post_startup_inferior): Renamed to
5533         x86_linux_child_post_startup_inferior.  All uses updated.
5534         (amd64_linux_enable_btrace): Renamed to
5535         x86_linux_enable_btrace.  All uses updated.
5536         (amd64_linux_disable_btrace): Renamed to
5537         x86_linux_disable_btrace.  All uses updated.
5538         (amd64_linux_teardown_btrace): Renamed to
5539         x86_linux_teardown_btrace.  All uses updated.
5540         (amd64_linux_read_btrace): Renamed to
5541         x86_linux_read_btrace.  All uses updated.
5542         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5543         x86_linux_dr_get.  All uses updated.
5544         (i386_linux_dr_set): Renamed to
5545         x86_linux_dr_set.  All uses updated.
5546         (i386_linux_dr_get_addr): Renamed to
5547         x86_linux_dr_get_addr.  All uses updated.
5548         (i386_linux_dr_get_control): Renamed to
5549         x86_linux_dr_get_control.  All uses updated.
5550         (i386_linux_dr_get_status): Renamed to
5551         x86_linux_dr_get_status.  All uses updated.
5552         (i386_linux_dr_set_control): Renamed to
5553         x86_linux_dr_set_control.  All uses updated.
5554         (i386_linux_dr_set_addr): Renamed to
5555         x86_linux_dr_set_addr.  All uses updated.
5556         (i386_linux_prepare_to_resume): Renamed to
5557         x86_linux_prepare_to_resume.  All uses updated.
5558         (i386_linux_new_thread): Renamed to
5559         x86_linux_new_thread.  All uses updated.
5560         (i386_linux_new_fork): Renamed to
5561         x86_linux_new_fork.  All uses updated.
5562         (i386_linux_child_post_startup_inferior): Renamed to
5563         x86_linux_child_post_startup_inferior.  All uses updated.
5564         (i386_linux_enable_btrace): Renamed to
5565         x86_linux_enable_btrace.  All uses updated.
5566         (i386_linux_disable_btrace): Renamed to
5567         x86_linux_disable_btrace.  All uses updated.
5568         (i386_linux_teardown_btrace): Renamed to
5569         x86_linux_teardown_btrace.  All uses updated.
5570         (i386_linux_read_btrace): Renamed to
5571         x86_linux_read_btrace.  All uses updated.
5572
5573 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
5574
5575         * remote.c (extended_remote_post_attach): New function.
5576         (init_extended_remote_ops): Install it as to_post_attach method.
5577
5578 2014-07-09  Pedro Alves  <palves@redhat.com>
5579
5580         * infcmd.c (attach_command_post_wait): Don't call
5581         target_terminal_inferior here.
5582         (attach_command): Call it here instead.
5583
5584 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
5585
5586         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5587         field.
5588         * c-varobj.c (c_is_path_expr_parent): New function, moved core
5589         from varobj.c, with additional checks.
5590         (c_varobj_ops): Fill in is_path_expr_parent field.
5591         (cplus_varobj_ops): Fill in is_path_expr_parent field.
5592         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5593         field.
5594         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5595         ops method.
5596         (varobj_default_is_path_expr_parent): New function.
5597         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5598         (varobj_default_is_path_expr_parent): Declare new function.
5599
5600 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
5601
5602         * infcmd.c (finish_backward): Turn internal error into normal error.
5603
5604 2014-07-07  Pedro Alves  <palves@redhat.com>
5605
5606         PR gdb/17096
5607         * remote.c (async_handle_remote_sigint)
5608         (async_handle_remote_sigint_twice): Call
5609         gdb_call_async_signal_handler instead of
5610         mark_async_signal_handler.
5611
5612 2014-07-07  Tom Tromey  <tromey@redhat.com>
5613
5614         * target-delegates.c: Rebuild.
5615         * target.c (target_info_record): Remove.
5616         * record.c (info_record_command): Unconditionally call
5617         to_info_record.
5618         * target.h (struct target_ops) <to_info_record>: Use
5619         TARGET_DEFAULT_IGNORE.
5620         (target_info_record): Remove.
5621
5622 2014-07-07  Tom Tromey  <tromey@redhat.com>
5623
5624         * target.h (struct target_ops) <to_get_thread_local_address>: Use
5625         TARGET_DEFAULT_NORETURN.
5626         * target.c (generic_tls_error): New function.
5627         (target_translate_tls_address): Don't search target stack.
5628         * target-delegates.c: Rebuild.
5629         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5630         stack.
5631         * linux-thread-db.c (thread_db_get_thread_local_address):
5632         Unconditionally call beneath target.
5633
5634 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
5635
5636         * cli/cli-logging.c (pop_output_files): Assign targerr to
5637         gdb_stdtargerr.
5638
5639 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
5640
5641         * MAINTAINERS (Write After Approval): Update my email address.
5642
5643 2014-07-02  Gary Benson  <gbenson@redhat.com>
5644
5645         * proc-service.c (ps_xfer_memory): Update comment.
5646         (ps_pstop): Remove unused function.
5647         (ps_pcontinue): Likewise.
5648         (ps_lstop): Likewise.
5649         (ps_lcontinue): Likewise.
5650         (ps_lgetxregsize): Likewise.
5651         (ps_lgetxregs): Likewise.
5652         (ps_lsetxregs): Likewise.
5653         (ps_plog): Likewise.
5654         (ps_ptread): Likewise.
5655         (ps_ptwrite): Likewise.
5656
5657 2014-07-01  Mark Wielaard  <mjw@redhat.com>
5658
5659         * dwarf2read.c (add_array_cv_type): New function.
5660         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5661         (read_tag_volatile_type): Likewise.
5662
5663 2014-07-01  Tom Tromey  <tromey@redhat.com>
5664
5665         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5666         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5667         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5668         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5669         * command.h (cmd_cfunc_ftype): Move earlier.
5670         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5671         (add_com, add_info): Use cmd_cfunc_ftype.
5672
5673 2014-06-30  Tom Tromey  <tromey@redhat.com>
5674
5675         * symtab.c (operator_chars): Make parameters and return type
5676         const.
5677         (file_matches): Make "files" const.
5678         (struct search_symbols_data) <files>: Now const.
5679         (search_symbols): Make "regexp" and "files" parameters const.
5680         Update.
5681         (symtab_symbol_info): Remove cast.
5682         (rbreak_command): Update.
5683         * symtab.h (search_symbols): Update.
5684
5685 2014-06-27  Yao Qi  <yao@codesourcery.com>
5686
5687         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5688         Change parameter type to 'struct thread_info *'.  Caller
5689         updated.
5690         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5691         Update declaration.
5692         * dummy-frame.c (struct dummy_frame_id): New.
5693         (dummy_frame_id_eq): New function.
5694         (struct dummy_frame) <id>: Change its type to 'struct
5695         dummy_frame_id'.
5696         (dummy_frame_push): Add parameter ptid and save it in
5697         dummy_frame_id.
5698         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5699         inferior_ptid.
5700         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5701         to inferior_ptid.
5702         (lookup_dummy_frame): Change parameter type to 'struct
5703         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
5704         instead of frame_id_eq.
5705         (dummy_frame_pop): Add parameter ptid.  Callers updated.
5706         Update comments.  Compose dummy_frame_id and pass it to
5707         lookup_dummy_frame.
5708         (dummy_frame_discard): Add parameter ptid.
5709         (dummy_frame_sniffer): Compose dummy_frame_id and call
5710         dummy_frame_id_eq instead of frame_id_eq.
5711         (fprint_dummy_frames): Print ptid.
5712         * dummy-frame.h: Remove comments.
5713         (dummy_frame_push): Add ptid in declaration.
5714         (dummy_frame_pop, dummy_frame_discard): Likewise.
5715
5716 2014-06-26  Tom Tromey  <tromey@redhat.com>
5717
5718         * cli/cli-cmds.c (error_no_arg): Make "why" const.
5719         * command.h (error_no_arg): Update.
5720
5721 2014-06-26  Tom Tromey  <tromey@redhat.com>
5722
5723         * cli/cli-setshow.c (do_set_command): Make "arg" const.
5724         (do_show_command): Make "arg" const.
5725         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5726
5727 2014-06-26  Tom Tromey  <tromey@redhat.com>
5728
5729         * record-full.c (record_full_get_bookmark): Make "args" const.
5730         (record_full_goto_bookmark): Make "raw_bookmark" const.
5731         * record.c (record_goto): New function.
5732         (cmd_record_goto): Use it.  Now static.
5733         * record.h (record_goto): Declare.
5734         (cmd_record_goto): Remove declaration.
5735         * target-delegates.c: Rebuild.
5736         * target.h (struct target_ops) <to_get_bookmark,
5737         to_goto_bookmark>: Make parameter const.
5738
5739 2014-06-26  Tom Tromey  <tromey@redhat.com>
5740
5741         * defs.h (generic_load): Update.
5742         * m32r-rom.c (m32r_load_gen): Make "filename" const.
5743         * monitor.c (monitor_load): Make "args" const.
5744         * remote-m32r-sdi.c (m32r_load): Make "args" const.
5745         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5746         const.
5747         (mips_load): Make "file" const.
5748         * remote-sim.c (gdbsim_load): Make "args" const.
5749         * remote.c (remote_load): Make "name" const.
5750         * symfile.c (generic_load): Make "args" const.
5751         * target-delegates.c: Rebuild.
5752         * target.c (target_load): Make "arg" const.
5753         (debug_to_load): Make "args" const.
5754         * target.h (struct target_ops) <to_load>: Make parameter const.
5755         (target_load): Update.
5756
5757 2014-06-26  Tom Tromey  <tromey@redhat.com>
5758
5759         PR symtab/16902:
5760         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5761         (dwarf2_physname, read_partial_die)
5762         (guess_partial_die_structure_name, fixup_partial_die)
5763         (guess_full_die_structure_name, anonymous_struct_prefix)
5764         (dwarf2_name): Use per-BFD obstack.
5765
5766 2014-06-26  Yao Qi  <yao@codesourcery.com>
5767
5768         * dummy-frame.c (dummy_frame_sniffer): Move local variables
5769         dummyframe and this_id into inner block below.
5770
5771 2014-06-26  Yao Qi  <yao@codesourcery.com>
5772
5773         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5774         with "signal_pass[0]" in the initialization of signal_pass.
5775
5776 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
5777
5778         * record-btrace.c (record_btrace_generating_corefile)
5779         (record_btrace_prepare_to_generate_core)
5780         (record_btrace_done_generating_core): New.
5781         (record_btrace_xfer_partial, record_btrace_fetch_registers)
5782         (record_btrace_store_registers, record_btrace_prepare_to_store):
5783         Forward request when generating a core file.
5784         (record_btrace_open): Set record_btrace_generating_corefile to zero.
5785         (init_record_btrace_ops): Set to_prepare_to_generate_core and
5786         to_done_generating_core.
5787
5788 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
5789
5790         * target.h (target_ops) <to_prepare_to_generate_core>
5791         <to_done_generating_core>: New.
5792         (target_prepare_to_generate_core, target_done_generating_core): New.
5793         * target.c (target_prepare_to_generate_core)
5794         (target_done_generating_core): New.
5795         * target-delegates.c: Regenerate.
5796         * gcore.c: (write_gcore_file): Rename to ...
5797         (write_gcore_file_1): ...this.
5798         (write_gcore_file): Call target_prepare_to_generate_core
5799         and target_done_generating_core.
5800
5801 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
5802
5803         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5804         * gcore.c (write_gcore_file): Free memory returned from
5805         make_corefile_notes.
5806         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5807         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5808
5809 2014-06-24  Yao Qi  <yao@codesourcery.com>
5810
5811         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5812         (arm_linux_init_abi): Set skip_trampoline_code with
5813         gdbarch_skip_trampoline_code instead of
5814         find_solib_trampoline_target.
5815
5816 2014-06-24  Yao Qi  <yao@codesourcery.com>
5817
5818         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5819         arm_skip_bx_reg returns non-zero.
5820
5821 2014-06-24  Yao Qi  <yao@codesourcery.com>
5822
5823         * arm-tdep.c (arm_skip_bx_reg): New function.
5824         (arm_skip_stub): Call arm_skip_bx_reg.
5825
5826 2014-06-23  Don Breazeal  <donb@codesourcery.com>
5827
5828         * MAINTAINERS: Add myself as write-after-approval maintainer.
5829
5830 2014-06-23  Pedro Alves  <palves@redhat.com>
5831
5832         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5833         DR_CONTROL before setting DR0..DR3.
5834         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5835         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5836         bits of DR_CONTROL related to the debug register slot being
5837         disabled.  If all slots are vacant, clear local slowdown as well,
5838         and assert DR_CONTROL is 0.
5839
5840 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
5841
5842         * python/lib/gdb/command/xmethods.py
5843         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
5844         current progspace only if the string "progspace" matches LOCUS_RE.
5845
5846 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
5847
5848         Fix --with-system-readline with readline-6.3 patch 5.
5849         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5850         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5851         types.
5852
5853 2014-06-20  Tom Tromey  <tromey@redhat.com>
5854
5855         * dwarf2read.c (dw2_get_real_path): Use correct type in
5856         OBSTACK_CALLOC.
5857         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5858
5859 2014-06-20  Gary Benson  <gbenson@redhat.com>
5860
5861         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
5862         * common/glibc_thread_db.h: Likewise.
5863         * common/i386-cpuid.h: Likewise.
5864         * common/i386-gcc-cpuid.h: Likewise.
5865         * common/linux-btrace.h: Likewise.
5866         * common/linux-osdata.h: Likewise.
5867         * common/linux-procfs.h: Likewise.
5868         * common/linux-ptrace.h: Likewise.
5869         * common/mips-linux-watch.h: Likewise.
5870         * common/linux-btrace.c: Moved to nat.
5871         * common/linux-osdata.c: Likewise.
5872         * common/linux-procfs.c: Likewise.
5873         * common/linux-ptrace.c: Likewise.
5874         * common/mips-linux-watch.c: Likewise.
5875         * nat/gdb_thread_db.h: Moved from common.
5876         * nat/glibc_thread_db.h: Likewise.
5877         * nat/i386-cpuid.h: Likewise.
5878         * nat/i386-gcc-cpuid.h: Likewise.
5879         * nat/linux-btrace.c: Likewise.
5880         * nat/linux-btrace.h: Likewise.
5881         * nat/linux-osdata.c: Likewise.
5882         * nat/linux-osdata.h: Likewise.
5883         * nat/linux-procfs.c: Likewise.
5884         * nat/linux-procfs.h: Likewise.
5885         * nat/linux-ptrace.c: Likewise.
5886         * nat/linux-ptrace.h: Likewise.
5887         * nat/mips-linux-watch.c: Likewise.
5888         * nat/mips-linux-watch.h: Likewise.
5889         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5890         (object file files): Reordered.
5891         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5892         of glibc_thread_db.h.
5893
5894 2014-06-20  Gary Benson  <gbenson@redhat.com>
5895
5896         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5897         (i386_dr_low_type): Moved to nat/i386-dregs.h.
5898         (i386_dr_low): Likewise.
5899         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5900         (i386_dr_low_set_addr): Likewise.
5901         (i386_dr_low_get_addr): Likewise.
5902         (i386_dr_low_can_set_control): Likewise.
5903         (i386_dr_low_set_control): Likewise.
5904         (i386_dr_low_get_control): Likewise.
5905         (i386_dr_low_get_status): Likewise.
5906         (i386_get_debug_register_length): Likewise.
5907         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5908         (i386_dr_low): Likewise.
5909         * nat/i386-dregs.c (i386-low.h): Remove include.
5910         (i386-nat.h): Likewise.
5911         (nat/i386-dregs.h): New include.
5912         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5913         (i386_dr_low_set_addr): Likewise.
5914         (i386_dr_low_get_addr): Likewise.
5915         (i386_dr_low_can_set_control): Likewise.
5916         (i386_dr_low_set_control): Likewise.
5917         (i386_dr_low_get_control): Likewise.
5918         (i386_dr_low_get_status): Likewise.
5919         (i386_get_debug_register_length): Likewise.
5920         (debug_hw_points): Likewise.
5921
5922 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
5923
5924         * Makefile.in (SFILES): Add d-exp.y.
5925         (YYFILES): Add d-exp.c.
5926         (YYOBJ): Add d-exp.o.
5927         (local-maintainer-clean): Delete d-exp.c.
5928         * d-exp.y: New file.
5929         * d-lang.h (d_parse): New declaration.
5930         (d_error): New declaration.
5931         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5932         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5933         PREC_ORDER operators.
5934         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5935
5936 2014-06-19  Yao Qi  <yao@codesourcery.com>
5937
5938         * gdbthread.h (any_running): Remove the declaration.
5939         * thread.c (any_running): Remove.
5940
5941 2014-06-19  Yao Qi  <yao@codesourcery.com>
5942
5943         * gdbthread.h (struct thread_info) <state>: Change its type to
5944         'enum thread_state'.  Update comments.
5945
5946 2014-06-19  Pedro Alves  <palves@redhat.com>
5947
5948         * gdbthread.h (ALL_THREADS): Delete.
5949         (ALL_NON_EXITED_THREADS): New macro.
5950         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5951         instead of ALL_THREADS.
5952         * infrun.c (find_thread_needs_step_over)
5953         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5954         instead of ALL_THREADS.
5955         * record-btrace.c (record_btrace_open)
5956         (record_btrace_stop_recording, record_btrace_close)
5957         (record_btrace_is_replaying, record_btrace_resume)
5958         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5959         * remote.c (append_pending_thread_resumptions): Likewise.
5960         * thread.c (thread_apply_all_command): Likewise.
5961
5962 2014-06-19  Gary Benson  <gbenson@redhat.com>
5963
5964         * i386-nat.c (i386_stopped_by_watchpoint):
5965         Use i386_dr_stopped_by_watchpoint.
5966         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5967         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5968
5969 2014-06-19  Gary Benson  <gbenson@redhat.com>
5970
5971         * nat/i386-dregs.c: New file.
5972         * Makefile.in (i386-dregs.o): New rule.
5973         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5974         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5975         * config/i386/darwin.mh (NATDEPFILES): Likewise.
5976         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5977         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5978         * config/i386/go32.mh (NATDEPFILES): Likewise.
5979         * config/i386/linux.mh (NATDEPFILES): Likewise.
5980         * config/i386/linux64.mh (NATDEPFILES): Likewise.
5981         * config/i386/mingw.mh (NATDEPFILES): Likewise.
5982         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5983         * i386-nat.h (debug_hw_points): New declaration.
5984         * i386-nat.c (breakpoint.h): Remove include.
5985         (command.h): Likewise.
5986         (target.h): Likewise.
5987         (gdb_assert.h): Likewise.
5988         (debug_hw_points): Made nonstatic.
5989         (debug_printf): Now in i386-dregs.c.
5990         (TARGET_HAS_DR_LEN_8): Likewise.
5991         (DR_CONTROL_SHIFT): Likewise.
5992         (DR_CONTROL_SIZE): Likewise.
5993         (DR_RW_EXECUTE): Likewise.
5994         (DR_RW_WRITE): Likewise.
5995         (DR_RW_READ): Likewise.
5996         (DR_RW_IORW): Likewise.
5997         (DR_LEN_1): Likewise.
5998         (DR_LEN_2): Likewise.
5999         (DR_LEN_4): Likewise.
6000         (DR_LEN_8): Likewise.
6001         (DR_LOCAL_ENABLE_SHIFT): Likewise.
6002         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6003         (DR_ENABLE_SIZE): Likewise.
6004         (DR_LOCAL_SLOWDOWN): Likewise.
6005         (DR_GLOBAL_SLOWDOWN): Likewise.
6006         (DR_CONTROL_RESERVED): Likewise.
6007         (I386_DR_CONTROL_MASK): Likewise.
6008         (I386_DR_VACANT): Likewise.
6009         (I386_DR_LOCAL_ENABLE): Likewise.
6010         (I386_DR_GLOBAL_ENABLE): Likewise.
6011         (I386_DR_DISABLE): Likewise.
6012         (I386_DR_SET_RW_LEN): Likewise.
6013         (I386_DR_GET_RW_LEN): Likewise.
6014         (I386_DR_WATCH_HIT): Likewise.
6015         (i386_wp_op_t): Likewise.
6016         (i386_show_dr): Likewise.
6017         (i386_length_and_rw_bits): Likewise.
6018         (i386_insert_aligned_watchpoint): Likewise.
6019         (i386_remove_aligned_watchpoint): Likewise.
6020         (i386_handle_nonaligned_watchpoint): Likewise.
6021         (i386_update_inferior_debug_regs): Likewise.
6022         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6023         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6024         (i386_region_ok_for_watchpoint):
6025         Use i386_dr_region_ok_for_watchpoint.
6026         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6027
6028 2014-06-19  Gary Benson  <gbenson@redhat.com>
6029
6030         * i386-nat.c (i386_insert_hw_breakpoint): Use
6031         i386_insert_watchpoint.
6032         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6033
6034 2014-06-19  Gary Benson  <gbenson@redhat.com>
6035
6036         * i386-nat.c (i386_dr_show): Renamed to
6037         i386_show_dr and made static.  All uses updated.
6038         (i386_dr_length_and_rw_bits): Renamed to
6039         i386_length_and_rw_bits and made static.
6040         All uses updated.
6041         (i386_dr_insert_aligned_watchpoint): Renamed to
6042         i386_insert_aligned_watchpoint and made static.
6043         All uses updated.
6044         (i386_dr_remove_aligned_watchpoint): Renamed to
6045         i386_remove_aligned_watchpoint and made static.
6046         All uses updated.
6047         (i386_dr_update_inferior_debug_regs): Renamed to
6048         i386_update_inferior_debug_regs and made static.
6049         All uses updated.
6050         * nat/i386-dregs.h (i386_dr_show): Removed.
6051         (i386_dr_length_and_rw_bits): Likewise.
6052         (i386_dr_insert_aligned_watchpoint): Likewise.
6053         (i386_dr_remove_aligned_watchpoint): Likewise.
6054         (i386_dr_update_inferior_debug_regs): Likewise.
6055
6056 2014-06-19  Gary Benson  <gbenson@redhat.com>
6057
6058         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6059         * configure: Regenerate.
6060         * config.in: Likewise.
6061         * main.c (signal.h): New include.
6062         (setup_alternate_signal_stack): New function.
6063         (captured_main): Call the above.
6064         * cp-support.c (signal.h): New include.
6065         (catch_demangler_crashes): New flag.
6066         (SIGJMP_BUF): New define.
6067         (SIGSETJMP): Likewise.
6068         (SIGLONGJMP): Likewise.
6069         (gdb_demangle_jmp_buf): New static global.
6070         (gdb_demangle_attempt_core_dump): Likewise.
6071         (gdb_demangle_signal_handler): New function.
6072         (gdb_demangle): If catch_demangler_crashes is set, install the
6073         above signal handler before calling bfd_demangle, and restore
6074         the original signal handler afterwards.  Display the offending
6075         symbol and call demangler_warning the first time a segmentation
6076         fault is caught.
6077         (_initialize_cp_support): New maint set/show command.
6078
6079 2014-06-19  Gary Benson  <gbenson@redhat.com>
6080
6081         * utils.h (resource_limit_kind): New enum.
6082         (can_dump_core): New declaration.
6083         (warn_cant_dump_core): Likewise.
6084         (dump_core): Likewise.
6085         * utils.c (dump_core): Made nonstatic.  Added new
6086         parameter "limit_kind".
6087         (can_dump_core): Made nonstatic. Moved printing code to...
6088         (warn_cant_dump_core): New function.
6089         (can_dump_core_warn): Likewise.
6090         (internal_vproblem): Replace calls to can_dump_core with
6091         calls to can_dump_core_warn.  Supply new argument to each.
6092
6093 2014-06-19  Gary Benson  <gbenson@redhat.com>
6094
6095         * utils.h (demangler_vwarning): New declaration.
6096         (demangler_warning): Likewise.
6097         * utils.c (struct internal_problem)
6098         <user_settable_should_quit>: New field.
6099         <user_settable_should_dump_core>: Likewise
6100         (internal_error_problem): Add values for above new fields.
6101         (internal_warning_problem): Likewise.
6102         (demangler_warning_problem): New static global.
6103         (demangler_vwarning): New function.
6104         (demangler_warning): Likewise.
6105         (add_internal_problem_command): Selectively add commands.
6106         (_initialize_utils): New internal problem command.
6107         * maint.c (maintenance_demangler_warning): New function.
6108         (_initialize_maint_cmds): New command.
6109
6110 2014-06-18  Tom Tromey  <tromey@redhat.com>
6111
6112         * f-valprint.c (info_common_command_for_block): Update.
6113         * symtab.h (struct general_symbol_info) <common_block>: Now
6114         const.
6115
6116 2014-06-18  Tom Tromey  <tromey@redhat.com>
6117
6118         * symtab.h (struct symtab) <blockvector>: Now const.
6119         * ada-lang.c (ada_add_global_exceptions): Update.
6120         * buildsym.c (augment_type_symtab): Update.
6121         * dwarf2read.c (dw2_lookup_symbol): Update.
6122         * jit.c (finalize_symtab): Update.
6123         * jv-lang.c (add_class_symtab_symbol): Update.
6124         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6125         Update.
6126         * objfiles.c (objfile_relocate1): Update.
6127         * psymtab.c (lookup_symbol_aux_psymtabs)
6128         (maintenance_check_psymtabs): Update.
6129         * python/py-symtab.c (stpy_global_block, stpy_static_block):
6130         Update.
6131         * spu-tdep.c (spu_catch_start): Update.
6132         * symmisc.c (dump_symtab_1): Update.
6133         * symtab.c (lookup_global_symbol_from_objfile)
6134         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6135         (basic_lookup_transparent_type_quick)
6136         (basic_lookup_transparent_type, find_pc_sect_symtab)
6137         (find_pc_sect_line, search_symbols): Update.
6138         * block.c (find_block_in_blockvector): Make "bl" const.
6139         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6140         const.
6141         (blockvector_contains_pc): Make "bv" const.
6142         (block_for_pc_sect): Update.
6143         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6144         (blockvector_contains_pc): Update.
6145         * breakpoint.c (resolve_sal_pc): Update.
6146         * inline-frame.c (block_starting_point_at): Update.
6147
6148 2014-06-18  Tom Tromey  <tromey@redhat.com>
6149
6150         * completer.c (complete_line): Make "line_buffer" const.
6151         * completer.h (complete_line): Update.
6152
6153 2014-06-18  Tom Tromey  <tromey@redhat.com>
6154
6155         * symtab.c (add_macro_name): Remove unneeded cast.
6156
6157 2014-06-18  Tom Tromey  <tromey@redhat.com>
6158
6159         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6160         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6161
6162 2014-06-18  Tom Tromey  <tromey@redhat.com>
6163
6164         * probe.c (info_probes_for_ops): Make "arg" const.
6165         * probe.h (info_probes_for_ops): Update.
6166
6167 2014-06-18  Tom Tromey  <tromey@redhat.com>
6168
6169         * varobj.c (varobj_create): Update.
6170         * valops.c (value_of_this): Update.
6171         * tracepoint.c (add_local_symbols, scope_info): Update.
6172         * symtab.h (struct general_symbol_info) <block>: Now const.
6173         * symtab.c (skip_prologue_sal)
6174         (default_make_symbol_completion_list_break_on)
6175         (skip_prologue_using_sal): Update.
6176         * stack.h (iterate_over_block_locals)
6177         (iterate_over_block_local_vars): Update.
6178         * stack.c (print_frame_args): Update.
6179         (iterate_over_block_locals, iterate_over_block_local_vars): Make
6180         parameter const.
6181         (get_selected_block): Make return type const.
6182         * python/py-frame.c (frapy_block): Update.
6183         * python/py-block.c (gdbpy_block_for_pc): Update.
6184         * p-exp.y (%union) <bval>: Now const.
6185         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6186         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6187         * m2-exp.y (%union) <bval>: Now const.
6188         * linespec.c (get_current_search_block): Make return type const.
6189         (create_sals_line_offset, find_label_symbols): Update.
6190         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6191         Update.
6192         (block_starting_point_at): Make "block" const.
6193         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6194         (check_exception_resume): Update.
6195         * guile/scm-frame.c (gdbscm_frame_block): Update.
6196         * guile/scm-block.c (gdbscm_lookup_block): Update.
6197         * frame.h (get_frame_block): Update.
6198         (get_selected_block): Make return type const.
6199         * frame.c (frame_id_inner): Update.
6200         * f-valprint.c (info_common_command_for_block)
6201         (info_common_command): Update.
6202         * dwarf2loc.c (dwarf2_find_location_expression)
6203         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6204         (locexpr_describe_location_piece): Update.
6205         * c-exp.y (%union) <bval>: Now const.
6206         * breakpoint.c (resolve_sal_pc): Update.
6207         * blockframe.c (get_frame_block):Make return type const.
6208         (get_pc_function_start, get_frame_function, find_pc_sect_function)
6209         (block_innermost_frame): Update.
6210         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6211         (block_for_pc, block_for_pc_sect): Update.
6212         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6213         'pblock' const.
6214         (block_for_pc_sect, block_for_pc): Make return type const.
6215         * ax-gdb.c (gen_expr): Update.
6216         * alpha-mdebug-tdep.c (find_proc_desc): Update.
6217         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6218         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6219         (ada_read_var_value): Update.
6220         * ada-exp.y (struct name_info) <block>: Now const.
6221         (%union): Likewise.
6222         (block_lookup): Constify.
6223
6224 2014-06-18  Gary Benson  <gbenson@redhat.com>
6225
6226         * nat/i386-dregs.h: New file.
6227         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6228         * i386-nat.h (i386-dregs.h): New include.
6229         (DR_FIRSTADDR): Now in i386-dregs.h.
6230         (DR_LASTADDR): Likewise.
6231         (DR_NADDR): Likewise.
6232         (DR_STATUS): Likewise.
6233         (DR_CONTROL): Likewise.
6234         (i386_debug_reg_state): Likewise.
6235         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6236
6237 2014-06-18  Don Breazeal  <donb@codesourcery.com>
6238
6239         * breakpoint.c (set_longjmp_breakpoint): Call
6240         momentary_breakpoint_from_master with additional argument.
6241         (set_longjmp_breakpoint_for_call_dummy): Call
6242         momentary_breakpoint_from_master with additional argument.
6243         (set_std_terminate_breakpoint): Call
6244         momentary_breakpoint_from_master with additional argument.
6245         (momentary_breakpoint_from_master): Add argument to function
6246         definition and use it to initialize structure member flag.
6247         (clone_momentary_breakpoint): Call
6248         momentary_breakpoint_from_master with additional argument.
6249         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6250         member flags set in momentary_breakpoint_from_master.
6251
6252 2014-06-18  Gary Benson  <gbenson@redhat.com>
6253
6254         * i386-nat.c (i386_show_dr): Renamed to
6255         i386_dr_show and made nonstatic.  All uses updated.
6256         (i386_length_and_rw_bits): Renamed to
6257         i386_dr_length_and_rw_bits and made nonstatic.
6258         All uses updated.
6259         (i386_insert_aligned_watchpoint): Renamed to
6260         i386_dr_insert_aligned_watchpoint and made nonstatic.
6261         All uses updated.
6262         (i386_remove_aligned_watchpoint): Renamed to
6263         i386_dr_remove_aligned_watchpoint and made nonstatic.
6264         All uses updated.
6265         (i386_update_inferior_debug_regs): Renamed to
6266         i386_dr_update_inferior_debug_regs and made nonstatic.
6267         All uses updated.
6268
6269 2014-06-18  Gary Benson  <gbenson@redhat.com>
6270
6271         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6272         (i386_dr_low_can_set_control): Likewise.
6273         (i386_dr_low_set_addr): Likewise.
6274         (i386_dr_low_set_control): Likewise.
6275         (i386_dr_low_get_addr): Likewise.
6276         (i386_dr_low_get_status): Likewise.
6277         (i386_dr_low_get_control): Likewise.
6278         (i386_insert_aligned_watchpoint): Use new macros.
6279         (i386_update_inferior_debug_regs): Likewise.
6280         (i386_stopped_data_address): Likewise.
6281
6282 2014-06-18  Gary Benson  <gbenson@redhat.com>
6283
6284         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6285         New parameter.  All uses updated.
6286
6287 2014-06-18  Gary Benson  <gbenson@redhat.com>
6288
6289         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6290         All uses updated.
6291
6292 2014-06-18  Gary Benson  <gbenson@redhat.com>
6293
6294         * i386-nat.c (debug_printf): New macro.
6295         (i386_get_debug_register_length): Likewise.
6296         (TARGET_HAS_DR_LEN_8): Use above macro.
6297         (i386_show_dr): Use debug_printf instead of puts_unfiltered
6298         and printf_unfiltered.  Use phex to format values.
6299
6300 2014-06-18  Gary Benson  <gbenson@redhat.com>
6301
6302         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6303         Make const.
6304
6305 2014-06-18  Gary Benson  <gbenson@redhat.com>
6306
6307         * i386-nat.c: Comment changes.
6308
6309 2014-06-18  Gary Benson  <gbenson@redhat.com>
6310
6311         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6312
6313 2014-06-18  Gary Benson  <gbenson@redhat.com>
6314
6315         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6316         (i386_insert_aligned_watchpoint): Likewise.
6317         (i386_remove_aligned_watchpoint): Likewise.
6318         (i386_handle_nonaligned_watchpoint): Likewise.
6319
6320 2014-06-18  Gary Benson  <gbenson@redhat.com>
6321
6322         * i386-nat.c: Whitespace changes.
6323
6324 2014-06-17  Samuel Bronson  <naesten@gmail.com>
6325
6326         * MAINTAINERS: Update Roland McGrath's email address.
6327         Thanks to Sergio Durigan Junior for pointing out that he left
6328         Red Hat a while ago, and giving me a current address.
6329
6330 2014-06-17  Tom Tromey  <tromey@redhat.com>
6331
6332         * utils.h (savestring): Remove declaration.
6333
6334 2014-06-17  Tom Tromey  <tromey@redhat.com>
6335
6336         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6337
6338 2014-06-16  Keith Seitz  <keiths@redhat.com>
6339
6340         PR mi/15863
6341         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6342         to update the varobj if inferior_ptid is null_ptid.
6343
6344 2014-06-16  Tom Tromey  <tromey@redhat.com>
6345
6346         * target.h (struct target_ops) <to_info_proc>: Make parameter
6347         const.
6348         (target_info_proc): Update.
6349         * target.c (target_info_proc): Make "args" const.
6350         * procfs.c (procfs_info_proc): Update.
6351         * linux-tdep.c (linux_info_proc): Update.
6352         (linux_core_info_proc_mappings): Make "args" const.
6353         (linux_core_info_proc): Update.
6354         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6355         * gdbarch.c: Rebuild.
6356         * gdbarch.h: Rebuild.
6357         * corelow.c (core_info_proc): Update.
6358
6359 2014-06-16  Tom Tromey  <tromey@redhat.com>
6360
6361         * target.h (struct target_ops) <to_disconnect>: Make parameter
6362         const.
6363         (target_disconnect): Update.
6364         * target.c (target_disconnect): Make "args" const.
6365         * target-delegates.c: Rebuild.
6366         * remote.c (remote_disconnect): Update.
6367         * record.h (record_disconnect): Update.
6368         * record.c (record_disconnect): Update.
6369         * inf-child.c (inf_child_disconnect): Update.
6370
6371 2014-06-16  Tom Tromey  <tromey@redhat.com>
6372
6373         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6374         * target.c (debug_to_rcmd, default_rcmd): Update.
6375         * target-delegates.c: Rebuild.
6376         * remote.c (remote_rcmd): Update.
6377         * monitor.c (monitor_rcmd): Update.
6378
6379 2014-06-16  Pedro Alves  <palves@redhat.com>
6380
6381         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6382         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6383         have OBJF_SHARED set.
6384         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6385         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
6386         instead of OBJF_USERLOADED.
6387         * objfiles.h (OBJF_SHARED): Update comment.
6388         (userloaded_objfile_contains_address_p): Rename to ...
6389         (shared_objfile_contains_address_p): ... this, and update
6390         comments.
6391         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6392         new objfile.
6393         (remove_symbol_file_command): Skip objfiles that don't have
6394         OBJF_SHARED set.
6395
6396 2014-06-16  Tom Tromey  <tromey@redhat.com>
6397
6398         * minsyms.h (prim_record_minimal_symbol)
6399         (prim_record_minimal_symbol_and_info): Update comments.
6400
6401 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
6402
6403         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6404         or --without-guile, according to how GDB was built.
6405
6406 2014-06-13  Tom Tromey  <tromey@redhat.com>
6407
6408         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6409         to help_list.
6410         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6411         to help_list.
6412         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6413         help_list.
6414         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6415         help_list.Pass all_commands, not -1, to help_list.
6416         * cli/cli-dump.c (dump_command, append_command)
6417         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6418         (binary_dump_command, binary_append_command): Pass all_commands,
6419         not -1, to help_list.
6420         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6421         -1, to help_list.
6422         * valprint.c (set_print, set_print_raw): Pass all_commands, not
6423         -1, to help_list.
6424         * typeprint.c (set_print_type): Pass all_commands, not -1, to
6425         help_list.
6426         * top.c (set_history): Pass all_commands, not -1, to help_list.
6427         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6428         all_commands, not -1, to help_list.
6429         * symfile.c (overlay_command): Pass all_commands, not -1, to
6430         help_list.
6431         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6432         help_list.
6433         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6434         help_list.
6435         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6436         -1, to help_list.
6437         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6438         not -1, to help_list.
6439         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6440         not -1, to help_list.
6441         * maint.c (maintenance_command, maintenance_info_command)
6442         (maintenance_print_command, maintenance_set_cmd): Pass
6443         all_commands, not -1, to help_list.
6444         * macrocmd.c (macro_command): Pass all_commands, not -1, to
6445         help_list.
6446         * language.c (set_check): Pass all_commands, not -1, to help_list.
6447         * infcmd.c (unset_command): Pass all_commands, not -1, to
6448         help_list.
6449         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6450         help_list.
6451         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6452         help_list.
6453         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6454         help_list.
6455         * breakpoint.c (save_command): Pass all_commands, not -1, to
6456         help_list.
6457         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6458         all_commands, not -1, to help_list.
6459
6460 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
6461
6462         * regcache.c (struct register_to_invalidate): New structure.
6463         (do_register_invalidate, make_cleanup_regcache_invalidate): New
6464         functions.
6465         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6466
6467 2014-06-12  Yao Qi  <yao@codesourcery.com>
6468
6469         * varobj.c (varobj_get_num_children): Call
6470         varobj_is_dynamic_p.
6471         (varobj_list_children): Likewise.
6472         (varobj_update): Likewise.  Update comments.
6473
6474 2014-06-12  Yao Qi  <yao@codesourcery.com>
6475
6476         * varobj.c (varobj_pretty_printed_p): Rename to ...
6477         (varobj_is_dynamic_p): ... this.  New function.
6478         * varobj.h (varobj_pretty_printed_p): Remove declaration.
6479         (varobj_is_dynamic_p): Declare.
6480         * mi/mi-cmd-var.c (print_varobj): All callers updated.
6481         (mi_print_value_p, varobj_update_one): Likewise.
6482
6483 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
6484             Yao Qi  <yao@codesourcery.com>
6485
6486         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6487         (varobj_get_iterator): Wrap up code for pretty-printer by
6488         "#if HAVE_PYTHON" and "#endif".
6489         (update_dynamic_varobj_children): Likewise.
6490
6491 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
6492             Yao Qi  <yao@codesourcery.com>
6493
6494         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6495         gdb_python_initialized is false.  Move some code from varobj.c.
6496         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6497         * varobj.c: Move "varobj-iter.h" inclusion earlier.
6498         (struct varobj_item): Moved to varobj-iter.h".
6499         (varobj_clear_saved_item): New function.
6500         (update_dynamic_varobj_children): Move python-related code to
6501         py-varobj.c.
6502         (free_variable): Call varobj_clear_saved_item and
6503         varobj_iter_delete.
6504
6505 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
6506             Yao Qi  <yao@codesourcery.com>
6507
6508         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6509         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6510         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6511         (py-varobj.o): New rule.
6512         * python/py-varobj.c: New file.
6513         * python/python-internal.h (py_varobj_get_iterator): Declare.
6514         * varobj-iter.h: New file.
6515         * varobj.c: Include "varobj-iter.h"
6516         (struct varobj) <child_iter>: Change its type from "PyObject *"
6517         to "struct varobj_iter *".
6518         <saved_item>: Likewise.
6519         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6520         [HAVE_PYTHON] (varobj_get_iterator): New function.
6521         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6522         python-specific code to python/py-varobj.c.
6523         (install_visualizer): Call varobj_iter_delete instead of
6524         Py_XDECREF.
6525         * varobj.h (varobj_ensure_python_env): Declare.
6526
6527 2014-06-12  Yao Qi  <yao@codesourcery.com>
6528
6529         * varobj.c (struct varobj_item): New structure.
6530         (create_child_with_value): Update declaration.
6531         (varobj_add_child): Replace arguments 'name' and 'value' with
6532         'item'.  All callers updated.
6533         (install_dynamic_child): Likewise.
6534         (update_dynamic_varobj_children): Likewise.
6535         (varobj_add_child): Likewise.
6536         (create_child_with_value): Likewise.
6537
6538 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
6539
6540         * NEWS: Create a new section for the next release branch.
6541         Rename the section of the current branch, now that it has
6542         been cut.
6543
6544 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
6545
6546         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6547         * version.in: Bump version to 7.8.50.DATE-cvs.
6548
6549 2014-06-11  Pedro Alves  <palves@redhat.com>
6550
6551         PR remote/17028
6552         * ser-mingw.c (net_windows_socket_check_pending): New function.
6553         (net_windows_select_thread): Ignore spurious wakeups.  Use
6554         net_windows_socket_check_pending.
6555         (net_windows_wait_handle): Check for pending events with
6556         ioctlsocket, through net_windows_socket_check_pending, instead of
6557         checking the socket's event.
6558
6559 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
6560
6561         * python/python-internal.h (gdb_PyObject_GetAttrString)
6562         (gdb_PyObject_HasAttrString): New inline function definitions.
6563         * py-value.c (get_field_flag): Remove the now unnecessary cast to
6564         char * of the second argument to PyObject_GetAttrString.
6565
6566 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
6567
6568         * serial.c (serial_write): Fix index of character to be printed
6569         in call to serial_logchar when serial debug traces are enabled.
6570
6571 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
6572
6573         * gdbtypes (resolve_dynamic_range): Add function description.
6574
6575 2014-06-09  Pedro Alves  <palves@redhat.com>
6576
6577         * linux-nat.c (linux_child_follow_fork): Initialize status with
6578         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
6579         inner block.  Only pass the signal to PTRACE_DETACH if in pass
6580         state.
6581
6582 2014-06-09  Gary Benson  <gbenson@redhat.com>
6583
6584         * common/signals.c (gdb_signal_from_host): Reorder to separate
6585         the always-available ANSI-standard signals from the signals that
6586         require checking.
6587         (do_gdb_signal_to_host): Likewise.
6588         * proc-events.c (signal_table): Likewise.
6589
6590 2014-06-08  Hui Zhu  <hui@codesourcery.com>
6591
6592         * common/linux-ptrace.c (linux_disable_event_reporting): New
6593         function.
6594         * common/linux-ptrace.h (linux_disable_event_reporting): New
6595         declaration.
6596         * linux-nat.c (linux_child_follow_fork): Do a single step before
6597         detach.
6598
6599 2014-06-07  Keith Seitz  <keiths@redhat.com>
6600
6601         Revert:
6602         PR c++/16253
6603         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6604         from symbol_matches_domain in symtab.c. All local callers
6605         of symbol_matches_domain updated.
6606         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6607         search STRUCT_DOMAIN.
6608         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6609         independently.  standard_lookup will do that automatically.
6610         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6611         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6612         (cp_lookup_symbol_in_namespace): Likewise.
6613         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6614         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6615         may return a STRUCT_DOMAIN match.
6616         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6617         * cp-support.c: Include language.h.
6618         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6619         VAR_DOMAIN.
6620         * psymtab.c (match_partial_symbol): Compare the requested
6621         domain with the symbol's domain directly.
6622         (lookup_partial_symbol): Likewise.
6623         * symtab.c (lookup_symbol_in_language): Explain when/why
6624         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6625         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6626         appropriate languages.
6627         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6628         and moved to ada-lang.c
6629         (lookup_block_symbol): Explain that this function only returns
6630         symbol matching the requested DOMAIN.
6631         Compare the requested domain with the symbol's domain directly.
6632         (iterate_over_symbols): Compare the requested domain with the
6633         symbol's domain directly.
6634         * symtab.h (symbol_matches_domain): Remove.
6635
6636 2014-06-06  Doug Evans  <xdje42@gmail.com>
6637
6638         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6639         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6640         (gdbscm_guile_version_is_at_least): Declare.
6641         (gdbscm_scm_string_to_int): Declare.
6642         * guile/guile.c (gdbscm_guile_major_version): New global.
6643         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6644         (guile_datadir): New static global.
6645         (gdbscm_guile_data_directory): New function.
6646         (initialize_scheme_side): Update.
6647         (misc_guile_functions): Add guile-data-directory.
6648         (initialize_gdb_module): Fetch guile version number.
6649         * guile/lib/gdb.scm: Remove call to add-to-load-path.
6650         * guile/lib/gdb/init.scm (%initialize!): Ditto.
6651         * guile/lib/gdb/boot.scm: Use guile-data-directory.
6652         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6653         comments.
6654         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6655         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6656         * guile/scm-value.c (gdbscm_value_to_string): Only call
6657         scm_port_conversion_strategy if Guile version >= 2.0.6.
6658
6659 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
6660
6661         * main.c (print_gdb_help): Add -q and --silent.
6662
6663 2014-06-06  Gary Benson  <gbenson@redhat.com>
6664
6665         * common/signals.c: Remove preprocessor conditionals for
6666         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6667         SIGSEGV and SIGTERM.
6668         * proc-events.c: Likewise.
6669
6670 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
6671
6672         * symfile.c (symfile_free_objfile): Remove restriction to
6673         OBJF_USERLOADED.
6674         * symfile-mem.c (symbol_file_add_from_memory): Call
6675         add_target_sections_of_objfile.
6676
6677 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
6678
6679         * guile/scm-value.c (gdbscm_history_append_x): Use
6680         'vlscm_get_value_smob_arg_unsafe' instead of
6681         'vlscm_scm_to_value'.
6682
6683 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
6684
6685         PR mi/15806
6686         * utils.c (printchar): Don't escape at all if quoter is NUL.
6687         Update function documentation to clarify effect of parameter
6688         QUOTER.
6689         * remote.c (escape_buffer): Pass '\\' as the quoter to
6690         fputstrn_unfiltered.
6691         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6692         generate the output.
6693         (mi_solib_unloaded): Same.
6694
6695 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
6696
6697         * development.sh: Delete.
6698         * Makefile.in (config.status): Adjust dependency on development.sh.
6699         * configure.ac: Adjust development.sh source call.
6700         * configure: Regenerate.
6701
6702 2014-06-04  Doug Evans  <xdje42@gmail.com>
6703
6704         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6705         is_scheme_bkpt, spec.
6706         (bpscm_make_breakpoint_smob): Initialize new members.
6707         (gdbscm_create_breakpoint_x): Split into two ...
6708         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6709         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6710         (scheme_function breakpoint_functions): Update.
6711         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
6712         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
6713         register-breakpoint!.
6714
6715 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
6716
6717         PR server/17023
6718         * mem-break.c (z_type_supported): Return zero if
6719         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6720
6721 2014-06-04  Tom Tromey  <tromey@redhat.com>
6722
6723         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6724         value_from_contents_and_address_unresolved.
6725         (ada_template_to_fixed_record_type_1): Likewise.
6726         (ada_which_variant_applies): Likewise.
6727         * value.h (value_from_contents_and_address_unresolved): Declare.
6728         * value.c (value_from_contents_and_address_unresolved): New
6729         function.
6730         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6731         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6732         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6733
6734 2014-06-04  Tom Tromey  <tromey@redhat.com>
6735
6736         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6737
6738 2014-06-04  Tom Tromey  <tromey@redhat.com>
6739
6740         * procfs.c (procfs_attach): Make "args" const.
6741         * windows-nat.c (windows_attach): Make "args" const.
6742         * nto-procfs.c (procfs_attach): Make "args" const.
6743         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6744         * go32-nat.c (go32_attach): Make "args" const.
6745         * gnu-nat.c (gnu_attach): Make "args" const.
6746         * darwin-nat.c (darwin_attach): Make "args" const.
6747         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6748         * linux-nat.c (linux_nat_attach): Make "args" const.
6749         * remote.c (extended_remote_attach_1, extended_remote_attach):
6750         Make "args" const.
6751         * target.h (struct target_ops) <to_attach>: Make "args" const.
6752         (find_default_attach): Likewise.
6753         * utils.c (parse_pid_to_attach): Make "args" const.
6754         * utils.h (parse_pid_to_attach): Update.
6755
6756 2014-06-04  Tom Tromey  <tromey@redhat.com>
6757
6758         * target-delegates.c: Rebuild.
6759         * target.c (default_thread_address_space): New function.
6760         (target_thread_address_space): Simplify.
6761         * target.h (struct target_ops) <to_thread_address_space>: Add
6762         TARGET_DEFAULT_FUNC.
6763
6764 2014-06-04  Doug Evans  <xdje42@gmail.com>
6765
6766         * guile/scm-type.c (type_smob): Remove duplicate typedef.
6767
6768 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
6769
6770         * record-btrace.c: Include event-loop.h and inf-loop.h.
6771         (record_btrace_resume_exec_dir)
6772         (record_btrace_async_inferior_event_handler)
6773         (record_btrace_handle_async_inferior_event): New.
6774         (record_btrace_open): Create async event handler.
6775         (record_btrace_close): Delete async event handler.
6776         (record_btrace_resume): Set record_btrace_resume_exec_dir,
6777         Mark async event handler.
6778         (record_btrace_execution_direction): New.
6779         (init_record_btrace_ops): Initialize to_execution_direction.
6780
6781 2014-06-03  Doug Evans  <xdje42@gmail.com>
6782
6783         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6784         (gdbscm_make_parameter): Ditto.
6785
6786 2014-06-03  Doug Evans  <dje@google.com>
6787
6788         * exec.c (exec_close_1): Call clear_section_table instead of
6789         resize_section_table.
6790         (clear_section_table): New function.
6791         (resize_section_table): Make static.  Rename arg num_added to
6792         adjustment.
6793         * exec.h (clear_section_table): Declare.
6794         (resize_section_table): Delete.
6795         * progspace.c (release_program_space): Call clear_section_table
6796         instead of resize_section_table.
6797
6798 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
6799
6800         * NEWS (Python Scripting): Add entry about the new xmethods
6801         feature.
6802
6803 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
6804
6805         * python/py-xmethods.c: New file.
6806         * python/py-objfile.c (objfile_object): New field 'xmethods'.
6807         (objfpy_dealloc): XDECREF on the new xmethods field.
6808         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6809         field.
6810         (objfpy_get_xmethods): New function.
6811         (objfile_getset): New entry 'xmethods'.
6812         * python/py-progspace.c (pspace_object): New field 'xmethods'.
6813         (pspy_dealloc): XDECREF on the new xmethods field.
6814         (pspy_new, pspace_to_pspace_object): Initialize xmethods
6815         field.
6816         (pspy_get_xmethods): New function.
6817         (pspace_getset): New entry 'xmethods'.
6818         * python/python-internal.h: Add declarations for new functions.
6819         * python/python.c (_initialize_python): Invoke
6820         gdbpy_initialize_xmethods.
6821         * python/lib/gdb/__init__.py (xmethods): New
6822         attribute.
6823         * python/lib/gdb/xmethod.py: New file.
6824         * python/lib/gdb/command/xmethods.py: New file.
6825
6826 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
6827
6828         * eval.c (evaluate_subexp_standard): Call the xmethod if the
6829         best match method returned by find_overload_match is an xmethod.
6830         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6831         the best matching operator returned by find_overload_match is an
6832         xmethod.
6833         * valops.c: #include "extension.h".
6834         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6835         Return void.  The list of matching source methods is returned in
6836         "fn_list" and a vector of matching debug method workers is
6837         returned in "xm_worker_vec".  Update all callers.
6838         (value_find_oload_method_list): Likewise.
6839         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
6840         non-NULL, then the index of the best matching method in this
6841         vector is returned.  Update all callers.
6842         (find_overload_match): Include xmethods while performing overload
6843         resolution.
6844
6845 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
6846
6847         * defs.h (enum lval_type): New enumerator "lval_xcallable".
6848         * extension-priv.h (struct extension_language_ops): Add the
6849         xmethod interface.
6850         * extension.c (new_xmethod_worker, clone_xmethod_worker,
6851         get_matching_xmethod_workers, get_xmethod_argtypes,
6852         invoke_xmethod, free_xmethod_worker,
6853         free_xmethod_worker_vec): New functions.
6854         * extension.h: #include "common/vec.h".
6855         New function declarations.
6856         (struct xmethod_worker): New struct.
6857         (VEC (xmethod_worker_ptr)): New vector type.
6858         (xmethod_worker_ptr): New typedef.
6859         (xmethod_worker_vec): Likewise.
6860         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6861         builtin_type.
6862         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6863         (struct builtin_type): New field "xmethod".
6864         * valarith.c (value_ptradd): Assert that the value argument is not
6865         lval_xcallable.
6866         * valops.c (value_must_coerce_to_target): Return 0 for
6867         lval_xcallable values.
6868         * value.c (struct value): New field XM_WORKER in the field
6869         LOCATION.
6870         (value_address, value_raw_address): Return 0 for lval_xcallable
6871         values.
6872         (set_value_address): Assert that the value is not an
6873         lval_xcallable.
6874         (value_free): Free the associated xmethod worker when freeing
6875         lval_xcallable values.
6876         (set_value_component_location): Assert that the WHOLE value is not
6877         lval_xcallable.
6878         (value_of_xmethod, call_xmethod): New functions.
6879         * value.h: Declare "struct xmethod_worker".
6880         Declare new functions value_of_xmethod, call_xmethod.
6881
6882 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
6883             Pedro Alves  <palves@redhat.com>
6884
6885         PR breakpoints/17000
6886         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6887         New function, extracted from software_breakpoint_inserted_here_p.
6888         (software_breakpoint_inserted_here_p): Replace factored out code
6889         by call to find_non_raw_software_breakpoint_inserted_here.
6890         (bp_target_info_copy_insertion_state): New function.
6891         (bkpt_insert_location): Handle the case of a single-step
6892         breakpoint already inserted at the same address.
6893         (bkpt_remove_location): Handle the case of a single-step
6894         breakpoint still inserted at the same address.
6895         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6896         breakpoint already inserted at the same address.
6897         (deprecated_remove_raw_breakpoint): Handle the case of a
6898         non-raw breakpoint still inserted at the same address.
6899         (find_single_step_breakpoint): New function, extracted from
6900         single_step_breakpoint_inserted_here_p.
6901         (find_single_step_breakpoint): New function,
6902         factored out from single_step_breakpoint_inserted_here_p.
6903         (single_step_breakpoint_inserted_here_p): Reimplement.
6904
6905 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
6906
6907         Pushed by Joel Brobecker  <brobecker@adacore.com>
6908         * source.c (show_substitute_path_command): Fix display of matching
6909         substitution rules.
6910
6911 2014-06-03  Gary Benson  <gbenson@redhat.com>
6912
6913         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6914
6915 2014-06-02  Doug Evans  <xdje42@gmail.com>
6916
6917         Add parameter support for Guile.
6918         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6919         (SUBDIR_GUILE_SRCS): Add scm-param.c.
6920         (scm-param.o): New rule.
6921         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6922         (gdbscm_misc_error): Declare.
6923         (gdbscm_canonicalize_command_name): Declare.
6924         (gdbscm_scm_to_host_string): Declare.
6925         (gdbscm_scm_from_host_string): Declare.
6926         (gdbscm_initialize_parameters): Declare.
6927         * guile/guile.c (initialize_gdb_module): Call
6928         gdbscm_initialize_parameters.
6929         * guile/lib/gdb.scm: Export parameter symbols.
6930         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6931         cmdscm_canonicalize_name and made public.  All callers updated.
6932         * guile/scm-exception.c (gdbscm_misc_error): New function.
6933         * guile/scm-param.c: New file.
6934         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6935         (gdbscm_scm_to_host_string): New function.
6936         (gdbscm_scm_from_host_string): New function.
6937         * scm-utils.c (gdbscm_gc_dup_argv): New function.
6938
6939 2014-06-02  Doug Evans  <xdje42@gmail.com>
6940
6941         Add command support for Guile.
6942         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6943         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6944         (scm-cmd.o): New rule.
6945         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6946         (gdbscm_user_error_p): Declare.
6947         (gdbscm_parse_command_name): Declare.
6948         (gdbscm_valid_command_class_p): Declare.
6949         (gdbscm_initialize_commands): Declare.
6950         * guile/guile.c (initialize_gdb_module): Call
6951         gdbscm_initialize_commands.
6952         * guile/lib/gdb.scm: Export command symbols.
6953         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6954         (throw-user-error): New function.
6955         * guile/scm-cmd.c: New file.
6956         * guile/scm-exception.c (user_error_symbol): New static global.
6957         (gdbscm_user_error_p): New function.
6958         (gdbscm_initialize_exceptions): Set user_error_symbol.
6959         * scm-utils.c (gdbscm_gc_xstrdup): New function.
6960
6961 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
6962
6963         * top.c (command_loop): Handle comments here...
6964         (command_line_input): ... not here.
6965
6966 2014-06-02  Doug Evans  <xdje42@gmail.com>
6967
6968         Add progspace support for Guile.
6969         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6970         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6971         (scm-progspace.o): New rule.
6972         * guile/guile-internal.h (pspace_smob): New typedef.
6973         (psscm_pspace_smob_pretty_printers): Declare.
6974         (psscm_pspace_smob_from_pspace): Declare.
6975         (psscm_scm_from_pspace): Declare.
6976         * guile/guile.c (initialize_gdb_module): Call
6977         gdbscm_initialize_pspaces.
6978         * guile/lib/gdb.scm: Export progspace symbols.
6979         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6980         support.
6981         (append-pretty-printer!): Ditto.
6982         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6983         Implement.
6984         * guile/scm-progspace.c: New file.
6985
6986 2014-06-03  Alan Modra  <amodra@gmail.com>
6987
6988         * ppc64-tdep.c (ppc64_standard_linkage8): New.
6989         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
6990
6991 2014-06-02  Doug Evans  <dje@google.com>
6992
6993         Add support for skeletonless type units.
6994         * dwarf2read.c (struct dwarf2_per_objfile): New member
6995         n_allocated_type_units.
6996         (struct dwarf2_per_objfile) <tu_stats>: New member
6997         nr_all_type_units_reallocs.
6998         (create_signatured_type_table_from_index): Initialize
6999         n_allocated_type_units
7000         (create_all_type_units): Ditto.
7001         (add_type_unit): Move up in file.  New arg slot.
7002         All callers updated.  Increase space for all_type_units more
7003         efficiently.
7004         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7005         (lookup_dwo_signatured_type): Handle skeletonless TUs.
7006         (lookup_dwp_signatured_type): Ditto.
7007         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7008         All callers updated.
7009         (build_type_psymtabs_1): Leave type_unit_groups as
7010         NULL if no TUs present.
7011         (print_tu_stats): New function.
7012         (process_skeletonless_type_unit): New function.
7013         (process_dwo_file_for_skeletonless_type_units): New
7014         function.
7015         (process_skeletonless_type_units): New function.
7016         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7017         Call print tu_stats if debugging enabled.
7018
7019 2014-06-02  Pedro Alves  <palves@redhat.com>
7020
7021         * breakpoint.c (build_target_command_list): Don't build a command
7022         list if we have any duplicate location that isn't a dprintf.
7023
7024 2014-06-02  Pedro Alves  <palves@redhat.com>
7025
7026         * breakpoint.c (dprintf_breakpoint_hit): New function.
7027         (initialize_breakpoint_ops): Install it as dprintf's
7028         breakpoint_hit method.
7029
7030 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
7031
7032         * source.c (substitute_path_rule_matches): Simplify using
7033         filename_ncmp instead of FILENAME_CMP.
7034
7035 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
7036
7037         * source.c (substitute_path_rule_matches): Remove trailing spaces.
7038
7039 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
7040
7041         * configure.ac: When Guile is available, check for the
7042         availability of 'scm_new_smob'.
7043         * configure, config.h.in: Regenerate.
7044         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7045         function.
7046
7047 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
7048
7049         * frame.c (struct frame_info): Add stop_string field.
7050         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7051         (get_prev_frame_always): Old content moved into
7052         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
7053         TRY_CATCH, handle MEMORY_ERROR exceptions.
7054         (frame_stop_reason_string): New function definition.
7055         * frame.h (unwind_stop_reason_to_string): Extend comment to
7056         mention frame_stop_reason_string.
7057         (frame_stop_reason_string): New function declaration.
7058         * stack.c (frame_info): Switch to frame_stop_reason_string.
7059         (backtrace_command_1): Switch to frame_stop_reason_string.
7060         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7061         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7062         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7063
7064 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
7065
7066         * frame.c (frame_stop_reason_string): Rename to ...
7067         (unwind_stop_reason_to_string): this.
7068         * frame.h (frame_stop_reason_string): Rename to ...
7069         (unwind_stop_reason_to_string): this.
7070         * stack.c (frame_info): Update call to frame_stop_reason_string.
7071         (backtrace_command_1): Likewise.
7072         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7073         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7074
7075 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
7076
7077         * frame.c (remove_prev_frame): New function.
7078         (get_prev_frame_if_no_cycle): Create / discard cleanup using
7079         remove_prev_frame.
7080
7081 2014-05-29  Pedro Alves  <palves@redhat.com>
7082
7083         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7084         and make it const.  When a single-step decays to a continue,
7085         clear 'step', not 'hw_step'.  Pass whether the caller wanted
7086         to step to user_visible_resume_ptid, not what we ask the
7087         target to do.
7088
7089 2014-05-29  Pedro Alves  <palves@redhat.com>
7090
7091         * infrun.c (process_event_stop_test, handle_step_into_function)
7092         (handle_step_into_function_backward): Adjust.
7093         Don't set the even thread's stop_step and call stop_waiting before
7094         calling end_stepping_range.  Instead do that ...
7095         (end_stepping_range): ... here.  Take an ecs pointer parameter.
7096
7097 2014-05-29  Pedro Alves  <palves@redhat.com>
7098
7099         * infrun.c (stop_stepping): Rename to ...
7100         (stop_waiting): ... this.
7101         (proceed): Update comment.
7102         (process_event_stop_test, handle_inferior_event)
7103         (handle_signal_stop, handle_step_into_function)
7104         (handle_step_into_function_backward): Update.
7105
7106 2014-05-29  Pedro Alves  <palves@redhat.com>
7107
7108         * infcall.c (run_inferior_call): Don't check whether the current
7109         thread is running after the proceed call.
7110
7111 2014-05-29  Pedro Alves  <palves@redhat.com>
7112             Tom Tromey  <tromey@redhat.com>
7113
7114         * NEWS: Mention "maint set target-async", "set mi-async", and that
7115         background execution commands are now always available.
7116         * target.h (target_async_permitted): Update comment.
7117         * target.c (target_async_permitted, target_async_permitted_1):
7118         Default to 1.
7119         (set_target_async_command): Rename to ...
7120         (maint_set_target_async_command): ... this.
7121         (show_target_async_command): Rename to ...
7122         (maint_show_target_async_command): ... this.
7123         (_initialize_target): Adjust.
7124         * infcmd.c (prepare_execution_command): Make extern.
7125         * inferior.h (prepare_execution_command): Declare.
7126         * infrun.c (set_observer_mode): Leave target async alone.
7127         * mi/mi-interp.c (mi_interpreter_init): Install
7128         mi_on_sync_execution_done as sync_execution_done observer.
7129         (mi_on_sync_execution_done): New function.
7130         (mi_execute_command_input_handler): Don't print the prompt if we
7131         just started a synchronous command with an async target.
7132         (mi_on_resume): Check sync_execution before printing prompt.
7133         * mi/mi-main.h (mi_async_p): Declare.
7134         * mi/mi-main.c: Include gdbcmd.h.
7135         (mi_async_p): New function.
7136         (mi_async, mi_async_1): New globals.
7137         (set_mi_async_command, show_mi_async_command, mi_async): New
7138         functions.
7139         (exec_continue): Call prepare_execution_command.
7140         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7141         (mi_execute_async_cli_command): Use mi_async_p.
7142         (_initialize_mi_main): Install "set mi-async".  Make
7143         "target-async" a deprecated alias.
7144
7145 2014-05-29  Pedro Alves  <palves@redhat.com>
7146
7147         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7148         (_initialize_cli_interp): Adjust.
7149         * event-loop.c: Include "observer.h".
7150         (start_event_loop): Notify 'command_error' observers instead of
7151         calling display_gdb_prompt.  Remove FIXME comment.
7152         * event-top.c (display_gdb_prompt): Remove call into the
7153         interpreters.
7154         * inf-loop.c: Include "observer.h".
7155         (inferior_event_handler): Notify 'command_error' observers instead
7156         of calling display_gdb_prompt.
7157         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7158         observers instead of calling display_gdb_prompt.
7159         * interps.c (interp_set): Don't call display_gdb_prompt.
7160         (current_interp_display_prompt_p): Delete.
7161         * interps.h (interp_prompt_p): Delete declaration.
7162         (interp_prompt_p_ftype): Delete.
7163         (struct interp_procs) <prompt_proc_p>: Delete field.
7164         (current_interp_display_prompt_p): Delete declaration.
7165         * mi-interp.c (mi_interpreter_prompt_p): Delete.
7166         (_initialize_mi_interp): Adjust.
7167         * tui-interp.c (tui_init): Install 'sync_execution_done' and
7168         'command_error' observers.
7169         (tui_on_sync_execution_done, tui_on_command_error): New
7170         functions.
7171         (tui_display_prompt_p): Delete.
7172         (_initialize_tui_interp): Adjust.
7173
7174 2014-05-29  Pedro Alves  <palves@redhat.com>
7175
7176         PR gdb/13860
7177         * cli/cli-interp.c: Include infrun.h and observer.h.
7178         (cli_uiout, cli_interp): New globals.
7179         (cli_on_signal_received, cli_on_end_stepping_range)
7180         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7181         functions.
7182         (cli_interpreter_init): Install them as 'end_stepping_range',
7183         'signal_received' 'signal_exited', 'exited' and 'no_history'
7184         observers.
7185         (_initialize_cli_interp): Remove cli_interp local.
7186         * infrun.c (handle_inferior_event): Call the several stop reason
7187         observers instead of printing the stop reason directly.
7188         (end_stepping_range): New function.
7189         (print_end_stepping_range_reason, print_signal_exited_reason)
7190         (print_exited_reason, print_signal_received_reason)
7191         (print_no_history_reason): Make static, and add an uiout
7192         parameter.  Print to that instead of to CURRENT_UIOUT.
7193         * infrun.h (print_end_stepping_range_reason)
7194         (print_signal_exited_reason, print_exited_reason)
7195         (print_signal_received_reason print_no_history_reason): New
7196         declarations.
7197         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7198         'mi_uiout'.
7199         <cli_uiout>: New field.
7200         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
7201         uiout for CLI output.  Install 'signal_received',
7202         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7203         observers.
7204         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7205         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7206         (mi_on_no_history): New functions.
7207         (ui_out_free_cleanup): Delete function.
7208         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7209         instead use the one already stored in the MI interpreter data.
7210         (mi_ui_out): Adjust.
7211         * tui/tui-interp.c: Include infrun.h and observer.h.
7212         (tui_interp): New global.
7213         (tui_on_signal_received, tui_on_end_stepping_range)
7214         (tui_on_signal_exited, tui_on_exited)
7215         (tui_on_no_history): New functions.
7216         (tui_init): Install them as 'end_stepping_range',
7217         'signal_received' 'signal_exited', 'exited' and 'no_history'
7218         observers.
7219         (_initialize_tui_interp): Delete tui_interp local.
7220
7221 2014-05-29  Pedro Alves  <palves@redhat.com>
7222
7223         PR gdb/15713
7224         * linux-nat.c (linux_nat_resume_callback): Rename the second
7225         parameter to 'except'.  Skip LP if it points to EXCEPT.
7226         (linux_nat_resume): Don't mark the event lwp as not stopped
7227         before resuming sibling lwps.  Instead ask
7228         linux_nat_resume_callback to skip the event lwp.  Mark it as not
7229         stopped after actually resuming it.
7230         (linux_handle_syscall_trap): Mark the lwp as not stopped after
7231         resuming it.
7232         (wait_lwp): Mark the lwp as stopped here.
7233         (stop_wait_callback): Mark the lwp as not stopped right after
7234         resuming it.  Don't mark lwps as stopped here.
7235         (linux_nat_filter_event): Mark the lwp as stopped earlier.
7236         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7237
7238 2014-05-29  Pedro Alves  <palves@redhat.com>
7239
7240         PR PR15693
7241         * infrun.c (resume): Determine how much to resume depending on
7242         whether the caller wanted a step, not whether we can hardware step
7243         the target.  Mark all threads that we intend to run as running,
7244         unless we're calling an inferior function.
7245         (normal_stop): If the thread is running an infcall, don't finish
7246         thread state.
7247         * target.c (target_resume): Don't mark threads as running here.
7248
7249 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
7250
7251         * serial.c (_initialize_serial): Remove support for
7252         the "set remotebaud" and "show remotebaud" commands.
7253         * NEWS: Add entry documenting the removal of that command.
7254
7255 2014-05-28  Yao Qi  <yao@codesourcery.com>
7256
7257         * charset.c: Fix typo in comments.
7258
7259 2014-05-27  Gary Benson  <gbenson@redhat.com>
7260
7261         * utils.c (internal_vproblem): Prompt for a bug report.
7262
7263 2014-05-26  Andy Wingo  <wingo@igalia.com>
7264
7265         * guile/scm-arch.c (arscm_mark_arch_smob):
7266         * guile/scm-block.c (bkscm_mark_block_smob)
7267         (bkscm_mark_block_syms_progress_smob):
7268         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7269         * guile/scm-exception.c (exscm_mark_exception_smob):
7270         * guile/scm-frame.c (frscm_mark_frame_smob):
7271         * guile/scm-iterator.c (itscm_mark_iterator_smob):
7272         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7273         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7274         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7275         (ppscm_mark_pretty_printer_worker_smob):
7276         * guile/scm-symbol.c (syscm_mark_symbol_smob):
7277         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7278         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7279         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7280         mark functions.
7281         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7282         function.
7283
7284 2014-05-26  Andy Wingo  <wingo@igalia.com>
7285             Doug Evans  <xdje42@gmail.com>
7286
7287         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7288         empty_base_class.  All uses updated.
7289         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7290         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7291         Adapt all callers.
7292         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7293         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7294         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7295         (gdbscm_gsmob_has_property_p, add_property_name)
7296         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7297         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7298         (gdb-object-has-property?, gdb-object-properties): Remove.
7299         (gdb-object-kind): Renamed from gsmob-kind.
7300
7301 2014-05-26  Andy Wingo  <wingo@igalia.com>
7302
7303         * configure.ac (try_guile_versions): Allow building with guile 2.2.
7304         * configure: Regenerate.
7305
7306 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
7307
7308         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7309
7310 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
7311
7312         * record-btrace.c (record_btrace_allow_memory_access): Remove.
7313         (replay_memory_access_read_only, replay_memory_access_read_write)
7314         (replay_memory_access_types, replay_memory_access)
7315         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7316         (cmd_set_record_btrace, cmd_show_record_btrace)
7317         (cmd_show_replay_memory_access): New.
7318         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7319         (record_btrace_remove_breakpoint): Replace
7320         record_btrace_allow_memory_access with replay_memory_access.
7321         (_initialize_record_btrace): Add commands.
7322         * NEWS: Announce it.
7323
7324 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7325
7326         * aarch64-linux-nat.c (asm/ptrace.h): Include.
7327
7328 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7329
7330         * MAINTAINERS (Write After Approval): Move self back from
7331         paper trail.
7332
7333 2014-05-22  Pedro Alves  <palves@redhat.com>
7334
7335         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7336         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7337         (disable_randomization, enum exec_direction_kind)
7338         (execution_direction, stop_registers, start_remote)
7339         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7340         (wait_for_inferior, normal_stop, get_last_target_status)
7341         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7342         (insert_step_resume_breakpoint_at_sal)
7343         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7344         (set_step_info, print_stop_event, signal_stop_state)
7345         (signal_print_state, signal_pass_state, signal_stop_update)
7346         (signal_print_update, signal_pass_update)
7347         (update_signals_program_target, clear_exit_convenience_vars)
7348         (displaced_step_dump_bytes, update_observer_mode)
7349         (signal_catch_update, gdb_signal_from_command): Move
7350         declarations ...
7351         * infrun.h: ... to this new file.
7352         * amd64-tdep.c: Include infrun.h.
7353         * annotate.c: Include infrun.h.
7354         * arch-utils.c: Include infrun.h.
7355         * arm-linux-tdep.c: Include infrun.h.
7356         * arm-tdep.c: Include infrun.h.
7357         * break-catch-sig.c: Include infrun.h.
7358         * breakpoint.c: Include infrun.h.
7359         * common/agent.c: Include infrun.h instead of inferior.h.
7360         * corelow.c: Include infrun.h.
7361         * event-top.c: Include infrun.h.
7362         * go32-nat.c: Include infrun.h.
7363         * i386-tdep.c: Include infrun.h.
7364         * inf-loop.c: Include infrun.h.
7365         * infcall.c: Include infrun.h.
7366         * infcmd.c: Include infrun.h.
7367         * infrun.c: Include infrun.h.
7368         * linux-fork.c: Include infrun.h.
7369         * linux-nat.c: Include infrun.h.
7370         * linux-thread-db.c: Include infrun.h.
7371         * monitor.c: Include infrun.h.
7372         * nto-tdep.c: Include infrun.h.
7373         * procfs.c: Include infrun.h.
7374         * record-btrace.c: Include infrun.h.
7375         * record-full.c: Include infrun.h.
7376         * remote-m32r-sdi.c: Include infrun.h.
7377         * remote-mips.c: Include infrun.h.
7378         * remote-notif.c: Include infrun.h.
7379         * remote-sim.c: Include infrun.h.
7380         * remote.c: Include infrun.h.
7381         * reverse.c: Include infrun.h.
7382         * rs6000-tdep.c: Include infrun.h.
7383         * s390-linux-tdep.c: Include infrun.h.
7384         * solib-irix.c: Include infrun.h.
7385         * solib-osf.c: Include infrun.h.
7386         * solib-svr4.c: Include infrun.h.
7387         * target.c: Include infrun.h.
7388         * top.c: Include infrun.h.
7389         * windows-nat.c: Include infrun.h.
7390         * mi/mi-interp.c: Include infrun.h.
7391         * mi/mi-main.c: Include infrun.h.
7392         * python/py-threadevent.c: Include infrun.h.
7393
7394 2014-05-22  Pedro Alves  <palves@redhat.com>
7395
7396         * infrun.c (handle_inferior_event): Store the exit code for
7397         --return-child-result here, instead of ...
7398         (print_exited_reason): ... here.
7399
7400 2014-05-21  Pedro Alves  <palves@redhat.com>
7401
7402         PR gdb/13860
7403         * gdbthread.h (struct thread_control_state): New field
7404         `command_interp'.
7405         * infrun.c (follow_fork): Copy the new thread control field to the
7406         child fork thread.
7407         (clear_proceed_status_thread): Clear the new thread control field.
7408         (proceed): Set the new thread control field.
7409         * interps.h (command_interp): Declare.
7410         * interps.c (command_interpreter): New global.
7411         (command_interp): New function.
7412         (interp_exec): Set `command_interpreter' while here.
7413         * cli-out.c (cli_uiout_dtor): New function.
7414         (cli_ui_out_impl): Install it.
7415         * mi/mi-interp.c: Include cli-out.h.
7416         (mi_cmd_interpreter_exec): Add comment.
7417         (restore_current_uiout_cleanup): New function.
7418         (ui_out_free_cleanup): New function.
7419         (mi_on_normal_stop): If finishing an execution command started by
7420         a CLI command, or any kind of breakpoint-like event triggered,
7421         print the stop event to the output (CLI) stream.
7422         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7423
7424 2014-05-21  Pedro Alves  <palves@redhat.com>
7425
7426         * cli/cli-cmds.c (list_command): Handle the first "list" after the
7427         current source line having changed.
7428         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7429         * infrun.c (normal_stop): Adjust call to
7430         set_current_sal_from_frame.
7431         * source.c (clear_lines_listed_range): New function.
7432         (set_current_source_symtab_and_line, identify_source_line): Clear
7433         the lines listed range.
7434         (line_info): Handle the first "info line" after the current source
7435         line having changed.
7436         * stack.c (print_stack_frame): Remove center handling.
7437         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
7438         center sal.line.
7439
7440 2014-05-21  Pedro Alves  <palves@redhat.com>
7441
7442         * inf-child.c (inf_child_mourn_inferior): New function.
7443         * inf-child.h (inf_child_mourn_inferior): New declaration.
7444         * darwin-nat.c (darwin_mourn_inferior): Use
7445         inf_child_mourn_inferior.
7446         * gnu-nat.c (gnu_mourn_inferior): Likewise.
7447         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7448         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7449         * nto-procfs.c (procfs_mourn_inferior): Likewise.
7450         * windows-nat.c (windows_mourn_inferior): Likewise.
7451
7452 2014-05-21  Doug Evans  <xdje42@gmail.com>
7453
7454         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7455
7456 2014-05-21  Doug Evans  <xdje42@gmail.com>
7457
7458         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7459         (gdbscm_out_of_range_error): Ditto.
7460         (gdbscm_memory_error): Ditto.
7461         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7462         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7463         (gdbscm_out_of_range_error): Update.
7464         (gdbscm_memory_error): Update.
7465         (gdbscm_scm_to_target_string_unsafe): Delete.
7466
7467 2014-05-21  Pedro Alves  <palves@redhat.com>
7468
7469         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7470         globals.
7471         (inf_child_open_target): New function.
7472         (inf_child_open): Use inf_child_open_target to push the target
7473         instead of erroring out.
7474         (inf_child_disconnect, inf_child_close)
7475         (inf_child_maybe_unpush_target): New functions.
7476         (inf_child_target): Install inf_child_disconnect and
7477         inf_child_close.  Store a pointer to the returned object.
7478         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7479         declarations.
7480         * target.c (auto_connect_native_target): New global.
7481         (show_default_run_target): New function.
7482         (find_default_run_target): Return NULL if automatically connecting
7483         to the native target is disabled.
7484         (_initialize_target): Install set/show auto-connect-native-target.
7485         * NEWS: Mention "set auto-connect-native-target", and "target
7486         native".
7487         * linux-nat.c (super_close): New global.
7488         (linux_nat_close): Call super_close.
7489         (linux_nat_add_target): Store a pointer to the base class's
7490         to_close method.
7491         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7492         inf_child_maybe_unpush.
7493         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7494         already pushed.
7495         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7496         the inferior.  Use inf_child_maybe_unpush_target.
7497         (inf_ttrace_attach): Don't push the target if it is already
7498         pushed.
7499         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7500         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7501         after mourning the inferior.  Use inf_child_maybe_unpush_target.
7502         (darwin_attach_pid): Don't push the target if it is already
7503         pushed.
7504         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7505         mourning the inferior.  Use inf_child_maybe_unpush_target.
7506         (gnu_detach): Use inf_child_maybe_unpush_target.
7507         * go32-nat.c (go32_create_inferior): Don't push the target if it
7508         is already pushed.
7509         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7510         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7511         (procfs_open): Rename to ...
7512         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
7513         comments.  Can target_preopen before changing node.  Call
7514         inf_child_open_target to push the target explicitly.
7515         (procfs_attach): Don't push the target if it is already pushed.
7516         (procfs_detach): Use inf_child_maybe_unpush_target.
7517         (procfs_create_inferior): Don't push the target if it is already
7518         pushed.
7519         (nto_native_ops): New global.
7520         (procfs_open): Reimplement.
7521         (procfs_native_open): New function.
7522         (init_procfs_targets): Install procfs_native_open as to_open of
7523         "target native".  Store a pointer to the "native" target in
7524         nto_native_ops.
7525         * procfs.c (procfs_attach): Don't push the target if it is already
7526         pushed.
7527         (procfs_detach): Use inf_child_maybe_unpush_target.
7528         (procfs_mourn_inferior): Only unpush the target after mourning the
7529         inferior.  Use inf_child_maybe_unpush_target.
7530         (procfs_init_inferior): Don't push the target if it is already
7531         pushed.
7532         * windows-nat.c (do_initial_windows_stuff): Don't push the target
7533         if it is already pushed.
7534
7535 2014-05-21  Pedro Alves  <palves@redhat.com>
7536
7537         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7538         and "procfs" targets are now called "native" instead.
7539
7540 2014-05-21  Pedro Alves  <palves@redhat.com>
7541
7542         * go32-nat.c (go32_open): Delete.
7543         (go32_target): Don't override the to_open method.
7544
7545 2014-05-21  Pedro Alves  <palves@redhat.com>
7546
7547         * nto-procfs.c (procfs_can_run): New function.
7548         (nto_procfs_ops): New global.
7549         (init_procfs_targets): New, based on procfs_target.  Install
7550         "target native" in addition to "target procfs".
7551         (_initialize_procfs): Call init_procfs_targets instead of adding
7552         the target here.
7553
7554 2014-05-21  Pedro Alves  <palves@redhat.com>
7555
7556         * windows-nat.c (windows_target): Don't override to_shortname,
7557         to_longname or to_doc.
7558
7559 2014-05-21  Pedro Alves  <palves@redhat.com>
7560
7561         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7562         to_doc.
7563
7564 2014-05-21  Pedro Alves  <palves@redhat.com>
7565
7566         * darwin-nat.c (_initialize_darwin_inferior): Don't override
7567         to_shortname, to_longname or to_doc.
7568
7569 2014-05-21  Pedro Alves  <palves@redhat.com>
7570
7571         * go32-nat.c (go32_target): Don't override to_shortname,
7572         to_longname or to_doc.
7573
7574 2014-05-21  Pedro Alves  <palves@redhat.com>
7575
7576         * inf-child.c (inf_child_open): Remove mention of "child".
7577         (inf_child_target): Rename target to "native" instead of "child".
7578
7579 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7580
7581         * Makefile.in (SFILES): Delete "regset.c".
7582         (COMMON_OBS): Delete "regset.o".
7583         * regset.c: Remove.
7584         * regset.h (regset_alloc): Delete prototype.
7585
7586 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7587
7588         * sparc-linux-tdep.c (sparc32_linux_gregset)
7589         (sparc32_linux_fpregset): New static regset structures.
7590         (sparc32_linux_init_abi): Drop dynamic regset allocations.
7591         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7592         'fpregset' fields.
7593         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7594         (sparc64_linux_fpregset): New static regset structures.
7595         (sparc64_linux_init_abi): Drop dynamic regset allocations.
7596         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7597         New static regset structures.
7598         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7599         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7600         New static regset structures.
7601         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7602         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7603         New static regset structures.
7604         (sparc64obsd_init_abi): Drop dynamic regset allocations.
7605         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7606         New static regset structures.
7607         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7608
7609 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7610
7611         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7612         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7613         register maps ("regmaps") from "*regset" to "*regmap".  Do this
7614         for all regmap types and variables.
7615         * sparc-linux-tdep.c (sparc32_linux_step_trap)
7616         (sparc32_linux_supply_core_gregset)
7617         (sparc32_linux_collect_core_gregset)
7618         (sparc32_linux_supply_core_fpregset)
7619         (sparc32_linux_collect_core_fpregset): Likewise.
7620         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7621         (sparc_gregmap, sparc_fpregmap): ... these.
7622         (sparc_supply_gregset, sparc_collect_gregset)
7623         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7624         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7625         (_initialize_sparc_nat): Rename regmaps.
7626         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7627         (sparc_gregmap, sparc_fpregmap): ... these.
7628         (sparc_supply_gregset, sparc_collect_gregset)
7629         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7630         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7631         Rename macros to...
7632         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7633         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7634         Likewise.
7635         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7636         Rename to...
7637         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7638         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7639         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7640         regmaps.
7641         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7642         (sparc32_bsd_fpregset): Rename to...
7643         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7644         (sparc32_bsd_fpregmap): ... these.
7645         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7646         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7647         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7648         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7649         (struct sparc_gregmap, struct sparc_fpregmap)
7650         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7651         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7652         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7653         (sparc32_supply_regset, sparc32_collect_gregset)
7654         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7655         prototypes.
7656         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7657         (sparc64_linux_ptrace_gregmap): ... this.
7658         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7659         (_initialize_sparc64_linux_nat): Rename regmaps.
7660         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7661         (sparc64_linux_core_gregmap): ... this.
7662         (sparc64_linux_supply_core_gregset)
7663         (sparc64_linux_collect_core_gregset)
7664         (sparc64_linux_supply_core_fpregset)
7665         (sparc64_linux_collect_core_fpregset): Rename regmaps.
7666         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7667         (sparc64_sol2_fpregset): Rename to...
7668         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7669         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7670         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7671         regmaps.
7672         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7673         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7674         (sparc64_bsd_fpregset): Rename to...
7675         (struct sparc_gregmap, sparc64_sol2_gregmap)
7676         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7677         (sparc64_bsd_fpregmap): ... these.
7678         (sparc64_supply_gregset, sparc64_collect_gregset)
7679         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7680         prototypes.
7681         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7682         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7683         (sparc64fbsd_gregmap): ... this.
7684         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7685         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7686         Rename regmaps.
7687         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7688         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7689         (sparc64nbsd_collect_fpregset): Likewise.
7690         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7691         (sparc64nbsd_gregmap): ... this.
7692         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7693         regmaps.
7694         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7695         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7696         (sparc64obsd_gregmap): ... this.
7697         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7698         regmaps.
7699         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7700         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7701         (sparc32nbsd_gregmap): ... this.
7702         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7703         regmaps.
7704
7705 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7706
7707         * score-tdep.c (score7_linux_gregset): New static regset
7708         structure.
7709         (score7_linux_regset_from_core_section): Remove dynamic regset
7710         allocation.
7711         (score_gdbarch_init): Drop allocation of tdep structure.
7712         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7713
7714 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7715
7716         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7717         regset structures.
7718         (am33_regset_from_core_section): Remove dynamic regset
7719         allocations.
7720
7721 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7722
7723         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7724         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7725         structures.
7726         (mips_linux_regset_from_core_section): Remove dynamic regset
7727         allocations.
7728         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7729         'gregset64', 'fpregset', and 'fpregset64'.
7730         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7731         deleted tdep fields.
7732
7733 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7734
7735         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7736         regset structures.
7737         (amd64_regset_from_core_section): Remove dynamic regset
7738         allocations.
7739         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7740         structure.
7741         (amd64obsd_regset_from_core_section): Remove dynamic regset
7742         allocation.
7743         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7744         Likewise.
7745         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7746         x86-common regset supply function.
7747         * i386-tdep.c (i386_collect_gregset): Make static.
7748         (i386_gregset): New global regset structure.
7749         (i386_fpregset, i386_xstateregset): New static regset structures.
7750         (i386_regset_from_core_section): Remove dynamic regset
7751         allocations.
7752         (i386_gdbarch_init): Remove initialization of tdep fields
7753         'gregset', 'fpregset', and 'xstateregset'.
7754         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7755         'fpregset', and 'xstateregset'.
7756         (i386_collect_gregset): Remove prototype.
7757         (i386_gregset): New declaration.
7758         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7759         structure.
7760         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7761         allocation.
7762
7763 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7764
7765         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7766         (arm_linux_vfpregset): New static regset structures.
7767         (arm_linux_regset_from_core_section): Remove dynamic allocation of
7768         regset structures.
7769         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7770         and 'vfpregset' fields.
7771
7772 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7773
7774         * aarch64-linux-tdep.c (aarch64_linux_gregset)
7775         (aarch64_linux_fpregset): New static regset structures.
7776         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7777         of regset structures.
7778         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7779         'fpregset' fields.
7780
7781 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7782
7783         * regset.h (struct regset): Remove gdbarch field.
7784         * regset.c (regset_alloc): Drop initialization of gdbarch field.
7785         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7786         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7787         Likewise.
7788         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7789         (ppc32_linux_fpregset, ppc32_linux_vrregset)
7790         (ppc32_linux_vsxregset): Likewise.
7791         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7792         via the regcache instead of the regset.
7793         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7794         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7795         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7796         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7797         Likewise.
7798
7799 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7800
7801         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7802         Constify structures.
7803         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7804         (alphanbsd_aout_gregset): Likewise.
7805         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7806         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7807         Likewise.
7808         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7809         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7810         Likewise.
7811         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7812         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7813         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7814         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7815         * m88k-tdep.c (m88k_gregset): Likewise.
7816         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7817         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7818         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7819         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7820         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7821         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7822         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7823         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7824         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7825         Likewise.
7826         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7827         * sh-tdep.h (sh_corefile_gregset): Likewise.
7828         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7829         * vax-tdep.c (vax_gregset): Likewise.
7830
7831 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
7832
7833         Fix TLS access for -static -pthread.
7834         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7835         (try_thread_db_load_1): Initialize it.
7836         (thread_db_get_thread_local_address): Call it if LM is zero.
7837         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7838         * target.h (struct target_ops) (to_get_thread_local_address): Add
7839         load_module_addr comment.
7840
7841 2014-05-21  Pedro Alves  <palves@redhat.com>
7842
7843         * dcache.c (dcache_read_memory_partial): If reading the cache line
7844         fails, fallback to reading just the memory the caller wanted.
7845
7846 2014-05-20  Doug Evans  <dje@google.com>
7847
7848         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7849         instead of get_current_arch.
7850
7851 2014-05-20  Pedro Alves  <palves@redhat.com>
7852
7853         * NEWS: Mention that compare-sections now works with all targets.
7854
7855         * remote.c (PACKET_qCRC): New enum value.
7856         (remote_verify_memory): Don't send qCRC if the target has no
7857         execution.  Use packet_support/packet_ok.  If the target doesn't
7858         support the qCRC packet, fallback to a deep memory copy.
7859         (compare_sections_command): Say "target image" instead of "remote
7860         executable".
7861         (_initialize_remote): Add PACKET_qCRC to the list of config
7862         packets that have no associated command.  Extend comment.
7863         * target.c (simple_verify_memory, default_verify_memory): New
7864         function.
7865         * target.h (struct target_ops) <to_verify_memory>: Default to
7866         default_verify_memory.
7867         (simple_verify_memory): New declaration.
7868         * target-delegates.c: Regenerate.
7869
7870 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
7871
7872         * record-btrace.c (record_btrace_step_thread): Check for empty history.
7873
7874 2014-05-20  Hui Zhu  <hui@codesourcery.com>
7875             Yao Qi  <yao@codesourcery.com>
7876
7877         PR backtrace/16558
7878         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7879         and change address of sp and pc.
7880
7881 2014-05-19  Tom Tromey  <tromey@redhat.com>
7882
7883         * gdbtypes.c (rank_function): Use XNEWVEC.
7884         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7885
7886 2014-05-19  Doug Evans  <dje@google.com>
7887
7888         * dwarf2read.c (build_type_psymtabs_1): Renamed from
7889         build_type_unit_groups and moved closer to only caller.  Remove
7890         arguments.  All references updated.  Remove outdated .gdb_index
7891         comment.
7892         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7893         build_type_psymtabs_1.
7894
7895 2014-05-19  Doug Evans  <dje@google.com>
7896
7897         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7898         n_type_unit_groups, all_type_unit_groups.  All uses removed.
7899         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7900         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
7901         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
7902         (add_type_unit_group_to_table): Delete.
7903
7904 2014-05-19  Doug Evans  <dje@google.com>
7905
7906         * eval.c (evaluate_subexp_standard): Add some comments.
7907
7908 2014-05-17  Doug Evans  <xdje42@gmail.com>
7909
7910         * progspace.c (remove_program_space): Delete, unused.
7911         * progspace.h (remove_program_space): Ditto.
7912
7913 2014-05-17  Doug Evans  <xdje42@gmail.com>
7914
7915         * inferior.c (prune_inferiors): Fix comment.
7916         (remove_inferior_command): Call prune_program_spaces.
7917
7918 2014-05-16  Doug Evans  <dje@google.com>
7919
7920         New command line option -D.
7921         * NEWS: Mention it.
7922         * main.c (set_gdb_data_directory): New function.
7923         (captured_main): Recognize -D.  Flag error for --data-directory "".
7924         Call set_gdb_data_directory.
7925         (print_gdb_help): Print --data-directory, -D.
7926         * main.h (set_gdb_data_directory): Declare.
7927         * top.c (staged_gdb_datadir): New static global.
7928         (set_gdb_datadir): Call set_gdb_data_directory
7929         (show_gdb_datadir): New function.
7930         (init_main): Update init of data-directory parameter.
7931
7932 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
7933
7934         Import the "dirfd" gnulib module.
7935         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7936         * gnulib/aclocal.m4: Update.
7937         * gnulib/config.in: Update.
7938         * gnulib/configure: Update.
7939         * gnulib/import/Makefile.am: Update.
7940         * gnulib/import/Makefile.in: Update.
7941         * gnulib/import/dirfd.c: New.
7942         * gnulib/import/m4/dirfd.m4: New.
7943         * gnulib/import/m4/gnulib-cache.m4: Update.
7944         * gnulib/import/m4/gnulib-comp.m4: Update.
7945
7946 2014-05-16  Pierre Muller  <muller@sourceware.org>
7947             Yao Qi  <yao@codesourcery.com>
7948
7949         * valprint.c (print_wchar): Move the code on checking whether
7950         W is a printable wide char to the default branch of switch
7951         statement below.  Call wchar_printable instead of gdb_iswprint.
7952
7953 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
7954
7955         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7956         ldr.w and ldrd instructions.
7957
7958 2014-05-15  Doug Evans  <dje@google.com>
7959
7960         * dwarf2read.c (read_structure_type): Delete outdated comments.
7961
7962 2014-05-14  Tom Tromey  <tromey@redhat.com>
7963
7964         * macrocmd.c (print_macro_definition): Reindent.
7965
7966 2014-05-13  Doug Evans  <xdje42@gmail.com>
7967
7968         * python/py-cmd.c (cmdpy_completer): Add comment.
7969         (completers): Make const.
7970
7971 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
7972
7973         * infrun.c (resume): Remove should_resume (unused).  Move up
7974         declaration of resume_ptid.
7975
7976 2014-05-13  Tom Tromey  <tromey@redhat.com>
7977
7978         * language.h (unop_type_check): Remove.
7979         (binop_type_check): Don't declare.
7980
7981 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
7982
7983         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7984         call to regcache_raw_collect.
7985
7986 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
7987
7988         * mi/mi-console.c (mi_console_raw_packet): Use the value from
7989         mi_console->quote as the quoting character.
7990
7991 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
7992
7993         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
7994
7995 2014-04-29  Tom Tromey  <tromey@redhat.com>
7996
7997         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
7998         "show debug varobj".
7999
8000 2014-05-07  Kyle McMartin  <kyle@redhat.com>
8001
8002         Pushed by Joel Brobecker  <brobecker@adacore.com>.
8003         * aarch64-tdep.c (aarch64_software_single_step): New function.
8004         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8005         with aarch64_software_single_step.
8006
8007 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
8008
8009         GDB 7.7.1 released.
8010
8011 2014-05-05  Keith Seitz  <keiths@redhat.com>
8012
8013         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8014         variable or history value is successfully parsed.
8015
8016 2014-05-05  Yao Qi  <yao@codesourcery.com>
8017             Pedro Alves  <palves@redhat.com>
8018
8019         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8020         address of blocks that intersects the requested range.  Trim
8021         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8022         sections.
8023         * ctf.c (ctf_xfer_partial): Likewise.
8024
8025 2014-05-05  Yao Qi  <yao@codesourcery.com>
8026
8027         * printcmd.c (display_command): Remove the check to
8028         target_has_execution.
8029
8030 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
8031
8032         * ppcobsd-nat.c: Include "obsd-nat.h".
8033         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8034         add_target.
8035         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8036
8037 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
8038
8039         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8040         and 16-bit signed and unsigned arguments.  Update comment.
8041         (stap_parse_probe_arguments): Extend code to handle such
8042         arguments.  Use warning instead of complaint to notify about
8043         unrecognized bitness.
8044
8045 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
8046
8047         PR breakpoints/16889
8048         * stap-probe.c (stap_parse_probe_arguments): Simplify
8049         check for non-prefixed probes (i.e., probes whose
8050         arguments do not start with "N@").  Always set the
8051         argument type to a sane value.
8052
8053 2014-05-01  David Taylor  <dtaylor@emc.com>
8054
8055         * remote.c (compare_sections_command): Add -r option to compare
8056         all loadable read-only sections.
8057
8058 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
8059
8060         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8061         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8062         Update all callers.
8063         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8064         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8065         Remove unused CORE_ADDR argument.  Update all callers.
8066
8067 2014-04-29  Pedro Alves  <palves@redhat.com>
8068
8069         * remote.c (struct packet_config) <detect>: Extend comment.
8070         (add_packet_config_cmd): Don't set the config's detect or support
8071         fields here.
8072         (init_all_packet_configs): Also initialize the config's 'detect'
8073         field.
8074         (reset_all_packet_configs_support): New function.
8075         (remote_open_1): Call reset_all_packet_configs_support instead of
8076         init_all_packet_configs.
8077         (_initialize_remote): Initialize all packet configs.  Assert that
8078         all packets have an associated command, except a few known
8079         outliers.
8080
8081 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8082
8083         * dwarf2read.c (read_subrange_type): Handle dynamic
8084         DW_AT_lower_bound attributes.
8085
8086 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8087
8088         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8089         dynamic bounds before computing its upper bound.
8090         (ada_discrete_type_low_bound): Same as above with the lower bound.
8091
8092 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8093
8094         * dwarf2read.c (is_dynamic_type): Return true for dynamic
8095         range types.  Adjust the array handling implementation to
8096         take advantage of this change.
8097         (resolve_dynamic_range): New function, mostly extracted from
8098         resolve_dynamic_bounds.
8099         (resolve_dynamic_array): New function, mostly extracted from
8100         resolve_dynamic_bounds.
8101         (resolve_dynamic_bounds): Delete.
8102         (resolve_dynamic_type): Reimplement.  Add handling of
8103         TYPE_CODE_RANGE types.
8104
8105 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8106
8107         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8108         handling of parallel ___XA types.
8109
8110 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8111
8112         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8113         unnecessary second call to static_unwrap_type.
8114
8115 2014-04-27  Hui Zhu  <hui@codesourcery.com>
8116
8117         * stack.c (print_frame_info): Call do_gdb_disassembly with
8118         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8119
8120 2014-04-26  Doug Evans  <xdje42@gmail.com>
8121
8122         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8123
8124 2014-04-25  Pedro Alves  <palves@redhat.com>
8125
8126         PR server/16255
8127         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8128         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
8129         and newline from built string.
8130         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8131         (linux_ptrace_attach_fail_reason): ... this.
8132         * linux-nat.c (linux_nat_attach): Adjust to use
8133         linux_ptrace_attach_fail_reason.
8134
8135 2014-04-25  Pedro Alves  <palves@redhat.com>
8136
8137         * remote.c (struct remote_state): Remove multi_process_aware,
8138         non_stop_aware, cond_tracepoints, cond_breakpoints,
8139         breakpoint_commands, fast_tracepoints, static_tracepoints,
8140         install_in_trace, disconnected_tracing,
8141         enable_disable_tracepoints, string_tracing, and
8142         augmented_libraries_svr4_read fields.
8143         (remote_multi_process_p): Move further below in the file.
8144         (struct packet_config): Add comments.
8145         (update_packet_config): Delete function.
8146         (show_packet_config_cmd): Use packet_config_support.
8147         (add_packet_config_cmd): Use NULL as set callback.
8148         (packet_ok): "set remote foo-packet"-style commands no longer
8149         change config->supported -- adjust.
8150         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8151         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8152         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8153         (PACKET_QNonStop, PACKET_multiprocess_feature)
8154         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8155         (PACKET_DisconnectedTracing_feature)
8156         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8157         (set_remote_protocol_packet_cmd): Delete function.
8158         (packet_config_support, packet_support): New functions.
8159         (set_remote_protocol_Z_packet_cmd): Don't call
8160         update_packet_config.
8161         (remote_query_attached, remote_pass_signals)
8162         (remote_program_signals, remote_threads_info)
8163         (remote_threads_extra_info, remote_start_remote): Use
8164         packet_support.
8165         (remote_start_remote): Use packet_config_support and
8166         packet_support.
8167         (init_all_packet_configs): Set all packets to unknown support,
8168         instead of calling update_packet_config.
8169         (remote_check_symbols): Use packet_support.
8170         (remote_supported_packet): Unconditionally set the packet config's
8171         support status.
8172         (remote_multi_process_feature, remote_non_stop_feature)
8173         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8174         (remote_breakpoint_commands_feature)
8175         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8176         (remote_install_in_trace_feature)
8177         (remote_disconnected_tracing_feature)
8178         (remote_enable_disable_tracepoint_feature)
8179         (remote_string_tracing_feature)
8180         (remote_augmented_libraries_svr4_read_feature): Delete functions.
8181         (remote_protocol_features): Adjust to use remote_supported_packet
8182         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8183         "ConditionalTracepoints", "ConditionalBreakpoints",
8184         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8185         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8186         "EnableDisableTracepoints", and "tracenz".
8187         (remote_query_supported): Use packet_support.
8188         (remote_open_1): Adjust.
8189         (extended_remote_attach_1): Use packet_support.  Switch on the
8190         result of packet_ok instead of checking whether the packet ended
8191         up disabled.
8192         (remote_vcont_resume): Use packet_support.
8193         (remote_resume, remote_stop_ns, fetch_register_using_p)
8194         (remote_prepare_to_store, store_register_using_P)
8195         (check_binary_download, remote_write_bytes): Use packet_support.
8196         (remote_vkill): Use packet_support.  Switch on the result of
8197         packet_ok instead of checking whether the packet ended up
8198         disabled.
8199         (extended_remote_supports_disable_randomization): Use
8200         packet_support.
8201         (extended_remote_run): Switch on the result of packet_ok instead
8202         of checking whether the packet ended up disabled.
8203         (remote_insert_breakpoint, remote_remove_breakpoint)
8204         (remote_insert_watchpoint, remote_remove_watchpoint)
8205         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8206         packet_support.
8207         (remote_search_memory): Use packet_config_support.
8208         (remote_get_thread_local_address, remote_get_tib_address)
8209         (remote_hostio_send_command, remote_can_execute_reverse): Use
8210         packet_support.
8211         (remote_supports_cond_tracepoints)
8212         (remote_supports_cond_breakpoints)
8213         (remote_supports_fast_tracepoints)
8214         (remote_supports_static_tracepoints)
8215         (remote_supports_install_in_trace)
8216         (remote_supports_enable_disable_tracepoint)
8217         (remote_supports_string_tracing)
8218         (remote_can_run_breakpoint_commands): Rewrite, checking whether
8219         the packet config says the feature is enabled or disabled.
8220         (remote_download_tracepoint, remote_trace_set_readonly_regions)
8221         (remote_get_trace_status): Use packet_support.
8222         (remote_set_disconnected_tracing): Adjust to check whether the
8223         feature is enabled with packet_support.
8224         (remote_set_trace_buffer_size, remote_use_agent)
8225         (remote_can_use_agent, remote_supports_btrace): Use
8226         packet_support.
8227         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8228         Use packet_config_support.
8229         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8230         the packet config says the feature is enabled or disabled.
8231         (set_range_stepping): Use packet_support.
8232
8233 2014-04-25  Tom Tromey  <tromey@redhat.com>
8234
8235         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8236         argument.
8237
8238 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
8239
8240         * NEWS: Mention support for C99 variable length arrays.
8241
8242 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
8243
8244         * ada-lang.c (standard_exc): Expand introductory comment.
8245
8246 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
8247             Walfred Tedeschi  <walfred.tedeschi@intel.com>
8248
8249         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8250         AVX512 registers.
8251         (amd64_linux_read_description): Add code to handle AVX512 xstate
8252         mask and return respective tdesc.
8253         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8254         and features/i386/x32-avx512-linux.c.
8255         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8256         (amd64_linux_core_read_description): Add code to handle AVX512
8257         xstate mask and return respective tdesc.
8258         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8259         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8260         calculation.
8261         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8262         (tdesc_amd64_avx512_linux): New prototype.
8263         (tdesc_x32_avx512_linux): Likewise.
8264         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8265         features/i386/x32-avx512.c.
8266         (amd64_ymm_avx512_names): New register names for pseudo
8267         registers YMM16-31.
8268         (amd64_ymmh_avx512_names): New register names for raw registers
8269         YMMH16-31.
8270         (amd64_k_names): New register names for K registers.
8271         (amd64_zmmh_names): New register names for ZMM raw registers.
8272         (amd64_zmm_names): New registers names for ZMM pseudo registers.
8273         (amd64_xmm_avx512_names): New register names for XMM16-31
8274         registers.
8275         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8276         registers.
8277         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8278         if feature is present.
8279         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8280         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8281         (AMD64_NUM_REGS): Adjust to new number of registers.
8282         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8283         registers supplied via XSTATE by AVX512 registers.
8284         (i386_linux_read_description): Add case for AVX512.
8285         * i386-linux-tdep.c: Include i386-avx512-linux.c.
8286         (i386_linux_gregset_reg_offset): Add AVX512 registers.
8287         (i386_linux_core_read_description): Add case for AVX512.
8288         (i386_linux_init_abi): Install supported register note section
8289         for AVX512.
8290         (_initialize_i386_linux_tdep): Add call to tdesc init function for
8291         AVX512.
8292         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8293         registers to be number of zmm7h + 1.
8294         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8295         * i386-tdep.c: Include features/i386/i386-avx512.c.
8296         (i386_zmm_names): Add ZMM pseudo register names array.
8297         (i386_zmmh_names): Add ZMM raw register names array.
8298         (i386_k_names): Add K raw register names array.
8299         (num_lower_zmm_regs): Add constant for the number of lower ZMM
8300         registers. AVX512 has 16 more ZMM registers than there are YMM
8301         registers.
8302         (i386_zmmh_regnum_p): Add function to look up register number of
8303         ZMM raw registers.
8304         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8305         (i386_k_regnum_p): Likewise for K raw registers.
8306         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8307         registers added by AVX512.
8308         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8309         registers added by AVX512.
8310         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8311         added by AVX512.
8312         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8313         (i386_pseudo_register_name): Add ZMM pseudo registers.
8314         (i386_zmm_type): Construct and return vector registers type for ZMM
8315         registers.
8316         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8317         ZMM0-31 pseudo registers and K registers.
8318         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8319         and YMM16-31 registers from register cache.
8320         (i386_pseudo_register_write): Add code to write  K, ZMM and
8321         YMM16-31 registers.
8322         (i386_register_reggroup_p): Add code to include/exclude AVX512
8323         registers in/from respective register groups.
8324         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8325         registers if feature is present in xcr0.
8326         (i386_gdbarch_init): Add code to initialize AVX512 feature
8327         variables in tdep structure, wire in pseudo registers and call
8328         initialize_tdesc_i386_avx512.
8329         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8330         variables.
8331         (i386_regnum): Add AVX512 registers.
8332         (I386_SSE_NUM_REGS): New define for number of SSE registers.
8333         (I386_AVX_NUM_REGS): Likewise for AVX registers.
8334         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8335         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8336         512 bits wide.
8337         (i386_xmm_avx512_regnum_p): New prototype for register look up.
8338         (i386_ymm_avx512_regnum_p): Likewise.
8339         (i386_k_regnum_p): Likewise.
8340         (i386_zmm_regnum_p): Likewise.
8341         (i386_zmmh_regnum_p): Likewise.
8342         * i387-tdep.c : Update year in copyright notice.
8343         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8344         XSAVE buffer.
8345         (XSAVE_YMM_AVX512_ADDR): New macro.
8346         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8347         XSAVE buffer.
8348         (XSAVE_XMM_AVX512_ADDR): New macro.
8349         (xsave_avx512_k_offset): New table for K register offsets in
8350         XSAVE buffer.
8351         (XSAVE_AVX512_K_ADDR): New macro.
8352         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8353         in XSAVE buffer.
8354         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8355         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8356         buffer.
8357         (i387_collect_xsave): Add code to collect AVX512 registers from
8358         XSAVE buffer.
8359         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8360         of XMM16-31 registers.
8361         (I387_NUM_K_REGS): New define for number of K registers.
8362         (I387_K0_REGNUM): New define for K0 register number.
8363         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8364         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8365         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8366         registers.
8367         (I387_YMM16H_REGNUM): New define for YMM16H register number.
8368         (I387_XMM16_REGNUM): New define for XMM16 register number.
8369         (I387_YMM0_REGNUM): New define for YMM0 register number.
8370         (I387_KEND_REGNUM): New define for last K register number.
8371         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8372         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8373         number.
8374         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8375         number.
8376         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8377         size.
8378         * features/Makefile: Add AVX512 related files.
8379         * features/i386/32bit-avx512.xml: New file.
8380         * features/i386/64bit-avx512.xml: Likewise.
8381         * features/i386/amd64-avx512-linux.c: Likewise.
8382         * features/i386/amd64-avx512-linux.xml: Likewise.
8383         * features/i386/amd64-avx512.c: Likewise.
8384         * features/i386/amd64-avx512.xml: Likewise.
8385         * features/i386/i386-avx512-linux.c: Likewise.
8386         * features/i386/i386-avx512-linux.xml: Likewise.
8387         * features/i386/i386-avx512.c: Likewise.
8388         * features/i386/i386-avx512.xml: Likewise.
8389         * features/i386/x32-avx512-linux.c: Likewise.
8390         * features/i386/x32-avx512-linux.xml: Likewise.
8391         * features/i386/x32-avx512.c: Likewise.
8392         * features/i386/x32-avx512.xml: Likewise.
8393         * regformats/i386/amd64-avx512-linux.dat: New file.
8394         * regformats/i386/amd64-avx512.dat: Likewise.
8395         * regformats/i386/i386-avx512-linux.dat: Likewise.
8396         * regformats/i386/i386-avx512.dat: Likewise.
8397         * regformats/i386/x32-avx512-linux.dat: Likewise.
8398         * regformats/i386/x32-avx512.dat: Likewise.
8399         * NEWS: Add note about new support for AVX512.
8400
8401
8402 2014-04-23  Pedro Alves  <palves@redhat.com>
8403
8404         * breakpoint.c (insert_bp_location): Tolerate errors if the
8405         breakpoint is set in a user-loaded objfile.
8406         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
8407         location is marked shlib_disabled.  If the breakpoint is set in a
8408         user-loaded objfile is a GDB-side memory breakpoint, validate it
8409         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
8410         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
8411         flag.
8412         * mem-break.c (memory_validate_breakpoint): New function.
8413         * objfiles.c (userloaded_objfile_contains_address_p): New
8414         function.
8415         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8416         * target.h (memory_validate_breakpoint): New declaration.
8417
8418 2014-04-23  Pedro Alves  <palves@redhat.com>
8419
8420         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8421         the breakpoint is set in a shared library, only suppress
8422         errors for software breakpoints, not hardware breakpoints.
8423
8424 2014-04-22  Pedro Alves  <palves@redhat.com>
8425
8426         * infrun.c (schedlock_applies): New function, factored out from
8427         find_thread_needs_step_over.
8428         (find_thread_needs_step_over): Use it.
8429         (switch_back_to_stepped_thread): Always clear trap_expected if the
8430         step over is finished.  Return early if scheduler locking applies.
8431         Look for the stepping thread and a potential step-over thread with
8432         a single loop.
8433         (currently_stepping_or_nexting_callback): Delete.
8434
8435 2014-04-22  Nick Clifton  <nickc@redhat.com>
8436
8437         * NEWS: Mention that ARM sim now supports tracing.
8438
8439 2014-04-22  Yao Qi  <yao@codesourcery.com>
8440
8441         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8442         to ...
8443         * tracefile.c (tracefile_fetch_registers): ... it.  New
8444         function.
8445         * tracefile.h (tracefile_fetch_registers): Declare.
8446         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
8447         tracefile_fetch_registers.
8448
8449 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
8450
8451         PR gdb/14018
8452         * windows-nat.c (thread_rec): Don't display a warning when
8453         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
8454         fails for any reason, set th->suspended to -1, so that we don't
8455         try to resume such a thread.  Also, don't return NULL in these
8456         cases, to avoid completely ruin the session due to "PC register is
8457         not available" error.
8458         (do_windows_fetch_inferior_registers): Check errors in
8459         GetThreadContext call.
8460         (windows_continue): Accept an additional argument KILLED; if not
8461         zero, ignore errors in the SetThreadContext call, since the
8462         inferior was killed and is shutting down.
8463         (windows_resume, get_windows_debug_event)
8464         (windows_create_inferior, windows_mourn_inferior)
8465         (windows_kill_inferior): All callers of windows_continue changed
8466         to adjust to its new calling sequence.
8467
8468 2014-04-19  Yao Qi  <yao@codesourcery.com>
8469
8470         * ctf.c (ctf_open): Call post_create_inferior.
8471
8472 2014-04-19  Yao Qi  <yao@codesourcery.com>
8473
8474         * ctf.c (handle_id): New static variable.
8475         (ctf_open_dir): Get handle_id from bt_context_add_trace return
8476         value.  Get the declaration of event "register" and get length
8477         of field "contents".
8478
8479 2014-04-19  Yao Qi  <yao@codesourcery.com>
8480
8481         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8482
8483 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
8484
8485         * valops.c (oload_method_static): Remove unnecessary argument
8486         METHOD.  Update all callers.
8487
8488 2014-04-18  Pedro alves  <palves@redhat.com>
8489             Tom Tromey  <tromey@redhat.com>
8490
8491         PR backtrace/15558
8492         * frame.c (get_prev_frame_1): Rename to ...
8493         (get_prev_frame_always): ... this, and make extern.  Adjust.
8494         (skip_artificial_frames): Use get_prev_frame_always.
8495         (frame_unwind_caller_id, frame_pop, get_prev_frame)
8496         (get_frame_unwind_stop_reason): Adjust to rename.
8497         * frame.h (get_prev_frame_always): Declare.
8498         * inline-frame.c: Include frame.h.
8499         (inline_frame_this_id): Use get_prev_frame_always.
8500
8501 2014-04-18  Tristan Gingold  <gingold@adacore.com>
8502
8503         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8504         code by using bfd_mach_o_get_base_address.
8505
8506 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
8507
8508         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8509         (spu_ax_pseudo_register_collect): New function.
8510         (spu_ax_pseudo_register_push_stack): Likewise.
8511         (spu_dwarf_reg_to_regnum): Likewise.
8512         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
8513
8514 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
8515
8516         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8517         Replace FRAME argument with FRAME_ID.
8518         * gdbarch.c, gdbarch.h: Regenerate.
8519         * findvar.c (default_value_from_register): Add GDBARCH argument;
8520         replace FRAME by FRAME_ID.  No longer call get_frame_id.
8521         (value_from_register): Update call to gdbarch_value_from_register.
8522         * value.h (default_value_from_register): Update prototype.
8523         * s390-linux-tdep.c (s390_value_from_register): Update interface
8524         and call to default_value_from_register.
8525         * spu-tdep.c (spu_value_from_register): Likewise.
8526
8527         * findvar.c (address_from_register): Remove TYPE argument.
8528         Do not call value_from_register; use gdbarch_value_from_register
8529         with null_frame_id instead.
8530         * value.h (address_from_register): Update prototype.
8531         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8532         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8533         address_from_register interface change.
8534
8535 2014-04-17  Yao Qi  <yao@codesourcery.com>
8536
8537         * gdbtypes.h: Update comments to link to types and macros'
8538         definitions.
8539
8540 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
8541
8542         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8543
8544 2014-04-16  Keith Seitz  <keiths@redhat.com>
8545
8546         PR gdb/15827
8547         * dwarf2read.c (skip_one_die): Check that all relative-offset
8548         sibling DIEs fall within range of the current reader's buffer.
8549         (read_partial_die): Likewise.
8550
8551 2014-04-16  Keith Seitz  <keiths@redhat.com>
8552
8553         PR c++/16597
8554         * cp-namespace.c (lookup_symbol_file): If the type name of
8555         `this' is NULL, return immediately.
8556
8557 2014-04-14  Keith Seitz  <keiths@redhat.com>
8558
8559         PR c++/16253
8560         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8561         from symbol_matches_domain in symtab.c. All local callers
8562         of symbol_matches_domain updated.
8563         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8564         search STRUCT_DOMAIN.
8565         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8566         independently.  standard_lookup will do that automatically.
8567         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8568         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8569         (cp_lookup_symbol_in_namespace): Likewise.
8570         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8571         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8572         may return a STRUCT_DOMAIN match.
8573         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8574         * cp-support.c: Include language.h.
8575         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8576         VAR_DOMAIN.
8577         * psymtab.c (match_partial_symbol): Compare the requested
8578         domain with the symbol's domain directly.
8579         (lookup_partial_symbol): Likewise.
8580         * symtab.c (lookup_symbol_in_language): Explain when/why
8581         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8582         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8583         appropriate languages.
8584         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8585         and moved to ada-lang.c
8586         (lookup_block_symbol): Explain that this function only returns
8587         symbol matching the requested DOMAIN.
8588         Compare the requested domain with the symbol's domain directly.
8589         (iterate_over_symbols): Compare the requested domain with the
8590         symbol's domain directly.
8591         * symtab.h (symbol_matches_domain): Remove.
8592
8593 2014-04-14  Tom Tromey  <tromey@redhat.com>
8594
8595         PR c++/15246:
8596         * c-exp.y (type_aggregate_p): New function.
8597         (qualified_name, classify_inner_name): Use it.
8598         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8599         and TYPE_TARGET_TYPE of an enum type.
8600         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8601         an enum type.
8602         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8603         handle TYPE_DECLARED_CLASS.
8604         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8605         types.
8606         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8607         * valops.c (enum_constant_from_type): New function.
8608         (value_aggregate_elt): Use it.
8609         * cp-namespace.c (cp_lookup_nested_symbol): Handle
8610         TYPE_CODE_ENUM.
8611
8612 2014-04-14  Tom Tromey  <tromey@redhat.com>
8613
8614         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8615         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8616         const.
8617         * value.h (value_aggregate_elt): Update.
8618
8619 2014-04-14  Tom Tromey  <tromey@redhat.com>
8620
8621         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8622
8623 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8624
8625         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8626         (evaluate_subexp_standard): Pass noside argument.
8627         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8628         if noside equals EVAL_NORMAL. If the subscript yields a vla type
8629         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8630         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8631         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8632
8633 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8634
8635         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8636         points to a constant blob.
8637
8638 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8639
8640         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8641         property and store it as the high bound and flag the range accordingly.
8642         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8643         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8644         * gdbtypes.h (enum range_flags): New enum.
8645         (struct range_bounds): Add flags member.
8646
8647 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8648
8649         * c-typeprint.c (c_type_print_varspec_suffix): Added
8650         check for not yet resolved high bound. If unresolved, print
8651         "variable length" string to the console instead of random
8652         length.
8653
8654 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8655
8656         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8657         value.
8658         (ada_template_to_fixed_record_type_1): Likewise.
8659         (ada_to_fixed_type_1): Likewise.
8660         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8661         (cp_print_value): Likewise.
8662         * d-valprint.c (dynamic_array_type): Likewise.
8663         * findvar.c (address_of_variable): Likewise.
8664         * jv-valprint.c (java_value_print): Likewise.
8665         * valops.c (value_ind): Likewise.
8666         * value.c (coerce_ref): Likewise.
8667
8668 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8669
8670         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8671         value and retrieve the dynamic type size.
8672
8673 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8674
8675         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8676         passed to sizeof is dynamic evaluate the argument to compute the length.
8677
8678 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8679             Joel Brobecker  <brobecker@adacore.com>
8680
8681         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8682         (dwarf2_evaluate_property): New function.
8683         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8684         * dwarf2read.c (attr_to_dynamic_prop): New function.
8685         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8686         attribute.
8687         * gdbtypes.c: Include dwarf2loc.h.
8688         (is_dynamic_type): New function.
8689         (resolve_dynamic_type): New function.
8690         (resolve_dynamic_bounds): New function.
8691         (get_type_length): New function.
8692         (check_typedef): Use get_type_length to compute type length.
8693         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8694         (TYPE_LOW_BOUND_KIND): New macro.
8695         (is_dynamic_type): New function prototype.
8696         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8697         to resolve dynamic properties of the type. Update comment.
8698         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8699
8700 2014-04-14  Richard Henderson  <rth@redhat.com>
8701
8702         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8703
8704 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
8705             Doug Evans  <xdje42@gmail.com>
8706
8707         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8708         dereference TYPE_CODE_REF values.
8709
8710 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
8711
8712         Revert the following changes due to regressions:
8713
8714         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8715         (dwarf2_evaluate_property): New function.
8716         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8717         * dwarf2read.c (attr_to_dynamic_prop): New function.
8718         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8719         attribute.
8720         * gdbtypes.c: Include dwarf2loc.h.
8721         (is_dynamic_type): New function.
8722         (resolve_dynamic_type): New function.
8723         (resolve_dynamic_bounds): New function.
8724         (get_type_length): New function.
8725         (check_typedef): Use get_type_length to compute type length.
8726         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8727         (TYPE_LOW_BOUND_KIND): New macro.
8728         (is_dynamic_type): New function prototype.
8729         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8730         to resolve dynamic properties of the type. Update comment.
8731         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8732
8733         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8734         passed to sizeof is dynamic evaluate the argument to compute the length.
8735
8736         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8737         value and retrieve the dynamic type size.
8738
8739         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8740         (ada_template_to_fixed_record_type_1): Likewise.
8741         (ada_to_fixed_type_1): Likewise.
8742         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8743         (cp_print_value): Likewise.
8744         * d-valprint.c (dynamic_array_type): Likewise.
8745         * eval.c (evaluate_subexp_with_coercion): Likewise.
8746         * findvar.c (address_of_variable): Likewise.
8747         * jv-valprint.c (java_value_print): Likewise.
8748         * valops.c (value_ind): Likewise.
8749         * value.c (coerce_ref): Likewise.
8750
8751         * c-typeprint.c (c_type_print_varspec_suffix): Added
8752         check for not yet resolved high bound. If unresolved, print
8753         "variable length" string to the console instead of random
8754         length.
8755
8756         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8757         property and store it as the high bound and flag the range accordingly.
8758         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8759         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8760         * gdbtypes.h (enum range_flags): New enum.
8761         (struct range_bounds): Add flags member.
8762
8763         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8764         points to a constant blob.
8765
8766         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8767         (evaluate_subexp_standard): Pass noside argument.
8768         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8769         if noside equals EVAL_NORMAL. If the subscript yields a vla type
8770         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8771         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8772         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8773
8774 2014-04-11  Keith Seitz  <keiths@redhat.com>
8775
8776         PR c++/16675
8777         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8778         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8779         reference types.
8780
8781 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8782
8783         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8784         (evaluate_subexp_standard): Pass noside argument.
8785         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8786         if noside equals EVAL_NORMAL. If the subscript yields a vla type
8787         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8788         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8789         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8790
8791 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8792
8793         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8794         points to a constant blob.
8795
8796 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8797
8798         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8799         property and store it as the high bound and flag the range accordingly.
8800         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8801         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8802         * gdbtypes.h (enum range_flags): New enum.
8803         (struct range_bounds): Add flags member.
8804
8805 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8806
8807         * c-typeprint.c (c_type_print_varspec_suffix): Added
8808         check for not yet resolved high bound. If unresolved, print
8809         "variable length" string to the console instead of random
8810         length.
8811
8812 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8813
8814         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8815         (ada_template_to_fixed_record_type_1): Likewise.
8816         (ada_to_fixed_type_1): Likewise.
8817         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8818         (cp_print_value): Likewise.
8819         * d-valprint.c (dynamic_array_type): Likewise.
8820         * eval.c (evaluate_subexp_with_coercion): Likewise.
8821         * findvar.c (address_of_variable): Likewise.
8822         * jv-valprint.c (java_value_print): Likewise.
8823         * valops.c (value_ind): Likewise.
8824         * value.c (coerce_ref): Likewise.
8825
8826 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8827
8828         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8829         value and retrieve the dynamic type size.
8830
8831 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8832
8833         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8834         passed to sizeof is dynamic evaluate the argument to compute the length.
8835
8836 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8837
8838         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8839         (dwarf2_evaluate_property): New function.
8840         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8841         * dwarf2read.c (attr_to_dynamic_prop): New function.
8842         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8843         attribute.
8844         * gdbtypes.c: Include dwarf2loc.h.
8845         (is_dynamic_type): New function.
8846         (resolve_dynamic_type): New function.
8847         (resolve_dynamic_bounds): New function.
8848         (get_type_length): New function.
8849         (check_typedef): Use get_type_length to compute type length.
8850         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8851         (TYPE_LOW_BOUND_KIND): New macro.
8852         (is_dynamic_type): New function prototype.
8853         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8854         to resolve dynamic properties of the type. Update comment.
8855         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8856
8857 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8858
8859         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8860         declaring high/low bounds and change uses accordingly. Call
8861         create_range_type instead of create_static_range_type.
8862         * gdbtypes.c (create_range_type): New function.
8863         (create_range_type): Convert bounds into struct bound_prop and pass
8864         them to create_range_type.
8865         * gdbtypes.h (struct bound_prop): New struct.
8866         (create_range_type): New function prototype.
8867         (struct range_bounds): Use struct bound_prop instead of LONGEST for
8868         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8869         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8870         part of the bound.
8871         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8872
8873 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8874
8875         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8876         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8877         * ada-lang.c: All uses of create_range_type updated.
8878         * coffread.c: All uses of create_range_type updated.
8879         * dwarf2read.c: All uses of create_range_type updated.
8880         * f-exp.y: All uses of create_range_type updated.
8881         * m2-valprint.c: All uses of create_range_type updated.
8882         * mdebugread.c: All uses of create_range_type updated.
8883         * stabsread.c: All uses of create_range_type updated.
8884         * valops.c: All uses of create_range_type updated.
8885         * valprint.c: All uses of create_range_type updated.
8886
8887 2014-04-10  Pedro Alves  <palves@redhat.com>
8888
8889         * breakpoint.c (single_step_breakpoints)
8890         (single_step_gdbarch): Move up in the file.
8891         (one_breakpoint_xfer_memory): New function, factored out from ...
8892         (breakpoint_xfer_memory): ... here.  Also process single-step
8893         breakpoints.
8894
8895 2014-04-09  Tristan Gingold  <gingold@adacore.com>
8896
8897         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8898         comments.
8899         (darwin_decode_exception_message): Free port only after use.
8900
8901 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
8902
8903         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8904         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8905         when setting the size of call_length.
8906
8907 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
8908
8909         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8910         dereference TYPE_CODE_REF values.
8911
8912 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
8913
8914         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8915         end of warning message.
8916
8917 2014-04-03  Doug Evans  <dje@google.com>
8918
8919         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8920         of stub_comp_unit_die, stub_comp_dir is non-NULL.
8921
8922 2014-04-02  Alan Modra  <amodra@gmail.com>
8923
8924         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8925         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
8926         (struct symbol_file_add_from_memory_args): Add size field.
8927         (find_vdso_size): New function.
8928         (add_vsyscall_page): Attempt to find vdso size.
8929
8930 2014-04-01  Doug Evans  <dje@google.com>
8931
8932         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8933
8934 2014-04-01  Tristan Gingold  <gingold@adacore.com>
8935
8936         * darwin-nat.c (darwin_encode_reply): Add prototype.
8937         (darwin_decode_exception_message): Reply to unknown inferiors.
8938         (darwin_decode_message): Handle message by id.  Ignore message
8939         to unknown inferior.
8940         (darwin_wait): Discard unknown messages, add debug trace.
8941
8942 2014-03-31  Doug Evans  <dje@google.com>
8943
8944         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8945         comp_dir_string.
8946
8947 2014-03-31  Doug Evans  <dje@google.com>
8948
8949         New option "set print symbol-loading".
8950         * NEWS: Mention it.
8951         * solib.c (solib_read_symbols): Only print symbol loading messages
8952         if requested.
8953         (solib_add): If symbol loading is in "brief" mode, notify user
8954         symbols are being loaded.
8955         (reload_shared_libraries_1): Ditto.
8956         * symfile.c (print_symbol_loading_off): New static global.
8957         (print_symbol_loading_brief): New static global.
8958         (print_symbol_loading_full): New static global.
8959         (print_symbol_loading_enums): New static global.
8960         (print_symbol_loading): New static global.
8961         (print_symbol_loading_p): New function.
8962         (symbol_file_add_with_addrs): Only print symbol loading messages
8963         if requested.
8964         (_initialize_symfile): Register "print symbol-loading" set/show
8965         command.
8966         * symfile.h (print_symbol_loading_p): Declare.
8967
8968 2014-03-30  Doug Evans  <xdje42@gmail.com>
8969
8970         * infrun.c (set_last_target_status): New function.
8971         (handle_inferior_event): Call it.
8972
8973 2014-03-30  Doug Evans  <xdje42@gmail.com>
8974
8975         * inferior.h (enum stop_kind): Improve comment.
8976
8977 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
8978
8979         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8980         a reference, strip the reference layer before calling
8981         the lang_ops value_has_mutated callback.
8982
8983 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
8984
8985         Remove some globals from our parser.
8986         * language.c (unk_lang_parser): Add "struct parser_state"
8987         argument.
8988         * language.h (struct language_defn) <la_parser>: Likewise.
8989         * parse.c (expout, expout_size, expout_ptr): Remove variables.
8990         (initialize_expout): Add "struct parser_state" argument.
8991         Rewrite function to use the parser state.
8992         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
8993         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
8994         write_exp_elt_longcst, write_exp_elt_dblcst,
8995         write_exp_elt_decfloatcst, write_exp_elt_type,
8996         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
8997         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
8998         write_dollar_variable): Likewise.
8999         (parse_exp_in_context_1): Use parser state.
9000         (insert_type_address_space): Add "struct parser_state" argument.
9001         Use parser state.
9002         (increase_expout_size): New function.
9003         * parser-defs.h: Forward declare "struct language_defn" and
9004         "struct parser_state".
9005         (expout, expout_size, expout_ptr): Remove extern declarations.
9006         (parse_gdbarch, parse_language): Rewrite macro declarations to
9007         accept the parser state.
9008         (struct parser_state): New struct.
9009         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9010         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9011         write_exp_elt_decfloatcst, write_exp_elt_type,
9012         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9013         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9014         write_exp_msymbol, write_dollar_variable,
9015         mark_struct_expression, insert_type_address_space): Add "struct
9016         parser_state" argument.
9017         (increase_expout_size): New function.
9018         * utils.c (do_clear_parser_state): New function.
9019         (make_cleanup_clear_parser_state): Likewise.
9020         * utils.h (make_cleanup_clear_parser_state): New function
9021         prototype.
9022         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9023         Update calls to write_exp* in order to pass the parser state.
9024         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9025         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9026         (i386_stap_parse_special_token_three_arg_disp): Likewise.
9027         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9028         * stap-probe.c (stap_parse_register_operand): Likewise.
9029         (stap_parse_single_operand): Likewise.
9030         (stap_parse_argument_1): Likewise.
9031         (stap_parse_argument): Use parser state.
9032         * stap-probe.h: Include "parser-defs.h".
9033         (struct stap_parse_info) <pstate>: New field.
9034         * c-exp.y (parse_type): Rewrite to use parser state.
9035         (yyparse): Redefine to c_parse_internal.
9036         (pstate): New global variable.
9037         (parse_number): Add "struct parser_state" argument.
9038         (write_destructor_name): Likewise.
9039         (type_exp): Update calls to write_exp* and similars in order to
9040         use parser state.
9041         (exp1, exp, variable, qualified_name, space_identifier,
9042         typename, typebase): Likewise.
9043         (write_destructor_name, parse_number, lex_one_token,
9044         classify_name, classify_inner_name, c_parse): Add "struct
9045         parser_state" argument.  Update function to use parser state.
9046         * c-lang.h: Forward declare "struct parser_state".
9047         (c_parse): Add "struct parser_state" argument.
9048         * ada-exp.y (parse_type): Rewrite macro to use parser state.
9049         (yyparse): Redefine macro to ada_parse_internal.
9050         (pstate): New variable.
9051         (write_int, write_object_renaming, write_var_or_type,
9052         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9053         type_int, type_long, type_long_long, type_float, type_double,
9054         type_long_double, type_char, type_boolean, type_system_address):
9055         Add "struct parser_state" argument.
9056         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9057         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9058         var_or_type, aggregate, aggregate_component_list,
9059         positional_list, others, component_group,
9060         component_associations): Update calls to write_exp* and similar
9061         functions in order to use parser state.
9062         (ada_parse, write_var_from_sym, write_int,
9063         write_exp_op_with_string, write_object_renaming,
9064         find_primitive_type, write_selectors, write_ambiguous_var,
9065         write_var_or_type, write_name_assoc, type_int, type_long,
9066         type_long_long, type_float, type_double, type_long_double,
9067         type_char, type_boolean, type_system_address): Add "struct
9068         parser_state" argument.  Adjust function to use parser state.
9069         * ada-lang.c (parse): Likewise.
9070         * ada-lang.h: Forward declare "struct parser_state".
9071         (ada_parse): Add "struct parser_state" argument.
9072         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
9073         calls to both functions.
9074         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9075         parser state.
9076         (yyparse): Redefine macro to f_parse_internal.
9077         (pstate): New variable.
9078         (parse_number): Add "struct parser_state" argument.
9079         (type_exp, exp, subrange, typebase): Update calls to write_exp*
9080         and similars in order to use parser state.
9081         (parse_number): Adjust code to use parser state.
9082         (yylex): Likewise.
9083         (f_parse): New function.
9084         * f-lang.h: Forward declare "struct parser_state".
9085         (f_parse): Add "struct parser_state" argument.
9086         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9087         parser state.
9088         (yyparse): Redefine macro for java_parse_internal.
9089         (pstate): New variable.
9090         (push_expression_name, push_expression_name, insert_exp): Add
9091         "struct parser_state" argument.
9092         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9093         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9094         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9095         PostIncrementExpression, PostDecrementExpression,
9096         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9097         UnaryExpressionNotPlusMinus, CastExpression,
9098         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9099         RelationalExpression, EqualityExpression, AndExpression,
9100         ExclusiveOrExpression, InclusiveOrExpression,
9101         ConditionalAndExpression, ConditionalOrExpression,
9102         ConditionalExpression, Assignment, LeftHandSide): Update
9103         calls to write_exp* and similars in order to use parser state.
9104         (parse_number): Ajust code to use parser state.
9105         (yylex): Likewise.
9106         (java_parse): New function.
9107         (push_variable): Add "struct parser_state" argument.  Adjust
9108         code to user parser state.
9109         (push_fieldnames, push_qualified_expression_name,
9110         push_expression_name, insert_exp): Likewise.
9111         * jv-lang.h: Forward declare "struct parser_state".
9112         (java_parse): Add "struct parser_state" argument.
9113         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9114         parser state.
9115         (yyparse): Redefine macro to m2_parse_internal.
9116         (pstate): New variable.
9117         (type_exp, exp, fblock, variable, type): Update calls to
9118         write_exp* and similars to use parser state.
9119         (yylex): Likewise.
9120         (m2_parse): New function.
9121         * m2-lang.h: Forward declare "struct parser_state".
9122         (m2_parse): Add "struct parser_state" argument.
9123         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9124         * objc-lang.h: Forward declare "struct parser_state".
9125         (end_msglist): Add "struct parser_state" argument.
9126         * p-exp.y (parse_type): Rewrite macro to use parser state.
9127         (yyparse): Redefine macro to pascal_parse_internal.
9128         (pstate): New variable.
9129         (parse_number): Add "struct parser_state" argument.
9130         (type_exp, exp1, exp, qualified_name, variable): Update calls to
9131         write_exp* and similars in order to use parser state.
9132         (parse_number, yylex): Adjust code to use parser state.
9133         (pascal_parse): New function.
9134         * p-lang.h: Forward declare "struct parser_state".
9135         (pascal_parse): Add "struct parser_state" argument.
9136         * go-exp.y (parse_type): Rewrite macro to use parser state.
9137         (yyparse): Redefine macro to go_parse_internal.
9138         (pstate): New variable.
9139         (parse_number): Add "struct parser_state" argument.
9140         (type_exp, exp1, exp, variable, type): Update calls to
9141         write_exp* and similars in order to use parser state.
9142         (parse_number, lex_one_token, classify_name, yylex): Adjust code
9143         to use parser state.
9144         (go_parse): Likewise.
9145         * go-lang.h: Forward declare "struct parser_state".
9146         (go_parse): Add "struct parser_state" argument.
9147
9148 2014-03-27  Doug Evans  <dje@google.com>
9149
9150         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
9151
9152 2014-03-27  Doug Evans  <dje@google.com>
9153
9154         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9155         Remove argument abbrev_section.  All callers updated.
9156
9157 2014-03-27  Doug Evans  <dje@google.com>
9158
9159         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9160         addr_base, ranges_base.
9161
9162 2014-03-26  Keith Seitz  <keiths@redhat.com>
9163
9164         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9165         types, not VAR_DOMAIN.
9166
9167 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
9168
9169         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9170         "ra" registers.
9171         * features/nios2-linux.c: Regenerated.
9172         * features/nios2.c: Regenerated.
9173
9174 2014-03-25  Pedro Alves  <palves@redhat.com>
9175
9176         * cli/cli-script.c (script_from_file): Force the interpreter to
9177         sync mode.
9178
9179 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
9180
9181         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9182         small stack allocation.
9183
9184 2014-03-24  Tristan Gingold  <gingold@adacore.com>
9185
9186         * darwin-nat.c (exc_server): Remove unused prototype.
9187         (darwin_dump_message): Correctly display data on x86_64.
9188         (darwin_encode_reply): Fix style.
9189         Add comments and fix indentation.
9190
9191 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
9192
9193         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9194
9195 2014-03-22  Doug Evans  <xdje42@gmail.com>
9196
9197         * infcmd.c: Whitespace fixes.
9198         (interrupt_command): Merge two function comments into one.
9199
9200 2014-03-22  Doug Evans  <xdje42@gmail.com>
9201
9202         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9203         All uses updated.
9204
9205 2014-03-22  Yao Qi  <yao@codesourcery.com>
9206
9207         * remote.c (target_read_live_memory): Remove.
9208         (memory_xfer_live_readonly_partial): Rename it to
9209         remote_xfer_live_readonly_partial.  Remove argument 'object'.
9210         All callers updated.  Call remote_read_bytes_1
9211         instead of target_read_live_memory.
9212         * tracepoint.c (set_traceframe_number): Remove.
9213         (make_cleanup_restore_traceframe_number): Likewise .
9214         * tracepoint.h (set_traceframe_number): Remove declaration.
9215         (make_cleanup_restore_traceframe_number): Likewise.
9216
9217 2014-03-22  Yao Qi  <yao@codesourcery.com>
9218
9219         * remote.c (remote_read_bytes): Move code on reading from the
9220         remote stub to ...
9221         (remote_read_bytes_1): ... here.  New function.
9222
9223 2014-03-22  Yao Qi  <yao@codesourcery.com>
9224
9225         * ctf.c (ctf_xfer_partial): Check the return value of
9226         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9227         return TARGET_XFER_UNAVAILABLE.
9228         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9229         * target.c (target_read_live_memory): Move it to remote.c.
9230         (memory_xfer_live_readonly_partial): Likewise.
9231         (memory_xfer_partial_1): Move some code to remote_read_bytes.
9232         * remote.c (target_read_live_memory): Moved from target.c.
9233         (memory_xfer_live_readonly_partial): Likewise.
9234         (remote_read_bytes): Factored out from
9235         memory_xfer_partial_1.
9236
9237 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
9238
9239         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9240         NULL pointer.
9241
9242 2014-03-21  Pedro Alves  <palves@redhat.com>
9243
9244         * infrun.c (normal_stop): Extend comment.
9245
9246 2014-03-21  Hui Zhu  <hui@codesourcery.com>
9247             Pedro Alves  <palves@redhat.com>
9248
9249         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9250         static buffer.
9251         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9252         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9253         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9254
9255 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
9256
9257         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9258         `z' formatted output modifier.
9259
9260 2014-03-20  Tom Tromey  <tromey@redhat.com>
9261             Sergio Durigan Junior  <sergiodj@redhat.com>
9262
9263         * probe.c (parse_probes): Turn assert into an ordinary error.
9264         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9265         exceptions when parsing probes.  Rearrange the code for clarity.
9266
9267 2014-03-20  Tom Tromey  <tromey@redhat.com>
9268
9269         PR gdb/14135
9270         * top.c (execute_command): Only dispatch events if the command
9271         started the target.
9272
9273 2014-03-20  Tom Tromey  <tromey@redhat.com>
9274
9275         PR cli/15718
9276         * infcall.c: Include event-top.h.
9277         (run_inferior_call): Call async_disable_stdin if needed.
9278
9279 2014-03-20  Pedro Alves  <palves@redhat.com>
9280
9281         * infrun.c (prepare_to_proceed): Delete.
9282         (thread_still_needs_step_over): New function.
9283         (find_thread_needs_step_over): New function.
9284         (proceed): If the current thread needs a step-over, set its
9285         steping_over_breakpoint flag.  Adjust to use
9286         find_thread_needs_step_over instead of prepare_to_proceed.
9287         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9288         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9289         breakpoint.
9290         (switch_back_to_stepped_thread): Step over breakpoints of all
9291         threads not the stepping thread, before switching back to the
9292         stepping thread.
9293
9294 2014-03-20  Pedro Alves  <palves@redhat.com>
9295
9296         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9297         extern.
9298         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9299         * infrun.c (saved_singlestep_ptid)
9300         (stepping_past_singlestep_breakpoint): Delete.
9301         (resume): Remove stepping_past_singlestep_breakpoint handling.
9302         (proceed): Store the prev_pc of the stepping thread too.
9303         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
9304         singlestep_pc.
9305         (enum infwait_states): Delete infwait_thread_hop_state.
9306         (struct execution_control_state) <hit_singlestep_breakpoint>: New
9307         field.
9308         (handle_inferior_event): Adjust.
9309         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9310         handling and the thread-hop code.  Before removing single-step
9311         breakpoints, check whether the thread hit a single-step breakpoint
9312         of another thread.  If it did, the trap is not a random signal.
9313         (switch_back_to_stepped_thread): If the event thread hit a
9314         single-step breakpoint, unblock it before switching to the
9315         stepping thread.  Handle the case of the stepped thread having
9316         advanced already.
9317         (keep_going): Handle the case of the current thread moving past a
9318         single-step breakpoint.
9319
9320 2014-03-20  Pedro Alves  <palves@redhat.com>
9321
9322         PR breakpoints/7143
9323         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9324         are being stepped over.
9325         (breakpoint_address_match): Make extern.
9326         * breakpoint.h (breakpoint_address_match): New declaration.
9327         * inferior.h (stepping_past_instruction_at): New declaration.
9328         * infrun.c (struct step_over_info): New type.
9329         (step_over_info): New global.
9330         (set_step_over_info, clear_step_over_info)
9331         (stepping_past_instruction_at): New functions.
9332         (handle_inferior_event): Clear the step-over info when
9333         trap_expected is cleared.
9334         (resume): Remove now stale comment.
9335         (clear_proceed_status): Clear step-over info.
9336         (proceed): Adjust step-over handling to set or clear the step-over
9337         info instead of removing all breakpoints.
9338         (handle_signal_stop): When setting up a thread-hop, don't remove
9339         breakpoints here.
9340         (stop_stepping): Clear step-over info.
9341         (keep_going): Adjust step-over handling to set or clear step-over
9342         info and then always inserting breakpoints, instead of removing
9343         all breakpoints when stepping over one.
9344
9345 2014-03-20  Pedro Alves  <palves@redhat.com>
9346
9347         * infrun.c (previous_inferior_ptid): Adjust comment.
9348         (deferred_step_ptid): Delete.
9349         (infrun_thread_ptid_changed, prepare_to_proceed)
9350         (init_wait_for_inferior): Adjust.
9351         (handle_signal_stop): Delete deferred_step_ptid handling.
9352
9353 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
9354
9355         PR gdb/15358
9356         * defs.h (sync_quit_force_run): New declaration.
9357         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9358         * event-top.c (async_sigterm_handler): New declaration.
9359         (async_sigterm_token): New variable.
9360         (async_init_signals): Create also async_sigterm_token.
9361         (async_sigterm_handler): New function.
9362         (sync_quit_force_run): New variable.
9363         (handle_sigterm): Replace quit_force call by other calls.
9364         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9365
9366 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
9367
9368         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9369         offset into SPE pseudo registers.
9370
9371 2014-03-18  Pedro Alves  <palves@redhat.com>
9372
9373         PR gdb/13860
9374         * inferior.h (print_stop_event): Declare.
9375         * infrun.c (print_stop_event): New, factored out from ...
9376         (normal_stop): ... this.
9377         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9378         of bpstat_print/print_stack_frame.
9379
9380 2014-03-17  Tom Tromey  <tromey@redhat.com>
9381
9382         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9383
9384 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
9385
9386         * ada-lang.c (decode_constrained_packed_array): Perform a
9387         minimal coercion for reference with coerce_ref instead of
9388         ada_coerce_ref.
9389
9390 2014-03-17  Tristan Gingold  <gingold@adacore.com>
9391
9392         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9393         (darwin_solib_create_inferior_hook): Emit a warning if version
9394         is unhandled.
9395
9396 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
9397
9398         * python/py-value.c (get_field_flag): Cast flag_name argument to
9399         PyObject_GetAttrString to support Python 2.4.
9400
9401 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9402
9403         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9404         (Global Maintainers): Remove Jan Kratochvil.
9405
9406 2014-03-14  Pedro Alves  <palves@redhat.com>
9407
9408         * inferior.h (terminal_ours_for_output): Rename to ...
9409         (child_terminal_ours_for_output): ... this.
9410         (terminal_save_ours): Rename to ...
9411         (child_terminal_save_ours): ... this.
9412         (terminal_ours): Rename to ...
9413         (child_terminal_ours): ... this.
9414         (terminal_inferior): Rename to ...
9415         (child_terminal_inferior): ... this.
9416         (terminal_init_inferior): Rename to ...
9417         (child_terminal_init_inferior): ... this.
9418         (terminal_init_inferior_with_pgrp): Rename to ...
9419         (child_terminal_init_inferior_with_pgrp): ... this.
9420         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9421         (child_terminal_init_with_pgrp): ... this.
9422         (terminal_save_ours): Rename to ...
9423         (child_terminal_save_ours): ... this.
9424         (terminal_init_inferior): Rename to ...
9425         (child_terminal_init): ... this.  Adjust.
9426         (terminal_inferior): Rename to ...
9427         (child_terminal_inferior): ... this.
9428         (terminal_ours_for_output): Rename to ...
9429         (child_terminal_ours_for_output): ... this.  Adjust.
9430         (terminal_ours): Rename to ...
9431         (child_terminal_ours): ... this.
9432         (terminal_ours_1): Rename to ...
9433         (child_terminal_ours_1): ... this.  Adjust.
9434         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9435         * windows-nat.c (do_initial_windows_stuff): Adjust.
9436         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9437         (gnu_terminal_init): ... this.  Adjust.
9438         (gnu_target): Adjust.
9439         * inf-child.c (inf_child_target): Adjust.
9440
9441 2014-03-13  Doug Evans  <xdje42@gmail.com>
9442
9443         PR guile/16612
9444         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9445         new eq?-hashtab.
9446
9447 2014-03-13  Doug Evans  <xdje42@gmail.com>
9448
9449         * value.c (record_latest_value): Call release_value_or_incref
9450         instead of release_value.
9451
9452 2014-03-13  Pedro Alves  <palves@redhat.com>
9453
9454         * procfs.c (procfs_target): Don't override to_shortname,
9455         to_longname or to_doc.
9456
9457 2014-03-13  Pedro Alves  <palves@redhat.com>
9458
9459         * inf-child.c (inf_child_open, inf_child_target): Don't mention
9460         Unix in user visible strings.
9461
9462 2014-03-12  Stan Shebs  <stan@codesourcery.com>
9463
9464         * gdbtypes.h: Annotate comments for Doxygen, add a page
9465         block comment with some general info.
9466
9467 2014-03-12  Pedro Alves  <palves@redhat.com>
9468
9469         * infcmd.c (prepare_execution_command): New function, factored out
9470         from several execution commands.
9471         (run_command_1, continue_command, step_1, jump_command)
9472         (signal_command, until_command, advance_command, finish_command)
9473         (attach_command): Use prepare_execution_command.
9474
9475 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
9476
9477         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9478         (MAX_BPTS): Define.
9479         (MAX_WPTS): Define.
9480         (struct arm_linux_thread_points): Removed.
9481         (struct arm_linux_process_info): New.
9482         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9483         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9484         (arm_linux_find_breakpoints_by_tid): Removed.
9485         (struct arch_lwp_info): New.
9486         (arm_linux_find_process_pid): New functions.
9487         (arm_linux_add_process): New functions.
9488         (arm_linux_process_info_get): New functions.
9489         (arm_linux_forget_process): New function.
9490         (arm_linux_get_debug_reg_state): New function.
9491         (struct update_registers_data): New.
9492         (update_registers_callback): New function.
9493         (arm_linux_insert_hw_breakpoint1): Updated.
9494         (arm_linux_remove_hw_breakpoint1): Updated.
9495         (arm_linux_insert_hw_breakpoint): Updated.
9496         (arm_linux_remove_hw_breakpoint): Updated.
9497         (arm_linux_insert_watchpoint): Updated.
9498         (arm_linux_remove_watchpoint): Updated.
9499         (arm_linux_new_thread): Updated.
9500         (arm_linux_prepare_to_resume): New function.
9501         (arm_linux_new_fork): New function.
9502         (_initialize_arm_linux_nat): Updated.
9503
9504 2014-03-12  Pedro Alves  <palves@redhat.com>
9505
9506         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9507
9508 2014-03-12  Tom Tromey  <tromey@redhat.com>
9509
9510         * inf-child.c (return_zero): New function.
9511         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9512         * aix-thread.c (aix_thread_inferior_created): New function.
9513         (aix_thread_attach): Remove.
9514         (init_aix_thread_ops): Don't set to_attach.
9515         (_initialize_aix_thread): Register inferior_created observer.
9516         * corelow.c (init_core_ops): Don't set to_attach or
9517         to_create_inferior.
9518         * exec.c (init_exec_ops): Don't set to_attach or
9519         to_create_inferior.
9520         * infcmd.c (run_command_1): Use find_run_target.  Make direct
9521         target calls.
9522         (attach_command): Use find_attach_target.  Make direct target
9523         calls.
9524         * record-btrace.c (init_record_btrace_ops): Don't set
9525         to_create_inferior.
9526         * record-full.c (record_full_can_async_p, record_full_is_async_p):
9527         Remove.
9528         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
9529         set to_create_inferior.
9530         * target.c (complete_target_initialization): Add assertion.
9531         (target_create_inferior): Remove.
9532         (find_default_attach, find_default_create_inferior): Remove.
9533         (find_attach_target, find_run_target): New functions.
9534         (find_default_is_async_p, find_default_can_async_p)
9535         (target_supports_non_stop, target_attach): Remove.
9536         (init_dummy_target): Don't set to_create_inferior or
9537         to_supports_non_stop.
9538         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
9539         TARGET_DEFAULT_FUNC.
9540         <to_create_inferior>: Add comment.
9541         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9542         TARGET_DEFAULT_RETURN.
9543         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9544         (find_attach_target, find_run_target): Declare.
9545         (target_create_inferior): Remove.
9546         (target_has_execution_1): Update comment.
9547         (target_supports_non_stop): Remove.
9548         * target-delegates.c: Rebuild.
9549
9550 2014-03-12  Pedro Alves  <palves@redhat.com>
9551
9552         * inf-child.h: Update comment to not mention Unix.
9553
9554 2014-03-12  Pedro Alves  <palves@redhat.com>
9555
9556         * inf-child.c: Update top comment to not mention Unix.  Add
9557         generic comment describing how this target is meant to be used.
9558         (inf_child_post_attach, inf_child_post_startup_inferior)
9559         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9560         Unix in comment.
9561
9562 2014-03-12  Pedro Alves  <palves@redhat.com>
9563
9564         * nto-procfs.c: Include inf-child.h.
9565         (procfs_ops): Delete global.
9566         (procfs_can_run): Delete method.
9567         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9568         target pointer instead of referencing procfs_ops.
9569         (procfs_prepare_to_store): Delete.
9570         (init_procfs_ops): Delete function.
9571         (procfs_target): New function, based on init_procfs_ops, but
9572         inherit inf_child_target.
9573         (_initialize_procfs): Use procfs_target.
9574
9575 2014-03-12  Pedro Alves  <palves@redhat.com>
9576
9577         * windows-nat.c: Include inf-child.h.
9578         (windows_ops): Delete global.
9579         (windows_open, windows_prepare_to_store, windows_can_run): Delete
9580         methods.
9581         (init_windows_ops): Delete function.
9582         (windows_target): New function, based on init_windows_ops, but
9583         inherit inf_child_target.
9584         (_initialize_windows_nat): Use windows_target.  Install x86
9585         specific target methods here.
9586
9587 2014-03-10  Doug Evans  <xdje42@gmail.com>
9588
9589         * guile/guile.c (call_initialize_gdb_module): New function.
9590         (initialize_guile): Replace call to scm_init_guile with call to
9591         scm_with_guile.
9592
9593 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
9594
9595         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9596         in call to TYPE_CODE macro.
9597
9598 2014-03-10  Jerome Guitton  <guitton@adacore.com>
9599
9600         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9601         Resolve tagged types to full view.
9602
9603 2014-03-10  Hui Zhu  <hui@codesourcery.com>
9604
9605         * target.h (target_insert_breakpoint): Remove "hardware" from its
9606         comments.
9607
9608 2014-03-07  Doug Evans  <dje@google.com>
9609
9610         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9611
9612 2014-03-07  Doug Evans  <dje@google.com>
9613
9614         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9615         Remove unused local comp_dir_attr.  Assert exactly one of
9616         stub_comp_unit_die, stub_comp_dir is non-NULL.
9617
9618 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
9619
9620         * target.h (complete_target_initialization, add_target):
9621         Add comment.
9622
9623 2014-03-07  Pedro Alves  <palves@redhat.com>
9624
9625         * go32-nat.c: Include inf-child.h.
9626         (go32_ops): Delete global.
9627         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9628         Delete methods.
9629         (go32_create_inferior): Push the passed in target pointer instead
9630         of referencing go32_ops.
9631         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
9632         (go32_target): New function, based on init_go32_ops, but inherit
9633         inf_child_target.
9634         (_initialize_go32_nat): Use go32_target.  Move parts of
9635         init_go32_ops here.
9636
9637 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
9638
9639         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9640         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9641         SYMBOL_VALUE_ADDRESS.
9642         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9643
9644 2014-03-06  Yao Qi  <yao@codesourcery.com>
9645
9646         * breakpoint.c (get_tracepoint_by_number): Remove argument
9647         optional_p.  All callers updated.  Adjust comments.  Update
9648         output message.
9649         * breakpoint.h (get_tracepoint_by_number): Update declaration.
9650
9651 2014-03-06  Yao Qi  <yao@codesourcery.com>
9652
9653         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
9654         early if get_number returns zero.  Use 'p' instead of 'args'.
9655
9656 2014-03-06  Yao Qi  <yao@codesourcery.com>
9657
9658         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9659         message.
9660
9661 2014-03-06  Yao Qi  <yao@codesourcery.com>
9662
9663         PR breakpoints/16508
9664         * tracepoint.c (check_trace_running): New function.
9665         (trace_find_command): Move code to check_trace_running and
9666         call check_trace_running.
9667         (trace_find_pc_command): Likewise.
9668         (trace_find_tracepoint_command): Likewise.
9669         (trace_find_line_command): Likewise.
9670         (trace_find_range_command): Likewise.
9671         * tracepoint.h (check_trace_running): Likewise.
9672         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9673
9674 2014-03-06  Yao Qi  <yao@codesourcery.com>
9675
9676         * target.h (struct target_ops) <to_traceframe_info>: Use
9677         TARGET_DEFAULT_NORETURN (tcomplain ()).
9678         * target-delegates.c: Regenerated.
9679
9680 2014-03-05  Pedro Alves  <palves@redhat.com>
9681
9682         PR gdb/16575
9683         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
9684         void.  Update comment.
9685         (dcache_xfer_memory): Delete.
9686         (dcache_read_memory_partial): New, based on the read bits of
9687         dcache_xfer_memory.
9688         (dcache_update): Add status parameter.  Use ULONGEST for len, and
9689         adjust.  Discard cache lines if the reason for the update was
9690         error.
9691         * dcache.h (dcache_xfer_memory): Delete declaration.
9692         (dcache_read_memory_partial): New declaration.
9693         (dcache_update): Update prototype.
9694         * target.c (raw_memory_xfer_partial): Update the dcache here.
9695         (memory_xfer_partial_1): Don't handle dcache writes here.
9696
9697 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
9698
9699         * remote-sim.c (gdbsim_load): Add const to prog.
9700
9701 2014-03-03  Tom Tromey  <tromey@redhat.com>
9702
9703         * elfread.c (probe_key): Change to bfd_data.
9704         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9705         now per-BFD, not per-objfile.
9706         * stap-probe.c (stap_probe_destroy): Update comment.
9707         (handle_stap_probe): Allocate on the per-BFD obstack.
9708
9709 2014-03-03  Tom Tromey  <tromey@redhat.com>
9710
9711         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9712         * breakpoint.c (create_longjmp_master_breakpoint): Use
9713         get_probe_address.
9714         (add_location_to_breakpoint, bkpt_probe_insert_location)
9715         (bkpt_probe_remove_location): Update.
9716         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9717         * elfread.c (elf_symfile_relocate_probe): Remove.
9718         (elf_probe_fns): Update.
9719         (insert_exception_resume_breakpoint): Change type of "probe"
9720         parameter to bound_probe.
9721         (check_exception_resume): Update.
9722         * objfiles.c (objfile_relocate1): Don't relocate probes.
9723         * probe.c (bound_probe_s): New typedef.
9724         (parse_probes): Use get_probe_address.  Set sal's objfile.
9725         (find_probe_by_pc): Return a bound_probe.
9726         (collect_probes): Return a VEC(bound_probe_s).
9727         (compare_probes): Update.
9728         (gen_ui_out_table_header_info): Change type of "probes"
9729         parameter.  Update.
9730         (info_probes_for_ops): Update.
9731         (get_probe_address): New function.
9732         (probe_safe_evaluate_at_pc): Update.
9733         * probe.h (struct probe_ops) <get_probe_address>: New field.
9734         <set_semaphore, clear_semaphore>: Add objfile parameter.
9735         (struct probe) <objfile>: Remove field.
9736         <arch>: New field.
9737         <address>: Update comment.
9738         (struct bound_probe): New.
9739         (find_probe_by_pc): Return a bound_probe.
9740         (get_probe_address): Declare.
9741         * solib-svr4.c (struct probe_and_action) <address>: New field.
9742         (hash_probe_and_action, equal_probe_and_action): Update.
9743         (register_solib_event_probe): Add address parameter.
9744         (solib_event_probe_at): Update.
9745         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
9746         get_probe_address.
9747         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9748         (stap_get_probe_address): New function.
9749         (stap_can_evaluate_probe_arguments, compute_probe_arg)
9750         (compile_probe_arg): Update.
9751         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9752         address.
9753         (handle_stap_probe): Don't relocate the probe.
9754         (stap_relocate): Remove.
9755         (stap_gen_info_probes_table_values): Update.
9756         (stap_probe_ops): Remove stap_relocate.
9757         * symfile-debug.c (debug_sym_relocate_probe): Remove.
9758         (debug_sym_probe_fns): Update.
9759         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9760         * symtab.c (init_sal): Use memset.
9761         * symtab.h (struct symtab_and_line) <objfile>: New field.
9762         * tracepoint.c (start_tracing, stop_tracing): Update.
9763
9764 2014-03-03  Tom Tromey  <tromey@redhat.com>
9765
9766         * probe.h (parse_probes, find_probe_by_pc)
9767         (find_probes_in_objfile): Fix comments.
9768
9769 2014-03-02  Doug Evans  <xdje42@gmail.com>
9770
9771         * infrun.c (handle_signal_stop): Replace test for
9772         TARGET_WAITKIND_STOPPED with an assert.
9773
9774 2014-03-02  Doug Evans  <xdje42@gmail.com>
9775
9776         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9777
9778 2014-03-02  Doug Evans  <xdje42@gmail.com>
9779
9780         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9781
9782 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
9783
9784         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9785
9786 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
9787
9788         * i386obsd-nat.c: Include "obsd-nat.h".
9789         (_initialize_i386obsd_nat): Call obsd_add_target instead of
9790         add_target.
9791         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9792
9793 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
9794
9795         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9796
9797 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
9798
9799         * mips64obsd-nat.c: Include "obsd-nath".
9800         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9801         add_target
9802         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9803
9804 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
9805
9806         * amd64obsd-nat.c: Include "obsd-nat,h.
9807         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9808         add_target.
9809         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9810
9811 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
9812
9813         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9814         (find_overload_match): Update call to find_oload_champ.
9815         (find_oload_champ_namespace_loop): Likewise
9816
9817 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
9818
9819         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9820
9821         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9822         * config/sparc/obsd64.mh: New file.
9823         * sparc64obsd-nat.c: New file.
9824
9825         * obsd-nat.h: New file.
9826         * obsd-nat.c: New file.
9827         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9828         (ALLDEPFILES): Add obsd-nat.c.
9829
9830 2014-02-28  Tom Tromey  <tromey@redhat.com>
9831
9832         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
9833         * cli-out.h (cli_ui_out_impl): Now const.
9834         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
9835         * ui-out.c (struct ui_out) <impl>: Now const.
9836         (default_ui_out_impl): Now const.
9837         (ui_out_new): Make 'impl' parameter const.
9838         * ui-out.h (ui_out_new): Update.
9839
9840 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9841
9842         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9843
9844 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9845
9846         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9847
9848 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9849
9850         Additional PR 8882 fix.
9851         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9852
9853 2014-02-27  Pedro Alves  <palves@redhat.com>
9854
9855         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9856         isn't set.
9857
9858 2014-02-27  Pedro Alves  <palves@redhat.com>
9859
9860         PR 12702
9861         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9862         * nat/linux-waitpid.c: Include string.h.
9863         (status_to_str): Moved here and made extern.
9864         * nat/linux-waitpid.h (status_to_str): New declaration.
9865
9866 2014-02-27  Hui Zhu  <hui@codesourcery.com>
9867
9868         PR 12702
9869         * infrun.c (ptid_match): Move ...
9870         * common/ptid.c (ptid_match): ... here.
9871         * inferior.h (ptid_match): Move ...
9872         * common/ptid.h (ptid_match): ... here.
9873
9874 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9875
9876         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9877         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9878         gdb_target_obs.
9879
9880 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9881
9882         * obsd-tdep.c (obsd_auxv_parse): New function.
9883         (obsd_init_abi): Set auxv_parse.
9884
9885         * gdbarch.sh (auxv_parse): New.
9886         * gdbarch.h: Regenerated.
9887         * gdbarch.c: Regenerated.
9888         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9889
9890 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
9891
9892         * guile/scm-value.c (gdbscm_history_append_x): New function.
9893         (value_functions): Add it.
9894
9895 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
9896
9897         * dwarf2read.c (attr_value_as_address): New function.
9898         (dwarf2_find_base_address, read_call_site_scope): Use
9899         attr_value_as_address in place of DW_ADDR.
9900         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9901         the low and high addresses.  Slight rework of the handling
9902         of the high pc being a constant form, and limit it to
9903         DWARF verson 4 or higher.
9904         (dwarf2_record_block_ranges): Likewise.
9905         (read_partial_die): Likewise.
9906         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9907
9908 2014-02-26  Tom Tromey  <tromey@redhat.com>
9909
9910         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9911
9912 2014-02-26  Tom Tromey  <tromey@redhat.com>
9913
9914         * elfread.c (elf_read_minimal_symbols): Return early if
9915         minimal symbols have already been read.  Add "ei" parameter.
9916         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9917         * minsyms.c (prim_record_minimal_symbol_full): Update.
9918         * objfiles.h (struct objstats) <n_minsyms>: Move...
9919         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9920         * symmisc.c (print_objfile_statistics): Update.
9921
9922 2014-02-26  Tom Tromey  <tromey@redhat.com>
9923
9924         * elfread.c (elf_read_minimal_symbols): New function, from
9925         elf_symfile_read.
9926         (elf_symfile_read): Call it.
9927
9928 2014-02-26  Tom Tromey  <tromey@redhat.com>
9929
9930         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9931         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9932         (lookup_minimal_symbol_solib_trampoline)
9933         (lookup_minimal_symbol_by_pc_section_1)
9934         (lookup_minimal_symbol_and_objfile): Update.
9935         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9936         Don't allocate a minimal symbol if minsyms have already been read.
9937         (build_minimal_symbol_hash_tables): Update.
9938         (install_minimal_symbols): Do nothing if minsyms already read.
9939         Use the per-BFD obstack.
9940         (terminate_minimal_symbol_table): Use the per-BFD obstack.
9941         * objfiles.c (allocate_objfile): Call
9942         terminate_minimal_symbol_table later.
9943         (have_minimal_symbols): Update.
9944         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9945         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9946         Move from struct objfile.
9947         <minsyms_read>: New field.
9948         (struct objfile) <msymbols, minimal_symbol_count,
9949         msymbol_hash, msymbol_demangled_hash>: Move.
9950         (ALL_OBJFILE_MSYMBOLS): Update.
9951         * symfile.c (read_symbols): Set minsyms_read.
9952         (reread_symbols): Update.
9953         * symmisc.c (dump_objfile, dump_msymbols): Update.
9954
9955 2014-02-26  Tom Tromey  <tromey@redhat.com>
9956
9957         * minsyms.c (msymbols_sort): Remove.
9958         * minsyms.h (msymbols_sort): Remove.
9959         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9960         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9961         * elfread.c (elf_symtab_read): Don't add section offsets.
9962         * xcoffread.c (record_minimal_symbol): Don't add section offset
9963         to minimal symbol address.
9964         * somread.c (text_offset, data_offset): Remove.
9965         (som_symtab_read): Don't add section offsets to minimal symbol
9966         addresses.
9967         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9968         Don't add section offsets to minimal symbols.
9969         * coffread.c (coff_symtab_read): Don't add section offsets
9970         to minimal symbol addresses.
9971         * machoread.c (macho_symtab_add_minsym): Don't add section offset
9972         to minimal symbol addresses.
9973         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9974         section offset to minimal symbol addresses.
9975         * mdebugread.c (parse_partial_symbols): Don't add section
9976         offset to minimal symbol addresses.
9977         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9978         offset to minimal symbol addresses.
9979
9980 2014-02-26  Tom Tromey  <tromey@redhat.com>
9981
9982         * ada-lang.c (ada_main_name): Update.
9983         (ada_add_standard_exceptions): Update.
9984         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9985         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
9986         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
9987         * auxv.c (ld_so_xfer_auxv): Update.
9988         * avr-tdep.c (avr_scan_prologue): Update.
9989         * ax-gdb.c (gen_var_ref): Update.
9990         * blockframe.c (get_pc_function_start)
9991         (find_pc_partial_function_gnu_ifunc): Update.
9992         * breakpoint.c (create_overlay_event_breakpoint)
9993         (create_longjmp_master_breakpoint)
9994         (create_std_terminate_master_breakpoint)
9995         (create_exception_master_breakpoint): Update.
9996         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
9997         * c-valprint.c (c_val_print): Update.
9998         * coff-pe-read.c (add_pe_forwarded_sym): Update.
9999         * common/agent.c (agent_look_up_symbols): Update.
10000         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10001         * dwarf2loc.c (call_site_to_target_addr): Update.
10002         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10003         * elfread.c (elf_gnu_ifunc_record_cache)
10004         (elf_gnu_ifunc_resolve_by_got): Update.
10005         * findvar.c (default_read_var_value): Update.
10006         * frame.c (inside_main_func): Update.
10007         * frv-tdep.c (frv_frame_this_id): Update.
10008         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10009         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10010         Update.
10011         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10012         (hppa_hpux_find_dummy_bpaddr): Update.
10013         * hppa-tdep.c (hppa_symbol_address): Update.
10014         * infcmd.c (until_next_command): Update.
10015         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10016         Update.
10017         * linespec.c (minsym_found, add_minsym): Update.
10018         * linux-nat.c (get_signo): Update.
10019         * linux-thread-db.c (inferior_has_bug): Update.
10020         * m32c-tdep.c (m32c_return_value)
10021         (m32c_m16c_address_to_pointer): Update.
10022         * m32r-tdep.c (m32r_frame_this_id): Update.
10023         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10024         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10025         * maint.c (maintenance_translate_address): Update.
10026         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10027         (frob_address): New function.
10028         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10029         frob_address.  Rename parameter to "pc_in".
10030         (compare_minimal_symbols, compact_minimal_symbols): Use raw
10031         addresses.
10032         (find_solib_trampoline_target, minimal_symbol_upper_bound):
10033         Update.
10034         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10035         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10036         * objc-lang.c (find_objc_msgsend): Update.
10037         * objfiles.c (objfile_relocate1): Update.
10038         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10039         * p-valprint.c (pascal_val_print): Update.
10040         * parse.c (write_exp_msymbol): Update.
10041         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10042         (ppc_elfv2_skip_entrypoint): Update.
10043         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10044         * printcmd.c (build_address_symbolic, msym_info)
10045         (address_info): Update.
10046         * proc-service.c (ps_pglobal_lookup): Update.
10047         * psymtab.c (find_pc_sect_psymtab_closer)
10048         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10049         Change msymbol parameter to bound_minimal_symbol.
10050         * ravenscar-thread.c (get_running_thread_id): Update.
10051         * remote.c (remote_check_symbols): Update.
10052         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10053         address.
10054         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10055         * solib-dsbt.c (lm_base): Update.
10056         * solib-frv.c (lm_base, main_got): Update.
10057         * solib-irix.c (locate_base): Update.
10058         * solib-som.c (som_solib_create_inferior_hook)
10059         (link_map_start): Update.
10060         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10061         * solib-svr4.c (elf_locate_base, enable_break): Update.
10062         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10063         (flush_ea_cache): Update.
10064         * stabsread.c (define_symbol, scan_file_globals): Update.
10065         * stack.c (find_frame_funname): Update.
10066         * symfile-debug.c (debug_qf_expand_symtabs_matching)
10067         (debug_qf_find_pc_sect_symtab): Update.
10068         * symfile.c (simple_read_overlay_table)
10069         (simple_overlay_update): Update.
10070         * symfile.h (struct quick_symbol_functions)
10071         <find_pc_sect_symtab>: Change type of msymbol to
10072         bound_minimal_symbol.
10073         * symmisc.c (dump_msymbols): Update.
10074         * symtab.c (find_pc_sect_symtab_via_partial)
10075         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10076         (search_symbols, print_msymbol_info): Update.
10077         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10078         (MSYMBOL_VALUE_ADDRESS): Redefine.
10079         (BMSYMBOL_VALUE_ADDRESS): New macro.
10080         * tracepoint.c (scope_info): Update.
10081         * tui/tui-disasm.c (tui_find_disassembly_address)
10082         (tui_get_begin_asm_address): Update.
10083         * valops.c (find_function_in_inferior): Update.
10084         * value.c (value_static_field, value_fn_field): Update.
10085
10086 2014-02-26  Tom Tromey  <tromey@redhat.com>
10087
10088         * ada-lang.c (ada_update_initial_language): Update.
10089         (ada_main_name, ada_has_this_exception_support): Update.
10090         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10091         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10092         * arm-tdep.c (arm_skip_stub): Update.
10093         * auxv.c (ld_so_xfer_auxv): Update.
10094         * avr-tdep.c (avr_scan_prologue): Update.
10095         * ax-gdb.c (gen_var_ref): Update.
10096         * breakpoint.c (struct breakpoint_objfile_data)
10097         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10098         type to bound_minimal_symbol.
10099         (create_overlay_event_breakpoint)
10100         (create_longjmp_master_breakpoint)
10101         (create_std_terminate_master_breakpoint)
10102         (create_exception_master_breakpoint): Update.
10103         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10104         * c-exp.y (classify_name): Update.
10105         * coffread.c (coff_symfile_read): Update.
10106         * common/agent.c (agent_look_up_symbols): Update.
10107         * d-lang.c (d_main_name): Update.
10108         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10109         * dec-thread.c (enable_dec_thread): Update.
10110         * dwarf2loc.c (call_site_to_target_addr): Update.
10111         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10112         * eval.c (evaluate_subexp_standard): Update.
10113         * findvar.c (struct minsym_lookup_data) <result>: Change type
10114         to bound_minimal_symbol.
10115         <objfile>: Remove.
10116         (minsym_lookup_iterator_cb, default_read_var_value): Update.
10117         * frame.c (inside_main_func): Update.
10118         * frv-tdep.c (frv_frame_this_id): Update.
10119         * gcore.c (call_target_sbrk): Update.
10120         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10121         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10122         Update.
10123         * go-lang.c (go_main_name): Update.
10124         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10125         (hppa_hpux_find_import_stub_for_addr): Update.
10126         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10127         Update.  Change return type.
10128         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10129         type.
10130         * jit.c (jit_breakpoint_re_set_internal): Update.
10131         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10132         Update.
10133         * linux-nat.c (get_signo): Update.
10134         * linux-thread-db.c (inferior_has_bug): Update
10135         * m32c-tdep.c (m32c_return_value)
10136         (m32c_m16c_address_to_pointer): Update.
10137         * m32r-tdep.c (m32r_frame_this_id): Update.
10138         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10139         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10140         * minsyms.c (lookup_minimal_symbol_internal): Rename to
10141         lookup_minimal_symbol.  Change return type.
10142         (lookup_minimal_symbol): Remove.
10143         (lookup_bound_minimal_symbol): Update.
10144         (lookup_minimal_symbol_text): Change return type.
10145         (lookup_minimal_symbol_solib_trampoline): Change return type.
10146         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10147         (lookup_minimal_symbol_solib_trampoline): Change return type.
10148         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10149         * objc-lang.c (lookup_objc_class, lookup_child_selector)
10150         (value_nsstring, find_imps): Update.
10151         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10152         * p-lang.c (pascal_main_name): Update.
10153         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10154         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10155         * proc-service.c (ps_pglobal_lookup): Update.
10156         * ravenscar-thread.c (get_running_thread_msymbol): Change
10157         return type.
10158         (has_ravenscar_runtime, get_running_thread_id): Update.
10159         * remote.c (remote_check_symbols): Update.
10160         * sol-thread.c (ps_pglobal_lookup): Update.
10161         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10162         * solib-dsbt.c (lm_base): Update.
10163         * solib-frv.c (lm_base, frv_relocate_section_addresses):
10164         Update.
10165         * solib-irix.c (locate_base): Update.
10166         * solib-som.c (som_solib_create_inferior_hook)
10167         (som_solib_desire_dynamic_linker_symbols, link_map_start):
10168         Update.
10169         * solib-spu.c (spu_enable_break): Update.
10170         * solib-svr4.c (elf_locate_base, enable_break): Update.
10171         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10172         (flush_ea_cache): Update.
10173         * stabsread.c (define_symbol): Update.
10174         * symfile.c (simple_read_overlay_table): Update.
10175         * symtab.c (find_pc_sect_line): Update.
10176         * tracepoint.c (scope_info): Update.
10177         * tui-disasm.c (tui_get_begin_asm_address): Update.
10178         * value.c (value_static_field): Update.
10179
10180 2014-02-26  Tom Tromey  <tromey@redhat.com>
10181
10182         * minsyms.c (prim_record_minimal_symbol_full): Use
10183         SET_MSYMBOL_VALUE_ADDRESS.
10184         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10185         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10186         SET_MSYMBOL_VALUE_ADDRESS.
10187         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10188         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10189
10190 2014-02-26  Tom Tromey  <tromey@redhat.com>
10191
10192         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10193         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10194         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10195         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10196         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10197         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10198         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10199         * ada-lang.c (ada_main_name): Update.
10200         (ada_lookup_simple_minsym): Update.
10201         (ada_make_symbol_completion_list): Update.
10202         (ada_add_standard_exceptions): Update.
10203         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10204         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10205         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10206         * arm-tdep.c (skip_prologue_function): Update.
10207         (arm_skip_stack_protector, arm_skip_stub): Update.
10208         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10209         (arm_wince_skip_main_prologue): Update.
10210         * auxv.c (ld_so_xfer_auxv): Update.
10211         * avr-tdep.c (avr_scan_prologue): Update.
10212         * ax-gdb.c (gen_var_ref): Update.
10213         * block.c (call_site_for_pc): Update.
10214         * blockframe.c (get_pc_function_start): Update.
10215         (find_pc_partial_function_gnu_ifunc): Update.
10216         * breakpoint.c (create_overlay_event_breakpoint): Update.
10217         (create_longjmp_master_breakpoint): Update.
10218         (create_std_terminate_master_breakpoint): Update.
10219         (create_exception_master_breakpoint): Update.
10220         (resolve_sal_pc): Update.
10221         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10222         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10223         Update.
10224         * c-valprint.c (c_val_print): Update.
10225         * coff-pe-read.c (add_pe_forwarded_sym): Update.
10226         * coffread.c (coff_symfile_read): Update.
10227         * common/agent.c (agent_look_up_symbols): Update.
10228         * dbxread.c (find_stab_function_addr): Update.
10229         (end_psymtab): Update.
10230         * dwarf2loc.c (call_site_to_target_addr): Update.
10231         (func_verify_no_selftailcall): Update.
10232         (tailcall_dump): Update.
10233         (call_site_find_chain_1): Update.
10234         (dwarf_expr_reg_to_entry_parameter): Update.
10235         * elfread.c (elf_gnu_ifunc_record_cache): Update.
10236         (elf_gnu_ifunc_resolve_by_got): Update.
10237         * f-valprint.c (info_common_command): Update.
10238         * findvar.c (read_var_value): Update.
10239         * frame.c (get_prev_frame_1): Update.
10240         (inside_main_func): Update.
10241         * frv-tdep.c (frv_skip_main_prologue): Update.
10242         (frv_frame_this_id): Update.
10243         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10244         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10245         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10246         (gnuv3_skip_trampoline): Update.
10247         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10248         (hppa64_hpux_in_solib_call_trampoline): Update.
10249         (hppa_hpux_skip_trampoline_code): Update.
10250         (hppa64_hpux_search_dummy_call_sequence): Update.
10251         (hppa_hpux_find_import_stub_for_addr): Update.
10252         (hppa_hpux_find_dummy_bpaddr): Update.
10253         * hppa-tdep.c (hppa_symbol_address)
10254         (hppa_lookup_stub_minimal_symbol): Update.
10255         * i386-tdep.c (i386_skip_main_prologue): Update.
10256         (i386_pe_skip_trampoline_code): Update.
10257         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10258         * infcall.c (get_function_name): Update.
10259         * infcmd.c (until_next_command): Update.
10260         * jit.c (jit_breakpoint_re_set_internal): Update.
10261         (jit_inferior_init): Update.
10262         * linespec.c (minsym_found): Update.
10263         (add_minsym): Update.
10264         * linux-fork.c (info_checkpoints_command): Update.
10265         * linux-nat.c (get_signo): Update.
10266         * linux-thread-db.c (inferior_has_bug): Update.
10267         * m32c-tdep.c (m32c_return_value): Update.
10268         (m32c_m16c_address_to_pointer): Update.
10269         (m32c_m16c_pointer_to_address): Update.
10270         * m32r-tdep.c (m32r_frame_this_id): Update.
10271         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10272         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10273         * maint.c (maintenance_translate_address): Update.
10274         * minsyms.c (add_minsym_to_hash_table): Update.
10275         (add_minsym_to_demangled_hash_table): Update.
10276         (msymbol_objfile): Update.
10277         (lookup_minimal_symbol): Update.
10278         (iterate_over_minimal_symbols): Update.
10279         (lookup_minimal_symbol_text): Update.
10280         (lookup_minimal_symbol_by_pc_name): Update.
10281         (lookup_minimal_symbol_solib_trampoline): Update.
10282         (lookup_minimal_symbol_by_pc_section_1): Update.
10283         (lookup_minimal_symbol_and_objfile): Update.
10284         (prim_record_minimal_symbol_full): Update.
10285         (compare_minimal_symbols): Update.
10286         (compact_minimal_symbols): Update.
10287         (build_minimal_symbol_hash_tables): Update.
10288         (install_minimal_symbols): Update.
10289         (terminate_minimal_symbol_table): Update.
10290         (find_solib_trampoline_target): Update.
10291         (minimal_symbol_upper_bound): Update.
10292         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10293         * mips-tdep.c (mips_stub_frame_sniffer): Update.
10294         (mips_skip_pic_trampoline_code): Update.
10295         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10296         * objc-lang.c (selectors_info): Update.
10297         (classes_info): Update.
10298         (find_methods): Update.
10299         (find_imps): Update.
10300         (find_objc_msgsend): Update.
10301         * objfiles.c (objfile_relocate1): Update.
10302         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10303         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10304         * p-valprint.c (pascal_val_print): Update.
10305         * parse.c (write_exp_msymbol): Update.
10306         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10307         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10308         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10309         * printcmd.c (build_address_symbolic): Update.
10310         (sym_info): Update.
10311         (address_info): Update.
10312         * proc-service.c (ps_pglobal_lookup): Update.
10313         * psymtab.c (find_pc_sect_psymtab_closer): Update.
10314         (find_pc_sect_psymtab): Update.
10315         * python/py-framefilter.c (py_print_frame): Update.
10316         * ravenscar-thread.c (get_running_thread_id): Update.
10317         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10318         Update.
10319         * remote.c (remote_check_symbols): Update.
10320         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10321         (rs6000_skip_trampoline_code): Update.
10322         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10323         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10324         * solib-dsbt.c (lm_base): Update.
10325         * solib-frv.c (lm_base): Update.
10326         (main_got): Update.
10327         * solib-irix.c (locate_base): Update.
10328         * solib-som.c (som_solib_create_inferior_hook): Update.
10329         (som_solib_desire_dynamic_linker_symbols): Update.
10330         (link_map_start): Update.
10331         * solib-spu.c (spu_enable_break): Update.
10332         (ocl_enable_break): Update.
10333         * solib-svr4.c (elf_locate_base): Update.
10334         (enable_break): Update.
10335         * spu-tdep.c (spu_get_overlay_table): Update.
10336         (spu_catch_start): Update.
10337         (flush_ea_cache): Update.
10338         * stabsread.c (define_symbol): Update.
10339         (scan_file_globals): Update.
10340         * stack.c (find_frame_funname): Update.
10341         (frame_info): Update.
10342         * symfile.c (simple_read_overlay_table): Update.
10343         (simple_overlay_update): Update.
10344         * symmisc.c (dump_msymbols): Update.
10345         * symtab.c (fixup_section): Update.
10346         (find_pc_sect_line): Update.
10347         (skip_prologue_sal): Update.
10348         (search_symbols): Update.
10349         (print_msymbol_info): Update.
10350         (rbreak_command): Update.
10351         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10352         (completion_list_objc_symbol): Update.
10353         (default_make_symbol_completion_list_break_on): Update.
10354         * tracepoint.c (scope_info): Update.
10355         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10356         (tui_get_begin_asm_address): Update.
10357         * valops.c (find_function_in_inferior): Update.
10358         * value.c (value_static_field): Update.
10359         (value_fn_field): Update.
10360
10361 2014-02-26  Tom Tromey  <tromey@redhat.com>
10362
10363         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10364         bound minimal symbols.  Move code that knows about minsym
10365         table layout...
10366         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
10367         function.
10368         * minsyms.h (minimal_symbol_upper_bound): Declare.
10369         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10370         minimal_symbol_upper_bound.
10371
10372 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
10373
10374         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10375         Use the type's name if its basic type does not have a tag.
10376
10377 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
10378
10379         * dwarf2read.c (read_subrange_type): Add comment.
10380
10381 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
10382
10383         * dwarf2read.c (update_enumeration_type_from_children): New
10384         function, mostly extracted from process_structure_scope.
10385         (read_enumeration_type): Call update_enumeration_type_from_children.
10386         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10387         and flag_flag_enum fields.
10388
10389 2014-02-26  Pedro Alves  <palves@redhat.com>
10390
10391         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10392         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10393         to_xfer_partial method.
10394
10395 2014-02-26  Pedro Alves  <palves@redhat.com>
10396
10397         * target.c (complete_target_initialization): Don't install
10398         default_xfer_partial as to_xfer_partial hook.
10399         (nomemory): Delete.
10400         (update_current_target): Don't INHERIT nor de_fault
10401         deprecated_xfer_memory.  Delete de_fault macro.
10402         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10403         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10404         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10405         field.
10406
10407 2014-02-26  Pedro Alves  <palves@redhat.com>
10408
10409         * go32-nat.c (my_write_child): New function.
10410         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10411         (go32_xfer_partial): New function.
10412         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10413         Instead install a to_xfer_partial hook.
10414
10415 2014-02-26  Pedro Alves  <palves@redhat.com>
10416
10417         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10418         to_xfer_partial helper.  Rewrite.
10419         (procfs_xfer_partial): New function.
10420         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10421         Install a to_xfer_partial hook.
10422
10423 2014-02-26  Pedro Alves  <palves@redhat.com>
10424
10425         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10426         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10427         (m32r_xfer_partial): New function.
10428         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10429         Install a to_xfer_partial hook.
10430
10431 2014-02-26  Pedro Alves  <palves@redhat.com>
10432
10433         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10434         helper.
10435         (mips_xfer_partial): New function.
10436         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10437         hook.  Install a to_xfer_partial hook.
10438
10439 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
10440
10441         * gdbtypes.h (create_array_type_with_stride): Add declaration.
10442         * gdbtypes.c (create_array_type_with_stride): New function,
10443         renaming create_array_type, but with an added parameter
10444         called "bit_stride".
10445         (create_array_type): Re-implement using
10446         create_array_type_with_stride.
10447         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10448         and DW_AT_bit_stride attributes.
10449
10450 2014-02-26  Pedro Alves  <palves@redhat.com>
10451
10452         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10453         task-specific breakpoints.
10454
10455 2014-02-25  Pedro Alves  <palves@redhat.com>
10456
10457         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10458         handling of object == TARGET_OBJECT_UNWIND_TABLE.
10459
10460 2014-02-25  Stan Shebs  <stan@codesourcery.com>
10461
10462         * defs.h: Annotate comments for Doxygen.
10463
10464 2014-02-25  Tom Tromey  <tromey@redhat.com>
10465
10466         * target.h (target_ignore): Don't declare.
10467         * target.c (target_ignore): Remove.
10468
10469 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
10470
10471         PR gdb/16626
10472         * auto-load.c (auto_load_objfile_script_1): Change filename to
10473         debugfile.
10474
10475 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
10476
10477         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10478         documentation.  Adjust prototype to match the target_ops
10479         to_xfer_partial method.  Adjust implementation accordingly.
10480
10481 2014-02-25  Hui Zhu  <hui@codesourcery.com>
10482
10483         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10484         to_traceframe_info.
10485
10486 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
10487
10488         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10489         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10490         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10491         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10492         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10493         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10494         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10495         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10496         New constants.
10497         (rl78_register_type): Use a data pointer type for SP and
10498         new pseudo registers mentioned above.  Use a 16 bit integer
10499         type for all other register pairs.
10500         (rl78_register_name, rl78_g10_register_name): Update for
10501         new pseudo registers.
10502         (rl78_pseudo_register_read): Likewise.
10503         (rl78_pseudo_register_write): Likewise.
10504         (rl78_dwarf_reg_to_regnum): Return register numbers representing
10505         to the newly added pseudo registers.
10506
10507 2014-02-24  Doug Evans  <dje@google.com>
10508
10509         * value.c (record_latest_value): Fix comment.
10510         * printcmd.c (print_command_1): Remove code to handle -1 return from
10511         record_latest_value.
10512
10513 2014-02-24  Pedro Alves  <palves@redhat.com>
10514
10515         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10516         deprecated_xfer_memory hook.
10517         (procfs_xfer_partial): Call procfs_xfer_memory instead
10518         of the deprecated_xfer_memory target hook.
10519         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10520         helper.
10521
10522 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
10523
10524         * windows-nat.c (windows_xfer_shared_libraries): Return
10525         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10526         requested object is TARGET_OBJECT_LIBRARIES.
10527
10528 2014-02-24  Yao Qi  <yao@codesourcery.com>
10529
10530         * target.h (enum target_xfer_status)
10531         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10532         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10533         explicitly.  New.
10534         * corefile.c (memory_error_message): User updated.
10535         * exec.c (section_table_read_available_memory): Likewise.
10536         * record-btrace.c (record_btrace_xfer_partial): Likewise.
10537         * target.c (target_xfer_status_to_string): Likewise.
10538         (raw_memory_xfer_partial): Likewise.
10539         (memory_xfer_partial_1, target_xfer_partial): Likewise.
10540         * valops.c (read_value_memory): Likewise.
10541         * exec.h: Update comments.
10542
10543 2014-02-24  Yao Qi  <yao@codesourcery.com>
10544
10545         * target.c (target_xfer_status_to_string): Rename argument err
10546         to status.
10547         * target.h (target_xfer_status_to_string): Update declaration.
10548         Replace target_xfer_error_to_string with
10549         target_xfer_status_to_string in comment.
10550
10551 2014-02-24  Yao Qi  <yao@codesourcery.com>
10552
10553         * mips-linux-nat.c (super_close): Update its type.
10554         (mips_linux_close): Pass 'self' to super_close.
10555
10556 2014-02-24  Yao Qi  <yao@codesourcery.com>
10557
10558         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10559         * corefile.c (read_memory): Adjusted.
10560         * target.c (target_write_with_progress): Adjusted.
10561
10562 2014-02-23  Yao Qi  <yao@codesourcery.com>
10563
10564         Revert two patches:
10565
10566         2013-10-25  Yao Qi  <yao@codesourcery.com>
10567
10568         * remote.c (remote_traceframe_info): Return early if
10569         traceframe is not selected.
10570
10571         2013-07-19  Yao Qi  <yao@codesourcery.com>
10572
10573         * target.c (update_current_target): Change the default action
10574         of 'to_traceframe_info' from tcomplain to return_zero.
10575         * target.h (struct target_ops) <to_traceframe_info>: Add more
10576         comments.
10577
10578 2014-02-23  Yao Qi  <yao@codesourcery.com>
10579
10580         * valops.c (read_value_memory): Rewrite it.  Call
10581         target_xfer_partial in a loop.
10582         * exec.h (section_table_available_memory): Remove declaration.
10583         Move comments to ...
10584         * exec.c (section_table_available_memory): ... here.  Make it
10585         static.
10586
10587 2014-02-23  Yao Qi  <yao@codesourcery.com>
10588
10589         * exec.c (section_table_read_available_memory): New function.
10590         * exec.h (section_table_read_available_memory): Declare.
10591         * ctf.c (ctf_xfer_partial): Call
10592         section_table_read_available_memory.
10593         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10594
10595 2014-02-23  Yao Qi  <yao@codesourcery.com>
10596
10597         * ctf.c (ctf_xfer_partial): Move code to ...
10598         * exec.c (exec_read_partial_read_only): ... it.  New function.
10599         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10600         * tracefile.c: Include "exec.h".
10601         * exec.h (exec_read_partial_read_only): Declare.
10602
10603 2014-02-23  Yao Qi  <yao@codesourcery.com>
10604
10605         * tracefile-tfile.c (tfile_has_all_memory): Remove.
10606         (tfile_has_memory): Remove.
10607         (init_tfile_ops): Don't set fields to_has_all_memory and
10608         to_has_memory of tfile_ops.
10609         * tracefile.c (tracefile_has_all_memory): New function.
10610         (tracefile_has_memory): New function.
10611         (init_tracefile_ops): Initialize fields to_has_all_memory and
10612         to_has_memory of 'ops'.
10613
10614 2014-02-23  Yao Qi  <yao@codesourcery.com>
10615
10616         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10617         (ctf_thread_alive, ctf_get_trace_status): Remove.
10618         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
10619         init_tracefile_ops.
10620         * tracefile-tfile.c (tfile_get_trace_status): Remove.
10621         (tfile_has_stack, tfile_has_registers): Remove.
10622         (tfile_thread_alive): Remove.
10623         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
10624         init_tracefile_ops.
10625         * tracefile.c (tracefile_has_stack): New function.
10626         (tracefile_has_registers): New function.
10627         (tracefile_thread_alive): New function.
10628         (tracefile_get_trace_status): New function.
10629         (init_tracefile_ops): New function.
10630         * tracefile.h (init_tracefile_ops): Declare.
10631
10632 2014-02-23  Yao Qi  <yao@codesourcery.com>
10633
10634         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10635         (O_LARGEFILE): Likewise.
10636         (tfile_ops): Likewise.
10637         (TRACE_HEADER_SIZE): Likewise.
10638         (trace_fd, trace_frames_offset, cur_offset): Likewise.
10639         (cur_data_size): Likewise.
10640         (tfile_read, tfile_open, tfile_interp_line): Likewise.
10641         (tfile_close, tfile_files_info): Likewise.
10642         (tfile_get_trace_status): Likewise.
10643         (tfile_get_tracepoint_status): Likewise.
10644         (tfile_get_traceframe_address): Likewise.
10645         (tfile_trace_find, match_blocktype): Likewise.
10646         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10647         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10648         (tfile_get_trace_state_variable_value): Likewise.
10649         (tfile_has_all_memory, tfile_has_memory): Likewise.
10650         (tfile_has_stack, tfile_has_registers): Likewise.
10651         (tfile_thread_alive, build_traceframe_info): Likewise.
10652         (tfile_traceframe_info, init_tfile_ops): Likewise.
10653         (_initialize_tracepoint): Don't call init_tfile_ops
10654         and add_target_with_completer.
10655         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10656         exec.h, completer.h and filenames.h.
10657         (_initialize_tracefile_tfile): New function.
10658
10659 2014-02-23  Yao Qi  <yao@codesourcery.com>
10660
10661         * Makefile.in (REMOTE_OBS): Append tracefile.o and
10662         tracefile-tfile.o.
10663         (HFILES_NO_SRCDIR): Add tracefile.h.
10664         * ctf.c: Include "tracefile.h".
10665         * tracefile.h: New file.
10666         * tracefile.c: New file
10667         * tracefile-tfile.c: New file.
10668         * tracepoint.c: Include "tracefile.h".
10669         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10670         (stop_reason_names): Add const.
10671         (trace_file_writer_xfree): Move it to tracefile.c.
10672         (trace_save, trace_save_command, trace_save_tfile): Likewise.
10673         (trace_save_ctf): Likewise.
10674         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10675         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10676         (tfile_write_header, tfile_write_regblock_type): Likewise.
10677         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10678         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10679         (tfile_write_raw_data, tfile_end): Likewise.
10680         (tfile_trace_file_writer_new): Likewise.
10681         (free_uploaded_tp): Make it extern.
10682         (free_uploaded_tsv): Make it extern.
10683         (_initialize_tracepoint): Move code to register command 'tsave'
10684         to tracefile.c.
10685         * tracepoint.h (stop_reason_names): Declare.
10686         (struct trace_frame_write_ops): Move it to tracefile.h.
10687         (struct trace_file_write_ops): Likewise.
10688         (struct trace_file_writer): Likewise.
10689         (free_uploaded_tsvs, free_uploaded_tps): Declare.
10690
10691 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
10692
10693         PR gdb/16594
10694         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10695         process name.
10696         (get_cores_used_by_process): New parameter num_cores, use it.
10697         (linux_xfer_osdata_processes): Pass num_cores to it.
10698         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10699         process name.
10700
10701 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
10702
10703         * target.c (memory_xfer_partial): Fix length arg in call to
10704         breakpoint_xfer_memory.
10705
10706 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
10707
10708         PR tdep/16397
10709         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10710         number comes after the + or - signs.  Adjust length of register
10711         name to be extracted.
10712
10713 2014-02-20  Tom Tromey  <tromey@redhat.com>
10714
10715         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10716         (ada_varobj_ops): Mark "extern".
10717
10718 2014-02-20  Tom Tromey  <tromey@redhat.com>
10719
10720         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10721
10722 2014-02-20  Doug Evans  <xdje42@gmail.com>
10723
10724         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10725         All callers updated.
10726         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10727         All callers updated.
10728         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10729         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10730
10731 2014-02-20  lin zuojian  <manjian2006@gmail.com>
10732             Joel Brobecker  <brobecker@adacore.com>
10733             Doug Evans  <xdje42@gmail.com>
10734
10735         PR symtab/16581
10736         * dwarf2read.c (struct die_info): New member in_process.
10737         (reset_die_in_process): New function.
10738         (process_die): Set it at the start, reset when returning.
10739         (inherit_abstract_dies): Only call process_die if origin_child_die
10740         not already being processed.
10741
10742 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10743
10744         * windows-nat.c (handle_unload_dll): Add function documentation.
10745         (do_initial_windows_stuff): Add comment explaining why we wait
10746         until after inferior initialization has finished before
10747         processing all DLLs.
10748
10749 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10750
10751         * windows-nat.c (get_module_name): Delete.
10752         (windows_get_exec_module_filename): New function, mostly
10753         inspired from get_module_name.
10754         (windows_pid_to_exec_file): Replace call to get_module_name
10755         by call to windows_get_exec_module_filename.
10756
10757 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10758
10759         * windows-nat.c (handle_load_dll): Rewrite this function's
10760         introductory comment.  Remove code using get_module_name
10761         to get the DLL's name.
10762
10763 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10764
10765         * windows-nat.c (get_windows_debug_event): Ignore
10766         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10767         if windows_initialization_done == 0.
10768         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10769         Adjust implementation to always load all DLLs.
10770         (do_initial_windows_stuff): Replace call to
10771         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10772
10773 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10774
10775         * windows-nat.c (_initialize_windows_nat): Deprecate the
10776         "dll-symbols" command.  Turn the "add-shared-symbol-files"
10777         and "assf" aliases into commands, and deprecate them as well.
10778         * NEWS: Add entry explaining that "dll-symbols" and its two
10779         aliases are now deprecated.
10780
10781 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10782
10783         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10784         new-line in debug string.  Remove trailing spaces.
10785
10786 2014-02-19  Stan Shebs  <stan@codesourcery.com>
10787
10788         * darwin-nat.c (darwin_xfer_partial): Fix return type.
10789
10790 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
10791
10792         * NEWS: Add entry for the new feature
10793         * python/py-value.c (valpy_binop): Call value_x_binop for struct
10794         and class values.
10795
10796 2014-02-19  Stan Shebs  <stan@codesourcery.com>
10797
10798         * MAINTAINERS: List Yao Qi as nios2 maintainer.
10799
10800 2014-02-19  Pedro Alves  <palves@redhat.com>
10801
10802         * common/ptid.h (struct ptid): Mention that process_stratum
10803         targets should prefer ptid.lwp.
10804
10805 2014-02-19  Pedro Alves  <palves@redhat.com>
10806
10807         * remote.c (remote_thread_alive, write_ptid, read_ptid)
10808         (read_ptid, remote_newthread_step, remote_threads_extra_info)
10809         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10810         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10811         store remote thread ids rather than ptid.tid.
10812         (_initialize_remote): Adjust.
10813
10814 2014-02-19  Tom Tromey  <tromey@redhat.com>
10815
10816         * target.c (target_get_unwinder): Rewrite.
10817         (target_get_tailcall_unwinder): Rewrite.
10818         * record-btrace.c (record_btrace_to_get_unwinder): New function.
10819         (record_btrace_to_get_tailcall_unwinder): New function.
10820         (init_record_btrace_ops): Update.
10821         * target.h (struct target_ops) <to_get_unwinder,
10822         to_get_tailcall_unwinder>: Now function pointers.  Use
10823         TARGET_DEFAULT_RETURN.
10824
10825 2014-02-19  Tom Tromey  <tromey@redhat.com>
10826
10827         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10828         argument.
10829         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10830
10831 2014-02-19  Tom Tromey  <tromey@redhat.com>
10832
10833         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10834         directly.
10835         * target-delegates.c: Rebuild.
10836         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10837         TARGET_DEFAULT_FUNC.
10838         * target.c (default_target_decr_pc_after_break): Rename from
10839         forward_target_decr_pc_after_break.  Simplify.
10840         (target_decr_pc_after_break): Rely on delegation.
10841
10842 2014-02-19  Tom Tromey  <tromey@redhat.com>
10843
10844         * target.c (update_current_target): Do not INHERIT to_doc or
10845         to_magic.  Do not de_fault to_open or to_close.
10846
10847 2014-02-19  Tom Tromey  <tromey@redhat.com>
10848
10849         * gcore.h (objfile_find_memory_regions): Declare.
10850         * gcore.c (objfile_find_memory_regions): No longer static.  Add
10851         "self" argument.
10852         (_initialize_gcore): Don't call exec_set_find_memory_regions.
10853         * exec.c: Include gcore.h.
10854         (exec_set_find_memory_regions): Remove.
10855         (exec_find_memory_regions): Remove.
10856         (exec_do_find_memory_regions): Remove.
10857         (init_exec_ops): Update.
10858         * defs.h (exec_set_find_memory_regions): Remove.
10859
10860 2014-02-19  Tom Tromey  <tromey@redhat.com>
10861
10862         * target-delegates.c: Rebuild.
10863         * target.h (struct target_ops) <to_extra_thread_info,
10864         to_thread_name, to_pid_to_exec_file, to_get_section_table,
10865         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10866         not 0, in TARGET_DEFAULT_RETURN.
10867
10868 2014-02-19  Tom Tromey  <tromey@redhat.com>
10869
10870         * target.c (complete_target_initialization): Remove casts.  Use
10871         return_zero_has_execution.
10872         (return_zero): Add "ignore" argument.
10873         (return_zero_has_execution): New function.
10874         (init_dummy_target): Remove casts.  Use
10875         return_zero_has_execution.
10876
10877 2014-02-19  Tom Tromey  <tromey@redhat.com>
10878
10879         * target.c (update_current_target): Update comments.  Do not
10880         INHERIT to_stratum.
10881
10882 2014-02-19  Tom Tromey  <tromey@redhat.com>
10883
10884         * arm-linux-nat.c (arm_linux_read_description): Delegate when
10885         needed.
10886         * corelow.c (core_read_description): Delegate when needed.
10887         * remote.c (remote_read_description): Delegate when needed.
10888         * target-delegates.c: Rebuild.
10889         * target.c (target_read_description): Rewrite.
10890         * target.h (struct target_ops) <to_read_description>: Update
10891         comment.  Use TARGET_DEFAULT_RETURN.
10892
10893 2014-02-19  Tom Tromey  <tromey@redhat.com>
10894
10895         * target-delegates.c: Rebuild.
10896         * target.c (update_current_target): Don't inherit or default
10897         to_can_run.
10898         (find_default_run_target): Check against delegate_can_run.
10899         * target.h (struct target_ops) <to_can_run>: Use
10900         TARGET_DEFAULT_RETURN.
10901
10902 2014-02-19  Tom Tromey  <tromey@redhat.com>
10903
10904         * target-delegates.c: Rebuild.
10905         * target.c (target_disconnect): Unconditionally delegate.
10906         * target.h (struct target_ops) <to_disconnect>: Use
10907         TARGET_DEFAULT_NORETURN.
10908
10909 2014-02-19  Tom Tromey  <tromey@redhat.com>
10910
10911         * record.c (record_stop): Unconditionally delegate.
10912         * target-delegates.c: Rebuild.
10913         * target.c (target_stop_recording): Unconditionally delegate.
10914         * target.h (struct target_ops) <to_stop_recording>: Use
10915         TARGET_DEFAULT_IGNORE.
10916
10917 2014-02-19  Tom Tromey  <tromey@redhat.com>
10918
10919         * target-delegates.c: Rebuild.
10920         * target.c (target_enable_btrace): Unconditionally delegate.
10921         * target.h (struct target_ops) <to_enable_btrace>: Use
10922         TARGET_DEFAULT_NORETURN.
10923
10924 2014-02-19  Tom Tromey  <tromey@redhat.com>
10925
10926         * target-delegates.c: Rebuild.
10927         * target.c (target_read_btrace): Unconditionally delegate.
10928         * target.h (struct target_ops) <to_read_btrace>: Use
10929         TARGET_DEFAULT_NORETURN.
10930
10931 2014-02-19  Tom Tromey  <tromey@redhat.com>
10932
10933         * target-delegates.c: Rebuild.
10934         * target.c (target_teardown_btrace): Unconditionally delegate.
10935         * target.h (struct target_ops) <to_teardown_btrace>: 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_disable_btrace): Unconditionally delegate.
10942         * target.h (struct target_ops) <to_disable_btrace>: Use
10943         TARGET_DEFAULT_NORETURN.
10944
10945 2014-02-19  Tom Tromey  <tromey@redhat.com>
10946
10947         * target-delegates.c: Rebuild.
10948         * target.c (default_search_memory): New function.
10949         (simple_search_memory): Update comment.
10950         (target_search_memory): Unconditionally delegate.
10951         * target.h (struct target_ops) <to_search_memory>: Use
10952         TARGET_DEFAULT_FUNC.
10953
10954 2014-02-19  Tom Tromey  <tromey@redhat.com>
10955
10956         * auxv.c (default_auxv_parse): No longer static.
10957         (target_auxv_parse): Unconditionally delegate.
10958         * auxv.h (default_auxv_parse): Declare.
10959         * target-delegates.c: Rebuild.
10960         * target.c: Include auxv.h.
10961         * target.h (struct target_ops) <to_auxv_parse>: Use
10962         TARGET_DEFAULT_FUNC.
10963
10964 2014-02-19  Tom Tromey  <tromey@redhat.com>
10965
10966         * target-delegates.c: Rebuild.
10967         * target.c (target_memory_map): Unconditionally delegate.
10968         * target.h (struct target_ops) <to_memory_map>: Use
10969         TARGET_DEFAULT_RETURN.
10970
10971 2014-02-19  Tom Tromey  <tromey@redhat.com>
10972
10973         * target-delegates.c: Rebuild.
10974         * target.c (target_thread_alive): Unconditionally delegate.
10975         * target.h (struct target_ops) <to_thread_alive>: Use
10976         TARGET_DEFAULT_RETURN.
10977
10978 2014-02-19  Tom Tromey  <tromey@redhat.com>
10979
10980         * target-delegates.c: Rebuild.
10981         * target.c (target_save_record): Unconditionally delegate.
10982         * target.h (struct target_ops) <to_save_record>: Use
10983         TARGET_DEFAULT_NORETURN.
10984
10985 2014-02-19  Tom Tromey  <tromey@redhat.com>
10986
10987         * target-delegates.c: Rebuild.
10988         * target.c (target_delete_record): Unconditionally delegate.
10989         * target.h (struct target_ops) <to_delete_record>: Use
10990         TARGET_DEFAULT_NORETURN.
10991
10992 2014-02-19  Tom Tromey  <tromey@redhat.com>
10993
10994         * target-delegates.c: Rebuild.
10995         * target.c (target_record_is_replaying): Unconditionally
10996         delegate.
10997         * target.h (struct target_ops) <to_record_is_replaying>: Use
10998         TARGET_DEFAULT_RETURN.
10999
11000 2014-02-19  Tom Tromey  <tromey@redhat.com>
11001
11002         * target-delegates.c: Rebuild.
11003         * target.c (target_goto_record_begin): Unconditionally delegate.
11004         * target.h (struct target_ops) <to_goto_record_begin>: Use
11005         TARGET_DEFAULT_NORETURN.
11006
11007 2014-02-19  Tom Tromey  <tromey@redhat.com>
11008
11009         * target-delegates.c: Rebuild.
11010         * target.c (target_goto_record_end): Unconditionally delegate.
11011         * target.h (struct target_ops) <to_goto_record_end>: Use
11012         TARGET_DEFAULT_NORETURN.
11013
11014 2014-02-19  Tom Tromey  <tromey@redhat.com>
11015
11016         * target-delegates.c: Rebuild.
11017         * target.c (target_goto_record): Unconditionally delegate.
11018         * target.h (struct target_ops) <to_goto_record>: Use
11019         TARGET_DEFAULT_NORETURN.
11020
11021 2014-02-19  Tom Tromey  <tromey@redhat.com>
11022
11023         * target-delegates.c: Rebuild.
11024         * target.c (target_insn_history): Unconditionally delegate.
11025         * target.h (struct target_ops) <to_insn_history>: Use
11026         TARGET_DEFAULT_NORETURN.
11027
11028 2014-02-19  Tom Tromey  <tromey@redhat.com>
11029
11030         * target-delegates.c: Rebuild.
11031         * target.c (target_insn_history_from): Unconditionally delegate.
11032         * target.h (struct target_ops) <to_insn_history_from>: Use
11033         TARGET_DEFAULT_NORETURN.
11034
11035 2014-02-19  Tom Tromey  <tromey@redhat.com>
11036
11037         * target-delegates.c: Rebuild.
11038         * target.c (target_insn_history_range): Unconditionally delegate.
11039         * target.h (struct target_ops) <to_insn_history_range>: Use
11040         TARGET_DEFAULT_NORETURN.
11041
11042 2014-02-19  Tom Tromey  <tromey@redhat.com>
11043
11044         * target-delegates.c: Rebuild.
11045         * target.c (target_call_history): Unconditionally delegate.
11046         * target.h (struct target_ops) <to_call_history>: Use
11047         TARGET_DEFAULT_NORETURN.
11048
11049 2014-02-19  Tom Tromey  <tromey@redhat.com>
11050
11051         * target-delegates.c: Rebuild.
11052         * target.c (target_call_history_from): Unconditionally delegate.
11053         * target.h (struct target_ops) <to_call_history_from>: Use
11054         TARGET_DEFAULT_NORETURN.
11055
11056 2014-02-19  Tom Tromey  <tromey@redhat.com>
11057
11058         * target-delegates.c: Rebuild.
11059         * target.c (target_call_history_range): Unconditionally delegate.
11060         * target.h (struct target_ops) <to_call_history_range>: Use
11061         TARGET_DEFAULT_NORETURN.
11062
11063 2014-02-19  Tom Tromey  <tromey@redhat.com>
11064
11065         * target-delegates.c: Rebuild.
11066         * target.c (target_verify_memory): Unconditionally delegate.
11067         * target.h (struct target_ops) <to_verify_memory>: Use
11068         TARGET_DEFAULT_NORETURN.
11069
11070 2014-02-19  Tom Tromey  <tromey@redhat.com>
11071
11072         * target-delegates.c: Rebuild.
11073         * target.c (target_core_of_thread): Unconditionally delegate.
11074         * target.h (struct target_ops) <to_core_of_thread>: Use
11075         TARGET_DEFAULT_RETURN.
11076
11077 2014-02-19  Tom Tromey  <tromey@redhat.com>
11078
11079         * target-delegates.c: Rebuild.
11080         * target.c (target_flash_done): Unconditionally delegate.
11081         * target.h (struct target_ops) <to_flash_done>: Use
11082         TARGET_DEFAULT_NORETURN.
11083
11084 2014-02-19  Tom Tromey  <tromey@redhat.com>
11085
11086         * target-delegates.c: Rebuild.
11087         * target.c (target_flash_erase): Unconditionally delegate.
11088         * target.h (struct target_ops) <to_flash_erase>: Use
11089         TARGET_DEFAULT_NORETURN.
11090
11091 2014-02-19  Tom Tromey  <tromey@redhat.com>
11092
11093         * target-delegates.c: Rebuild.
11094         * target.c (target_get_section_table): Unconditionally delegate.
11095         * target.h (struct target_ops) <to_get_section_table>: Use
11096         TARGET_DEFAULT_RETURN.
11097
11098 2014-02-19  Tom Tromey  <tromey@redhat.com>
11099
11100         * target-delegates.c: Rebuild.
11101         * target.c (target_pid_to_str): Unconditionally delegate.
11102         (init_dummy_target): Don't initialize to_pid_to_str.
11103         (default_pid_to_str): Rename from dummy_pid_to_str.
11104         * target.h (struct target_ops) <to_pid_to_str>: Use
11105         TARGET_DEFAULT_FUNC.
11106
11107 2014-02-19  Tom Tromey  <tromey@redhat.com>
11108
11109         * target-delegates.c: Rebuild.
11110         * target.c (target_find_new_threads): Unconditionally delegate.
11111         * target.h (struct target_ops) <to_find_new_threads>: Use
11112         TARGET_DEFAULT_RETURN.
11113
11114 2014-02-19  Tom Tromey  <tromey@redhat.com>
11115
11116         * target-delegates.c: Rebuild.
11117         * target.c (target_program_signals): Unconditionally delegate.
11118         * target.h (struct target_ops) <to_program_signals>: Use
11119         TARGET_DEFAULT_IGNORE.
11120
11121 2014-02-19  Tom Tromey  <tromey@redhat.com>
11122
11123         * target-delegates.c: Rebuild.
11124         * target.c (target_pass_signals): Unconditionally delegate.
11125         * target.h (struct target_ops) <to_pass_signals>: Use
11126         TARGET_DEFAULT_IGNORE.
11127
11128 2014-02-19  Tom Tromey  <tromey@redhat.com>
11129
11130         * target-delegates.c: Rebuild.
11131         * target.c (default_mourn_inferior): New function.
11132         (target_mourn_inferior): Unconditionally delegate.
11133         * target.h (struct target_ops) <to_mourn_inferior>: Use
11134         TARGET_DEFAULT_FUNC.
11135
11136 2014-02-19  Tom Tromey  <tromey@redhat.com>
11137
11138         * target-delegates.c: Rebuild.
11139         * target.c (default_follow_fork): New function.
11140         (target_follow_fork): Unconditionally delegate.
11141         * target.h (struct target_ops) <to_follow_fork>: Use
11142         TARGET_DEFAULT_FUNC.
11143
11144 2014-02-19  Tom Tromey  <tromey@redhat.com>
11145
11146         * target-delegates.c: Rebuild.
11147         * target.c (target_kill): Unconditionally delegate.
11148         * target.h (struct target_ops) <to_kill>: Use
11149         TARGET_DEFAULT_NORETURN.
11150
11151 2014-02-19  Tom Tromey  <tromey@redhat.com>
11152
11153         * target-delegates.c: Rebuild.
11154         * target.c (target_masked_watch_num_registers): Unconditionally
11155         delegate.
11156         * target.h (struct target_ops) <to_masked_watch_num_registers>:
11157         Use TARGET_DEFAULT_RETURN.
11158
11159 2014-02-19  Tom Tromey  <tromey@redhat.com>
11160
11161         * target-delegates.c: Rebuild.
11162         * target.c (target_remove_mask_watchpoint): Unconditionally
11163         delegate.
11164         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11165         TARGET_DEFAULT_RETURN.
11166
11167 2014-02-19  Tom Tromey  <tromey@redhat.com>
11168
11169         * target-delegates.c: Rebuild.
11170         * target.c (target_insert_mask_watchpoint): Unconditionally
11171         delegate.
11172         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11173         TARGET_DEFAULT_RETURN.
11174
11175 2014-02-19  Tom Tromey  <tromey@redhat.com>
11176
11177         * target-delegates.c: Rebuild.
11178         * target.c (target_ranged_break_num_registers): Unconditionally
11179         delegate.
11180         * target.h (struct target_ops) <to_ranged_break_num_registers>:
11181         Use TARGET_DEFAULT_RETURN.
11182
11183 2014-02-19  Tom Tromey  <tromey@redhat.com>
11184
11185         * target-delegates.c: Rebuild.
11186         * target.c (target_fetch_registers): Unconditionally delegate.
11187         * target.h (struct target_ops) <to_fetch_registers>: Use
11188         TARGET_DEFAULT_NORETURN.
11189
11190 2014-02-19  Tom Tromey  <tromey@redhat.com>
11191
11192         * target-delegates.c: Rebuild.
11193         * target.c (update_current_target): Don't inherit or default
11194         to_stop.
11195         * target.h (struct target_ops) <to_stop>: Use
11196         TARGET_DEFAULT_IGNORE.
11197
11198 2014-02-19  Tom Tromey  <tromey@redhat.com>
11199
11200         * target-delegates.c: Rebuild.
11201         * target.c (update_current_target): Don't inherit or default
11202         to_can_run_breakpoint_commands.
11203         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11204         Use TARGET_DEFAULT_RETURN.
11205
11206 2014-02-19  Tom Tromey  <tromey@redhat.com>
11207
11208         * target-delegates.c: Rebuild.
11209         * target.c (update_current_target): Don't inherit or default
11210         to_supports_evaluation_of_breakpoint_conditions.
11211         * target.h (struct target_ops)
11212         <to_supports_evaluation_of_breakpoint_conditions>: Use
11213         TARGET_DEFAULT_RETURN.
11214
11215 2014-02-19  Tom Tromey  <tromey@redhat.com>
11216
11217         * target-delegates.c: Rebuild.
11218         * target.c (update_current_target): Don't inherit or default
11219         to_augmented_libraries_svr4_read.
11220         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11221         Use TARGET_DEFAULT_RETURN.
11222
11223 2014-02-19  Tom Tromey  <tromey@redhat.com>
11224
11225         * target-delegates.c: Rebuild.
11226         * target.c (update_current_target): Don't inherit or default
11227         to_can_use_agent.
11228         * target.h (struct target_ops) <to_can_use_agent>: Use
11229         TARGET_DEFAULT_RETURN.
11230
11231 2014-02-19  Tom Tromey  <tromey@redhat.com>
11232
11233         * target-delegates.c: Rebuild.
11234         * target.c (update_current_target): Don't inherit or default
11235         to_use_agent.
11236         * target.h (struct target_ops) <to_use_agent>: Use
11237         TARGET_DEFAULT_NORETURN.
11238
11239 2014-02-19  Tom Tromey  <tromey@redhat.com>
11240
11241         * target-delegates.c: Rebuild.
11242         * target.c (update_current_target): Don't inherit or default
11243         to_traceframe_info.
11244         (return_null): Remove.
11245         * target.h (struct target_ops) <to_traceframe_info>: Use
11246         TARGET_DEFAULT_RETURN.
11247
11248 2014-02-19  Tom Tromey  <tromey@redhat.com>
11249
11250         * target-delegates.c: Rebuild.
11251         * target.c (update_current_target): Don't inherit or default
11252         to_static_tracepoint_markers_by_strid.
11253         * target.h (struct target_ops)
11254         <to_static_tracepoint_markers_by_strid>: Use
11255         TARGET_DEFAULT_NORETURN.
11256
11257 2014-02-19  Tom Tromey  <tromey@redhat.com>
11258
11259         * target-delegates.c: Rebuild.
11260         * target.c (update_current_target): Don't inherit or default
11261         to_static_tracepoint_marker_at.
11262         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11263         Use TARGET_DEFAULT_RETURN.
11264
11265 2014-02-19  Tom Tromey  <tromey@redhat.com>
11266
11267         * target-delegates.c: Rebuild.
11268         * target.c (update_current_target): Don't inherit or default
11269         to_set_permissions.
11270         * target.h (struct target_ops) <to_set_permissions>: Use
11271         TARGET_DEFAULT_IGNORE.
11272
11273 2014-02-19  Tom Tromey  <tromey@redhat.com>
11274
11275         * target-delegates.c: Rebuild.
11276         * target.c (update_current_target): Don't inherit or default
11277         to_get_tib_address.
11278         * target.h (struct target_ops) <to_get_tib_address>: Use
11279         TARGET_DEFAULT_NORETURN.
11280
11281 2014-02-19  Tom Tromey  <tromey@redhat.com>
11282
11283         * target-delegates.c: Rebuild.
11284         * target.c (update_current_target): Don't inherit or default
11285         to_set_trace_notes.
11286         * target.h (struct target_ops) <to_set_trace_notes>: Use
11287         TARGET_DEFAULT_RETURN.
11288
11289 2014-02-19  Tom Tromey  <tromey@redhat.com>
11290
11291         * target-delegates.c: Rebuild.
11292         * target.c (update_current_target): Don't initialize
11293         to_set_trace_buffer_size.
11294         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11295         TARGET_DEFAULT_IGNORE.
11296
11297 2014-02-19  Tom Tromey  <tromey@redhat.com>
11298
11299         * target-delegates.c: Rebuild.
11300         * target.c (update_current_target): Don't inherit or default
11301         to_set_circular_trace_buffer.
11302         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11303         TARGET_DEFAULT_IGNORE.
11304
11305 2014-02-19  Tom Tromey  <tromey@redhat.com>
11306
11307         * target-delegates.c: Rebuild.
11308         * target.c (update_current_target): Don't inherit or default
11309         to_set_disconnected_tracing.
11310         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11311         TARGET_DEFAULT_IGNORE.
11312
11313 2014-02-19  Tom Tromey  <tromey@redhat.com>
11314
11315         * target-delegates.c: Rebuild.
11316         * target.c (update_current_target): Don't inherit or default
11317         to_get_min_fast_tracepoint_insn_len.
11318         (return_minus_one): Remove.
11319         * target.h (struct target_ops)
11320         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
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_get_raw_trace_data.
11327         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11328         TARGET_DEFAULT_NORETURN.
11329
11330 2014-02-19  Tom Tromey  <tromey@redhat.com>
11331
11332         * target-delegates.c: Rebuild.
11333         * target.c (update_current_target): Don't inherit or default
11334         to_upload_trace_state_variables.
11335         * target.h (struct target_ops) <to_upload_trace_state_variables>:
11336         Use TARGET_DEFAULT_RETURN.
11337
11338 2014-02-19  Tom Tromey  <tromey@redhat.com>
11339
11340         * target-delegates.c: Rebuild.
11341         * target.c (update_current_target): Don't inherit or default
11342         to_upload_tracepoints.
11343         * target.h (struct target_ops) <to_upload_tracepoints>: Use
11344         TARGET_DEFAULT_RETURN.
11345
11346 2014-02-19  Tom Tromey  <tromey@redhat.com>
11347
11348         * target-delegates.c: Rebuild.
11349         * target.c (update_current_target): Don't inherit or default
11350         to_save_trace_data.
11351         * target.h (struct target_ops) <to_save_trace_data>: Use
11352         TARGET_DEFAULT_NORETURN.
11353
11354 2014-02-19  Tom Tromey  <tromey@redhat.com>
11355
11356         * target-delegates.c: Rebuild.
11357         * target.c (update_current_target): Don't inherit or default
11358         to_get_trace_state_variable_value.
11359         * target.h (struct target_ops)
11360         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11361
11362 2014-02-19  Tom Tromey  <tromey@redhat.com>
11363
11364         * target-delegates.c: Rebuild.
11365         * target.c (update_current_target): Don't inherit or default
11366         to_trace_find.
11367         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11368
11369 2014-02-19  Tom Tromey  <tromey@redhat.com>
11370
11371         * target-delegates.c: Rebuild.
11372         * target.c (update_current_target): Don't inherit or default
11373         to_trace_stop.
11374         * target.h (struct target_ops) <to_trace_stop>: Use
11375         TARGET_DEFAULT_NORETURN.
11376
11377 2014-02-19  Tom Tromey  <tromey@redhat.com>
11378
11379         * target-delegates.c: Rebuild.
11380         * target.c (update_current_target): Don't inherit or default
11381         to_get_tracepoint_status.
11382         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11383         TARGET_DEFAULT_NORETURN.
11384
11385 2014-02-19  Tom Tromey  <tromey@redhat.com>
11386
11387         * target-delegates.c: Rebuild.
11388         * target.c (update_current_target): Don't inherit or default
11389         to_get_trace_status.
11390         * target.h (struct target_ops) <to_get_trace_status>: Use
11391         TARGET_DEFAULT_RETURN.
11392
11393 2014-02-19  Tom Tromey  <tromey@redhat.com>
11394
11395         * target-delegates.c: Rebuild.
11396         * target.c (update_current_target): Don't inherit or default
11397         to_trace_start.
11398         * target.h (struct target_ops) <to_trace_start>: Use
11399         TARGET_DEFAULT_NORETURN.
11400
11401 2014-02-19  Tom Tromey  <tromey@redhat.com>
11402
11403         * target-delegates.c: Rebuild.
11404         * target.c (update_current_target): Don't inherit or default
11405         to_trace_set_readonly_regions.
11406         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11407         Use TARGET_DEFAULT_NORETURN.
11408
11409 2014-02-19  Tom Tromey  <tromey@redhat.com>
11410
11411         * target-delegates.c: Rebuild.
11412         * target.c (update_current_target): Don't inherit or default
11413         to_disable_tracepoint.
11414         * target.h (struct target_ops) <to_disable_tracepoint>: Use
11415         TARGET_DEFAULT_NORETURN.
11416
11417 2014-02-19  Tom Tromey  <tromey@redhat.com>
11418
11419         * target-delegates.c: Rebuild.
11420         * target.c (update_current_target): Don't inherit or default
11421         to_enable_tracepoint.
11422         * target.h (struct target_ops) <to_enable_tracepoint>: Use
11423         TARGET_DEFAULT_NORETURN.
11424
11425 2014-02-19  Tom Tromey  <tromey@redhat.com>
11426
11427         * target-delegates.c: Rebuild.
11428         * target.c (update_current_target): Don't inherit or default
11429         to_download_trace_state_variable.
11430         * target.h (struct target_ops) <to_download_trace_state_variable>:
11431         Use TARGET_DEFAULT_NORETURN.
11432
11433 2014-02-19  Tom Tromey  <tromey@redhat.com>
11434
11435         * target-delegates.c: Rebuild.
11436         * target.c (update_current_target): Don't inherit or default
11437         to_can_download_tracepoint.
11438         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11439         TARGET_DEFAULT_RETURN.
11440
11441 2014-02-19  Tom Tromey  <tromey@redhat.com>
11442
11443         * target-delegates.c: Rebuild.
11444         * target.c (update_current_target): Don't inherit or default
11445         to_download_tracepoint.
11446         * target.h (struct target_ops) <to_download_tracepoint>: Use
11447         TARGET_DEFAULT_NORETURN.
11448
11449 2014-02-19  Tom Tromey  <tromey@redhat.com>
11450
11451         * target-delegates.c: Rebuild.
11452         * target.c (update_current_target): Don't inherit or default
11453         to_trace_init.
11454         * target.h (struct target_ops) <to_trace_init>: Use
11455         TARGET_DEFAULT_RETURN.
11456
11457 2014-02-19  Tom Tromey  <tromey@redhat.com>
11458
11459         * target-delegates.c: Rebuild.
11460         * target.c (update_current_target): Don't inherit or default
11461         to_supports_string_tracing.
11462         * target.h (struct target_ops) <to_supports_string_tracing>: Use
11463         TARGET_DEFAULT_RETURN.
11464
11465 2014-02-19  Tom Tromey  <tromey@redhat.com>
11466
11467         * target-delegates.c: Rebuild.
11468         * target.c (update_current_target): Don't inherit or default
11469         to_supports_enable_disable_tracepoint.
11470         * target.h (struct target_ops)
11471         <to_supports_enable_disable_tracepoint>: Use
11472         TARGET_DEFAULT_RETURN.
11473
11474 2014-02-19  Tom Tromey  <tromey@redhat.com>
11475
11476         * target-delegates.c: Rebuild.
11477         * target.c (update_current_target): Don't inherit or default
11478         to_supports_multi_process.
11479         * target.h (struct target_ops) <to_supports_multi_process>: Use
11480         TARGET_DEFAULT_RETURN.
11481
11482 2014-02-19  Tom Tromey  <tromey@redhat.com>
11483
11484         * target-delegates.c: Rebuild.
11485         * target.c (update_current_target): Don't inherit or default
11486         to_get_ada_task_ptid.
11487         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11488         TARGET_DEFAULT_FUNC.
11489
11490 2014-02-19  Tom Tromey  <tromey@redhat.com>
11491
11492         * target-delegates.c: Rebuild.
11493         * target.c (update_current_target): Don't inherit or default
11494         to_thread_architecture.
11495         * target.h (struct target_ops) <to_thread_architecture>: Use
11496         TARGET_DEFAULT_FUNC.
11497
11498 2014-02-19  Tom Tromey  <tromey@redhat.com>
11499
11500         * target-delegates.c: Rebuild.
11501         * target.c (update_current_target): Don't inherit or default
11502         to_execution_direction.
11503         * target.h (struct target_ops) <to_execution_direction>: Use
11504         TARGET_DEFAULT_FUNC.
11505
11506 2014-02-19  Tom Tromey  <tromey@redhat.com>
11507
11508         * target-delegates.c: Rebuild.
11509         * target.c (update_current_target): Don't inherit or default
11510         to_can_execute_reverse.
11511         * target.h (struct target_ops) <to_can_execute_reverse>: Use
11512         TARGET_DEFAULT_RETURN.
11513         (target_can_execute_reverse): Unconditionally delegate.
11514
11515 2014-02-19  Tom Tromey  <tromey@redhat.com>
11516
11517         * target-delegates.c: Rebuild.
11518         * target.c (update_current_target): Don't inherit or default
11519         to_goto_bookmark.
11520         (dummy_goto_bookmark): Remove.
11521         (init_dummy_target): Don't inherit or default to_goto_bookmark.
11522         * target.h (struct target_ops) <to_goto_bookmark>: Use
11523         TARGET_DEFAULT_NORETURN.
11524
11525 2014-02-19  Tom Tromey  <tromey@redhat.com>
11526
11527         * target-delegates.c: Rebuild.
11528         * target.c (update_current_target): Don't inherit or default
11529         to_get_bookmark.
11530         (dummy_get_bookmark): Remove.
11531         (init_dummy_target): Don't inherit or default to_get_bookmark.
11532         * target.h (struct target_ops) <to_get_bookmark>: 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_make_corefile_notes.
11540         (init_dummy_target): Don't initialize to_make_corefile_notes.
11541         * target.h (struct target_ops) <to_make_corefile_notes>: Use
11542         TARGET_DEFAULT_FUNC.
11543
11544 2014-02-19  Tom Tromey  <tromey@redhat.com>
11545
11546         * target-delegates.c: Rebuild.
11547         * target.c (update_current_target): Don't inherit or default
11548         to_find_memory_regions.
11549         (init_dummy_target): Don't initialize to_find_memory_regions.
11550         * target.h (struct target_ops) <to_find_memory_regions>: Use
11551         TARGET_DEFAULT_FUNC.
11552
11553 2014-02-19  Tom Tromey  <tromey@redhat.com>
11554
11555         * target-delegates.c: Rebuild.
11556         * target.c (update_current_target): Don't inherit or default
11557         to_log_command.
11558         * target.h (struct target_ops) <to_log_command>: Use
11559         TARGET_DEFAULT_IGNORE.
11560         (target_log_command): Unconditionally delegate.
11561
11562 2014-02-19  Tom Tromey  <tromey@redhat.com>
11563
11564         * target-delegates.c: Rebuild.
11565         * target.c (update_current_target): Don't inherit or default
11566         to_pid_to_exec_file.
11567         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11568         TARGET_DEFAULT_RETURN.
11569
11570 2014-02-19  Tom Tromey  <tromey@redhat.com>
11571
11572         * target-delegates.c: Rebuild.
11573         * target.c (update_current_target): Don't inherit or default
11574         to_thread_name.
11575         (target_thread_name): Unconditionally delegate.
11576         * target.h (struct target_ops) <to_thread_name>: Use
11577         TARGET_DEFAULT_RETURN.
11578
11579 2014-02-19  Tom Tromey  <tromey@redhat.com>
11580
11581         * target-delegates.c: Rebuild.
11582         * target.c (update_current_target): Don't inherit or default
11583         to_extra_thread_info.
11584         * target.h (struct target_ops) <to_extra_thread_info>: Use
11585         TARGET_DEFAULT_RETURN.
11586
11587 2014-02-19  Tom Tromey  <tromey@redhat.com>
11588
11589         * target-delegates.c: Rebuild.
11590         * target.c (update_current_target): Don't inherit or default
11591         to_has_exited.
11592         * target.h (struct target_ops) <to_has_exited>: Use
11593         TARGET_DEFAULT_RETURN..
11594
11595 2014-02-19  Tom Tromey  <tromey@redhat.com>
11596
11597         * target-delegates.c: Rebuild.
11598         * target.c (update_current_target): Don't inherit or default
11599         to_set_syscall_catchpoint.
11600         (return_one): Remove.
11601         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11602         TARGET_DEFAULT_RETURN.
11603
11604 2014-02-19  Tom Tromey  <tromey@redhat.com>
11605
11606         * target-delegates.c: Rebuild.
11607         * target.c (update_current_target): Don't inherit or default
11608         to_insert_exec_catchpoint.
11609         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11610         TARGET_DEFAULT_RETURN.
11611
11612 2014-01-08  Tom Tromey  <tromey@redhat.com>
11613
11614         * target-delegates.c: Rebuild.
11615         * target.c (update_current_target): Don't inherit or default
11616         to_insert_exec_catchpoint.
11617         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11618         TARGET_DEFAULT_RETURN.
11619
11620 2014-02-19  Tom Tromey  <tromey@redhat.com>
11621
11622         * target-delegates.c: Rebuild.
11623         * target.c (update_current_target): Don't inherit or default
11624         to_remove_vfork_catchpoint.
11625         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11626         TARGET_DEFAULT_RETURN.
11627
11628 2014-02-19  Tom Tromey  <tromey@redhat.com>
11629
11630         * target-delegates.c: Rebuild.
11631         * target.c (update_current_target): Don't inherit or default
11632         to_insert_vfork_catchpoint.
11633         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11634         TARGET_DEFAULT_RETURN.
11635
11636 2014-02-19  Tom Tromey  <tromey@redhat.com>
11637
11638         * target-delegates.c: Rebuild.
11639         * target.c (update_current_target): Don't inherit or default
11640         to_remove_fork_catchpoint.
11641         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11642         TARGET_DEFAULT_RETURN.
11643
11644 2014-02-19  Tom Tromey  <tromey@redhat.com>
11645
11646         * target-delegates.c: Rebuild.
11647         * target.c (update_current_target): Don't inherit or default
11648         to_insert_fork_catchpoint.
11649         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11650         TARGET_DEFAULT_RETURN.
11651
11652 2014-02-19  Tom Tromey  <tromey@redhat.com>
11653
11654         * target-delegates.c: Rebuild.
11655         * target.c (update_current_target): Don't inherit or default
11656         to_post_startup_inferior.
11657         * target.h (struct target_ops) <to_post_startup_inferior>: Use
11658         TARGET_DEFAULT_IGNORE.
11659
11660 2014-02-19  Tom Tromey  <tromey@redhat.com>
11661
11662         * target-delegates.c: Rebuild.
11663         * target.c (update_current_target): Don't inherit or default
11664         to_load.
11665         * target.h (struct target_ops) <to_load>: Use
11666         TARGET_DEFAULT_NORETURN.
11667
11668 2014-02-19  Tom Tromey  <tromey@redhat.com>
11669
11670         * target-delegates.c: Rebuild.
11671         * target.c (update_current_target): Don't inherit or default
11672         to_terminal_info.
11673         * target.h (struct target_ops) <to_terminal_info>: Use
11674         TARGET_DEFAULT_FUNC.
11675
11676 2014-02-19  Tom Tromey  <tromey@redhat.com>
11677
11678         * target-delegates.c: Rebuild.
11679         * target.c (update_current_target): Don't inherit or default
11680         to_terminal_save_ours.
11681         * target.h (struct target_ops) <to_terminal_save_ours>: Use
11682         TARGET_DEFAULT_IGNORE.
11683
11684 2014-02-19  Tom Tromey  <tromey@redhat.com>
11685
11686         * target-delegates.c: Rebuild.
11687         * target.c (update_current_target): Don't inherit or default
11688         to_terminal_ours.
11689         * target.h (struct target_ops) <to_terminal_ours>: Use
11690         TARGET_DEFAULT_IGNORE.
11691
11692 2014-02-19  Tom Tromey  <tromey@redhat.com>
11693
11694         * target-delegates.c: Rebuild.
11695         * target.c (update_current_target): Don't inherit or default
11696         to_terminal_ours_for_output.
11697         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11698         TARGET_DEFAULT_IGNORE.
11699
11700 2014-02-19  Tom Tromey  <tromey@redhat.com>
11701
11702         * target-delegates.c: Rebuild.
11703         * target.c (update_current_target): Don't inherit or default
11704         to_terminal_inferior.
11705         * target.h (struct target_ops) <to_terminal_inferior>: Use
11706         TARGET_DEFAULT_IGNORE.
11707
11708 2014-02-19  Tom Tromey  <tromey@redhat.com>
11709
11710         * target-delegates.c: Rebuild.
11711         * target.c (update_current_target): Don't inherit or default
11712         to_terminal_init.
11713         * target.h (struct target_ops) <to_terminal_init>: Use
11714         TARGET_DEFAULT_IGNORE.
11715
11716 2014-02-19  Tom Tromey  <tromey@redhat.com>
11717
11718         * target-delegates.c: Rebuild.
11719         * target.c (update_current_target): Don't inherit or default
11720         to_can_accel_watchpoint_condition.
11721         * target.h (struct target_ops)
11722         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11723
11724 2014-02-19  Tom Tromey  <tromey@redhat.com>
11725
11726         * target-delegates.c: Rebuild.
11727         * target.c (update_current_target): Don't inherit or default
11728         to_region_ok_for_hw_watchpoint.
11729         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11730         Use TARGET_DEFAULT_FUNC.
11731
11732 2014-02-19  Tom Tromey  <tromey@redhat.com>
11733
11734         * target-delegates.c: Rebuild.
11735         * target.c (update_current_target): Don't inherit or default
11736         to_watchpoint_addr_within_range.
11737         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11738         Use TARGET_DEFAULT_FUNC.
11739
11740 2014-02-19  Tom Tromey  <tromey@redhat.com>
11741
11742         * target-delegates.c: Rebuild.
11743         * target.c (update_current_target): Don't inherit or default
11744         to_remove_watchpoint.
11745         * target.h (struct target_ops) <to_remove_watchpoint>: Use
11746         TARGET_DEFAULT_NORETURN.
11747
11748 2014-02-19  Tom Tromey  <tromey@redhat.com>
11749
11750         * target-delegates.c: Rebuild.
11751         * target.c (update_current_target): Don't inherit or default
11752         to_insert_watchpoint.
11753         * target.h (struct target_ops) <to_insert_watchpoint>: Use
11754         TARGET_DEFAULT_RETURN.
11755
11756 2014-02-19  Tom Tromey  <tromey@redhat.com>
11757
11758         * target-delegates.c: Rebuild.
11759         * target.c (update_current_target): Don't inherit or default
11760         to_remove_hw_breakpoint.
11761         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11762         TARGET_DEFAULT_RETURN.
11763
11764 2014-02-19  Tom Tromey  <tromey@redhat.com>
11765
11766         * target-delegates.c: Rebuild.
11767         * target.c (update_current_target): Don't inherit or default
11768         to_insert_hw_breakpoint.
11769         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11770         TARGET_DEFAULT_RETURN.
11771
11772 2014-02-19  Tom Tromey  <tromey@redhat.com>
11773
11774         * target-delegates.c: Rebuild.
11775         * target.c (update_current_target): Don't inherit or default
11776         to_can_use_hw_breakpoint.
11777         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11778         TARGET_DEFAULT_RETURN.
11779
11780 2014-02-19  Tom Tromey  <tromey@redhat.com>
11781
11782         * target-delegates.c: Rebuild.
11783         * target.c (update_current_target): Don't inherit or default
11784         to_files_info.
11785         * target.h (struct target_ops) <to_files_info>: Use
11786         TARGET_DEFAULT_IGNORE.
11787
11788 2014-02-19  Tom Tromey  <tromey@redhat.com>
11789
11790         * target-delegates.c: Rebuild.
11791         * target.c (update_current_target): Don't inherit or default
11792         to_store.
11793         * target.h (struct target_ops) <to_store>: Use
11794         TARGET_DEFAULT_NORETURN.
11795
11796 2014-02-19  Tom Tromey  <tromey@redhat.com>
11797
11798         * target-delegates.c: Rebuild.
11799         * target.c (update_current_target): Don't inherit or default
11800         to_post_attach.
11801         * target.h (struct target_ops) <to_post_attach>: Use
11802         TARGET_DEFAULT_IGNORE.
11803
11804 2014-02-19  Tom Tromey  <tromey@redhat.com>
11805
11806         * target-delegates.c: Rebuild.
11807         * target.c (update_current_target): Don't inherit or default
11808         to_rcmd.
11809         (default_rcmd): New function.
11810         (do_monitor_command): Unconditionally delegate.
11811         * target.h (struct target_ops) <to_rmcd>: Use
11812         TARGET_DEFAULT_FUNC.
11813
11814 2014-02-19  Tom Tromey  <tromey@redhat.com>
11815
11816         * target-delegates.c: Rebuild.
11817         * target.c (init_dummy_target): Don't initialize to_attach.
11818         (target_attach): Unconditionally delegate.
11819         * target.h (struct target_ops) <to_attach>: Use
11820         TARGET_DEFAULT_FUNC.
11821
11822 2014-02-19  Tom Tromey  <tromey@redhat.com>
11823
11824         * target-delegates.c: Rebuild.
11825         * target.c (target_detach): Unconditionally delegate.
11826         (init_dummy_target): Don't initialize to_detach.
11827         * target.h (struct target_ops) <to_detach>: Use
11828         TARGET_DEFAULT_IGNORE.
11829
11830 2014-02-19  Tom Tromey  <tromey@redhat.com>
11831
11832         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11833         Add argument.
11834         (target_augmented_libraries_svr4_read): Add argument.
11835         * target.c (update_current_target): Update.
11836         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11837         argument.
11838
11839 2014-02-19  Tom Tromey  <tromey@redhat.com>
11840
11841         * target.h (struct target_ops) <to_call_history_range>: Add
11842         argument.
11843         * target.c (target_call_history_range): Add argument.
11844         * record-btrace.c (record_btrace_call_history_range): Add 'self'
11845         argument.
11846         (record_btrace_call_history_from): Update.
11847
11848 2014-02-19  Tom Tromey  <tromey@redhat.com>
11849
11850         * target.h (struct target_ops) <to_call_history_from>: Add
11851         argument.
11852         * target.c (target_call_history_from): Add argument.
11853         * record-btrace.c (record_btrace_call_history_from): Add 'self'
11854         argument.
11855
11856 2014-02-19  Tom Tromey  <tromey@redhat.com>
11857
11858         * target.h (struct target_ops) <to_call_history>: Add argument.
11859         * target.c (target_call_history): Add argument.
11860         * record-btrace.c (record_btrace_call_history): Add 'self'
11861         argument.
11862
11863 2014-02-19  Tom Tromey  <tromey@redhat.com>
11864
11865         * target.h (struct target_ops) <to_insn_history_range>: Add
11866         argument.
11867         * target.c (target_insn_history_range): Add argument.
11868         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11869         argument.
11870         (record_btrace_insn_history_from): Update.
11871
11872 2014-02-19  Tom Tromey  <tromey@redhat.com>
11873
11874         * target.h (struct target_ops) <to_insn_history_from>: Add
11875         argument.
11876         * target.c (target_insn_history_from): Add argument.
11877         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11878         argument.
11879
11880 2014-02-19  Tom Tromey  <tromey@redhat.com>
11881
11882         * target.h (struct target_ops) <to_insn_history>: Add argument.
11883         * target.c (target_insn_history): Add argument.
11884         * record-btrace.c (record_btrace_insn_history): Add 'self'
11885         argument.
11886
11887 2014-02-19  Tom Tromey  <tromey@redhat.com>
11888
11889         * target.h (struct target_ops) <to_goto_record>: Add argument.
11890         * target.c (target_goto_record): Add argument.
11891         * record-full.c (record_full_goto): Add 'self' argument.
11892         * record-btrace.c (record_btrace_goto): Add 'self' argument.
11893
11894 2014-02-19  Tom Tromey  <tromey@redhat.com>
11895
11896         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11897         * target.c (target_goto_record_end): Add argument.
11898         * record-full.c (record_full_goto_end): Add 'self' argument.
11899         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11900
11901 2014-02-19  Tom Tromey  <tromey@redhat.com>
11902
11903         * target.h (struct target_ops) <to_goto_record_begin>: Add
11904         argument.
11905         * target.c (target_goto_record_begin): Add argument.
11906         * record-full.c (record_full_goto_begin): Add 'self' argument.
11907         * record-btrace.c (record_btrace_goto_begin): Add 'self'
11908         argument.
11909
11910 2014-02-19  Tom Tromey  <tromey@redhat.com>
11911
11912         * target.h (struct target_ops) <to_record_is_replaying>: Add
11913         argument.
11914         * target.c (target_record_is_replaying): Add argument.
11915         * record-full.c (record_full_is_replaying): Add 'self' argument.
11916         * record-btrace.c (record_btrace_is_replaying): Add 'self'
11917         argument.
11918         (record_btrace_xfer_partial, record_btrace_store_registers)
11919         (record_btrace_prepare_to_store, record_btrace_resume)
11920         (record_btrace_wait, record_btrace_decr_pc_after_break)
11921         (record_btrace_find_new_threads, record_btrace_thread_alive):
11922         Update.
11923
11924 2014-02-19  Tom Tromey  <tromey@redhat.com>
11925
11926         * target.h (struct target_ops) <to_delete_record>: Add argument.
11927         * target.c (target_delete_record): Add argument.
11928         * record-full.c (record_full_delete): Add 'self' argument.
11929
11930 2014-02-19  Tom Tromey  <tromey@redhat.com>
11931
11932         * target.h (struct target_ops) <to_save_record>: Add argument.
11933         * target.c (target_save_record): Add argument.
11934         * record-full.c (record_full_save): Add 'self' argument.
11935         (record_full_save): Add 'self' argument.
11936
11937 2014-02-19  Tom Tromey  <tromey@redhat.com>
11938
11939         * target.h (struct target_ops) <to_info_record>: Add argument.
11940         * target.c (target_info_record): Add argument.
11941         * record.c (info_record_command): Add argument.
11942         * record-full.c (record_full_info): Add 'self' argument.
11943         * record-btrace.c (record_btrace_info): Add 'self' argument.
11944
11945 2014-02-19  Tom Tromey  <tromey@redhat.com>
11946
11947         * target.h (struct target_ops) <to_stop_recording>: Add argument.
11948         * target.c (target_stop_recording): Add argument.
11949         * record.c (record_stop): Add argument.
11950         * record-btrace.c (record_btrace_stop_recording): Add 'self'
11951         argument.
11952
11953 2014-02-19  Tom Tromey  <tromey@redhat.com>
11954
11955         * target.h (struct target_ops) <to_read_btrace>: Add argument.
11956         * target.c (struct target_ops) <to_read_btrace>: Add argument.
11957         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11958         argument.
11959         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11960         (_initialize_amd64_linux_nat): Use it.
11961         * i386-linux-nat.c (i386_linux_read_btrace): New function.
11962         (_initialize_i386_linux_nat): Use it.
11963
11964 2014-02-19  Tom Tromey  <tromey@redhat.com>
11965
11966         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11967         * target.c (target_teardown_btrace): Add argument.
11968         * remote.c (remote_teardown_btrace): Add 'self' argument.
11969         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11970         argument.
11971         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11972         argument.
11973
11974 2014-02-19  Tom Tromey  <tromey@redhat.com>
11975
11976         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11977         * target.c (target_disable_btrace): Add argument.
11978         * remote.c (remote_disable_btrace): Add 'self' argument.
11979         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11980         argument.
11981         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11982         argument.
11983
11984 2014-02-19  Tom Tromey  <tromey@redhat.com>
11985
11986         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
11987         * target.c (target_enable_btrace): Add argument.
11988         * remote.c (remote_enable_btrace): Add 'self' argument.
11989         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
11990         argument.
11991         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
11992         argument.
11993
11994 2014-02-19  Tom Tromey  <tromey@redhat.com>
11995
11996         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
11997         (target_can_use_agent): Add argument.
11998         * target.c (update_current_target): Update.
11999         * remote.c (remote_can_use_agent): Add 'self' argument.
12000         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12001
12002 2014-02-19  Tom Tromey  <tromey@redhat.com>
12003
12004         * target.h (struct target_ops) <to_use_agent>: Add argument.
12005         (target_use_agent): Add argument.
12006         * target.c (update_current_target): Update.
12007         * remote.c (remote_use_agent): Add 'self' argument.
12008         * inf-child.c (inf_child_use_agent): Add 'self' argument.
12009
12010 2014-02-19  Tom Tromey  <tromey@redhat.com>
12011
12012         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12013         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12014         (target_traceframe_info): Add argument.
12015         * target.c (update_current_target): Update.
12016         * remote.c (remote_traceframe_info): Add 'self' argument.
12017         * ctf.c (ctf_traceframe_info): Add 'self' argument.
12018
12019 2014-02-19  Tom Tromey  <tromey@redhat.com>
12020
12021         * target.h (target_static_tracepoint_markers_by_strid): Add
12022         argument.
12023         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12024         'self' argument.
12025         * target.c (update_current_target): Update.
12026         * remote.c (struct target_ops)
12027         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12028         * linux-nat.c (struct target_ops)
12029         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12030
12031 2014-02-19  Tom Tromey  <tromey@redhat.com>
12032
12033         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12034         Add argument.
12035         (target_static_tracepoint_marker_at): Add argument.
12036         * target.c (update_current_target): Update.
12037         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12038         argument.
12039
12040 2014-02-19  Tom Tromey  <tromey@redhat.com>
12041
12042         * target.h (struct target_ops) <to_set_permissions>: Add argument.
12043         (target_set_permissions): Add argument.
12044         * target.c (update_current_target): Update.
12045         * remote.c (remote_set_permissions): Add 'self' argument.
12046         (remote_start_remote): Update.
12047
12048 2014-02-19  Tom Tromey  <tromey@redhat.com>
12049
12050         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12051         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12052         (target_get_tib_address): Add argument.
12053         * target.c (update_current_target): Update.
12054         * remote.c (remote_get_tib_address): Add 'self' argument.
12055
12056 2014-02-19  Tom Tromey  <tromey@redhat.com>
12057
12058         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12059         (target_set_trace_notes): Add argument.
12060         * target.c (update_current_target): Update.
12061         * remote.c (remote_set_trace_notes): Add 'self' argument.
12062
12063 2014-02-19  Tom Tromey  <tromey@redhat.com>
12064
12065         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12066         argument.
12067         (target_set_trace_buffer_size): Add argument.
12068         * target.c (update_current_target): Update.
12069         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12070
12071 2014-02-19  Tom Tromey  <tromey@redhat.com>
12072
12073         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12074         argument.
12075         (target_set_circular_trace_buffer): Add argument.
12076         * target.c (update_current_target): Update.
12077         * remote.c (remote_set_circular_trace_buffer): Add 'self'
12078         argument.
12079
12080 2014-02-19  Tom Tromey  <tromey@redhat.com>
12081
12082         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12083         argument.
12084         (target_set_disconnected_tracing): Add argument.
12085         * target.c (update_current_target): Update.
12086         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12087
12088 2014-02-19  Tom Tromey  <tromey@redhat.com>
12089
12090         * target.h (struct target_ops)
12091         <to_get_min_fast_tracepoint_insn_len>: Add argument.
12092         (target_get_min_fast_tracepoint_insn_len): Add argument.
12093         * target.c (update_current_target): Update.
12094         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12095         argument.
12096
12097 2014-02-19  Tom Tromey  <tromey@redhat.com>
12098
12099         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12100         argument.
12101         (target_get_raw_trace_data): Add argument.
12102         * target.c (update_current_target): Update.
12103         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12104
12105 2014-02-19  Tom Tromey  <tromey@redhat.com>
12106
12107         * target.h (struct target_ops) <to_upload_trace_state_variables>:
12108         Add argument.
12109         (target_upload_trace_state_variables): Add argument.
12110         * target.c (update_current_target): Update.
12111         * remote.c (remote_upload_trace_state_variables): Add 'self'
12112         argument.
12113         (remote_start_remote): Update.
12114
12115 2014-02-19  Tom Tromey  <tromey@redhat.com>
12116
12117         * target.h (struct target_ops) <to_upload_tracepoints>: Add
12118         argument.
12119         (target_upload_tracepoints): Add argument.
12120         * target.c (update_current_target): Update.
12121         * remote.c (remote_upload_tracepoints): Add 'self' argument.
12122         (remote_start_remote): Update.
12123
12124 2014-02-19  Tom Tromey  <tromey@redhat.com>
12125
12126         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12127         (target_save_trace_data): Add argument.
12128         * target.c (update_current_target): Update.
12129         * remote.c (remote_save_trace_data): Add 'self' argument.
12130
12131 2014-02-19  Tom Tromey  <tromey@redhat.com>
12132
12133         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12134         argument.
12135         * target.h (struct target_ops)
12136         <to_get_trace_state_variable_value>: Add argument.
12137         (target_get_trace_state_variable_value): Add argument.
12138         * target.c (update_current_target): Update.
12139         * remote.c (remote_get_trace_state_variable_value): Add 'self'
12140         argument.
12141         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12142
12143 2014-02-19  Tom Tromey  <tromey@redhat.com>
12144
12145         * tracepoint.c (tfile_trace_find): Add 'self' argument.
12146         * target.h (struct target_ops) <to_trace_find>: Add argument.
12147         (target_trace_find): Add argument.
12148         * target.c (update_current_target): Update.
12149         * remote.c (remote_trace_find): Add 'self' argument.
12150         * ctf.c (ctf_trace_find): Add 'self' argument.
12151
12152 2014-02-19  Tom Tromey  <tromey@redhat.com>
12153
12154         * target.h (struct target_ops) <to_trace_stop>: Add argument.
12155         (target_trace_stop): Add argument.
12156         * target.c (update_current_target): Update.
12157         * remote.c (remote_trace_stop): Add 'self' argument.
12158
12159 2014-02-19  Tom Tromey  <tromey@redhat.com>
12160
12161         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12162         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12163         argument.
12164         (target_get_tracepoint_status): Add argument.
12165         * target.c (update_current_target): Update.
12166         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12167
12168 2014-02-19  Tom Tromey  <tromey@redhat.com>
12169
12170         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12171         * target.h (struct target_ops) <to_get_trace_status>: Add
12172         argument.
12173         (target_get_trace_status): Add argument.
12174         * target.c (update_current_target): Update.
12175         * remote.c (remote_get_trace_status): Add 'self' argument.
12176         (remote_start_remote, remote_can_download_tracepoint): Update.
12177         * ctf.c (ctf_get_trace_status): Add 'self' argument.
12178
12179 2014-02-19  Tom Tromey  <tromey@redhat.com>
12180
12181         * target.h (struct target_ops) <to_trace_start>: Add argument.
12182         (target_trace_start): Add argument.
12183         * target.c (update_current_target): Update.
12184         * remote.c (remote_trace_start): Add 'self' argument.
12185
12186 2014-02-19  Tom Tromey  <tromey@redhat.com>
12187
12188         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12189         Add argument.
12190         (target_trace_set_readonly_regions): Add argument.
12191         * target.c (update_current_target): Update.
12192         * remote.c (remote_trace_set_readonly_regions): Add 'self'
12193         argument.
12194
12195 2014-02-19  Tom Tromey  <tromey@redhat.com>
12196
12197         * target.h (struct target_ops) <to_disable_tracepoint>: Add
12198         argument.
12199         (target_disable_tracepoint): Add argument.
12200         * target.c (update_current_target): Update.
12201         * remote.c (remote_disable_tracepoint): Add 'self' argument.
12202
12203 2014-02-19  Tom Tromey  <tromey@redhat.com>
12204
12205         * target.h (struct target_ops) <to_enable_tracepoint>: Add
12206         argument.
12207         (target_enable_tracepoint): Add argument.
12208         * target.c (update_current_target): Update.
12209         * remote.c (remote_enable_tracepoint): Add 'self' argument.
12210
12211 2014-02-19  Tom Tromey  <tromey@redhat.com>
12212
12213         * target.h (struct target_ops) <to_download_trace_state_variable>:
12214         Add argument.
12215         (target_download_trace_state_variable): Add argument.
12216         * target.c (update_current_target): Update.
12217         * remote.c (remote_download_trace_state_variable): Add 'self'
12218         argument.
12219
12220 2014-02-19  Tom Tromey  <tromey@redhat.com>
12221
12222         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12223         argument.
12224         (target_can_download_tracepoint): Add argument.
12225         * target.c (update_current_target): Update.
12226         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12227
12228 2014-02-19  Tom Tromey  <tromey@redhat.com>
12229
12230         * target.h (struct target_ops) <to_download_tracepoint>: Add
12231         argument.
12232         (target_download_tracepoint): Add argument.
12233         * target.c (update_current_target): Update.
12234         * remote.c (remote_download_tracepoint): Add 'self' argument.
12235
12236 2014-02-19  Tom Tromey  <tromey@redhat.com>
12237
12238         * target.h (struct target_ops) <to_trace_init>: Add argument.
12239         (target_trace_init): Add argument.
12240         * target.c (update_current_target): Update.
12241         * remote.c (remote_trace_init): Add 'self' argument.
12242
12243 2014-02-19  Tom Tromey  <tromey@redhat.com>
12244
12245         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12246         * target.c (target_fileio_readlink): Add argument.
12247         * remote.c (remote_hostio_readlink): Add 'self' argument.
12248         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12249
12250 2014-02-19  Tom Tromey  <tromey@redhat.com>
12251
12252         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12253         * target.c (target_fileio_unlink): Add argument.
12254         * remote.c (remote_hostio_unlink): Add 'self' argument.
12255         (remote_file_delete): Update.
12256         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12257
12258 2014-02-19  Tom Tromey  <tromey@redhat.com>
12259
12260         * target.h (struct target_ops) <to_fileio_close>: Add argument.
12261         * target.c (target_fileio_close): Add argument.
12262         * remote.c (remote_hostio_close): Add 'self' argument.
12263         (remote_hostio_close_cleanup): Update.
12264         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12265         Update.
12266         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12267
12268 2014-02-19  Tom Tromey  <tromey@redhat.com>
12269
12270         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12271         * target.c (target_fileio_pread): Add argument.
12272         * remote.c (remote_hostio_pread): Add 'self' argument.
12273         (remote_bfd_iovec_pread, remote_file_get): Update.
12274         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12275
12276 2014-02-19  Tom Tromey  <tromey@redhat.com>
12277
12278         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12279         * target.c (target_fileio_pwrite): Add argument.
12280         * remote.c (remote_hostio_pwrite): Add 'self' argument.
12281         (remote_file_put): Update.
12282         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12283
12284 2014-02-19  Tom Tromey  <tromey@redhat.com>
12285
12286         * target.h (struct target_ops) <to_fileio_open>: Add argument.
12287         * target.c (target_fileio_open): Add argument.
12288         * remote.c (remote_hostio_open): Add 'self' argument.
12289         (remote_bfd_iovec_open): Add 'self' argument.
12290         (remote_file_put): Add 'self' argument.
12291         (remote_file_get): Add 'self' argument.
12292         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12293
12294 2014-02-19  Tom Tromey  <tromey@redhat.com>
12295
12296         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12297         Add argument.
12298         (target_can_run_breakpoint_commands): Add argument.
12299         * target.c (update_current_target): Update.
12300         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12301         argument.
12302         (remote_insert_breakpoint): Add 'self' argument.
12303         (remote_insert_hw_breakpoint): Add 'self' argument.
12304         (remote_can_run_breakpoint_commands): Add 'self' argument.
12305
12306 2014-02-19  Tom Tromey  <tromey@redhat.com>
12307
12308         * target.h (struct target_ops)
12309         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12310         (target_supports_evaluation_of_breakpoint_conditions): Add
12311         argument.
12312         * target.c (update_current_target): Update.
12313         * remote.c (remote_supports_cond_breakpoints): Add 'self'
12314         argument.
12315         (remote_insert_breakpoint): Add 'self' argument.
12316         (remote_insert_hw_breakpoint): Add 'self' argument.
12317         (remote_supports_cond_breakpoints): Add 'self' argument.
12318
12319 2014-02-19  Tom Tromey  <tromey@redhat.com>
12320
12321         * target.h (struct target_ops) <to_supports_string_tracing>: Add
12322         argument.
12323         (target_supports_string_tracing): Add argument.
12324         * target.c (update_current_target): Update.
12325         * remote.c (remote_supports_string_tracing): Add 'self' argument.
12326
12327 2014-02-19  Tom Tromey  <tromey@redhat.com>
12328
12329         * target.h (struct target_ops)
12330         <to_supports_disable_randomization>: Add argument.
12331         * target.c (find_default_supports_disable_randomization): Add
12332         argument.
12333         (target_supports_disable_randomization): Add argument.
12334         (find_default_supports_disable_randomization): Add 'self'
12335         argument.
12336         * remote.c (extended_remote_supports_disable_randomization): Add
12337         'self' argument.
12338         (remote_supports_disable_randomization): Add 'self' argument.
12339         (extended_remote_create_inferior): Update.
12340         * linux-nat.c (linux_nat_supports_disable_randomization): Add
12341         'self' argument.
12342
12343 2014-02-19  Tom Tromey  <tromey@redhat.com>
12344
12345         * target.h (struct target_ops)
12346         <to_supports_enable_disable_tracepoint>: Add argument.
12347         (target_supports_enable_disable_tracepoint): Add argument.
12348         * target.c (update_current_target): Update.
12349         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12350         argument.
12351
12352 2014-02-19  Tom Tromey  <tromey@redhat.com>
12353
12354         * target.h (struct target_ops) <to_supports_multi_process>: Add
12355         argument.
12356         (target_supports_multi_process): Add argument.
12357         * target.c (update_current_target): Update.
12358         * remote.c (remote_supports_multi_process): Add 'self' argument.
12359         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12360         argument.
12361         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12362         argument.
12363
12364 2014-02-19  Tom Tromey  <tromey@redhat.com>
12365
12366         * target.h (struct target_ops) <to_execution_direction>: Add
12367         argument.
12368         (target_execution_direction): Add argument.
12369         * target.c (default_execution_direction): Add 'self' argument.
12370         * record-full.c (record_full_execution_direction): Add 'self'
12371         argument.
12372
12373 2014-02-19  Tom Tromey  <tromey@redhat.com>
12374
12375         * target.h (struct target_ops) <to_can_execute_reverse>: Add
12376         argument.
12377         (target_can_execute_reverse): Add argument.
12378         * remote.c (remote_can_execute_reverse): Add 'self' argument.
12379         * record-full.c (record_full_can_execute_reverse): Add 'self'
12380         argument.
12381         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12382         argument.
12383
12384 2014-02-19  Tom Tromey  <tromey@redhat.com>
12385
12386         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12387         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12388         argument.
12389         (target_get_ada_task_ptid): Add argument.
12390         * target.c (update_current_target): Update.
12391         (default_get_ada_task_ptid): Add 'self' argument.
12392         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12393         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12394         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12395         argument.
12396         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12397         argument.
12398         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12399         argument.
12400         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12401         argument.
12402         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12403         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12404         argument.
12405
12406 2014-02-19  Tom Tromey  <tromey@redhat.com>
12407
12408         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12409         (target_goto_bookmark): Add argument.
12410         * target.c (dummy_goto_bookmark): Add 'self' argument.
12411         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12412
12413 2014-02-19  Tom Tromey  <tromey@redhat.com>
12414
12415         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12416         (target_get_bookmark): Add argument.
12417         * target.c (dummy_get_bookmark): Add 'self' argument.
12418         * record-full.c (record_full_get_bookmark): Add 'self' argument.
12419
12420 2014-02-19  Tom Tromey  <tromey@redhat.com>
12421
12422         * target.h (struct target_ops) <to_make_corefile_notes>: Add
12423         argument.
12424         (target_make_corefile_notes): Add argument.
12425         * target.c (dummy_make_corefile_notes): Add 'self' argument.
12426         * procfs.c (procfs_make_note_section): Add 'self' argument.
12427         (procfs_make_note_section): Add 'self' argument.
12428         (procfs_make_note_section): Add 'self' argument.
12429         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12430         argument.
12431         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12432         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12433         * exec.c (exec_make_note_section): Add 'self' argument.
12434         (exec_make_note_section): Add 'self' argument.
12435
12436 2014-02-19  Tom Tromey  <tromey@redhat.com>
12437
12438         * target.h (struct target_ops) <to_find_memory_regions>: Add
12439         argument.
12440         (target_find_memory_regions): Add argument.
12441         * target.c (dummy_find_memory_regions): Add 'self' argument.
12442         * procfs.c (proc_find_memory_regions): Add 'self' argument.
12443         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12444         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12445         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12446         * exec. (exec_do_find_memory_regions): New global.
12447         (exec_set_find_memory_regions): Rewrite.
12448         (exec_find_memory_regions): New function.
12449         (init_exec_ops): Use exec_find_memory_regions.
12450
12451 2014-02-19  Tom Tromey  <tromey@redhat.com>
12452
12453         * target.h (struct target_ops) <to_supports_non_stop>: Add
12454         argument.
12455         * target.c (find_default_supports_non_stop): Add argument.
12456         (target_supports_non_stop): Add argument.
12457         (find_default_supports_non_stop): Add 'self' argument.
12458         * remote.c (remote_supports_non_stop): Add 'self' argument.
12459         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12460
12461 2014-02-19  Tom Tromey  <tromey@redhat.com>
12462
12463         * target.h (struct target_ops) <to_log_command>: Add argument.
12464         (target_log_command): Add argument.
12465         * serial.h (serial_log_command): Add 'self' argument.
12466         * serial.c (serial_log_command): Add 'self' argument.
12467
12468 2014-02-19  Tom Tromey  <tromey@redhat.com>
12469
12470         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12471         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12472         argument.
12473         (target_pid_to_exec_file): Add argument.
12474         * target.c (debug_to_pid_to_exec_file): Add argument.
12475         (update_current_target): Update.
12476         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12477         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12478         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12479         (linux_handle_extended_wait): Update.
12480         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12481         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12482         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12483         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12484
12485 2014-02-19  Tom Tromey  <tromey@redhat.com>
12486
12487         * target.h (struct target_ops) <to_rcmd>: Add argument.
12488         (target_rcmd): Add argument.
12489         * target.c (debug_to_rcmd): Add argument.
12490         (update_current_target, do_monitor_command): Update.
12491         * remote.c (remote_rcmd): Add 'self' argument.
12492         * monitor.c (monitor_rcmd): Add 'self' argument.
12493
12494 2014-02-19  Tom Tromey  <tromey@redhat.com>
12495
12496         * windows-nat.c (windows_stop): Add 'self' argument.
12497         * target.h (struct target_ops) <to_stop>: Add argument.
12498         * target.c (target_stop): Add argument.
12499         (debug_to_stop): Add argument.
12500         (update_current_target): Update.
12501         * remote.c (remote_stop): Add 'self' argument.
12502         * remote-sim.c (gdbsim_stop): Add 'self' argument.
12503         (gdbsim_cntrl_c): Update.
12504         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12505         * procfs.c (procfs_stop): Add 'self' argument.
12506         * nto-procfs.c (procfs_stop): Add 'self' argument.
12507         * monitor.c (monitor_stop): Add 'self' argument.
12508         (monitor_open): Update.
12509         * linux-nat.c (linux_nat_stop): Add argument.
12510         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12511         * gnu-nat.c (gnu_stop): Add 'self' argument.
12512         * darwin-nat.c (darwin_stop): Add 'self' argument.
12513
12514 2014-02-19  Tom Tromey  <tromey@redhat.com>
12515
12516         * target.h (struct target_ops) <to_thread_name>: Add argument.
12517         * target.c (target_thread_name): Add argument.
12518         (update_current_target): Update.
12519         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12520
12521 2014-02-19  Tom Tromey  <tromey@redhat.com>
12522
12523         * target.h (struct target_ops) <to_extra_thread_info>: Add
12524         argument.
12525         (target_extra_thread_info): Add argument.
12526         * target.c (update_current_target): Update.
12527         * remote.c (remote_threads_extra_info): Add 'self' argument.
12528         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12529         argument.
12530         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12531         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12532         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12533         argument.
12534         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12535         argument.
12536         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12537         argument.
12538         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12539         argument.
12540
12541 2014-02-19  Tom Tromey  <tromey@redhat.com>
12542
12543         * target.h (struct target_ops) <to_program_signals>: Add argument.
12544         * target.c (target_program_signals): Add argument.
12545         * remote.c (remote_program_signals): Add 'self' argument.
12546
12547 2014-02-19  Tom Tromey  <tromey@redhat.com>
12548
12549         * target.h (struct target_ops) <to_pass_signals>: Add argument.
12550         * target.c (target_pass_signals): Add argument.
12551         * remote.c (remote_pass_signals): Add 'self' argument.
12552         (remote_start_remote): Update.
12553         * procfs.c (procfs_pass_signals): Add 'self' argument.
12554         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12555         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12556         (linux_nat_create_inferior, linux_nat_attach): Update.
12557
12558 2014-02-19  Tom Tromey  <tromey@redhat.com>
12559
12560         * windows-nat.c (windows_can_run): Add 'self' argument.
12561         * target.h (struct target_ops) <to_can_run>: Add argument.
12562         (target_can_run): Add argument.
12563         * target.c (debug_to_can_run): Add argument.
12564         (update_current_target): Update.
12565         * nto-procfs.c (procfs_can_run): Add 'self' argument.
12566         * inf-child.c (inf_child_can_run): Add 'self' argument.
12567         * go32-nat.c (go32_can_run): Add 'self' argument.
12568
12569 2014-02-19  Tom Tromey  <tromey@redhat.com>
12570
12571         * target.h (struct target_ops) <to_has_exited>: Add argument.
12572         (target_has_exited): Add argument.
12573         * target.c (debug_to_has_exited): Add argument.
12574         (update_current_target): Update.
12575
12576 2014-02-19  Tom Tromey  <tromey@redhat.com>
12577
12578         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12579         argument.
12580         (target_set_syscall_catchpoint): Add argument.
12581         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12582         argument.
12583         * target.c (update_current_target): Update.
12584
12585 2014-02-19  Tom Tromey  <tromey@redhat.com>
12586
12587         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12588         argument.
12589         (target_remove_exec_catchpoint): Add argument.
12590         * target.c (debug_to_remove_exec_catchpoint): Add argument.
12591         (update_current_target): Update.
12592         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12593         argument.
12594
12595 2014-02-19  Tom Tromey  <tromey@redhat.com>
12596
12597         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12598         argument.
12599         (target_insert_exec_catchpoint): Add argument.
12600         * target.c (debug_to_insert_exec_catchpoint): Add argument.
12601         (update_current_target): Update.
12602         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12603         argument.
12604
12605 2014-02-19  Tom Tromey  <tromey@redhat.com>
12606
12607         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12608         argument.
12609         (target_remove_vfork_catchpoint): Add argument.
12610         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12611         (update_current_target): Update.
12612         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12613         argument.
12614
12615 2014-02-19  Tom Tromey  <tromey@redhat.com>
12616
12617         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12618         argument.
12619         (target_insert_vfork_catchpoint): Add argument.
12620         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12621         (update_current_target): Update.
12622         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12623         argument.
12624
12625 2014-02-19  Tom Tromey  <tromey@redhat.com>
12626
12627         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12628         argument.
12629         (target_remove_fork_catchpoint): Add argument.
12630         * target.c (debug_to_remove_fork_catchpoint): Add argument.
12631         (update_current_target): Update.
12632         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12633         argument.
12634
12635 2014-02-19  Tom Tromey  <tromey@redhat.com>
12636
12637         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12638         argument.
12639         (target_insert_fork_catchpoint): Add argument.
12640         * target.c (debug_to_insert_fork_catchpoint): Add argument.
12641         (update_current_target): Update.
12642         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12643         argument.
12644
12645 2014-02-19  Tom Tromey  <tromey@redhat.com>
12646
12647         * target.h (struct target_ops) <to_post_startup_inferior>: Add
12648         argument.
12649         (target_post_startup_inferior): Add argument.
12650         * target.c (debug_to_post_startup_inferior): Add argument.
12651         (update_current_target): Update.
12652         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12653         argument.
12654         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12655         argument.
12656         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12657         argument.
12658         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12659         argument.
12660         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12661         'self' argument.
12662         (super_post_startup_inferior): Likewise.
12663         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12664         'self' argument.
12665         (super_post_startup_inferior): Likewise.
12666         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12667         Add 'self' argument.
12668         (super_post_startup_inferior): Likewise.
12669
12670 2014-02-19  Tom Tromey  <tromey@redhat.com>
12671
12672         * target.h (struct target_ops) <to_load>: Add argument.
12673         * target.c (target_load): Add argument.
12674         (debug_to_load): Add argument.
12675         (update_current_target): Update.
12676         * remote.c (remote_load): Add 'self' argument.
12677         * remote-sim.c (gdbsim_load): Add 'self' argument.
12678         * remote-mips.c (mips_load): Add 'self' argument.
12679         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12680         * monitor.c (monitor_load): Add 'self' argument.
12681         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12682
12683 2014-02-19  Tom Tromey  <tromey@redhat.com>
12684
12685         * target.h (struct target_ops) <to_terminal_info>: Add argument.
12686         (target_terminal_info): Add argument.
12687         * target.c (debug_to_terminal_info): Add argument.
12688         (default_terminal_info): Likewise.
12689         * inflow.c (child_terminal_info): Add 'self' argument.
12690         * inferior.h (child_terminal_info): Add 'self' argument.
12691         * go32-nat.c (go32_terminal_info): Add 'self' argument.
12692
12693 2014-02-19  Tom Tromey  <tromey@redhat.com>
12694
12695         * target.h (struct target_ops) <to_terminal_save_ours>: Add
12696         argument.
12697         (target_terminal_save_ours): Add argument.
12698         * target.c (debug_to_terminal_save_ours): Add argument.
12699         (update_current_target): Update.
12700         * inflow.c (terminal_save_ours): Add 'self' argument.
12701         * inferior.h (terminal_save_ours): Add 'self' argument.
12702
12703 2014-02-19  Tom Tromey  <tromey@redhat.com>
12704
12705         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12706         (target_terminal_ours): Add argument.
12707         * target.c (debug_to_terminal_ours): Add argument.
12708         (update_current_target): Update.
12709         * remote.c (remote_terminal_ours): Add 'self' argument.
12710         (remote_close): Update.
12711         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12712         * inflow.c (terminal_ours): Add 'self' argument.
12713         * inferior.h (terminal_ours): Add 'self' argument.
12714         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12715
12716 2014-02-19  Pedro Alves  <palves@redhat.com>
12717             Tom Tromey  <tromey@redhat.com>
12718
12719         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12720         argument.
12721         (target_terminal_ours_for_output): Add argument.
12722         * target.c (debug_to_terminal_ours_for_output): Add argument.
12723         (update_current_target): Update.
12724         * inflow.c (terminal_ours_for_output): Add 'self' argument.
12725         * inferior.h (terminal_ours_for_output): Add 'self' argument.
12726         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12727
12728 2014-02-19  Tom Tromey  <tromey@redhat.com>
12729
12730         * target.h (struct target_ops) <to_terminal_inferior>: Add
12731         argument.
12732         * target.c (target_terminal_inferior): Add argument.
12733         (update_current_target): Update.
12734         * remote.c (remote_terminal_inferior): Add 'self' argument.
12735         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12736         * inflow.c (terminal_inferior): Add 'self' argument.
12737         * inferior.h (terminal_inferior): Add 'self' argument.
12738         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12739         (go32_terminal_inferior): Add 'self' argument.
12740
12741 2014-02-19  Tom Tromey  <tromey@redhat.com>
12742
12743         * target.h (struct target_ops) <to_terminal_init>: Add argument.
12744         (target_terminal_init): Add argument.
12745         * target.c (debug_to_terminal_init): Add argument.
12746         (update_current_target): Update.
12747         * inflow.c (terminal_init_inferior): Add 'self' argument.
12748         * inferior.h (terminal_init_inferior): Add 'self' argument.
12749         * go32-nat.c (go32_terminal_init): Add 'self' argument.
12750         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12751
12752 2014-02-19  Tom Tromey  <tromey@redhat.com>
12753
12754         * target.h (struct target_ops)
12755         <to_can_accel_watchpoint_condition>: Add argument.
12756         (target_can_accel_watchpoint_condition): Add argument.
12757         * target.c (debug_to_can_accel_watchpoint_condition): Add
12758         argument.
12759         (update_current_target): Update.
12760         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12761         'self' argument.
12762
12763 2014-02-19  Tom Tromey  <tromey@redhat.com>
12764
12765         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12766         Add argument.
12767         (target_region_ok_for_hw_watchpoint): Add argument.
12768         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12769         (default_region_ok_for_hw_watchpoint): Add argument.
12770         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12771         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12772         argument.
12773         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12774         argument.
12775         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12776         argument.
12777         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12778         'self' argument.
12779         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12780         'self' argument.
12781         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12782         'self' argument.
12783         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12784         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12785         'self' argument.
12786         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12787         Add 'self' argument.
12788
12789 2014-02-19  Tom Tromey  <tromey@redhat.com>
12790
12791         * target.h (struct target_ops) <to_insert_watchpoint>: Add
12792         argument.
12793         (target_insert_watchpoint): Add argument.
12794         * target.c (debug_to_insert_watchpoint): Add argument.
12795         (update_current_target): Update.
12796         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12797         * remote.c (remote_insert_watchpoint): Add 'self' argument.
12798         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12799         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12800         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12801         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12802         argument.
12803         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12804         (procfs_insert_hw_watchpoint): Add 'self' argument.
12805         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12806         argument.
12807         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12808         argument.
12809         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12810         argument.
12811         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12812         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12813         argument.
12814         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12815         'self' argument.
12816
12817 2014-02-19  Tom Tromey  <tromey@redhat.com>
12818
12819         * target.h (struct target_ops) <to_remove_watchpoint>: Add
12820         argument.
12821         (target_remove_watchpoint): Add argument.
12822         * target.c (debug_to_remove_watchpoint): Add argument.
12823         (update_current_target): Update.
12824         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12825         * remote.c (remote_remove_watchpoint): Add 'self' argument.
12826         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12827         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12828         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12829         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12830         argument.
12831         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12832         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12833         argument.
12834         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12835         argument.
12836         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12837         argument.
12838         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12839         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12840         argument.
12841         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12842         'self' argument.
12843
12844 2014-02-19  Tom Tromey  <tromey@redhat.com>
12845
12846         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12847         argument.
12848         (target_remove_hw_breakpoint): Add argument.
12849         * target.c (debug_to_remove_hw_breakpoint): Add argument.
12850         (update_current_target): Update.
12851         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12852         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12853         argument.
12854         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12855         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12856         argument.
12857         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12858         'self' argument.
12859
12860 2014-02-19  Tom Tromey  <tromey@redhat.com>
12861
12862         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12863         argument.
12864         (target_insert_hw_breakpoint): Add argument.
12865         * target.c (debug_to_insert_hw_breakpoint): Add argument.
12866         (update_current_target): Update.
12867         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12868         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12869         argument.
12870         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12871         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12872         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12873         argument.
12874         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12875         'self' argument.
12876
12877 2014-02-19  Tom Tromey  <tromey@redhat.com>
12878
12879         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12880         argument.
12881         (target_can_use_hardware_watchpoint): Add argument.
12882         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12883         (update_current_target): Update.
12884         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12885         argument.
12886         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12887         argument.
12888         * remote.c (remote_check_watch_resources): Add 'self' argument.
12889         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12890         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12891         argument.
12892         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12893         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12894         argument.
12895         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12896         argument.
12897         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12898         argument.
12899         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12900         argument.
12901         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12902         argument.
12903         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12904         argument.
12905         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12906         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12907         argument.
12908         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12909         'self' argument.
12910
12911 2014-02-19  Tom Tromey  <tromey@redhat.com>
12912
12913         * target.h (struct target_ops) <to_post_attach>: Add argument.
12914         (target_post_attach): Add argument.
12915         * target.c (debug_to_post_attach): Add argument.
12916         (update_current_target): Update.
12917         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12918         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12919         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12920         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12921         * inf-child.c (inf_child_post_attach): Add 'self' argument.
12922
12923 2014-02-19  Tom Tromey  <tromey@redhat.com>
12924
12925         * windows-nat.c (windows_close): Add 'self' argument.
12926         * tracepoint.c (tfile_close): Add 'self' argument.
12927         * target.h (struct target_ops) <to_close>: Add argument.
12928         * target.c (target_close): Add argument.
12929         (update_current_target): Update.
12930         * remote.c (remote_close): Add 'self' argument.
12931         * remote-sim.c (gdbsim_close): Add 'self' argument.
12932         * remote-mips.c (mips_close): Add 'self' argument.
12933         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12934         * record-full.c (record_full_close): Add 'self' argument.
12935         * record-btrace.c (record_btrace_close): Add 'self' argument.
12936         * monitor.h (monitor_close): Add 'self' argument.
12937         * monitor.c (monitor_close): Add 'self' argument.
12938         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12939         * linux-nat.c (linux_nat_close): Add argument.
12940         * go32-nat.c (go32_close): Add 'self' argument.
12941         * exec.c (exec_close_1): Add 'self' argument.
12942         * ctf.c (ctf_close): Add 'self' argument.
12943         * corelow.c (core_close): Add 'self' argument.
12944         (core_close_cleanup): Update.
12945         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12946         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12947
12948 2014-02-19  Tom Tromey  <tromey@redhat.com>
12949
12950         * remote.c (remote_load): New function.
12951         (init_remote_ops): Use it.
12952
12953 2014-02-19  Tom Tromey  <tromey@redhat.com>
12954
12955         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12956         argument.
12957         * common/linux-btrace.h (linux_supports_btrace): Update.
12958         * remote.c (remote_supports_btrace): Add "self" argument.
12959         * target-delegates.c: Rebuild.
12960         * target.c (target_supports_btrace): Remove.
12961         * target.h (struct target_ops) <to_supports_btrace>: Add
12962         target_ops argument.
12963         (target_supports_btrace): New define.
12964
12965 2014-02-19  Tom Tromey  <tromey@redhat.com>
12966
12967         * record-full.c (record_full_beneath_to_resume_ops)
12968         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12969         (record_full_beneath_to_wait)
12970         (record_full_beneath_to_store_registers_ops)
12971         (record_full_beneath_to_store_registers)
12972         (record_full_beneath_to_xfer_partial_ops)
12973         (record_full_beneath_to_xfer_partial)
12974         (record_full_beneath_to_insert_breakpoint_ops)
12975         (record_full_beneath_to_insert_breakpoint)
12976         (record_full_beneath_to_remove_breakpoint_ops)
12977         (record_full_beneath_to_remove_breakpoint)
12978         (record_full_beneath_to_stopped_by_watchpoint)
12979         (record_full_beneath_to_stopped_data_address)
12980         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12981         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12982         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12983         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12984         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12985         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
12986         (tmp_to_stopped_data_address, tmp_to_async): Remove.
12987         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
12988         (record_full_resume, record_full_wait_1)
12989         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
12990         (record_full_store_registers, record_full_xfer_partial)
12991         (record_full_insert_breakpoint, record_full_remove_breakpoint)
12992         (record_full_async, record_full_core_xfer_partial): Use target
12993         delegation.
12994         * target-delegates.c: Rebuild.
12995         * target.c (current_xfer_partial): Remove.
12996         (update_current_target): Do not INHERIT or de_fault
12997         to_insert_breakpoint, to_remove_breakpoint,
12998         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
12999         to_is_async_p, to_async.  Do not set to_xfer_partial field.
13000         (default_xfer_partial): Simplify.
13001         (current_xfer_partial): Remove.
13002         (target_wait, target_resume): Simplify.
13003         (find_default_can_async_p, find_default_is_async_p): Update.
13004         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13005         to_xfer_partial, to_stopped_by_watchpoint,
13006         to_stopped_data_address.
13007         (target_store_registers): Simplify.
13008         (forward_target_remove_breakpoint)
13009         (forward_target_insert_breakpoint): Remove.
13010         (target_remove_breakpoint, target_insert_breakpoint)
13011         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13012         * target.h (struct target_ops) <to_resume, to_wait,
13013         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13014         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13015         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13016         markup.
13017         (forward_target_remove_breakpoint)
13018         (forward_target_insert_breakpoint): Remove.
13019         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13020         directly.
13021         (record_btrace_insert_breakpoint): Delegate directly.
13022
13023 2014-02-19  Tom Tromey  <tromey@redhat.com>
13024
13025         PR build/7701:
13026         * target-delegates.c: New file.
13027         * target.c: Include target-delegates.c.
13028         (init_dummy_target): Call install_dummy_methods.
13029         (complete_target_initialization): Call install_delegators.
13030         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13031         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13032         * make-target-delegates: New file.
13033
13034 2014-02-19  Tom Tromey  <tromey@redhat.com>
13035
13036         * record.c (find_record_target): Use find_target_at.
13037         * target.c (find_target_at): New function.
13038         * target.h (find_target_at): Declare.
13039
13040 2014-02-19  Tom Tromey  <tromey@redhat.com>
13041
13042         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13043         Add 'ops' argument.
13044         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13045         'ops' argument.
13046         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13047         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13048         'ops' argument.
13049         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13050         argument.
13051         * linux-nat.c (save_sigtrap): Update.
13052         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13053         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13054         (linux_nat_close): Update.
13055         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13056         argument.
13057         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13058         argument.
13059         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13060         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13061         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13062         (tmp_to_async): Add 'ops' argument.
13063         (record_full_stopped_by_watchpoint, record_full_async)
13064         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13065         argument.
13066         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13067         (m32r_stopped_by_watchpoint): Add 'ops' argument.
13068         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13069         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13070         (remote_is_async_p, remote_async): Add 'ops' argument.
13071         (remote_stopped_data_address): Update.
13072         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13073         * target.c (update_current_target)
13074         (find_default_can_async_p, find_default_is_async_p): Update.
13075         (init_dummy_target): Update.
13076         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13077         * target.h (struct target_ops) <to_stopped_by_watchpoint,
13078         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13079         (target_can_async_p, target_is_async_p, target_async)
13080         (target_stopped_by_watchpoint): Update.
13081
13082 2014-02-19  Yao Qi  <yao@codesourcery.com>
13083
13084         PR gdb/16220
13085         * gdbarch.sh: Remove startup_gdbarch.
13086         * gdbarch.c: Regenerated.
13087         * gdbarch.h: Likewise.
13088
13089 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
13090
13091         * rl78-tdep.c (rl78_g10_register_name): New function.
13092         (rl78_return_value): Add g10 support.
13093         (rl78_gdbarch_init): Register rl78_g10_register_name for the
13094         g10.
13095
13096 2014-02-17  Doug Evans  <xdje42@gmail.com>
13097
13098         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13099         (SUBDIR_GUILE_SRCS): Ditto.
13100         (scm-gsmob.o): Ditto.
13101
13102 2014-02-17  Yao Qi  <yao@codesourcery.com>
13103
13104         * gnu-nat.c (ILL_RPC): Declare defined function.
13105
13106 2014-02-17  Yao Qi  <yao@codesourcery.com>
13107
13108         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13109         mach_msg_type_number_t.
13110         (gnu_write_inferior): Likewise.
13111
13112 2014-02-17  Yao Qi  <yao@codesourcery.com>
13113
13114         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13115         in format string.
13116         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13117         (inf_validate_procs, inf_signal): Likewise.
13118         (S_exception_raise_request): Likewise.
13119         (do_mach_notify_dead_name): Likewise.
13120         (steal_exc_port): Likewise.
13121         (gnu_read_inferior): Change 'copy_count''s type to
13122         mach_msg_type_number_t.
13123         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
13124         format string.
13125
13126 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
13127
13128         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13129         flag.  Adjust all users; in particular...
13130         (gnu_wait): ..., don't decrement its value in here...
13131         (gnu_create_inferior): ..., and instead set the flag in here,
13132         around the startup_inferior call, and call that one with
13133         START_INFERIOR_TRAPS_EXPECTED.
13134
13135         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13136         (ILL_RPC): ... new macro.
13137         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13138         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13139         (do_mach_notify_send_once, S_proc_setmsgport_reply)
13140         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13141         functions with ILL_RPC macro.
13142         (S_proc_pid2task_reply, S_proc_task2pid_reply)
13143         (S_proc_task2proc_reply, S_proc_proc2task_reply)
13144         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13145         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13146         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13147         (S_proc_getlogin_reply, S_proc_getsid_reply)
13148         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13149         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13150         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13151         (S_proc_getnports_reply, S_proc_is_important_reply)
13152         (S_proc_get_code_reply): New stub functions, generated with
13153         ILL_RPC macro.
13154
13155         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13156         collected the type check structures.
13157
13158         * reply_mig_hack.awk: Don't expect to see the auto keyword.
13159
13160 2014-02-14  Doug Evans  <dje@google.com>
13161
13162         * target.c (target_write_partial): Fix result type.
13163
13164 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
13165
13166         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13167         the proper offsets to access fpregset_t.
13168
13169 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
13170
13171         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13172         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13173         * h8300-tdep.c (setmachinelist): Remove global.
13174         * hppa-tdep.c (hppa_sigtramp): Remove global.
13175         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13176         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13177         * ravenscar-thread.c (update_target_observer): Remove global.
13178         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13179
13180 2014-02-12  Tom Tromey  <tromey@redhat.com>
13181
13182         * common/rsp-low.c: Update comments.
13183         * common/rsp-low.h: Update comments.
13184
13185 2014-02-12  Tom Tromey  <tromey@redhat.com>
13186
13187         * common/rsp-low.c (convert_ascii_to_int): Remove.
13188         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13189
13190 2014-02-12  Tom Tromey  <tromey@redhat.com>
13191
13192         * common/rsp-low.h (unhexify): Don't declare.
13193         * common/rsp-low.c (unhexify): Remove.
13194
13195 2014-02-12  Tom Tromey  <tromey@redhat.com>
13196
13197         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13198         * common/rsp-low.c (convert_int_to_ascii): Remove.
13199
13200 2014-02-12  Tom Tromey  <tromey@redhat.com>
13201
13202         * common/rsp-low.h (hexify): Don't declare.
13203         * common/rsp-low.c (hexify): Remove.
13204
13205 2014-02-12  Tom Tromey  <tromey@redhat.com>
13206
13207         * common/rsp-low.c (hexify): Never take strlen of argument.
13208
13209 2014-02-12  Tom Tromey  <tromey@redhat.com>
13210
13211         * common/rsp-low.c (bin2hex): Never take strlen of argument.
13212         * remote.c (extended_remote_run, remote_rcmd)
13213         (remote_download_trace_state_variable, remote_save_trace_data)
13214         (remote_set_trace_notes): Update.
13215         * tracepoint.c (encode_source_string, tfile_write_status)
13216         (tfile_write_uploaded_tsv): Update.
13217
13218 2014-02-12  Tom Tromey  <tromey@redhat.com>
13219
13220         * tracepoint.c: Include rsp-low.h.
13221         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13222         * remote.c: Include rsp-low.h.
13223         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13224         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13225         (remote_unescape_input): Move to common/rsp-low.c.
13226         * common/rsp-low.h: New file.
13227         * common/rsp-low.c: New file.
13228         * Makefile.in (SFILES): Add common/rsp-low.c.
13229         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13230         (COMMON_OBS): Add rsp-low.o.
13231         (rsp-low.o): New target.
13232
13233 2014-02-12  Tom Tromey  <tromey@redhat.com>
13234
13235         * utils.h: Include print-utils.h.
13236         (host_address_to_string, plongest, pulongest, phex, phex_nz)
13237         (int_string, core_addr_to_string, core_addr_to_string_nz)
13238         (hex_string, hex_string_custom): Don't declare.
13239         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13240         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13241         (hex_string_custom, int_string, core_addr_to_string)
13242         (core_addr_to_string_nz, host_address_to_string): Move to
13243         common/print-utils.c.
13244         * common/print-utils.h: New file.
13245         * common/print-utils.c: New file
13246         * Makefile.in (SFILES): Add common/print-utils.c.
13247         (HFILES_NO_SRCDIR): Add common/print-utils.h.
13248         (COMMON_OBS): Add print-utils.o.
13249         (print-utils.o): New target.
13250
13251 2014-02-12  Tom Tromey  <tromey@redhat.com>
13252
13253         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13254
13255 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
13256
13257         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13258
13259 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
13260
13261         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13262         if a PT_IO ptrace request returns sucessfully but indicates that 0
13263         bytes were transferred.
13264
13265 2014-02-12  Pedro Alves  <palves@redhat.com>
13266             Kevin Buettner <kevinb@redhat.com>
13267
13268         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13269         TYPE_INSTANCE_FLAG_CODE_SPACE.
13270
13271 2014-02-12  Pedro Alves  <palves@redhat.com>
13272
13273         * h8300-tdep.c (pseudo_from_raw_register)
13274         (raw_from_pseudo_register): New functions.
13275         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13276         them.
13277
13278 2014-02-12  Pedro Alves  <palves@redhat.com>
13279
13280         * h8300-tdep.c (h8300_register_sim_regno): New function.
13281         (h8300_gdbarch_init): Install h8300_register_sim_regno as
13282         gdbarch_register_sim_regno hook.
13283
13284 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
13285
13286         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13287
13288 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
13289
13290         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13291
13292 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
13293
13294         * obsd-tdep.h (obsd_init_abi): New prototype.
13295         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13296         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13297         (obsd_init_abi): New functions.
13298         * i386obsd-tdep.c: Include "obsd-tdep.h".
13299         (i386obsd_init_abi): Call obsd_init_abi.
13300         * amd64obsd-tdep.c: Include "obsd-tdep.h".
13301         (amd64obsd_init_abi): Call obsd_init_abi.
13302         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13303         obsd-tdep.c to gdb_target_obs.
13304
13305 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
13306
13307         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13308         double float arguments to 16-byte in the argument slots.
13309
13310 2014-02-11  Doug Evans  <xdje42@gmail.com>
13311
13312         * configure.ac: Don't crash if pkg-config is not found and guile
13313         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
13314         in guile checks.
13315         * configure: Regenerate.
13316
13317 2014-02-11  Yao Qi  <yao@codesourcery.com>
13318
13319         * aix-thread.c (aix_thread_xfer_partial): Update comments.
13320         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13321         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13322         * gnu-nat.c (gnu_xfer_memory): Likewise.
13323         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
13324         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13325         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13326         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13327
13328 2014-02-11  Yao Qi  <yao@codesourcery.com>
13329
13330         * target.h (enum target_xfer_error): Rename to ...
13331         (enum target_xfer_status): ... it.  New.  All users updated.
13332         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13333         New.
13334         (TARGET_XFER_STATUS_ERROR_P): New macro.
13335         (target_xfer_error_to_string): Remove declaration.
13336         (target_xfer_status_to_string): Declare.
13337         (target_xfer_partial_ftype): Adjust it.
13338         (struct target_ops) <to_xfer_partial>: Return
13339         target_xfer_status.  Add argument xfered_len.  Update
13340         comments.
13341         * target.c (target_xfer_error_to_string): Rename to ...
13342         (target_xfer_status_to_string): ... it.  New.  All callers
13343         updated.
13344         (target_read_live_memory): Likewise.  Call target_xfer_partial
13345         instead of target_read.
13346         (memory_xfer_live_readonly_partial): Return
13347         target_xfer_status.  Add argument xfered_len.
13348         (raw_memory_xfer_partial): Likewise.
13349         (memory_xfer_partial_1): Likewise.
13350         (memory_xfer_partial): Likewise.
13351         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
13352         properly.  Update debug message.
13353         (default_xfer_partial, current_xfer_partial): Likewise.
13354         (target_write_partial): Likewise.
13355         (target_read_partial): Likewise.  All callers updated.
13356         (read_whatever_is_readable): Likewise.
13357         (target_write_with_progress): Likewise.
13358         (target_read_alloc_1): Likewise.
13359
13360         * aix-thread.c (aix_thread_xfer_partial): Likewise.
13361         * auxv.c (procfs_xfer_auxv): Likewise.
13362         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13363         * bfd-target.c (target_bfd_xfer_partial): Likewise.
13364         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13365         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13366         * corefile.c (read_memory): Adjust.
13367         * corelow.c (core_xfer_partial): Likewise.
13368         * ctf.c (ctf_xfer_partial): Likewise.
13369         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
13370         updated.
13371         (darwin_xfer_partial): Likewise.
13372         * exec.c (section_table_xfer_memory_partial): Likewise.  All
13373         callers updated.
13374         (exec_xfer_partial): Likewise.
13375         * exec.h (section_table_xfer_memory_partial): Update
13376         declaration.
13377         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
13378         negative.
13379         (gnu_xfer_partial): Likewise.
13380         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13381         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13382         (ia64_hpux_xfer_solib_got): Likewise.
13383         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
13384         type of 'partial_len' to ULONGEST.
13385         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13386         * linux-nat.c (linux_xfer_siginfo ): Likewise.
13387         (linux_nat_xfer_partial): Likewise.
13388         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13389         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13390         * monitor.c (monitor_xfer_memory): Likewise.
13391         (monitor_xfer_partial): Likewise.
13392         * procfs.c (procfs_xfer_partial): Likewise.
13393         * record-btrace.c (record_btrace_xfer_partial): Likewise.
13394         * record-full.c (record_full_xfer_partial): Likewise.
13395         (record_full_core_xfer_partial): Likewise.
13396         * remote-sim.c (gdbsim_xfer_memory): Likewise.
13397         (gdbsim_xfer_partial): Likewise.
13398         * remote.c (remote_write_bytes_aux): Likewise.  All callers
13399         updated.
13400         (remote_write_bytes, remote_read_bytes): Likewise.  All
13401         callers updated.
13402         (remote_flash_erase): Likewise.  All callers updated.
13403         (remote_write_qxfer): Likewise.  All callers updated.
13404         (remote_read_qxfer): Likewise.  All callers updated.
13405         (remote_xfer_partial): Likewise.
13406         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13407         (rs6000_xfer_shared_libraries): Likewise.
13408         * sol-thread.c (sol_thread_xfer_partial): Likewise.
13409         (sol_thread_xfer_partial): Likewise.
13410         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13411         (sparc_xfer_partial): Likewise.
13412         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
13413         updated.
13414         (spu_xfer_partial): Likewise.
13415         * spu-multiarch.c (spu_xfer_partial): Likewise.
13416         * tracepoint.c (tfile_xfer_partial): Likewise.
13417         * windows-nat.c (windows_xfer_memory): Likewise.
13418         (windows_xfer_shared_libraries): Likewise.
13419         (windows_xfer_partial): Likewise.
13420         * valprint.c: Replace 'target_xfer_error' with
13421         'target_xfer_status' in comments.
13422
13423 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
13424
13425         Checked in by Joel Brobecker <brobecker@adacore.com>.
13426         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13427
13428 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
13429
13430         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13431         function parameters.
13432
13433 2014-02-10  Will Newton  <will.newton@linaro.org>
13434
13435         * elfread.c (elf_rel_plt_read): Look for a .got section if
13436         looking up .got.plt fails.
13437         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13438         on address passed to elf_gnu_ifunc_record_cache.
13439         (elf_gnu_ifunc_resolve_addr): Likewise.
13440         (elf_gnu_ifunc_resolver_return_stop): Likewise.
13441
13442 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
13443
13444         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13445         (X_RETTURN): New macro.
13446         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13447
13448         * sparc64-tdep.c (sparc64_init_abi): Hook
13449         sparc_in_function_epilogue_p.
13450
13451 2014-02-10  Gary Benson  <gbenson@redhat.com>
13452
13453         * symfile-debug.c (debug_qf_expand_symtabs_matching):
13454         Rename name_matcher to symbol_matcher.
13455
13456 2014-02-10  Gary Benson  <gbenson@redhat.com>
13457
13458         * symfile-debug.c (debug_qf_expand_symtabs_matching):
13459         Use expand_symtabs_file_matcher_ftype and
13460         expand_symtabs_symbol_matcher_ftype.
13461
13462 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13463
13464         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13465         (struct ada_symbol_cache): New.
13466         (ada_free_symbol_cache): Forward declare.
13467         (struct ada_pspace_data): New.
13468         (ada_pspace_data_handle): New static global.
13469         (get_ada_pspace_data, ada_pspace_data_cleanup)
13470         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13471         (cache_space, cache): Delete, now folded inside struct
13472         ada_pspace_data.
13473         (ada_get_symbol_cache): New function.
13474         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13475         implementation.
13476         (_initialize_ada_language): Remove initialization of cache_space.
13477         Move call to observer_attach_inferior_exit up, grouping it
13478         with the other observer registrations inside this function.
13479         Rename command to be more general.  Add call to
13480         register_program_space_data_with_cleanup.
13481
13482 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13483
13484         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13485         ada_new_objfile_observer.
13486         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13487         (_initialize_tasks): Update uses of ada_new_objfile_observer
13488         and ada_tasks_normal_stop_observer.
13489
13490 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13491
13492         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13493         returned by the 'Length attribute to integer.
13494
13495 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13496
13497         * ada-lang.c (_initialize_ada_language): Initialize
13498         cache_space obstack.
13499
13500 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13501
13502         * ada-lang.c (HASH_SIZE): New macro.
13503         (struct cache_entry): New type.
13504         (cache_space, cache): New static globals.
13505         (ada_clear_symbol_cache, find_entry): New functions.
13506         (lookup_cached_symbol, cache_symbol): Implement.
13507         (ada_new_objfile_observer, ada_free_objfile_observer): New.
13508         (_initialize_ada_language): Attach ada_new_objfile_observer
13509         and ada_free_objfile_observer.
13510
13511 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13512
13513         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13514         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13515         struct block * parameter.
13516         (ada_lookup_symbol_list_worker): Constify local variable "block".
13517         Remove cast which is no longer necessary.
13518
13519 2014-02-10  Doug Evans  <xdje42@gmail.com>
13520
13521         Add Guile as an extension language.
13522         * NEWS: Mention Guile scripting.
13523         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13524         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13525         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13526         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13527         (CLIBS): Add GUILE_LIBS.
13528         (install-guile): New rule.
13529         (guile.o): New rule.
13530         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13531         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13532         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13533         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13534         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13535         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13536         (scm-type.o, scm-utils.o, scm-value.o): New rules.
13537         * configure.ac: New option --with-guile.
13538         * configure: Regenerate.
13539         * config.in: Regenerate.
13540         * auto-load.c: Remove #include "python/python.h".  Add #include
13541         "gdb/section-scripts.h".
13542         (source_section_scripts): Handle Guile scripts.
13543         (_initialize_auto_load): Add name of Guile objfile script to
13544         scripts-directory help text.
13545         * breakpoint.c (condition_command): Tweak comment to include Scheme.
13546         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13547         (struct breakpoint): New member scm_bp_object.
13548         * defs.h (enum command_control_type): New value guile_control.
13549         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
13550         "extension.h".
13551         (show_user): Update comment.
13552         (_initialize_cli_cmds): Update help text for "show user".  Update help
13553         text for max-user-call-depth.
13554         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
13555         "extension.h".
13556         (multi_line_command_p): Add guile_control.
13557         (print_command_lines): Handle guile_control.
13558         (execute_control_command, recurse_read_control_structure): Ditto.
13559         (process_next_line): Recognize "guile" commands.
13560         * disasm.c (gdb_disassemble_info): Make non-static.
13561         * disasm.h: #include "dis-asm.h".
13562         (struct gdbarch): Add forward decl.
13563         (gdb_disassemble_info): Declare.
13564         * extension.c: #include "guile/guile.h".
13565         (extension_languages): Add guile.
13566         (get_ext_lang_defn): Handle EXT_LANG_GDB.
13567         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13568         * gdbtypes.c (get_unsigned_type_max): New function.
13569         (get_signed_type_minmax): New function.
13570         * gdbtypes.h (get_unsigned_type_max): Declare.
13571         (get_signed_type_minmax): Declare.
13572         * guile/README: New file.
13573         * guile/guile-internal.h: New file.
13574         * guile/guile.c: New file.
13575         * guile/guile.h: New file.
13576         * guile/scm-arch.c: New file.
13577         * guile/scm-auto-load.c: New file.
13578         * guile/scm-block.c: New file.
13579         * guile/scm-breakpoint.c: New file.
13580         * guile/scm-disasm.c: New file.
13581         * guile/scm-exception.c: New file.
13582         * guile/scm-frame.c: New file.
13583         * guile/scm-gsmob.c: New file.
13584         * guile/scm-iterator.c: New file.
13585         * guile/scm-lazy-string.c: New file.
13586         * guile/scm-math.c: New file.
13587         * guile/scm-objfile.c: New file.
13588         * guile/scm-ports.c: New file.
13589         * guile/scm-pretty-print.c: New file.
13590         * guile/scm-safe-call.c: New file.
13591         * guile/scm-string.c: New file.
13592         * guile/scm-symbol.c: New file.
13593         * guile/scm-symtab.c: New file.
13594         * guile/scm-type.c: New file.
13595         * guile/scm-utils.c: New file.
13596         * guile/scm-value.c: New file.
13597         * guile/lib/gdb.scm: New file.
13598         * guile/lib/gdb/boot.scm: New file.
13599         * guile/lib/gdb/experimental.scm: New file.
13600         * guile/lib/gdb/init.scm: New file.
13601         * guile/lib/gdb/iterator.scm: New file.
13602         * guile/lib/gdb/printing.scm: New file.
13603         * guile/lib/gdb/types.scm: New file.
13604         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13605         (VPATH): Add $(GUILE_SRCDIR).
13606         (GUILE_DIR): New variable.
13607         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13608         (all): Add stamp-guile dependency.
13609         (stamp-guile): New rule.
13610         (clean-guile, install-guile, uninstall-guile): New rules.
13611         (install-only): Add install-guile dependency.
13612         (uninstall): Add uninstall-guile dependency.
13613         (clean): Add clean-guile dependency.
13614
13615 2014-02-09  Doug Evans  <xdje42@gmail.com>
13616
13617         Revert this patch (which I approved, mea culpa).
13618
13619         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
13620
13621         * Makefile.in (all-lib): Remove.
13622         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13623
13624 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
13625
13626         Fix Python stack corruption.
13627         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13628         gdb_py_longest.
13629
13630 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
13631
13632         * Makefile.in (all-lib): Remove.
13633         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13634
13635 2014-02-07  Doug Evans  <dje@google.com>
13636
13637         * extension-priv.h (extension_language_script_ops): Add comment.
13638         (extension_language_ops): Add comment.
13639         (active_ext_lang_state): Fix typo in comment.
13640
13641 2014-02-07  Pedro Alves  <palves@redhat.com>
13642
13643         PR breakpoints/16292
13644         * infrun.c (handle_signal_stop) <signal arrives while stepping
13645         over a breakpoint>: Switch back to the stepping thread.
13646
13647 2014-02-07  Yao Qi  <yao@codesourcery.com>
13648
13649         * target.c (target_xfer_partial): Return zero if LEN is zero.
13650
13651 2014-02-07  Yao Qi  <yao@codesourcery.com>
13652
13653         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13654         (ld_so_xfer_auxv): Likewise.
13655         * bfd-target.c (target_bfd_xfer_partial): Likewise.
13656         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13657         * corelow.c (core_xfer_partial): Likewise.
13658         * ctf.c (ctf_xfer_partial): Likewise.
13659         * darwin-nat.c (darwin_read_dyld_info): Likewise.
13660         (darwin_xfer_partial): Likewise.
13661         * exec.c (exec_xfer_partial): Likewise.
13662         * gnu-nat.c (gnu_xfer_partial): Likewise.
13663         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13664         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13665         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13666         * linux-nat.c (linux_xfer_siginfo): Likewise.
13667         (linux_proc_xfer_spu): Likewise.
13668         * procfs.c (procfs_xfer_partial): Likewise.
13669         * record-full.c (record_full_xfer_partial): Likewise.
13670         (record_full_core_xfer_partial): Likewise.
13671         * remote-sim.c (gdbsim_xfer_partial): Likewise.
13672         * remote.c (remote_write_qxfer): Likewise.
13673         (remote_write_qxfer, remote_read_qxfer): Likewise.
13674         (remote_xfer_partial): Likewise.
13675         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13676         (rs6000_xfer_shared_libraries): Likewise.
13677         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13678         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13679         (spu_xfer_partial): Likewise.
13680         * target.c (memory_xfer_partial_1): Likewise.
13681         * tracepoint.c (tfile_xfer_partial): Likewise.
13682         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13683         (windows_xfer_partial): Likewise.
13684
13685 2014-02-07  Yao Qi  <yao@codesourcery.com>
13686
13687         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
13688         comments.
13689         (core_xfer_shared_libraries_aix): Likewise.
13690         * gdbarch.c, gdbarch.h: Regenerated.
13691         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13692         ULONGEST.  Change 'len_avail' type to ULONGEST.
13693         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13694         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13695         declaration.
13696         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13697
13698 2014-02-07  Yao Qi  <yao@codesourcery.com>
13699
13700         * corefile.c (memory_error): Get 'exception' from ERR and pass
13701         'exception' to throw_error.
13702
13703 2014-02-06  Doug Evans  <xdje42@gmail.com>
13704
13705         * configure.ac (libpython checking): Remove all but python.o from
13706         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
13707         * configure: Regenerate.
13708
13709         * Makefile.in (SFILES): Add extension.c.
13710         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13711         (COMMON_OBS): Add extension.o.
13712         * extension.h: New file.
13713         * extension-priv.h: New file.
13714         * extension.c: New file.
13715
13716         * python/python-internal.h: #include "extension.h".
13717         (gdbpy_auto_load_enabled): Declare.
13718         (gdbpy_apply_val_pretty_printer): Declare.
13719         (gdbpy_apply_frame_filter): Declare.
13720         (gdbpy_preserve_values): Declare.
13721         (gdbpy_breakpoint_cond_says_stop): Declare.
13722         (gdbpy_breakpoint_has_cond): Declare.
13723         (void source_python_script_for_objfile): Delete.
13724         * python/python.c: #include "extension-priv.h".
13725         Delete inclusion of "observer.h".
13726         (extension_language_python): Moved here and renamed from
13727         script_language_python in py-auto-load.c.
13728         Redefined to be of type extension_language_defn.
13729         (python_extension_script_ops): New global.
13730         (python_extension_ops): New global.
13731         (struct python_env): New member previous_active.
13732         (restore_python_env): Call restore_active_ext_lang.
13733         (ensure_python_env): Call set_active_ext_lang.
13734         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13735         New arg extlang.
13736         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13737         New arg extlang.
13738         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13739         New arg extlang.
13740         (gdbpy_eval_from_control_command): Renamed from
13741         eval_python_from_control_command, made static.  New arg extlang.
13742         (gdbpy_source_script) Renamed from source_python_script, made static.
13743         New arg extlang.
13744         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
13745         result to int.  New arg extlang.
13746         (gdbpy_source_objfile_script): Renamed from
13747         source_python_script_for_objfile, made static.  New arg extlang.
13748         (gdbpy_start_type_printers): Renamed from start_type_printers, made
13749         static.  New args extlang, extlang_printers.  Change result type to
13750         "void".
13751         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13752         static.  New arg extlang.  Rename arg printers to extlang_printers
13753         and change type to ext_lang_type_printers *.
13754         (gdbpy_free_type_printers): Renamed from free_type_printers, made
13755         static.  Replace argument arg with extlang, extlang_printers.
13756         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13757         (!HAVE_PYTHON, source_python_script): Delete.
13758         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13759         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13760         (!HAVE_PYTHON, start_type_printers): Delete.
13761         (!HAVE_PYTHON, apply_type_printers): Delete.
13762         (!HAVE_PYTHON, free_type_printers): Delete.
13763         (_initialize_python): Delete call to observer_attach_before_prompt.
13764         (finalize_python): Set/restore active extension language.
13765         (gdbpy_finish_initialization) Renamed from
13766         finish_python_initialization, made static.  New arg extlang.
13767         (gdbpy_initialized): New function.
13768         * python/python.h: #include "extension.h".  Delete #include
13769         "value.h", "mi/mi-cmds.h".
13770         (extension_language_python): Declare.
13771         (GDBPY_AUTO_FILE_NAME): Delete.
13772         (enum py_bt_status): Moved to extension.h and renamed to
13773         ext_lang_bt_status.
13774         (enum frame_filter_flags): Moved to extension.h.
13775         (enum py_frame_args): Moved to extension.h and renamed to
13776         ext_lang_frame_args.
13777         (finish_python_initialization): Delete.
13778         (eval_python_from_control_command): Delete.
13779         (source_python_script): Delete.
13780         (apply_val_pretty_printer): Delete.
13781         (apply_frame_filter): Delete.
13782         (preserve_python_values): Delete.
13783         (gdbpy_script_language_defn): Delete.
13784         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13785         (start_type_printers, apply_type_printers, free_type_printers): Delete.
13786
13787         * auto-load.c: #include "extension.h".
13788         (GDB_AUTO_FILE_NAME): Delete.
13789         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
13790         (script_language_gdb): Delete, moved to extension.c and renamed to
13791         extension_language_gdb.
13792         (source_gdb_script_for_objfile): Delete.
13793         (auto_load_pspace_info): New member unsupported_script_warning_printed.
13794         (loaded_script): Change type of language member to
13795         struct extension_language_defn *.
13796         (init_loaded_scripts_info): Initialize
13797         unsupported_script_warning_printed.
13798         (maybe_add_script): Make static.  Change type of language arg to
13799         struct extension_language_defn *.
13800         (clear_section_scripts): Reset unsupported_script_warning_printed.
13801         (auto_load_objfile_script_1): Rewrite to use extension language API.
13802         (auto_load_objfile_script): Make public.  Remove support-compiled-in
13803         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13804         (source_section_scripts): Rewrite to use extension language API.
13805         (load_auto_scripts_for_objfile): Rewrite to use
13806         auto_load_scripts_for_objfile.
13807         (collect_matching_scripts_data): Change type of language member to
13808         struct extension_language_defn *.
13809         (auto_load_info_scripts): Change type of language arg to
13810         struct extension_language_defn *.
13811         (unsupported_script_warning_print): New function.
13812         (script_not_found_warning_print): Make static.
13813         (_initialize_auto_load): Rewrite construction of scripts-directory
13814         help.
13815         * auto-load.h (struct objfile): Add forward decl.
13816         (struct script_language): Delete.
13817         (struct auto_load_pspace_info): Add forward decl.
13818         (struct extension_language_defn): Add forward decl.
13819         (maybe_add_script): Delete.
13820         (auto_load_objfile_script): Declare.
13821         (script_not_found_warning_print): Delete.
13822         (auto_load_info_scripts): Update prototype.
13823         (auto_load_gdb_scripts_enabled): Declare.
13824         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13825         auto_load_python_scripts_enabled and made public.
13826         (script_language_python): Delete, moved to python.c.
13827         (gdbpy_script_language_defn): Delete.
13828         (info_auto_load_python_scripts): Update to use
13829         extension_language_python.
13830
13831         * breakpoint.c (condition_command): Replace call to
13832         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13833         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13834         with call to breakpoint_ext_lang_cond_says_stop.
13835         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13836         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
13837         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13838         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13839         New arg slang.
13840         (local_setattro): Print name of extension language with existing
13841         stop condition.
13842
13843         * valprint.c (val_print, value_print): Update to call
13844         apply_ext_lang_val_pretty_printer.
13845         * cp-valprint.c (cp_print_value): Update call to
13846         apply_ext_lang_val_pretty_printer.
13847         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13848         (gdbpy_apply_val_pretty_printer): Renamed from
13849         apply_val_pretty_printer.  New arg extlang.
13850         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13851
13852         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13853         extension language API.
13854         * cli/cli-script.c (execute_control_command): Update to call
13855         eval_ext_lang_from_control_command.
13856
13857         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13858         enum ext_lang_bt_status values.  Update call to
13859         apply_ext_lang_frame_filter.
13860         (mi_cmd_stack_list_locals): Ditto.
13861         (mi_cmd_stack_list_args): Ditto.
13862         (mi_cmd_stack_list_variables): Ditto.
13863         * mi/mi-main.c: Delete #include "python/python-internal.h".
13864         Add #include "extension.h".
13865         (mi_cmd_list_features): Replace reference to python internal variable
13866         gdb_python_initialized with call to ext_lang_initialized_p.
13867
13868         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13869         Update to use enum ext_lang_frame_args.  Update to call
13870         apply_ext_lang_frame_filter.
13871         * python/py-framefilter.c (extract_sym): Update to use enum
13872         ext_lang_bt_status.
13873         (extract_value, py_print_type, py_print_value): Ditto.
13874         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13875         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13876         (py_print_frame): Ditto.
13877         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13878         New arg extlang.  Update to use enum ext_lang_bt_status.
13879
13880         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13881         finish_python_initialization.  Replace with call to
13882         finish_ext_lang_initialization.
13883
13884         * typeprint.c (do_free_global_table): Update to call
13885         free_ext_lang_type_printers.
13886         (create_global_typedef_table): Update to call
13887         start_ext_lang_type_printers.
13888         (find_global_typedef): Update to call apply_ext_lang_type_printers.
13889         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13890         (type_print_options): Change type of global_printers from "void *"
13891         to "struct ext_lang_type_printers *".
13892
13893         * value.c (preserve_values): Update to call preserve_ext_lang_values.
13894         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13895         (gdbpy_preserve_values): Renamed from preserve_python_values.
13896         New arg extlang.
13897         (!HAVE_PYTHON, preserve_python_values): Delete.
13898
13899         * utils.c (quit_flag): Delete, moved to extension.c.
13900         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13901         extension.c.
13902
13903         * eval.c: Delete #include "python/python.h".
13904         * main.c: Delete #include "python/python.h".
13905
13906         * defs.h: Update comment.
13907
13908 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
13909
13910         GDB 7.7 released.
13911
13912 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
13913
13914         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13915         defined.
13916
13917 2014-02-05  Yao Qi  <yao@codesourcery.com>
13918
13919         * remote.c (remote_pass_signals): Remove local 'buf' and use
13920         rs->buf.
13921         (remote_program_signals): Likewise.
13922
13923 2014-02-05  Yao Qi  <yao@codesourcery.com>
13924
13925         * ctf.c: Include "inferior.h" and "gdbthread.h".
13926         (CTF_PID): A new macro.
13927         (ctf_open): Call inferior_appeared and add_thread_silent.
13928         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13929         (ctf_thread_alive): New function.
13930         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13931
13932 2014-02-05  Yao Qi  <yao@codesourcery.com>
13933
13934         Revert this patch:
13935
13936         2013-05-24  Yao Qi  <yao@codesourcery.com>
13937
13938         * tracepoint.c (TFILE_PID): Remove.
13939         (tfile_open): Don't add thread and inferior.
13940         (tfile_close): Don't set 'inferior_ptid'.  Don't call
13941         exit_inferior_silent.
13942         (tfile_thread_alive): Remove.
13943         (init_tfile_ops): Don't set field 'to_thread_alive' of
13944         tfile_ops.
13945
13946 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
13947
13948         * remote.c (remote_start_remote): Call remote_check_symbols even
13949         if only symbol-file (not file) has been given.
13950
13951 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13952
13953         * gdbarch.sh (skip_entrypoint): New callback.
13954         * gdbarch.c, gdbarch.h: Regenerate.
13955         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13956         * infrun.c (fill_in_stop_func): Likewise.
13957         * ppc-linux-tdep.c: Include "elf/ppc64.h".
13958         (ppc_elfv2_elf_make_msymbol_special): New function.
13959         (ppc_elfv2_skip_entrypoint): Likewise.
13960         (ppc_linux_init_abi): Install them for ELFv2.
13961
13962 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13963
13964         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13965         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13966         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13967         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
13968         structures returned in GPRs.
13969
13970 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13971
13972         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13973         offset to the stack parameter list for the ELFv2 ABI.
13974
13975 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13976
13977         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13978         set_gdbarch_convert_from_func_ptr_addr and
13979         set_gdbarch_elf_make_msymbol_special for ELFv1.
13980         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13981         function descriptors on ELFv1.
13982         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
13983         set up r12 at function entry.
13984
13985 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13986
13987         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
13988         (struct gdbarch_tdep): New member elf_abi.
13989
13990         * rs6000-tdep.c: Include "elf/ppc64.h".
13991         (rs6000_gdbarch_init): Detect ELF ABI version.
13992
13993 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13994
13995         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
13996         within a register pair holding a DFP 128-bit value on little-endian.
13997         (ppc64_sysv_abi_return_value_base): Likewise.
13998         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
13999         (dfp_pseudo_register_write): Likewise.
14000
14001 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14002
14003         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14004         offset on little-endian when passing _Decimal32.
14005         (ppc64_sysv_abi_return_value_base): Likewise for return values.
14006
14007 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14008
14009         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14010         of the overlapped FP register within the VSX register on little-
14011         endian platforms.
14012         (efpr_pseudo_register_write): Likewise.
14013
14014 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14015
14016         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14017         offset on little-endian when passing small structures.
14018
14019 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14020
14021         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14022         (struct ppc64_sysv_argpos): New data structure.
14023         (ppc64_sysv_abi_push_float): Remove.
14024         (ppc64_sysv_abi_push_val): New function.
14025         (ppc64_sysv_abi_push_integer): Likewise.
14026         (ppc64_sysv_abi_push_freg): Likewise.
14027         (ppc64_sysv_abi_push_vreg): Likewise.
14028         (ppc64_sysv_abi_push_param): Likewise.
14029         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14030         (ppc64_sysv_abi_return_value_base): New function.
14031         (ppc64_sysv_abi_return_value): Refactor to use it.
14032
14033 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14034
14035         * NEWS: Document new target powerpc64le-*-linux*.
14036
14037 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
14038
14039         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14040         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14041         core dumps.
14042         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14043         register set used in ELF core dumps.  Add floating-point register set.
14044
14045 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
14046
14047         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14048         dwarf2_to_gdb[] table using symbolic constants.  Adjust
14049         penultimate entry from number representing the PC register
14050         to symbolic constant representing the MDR register.  Add
14051         constant for the PC register to the end of the table.
14052
14053 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
14054
14055         * bsd-kvm.c: Include <sys/param.h>
14056
14057 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
14058
14059         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14060
14061 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
14062
14063         * ada-lang.h (clear_ada_sym_cache): Delete.
14064
14065 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
14066
14067         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14068
14069 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
14070
14071         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14072           the sigreturn register save area only if the syscall is
14073           sigreturn.
14074
14075 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
14076
14077         * valops.c (value_slice): Minor reformatting.
14078
14079 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
14080
14081         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14082
14083 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
14084
14085         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14086         New static globals.
14087         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14088         (ada_ignore_descriptive_types_p): New static global.
14089         (find_parallel_type_by_descriptive_type): Return immediately
14090         if ada_ignore_descriptive_types_p is set.
14091         (_initialize_ada_language): Register new commands "maintenance
14092         set ada", "maintenance show ada", "maintenance set ada
14093         ignore-descriptive-types" and "maintenance show ada
14094         ignore-descriptive-types".
14095         * NEWS: Add entry for new "maint ada set/show
14096         ignore-descriptive-types" commands.
14097
14098 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
14099
14100         * record-btrace.c (record_btrace_close): Call btrace_teardown
14101         for all threads.
14102
14103 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14104
14105         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14106         "ui-out.h".
14107
14108 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14109
14110         * ada-typeprint (type_is_full_subrange_of_target_type):
14111         New function.
14112         (print_range): Add parameter bounds_prefered_p.  If not set,
14113         try printing range types using the name of their base type.
14114         (print_range_type): Add parameter bounds_prefered_p.
14115         Use it in call to print_range.
14116         (print_array_type, ada_print_type): Update calls to print_range
14117         and print_range_type.
14118
14119 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14120
14121         * ada-typeprint.c (print_array_type, print_choices, print_range)
14122         (print_range_bound, print_dynamic_range_bound, print_range_type):
14123         Remove declaration.
14124
14125 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14126
14127         * ada-typeprint.c (print_range): Add missing empty line
14128         after local declaration.
14129
14130 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14131
14132         * ada-valprint.c (print_optional_low_bound): Get index_type's
14133         target type for as long as it is a TYPE_CODE_RANGE.
14134
14135 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14136
14137         * procfs.c (procfs_make_note_section): Remove assertion and
14138         associated comment.
14139
14140 2014-01-24  Yao Qi  <yao@codesourcery.com>
14141
14142         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14143         * corelow.c (get_core_siginfo): Likewise.
14144
14145 2014-01-24  Yao Qi  <yao@codesourcery.com>
14146
14147         * remote.c (remote_write_bytes_aux): Change type of 'len' to
14148         ULONGEST.  Don't check 'len' is negative.
14149         (remote_write_bytes):  Change type of 'len' to ULONGEST.
14150
14151 2014-01-23  Tom Tromey  <tromey@redhat.com>
14152
14153         PR python/16485:
14154         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14155         Handle exception from frame.block.
14156         (FrameVars.fetch_frame_locals): Likewise.
14157
14158 2014-01-23  Tom Tromey  <tromey@redhat.com>
14159
14160         PR python/16487:
14161         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14162         on a NULL pointer.  Move "goto error" to correct place.
14163
14164 2014-01-23  Tom Tromey  <tromey@redhat.com>
14165
14166         PR python/16491:
14167         * python/py-framefilter.c (apply_frame_filter): Call
14168         ensure_python_env after computing gdbarch.
14169
14170 2014-01-23  Yao Qi  <yao@codesourcery.com>
14171
14172         * target.c (raw_memory_xfer_partial): Change argument type
14173         from void * to gdb_byte *.
14174         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14175
14176 2014-01-22  Doug Evans  <dje@google.com>
14177
14178         New gdbserver option --debug-format=timestamp.
14179         * NEWS: Mention it.
14180
14181 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
14182
14183         * syscalls/s390x-linux.xml: New file.
14184         * syscalls/s390-linux.xml: New file.
14185         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14186         (XML_SYSCALL_FILENAME_S390X): Likewise.
14187         (op_svc): New enum value for SVC opcode.
14188         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14189         (s390_linux_get_syscall_number): New function.
14190         (s390_gdbarch_init): Register '*get_syscall_number' and the
14191         syscall xml file name.
14192         * data-directory/Makefile.in (SYSCALLS_FILES): Add
14193         "s390-linux.xml" and "s390x-linux.xml".
14194         * NEWS: Announce new feature.
14195
14196 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
14197
14198         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14199
14200 2014-01-22  Pedro Alves  <palves@redhat.com>
14201
14202         * xtensa-config.c: Include defs.h.
14203
14204 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
14205
14206         * common/common-utils.h: Add "ARI:" comment beside __func__
14207         reference.
14208
14209 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
14210
14211         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14212         documentation a bit.
14213
14214 2014-01-21  Roland McGrath  <mcgrathr@google.com>
14215
14216         * configure.ac: Call AM_PROG_INSTALL_STRIP.
14217         * configure: Regenerate.
14218         * aclocal.m4: Regenerate.
14219         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14220         New substituted variables.
14221         (install-strip): New target.
14222         (INSTALL_SCRIPT): New substituted variable.
14223         (FLAGS_TO_PASS): Add it.
14224         (install-only): Use $(INSTALL_SCRIPT) rather than
14225         $(INSTALL_PROGRAM) for gcore.
14226
14227 2014-01-20  Tom Tromey  <tromey@redhat.com>
14228
14229         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14230         together.
14231
14232 2014-01-20  Tom Tromey  <tromey@redhat.com>
14233
14234         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14235         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14236         (deprecated_cmd_warning, complete_on_cmdlist): Update.
14237         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14238         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14239         (struct cmd_list_element) <flags>: Remove.
14240         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14241         doc_allocated>: New fields.
14242         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14243         bitfields.
14244         * maint.c (maintenance_do_deprecate): Update.
14245         * top.c (execute_command): Update.
14246
14247 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
14248
14249         * xtensa-linux-nat.c: Include asm/ptrace.h.
14250
14251 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14252
14253         * Makefile.in (SFILES): Add d-support.c.
14254         (COMMON_OBS): Add d-support.o.
14255         * d-lang.h (d_parse_symbol): Add comment, now defined in
14256         d-support.c.
14257         * d-lang.c (parse_call_convention)
14258         (parse_attributes, parse_function_types)
14259         (parse_function_args, parse_type, parse_identifier)
14260         (call_convention_p, d_parse_symbol): Move functions to ...
14261         * d-support.c: ... New file.
14262
14263 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14264
14265         * d-lang.h (d_parse_symbol): Add declaration.
14266         * d-lang.c (extract_identifiers)
14267         (extract_type_info): Remove functions.
14268         (parse_call_convention, parse_attributes)
14269         (parse_function_types, parse_function_args)
14270         (parse_type, parse_identifier, call_convention_p)
14271         (d_parse_symbol): New functions.
14272         (d_demangle): Use d_parse_symbol to demangle D symbols.
14273
14274 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14275
14276         * d-lang.h (struct builtin_d_type): New data type.
14277         (builtin_d_type): Add declaration.
14278         * d-lang.c (d_language_arch_info, build_d_types)
14279         (builtin_d_type): New functions.
14280         (enum d_primitive_types): New data type.
14281         (d_language_defn): Change c_language_arch_info to
14282         d_language_arch_info.
14283         (d_type_data): New static variable.
14284         (_initialize_d_language): Initialize d_type_data.
14285
14286 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14287
14288         * d-lang.h (d_main_name): Add declaration.
14289         * d-lang.c (d_main_name): New function.
14290         * symtab.c (find_main_name): Add call to d_main_name.
14291
14292 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14293
14294         * d-lang.c (d_language_defn): Change macro_expansion_c to
14295         macro_expansion_no.
14296
14297 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14298
14299         * MAINTAINERS: Add myself as a write-after-approval maintainer.
14300
14301 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
14302
14303         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14304         gdb_exception" declaration.
14305         * remote.c (getpkt_or_notif_sane): Likewise.
14306
14307 2014-01-17  Doug Evans  <dje@google.com>
14308
14309         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14310         function, contents of dirnames_to_char_ptr_vec_append moved here.
14311         (delim_string_to_char_ptr_vec): New function.
14312         (dirnames_to_char_ptr_vec_append): Rewrite.
14313         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14314
14315 2014-01-17  Doug Evans  <dje@google.com>
14316
14317         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14318         and moved here ...
14319         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14320         #include "common-utils.h".
14321         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14322         * common/vec.h (VEC_ASSERT_PASS): Update.
14323         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14324         (MACH_CHECK_ERROR): Update.
14325
14326 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
14327
14328         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14329         comments.
14330         * gdbarch.h: Regenerate.
14331
14332 2014-01-16  Tom Tromey  <tromey@redhat.com>
14333
14334         * value.c (struct value) <regnum>: Move earlier.
14335
14336 2014-01-16  Tom Tromey  <tromey@redhat.com>
14337
14338         * remote.c (extended_remote_create_inferior): Rename from
14339         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
14340         old implementation.
14341
14342 2014-01-16  Pedro Alves  <palves@redhat.com>
14343
14344         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14345         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14346         the backchain.
14347
14348 2014-01-16  Doug Evans  <dje@google.com>
14349
14350         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14351
14352 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14353
14354         * btrace.h (btrace_thread_flag): New.
14355         (struct btrace_thread_info) <flags>: New.
14356         * record-btrace.c (record_btrace_resume_thread)
14357         (record_btrace_find_thread_to_move, btrace_step_no_history)
14358         (btrace_step_stopped, record_btrace_start_replaying)
14359         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14360         (record_btrace_find_resume_thread): New.
14361         (record_btrace_resume, record_btrace_wait): Extend.
14362         (record_btrace_can_execute_reverse): New.
14363         (record_btrace_open): Fail in non-stop mode.
14364         (record_btrace_set_replay): Split into this, ...
14365         (record_btrace_stop_replaying): ... this, ...
14366         (record_btrace_clear_histories): ... and this.
14367         (init_record_btrace_ops): Init to_can_execute_reverse.
14368         * NEWS: Announce it.
14369
14370 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14371
14372         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14373         (forward_target_decr_pc_after_break)
14374         (target_decr_pc_after_break): New.
14375         * target.c (forward_target_decr_pc_after_break)
14376         (target_decr_pc_after_break): New.
14377         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14378         instead of gdbarch_decr_pc_after_break.
14379         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14380         instead of gdbarch_decr_pc_after_break.
14381         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14382         instead of gdbarch_decr_pc_after_break.
14383         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14384         instead of gdbarch_decr_pc_after_break.
14385         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14386         instead of gdbarch_decr_pc_after_break.
14387         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14388         instead of gdbarch_decr_pc_after_break.
14389
14390 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14391
14392         * btrace.c: Include regcache.h.
14393         (btrace_add_pc): New.
14394         (btrace_enable): Call btrace_add_pc.
14395         (btrace_is_empty): New.
14396         * btrace.h (btrace_is_empty): New.
14397         * record-btrace.c (require_btrace, record_btrace_info): Call
14398         btrace_is_empty.
14399
14400 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14401
14402         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14403         Support delta reads.
14404         (linux_disable_btrace): Change return type.
14405         * common/linux-btrace.h (linux_read_btrace): Change parameters
14406         and return type to allow error reporting.  Update users.
14407         (linux_disable_btrace): Change return type.  Update users.
14408         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14409         New.
14410         (btrace_error): New.
14411         (btrace_block) <begin>: Comment on BEGIN == 0.
14412         * btrace.c (btrace_compute_ftrace): Start from the end of
14413         the current trace.
14414         (btrace_stitch_trace, btrace_clear_history): New.
14415         (btrace_fetch): Read delta trace, return if replaying.
14416         (btrace_clear): Move clear history code to btrace_clear_history.
14417         (parse_xml_btrace): Throw an error if parsing failed.
14418         * target.h (struct target_ops) <to_read_btrace>: Change parameters
14419         and return type to allow error reporting.
14420         (target_read_btrace): Change parameters and return type to allow
14421         error reporting.
14422         * target.c (target_read_btrace): Update.
14423         * remote.c (remote_read_btrace): Support delta reads.  Pass
14424         errors on.
14425         * NEWS: Announce it.
14426
14427 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14428
14429         * record.h (record_btrace_frame_unwind)
14430         (record_btrace_tailcall_frame_unwind): New declarations.
14431         * dwarf2-frame: Include record.h
14432         (dwarf2_frame_cfa): Throw an error for btrace frames.
14433         * record-btrace.c: Include hashtab.h.
14434         (btrace_get_bfun_name): New.
14435         (btrace_call_history): Call btrace_get_bfun_name.
14436         (struct btrace_frame_cache): New.
14437         (bfcache): New.
14438         (bfcache_hash, bfcache_eq, bfcache_new): New.
14439         (btrace_get_frame_function): New.
14440         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14441         (record_btrace_frame_this_id): Compute own id.
14442         (record_btrace_frame_prev_register): Provide PC, throw_error
14443         for all other registers.
14444         (record_btrace_frame_sniffer): Detect btrace frames.
14445         (record_btrace_tailcall_frame_sniffer): New.
14446         (record_btrace_frame_dealloc_cache): New.
14447         (record_btrace_frame_unwind): Add new functions.
14448         (record_btrace_tailcall_frame_unwind): New.
14449         (_initialize_record_btrace): Allocate cache.
14450         * btrace.c (btrace_clear): Call reinit_frame_cache.
14451         * NEWS: Announce it.
14452
14453 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14454
14455         * record-btrace.c (record_btrace_set_replay)
14456         (record_btrace_goto_begin, record_btrace_goto_end)
14457         (record_btrace_goto): New.
14458         (init_record_btrace_ops): Initialize them.
14459         * NEWS: Announce it.
14460
14461 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14462
14463         * record-btrace.c (record_btrace_find_new_threads)
14464         (record_btrace_thread_alive): New.
14465         (init_record_btrace_ops): Initialize to_find_new_threads and
14466         to_thread_alive.
14467
14468 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14469
14470         * record-btrace.c (record_btrace_resume): New.
14471         (record_btrace_wait): New.
14472         (init_record_btrace_ops): Initialize to_wait and to_resume.
14473
14474 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14475
14476         * record-btrace.c (record_btrace_xfer_partial)
14477         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14478         (record_btrace_allow_memory_access): New.
14479         (init_record_btrace_ops): Initialize new methods.
14480         * target.c (raw_memory_xfer_partial): Bail out if target reports
14481         that this memory is not available.
14482
14483 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14484
14485         * target.h (target_ops) <to_insert_breakpoint>
14486         <to_remove_breakpoint>: Add target_ops parameter.
14487         (forward_target_insert_breakpoint): New.
14488         (forward_target_remove_breakpoint): New.
14489         (memory_remove_breakpoint, memory_insert_breakpoint):
14490         Add target_ops parameter.
14491         * target.c (target_insert_breakpoint): Split into this and ...
14492         (forward_target_insert_breakpoint): ... this.
14493         (target_remove_breakpoint): Split into this and ...
14494         (forward_target_remove_breakpoint): ... this.
14495         (debug_to_insert_breakpoint): Add target_ops parameter.
14496         Call forward_target_insert_breakpoint.
14497         (debug_to_remove_breakpoint): Add target_ops parameter.
14498         Call forward_target_remove_breakpoint.
14499         (update_current_target): Do not inherit or default to_insert_breakpoint
14500         and to_remove_breakpoint.
14501         * corelow.c (ignore): Add target_ops parameter.
14502         * exec.c (ignore): Add target_ops parameter.
14503         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14504         Add target_ops parameter.
14505         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14506         Add target_ops parameter.
14507         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14508         Add target_ops parameter.
14509         * record-full.c (record_full_beneath_to_insert_breakpoint)
14510         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14511         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14512         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14513         (record_full_core_remove_breakpoint): Add target_ops parameter.
14514         Update users.
14515         (record_full_beneath_to_insert_breakpoint_ops)
14516         (record_full_beneath_to_remove_breakpoint_ops)
14517         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14518         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14519         tmp_to_remove_breakpoint_ops,
14520         record_full_beneath_to_insert_breakpoint_ops, and
14521         record_full_beneath_to_remove_breakpoint_ops.
14522         * remote-m32r-sdi.c (m32r_insert_breakpoint)
14523         (m32r_remove_breakpoint): Add target_ops parameter.
14524         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14525         Add target_ops parameter.
14526         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14527         Add target_ops parameter.
14528
14529 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
14530             Markus Metzger  <markus.t.metzger@intel.com>
14531
14532         * record-btrace.c: Include frame-unwind.h.
14533         (record_btrace_frame_unwind_stop_reason)
14534         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14535         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14536         New.
14537         (init_record_btrace_ops): Install it.
14538
14539 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
14540
14541         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14542         get_prev_frame_1.
14543
14544 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
14545
14546         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14547         earlier.
14548
14549 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
14550
14551         * frame-unwind.c: Include target.h.
14552         (frame_unwind_try_unwinder): New function with code from ...
14553         (frame_unwind_find_by_frame): ... here.  New variable
14554         unwinder_from_target, call also target_get_unwinder)
14555         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14556         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14557         * target.h (struct target_ops): New fields to_get_unwinder and
14558         to_get_tailcall_unwinder.
14559         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14560
14561 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14562
14563         * record-btrace.c (record_btrace_fetch_registers)
14564         (record_btrace_store_registers)
14565         (record_btrace_to_prepare_to_store): New.
14566         (init_record_btrace_ops): Add the above.
14567
14568 2014-01-16  Tom Tromey  <tromey@redhat.com>
14569
14570         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14571         * target.h (struct target_ops) <to_prepare_to_store>: Add
14572         argument.
14573         (target_prepare_to_store): Add argument.
14574         * target.c (debug_to_prepare_to_store): Add argument.
14575         (update_current_target): Update.
14576         * remote.c (remote_prepare_to_store): Add 'self' argument.
14577         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14578         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14579         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14580         * record-full.c (record_full_core_prepare_to_store): Add 'self'
14581         argument.
14582         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14583         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14584         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14585         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14586         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14587
14588 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14589
14590         * btrace.h (replay) <replay>: New.
14591         (btrace_is_replaying): New.
14592         * btrace.c (btrace_clear): Free replay iterator.
14593         (btrace_is_replaying): New.
14594         * record-btrace.c (record_btrace_is_replaying): New.
14595         (record_btrace_info): Print insn number if replaying.
14596         (record_btrace_insn_history): Start at replay position.
14597         (record_btrace_call_history): Start at replay position.
14598         (init_record_btrace_ops): Init to_record_is_replaying.
14599
14600 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14601
14602         * record-btrace.c (record_btrace_insn_history_range): Include
14603         end.
14604         (record_btrace_insn_history_from): Adjust range.
14605         (record_btrace_call_history_range): Include
14606         end.
14607         (record_btrace_call_history_from): Adjust range.
14608         * NEWS: Announce changes.
14609
14610 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14611
14612         * record.h (enum record_print_flag)
14613         <record_print_indent_calls>: New.
14614         * record.c (get_call_history_modifiers): Recognize /c modifier.
14615         (_initialize_record): Document /c modifier.
14616         * record-btrace.c (btrace_call_history): Add btinfo parameter.
14617         Reorder fields.  Optionally indent the function name.  Update
14618         all users.
14619         * NEWS: Announce changes.
14620
14621 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14622
14623         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14624
14625 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14626
14627         * btrace.c (ftrace_new_function): Start counting at one.
14628         * record-btrace.c (record_btrace_info): Adjust number of calls
14629         and insns.
14630         * NEWS: Announce it.
14631
14632 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14633
14634         * record-btrace.c (btrace_call_history_insn_range): Print
14635         insn range as [begin, end].
14636
14637 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14638
14639         * btrace.h (struct btrace_func_link): New.
14640         (enum btrace_function_flag): New.
14641         (struct btrace_inst): Rename to ...
14642         (struct btrace_insn): ...this. Update all users.
14643         (struct btrace_func) <ibegin, iend>: Remove.
14644         (struct btrace_func_link): New.
14645         (struct btrace_func): Rename to ...
14646         (struct btrace_function): ...this. Update all users.
14647         (struct btrace_function) <segment, flow, up, insn, insn_offset)
14648         (number, level, flags>: New.
14649         (struct btrace_insn_iterator): Rename to ...
14650         (struct btrace_insn_history): ...this.
14651         Update all users.
14652         (struct btrace_insn_iterator, btrace_call_iterator): New.
14653         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14654         (struct btrace_target_info) <begin, end, level>
14655         <insn_history, call_history>: New.
14656         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14657         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14658         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14659         (btrace_call_number, btrace_call_begin, btrace_call_end)
14660         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14661         (btrace_find_function_by_number, btrace_set_insn_history)
14662         (btrace_set_call_history): New.
14663         * btrace.c (btrace_init_insn_iterator)
14664         (btrace_init_func_iterator, compute_itrace): Remove.
14665         (ftrace_print_function_name, ftrace_print_filename)
14666         (ftrace_skip_file): Change
14667         parameter to const.
14668         (ftrace_init_func): Remove.
14669         (ftrace_debug): Use new btrace_function fields.
14670         (ftrace_function_switched): Also consider gaining and
14671         losing symbol information).
14672         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14673         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14674         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14675         New.
14676         (ftrace_new_function): Move. Remove debug print.
14677         (ftrace_update_lines, ftrace_update_insns): New.
14678         (ftrace_update_function): Check for call, ret, and jump.
14679         (compute_ftrace): Renamed to ...
14680         (btrace_compute_ftrace): ...this. Rewritten to compute call
14681         stack.
14682         (btrace_fetch, btrace_clear): Updated.
14683         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14684         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14685         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14686         (btrace_call_number, btrace_call_begin, btrace_call_end)
14687         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14688         (btrace_find_function_by_number, btrace_set_insn_history)
14689         (btrace_set_call_history): New.
14690         * record-btrace.c (require_btrace): Use new btrace thread
14691         info fields.
14692         (record_btrace_info, btrace_insn_history)
14693         (record_btrace_insn_history, record_btrace_insn_history_range):
14694         Use new btrace thread info fields and new iterator.
14695         (btrace_func_history_src_line): Rename to ...
14696         (btrace_call_history_src_line): ...this. Use new btrace
14697         thread info fields.
14698         (btrace_func_history): Rename to ...
14699         (btrace_call_history): ...this. Use new btrace thread info
14700         fields and new iterator.
14701         (record_btrace_call_history, record_btrace_call_history_range):
14702         Use new btrace thread info fields and new iterator.
14703
14704 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14705
14706         * frame.h (frame_id_build_unavailable_stack_special): New.
14707         * frame.c (frame_id_build_unavailable_stack_special): New.
14708
14709 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14710
14711         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14712         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14713         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14714         to gdbarch.
14715         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14716         (i386_insn_is_jump, i386_jmp_p): New.
14717         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14718         insn_is_jump to gdbarch.
14719         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14720         * gdbarch.h: Regenerated.
14721         * gdbarch.c: Regenerated.
14722         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14723         (default_insn_is_jump): New.
14724         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14725         (default_insn_is_jump): New.
14726
14727 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14728
14729         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14730         Change to ...
14731         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
14732         (btrace_read_type) <btrace_read_new>: Change to ...
14733         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
14734
14735 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14736
14737         * common/linux-btrace.c (linux_read_btrace): Free trace from
14738         previous iteration.
14739
14740 2014-01-15  Doug Evans  <dje@google.com>
14741
14742         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14743         uint32_t.
14744
14745 2014-01-15  Tom Tromey  <tromey@redhat.com>
14746
14747         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14748         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14749         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14750         (set_objfile_main_name): New function.
14751         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14752         language_of_main>: New fields.
14753         (set_objfile_main_name): Declare.
14754         * symtab.c (find_main_name): Loop over objfiles to find the main
14755         name and language.
14756         (set_main_name): Now static.
14757         (get_main_info): Add comment.
14758         * symtab.h (set_main_name): Don't declare.
14759
14760 2014-01-15  Tom Tromey  <tromey@redhat.com>
14761
14762         * symtab.c (main_progspace_key): New global.
14763         (struct main_info): New.
14764         (name_of_main, language_of_main): Remove.
14765         (get_main_info, main_info_cleanup): New function.
14766         (set_main_name, main_name, main_language): Use get_main_info.
14767         (_initialize_symtab): Initialize main_progspace_key.
14768
14769 2014-01-15  Tom Tromey  <tromey@redhat.com>
14770
14771         * dbxread.c (process_one_symbol): Update.
14772         * dwarf2read.c (read_partial_die): Update.
14773         * symfile.c (set_initial_language): Call main_language.
14774         * symtab.c (language_of_main): Now static.
14775         (set_main_name): Add 'lang' parameter.
14776         (find_main_name): Update.
14777         (main_language): New function.
14778         (symtab_observer_executable_changed): Update.
14779         * symtab.h (set_main_name): Update.
14780         (language_of_main): Remove.
14781         (main_language): Declare.
14782
14783 2014-01-15  Tom Tromey  <tromey@redhat.com>
14784
14785         * symfile.c (init_entry_point_info): Use new "initialized" field.
14786         Update.
14787         * objfiles.h (struct entry_point) <initialized>: New field.
14788         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14789         (struct objfile) <ei>: ...here.  Remove.
14790         * objfiles.c (entry_point_address_query): Update.
14791
14792 2014-01-15  Tom Tromey  <tromey@redhat.com>
14793
14794         * objfiles.c (entry_point_address_query): Relocate entry point
14795         address.
14796         (objfile_relocate1): Do not relocate entry point address.
14797         * objfiles.h (struct entry_info) <entry_point>: Update comment.
14798         <the_bfd_section_index>: New field.
14799         * symfile.c (init_entry_point_info): Find the entry point's
14800         section.
14801
14802 2014-01-15  Tom Tromey  <tromey@redhat.com>
14803
14804         * solib-frv.c (enable_break): Use entry_point_address_query.
14805
14806 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14807
14808         * NEWS: Add note on improved process record-replay on
14809         arm*-linux* targets.
14810
14811 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14812
14813         * arm-tdep.c (enum arm_record_result): New enum.
14814         (arm_record_unsupported_insn): New function.
14815         (arm_record_coproc_data_proc): Removed.
14816         (thumb2_record_ld_st_multiple): New function.
14817         (thumb2_record_ld_st_dual_ex_tbb): New function.
14818         (thumb2_record_data_proc_sreg_mimm): New function.
14819         (thumb2_record_ps_dest_generic): New function.
14820         (thumb2_record_branch_misc_cntrl): New function.
14821         (thumb2_record_str_single_data): New function.
14822         (thumb2_record_ld_mem_hints): New function.
14823         (thumb2_record_ld_word): New function.
14824         (thumb2_record_lmul_lmla_div): New function.
14825         (thumb2_record_decode_insn_handler): New function.
14826         (decode_insn): Add thumb32 instruction handlers.
14827
14828 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14829
14830         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14831         (struct arm_linux_record_tdep): Declare.
14832         (arm_canonicalize_syscall): New function.
14833         (arm_all_but_pc_registers_record): New function.
14834         (arm_linux_syscall_record): New function.
14835         (arm_linux_init_abi): Add syscall recording constructs.
14836         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14837         decoding.  (arm_record_coproc_data_proc): Update arm syscall
14838         decoding.
14839         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14840         <arm_syscall_record>: New field.
14841         * configure.tgt (arm*-*-linux*): Add linux-record.o to
14842         gdb_target_obs.
14843
14844 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14845
14846         * arm-tdep.c (thumb_record_misc): Update to use sp as base
14847         register for push instruction recording.
14848
14849 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14850
14851         * arm-tdep.c (thumb_record_misc): Update to correct logical
14852         error while recording ldm, ldmia and pop instructions.
14853
14854 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14855
14856         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14857
14858 2014-01-15  Pedro Alves  <palves@redhat.com>
14859
14860         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14861         (go32_resume, go32_fetch_registers, store_register)
14862         (go32_store_registers, go32_prepare_to_store)
14863         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14864         (go32_create_inferior, go32_can_run, go32_terminal_init)
14865         (go32_terminal_inferior, go32_terminal_ours): Delete forward
14866         declarations.
14867
14868 2014-01-15  Tom Tromey  <tromey@redhat.com>
14869
14870         * target.h (async_callback_ftype): New typedef.
14871         (struct target_ops) <to_async>: Use it.
14872
14873 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
14874
14875         * python/py-value.c (get_field_type): Remove unnecessary curly
14876         braces for single-statement if block.
14877
14878 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
14879
14880         * python/py-type.c (convert_field): Add missing empty line
14881         after declarations.
14882
14883 2014-01-14  Doug Evans  <dje@google.com>
14884
14885         * symfile.h (expand_symtabs_matching): Renamed from
14886         expand_partial_symbol_names.  Update prototype.
14887         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14888         * symfile.c (expand_symtabs_matching): Renamed from
14889         expand_partial_symbol_names.  New args file_matcher, kind.
14890         Rename arg fun to symbol_matcher.
14891         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14892         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14893         ada_expand_partial_symbol_name.
14894         (ada_make_symbol_completion_list): Update to call
14895         expand_symtabs_matching.
14896         (ada_add_global_exceptions): Call expand_symtabs_matching.
14897         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14898         call map_symbol_filenames.
14899         * symtab.c (sources_info): Update to call map_symbol_filenames.
14900         (search_symbols): Call expand_symtabs_matching.
14901         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14902         (default_make_symbol_completion_list_break_on): Update to call
14903         expand_symtabs_matching.
14904         (make_source_files_completion_list): Update to call
14905         map_symbol_filenames.
14906
14907 2014-01-14  Doug Evans  <dje@google.com>
14908
14909         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14910         (expand_symtabs_symbol_matcher_ftype): New typedef.
14911         (quick_symbol_functions.expand_symtabs_matching): Update to use.
14912         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14913         * symfile.c (expand_partial_symbol_names): Update to use
14914         expand_symtabs_symbol_matcher_ftype.
14915         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14916         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14917         Arg name_matcher renamed to symbol_matcher.
14918         * psymtab.c (recursively_search_psymtabs): Update to use
14919         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
14920         sym_matcher.
14921         (expand_symtabs_matching_via_partial): Update to use
14922         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14923         Arg name_matcher renamed to symbol_matcher.
14924
14925 2014-01-14  Doug Evans  <dje@google.com>
14926
14927         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14928         (map_partial_symbol_filenames): Ditto.
14929         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14930         (map_partial_symbol_filenames): Ditto.
14931         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14932         (map_partial_symbol_filenames): Ditto.
14933         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14934         (map_partial_symbol_filenames): Ditto.
14935         * symtab.c: Delete #include "psymtab.h".
14936
14937 2014-01-14  Pedro Alves  <palves@redhat.com>
14938             Tom Tromey  <tromey@redhat.com>
14939
14940         * infrun.c (use_displaced_stepping): Use find_record_target
14941         instead of RECORD_IS_USED.
14942         (adjust_pc_after_break): Use record_full_is_used instead of
14943         RECORD_IS_USED.
14944         * record-btrace.c (record_btrace_open): Call record_preopen
14945         instead of checking RECORD_IS_USED.
14946         * record-full.c (record_full_shortname)
14947         (record_full_core_shortname): New globals.
14948         (record_full_is_used): New function.
14949         (find_full_open): Call record_preopen instead of checking
14950         RECORD_IS_USED.
14951         (init_record_full_ops): Set the target's shortname to
14952         record_full_shortname.
14953         (init_record_full_core_ops): Set the target's shortname to
14954         record_full_core_shortname.
14955         * record-full.h (record_full_is_used): Declare.
14956         * record.c (find_record_target): Make extern.
14957         (record_preopen): New function.
14958         * record.h (RECORD_IS_USED): Delete macro.
14959         (find_record_target, record_preopen): Declare functions.
14960
14961 2014-01-14  Yao Qi  <yao@codesourcery.com>
14962
14963         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14964         'len''s type to ULONGEST.
14965         (core_xfer_shared_libraries_aix): Likewise.
14966         * gdbarch.c, gdbarch.h: Regenerated.
14967         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14968         Change type of 'len' to ULONGEST.
14969         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14970         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14971
14972 2014-01-14  Yao Qi  <yao@codesourcery.com>
14973
14974         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14975         type of 'len' to ULONGEST.
14976         (linux_xfer_osdata_processgroups): Likewise.
14977         (linux_xfer_osdata_threads): Likewise.
14978         (linux_xfer_osdata_fds): Likewise.
14979         (linux_xfer_osdata_isockets): Likewise.
14980         (linux_xfer_osdata_shm): Likewise.
14981         (linux_xfer_osdata_sem): Likewise.
14982         (linux_xfer_osdata_msg): Likewise.
14983         (linux_common_xfer_osdata): Likewise.
14984         (struct osdata_type) <getter>: Likewise.
14985         * common/linux-osdata.h (linux_common_xfer_osdata): Update
14986         the declaration.
14987
14988 2014-01-14  Yao Qi  <yao@codesourcery.com>
14989
14990         * target.h (target_xfer_partial_ftype): Update.
14991         (struct target_ops) <to_xfer_partial>: Change 'len' type to
14992         ULONGEST.
14993         * aix-thread.c (aix_thread_xfer_partial): Change type of
14994         argument 'len' to ULONGEST.
14995         * auxv.c (procfs_xfer_auxv): Likewise.
14996         (ld_so_xfer_auxv): Likewise.
14997         (memory_xfer_auxv): Likewise.
14998         * bfd-target.c (target_bfd_xfer_partial): Likewise.
14999         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15000         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15001         * corelow.c (core_xfer_partial): Likewise.
15002         * ctf.c (ctf_xfer_partial): Likewise.
15003         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
15004         '%u'.
15005         (darwin_read_dyld_info): Likewise.
15006         (darwin_xfer_partial): Likewise.
15007         * exec.c (section_table_xfer_memory_partial): Likewise.
15008         (exec_xfer_partial): Likewise.
15009         * exec.h (section_table_xfer_memory_partial): Update
15010         declaration.
15011         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
15012         instead of plongest.
15013         (gnu_xfer_partial): Likewise.
15014         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15015         (ia64_hpux_xfer_solib_got): Likewise.
15016         (ia64_hpux_xfer_partial): Likewise.
15017         * ia64-linux-nat.c (ia64_linux_xfer_partial):
15018         * inf-ptrace.c (inf_ptrace_xfer_partial):
15019         * inf-ttrace.c (inf_ttrace_xfer_partial):
15020         * linux-nat.c (linux_xfer_siginfo): Likewise.
15021         (linux_nat_xfer_partial): Likewise.
15022         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15023         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15024         * monitor.c (monitor_xfer_memory): Likewise.
15025         (monitor_xfer_partial): Likewise.
15026         * procfs.c (procfs_xfer_partial): Likewise.
15027         * record-full.c (record_full_xfer_partial): Likewise.
15028         (record_full_core_xfer_partial): Likewise.
15029         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
15030         instead of plongest.
15031         (gdbsim_xfer_partial): Likewise.
15032         * remote.c (remote_xfer_partial): Likewise.
15033         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15034         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15035         declaration.
15036         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15037         (rs6000_xfer_shared_libraries): Likewise.
15038         * sol-thread.c (sol_thread_xfer_partial): Likewise.
15039         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15040         (sparc_xfer_partial): Likewise.
15041         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15042         (spu_xfer_partial): Likewise.
15043         * spu-multiarch.c (spu_xfer_partial): Likewise.
15044         * target.c (target_read_live_memory): Likewise.
15045         (memory_xfer_live_readonly_partial): Likewise.
15046         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15047         (target_xfer_partial, default_xfer_partial): Likewise.
15048         (current_xfer_partial): Likewise.
15049         * tracepoint.c (tfile_xfer_partial): Likewise.
15050         * windows-nat.c (windows_xfer_memory): Likewise.  Call
15051         pulongest instead of plongest.
15052         (windows_xfer_partial): Likewise.
15053         (windows_xfer_shared_libraries): Likewise.
15054
15055 2014-01-14  Yao Qi  <yao@codesourcery.com>
15056
15057         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15058         target_xfer_partial_ftype.
15059
15060 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
15061
15062         PR python/15464
15063         PR python/16113
15064         * valops.c (value_struct_elt_bitpos): New function
15065         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15066         object to 'None' if the field name is an empty string ("").
15067         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15068         attribute to look for a field when 'name' is 'None'.
15069         (get_field_type): New function
15070
15071 2014-01-13  Doug Evans  <dje@google.com>
15072
15073         PR symtab/16426
15074         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15075         (try_open_dwop_file): Ditto.
15076         * gdb_bfd.c: #include "vec.h".
15077         (bfdp): New typedef.
15078         (struct gdb_bfd_data): New member included_bfds.
15079         (gdb_bfd_unref): Unref all included bfds.
15080         (gdb_bfd_record_inclusion): New function.
15081         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15082
15083 2014-01-13  Tom Tromey  <tromey@redhat.com>
15084
15085         * gdbcore.h (deprecated_core_resize_section_table): Remove.
15086
15087 2014-01-13  Tom Tromey  <tromey@redhat.com>
15088
15089         * defs.h (use_windows): Remove.
15090         * gdb.c (main): Update.
15091         * main.c (captured_main, gdb_main): Update.
15092         * main.h (struct captured_main_args) <use_windows>: Remove.
15093         * top.c (use_windows): Remove.
15094
15095 2014-01-13  Tom Tromey  <tromey@redhat.com>
15096
15097         * defs.h (deprecated_flush_hook): Remove.
15098
15099 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
15100
15101         PR threads/16216
15102         * linux-thread-db.c (try_thread_db_load): Add parameter
15103         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
15104         (try_thread_db_load_from_pdir_1): Move it there from here.
15105         (try_thread_db_load_from_sdir): Update caller.
15106         (try_thread_db_load_from_dir): Move it there from here.
15107
15108 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
15109
15110         * regformats/regdat.sh: Always rewrite the register file.
15111
15112 2014-01-13  Pedro Alves  <palves@redhat.com>
15113
15114         * Makefile.in (CHECK_HEADERS): New variable.
15115         (check-headers:): New rule.
15116
15117 2014-01-13  Tom Tromey  <tromey@redhat.com>
15118
15119         * cli/cli-setshow.c (do_set_command): Update.
15120         * defs.h (deprecated_set_hook): Remove.
15121         * top.c (deprecated_set_hook): Remove.
15122
15123 2014-01-13  Pedro Alves  <palves@redhat.com>
15124
15125         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15126         the tracepoint if the PC is a pseudo-register.
15127
15128 2014-01-13  Tom Tromey  <tromey@redhat.com>
15129
15130         * defs.h (XCALLOC): Remove.
15131         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15132         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15133         * dwarf2loc.c (allocate_piece_closure): Likewise.
15134         * elfread.c (elf_symfile_segments): Likewise.
15135         (elf_symfile_segments): Likewise.
15136         * gdbtypes.c (copy_type_recursive): Likewise.
15137         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15138         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15139         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15140         XCALLOC.
15141         * mt-tdep.c (mt_gdbarch_init): Likewise.
15142         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15143         XCALLOC.
15144         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15145         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15146         * registry.c (registry_alloc_data): Likewise.
15147         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15148         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15149         * serial.c (serial_fdopen_ops): Likewise.
15150         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15151         XCALLOC.
15152         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15153         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15154         not XCALLOC.
15155
15156 2014-01-13  Tom Tromey  <tromey@redhat.com>
15157
15158         * defs.h (XMALLOC): Remove.
15159         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15160         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15161         * cli-out.c (struct ui_out *): Likewise.
15162         * cli/cli-dump.c (add_dump_command): Likewise.
15163         (add_dump_command): Likewise.
15164         * complaints.c (get_complaints): Likewise.
15165         (find_complaint): Likewise.
15166         * dwarf2-frame.c (execute_cfa_program): Likewise.
15167         * dwarf2read.c (abbrev_table_read_table): Likewise.
15168         * gdbarch.sh: Likewise.
15169         * gdbarch.c: Rebuild.
15170         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15171         * interps.c (interp_new): Likewise.
15172         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15173         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15174         * mi/mi-console.c (mi_console_file_new): Likewise.
15175         * mi/mi-interp.c (mi_interpreter_init): Likewise.
15176         * mi/mi-out.c (mi_out_new): Likewise.
15177         * mi/mi-parse.c (mi_parse): Likewise.
15178         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15179         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15180         * observer.c (xalloc_observer_list_node): Likewise.
15181         * regcache.c (regcache_xmalloc_1): Likewise.
15182         * reggroups.c (reggroup_new): Likewise.
15183         (_initialize_reggroup): Likewise.
15184         * registry.c (register_data_with_cleanup): Likewise.
15185         * remote.c (remote_notif_stop_alloc_reply): Likewise.
15186         * ser-base.c (serial_ttystate): Likewise.
15187         * ser-mingw.c (make_pipe_state): Likewise.
15188         * ser-pipe.c (pipe_open): Likewise.
15189         * serial.c (serial_open): Likewise.
15190         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15191         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15192         (tui_alloc_win_info): Likewise.
15193         (tui_add_content_elements): Likewise.
15194         * tui/tui-file.c (tui_file_new): Likewise.
15195         * tui/tui-out.c (tui_out_new): Likewise.
15196         * ui-file.c (mem_file_new): Likewise.
15197         * ui-out.c (push_level): Likewise.
15198         (make_cleanup_ui_out_end): Likewise.
15199         (append_header_to_list): Likewise.
15200         (ui_out_new): Likewise.
15201         * user-regs.c (user_reg_add_builtin): Likewise.
15202
15203 2014-01-13  Tom Tromey  <tromey@redhat.com>
15204
15205         * defs.h (XZALLOC): Remove.
15206         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15207         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15208         (get_ada_tasks_inferior_data): Likewise.
15209         * auto-load.c (get_auto_load_pspace_data): Likewise.
15210         * auxv.c (get_auxv_inferior_data): Likewise.
15211         * bfd-target.c (target_bfd_reopen): Likewise.
15212         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15213         (deprecated_insert_raw_breakpoint): Likewise.
15214         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15215         * corelow.c (core_open): Likewise.
15216         * darwin-nat.c (darwin_check_new_threads): Likewise.
15217         (darwin_attach_pid): Likewise.
15218         * dummy-frame.c (dummy_frame_push): Likewise.
15219         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15220         * dwarf2loc.c (allocate_piece_closure): Likewise.
15221         * elfread.c (elf_symfile_segments): Likewise.
15222         * eval.c (ptrmath_type_p): Likewise.
15223         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15224         * gdbtypes.c (alloc_type_arch): Likewise.
15225         (alloc_type_instance): Likewise.
15226         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15227         * inf-child.c (inf_child_can_use_agent): Likewise.
15228         * inflow.c (get_inflow_inferior_data): Likewise.
15229         * infrun.c (save_infcall_suspend_state): Likewise.
15230         * jit.c (jit_reader_load): Likewise.
15231         (get_jit_objfile_data): Likewise.
15232         (get_jit_program_space_data): Likewise.
15233         (jit_object_open_impl): Likewise.
15234         (jit_symtab_open_impl): Likewise.
15235         (jit_block_open_impl): Likewise.
15236         (jit_frame_sniffer): Likewise.
15237         * linux-fork.c (add_fork): Likewise.
15238         * maint.c (make_command_stats_cleanup): Likewise.
15239         * objfiles.c (get_objfile_pspace_data): Likewise.
15240         * opencl-lang.c (struct lval_closure): Likewise.
15241         * osdata.c (osdata_start_osdata): Likewise.
15242         * progspace.c (new_address_space): Likewise.
15243         (add_program_space): Likewise.
15244         * remote-sim.c (get_sim_inferior_data): Likewise.
15245         * sh-tdep.c (sh_gdbarch_init): Likewise.
15246         * skip.c (Ignore): Likewise.
15247         (skip_delete_command): Likewise.
15248         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15249         (library_list_start_library): Likewise.
15250         (solib_aix_current_sos): Likewise.
15251         * solib-darwin.c (get_darwin_info): Likewise.
15252         (darwin_current_sos): Likewise.
15253         * solib-dsbt.c (get_dsbt_info): Likewise.
15254         * solib-ia64-hpux.c (new_so_list): Likewise.
15255         (ia64_hpux_get_solib_linkage_addr): Likewise.
15256         * solib-spu.c (append_ocl_sos): Likewise.
15257         (spu_current_sos): Likewise.
15258         * solib-svr4.c (get_svr4_info): Likewise.
15259         (svr4_keep_data_in_core): Likewise.
15260         (library_list_start_library): Likewise.
15261         (svr4_default_sos): Likewise.
15262         (svr4_read_so_list): Likewise.
15263         * solib-target.c (library_list_start_library): Likewise.
15264         (solib_target_current_sos): Likewise.
15265         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15266         * symfile-debug.c (install_symfile_debug_logging): Likewise.
15267         * symfile.c (default_symfile_segments): Likewise.
15268         * target-descriptions.c (tdesc_data_init): Likewise.
15269         (tdesc_create_reg): Likewise.
15270         (struct tdesc_type *): Likewise.
15271         (tdesc_create_vector): Likewise.
15272         (tdesc_set_struct_size): Likewise.
15273         (struct tdesc_type *): Likewise.
15274         (tdesc_free_feature): Likewise.
15275         (tdesc_create_feature): Likewise.
15276         * windows-nat.c (windows_add_thread): Likewise.
15277         (windows_make_so): Likewise.
15278         * xml-support.c (gdb_xml_body_text): Likewise.
15279         (gdb_xml_create_parser_and_cleanup): Likewise.
15280         (xml_process_xincludes): Likewise.
15281         * xml-syscall.c (allocate_syscalls_info): Likewise.
15282         (syscall_create_syscall_desc): Likewise.
15283
15284 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
15285
15286         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15287         function, with code from i386_stap_parse_special_token.
15288         (i386_stap_parse_special_token_three_arg_disp): Likewise.
15289         (i386_stap_parse_special_token): Move code to the two functions
15290         above; simplify it.
15291
15292 2014-01-09  Pedro Alves  <palves@redhat.com>
15293             Hui Zhu  <hui@codesourcery.com>
15294
15295         PR gdb/16101
15296         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15297         bp_err_string.  Don't mark the location shlib_disabled if the
15298         error thrown wasn't a generic or memory error.  Catch errors
15299         thrown while inserting breakpoints in overlayed code.  Output
15300         error message of software breakpoints.
15301         * remote.c (remote_insert_breakpoint): If this breakpoint has
15302         target-side commands but this stub doesn't support Z0 packets,
15303         throw NOT_SUPPORTED_ERROR error.
15304         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15305         * target.h (target_insert_breakpoint): Extend comment.
15306         (target_insert_hw_breakpoint): Add comment.
15307
15308 2014-01-08  Pedro Alves  <palves@redhat.com>
15309
15310         * remote.c (remote_add_thread): Add threads silently if starting
15311         up.
15312         (remote_notice_new_inferior): If in all-stop, and starting up,
15313         don't call notice_new_inferior.
15314         (get_current_thread): New function, factored out from ...
15315         (add_current_inferior_and_thread): ... this.  Adjust.
15316         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
15317         found any thread, then select the remote's current thread as GDB's
15318         current thread too.
15319
15320 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
15321
15322         * NEWS: Create a new section for the next release branch.
15323         Rename the section of the current branch, now that it has
15324         been cut.
15325
15326 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
15327
15328         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15329         * version.in: Bump version to 7.7.50.DATE-cvs.
15330
15331 2014-01-08  Yao Qi  <yao@codesourcery.com>
15332
15333         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15334         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
15335         (spu_xfer_partial): Cast 'buf' to 'const char *'.
15336
15337 2014-01-08  Yao Qi  <yao@codesourcery.com>
15338
15339         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15340         return value of bfd_get_filename to symbol_file_add_from_bfd.
15341
15342 2014-01-08  Pierre Muller  <muller@sourceware.org>
15343
15344         Fix PR16201.
15345         * coff-pe-read.c (struct read_pe_section_data): Add index field.
15346         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15347         to prim_record_mininal_symbol_and_info.
15348         (add_pe_forwarded_sym): Use known section number of forwarded symbol
15349         in call to prim_record_minimal_symbol_and_info.
15350         (read_pe_exported_syms): Set index field of section_data.
15351
15352 2014-01-07  Andrew Pinski  <apinski@cavium.com>
15353
15354         * features/aarch64-core.xml (cpsr): Change to be 64bit.
15355         * features/aarch64.c: Regenerate.
15356
15357 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
15358
15359         * target.c (return_null): Define.
15360         (update_current_target): Use it instead of return_zero for
15361         functions that return a pointer.
15362
15363 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
15364
15365         * source.c (add_path): Fix check for duplicated paths in the previously
15366         included paths.
15367
15368 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
15369
15370         * ada-lang.c: Remove duplicated include statements.
15371         * alphabsd-nat.c: Ditto.
15372         * amd64-darwin-tdep.c: Ditto.
15373         * amd64fbsd-nat.c: Ditto.
15374         * auto-load.c: Ditto.
15375         * ax-gdb.c: Ditto.
15376         * breakpoint.c: Ditto.
15377         * dbxread.c: Ditto.
15378         * fork-child.c: Ditto.
15379         * gdb_usleep.c: Ditto.
15380         * i386-darwin-tdep.c: Ditto.
15381         * i386fbsd-nat.c: Ditto.
15382         * infcmd.c: Ditto.
15383         * inferior.c: Ditto.
15384         * jv-lang.c: Ditto.
15385         * linux-nat.c: Ditto.
15386         * linux-tdep.c: Ditto.
15387         * m68kbsd-nat.c: Ditto.
15388         * m68klinux-nat.c: Ditto.
15389         * microblaze-tdep.c: Ditto.
15390         * mips-linux-tdep.c: Ditto.
15391         * mn10300-tdep.c: Ditto.
15392         * nto-tdep.c: Ditto.
15393         * opencl-lang.c: Ditto.
15394         * osdata.c: Ditto.
15395         * printcmd.c: Ditto.
15396         * regcache.c: Ditto.
15397         * remote-m32r-sdi.c: Ditto.
15398         * remote.c: Ditto.
15399         * symfile.c: Ditto.
15400         * symtab.c: Ditto.
15401         * tilegx-linux-nat.c: Ditto.
15402         * tilegx-tdep.c: Ditto.
15403         * tracepoint.c: Ditto.
15404         * valops.c: Ditto.
15405         * vaxbsd-nat.c: Ditto.
15406         * windows-nat.c: Ditto.
15407         * xtensa-tdep.c: Ditto.
15408
15409 2014-01-07  Yao Qi  <yao@codesourcery.com>
15410
15411         * spu-linux-nat.c (_initialize_spu_nat): Declare.
15412
15413 2014-01-07  Yao Qi  <yao@codesourcery.com>
15414             Joel Brobecker  <brobecker@adacore.com>
15415
15416         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15417         (pdc_write_regs): Likewise.
15418         (fetch_regs_kernel_thread): Likewise.
15419         (store_regs_kernel_thread): Likewise.
15420
15421 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15422
15423         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15424         tagged type objects to their actual type.
15425
15426 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15427
15428         * ada-valprint.c (print_field_values): Add "language" parameter.
15429         Update calls to print_field_values and print_variant_part.
15430         Pass new parameter "language" in call to val_print instead
15431         of "current_language".  Replace call to ada_val_print by call
15432         to val_print.
15433         (print_variant_part): Add "language" parameter.
15434         (ada_val_print_struct_union): Update call to print_field_values.
15435
15436 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15437
15438         * ada-valprint.c (ui_memcpy): Delete.
15439         (ada_print_floating): Update documentation.  Add empty line
15440         between between function documentation and implementation.
15441         Delete variable "buffer".  Use ui_file_xstrdup in place of
15442         ui_file_put.  Minor adjustments following this change.
15443
15444 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15445
15446         * ada-valprint.c (ada_val_print_string): New function,
15447         extracted from ada_val_print_array.
15448         (ada_val_print_array): Replace extracted code by call
15449         to ada_val_print_string followed by a return.  Move
15450         "else" branch to the function's top block.
15451
15452 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15453
15454         * ada-valprint.c (ada_val_print_array): Move implementation
15455         down.  Rename parameter "offset" and "val" into "offset_aligned"
15456         and "original_value" respectively.  Add parameter "offset".
15457
15458 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15459
15460         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15461         re-organizing the code. Change the "???" message printed
15462         when target type is a TYPE_CODE_UNDEF into
15463         "<ref to undefined type>".
15464
15465 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15466
15467         * ada-valprint.c (print_record): Delete, implementation inlined...
15468         (ada_val_print_struct_union): ... here.  Remove call to
15469         ada_check_typedef in inlined implementation.
15470
15471 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15472
15473         * ada-valprint.c (ada_val_print_gnat_array): New function,
15474         extracted from ada_val_print_1;
15475         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15476         (ada_val_print_flt, ada_val_print_struct_union)
15477         (ada_val_print_ref): Likewise.
15478         (ada_val_print_1): Delete variables i and elttype.
15479         Replace extracted-out code by call to corresponding
15480         new functions.
15481
15482 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15483
15484         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15485
15486 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15487
15488         * ada-valprint.c (ada_val_print_1): Replace calls to
15489         ada_val_print_1 by calls to val_print.
15490
15491 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15492
15493         * ada-valprint.c (ada_val_print_1): Add parameter "language".
15494         Update calls to self accordingly.  Replace calls to c_val_print
15495         by calls to val_print.
15496
15497 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15498
15499         * ada-valprint.c (print_record): Delete declaration.
15500         (adjust_type_signedness, ada_val_print_1): Likewise.
15501         (ada_val_print): Move function implementation down.
15502         (print_variant_part, print_field_values, print_record):
15503         Move function implementation up.
15504
15505 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15506
15507         * python/py-type.c (typy_get_name): New function.
15508         (type_object_getset): Add entry for attribute "name".
15509         * NEWS: Add entry mentioning this new attribute.
15510
15511 2014-01-07  Yao Qi  <yao@codesourcery.com>
15512
15513         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15514         statement.
15515
15516 2014-01-07  Yao Qi  <yao@codesourcery.com>
15517
15518         * gnu-nat.c (info_port_rights): Add qualifier const to
15519         argument args.
15520
15521 2014-01-07  Yao Qi  <yao@codesourcery.com>
15522
15523         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15524
15525 2014-01-07  Yao Qi  <yao@codesourcery.com>
15526
15527         * gnu-nat.c (make_inf) Update declaration.
15528         (make_inf): Make it static.
15529         (inf_set_traced): Likewise.
15530         (inf_port_to_thread, inf_task_died_status): Likewise.
15531
15532 2014-01-07  Yao Qi  <yao@codesourcery.com>
15533
15534         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15535
15536 2014-01-07  Yao Qi  <yao@codesourcery.com>
15537
15538         * gnu-nat.c (_initialize_gnu_nat): Declare.
15539
15540 2014-01-07  Yao Qi  <yao@codesourcery.com>
15541
15542         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15543         'enum bfd_endian'.
15544         (struct gdbarch_info) <byte_order>: Change type to
15545         'enum bfd_endian'.
15546         <byte_order_for_code>: Likewise.
15547         * gdbarch.c, gdbarch.h: Regenerated.
15548
15549 2014-01-06  Sasha Smundak  <asmundak@google.com>
15550
15551         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15552
15553 2014-01-06  Tom Tromey  <tromey@redhat.com>
15554
15555         * doublest.c (convert_doublest_to_floatformat): Use const, not
15556         CONST.
15557         * somread.c (som_symtab_read): Likewise.
15558
15559 2014-01-07  Hui Zhu  <hui@codesourcery.com>
15560
15561         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15562         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15563         (gdb_bfd_fopen): Ditto.
15564         (gdb_bfd_openr): Ditto.
15565         (gdb_bfd_openw): Ditto.
15566         (gdb_bfd_openr_iovec): Ditto.
15567         (gdb_bfd_fdopenr): Ditto.
15568         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15569         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15570         with xstrdup.
15571         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15572         with xstrdup.
15573         * symfile-mem.c (symbol_file_add_from_memory): Removed
15574         gdb_bfd_stash_filename.
15575
15576 2014-01-03  Doug Evans  <dje@google.com>
15577
15578         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15579         output.
15580
15581 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
15582
15583         Update year range in copyright notice of all files.
15584
15585 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
15586
15587         * top.c (print_gdb_version): Set copyright year to 2014.
15588
15589 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
15590
15591         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15592
15593 For older changes see ChangeLog-2013.
15594 \f
15595 Local Variables:
15596 mode: change-log
15597 left-margin: 8
15598 fill-column: 74
15599 version-control: never
15600 coding: utf-8
15601 End: