6b5c02a9044f33e20f1531e58dd4ee8a16ff1f82
[external/binutils.git] / gdb / ChangeLog
1 2014-11-28  Ulrich Weigand  <uweigand@de.ibm.com>
2
3         * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
4         * config/sparc/linux.mh (NATDEPFILES): Likewise.
5         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
6         * m68klinux-nat.c (fetch_core_registers): Remove.
7         (linux_elf_core_fns): Remove.
8         (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
9
10 2014-11-28  Joel Brobecker  <brobecker@adacore.com>
11
12         * utils.c (gdb_realpath): Rework comment about handling on
13         Windows.
14
15 2014-11-28  Yao Qi  <yao@codesourcery.com>
16
17         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
18         rename.
19         * gnulib/aclocal.m4: Re-generated.
20         * gnulib/config.in: Re-generated.
21         * gnulib/configure: Re-generated.
22         * gnulib/import/Makefile.am: Re-generated.
23         * gnulib/import/Makefile.in: Re-generated.
24         * gnulib/import/m4/gnulib-cache.m4: Re-generated.
25         * gnulib/import/m4/gnulib-comp.m4: Re-generated.
26         * import/basename-lgpl.c: New file.
27         * import/dirname-lgpl.c: New file.
28         * import/dirname.h: New file.
29         * import/m4/dirname.m4: New file.
30         * import/m4/malloc.m4: New file.
31         * import/m4/rename.m4: New file.
32         * import/m4/rmdir.m4: New file.
33         * import/m4/stdio_h.m4: New file.
34         * import/malloc.c: New file.
35         * import/rename.c: New file.
36         * import/rmdir.c: New file.
37         * import/same-inode.h: New file.
38         * import/stdio.c: New file.
39         * import/stdio.in.h: New file.
40         * import/stripslash.c: New file.
41
42 2014-11-28  Yao Qi  <yao@codesourcery.com>
43
44         * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
45         and realpath.
46         * config.in: Re-generated.
47         * configure: Re-generated.
48         * utils.c (gdb_realpath): Remove code calling realpath,
49         canonicalize_file_name and pathconf.
50         [!_WIN32]: Call canonicalize_file_name.
51
52 2014-11-28  Yao Qi  <yao@codesourcery.com>
53
54         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
55         canonicalize-lgpl.
56         * aclocal.m4: Re-generated.
57         * config.in: Re-generated.
58         * configure: Re-generated.
59         * import/Makefile.am: Re-generated.
60         * import/Makefile.in: Re-generated.
61         * import/m4/gnulib-cache.m4: Re-generated.
62         * import/m4/gnulib-comp.m4: Re-generated.
63         * import/canonicalize-lgpl.c: New file.
64         * import/extra/snippet/_Noreturn.h: New file.
65         * import/m4/canonicalize.m4: New file.
66         * import/m4/double-slash-root.m4: New file.
67         * import/m4/eealloc.m4: New file.
68         * import/m4/malloca.m4: New file.
69         * import/m4/nocrash.m4: New file.
70         * import/m4/stdlib_h.m4: New file.
71         * import/malloca.c: New file.
72         * import/malloca.h: New file.
73         * import/malloca.valgrind: New file.
74
75 2014-11-28  Yao Qi  <yao@codesourcery.com>
76
77         * configure.ac (AC_CHECK_FUNCS): Remove lstat.
78         * config.in, configure: Regenerate.
79         * symfile.c (find_separate_debug_file_by_debuglink): Remove
80         code checking HAVE_LSTAT is defined.
81
82 2014-11-28  Yao Qi  <yao@codesourcery.com>
83
84         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
85         lstat.
86         * gnulib/aclocal.m4: Re-generated.
87         * gnulib/config.in: Re-generated.
88         * gnulib/configure: Re-generated.
89         * gnulib/import/Makefile.am: Re-generated.
90         * gnulib/import/Makefile.in: Re-generated.
91         * gnulib/import/m4/gnulib-cache.m4: Re-generated.
92         * gnulib/import/m4/gnulib-comp.m4: Re-generated.
93         * gnulib/import/lstat.c: New file.
94         * gnulib/import/m4/lstat.m4: New file.
95
96 2014-11-28  Yao Qi  <yao@codesourcery.com>
97
98         * configure.ac (AC_CHECK_FUNCS): Remove readlink.
99         * config.in, configure: Re-generate.
100         * inf-child.c (inf_child_fileio_readlink): Don't check
101         HAVE_READLINK is defined.
102
103 2014-11-28  Yao Qi  <yao@codesourcery.com>
104
105         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
106         * gnulib/aclocal.m4: Re-generated.
107         * gnulib/config.in: Likewise.
108         * gnulib/configure: Likewise.
109         * gnulib/import/Makefile.am: Likewise.
110         * gnulib/import/Makefile.in: Likewise.
111         * gnulib/import/m4/gnulib-cache.m4: Likewise.
112         * gnulib/import/m4/gnulib-comp.m4: Likewise.
113         * gnulib/import/dosname.h: New file
114         * gnulib/import/m4/largefile.m4: New file.
115         * gnulib/import/m4/readlink.m4: New file.
116         * gnulib/import/m4/stat.m4: New file.
117         * gnulib/import/readlink.c: New file.
118         * gnulib/import/stat.c: New file.
119
120 2014-11-26  Mark Wielaard  <mjw@redhat.com>
121
122         * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
123         DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
124
125 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
126
127         * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
128         that there can be only one stack adjustment in the prologue
129         with tests to detect specific disallowed stack adjustments.
130
131 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
132
133         * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
134         adjustments.
135
136 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
137
138         * nios2-tdep.c (nios2_fetch_insn): Move up in file.  Disassemble
139         the instruction as well as reading it from memory.
140         (nios2_match_add): New.
141         (nios2_match_sub): New.
142         (nios2_match_addi): New.
143         (nios2_match_orhi): New.
144         (nios2_match_stw): New.
145         (nios2_match_ldw): New.
146         (nios2_match_rdctl): New.
147         (enum branch_condition): New.
148         (nios2_match_branch): New.
149         (nios2_match_jmpi): New.
150         (nios2_match_calli): New.
151         (nios2_match_jmpr): New.
152         (nios2_match_callr): New.
153         (nios2_match_break): New.
154         (nios2_match_trap): New.
155         (nios2_in_epilogue_p): Rewrite to use new functions.
156         (nios2_analyze_prologue): Likewise.
157         (nios2_skip_prologue): Delete unused local limit_pc.
158         (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
159         (nios2_get_next_pc): Rewrite to use new functions.
160
161 2014-11-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
162
163         * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
164
165 2014-11-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
166
167         Pushed by Joel Brobecker  <brobecker@adacore.com>
168         * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
169         elements pi_len by the size of the elements before calling
170         vm_deallocate.
171         (inf_validate_task_sc): Likewise, and properly deallocate the
172         noise array.
173
174 2014-11-23  Doug Evans  <xdje42@gmail.com>
175
176         * gdbtypes.c (print_args): Renamed from print_arg_types.  Print arg
177         number and name if present.  All callers updated.
178         (dump_fn_fieldlists): Fix indentation of args.
179
180 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
181
182         * MAINTAINERS (Write After Approval): Add myself.
183
184 2014-11-23  Joel Brobecker  <brobecker@adacore.com>
185
186         * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
187         to a bp_call_dummy breakpoint type.
188
189 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
190
191         * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
192         registering the signal handler.
193
194 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
195
196         * event-top.h (call_stdin_event_handler_again_p): Declare.
197         * event-top.c (call_stdin_event_handler_again_p): Define.
198         (stdin_event_handler): Use it.
199         * tui/tui-io.c (tui_getc): Prepare to call the stdin event
200         handler again if there is pending input following a
201         start sequence.
202
203 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
204
205         Pushed by Joel Brobecker  <brobecker@adacore.com>
206         * linux-fork.c (checkpoint_command): Print index of new
207         checkpoint in response message.
208
209 2014-11-23  Yao Qi  <yao@codesourcery.com>
210
211         * valprint.c (read_string): Move local variables 'found_nul',
212         'chunksize' and 'limit' to inner scope.  Update comments.
213
214 2014-11-22  Doug Evans  <xdje42@gmail.com>
215
216         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
217         function comment.
218         (search_symbols): Fix comments and whitespace.
219
220 2014-11-22  Doug Evans  <xdje42@gmail.com>
221
222         * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
223
224 2014-11-21  Doug Evans  <dje@google.com>
225
226         * psymtab.c (psymtab_search_name): Fix whitespace.
227
228 2014-11-21  Yao Qi  <yao@codesourcery.com>
229
230         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
231         errno.
232         * gnulib/import/Makefile.am: Re-generated.
233         * gnulib/import/Makefile.in: Likewise.
234         * gnulib/import/m4/gnulib-cache.m4: Likewise.
235
236 2014-11-21  Yao Qi  <yao@codesourcery.com>
237
238         * gdb_wchar.h: Include wchar.h and wctype.h.
239         [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
240         include wchar.h and wctype.h.
241         Don't check HAVE_WCHAR_H.
242
243 2014-11-21  Yao Qi  <yao@codesourcery.com>
244
245         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
246         and wctype-h.
247         * gnulib/import/Makefile.am: Re-generated.
248         * gnulib/import/Makefile.in: Likewise.
249         * gnulib/import/m4/gnulib-cache.m4: Likewise.
250
251 2014-11-21  Yao Qi  <yao@codesourcery.com>
252
253         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
254         memchr.
255         * gnulib/import/Makefile.am: Re-generated.
256         * gnulib/import/Makefile.in: Likewise.
257         * gnulib/import/m4/gnulib-cache.m4: Likewise.
258
259 2014-11-21  Yao Qi  <yao@codesourcery.com>
260
261         * common/common-defs.h: Include alloca.h
262         * configure.ac: Don't invoke AC_FUNC_ALLOCA.
263         * configure: Re-generated.
264         * defs.h: Remove code handling alloca.
265         * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
266         or not.
267
268 2014-11-21  Yao Qi  <yao@codesourcery.com>
269
270         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
271         alloca.
272         * gnulib/import/Makefile.am: Re-generated.
273         * gnulib/import/Makefile.in: Likewise..
274         * gnulib/import/m4/gnulib-cache.m4: Likewise.
275
276 2014-11-21  Yao Qi  <yao@codesourcery.com>
277
278         * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
279         alphabetical order.
280
281 2014-11-21  Joel Brobecker  <brobecker@adacore.com>
282
283         * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
284         flag_unsigned if HIGH_BOUND is constant and negative.
285
286 2014-11-20  Sergio Durigan Junior  <sergiodj@redhat.com>
287
288         PR breakpoints/10737
289         * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
290         modifier from "struct gdbarch" when compiling without Expat (XML)
291         support.
292         (get_syscall_by_number): Likewise.
293         (get_syscall_by_name): Likewise.
294         (get_syscall_names): Likewise.
295
296 2014-11-20  Sergio Durigan Junior  <sergiodj@redhat.com>
297
298         PR breakpoints/10737
299         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
300         set_xml_syscall_file_name to provide gdbarch.
301         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
302         * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
303         * breakpoint.c (print_it_catch_syscall): Adjust call to
304         get_syscall_by_number to provide gdbarch.
305         (print_one_catch_syscall): Likewise.
306         (print_mention_catch_syscall): Likewise.
307         (print_recreate_catch_syscall): Likewise.
308         (catch_syscall_split_args): Adjust calls to get_syscall_by_number
309         and get_syscall_by_name to provide gdbarch.
310         (catch_syscall_completer): Adjust call to get_syscall_names to
311         provide gdbarch.
312         * gdbarch.c: Regenerate.
313         * gdbarch.h: Likewise.
314         * gdbarch.sh: Forward declare "struct syscalls_info".
315         (xml_syscall_file): New variable.
316         (syscalls_info): Likewise.
317         * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
318         set_xml_syscall_file_name to provide gdbarch.
319         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
320         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
321         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
322         * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
323         * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
324         * xml-syscall.c: Include gdbarch.h.
325         (set_xml_syscall_file_name): Accept gdbarch parameter.
326         (get_syscall_by_number): Likewise.
327         (get_syscall_by_name): Likewise.
328         (get_syscall_names): Likewise.
329         (my_gdb_datadir): Delete global variable.
330         (struct syscalls_info) <my_gdb_datadir>: New variable.
331         (struct syscalls_info) <sysinfo>: Rename variable to
332         "syscalls_info".
333         (sysinfo): Delete global variable.
334         (have_initialized_sysinfo): Likewise.
335         (xml_syscall_file): Likewise.
336         (sysinfo_free_syscalls_desc): Rename to...
337         (syscalls_info_free_syscalls_desc): ... this.
338         (free_syscalls_info): Rename "sysinfo" to "syscalls_info".  Adjust
339         code to the new layout of "struct syscalls_info".
340         (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
341         "syscalls_info".
342         (syscall_create_syscall_desc): Likewise.
343         (syscall_start_syscall): Likewise.
344         (syscall_parse_xml): Likewise.
345         (xml_init_syscalls_info): Likewise.  Drop "const" from return value.
346         (init_sysinfo): Rename to...
347         (init_syscalls_info): ...this.  Add gdbarch as a parameter.
348         Adjust function to deal with gdbarch.
349         (xml_get_syscall_number): Delete parameter sysinfo.  Accept
350         gdbarch as a parameter.  Adjust code.
351         (xml_get_syscall_name): Likewise.
352         (xml_list_of_syscalls): Likewise.
353         (set_xml_syscall_file_name): Accept gdbarch as parameter.
354         (get_syscall_by_number): Likewise.
355         (get_syscall_by_name): Likewise.
356         (get_syscall_names): Likewise.
357         * xml-syscall.h (set_xml_syscall_file_name): Likewise.
358         (get_syscall_by_number): Likewise.
359         (get_syscall_by_name): Likewise.
360         (get_syscall_names): Likewise.
361
362 2014-11-20  Doug Evans  <xdje42@gmail.com>
363
364         Split struct symtab into two: struct symtab and compunit_symtab.
365         * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
366         * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
367         to "struct compunit_symtab *".  All callers updated.
368         (set_block_compunit_symtab): Renamed from set_block_symtab.  Change
369         "struct symtab *" argument to "struct compunit_symtab *".
370         All callers updated.
371         (get_block_compunit_symtab): Renamed from get_block_symtab.  Change
372         result to "struct compunit_symtab *".  All callers updated.
373         (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
374         Change result to "struct compunit_symtab *".  All callers updated.
375         * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
376         hange type to "struct compunit_symtab *".  All uses updated.
377         (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
378         Change type to "struct compunit_symtab *".  All uses updated.
379         * buildsym.c (struct buildsym_compunit): New struct.
380         (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
381         (buildsym_compunit): New static global.
382         (finish_block_internal): Update to fetch objfile from
383         buildsym_compunit.
384         (make_blockvector): Delete objfile argument.
385         (start_subfile): Rewrite to use buildsym_compunit.  Don't initialize
386         debugformat, producer.
387         (start_buildsym_compunit): New function.
388         (free_buildsym_compunit): Renamed from free_subfiles_list.
389         All callers updated.
390         (patch_subfile_names): Rewrite to use buildsym_compunit.
391         (get_compunit_symtab): New function.
392         (get_macro_table): Delete argument comp_dir.  All callers updated.
393         (start_symtab): Change result to "struct compunit_symtab *".
394         All callers updated.  Create the subfile of the main source file.
395         (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
396         (reset_symtab_globals): Update.
397         (end_symtab_get_static_block): Update to use buildsym_compunit.
398         (end_symtab_without_blockvector): Rewrite.
399         (end_symtab_with_blockvector): Change result to
400         "struct compunit_symtab *".  All callers updated.
401         Update to use buildsym_compunit.  Don't set symtab->dirname,
402         instead set it in the compunit.
403         Explicitly make sure main symtab is first in its list.
404         Set debugformat, producer, blockvector, block_line_section, and
405         macrotable in the compunit.
406         (end_symtab_from_static_block): Change result to
407         "struct compunit_symtab *".  All callers updated.
408         (end_symtab, end_expandable_symtab): Ditto.
409         (set_missing_symtab): Change symtab argument to
410         "struct compunit_symtab *".  All callers updated.
411         (augment_type_symtab): Ditto.
412         (record_debugformat): Update to use buildsym_compunit.
413         (record_producer): Update to use buildsym_compunit.
414         * buildsym.h (struct subfile) <dirname>: Delete.
415         <producer, debugformat>: Delete.
416         <buildsym_compunit>: New member.
417         (get_compunit_symtab): Declare.
418         * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
419         from primary_symtab.  Change type to "struct compunit_symtab *".
420         All uses updated.
421         (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
422         All callers updated.
423         (dwarf_decode_macros): Delete comp_dir argument.  All callers updated.
424         (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
425         symtab.  Change type to "struct compunit_symtab *".  All uses updated.
426         (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
427         All callers updated.
428         (dw2_find_last_source_symtab): Ditto.
429         (dw2_lookup_symbol): Ditto.
430         (recursively_find_pc_sect_compunit_symtab): Renamed from
431         recursively_find_pc_sect_symtab.  Change result to
432         "struct compunit_symtab *".  All callers updated.
433         (dw2_find_pc_sect_compunit_symtab): Renamed from
434         dw2_find_pc_sect_symtab.  Change result to
435         "struct compunit_symtab *".  All callers updated.
436         (get_compunit_symtab): Renamed from get_symtab.  Change result to
437         "struct compunit_symtab *".  All callers updated.
438         (recursively_compute_inclusions): Change type of immediate_parent
439         argument to "struct compunit_symtab *".  All callers updated.
440         (compute_compunit_symtab_includes): Renamed from
441         compute_symtab_includes.  All callers updated.  Rewrite to compute
442         includes of compunit_symtabs and not symtabs.
443         (process_full_comp_unit): Update to work with struct compunit_symtab.
444         (process_full_type_unit): Ditto.
445         (dwarf_decode_lines_1): Delete argument comp_dir.  All callers updated.
446         (dwarf_decode_lines): Remove special case handling of main subfile.
447         (macro_start_file): Delete argument comp_dir.  All callers updated.
448         (dwarf_decode_macro_bytes): Ditto.
449         * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
450         use struct compunit_symtab.
451         * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
452         * jit.c (finalize_symtab): Build compunit_symtab.
453         * jv-lang.c (get_java_class_symtab): Change result to
454         "struct compunit_symtab *".  All callers updated.
455         * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
456         * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
457         comp_dir.  Change type to "struct compunit_symtab *".
458         All uses updated.
459         (new_macro_table): Change comp_dir argument to cust,
460         "struct compunit_symtab *".  All callers updated.
461         * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
462         nr_primary_symtabs.  All uses updated.
463         (count_symtabs_and_blocks): Update to handle compunits.
464         (report_command_stats): Update output, "primary symtabs" renamed to
465         "compunits".
466         * mdebugread.c (new_symtab): Change result to
467         "struct compunit_symtab *".  All callers updated.
468         (parse_procedure): Change type of search_symtab argument to
469         "struct compunit_symtab *".  All callers updated.
470         * objfiles.c (objfile_relocate1): Loop over blockvectors in a
471         separate loop.
472         * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
473         symtabs.  Change type to "struct compunit_symtab *".  All uses updated.
474         (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
475         All uses updated.
476         (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
477         All uses updated.
478         (ALL_FILETABS): Renamed from ALL_SYMTABS.  All uses updated.
479         (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS.  All uses updated.
480         * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
481         symtab.  Change type to "struct compunit_symtab *".  All uses updated.
482         * psymtab.c (psymtab_to_symtab): Change result type to
483         "struct compunit_symtab *".  All callers updated.
484         (find_pc_sect_compunit_symtab_from_partial): Renamed from
485         find_pc_sect_symtab_from_partial.  Change result type to
486         "struct compunit_symtab *".  All callers updated.
487         (lookup_symbol_aux_psymtabs): Change result type to
488         "struct compunit_symtab *".  All callers updated.
489         (find_last_source_symtab_from_partial): Ditto.
490         * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
491         * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
492         and macro_table from compunit.
493         * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
494         type to "struct compunit_symtab *".  All callers updated.
495         (debug_qf_lookup_symbol): Ditto.
496         (debug_qf_find_pc_sect_compunit_symtab): Renamed from
497         debug_qf_find_pc_sect_symtab, change result type to
498         "struct compunit_symtab *".  All callers updated.
499         * symfile.c (allocate_symtab): Delete objfile argument.
500         New argument cust.
501         (allocate_compunit_symtab): New function.
502         (add_compunit_symtab_to_objfile): New function.
503         * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
504         Change result type to "struct compunit_symtab *".  All uses updated.
505         <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
506         Change result type to "struct compunit_symtab *".  All uses updated.
507         * symmisc.c (print_objfile_statistics): Compute blockvector count in
508         separate loop.
509         (dump_symtab_1): Update test for primary source symtab.
510         (maintenance_info_symtabs): Update to handle compunit symtabs.
511         (maintenance_check_symtabs): Ditto.
512         * symtab.c (set_primary_symtab): Delete.
513         (compunit_primary_filetab): New function.
514         (compunit_language): New function.
515         (iterate_over_some_symtabs): Change type of arguments "first",
516         "after_last" to "struct compunit_symtab *".  All callers updated.
517         Update to loop over symtabs in each compunit.
518         (error_in_psymtab_expansion): Rename symtab argument to cust,
519         and change type to "struct compunit_symtab *".  All callers updated.
520         (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
521         Change result type to "struct compunit_symtab *".  All callers updated.
522         (find_pc_compunit_symtab): Renamed from find_pc_symtab.
523         Change result type to "struct compunit_symtab *".  All callers updated.
524         (find_pc_sect_line): Only loop over symtabs within selected compunit
525         instead of all symtabs in the objfile.
526         * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
527         <compunit_symtab> New member.
528         <block_line_section>: Moved to compunit_symtab.
529         <locations_valid>: Ditto.
530         <epilogue_unwind_valid>: Ditto.
531         <macro_table>: Ditto.
532         <dirname>: Ditto.
533         <debugformat>: Ditto.
534         <producer>: Ditto.
535         <objfile>: Ditto.
536         <call_site_htab>: Ditto.
537         <includes>: Ditto.
538         <user>: Ditto.
539         <primary>: Delete
540         (SYMTAB_COMPUNIT): New macro.
541         (SYMTAB_BLOCKVECTOR): Update definition.
542         (SYMTAB_OBJFILE): Update definition.
543         (SYMTAB_DIRNAME): Update definition.
544         (struct compunit_symtab): New type.  Common members among all source
545         symtabs within a compilation unit moved here.  All uses updated.
546         (COMPUNIT_OBJFILE): New macro.
547         (COMPUNIT_FILETABS): New macro.
548         (COMPUNIT_DEBUGFORMAT): New macro.
549         (COMPUNIT_PRODUCER): New macro.
550         (COMPUNIT_DIRNAME): New macro.
551         (COMPUNIT_BLOCKVECTOR): New macro.
552         (COMPUNIT_BLOCK_LINE_SECTION): New macro.
553         (COMPUNIT_LOCATIONS_VALID): New macro.
554         (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
555         (COMPUNIT_CALL_SITE_HTAB): New macro.
556         (COMPUNIT_MACRO_TABLE): New macro.
557         (ALL_COMPUNIT_FILETABS): New macro.
558         (compunit_symtab_ptr): New typedef.
559         (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
560
561 2014-11-20  Joel Brobecker  <brobecker@adacore.com>
562
563         * ada-lang.c (ada_is_redundant_range_encoding): Return 0
564         if the TYPE_CODE of range_type's base type does not match
565         the TYPE_CODE of encoding_type's base type.
566
567 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
568
569         * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
570         it starts with '<'.
571
572 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
573
574         * ada-lang.c (ada_is_redundant_range_encoding): New function.
575         (ada_is_redundant_index_type_desc): New function.
576         (to_fixed_array_type): Ignore parallel XA type if redundant.
577
578 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
579
580         * ada-lang.c (constrained_packed_array_type): Set the length
581         of the return array as if both bounds where zero if that
582         returned array's index type is dynamic.
583
584 2014-11-19  Yao Qi  <yao@codesourcery.com>
585
586         * config/i386/go32.mh (CC): Remove.
587
588 2014-11-18  Doug Evans  <xdje42@gmail.com>
589
590         * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR.  All uses
591         updated.
592
593 2014-11-18  Doug Evans  <xdje42@gmail.com>
594
595         * buildsym.c (buildsym_objfile): New static global.
596         (buildsym_comp_dir): New static global.
597         (finish_block_internal): Delete arg objfile.  All callers updated.
598         (finish_block): Delete arg objfile.  All callers updated.
599         (start_subfile): Delete arg dirname.  All callers updated.
600         (patch_subfile_names): Update buildsym_comp_dir.
601         (get_macro_table): Delete arg objfile.  All callers updated.
602         (start_symtab): New arg objfile.  All callers updated.
603         Rename arg dirname to comp_dir.
604         (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
605         (end_symtab_get_static_block): Delete arg objfile.  All callers
606         updated.
607         (end_symtab_without_blockvector): Ditto.
608         (end_symtab_with_blockvector): Ditto.
609         (end_symtab_from_static_block): Ditto.
610         (end_symtab): Ditto.
611         (end_expandable_symtab): Ditto.
612         (augment_type_symtab): Ditto.
613         * coffread.c (coff_start_symtab): New arg objfile.  All callers
614         updated.
615
616 2014-11-18  Doug Evans  <xdje42@gmail.com>
617
618         * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE.  All uses
619         updated.
620
621 2014-11-18  Doug Evans  <xdje42@gmail.com>
622
623         * symtab.h (SYMTAB_DIRNAME): New macro.  All uses of member
624         symtab.dirname updated to use it.
625
626 2014-11-18  Doug Evans  <xdje42@gmail.com>
627
628         * symtab.h (SYMTAB_OBJFILE): New macro.  All uses of member
629         symtab.objfile updated to use it.
630
631 2014-11-18  Doug Evans  <xdje42@gmail.com>
632
633         * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
634
635 2014-11-18  Doug Evans  <xdje42@gmail.com>
636
637         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
638         SYMBOL_OBJFILE.
639         * findvar.c (default_read_var_value): Ditto.
640         * jv-lang.c (add_class_symtab_symbol): Ditto.
641         * parse.c (operator_check_standard): Ditto.
642         * printcmd.c (address_info): Ditto.
643         * symtab.c (fixup_symbol_section): Ditto.
644         (skip_prologue_sal): Ditto.
645         * tracepoint.c (scope_info): Ditto.
646         * valops.c (find_function_in_inferior): Ditto.
647         * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
648         * python/py-symbol.c (set_symbol): Ditto.
649
650 2014-11-18  Doug Evans  <xdje42@gmail.com>
651
652         * buildsym.c (main_subfile): New static global.
653         (free_subfiles_list): New function.
654         (start_symtab): Set main_subfile.
655         (restart_symtab): Replace init of subfiles, current_subfile with
656         call to free_subfiles_list.
657         (watch_main_source_file_lossage): Use main_subfile.
658         (reset_symtab_globals): Replace init of current_subfile with call
659         to free_subfiles_list.
660         (end_symtab_without_blockvector, end_symtab_with_blockvector): New
661         functions, split out from ...
662         (end_symtab_from_static_block): ... here.  Rewrite to call them.
663
664 2014-11-18  Doug Evans  <xdje42@gmail.com>
665
666         The result of symtab expansion is always a primary symtab.
667         * dwarf2read.c (dw2_instantiate_symtab): Add assert.
668         (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
669         * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
670         (psymtab_to_symtab): Add comment and assert.
671         (map_matching_symbols_psymtab): Remove unnecessary test for
672         non-primary symtab.
673
674 2014-11-15  Doug Evans  <xdje42@gmail.com>
675
676         PR symtab/17559
677         * symtab.c (find_pc_line_symtab): New function.
678         * symtab.h (find_pc_line_symtab): Declare.
679         * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
680         find_pc_symtab.
681         * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
682         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
683         * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
684         * tui/tui-win.c (make_visible_with_new_height): Ditto.
685         * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
686         (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
687
688 2014-11-15  Doug Evans  <xdje42@gmail.com>
689
690         * symtab.c (expand_symtab_containing_pc): Renamed from
691         find_pc_sect_symtab_via_partial.  All callers updated.
692
693 2014-11-15  Yao Qi  <yao@codesourcery.com>
694
695         * go32-nat.c (go32_create_inferior): Add missing parenthesis.
696
697 2014-11-14  Joel Brobecker  <brobecker@adacore.com>
698
699         * common/common-defs.h: Move <stdarg.h> #include ahead of
700         <stdio.h> #include.
701
702 2014-11-14  Pedro Alves  <palves@redhat.com>
703
704         * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
705         [!PHONY_ICONV] (gdb_iconv): New function.
706         [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
707
708 2014-11-13  Doug Evans  <dje@google.com>
709
710         PR symtab/17591
711         * dwarf2read.c (find_slot_in_mapped_hash): Handle
712         "(anonymous namespace)".
713
714 2014-11-13  Doug Evans  <dje@google.com>
715
716         * dwarf2read.c (update_enumeration_type_from_children): Avoid
717         infinite loop.
718
719 2014-11-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
720
721         * NEWS (maint set target-async): Fix typo.
722
723 2014-11-12  Pedro Alves  <palves@redhat.com>
724
725         * infrun.c (enum infwait_states, infwait_state): Delete.
726
727 2014-11-12  Pedro Alves  <palves@redhat.com>
728
729         * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
730         Rewrite stepping over a permanent breakpoint.
731         (thread_still_needs_step_over, proceed): Don't set
732         stepping_over_breakpoint for permanent breakpoints.
733         (handle_signal_stop): Don't clear stepped_breakpoint.  Also pull
734         single-step breakpoints out of the target on hardware step
735         targets.
736         (process_event_stop_test): If stepping a permanent breakpoint
737         doesn't hit the step-resume breakpoint, delete the step-resume
738         breakpoint.
739         (switch_back_to_stepped_thread): Also check if the stepped thread
740         has advanced already on hardware step targets.
741         (currently_stepping): Return true if the thread stepped a
742         breakpoint.
743
744 2014-11-12  Pedro Alves  <palves@redhat.com>
745
746         Mark locations as permanent, not the whole breakpoint.
747         * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
748         (mark_breakpoints_out): Don't mark permanent breakpoints as
749         uninserted.
750         (breakpoint_init_inferior): Use mark_breakpoints_out.
751         (breakpoint_here_p): Adjust.
752         (bpstat_stop_status, describe_other_breakpoints): Remove handling
753         of permanent breakpoints.
754         (make_breakpoint_permanent): Mark each location as permanent,
755         instead of marking the breakpoint.
756         (add_location_to_breakpoint): If the location is permanent, mark
757         it as such, and as inserted.
758         (init_breakpoint_sal): Don't make the breakpoint permanent here.
759         (bp_location_compare, update_global_location_list): Adjust.
760         (update_breakpoint_locations): Don't make the breakpoint permanent
761         here.
762         (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
763         breakpoints.
764         * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
765         (struct bp_location) <permanent>: New field.
766         * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
767         reference to bp_permanent.
768
769 2014-11-12  Pedro Alves  <palves@redhat.com>
770
771         * arch-utils.c (default_skip_permanent_breakpoint): New function.
772         * arch-utils.h (default_skip_permanent_breakpoint): New
773         declaration.
774         * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
775         Install default_skip_permanent_breakpoint as default method.
776         * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
777         (i386_gdbarch_init): Don't install it.
778         * infrun.c (resume): Assume there's always a
779         gdbarch_skip_permanent_breakpoint implementation.
780         * gdbarch.h, gdbarch.c: Regenerate.
781
782 2014-11-11  Daniel Colascione  <dancol@dancol.org>
783
784         Warn about cross-PID-namespace debugging.
785         * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
786         * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
787         * linux-thread-db.c (check_pid_namespace_match): New function.
788         (thread_db_inferior_created): Call it.
789
790 2014-11-10  Doug Evans  <xdje42@gmail.com>
791
792         * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
793         (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
794
795 2014-11-10  Doug Evans  <xdje42@gmail.com>
796
797         * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
798
799 2014-11-10  Doug Evans  <xdje42@gmail.com>
800
801         PR symtab/17564
802         * symtab.c (lookup_symbol_in_all_objfiles): Delete.
803         (lookup_static_symbol): Move definition to new location and rewrite.
804         (lookup_symbol_in_objfile): New function.
805         (lookup_symbol_global_iterator_cb): Call it.
806
807 2014-11-10  Ulrich Weigand  <uweigand@de.ibm.com>
808
809         * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
810
811 2014-11-07  Pedro Alves  <palves@redhat.com>
812
813         * infrun.c (process_event_stop_test) <subroutine check>: Don't
814         check if we did a "nexti" inside a prologue.
815         * symtab.c (in_prologue): Delete function.
816         * symtab.h (in_prologue): Delete declaration.
817
818 2014-11-06  Doug Evans  <xdje42@gmail.com>
819
820         * symtab.h (lookup_global_symbol): Improve function comment.
821
822 2014-11-06  Doug Evans  <xdje42@gmail.com>
823
824         * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
825         All callers updated.
826         * symtab.h (lookup_global_symbol): Update decl.
827         (lookup_static_symbol): Move decl to better location.
828
829 2014-11-06  Doug Evans  <xdje42@gmail.com>
830
831         * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
832
833 2014-11-06  Doug Evans  <xdje42@gmail.com>
834
835         * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
836         All callers updated.
837         (lookup_symbol_in_all_objfiles): Renamed from
838         lookup_symbol_aux_symtabs.  All callers updated.
839         (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
840         All callers updated.
841         (lookup_symbol_in_objfile_symtabs): Renamed from
842         lookup_symbol_aux_objfile.  All callers updated.
843
844 2014-11-06  Doug Evans  <xdje42@gmail.com>
845
846         * symtab.c (lookup_symbol_in_block): Renamed from
847         lookup_symbol_aux_block.  All callers updated.
848
849 2014-11-06  Doug Evans  <xdje42@gmail.com>
850
851         * symtab.c (lookup_static_symbol): Renamed from
852         lookup_static_symbol_aux.  All callers updated.
853         (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
854         All callers updated.
855
856 2014-11-06  Doug Evans  <xdje42@gmail.com>
857
858         * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
859         * block.c (block_lookup_symbol): Use it.
860         * cp-support.c (make_symbol_overload_list_block): Use it.
861         * symtab.c (iterate_over_symbols): Use it.
862
863 2014-11-06  Doug Evans  <xdje42@gmail.com>
864
865         * symtab.c (lookup_block_symbol): Moved to ...
866         * block.c (block_lookup_symbol):  ... here and renamed.
867         All callers updated.
868         * block.h (block_lookup_symbol): Declare.
869         * symtab.h (lookup_block_symbol): Delete.
870
871 2014-11-06  Doug Evans  <xdje42@gmail.com>
872
873         * ada-lang.c (ada_make_symbol_completion_list): Use
874         ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
875         * symtab.c (lookup_objfile_from_block): Ditto.
876
877 2014-11-06  Doug Evans  <xdje42@gmail.com>
878
879         * gdbtypes.h (TYPE_CODE_CLASS): Delete.  All uses changed to use
880         TYPE_CODE_STRUCT.
881
882 2014-11-06  Doug Evans  <xdje42@gmail.com>
883
884         * objfiles.c (get_objfile_arch): Constify.
885         * objfiles.h (get_objfile_arch): Update prototype.
886         * solib.c (solib_global_lookup): Fetch arch from objfile,
887         not target_gdbarch.
888
889 2014-11-06  Sandra Loosemore  <sandra@codesourcery.com>
890
891         * nios2-tdep.c (wild_insn): Delete.
892         (profiler_insn, irqentry_insn): Delete.
893         (nios2_match_sequence): Delete.
894         (nios2_analyze_prologue): Update comments.  Remove matching
895         of obsolete profiler_insn and irqentry_insn sequences.
896
897 2014-11-05  Alan Modra  <amodra@gmail.com>
898
899         * charset.c (convert_between_encodings): Shrink obstack using
900         obstack_blank_fast.
901         * minsyms.c (install_minimal_symbols): Likewise.
902         * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
903         to char* before doing pointer arithmetic.
904
905 2014-11-04  Simon Marchi  <simon.marchi@ericsson.com>
906
907         * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
908
909 2014-11-04  Pedro Alves  <palves@redhat.com>
910
911         * breakpoint.c (breakpoint_thread_match): Delete function.
912         * breakpoint.h (breakpoint_thread_match): Delete declaration.
913
914 2014-11-03  Siva Chandra Reddy  <sivachandra@google.com>
915
916         PR c++/17494
917         * eval.c (evaluate_subexp_standard): Evaluate the "object" and
918         the method args also under EVAL_SKIP when evaluating method
919         calls under EVAL_SKIP.
920
921 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
922
923         * dwarf2loc.c (read_pieced_value): Do big endian
924         processing only if gdb_regnum is not -1.
925         (write_pieced_value): Ditto.
926
927 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
928
929         * arm-linux-tdep.c (arm_linux_init_abi): Use
930         info.byte_order_for_code to choose endianity of breakpoint
931         instructions snippets.
932
933 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
934
935         * arm-tdep.c (extract_arm_insn): Use
936         gdbarch_byte_order_for_code to read arm instruction.
937
938 2014-11-02  Doug Evans  <xdje42@gmail.com>
939
940         * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
941
942 2014-11-02  Doug Evans  <xdje42@gmail.com>
943
944         * xcoffread.c (process_linenos): Delete unnecessary zeroing of
945         main_subfile before returning.
946
947 2014-10-31  Doug Evans  <xdje42@gmail.com>
948
949         * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
950         (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
951
952 2014-10-31  Doug Evans  <xdje42@gmail.com>
953
954         * valops.c (value_cast_pointers): Fix whitespace.
955         (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
956         Ditto.
957
958 2014-10-30  Doug Evans  <dje@google.com>
959
960         * NEWS: Mention ability add attributes to gdb.Objfile and
961         gdb.Progspace objects.
962         * python/py-objfile.c (objfile_object): New member dict.
963         (objfpy_dealloc): Py_XDECREF dict.
964         (objfpy_initialize): Initialize dict.
965         (objfile_getset): Add __dict__.
966         (objfile_object_type): Set tp_dictoffset member.
967         * python/py-progspace.c (progspace_object): New member dict.
968         (pspy_dealloc): Py_XDECREF dict.
969         (pspy_initialize): Initialize dict.
970         (pspace_getset): Add __dict__.
971         (pspace_object_type): Set tp_dictoffset member.
972
973 2014-10-30  Yao Qi  <yao@codesourcery.com>
974
975         * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
976         replace '\\' with '\\\\'.
977
978 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
979
980         GDB 7.8.1 released.
981
982 2014-10-29  Pedro Alves  <palves@redhat.com>
983
984         PR gdb/17408
985         * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
986         instead of assuming a thread with a stepping range is always
987         stepping.
988
989 2014-10-29  Pedro Alves  <palves@redhat.com>
990
991         PR python/17372
992         * event-top.c (change_line_handler): Call
993         gdb_rl_callback_handler_remove instead of
994         rl_callback_handler_remove.
995         (callback_handler_installed): New global.
996         (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
997         (gdb_rl_callback_handler_reinstall): New functions.
998         (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
999         gdb_rl_callback_handler_install instead of
1000         rl_callback_handler_remove and rl_callback_handler_install.
1001         (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1002         instead of rl_callback_handler_remove.
1003         * event-top.h (gdb_rl_callback_handler_remove)
1004         (gdb_rl_callback_handler_install)
1005         (gdb_rl_callback_handler_reinstall): New declarations.
1006         * infrun.c (reinstall_readline_callback_handler_cleanup): New
1007         cleanup function.
1008         (fetch_inferior_event): Install it.
1009         * top.c (gdb_readline_wrapper_line) Call
1010         gdb_rl_callback_handler_remove instead of
1011         rl_callback_handler_remove.
1012         (gdb_readline_wrapper_cleanup): Don't call
1013         rl_callback_handler_install.
1014
1015 2014-10-29  Pedro Alves  <palves@redhat.com>
1016
1017         * event-top.c (command_line_handler): Clear the first byte of
1018         linebuffer, when it is first allocated.
1019
1020 2014-10-29  Pedro Alves  <palves@redhat.com>
1021
1022         * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1023         TRY_CATCH.
1024
1025 2014-10-29  Pedro Alves  <palves@redhat.com>
1026
1027         PR tui/16138
1028         PR tui/17519
1029         * tui/tui-interp.c (tui_is_toplevel): Delete global.
1030         (tui_allowed_p): Delete function.
1031         * tui/tui.c: Include "interps.h".
1032         (tui_enable): Don't use tui_allowed_p.  Error out here with
1033         detailed error messages if the TUI is the top level interpreter,
1034         or if output is not a terminal.  Use newterm instead of initscr,
1035         and error out if initializing the terminal fails.  Also error out if
1036         the terminal doesn't support cursor addressing.
1037         * tui/tui.h (tui_allowed_p): Delete declaration.
1038
1039 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
1040
1041         * arm-tdep.c (arm_skip_stack_protector): Return early if
1042         address loaded by first "ldr" instruction does not have
1043         a corresponding minimal symbol.  Update comment.
1044
1045 2014-10-29  Yao Qi  <yao@codesourcery.com>
1046
1047         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1048         loaded address correctly of ldr instruction.
1049
1050 2014-10-28  Pedro Alves  <palves@redhat.com>
1051
1052         PR gdb/12623
1053         * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1054         field.
1055         * infrun.c (resume) <stepping breakpoint instruction>: Set the
1056         thread's stepped_breakpoint field.  Skip if reverse debugging.
1057         Add comment.
1058         (init_thread_stepping_state, handle_signal_stop): Clear the
1059         thread's stepped_breakpoint field.
1060
1061 2014-10-27  Pedro Alves  <palves@redhat.com>
1062
1063         * remote.c (remote_thread_alive): New, factored out from ...
1064         (remote_thread_alive): ... this.
1065         (remote_update_thread_list): Bail out before deleting threads if
1066         the target returned an empty list, and, the current thread has a
1067         magic/fake ptid.
1068
1069 2014-10-27  Pedro Alves  <palves@redhat.com>
1070
1071         * infrun.c (handle_signal_stop): Also skip handlers when a random
1072         signal arrives while handling a "stepi" or a "nexti".  Set the
1073         thread's 'step_after_step_resume_breakpoint' flag.
1074
1075 2014-10-27  Luis Machado  <lgustavo@codesourcery.com>
1076
1077         * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1078         (arm_record_ld_st_imm_offset): Reimplement to cover all
1079         load/store cases for ARM opcode 010.
1080         (arm_record_ld_st_multiple): Reimplement to cover all
1081         load/store cases for ARM opcode 100.
1082
1083 2014-10-26  Doug Evans  <xdje42@gmail.com>
1084
1085         * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1086
1087 2014-10-26  Doug Evans  <xdje42@gmail.com>
1088
1089         * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1090         parameter "kind" to "block_index".
1091         * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1092         "block_index".
1093         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1094
1095 2014-10-26  Doug Evans  <xdje42@gmail.com>
1096
1097         * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1098
1099 2014-10-26  Doug Evans  <xdje42@gmail.com>
1100
1101         * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1102         obstack_alloc.
1103
1104 2014-10-26  Doug Evans  <xdje42@gmail.com>
1105
1106         * parser-defs.h (block_found): Move decl from here ...
1107         * symtab.h (block_found): ... to here.
1108
1109 2014-10-26  Doug Evans  <xdje42@gmail.com>
1110
1111         * symtab.h (struct field_of_this_result): Fix typo in comment.
1112         (lookup_symbol_in_language): Move function comment here.
1113         (lookup_symbol): Improve function comment.
1114         (basic_lookup_symbol_nonlocal): Ditto.
1115         (lookup_symbol_static, lookup_symbol_global): Ditto.
1116         (lookup_symbol_aux_block): Ditto.
1117         (lookup_language_this): Add function comment.
1118         (lookup_static_symbol_aux): Explicitly mark as extern.  Improve
1119         function comment.
1120         (lookup_block_symbol): Improve function comment.
1121         (lookup_struct): Fix capitalization in function comment.
1122         (lookup_transparent_type): Add function comment.
1123         (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1124         Improve function comment.
1125         (lookup_objfile_from_block): Add function comment.
1126         * symtab.c (lookup_symbol_in_language): Update function comment.
1127         (lookup_symbol, lookup_language_this): Ditto.
1128         (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1129         (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1130         (basic_lookup_symbol_nonlocal): Ditto.
1131         (lookup_symbol_static, lookup_symbol_global): Ditto.
1132         (lookup_transparent_type, lookup_block_symbol): Ditto.
1133
1134 2014-10-25  Doug Evans  <xdje42@gmail.com>
1135
1136         * symtab.c (types_info): Delete forward decl.
1137         (functions_info, variables_info, sources_info): Ditto.
1138         (_initialize_symtab): Rewrite forward decl to use
1139         initialize_file_ftype.
1140
1141 2014-10-25  Doug Evans  <xdje42@gmail.com>
1142
1143         * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1144
1145 2014-10-25  Doug Evans  <xdje42@gmail.com>
1146
1147         * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1148         of local var child_die.
1149
1150 2014-10-24  Don Breazeal  <donb@codesourcery.com>
1151
1152         * infrun.c (follow_fork_inferior): Update fork message printing
1153         to use target_terminal_ours_for_output instead of
1154         target_terminal_ours, to use _() for all format strings, to print
1155         "vfork" instead of "fork" for vforks, and to add a detach message.
1156         (handle_vfork_child_exec_or_exit): Update message printing to use
1157         target_terminal_ours_for_output instead of target_terminal_ours, to
1158         use _() for all format strings, and to fix some formatting.
1159
1160 2014-10-24  Pedro Alves  <palves@redhat.com>
1161
1162         * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1163         * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1164         * config/vax/vax.mh: Delete.
1165         * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1166         obsolete configurations section.
1167         * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1168         * vax-nat.c: Delete file.
1169
1170 2014-10-24  Pedro Alves  <palves@redhat.com>
1171
1172         * NEWS (Removed targets): Add OS/arch column.
1173
1174 2014-10-24  Siva Chandra Reddy  <sivachandra@google.com>
1175
1176         * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1177         on the arg type of a constructor only if it is of reference type.
1178
1179 2014-10-23  Sandra Loosemore  <sandra@codesourcery.com>
1180
1181         * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1182         accessors and constants from nios2 opcodes update.
1183         (nios2_get_next_pc): Likewise.
1184
1185 2014-10-19  Doug Evans  <xdje42@gmail.com>
1186
1187         * gdbthread.h (set_running): Fix comment.
1188         (set_executing, finish_thread_state): Fix comment.
1189
1190 2014-10-18  Doug Evans  <xdje42@gmail.com>
1191
1192         * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1193
1194 2014-10-17  Doug Evans  <dje@google.com>
1195
1196         * NEWS: Mention new event gdb.clear_objfiles.
1197         * python/py-event.h (emit_clear_objfiles_event): Clear
1198         * python/py-events.h (events_object): New member clear_objfiles.
1199         * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1200         event.
1201         * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1202         emit clear_objfiles event.
1203         * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1204         function.
1205         (emit_clear_objfiles_event): New function.
1206         (clear_objfiles): New event.
1207         * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1208         Declare.
1209         * python/python.c (_initialize_python): Call
1210         gdbpy_initialize_clear_objfiles_event.
1211
1212 2014-10-17  Doug Evans  <dje@google.com>
1213
1214         * NEWS: Mention new gdb.Objfile.progspace attribute.
1215         * python/py-objfile.c (objfpy_get_progspace): New function.
1216         (objfile_getset): New entry for "progspace".
1217
1218 2014-10-17  Pedro Alves  <palves@redhat.com>
1219
1220         PR gdb/17471
1221         * infcmd.c (strip_bg_char): Change prototype and rewrite.  Now
1222         returns a copy of the input.
1223         (run_command_1, continue_command, step_1, jump_command)
1224         (signal_command, until_command, advance_command, finish_command)
1225         (attach_command): Adjust and install a cleanup to free the
1226         stripped args.
1227
1228 2014-10-17  Pedro Alves  <palves@redhat.com>
1229
1230         PR gdb/17300
1231         * infcmd.c (continue_1): If continuing all threads in the
1232         foreground, make sure the inferior's terminal settings are put in
1233         effect.
1234
1235 2014-10-17  Pedro Alves  <palves@redhat.com>
1236
1237         PR gdb/17472
1238         * annotate.c (annotate_breakpoints_invalid): Use
1239         target_terminal_our_for_output instead of target_terminal_ours.
1240         Give back the terminal to the target.
1241         (annotate_frames_invalid): Likewise.
1242
1243 2014-10-17  Pedro Alves  <palves@redhat.com>
1244
1245         * target.c (enum terminal_state): New enum.
1246         (terminal_state): New global.
1247         (target_terminal_init): New function.
1248         (target_terminal_inferior): Skip if inferior already owns the
1249         terminal.
1250         (target_terminal_ours, target_terminal_ours_for_output): New
1251         functions.
1252         * target.h (target_terminal_init): Convert to function prototype.
1253         (target_terminal_ours_for_output): Convert to function prototype
1254         and tweak comment.
1255         (target_terminal_ours): Convert to function prototype and tweak
1256         comment.
1257         * windows-nat.c (do_initial_windows_stuff): Call
1258         target_terminal_init instead of child_terminal_init_with_pgrp.
1259
1260 2014-10-17  Pedro Alves  <palves@redhat.com>
1261
1262         * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1263         (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1264         (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1265         solib-osf.c.
1266         * NEWS: Mention that support for alpha*-*-osf* has been removed.
1267         * ada-lang.h [__alpha__ && __osf__]
1268         (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1269         * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1270         * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1271         GDB_OSABI_OSF1.
1272         * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1273         files.
1274         * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1275         (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1276         * configure: Regenerate.
1277         * configure.ac: Remove references to osf.
1278         * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1279         section.  Remove all other references to osf.
1280         * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1281         Remove all other references to osf.
1282         * dec-thread.c: Delete file.
1283         * defs.h (GDB_OSABI_OSF1): Delete.
1284         * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1285         defined.
1286         * osabi.c (gdb_osabi_names): Delete "OSF/1".
1287         * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1288         Delete code.
1289         (unconditionally_kill_inferior)
1290         [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1291         * solib-osf.c: Delete file.
1292
1293 2014-10-17  Pedro Alves  <palves@redhat.com>
1294
1295         * remote.c (clear_threads_listing_context): Move higher up, out of
1296         the HAVE_LIBEXPAT guard.
1297
1298 2014-10-16  Tristan Gingold  <gingold@adacore.com>
1299
1300         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1301         (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1302         on amd64.
1303
1304 2014-10-15  Pedro Alves  <palves@redhat.com>
1305
1306         * dec-thread.c (dec_thread_count_gdb_threads)
1307         (dec_thread_add_gdb_thread): Delete.
1308         (dec_thread_update_thread_list): Delete.
1309         (dec_thread_find_new_threads): Rename to ...
1310         (dec_thread_update_thread_list): ... this.  Delete GDB-size
1311         threads that are no longer found in dec_thread_list.
1312         (resync_thread_list): Delete.
1313         (dec_thread_wait): Call dec_thread_update_thread_list instead of
1314         resync_thread_list.
1315
1316 2014-10-15  Pedro Alves  <palves@redhat.com>
1317
1318         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1319         * remote.c (remote_update_thread_list): Skip calling prune_threads
1320         if any thread listing method is supported, and instead walk over
1321         the set of remote threads listed, deleting those that are not
1322         found in GDB's thread list.
1323
1324 2014-10-15  Pedro Alves  <palves@redhat.com>
1325
1326         * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1327         * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1328         (bsd_uthread_update_thread_list): ... this.  Call prune_threads.
1329         (bsd_uthread_target): Adjust.
1330         * corelow.c (core_open): Adjust.
1331         * dec-thread.c (dec_thread_find_new_threads): Update comment.
1332         (dec_thread_update_thread_list): New function.
1333         (init_dec_thread_ops): Adjust.
1334         * gdbthread.h (prune_threads): New declaration.
1335         * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1336         (thread_db_update_thread_list): ... this.  Call prune_threads.
1337         (init_thread_db_ops): Adjust.
1338         * nto-procfs.c (procfs_find_new_threads): Rename to ...
1339         (procfs_update_thread_list): ... this.  Call prune_threads.
1340         (procfs_attach, procfs_create_inferior, init_procfs_targets):
1341         Adjust.
1342         * obsd-nat.c (obsd_find_new_threads): Rename to ...
1343         (obsd_update_thread_list): ... this.  Call prune_threads.
1344         (obsd_add_target): Adjust.
1345         * procfs.c (procfs_target): Adjust.
1346         (procfs_notice_thread): Update comment.
1347         (procfs_find_new_threads): Rename to ...
1348         (procfs_update_thread_list): ... this.  Call prune_threads.
1349         * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1350         comment.
1351         (ravenscar_wait): Adjust.
1352         (ravenscar_find_new_threads): Rename to ...
1353         (ravenscar_update_thread_list): ... this.  Call prune_threads.
1354         (init_ravenscar_thread_ops): Adjust.
1355         * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1356         (record_btrace_update_thread_list): ... this.  Adjust comment.
1357         (init_record_btrace_ops): Adjust.
1358         * remote.c (remote_threads_info): Rename to ...
1359         (remote_update_thread_list): ... this.  Call prune_threads.
1360         (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1361         Adjust.
1362         * sol-thread.c (check_for_thread_db): Adjust.
1363         (sol_find_new_threads_callback): Rename to ...
1364         (sol_update_thread_list_callback): ... this.
1365         (sol_find_new_threads): Rename to ...
1366         (sol_update_thread_list): ... this.  Call prune_threads.  Adjust.
1367         (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1368         * target-delegates.c: Regenerate.
1369         * target.c (target_find_new_threads): Rename to ...
1370         (target_update_thread_list): ... this.
1371         * target.h (struct target_ops): Rename to_find_new_threads field
1372         to to_update_thread_list.
1373         (target_find_new_threads): Rename to ...
1374         (target_update_thread_list): ... this.
1375         * thread.c (prune_threads): Make extern.
1376         (update_thread_list): Adjust.
1377
1378 2014-10-15  Pedro Alves  <palves@redhat.com>
1379
1380         * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1381         Add describing comment.  Return -1 if the qL packet is not
1382         supported.
1383         (struct thread_item, thread_item_t): Move higher up in
1384         the file.  Add comments.
1385         (struct threads_parsing_context): Move higher up in
1386         the file, add comments, and remote to ...
1387         (struct threads_listing_context): ... this.
1388         (remote_newthread_step): Don't add the thread to GDB's thread
1389         database here.  Instead push it to the thread_listing_context
1390         list.
1391         (remote_find_new_threads): Rename to ...
1392         (remote_get_threads_with_ql): ... this.  Add target_ops and
1393         targets_listing_context parameters.  Pass down context.
1394         (start_thread): Adjust.
1395         (clear_threads_parsing_context): Rename to ...
1396         (clear_threads_listing_context): ... this.
1397         (remote_get_threads_with_qxfer): New, with parts salvaged from old
1398         remote_threads_info.
1399         (remote_get_threads_with_qthreadinfo): Ditto.
1400         (remote_threads_info): Reimplement.
1401
1402 2014-10-15  Pedro Alves  <palves@redhat.com>
1403
1404         * infrun.c (resume): Don't force displaced-stepping for all
1405         single-steps on software single-stepping archs.
1406
1407 2014-10-15  Pedro Alves  <palves@redhat.com>
1408
1409         * breakpoint.c (single_step_breakpoints): Delete global.
1410         (insert_single_step_breakpoint): Adjust to store the breakpoint
1411         pointer in the current thread.
1412         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1413         (cancel_single_step_breakpoints): Delete functions.
1414         (breakpoint_has_location_inserted_here): Make extern.
1415         (single_step_breakpoint_inserted_here_p): Adjust to walk the
1416         breakpoint list.
1417         * breakpoint.h (breakpoint_has_location_inserted_here): New
1418         declaration.
1419         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1420         (cancel_single_step_breakpoints): Remove declarations.
1421         * gdbthread.h (struct thread_control_state)
1422         <single_step_breakpoints>: New field.
1423         (delete_single_step_breakpoints)
1424         (thread_has_single_step_breakpoints_set)
1425         (thread_has_single_step_breakpoint_here): New declarations.
1426         * infrun.c (follow_exec): Also clear the single-step breakpoints.
1427         (singlestep_breakpoints_inserted_p, singlestep_ptid)
1428         (singlestep_pc): Delete globals.
1429         (infrun_thread_ptid_changed): Remove references to removed
1430         globals.
1431         (resume_cleanups): Delete the current thread's single-step
1432         breakpoints.
1433         (maybe_software_singlestep): Remove references to removed globals.
1434         (resume): Adjust to use thread_has_single_step_breakpoints_set and
1435         delete_single_step_breakpoints.
1436         (init_wait_for_inferior): Remove references to removed globals.
1437         (delete_thread_infrun_breakpoints): Delete the thread's
1438         single-step breakpoints too.
1439         (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1440         single-step breakpoints here.
1441         (delete_stopped_threads_single_step_breakpoints): New function.
1442         (adjust_pc_after_break): Adjust to use
1443         thread_has_single_step_breakpoints_set.
1444         (handle_inferior_event): Remove references to removed globals.
1445         Use delete_stopped_threads_single_step_breakpoints.
1446         (handle_signal_stop): Adjust to per-thread single-step
1447         breakpoints.  Swap test order to do cheaper tests first.
1448         (switch_back_to_stepped_thread): Extend debug output.  Remove
1449         references to removed globals.
1450         * record-full.c (record_full_wait_1): Adjust to per-thread
1451         single-step breakpoints.
1452         * thread.c (delete_single_step_breakpoints)
1453         (thread_has_single_step_breakpoints_set)
1454         (thread_has_single_step_breakpoint_here): New functions.
1455         (clear_thread_inferior_resources): Also delete the thread's
1456         single-step breakpoints.
1457
1458 2014-10-15  Pedro Alves  <palves@redhat.com>
1459
1460         * thread.c (delete_thread_breakpoint): New function.
1461         (delete_step_resume_breakpoint)
1462         (delete_exception_resume_breakpoint): Use it.
1463         (delete_at_next_stop): New function.
1464         (clear_thread_inferior_resources): Use delete_at_next_stop.
1465
1466 2014-10-15  Pedro Alves  <palves@redhat.com>
1467
1468         * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1469         (breakpoint_inserted_here_p): ... here.  Remove special case for
1470         software single-step breakpoints.
1471         (find_non_raw_software_breakpoint_inserted_here): Inline ...
1472         (software_breakpoint_inserted_here_p): ... here.  Remove special
1473         case for software single-step breakpoints.
1474         (bp_target_info_copy_insertion_state)
1475         (deprecated_insert_raw_breakpoint)
1476         (deprecated_remove_raw_breakpoint): Delete functions.
1477         * breakpoint.h (deprecated_insert_raw_breakpoint)
1478         (deprecated_remove_raw_breakpoint): Remove declarations.
1479
1480 2014-10-15  Pedro Alves  <palves@redhat.com>
1481
1482         PR breakpoints/9649
1483         * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1484         Delete array globals.
1485         (single_step_breakpoints): New global.
1486         (breakpoint_xfer_memory): Remove special handling for single-step
1487         breakpoints.
1488         (update_breakpoints_after_exec): Delete bp_single_step
1489         breakpoints.
1490         (detach_breakpoints): Remove special handling for single-step
1491         breakpoints.
1492         (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1493         (bpstat_stop_status): Add comment.
1494         (bpstat_what, bptype_string, print_one_breakpoint_location)
1495         (adjust_breakpoint_address, init_bp_location): Handle
1496         bp_single_step.
1497         (new_single_step_breakpoint): New function.
1498         (set_momentary_breakpoint, bkpt_remove_location): Remove special
1499         handling for single-step breakpoints.
1500         (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1501         (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1502         Rewrite.
1503         (detach_single_step_breakpoints, find_single_step_breakpoint):
1504         Delete functions.
1505         (breakpoint_has_location_inserted_here): New function.
1506         (single_step_breakpoint_inserted_here_p): Rewrite.
1507         * breakpoint.h: Remove FIXME.
1508         (enum bptype) <bp_single_step>: New enum value.
1509         (insert_single_step_breakpoint): Update comment.
1510         * infrun.c (resume_cleanups)
1511         (delete_step_thread_step_resume_breakpoint): Remove single-step
1512         breakpoints.
1513         (fetch_inferior_event): Install a cleanup that removes infrun
1514         breakpoints.
1515         (switch_back_to_stepped_thread) <expect thread advanced also>:
1516         Clear step-over info.
1517
1518 2014-10-15  Pedro Alves  <palves@redhat.com>
1519
1520         * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1521         (delete_thread_infrun_breakpoints): New function, with parts
1522         salvaged from delete_step_resume_breakpoint_callback.
1523         (delete_step_thread_step_resume_breakpoint): Delete.
1524         (for_each_just_stopped_thread_callback_func): New typedef.
1525         (for_each_just_stopped_thread): New function.
1526         (delete_just_stopped_threads_infrun_breakpoints): New function.
1527         (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1528         (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1529         ... this.  Adjust.
1530         (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1531
1532 2014-10-15  Pedro Alves  <palves@redhat.com>
1533
1534         * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1535         trying to step past a non-steppable watchpoint.
1536         * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1537         field.
1538         * infrun.c (struct step_over_info): Add new field
1539         'nonsteppable_watchpoint_p' and adjust comments.
1540         (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1541         Adjust.
1542         (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1543         (stepping_past_nonsteppable_watchpoint): New function.
1544         (step_over_info_valid_p): Also return true if stepping past a
1545         nonsteppable watchpoint.
1546         (proceed): Adjust call to set_step_over_info.  Remove reference to
1547         init_infwait_state.
1548         (init_wait_for_inferior): Remove reference to init_infwait_state.
1549         (waiton_ptid): Delete global.
1550         (struct execution_control_state)
1551         <stepped_after_stopped_by_watchpoint>: Delete field.
1552         (wait_for_inferior, fetch_inferior_event): Always pass
1553         minus_one_ptid to target_wait.
1554         (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1555         field.
1556         (init_infwait_state): Delete function.
1557         (handle_inferior_event): Remove infwait_state handling.
1558         (handle_signal_stop) <watchpoints handling>: Adjust after
1559         stepped_after_stopped_by_watchpoint removal.  Don't remove
1560         breakpoints here nor set infwait_state.  Set the thread's
1561         stepping_over_watchpoint flag, and call keep_going instead.
1562         (keep_going): Handle stepping_over_watchpoint.  Adjust
1563         set_step_over_info calls.
1564         * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1565         function.
1566
1567 2014-10-15  Pedro Alves  <palves@redhat.com>
1568
1569         * infrun.c (step_over_info_valid_p): New function.
1570         (resume): Use step_over_info_valid_p instead of checking the
1571         threads's trap_expected flag.
1572
1573 2014-10-15  Doug Evans  <dje@google.com>
1574             Walfred Tedeschi  <walfred.tedeschi@intel.com>
1575
1576         PR python/17364
1577         * python/lib/gdb/__init__.py (packages): Add "printer".
1578         * python/lib/gdb/command/bound_registers.py: Moved to ...
1579         * python/lib/gdb/printer/bound_registers.py: ... here.
1580         Add printer to global set of builtin printers.  Rename printer from
1581         "bound" to "mpx_bound128".
1582         * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1583         registered as global "builtin" printer.
1584         (add_builtin_pretty_printer): New function.
1585         * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1586         gdb/printer/__init__.py.
1587
1588 2014-10-15  Iain Buclaw  <ibuclaw@gdcproject.org>
1589
1590         * Makefile.in (SFILES): Remove d-support.c.
1591         (COMMON_OBS): Remove d-support.o.
1592         * d-lang.h (d_parse_symbol): Remove declaration.
1593         * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1594         * d-support.c: Remove file.
1595
1596 2014-10-15  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1597
1598         * gdb/infrun.c (process_event_stop_test): Apply
1599         gdbarch_addr_bits_remove to longjmp resume address.
1600
1601 2014-10-15  Pedro Alves  <palves@redhat.com>
1602
1603         * regformats/microblaze.dat: Delete file.
1604
1605 2014-10-15  Ajit Agarwal  <ajitkum@xilinx.com>
1606
1607         * features/Makefile (microblaze-expedite): Replace pc with rpc.
1608         * regformats/microblaze-with-stack-protect.dat: Regenerate.
1609
1610 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
1611
1612         * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1613         as non-trivial.
1614
1615 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
1616
1617         PR c++/13403
1618         PR c++/15154
1619         * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1620         with qualified args.
1621
1622 2014-10-14  Joel Brobecker  <brobecker@adacore.com>
1623
1624         * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1625         of the case where the second operand is a pointer.
1626         <BINOP_SUB>: Likewise.
1627
1628 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
1629
1630         * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1631         only if it is not NULL.
1632         (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1633         * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1634         (struct probe_ops) <clear_semaphore>: Likewise.
1635         * tracepoint.c (start_tracing): Call set_semaphore only if it is
1636         not NULL.
1637         (stop_tracing): Likewise, for clear_semaphore.
1638
1639 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
1640
1641         * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1642         using language_c, instead of current_language.
1643
1644 2014-10-13  Doug Evans  <dje@google.com>
1645
1646         * python/py-objfile.c (objfpy_initialize): New function.
1647         (objfpy_new, objfile_to_objfile_object): Call it.
1648         * python/py-progspace.c (pspy_initialize): New function.
1649         (pspy_new, pspace_to_pspace_object): Call it.
1650
1651 2014-10-13  Miroslav Franc  <mfranc@redhat.com>
1652             Jan Kratochvil  <jan.kratochvil@redhat.com>
1653
1654         Fix "save breakpoints" for "catch" command.
1655         * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1656         newline.
1657
1658 2014-10-12  Miroslav Franc  <mfranc@redhat.com>
1659
1660         Fix "save breakpoints" for "disable $bpnum" command.
1661         * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1662
1663 2014-10-10  Pedro Alves  <palves@redhat.com>
1664
1665         * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1666         (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1667         (HFILES_NO_SRCDIR): Remove solib-irix.h.
1668         * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1669         and been removed.
1670         * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1671         * configure.ac: Remove references to IRIX.
1672         * configure.host: Add *-*-irix* to the obsolete hosts section.
1673         Remove all other references to irix.
1674         * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1675         Delete files.
1676
1677 2014-10-10  Ajit Agarwal  <ajitkum@xilinx.com>
1678
1679         * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1680         isn't valid, release the tdesc arch data and return NULL.
1681
1682 2014-10-10  Pedro Alves  <palves@redhat.com>
1683
1684         * linux-tdep.c: Include observer.h.
1685         (linux_inferior_data): New global.
1686         (struct linux_info): New structure.
1687         (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1688         (get_linux_inferior_data): New functions.
1689         (linux_vsyscall_range): Rename to ...
1690         (linux_vsyscall_range_raw): ... this.
1691         (linux_vsyscall_range): New function; handles caching.
1692         (_initialize_linux_tdep): Register linux_inferior_data.  Install
1693         inferior_exit and inferior_appeared observers.
1694
1695 2014-10-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
1696             Pedro Alves  <palves@redhat.com>
1697
1698         PR symtab/14466
1699         * solib-svr4.c (svr4_read_so_list): Rename to ...
1700         (svr4_current_sos_1): ... this and change the function comment.
1701         (svr4_current_sos): New function.
1702
1703 2014-10-10  Pedro Alves  <palves@redhat.com>
1704
1705         * arch-utils.c (default_vsyscall_range): New function.
1706         * arch-utils.h (default_vsyscall_range): New declaration.
1707         * gdbarch.sh (vsyscall_range): New hook.
1708         * gdbarch.h, gdbarch.c: Regenerate.
1709         * linux-tdep.c (linux_vsyscall_range): New function.
1710         (linux_init_abi): Install linux_vsyscall_range as
1711         vsyscall_range gdbarch hook.
1712         * memrange.c (address_in_mem_range): New function.
1713         * memrange.h (address_in_mem_range): New declaration.
1714         * symfile-mem.c (find_vdso_size): Delete function.
1715         (add_vsyscall_page): Use gdbarch_vsyscall_range.
1716
1717 2014-10-10  Pedro Alves  <palves@redhat.com>
1718
1719         * infrun.c (normal_stop): Fix typo in comment.
1720
1721 2014-10-09  Sergio Durigan Junior  <sergiodj@redhat.com>
1722
1723         PR tdep/9390
1724         * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1725         typo when using logical AND to determine instruction type.
1726
1727 2014-10-09  Yao Qi  <yao@codesourcery.com>
1728
1729         * infrun.c (handle_signal_stop): Remove local variable
1730         'printed'.
1731
1732 2014-10-08  Stan Shebs  <stan@codesourcery.com>
1733
1734         * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1735
1736 2014-10-08  Gary Benson  <gbenson@redhat.com>
1737
1738         * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1739
1740 2014-10-08  Gary Benson  <gbenson@redhat.com>
1741
1742         * common/common-defs.h: Include common-exceptions.h.
1743         * exceptions.h: Do not include common-exceptions.h.
1744
1745 2014-10-08  Gary Benson  <gbenson@redhat.com>
1746
1747         * common/common-defs.h: Include cleanups.h.
1748         * common/common-exceptions.c: Do not include cleanups.h.
1749         * utils.h: Likewise.
1750
1751 2014-10-08  Gary Benson  <gbenson@redhat.com>
1752
1753         * ada-lang.c: Do not include exceptions.h.
1754         * ada-valprint.c: Likewise.
1755         * amd64-tdep.c: Likewise.
1756         * auto-load.c: Likewise.
1757         * block.c: Likewise.
1758         * break-catch-throw.c: Likewise.
1759         * breakpoint.c: Likewise.
1760         * btrace.c: Likewise.
1761         * c-lang.c: Likewise.
1762         * cli/cli-cmds.c: Likewise.
1763         * cli/cli-interp.c: Likewise.
1764         * cli/cli-script.c: Likewise.
1765         * completer.c: Likewise.
1766         * corefile.c: Likewise.
1767         * corelow.c: Likewise.
1768         * cp-abi.c: Likewise.
1769         * cp-support.c: Likewise.
1770         * cp-valprint.c: Likewise.
1771         * darwin-nat.c: Likewise.
1772         * dwarf2-frame-tailcall.c: Likewise.
1773         * dwarf2-frame.c: Likewise.
1774         * dwarf2loc.c: Likewise.
1775         * dwarf2read.c: Likewise.
1776         * eval.c: Likewise.
1777         * event-loop.c: Likewise.
1778         * event-top.c: Likewise.
1779         * f-valprint.c: Likewise.
1780         * frame-unwind.c: Likewise.
1781         * frame.c: Likewise.
1782         * gdbtypes.c: Likewise.
1783         * gnu-v2-abi.c: Likewise.
1784         * gnu-v3-abi.c: Likewise.
1785         * guile/scm-auto-load.c: Likewise.
1786         * guile/scm-breakpoint.c: Likewise.
1787         * guile/scm-cmd.c: Likewise.
1788         * guile/scm-frame.c: Likewise.
1789         * guile/scm-lazy-string.c: Likewise.
1790         * guile/scm-param.c: Likewise.
1791         * guile/scm-symbol.c: Likewise.
1792         * guile/scm-type.c: Likewise.
1793         * hppa-hpux-tdep.c: Likewise.
1794         * i386-tdep.c: Likewise.
1795         * inf-loop.c: Likewise.
1796         * infcall.c: Likewise.
1797         * infcmd.c: Likewise.
1798         * infrun.c: Likewise.
1799         * interps.c: Likewise.
1800         * interps.h: Likewise.
1801         * jit.c: Likewise.
1802         * linespec.c: Likewise.
1803         * linux-nat.c: Likewise.
1804         * linux-thread-db.c: Likewise.
1805         * m32r-rom.c: Likewise.
1806         * main.c: Likewise.
1807         * memory-map.c: Likewise.
1808         * mi/mi-cmd-break.c: Likewise.
1809         * mi/mi-cmd-stack.c: Likewise.
1810         * mi/mi-interp.c: Likewise.
1811         * mi/mi-main.c: Likewise.
1812         * monitor.c: Likewise.
1813         * nto-procfs.c: Likewise.
1814         * objc-lang.c: Likewise.
1815         * p-valprint.c: Likewise.
1816         * parse.c: Likewise.
1817         * ppc-linux-tdep.c: Likewise.
1818         * printcmd.c: Likewise.
1819         * probe.c: Likewise.
1820         * python/py-auto-load.c: Likewise.
1821         * python/py-breakpoint.c: Likewise.
1822         * python/py-cmd.c: Likewise.
1823         * python/py-finishbreakpoint.c: Likewise.
1824         * python/py-frame.c: Likewise.
1825         * python/py-framefilter.c: Likewise.
1826         * python/py-function.c: Likewise.
1827         * python/py-gdb-readline.c: Likewise.
1828         * python/py-inferior.c: Likewise.
1829         * python/py-infthread.c: Likewise.
1830         * python/py-lazy-string.c: Likewise.
1831         * python/py-linetable.c: Likewise.
1832         * python/py-param.c: Likewise.
1833         * python/py-prettyprint.c: Likewise.
1834         * python/py-symbol.c: Likewise.
1835         * python/py-type.c: Likewise.
1836         * python/py-value.c: Likewise.
1837         * python/python-internal.h: Likewise.
1838         * python/python.c: Likewise.
1839         * record-btrace.c: Likewise.
1840         * record-full.c: Likewise.
1841         * regcache.c: Likewise.
1842         * remote-fileio.c: Likewise.
1843         * remote-mips.c: Likewise.
1844         * remote.c: Likewise.
1845         * rs6000-aix-tdep.c: Likewise.
1846         * rs6000-nat.c: Likewise.
1847         * skip.c: Likewise.
1848         * solib-darwin.c: Likewise.
1849         * solib-dsbt.c: Likewise.
1850         * solib-frv.c: Likewise.
1851         * solib-ia64-hpux.c: Likewise.
1852         * solib-spu.c: Likewise.
1853         * solib-svr4.c: Likewise.
1854         * solib.c: Likewise.
1855         * spu-tdep.c: Likewise.
1856         * stack.c: Likewise.
1857         * stap-probe.c: Likewise.
1858         * symfile-mem.c: Likewise.
1859         * symmisc.c: Likewise.
1860         * target.c: Likewise.
1861         * thread.c: Likewise.
1862         * top.c: Likewise.
1863         * tracepoint.c: Likewise.
1864         * tui/tui-interp.c: Likewise.
1865         * typeprint.c: Likewise.
1866         * utils.c: Likewise.
1867         * valarith.c: Likewise.
1868         * valops.c: Likewise.
1869         * valprint.c: Likewise.
1870         * value.c: Likewise.
1871         * varobj.c: Likewise.
1872         * windows-nat.c: Likewise.
1873         * xml-support.c: Likewise.
1874
1875 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
1876
1877         * mips-tdep.c (add_offset_16): Rewrite to implement what the
1878         name implies.
1879         (extended_mips16_next_pc): Update accordingly.
1880
1881 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
1882
1883         * mips-tdep.c (mips16_instruction_is_compact_branch): New
1884         function.
1885         (micromips_instruction_is_compact_branch): Likewise.
1886         (mips16_scan_prologue): Terminate scanning upon seeing a branch
1887         or a compact jump, reaching a jump delay slot, or seeing a
1888         second non-prologue instruction.
1889         (micromips_scan_prologue): Also terminate scanning upon seeing a
1890         compact branch or jump, or reaching a branch or jump delay slot.
1891         (mips32_scan_prologue): Terminate scanning upon reaching a branch
1892         or jump delay slot, or seeing a second non-prologue instruction.
1893         (mips32_instruction_has_delay_slot): Retain instruction
1894         examination code only, update arguments accordingly and move
1895         instruction fetch pieces to...
1896         (mips32_insn_at_pc_has_delay_slot): ... this new function.
1897         (micromips_instruction_has_delay_slot): Likewise and to...
1898         (micromips_insn_at_pc_has_delay_slot): ... this new function.
1899         (mips16_instruction_has_delay_slot): Likewise and to...
1900         (mips16_insn_at_pc_has_delay_slot): ... this new function.
1901         (mips_single_step_through_delay): Update accordingly.
1902         (mips_adjust_breakpoint_address): Likewise.
1903
1904 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
1905
1906         * mips-tdep.c (micromips_instruction_has_delay_slot): When
1907         !mustbe32 also return 1 for 32-bit instructions.
1908         (mips16_instruction_has_delay_slot): Likewise.  Add an
1909         explanatory comment.
1910
1911 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
1912
1913         * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1914         symbols special.
1915
1916 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
1917
1918         * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1919         update comments.
1920         * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1921         for the breakpoint's address.  Don't preinitialize `placed_size'.
1922         (insert_bp_location): Set `reqstd_address' rather than
1923         `placed_address'.
1924         (bp_target_info_copy_insertion_state): Also copy `placed_address'.
1925         (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
1926         address.
1927         (bkpt_remove_location): Likewise.
1928         (deprecated_insert_raw_breakpoint): Likewise.
1929         (deprecated_remove_raw_breakpoint): Likewise.
1930         (find_single_step_breakpoint): Likewise.
1931         * mem-break.c (default_memory_insert_breakpoint): Use
1932         `reqstd_address' for the breakpoint's address.  Don't set
1933         `placed_address' or `placed_size' if breakpoint contents couldn't
1934         have been determined.
1935         * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
1936         the breakpoint's address.
1937         (remote_insert_hw_breakpoint): Likewise.  Don't set
1938         `placed_address' or `placed_size' if breakpoint couldn't have been
1939         set.
1940         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
1941         `reqstd_address' for the breakpoint's address.
1942         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
1943         * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
1944         * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
1945         * microblaze-linux-tdep.c
1946         (microblaze_linux_memory_remove_breakpoint): Likewise.
1947         * monitor.c (monitor_insert_breakpoint): Likewise.
1948         * nto-procfs.c (procfs_insert_breakpoint): Likewise.
1949         (procfs_insert_hw_breakpoint): Likewise.
1950         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
1951         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
1952         * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
1953         * remote-mips.c (mips_insert_breakpoint): Likewise.
1954         * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
1955
1956 2014-10-03  Luis Machado  <lgustavo@codesourcery.com>
1957
1958         * valops.c (value_assign): Check for bit field assignments
1959         before calling architecture-specific register value
1960         conversion functions.
1961
1962 2014-10-03  Pierre Muller  <muller@sourceware.org>
1963
1964         * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
1965
1966 2014-10-02  Pedro Alves  <palves@redhat.com>
1967
1968         * breakpoint.c (breakpoints_should_be_inserted_now): Use
1969         threads_are_executing.
1970         * breakpoint.h (breakpoints_should_be_inserted_now): Add
1971         describing comment.
1972         * gdbthread.h (threads_are_executing): Declare.
1973         (handle_signal_stop) <random signals>: Don't print about the
1974         signal here if stopping.
1975         (end_stepping_range): Don't notify observers here.
1976         (normal_stop): Update the thread list.  If stopped by a random
1977         signal or a stepping range ended, notify observers.
1978         * thread.c (threads_executing): New global.
1979         (init_thread_list): Clear 'threads_executing'.
1980         (set_executing): Set or clear 'threads_executing'.
1981         (threads_are_executing): New function.
1982         (update_threads_executing): New function.
1983         (update_thread_list): Use it.
1984
1985 2014-10-02  Pedro Alves  <palves@redhat.com>
1986
1987         PR breakpoints/17431
1988         * breakpoint.c (update_breakpoints_after_exec): Don't create
1989         overlay, longjmp, std terminate nor exception breakpoints here.
1990
1991 2014-10-02  Pedro Alves  <palves@redhat.com>
1992
1993         * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
1994         Adjust comments.
1995         * inferior.c (find_inferior_for_program_space): Give preference to
1996         the current inferior.
1997         * inferior.h (find_inferior_for_program_space): Update comment.
1998         * progspace.c (switch_to_program_space_and_thread): Prefer the
1999         current inferior if it's bound to the program space requested.  If
2000         the inferior found doesn't have a PID yet, don't bother looking up
2001         a thread.
2002         * progspace.h (switch_to_program_space_and_thread): Adjust
2003         comment.
2004         * thread.c (any_thread_of_process, any_live_thread_of_process):
2005         Give preference to the current thread.
2006
2007 2014-10-01  Pedro Alves  <palves@redhat.com>
2008
2009         * breakpoint.c (insert_bp_location): Error out if inserting a
2010         software breakpoint at a read-only address.
2011         * target.c (memory_xfer_check_region): New function, factored out
2012         from ...
2013         (memory_xfer_partial_1): ... this.  Make the 'reg_len' local a
2014         ULONGEST.
2015         (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2016         against the memory region attributes.
2017
2018 2014-10-01  Simon Marchi  <simon.marchi@ericsson.com>
2019
2020         * NEWS: Announce new exit-code field in -list-thread-groups
2021         output.
2022         * inferior.c (exit_inferior_1): Don't clear exit code.
2023         (inferior_appeared): Clear exit code.
2024         * mi/mi-main.c (print_one_inferior): Add printing of the exit
2025         code.
2026
2027 2014-10-01  Pedro Alves  <palves@redhat.com>
2028
2029         * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2030         GENERATED" along with emacs/vi read-only markers.
2031         * regformats/aarch64.dat: Regenerate.
2032         * regformats/arm-with-iwmmxt.dat: Regenerate.
2033         * regformats/arm-with-neon.dat: Regenerate.
2034         * regformats/arm-with-vfpv2.dat: Regenerate.
2035         * regformats/arm-with-vfpv3.dat: Regenerate.
2036         * regformats/i386/amd64-avx-linux.dat: Regenerate.
2037         * regformats/i386/amd64-avx.dat: Regenerate.
2038         * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2039         * regformats/i386/amd64-avx512.dat: Regenerate.
2040         * regformats/i386/amd64-linux.dat: Regenerate.
2041         * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2042         * regformats/i386/amd64-mpx.dat: Regenerate.
2043         * regformats/i386/amd64.dat: Regenerate.
2044         * regformats/i386/i386-avx-linux.dat: Regenerate.
2045         * regformats/i386/i386-avx.dat: Regenerate.
2046         * regformats/i386/i386-avx512-linux.dat: Regenerate.
2047         * regformats/i386/i386-avx512.dat: Regenerate.
2048         * regformats/i386/i386-linux.dat: Regenerate.
2049         * regformats/i386/i386-mmx-linux.dat: Regenerate.
2050         * regformats/i386/i386-mmx.dat: Regenerate.
2051         * regformats/i386/i386-mpx-linux.dat: Regenerate.
2052         * regformats/i386/i386-mpx.dat: Regenerate.
2053         * regformats/i386/i386.dat: Regenerate.
2054         * regformats/i386/x32-avx-linux.dat: Regenerate.
2055         * regformats/i386/x32-avx.dat: Regenerate.
2056         * regformats/i386/x32-avx512-linux.dat: Regenerate.
2057         * regformats/i386/x32-avx512.dat: Regenerate.
2058         * regformats/i386/x32-linux.dat: Regenerate.
2059         * regformats/i386/x32.dat: Regenerate.
2060         * regformats/microblaze-with-stack-protect.dat: Regenerate.
2061         * regformats/mips-dsp-linux.dat: Regenerate.
2062         * regformats/mips-linux.dat: Regenerate.
2063         * regformats/mips64-dsp-linux.dat: Regenerate.
2064         * regformats/mips64-linux.dat: Regenerate.
2065         * regformats/nios2-linux.dat: Regenerate.
2066         * regformats/rs6000/powerpc-32.dat: Regenerate.
2067         * regformats/rs6000/powerpc-32l.dat: Regenerate.
2068         * regformats/rs6000/powerpc-64l.dat: Regenerate.
2069         * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2070         * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2071         * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2072         * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2073         * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2074         * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2075         * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2076         * regformats/s390-linux32.dat: Regenerate.
2077         * regformats/s390-linux32v1.dat: Regenerate.
2078         * regformats/s390-linux32v2.dat: Regenerate.
2079         * regformats/s390-linux64.dat: Regenerate.
2080         * regformats/s390-linux64v1.dat: Regenerate.
2081         * regformats/s390-linux64v2.dat: Regenerate.
2082         * regformats/s390-te-linux64.dat: Regenerate.
2083         * regformats/s390x-linux64.dat: Regenerate.
2084         * regformats/s390x-linux64v1.dat: Regenerate.
2085         * regformats/s390x-linux64v2.dat: Regenerate.
2086         * regformats/s390x-te-linux64.dat: Regenerate.
2087         * regformats/tic6x-c62x-linux.dat: Regenerate.
2088         * regformats/tic6x-c62x.dat: Regenerate.
2089         * regformats/tic6x-c64x-linux.dat: Regenerate.
2090         * regformats/tic6x-c64x.dat: Regenerate.
2091         * regformats/tic6x-c64xp-linux.dat: Regenerate.
2092         * regformats/tic6x-c64xp.dat: Regenerate.
2093
2094 2014-10-01  Pedro Alves  <palves@redhat.com>
2095
2096         * features/Makefile: Update comments.
2097         (XMLTOC): List all xml files we build C files from.
2098         (clean-cfiles): New rule.
2099
2100 2014-10-01  Pedro Alves  <palves@redhat.com>
2101
2102         * features/i386/amd64-avx512-linux.c: Regenerate.
2103         * features/i386/amd64-avx512.c: Regenerate.
2104         * features/i386/x32-avx512-linux.c: Regenerate.
2105         * features/i386/x32-avx512.c: Regenerate.
2106
2107 2014-10-01  Pedro Alves  <palves@redhat.com>
2108
2109         * features/Makefile (WHICH): Remove arm-with-m,
2110         arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2111
2112 2014-10-01  Pedro Alves  <palves@redhat.com>
2113
2114         * features/Makefile (clean): New rule.
2115
2116 2014-10-01  Pedro Alves  <palves@redhat.com>
2117
2118         * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2119         (zmm14h): Add missing end quotes.
2120
2121 2014-10-01  Pedro Alves  <palves@redhat.com>
2122
2123         * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2124         * features/aarch64.c: Regenerate.
2125
2126 2014-09-30  Don Breazeal  <donb@codesourcery.com>
2127
2128         * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2129         code so as to work with follow_fork_inferior.
2130         * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2131         (inf_ttrace_create_inferior): Remove reference to
2132         inf_ttrace_vfork_ppid.
2133         (inf_ttrace_attach): Ditto.
2134         (inf_ttrace_detach): Ditto.
2135         (inf_ttrace_kill): Use current_inferior instead of
2136         inf_ttrace_vfork_ppid.
2137         (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2138         TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2139         inferior away from the parent.
2140         * infrun.c (follow_fork): Call follow_fork_inferior instead of
2141         target_follow_fork.
2142         (follow_fork_inferior): New function.
2143         (follow_inferior_reset_breakpoints): Make function static.
2144         * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2145         * linux-nat.c (linux_child_follow_fork): Move target-independent
2146         code to infrun.c:follow_fork_inferior.
2147
2148 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2149
2150         * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2151         * gdbarch.c: Regenerate.
2152         * gdbarch.h: Likewise.
2153         * corelow.c (sniff_core_bfd): Drop presence check for deleted
2154         gdbarch method 'regset_from_core_section'.
2155         (get_core_register_section): Remove handling for the case that
2156         regset == NULL and regset_from_core_section is defined.
2157         (get_core_registers): Drop check for deleted method.
2158         * procfs.c (procfs_do_thread_registers): Adjust comment.
2159
2160 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2161
2162         * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2163         (linux_nat_make_corefile_notes): Remove.
2164         (linux_target_install_ops): Do not set target method
2165         'make_corefile_notes'.
2166         * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2167         Remove field.
2168         (linux_corefile_thread_callback): Instead of args->collect, call
2169         linux_collect_thread_registers.
2170         (linux_make_corefile_notes): Remove 'collect' parameter.  Return
2171         NULL unless there is a regset iterator.
2172         (linux_make_corefile_notes_1): Remove.
2173         (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2174         by linux_make_corefile_notes.
2175         * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2176
2177 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2178
2179         * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2180         (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2181         Remove.
2182         * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2183
2184 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2185
2186         * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2187         (xtensa_iterate_over_regset_sections): New.
2188         (xtensa_gdbarch_init): Adjust gdbarch initialization.
2189
2190 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2191
2192         * vax-tdep.c (vax_regset_from_core_section): Remove.
2193         (vax_iterate_over_regset_sections): New.
2194         (vax_gdbarch_init): Adjust gdbarch initialization.
2195
2196 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2197
2198         * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2199         (tilegx_regset_from_core_section): Remove.
2200         (tilegx_iterate_over_regset_sections): New.
2201         (tilegx_linux_init_abi): Adjust gdbarch initialization.
2202
2203 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2204
2205         * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2206         (sparc_iterate_over_regset_sections): New.
2207         (sparc32_gdbarch_init): Adjust gdbarch initialization.
2208         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2209         targets.
2210         * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2211         (sparc64fbsd_init_abi): Call fbsd_init_abi.
2212         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2213         target method 'make_corefile_notes'.
2214
2215 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2216
2217         * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2218         'sizeof_gregset' and 'sizeof_fpregset'.
2219         * sh-tdep.c (sh_regset_from_core_section): Remove.
2220         (sh_iterate_over_regset_sections): New.
2221         (sh_gdbarch_init): Adjust gdbarch initialization.
2222         * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2223         sizeof_fpregset.
2224         * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2225         'sizeof_gregset'.
2226
2227 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2228
2229         * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2230         (score7_linux_iterate_over_regset_sections): New.
2231         (score_gdbarch_init): Adjust gdbarch initialization.
2232
2233 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2234
2235         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2236         FreeBSD targets.
2237         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2238         method 'make_corefile_notes'.
2239         * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2240         (ppcfbsd_regset_from_core_section): Remove.
2241         (ppcfbsd_iterate_over_regset_sections): New.
2242         (ppcfbsd_init_abi): Call fbsd_init_abi.  Adjust gdbarch
2243         initialization.
2244         * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2245         (ppcnbsd_iterate_over_regset_sections): New.
2246         (ppcnbsd_init_abi): Adjust.
2247         * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2248         (ppcobsd_iterate_over_regset_sections): New.
2249         (ppcobsd_init_abi): Adjust.
2250         * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2251         (rs6000_aix_iterate_over_regset_sections): New.
2252         (rs6000_aix_init_osabi): Adjust.
2253
2254 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2255
2256         * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2257         (nios2_regset_from_core_section): Remove.
2258         (nios2_iterate_over_regset_sections): New.
2259         (nios2_linux_init_abi): Adjust gdbarch initialization.
2260
2261 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2262
2263         * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2264         (am33_iterate_over_regset_sections): New.
2265         (am33_linux_init_osabi): Adjust gdbarch initialization.
2266
2267 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2268
2269         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2270         (mips_linux_iterate_over_regset_sections): New.
2271         (mips_linux_init_abi): Adjust gdbarch initialization.
2272         * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2273         (mips64obsd_iterate_over_regset_sections): New.
2274         (mips64obsd_init_abi): Adjust.
2275         * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2276         (mipsnbsd_iterate_over_regset_sections): New.
2277         (mipsnbsd_init_abi): Adjust.
2278
2279 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2280
2281         * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2282         (m88k_iterate_over_regset_sections): New.
2283         (m88k_gdbarch_init): Adjust gdbarch initialization.
2284
2285 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2286
2287         * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2288         (ia64_linux_iterate_over_regset_sections): New.
2289         (ia64_linux_init_abi): Adjust gdbarch initialization.
2290
2291 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2292
2293         * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2294         (m68kbsd_iterate_over_regset_sections): New.
2295         (m68kbsd_init_abi): Adjust gdbarch initialization.
2296         * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2297         (m68k_linux_iterate_over_regset_sections): New.
2298         (m68k_linux_init_abi): Adjust gdbarch initialization.
2299
2300 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2301
2302         * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2303         (m32r_linux_regset_from_core_section): Remove.
2304         (m32r_linux_iterate_over_regset_sections): New.
2305         (m32r_linux_init_abi): Adjust gdbarch initialization.
2306
2307 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2308
2309         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2310         (amd64obsd_iterate_over_regset_sections): New.
2311         (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2312         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2313         Remove.
2314         (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset.  Drop
2315         regset_from_core_section initialization.
2316         * i386-tdep.c (i386_regset_from_core_section): Remove.
2317         (i386_iterate_over_regset_sections): New.
2318         (i386_gdbarch_init): Adjust gdbarch initialization.
2319         * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2320         (i386_iterate_over_regset_sections): New prototype.
2321         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2322         Remove.
2323         (i386obsd_aout_iterate_over_regset_sections): New.
2324         (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2325         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2326         targets.
2327         * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2328         (amd64fbsd_init_abi): Call fbsd_init_abi.
2329         * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2330         (i386fbsd4_init_abi): Call fbsd_init_abi.
2331         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2332         target method 'make_corefile_notes'.
2333         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2334
2335 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2336
2337         * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2338         (hppa_hpux_iterate_over_regset_sections): New.
2339         (hppa_hpux_init_abi): Adjust gdbarch initialization.
2340         * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2341         (hppa_linux_iterate_over_regset_sections): New.
2342         (hppa_linux_init_abi): Adjust.
2343         * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2344         (hppanbsd_iterate_over_regset_sections): New.
2345         (hppanbsd_init_abi): Adjust.
2346         * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2347         (hppaobsd_iterate_over_regset_sections): New.
2348         (hppaobsd_init_abi): Adjust.
2349
2350 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2351
2352         * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2353         (frv_linux_iterate_over_regset_sections): New.
2354         (frv_linux_init_abi): Adjust gdbarch initialization.
2355
2356 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2357
2358         * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2359         (armbsd_iterate_over_regset_sections): New prototype.
2360         * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2361         (armbsd_iterate_over_regset_sections): New.
2362         * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2363         initialization.
2364
2365 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2366
2367         * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2368         (alpha_linux_iterate_over_regset_sections): New.
2369         (alpha_linux_init_abi): Adjust gdbarch initialization.
2370         * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2371         prototype.
2372         (alphanbsd_iterate_over_regset_sections): New prototype.
2373
2374 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2375
2376         * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2377         Remove.
2378         (aarch64_linux_iterate_over_regset_sections): New.
2379         (aarch64_linux_init_abi): Adjust gdbarch initialization.
2380
2381 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2382
2383         * fbsd-tdep.c: New file.
2384         * fbsd-tdep.h: New file.
2385         * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2386         (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2387         (ALLDEPFILES): Add fbsd-tdep.c.
2388
2389 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2390
2391         * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2392         parameter.
2393         * gdbarch.h: Regenerate.
2394         * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2395         iterator.
2396         (get_core_register_section): Add parameter 'regset' and use it, if
2397         set.  Add parameter 'min_size' and verify the bfd section size
2398         against it.
2399         (get_core_registers_cb): Add parameter 'regset' and pass it to
2400         get_core_register section.  For the "standard" register sections
2401         ".reg" and ".reg2", set an appropriate default for human_name.
2402         (get_core_registers): Don't abort when the gdbarch has an iterator
2403         but no regset_from_core_section.  Add NULL/0 for parameters
2404         'regset'/'min_size' in calls to get_core_register_section.
2405         * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2406         'regset' and use it instead of calling the
2407         regset_from_core_section gdbarch method.
2408         * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2409         * i386-tdep.c (i386_supply_xstateregset)
2410         (i386_collect_xstateregset, i386_xstateregset): Moved to
2411         i386-linux-tdep.c.
2412         (i386_regset_from_core_section): Drop handling for .reg-xfp and
2413         .reg-xstate.
2414         (i386_gdbarch_init): Set tdep field 'fpregset'.  Enable generic
2415         core file support only if the regset iterator hasn't been set.
2416         * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2417         (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2418         Moved from i386-tdep.c and renamed to *_linux*.
2419         (i386_linux_iterate_over_regset_sections): Add regset parameter to
2420         each callback invocation.  Allow any .reg-xstate size when reading
2421         from a core file.
2422         * amd64-tdep.c (amd64_supply_xstateregset)
2423         (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2424         amd64-linux-tdep.c.
2425         (amd64_regset_from_core_section): Remove.
2426         (amd64_init_abi): Set new tdep field 'fpregset'.  No longer
2427         install an amd64-specific regset_from_core_section gdbarch method.
2428         * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2429         (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2430         Moved from amd64-tdep.c and renamed to *_linux*.
2431         (amd64_linux_iterate_over_regset_sections): Add regset parameter
2432         to each callback invocation.  Allow any .reg-xstate size when
2433         reading from a core file.
2434         * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2435         (arm_linux_iterate_over_regset_sections): Add regset parameter to
2436         each callback invocation.
2437         (arm_linux_init_abi): No longer set the regset_from_core_section
2438         gdbarch method.
2439         * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2440         (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2441         each callback invocation.
2442         (ppc_linux_init_abi): No longer set the regset_from_core_section
2443         gdbarch method.
2444         * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2445         gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2446         (s390_regset_from_core_section): Remove.
2447         (s390_iterate_over_regset_sections): Add regset parameter to each
2448         callback invocation.
2449         (s390_gdbarch_init): No longer set the regset_from_core_section
2450         gdbarch method.  Drop initialization of deleted tdep fields.
2451
2452 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2453
2454         * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2455         (amd64_linux_iterate_over_regset_sections): New.
2456         (amd64_linux_init_abi_common): Don't install the regset section
2457         list, but the new iterator in gdbarch.
2458         * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2459         (arm_linux_vfp_regset_sections): Remove.  Move combined logic...
2460         (arm_linux_iterate_over_regset_sections): ...here.  New function.
2461         (arm_linux_init_abi): Set iterator instead of section list.
2462         * corelow.c (get_core_registers_cb): New function, logic moved
2463         from...
2464         (get_core_registers): ...loop body here.  Use new iterator method
2465         instead of walking through the regset section list.
2466         * gdbarch.sh: Remove 'core_regset_sections'.  New method
2467         'iterate_over_regset_sections'.  New typedef
2468         'iterate_over_regset_sections_cb'.
2469         * gdbarch.c: Regenerate.
2470         * gdbarch.h: Likewise.
2471         * i386-linux-tdep.c (i386_linux_regset_sections)
2472         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2473         Remove.
2474         (i386_linux_iterate_over_regset_sections): New.
2475         (i386_linux_init_abi): Don't choose a regset section list, but
2476         install new iterator in gdbarch.
2477         * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2478         (linux_collect_regset_section_cb): New function, logic moved
2479         from...
2480         (linux_collect_thread_registers): ...loop body here.  Use iterator
2481         method instead of walking through list.
2482         (linux_make_corefile_notes_1): Check for presence of iterator
2483         method instead of regset section list.
2484         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2485         (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2486         (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2487         (ppc64_linux_fp_regset_sections): Remove.  Move combined logic...
2488         (ppc_linux_iterate_over_regset_sections): ...here.  New function.
2489         (ppc_linux_init_abi): Don't choose from above regset section
2490         lists, but install new iterator in gdbarch.
2491         * regset.h (struct core_regset_section): Remove.
2492         * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2493         have_linux_v1, have_linux_v2, and have_tdb.
2494         (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2495         (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2496         (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2497         (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2498         (s390x_linux64v2_regset_sections): Remove.  Move combined logic...
2499         (s390_iterate_over_regset_sections): ...here.  New function.  Use
2500         new tdep fields.
2501         (s390_gdbarch_init): Set new tdep fields.  Don't choose from above
2502         regset section lists, but install new iterator.
2503
2504 2014-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
2505
2506         * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2507
2508 2014-09-26  Simon Marchi  <simon.marchi@ericsson.com>
2509
2510         * progspace.c (print_program_space): Don't prune program spaces
2511         before printing them.
2512
2513 2014-09-25  Pedro Alves  <palves@redhat.com>
2514
2515         * infrun.c (user_visible_resume_ptid): Don't check
2516         singlestep_breakpoints_inserted_p.
2517
2518 2014-09-25  Pedro Alves  <palves@redhat.com>
2519
2520         * breakpoint.c (should_be_inserted): Add debug output.
2521
2522 2014-09-25  Pedro Alves  <palves@redhat.com>
2523
2524         * infrun.c (stepping_past_instruction_at)
2525         (clear_exit_convenience_vars): Point at infrun.h instead of
2526         inferior.h.
2527         (handle_signal_stop): Fix typo.
2528
2529 2014-09-24  Yao Qi  <yao@codesourcery.com>
2530
2531         * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2532         bitmask.
2533
2534 2014-09-22  Gary Benson  <gbenson@redhat.com>
2535
2536         * target.c (target_stop): Updated comment.
2537
2538 2014-09-22  Gary Benson  <gbenson@redhat.com>
2539
2540         * target/target.h (target_stop_ptid): Renamed as...
2541         (target_stop_and_wait): New function.  Updated comment.
2542         All uses updated.
2543         (target_continue_ptid): Renamed as...
2544         (target_continue_no_signal): New function.  Updated comment.
2545         All uses updated.
2546
2547 2014-09-22  Pedro Alves  <palves@redhat.com>
2548
2549         * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2550         and "auto" merged.
2551         * breakpoint.c (enum ugll_insert_mode): New enum.
2552         (always_inserted_mode): Now a plain boolean.
2553         (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2554         (breakpoints_always_inserted_mode): Delete.
2555         (breakpoints_should_be_inserted_now): New function.
2556         (insert_breakpoints): Pass UGLL_INSERT to
2557         update_global_location_list instead of calling
2558         insert_breakpoint_locations manually.
2559         (create_solib_event_breakpoint_1): New, factored out from ...
2560         (create_solib_event_breakpoint): ... this.
2561         (create_and_insert_solib_event_breakpoint): Use
2562         create_solib_event_breakpoint_1 instead of calling
2563         insert_breakpoint_locations manually.
2564         (update_global_location_list): Change parameter type from boolean
2565         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
2566         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2567         (update_global_location_list_nothrow): Change parameter type from
2568         boolean to enum ugll_insert_mode.
2569         (_initialize_breakpoint): "breakpoint always-inserted" option is
2570         now a boolean command.  Update help text.
2571         * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2572         (breakpoints_should_be_inserted_now): New declaration.
2573         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2574         Remove breakpoints_always_inserted_mode check.
2575         (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2576         * remote.c (remote_start_remote): Likewise.
2577
2578 2014-09-22  Pedro Alves  <palves@redhat.com>
2579
2580         * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2581         (insert_breakpoints): Don't call insert_breakpoint_locations here.
2582         Instead, pass UGLL_INSERT to update_global_location_list.
2583         (update_global_location_list): Change parameter type from boolean
2584         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
2585         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2586         (create_solib_event_breakpoint_1): New, factored out from ...
2587         (create_solib_event_breakpoint): ... this.
2588         (create_and_insert_solib_event_breakpoint): Use
2589         create_solib_event_breakpoint_1 instead of calling
2590         insert_breakpoint_locations manually.
2591         (update_global_location_list): Handle UGLL_INSERT.
2592
2593 2014-09-22  Pedro Alves  <palves@redhat.com>
2594
2595         * breakpoint.c (enum ugll_insert_mode): New enum.
2596         (update_global_location_list)
2597         (update_global_location_list_nothrow): Change parameter type from
2598         boolean to enum ugll_insert_mode.  All callers adjusted.
2599
2600 2014-09-19  Joel Brobecker  <brobecker@adacore.com>
2601
2602         * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2603         SystemTap support in GDB.
2604
2605 2014-09-19  Don Breazeal  <donb@codesourcery.com>
2606
2607         * linux-nat.c (linux_handle_extended_wait): Call
2608         linux_ptrace_get_extended_event.
2609         (wait_lwp): Call linux_is_extended_waitstatus.
2610         (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2611         and linux_is_extended_waitstatus.
2612         * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2613         linux_ptrace_get_extended_event.
2614         (linux_ptrace_get_extended_event): New function.
2615         (linux_is_extended_waitstatus): New function.
2616         * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2617         (linux_is_extended_waitstatus): New declarations.
2618
2619 2014-09-19  Yao Qi  <yao@codesourcery.com>
2620
2621         * dwarf2read.c (dwarf_decode_lines): Update declaration.
2622         (handle_DW_AT_stmt_list): Add argument 'lowpc'.  Update
2623         comments.  Callers update.
2624         (dwarf_decode_lines): Likewise.
2625         (dwarf_decode_lines_1): Add argument 'lowpc'.  Update
2626         comments.  Skip the line table if  'lowpc' is greater than
2627         'address'.  Don't check
2628         dwarf2_per_objfile->has_section_at_zero.
2629
2630 2014-09-18  Doug Evans  <dje@google.com>
2631
2632         * NEWS: Mention new "producer" attribute of gdb.Symtab.
2633         * python/py-symtab.c (stpy_get_producer): New function.
2634         (symtab_object_getset): Add "producer" attribute.
2635
2636 2014-09-17  Ulrich Weigand  <uweigand@de.ibm.com>
2637
2638         PR gdb/17384
2639         * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2640         (do_captured_read_memory_integer): Remove.
2641         (safe_read_memory_integer): Use target_read_memory directly instead
2642         of catching errors in do_captured_read_memory_integer.
2643
2644 2014-09-16  Maciej W. Rozycki  <macro@codesourcery.com>
2645
2646         * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2647         not gdb/doc.
2648
2649 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
2650
2651         * objc-lang.c (find_implementation_from_class): Remove dead code.
2652
2653 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
2654
2655         PR cli/7233
2656         * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2657         "fprintf_unfiltered (gdb_stdlog...)".
2658
2659 2014-09-16  Patrick Palka  <patrick@parcs.ath.cx>
2660
2661         PR breakpoints/12526
2662         * breakpoint.h (struct watchpoint): New fields val_bitpos and
2663         val_bitsize.
2664         * breakpoint.c (watch_command_1): Use these fields to retain
2665         bitfield information.
2666         (extract_bitfield_from_watchpoint_value): New function.
2667         (watchpoint_check): Use it.
2668         (update_watchpoint): Use it.  Optimize the address and length of a
2669         HW watchpoint pointing to a bitfield.
2670         * value.h (unpack_value_bitfield): New prototype.
2671         * value.c (unpack_value_bitfield): Make extern.
2672
2673 2014-09-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2674
2675         * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2676         x86-dregs.o.
2677         * gnu-nat.c (inf_threads): New function.
2678         * gnu-nat.h (inf_threads_ftype): New typedef.
2679         (inf_threads): New declaration.
2680         * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2681         [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2682         (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2683         (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2684         (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2685         (i386_gnu_dr_get_control): New functions.
2686         (reg_addr): New structure.
2687         (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2688         i386 debugging register hooks.
2689         * NEWS: Mention this.
2690
2691 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2692
2693         * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2694         vector data transfer instructions.
2695         (arm_record_coproc_data_proc): Updated.
2696
2697 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2698
2699         * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2700         arm_record_exreg_ld_st_insn.
2701         (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2702         load/store insns.
2703
2704 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2705
2706         * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2707         (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2708         processing instructions.
2709
2710 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2711
2712         * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2713         for advance SIMD struct ld/st insn.
2714         (thumb2_record_decode_insn_handler): Replace stub handler with
2715         thumb2_record_asimd_struct_ld_st.
2716
2717 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2718
2719         * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2720         for asimd, vfp and coprocessor insns.
2721         (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2722         and coprocessor insns.
2723         (thumb2_record_coproc_insn): New function.
2724         (thumb2_record_decode_insn_handler): Update coprocessor insns record
2725         handlers.
2726         (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2727         opcode 110 insns.
2728
2729 2014-09-13  Doug Evans  <xdje42@gmail.com>
2730
2731         * NEWS: Mention new "queue-signal" command.
2732         * infcmd.c (queue_signal_command): New function.
2733         (_initialize_infcmd): Add new queue-signal command.
2734
2735 2014-09-13  Doug Evans  <xdje42@gmail.com>
2736
2737         * linux-nat.c (wait_lwp): Add debugging printf.
2738         (linux_nat_wait_1): Ditto.
2739
2740 2014-09-12  Pedro Alves  <palves@redhat.com>
2741
2742         * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2743         (create_and_insert_solib_event_breakpoint): New functions.
2744         * breakpoint.h (create_and_insert_solib_event_breakpoint)
2745         (remove_solib_event_breakpoints_at_next_stop): New declarations.
2746         * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2747         (remove_dbx_link_breakpoint): Delete function.
2748         (insert_dbx_link_bpt_in_file): Use
2749         create_and_insert_solib_event_breakpoint instead of
2750         deprecated_insert_raw_breakpoint.
2751         (procfs_wait): Don't check whether we hit __dbx_link here.
2752         (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2753         here.
2754         * solib-irix.c (base_breakpoint): Delete global.
2755         (disable_break): Delete function.
2756         (enable_break): Use create_solib_event_breakpoint
2757         instead of deprecated_insert_raw_breakpoint.
2758         (irix_solib_handle_event): New function.
2759         (irix_solib_create_inferior_hook): Don't run the target or disable
2760         the mapping-complete breakpoint here.
2761         (_initialize_irix_solib): Install irix_solib_handle_event as
2762         so_ops->handle_event hook.
2763
2764 2014-09-12  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
2765             Ulrich Weigand  <uweigand@de.ibm.com>
2766
2767         PR tdep/17379
2768         * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2769         instead of read_memory_unsigned_integer.
2770
2771 2014-09-12  Gary Benson  <gbenson@redhat.com>
2772
2773         * nat/linux-waitpid.c: Include common-defs.h.
2774         [GDBSERVER]: Add FIXME comment.
2775         [!GDBSERVER]: Don't include defs.h or signal.h.
2776         (linux_debug) [!GDBSERVER]: Remove empty block.
2777
2778 2014-09-12  Gary Benson  <gbenson@redhat.com>
2779
2780         * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2781         Don't include defs.h or server.h.
2782
2783 2014-09-12  Gary Benson  <gbenson@redhat.com>
2784
2785         * nat/linux-btrace.c: Include common-defs.h.
2786         Don't include defs.h, server.h or gdbthread.h.
2787         * nat/linux-btrace.h (struct target_ops): New forward declaration.
2788
2789 2014-09-12  Gary Benson  <gbenson@redhat.com>
2790
2791         * common/agent.c: Include common-defs.h.
2792         Don't include defs.h or server.h.
2793         * common/buffer.c: Likewise.
2794         * common/common-debug.c: Likewise.
2795         * common/common-utils.c: Likewise.
2796         * common/errors.c: Likewise.
2797         * common/filestuff.c: Likewise.
2798         * common/format.c: Likewise.
2799         * common/gdb_vecs.c: Likewise.
2800         * common/print-utils.c: Likewise.
2801         * common/ptid.c: Likewise.
2802         * common/rsp-low.c: Likewise.
2803         * common/signals.c: Likewise.
2804         * common/vec.c: Likewise.
2805         * common/xml-utils.c: Likewise.
2806         * nat/linux-osdata.c: Likewise.
2807         * nat/linux-procfs.c: Likewise.
2808         * nat/linux-ptrace.c: Likewise.
2809         * nat/mips-linux-watch.c: Likewise.
2810         * target/waitstatus.c: Likewise.
2811
2812 2014-09-12  Tom Tromey  <tromey@redhat.com>
2813             Gary Benson  <gbenson@redhat.com>
2814
2815         * common/common-regcache.h: New file.
2816         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2817         * regcache.h: Include common-regcache.h.
2818         (regcache_read_pc): Don't declare.
2819         * regcache.c (get_thread_regcache_for_ptid): New function.
2820         * nat/linux-btrace.c: Don't include regcache.h.
2821         Include common-regcache.h.
2822         (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2823
2824 2014-09-11  Thomas Schwinge  <thomas@codesourcery.com>
2825
2826         * regcache.h (struct regset): Declare.
2827
2828 2014-09-11  Pedro Alves  <palves@redhat.com>
2829
2830         PR gdb/17347
2831         * main.c: Include "infrun.h".
2832         (catch_command_errors, catch_command_errors_const): Wait for the
2833         foreground command to complete.
2834         * top.c (maybe_wait_sync_command_done): New function, factored out
2835         from ...
2836         (maybe_wait_sync_command_done): ... here.
2837         * top.h (maybe_wait_sync_command_done): New declaration.
2838
2839 2014-09-11  Tom Tromey  <tromey@redhat.com>
2840             Gary Benson  <gbenson@redhat.com>
2841
2842         * common/symbol.h: New file.
2843         * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2844         * minsyms.c (find_minimal_symbol_address): New function.
2845         * common/agent.c: Include common/symbol.h.
2846         [!GDBSERVER]: Don't include objfiles.h.
2847         (agent_look_up_symbols): Use find_minimal_symbol_address.
2848
2849 2014-09-11  Gary Benson  <gbenson@redhat.com>
2850
2851         * target/target.h (target_stop_ptid, target_continue_ptid):
2852         Declare.
2853         * target.c (target_stop_ptid, target_continue_ptid): New
2854         functions.
2855         * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2856         (agent_run_command): Always use target_stop_ptid and
2857         target_continue_ptid.
2858
2859 2014-09-11  Tom Tromey  <tromey@redhat.com>
2860             Gary Benson  <gbenson@redhat.com>
2861
2862         * target/target.h: New file.
2863         * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2864         * target.h: Include target/target.h.
2865         (target_read_memory, target_write_memory): Don't declare.
2866         * target.c (target_read_uint32): New function.
2867         * common/agent.c: Include target/target.h.
2868         [!GDBSERVER]: Don't include target.h.
2869         (helper_thread_id): Type changed to uint32_t.
2870         (agent_get_helper_thread_id): Use target_read_uint32.
2871         (agent_run_command): Always use target_read_memory and
2872         target_write_memory.
2873         (agent_capability): Type changed to uint32_t.
2874         (agent_capability_check): Use target_read_uint32.
2875
2876 2014-09-11  Gary Benson  <gbenson@redhat.com>
2877
2878         * common/common-debug.h (show_debug_regs): Declare.
2879         * common/common-debug.c (show_debug_regs): Define.
2880         * aarch64-linux-nat.c (debug_hw_points): Don't define.  Replace
2881         all uses with show_debug_regs.  Replace all uses that considered
2882         debug_hw_points as a multi-value integer with straight boolean
2883         uses.
2884         * x86-nat.c (debug_hw_points): Don't define.  Replace all uses
2885         with show_debug_regs.
2886         * nat/x86-dregs.c (debug_hw_points): Don't declare.  Replace
2887         all uses with show_debug_regs.
2888         * mips-linux-nat.c (maint_show_dr): Don't define.  Replace all
2889         uses with show_debug_regs.
2890
2891 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
2892
2893         * findvar.c (address_from_register): Handle targets requiring
2894         a special conversion routine even for plain pointer types.
2895
2896 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
2897
2898         * rs6000-nat.c (exec_one_dummy_insn): Remove.
2899         (store_register): Do not call exec_one_dummy_insn.
2900
2901 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2902
2903         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2904         dereference it first.  Use value_enclosing_type instead of
2905         value_type.
2906         (ada_array_length): Likewise.
2907
2908 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2909
2910         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2911         Adjust function implementation and documentation accordingly.
2912         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2913         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2914         Update call to ada_value_ptr_subscript.
2915
2916 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2917
2918         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2919         instead of VAL's type.
2920
2921 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2922
2923         * amd64-linux-nat.c: Add <sys/uio.h> #include.
2924
2925 2014-09-09  Doug Evans  <xdje42@gmail.com>
2926
2927         PR guile/17367
2928         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
2929         last parameter to pkg-config, not first.
2930         * configure.ac: Pass --with-guile provided pkg-config path to
2931         GDB_GUILE_PROGRAM_NAMES.
2932         * configure: Regenerate.
2933
2934 2014-09-09  Gabriel Krisman Bertazi  <gabriel@krisman.be>
2935
2936         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
2937         Bertazi".
2938
2939 2014-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
2940
2941         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
2942         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
2943         the list of sections determining GDB_OSABI_IRIX.
2944
2945 2014-09-09  James Hogan  <james.hogan@imgtec.com>
2946
2947         * MAINTAINERS (Write After Approval): Add "James Hogan".
2948
2949 2014-09-09  James Hogan  <james.hogan@imgtec.com>
2950
2951         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
2952
2953 2014-09-09  Joel Brobecker  <brobecker@adacore.com>
2954
2955         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
2956
2957 2014-09-08  Doug Evans  <xdje42@gmail.com>
2958
2959         PR 17247
2960         * guile.c: #include <signal.h>.
2961         (_initialize_guile): Block SIGCHLD while initializing Guile.
2962
2963         Replaces the following, which is reverted.
2964
2965         2014-07-26  Doug Evans  <xdje42@gmail.com>
2966
2967         PR 17185
2968         * configure.ac: Add check for header gc/gc.h.
2969         Add check for function setenv.
2970         * configure: Regenerate.
2971         * config.in: Regenerate.
2972         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2973
2974 2014-09-08  Doug Evans  <xdje42@gmail.com>
2975
2976         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
2977         with named constant.  Fix style of pointer comparison.
2978         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
2979
2980 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
2981
2982         PR gdb/17035
2983         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
2984         decide whether we display the command on "show user".
2985         * cli/cli-script.c (show_user_1): Only verify cmdlines after
2986         printing command name.
2987         * cli/cli-decode.h (cli_user_command_p): Declare new function.
2988         * cli/cli-decode.c (cli_user_command_p): Create helper function
2989         to verify whether cmd_list_element is a user-defined command.
2990
2991 2014-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
2992
2993         PR python/17355
2994         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
2995         Fix goto out of TRY_CATCH.
2996
2997 2014-09-06  Doug Evans  <xdje42@gmail.com>
2998             Tom Tromey  <tromey@redhat.com>
2999
3000         PR 15276
3001         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3002         $_any_caller_matches.
3003         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3004         * python/lib/gdb/function/caller_is.py: New file.
3005
3006 2014-09-06  Doug Evans  <xdje42@gmail.com>
3007
3008         * infcmd.c (program_info): Fix typo.
3009
3010 2014-09-05  Sergio Durigan Junior  <sergiodj@redhat.com>
3011
3012         PR gdb/17235
3013         * stap-probe.c (stap_parse_single_operand): Delete unused variable
3014         'number'.  New variable 'has_digit'.  Rewrite code to deal with
3015         subexpressions on SDT probes.
3016
3017 2014-09-04  Pedro Alves  <palves@redhat.com>
3018
3019         * c-exp.y (parse_number): Skip handling base-switching prefixes if
3020         the input is only one character long.
3021
3022 2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
3023
3024         PR fortran/17237
3025         * f-valprint.c (f_val_print): Specify the correct print option to
3026         use when printing integer values.
3027
3028 2014-09-04  Gary Benson  <gbenson@redhat.com>
3029
3030         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3031         Remove code to cope with LWPs wrapped as PIDs.
3032         Add assertions to ensure no wrapped LWPs are passed.
3033
3034 2014-09-04  Pedro Alves  <palves@redhat.com>
3035
3036         * value.c (value_ranges_copy_adjusted): New function, factored out
3037         from ...
3038         (value_contents_copy_raw): ... here.
3039         (unpack_value_bits_as_long_1): Rename back to ...
3040         (unpack_bits_as_long): ... this.  Remove 'original_value' and
3041         'result' parameters.  Change return type to LONGEST.
3042         (unpack_value_bits_as_long): Delete.
3043         (unpack_value_field_as_long_1): Delete.
3044         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3045         (unpack_value_bitfield): New function.
3046         (value_field_bitfield): Reimplement using unpack_value_bitfield.
3047         (value_fetch_lazy): Use unpack_value_bitfield.
3048         * value.h (unpack_value_bits_as_long): Delete declaration.
3049
3050 2014-09-03  Sasha Smundak  <asmundak@google.com>
3051
3052         * python/py-frame.c (frapy_read_register): New function.
3053
3054 2014-09-03  James Hogan  <james.hogan@imgtec.com>
3055
3056         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3057         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3058
3059 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
3060
3061         PR python/16699
3062         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3063         function.
3064         (add_cmd): Set "completer_handle_brkchars" to NULL.
3065         * cli/cli-decode.h (struct cmd_list_element)
3066         <completer_handle_brkchars>: New field.
3067         * command.h (completer_ftype_void): New typedef.
3068         (set_cmd_completer_handle_brkchars): New prototype.
3069         * completer.c (set_gdb_completion_word_break_characters): New
3070         function.
3071         (complete_line_internal): Call "completer_handle_brkchars"
3072         callback from command.
3073         * completer.h: Include "command.h".
3074         (set_gdb_completion_word_break_characters): New prototype.
3075         * python/py-cmd.c (cmdpy_completer_helper): New function.
3076         (cmdpy_completer_handle_brkchars): New function.
3077         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3078         (cmdpy_init): Set completer_handle_brkchars to
3079         cmdpy_completer_handle_brkchars.
3080
3081 2014-09-03  Gary Benson  <gbenson@redhat.com>
3082
3083         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3084         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
3085         Loop conditions changed to equivalent form.
3086         (struct x86_debug_reg_state): Updated dr_ref_count comment.
3087         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3088         ALL_DEBUG_ADDRESS_REGISTERS.
3089
3090 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
3091
3092         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3093         description fix.
3094
3095 2014-09-02  Doug Evans  <dje@google.com>
3096
3097         * typeprint.c (find_global_typedef): Fix comment.
3098
3099 2014-09-02  Gary Benson  <gbenson@redhat.com>
3100
3101         * i386-nat.h: Renamed as...
3102         * x86-nat.h: New file.  All type, function and variable name
3103         prefixes changed from "i386_" to "x86_".  All references updated.
3104         * i386-nat.c: Renamed as...
3105         * x86-nat.c: New file.  All type, function and variable name
3106         prefixes changed from "i386_" to "x86_".  All references updated.
3107         * common/i386-xstate.h: Renamed as...
3108         * common/x86-xstate.h: New file.  All type, function and variable
3109         name prefixes changed from "i386_" to "x86_".  All references
3110         updated.
3111         * nat/i386-cpuid.h: Renamed as...
3112         * nat/x86-cpuid.h: New file.  All type, function and variable name
3113         prefixes changed from "i386_" to "x86_".  All references updated.
3114         * nat/i386-gcc-cpuid.h: Renamed as...
3115         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
3116         name prefixes changed from "i386_" to "x86_".  All references
3117         updated.
3118         * nat/i386-dregs.h: Renamed as...
3119         * nat/x86-dregs.h: New file.  All type, function and variable name
3120         prefixes changed from "i386_" to "x86_".  All references updated.
3121         * nat/i386-dregs.c: Renamed as...
3122         * nat/x86-dregs.c: New file.  All type, function and variable name
3123         prefixes changed from "i386_" to "x86_".  All references updated.
3124
3125 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
3126
3127         * varobj.c (_initialize_varobj): Move to the end of file.
3128
3129 2014-08-29  Gary Benson  <gbenson@redhat.com>
3130
3131         * common/common-exceptions.h: New file.
3132         * common/common-exceptions.c: Likewise.
3133         * Makefile.in (SFILES): Add common/common-exceptions.c.
3134         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3135         (COMMON_OBS): Add common-exceptions.o.
3136         (common-exceptions.o): New rule.
3137         * exceptions.h (common-exceptions.h): Include.
3138         (gdb_setjmp.h): Do not include.
3139         (return_reason): Moved to common-exceptions.h.
3140         (enum return_reason): Likewise.
3141         (RETURN_MASK): Likewise.
3142         (typedef return_mask): Likewise.
3143         (enum errors): Likewise.
3144         (struct gdb_exception): Likewise.
3145         (exceptions_state_mc_init): Likewise.
3146         (exceptions_state_mc_action_iter): Likewise.
3147         (exceptions_state_mc_action_iter_1): Likewise.
3148         (TRY_CATCH): Likewise.
3149         (throw_exception): Likewise.
3150         (throw_verror): Likewise.
3151         (throw_vquit): Likewise.
3152         (throw_error): Likewise.
3153         (throw_quit): Likewise.
3154         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3155         (enum catcher_action): Likewise.
3156         (struct catcher): Likewise.
3157         (current_catcher): Likewise.
3158         (catcher_list_size): Likewise.
3159         (exceptions_state_mc_init): Likewise.
3160         (catcher_pop): Likewise.
3161         (exceptions_state_mc): Likewise.
3162         (exceptions_state_mc_action_iter): Likewise.
3163         (exceptions_state_mc_action_iter_1): Likewise.
3164         (throw_exception): Likewise.
3165         (exception_messages): Likewise.
3166         (exception_messages_size): Likewise.
3167         (throw_it): Likewise.
3168         (throw_verror): Likewise.
3169         (throw_vquit): Likewise.
3170         (throw_error): Likewise.
3171         (throw_quit): Likewise.
3172         (prepare_to_throw_exception): New function.
3173
3174 2014-08-29  Gary Benson  <gbenson@redhat.com>
3175
3176         * common/gdb_setjmp.h: New file.
3177         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3178         * configure.ac: Move sigsetjmp check...
3179         * common/common.m4: ...here.
3180         * configure: Regenerate.
3181         * cp-support.c (SIGJMP_BUF): Delete.
3182         (SIGSETJMP): Likewise.
3183         (SIGLONGJMP): Likewise.
3184         * exceptions.h (gdb_setjmp.h): Include.
3185         (setjmp.h): Do not include.
3186         (EXCEPTIONS_SIGJMP_BUF): Delete.
3187         (EXCEPTIONS_SIGSETJMP): Likewise.
3188         (EXCEPTIONS_SIGLONGJMP): Likewise.
3189         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3190         from gdb_setjmp.h.
3191         * exceptions.c: Likewise.
3192
3193 2014-08-29  Gary Benson  <gbenson@redhat.com>
3194
3195         * cleanups.h: Moved to...
3196         * common/cleanups.h: New file.
3197         * cleanups.c: Moved to...
3198         * common/cleanups.c: New file.  Include common-defs.h and
3199         cleanups.h.  Do not include defs.h.
3200         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3201         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3202         (cleanups.o): New rule.
3203
3204 2014-08-29  Gary Benson  <gbenson@redhat.com>
3205
3206         * common/errors.h (internal_warning): New declaration.
3207         (internal_vwarning): Likewise.
3208         * common/errors.c (internal_warning): New function.
3209         * utils.h (internal_warning): Don't declare.
3210         (internal_vwarning): Likewise.
3211         * utils.c (internal_warning): Removed.
3212
3213 2014-08-29  Gary Benson  <gbenson@redhat.com>
3214
3215         * main.c (captured_main): Use warning during startup.
3216         Prefix startup warning messages with command name.
3217
3218 2014-08-29  Gary Benson  <gbenson@redhat.com>
3219
3220         * main.c (captured_main): Handle usage errors with error.
3221
3222 2014-08-29  Gary Benson  <gbenson@redhat.com>
3223
3224         * go32-nat.c (go32_create_inferior): Replace a fprintf/
3225         exit pair with a call to error.  Wrap the message with _().
3226
3227 2014-08-29  Gary Benson  <gbenson@redhat.com>
3228
3229         * main.c (captured_main): Replace a fprintf/exit
3230         pair with a call to error.  Wrap the message with _().
3231
3232 2014-08-29  Gary Benson  <gbenson@redhat.com>
3233
3234         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3235         pairs with calls to error.  Wrap the message with _().
3236
3237 2014-08-29  Gary Benson  <gbenson@redhat.com>
3238
3239         * utils.c (vwarning): Protect calls to target_terminal_ours
3240         and wrap_here.
3241
3242 2014-08-29  Gary Benson  <gbenson@redhat.com>
3243
3244         * exceptions.c (print_flush): Protect calls to
3245         target_terminal_ours and wrap_here.
3246
3247 2014-08-29  Gary Benson  <gbenson@redhat.com>
3248
3249         * utils.h (filtered_printing_initialized): New declaration.
3250         * utils.c (abort_with_message): New function.
3251         (internal_vproblem): Use abort_with_message for first level
3252         recursive internal problems, and if gdb_stderr is not set up.
3253         Protect calls to target_terminal_ours, begin_line and query.
3254
3255 2014-08-28  Doug Evans  <dje@google.com>
3256
3257         * symtab.c (in_prologue): Move definition to better spot.
3258         (skip_prologue_using_sal): Ditto.
3259
3260 2014-08-28  Doug Evans  <dje@google.com>
3261
3262         * symtab.c (find_function_start_sal): Move definition to better spot.
3263
3264 2014-08-28  Yao Qi  <yao@codesourcery.com>
3265
3266         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3267         found_stack_adjust in forward scan.  Remove condition check
3268         on found_stack_adjust which is always true.  Indent the code.
3269
3270 2014-08-28  Yao Qi  <yao@codesourcery.com>
3271
3272         * dwarf2read.c (dwarf_decode_lines): Update declaration.
3273         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3274         (dwarf_decode_lines): Remove argument
3275         want_line_info.  Remove condition check on want_line_info.
3276         Callers update.
3277
3278 2014-08-27  Doug Evans  <dje@google.com>
3279
3280         * dwarf2read.c (dwarf_record_line): Fix typo.
3281
3282 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
3283
3284         * target.h (struct target_ops::to_terminal_save_ours): Remove
3285         declaration.
3286         (target_terminal_save_ours): Remove macro.
3287         * target-delegates.c: Regenerate.
3288         * inf-child.c (inf_child_target): Don't set the nonexistent
3289         field to_terminal_save_ours.
3290         * inferior.h (child_terminal_save_ours): Remove declaration.
3291         * terminal.h (gdb_save_tty_state): New declaration.
3292         * inflow.c (child_terminal_save_ours): Rename to ...
3293         (gdb_save_tty_state): ... this.
3294         * tui/tui.c: Include terminal.h.
3295         (tui_enable): Use gdb_save_tty_state instead of
3296         target_terminal_save_ours.
3297         (tui_disable): Likewise.
3298
3299 2014-08-25  Doug Evans  <dje@google.com>
3300
3301         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3302         Pass NULL instead of 0 for context pointer.
3303
3304 2014-08-25  Yao Qi  <yao@codesourcery.com>
3305
3306         * dwarf2read.c: Fix grammatical error.
3307
3308 2014-08-24  Yao Qi  <yao@codesourcery.com>
3309
3310         * dwarf2read.c (scan_partial_symbols):  Update comments.
3311         Rename argument 'need_pc' with 'set_addrmap'.
3312         (add_partial_namespace): Rename argument 'need_pc' with
3313         'set_addrmap'.
3314         (add_partial_module): Likewise.
3315         (add_partial_subprogram): Likewise.  Update comments.
3316         (dwarf2_name): Fix typo.
3317
3318 2014-08-22  Doug Evans  <dje@google.com>
3319
3320         PR 17276
3321         * dwarf2read.c (dwarf_record_line_p): New function.
3322         (dwarf_decode_lines_1): Ignore subsequent line number entries
3323         for the same line if any entry had a non-zero discriminator.
3324
3325 2014-08-22  Doug Evans  <dje@google.com>
3326
3327         * buildsym.h (record_line_ftype): New typedef.
3328         (record_line): Use it.
3329         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3330         (dwarf_decode_lines_1): Call them.
3331
3332 2014-08-22  Yao Qi  <yao@codesourcery.com>
3333
3334         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3335         (ctf_end): Remove code.
3336
3337 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
3338
3339         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3340         (linux_make_corefile_notes): call update_thread_list, protected against
3341         exceptions.
3342
3343 2014-08-21  Pedro Alves  <palves@redhat.com>
3344
3345         * infcmd.c (attach_command): Remove comment.
3346
3347 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
3348
3349         * aarch64-linux-nat.c (dr_changed_t): Change the type from
3350         unsigned LONGEST to ULONGEST.
3351
3352 2014-08-20  Pedro Alves  <palves@redhat.com>
3353
3354         * Makefile.in (check-read1): New rule.
3355
3356 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
3357
3358         * value.c (value_from_contents_and_address): Strip resolved_type's
3359         typedef layers before checking its TYPE_DATA_LOCATION.
3360
3361 2014-08-20  Pedro Alves  <palves@redhat.com>
3362
3363         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3364
3365 2014-08-20  Yao Qi  <yao@codesourcery.com>
3366
3367         * amd64-tdep.c (amd64_classify): Add a blank line after the
3368         example.  Move "*/" to a new line.
3369         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3370         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3371         * dwarf2read.c (psymtab_include_file_name): Likewise.
3372
3373 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
3374             Pedro Alves  <palves@redhat.com>
3375
3376         PR symtab/14604
3377         PR symtab/14605
3378         * ada-lang.c (coerce_unspec_val_to_type): Use
3379         value_contents_copy_raw.
3380         * ada-valprint.c (val_print_packed_array_elements): Adjust.
3381         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3382         * cp-valprint.c (cp_print_value_fields): Let the common printing
3383         code handle optimized out values.
3384         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3385         * d-valprint.c (dynamic_array_type): Use
3386         value_bits_any_optimized_out.
3387         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3388         check_any_valid fields.
3389         (check_pieced_value_bits): Delete and inline ...
3390         (check_pieced_synthetic_pointer): ... here.
3391         (check_pieced_value_validity): Delete.
3392         (check_pieced_value_invalid): Delete.
3393         (pieced_value_funcs): Remove check_validity and check_any_valid
3394         fields.
3395         (read_pieced_value): Use mark_value_bits_optimized_out.
3396         (write_pieced_value): Switch to use
3397         mark_value_bytes_optimized_out.
3398         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3399         of assuming the whole value is optimized out.
3400         * findvar.c (read_frame_register_value): Remove special handling
3401         of optimized out registers.
3402         (value_from_register): Use mark_value_bytes_optimized_out.
3403         * frame-unwind.c (frame_unwind_got_optimized): Use
3404         mark_value_bytes_optimized_out.
3405         * jv-valprint.c (java_value_print): Adjust.
3406         (java_print_value_fields): Let the common printing code handle
3407         optimized out values.
3408         * mips-tdep.c (mips_print_register): Remove special handling of
3409         optimized out registers.
3410         * opencl-lang.c (lval_func_check_validity): Delete.
3411         (lval_func_check_any_valid): Delete.
3412         (opencl_value_funcs): Remove check_validity and check_any_valid
3413         fields.
3414         * p-valprint.c (pascal_object_print_value_fields): Let the common
3415         printing code handle optimized out values.
3416         * stack.c (read_frame_arg): Remove special handling of optimized
3417         out values.  Fetch both VAL and ENTRYVAL before comparing
3418         contents.  Adjust to value_available_contents_eq rename.
3419         * valprint.c (valprint_check_validity)
3420         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3421         (val_print_array_elements): Adjust.
3422         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3423         (value_bits_any_optimized_out): New function.
3424         (value_entirely_covered_by_range_vector): New function, factored
3425         out from value_entirely_unavailable.
3426         (value_entirely_unavailable): Reimplement.
3427         (value_entirely_optimized_out): New function.
3428         (insert_into_bit_range_vector): New function, factored out from
3429         mark_value_bits_unavailable.
3430         (mark_value_bits_unavailable): Reimplement.
3431         (struct ranges_and_idx): New struct.
3432         (find_first_range_overlap_and_match): New function, factored out
3433         from value_available_contents_bits_eq.
3434         (value_available_contents_bits_eq): Rename to ...
3435         (value_contents_bits_eq): ... this.  Check both unavailable
3436         contents and optimized out contents.
3437         (value_available_contents_eq): Rename to ...
3438         (value_contents_eq): ... this.
3439         (allocate_value_lazy): Remove reference to the old optimized_out
3440         boolean.
3441         (allocate_optimized_out_value): Use
3442         mark_value_bytes_optimized_out.
3443         (require_not_optimized_out): Adjust to check whether the
3444         optimized_out vec is empty.
3445         (ranges_copy_adjusted): New function, factored out from
3446         value_contents_copy_raw.
3447         (value_contents_copy_raw): Also copy the optimized out ranges.
3448         Assert the destination ranges aren't optimized out.
3449         (value_contents_copy): Update comment, remove call to
3450         require_not_optimized_out.
3451         (value_contents_equal): Adjust to check whether the optimized_out
3452         vec is empty.
3453         (set_value_optimized_out, value_optimized_out_const): Delete.
3454         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3455         New functions.
3456         (value_entirely_optimized_out, value_bits_valid): Delete.
3457         (value_copy): Take a VEC copy of the 'optimized_out' field.
3458         (value_primitive_field): Remove special handling of optimized out.
3459         (value_fetch_lazy): Assert that lazy values have no unavailable
3460         regions.  Use value_bits_any_optimized_out.  Remove some special
3461         handling for optimized out values.
3462         * value.h: Add intro comment about <optimized out> and
3463         <unavailable>.
3464         (struct lval_funcs): Remove check_validity and check_any_valid
3465         fields.
3466         (set_value_optimized_out, value_optimized_out_const): Remove.
3467         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3468         New declarations.
3469         (value_bits_any_optimized_out): New declaration.
3470         (value_bits_valid): Delete declaration.
3471         (value_available_contents_eq): Rename to ...
3472         (value_contents_eq): ... this, and extend comments.
3473
3474 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
3475
3476         Fix -fsanitize=address on unreadable inferior strings.
3477         * valprint.c (val_print_string): Fix access before BUFFER.
3478
3479 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
3480
3481         * target.c (target_struct_size): Remove.
3482         (target_struct_allocsize): Remove.
3483         (DEFAULT_ALLOCSIZE): Remove.
3484         (target_ops_p): New typedef.
3485         (DEF_VEC_P (target_ops_p)): New vector type.
3486         (target_structs): Change type to VEC (target_ops_p).
3487         (add_target_with_completer): Replace "push" code by VEC_safe_push.
3488         (find_default_run_target): Rewrite for loop following changes to
3489         target_structs.
3490
3491 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
3492
3493         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3494         Adjust code accordingly.  Adjust function description comment.
3495
3496 2014-08-19  Yao Qi  <yao@codesourcery.com>
3497
3498         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3499         types.
3500
3501 2014-08-19  Alan Modra  <amodra@gmail.com>
3502
3503         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3504         * config.in: Regenerate.
3505         * configure: Regenerate.
3506
3507 2014-08-19  Tom Tromey  <tromey@redhat.com>
3508             Gary Benson  <gbenson@redhat.com>
3509
3510         * common/common-debug.h: New file.
3511         * common/common-debug.c: Likewise.
3512         * debug.c: Likewise.
3513         * Makefile.in (SFILES): Add common/common-debug.c.
3514         (HFILES_NO_SRCDIR): Add common/common-debug.h.
3515         (COMMON_OBS): Add common-debug.o and debug.o.
3516         (common-debug.o): New rule.
3517         * common/common-defs.h: Include common-debug.h.
3518         * common/agent.c (debug_agent_printf): New function.
3519         (DEBUG_AGENT): Redefine.
3520         * nat/i386-dregs.c (debug_printf): Undefine.
3521
3522 2014-08-19  Gary Benson  <gbenson@redhat.com>
3523
3524         * common/common-defs.h: Include print-utils.h.
3525         * utils.h: Do not include print-utils.h.
3526
3527 2014-08-19  Tom Tromey  <tromey@redhat.com>
3528             Gary Benson  <gbenson@redhat.com>
3529
3530         * common/common-types.h: New file.
3531         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3532         * common/common-defs.h: Include common-types.h.
3533         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3534         (ULONGEST): Remove.
3535
3536 2014-08-19  Tom Tromey  <tromey@redhat.com>
3537             Gary Benson  <gbenson@redhat.com>
3538
3539         * common/errors.h: New file.
3540         * common/errors.c: Likewise.
3541         * Makefile.in (SFILES): Add common/errors.c.
3542         (HFILES_NO_SRCDIR): Add common/errors.h.
3543         (COMMON_OBS): Add errors.o.
3544         (errors.o): New rule.
3545         * common/common-defs.h: Include errors.h.
3546         * utils.h (perror_with_name, error, verror, warning, vwarning):
3547         Don't declare.
3548         * common/common-utils.h: (malloc_failure, internal_error):
3549         Likewise.
3550
3551 2014-08-19  Gary Benson  <gbenson@redhat.com>
3552
3553         * utils.c (internal_vproblem): Always print the message.
3554
3555 2014-08-18  Doug Evans  <dje@google.com>
3556
3557         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3558
3559 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
3560
3561         * ada-typeprint.c (type_is_full_subrange_of_target_type):
3562         Return 0 if TYPE is dynamic.
3563         (print_range): Add handling of dynamic ranges.
3564
3565 2014-08-18  Keven Boell  <keven.boell@intel.com>
3566             Joel Brobecker  <brobecker@adacore.com>
3567
3568         * gdbtypes.h (struct main_type): Add field "data_location".
3569         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3570         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3571         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3572         a dynamic data location.
3573         (resolve_dynamic_type): Add DW_AT_data_location handling.
3574         (copy_recursive, copy_type): Copy the data_location information
3575         when present.
3576         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3577         * value.c (value_from_contents_and_address): Add
3578         DW_AT_data_location handling.
3579
3580 2014-08-18  Keven Boell  <keven.boell@intel.com>
3581             Joel Brobecker  <brobecker@adacore.com>
3582
3583         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3584         field "get_object_address".
3585         * dwarf2expr.c (execute_stack_op): Add handling for
3586         DW_OP_push_object_address.
3587         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3588         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3589         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3590         (dwarf_expr_get_obj_addr): New function.
3591         (dwarf_expr_ctx_funcs): Add get_object_address field.
3592         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3593         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
3594         (dwarf2_evaluate_property): Add parameter "address".  Use it.
3595         (needs_get_obj_addr): New function.
3596         (needs_frame_ctx_funcs): Add get_object_address field.
3597         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3598         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
3599         (resolve_dynamic_array): Likewise.
3600
3601 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
3602
3603         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3604         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3605         fixed value for records and unions for which some GNAT encodings
3606         are present.
3607
3608 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
3609
3610         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3611         rewrite to avoid "else if" and "else" constructs.  Should be
3612         a no-op in practice.
3613
3614 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
3615
3616         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3617         of lexical block.
3618
3619 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
3620
3621         PR c++/17132
3622         * eval.c: Update all calls to find_overload_match.
3623         * valarith.c: Likewise.
3624         (value_user_defined_cpp_op, value_user_defined_op): New
3625         argument NOSIDE.  Update all callers.
3626         * valops.c (find_overload_match): New argument NOSIDE.
3627         * value.h (find_overload_match): Update signature.
3628
3629 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
3630
3631         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3632         'items' methods instead of 'iteritems' method on dictionaries.
3633
3634 2014-08-15  Doug Evans  <dje@google.com>
3635
3636         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3637         closer to use.
3638
3639 2014-08-15  Doug Evans  <dje@google.com>
3640
3641         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3642
3643 2014-08-15  Doug Evans  <dje@google.com>
3644
3645         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3646
3647 2014-08-15  Doug Evans  <dje@google.com>
3648
3649         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3650         unused.
3651
3652 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
3653
3654         * dcache.h: Include target.h, to avoid compile time warnings.
3655
3656 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
3657
3658         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
3659         frame_info" partial declaration.
3660         * gdbarch.h: Regenerate.
3661
3662 2014-08-15  Yao Qi  <yao@codesourcery.com>
3663
3664         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3665         Add parameter 'decode_for_pst_p'.  Callers update.
3666
3667 2014-08-13  Yao Qi  <yao@codesourcery.com>
3668
3669         PR build/17104
3670         * configure.ac: Use local variable 'pos'.
3671         * configure: Regenerated.
3672
3673 2014-08-11  Doug Evans  <dje@google.com>
3674
3675         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3676         message, it is redundant with "Reading symbols from ..." message.
3677
3678 2014-08-10  Doug Evans  <xdje42@gmail.com>
3679
3680         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3681
3682 2014-08-09  Yao Qi  <yao@codesourcery.com>
3683
3684         PR remote/9053
3685         * remote.c (remote_xfer_partial): Remove dead code.
3686
3687 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3688
3689         * ia64-linux-tdep.c: Include "regset.h".
3690         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3691         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3692         (ia64_linux_supply_fpregset): New function.
3693         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3694         (ia64_linux_regset_from_core_section): New function.
3695         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3696         method.
3697
3698 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3699
3700         * m68klinux-tdep.c: Include "regset.h".
3701         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3702         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3703         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3704         (m68k_linux_regset_from_core_section): New function.
3705         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3706         method.
3707
3708 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3709
3710         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3711         function.  Move logic to...
3712         (tilegx_linux_regmap): ... this new register map.
3713         (tilegx_linux_regset): Refer to register map, replace supply
3714         method by regcache_supply_regset, and add collect method.
3715         * tilegx-tdep.h (enum tilegx_regnum): New enum value
3716         TILEGX_FIRST_EASY_REGNUM.
3717
3718 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3719
3720         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3721         that calls regcache_supply_regset and handles the EPC register
3722         separately.  Move main logic to...
3723         (score7_linux_gregmap): ... this new register map.
3724         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3725         (score7_linux_gregset): Refer to register map.  Add collect method.
3726         (score7_linux_regset_from_core_section): Replace
3727         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3728         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3729         (struct regset): Delete unused forward declaraction.
3730         (struct pt_regs): Delete structure definition.
3731         (elf_gregset_t): Delete typedef.
3732
3733 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3734
3735         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3736         (nios2_core_regset): Add collect method.
3737
3738 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3739
3740         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3741         platform-independent and don't write to read-only input buffer.
3742         (m32r_linux_collect_gregset): New function.
3743         (m32r_linux_gregset): Add collect method.
3744
3745 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3746
3747         * hppa-linux-tdep.c (greg_map): Rename to...
3748         (hppa_linux_gregmap): ... this.  Also convert to
3749         regcache_map_entry format.
3750         (hppa_linux_supply_regset): Delete function.
3751         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
3752         (hppa_linux_fpregmap): ... this new register map.
3753         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3754         register map, replace supply method by regcache_supply_regset, and
3755         add collect method regcache_collect_regset.
3756
3757 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3758
3759         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3760         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3761         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3762         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3763         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3764         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3765         (frv_linux_supply_gregset): Replace main logic by call to
3766         regcache_supply_regset, but keep clearing gr32-gr63.
3767         (frv_linux_supply_fpregset): Delete function.
3768         (frv_linux_gregset): Refer to appropriate register map and add
3769         regcache_collect_regset as the collect method.
3770         (frv_linux_fpregset): Likewise.  Also exchange the supply method
3771         by regcache_supply_regset.
3772
3773 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3774
3775         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3776         by call to alpha_supply_int_regs.
3777         (alpha_linux_collect_gregset): New function.
3778         (alpha_linux_supply_fpregset): Replace logic by call to
3779         alpha_supply_fp_regs.
3780         (alpha_linux_collect_fpregset): New function.
3781         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3782
3783 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3784
3785         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3786         by call to regcache_collect_regset.
3787         (supply_gregset, supply_fpregset): Call regcache_supply_regset
3788         instead of aarch64_linux_supply_gregset/_fpregset.
3789         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3790         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3791         header file instead.
3792         (aarch64_linux_supply_gregset, supply_gregset_from_core)
3793         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3794         functions.  Move logic to ...
3795         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3796         register maps.
3797         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3798         refer to new register maps, replace *_regset_from_core by
3799         regcache_supply_regset, and also use regcache_collect_regset.
3800         * aarch64-linux-tdep.h: Include "regset.h".
3801         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3802         Delete prototypes.
3803         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3804         macros, moved from C source file.
3805         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3806         variable declarations.
3807
3808 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3809
3810         * s390-linux-nat.c: Include "regset.h".
3811         (regmap_gregset): Delete macro.
3812         (s390_64_regmap_gregset): New register map for
3813         regcache_supply/_collect_regset.
3814         (s390_64_gregset): New regset.
3815         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3816         (regmap_fpregset): Delete macro.
3817         (s390_native_supply, s390_native_collect): Delete functions.
3818         (supply_gregset, fill_gregset): Replace s390-specific regmap
3819         handling by a call to regcache_supply/_collect_regset.
3820         (supply_fpregset, fill_fpregset): Call regcache_supply/
3821         _collect_regset instead of s390_native_supply/_collect.
3822         (fetch_regset, store_regset): Likewise.  Also change the last
3823         parameter to a regset instead of a regmap.
3824         (s390_linux_fetch_inferior_registers)
3825         (390_linux_store_inferior_registers): Adjust last parameter in
3826         calls to fetch_regset and store_regset.
3827         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3828         (s390_gregmap): ... this.  Also make static const and convert to
3829         regcache_map_entry format.
3830         (s390x_regmap_gregset): Delete.
3831         (s390_regmap_fpregset): Rename to...
3832         (s390_fpregmap): ... this.  Make static const and convert to
3833         regcache_map_entry format.
3834         (s390_regmap_upper, s390_regmap_last_break)
3835         (s390x_regmap_last_break, s390_regmap_system_call)
3836         (s390_regmap_tdb): Likewise.
3837         (s390_supply_regset, s390_collect_regset): Remove functions.
3838         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3839         s390_supply_regset.
3840         (s390_gregset, s390_fpregset, s390_upper_regset)
3841         (s390_last_break_regset, s390x_last_break_regset)
3842         (s390_system_call_regset, s390_tdb_regset): Make global and
3843         replace s390_supply/_collect_regset by regcache_supply/
3844         _collect_regset.
3845         (s390x_gregset): Delete.
3846         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3847         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3848         (s390_regmap_fpregset, s390_regmap_last_break)
3849         (s390x_regmap_last_break, s390_regmap_system_call)
3850         (s390_regmap_tdb): Delete global variable declarations.
3851         (s390_gregset, s390_fpregset, s390_last_break_regset)
3852         (s390x_last_break_regset, s390_system_call_regset)
3853         (s390_tdb_regset): New global variable declarations.
3854
3855 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3856
3857         * regcache.c: Include "regset.h".
3858         (regcache_transfer_regset): New local function.
3859         (regcache_supply_regset, regcache_collect_regset): New functions.
3860         * regcache.h (struct regcache_map_entry): New structure.
3861         (REGCACHE_MAP_SKIP): New enum value.
3862         (regcache_supply_regset, regcache_collect_regset): New prototypes.
3863
3864 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3865
3866         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3867         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3868         (ppc_linux_collect_gregset ): Likewise.
3869         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3870         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3871         (ppc_collect_vrregset): Likewise.
3872         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3873         Likewise.
3874
3875 2014-08-07  Yao Qi  <yao@codesourcery.com>
3876
3877         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3878         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3879         * remote.c (remote_read_bytes): Likewise.
3880
3881 2014-08-07  Yao Qi  <yao@codesourcery.com>
3882
3883         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3884
3885 2014-08-07  Yao Qi  <yao@codesourcery.com>
3886
3887         PR remote/17230
3888         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3889         TARGET_XFER_OK instead of 0.
3890
3891 2014-08-07  Gary Benson  <gbenson@redhat.com>
3892
3893         * common/common-defs.h: Include errno.h.
3894         * defs.h: Do not include errno.h.
3895         * ada-typeprint.c: Likewise.
3896         * c-typeprint.c: Likewise.
3897         * core-regset.c: Likewise.
3898         * corefile.c: Likewise.
3899         * corelow.c: Likewise.
3900         * event-loop.c: Likewise.
3901         * f-typeprint.c: Likewise.
3902         * gnu-nat.c: Likewise.
3903         * go32-nat.c: Likewise.
3904         * i386gnu-nat.c: Likewise.
3905         * m2-typeprint.c: Likewise.
3906         * nat/linux-btrace.c: Likewise.
3907         * p-typeprint.c: Likewise.
3908         * procfs.c: Likewise.
3909         * remote-sim.c: Likewise.
3910         * rs6000-nat.c: Likewise.
3911         * target.c: Likewise.
3912         * typeprint.c: Likewise.
3913         * ui-file.c: Likewise.
3914         * valops.c: Likewise.
3915         * valprint.c: Likewise.
3916
3917 2014-08-07  Gary Benson  <gbenson@redhat.com>
3918
3919         * common/common-defs.h: Include string.h.
3920         * aarch64-tdep.c: Do not include string.h.
3921         * ada-exp.y: Likewise.
3922         * ada-lang.c: Likewise.
3923         * ada-lex.l: Likewise.
3924         * ada-typeprint.c: Likewise.
3925         * ada-valprint.c: Likewise.
3926         * aix-thread.c: Likewise.
3927         * alpha-linux-tdep.c: Likewise.
3928         * alpha-mdebug-tdep.c: Likewise.
3929         * alpha-nat.c: Likewise.
3930         * alpha-osf1-tdep.c: Likewise.
3931         * alpha-tdep.c: Likewise.
3932         * alphanbsd-tdep.c: Likewise.
3933         * amd64-dicos-tdep.c: Likewise.
3934         * amd64-linux-tdep.c: Likewise.
3935         * amd64-nat.c: Likewise.
3936         * amd64-sol2-tdep.c: Likewise.
3937         * amd64fbsd-tdep.c: Likewise.
3938         * amd64obsd-tdep.c: Likewise.
3939         * arch-utils.c: Likewise.
3940         * arm-linux-nat.c: Likewise.
3941         * arm-linux-tdep.c: Likewise.
3942         * arm-tdep.c: Likewise.
3943         * arm-wince-tdep.c: Likewise.
3944         * armbsd-tdep.c: Likewise.
3945         * armnbsd-nat.c: Likewise.
3946         * armnbsd-tdep.c: Likewise.
3947         * armobsd-tdep.c: Likewise.
3948         * avr-tdep.c: Likewise.
3949         * ax-gdb.c: Likewise.
3950         * ax-general.c: Likewise.
3951         * bcache.c: Likewise.
3952         * bfin-tdep.c: Likewise.
3953         * breakpoint.c: Likewise.
3954         * build-id.c: Likewise.
3955         * buildsym.c: Likewise.
3956         * c-exp.y: Likewise.
3957         * c-lang.c: Likewise.
3958         * c-typeprint.c: Likewise.
3959         * c-valprint.c: Likewise.
3960         * charset.c: Likewise.
3961         * cli-out.c: Likewise.
3962         * cli/cli-cmds.c: Likewise.
3963         * cli/cli-decode.c: Likewise.
3964         * cli/cli-dump.c: Likewise.
3965         * cli/cli-interp.c: Likewise.
3966         * cli/cli-logging.c: Likewise.
3967         * cli/cli-script.c: Likewise.
3968         * cli/cli-setshow.c: Likewise.
3969         * cli/cli-utils.c: Likewise.
3970         * coffread.c: Likewise.
3971         * common/agent.c: Likewise.
3972         * common/buffer.c: Likewise.
3973         * common/buffer.h: Likewise.
3974         * common/common-utils.c: Likewise.
3975         * common/filestuff.c: Likewise.
3976         * common/filestuff.c: Likewise.
3977         * common/format.c: Likewise.
3978         * common/print-utils.c: Likewise.
3979         * common/rsp-low.c: Likewise.
3980         * common/signals.c: Likewise.
3981         * common/vec.h: Likewise.
3982         * common/xml-utils.c: Likewise.
3983         * core-regset.c: Likewise.
3984         * corefile.c: Likewise.
3985         * corelow.c: Likewise.
3986         * cp-abi.c: Likewise.
3987         * cp-name-parser.y: Likewise.
3988         * cp-support.c: Likewise.
3989         * cp-valprint.c: Likewise.
3990         * cris-tdep.c: Likewise.
3991         * d-exp.y: Likewise.
3992         * darwin-nat.c: Likewise.
3993         * dbxread.c: Likewise.
3994         * dcache.c: Likewise.
3995         * demangle.c: Likewise.
3996         * dicos-tdep.c: Likewise.
3997         * disasm.c: Likewise.
3998         * doublest.c: Likewise.
3999         * dsrec.c: Likewise.
4000         * dummy-frame.c: Likewise.
4001         * dwarf2-frame.c: Likewise.
4002         * dwarf2loc.c: Likewise.
4003         * dwarf2read.c: Likewise.
4004         * elfread.c: Likewise.
4005         * environ.c: Likewise.
4006         * eval.c: Likewise.
4007         * event-loop.c: Likewise.
4008         * exceptions.c: Likewise.
4009         * exec.c: Likewise.
4010         * expprint.c: Likewise.
4011         * f-exp.y: Likewise.
4012         * f-lang.c: Likewise.
4013         * f-typeprint.c: Likewise.
4014         * f-valprint.c: Likewise.
4015         * fbsd-nat.c: Likewise.
4016         * findcmd.c: Likewise.
4017         * findvar.c: Likewise.
4018         * fork-child.c: Likewise.
4019         * frame.c: Likewise.
4020         * frv-linux-tdep.c: Likewise.
4021         * frv-tdep.c: Likewise.
4022         * gdb.c: Likewise.
4023         * gdb_bfd.c: Likewise.
4024         * gdbarch.c: Likewise.
4025         * gdbarch.sh: Likewise.
4026         * gdbtypes.c: Likewise.
4027         * gnu-nat.c: Likewise.
4028         * gnu-v2-abi.c: Likewise.
4029         * gnu-v3-abi.c: Likewise.
4030         * go-exp.y: Likewise.
4031         * go-lang.c: Likewise.
4032         * go32-nat.c: Likewise.
4033         * guile/guile.c: Likewise.
4034         * guile/scm-auto-load.c: Likewise.
4035         * hppa-hpux-tdep.c: Likewise.
4036         * hppa-linux-nat.c: Likewise.
4037         * hppanbsd-tdep.c: Likewise.
4038         * hppaobsd-tdep.c: Likewise.
4039         * i386-cygwin-tdep.c: Likewise.
4040         * i386-dicos-tdep.c: Likewise.
4041         * i386-linux-tdep.c: Likewise.
4042         * i386-nto-tdep.c: Likewise.
4043         * i386-sol2-tdep.c: Likewise.
4044         * i386-tdep.c: Likewise.
4045         * i386bsd-tdep.c: Likewise.
4046         * i386gnu-nat.c: Likewise.
4047         * i386nbsd-tdep.c: Likewise.
4048         * i386obsd-tdep.c: Likewise.
4049         * i387-tdep.c: Likewise.
4050         * ia64-libunwind-tdep.c: Likewise.
4051         * ia64-linux-nat.c: Likewise.
4052         * inf-child.c: Likewise.
4053         * inf-ptrace.c: Likewise.
4054         * inf-ttrace.c: Likewise.
4055         * infcall.c: Likewise.
4056         * infcmd.c: Likewise.
4057         * inflow.c: Likewise.
4058         * infrun.c: Likewise.
4059         * interps.c: Likewise.
4060         * iq2000-tdep.c: Likewise.
4061         * irix5-nat.c: Likewise.
4062         * jv-exp.y: Likewise.
4063         * jv-lang.c: Likewise.
4064         * jv-typeprint.c: Likewise.
4065         * jv-valprint.c: Likewise.
4066         * language.c: Likewise.
4067         * linux-fork.c: Likewise.
4068         * linux-nat.c: Likewise.
4069         * lm32-tdep.c: Likewise.
4070         * m2-exp.y: Likewise.
4071         * m2-typeprint.c: Likewise.
4072         * m32c-tdep.c: Likewise.
4073         * m32r-linux-nat.c: Likewise.
4074         * m32r-linux-tdep.c: Likewise.
4075         * m32r-rom.c: Likewise.
4076         * m32r-tdep.c: Likewise.
4077         * m68hc11-tdep.c: Likewise.
4078         * m68k-tdep.c: Likewise.
4079         * m68kbsd-tdep.c: Likewise.
4080         * m68klinux-nat.c: Likewise.
4081         * m68klinux-tdep.c: Likewise.
4082         * m88k-tdep.c: Likewise.
4083         * machoread.c: Likewise.
4084         * macrocmd.c: Likewise.
4085         * main.c: Likewise.
4086         * mdebugread.c: Likewise.
4087         * mem-break.c: Likewise.
4088         * memattr.c: Likewise.
4089         * memory-map.c: Likewise.
4090         * mep-tdep.c: Likewise.
4091         * mi/mi-cmd-break.c: Likewise.
4092         * mi/mi-cmd-disas.c: Likewise.
4093         * mi/mi-cmd-env.c: Likewise.
4094         * mi/mi-cmd-stack.c: Likewise.
4095         * mi/mi-cmd-var.c: Likewise.
4096         * mi/mi-cmds.c: Likewise.
4097         * mi/mi-console.c: Likewise.
4098         * mi/mi-getopt.c: Likewise.
4099         * mi/mi-interp.c: Likewise.
4100         * mi/mi-main.c: Likewise.
4101         * mi/mi-parse.c: Likewise.
4102         * microblaze-rom.c: Likewise.
4103         * microblaze-tdep.c: Likewise.
4104         * mingw-hdep.c: Likewise.
4105         * minidebug.c: Likewise.
4106         * minsyms.c: Likewise.
4107         * mips-irix-tdep.c: Likewise.
4108         * mips-linux-tdep.c: Likewise.
4109         * mips-tdep.c: Likewise.
4110         * mips64obsd-tdep.c: Likewise.
4111         * mipsnbsd-tdep.c: Likewise.
4112         * mipsread.c: Likewise.
4113         * mn10300-linux-tdep.c: Likewise.
4114         * mn10300-tdep.c: Likewise.
4115         * monitor.c: Likewise.
4116         * moxie-tdep.c: Likewise.
4117         * mt-tdep.c: Likewise.
4118         * nat/linux-btrace.c: Likewise.
4119         * nat/linux-osdata.c: Likewise.
4120         * nat/linux-procfs.c: Likewise.
4121         * nat/linux-ptrace.c: Likewise.
4122         * nat/linux-waitpid.c: Likewise.
4123         * nbsd-tdep.c: Likewise.
4124         * nios2-linux-tdep.c: Likewise.
4125         * nto-procfs.c: Likewise.
4126         * nto-tdep.c: Likewise.
4127         * objc-lang.c: Likewise.
4128         * objfiles.c: Likewise.
4129         * opencl-lang.c: Likewise.
4130         * osabi.c: Likewise.
4131         * osdata.c: Likewise.
4132         * p-exp.y: Likewise.
4133         * p-lang.c: Likewise.
4134         * p-typeprint.c: Likewise.
4135         * parse.c: Likewise.
4136         * posix-hdep.c: Likewise.
4137         * ppc-linux-nat.c: Likewise.
4138         * ppc-sysv-tdep.c: Likewise.
4139         * ppcfbsd-tdep.c: Likewise.
4140         * ppcnbsd-tdep.c: Likewise.
4141         * ppcobsd-tdep.c: Likewise.
4142         * printcmd.c: Likewise.
4143         * procfs.c: Likewise.
4144         * prologue-value.c: Likewise.
4145         * python/py-auto-load.c: Likewise.
4146         * python/py-gdb-readline.c: Likewise.
4147         * ravenscar-thread.c: Likewise.
4148         * regcache.c: Likewise.
4149         * registry.c: Likewise.
4150         * remote-fileio.c: Likewise.
4151         * remote-m32r-sdi.c: Likewise.
4152         * remote-mips.c: Likewise.
4153         * remote-notif.c: Likewise.
4154         * remote-sim.c: Likewise.
4155         * remote.c: Likewise.
4156         * reverse.c: Likewise.
4157         * rs6000-aix-tdep.c: Likewise.
4158         * ser-base.c: Likewise.
4159         * ser-go32.c: Likewise.
4160         * ser-mingw.c: Likewise.
4161         * ser-pipe.c: Likewise.
4162         * ser-tcp.c: Likewise.
4163         * ser-unix.c: Likewise.
4164         * serial.c: Likewise.
4165         * sh-tdep.c: Likewise.
4166         * sh64-tdep.c: Likewise.
4167         * shnbsd-tdep.c: Likewise.
4168         * skip.c: Likewise.
4169         * sol-thread.c: Likewise.
4170         * solib-dsbt.c: Likewise.
4171         * solib-frv.c: Likewise.
4172         * solib-osf.c: Likewise.
4173         * solib-som.c: Likewise.
4174         * solib-spu.c: Likewise.
4175         * solib-target.c: Likewise.
4176         * solib.c: Likewise.
4177         * somread.c: Likewise.
4178         * source.c: Likewise.
4179         * sparc-nat.c: Likewise.
4180         * sparc-sol2-tdep.c: Likewise.
4181         * sparc-tdep.c: Likewise.
4182         * sparc64-tdep.c: Likewise.
4183         * sparc64fbsd-tdep.c: Likewise.
4184         * sparc64nbsd-tdep.c: Likewise.
4185         * sparcnbsd-tdep.c: Likewise.
4186         * spu-linux-nat.c: Likewise.
4187         * spu-multiarch.c: Likewise.
4188         * spu-tdep.c: Likewise.
4189         * stabsread.c: Likewise.
4190         * stack.c: Likewise.
4191         * std-regs.c: Likewise.
4192         * symfile.c: Likewise.
4193         * symmisc.c: Likewise.
4194         * symtab.c: Likewise.
4195         * target.c: Likewise.
4196         * thread.c: Likewise.
4197         * tilegx-linux-nat.c: Likewise.
4198         * tilegx-tdep.c: Likewise.
4199         * top.c: Likewise.
4200         * tracepoint.c: Likewise.
4201         * tui/tui-command.c: Likewise.
4202         * tui/tui-data.c: Likewise.
4203         * tui/tui-disasm.c: Likewise.
4204         * tui/tui-file.c: Likewise.
4205         * tui/tui-layout.c: Likewise.
4206         * tui/tui-out.c: Likewise.
4207         * tui/tui-regs.c: Likewise.
4208         * tui/tui-source.c: Likewise.
4209         * tui/tui-stack.c: Likewise.
4210         * tui/tui-win.c: Likewise.
4211         * tui/tui-windata.c: Likewise.
4212         * tui/tui-winsource.c: Likewise.
4213         * typeprint.c: Likewise.
4214         * ui-file.c: Likewise.
4215         * ui-out.c: Likewise.
4216         * user-regs.c: Likewise.
4217         * utils.c: Likewise.
4218         * v850-tdep.c: Likewise.
4219         * valarith.c: Likewise.
4220         * valops.c: Likewise.
4221         * valprint.c: Likewise.
4222         * value.c: Likewise.
4223         * varobj.c: Likewise.
4224         * vax-tdep.c: Likewise.
4225         * vaxnbsd-tdep.c: Likewise.
4226         * vaxobsd-tdep.c: Likewise.
4227         * windows-nat.c: Likewise.
4228         * xcoffread.c: Likewise.
4229         * xml-support.c: Likewise.
4230         * xstormy16-tdep.c: Likewise.
4231         * xtensa-linux-nat.c: Likewise.
4232
4233 2014-08-07  Gary Benson  <gbenson@redhat.com>
4234
4235         * common/common-defs.h: Include gdb_assert.h.
4236         * aarch64-tdep.c: Do not include gdb_assert.h.
4237         * addrmap.c: Likewise.
4238         * aix-thread.c: Likewise.
4239         * alpha-linux-tdep.c: Likewise.
4240         * alpha-mdebug-tdep.c: Likewise.
4241         * alphanbsd-tdep.c: Likewise.
4242         * amd64-nat.c: Likewise.
4243         * amd64-tdep.c: Likewise.
4244         * amd64bsd-nat.c: Likewise.
4245         * amd64fbsd-nat.c: Likewise.
4246         * amd64fbsd-tdep.c: Likewise.
4247         * amd64nbsd-nat.c: Likewise.
4248         * amd64nbsd-tdep.c: Likewise.
4249         * amd64obsd-nat.c: Likewise.
4250         * amd64obsd-tdep.c: Likewise.
4251         * arch-utils.c: Likewise.
4252         * arm-tdep.c: Likewise.
4253         * armbsd-tdep.c: Likewise.
4254         * auxv.c: Likewise.
4255         * bcache.c: Likewise.
4256         * bfin-tdep.c: Likewise.
4257         * blockframe.c: Likewise.
4258         * breakpoint.c: Likewise.
4259         * bsd-kvm.c: Likewise.
4260         * bsd-uthread.c: Likewise.
4261         * buildsym.c: Likewise.
4262         * c-exp.y: Likewise.
4263         * c-lang.c: Likewise.
4264         * charset.c: Likewise.
4265         * cleanups.c: Likewise.
4266         * cli-out.c: Likewise.
4267         * cli/cli-decode.c: Likewise.
4268         * cli/cli-dump.c: Likewise.
4269         * cli/cli-logging.c: Likewise.
4270         * cli/cli-script.c: Likewise.
4271         * cli/cli-utils.c: Likewise.
4272         * coffread.c: Likewise.
4273         * common/common-utils.c: Likewise.
4274         * common/queue.h: Likewise.
4275         * common/signals.c: Likewise.
4276         * common/vec.h: Likewise.
4277         * complaints.c: Likewise.
4278         * completer.c: Likewise.
4279         * corelow.c: Likewise.
4280         * cp-abi.c: Likewise.
4281         * cp-name-parser.y: Likewise.
4282         * cp-namespace.c: Likewise.
4283         * cp-support.c: Likewise.
4284         * cris-tdep.c: Likewise.
4285         * dbxread.c: Likewise.
4286         * dictionary.c: Likewise.
4287         * doublest.c: Likewise.
4288         * dsrec.c: Likewise.
4289         * dummy-frame.c: Likewise.
4290         * dwarf2-frame-tailcall.c: Likewise.
4291         * dwarf2-frame.c: Likewise.
4292         * dwarf2expr.c: Likewise.
4293         * dwarf2loc.c: Likewise.
4294         * dwarf2read.c: Likewise.
4295         * eval.c: Likewise.
4296         * event-loop.c: Likewise.
4297         * exceptions.c: Likewise.
4298         * expprint.c: Likewise.
4299         * f-valprint.c: Likewise.
4300         * fbsd-nat.c: Likewise.
4301         * findvar.c: Likewise.
4302         * frame-unwind.c: Likewise.
4303         * frame.c: Likewise.
4304         * frv-tdep.c: Likewise.
4305         * gcore.c: Likewise.
4306         * gdb-dlfcn.c: Likewise.
4307         * gdb_bfd.c: Likewise.
4308         * gdbarch.c: Likewise.
4309         * gdbarch.sh: Likewise.
4310         * gdbtypes.c: Likewise.
4311         * gnu-nat.c: Likewise.
4312         * gnu-v3-abi.c: Likewise.
4313         * go-lang.c: Likewise.
4314         * guile/scm-exception.c: Likewise.
4315         * guile/scm-gsmob.c: Likewise.
4316         * guile/scm-lazy-string.c: Likewise.
4317         * guile/scm-math.c: Likewise.
4318         * guile/scm-pretty-print.c: Likewise.
4319         * guile/scm-safe-call.c: Likewise.
4320         * guile/scm-utils.c: Likewise.
4321         * guile/scm-value.c: Likewise.
4322         * h8300-tdep.c: Likewise.
4323         * hppa-hpux-nat.c: Likewise.
4324         * hppa-tdep.c: Likewise.
4325         * hppanbsd-tdep.c: Likewise.
4326         * hppaobsd-tdep.c: Likewise.
4327         * i386-darwin-nat.c: Likewise.
4328         * i386-darwin-tdep.c: Likewise.
4329         * i386-nto-tdep.c: Likewise.
4330         * i386-tdep.c: Likewise.
4331         * i386bsd-nat.c: Likewise.
4332         * i386fbsd-tdep.c: Likewise.
4333         * i386gnu-nat.c: Likewise.
4334         * i386nbsd-tdep.c: Likewise.
4335         * i386obsd-tdep.c: Likewise.
4336         * i387-tdep.c: Likewise.
4337         * ia64-libunwind-tdep.c: Likewise.
4338         * ia64-tdep.c: Likewise.
4339         * inf-ptrace.c: Likewise.
4340         * inf-ttrace.c: Likewise.
4341         * infcall.c: Likewise.
4342         * infcmd.c: Likewise.
4343         * infrun.c: Likewise.
4344         * inline-frame.c: Likewise.
4345         * interps.c: Likewise.
4346         * jv-lang.c: Likewise.
4347         * jv-typeprint.c: Likewise.
4348         * linux-fork.c: Likewise.
4349         * linux-nat.c: Likewise.
4350         * linux-thread-db.c: Likewise.
4351         * m32c-tdep.c: Likewise.
4352         * m32r-linux-nat.c: Likewise.
4353         * m32r-tdep.c: Likewise.
4354         * m68k-tdep.c: Likewise.
4355         * m68kbsd-nat.c: Likewise.
4356         * m68kbsd-tdep.c: Likewise.
4357         * m88k-tdep.c: Likewise.
4358         * machoread.c: Likewise.
4359         * macroexp.c: Likewise.
4360         * macrotab.c: Likewise.
4361         * maint.c: Likewise.
4362         * mdebugread.c: Likewise.
4363         * memory-map.c: Likewise.
4364         * mep-tdep.c: Likewise.
4365         * mi/mi-common.c: Likewise.
4366         * microblaze-tdep.c: Likewise.
4367         * mingw-hdep.c: Likewise.
4368         * mips-linux-nat.c: Likewise.
4369         * mips-linux-tdep.c: Likewise.
4370         * mips-tdep.c: Likewise.
4371         * mips64obsd-tdep.c: Likewise.
4372         * mipsnbsd-tdep.c: Likewise.
4373         * mn10300-linux-tdep.c: Likewise.
4374         * mn10300-tdep.c: Likewise.
4375         * moxie-tdep.c: Likewise.
4376         * mt-tdep.c: Likewise.
4377         * nat/linux-btrace.c: Likewise.
4378         * nat/linux-osdata.c: Likewise.
4379         * nat/linux-ptrace.c: Likewise.
4380         * nat/mips-linux-watch.c: Likewise.
4381         * nios2-linux-tdep.c: Likewise.
4382         * nios2-tdep.c: Likewise.
4383         * objc-lang.c: Likewise.
4384         * objfiles.c: Likewise.
4385         * obsd-nat.c: Likewise.
4386         * opencl-lang.c: Likewise.
4387         * osabi.c: Likewise.
4388         * parse.c: Likewise.
4389         * ppc-linux-nat.c: Likewise.
4390         * ppc-sysv-tdep.c: Likewise.
4391         * ppcfbsd-nat.c: Likewise.
4392         * ppcfbsd-tdep.c: Likewise.
4393         * ppcnbsd-nat.c: Likewise.
4394         * ppcnbsd-tdep.c: Likewise.
4395         * ppcobsd-nat.c: Likewise.
4396         * ppcobsd-tdep.c: Likewise.
4397         * printcmd.c: Likewise.
4398         * procfs.c: Likewise.
4399         * prologue-value.c: Likewise.
4400         * psymtab.c: Likewise.
4401         * python/py-lazy-string.c: Likewise.
4402         * python/py-value.c: Likewise.
4403         * regcache.c: Likewise.
4404         * reggroups.c: Likewise.
4405         * registry.c: Likewise.
4406         * remote-sim.c: Likewise.
4407         * remote.c: Likewise.
4408         * rs6000-aix-tdep.c: Likewise.
4409         * rs6000-tdep.c: Likewise.
4410         * s390-linux-tdep.c: Likewise.
4411         * score-tdep.c: Likewise.
4412         * ser-base.c: Likewise.
4413         * ser-mingw.c: Likewise.
4414         * sh-tdep.c: Likewise.
4415         * sh64-tdep.c: Likewise.
4416         * solib-darwin.c: Likewise.
4417         * solib-spu.c: Likewise.
4418         * solib-svr4.c: Likewise.
4419         * source.c: Likewise.
4420         * sparc-nat.c: Likewise.
4421         * sparc-sol2-tdep.c: Likewise.
4422         * sparc-tdep.c: Likewise.
4423         * sparc64-sol2-tdep.c: Likewise.
4424         * sparc64-tdep.c: Likewise.
4425         * sparc64fbsd-tdep.c: Likewise.
4426         * sparc64nbsd-tdep.c: Likewise.
4427         * sparc64obsd-tdep.c: Likewise.
4428         * sparcnbsd-tdep.c: Likewise.
4429         * sparcobsd-tdep.c: Likewise.
4430         * spu-multiarch.c: Likewise.
4431         * spu-tdep.c: Likewise.
4432         * stabsread.c: Likewise.
4433         * stack.c: Likewise.
4434         * symfile.c: Likewise.
4435         * symtab.c: Likewise.
4436         * target-descriptions.c: Likewise.
4437         * target-memory.c: Likewise.
4438         * target.c: Likewise.
4439         * tic6x-linux-tdep.c: Likewise.
4440         * tic6x-tdep.c: Likewise.
4441         * tilegx-linux-nat.c: Likewise.
4442         * tilegx-tdep.c: Likewise.
4443         * top.c: Likewise.
4444         * tramp-frame.c: Likewise.
4445         * tui/tui-out.c: Likewise.
4446         * tui/tui-winsource.c: Likewise.
4447         * ui-out.c: Likewise.
4448         * user-regs.c: Likewise.
4449         * utils.c: Likewise.
4450         * v850-tdep.c: Likewise.
4451         * valops.c: Likewise.
4452         * value.c: Likewise.
4453         * varobj.c: Likewise.
4454         * vax-nat.c: Likewise.
4455         * xml-syscall.c: Likewise.
4456         * xml-tdesc.c: Likewise.
4457         * xstormy16-tdep.c: Likewise.
4458         * xtensa-linux-nat.c: Likewise.
4459         * xtensa-tdep.c: Likewise.
4460
4461 2014-08-07  Gary Benson  <gbenson@redhat.com>
4462
4463         * common/common-defs.h: Include common-utils.h.
4464         * defs.h: Do not include common-utils.h.
4465         * common/gdb_assert.h: Likewise.
4466         * darwin-nat.h: Likewise.
4467         * nat/linux-btrace.c: Likewise.
4468         * target/waitstatus.h: Likewise.
4469
4470 2014-08-07  Gary Benson  <gbenson@redhat.com>
4471
4472         * common/common-defs.h: Include ptid.h.
4473         * defs.h: Do not include ptid.h.
4474         * inferior.h: Likewise.
4475         * infrun.h: Likewise.
4476         * nat/linux-btrace.h: Likewise.
4477         * nat/linux-osdata.h: Likewise.
4478         * target/waitstatus.h: Likewise.
4479
4480 2014-08-07  Gary Benson  <gbenson@redhat.com>
4481
4482         * common/common-defs.h: Include gdb_locale.h.
4483         * defs.h: Do not include gdb_locale.h.
4484
4485 2014-08-07  Gary Benson  <gbenson@redhat.com>
4486
4487         * common/common-defs.h: Include gdb/signals.h.
4488         * defs.h: Do not include gdb/signals.h.
4489
4490 2014-08-07  Gary Benson  <gbenson@redhat.com>
4491
4492         * common/common-defs.h: Include pathmax.h.
4493         * defs.h: Do not include pathmax.h.
4494
4495 2014-08-07  Gary Benson  <gbenson@redhat.com>
4496
4497         * common/common-defs.h: Include libiberty.h.
4498         * defs.h: Do not include libiberty.h.
4499         * common/queue.h: Likewise.
4500         * cp-name-parser.y: Likewise.
4501         * mi/mi-cmd-catch.c: Likewise.
4502         * python/python.c: Likewise.
4503
4504 2014-08-07  Gary Benson  <gbenson@redhat.com>
4505
4506         * common/common-defs.h: Include ansidecl.h.
4507         * defs.h: Do not include ansidecl.h.
4508         * common/buffer.h: Likewise.
4509         * common/common-utils.h: Likewise.
4510
4511 2014-08-07  Gary Benson  <gbenson@redhat.com>
4512
4513         * common/common-defs.h: Include stddef.h.
4514         * defs.h: Do not include stddef.h.
4515         * common/common-utils.h: Likewise.
4516         * amd64fbsd-nat.c: Likewise.
4517         * bcache.c: Likewise.
4518         * charset.c: Likewise.
4519         * common/buffer.h: Likewise.
4520         * common/vec.h: Likewise.
4521         * i386bsd-nat.c: Likewise.
4522         * nat/linux-btrace.h: Likewise.
4523         * ppcfbsd-nat.c: Likewise.
4524         * ppcnbsd-tdep.h: Likewise.
4525         * ppcobsd-nat.c: Likewise.
4526         * ppcobsd-tdep.h: Likewise.
4527         * python/py-gdb-readline.c: Likewise.
4528
4529 2014-08-07  Gary Benson  <gbenson@redhat.com>
4530
4531         * common/common-defs.h: Include stdarg.h.
4532         * defs.h: Do not include stdarg.h.
4533         * ada-lang.c: Likewise.
4534         * common/common-utils.h: Likewise.
4535         * guile/scm-string.c: Likewise.
4536         * guile/scm-utils.c: Likewise.
4537         * m32c-tdep.c: Likewise.
4538
4539 2014-08-07  Gary Benson  <gbenson@redhat.com>
4540
4541         * common/common-defs.h: Include stdlib.h.
4542         * defs.h: Do not include stdlib.h.
4543         * addrmap.c: Likewise.
4544         * bcache.c: Likewise.
4545         * common/buffer.c: Likewise.
4546         * common/common-utils.c: Likewise.
4547         * cp-name-parser.y: Likewise.
4548         * go32-nat.c: Likewise.
4549         * mn10300-linux-tdep.c: Likewise.
4550         * nat/linux-osdata.c: Likewise.
4551         * tui/tui.c: Likewise.
4552         * windows-nat.c: Likewise.
4553
4554 2014-08-07  Gary Benson  <gbenson@redhat.com>
4555
4556         * common/common-defs.h: Include stdio.h.
4557         * defs.h: Do not include stdio.h.
4558         * ada-lang.c: Likewise.
4559         * common/buffer.c: Likewise.
4560         * common/common-utils.c: Likewise.
4561         * cp-name-parser.y: Likewise.
4562         * gnu-nat.c: Likewise.
4563         * go32-nat.c: Likewise.
4564         * i386gnu-nat.c: Likewise.
4565         * proc-api.c: Likewise.
4566         * proc-events.c: Likewise.
4567         * proc-flags.c: Likewise.
4568         * proc-why.c: Likewise.
4569         * python/python-internal.h: Likewise.
4570         * target-memory.c: Likewise.
4571         * tui/tui-io.c: Likewise.
4572         * tui/tui.c: Likewise.
4573
4574 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
4575
4576         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4577         (scan_dyntag_auxv): Same.
4578
4579 2014-08-06  Yao Qi  <yao@codesourcery.com>
4580
4581         * amd64-linux-nat.c: Remove duplicated include
4582         "x86-linux-nat.h".
4583         * i386-linux-nat.c: Likewise.
4584
4585 2014-08-06  Yao Qi  <yao@codesourcery.com>
4586
4587         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4588         operand" with "Special opcode" in comments.
4589
4590 2014-08-05  Gary Benson  <gbenson@redhat.com>
4591
4592         * interps.c (initialize_interps): Remove prototype.
4593         (interpreter_initialized): Remove static global.
4594         (interp_add): Do not call initialize_interps.
4595         (initialize_interps): Remove function.
4596
4597 2014-08-05  Gary Benson  <gbenson@redhat.com>
4598
4599         * utils.c (vwarning): Remove spurious va_end.
4600
4601 2014-08-05  Alan Modra  <amodra@gmail.com>
4602
4603         * charset.c (convert_between_encodings): Cast result of obstack_base.
4604         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4605         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4606         (read_unwind_info): Use size_t for some locals.
4607         * jit.c (finalize_symtab): Likewise.
4608         * utils.c (hashtab_obstack_allocate): Likewise.
4609         * symmisc.c (print_objfile_statistics): Update format strings.
4610
4611 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4612
4613         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4614         (Changes in GDB 7.8): ... here.
4615
4616 2014-08-04  Tom Tromey  <tromey@redhat.com>
4617
4618         * target.c (set_targetdebug): New function.
4619         (initialize_targets): Pass set_targetdebug when creating "set
4620         debug target".
4621
4622 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
4623
4624         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4625         if detecting a variable-sized field that is not the last field.
4626         Fix struct type length computation.
4627
4628 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
4629
4630         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4631         Add debug trace.
4632
4633 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
4634
4635         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4636         Remove "+ 8" offset in computation of CHAIN_VMA.
4637
4638 2014-07-31  Doug Evans  <dje@google.com>
4639
4640         * inflow.c (child_terminal_inferior): Add comment.
4641         (child_terminal_ours_for_output): Add comment.
4642         (child_terminal_ours): Add comment.
4643         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4644         (linux_nat_terminal_ours): Add comment.
4645
4646 2014-07-31  Gary Benson  <gbenson@redhat.com>
4647
4648         * common/btrace-common.h: Do not include defs.h or server.h.
4649         * nat/mips-linux-watch.h: Likewise.
4650         * gdb-dlfcn.h: Do not include defs.h.
4651         * tracefile.h: Likewise.
4652
4653 2014-07-30  Roland McGrath  <mcgrathr@google.com>
4654
4655         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4656
4657 2014-07-30  Tom Tromey  <tromey@redhat.com>
4658
4659         * bsd-kvm.c (bsd_kvm_open): Constify.
4660         * corelow.c (core_open): Constify.
4661         * ctf.c (ctf_open): Constify.
4662         * dbug-rom.c (dbug_open): Constify.
4663         * exec.c (exec_open): Constify.
4664         * m32r-rom.c (m32r_open, mon2000_open): Constify.
4665         * microblaze-rom.c (picobug_open): Constify.
4666         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4667         Constify.
4668         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4669         * record-btrace.c (record_btrace_open): Constify.
4670         * record-full.c (record_full_core_open_1, record_full_open_1)
4671         (record_full_open): Constify.
4672         * remote-m32r-sdi.c (m32r_open): Constify.
4673         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4674         (rockhopper_open, lsi_open): Constify.
4675         * remote-sim.c (gdbsim_open): Constify.
4676         * remote.c (remote_open, extended_remote_open, remote_open_1):
4677         Constify.
4678         * target.h (struct target_ops) <to_open>: Make "arg" const.
4679         * tracefile-tfile.c (tfile_open): Constify.
4680
4681 2014-07-30  Tom Tromey  <tromey@redhat.com>
4682
4683         * breakpoint.c (map_breakpoint_numbers): Update.
4684         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
4685         (get_number_const): New function.
4686         (get_number): Rewrite using get_number_const.
4687         (init_number_or_range): Make "string" const.
4688         (number_is_in_list): Make "list" const.
4689         * cli/cli-utils.h (get_number_const): Declare.
4690         (struct get_number_or_range_state) <string, end_ptr>: Now const.
4691         (init_number_or_range, number_is_in_list): Update.
4692         * printcmd.c (map_display_numbers): Update.
4693         * value.c (value_from_history_ref): Constify.
4694         * value.h (value_from_history_ref): Update.
4695
4696 2014-07-30  Tom Tromey  <tromey@redhat.com>
4697
4698         * corefile.c (hook_type, call_extra_exec_file_hooks)
4699         (specify_exec_file_hook): Constify.
4700         * exec.c (exec_file_attach): Make "filename" const.
4701         * gdbcore.h (deprecated_exec_file_display_hook)
4702         (specify_exec_file_hook, exec_file_attach): Constify.
4703         * main.c (captured_main): Use catch_command_errors_const.
4704
4705 2014-07-30  Tom Tromey  <tromey@redhat.com>
4706
4707         * target.c (open_target): New function.
4708         (add_target_with_completer, add_deprecated_target_alias): Use
4709         set_cmd_sfunc, set_cmd_context.
4710         (debug_to_open): Remove.
4711         (setup_target_debug): Update.
4712
4713 2014-07-30  Yao Qi  <yao@codesourcery.com>
4714
4715         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4716         comments.
4717         * parse.c (exp_iterate): Update comments.
4718
4719 2014-07-30  Gary Benson  <gbenson@redhat.com>
4720
4721         * common/common-defs.h: New file.
4722         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4723         * defs.h: Include common-defs.h.
4724         Do not include config.h or build-gnulib/config.h.
4725
4726 2014-07-30  Gary Benson  <gbenson@redhat.com>
4727
4728         * common/common-utils.h: Do not include config.h.
4729         * nat/linux-btrace.h: Likewise.
4730
4731 2014-07-30  Gary Benson  <gbenson@redhat.com>
4732
4733         * btrace.c: Include defs.h.
4734         * common/ptid.c: Include defs.h or server.h as appropriate.
4735         * nat/mips-linux-watch.c: Likewise.
4736
4737 2014-07-29  Tom Tromey  <tromey@redhat.com>
4738
4739         * target.c (target_is_pushed): Simplify.
4740
4741 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
4742
4743         GDB 7.8 released.
4744
4745 2014-07-29  Yao Qi  <yao@codesourcery.com>
4746
4747         PR gdb/17206
4748         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4749
4750 2014-07-28  Doug Evans  <xdje42@gmail.com>
4751
4752         PR guile/17203
4753         * guile/scm-param.c (pascm_parameter_defined_p): New function.
4754         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
4755         parameters.
4756
4757 2014-07-28  Will Newton  <will.newton@linaro.org>
4758
4759         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4760         (THUMB2_SET_R7_SIGRETURN2): Likewise.
4761         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4762         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4763         (THUMB2_EABI_SYSCALL): Likewise.
4764         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4765         struct tramp_frame.
4766         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4767         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4768
4769 2014-07-27  Doug Evans  <xdje42@gmail.com>
4770
4771         * guile/scm-param.c (pascm_print_param_smob): Fix output.
4772
4773 2014-07-27  Doug Evans  <xdje42@gmail.com>
4774
4775         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4776
4777 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
4778             Doug Evans  <xdje42@gmail.com>
4779
4780         PR guile/17146
4781         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4782         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4783         * configure.ac: Try to use guild to compile an scm file, if it fails
4784         then disable guile support.
4785         * configure: Regenerate.
4786         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4787         GUILE_FILE_LIST.
4788         (GUILE_COMPILED_FILES): New variable.
4789         (GUILE_FILES) Update.
4790         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4791         (stamp-guile): Compile scm files.
4792         * guile/guile.c (boot_guile_support): New function.
4793         (standard_throw_args_p): New function.
4794         (print_standard_throw_error, print_throw_error): New functions.
4795         (handle_boot_error): New function.
4796         (initialize_scheme_side): Rewrite to call boot_guile_support.
4797         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
4798         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4799
4800 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
4801             Doug Evans  <xdje42@gmail.com>
4802
4803         PR guile/17146
4804         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4805         * guile/lib/gdb/support.scm: New file.
4806         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4807         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4808         All uses updated.
4809         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4810         All uses updated.
4811         (%assert-type): Ditto, and renamed to assert-type.
4812         (%exception-print-style): Delete.
4813
4814 2014-07-26  Doug Evans  <xdje42@gmail.com>
4815
4816         PR build/17105
4817         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4818         * configure: Regenerate.
4819         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4820         PYTHON_FILES.
4821         (PYTHON_FILES): New variable.
4822         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4823         (GUILE_FILES): New variable.
4824         (stamp-python, install-python, uninstall-python): Handle empty
4825         file list.
4826         (stamp-guile, install-guile, uninstall-guile): Ditto.
4827
4828 2014-07-26  Doug Evans  <xdje42@gmail.com>
4829
4830         PR guile/17177
4831         * guile/lib/gdb.scm (pretty-printers): Export.
4832         (set-pretty-printers!): Export.
4833         * guile/lib/gdb/printing.scm (gdb module): Update.
4834         (prepend-pretty-printer!, append-pretty-printer!): Update.
4835         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4836         (pretty_printer_list_var): Delete.
4837         (pretty_printer_list): New static global.
4838         (gdbscm_pretty_printers): New function.
4839         (gdbscm_set_pretty_printers_x): New function.
4840         (ppscm_find_pretty_printer_from_gdb): Update.
4841         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4842         (gdbscm_initialize_pretty_printers): Update.
4843
4844 2014-07-26  Doug Evans  <xdje42@gmail.com>
4845
4846         PR 17185
4847         * configure.ac: Add check for header gc/gc.h.
4848         Add check for function setenv.
4849         * configure: Regenerate.
4850         * config.in: Regenerate.
4851         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4852
4853 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
4854
4855         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4856         variation in gdbarch matching.
4857
4858 2014-07-25  Tom Tromey  <tromey@redhat.com>
4859
4860         * exec.c (using_exec_ops): Remove.
4861         (exec_close_1): Update.  Remove extraneous block, reindent.
4862         (add_target_sections): Use target_is_pushed.
4863
4864 2014-07-25  Pedro Alves  <palves@redhat.com>
4865
4866         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4867         * monitor.c (monitor_create_inferior): Likewise.
4868         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4869         * remote-sim.c (gdbsim_create_inferior): Likewise.
4870         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4871         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4872         * windows-nat.c (do_initial_windows_stuff): Likewise.
4873
4874 2014-07-25  Pedro Alves  <palves@redhat.com>
4875
4876         * NEWS: Mention signal passing and "signal" command changes.
4877         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4878         comment.
4879         * breakpoint.c (until_break_command): Adjust clear_proceed_status
4880         call.
4881         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4882         * infcmd.c (proceed_thread_callback, continue_1, step_once)
4883         (jump_command): Adjust clear_proceed_status call.
4884         (signal_command): Warn if other thread that are resumed have
4885         signals that will be delivered.  Adjust clear_proceed_status call.
4886         (until_next_command, finish_command)
4887         (proceed_after_attach_callback, attach_command_post_wait)
4888         (attach_command): Adjust clear_proceed_status call.
4889         * infrun.c (proceed_after_vfork_done): Likewise.
4890         (proceed_after_attach_callback): Adjust comment.
4891         (clear_proceed_status_thread): Clear stop_signal if not in pass
4892         state.
4893         (clear_proceed_status_callback): Delete.
4894         (clear_proceed_status): New 'step' parameter.  Only clear the
4895         proceed status of threads the command being prepared is about to
4896         resume.
4897         (proceed): If passed in an explicit signal, override stop_signal
4898         with it.  Don't pass the last stop signal to the thread we're
4899         resuming.
4900         (init_wait_for_inferior): Adjust clear_proceed_status call.
4901         (switch_back_to_stepped_thread): Clear the signal if it should not
4902         be passed.
4903         * infrun.h (clear_proceed_status): New 'step' parameter.
4904         (user_visible_resume_ptid): Add comment.
4905         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4906         signal is in pass state.
4907         * remote.c (append_pending_thread_resumptions): Likewise.
4908         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4909
4910 2014-07-25  Tom Tromey  <tromey@redhat.com>
4911
4912         * target.h (target_stopped_data_address)
4913         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
4914         parentheses.
4915
4916 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
4917
4918         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4919         comments.
4920         (avr_pointer_to_address): Likewise.
4921
4922 2014-07-24  Tom Tromey  <tromey@redhat.com>
4923
4924         * monitor.c (compile_pattern): Update.
4925         * target.h (struct target_ops) <to_shortname, to_longname,
4926         to_doc>: Now const.
4927
4928 2014-07-24  Tom Tromey  <tromey@redhat.com>
4929
4930         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
4931         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
4932         (add_info_alias, add_com): Make "doc" const.
4933         (print_doc_line): Make "str" const.
4934         (delete_cmd): Update.
4935         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
4936         (print_doc_line): Update.
4937         * cli/cli-script.c (document_command): Update.
4938         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4939         (add_com, add_info, add_info_alias): Update.
4940         * guile/scm-cmd.c (cmdscm_destroyer): Update.
4941         * python/py-cmd.c (cmdpy_destroyer): Update.
4942
4943 2014-07-24  Tom Tromey  <tromey@redhat.com>
4944
4945         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
4946         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
4947         (help_cmd_list): Constify.
4948         (lookup_cmd): Update.
4949         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
4950         const.
4951         (help_cmd_list, apropos_cmd): Update.
4952         * cli/cli-script.c (show_user): Update.
4953         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
4954         * cli/cli-setshow.h (cmd_show_list): Update.
4955         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
4956         (cmd_show_list): Update.
4957         * guile/scm-cmd.c (cmdscm_destroyer): Update.
4958         * python/py-cmd.c (cmdpy_destroyer): Update.
4959
4960 2014-07-24  Tom Tromey  <tromey@redhat.com>
4961
4962         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
4963         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
4964         const.
4965         * command.h (deprecate_cmd): Update.
4966         * maint.c (maintenance_do_deprecate): Add casts.
4967
4968 2014-07-24  Tom Tromey  <tromey@redhat.com>
4969
4970         * cli/cli-decode.c (help_cmd): Make parameter "const".
4971         * cli/cli-decode.h (help_cmd): Update.
4972
4973 2014-07-24  Tom Tromey  <tromey@redhat.com>
4974
4975         * stack.c (up_silently_base, down_silently_base): Make argument
4976         const.
4977
4978 2014-07-24  Tom Tromey  <tromey@redhat.com>
4979
4980         * solib.c (solib_add): Make "pattern" const.
4981         * solib.h (solib_add): Update.
4982
4983 2014-07-24  Tom Tromey  <tromey@redhat.com>
4984
4985         * remote.c (remote_serial_open, print_packet, putpkt)
4986         (putpkt_binary): Constify.
4987         * remote.h (putpkt): Update.
4988
4989 2014-07-24  Tom Tromey  <tromey@redhat.com>
4990
4991         * monitor.c (monitor_open): Make "args" const.
4992         * monitor.h (monitor_open): Update.
4993
4994 2014-07-24  Tom Tromey  <tromey@redhat.com>
4995
4996         * maint.c (match_bfd_flags): Make "string" const.
4997         (print_bfd_section_info): Remove casts.
4998         (print_objfile_section_info): Make "string" const.
4999
5000 2014-07-24  Tom Tromey  <tromey@redhat.com>
5001
5002         * inf-child.c (inf_child_open_target): Make "arg" const.
5003         * inf-child.h (inf_child_open_target): Update.
5004
5005 2014-07-24  Tom Tromey  <tromey@redhat.com>
5006
5007         * environ.c (unset_in_environ): Make "var" const.
5008         * environ.h (unset_in_environ): Update.
5009
5010 2014-07-24  Tom Tromey  <tromey@redhat.com>
5011
5012         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5013         Make "cmd" const.
5014         (scan_filename_with_cleanup): Likewise.
5015         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5016         Make arguments const.
5017         (restore_command): Update.
5018
5019 2014-07-24  Pedro Alves  <palves@redhat.com>
5020
5021         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5022
5023 2014-07-24  Tom Tromey  <tromey@redhat.com>
5024             Gary Benson  <gbenson@redhat.com>
5025
5026         * nat/linux-ptrace.c (additional_flags): New global.
5027         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5028         additional_flags; don't check GDBSERVER.
5029         (linux_ptrace_set_additional_flags): New function.
5030         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5031         Declare.
5032         * linux-nat.c (_initialize_linux_nat): Call
5033         linux_ptrace_set_additional_flags.
5034
5035 2014-07-24  Tom Tromey  <tromey@redhat.com>
5036
5037         * make-target-delegates (munge_type, write_debugmethod): New
5038         functions.
5039         (debug_names): New global.
5040         ($TARGET_DEBUG_PRINTER): New global.
5041         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5042         name.
5043         Write debug methods.  Generate init_debug_target.
5044         * target-debug.h: New file.
5045         * target-delegates.c: Rebuild.
5046         * target.c: Include target-debug.h.
5047         (debug_target): Hoist definition.
5048         (target_kill, target_get_section_table, target_memory_map)
5049         (target_flash_erase, target_flash_done, target_detach)
5050         (target_disconnect, target_wait, target_resume)
5051         (target_pass_signals, target_program_signals, target_follow_fork)
5052         (target_mourn_inferior, target_search_memory)
5053         (target_thread_address_space, target_close)
5054         (target_find_new_threads, target_core_of_thread)
5055         (target_verify_memory, target_insert_mask_watchpoint)
5056         (target_remove_mask_watchpoint): Remove targetdebug code.
5057         (debug_to_post_attach, debug_to_prepare_to_store)
5058         (debug_to_files_info, debug_to_insert_breakpoint)
5059         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5060         (debug_to_region_ok_for_hw_watchpoint)
5061         (debug_to_can_accel_watchpoint_condition)
5062         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5063         (debug_to_watchpoint_addr_within_range)
5064         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5065         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5066         (debug_to_terminal_init, debug_to_terminal_inferior)
5067         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5068         (debug_to_terminal_save_ours, debug_to_terminal_info)
5069         (debug_to_load, debug_to_post_startup_inferior)
5070         (debug_to_insert_fork_catchpoint)
5071         (debug_to_remove_fork_catchpoint)
5072         (debug_to_insert_vfork_catchpoint)
5073         (debug_to_remove_vfork_catchpoint)
5074         (debug_to_insert_exec_catchpoint)
5075         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5076         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5077         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5078         (setup_target_debug): Call init_debug_target.
5079         * target.h (TARGET_DEBUG_PRINTER): New macro.
5080         (struct target_ops) <to_resume, to_wait, to_pass_signals,
5081         to_program_signals>: Use TARGET_DEBUG_PRINTER.
5082
5083 2014-07-24  Gary Benson  <gbenson@redhat.com>
5084
5085         * exceptions.h (throw_vfatal): Renamed to...
5086         (throw_vquit): New declaration.
5087         (throw_quit): Likewise.
5088         * exceptions.c (throw_vfatal): Renamed to...
5089         (throw_vquit): New function.
5090         (throw_quit): Likewise.
5091         (throw_error): Call throw_verror rather than throw_it.
5092         * utils.h (vfatal): Removed.
5093         (fatal): Likewise.
5094         * utils.c (vfatal): Removed.
5095         (fatal): Likewise.
5096         (internal_verror): Replaced call to fatal with call to throw_quit.
5097         (quit): Replaced calls to fatal with calls to throw_quit.
5098
5099 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
5100
5101         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5102         target_read_code.
5103
5104 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
5105
5106         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5107         less than zero in conditional expression.
5108
5109 2014-07-23  Tom Tromey  <tromey@redhat.com>
5110
5111         * make-target-delegates ($ARGS_PART): Match trailing close paren.
5112         ($INTRO_PART): Don't match whitespace.
5113         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
5114         argument matching.
5115         ($METHOD): Add $METHOD_TRAILER.
5116         (trim): Rewrite.
5117         (scan_target_h): New sub.
5118         Change main loop not to collect state.
5119         * target-delegates.c: Rebuild.
5120
5121 2014-07-23  Gary Benson  <gbenson@redhat.com>
5122
5123         * cp-support.c (gdb_demangle): Fix build on systems without
5124         sigaltstack.
5125
5126 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
5127
5128         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5129         for reference entry value target data value.
5130
5131 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
5132
5133         * stack.c (read_frame_arg): Verify value_optimized_out before calling
5134         value_available_contents_eq.
5135
5136 2014-07-22  Pedro Alves  <palves@redhat.com>
5137
5138         * value.c (allocate_optimized_out_value): Don't mark value as
5139         non-lazy.
5140
5141 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
5142
5143         * MAINTAINERS (Write After Approval): Update my email address.
5144
5145 2014-07-20  Doug Evans  <dje@google.com>
5146
5147         PR server/17147
5148         * remote.c (putpkt_binary): Add text to error message.
5149
5150 2014-07-20  Yao Qi  <yao@codesourcery.com>
5151
5152         * eval.c: Remove "Chill" from comments.
5153         * gdbtypes.h: Likewise.
5154         * symtab.h: Likewise.
5155
5156 2014-07-20  Yao Qi  <yao@codesourcery.com>
5157
5158         * std-operator.def: Update comments to TERNOP_SLICE.
5159
5160 2014-07-20  Yao Qi  <yao@codesourcery.com>
5161
5162         * std-operator.def: Remove BINOP_RANGE.
5163         * breakpoint.c (watchpoint_exp_is_const): Update.
5164         * expprint.c (dump_subexp_body_standard): Likewise.
5165         * eval.c (init_array_element): Remove dead code.
5166         (evaluate_subexp_standard): Likewise.
5167
5168 2014-07-20  Yao Qi  <yao@codesourcery.com>
5169
5170         * std-operator.def: Remove BINOP_IN.
5171         * breakpoint.c (watchpoint_exp_is_const): Update.
5172         * eval.c (evaluate_subexp_standard): Likewise.
5173         * expprint.c (dump_subexp_body_standard): Likewise.
5174
5175 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
5176
5177         * microblaze-tdep.c (microblaze_register_names): Add
5178         the rshr and rslr register names.
5179         (microblaze_gdbarch_init): Use of tdesc_has_registers.
5180         Use of tdesc_find_feature. Use of tdesc_data_alloc.
5181         Use of tdesc_numbered_register. Use of
5182         microblaze_register_g_packet_guesses. Use of
5183         tdesc_use_registers. Use of set_gdbarch_register_type.
5184         (microblaze_register_g_packet_guesses): New.
5185         * microblaze-tdep.h (microblaze_reg_num): Add
5186         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5187         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5188         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5189         * features/microblaze-core.xml: New file.
5190         * features/microblaze-stack-protect.xml: New file.
5191         * features/microblaze-with-stack-protect.c: New file.
5192         * features/microblaze-with-stack-protect.xml: New file.
5193         * features/microblaze.xml: New file.
5194         * features/microblaze.c: New file.
5195         * features/Makefile (microblaze-with-stack-protect): Add
5196         microblaze-with-stack-protect microblaze and microblaze-expedite.
5197         * regformats/microblaze-with-stack-protect.dat: New file.
5198         * regformats/microblaze.dat: New file.
5199         * doc/gdb.texinfo (MicroBlaze Features): Added.
5200
5201 2014-07-18  Tom Tromey  <tromey@redhat.com>
5202
5203         * exec.c (exec_ops): Now static.
5204         * exec.h (exec_ops): Don't declare.
5205
5206 2014-07-18  Tom Tromey  <tromey@redhat.com>
5207
5208         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5209         to find_target_beneath.
5210         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5211         find_target_beneath.
5212         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5213
5214 2014-07-18  Tom Tromey  <tromey@redhat.com>
5215
5216         PR gdb/17130:
5217         * utils.c (quit): Use target_supports_terminal_ours.
5218         * target.h (target_supports_terminal_ours): Declare.
5219         * target.c (target_supports_delete_record): Don't check
5220         to_delete_record against NULL.
5221         (target_supports_terminal_ours): New function.
5222
5223 2014-07-18  Tom Tromey  <tromey@redhat.com>
5224
5225         PR gdb/17130:
5226         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5227         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5228         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5229         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5230         * windows-nat.c (windows_xfer_partial): Always delegate.
5231         * record-btrace.c (record_btrace_xfer_partial): Simplify
5232         delegation.
5233         (record_btrace_fetch_registers, record_btrace_store_registers)
5234         (record_btrace_prepare_to_store, record_btrace_resume)
5235         (record_btrace_wait, record_btrace_find_new_threads)
5236         (record_btrace_thread_alive): Likewise.
5237         * procfs.c (procfs_xfer_partial): Always delegate.
5238         * corelow.c (core_xfer_partial): Always delegate.
5239         * sol-thread.c (sol_find_new_threads): Simplify delegation.
5240
5241 2014-07-18  Tom Tromey  <tromey@redhat.com>
5242
5243         * exec.c (exec_make_note_section): Move earlier.
5244
5245 2014-07-17  Doug Evans  <dje@google.com>
5246
5247         PR gdb/17170
5248         * maint.c (count_symtabs_and_blocks): Handle NULL
5249         current_program_space.
5250         (report_command_stats): Check global enabled flag in addition to
5251         recorded enabled flag.
5252         (make_command_stats_cleanup): Handle msg_type == 0, startup.
5253
5254 2014-07-16  Pedro Alves  <palves@redhat.com>
5255
5256         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5257
5258 2014-07-16  Tom Tromey  <tromey@redhat.com>
5259
5260         * target.h (struct target_ops) <to_delete_record>: Reformat
5261         comment.
5262
5263 2014-07-16  Tom Tromey  <tromey@redhat.com>
5264
5265         * target-delegates.c: Rebuild.
5266
5267 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
5268
5269         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5270         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5271         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5272         (avr_pointer_to_address): Likewise.
5273         (avr_address_class_type_flags): New function.
5274         (avr_address_class_type_flags_to_name): Likewise.
5275         (avr_address_class_name_to_type_flags): Likewise.
5276         (avr_gdbarch_init): Set address_class_type_flags,
5277         address_class_type_flags_to_name and
5278         address_class_name_to_type_flags.
5279
5280 2014-07-15  Pedro Alves  <palves@redhat.com>
5281
5282         * linux-nat.c (kill_callback): Save errno and work with saved
5283         copy.
5284
5285 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
5286
5287         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5288
5289 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
5290
5291         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5292         breakpoint support correctly.
5293
5294 2014-07-14  Pedro Alves  <palves@redhat.com>
5295
5296         * utils.c (prompt_for_continue): Call target_terminal_ours.
5297
5298 2014-07-14  Pedro Alves  <palves@redhat.com>
5299
5300         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5301         catch_errors.  Don't re-enable stdin or notify observers where,
5302         and rethrow error.
5303         (fetch_inferior_event_wrapper): Delete.
5304
5305 2014-07-14  Pedro Alves  <palves@redhat.com>
5306
5307         PR gdb/17072
5308         * top.c: Include "inf-loop.h".
5309         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5310         field.
5311         (gdb_readline_wrapper_cleanup): Make the target async again, if it
5312         was async before.
5313         (gdb_readline_wrapper): Store whether the target is async, and
5314         make it sync.
5315
5316 2014-07-14  Pedro Alves  <palves@redhat.com>
5317
5318         PR gdb/17072
5319         * top.c (gdb_readline_wrapper_line): Tweak comment.
5320         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5321         the input handler callback.
5322
5323 2014-07-14  Pedro Alves  <palves@redhat.com>
5324
5325         PR gdb/17072
5326         * main.c: Include event-top.h.
5327         (handle_command_errors): New function.
5328         (catch_command_errors, catch_command_errors_const): Use it.
5329
5330 2014-07-14  Pedro Alves  <palves@redhat.com>
5331
5332         * exceptions.c (catch_command_errors, catch_command_errors_const):
5333         Moved to main.c.
5334         * exceptions.h (catch_command_errors_ftype)
5335         (catch_command_errors_const_ftype): Moved to main.c.
5336         (catch_command_errors, catch_command_errors_const): Delete
5337         declarations.
5338         * main.c (catch_command_errors_ftype)
5339         (catch_command_errors_const_ftype): Moved here from exceptions.h.
5340         (catch_command_errors, catch_command_errors_const)): Moved here
5341         from exceptions.c and make static.
5342
5343 2014-07-14  Pedro Alves  <palves@redhat.com>
5344
5345         * exceptions.c (print_any_exception): Delete.
5346         (catch_exceptions_with_msg): Use exception_print instead of
5347         print_any_exception.
5348         (catch_errors): Use exception_fprintf instead of
5349         print_any_exception.
5350         (catch_command_errors, catch_command_errors_const): Use
5351         exception_print instead of print_any_exception.
5352
5353 2014-07-14  Pedro Alves  <palves@redhat.com>
5354
5355         * infcall.c (run_inferior_call): Set 'sync_execution' while
5356         running the inferior call.
5357
5358 2014-07-14  Pedro Alves  <palves@redhat.com>
5359
5360         * value.c (value_contents_equal): Delete function.
5361         * value.h (value_contents_equal): Delete declaration.
5362
5363 2014-07-14  Tom Tromey  <tromey@redhat.com>
5364
5365         PR exp/17106:
5366         * gdbtypes.c (is_dynamic_type_internal): New function, from
5367         is_dynamic_type.
5368         (is_dynamic_type): Rewrite.
5369         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5370         (resolve_dynamic_struct): Likewise.
5371         (resolve_dynamic_type_internal): New function, from
5372         resolve_dynamic_type.
5373         (resolve_dynamic_type): Rewrite.
5374
5375 2014-07-14  Tom Tromey  <tromey@redhat.com>
5376
5377         * target.c (target_require_runnable): Also check record_stratum.
5378         Update comment.
5379
5380 2014-07-11  Yao Qi  <yao@codesourcery.com>
5381
5382         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5383         thumb_instruction_restores_sp return true.
5384
5385 2014-07-11  Yao Qi  <yao@codesourcery.com>
5386
5387         * arm-tdep.c (thumb_instruction_restores_sp): New function.
5388         (thumb_in_function_epilogue_p): Call
5389         thumb_instruction_restores_sp.
5390
5391 2014-07-11  Yao Qi  <yao@codesourcery.com>
5392
5393         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5394         'add sp, #imm'.
5395         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5396
5397 2014-07-11  Gary Benson  <gbenson@redhat.com>
5398
5399         * amd64-linux-nat.c (gdbcore.h): Remove include.
5400         (regset.h): Likewise.
5401         (nat/linux-btrace.h): Likewise.
5402         (btrace.h): Likewise.
5403         (gdb_assert.h): Likewise.
5404         (string.h): Likewise.
5405         (sys/uio.h): Likewise.
5406         (sys/debugreg.h): Likewise.
5407         (sys/syscall.h): Likewise.
5408         (sys/procfs.h): Likewise.
5409         (sys/user.h): Likewise.
5410         (asm/ptrace.h): Likewise.
5411         (i386-nat.h): Likewise.
5412         * i386-linux-nat.c (i386-nat.h): Likewise.
5413         (regset.h): Likewise.
5414         (target.h): Likewise.
5415         (linux-nat.h): Likewise.
5416         (nat/linux-btrace.h): Likewise.
5417         (btrace.h): Likewise.
5418         (gdb_assert.h): Likewise.
5419         (string.h): Likewise.
5420         (sys/uio.h): Likewise.
5421         (sys/user.h): Likewise.
5422         (sys/procfs.h): Likewise.
5423         (sys/reg.h): Likewise.
5424         (sys/debugreg.h): Likewise.
5425         (ORIG_EAX): Remove definition.
5426
5427 2014-07-11  Gary Benson  <gbenson@redhat.com>
5428
5429         * i386-linux-nat.h: New file.
5430         * x86-linux-nat.h: Likewise.
5431         * x86-linux-nat.c: Likewise.
5432         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5433         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5434         * config/i386/linux64.mh (NATDEPFILES): Likewise.
5435         * amd64-linux-nat.c (x86-linux-nat.h): New include.
5436         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5437         (PTRACE_SETREGSET): Likewise.
5438         (arch_lwp_info): Now in x86-linux-nat.c.
5439         (have_ptrace_getregset): Now in x86-linux-nat.h.
5440         (x86_linux_dr_get): Now in x86-linux-nat.c.
5441         (x86_linux_dr_set): Likewise.
5442         (x86_linux_dr_get_addr): Likewise.
5443         (x86_linux_dr_get_control): Likewise.
5444         (x86_linux_dr_get_status): Likewise.
5445         (update_debug_registers_callback): Likewise.
5446         (x86_linux_dr_set_control): Likewise.
5447         (x86_linux_dr_set_addr): Likewise.
5448         (x86_linux_prepare_to_resume): Likewise.
5449         (x86_linux_new_thread): Likewise.
5450         (x86_linux_new_fork): Likewise.
5451         (x86_linux_get_thread_area): Likewise.
5452         (super_post_startup_inferior): Likewise.
5453         (x86_linux_child_post_startup_inferior): Likewise.
5454         (AMD64_LINUX_USER64_CS): Likewise.
5455         (AMD64_LINUX_X32_DS): Likewise.
5456         (x86_linux_read_description): Likewise.
5457         (x86_linux_enable_btrace): Likewise.
5458         (x86_linux_disable_btrace): Likewise.
5459         (x86_linux_teardown_btrace): Likewise.
5460         (x86_linux_read_btrace): Likewise.
5461         (x86_linux_create_target): Likewise.
5462         (x86_linux_add_target): Likewise.
5463         * i386-linux-nat.c (x86-linux-nat.h): New include.
5464         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5465         (PTRACE_SETREGSET): Likewise.
5466         (arch_lwp_info): Now in x86-linux-nat.c.
5467         (have_ptrace_getregset): Now in x86-linux-nat.h.
5468         (x86_linux_dr_get): Now in x86-linux-nat.c.
5469         (x86_linux_dr_set): Likewise.
5470         (x86_linux_dr_get_addr): Likewise.
5471         (x86_linux_dr_get_control): Likewise.
5472         (x86_linux_dr_get_status): Likewise.
5473         (update_debug_registers_callback): Likewise.
5474         (x86_linux_dr_set_control): Likewise.
5475         (x86_linux_dr_set_addr): Likewise.
5476         (x86_linux_prepare_to_resume): Likewise.
5477         (x86_linux_new_thread): Likewise.
5478         (x86_linux_new_fork): Likewise.
5479         (x86_linux_get_thread_area): Likewise.
5480         (super_post_startup_inferior): Likewise.
5481         (x86_linux_child_post_startup_inferior): Likewise.
5482         (AMD64_LINUX_USER64_CS): Likewise.
5483         (AMD64_LINUX_X32_DS): Likewise.
5484         (x86_linux_read_description): Likewise.
5485         (x86_linux_enable_btrace): Likewise.
5486         (x86_linux_disable_btrace): Likewise.
5487         (x86_linux_teardown_btrace): Likewise.
5488         (x86_linux_read_btrace): Likewise.
5489         (x86_linux_create_target): Likewise.
5490         (x86_linux_add_target): Likewise.
5491
5492 2014-07-11  Gary Benson  <gbenson@redhat.com>
5493
5494         * amd64-linux-nat.c: Comment and whitespace changes.
5495         * i386-linux-nat.c: Comment and whitespace changes.
5496
5497 2014-07-11  Gary Benson  <gbenson@redhat.com>
5498
5499         * amd64-linux-nat.c (x86_linux_create_target): New function.
5500         (x86_linux_add_target): Likewise.
5501         (_initialize_amd64_linux_nat): Delegate to the above new functions.
5502         * i386-linux-nat.c (x86_linux_create_target): New function.
5503         (x86_linux_add_target): Likewise.
5504         (_initialize_i386_linux_nat): Delegate to the above new functions.
5505
5506 2014-07-11  Gary Benson  <gbenson@redhat.com>
5507
5508         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5509         (ps_get_thread_area): Delegate to the above in 32-bit mode.
5510         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5511         (ps_get_thread_area): Delegate to the above.
5512
5513 2014-07-11  Gary Benson  <gbenson@redhat.com>
5514
5515         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5516         x86_linux_read_description.  All uses updated.  amd64-specific
5517         code conditionalized.  Conditionalized i386-specific code added.
5518         Redundant cast removed.
5519         * i386-linux-nat.c (i386_linux_read_description): Renamed to
5520         x86_linux_read_description.  All uses updated.  i386-specific
5521         code conditionalized.  Conditionalized amd64-specific code added.
5522         One sizeof replaced with the actual type it is describing.
5523
5524 2014-07-11  Gary Benson  <gbenson@redhat.com>
5525
5526         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5527         x86_linux_dr_get.  All uses updated.
5528         (amd64_linux_dr_set): Renamed to
5529         x86_linux_dr_set.  All uses updated.
5530         (amd64_linux_dr_get_addr): Renamed to
5531         x86_linux_dr_get_addr.  All uses updated.
5532         (amd64_linux_dr_get_control): Renamed to
5533         x86_linux_dr_get_control.  All uses updated.
5534         (amd64_linux_dr_get_status): Renamed to
5535         x86_linux_dr_get_status.  All uses updated.
5536         (amd64_linux_dr_set_control): Renamed to
5537         x86_linux_dr_set_control.  All uses updated.
5538         (amd64_linux_dr_set_addr): Renamed to
5539         x86_linux_dr_set_addr.  All uses updated.
5540         (amd64_linux_prepare_to_resume): Renamed to
5541         x86_linux_prepare_to_resume.  All uses updated.
5542         (amd64_linux_new_thread): Renamed to
5543         x86_linux_new_thread.  All uses updated.
5544         (amd64_linux_new_fork): Renamed to
5545         x86_linux_new_fork.  All uses updated.
5546         (amd64_linux_child_post_startup_inferior): Renamed to
5547         x86_linux_child_post_startup_inferior.  All uses updated.
5548         (amd64_linux_enable_btrace): Renamed to
5549         x86_linux_enable_btrace.  All uses updated.
5550         (amd64_linux_disable_btrace): Renamed to
5551         x86_linux_disable_btrace.  All uses updated.
5552         (amd64_linux_teardown_btrace): Renamed to
5553         x86_linux_teardown_btrace.  All uses updated.
5554         (amd64_linux_read_btrace): Renamed to
5555         x86_linux_read_btrace.  All uses updated.
5556         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5557         x86_linux_dr_get.  All uses updated.
5558         (i386_linux_dr_set): Renamed to
5559         x86_linux_dr_set.  All uses updated.
5560         (i386_linux_dr_get_addr): Renamed to
5561         x86_linux_dr_get_addr.  All uses updated.
5562         (i386_linux_dr_get_control): Renamed to
5563         x86_linux_dr_get_control.  All uses updated.
5564         (i386_linux_dr_get_status): Renamed to
5565         x86_linux_dr_get_status.  All uses updated.
5566         (i386_linux_dr_set_control): Renamed to
5567         x86_linux_dr_set_control.  All uses updated.
5568         (i386_linux_dr_set_addr): Renamed to
5569         x86_linux_dr_set_addr.  All uses updated.
5570         (i386_linux_prepare_to_resume): Renamed to
5571         x86_linux_prepare_to_resume.  All uses updated.
5572         (i386_linux_new_thread): Renamed to
5573         x86_linux_new_thread.  All uses updated.
5574         (i386_linux_new_fork): Renamed to
5575         x86_linux_new_fork.  All uses updated.
5576         (i386_linux_child_post_startup_inferior): Renamed to
5577         x86_linux_child_post_startup_inferior.  All uses updated.
5578         (i386_linux_enable_btrace): Renamed to
5579         x86_linux_enable_btrace.  All uses updated.
5580         (i386_linux_disable_btrace): Renamed to
5581         x86_linux_disable_btrace.  All uses updated.
5582         (i386_linux_teardown_btrace): Renamed to
5583         x86_linux_teardown_btrace.  All uses updated.
5584         (i386_linux_read_btrace): Renamed to
5585         x86_linux_read_btrace.  All uses updated.
5586
5587 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
5588
5589         * remote.c (extended_remote_post_attach): New function.
5590         (init_extended_remote_ops): Install it as to_post_attach method.
5591
5592 2014-07-09  Pedro Alves  <palves@redhat.com>
5593
5594         * infcmd.c (attach_command_post_wait): Don't call
5595         target_terminal_inferior here.
5596         (attach_command): Call it here instead.
5597
5598 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
5599
5600         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5601         field.
5602         * c-varobj.c (c_is_path_expr_parent): New function, moved core
5603         from varobj.c, with additional checks.
5604         (c_varobj_ops): Fill in is_path_expr_parent field.
5605         (cplus_varobj_ops): Fill in is_path_expr_parent field.
5606         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5607         field.
5608         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5609         ops method.
5610         (varobj_default_is_path_expr_parent): New function.
5611         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5612         (varobj_default_is_path_expr_parent): Declare new function.
5613
5614 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
5615
5616         * infcmd.c (finish_backward): Turn internal error into normal error.
5617
5618 2014-07-07  Pedro Alves  <palves@redhat.com>
5619
5620         PR gdb/17096
5621         * remote.c (async_handle_remote_sigint)
5622         (async_handle_remote_sigint_twice): Call
5623         gdb_call_async_signal_handler instead of
5624         mark_async_signal_handler.
5625
5626 2014-07-07  Tom Tromey  <tromey@redhat.com>
5627
5628         * target-delegates.c: Rebuild.
5629         * target.c (target_info_record): Remove.
5630         * record.c (info_record_command): Unconditionally call
5631         to_info_record.
5632         * target.h (struct target_ops) <to_info_record>: Use
5633         TARGET_DEFAULT_IGNORE.
5634         (target_info_record): Remove.
5635
5636 2014-07-07  Tom Tromey  <tromey@redhat.com>
5637
5638         * target.h (struct target_ops) <to_get_thread_local_address>: Use
5639         TARGET_DEFAULT_NORETURN.
5640         * target.c (generic_tls_error): New function.
5641         (target_translate_tls_address): Don't search target stack.
5642         * target-delegates.c: Rebuild.
5643         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5644         stack.
5645         * linux-thread-db.c (thread_db_get_thread_local_address):
5646         Unconditionally call beneath target.
5647
5648 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
5649
5650         * cli/cli-logging.c (pop_output_files): Assign targerr to
5651         gdb_stdtargerr.
5652
5653 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
5654
5655         * MAINTAINERS (Write After Approval): Update my email address.
5656
5657 2014-07-02  Gary Benson  <gbenson@redhat.com>
5658
5659         * proc-service.c (ps_xfer_memory): Update comment.
5660         (ps_pstop): Remove unused function.
5661         (ps_pcontinue): Likewise.
5662         (ps_lstop): Likewise.
5663         (ps_lcontinue): Likewise.
5664         (ps_lgetxregsize): Likewise.
5665         (ps_lgetxregs): Likewise.
5666         (ps_lsetxregs): Likewise.
5667         (ps_plog): Likewise.
5668         (ps_ptread): Likewise.
5669         (ps_ptwrite): Likewise.
5670
5671 2014-07-01  Mark Wielaard  <mjw@redhat.com>
5672
5673         * dwarf2read.c (add_array_cv_type): New function.
5674         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5675         (read_tag_volatile_type): Likewise.
5676
5677 2014-07-01  Tom Tromey  <tromey@redhat.com>
5678
5679         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5680         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5681         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5682         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5683         * command.h (cmd_cfunc_ftype): Move earlier.
5684         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5685         (add_com, add_info): Use cmd_cfunc_ftype.
5686
5687 2014-06-30  Tom Tromey  <tromey@redhat.com>
5688
5689         * symtab.c (operator_chars): Make parameters and return type
5690         const.
5691         (file_matches): Make "files" const.
5692         (struct search_symbols_data) <files>: Now const.
5693         (search_symbols): Make "regexp" and "files" parameters const.
5694         Update.
5695         (symtab_symbol_info): Remove cast.
5696         (rbreak_command): Update.
5697         * symtab.h (search_symbols): Update.
5698
5699 2014-06-27  Yao Qi  <yao@codesourcery.com>
5700
5701         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5702         Change parameter type to 'struct thread_info *'.  Caller
5703         updated.
5704         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5705         Update declaration.
5706         * dummy-frame.c (struct dummy_frame_id): New.
5707         (dummy_frame_id_eq): New function.
5708         (struct dummy_frame) <id>: Change its type to 'struct
5709         dummy_frame_id'.
5710         (dummy_frame_push): Add parameter ptid and save it in
5711         dummy_frame_id.
5712         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5713         inferior_ptid.
5714         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5715         to inferior_ptid.
5716         (lookup_dummy_frame): Change parameter type to 'struct
5717         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
5718         instead of frame_id_eq.
5719         (dummy_frame_pop): Add parameter ptid.  Callers updated.
5720         Update comments.  Compose dummy_frame_id and pass it to
5721         lookup_dummy_frame.
5722         (dummy_frame_discard): Add parameter ptid.
5723         (dummy_frame_sniffer): Compose dummy_frame_id and call
5724         dummy_frame_id_eq instead of frame_id_eq.
5725         (fprint_dummy_frames): Print ptid.
5726         * dummy-frame.h: Remove comments.
5727         (dummy_frame_push): Add ptid in declaration.
5728         (dummy_frame_pop, dummy_frame_discard): Likewise.
5729
5730 2014-06-26  Tom Tromey  <tromey@redhat.com>
5731
5732         * cli/cli-cmds.c (error_no_arg): Make "why" const.
5733         * command.h (error_no_arg): Update.
5734
5735 2014-06-26  Tom Tromey  <tromey@redhat.com>
5736
5737         * cli/cli-setshow.c (do_set_command): Make "arg" const.
5738         (do_show_command): Make "arg" const.
5739         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5740
5741 2014-06-26  Tom Tromey  <tromey@redhat.com>
5742
5743         * record-full.c (record_full_get_bookmark): Make "args" const.
5744         (record_full_goto_bookmark): Make "raw_bookmark" const.
5745         * record.c (record_goto): New function.
5746         (cmd_record_goto): Use it.  Now static.
5747         * record.h (record_goto): Declare.
5748         (cmd_record_goto): Remove declaration.
5749         * target-delegates.c: Rebuild.
5750         * target.h (struct target_ops) <to_get_bookmark,
5751         to_goto_bookmark>: Make parameter const.
5752
5753 2014-06-26  Tom Tromey  <tromey@redhat.com>
5754
5755         * defs.h (generic_load): Update.
5756         * m32r-rom.c (m32r_load_gen): Make "filename" const.
5757         * monitor.c (monitor_load): Make "args" const.
5758         * remote-m32r-sdi.c (m32r_load): Make "args" const.
5759         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5760         const.
5761         (mips_load): Make "file" const.
5762         * remote-sim.c (gdbsim_load): Make "args" const.
5763         * remote.c (remote_load): Make "name" const.
5764         * symfile.c (generic_load): Make "args" const.
5765         * target-delegates.c: Rebuild.
5766         * target.c (target_load): Make "arg" const.
5767         (debug_to_load): Make "args" const.
5768         * target.h (struct target_ops) <to_load>: Make parameter const.
5769         (target_load): Update.
5770
5771 2014-06-26  Tom Tromey  <tromey@redhat.com>
5772
5773         PR symtab/16902:
5774         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5775         (dwarf2_physname, read_partial_die)
5776         (guess_partial_die_structure_name, fixup_partial_die)
5777         (guess_full_die_structure_name, anonymous_struct_prefix)
5778         (dwarf2_name): Use per-BFD obstack.
5779
5780 2014-06-26  Yao Qi  <yao@codesourcery.com>
5781
5782         * dummy-frame.c (dummy_frame_sniffer): Move local variables
5783         dummyframe and this_id into inner block below.
5784
5785 2014-06-26  Yao Qi  <yao@codesourcery.com>
5786
5787         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5788         with "signal_pass[0]" in the initialization of signal_pass.
5789
5790 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
5791
5792         * record-btrace.c (record_btrace_generating_corefile)
5793         (record_btrace_prepare_to_generate_core)
5794         (record_btrace_done_generating_core): New.
5795         (record_btrace_xfer_partial, record_btrace_fetch_registers)
5796         (record_btrace_store_registers, record_btrace_prepare_to_store):
5797         Forward request when generating a core file.
5798         (record_btrace_open): Set record_btrace_generating_corefile to zero.
5799         (init_record_btrace_ops): Set to_prepare_to_generate_core and
5800         to_done_generating_core.
5801
5802 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
5803
5804         * target.h (target_ops) <to_prepare_to_generate_core>
5805         <to_done_generating_core>: New.
5806         (target_prepare_to_generate_core, target_done_generating_core): New.
5807         * target.c (target_prepare_to_generate_core)
5808         (target_done_generating_core): New.
5809         * target-delegates.c: Regenerate.
5810         * gcore.c: (write_gcore_file): Rename to ...
5811         (write_gcore_file_1): ...this.
5812         (write_gcore_file): Call target_prepare_to_generate_core
5813         and target_done_generating_core.
5814
5815 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
5816
5817         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5818         * gcore.c (write_gcore_file): Free memory returned from
5819         make_corefile_notes.
5820         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5821         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5822
5823 2014-06-24  Yao Qi  <yao@codesourcery.com>
5824
5825         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5826         (arm_linux_init_abi): Set skip_trampoline_code with
5827         gdbarch_skip_trampoline_code instead of
5828         find_solib_trampoline_target.
5829
5830 2014-06-24  Yao Qi  <yao@codesourcery.com>
5831
5832         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5833         arm_skip_bx_reg returns non-zero.
5834
5835 2014-06-24  Yao Qi  <yao@codesourcery.com>
5836
5837         * arm-tdep.c (arm_skip_bx_reg): New function.
5838         (arm_skip_stub): Call arm_skip_bx_reg.
5839
5840 2014-06-23  Don Breazeal  <donb@codesourcery.com>
5841
5842         * MAINTAINERS: Add myself as write-after-approval maintainer.
5843
5844 2014-06-23  Pedro Alves  <palves@redhat.com>
5845
5846         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5847         DR_CONTROL before setting DR0..DR3.
5848         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5849         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5850         bits of DR_CONTROL related to the debug register slot being
5851         disabled.  If all slots are vacant, clear local slowdown as well,
5852         and assert DR_CONTROL is 0.
5853
5854 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
5855
5856         * python/lib/gdb/command/xmethods.py
5857         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
5858         current progspace only if the string "progspace" matches LOCUS_RE.
5859
5860 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
5861
5862         Fix --with-system-readline with readline-6.3 patch 5.
5863         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5864         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5865         types.
5866
5867 2014-06-20  Tom Tromey  <tromey@redhat.com>
5868
5869         * dwarf2read.c (dw2_get_real_path): Use correct type in
5870         OBSTACK_CALLOC.
5871         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5872
5873 2014-06-20  Gary Benson  <gbenson@redhat.com>
5874
5875         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
5876         * common/glibc_thread_db.h: Likewise.
5877         * common/i386-cpuid.h: Likewise.
5878         * common/i386-gcc-cpuid.h: Likewise.
5879         * common/linux-btrace.h: Likewise.
5880         * common/linux-osdata.h: Likewise.
5881         * common/linux-procfs.h: Likewise.
5882         * common/linux-ptrace.h: Likewise.
5883         * common/mips-linux-watch.h: Likewise.
5884         * common/linux-btrace.c: Moved to nat.
5885         * common/linux-osdata.c: Likewise.
5886         * common/linux-procfs.c: Likewise.
5887         * common/linux-ptrace.c: Likewise.
5888         * common/mips-linux-watch.c: Likewise.
5889         * nat/gdb_thread_db.h: Moved from common.
5890         * nat/glibc_thread_db.h: Likewise.
5891         * nat/i386-cpuid.h: Likewise.
5892         * nat/i386-gcc-cpuid.h: Likewise.
5893         * nat/linux-btrace.c: Likewise.
5894         * nat/linux-btrace.h: Likewise.
5895         * nat/linux-osdata.c: Likewise.
5896         * nat/linux-osdata.h: Likewise.
5897         * nat/linux-procfs.c: Likewise.
5898         * nat/linux-procfs.h: Likewise.
5899         * nat/linux-ptrace.c: Likewise.
5900         * nat/linux-ptrace.h: Likewise.
5901         * nat/mips-linux-watch.c: Likewise.
5902         * nat/mips-linux-watch.h: Likewise.
5903         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5904         (object file files): Reordered.
5905         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5906         of glibc_thread_db.h.
5907
5908 2014-06-20  Gary Benson  <gbenson@redhat.com>
5909
5910         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5911         (i386_dr_low_type): Moved to nat/i386-dregs.h.
5912         (i386_dr_low): Likewise.
5913         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5914         (i386_dr_low_set_addr): Likewise.
5915         (i386_dr_low_get_addr): Likewise.
5916         (i386_dr_low_can_set_control): Likewise.
5917         (i386_dr_low_set_control): Likewise.
5918         (i386_dr_low_get_control): Likewise.
5919         (i386_dr_low_get_status): Likewise.
5920         (i386_get_debug_register_length): Likewise.
5921         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5922         (i386_dr_low): Likewise.
5923         * nat/i386-dregs.c (i386-low.h): Remove include.
5924         (i386-nat.h): Likewise.
5925         (nat/i386-dregs.h): New include.
5926         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
5927         (i386_dr_low_set_addr): Likewise.
5928         (i386_dr_low_get_addr): Likewise.
5929         (i386_dr_low_can_set_control): Likewise.
5930         (i386_dr_low_set_control): Likewise.
5931         (i386_dr_low_get_control): Likewise.
5932         (i386_dr_low_get_status): Likewise.
5933         (i386_get_debug_register_length): Likewise.
5934         (debug_hw_points): Likewise.
5935
5936 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
5937
5938         * Makefile.in (SFILES): Add d-exp.y.
5939         (YYFILES): Add d-exp.c.
5940         (YYOBJ): Add d-exp.o.
5941         (local-maintainer-clean): Delete d-exp.c.
5942         * d-exp.y: New file.
5943         * d-lang.h (d_parse): New declaration.
5944         (d_error): New declaration.
5945         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
5946         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
5947         PREC_ORDER operators.
5948         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
5949
5950 2014-06-19  Yao Qi  <yao@codesourcery.com>
5951
5952         * gdbthread.h (any_running): Remove the declaration.
5953         * thread.c (any_running): Remove.
5954
5955 2014-06-19  Yao Qi  <yao@codesourcery.com>
5956
5957         * gdbthread.h (struct thread_info) <state>: Change its type to
5958         'enum thread_state'.  Update comments.
5959
5960 2014-06-19  Pedro Alves  <palves@redhat.com>
5961
5962         * gdbthread.h (ALL_THREADS): Delete.
5963         (ALL_NON_EXITED_THREADS): New macro.
5964         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
5965         instead of ALL_THREADS.
5966         * infrun.c (find_thread_needs_step_over)
5967         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
5968         instead of ALL_THREADS.
5969         * record-btrace.c (record_btrace_open)
5970         (record_btrace_stop_recording, record_btrace_close)
5971         (record_btrace_is_replaying, record_btrace_resume)
5972         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
5973         * remote.c (append_pending_thread_resumptions): Likewise.
5974         * thread.c (thread_apply_all_command): Likewise.
5975
5976 2014-06-19  Gary Benson  <gbenson@redhat.com>
5977
5978         * i386-nat.c (i386_stopped_by_watchpoint):
5979         Use i386_dr_stopped_by_watchpoint.
5980         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
5981         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
5982
5983 2014-06-19  Gary Benson  <gbenson@redhat.com>
5984
5985         * nat/i386-dregs.c: New file.
5986         * Makefile.in (i386-dregs.o): New rule.
5987         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
5988         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
5989         * config/i386/darwin.mh (NATDEPFILES): Likewise.
5990         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
5991         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
5992         * config/i386/go32.mh (NATDEPFILES): Likewise.
5993         * config/i386/linux.mh (NATDEPFILES): Likewise.
5994         * config/i386/linux64.mh (NATDEPFILES): Likewise.
5995         * config/i386/mingw.mh (NATDEPFILES): Likewise.
5996         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
5997         * i386-nat.h (debug_hw_points): New declaration.
5998         * i386-nat.c (breakpoint.h): Remove include.
5999         (command.h): Likewise.
6000         (target.h): Likewise.
6001         (gdb_assert.h): Likewise.
6002         (debug_hw_points): Made nonstatic.
6003         (debug_printf): Now in i386-dregs.c.
6004         (TARGET_HAS_DR_LEN_8): Likewise.
6005         (DR_CONTROL_SHIFT): Likewise.
6006         (DR_CONTROL_SIZE): Likewise.
6007         (DR_RW_EXECUTE): Likewise.
6008         (DR_RW_WRITE): Likewise.
6009         (DR_RW_READ): Likewise.
6010         (DR_RW_IORW): Likewise.
6011         (DR_LEN_1): Likewise.
6012         (DR_LEN_2): Likewise.
6013         (DR_LEN_4): Likewise.
6014         (DR_LEN_8): Likewise.
6015         (DR_LOCAL_ENABLE_SHIFT): Likewise.
6016         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6017         (DR_ENABLE_SIZE): Likewise.
6018         (DR_LOCAL_SLOWDOWN): Likewise.
6019         (DR_GLOBAL_SLOWDOWN): Likewise.
6020         (DR_CONTROL_RESERVED): Likewise.
6021         (I386_DR_CONTROL_MASK): Likewise.
6022         (I386_DR_VACANT): Likewise.
6023         (I386_DR_LOCAL_ENABLE): Likewise.
6024         (I386_DR_GLOBAL_ENABLE): Likewise.
6025         (I386_DR_DISABLE): Likewise.
6026         (I386_DR_SET_RW_LEN): Likewise.
6027         (I386_DR_GET_RW_LEN): Likewise.
6028         (I386_DR_WATCH_HIT): Likewise.
6029         (i386_wp_op_t): Likewise.
6030         (i386_show_dr): Likewise.
6031         (i386_length_and_rw_bits): Likewise.
6032         (i386_insert_aligned_watchpoint): Likewise.
6033         (i386_remove_aligned_watchpoint): Likewise.
6034         (i386_handle_nonaligned_watchpoint): Likewise.
6035         (i386_update_inferior_debug_regs): Likewise.
6036         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6037         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6038         (i386_region_ok_for_watchpoint):
6039         Use i386_dr_region_ok_for_watchpoint.
6040         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6041
6042 2014-06-19  Gary Benson  <gbenson@redhat.com>
6043
6044         * i386-nat.c (i386_insert_hw_breakpoint): Use
6045         i386_insert_watchpoint.
6046         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6047
6048 2014-06-19  Gary Benson  <gbenson@redhat.com>
6049
6050         * i386-nat.c (i386_dr_show): Renamed to
6051         i386_show_dr and made static.  All uses updated.
6052         (i386_dr_length_and_rw_bits): Renamed to
6053         i386_length_and_rw_bits and made static.
6054         All uses updated.
6055         (i386_dr_insert_aligned_watchpoint): Renamed to
6056         i386_insert_aligned_watchpoint and made static.
6057         All uses updated.
6058         (i386_dr_remove_aligned_watchpoint): Renamed to
6059         i386_remove_aligned_watchpoint and made static.
6060         All uses updated.
6061         (i386_dr_update_inferior_debug_regs): Renamed to
6062         i386_update_inferior_debug_regs and made static.
6063         All uses updated.
6064         * nat/i386-dregs.h (i386_dr_show): Removed.
6065         (i386_dr_length_and_rw_bits): Likewise.
6066         (i386_dr_insert_aligned_watchpoint): Likewise.
6067         (i386_dr_remove_aligned_watchpoint): Likewise.
6068         (i386_dr_update_inferior_debug_regs): Likewise.
6069
6070 2014-06-19  Gary Benson  <gbenson@redhat.com>
6071
6072         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6073         * configure: Regenerate.
6074         * config.in: Likewise.
6075         * main.c (signal.h): New include.
6076         (setup_alternate_signal_stack): New function.
6077         (captured_main): Call the above.
6078         * cp-support.c (signal.h): New include.
6079         (catch_demangler_crashes): New flag.
6080         (SIGJMP_BUF): New define.
6081         (SIGSETJMP): Likewise.
6082         (SIGLONGJMP): Likewise.
6083         (gdb_demangle_jmp_buf): New static global.
6084         (gdb_demangle_attempt_core_dump): Likewise.
6085         (gdb_demangle_signal_handler): New function.
6086         (gdb_demangle): If catch_demangler_crashes is set, install the
6087         above signal handler before calling bfd_demangle, and restore
6088         the original signal handler afterwards.  Display the offending
6089         symbol and call demangler_warning the first time a segmentation
6090         fault is caught.
6091         (_initialize_cp_support): New maint set/show command.
6092
6093 2014-06-19  Gary Benson  <gbenson@redhat.com>
6094
6095         * utils.h (resource_limit_kind): New enum.
6096         (can_dump_core): New declaration.
6097         (warn_cant_dump_core): Likewise.
6098         (dump_core): Likewise.
6099         * utils.c (dump_core): Made nonstatic.  Added new
6100         parameter "limit_kind".
6101         (can_dump_core): Made nonstatic. Moved printing code to...
6102         (warn_cant_dump_core): New function.
6103         (can_dump_core_warn): Likewise.
6104         (internal_vproblem): Replace calls to can_dump_core with
6105         calls to can_dump_core_warn.  Supply new argument to each.
6106
6107 2014-06-19  Gary Benson  <gbenson@redhat.com>
6108
6109         * utils.h (demangler_vwarning): New declaration.
6110         (demangler_warning): Likewise.
6111         * utils.c (struct internal_problem)
6112         <user_settable_should_quit>: New field.
6113         <user_settable_should_dump_core>: Likewise
6114         (internal_error_problem): Add values for above new fields.
6115         (internal_warning_problem): Likewise.
6116         (demangler_warning_problem): New static global.
6117         (demangler_vwarning): New function.
6118         (demangler_warning): Likewise.
6119         (add_internal_problem_command): Selectively add commands.
6120         (_initialize_utils): New internal problem command.
6121         * maint.c (maintenance_demangler_warning): New function.
6122         (_initialize_maint_cmds): New command.
6123
6124 2014-06-18  Tom Tromey  <tromey@redhat.com>
6125
6126         * f-valprint.c (info_common_command_for_block): Update.
6127         * symtab.h (struct general_symbol_info) <common_block>: Now
6128         const.
6129
6130 2014-06-18  Tom Tromey  <tromey@redhat.com>
6131
6132         * symtab.h (struct symtab) <blockvector>: Now const.
6133         * ada-lang.c (ada_add_global_exceptions): Update.
6134         * buildsym.c (augment_type_symtab): Update.
6135         * dwarf2read.c (dw2_lookup_symbol): Update.
6136         * jit.c (finalize_symtab): Update.
6137         * jv-lang.c (add_class_symtab_symbol): Update.
6138         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6139         Update.
6140         * objfiles.c (objfile_relocate1): Update.
6141         * psymtab.c (lookup_symbol_aux_psymtabs)
6142         (maintenance_check_psymtabs): Update.
6143         * python/py-symtab.c (stpy_global_block, stpy_static_block):
6144         Update.
6145         * spu-tdep.c (spu_catch_start): Update.
6146         * symmisc.c (dump_symtab_1): Update.
6147         * symtab.c (lookup_global_symbol_from_objfile)
6148         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6149         (basic_lookup_transparent_type_quick)
6150         (basic_lookup_transparent_type, find_pc_sect_symtab)
6151         (find_pc_sect_line, search_symbols): Update.
6152         * block.c (find_block_in_blockvector): Make "bl" const.
6153         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6154         const.
6155         (blockvector_contains_pc): Make "bv" const.
6156         (block_for_pc_sect): Update.
6157         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6158         (blockvector_contains_pc): Update.
6159         * breakpoint.c (resolve_sal_pc): Update.
6160         * inline-frame.c (block_starting_point_at): Update.
6161
6162 2014-06-18  Tom Tromey  <tromey@redhat.com>
6163
6164         * completer.c (complete_line): Make "line_buffer" const.
6165         * completer.h (complete_line): Update.
6166
6167 2014-06-18  Tom Tromey  <tromey@redhat.com>
6168
6169         * symtab.c (add_macro_name): Remove unneeded cast.
6170
6171 2014-06-18  Tom Tromey  <tromey@redhat.com>
6172
6173         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6174         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6175
6176 2014-06-18  Tom Tromey  <tromey@redhat.com>
6177
6178         * probe.c (info_probes_for_ops): Make "arg" const.
6179         * probe.h (info_probes_for_ops): Update.
6180
6181 2014-06-18  Tom Tromey  <tromey@redhat.com>
6182
6183         * varobj.c (varobj_create): Update.
6184         * valops.c (value_of_this): Update.
6185         * tracepoint.c (add_local_symbols, scope_info): Update.
6186         * symtab.h (struct general_symbol_info) <block>: Now const.
6187         * symtab.c (skip_prologue_sal)
6188         (default_make_symbol_completion_list_break_on)
6189         (skip_prologue_using_sal): Update.
6190         * stack.h (iterate_over_block_locals)
6191         (iterate_over_block_local_vars): Update.
6192         * stack.c (print_frame_args): Update.
6193         (iterate_over_block_locals, iterate_over_block_local_vars): Make
6194         parameter const.
6195         (get_selected_block): Make return type const.
6196         * python/py-frame.c (frapy_block): Update.
6197         * python/py-block.c (gdbpy_block_for_pc): Update.
6198         * p-exp.y (%union) <bval>: Now const.
6199         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6200         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6201         * m2-exp.y (%union) <bval>: Now const.
6202         * linespec.c (get_current_search_block): Make return type const.
6203         (create_sals_line_offset, find_label_symbols): Update.
6204         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6205         Update.
6206         (block_starting_point_at): Make "block" const.
6207         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6208         (check_exception_resume): Update.
6209         * guile/scm-frame.c (gdbscm_frame_block): Update.
6210         * guile/scm-block.c (gdbscm_lookup_block): Update.
6211         * frame.h (get_frame_block): Update.
6212         (get_selected_block): Make return type const.
6213         * frame.c (frame_id_inner): Update.
6214         * f-valprint.c (info_common_command_for_block)
6215         (info_common_command): Update.
6216         * dwarf2loc.c (dwarf2_find_location_expression)
6217         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6218         (locexpr_describe_location_piece): Update.
6219         * c-exp.y (%union) <bval>: Now const.
6220         * breakpoint.c (resolve_sal_pc): Update.
6221         * blockframe.c (get_frame_block):Make return type const.
6222         (get_pc_function_start, get_frame_function, find_pc_sect_function)
6223         (block_innermost_frame): Update.
6224         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6225         (block_for_pc, block_for_pc_sect): Update.
6226         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6227         'pblock' const.
6228         (block_for_pc_sect, block_for_pc): Make return type const.
6229         * ax-gdb.c (gen_expr): Update.
6230         * alpha-mdebug-tdep.c (find_proc_desc): Update.
6231         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6232         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6233         (ada_read_var_value): Update.
6234         * ada-exp.y (struct name_info) <block>: Now const.
6235         (%union): Likewise.
6236         (block_lookup): Constify.
6237
6238 2014-06-18  Gary Benson  <gbenson@redhat.com>
6239
6240         * nat/i386-dregs.h: New file.
6241         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6242         * i386-nat.h (i386-dregs.h): New include.
6243         (DR_FIRSTADDR): Now in i386-dregs.h.
6244         (DR_LASTADDR): Likewise.
6245         (DR_NADDR): Likewise.
6246         (DR_STATUS): Likewise.
6247         (DR_CONTROL): Likewise.
6248         (i386_debug_reg_state): Likewise.
6249         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6250
6251 2014-06-18  Don Breazeal  <donb@codesourcery.com>
6252
6253         * breakpoint.c (set_longjmp_breakpoint): Call
6254         momentary_breakpoint_from_master with additional argument.
6255         (set_longjmp_breakpoint_for_call_dummy): Call
6256         momentary_breakpoint_from_master with additional argument.
6257         (set_std_terminate_breakpoint): Call
6258         momentary_breakpoint_from_master with additional argument.
6259         (momentary_breakpoint_from_master): Add argument to function
6260         definition and use it to initialize structure member flag.
6261         (clone_momentary_breakpoint): Call
6262         momentary_breakpoint_from_master with additional argument.
6263         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6264         member flags set in momentary_breakpoint_from_master.
6265
6266 2014-06-18  Gary Benson  <gbenson@redhat.com>
6267
6268         * i386-nat.c (i386_show_dr): Renamed to
6269         i386_dr_show and made nonstatic.  All uses updated.
6270         (i386_length_and_rw_bits): Renamed to
6271         i386_dr_length_and_rw_bits and made nonstatic.
6272         All uses updated.
6273         (i386_insert_aligned_watchpoint): Renamed to
6274         i386_dr_insert_aligned_watchpoint and made nonstatic.
6275         All uses updated.
6276         (i386_remove_aligned_watchpoint): Renamed to
6277         i386_dr_remove_aligned_watchpoint and made nonstatic.
6278         All uses updated.
6279         (i386_update_inferior_debug_regs): Renamed to
6280         i386_dr_update_inferior_debug_regs and made nonstatic.
6281         All uses updated.
6282
6283 2014-06-18  Gary Benson  <gbenson@redhat.com>
6284
6285         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6286         (i386_dr_low_can_set_control): Likewise.
6287         (i386_dr_low_set_addr): Likewise.
6288         (i386_dr_low_set_control): Likewise.
6289         (i386_dr_low_get_addr): Likewise.
6290         (i386_dr_low_get_status): Likewise.
6291         (i386_dr_low_get_control): Likewise.
6292         (i386_insert_aligned_watchpoint): Use new macros.
6293         (i386_update_inferior_debug_regs): Likewise.
6294         (i386_stopped_data_address): Likewise.
6295
6296 2014-06-18  Gary Benson  <gbenson@redhat.com>
6297
6298         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6299         New parameter.  All uses updated.
6300
6301 2014-06-18  Gary Benson  <gbenson@redhat.com>
6302
6303         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6304         All uses updated.
6305
6306 2014-06-18  Gary Benson  <gbenson@redhat.com>
6307
6308         * i386-nat.c (debug_printf): New macro.
6309         (i386_get_debug_register_length): Likewise.
6310         (TARGET_HAS_DR_LEN_8): Use above macro.
6311         (i386_show_dr): Use debug_printf instead of puts_unfiltered
6312         and printf_unfiltered.  Use phex to format values.
6313
6314 2014-06-18  Gary Benson  <gbenson@redhat.com>
6315
6316         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6317         Make const.
6318
6319 2014-06-18  Gary Benson  <gbenson@redhat.com>
6320
6321         * i386-nat.c: Comment changes.
6322
6323 2014-06-18  Gary Benson  <gbenson@redhat.com>
6324
6325         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6326
6327 2014-06-18  Gary Benson  <gbenson@redhat.com>
6328
6329         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6330         (i386_insert_aligned_watchpoint): Likewise.
6331         (i386_remove_aligned_watchpoint): Likewise.
6332         (i386_handle_nonaligned_watchpoint): Likewise.
6333
6334 2014-06-18  Gary Benson  <gbenson@redhat.com>
6335
6336         * i386-nat.c: Whitespace changes.
6337
6338 2014-06-17  Samuel Bronson  <naesten@gmail.com>
6339
6340         * MAINTAINERS: Update Roland McGrath's email address.
6341         Thanks to Sergio Durigan Junior for pointing out that he left
6342         Red Hat a while ago, and giving me a current address.
6343
6344 2014-06-17  Tom Tromey  <tromey@redhat.com>
6345
6346         * utils.h (savestring): Remove declaration.
6347
6348 2014-06-17  Tom Tromey  <tromey@redhat.com>
6349
6350         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6351
6352 2014-06-16  Keith Seitz  <keiths@redhat.com>
6353
6354         PR mi/15863
6355         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6356         to update the varobj if inferior_ptid is null_ptid.
6357
6358 2014-06-16  Tom Tromey  <tromey@redhat.com>
6359
6360         * target.h (struct target_ops) <to_info_proc>: Make parameter
6361         const.
6362         (target_info_proc): Update.
6363         * target.c (target_info_proc): Make "args" const.
6364         * procfs.c (procfs_info_proc): Update.
6365         * linux-tdep.c (linux_info_proc): Update.
6366         (linux_core_info_proc_mappings): Make "args" const.
6367         (linux_core_info_proc): Update.
6368         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6369         * gdbarch.c: Rebuild.
6370         * gdbarch.h: Rebuild.
6371         * corelow.c (core_info_proc): Update.
6372
6373 2014-06-16  Tom Tromey  <tromey@redhat.com>
6374
6375         * target.h (struct target_ops) <to_disconnect>: Make parameter
6376         const.
6377         (target_disconnect): Update.
6378         * target.c (target_disconnect): Make "args" const.
6379         * target-delegates.c: Rebuild.
6380         * remote.c (remote_disconnect): Update.
6381         * record.h (record_disconnect): Update.
6382         * record.c (record_disconnect): Update.
6383         * inf-child.c (inf_child_disconnect): Update.
6384
6385 2014-06-16  Tom Tromey  <tromey@redhat.com>
6386
6387         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6388         * target.c (debug_to_rcmd, default_rcmd): Update.
6389         * target-delegates.c: Rebuild.
6390         * remote.c (remote_rcmd): Update.
6391         * monitor.c (monitor_rcmd): Update.
6392
6393 2014-06-16  Pedro Alves  <palves@redhat.com>
6394
6395         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6396         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6397         have OBJF_SHARED set.
6398         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6399         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
6400         instead of OBJF_USERLOADED.
6401         * objfiles.h (OBJF_SHARED): Update comment.
6402         (userloaded_objfile_contains_address_p): Rename to ...
6403         (shared_objfile_contains_address_p): ... this, and update
6404         comments.
6405         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6406         new objfile.
6407         (remove_symbol_file_command): Skip objfiles that don't have
6408         OBJF_SHARED set.
6409
6410 2014-06-16  Tom Tromey  <tromey@redhat.com>
6411
6412         * minsyms.h (prim_record_minimal_symbol)
6413         (prim_record_minimal_symbol_and_info): Update comments.
6414
6415 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
6416
6417         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6418         or --without-guile, according to how GDB was built.
6419
6420 2014-06-13  Tom Tromey  <tromey@redhat.com>
6421
6422         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6423         to help_list.
6424         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6425         to help_list.
6426         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6427         help_list.
6428         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6429         help_list.Pass all_commands, not -1, to help_list.
6430         * cli/cli-dump.c (dump_command, append_command)
6431         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6432         (binary_dump_command, binary_append_command): Pass all_commands,
6433         not -1, to help_list.
6434         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6435         -1, to help_list.
6436         * valprint.c (set_print, set_print_raw): Pass all_commands, not
6437         -1, to help_list.
6438         * typeprint.c (set_print_type): Pass all_commands, not -1, to
6439         help_list.
6440         * top.c (set_history): Pass all_commands, not -1, to help_list.
6441         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6442         all_commands, not -1, to help_list.
6443         * symfile.c (overlay_command): Pass all_commands, not -1, to
6444         help_list.
6445         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6446         help_list.
6447         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6448         help_list.
6449         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6450         -1, to help_list.
6451         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6452         not -1, to help_list.
6453         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6454         not -1, to help_list.
6455         * maint.c (maintenance_command, maintenance_info_command)
6456         (maintenance_print_command, maintenance_set_cmd): Pass
6457         all_commands, not -1, to help_list.
6458         * macrocmd.c (macro_command): Pass all_commands, not -1, to
6459         help_list.
6460         * language.c (set_check): Pass all_commands, not -1, to help_list.
6461         * infcmd.c (unset_command): Pass all_commands, not -1, to
6462         help_list.
6463         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6464         help_list.
6465         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6466         help_list.
6467         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6468         help_list.
6469         * breakpoint.c (save_command): Pass all_commands, not -1, to
6470         help_list.
6471         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6472         all_commands, not -1, to help_list.
6473
6474 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
6475
6476         * regcache.c (struct register_to_invalidate): New structure.
6477         (do_register_invalidate, make_cleanup_regcache_invalidate): New
6478         functions.
6479         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6480
6481 2014-06-12  Yao Qi  <yao@codesourcery.com>
6482
6483         * varobj.c (varobj_get_num_children): Call
6484         varobj_is_dynamic_p.
6485         (varobj_list_children): Likewise.
6486         (varobj_update): Likewise.  Update comments.
6487
6488 2014-06-12  Yao Qi  <yao@codesourcery.com>
6489
6490         * varobj.c (varobj_pretty_printed_p): Rename to ...
6491         (varobj_is_dynamic_p): ... this.  New function.
6492         * varobj.h (varobj_pretty_printed_p): Remove declaration.
6493         (varobj_is_dynamic_p): Declare.
6494         * mi/mi-cmd-var.c (print_varobj): All callers updated.
6495         (mi_print_value_p, varobj_update_one): Likewise.
6496
6497 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
6498             Yao Qi  <yao@codesourcery.com>
6499
6500         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6501         (varobj_get_iterator): Wrap up code for pretty-printer by
6502         "#if HAVE_PYTHON" and "#endif".
6503         (update_dynamic_varobj_children): Likewise.
6504
6505 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
6506             Yao Qi  <yao@codesourcery.com>
6507
6508         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6509         gdb_python_initialized is false.  Move some code from varobj.c.
6510         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6511         * varobj.c: Move "varobj-iter.h" inclusion earlier.
6512         (struct varobj_item): Moved to varobj-iter.h".
6513         (varobj_clear_saved_item): New function.
6514         (update_dynamic_varobj_children): Move python-related code to
6515         py-varobj.c.
6516         (free_variable): Call varobj_clear_saved_item and
6517         varobj_iter_delete.
6518
6519 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
6520             Yao Qi  <yao@codesourcery.com>
6521
6522         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6523         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6524         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6525         (py-varobj.o): New rule.
6526         * python/py-varobj.c: New file.
6527         * python/python-internal.h (py_varobj_get_iterator): Declare.
6528         * varobj-iter.h: New file.
6529         * varobj.c: Include "varobj-iter.h"
6530         (struct varobj) <child_iter>: Change its type from "PyObject *"
6531         to "struct varobj_iter *".
6532         <saved_item>: Likewise.
6533         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6534         [HAVE_PYTHON] (varobj_get_iterator): New function.
6535         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6536         python-specific code to python/py-varobj.c.
6537         (install_visualizer): Call varobj_iter_delete instead of
6538         Py_XDECREF.
6539         * varobj.h (varobj_ensure_python_env): Declare.
6540
6541 2014-06-12  Yao Qi  <yao@codesourcery.com>
6542
6543         * varobj.c (struct varobj_item): New structure.
6544         (create_child_with_value): Update declaration.
6545         (varobj_add_child): Replace arguments 'name' and 'value' with
6546         'item'.  All callers updated.
6547         (install_dynamic_child): Likewise.
6548         (update_dynamic_varobj_children): Likewise.
6549         (varobj_add_child): Likewise.
6550         (create_child_with_value): Likewise.
6551
6552 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
6553
6554         * NEWS: Create a new section for the next release branch.
6555         Rename the section of the current branch, now that it has
6556         been cut.
6557
6558 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
6559
6560         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6561         * version.in: Bump version to 7.8.50.DATE-cvs.
6562
6563 2014-06-11  Pedro Alves  <palves@redhat.com>
6564
6565         PR remote/17028
6566         * ser-mingw.c (net_windows_socket_check_pending): New function.
6567         (net_windows_select_thread): Ignore spurious wakeups.  Use
6568         net_windows_socket_check_pending.
6569         (net_windows_wait_handle): Check for pending events with
6570         ioctlsocket, through net_windows_socket_check_pending, instead of
6571         checking the socket's event.
6572
6573 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
6574
6575         * python/python-internal.h (gdb_PyObject_GetAttrString)
6576         (gdb_PyObject_HasAttrString): New inline function definitions.
6577         * py-value.c (get_field_flag): Remove the now unnecessary cast to
6578         char * of the second argument to PyObject_GetAttrString.
6579
6580 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
6581
6582         * serial.c (serial_write): Fix index of character to be printed
6583         in call to serial_logchar when serial debug traces are enabled.
6584
6585 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
6586
6587         * gdbtypes (resolve_dynamic_range): Add function description.
6588
6589 2014-06-09  Pedro Alves  <palves@redhat.com>
6590
6591         * linux-nat.c (linux_child_follow_fork): Initialize status with
6592         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
6593         inner block.  Only pass the signal to PTRACE_DETACH if in pass
6594         state.
6595
6596 2014-06-09  Gary Benson  <gbenson@redhat.com>
6597
6598         * common/signals.c (gdb_signal_from_host): Reorder to separate
6599         the always-available ANSI-standard signals from the signals that
6600         require checking.
6601         (do_gdb_signal_to_host): Likewise.
6602         * proc-events.c (signal_table): Likewise.
6603
6604 2014-06-08  Hui Zhu  <hui@codesourcery.com>
6605
6606         * common/linux-ptrace.c (linux_disable_event_reporting): New
6607         function.
6608         * common/linux-ptrace.h (linux_disable_event_reporting): New
6609         declaration.
6610         * linux-nat.c (linux_child_follow_fork): Do a single step before
6611         detach.
6612
6613 2014-06-07  Keith Seitz  <keiths@redhat.com>
6614
6615         Revert:
6616         PR c++/16253
6617         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6618         from symbol_matches_domain in symtab.c. All local callers
6619         of symbol_matches_domain updated.
6620         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6621         search STRUCT_DOMAIN.
6622         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6623         independently.  standard_lookup will do that automatically.
6624         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6625         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6626         (cp_lookup_symbol_in_namespace): Likewise.
6627         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6628         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6629         may return a STRUCT_DOMAIN match.
6630         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6631         * cp-support.c: Include language.h.
6632         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6633         VAR_DOMAIN.
6634         * psymtab.c (match_partial_symbol): Compare the requested
6635         domain with the symbol's domain directly.
6636         (lookup_partial_symbol): Likewise.
6637         * symtab.c (lookup_symbol_in_language): Explain when/why
6638         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6639         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6640         appropriate languages.
6641         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6642         and moved to ada-lang.c
6643         (lookup_block_symbol): Explain that this function only returns
6644         symbol matching the requested DOMAIN.
6645         Compare the requested domain with the symbol's domain directly.
6646         (iterate_over_symbols): Compare the requested domain with the
6647         symbol's domain directly.
6648         * symtab.h (symbol_matches_domain): Remove.
6649
6650 2014-06-06  Doug Evans  <xdje42@gmail.com>
6651
6652         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6653         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6654         (gdbscm_guile_version_is_at_least): Declare.
6655         (gdbscm_scm_string_to_int): Declare.
6656         * guile/guile.c (gdbscm_guile_major_version): New global.
6657         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6658         (guile_datadir): New static global.
6659         (gdbscm_guile_data_directory): New function.
6660         (initialize_scheme_side): Update.
6661         (misc_guile_functions): Add guile-data-directory.
6662         (initialize_gdb_module): Fetch guile version number.
6663         * guile/lib/gdb.scm: Remove call to add-to-load-path.
6664         * guile/lib/gdb/init.scm (%initialize!): Ditto.
6665         * guile/lib/gdb/boot.scm: Use guile-data-directory.
6666         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6667         comments.
6668         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6669         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6670         * guile/scm-value.c (gdbscm_value_to_string): Only call
6671         scm_port_conversion_strategy if Guile version >= 2.0.6.
6672
6673 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
6674
6675         * main.c (print_gdb_help): Add -q and --silent.
6676
6677 2014-06-06  Gary Benson  <gbenson@redhat.com>
6678
6679         * common/signals.c: Remove preprocessor conditionals for
6680         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6681         SIGSEGV and SIGTERM.
6682         * proc-events.c: Likewise.
6683
6684 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
6685
6686         * symfile.c (symfile_free_objfile): Remove restriction to
6687         OBJF_USERLOADED.
6688         * symfile-mem.c (symbol_file_add_from_memory): Call
6689         add_target_sections_of_objfile.
6690
6691 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
6692
6693         * guile/scm-value.c (gdbscm_history_append_x): Use
6694         'vlscm_get_value_smob_arg_unsafe' instead of
6695         'vlscm_scm_to_value'.
6696
6697 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
6698
6699         PR mi/15806
6700         * utils.c (printchar): Don't escape at all if quoter is NUL.
6701         Update function documentation to clarify effect of parameter
6702         QUOTER.
6703         * remote.c (escape_buffer): Pass '\\' as the quoter to
6704         fputstrn_unfiltered.
6705         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6706         generate the output.
6707         (mi_solib_unloaded): Same.
6708
6709 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
6710
6711         * development.sh: Delete.
6712         * Makefile.in (config.status): Adjust dependency on development.sh.
6713         * configure.ac: Adjust development.sh source call.
6714         * configure: Regenerate.
6715
6716 2014-06-04  Doug Evans  <xdje42@gmail.com>
6717
6718         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6719         is_scheme_bkpt, spec.
6720         (bpscm_make_breakpoint_smob): Initialize new members.
6721         (gdbscm_create_breakpoint_x): Split into two ...
6722         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6723         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6724         (scheme_function breakpoint_functions): Update.
6725         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
6726         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
6727         register-breakpoint!.
6728
6729 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
6730
6731         PR server/17023
6732         * mem-break.c (z_type_supported): Return zero if
6733         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6734
6735 2014-06-04  Tom Tromey  <tromey@redhat.com>
6736
6737         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6738         value_from_contents_and_address_unresolved.
6739         (ada_template_to_fixed_record_type_1): Likewise.
6740         (ada_which_variant_applies): Likewise.
6741         * value.h (value_from_contents_and_address_unresolved): Declare.
6742         * value.c (value_from_contents_and_address_unresolved): New
6743         function.
6744         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6745         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6746         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6747
6748 2014-06-04  Tom Tromey  <tromey@redhat.com>
6749
6750         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6751
6752 2014-06-04  Tom Tromey  <tromey@redhat.com>
6753
6754         * procfs.c (procfs_attach): Make "args" const.
6755         * windows-nat.c (windows_attach): Make "args" const.
6756         * nto-procfs.c (procfs_attach): Make "args" const.
6757         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6758         * go32-nat.c (go32_attach): Make "args" const.
6759         * gnu-nat.c (gnu_attach): Make "args" const.
6760         * darwin-nat.c (darwin_attach): Make "args" const.
6761         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6762         * linux-nat.c (linux_nat_attach): Make "args" const.
6763         * remote.c (extended_remote_attach_1, extended_remote_attach):
6764         Make "args" const.
6765         * target.h (struct target_ops) <to_attach>: Make "args" const.
6766         (find_default_attach): Likewise.
6767         * utils.c (parse_pid_to_attach): Make "args" const.
6768         * utils.h (parse_pid_to_attach): Update.
6769
6770 2014-06-04  Tom Tromey  <tromey@redhat.com>
6771
6772         * target-delegates.c: Rebuild.
6773         * target.c (default_thread_address_space): New function.
6774         (target_thread_address_space): Simplify.
6775         * target.h (struct target_ops) <to_thread_address_space>: Add
6776         TARGET_DEFAULT_FUNC.
6777
6778 2014-06-04  Doug Evans  <xdje42@gmail.com>
6779
6780         * guile/scm-type.c (type_smob): Remove duplicate typedef.
6781
6782 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
6783
6784         * record-btrace.c: Include event-loop.h and inf-loop.h.
6785         (record_btrace_resume_exec_dir)
6786         (record_btrace_async_inferior_event_handler)
6787         (record_btrace_handle_async_inferior_event): New.
6788         (record_btrace_open): Create async event handler.
6789         (record_btrace_close): Delete async event handler.
6790         (record_btrace_resume): Set record_btrace_resume_exec_dir,
6791         Mark async event handler.
6792         (record_btrace_execution_direction): New.
6793         (init_record_btrace_ops): Initialize to_execution_direction.
6794
6795 2014-06-03  Doug Evans  <xdje42@gmail.com>
6796
6797         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6798         (gdbscm_make_parameter): Ditto.
6799
6800 2014-06-03  Doug Evans  <dje@google.com>
6801
6802         * exec.c (exec_close_1): Call clear_section_table instead of
6803         resize_section_table.
6804         (clear_section_table): New function.
6805         (resize_section_table): Make static.  Rename arg num_added to
6806         adjustment.
6807         * exec.h (clear_section_table): Declare.
6808         (resize_section_table): Delete.
6809         * progspace.c (release_program_space): Call clear_section_table
6810         instead of resize_section_table.
6811
6812 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
6813
6814         * NEWS (Python Scripting): Add entry about the new xmethods
6815         feature.
6816
6817 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
6818
6819         * python/py-xmethods.c: New file.
6820         * python/py-objfile.c (objfile_object): New field 'xmethods'.
6821         (objfpy_dealloc): XDECREF on the new xmethods field.
6822         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6823         field.
6824         (objfpy_get_xmethods): New function.
6825         (objfile_getset): New entry 'xmethods'.
6826         * python/py-progspace.c (pspace_object): New field 'xmethods'.
6827         (pspy_dealloc): XDECREF on the new xmethods field.
6828         (pspy_new, pspace_to_pspace_object): Initialize xmethods
6829         field.
6830         (pspy_get_xmethods): New function.
6831         (pspace_getset): New entry 'xmethods'.
6832         * python/python-internal.h: Add declarations for new functions.
6833         * python/python.c (_initialize_python): Invoke
6834         gdbpy_initialize_xmethods.
6835         * python/lib/gdb/__init__.py (xmethods): New
6836         attribute.
6837         * python/lib/gdb/xmethod.py: New file.
6838         * python/lib/gdb/command/xmethods.py: New file.
6839
6840 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
6841
6842         * eval.c (evaluate_subexp_standard): Call the xmethod if the
6843         best match method returned by find_overload_match is an xmethod.
6844         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6845         the best matching operator returned by find_overload_match is an
6846         xmethod.
6847         * valops.c: #include "extension.h".
6848         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6849         Return void.  The list of matching source methods is returned in
6850         "fn_list" and a vector of matching debug method workers is
6851         returned in "xm_worker_vec".  Update all callers.
6852         (value_find_oload_method_list): Likewise.
6853         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
6854         non-NULL, then the index of the best matching method in this
6855         vector is returned.  Update all callers.
6856         (find_overload_match): Include xmethods while performing overload
6857         resolution.
6858
6859 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
6860
6861         * defs.h (enum lval_type): New enumerator "lval_xcallable".
6862         * extension-priv.h (struct extension_language_ops): Add the
6863         xmethod interface.
6864         * extension.c (new_xmethod_worker, clone_xmethod_worker,
6865         get_matching_xmethod_workers, get_xmethod_argtypes,
6866         invoke_xmethod, free_xmethod_worker,
6867         free_xmethod_worker_vec): New functions.
6868         * extension.h: #include "common/vec.h".
6869         New function declarations.
6870         (struct xmethod_worker): New struct.
6871         (VEC (xmethod_worker_ptr)): New vector type.
6872         (xmethod_worker_ptr): New typedef.
6873         (xmethod_worker_vec): Likewise.
6874         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6875         builtin_type.
6876         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6877         (struct builtin_type): New field "xmethod".
6878         * valarith.c (value_ptradd): Assert that the value argument is not
6879         lval_xcallable.
6880         * valops.c (value_must_coerce_to_target): Return 0 for
6881         lval_xcallable values.
6882         * value.c (struct value): New field XM_WORKER in the field
6883         LOCATION.
6884         (value_address, value_raw_address): Return 0 for lval_xcallable
6885         values.
6886         (set_value_address): Assert that the value is not an
6887         lval_xcallable.
6888         (value_free): Free the associated xmethod worker when freeing
6889         lval_xcallable values.
6890         (set_value_component_location): Assert that the WHOLE value is not
6891         lval_xcallable.
6892         (value_of_xmethod, call_xmethod): New functions.
6893         * value.h: Declare "struct xmethod_worker".
6894         Declare new functions value_of_xmethod, call_xmethod.
6895
6896 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
6897             Pedro Alves  <palves@redhat.com>
6898
6899         PR breakpoints/17000
6900         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6901         New function, extracted from software_breakpoint_inserted_here_p.
6902         (software_breakpoint_inserted_here_p): Replace factored out code
6903         by call to find_non_raw_software_breakpoint_inserted_here.
6904         (bp_target_info_copy_insertion_state): New function.
6905         (bkpt_insert_location): Handle the case of a single-step
6906         breakpoint already inserted at the same address.
6907         (bkpt_remove_location): Handle the case of a single-step
6908         breakpoint still inserted at the same address.
6909         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6910         breakpoint already inserted at the same address.
6911         (deprecated_remove_raw_breakpoint): Handle the case of a
6912         non-raw breakpoint still inserted at the same address.
6913         (find_single_step_breakpoint): New function, extracted from
6914         single_step_breakpoint_inserted_here_p.
6915         (find_single_step_breakpoint): New function,
6916         factored out from single_step_breakpoint_inserted_here_p.
6917         (single_step_breakpoint_inserted_here_p): Reimplement.
6918
6919 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
6920
6921         Pushed by Joel Brobecker  <brobecker@adacore.com>
6922         * source.c (show_substitute_path_command): Fix display of matching
6923         substitution rules.
6924
6925 2014-06-03  Gary Benson  <gbenson@redhat.com>
6926
6927         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
6928
6929 2014-06-02  Doug Evans  <xdje42@gmail.com>
6930
6931         Add parameter support for Guile.
6932         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
6933         (SUBDIR_GUILE_SRCS): Add scm-param.c.
6934         (scm-param.o): New rule.
6935         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
6936         (gdbscm_misc_error): Declare.
6937         (gdbscm_canonicalize_command_name): Declare.
6938         (gdbscm_scm_to_host_string): Declare.
6939         (gdbscm_scm_from_host_string): Declare.
6940         (gdbscm_initialize_parameters): Declare.
6941         * guile/guile.c (initialize_gdb_module): Call
6942         gdbscm_initialize_parameters.
6943         * guile/lib/gdb.scm: Export parameter symbols.
6944         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
6945         cmdscm_canonicalize_name and made public.  All callers updated.
6946         * guile/scm-exception.c (gdbscm_misc_error): New function.
6947         * guile/scm-param.c: New file.
6948         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
6949         (gdbscm_scm_to_host_string): New function.
6950         (gdbscm_scm_from_host_string): New function.
6951         * scm-utils.c (gdbscm_gc_dup_argv): New function.
6952
6953 2014-06-02  Doug Evans  <xdje42@gmail.com>
6954
6955         Add command support for Guile.
6956         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
6957         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
6958         (scm-cmd.o): New rule.
6959         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
6960         (gdbscm_user_error_p): Declare.
6961         (gdbscm_parse_command_name): Declare.
6962         (gdbscm_valid_command_class_p): Declare.
6963         (gdbscm_initialize_commands): Declare.
6964         * guile/guile.c (initialize_gdb_module): Call
6965         gdbscm_initialize_commands.
6966         * guile/lib/gdb.scm: Export command symbols.
6967         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
6968         (throw-user-error): New function.
6969         * guile/scm-cmd.c: New file.
6970         * guile/scm-exception.c (user_error_symbol): New static global.
6971         (gdbscm_user_error_p): New function.
6972         (gdbscm_initialize_exceptions): Set user_error_symbol.
6973         * scm-utils.c (gdbscm_gc_xstrdup): New function.
6974
6975 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
6976
6977         * top.c (command_loop): Handle comments here...
6978         (command_line_input): ... not here.
6979
6980 2014-06-02  Doug Evans  <xdje42@gmail.com>
6981
6982         Add progspace support for Guile.
6983         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
6984         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
6985         (scm-progspace.o): New rule.
6986         * guile/guile-internal.h (pspace_smob): New typedef.
6987         (psscm_pspace_smob_pretty_printers): Declare.
6988         (psscm_pspace_smob_from_pspace): Declare.
6989         (psscm_scm_from_pspace): Declare.
6990         * guile/guile.c (initialize_gdb_module): Call
6991         gdbscm_initialize_pspaces.
6992         * guile/lib/gdb.scm: Export progspace symbols.
6993         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
6994         support.
6995         (append-pretty-printer!): Ditto.
6996         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
6997         Implement.
6998         * guile/scm-progspace.c: New file.
6999
7000 2014-06-03  Alan Modra  <amodra@gmail.com>
7001
7002         * ppc64-tdep.c (ppc64_standard_linkage8): New.
7003         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7004
7005 2014-06-02  Doug Evans  <dje@google.com>
7006
7007         Add support for skeletonless type units.
7008         * dwarf2read.c (struct dwarf2_per_objfile): New member
7009         n_allocated_type_units.
7010         (struct dwarf2_per_objfile) <tu_stats>: New member
7011         nr_all_type_units_reallocs.
7012         (create_signatured_type_table_from_index): Initialize
7013         n_allocated_type_units
7014         (create_all_type_units): Ditto.
7015         (add_type_unit): Move up in file.  New arg slot.
7016         All callers updated.  Increase space for all_type_units more
7017         efficiently.
7018         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7019         (lookup_dwo_signatured_type): Handle skeletonless TUs.
7020         (lookup_dwp_signatured_type): Ditto.
7021         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7022         All callers updated.
7023         (build_type_psymtabs_1): Leave type_unit_groups as
7024         NULL if no TUs present.
7025         (print_tu_stats): New function.
7026         (process_skeletonless_type_unit): New function.
7027         (process_dwo_file_for_skeletonless_type_units): New
7028         function.
7029         (process_skeletonless_type_units): New function.
7030         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7031         Call print tu_stats if debugging enabled.
7032
7033 2014-06-02  Pedro Alves  <palves@redhat.com>
7034
7035         * breakpoint.c (build_target_command_list): Don't build a command
7036         list if we have any duplicate location that isn't a dprintf.
7037
7038 2014-06-02  Pedro Alves  <palves@redhat.com>
7039
7040         * breakpoint.c (dprintf_breakpoint_hit): New function.
7041         (initialize_breakpoint_ops): Install it as dprintf's
7042         breakpoint_hit method.
7043
7044 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
7045
7046         * source.c (substitute_path_rule_matches): Simplify using
7047         filename_ncmp instead of FILENAME_CMP.
7048
7049 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
7050
7051         * source.c (substitute_path_rule_matches): Remove trailing spaces.
7052
7053 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
7054
7055         * configure.ac: When Guile is available, check for the
7056         availability of 'scm_new_smob'.
7057         * configure, config.h.in: Regenerate.
7058         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7059         function.
7060
7061 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
7062
7063         * frame.c (struct frame_info): Add stop_string field.
7064         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7065         (get_prev_frame_always): Old content moved into
7066         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
7067         TRY_CATCH, handle MEMORY_ERROR exceptions.
7068         (frame_stop_reason_string): New function definition.
7069         * frame.h (unwind_stop_reason_to_string): Extend comment to
7070         mention frame_stop_reason_string.
7071         (frame_stop_reason_string): New function declaration.
7072         * stack.c (frame_info): Switch to frame_stop_reason_string.
7073         (backtrace_command_1): Switch to frame_stop_reason_string.
7074         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7075         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7076         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7077
7078 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
7079
7080         * frame.c (frame_stop_reason_string): Rename to ...
7081         (unwind_stop_reason_to_string): this.
7082         * frame.h (frame_stop_reason_string): Rename to ...
7083         (unwind_stop_reason_to_string): this.
7084         * stack.c (frame_info): Update call to frame_stop_reason_string.
7085         (backtrace_command_1): Likewise.
7086         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7087         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7088
7089 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
7090
7091         * frame.c (remove_prev_frame): New function.
7092         (get_prev_frame_if_no_cycle): Create / discard cleanup using
7093         remove_prev_frame.
7094
7095 2014-05-29  Pedro Alves  <palves@redhat.com>
7096
7097         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7098         and make it const.  When a single-step decays to a continue,
7099         clear 'step', not 'hw_step'.  Pass whether the caller wanted
7100         to step to user_visible_resume_ptid, not what we ask the
7101         target to do.
7102
7103 2014-05-29  Pedro Alves  <palves@redhat.com>
7104
7105         * infrun.c (process_event_stop_test, handle_step_into_function)
7106         (handle_step_into_function_backward): Adjust.
7107         Don't set the even thread's stop_step and call stop_waiting before
7108         calling end_stepping_range.  Instead do that ...
7109         (end_stepping_range): ... here.  Take an ecs pointer parameter.
7110
7111 2014-05-29  Pedro Alves  <palves@redhat.com>
7112
7113         * infrun.c (stop_stepping): Rename to ...
7114         (stop_waiting): ... this.
7115         (proceed): Update comment.
7116         (process_event_stop_test, handle_inferior_event)
7117         (handle_signal_stop, handle_step_into_function)
7118         (handle_step_into_function_backward): Update.
7119
7120 2014-05-29  Pedro Alves  <palves@redhat.com>
7121
7122         * infcall.c (run_inferior_call): Don't check whether the current
7123         thread is running after the proceed call.
7124
7125 2014-05-29  Pedro Alves  <palves@redhat.com>
7126             Tom Tromey  <tromey@redhat.com>
7127
7128         * NEWS: Mention "maint set target-async", "set mi-async", and that
7129         background execution commands are now always available.
7130         * target.h (target_async_permitted): Update comment.
7131         * target.c (target_async_permitted, target_async_permitted_1):
7132         Default to 1.
7133         (set_target_async_command): Rename to ...
7134         (maint_set_target_async_command): ... this.
7135         (show_target_async_command): Rename to ...
7136         (maint_show_target_async_command): ... this.
7137         (_initialize_target): Adjust.
7138         * infcmd.c (prepare_execution_command): Make extern.
7139         * inferior.h (prepare_execution_command): Declare.
7140         * infrun.c (set_observer_mode): Leave target async alone.
7141         * mi/mi-interp.c (mi_interpreter_init): Install
7142         mi_on_sync_execution_done as sync_execution_done observer.
7143         (mi_on_sync_execution_done): New function.
7144         (mi_execute_command_input_handler): Don't print the prompt if we
7145         just started a synchronous command with an async target.
7146         (mi_on_resume): Check sync_execution before printing prompt.
7147         * mi/mi-main.h (mi_async_p): Declare.
7148         * mi/mi-main.c: Include gdbcmd.h.
7149         (mi_async_p): New function.
7150         (mi_async, mi_async_1): New globals.
7151         (set_mi_async_command, show_mi_async_command, mi_async): New
7152         functions.
7153         (exec_continue): Call prepare_execution_command.
7154         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7155         (mi_execute_async_cli_command): Use mi_async_p.
7156         (_initialize_mi_main): Install "set mi-async".  Make
7157         "target-async" a deprecated alias.
7158
7159 2014-05-29  Pedro Alves  <palves@redhat.com>
7160
7161         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7162         (_initialize_cli_interp): Adjust.
7163         * event-loop.c: Include "observer.h".
7164         (start_event_loop): Notify 'command_error' observers instead of
7165         calling display_gdb_prompt.  Remove FIXME comment.
7166         * event-top.c (display_gdb_prompt): Remove call into the
7167         interpreters.
7168         * inf-loop.c: Include "observer.h".
7169         (inferior_event_handler): Notify 'command_error' observers instead
7170         of calling display_gdb_prompt.
7171         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7172         observers instead of calling display_gdb_prompt.
7173         * interps.c (interp_set): Don't call display_gdb_prompt.
7174         (current_interp_display_prompt_p): Delete.
7175         * interps.h (interp_prompt_p): Delete declaration.
7176         (interp_prompt_p_ftype): Delete.
7177         (struct interp_procs) <prompt_proc_p>: Delete field.
7178         (current_interp_display_prompt_p): Delete declaration.
7179         * mi-interp.c (mi_interpreter_prompt_p): Delete.
7180         (_initialize_mi_interp): Adjust.
7181         * tui-interp.c (tui_init): Install 'sync_execution_done' and
7182         'command_error' observers.
7183         (tui_on_sync_execution_done, tui_on_command_error): New
7184         functions.
7185         (tui_display_prompt_p): Delete.
7186         (_initialize_tui_interp): Adjust.
7187
7188 2014-05-29  Pedro Alves  <palves@redhat.com>
7189
7190         PR gdb/13860
7191         * cli/cli-interp.c: Include infrun.h and observer.h.
7192         (cli_uiout, cli_interp): New globals.
7193         (cli_on_signal_received, cli_on_end_stepping_range)
7194         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7195         functions.
7196         (cli_interpreter_init): Install them as 'end_stepping_range',
7197         'signal_received' 'signal_exited', 'exited' and 'no_history'
7198         observers.
7199         (_initialize_cli_interp): Remove cli_interp local.
7200         * infrun.c (handle_inferior_event): Call the several stop reason
7201         observers instead of printing the stop reason directly.
7202         (end_stepping_range): New function.
7203         (print_end_stepping_range_reason, print_signal_exited_reason)
7204         (print_exited_reason, print_signal_received_reason)
7205         (print_no_history_reason): Make static, and add an uiout
7206         parameter.  Print to that instead of to CURRENT_UIOUT.
7207         * infrun.h (print_end_stepping_range_reason)
7208         (print_signal_exited_reason, print_exited_reason)
7209         (print_signal_received_reason print_no_history_reason): New
7210         declarations.
7211         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7212         'mi_uiout'.
7213         <cli_uiout>: New field.
7214         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
7215         uiout for CLI output.  Install 'signal_received',
7216         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7217         observers.
7218         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7219         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7220         (mi_on_no_history): New functions.
7221         (ui_out_free_cleanup): Delete function.
7222         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7223         instead use the one already stored in the MI interpreter data.
7224         (mi_ui_out): Adjust.
7225         * tui/tui-interp.c: Include infrun.h and observer.h.
7226         (tui_interp): New global.
7227         (tui_on_signal_received, tui_on_end_stepping_range)
7228         (tui_on_signal_exited, tui_on_exited)
7229         (tui_on_no_history): New functions.
7230         (tui_init): Install them as 'end_stepping_range',
7231         'signal_received' 'signal_exited', 'exited' and 'no_history'
7232         observers.
7233         (_initialize_tui_interp): Delete tui_interp local.
7234
7235 2014-05-29  Pedro Alves  <palves@redhat.com>
7236
7237         PR gdb/15713
7238         * linux-nat.c (linux_nat_resume_callback): Rename the second
7239         parameter to 'except'.  Skip LP if it points to EXCEPT.
7240         (linux_nat_resume): Don't mark the event lwp as not stopped
7241         before resuming sibling lwps.  Instead ask
7242         linux_nat_resume_callback to skip the event lwp.  Mark it as not
7243         stopped after actually resuming it.
7244         (linux_handle_syscall_trap): Mark the lwp as not stopped after
7245         resuming it.
7246         (wait_lwp): Mark the lwp as stopped here.
7247         (stop_wait_callback): Mark the lwp as not stopped right after
7248         resuming it.  Don't mark lwps as stopped here.
7249         (linux_nat_filter_event): Mark the lwp as stopped earlier.
7250         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7251
7252 2014-05-29  Pedro Alves  <palves@redhat.com>
7253
7254         PR PR15693
7255         * infrun.c (resume): Determine how much to resume depending on
7256         whether the caller wanted a step, not whether we can hardware step
7257         the target.  Mark all threads that we intend to run as running,
7258         unless we're calling an inferior function.
7259         (normal_stop): If the thread is running an infcall, don't finish
7260         thread state.
7261         * target.c (target_resume): Don't mark threads as running here.
7262
7263 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
7264
7265         * serial.c (_initialize_serial): Remove support for
7266         the "set remotebaud" and "show remotebaud" commands.
7267         * NEWS: Add entry documenting the removal of that command.
7268
7269 2014-05-28  Yao Qi  <yao@codesourcery.com>
7270
7271         * charset.c: Fix typo in comments.
7272
7273 2014-05-27  Gary Benson  <gbenson@redhat.com>
7274
7275         * utils.c (internal_vproblem): Prompt for a bug report.
7276
7277 2014-05-26  Andy Wingo  <wingo@igalia.com>
7278
7279         * guile/scm-arch.c (arscm_mark_arch_smob):
7280         * guile/scm-block.c (bkscm_mark_block_smob)
7281         (bkscm_mark_block_syms_progress_smob):
7282         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7283         * guile/scm-exception.c (exscm_mark_exception_smob):
7284         * guile/scm-frame.c (frscm_mark_frame_smob):
7285         * guile/scm-iterator.c (itscm_mark_iterator_smob):
7286         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7287         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7288         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7289         (ppscm_mark_pretty_printer_worker_smob):
7290         * guile/scm-symbol.c (syscm_mark_symbol_smob):
7291         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7292         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7293         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7294         mark functions.
7295         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7296         function.
7297
7298 2014-05-26  Andy Wingo  <wingo@igalia.com>
7299             Doug Evans  <xdje42@gmail.com>
7300
7301         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7302         empty_base_class.  All uses updated.
7303         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7304         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7305         Adapt all callers.
7306         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7307         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7308         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7309         (gdbscm_gsmob_has_property_p, add_property_name)
7310         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7311         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7312         (gdb-object-has-property?, gdb-object-properties): Remove.
7313         (gdb-object-kind): Renamed from gsmob-kind.
7314
7315 2014-05-26  Andy Wingo  <wingo@igalia.com>
7316
7317         * configure.ac (try_guile_versions): Allow building with guile 2.2.
7318         * configure: Regenerate.
7319
7320 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
7321
7322         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7323
7324 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
7325
7326         * record-btrace.c (record_btrace_allow_memory_access): Remove.
7327         (replay_memory_access_read_only, replay_memory_access_read_write)
7328         (replay_memory_access_types, replay_memory_access)
7329         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7330         (cmd_set_record_btrace, cmd_show_record_btrace)
7331         (cmd_show_replay_memory_access): New.
7332         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7333         (record_btrace_remove_breakpoint): Replace
7334         record_btrace_allow_memory_access with replay_memory_access.
7335         (_initialize_record_btrace): Add commands.
7336         * NEWS: Announce it.
7337
7338 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7339
7340         * aarch64-linux-nat.c (asm/ptrace.h): Include.
7341
7342 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7343
7344         * MAINTAINERS (Write After Approval): Move self back from
7345         paper trail.
7346
7347 2014-05-22  Pedro Alves  <palves@redhat.com>
7348
7349         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7350         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7351         (disable_randomization, enum exec_direction_kind)
7352         (execution_direction, stop_registers, start_remote)
7353         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7354         (wait_for_inferior, normal_stop, get_last_target_status)
7355         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7356         (insert_step_resume_breakpoint_at_sal)
7357         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7358         (set_step_info, print_stop_event, signal_stop_state)
7359         (signal_print_state, signal_pass_state, signal_stop_update)
7360         (signal_print_update, signal_pass_update)
7361         (update_signals_program_target, clear_exit_convenience_vars)
7362         (displaced_step_dump_bytes, update_observer_mode)
7363         (signal_catch_update, gdb_signal_from_command): Move
7364         declarations ...
7365         * infrun.h: ... to this new file.
7366         * amd64-tdep.c: Include infrun.h.
7367         * annotate.c: Include infrun.h.
7368         * arch-utils.c: Include infrun.h.
7369         * arm-linux-tdep.c: Include infrun.h.
7370         * arm-tdep.c: Include infrun.h.
7371         * break-catch-sig.c: Include infrun.h.
7372         * breakpoint.c: Include infrun.h.
7373         * common/agent.c: Include infrun.h instead of inferior.h.
7374         * corelow.c: Include infrun.h.
7375         * event-top.c: Include infrun.h.
7376         * go32-nat.c: Include infrun.h.
7377         * i386-tdep.c: Include infrun.h.
7378         * inf-loop.c: Include infrun.h.
7379         * infcall.c: Include infrun.h.
7380         * infcmd.c: Include infrun.h.
7381         * infrun.c: Include infrun.h.
7382         * linux-fork.c: Include infrun.h.
7383         * linux-nat.c: Include infrun.h.
7384         * linux-thread-db.c: Include infrun.h.
7385         * monitor.c: Include infrun.h.
7386         * nto-tdep.c: Include infrun.h.
7387         * procfs.c: Include infrun.h.
7388         * record-btrace.c: Include infrun.h.
7389         * record-full.c: Include infrun.h.
7390         * remote-m32r-sdi.c: Include infrun.h.
7391         * remote-mips.c: Include infrun.h.
7392         * remote-notif.c: Include infrun.h.
7393         * remote-sim.c: Include infrun.h.
7394         * remote.c: Include infrun.h.
7395         * reverse.c: Include infrun.h.
7396         * rs6000-tdep.c: Include infrun.h.
7397         * s390-linux-tdep.c: Include infrun.h.
7398         * solib-irix.c: Include infrun.h.
7399         * solib-osf.c: Include infrun.h.
7400         * solib-svr4.c: Include infrun.h.
7401         * target.c: Include infrun.h.
7402         * top.c: Include infrun.h.
7403         * windows-nat.c: Include infrun.h.
7404         * mi/mi-interp.c: Include infrun.h.
7405         * mi/mi-main.c: Include infrun.h.
7406         * python/py-threadevent.c: Include infrun.h.
7407
7408 2014-05-22  Pedro Alves  <palves@redhat.com>
7409
7410         * infrun.c (handle_inferior_event): Store the exit code for
7411         --return-child-result here, instead of ...
7412         (print_exited_reason): ... here.
7413
7414 2014-05-21  Pedro Alves  <palves@redhat.com>
7415
7416         PR gdb/13860
7417         * gdbthread.h (struct thread_control_state): New field
7418         `command_interp'.
7419         * infrun.c (follow_fork): Copy the new thread control field to the
7420         child fork thread.
7421         (clear_proceed_status_thread): Clear the new thread control field.
7422         (proceed): Set the new thread control field.
7423         * interps.h (command_interp): Declare.
7424         * interps.c (command_interpreter): New global.
7425         (command_interp): New function.
7426         (interp_exec): Set `command_interpreter' while here.
7427         * cli-out.c (cli_uiout_dtor): New function.
7428         (cli_ui_out_impl): Install it.
7429         * mi/mi-interp.c: Include cli-out.h.
7430         (mi_cmd_interpreter_exec): Add comment.
7431         (restore_current_uiout_cleanup): New function.
7432         (ui_out_free_cleanup): New function.
7433         (mi_on_normal_stop): If finishing an execution command started by
7434         a CLI command, or any kind of breakpoint-like event triggered,
7435         print the stop event to the output (CLI) stream.
7436         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7437
7438 2014-05-21  Pedro Alves  <palves@redhat.com>
7439
7440         * cli/cli-cmds.c (list_command): Handle the first "list" after the
7441         current source line having changed.
7442         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7443         * infrun.c (normal_stop): Adjust call to
7444         set_current_sal_from_frame.
7445         * source.c (clear_lines_listed_range): New function.
7446         (set_current_source_symtab_and_line, identify_source_line): Clear
7447         the lines listed range.
7448         (line_info): Handle the first "info line" after the current source
7449         line having changed.
7450         * stack.c (print_stack_frame): Remove center handling.
7451         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
7452         center sal.line.
7453
7454 2014-05-21  Pedro Alves  <palves@redhat.com>
7455
7456         * inf-child.c (inf_child_mourn_inferior): New function.
7457         * inf-child.h (inf_child_mourn_inferior): New declaration.
7458         * darwin-nat.c (darwin_mourn_inferior): Use
7459         inf_child_mourn_inferior.
7460         * gnu-nat.c (gnu_mourn_inferior): Likewise.
7461         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7462         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7463         * nto-procfs.c (procfs_mourn_inferior): Likewise.
7464         * windows-nat.c (windows_mourn_inferior): Likewise.
7465
7466 2014-05-21  Doug Evans  <xdje42@gmail.com>
7467
7468         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7469
7470 2014-05-21  Doug Evans  <xdje42@gmail.com>
7471
7472         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7473         (gdbscm_out_of_range_error): Ditto.
7474         (gdbscm_memory_error): Ditto.
7475         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7476         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7477         (gdbscm_out_of_range_error): Update.
7478         (gdbscm_memory_error): Update.
7479         (gdbscm_scm_to_target_string_unsafe): Delete.
7480
7481 2014-05-21  Pedro Alves  <palves@redhat.com>
7482
7483         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7484         globals.
7485         (inf_child_open_target): New function.
7486         (inf_child_open): Use inf_child_open_target to push the target
7487         instead of erroring out.
7488         (inf_child_disconnect, inf_child_close)
7489         (inf_child_maybe_unpush_target): New functions.
7490         (inf_child_target): Install inf_child_disconnect and
7491         inf_child_close.  Store a pointer to the returned object.
7492         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7493         declarations.
7494         * target.c (auto_connect_native_target): New global.
7495         (show_default_run_target): New function.
7496         (find_default_run_target): Return NULL if automatically connecting
7497         to the native target is disabled.
7498         (_initialize_target): Install set/show auto-connect-native-target.
7499         * NEWS: Mention "set auto-connect-native-target", and "target
7500         native".
7501         * linux-nat.c (super_close): New global.
7502         (linux_nat_close): Call super_close.
7503         (linux_nat_add_target): Store a pointer to the base class's
7504         to_close method.
7505         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7506         inf_child_maybe_unpush.
7507         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7508         already pushed.
7509         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7510         the inferior.  Use inf_child_maybe_unpush_target.
7511         (inf_ttrace_attach): Don't push the target if it is already
7512         pushed.
7513         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7514         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7515         after mourning the inferior.  Use inf_child_maybe_unpush_target.
7516         (darwin_attach_pid): Don't push the target if it is already
7517         pushed.
7518         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7519         mourning the inferior.  Use inf_child_maybe_unpush_target.
7520         (gnu_detach): Use inf_child_maybe_unpush_target.
7521         * go32-nat.c (go32_create_inferior): Don't push the target if it
7522         is already pushed.
7523         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7524         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7525         (procfs_open): Rename to ...
7526         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
7527         comments.  Can target_preopen before changing node.  Call
7528         inf_child_open_target to push the target explicitly.
7529         (procfs_attach): Don't push the target if it is already pushed.
7530         (procfs_detach): Use inf_child_maybe_unpush_target.
7531         (procfs_create_inferior): Don't push the target if it is already
7532         pushed.
7533         (nto_native_ops): New global.
7534         (procfs_open): Reimplement.
7535         (procfs_native_open): New function.
7536         (init_procfs_targets): Install procfs_native_open as to_open of
7537         "target native".  Store a pointer to the "native" target in
7538         nto_native_ops.
7539         * procfs.c (procfs_attach): Don't push the target if it is already
7540         pushed.
7541         (procfs_detach): Use inf_child_maybe_unpush_target.
7542         (procfs_mourn_inferior): Only unpush the target after mourning the
7543         inferior.  Use inf_child_maybe_unpush_target.
7544         (procfs_init_inferior): Don't push the target if it is already
7545         pushed.
7546         * windows-nat.c (do_initial_windows_stuff): Don't push the target
7547         if it is already pushed.
7548
7549 2014-05-21  Pedro Alves  <palves@redhat.com>
7550
7551         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7552         and "procfs" targets are now called "native" instead.
7553
7554 2014-05-21  Pedro Alves  <palves@redhat.com>
7555
7556         * go32-nat.c (go32_open): Delete.
7557         (go32_target): Don't override the to_open method.
7558
7559 2014-05-21  Pedro Alves  <palves@redhat.com>
7560
7561         * nto-procfs.c (procfs_can_run): New function.
7562         (nto_procfs_ops): New global.
7563         (init_procfs_targets): New, based on procfs_target.  Install
7564         "target native" in addition to "target procfs".
7565         (_initialize_procfs): Call init_procfs_targets instead of adding
7566         the target here.
7567
7568 2014-05-21  Pedro Alves  <palves@redhat.com>
7569
7570         * windows-nat.c (windows_target): Don't override to_shortname,
7571         to_longname or to_doc.
7572
7573 2014-05-21  Pedro Alves  <palves@redhat.com>
7574
7575         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7576         to_doc.
7577
7578 2014-05-21  Pedro Alves  <palves@redhat.com>
7579
7580         * darwin-nat.c (_initialize_darwin_inferior): Don't override
7581         to_shortname, to_longname or to_doc.
7582
7583 2014-05-21  Pedro Alves  <palves@redhat.com>
7584
7585         * go32-nat.c (go32_target): Don't override to_shortname,
7586         to_longname or to_doc.
7587
7588 2014-05-21  Pedro Alves  <palves@redhat.com>
7589
7590         * inf-child.c (inf_child_open): Remove mention of "child".
7591         (inf_child_target): Rename target to "native" instead of "child".
7592
7593 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7594
7595         * Makefile.in (SFILES): Delete "regset.c".
7596         (COMMON_OBS): Delete "regset.o".
7597         * regset.c: Remove.
7598         * regset.h (regset_alloc): Delete prototype.
7599
7600 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7601
7602         * sparc-linux-tdep.c (sparc32_linux_gregset)
7603         (sparc32_linux_fpregset): New static regset structures.
7604         (sparc32_linux_init_abi): Drop dynamic regset allocations.
7605         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7606         'fpregset' fields.
7607         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7608         (sparc64_linux_fpregset): New static regset structures.
7609         (sparc64_linux_init_abi): Drop dynamic regset allocations.
7610         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7611         New static regset structures.
7612         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7613         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7614         New static regset structures.
7615         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7616         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7617         New static regset structures.
7618         (sparc64obsd_init_abi): Drop dynamic regset allocations.
7619         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7620         New static regset structures.
7621         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7622
7623 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7624
7625         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7626         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7627         register maps ("regmaps") from "*regset" to "*regmap".  Do this
7628         for all regmap types and variables.
7629         * sparc-linux-tdep.c (sparc32_linux_step_trap)
7630         (sparc32_linux_supply_core_gregset)
7631         (sparc32_linux_collect_core_gregset)
7632         (sparc32_linux_supply_core_fpregset)
7633         (sparc32_linux_collect_core_fpregset): Likewise.
7634         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7635         (sparc_gregmap, sparc_fpregmap): ... these.
7636         (sparc_supply_gregset, sparc_collect_gregset)
7637         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7638         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7639         (_initialize_sparc_nat): Rename regmaps.
7640         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7641         (sparc_gregmap, sparc_fpregmap): ... these.
7642         (sparc_supply_gregset, sparc_collect_gregset)
7643         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7644         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7645         Rename macros to...
7646         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7647         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7648         Likewise.
7649         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7650         Rename to...
7651         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7652         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7653         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7654         regmaps.
7655         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7656         (sparc32_bsd_fpregset): Rename to...
7657         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7658         (sparc32_bsd_fpregmap): ... these.
7659         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7660         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7661         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7662         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7663         (struct sparc_gregmap, struct sparc_fpregmap)
7664         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7665         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7666         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7667         (sparc32_supply_regset, sparc32_collect_gregset)
7668         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7669         prototypes.
7670         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7671         (sparc64_linux_ptrace_gregmap): ... this.
7672         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7673         (_initialize_sparc64_linux_nat): Rename regmaps.
7674         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7675         (sparc64_linux_core_gregmap): ... this.
7676         (sparc64_linux_supply_core_gregset)
7677         (sparc64_linux_collect_core_gregset)
7678         (sparc64_linux_supply_core_fpregset)
7679         (sparc64_linux_collect_core_fpregset): Rename regmaps.
7680         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7681         (sparc64_sol2_fpregset): Rename to...
7682         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7683         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7684         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7685         regmaps.
7686         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7687         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7688         (sparc64_bsd_fpregset): Rename to...
7689         (struct sparc_gregmap, sparc64_sol2_gregmap)
7690         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7691         (sparc64_bsd_fpregmap): ... these.
7692         (sparc64_supply_gregset, sparc64_collect_gregset)
7693         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7694         prototypes.
7695         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7696         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7697         (sparc64fbsd_gregmap): ... this.
7698         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7699         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7700         Rename regmaps.
7701         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7702         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7703         (sparc64nbsd_collect_fpregset): Likewise.
7704         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7705         (sparc64nbsd_gregmap): ... this.
7706         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7707         regmaps.
7708         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7709         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7710         (sparc64obsd_gregmap): ... this.
7711         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7712         regmaps.
7713         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7714         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7715         (sparc32nbsd_gregmap): ... this.
7716         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7717         regmaps.
7718
7719 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7720
7721         * score-tdep.c (score7_linux_gregset): New static regset
7722         structure.
7723         (score7_linux_regset_from_core_section): Remove dynamic regset
7724         allocation.
7725         (score_gdbarch_init): Drop allocation of tdep structure.
7726         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7727
7728 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7729
7730         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7731         regset structures.
7732         (am33_regset_from_core_section): Remove dynamic regset
7733         allocations.
7734
7735 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7736
7737         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7738         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7739         structures.
7740         (mips_linux_regset_from_core_section): Remove dynamic regset
7741         allocations.
7742         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7743         'gregset64', 'fpregset', and 'fpregset64'.
7744         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7745         deleted tdep fields.
7746
7747 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7748
7749         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7750         regset structures.
7751         (amd64_regset_from_core_section): Remove dynamic regset
7752         allocations.
7753         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7754         structure.
7755         (amd64obsd_regset_from_core_section): Remove dynamic regset
7756         allocation.
7757         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7758         Likewise.
7759         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7760         x86-common regset supply function.
7761         * i386-tdep.c (i386_collect_gregset): Make static.
7762         (i386_gregset): New global regset structure.
7763         (i386_fpregset, i386_xstateregset): New static regset structures.
7764         (i386_regset_from_core_section): Remove dynamic regset
7765         allocations.
7766         (i386_gdbarch_init): Remove initialization of tdep fields
7767         'gregset', 'fpregset', and 'xstateregset'.
7768         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7769         'fpregset', and 'xstateregset'.
7770         (i386_collect_gregset): Remove prototype.
7771         (i386_gregset): New declaration.
7772         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7773         structure.
7774         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7775         allocation.
7776
7777 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7778
7779         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7780         (arm_linux_vfpregset): New static regset structures.
7781         (arm_linux_regset_from_core_section): Remove dynamic allocation of
7782         regset structures.
7783         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7784         and 'vfpregset' fields.
7785
7786 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7787
7788         * aarch64-linux-tdep.c (aarch64_linux_gregset)
7789         (aarch64_linux_fpregset): New static regset structures.
7790         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7791         of regset structures.
7792         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7793         'fpregset' fields.
7794
7795 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7796
7797         * regset.h (struct regset): Remove gdbarch field.
7798         * regset.c (regset_alloc): Drop initialization of gdbarch field.
7799         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7800         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7801         Likewise.
7802         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7803         (ppc32_linux_fpregset, ppc32_linux_vrregset)
7804         (ppc32_linux_vsxregset): Likewise.
7805         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7806         via the regcache instead of the regset.
7807         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7808         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7809         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7810         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7811         Likewise.
7812
7813 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7814
7815         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7816         Constify structures.
7817         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7818         (alphanbsd_aout_gregset): Likewise.
7819         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7820         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7821         Likewise.
7822         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7823         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7824         Likewise.
7825         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7826         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7827         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7828         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7829         * m88k-tdep.c (m88k_gregset): Likewise.
7830         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7831         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7832         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7833         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7834         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7835         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7836         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7837         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7838         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7839         Likewise.
7840         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7841         * sh-tdep.h (sh_corefile_gregset): Likewise.
7842         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7843         * vax-tdep.c (vax_gregset): Likewise.
7844
7845 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
7846
7847         Fix TLS access for -static -pthread.
7848         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7849         (try_thread_db_load_1): Initialize it.
7850         (thread_db_get_thread_local_address): Call it if LM is zero.
7851         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7852         * target.h (struct target_ops) (to_get_thread_local_address): Add
7853         load_module_addr comment.
7854
7855 2014-05-21  Pedro Alves  <palves@redhat.com>
7856
7857         * dcache.c (dcache_read_memory_partial): If reading the cache line
7858         fails, fallback to reading just the memory the caller wanted.
7859
7860 2014-05-20  Doug Evans  <dje@google.com>
7861
7862         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7863         instead of get_current_arch.
7864
7865 2014-05-20  Pedro Alves  <palves@redhat.com>
7866
7867         * NEWS: Mention that compare-sections now works with all targets.
7868
7869         * remote.c (PACKET_qCRC): New enum value.
7870         (remote_verify_memory): Don't send qCRC if the target has no
7871         execution.  Use packet_support/packet_ok.  If the target doesn't
7872         support the qCRC packet, fallback to a deep memory copy.
7873         (compare_sections_command): Say "target image" instead of "remote
7874         executable".
7875         (_initialize_remote): Add PACKET_qCRC to the list of config
7876         packets that have no associated command.  Extend comment.
7877         * target.c (simple_verify_memory, default_verify_memory): New
7878         function.
7879         * target.h (struct target_ops) <to_verify_memory>: Default to
7880         default_verify_memory.
7881         (simple_verify_memory): New declaration.
7882         * target-delegates.c: Regenerate.
7883
7884 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
7885
7886         * record-btrace.c (record_btrace_step_thread): Check for empty history.
7887
7888 2014-05-20  Hui Zhu  <hui@codesourcery.com>
7889             Yao Qi  <yao@codesourcery.com>
7890
7891         PR backtrace/16558
7892         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7893         and change address of sp and pc.
7894
7895 2014-05-19  Tom Tromey  <tromey@redhat.com>
7896
7897         * gdbtypes.c (rank_function): Use XNEWVEC.
7898         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7899
7900 2014-05-19  Doug Evans  <dje@google.com>
7901
7902         * dwarf2read.c (build_type_psymtabs_1): Renamed from
7903         build_type_unit_groups and moved closer to only caller.  Remove
7904         arguments.  All references updated.  Remove outdated .gdb_index
7905         comment.
7906         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7907         build_type_psymtabs_1.
7908
7909 2014-05-19  Doug Evans  <dje@google.com>
7910
7911         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7912         n_type_unit_groups, all_type_unit_groups.  All uses removed.
7913         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7914         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
7915         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
7916         (add_type_unit_group_to_table): Delete.
7917
7918 2014-05-19  Doug Evans  <dje@google.com>
7919
7920         * eval.c (evaluate_subexp_standard): Add some comments.
7921
7922 2014-05-17  Doug Evans  <xdje42@gmail.com>
7923
7924         * progspace.c (remove_program_space): Delete, unused.
7925         * progspace.h (remove_program_space): Ditto.
7926
7927 2014-05-17  Doug Evans  <xdje42@gmail.com>
7928
7929         * inferior.c (prune_inferiors): Fix comment.
7930         (remove_inferior_command): Call prune_program_spaces.
7931
7932 2014-05-16  Doug Evans  <dje@google.com>
7933
7934         New command line option -D.
7935         * NEWS: Mention it.
7936         * main.c (set_gdb_data_directory): New function.
7937         (captured_main): Recognize -D.  Flag error for --data-directory "".
7938         Call set_gdb_data_directory.
7939         (print_gdb_help): Print --data-directory, -D.
7940         * main.h (set_gdb_data_directory): Declare.
7941         * top.c (staged_gdb_datadir): New static global.
7942         (set_gdb_datadir): Call set_gdb_data_directory
7943         (show_gdb_datadir): New function.
7944         (init_main): Update init of data-directory parameter.
7945
7946 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
7947
7948         Import the "dirfd" gnulib module.
7949         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
7950         * gnulib/aclocal.m4: Update.
7951         * gnulib/config.in: Update.
7952         * gnulib/configure: Update.
7953         * gnulib/import/Makefile.am: Update.
7954         * gnulib/import/Makefile.in: Update.
7955         * gnulib/import/dirfd.c: New.
7956         * gnulib/import/m4/dirfd.m4: New.
7957         * gnulib/import/m4/gnulib-cache.m4: Update.
7958         * gnulib/import/m4/gnulib-comp.m4: Update.
7959
7960 2014-05-16  Pierre Muller  <muller@sourceware.org>
7961             Yao Qi  <yao@codesourcery.com>
7962
7963         * valprint.c (print_wchar): Move the code on checking whether
7964         W is a printable wide char to the default branch of switch
7965         statement below.  Call wchar_printable instead of gdb_iswprint.
7966
7967 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
7968
7969         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
7970         ldr.w and ldrd instructions.
7971
7972 2014-05-15  Doug Evans  <dje@google.com>
7973
7974         * dwarf2read.c (read_structure_type): Delete outdated comments.
7975
7976 2014-05-14  Tom Tromey  <tromey@redhat.com>
7977
7978         * macrocmd.c (print_macro_definition): Reindent.
7979
7980 2014-05-13  Doug Evans  <xdje42@gmail.com>
7981
7982         * python/py-cmd.c (cmdpy_completer): Add comment.
7983         (completers): Make const.
7984
7985 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
7986
7987         * infrun.c (resume): Remove should_resume (unused).  Move up
7988         declaration of resume_ptid.
7989
7990 2014-05-13  Tom Tromey  <tromey@redhat.com>
7991
7992         * language.h (unop_type_check): Remove.
7993         (binop_type_check): Don't declare.
7994
7995 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
7996
7997         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
7998         call to regcache_raw_collect.
7999
8000 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
8001
8002         * mi/mi-console.c (mi_console_raw_packet): Use the value from
8003         mi_console->quote as the quoting character.
8004
8005 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
8006
8007         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8008
8009 2014-04-29  Tom Tromey  <tromey@redhat.com>
8010
8011         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8012         "show debug varobj".
8013
8014 2014-05-07  Kyle McMartin  <kyle@redhat.com>
8015
8016         Pushed by Joel Brobecker  <brobecker@adacore.com>.
8017         * aarch64-tdep.c (aarch64_software_single_step): New function.
8018         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8019         with aarch64_software_single_step.
8020
8021 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
8022
8023         GDB 7.7.1 released.
8024
8025 2014-05-05  Keith Seitz  <keiths@redhat.com>
8026
8027         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8028         variable or history value is successfully parsed.
8029
8030 2014-05-05  Yao Qi  <yao@codesourcery.com>
8031             Pedro Alves  <palves@redhat.com>
8032
8033         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8034         address of blocks that intersects the requested range.  Trim
8035         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8036         sections.
8037         * ctf.c (ctf_xfer_partial): Likewise.
8038
8039 2014-05-05  Yao Qi  <yao@codesourcery.com>
8040
8041         * printcmd.c (display_command): Remove the check to
8042         target_has_execution.
8043
8044 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
8045
8046         * ppcobsd-nat.c: Include "obsd-nat.h".
8047         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8048         add_target.
8049         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8050
8051 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
8052
8053         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8054         and 16-bit signed and unsigned arguments.  Update comment.
8055         (stap_parse_probe_arguments): Extend code to handle such
8056         arguments.  Use warning instead of complaint to notify about
8057         unrecognized bitness.
8058
8059 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
8060
8061         PR breakpoints/16889
8062         * stap-probe.c (stap_parse_probe_arguments): Simplify
8063         check for non-prefixed probes (i.e., probes whose
8064         arguments do not start with "N@").  Always set the
8065         argument type to a sane value.
8066
8067 2014-05-01  David Taylor  <dtaylor@emc.com>
8068
8069         * remote.c (compare_sections_command): Add -r option to compare
8070         all loadable read-only sections.
8071
8072 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
8073
8074         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8075         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8076         Update all callers.
8077         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8078         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8079         Remove unused CORE_ADDR argument.  Update all callers.
8080
8081 2014-04-29  Pedro Alves  <palves@redhat.com>
8082
8083         * remote.c (struct packet_config) <detect>: Extend comment.
8084         (add_packet_config_cmd): Don't set the config's detect or support
8085         fields here.
8086         (init_all_packet_configs): Also initialize the config's 'detect'
8087         field.
8088         (reset_all_packet_configs_support): New function.
8089         (remote_open_1): Call reset_all_packet_configs_support instead of
8090         init_all_packet_configs.
8091         (_initialize_remote): Initialize all packet configs.  Assert that
8092         all packets have an associated command, except a few known
8093         outliers.
8094
8095 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8096
8097         * dwarf2read.c (read_subrange_type): Handle dynamic
8098         DW_AT_lower_bound attributes.
8099
8100 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8101
8102         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8103         dynamic bounds before computing its upper bound.
8104         (ada_discrete_type_low_bound): Same as above with the lower bound.
8105
8106 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8107
8108         * dwarf2read.c (is_dynamic_type): Return true for dynamic
8109         range types.  Adjust the array handling implementation to
8110         take advantage of this change.
8111         (resolve_dynamic_range): New function, mostly extracted from
8112         resolve_dynamic_bounds.
8113         (resolve_dynamic_array): New function, mostly extracted from
8114         resolve_dynamic_bounds.
8115         (resolve_dynamic_bounds): Delete.
8116         (resolve_dynamic_type): Reimplement.  Add handling of
8117         TYPE_CODE_RANGE types.
8118
8119 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8120
8121         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8122         handling of parallel ___XA types.
8123
8124 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8125
8126         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8127         unnecessary second call to static_unwrap_type.
8128
8129 2014-04-27  Hui Zhu  <hui@codesourcery.com>
8130
8131         * stack.c (print_frame_info): Call do_gdb_disassembly with
8132         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8133
8134 2014-04-26  Doug Evans  <xdje42@gmail.com>
8135
8136         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8137
8138 2014-04-25  Pedro Alves  <palves@redhat.com>
8139
8140         PR server/16255
8141         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8142         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
8143         and newline from built string.
8144         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8145         (linux_ptrace_attach_fail_reason): ... this.
8146         * linux-nat.c (linux_nat_attach): Adjust to use
8147         linux_ptrace_attach_fail_reason.
8148
8149 2014-04-25  Pedro Alves  <palves@redhat.com>
8150
8151         * remote.c (struct remote_state): Remove multi_process_aware,
8152         non_stop_aware, cond_tracepoints, cond_breakpoints,
8153         breakpoint_commands, fast_tracepoints, static_tracepoints,
8154         install_in_trace, disconnected_tracing,
8155         enable_disable_tracepoints, string_tracing, and
8156         augmented_libraries_svr4_read fields.
8157         (remote_multi_process_p): Move further below in the file.
8158         (struct packet_config): Add comments.
8159         (update_packet_config): Delete function.
8160         (show_packet_config_cmd): Use packet_config_support.
8161         (add_packet_config_cmd): Use NULL as set callback.
8162         (packet_ok): "set remote foo-packet"-style commands no longer
8163         change config->supported -- adjust.
8164         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8165         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8166         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8167         (PACKET_QNonStop, PACKET_multiprocess_feature)
8168         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8169         (PACKET_DisconnectedTracing_feature)
8170         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8171         (set_remote_protocol_packet_cmd): Delete function.
8172         (packet_config_support, packet_support): New functions.
8173         (set_remote_protocol_Z_packet_cmd): Don't call
8174         update_packet_config.
8175         (remote_query_attached, remote_pass_signals)
8176         (remote_program_signals, remote_threads_info)
8177         (remote_threads_extra_info, remote_start_remote): Use
8178         packet_support.
8179         (remote_start_remote): Use packet_config_support and
8180         packet_support.
8181         (init_all_packet_configs): Set all packets to unknown support,
8182         instead of calling update_packet_config.
8183         (remote_check_symbols): Use packet_support.
8184         (remote_supported_packet): Unconditionally set the packet config's
8185         support status.
8186         (remote_multi_process_feature, remote_non_stop_feature)
8187         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8188         (remote_breakpoint_commands_feature)
8189         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8190         (remote_install_in_trace_feature)
8191         (remote_disconnected_tracing_feature)
8192         (remote_enable_disable_tracepoint_feature)
8193         (remote_string_tracing_feature)
8194         (remote_augmented_libraries_svr4_read_feature): Delete functions.
8195         (remote_protocol_features): Adjust to use remote_supported_packet
8196         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8197         "ConditionalTracepoints", "ConditionalBreakpoints",
8198         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8199         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8200         "EnableDisableTracepoints", and "tracenz".
8201         (remote_query_supported): Use packet_support.
8202         (remote_open_1): Adjust.
8203         (extended_remote_attach_1): Use packet_support.  Switch on the
8204         result of packet_ok instead of checking whether the packet ended
8205         up disabled.
8206         (remote_vcont_resume): Use packet_support.
8207         (remote_resume, remote_stop_ns, fetch_register_using_p)
8208         (remote_prepare_to_store, store_register_using_P)
8209         (check_binary_download, remote_write_bytes): Use packet_support.
8210         (remote_vkill): Use packet_support.  Switch on the result of
8211         packet_ok instead of checking whether the packet ended up
8212         disabled.
8213         (extended_remote_supports_disable_randomization): Use
8214         packet_support.
8215         (extended_remote_run): Switch on the result of packet_ok instead
8216         of checking whether the packet ended up disabled.
8217         (remote_insert_breakpoint, remote_remove_breakpoint)
8218         (remote_insert_watchpoint, remote_remove_watchpoint)
8219         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8220         packet_support.
8221         (remote_search_memory): Use packet_config_support.
8222         (remote_get_thread_local_address, remote_get_tib_address)
8223         (remote_hostio_send_command, remote_can_execute_reverse): Use
8224         packet_support.
8225         (remote_supports_cond_tracepoints)
8226         (remote_supports_cond_breakpoints)
8227         (remote_supports_fast_tracepoints)
8228         (remote_supports_static_tracepoints)
8229         (remote_supports_install_in_trace)
8230         (remote_supports_enable_disable_tracepoint)
8231         (remote_supports_string_tracing)
8232         (remote_can_run_breakpoint_commands): Rewrite, checking whether
8233         the packet config says the feature is enabled or disabled.
8234         (remote_download_tracepoint, remote_trace_set_readonly_regions)
8235         (remote_get_trace_status): Use packet_support.
8236         (remote_set_disconnected_tracing): Adjust to check whether the
8237         feature is enabled with packet_support.
8238         (remote_set_trace_buffer_size, remote_use_agent)
8239         (remote_can_use_agent, remote_supports_btrace): Use
8240         packet_support.
8241         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8242         Use packet_config_support.
8243         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8244         the packet config says the feature is enabled or disabled.
8245         (set_range_stepping): Use packet_support.
8246
8247 2014-04-25  Tom Tromey  <tromey@redhat.com>
8248
8249         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8250         argument.
8251
8252 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
8253
8254         * NEWS: Mention support for C99 variable length arrays.
8255
8256 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
8257
8258         * ada-lang.c (standard_exc): Expand introductory comment.
8259
8260 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
8261             Walfred Tedeschi  <walfred.tedeschi@intel.com>
8262
8263         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8264         AVX512 registers.
8265         (amd64_linux_read_description): Add code to handle AVX512 xstate
8266         mask and return respective tdesc.
8267         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8268         and features/i386/x32-avx512-linux.c.
8269         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8270         (amd64_linux_core_read_description): Add code to handle AVX512
8271         xstate mask and return respective tdesc.
8272         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8273         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8274         calculation.
8275         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8276         (tdesc_amd64_avx512_linux): New prototype.
8277         (tdesc_x32_avx512_linux): Likewise.
8278         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8279         features/i386/x32-avx512.c.
8280         (amd64_ymm_avx512_names): New register names for pseudo
8281         registers YMM16-31.
8282         (amd64_ymmh_avx512_names): New register names for raw registers
8283         YMMH16-31.
8284         (amd64_k_names): New register names for K registers.
8285         (amd64_zmmh_names): New register names for ZMM raw registers.
8286         (amd64_zmm_names): New registers names for ZMM pseudo registers.
8287         (amd64_xmm_avx512_names): New register names for XMM16-31
8288         registers.
8289         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8290         registers.
8291         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8292         if feature is present.
8293         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8294         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8295         (AMD64_NUM_REGS): Adjust to new number of registers.
8296         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8297         registers supplied via XSTATE by AVX512 registers.
8298         (i386_linux_read_description): Add case for AVX512.
8299         * i386-linux-tdep.c: Include i386-avx512-linux.c.
8300         (i386_linux_gregset_reg_offset): Add AVX512 registers.
8301         (i386_linux_core_read_description): Add case for AVX512.
8302         (i386_linux_init_abi): Install supported register note section
8303         for AVX512.
8304         (_initialize_i386_linux_tdep): Add call to tdesc init function for
8305         AVX512.
8306         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8307         registers to be number of zmm7h + 1.
8308         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8309         * i386-tdep.c: Include features/i386/i386-avx512.c.
8310         (i386_zmm_names): Add ZMM pseudo register names array.
8311         (i386_zmmh_names): Add ZMM raw register names array.
8312         (i386_k_names): Add K raw register names array.
8313         (num_lower_zmm_regs): Add constant for the number of lower ZMM
8314         registers. AVX512 has 16 more ZMM registers than there are YMM
8315         registers.
8316         (i386_zmmh_regnum_p): Add function to look up register number of
8317         ZMM raw registers.
8318         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8319         (i386_k_regnum_p): Likewise for K raw registers.
8320         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8321         registers added by AVX512.
8322         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8323         registers added by AVX512.
8324         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8325         added by AVX512.
8326         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8327         (i386_pseudo_register_name): Add ZMM pseudo registers.
8328         (i386_zmm_type): Construct and return vector registers type for ZMM
8329         registers.
8330         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8331         ZMM0-31 pseudo registers and K registers.
8332         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8333         and YMM16-31 registers from register cache.
8334         (i386_pseudo_register_write): Add code to write  K, ZMM and
8335         YMM16-31 registers.
8336         (i386_register_reggroup_p): Add code to include/exclude AVX512
8337         registers in/from respective register groups.
8338         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8339         registers if feature is present in xcr0.
8340         (i386_gdbarch_init): Add code to initialize AVX512 feature
8341         variables in tdep structure, wire in pseudo registers and call
8342         initialize_tdesc_i386_avx512.
8343         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8344         variables.
8345         (i386_regnum): Add AVX512 registers.
8346         (I386_SSE_NUM_REGS): New define for number of SSE registers.
8347         (I386_AVX_NUM_REGS): Likewise for AVX registers.
8348         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8349         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8350         512 bits wide.
8351         (i386_xmm_avx512_regnum_p): New prototype for register look up.
8352         (i386_ymm_avx512_regnum_p): Likewise.
8353         (i386_k_regnum_p): Likewise.
8354         (i386_zmm_regnum_p): Likewise.
8355         (i386_zmmh_regnum_p): Likewise.
8356         * i387-tdep.c : Update year in copyright notice.
8357         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8358         XSAVE buffer.
8359         (XSAVE_YMM_AVX512_ADDR): New macro.
8360         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8361         XSAVE buffer.
8362         (XSAVE_XMM_AVX512_ADDR): New macro.
8363         (xsave_avx512_k_offset): New table for K register offsets in
8364         XSAVE buffer.
8365         (XSAVE_AVX512_K_ADDR): New macro.
8366         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8367         in XSAVE buffer.
8368         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8369         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8370         buffer.
8371         (i387_collect_xsave): Add code to collect AVX512 registers from
8372         XSAVE buffer.
8373         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8374         of XMM16-31 registers.
8375         (I387_NUM_K_REGS): New define for number of K registers.
8376         (I387_K0_REGNUM): New define for K0 register number.
8377         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8378         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8379         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8380         registers.
8381         (I387_YMM16H_REGNUM): New define for YMM16H register number.
8382         (I387_XMM16_REGNUM): New define for XMM16 register number.
8383         (I387_YMM0_REGNUM): New define for YMM0 register number.
8384         (I387_KEND_REGNUM): New define for last K register number.
8385         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8386         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8387         number.
8388         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8389         number.
8390         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8391         size.
8392         * features/Makefile: Add AVX512 related files.
8393         * features/i386/32bit-avx512.xml: New file.
8394         * features/i386/64bit-avx512.xml: Likewise.
8395         * features/i386/amd64-avx512-linux.c: Likewise.
8396         * features/i386/amd64-avx512-linux.xml: Likewise.
8397         * features/i386/amd64-avx512.c: Likewise.
8398         * features/i386/amd64-avx512.xml: Likewise.
8399         * features/i386/i386-avx512-linux.c: Likewise.
8400         * features/i386/i386-avx512-linux.xml: Likewise.
8401         * features/i386/i386-avx512.c: Likewise.
8402         * features/i386/i386-avx512.xml: Likewise.
8403         * features/i386/x32-avx512-linux.c: Likewise.
8404         * features/i386/x32-avx512-linux.xml: Likewise.
8405         * features/i386/x32-avx512.c: Likewise.
8406         * features/i386/x32-avx512.xml: Likewise.
8407         * regformats/i386/amd64-avx512-linux.dat: New file.
8408         * regformats/i386/amd64-avx512.dat: Likewise.
8409         * regformats/i386/i386-avx512-linux.dat: Likewise.
8410         * regformats/i386/i386-avx512.dat: Likewise.
8411         * regformats/i386/x32-avx512-linux.dat: Likewise.
8412         * regformats/i386/x32-avx512.dat: Likewise.
8413         * NEWS: Add note about new support for AVX512.
8414
8415
8416 2014-04-23  Pedro Alves  <palves@redhat.com>
8417
8418         * breakpoint.c (insert_bp_location): Tolerate errors if the
8419         breakpoint is set in a user-loaded objfile.
8420         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
8421         location is marked shlib_disabled.  If the breakpoint is set in a
8422         user-loaded objfile is a GDB-side memory breakpoint, validate it
8423         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
8424         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
8425         flag.
8426         * mem-break.c (memory_validate_breakpoint): New function.
8427         * objfiles.c (userloaded_objfile_contains_address_p): New
8428         function.
8429         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8430         * target.h (memory_validate_breakpoint): New declaration.
8431
8432 2014-04-23  Pedro Alves  <palves@redhat.com>
8433
8434         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8435         the breakpoint is set in a shared library, only suppress
8436         errors for software breakpoints, not hardware breakpoints.
8437
8438 2014-04-22  Pedro Alves  <palves@redhat.com>
8439
8440         * infrun.c (schedlock_applies): New function, factored out from
8441         find_thread_needs_step_over.
8442         (find_thread_needs_step_over): Use it.
8443         (switch_back_to_stepped_thread): Always clear trap_expected if the
8444         step over is finished.  Return early if scheduler locking applies.
8445         Look for the stepping thread and a potential step-over thread with
8446         a single loop.
8447         (currently_stepping_or_nexting_callback): Delete.
8448
8449 2014-04-22  Nick Clifton  <nickc@redhat.com>
8450
8451         * NEWS: Mention that ARM sim now supports tracing.
8452
8453 2014-04-22  Yao Qi  <yao@codesourcery.com>
8454
8455         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8456         to ...
8457         * tracefile.c (tracefile_fetch_registers): ... it.  New
8458         function.
8459         * tracefile.h (tracefile_fetch_registers): Declare.
8460         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
8461         tracefile_fetch_registers.
8462
8463 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
8464
8465         PR gdb/14018
8466         * windows-nat.c (thread_rec): Don't display a warning when
8467         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
8468         fails for any reason, set th->suspended to -1, so that we don't
8469         try to resume such a thread.  Also, don't return NULL in these
8470         cases, to avoid completely ruin the session due to "PC register is
8471         not available" error.
8472         (do_windows_fetch_inferior_registers): Check errors in
8473         GetThreadContext call.
8474         (windows_continue): Accept an additional argument KILLED; if not
8475         zero, ignore errors in the SetThreadContext call, since the
8476         inferior was killed and is shutting down.
8477         (windows_resume, get_windows_debug_event)
8478         (windows_create_inferior, windows_mourn_inferior)
8479         (windows_kill_inferior): All callers of windows_continue changed
8480         to adjust to its new calling sequence.
8481
8482 2014-04-19  Yao Qi  <yao@codesourcery.com>
8483
8484         * ctf.c (ctf_open): Call post_create_inferior.
8485
8486 2014-04-19  Yao Qi  <yao@codesourcery.com>
8487
8488         * ctf.c (handle_id): New static variable.
8489         (ctf_open_dir): Get handle_id from bt_context_add_trace return
8490         value.  Get the declaration of event "register" and get length
8491         of field "contents".
8492
8493 2014-04-19  Yao Qi  <yao@codesourcery.com>
8494
8495         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8496
8497 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
8498
8499         * valops.c (oload_method_static): Remove unnecessary argument
8500         METHOD.  Update all callers.
8501
8502 2014-04-18  Pedro alves  <palves@redhat.com>
8503             Tom Tromey  <tromey@redhat.com>
8504
8505         PR backtrace/15558
8506         * frame.c (get_prev_frame_1): Rename to ...
8507         (get_prev_frame_always): ... this, and make extern.  Adjust.
8508         (skip_artificial_frames): Use get_prev_frame_always.
8509         (frame_unwind_caller_id, frame_pop, get_prev_frame)
8510         (get_frame_unwind_stop_reason): Adjust to rename.
8511         * frame.h (get_prev_frame_always): Declare.
8512         * inline-frame.c: Include frame.h.
8513         (inline_frame_this_id): Use get_prev_frame_always.
8514
8515 2014-04-18  Tristan Gingold  <gingold@adacore.com>
8516
8517         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8518         code by using bfd_mach_o_get_base_address.
8519
8520 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
8521
8522         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8523         (spu_ax_pseudo_register_collect): New function.
8524         (spu_ax_pseudo_register_push_stack): Likewise.
8525         (spu_dwarf_reg_to_regnum): Likewise.
8526         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
8527
8528 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
8529
8530         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8531         Replace FRAME argument with FRAME_ID.
8532         * gdbarch.c, gdbarch.h: Regenerate.
8533         * findvar.c (default_value_from_register): Add GDBARCH argument;
8534         replace FRAME by FRAME_ID.  No longer call get_frame_id.
8535         (value_from_register): Update call to gdbarch_value_from_register.
8536         * value.h (default_value_from_register): Update prototype.
8537         * s390-linux-tdep.c (s390_value_from_register): Update interface
8538         and call to default_value_from_register.
8539         * spu-tdep.c (spu_value_from_register): Likewise.
8540
8541         * findvar.c (address_from_register): Remove TYPE argument.
8542         Do not call value_from_register; use gdbarch_value_from_register
8543         with null_frame_id instead.
8544         * value.h (address_from_register): Update prototype.
8545         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8546         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8547         address_from_register interface change.
8548
8549 2014-04-17  Yao Qi  <yao@codesourcery.com>
8550
8551         * gdbtypes.h: Update comments to link to types and macros'
8552         definitions.
8553
8554 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
8555
8556         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8557
8558 2014-04-16  Keith Seitz  <keiths@redhat.com>
8559
8560         PR gdb/15827
8561         * dwarf2read.c (skip_one_die): Check that all relative-offset
8562         sibling DIEs fall within range of the current reader's buffer.
8563         (read_partial_die): Likewise.
8564
8565 2014-04-16  Keith Seitz  <keiths@redhat.com>
8566
8567         PR c++/16597
8568         * cp-namespace.c (lookup_symbol_file): If the type name of
8569         `this' is NULL, return immediately.
8570
8571 2014-04-14  Keith Seitz  <keiths@redhat.com>
8572
8573         PR c++/16253
8574         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8575         from symbol_matches_domain in symtab.c. All local callers
8576         of symbol_matches_domain updated.
8577         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8578         search STRUCT_DOMAIN.
8579         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8580         independently.  standard_lookup will do that automatically.
8581         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8582         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8583         (cp_lookup_symbol_in_namespace): Likewise.
8584         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8585         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8586         may return a STRUCT_DOMAIN match.
8587         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8588         * cp-support.c: Include language.h.
8589         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8590         VAR_DOMAIN.
8591         * psymtab.c (match_partial_symbol): Compare the requested
8592         domain with the symbol's domain directly.
8593         (lookup_partial_symbol): Likewise.
8594         * symtab.c (lookup_symbol_in_language): Explain when/why
8595         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8596         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8597         appropriate languages.
8598         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8599         and moved to ada-lang.c
8600         (lookup_block_symbol): Explain that this function only returns
8601         symbol matching the requested DOMAIN.
8602         Compare the requested domain with the symbol's domain directly.
8603         (iterate_over_symbols): Compare the requested domain with the
8604         symbol's domain directly.
8605         * symtab.h (symbol_matches_domain): Remove.
8606
8607 2014-04-14  Tom Tromey  <tromey@redhat.com>
8608
8609         PR c++/15246:
8610         * c-exp.y (type_aggregate_p): New function.
8611         (qualified_name, classify_inner_name): Use it.
8612         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8613         and TYPE_TARGET_TYPE of an enum type.
8614         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8615         an enum type.
8616         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8617         handle TYPE_DECLARED_CLASS.
8618         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8619         types.
8620         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8621         * valops.c (enum_constant_from_type): New function.
8622         (value_aggregate_elt): Use it.
8623         * cp-namespace.c (cp_lookup_nested_symbol): Handle
8624         TYPE_CODE_ENUM.
8625
8626 2014-04-14  Tom Tromey  <tromey@redhat.com>
8627
8628         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8629         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8630         const.
8631         * value.h (value_aggregate_elt): Update.
8632
8633 2014-04-14  Tom Tromey  <tromey@redhat.com>
8634
8635         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8636
8637 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8638
8639         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8640         (evaluate_subexp_standard): Pass noside argument.
8641         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8642         if noside equals EVAL_NORMAL. If the subscript yields a vla type
8643         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8644         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8645         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8646
8647 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8648
8649         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8650         points to a constant blob.
8651
8652 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8653
8654         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8655         property and store it as the high bound and flag the range accordingly.
8656         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8657         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8658         * gdbtypes.h (enum range_flags): New enum.
8659         (struct range_bounds): Add flags member.
8660
8661 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8662
8663         * c-typeprint.c (c_type_print_varspec_suffix): Added
8664         check for not yet resolved high bound. If unresolved, print
8665         "variable length" string to the console instead of random
8666         length.
8667
8668 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8669
8670         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8671         value.
8672         (ada_template_to_fixed_record_type_1): Likewise.
8673         (ada_to_fixed_type_1): Likewise.
8674         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8675         (cp_print_value): Likewise.
8676         * d-valprint.c (dynamic_array_type): Likewise.
8677         * findvar.c (address_of_variable): Likewise.
8678         * jv-valprint.c (java_value_print): Likewise.
8679         * valops.c (value_ind): Likewise.
8680         * value.c (coerce_ref): Likewise.
8681
8682 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8683
8684         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8685         value and retrieve the dynamic type size.
8686
8687 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8688
8689         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8690         passed to sizeof is dynamic evaluate the argument to compute the length.
8691
8692 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8693             Joel Brobecker  <brobecker@adacore.com>
8694
8695         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8696         (dwarf2_evaluate_property): New function.
8697         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8698         * dwarf2read.c (attr_to_dynamic_prop): New function.
8699         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8700         attribute.
8701         * gdbtypes.c: Include dwarf2loc.h.
8702         (is_dynamic_type): New function.
8703         (resolve_dynamic_type): New function.
8704         (resolve_dynamic_bounds): New function.
8705         (get_type_length): New function.
8706         (check_typedef): Use get_type_length to compute type length.
8707         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8708         (TYPE_LOW_BOUND_KIND): New macro.
8709         (is_dynamic_type): New function prototype.
8710         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8711         to resolve dynamic properties of the type. Update comment.
8712         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8713
8714 2014-04-14  Richard Henderson  <rth@redhat.com>
8715
8716         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8717
8718 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
8719             Doug Evans  <xdje42@gmail.com>
8720
8721         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8722         dereference TYPE_CODE_REF values.
8723
8724 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
8725
8726         Revert the following changes due to regressions:
8727
8728         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8729         (dwarf2_evaluate_property): New function.
8730         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8731         * dwarf2read.c (attr_to_dynamic_prop): New function.
8732         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8733         attribute.
8734         * gdbtypes.c: Include dwarf2loc.h.
8735         (is_dynamic_type): New function.
8736         (resolve_dynamic_type): New function.
8737         (resolve_dynamic_bounds): New function.
8738         (get_type_length): New function.
8739         (check_typedef): Use get_type_length to compute type length.
8740         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8741         (TYPE_LOW_BOUND_KIND): New macro.
8742         (is_dynamic_type): New function prototype.
8743         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8744         to resolve dynamic properties of the type. Update comment.
8745         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8746
8747         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8748         passed to sizeof is dynamic evaluate the argument to compute the length.
8749
8750         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8751         value and retrieve the dynamic type size.
8752
8753         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8754         (ada_template_to_fixed_record_type_1): Likewise.
8755         (ada_to_fixed_type_1): Likewise.
8756         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8757         (cp_print_value): Likewise.
8758         * d-valprint.c (dynamic_array_type): Likewise.
8759         * eval.c (evaluate_subexp_with_coercion): Likewise.
8760         * findvar.c (address_of_variable): Likewise.
8761         * jv-valprint.c (java_value_print): Likewise.
8762         * valops.c (value_ind): Likewise.
8763         * value.c (coerce_ref): Likewise.
8764
8765         * c-typeprint.c (c_type_print_varspec_suffix): Added
8766         check for not yet resolved high bound. If unresolved, print
8767         "variable length" string to the console instead of random
8768         length.
8769
8770         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8771         property and store it as the high bound and flag the range accordingly.
8772         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8773         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8774         * gdbtypes.h (enum range_flags): New enum.
8775         (struct range_bounds): Add flags member.
8776
8777         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8778         points to a constant blob.
8779
8780         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8781         (evaluate_subexp_standard): Pass noside argument.
8782         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8783         if noside equals EVAL_NORMAL. If the subscript yields a vla type
8784         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8785         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8786         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8787
8788 2014-04-11  Keith Seitz  <keiths@redhat.com>
8789
8790         PR c++/16675
8791         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8792         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8793         reference types.
8794
8795 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8796
8797         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8798         (evaluate_subexp_standard): Pass noside argument.
8799         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8800         if noside equals EVAL_NORMAL. If the subscript yields a vla type
8801         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8802         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8803         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8804
8805 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8806
8807         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8808         points to a constant blob.
8809
8810 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8811
8812         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8813         property and store it as the high bound and flag the range accordingly.
8814         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8815         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8816         * gdbtypes.h (enum range_flags): New enum.
8817         (struct range_bounds): Add flags member.
8818
8819 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8820
8821         * c-typeprint.c (c_type_print_varspec_suffix): Added
8822         check for not yet resolved high bound. If unresolved, print
8823         "variable length" string to the console instead of random
8824         length.
8825
8826 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8827
8828         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8829         (ada_template_to_fixed_record_type_1): Likewise.
8830         (ada_to_fixed_type_1): Likewise.
8831         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8832         (cp_print_value): Likewise.
8833         * d-valprint.c (dynamic_array_type): Likewise.
8834         * eval.c (evaluate_subexp_with_coercion): Likewise.
8835         * findvar.c (address_of_variable): Likewise.
8836         * jv-valprint.c (java_value_print): Likewise.
8837         * valops.c (value_ind): Likewise.
8838         * value.c (coerce_ref): Likewise.
8839
8840 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8841
8842         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8843         value and retrieve the dynamic type size.
8844
8845 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8846
8847         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8848         passed to sizeof is dynamic evaluate the argument to compute the length.
8849
8850 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8851
8852         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8853         (dwarf2_evaluate_property): New function.
8854         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8855         * dwarf2read.c (attr_to_dynamic_prop): New function.
8856         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8857         attribute.
8858         * gdbtypes.c: Include dwarf2loc.h.
8859         (is_dynamic_type): New function.
8860         (resolve_dynamic_type): New function.
8861         (resolve_dynamic_bounds): New function.
8862         (get_type_length): New function.
8863         (check_typedef): Use get_type_length to compute type length.
8864         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8865         (TYPE_LOW_BOUND_KIND): New macro.
8866         (is_dynamic_type): New function prototype.
8867         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8868         to resolve dynamic properties of the type. Update comment.
8869         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8870
8871 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8872
8873         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8874         declaring high/low bounds and change uses accordingly. Call
8875         create_range_type instead of create_static_range_type.
8876         * gdbtypes.c (create_range_type): New function.
8877         (create_range_type): Convert bounds into struct bound_prop and pass
8878         them to create_range_type.
8879         * gdbtypes.h (struct bound_prop): New struct.
8880         (create_range_type): New function prototype.
8881         (struct range_bounds): Use struct bound_prop instead of LONGEST for
8882         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8883         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8884         part of the bound.
8885         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8886
8887 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8888
8889         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8890         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8891         * ada-lang.c: All uses of create_range_type updated.
8892         * coffread.c: All uses of create_range_type updated.
8893         * dwarf2read.c: All uses of create_range_type updated.
8894         * f-exp.y: All uses of create_range_type updated.
8895         * m2-valprint.c: All uses of create_range_type updated.
8896         * mdebugread.c: All uses of create_range_type updated.
8897         * stabsread.c: All uses of create_range_type updated.
8898         * valops.c: All uses of create_range_type updated.
8899         * valprint.c: All uses of create_range_type updated.
8900
8901 2014-04-10  Pedro Alves  <palves@redhat.com>
8902
8903         * breakpoint.c (single_step_breakpoints)
8904         (single_step_gdbarch): Move up in the file.
8905         (one_breakpoint_xfer_memory): New function, factored out from ...
8906         (breakpoint_xfer_memory): ... here.  Also process single-step
8907         breakpoints.
8908
8909 2014-04-09  Tristan Gingold  <gingold@adacore.com>
8910
8911         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8912         comments.
8913         (darwin_decode_exception_message): Free port only after use.
8914
8915 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
8916
8917         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8918         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8919         when setting the size of call_length.
8920
8921 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
8922
8923         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
8924         dereference TYPE_CODE_REF values.
8925
8926 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
8927
8928         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
8929         end of warning message.
8930
8931 2014-04-03  Doug Evans  <dje@google.com>
8932
8933         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
8934         of stub_comp_unit_die, stub_comp_dir is non-NULL.
8935
8936 2014-04-02  Alan Modra  <amodra@gmail.com>
8937
8938         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
8939         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
8940         (struct symbol_file_add_from_memory_args): Add size field.
8941         (find_vdso_size): New function.
8942         (add_vsyscall_page): Attempt to find vdso size.
8943
8944 2014-04-01  Doug Evans  <dje@google.com>
8945
8946         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
8947
8948 2014-04-01  Tristan Gingold  <gingold@adacore.com>
8949
8950         * darwin-nat.c (darwin_encode_reply): Add prototype.
8951         (darwin_decode_exception_message): Reply to unknown inferiors.
8952         (darwin_decode_message): Handle message by id.  Ignore message
8953         to unknown inferior.
8954         (darwin_wait): Discard unknown messages, add debug trace.
8955
8956 2014-03-31  Doug Evans  <dje@google.com>
8957
8958         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
8959         comp_dir_string.
8960
8961 2014-03-31  Doug Evans  <dje@google.com>
8962
8963         New option "set print symbol-loading".
8964         * NEWS: Mention it.
8965         * solib.c (solib_read_symbols): Only print symbol loading messages
8966         if requested.
8967         (solib_add): If symbol loading is in "brief" mode, notify user
8968         symbols are being loaded.
8969         (reload_shared_libraries_1): Ditto.
8970         * symfile.c (print_symbol_loading_off): New static global.
8971         (print_symbol_loading_brief): New static global.
8972         (print_symbol_loading_full): New static global.
8973         (print_symbol_loading_enums): New static global.
8974         (print_symbol_loading): New static global.
8975         (print_symbol_loading_p): New function.
8976         (symbol_file_add_with_addrs): Only print symbol loading messages
8977         if requested.
8978         (_initialize_symfile): Register "print symbol-loading" set/show
8979         command.
8980         * symfile.h (print_symbol_loading_p): Declare.
8981
8982 2014-03-30  Doug Evans  <xdje42@gmail.com>
8983
8984         * infrun.c (set_last_target_status): New function.
8985         (handle_inferior_event): Call it.
8986
8987 2014-03-30  Doug Evans  <xdje42@gmail.com>
8988
8989         * inferior.h (enum stop_kind): Improve comment.
8990
8991 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
8992
8993         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
8994         a reference, strip the reference layer before calling
8995         the lang_ops value_has_mutated callback.
8996
8997 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
8998
8999         Remove some globals from our parser.
9000         * language.c (unk_lang_parser): Add "struct parser_state"
9001         argument.
9002         * language.h (struct language_defn) <la_parser>: Likewise.
9003         * parse.c (expout, expout_size, expout_ptr): Remove variables.
9004         (initialize_expout): Add "struct parser_state" argument.
9005         Rewrite function to use the parser state.
9006         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9007         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9008         write_exp_elt_longcst, write_exp_elt_dblcst,
9009         write_exp_elt_decfloatcst, write_exp_elt_type,
9010         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9011         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9012         write_dollar_variable): Likewise.
9013         (parse_exp_in_context_1): Use parser state.
9014         (insert_type_address_space): Add "struct parser_state" argument.
9015         Use parser state.
9016         (increase_expout_size): New function.
9017         * parser-defs.h: Forward declare "struct language_defn" and
9018         "struct parser_state".
9019         (expout, expout_size, expout_ptr): Remove extern declarations.
9020         (parse_gdbarch, parse_language): Rewrite macro declarations to
9021         accept the parser state.
9022         (struct parser_state): New struct.
9023         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9024         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9025         write_exp_elt_decfloatcst, write_exp_elt_type,
9026         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9027         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9028         write_exp_msymbol, write_dollar_variable,
9029         mark_struct_expression, insert_type_address_space): Add "struct
9030         parser_state" argument.
9031         (increase_expout_size): New function.
9032         * utils.c (do_clear_parser_state): New function.
9033         (make_cleanup_clear_parser_state): Likewise.
9034         * utils.h (make_cleanup_clear_parser_state): New function
9035         prototype.
9036         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9037         Update calls to write_exp* in order to pass the parser state.
9038         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9039         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9040         (i386_stap_parse_special_token_three_arg_disp): Likewise.
9041         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9042         * stap-probe.c (stap_parse_register_operand): Likewise.
9043         (stap_parse_single_operand): Likewise.
9044         (stap_parse_argument_1): Likewise.
9045         (stap_parse_argument): Use parser state.
9046         * stap-probe.h: Include "parser-defs.h".
9047         (struct stap_parse_info) <pstate>: New field.
9048         * c-exp.y (parse_type): Rewrite to use parser state.
9049         (yyparse): Redefine to c_parse_internal.
9050         (pstate): New global variable.
9051         (parse_number): Add "struct parser_state" argument.
9052         (write_destructor_name): Likewise.
9053         (type_exp): Update calls to write_exp* and similars in order to
9054         use parser state.
9055         (exp1, exp, variable, qualified_name, space_identifier,
9056         typename, typebase): Likewise.
9057         (write_destructor_name, parse_number, lex_one_token,
9058         classify_name, classify_inner_name, c_parse): Add "struct
9059         parser_state" argument.  Update function to use parser state.
9060         * c-lang.h: Forward declare "struct parser_state".
9061         (c_parse): Add "struct parser_state" argument.
9062         * ada-exp.y (parse_type): Rewrite macro to use parser state.
9063         (yyparse): Redefine macro to ada_parse_internal.
9064         (pstate): New variable.
9065         (write_int, write_object_renaming, write_var_or_type,
9066         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9067         type_int, type_long, type_long_long, type_float, type_double,
9068         type_long_double, type_char, type_boolean, type_system_address):
9069         Add "struct parser_state" argument.
9070         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9071         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9072         var_or_type, aggregate, aggregate_component_list,
9073         positional_list, others, component_group,
9074         component_associations): Update calls to write_exp* and similar
9075         functions in order to use parser state.
9076         (ada_parse, write_var_from_sym, write_int,
9077         write_exp_op_with_string, write_object_renaming,
9078         find_primitive_type, write_selectors, write_ambiguous_var,
9079         write_var_or_type, write_name_assoc, type_int, type_long,
9080         type_long_long, type_float, type_double, type_long_double,
9081         type_char, type_boolean, type_system_address): Add "struct
9082         parser_state" argument.  Adjust function to use parser state.
9083         * ada-lang.c (parse): Likewise.
9084         * ada-lang.h: Forward declare "struct parser_state".
9085         (ada_parse): Add "struct parser_state" argument.
9086         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
9087         calls to both functions.
9088         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9089         parser state.
9090         (yyparse): Redefine macro to f_parse_internal.
9091         (pstate): New variable.
9092         (parse_number): Add "struct parser_state" argument.
9093         (type_exp, exp, subrange, typebase): Update calls to write_exp*
9094         and similars in order to use parser state.
9095         (parse_number): Adjust code to use parser state.
9096         (yylex): Likewise.
9097         (f_parse): New function.
9098         * f-lang.h: Forward declare "struct parser_state".
9099         (f_parse): Add "struct parser_state" argument.
9100         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9101         parser state.
9102         (yyparse): Redefine macro for java_parse_internal.
9103         (pstate): New variable.
9104         (push_expression_name, push_expression_name, insert_exp): Add
9105         "struct parser_state" argument.
9106         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9107         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9108         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9109         PostIncrementExpression, PostDecrementExpression,
9110         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9111         UnaryExpressionNotPlusMinus, CastExpression,
9112         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9113         RelationalExpression, EqualityExpression, AndExpression,
9114         ExclusiveOrExpression, InclusiveOrExpression,
9115         ConditionalAndExpression, ConditionalOrExpression,
9116         ConditionalExpression, Assignment, LeftHandSide): Update
9117         calls to write_exp* and similars in order to use parser state.
9118         (parse_number): Ajust code to use parser state.
9119         (yylex): Likewise.
9120         (java_parse): New function.
9121         (push_variable): Add "struct parser_state" argument.  Adjust
9122         code to user parser state.
9123         (push_fieldnames, push_qualified_expression_name,
9124         push_expression_name, insert_exp): Likewise.
9125         * jv-lang.h: Forward declare "struct parser_state".
9126         (java_parse): Add "struct parser_state" argument.
9127         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9128         parser state.
9129         (yyparse): Redefine macro to m2_parse_internal.
9130         (pstate): New variable.
9131         (type_exp, exp, fblock, variable, type): Update calls to
9132         write_exp* and similars to use parser state.
9133         (yylex): Likewise.
9134         (m2_parse): New function.
9135         * m2-lang.h: Forward declare "struct parser_state".
9136         (m2_parse): Add "struct parser_state" argument.
9137         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9138         * objc-lang.h: Forward declare "struct parser_state".
9139         (end_msglist): Add "struct parser_state" argument.
9140         * p-exp.y (parse_type): Rewrite macro to use parser state.
9141         (yyparse): Redefine macro to pascal_parse_internal.
9142         (pstate): New variable.
9143         (parse_number): Add "struct parser_state" argument.
9144         (type_exp, exp1, exp, qualified_name, variable): Update calls to
9145         write_exp* and similars in order to use parser state.
9146         (parse_number, yylex): Adjust code to use parser state.
9147         (pascal_parse): New function.
9148         * p-lang.h: Forward declare "struct parser_state".
9149         (pascal_parse): Add "struct parser_state" argument.
9150         * go-exp.y (parse_type): Rewrite macro to use parser state.
9151         (yyparse): Redefine macro to go_parse_internal.
9152         (pstate): New variable.
9153         (parse_number): Add "struct parser_state" argument.
9154         (type_exp, exp1, exp, variable, type): Update calls to
9155         write_exp* and similars in order to use parser state.
9156         (parse_number, lex_one_token, classify_name, yylex): Adjust code
9157         to use parser state.
9158         (go_parse): Likewise.
9159         * go-lang.h: Forward declare "struct parser_state".
9160         (go_parse): Add "struct parser_state" argument.
9161
9162 2014-03-27  Doug Evans  <dje@google.com>
9163
9164         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
9165
9166 2014-03-27  Doug Evans  <dje@google.com>
9167
9168         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9169         Remove argument abbrev_section.  All callers updated.
9170
9171 2014-03-27  Doug Evans  <dje@google.com>
9172
9173         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9174         addr_base, ranges_base.
9175
9176 2014-03-26  Keith Seitz  <keiths@redhat.com>
9177
9178         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9179         types, not VAR_DOMAIN.
9180
9181 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
9182
9183         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9184         "ra" registers.
9185         * features/nios2-linux.c: Regenerated.
9186         * features/nios2.c: Regenerated.
9187
9188 2014-03-25  Pedro Alves  <palves@redhat.com>
9189
9190         * cli/cli-script.c (script_from_file): Force the interpreter to
9191         sync mode.
9192
9193 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
9194
9195         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9196         small stack allocation.
9197
9198 2014-03-24  Tristan Gingold  <gingold@adacore.com>
9199
9200         * darwin-nat.c (exc_server): Remove unused prototype.
9201         (darwin_dump_message): Correctly display data on x86_64.
9202         (darwin_encode_reply): Fix style.
9203         Add comments and fix indentation.
9204
9205 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
9206
9207         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9208
9209 2014-03-22  Doug Evans  <xdje42@gmail.com>
9210
9211         * infcmd.c: Whitespace fixes.
9212         (interrupt_command): Merge two function comments into one.
9213
9214 2014-03-22  Doug Evans  <xdje42@gmail.com>
9215
9216         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9217         All uses updated.
9218
9219 2014-03-22  Yao Qi  <yao@codesourcery.com>
9220
9221         * remote.c (target_read_live_memory): Remove.
9222         (memory_xfer_live_readonly_partial): Rename it to
9223         remote_xfer_live_readonly_partial.  Remove argument 'object'.
9224         All callers updated.  Call remote_read_bytes_1
9225         instead of target_read_live_memory.
9226         * tracepoint.c (set_traceframe_number): Remove.
9227         (make_cleanup_restore_traceframe_number): Likewise .
9228         * tracepoint.h (set_traceframe_number): Remove declaration.
9229         (make_cleanup_restore_traceframe_number): Likewise.
9230
9231 2014-03-22  Yao Qi  <yao@codesourcery.com>
9232
9233         * remote.c (remote_read_bytes): Move code on reading from the
9234         remote stub to ...
9235         (remote_read_bytes_1): ... here.  New function.
9236
9237 2014-03-22  Yao Qi  <yao@codesourcery.com>
9238
9239         * ctf.c (ctf_xfer_partial): Check the return value of
9240         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9241         return TARGET_XFER_UNAVAILABLE.
9242         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9243         * target.c (target_read_live_memory): Move it to remote.c.
9244         (memory_xfer_live_readonly_partial): Likewise.
9245         (memory_xfer_partial_1): Move some code to remote_read_bytes.
9246         * remote.c (target_read_live_memory): Moved from target.c.
9247         (memory_xfer_live_readonly_partial): Likewise.
9248         (remote_read_bytes): Factored out from
9249         memory_xfer_partial_1.
9250
9251 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
9252
9253         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9254         NULL pointer.
9255
9256 2014-03-21  Pedro Alves  <palves@redhat.com>
9257
9258         * infrun.c (normal_stop): Extend comment.
9259
9260 2014-03-21  Hui Zhu  <hui@codesourcery.com>
9261             Pedro Alves  <palves@redhat.com>
9262
9263         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9264         static buffer.
9265         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9266         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9267         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9268
9269 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
9270
9271         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9272         `z' formatted output modifier.
9273
9274 2014-03-20  Tom Tromey  <tromey@redhat.com>
9275             Sergio Durigan Junior  <sergiodj@redhat.com>
9276
9277         * probe.c (parse_probes): Turn assert into an ordinary error.
9278         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9279         exceptions when parsing probes.  Rearrange the code for clarity.
9280
9281 2014-03-20  Tom Tromey  <tromey@redhat.com>
9282
9283         PR gdb/14135
9284         * top.c (execute_command): Only dispatch events if the command
9285         started the target.
9286
9287 2014-03-20  Tom Tromey  <tromey@redhat.com>
9288
9289         PR cli/15718
9290         * infcall.c: Include event-top.h.
9291         (run_inferior_call): Call async_disable_stdin if needed.
9292
9293 2014-03-20  Pedro Alves  <palves@redhat.com>
9294
9295         * infrun.c (prepare_to_proceed): Delete.
9296         (thread_still_needs_step_over): New function.
9297         (find_thread_needs_step_over): New function.
9298         (proceed): If the current thread needs a step-over, set its
9299         steping_over_breakpoint flag.  Adjust to use
9300         find_thread_needs_step_over instead of prepare_to_proceed.
9301         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9302         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9303         breakpoint.
9304         (switch_back_to_stepped_thread): Step over breakpoints of all
9305         threads not the stepping thread, before switching back to the
9306         stepping thread.
9307
9308 2014-03-20  Pedro Alves  <palves@redhat.com>
9309
9310         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9311         extern.
9312         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9313         * infrun.c (saved_singlestep_ptid)
9314         (stepping_past_singlestep_breakpoint): Delete.
9315         (resume): Remove stepping_past_singlestep_breakpoint handling.
9316         (proceed): Store the prev_pc of the stepping thread too.
9317         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
9318         singlestep_pc.
9319         (enum infwait_states): Delete infwait_thread_hop_state.
9320         (struct execution_control_state) <hit_singlestep_breakpoint>: New
9321         field.
9322         (handle_inferior_event): Adjust.
9323         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9324         handling and the thread-hop code.  Before removing single-step
9325         breakpoints, check whether the thread hit a single-step breakpoint
9326         of another thread.  If it did, the trap is not a random signal.
9327         (switch_back_to_stepped_thread): If the event thread hit a
9328         single-step breakpoint, unblock it before switching to the
9329         stepping thread.  Handle the case of the stepped thread having
9330         advanced already.
9331         (keep_going): Handle the case of the current thread moving past a
9332         single-step breakpoint.
9333
9334 2014-03-20  Pedro Alves  <palves@redhat.com>
9335
9336         PR breakpoints/7143
9337         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9338         are being stepped over.
9339         (breakpoint_address_match): Make extern.
9340         * breakpoint.h (breakpoint_address_match): New declaration.
9341         * inferior.h (stepping_past_instruction_at): New declaration.
9342         * infrun.c (struct step_over_info): New type.
9343         (step_over_info): New global.
9344         (set_step_over_info, clear_step_over_info)
9345         (stepping_past_instruction_at): New functions.
9346         (handle_inferior_event): Clear the step-over info when
9347         trap_expected is cleared.
9348         (resume): Remove now stale comment.
9349         (clear_proceed_status): Clear step-over info.
9350         (proceed): Adjust step-over handling to set or clear the step-over
9351         info instead of removing all breakpoints.
9352         (handle_signal_stop): When setting up a thread-hop, don't remove
9353         breakpoints here.
9354         (stop_stepping): Clear step-over info.
9355         (keep_going): Adjust step-over handling to set or clear step-over
9356         info and then always inserting breakpoints, instead of removing
9357         all breakpoints when stepping over one.
9358
9359 2014-03-20  Pedro Alves  <palves@redhat.com>
9360
9361         * infrun.c (previous_inferior_ptid): Adjust comment.
9362         (deferred_step_ptid): Delete.
9363         (infrun_thread_ptid_changed, prepare_to_proceed)
9364         (init_wait_for_inferior): Adjust.
9365         (handle_signal_stop): Delete deferred_step_ptid handling.
9366
9367 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
9368
9369         PR gdb/15358
9370         * defs.h (sync_quit_force_run): New declaration.
9371         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9372         * event-top.c (async_sigterm_handler): New declaration.
9373         (async_sigterm_token): New variable.
9374         (async_init_signals): Create also async_sigterm_token.
9375         (async_sigterm_handler): New function.
9376         (sync_quit_force_run): New variable.
9377         (handle_sigterm): Replace quit_force call by other calls.
9378         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9379
9380 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
9381
9382         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9383         offset into SPE pseudo registers.
9384
9385 2014-03-18  Pedro Alves  <palves@redhat.com>
9386
9387         PR gdb/13860
9388         * inferior.h (print_stop_event): Declare.
9389         * infrun.c (print_stop_event): New, factored out from ...
9390         (normal_stop): ... this.
9391         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9392         of bpstat_print/print_stack_frame.
9393
9394 2014-03-17  Tom Tromey  <tromey@redhat.com>
9395
9396         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9397
9398 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
9399
9400         * ada-lang.c (decode_constrained_packed_array): Perform a
9401         minimal coercion for reference with coerce_ref instead of
9402         ada_coerce_ref.
9403
9404 2014-03-17  Tristan Gingold  <gingold@adacore.com>
9405
9406         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9407         (darwin_solib_create_inferior_hook): Emit a warning if version
9408         is unhandled.
9409
9410 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
9411
9412         * python/py-value.c (get_field_flag): Cast flag_name argument to
9413         PyObject_GetAttrString to support Python 2.4.
9414
9415 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9416
9417         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9418         (Global Maintainers): Remove Jan Kratochvil.
9419
9420 2014-03-14  Pedro Alves  <palves@redhat.com>
9421
9422         * inferior.h (terminal_ours_for_output): Rename to ...
9423         (child_terminal_ours_for_output): ... this.
9424         (terminal_save_ours): Rename to ...
9425         (child_terminal_save_ours): ... this.
9426         (terminal_ours): Rename to ...
9427         (child_terminal_ours): ... this.
9428         (terminal_inferior): Rename to ...
9429         (child_terminal_inferior): ... this.
9430         (terminal_init_inferior): Rename to ...
9431         (child_terminal_init_inferior): ... this.
9432         (terminal_init_inferior_with_pgrp): Rename to ...
9433         (child_terminal_init_inferior_with_pgrp): ... this.
9434         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9435         (child_terminal_init_with_pgrp): ... this.
9436         (terminal_save_ours): Rename to ...
9437         (child_terminal_save_ours): ... this.
9438         (terminal_init_inferior): Rename to ...
9439         (child_terminal_init): ... this.  Adjust.
9440         (terminal_inferior): Rename to ...
9441         (child_terminal_inferior): ... this.
9442         (terminal_ours_for_output): Rename to ...
9443         (child_terminal_ours_for_output): ... this.  Adjust.
9444         (terminal_ours): Rename to ...
9445         (child_terminal_ours): ... this.
9446         (terminal_ours_1): Rename to ...
9447         (child_terminal_ours_1): ... this.  Adjust.
9448         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9449         * windows-nat.c (do_initial_windows_stuff): Adjust.
9450         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9451         (gnu_terminal_init): ... this.  Adjust.
9452         (gnu_target): Adjust.
9453         * inf-child.c (inf_child_target): Adjust.
9454
9455 2014-03-13  Doug Evans  <xdje42@gmail.com>
9456
9457         PR guile/16612
9458         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9459         new eq?-hashtab.
9460
9461 2014-03-13  Doug Evans  <xdje42@gmail.com>
9462
9463         * value.c (record_latest_value): Call release_value_or_incref
9464         instead of release_value.
9465
9466 2014-03-13  Pedro Alves  <palves@redhat.com>
9467
9468         * procfs.c (procfs_target): Don't override to_shortname,
9469         to_longname or to_doc.
9470
9471 2014-03-13  Pedro Alves  <palves@redhat.com>
9472
9473         * inf-child.c (inf_child_open, inf_child_target): Don't mention
9474         Unix in user visible strings.
9475
9476 2014-03-12  Stan Shebs  <stan@codesourcery.com>
9477
9478         * gdbtypes.h: Annotate comments for Doxygen, add a page
9479         block comment with some general info.
9480
9481 2014-03-12  Pedro Alves  <palves@redhat.com>
9482
9483         * infcmd.c (prepare_execution_command): New function, factored out
9484         from several execution commands.
9485         (run_command_1, continue_command, step_1, jump_command)
9486         (signal_command, until_command, advance_command, finish_command)
9487         (attach_command): Use prepare_execution_command.
9488
9489 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
9490
9491         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9492         (MAX_BPTS): Define.
9493         (MAX_WPTS): Define.
9494         (struct arm_linux_thread_points): Removed.
9495         (struct arm_linux_process_info): New.
9496         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9497         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9498         (arm_linux_find_breakpoints_by_tid): Removed.
9499         (struct arch_lwp_info): New.
9500         (arm_linux_find_process_pid): New functions.
9501         (arm_linux_add_process): New functions.
9502         (arm_linux_process_info_get): New functions.
9503         (arm_linux_forget_process): New function.
9504         (arm_linux_get_debug_reg_state): New function.
9505         (struct update_registers_data): New.
9506         (update_registers_callback): New function.
9507         (arm_linux_insert_hw_breakpoint1): Updated.
9508         (arm_linux_remove_hw_breakpoint1): Updated.
9509         (arm_linux_insert_hw_breakpoint): Updated.
9510         (arm_linux_remove_hw_breakpoint): Updated.
9511         (arm_linux_insert_watchpoint): Updated.
9512         (arm_linux_remove_watchpoint): Updated.
9513         (arm_linux_new_thread): Updated.
9514         (arm_linux_prepare_to_resume): New function.
9515         (arm_linux_new_fork): New function.
9516         (_initialize_arm_linux_nat): Updated.
9517
9518 2014-03-12  Pedro Alves  <palves@redhat.com>
9519
9520         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9521
9522 2014-03-12  Tom Tromey  <tromey@redhat.com>
9523
9524         * inf-child.c (return_zero): New function.
9525         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9526         * aix-thread.c (aix_thread_inferior_created): New function.
9527         (aix_thread_attach): Remove.
9528         (init_aix_thread_ops): Don't set to_attach.
9529         (_initialize_aix_thread): Register inferior_created observer.
9530         * corelow.c (init_core_ops): Don't set to_attach or
9531         to_create_inferior.
9532         * exec.c (init_exec_ops): Don't set to_attach or
9533         to_create_inferior.
9534         * infcmd.c (run_command_1): Use find_run_target.  Make direct
9535         target calls.
9536         (attach_command): Use find_attach_target.  Make direct target
9537         calls.
9538         * record-btrace.c (init_record_btrace_ops): Don't set
9539         to_create_inferior.
9540         * record-full.c (record_full_can_async_p, record_full_is_async_p):
9541         Remove.
9542         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
9543         set to_create_inferior.
9544         * target.c (complete_target_initialization): Add assertion.
9545         (target_create_inferior): Remove.
9546         (find_default_attach, find_default_create_inferior): Remove.
9547         (find_attach_target, find_run_target): New functions.
9548         (find_default_is_async_p, find_default_can_async_p)
9549         (target_supports_non_stop, target_attach): Remove.
9550         (init_dummy_target): Don't set to_create_inferior or
9551         to_supports_non_stop.
9552         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
9553         TARGET_DEFAULT_FUNC.
9554         <to_create_inferior>: Add comment.
9555         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9556         TARGET_DEFAULT_RETURN.
9557         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9558         (find_attach_target, find_run_target): Declare.
9559         (target_create_inferior): Remove.
9560         (target_has_execution_1): Update comment.
9561         (target_supports_non_stop): Remove.
9562         * target-delegates.c: Rebuild.
9563
9564 2014-03-12  Pedro Alves  <palves@redhat.com>
9565
9566         * inf-child.h: Update comment to not mention Unix.
9567
9568 2014-03-12  Pedro Alves  <palves@redhat.com>
9569
9570         * inf-child.c: Update top comment to not mention Unix.  Add
9571         generic comment describing how this target is meant to be used.
9572         (inf_child_post_attach, inf_child_post_startup_inferior)
9573         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9574         Unix in comment.
9575
9576 2014-03-12  Pedro Alves  <palves@redhat.com>
9577
9578         * nto-procfs.c: Include inf-child.h.
9579         (procfs_ops): Delete global.
9580         (procfs_can_run): Delete method.
9581         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9582         target pointer instead of referencing procfs_ops.
9583         (procfs_prepare_to_store): Delete.
9584         (init_procfs_ops): Delete function.
9585         (procfs_target): New function, based on init_procfs_ops, but
9586         inherit inf_child_target.
9587         (_initialize_procfs): Use procfs_target.
9588
9589 2014-03-12  Pedro Alves  <palves@redhat.com>
9590
9591         * windows-nat.c: Include inf-child.h.
9592         (windows_ops): Delete global.
9593         (windows_open, windows_prepare_to_store, windows_can_run): Delete
9594         methods.
9595         (init_windows_ops): Delete function.
9596         (windows_target): New function, based on init_windows_ops, but
9597         inherit inf_child_target.
9598         (_initialize_windows_nat): Use windows_target.  Install x86
9599         specific target methods here.
9600
9601 2014-03-10  Doug Evans  <xdje42@gmail.com>
9602
9603         * guile/guile.c (call_initialize_gdb_module): New function.
9604         (initialize_guile): Replace call to scm_init_guile with call to
9605         scm_with_guile.
9606
9607 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
9608
9609         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9610         in call to TYPE_CODE macro.
9611
9612 2014-03-10  Jerome Guitton  <guitton@adacore.com>
9613
9614         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9615         Resolve tagged types to full view.
9616
9617 2014-03-10  Hui Zhu  <hui@codesourcery.com>
9618
9619         * target.h (target_insert_breakpoint): Remove "hardware" from its
9620         comments.
9621
9622 2014-03-07  Doug Evans  <dje@google.com>
9623
9624         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9625
9626 2014-03-07  Doug Evans  <dje@google.com>
9627
9628         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9629         Remove unused local comp_dir_attr.  Assert exactly one of
9630         stub_comp_unit_die, stub_comp_dir is non-NULL.
9631
9632 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
9633
9634         * target.h (complete_target_initialization, add_target):
9635         Add comment.
9636
9637 2014-03-07  Pedro Alves  <palves@redhat.com>
9638
9639         * go32-nat.c: Include inf-child.h.
9640         (go32_ops): Delete global.
9641         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9642         Delete methods.
9643         (go32_create_inferior): Push the passed in target pointer instead
9644         of referencing go32_ops.
9645         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
9646         (go32_target): New function, based on init_go32_ops, but inherit
9647         inf_child_target.
9648         (_initialize_go32_nat): Use go32_target.  Move parts of
9649         init_go32_ops here.
9650
9651 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
9652
9653         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9654         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9655         SYMBOL_VALUE_ADDRESS.
9656         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9657
9658 2014-03-06  Yao Qi  <yao@codesourcery.com>
9659
9660         * breakpoint.c (get_tracepoint_by_number): Remove argument
9661         optional_p.  All callers updated.  Adjust comments.  Update
9662         output message.
9663         * breakpoint.h (get_tracepoint_by_number): Update declaration.
9664
9665 2014-03-06  Yao Qi  <yao@codesourcery.com>
9666
9667         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
9668         early if get_number returns zero.  Use 'p' instead of 'args'.
9669
9670 2014-03-06  Yao Qi  <yao@codesourcery.com>
9671
9672         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9673         message.
9674
9675 2014-03-06  Yao Qi  <yao@codesourcery.com>
9676
9677         PR breakpoints/16508
9678         * tracepoint.c (check_trace_running): New function.
9679         (trace_find_command): Move code to check_trace_running and
9680         call check_trace_running.
9681         (trace_find_pc_command): Likewise.
9682         (trace_find_tracepoint_command): Likewise.
9683         (trace_find_line_command): Likewise.
9684         (trace_find_range_command): Likewise.
9685         * tracepoint.h (check_trace_running): Likewise.
9686         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9687
9688 2014-03-06  Yao Qi  <yao@codesourcery.com>
9689
9690         * target.h (struct target_ops) <to_traceframe_info>: Use
9691         TARGET_DEFAULT_NORETURN (tcomplain ()).
9692         * target-delegates.c: Regenerated.
9693
9694 2014-03-05  Pedro Alves  <palves@redhat.com>
9695
9696         PR gdb/16575
9697         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
9698         void.  Update comment.
9699         (dcache_xfer_memory): Delete.
9700         (dcache_read_memory_partial): New, based on the read bits of
9701         dcache_xfer_memory.
9702         (dcache_update): Add status parameter.  Use ULONGEST for len, and
9703         adjust.  Discard cache lines if the reason for the update was
9704         error.
9705         * dcache.h (dcache_xfer_memory): Delete declaration.
9706         (dcache_read_memory_partial): New declaration.
9707         (dcache_update): Update prototype.
9708         * target.c (raw_memory_xfer_partial): Update the dcache here.
9709         (memory_xfer_partial_1): Don't handle dcache writes here.
9710
9711 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
9712
9713         * remote-sim.c (gdbsim_load): Add const to prog.
9714
9715 2014-03-03  Tom Tromey  <tromey@redhat.com>
9716
9717         * elfread.c (probe_key): Change to bfd_data.
9718         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9719         now per-BFD, not per-objfile.
9720         * stap-probe.c (stap_probe_destroy): Update comment.
9721         (handle_stap_probe): Allocate on the per-BFD obstack.
9722
9723 2014-03-03  Tom Tromey  <tromey@redhat.com>
9724
9725         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9726         * breakpoint.c (create_longjmp_master_breakpoint): Use
9727         get_probe_address.
9728         (add_location_to_breakpoint, bkpt_probe_insert_location)
9729         (bkpt_probe_remove_location): Update.
9730         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9731         * elfread.c (elf_symfile_relocate_probe): Remove.
9732         (elf_probe_fns): Update.
9733         (insert_exception_resume_breakpoint): Change type of "probe"
9734         parameter to bound_probe.
9735         (check_exception_resume): Update.
9736         * objfiles.c (objfile_relocate1): Don't relocate probes.
9737         * probe.c (bound_probe_s): New typedef.
9738         (parse_probes): Use get_probe_address.  Set sal's objfile.
9739         (find_probe_by_pc): Return a bound_probe.
9740         (collect_probes): Return a VEC(bound_probe_s).
9741         (compare_probes): Update.
9742         (gen_ui_out_table_header_info): Change type of "probes"
9743         parameter.  Update.
9744         (info_probes_for_ops): Update.
9745         (get_probe_address): New function.
9746         (probe_safe_evaluate_at_pc): Update.
9747         * probe.h (struct probe_ops) <get_probe_address>: New field.
9748         <set_semaphore, clear_semaphore>: Add objfile parameter.
9749         (struct probe) <objfile>: Remove field.
9750         <arch>: New field.
9751         <address>: Update comment.
9752         (struct bound_probe): New.
9753         (find_probe_by_pc): Return a bound_probe.
9754         (get_probe_address): Declare.
9755         * solib-svr4.c (struct probe_and_action) <address>: New field.
9756         (hash_probe_and_action, equal_probe_and_action): Update.
9757         (register_solib_event_probe): Add address parameter.
9758         (solib_event_probe_at): Update.
9759         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
9760         get_probe_address.
9761         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9762         (stap_get_probe_address): New function.
9763         (stap_can_evaluate_probe_arguments, compute_probe_arg)
9764         (compile_probe_arg): Update.
9765         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9766         address.
9767         (handle_stap_probe): Don't relocate the probe.
9768         (stap_relocate): Remove.
9769         (stap_gen_info_probes_table_values): Update.
9770         (stap_probe_ops): Remove stap_relocate.
9771         * symfile-debug.c (debug_sym_relocate_probe): Remove.
9772         (debug_sym_probe_fns): Update.
9773         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9774         * symtab.c (init_sal): Use memset.
9775         * symtab.h (struct symtab_and_line) <objfile>: New field.
9776         * tracepoint.c (start_tracing, stop_tracing): Update.
9777
9778 2014-03-03  Tom Tromey  <tromey@redhat.com>
9779
9780         * probe.h (parse_probes, find_probe_by_pc)
9781         (find_probes_in_objfile): Fix comments.
9782
9783 2014-03-02  Doug Evans  <xdje42@gmail.com>
9784
9785         * infrun.c (handle_signal_stop): Replace test for
9786         TARGET_WAITKIND_STOPPED with an assert.
9787
9788 2014-03-02  Doug Evans  <xdje42@gmail.com>
9789
9790         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9791
9792 2014-03-02  Doug Evans  <xdje42@gmail.com>
9793
9794         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9795
9796 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
9797
9798         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9799
9800 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
9801
9802         * i386obsd-nat.c: Include "obsd-nat.h".
9803         (_initialize_i386obsd_nat): Call obsd_add_target instead of
9804         add_target.
9805         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9806
9807 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
9808
9809         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9810
9811 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
9812
9813         * mips64obsd-nat.c: Include "obsd-nath".
9814         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9815         add_target
9816         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9817
9818 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
9819
9820         * amd64obsd-nat.c: Include "obsd-nat,h.
9821         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9822         add_target.
9823         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9824
9825 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
9826
9827         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9828         (find_overload_match): Update call to find_oload_champ.
9829         (find_oload_champ_namespace_loop): Likewise
9830
9831 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
9832
9833         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9834
9835         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9836         * config/sparc/obsd64.mh: New file.
9837         * sparc64obsd-nat.c: New file.
9838
9839         * obsd-nat.h: New file.
9840         * obsd-nat.c: New file.
9841         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9842         (ALLDEPFILES): Add obsd-nat.c.
9843
9844 2014-02-28  Tom Tromey  <tromey@redhat.com>
9845
9846         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
9847         * cli-out.h (cli_ui_out_impl): Now const.
9848         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
9849         * ui-out.c (struct ui_out) <impl>: Now const.
9850         (default_ui_out_impl): Now const.
9851         (ui_out_new): Make 'impl' parameter const.
9852         * ui-out.h (ui_out_new): Update.
9853
9854 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9855
9856         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9857
9858 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9859
9860         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9861
9862 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9863
9864         Additional PR 8882 fix.
9865         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9866
9867 2014-02-27  Pedro Alves  <palves@redhat.com>
9868
9869         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9870         isn't set.
9871
9872 2014-02-27  Pedro Alves  <palves@redhat.com>
9873
9874         PR 12702
9875         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9876         * nat/linux-waitpid.c: Include string.h.
9877         (status_to_str): Moved here and made extern.
9878         * nat/linux-waitpid.h (status_to_str): New declaration.
9879
9880 2014-02-27  Hui Zhu  <hui@codesourcery.com>
9881
9882         PR 12702
9883         * infrun.c (ptid_match): Move ...
9884         * common/ptid.c (ptid_match): ... here.
9885         * inferior.h (ptid_match): Move ...
9886         * common/ptid.h (ptid_match): ... here.
9887
9888 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9889
9890         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9891         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9892         gdb_target_obs.
9893
9894 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9895
9896         * obsd-tdep.c (obsd_auxv_parse): New function.
9897         (obsd_init_abi): Set auxv_parse.
9898
9899         * gdbarch.sh (auxv_parse): New.
9900         * gdbarch.h: Regenerated.
9901         * gdbarch.c: Regenerated.
9902         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9903
9904 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
9905
9906         * guile/scm-value.c (gdbscm_history_append_x): New function.
9907         (value_functions): Add it.
9908
9909 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
9910
9911         * dwarf2read.c (attr_value_as_address): New function.
9912         (dwarf2_find_base_address, read_call_site_scope): Use
9913         attr_value_as_address in place of DW_ADDR.
9914         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9915         the low and high addresses.  Slight rework of the handling
9916         of the high pc being a constant form, and limit it to
9917         DWARF verson 4 or higher.
9918         (dwarf2_record_block_ranges): Likewise.
9919         (read_partial_die): Likewise.
9920         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9921
9922 2014-02-26  Tom Tromey  <tromey@redhat.com>
9923
9924         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
9925
9926 2014-02-26  Tom Tromey  <tromey@redhat.com>
9927
9928         * elfread.c (elf_read_minimal_symbols): Return early if
9929         minimal symbols have already been read.  Add "ei" parameter.
9930         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
9931         * minsyms.c (prim_record_minimal_symbol_full): Update.
9932         * objfiles.h (struct objstats) <n_minsyms>: Move...
9933         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
9934         * symmisc.c (print_objfile_statistics): Update.
9935
9936 2014-02-26  Tom Tromey  <tromey@redhat.com>
9937
9938         * elfread.c (elf_read_minimal_symbols): New function, from
9939         elf_symfile_read.
9940         (elf_symfile_read): Call it.
9941
9942 2014-02-26  Tom Tromey  <tromey@redhat.com>
9943
9944         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
9945         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9946         (lookup_minimal_symbol_solib_trampoline)
9947         (lookup_minimal_symbol_by_pc_section_1)
9948         (lookup_minimal_symbol_and_objfile): Update.
9949         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
9950         Don't allocate a minimal symbol if minsyms have already been read.
9951         (build_minimal_symbol_hash_tables): Update.
9952         (install_minimal_symbols): Do nothing if minsyms already read.
9953         Use the per-BFD obstack.
9954         (terminate_minimal_symbol_table): Use the per-BFD obstack.
9955         * objfiles.c (allocate_objfile): Call
9956         terminate_minimal_symbol_table later.
9957         (have_minimal_symbols): Update.
9958         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
9959         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
9960         Move from struct objfile.
9961         <minsyms_read>: New field.
9962         (struct objfile) <msymbols, minimal_symbol_count,
9963         msymbol_hash, msymbol_demangled_hash>: Move.
9964         (ALL_OBJFILE_MSYMBOLS): Update.
9965         * symfile.c (read_symbols): Set minsyms_read.
9966         (reread_symbols): Update.
9967         * symmisc.c (dump_objfile, dump_msymbols): Update.
9968
9969 2014-02-26  Tom Tromey  <tromey@redhat.com>
9970
9971         * minsyms.c (msymbols_sort): Remove.
9972         * minsyms.h (msymbols_sort): Remove.
9973         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
9974         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
9975         * elfread.c (elf_symtab_read): Don't add section offsets.
9976         * xcoffread.c (record_minimal_symbol): Don't add section offset
9977         to minimal symbol address.
9978         * somread.c (text_offset, data_offset): Remove.
9979         (som_symtab_read): Don't add section offsets to minimal symbol
9980         addresses.
9981         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
9982         Don't add section offsets to minimal symbols.
9983         * coffread.c (coff_symtab_read): Don't add section offsets
9984         to minimal symbol addresses.
9985         * machoread.c (macho_symtab_add_minsym): Don't add section offset
9986         to minimal symbol addresses.
9987         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
9988         section offset to minimal symbol addresses.
9989         * mdebugread.c (parse_partial_symbols): Don't add section
9990         offset to minimal symbol addresses.
9991         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
9992         offset to minimal symbol addresses.
9993
9994 2014-02-26  Tom Tromey  <tromey@redhat.com>
9995
9996         * ada-lang.c (ada_main_name): Update.
9997         (ada_add_standard_exceptions): Update.
9998         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
9999         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10000         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10001         * auxv.c (ld_so_xfer_auxv): Update.
10002         * avr-tdep.c (avr_scan_prologue): Update.
10003         * ax-gdb.c (gen_var_ref): Update.
10004         * blockframe.c (get_pc_function_start)
10005         (find_pc_partial_function_gnu_ifunc): Update.
10006         * breakpoint.c (create_overlay_event_breakpoint)
10007         (create_longjmp_master_breakpoint)
10008         (create_std_terminate_master_breakpoint)
10009         (create_exception_master_breakpoint): Update.
10010         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10011         * c-valprint.c (c_val_print): Update.
10012         * coff-pe-read.c (add_pe_forwarded_sym): Update.
10013         * common/agent.c (agent_look_up_symbols): Update.
10014         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10015         * dwarf2loc.c (call_site_to_target_addr): Update.
10016         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10017         * elfread.c (elf_gnu_ifunc_record_cache)
10018         (elf_gnu_ifunc_resolve_by_got): Update.
10019         * findvar.c (default_read_var_value): Update.
10020         * frame.c (inside_main_func): Update.
10021         * frv-tdep.c (frv_frame_this_id): Update.
10022         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10023         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10024         Update.
10025         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10026         (hppa_hpux_find_dummy_bpaddr): Update.
10027         * hppa-tdep.c (hppa_symbol_address): Update.
10028         * infcmd.c (until_next_command): Update.
10029         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10030         Update.
10031         * linespec.c (minsym_found, add_minsym): Update.
10032         * linux-nat.c (get_signo): Update.
10033         * linux-thread-db.c (inferior_has_bug): Update.
10034         * m32c-tdep.c (m32c_return_value)
10035         (m32c_m16c_address_to_pointer): Update.
10036         * m32r-tdep.c (m32r_frame_this_id): Update.
10037         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10038         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10039         * maint.c (maintenance_translate_address): Update.
10040         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10041         (frob_address): New function.
10042         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10043         frob_address.  Rename parameter to "pc_in".
10044         (compare_minimal_symbols, compact_minimal_symbols): Use raw
10045         addresses.
10046         (find_solib_trampoline_target, minimal_symbol_upper_bound):
10047         Update.
10048         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10049         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10050         * objc-lang.c (find_objc_msgsend): Update.
10051         * objfiles.c (objfile_relocate1): Update.
10052         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10053         * p-valprint.c (pascal_val_print): Update.
10054         * parse.c (write_exp_msymbol): Update.
10055         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10056         (ppc_elfv2_skip_entrypoint): Update.
10057         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10058         * printcmd.c (build_address_symbolic, msym_info)
10059         (address_info): Update.
10060         * proc-service.c (ps_pglobal_lookup): Update.
10061         * psymtab.c (find_pc_sect_psymtab_closer)
10062         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10063         Change msymbol parameter to bound_minimal_symbol.
10064         * ravenscar-thread.c (get_running_thread_id): Update.
10065         * remote.c (remote_check_symbols): Update.
10066         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10067         address.
10068         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10069         * solib-dsbt.c (lm_base): Update.
10070         * solib-frv.c (lm_base, main_got): Update.
10071         * solib-irix.c (locate_base): Update.
10072         * solib-som.c (som_solib_create_inferior_hook)
10073         (link_map_start): Update.
10074         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10075         * solib-svr4.c (elf_locate_base, enable_break): Update.
10076         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10077         (flush_ea_cache): Update.
10078         * stabsread.c (define_symbol, scan_file_globals): Update.
10079         * stack.c (find_frame_funname): Update.
10080         * symfile-debug.c (debug_qf_expand_symtabs_matching)
10081         (debug_qf_find_pc_sect_symtab): Update.
10082         * symfile.c (simple_read_overlay_table)
10083         (simple_overlay_update): Update.
10084         * symfile.h (struct quick_symbol_functions)
10085         <find_pc_sect_symtab>: Change type of msymbol to
10086         bound_minimal_symbol.
10087         * symmisc.c (dump_msymbols): Update.
10088         * symtab.c (find_pc_sect_symtab_via_partial)
10089         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10090         (search_symbols, print_msymbol_info): Update.
10091         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10092         (MSYMBOL_VALUE_ADDRESS): Redefine.
10093         (BMSYMBOL_VALUE_ADDRESS): New macro.
10094         * tracepoint.c (scope_info): Update.
10095         * tui/tui-disasm.c (tui_find_disassembly_address)
10096         (tui_get_begin_asm_address): Update.
10097         * valops.c (find_function_in_inferior): Update.
10098         * value.c (value_static_field, value_fn_field): Update.
10099
10100 2014-02-26  Tom Tromey  <tromey@redhat.com>
10101
10102         * ada-lang.c (ada_update_initial_language): Update.
10103         (ada_main_name, ada_has_this_exception_support): Update.
10104         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10105         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10106         * arm-tdep.c (arm_skip_stub): Update.
10107         * auxv.c (ld_so_xfer_auxv): Update.
10108         * avr-tdep.c (avr_scan_prologue): Update.
10109         * ax-gdb.c (gen_var_ref): Update.
10110         * breakpoint.c (struct breakpoint_objfile_data)
10111         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10112         type to bound_minimal_symbol.
10113         (create_overlay_event_breakpoint)
10114         (create_longjmp_master_breakpoint)
10115         (create_std_terminate_master_breakpoint)
10116         (create_exception_master_breakpoint): Update.
10117         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10118         * c-exp.y (classify_name): Update.
10119         * coffread.c (coff_symfile_read): Update.
10120         * common/agent.c (agent_look_up_symbols): Update.
10121         * d-lang.c (d_main_name): Update.
10122         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10123         * dec-thread.c (enable_dec_thread): Update.
10124         * dwarf2loc.c (call_site_to_target_addr): Update.
10125         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10126         * eval.c (evaluate_subexp_standard): Update.
10127         * findvar.c (struct minsym_lookup_data) <result>: Change type
10128         to bound_minimal_symbol.
10129         <objfile>: Remove.
10130         (minsym_lookup_iterator_cb, default_read_var_value): Update.
10131         * frame.c (inside_main_func): Update.
10132         * frv-tdep.c (frv_frame_this_id): Update.
10133         * gcore.c (call_target_sbrk): Update.
10134         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10135         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10136         Update.
10137         * go-lang.c (go_main_name): Update.
10138         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10139         (hppa_hpux_find_import_stub_for_addr): Update.
10140         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10141         Update.  Change return type.
10142         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10143         type.
10144         * jit.c (jit_breakpoint_re_set_internal): Update.
10145         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10146         Update.
10147         * linux-nat.c (get_signo): Update.
10148         * linux-thread-db.c (inferior_has_bug): Update
10149         * m32c-tdep.c (m32c_return_value)
10150         (m32c_m16c_address_to_pointer): Update.
10151         * m32r-tdep.c (m32r_frame_this_id): Update.
10152         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10153         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10154         * minsyms.c (lookup_minimal_symbol_internal): Rename to
10155         lookup_minimal_symbol.  Change return type.
10156         (lookup_minimal_symbol): Remove.
10157         (lookup_bound_minimal_symbol): Update.
10158         (lookup_minimal_symbol_text): Change return type.
10159         (lookup_minimal_symbol_solib_trampoline): Change return type.
10160         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10161         (lookup_minimal_symbol_solib_trampoline): Change return type.
10162         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10163         * objc-lang.c (lookup_objc_class, lookup_child_selector)
10164         (value_nsstring, find_imps): Update.
10165         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10166         * p-lang.c (pascal_main_name): Update.
10167         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10168         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10169         * proc-service.c (ps_pglobal_lookup): Update.
10170         * ravenscar-thread.c (get_running_thread_msymbol): Change
10171         return type.
10172         (has_ravenscar_runtime, get_running_thread_id): Update.
10173         * remote.c (remote_check_symbols): Update.
10174         * sol-thread.c (ps_pglobal_lookup): Update.
10175         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10176         * solib-dsbt.c (lm_base): Update.
10177         * solib-frv.c (lm_base, frv_relocate_section_addresses):
10178         Update.
10179         * solib-irix.c (locate_base): Update.
10180         * solib-som.c (som_solib_create_inferior_hook)
10181         (som_solib_desire_dynamic_linker_symbols, link_map_start):
10182         Update.
10183         * solib-spu.c (spu_enable_break): Update.
10184         * solib-svr4.c (elf_locate_base, enable_break): Update.
10185         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10186         (flush_ea_cache): Update.
10187         * stabsread.c (define_symbol): Update.
10188         * symfile.c (simple_read_overlay_table): Update.
10189         * symtab.c (find_pc_sect_line): Update.
10190         * tracepoint.c (scope_info): Update.
10191         * tui-disasm.c (tui_get_begin_asm_address): Update.
10192         * value.c (value_static_field): Update.
10193
10194 2014-02-26  Tom Tromey  <tromey@redhat.com>
10195
10196         * minsyms.c (prim_record_minimal_symbol_full): Use
10197         SET_MSYMBOL_VALUE_ADDRESS.
10198         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10199         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10200         SET_MSYMBOL_VALUE_ADDRESS.
10201         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10202         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10203
10204 2014-02-26  Tom Tromey  <tromey@redhat.com>
10205
10206         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10207         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10208         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10209         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10210         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10211         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10212         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10213         * ada-lang.c (ada_main_name): Update.
10214         (ada_lookup_simple_minsym): Update.
10215         (ada_make_symbol_completion_list): Update.
10216         (ada_add_standard_exceptions): Update.
10217         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10218         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10219         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10220         * arm-tdep.c (skip_prologue_function): Update.
10221         (arm_skip_stack_protector, arm_skip_stub): Update.
10222         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10223         (arm_wince_skip_main_prologue): Update.
10224         * auxv.c (ld_so_xfer_auxv): Update.
10225         * avr-tdep.c (avr_scan_prologue): Update.
10226         * ax-gdb.c (gen_var_ref): Update.
10227         * block.c (call_site_for_pc): Update.
10228         * blockframe.c (get_pc_function_start): Update.
10229         (find_pc_partial_function_gnu_ifunc): Update.
10230         * breakpoint.c (create_overlay_event_breakpoint): Update.
10231         (create_longjmp_master_breakpoint): Update.
10232         (create_std_terminate_master_breakpoint): Update.
10233         (create_exception_master_breakpoint): Update.
10234         (resolve_sal_pc): Update.
10235         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10236         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10237         Update.
10238         * c-valprint.c (c_val_print): Update.
10239         * coff-pe-read.c (add_pe_forwarded_sym): Update.
10240         * coffread.c (coff_symfile_read): Update.
10241         * common/agent.c (agent_look_up_symbols): Update.
10242         * dbxread.c (find_stab_function_addr): Update.
10243         (end_psymtab): Update.
10244         * dwarf2loc.c (call_site_to_target_addr): Update.
10245         (func_verify_no_selftailcall): Update.
10246         (tailcall_dump): Update.
10247         (call_site_find_chain_1): Update.
10248         (dwarf_expr_reg_to_entry_parameter): Update.
10249         * elfread.c (elf_gnu_ifunc_record_cache): Update.
10250         (elf_gnu_ifunc_resolve_by_got): Update.
10251         * f-valprint.c (info_common_command): Update.
10252         * findvar.c (read_var_value): Update.
10253         * frame.c (get_prev_frame_1): Update.
10254         (inside_main_func): Update.
10255         * frv-tdep.c (frv_skip_main_prologue): Update.
10256         (frv_frame_this_id): Update.
10257         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10258         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10259         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10260         (gnuv3_skip_trampoline): Update.
10261         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10262         (hppa64_hpux_in_solib_call_trampoline): Update.
10263         (hppa_hpux_skip_trampoline_code): Update.
10264         (hppa64_hpux_search_dummy_call_sequence): Update.
10265         (hppa_hpux_find_import_stub_for_addr): Update.
10266         (hppa_hpux_find_dummy_bpaddr): Update.
10267         * hppa-tdep.c (hppa_symbol_address)
10268         (hppa_lookup_stub_minimal_symbol): Update.
10269         * i386-tdep.c (i386_skip_main_prologue): Update.
10270         (i386_pe_skip_trampoline_code): Update.
10271         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10272         * infcall.c (get_function_name): Update.
10273         * infcmd.c (until_next_command): Update.
10274         * jit.c (jit_breakpoint_re_set_internal): Update.
10275         (jit_inferior_init): Update.
10276         * linespec.c (minsym_found): Update.
10277         (add_minsym): Update.
10278         * linux-fork.c (info_checkpoints_command): Update.
10279         * linux-nat.c (get_signo): Update.
10280         * linux-thread-db.c (inferior_has_bug): Update.
10281         * m32c-tdep.c (m32c_return_value): Update.
10282         (m32c_m16c_address_to_pointer): Update.
10283         (m32c_m16c_pointer_to_address): Update.
10284         * m32r-tdep.c (m32r_frame_this_id): Update.
10285         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10286         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10287         * maint.c (maintenance_translate_address): Update.
10288         * minsyms.c (add_minsym_to_hash_table): Update.
10289         (add_minsym_to_demangled_hash_table): Update.
10290         (msymbol_objfile): Update.
10291         (lookup_minimal_symbol): Update.
10292         (iterate_over_minimal_symbols): Update.
10293         (lookup_minimal_symbol_text): Update.
10294         (lookup_minimal_symbol_by_pc_name): Update.
10295         (lookup_minimal_symbol_solib_trampoline): Update.
10296         (lookup_minimal_symbol_by_pc_section_1): Update.
10297         (lookup_minimal_symbol_and_objfile): Update.
10298         (prim_record_minimal_symbol_full): Update.
10299         (compare_minimal_symbols): Update.
10300         (compact_minimal_symbols): Update.
10301         (build_minimal_symbol_hash_tables): Update.
10302         (install_minimal_symbols): Update.
10303         (terminate_minimal_symbol_table): Update.
10304         (find_solib_trampoline_target): Update.
10305         (minimal_symbol_upper_bound): Update.
10306         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10307         * mips-tdep.c (mips_stub_frame_sniffer): Update.
10308         (mips_skip_pic_trampoline_code): Update.
10309         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10310         * objc-lang.c (selectors_info): Update.
10311         (classes_info): Update.
10312         (find_methods): Update.
10313         (find_imps): Update.
10314         (find_objc_msgsend): Update.
10315         * objfiles.c (objfile_relocate1): Update.
10316         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10317         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10318         * p-valprint.c (pascal_val_print): Update.
10319         * parse.c (write_exp_msymbol): Update.
10320         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10321         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10322         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10323         * printcmd.c (build_address_symbolic): Update.
10324         (sym_info): Update.
10325         (address_info): Update.
10326         * proc-service.c (ps_pglobal_lookup): Update.
10327         * psymtab.c (find_pc_sect_psymtab_closer): Update.
10328         (find_pc_sect_psymtab): Update.
10329         * python/py-framefilter.c (py_print_frame): Update.
10330         * ravenscar-thread.c (get_running_thread_id): Update.
10331         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10332         Update.
10333         * remote.c (remote_check_symbols): Update.
10334         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10335         (rs6000_skip_trampoline_code): Update.
10336         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10337         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10338         * solib-dsbt.c (lm_base): Update.
10339         * solib-frv.c (lm_base): Update.
10340         (main_got): Update.
10341         * solib-irix.c (locate_base): Update.
10342         * solib-som.c (som_solib_create_inferior_hook): Update.
10343         (som_solib_desire_dynamic_linker_symbols): Update.
10344         (link_map_start): Update.
10345         * solib-spu.c (spu_enable_break): Update.
10346         (ocl_enable_break): Update.
10347         * solib-svr4.c (elf_locate_base): Update.
10348         (enable_break): Update.
10349         * spu-tdep.c (spu_get_overlay_table): Update.
10350         (spu_catch_start): Update.
10351         (flush_ea_cache): Update.
10352         * stabsread.c (define_symbol): Update.
10353         (scan_file_globals): Update.
10354         * stack.c (find_frame_funname): Update.
10355         (frame_info): Update.
10356         * symfile.c (simple_read_overlay_table): Update.
10357         (simple_overlay_update): Update.
10358         * symmisc.c (dump_msymbols): Update.
10359         * symtab.c (fixup_section): Update.
10360         (find_pc_sect_line): Update.
10361         (skip_prologue_sal): Update.
10362         (search_symbols): Update.
10363         (print_msymbol_info): Update.
10364         (rbreak_command): Update.
10365         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10366         (completion_list_objc_symbol): Update.
10367         (default_make_symbol_completion_list_break_on): Update.
10368         * tracepoint.c (scope_info): Update.
10369         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10370         (tui_get_begin_asm_address): Update.
10371         * valops.c (find_function_in_inferior): Update.
10372         * value.c (value_static_field): Update.
10373         (value_fn_field): Update.
10374
10375 2014-02-26  Tom Tromey  <tromey@redhat.com>
10376
10377         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10378         bound minimal symbols.  Move code that knows about minsym
10379         table layout...
10380         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
10381         function.
10382         * minsyms.h (minimal_symbol_upper_bound): Declare.
10383         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10384         minimal_symbol_upper_bound.
10385
10386 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
10387
10388         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10389         Use the type's name if its basic type does not have a tag.
10390
10391 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
10392
10393         * dwarf2read.c (read_subrange_type): Add comment.
10394
10395 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
10396
10397         * dwarf2read.c (update_enumeration_type_from_children): New
10398         function, mostly extracted from process_structure_scope.
10399         (read_enumeration_type): Call update_enumeration_type_from_children.
10400         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10401         and flag_flag_enum fields.
10402
10403 2014-02-26  Pedro Alves  <palves@redhat.com>
10404
10405         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10406         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10407         to_xfer_partial method.
10408
10409 2014-02-26  Pedro Alves  <palves@redhat.com>
10410
10411         * target.c (complete_target_initialization): Don't install
10412         default_xfer_partial as to_xfer_partial hook.
10413         (nomemory): Delete.
10414         (update_current_target): Don't INHERIT nor de_fault
10415         deprecated_xfer_memory.  Delete de_fault macro.
10416         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10417         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10418         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10419         field.
10420
10421 2014-02-26  Pedro Alves  <palves@redhat.com>
10422
10423         * go32-nat.c (my_write_child): New function.
10424         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10425         (go32_xfer_partial): New function.
10426         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10427         Instead install a to_xfer_partial hook.
10428
10429 2014-02-26  Pedro Alves  <palves@redhat.com>
10430
10431         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10432         to_xfer_partial helper.  Rewrite.
10433         (procfs_xfer_partial): New function.
10434         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10435         Install a to_xfer_partial hook.
10436
10437 2014-02-26  Pedro Alves  <palves@redhat.com>
10438
10439         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10440         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10441         (m32r_xfer_partial): New function.
10442         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10443         Install a to_xfer_partial hook.
10444
10445 2014-02-26  Pedro Alves  <palves@redhat.com>
10446
10447         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10448         helper.
10449         (mips_xfer_partial): New function.
10450         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10451         hook.  Install a to_xfer_partial hook.
10452
10453 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
10454
10455         * gdbtypes.h (create_array_type_with_stride): Add declaration.
10456         * gdbtypes.c (create_array_type_with_stride): New function,
10457         renaming create_array_type, but with an added parameter
10458         called "bit_stride".
10459         (create_array_type): Re-implement using
10460         create_array_type_with_stride.
10461         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10462         and DW_AT_bit_stride attributes.
10463
10464 2014-02-26  Pedro Alves  <palves@redhat.com>
10465
10466         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10467         task-specific breakpoints.
10468
10469 2014-02-25  Pedro Alves  <palves@redhat.com>
10470
10471         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10472         handling of object == TARGET_OBJECT_UNWIND_TABLE.
10473
10474 2014-02-25  Stan Shebs  <stan@codesourcery.com>
10475
10476         * defs.h: Annotate comments for Doxygen.
10477
10478 2014-02-25  Tom Tromey  <tromey@redhat.com>
10479
10480         * target.h (target_ignore): Don't declare.
10481         * target.c (target_ignore): Remove.
10482
10483 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
10484
10485         PR gdb/16626
10486         * auto-load.c (auto_load_objfile_script_1): Change filename to
10487         debugfile.
10488
10489 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
10490
10491         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10492         documentation.  Adjust prototype to match the target_ops
10493         to_xfer_partial method.  Adjust implementation accordingly.
10494
10495 2014-02-25  Hui Zhu  <hui@codesourcery.com>
10496
10497         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10498         to_traceframe_info.
10499
10500 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
10501
10502         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10503         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10504         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10505         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10506         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10507         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10508         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10509         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10510         New constants.
10511         (rl78_register_type): Use a data pointer type for SP and
10512         new pseudo registers mentioned above.  Use a 16 bit integer
10513         type for all other register pairs.
10514         (rl78_register_name, rl78_g10_register_name): Update for
10515         new pseudo registers.
10516         (rl78_pseudo_register_read): Likewise.
10517         (rl78_pseudo_register_write): Likewise.
10518         (rl78_dwarf_reg_to_regnum): Return register numbers representing
10519         to the newly added pseudo registers.
10520
10521 2014-02-24  Doug Evans  <dje@google.com>
10522
10523         * value.c (record_latest_value): Fix comment.
10524         * printcmd.c (print_command_1): Remove code to handle -1 return from
10525         record_latest_value.
10526
10527 2014-02-24  Pedro Alves  <palves@redhat.com>
10528
10529         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10530         deprecated_xfer_memory hook.
10531         (procfs_xfer_partial): Call procfs_xfer_memory instead
10532         of the deprecated_xfer_memory target hook.
10533         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10534         helper.
10535
10536 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
10537
10538         * windows-nat.c (windows_xfer_shared_libraries): Return
10539         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10540         requested object is TARGET_OBJECT_LIBRARIES.
10541
10542 2014-02-24  Yao Qi  <yao@codesourcery.com>
10543
10544         * target.h (enum target_xfer_status)
10545         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10546         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10547         explicitly.  New.
10548         * corefile.c (memory_error_message): User updated.
10549         * exec.c (section_table_read_available_memory): Likewise.
10550         * record-btrace.c (record_btrace_xfer_partial): Likewise.
10551         * target.c (target_xfer_status_to_string): Likewise.
10552         (raw_memory_xfer_partial): Likewise.
10553         (memory_xfer_partial_1, target_xfer_partial): Likewise.
10554         * valops.c (read_value_memory): Likewise.
10555         * exec.h: Update comments.
10556
10557 2014-02-24  Yao Qi  <yao@codesourcery.com>
10558
10559         * target.c (target_xfer_status_to_string): Rename argument err
10560         to status.
10561         * target.h (target_xfer_status_to_string): Update declaration.
10562         Replace target_xfer_error_to_string with
10563         target_xfer_status_to_string in comment.
10564
10565 2014-02-24  Yao Qi  <yao@codesourcery.com>
10566
10567         * mips-linux-nat.c (super_close): Update its type.
10568         (mips_linux_close): Pass 'self' to super_close.
10569
10570 2014-02-24  Yao Qi  <yao@codesourcery.com>
10571
10572         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10573         * corefile.c (read_memory): Adjusted.
10574         * target.c (target_write_with_progress): Adjusted.
10575
10576 2014-02-23  Yao Qi  <yao@codesourcery.com>
10577
10578         Revert two patches:
10579
10580         2013-10-25  Yao Qi  <yao@codesourcery.com>
10581
10582         * remote.c (remote_traceframe_info): Return early if
10583         traceframe is not selected.
10584
10585         2013-07-19  Yao Qi  <yao@codesourcery.com>
10586
10587         * target.c (update_current_target): Change the default action
10588         of 'to_traceframe_info' from tcomplain to return_zero.
10589         * target.h (struct target_ops) <to_traceframe_info>: Add more
10590         comments.
10591
10592 2014-02-23  Yao Qi  <yao@codesourcery.com>
10593
10594         * valops.c (read_value_memory): Rewrite it.  Call
10595         target_xfer_partial in a loop.
10596         * exec.h (section_table_available_memory): Remove declaration.
10597         Move comments to ...
10598         * exec.c (section_table_available_memory): ... here.  Make it
10599         static.
10600
10601 2014-02-23  Yao Qi  <yao@codesourcery.com>
10602
10603         * exec.c (section_table_read_available_memory): New function.
10604         * exec.h (section_table_read_available_memory): Declare.
10605         * ctf.c (ctf_xfer_partial): Call
10606         section_table_read_available_memory.
10607         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10608
10609 2014-02-23  Yao Qi  <yao@codesourcery.com>
10610
10611         * ctf.c (ctf_xfer_partial): Move code to ...
10612         * exec.c (exec_read_partial_read_only): ... it.  New function.
10613         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10614         * tracefile.c: Include "exec.h".
10615         * exec.h (exec_read_partial_read_only): Declare.
10616
10617 2014-02-23  Yao Qi  <yao@codesourcery.com>
10618
10619         * tracefile-tfile.c (tfile_has_all_memory): Remove.
10620         (tfile_has_memory): Remove.
10621         (init_tfile_ops): Don't set fields to_has_all_memory and
10622         to_has_memory of tfile_ops.
10623         * tracefile.c (tracefile_has_all_memory): New function.
10624         (tracefile_has_memory): New function.
10625         (init_tracefile_ops): Initialize fields to_has_all_memory and
10626         to_has_memory of 'ops'.
10627
10628 2014-02-23  Yao Qi  <yao@codesourcery.com>
10629
10630         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10631         (ctf_thread_alive, ctf_get_trace_status): Remove.
10632         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
10633         init_tracefile_ops.
10634         * tracefile-tfile.c (tfile_get_trace_status): Remove.
10635         (tfile_has_stack, tfile_has_registers): Remove.
10636         (tfile_thread_alive): Remove.
10637         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
10638         init_tracefile_ops.
10639         * tracefile.c (tracefile_has_stack): New function.
10640         (tracefile_has_registers): New function.
10641         (tracefile_thread_alive): New function.
10642         (tracefile_get_trace_status): New function.
10643         (init_tracefile_ops): New function.
10644         * tracefile.h (init_tracefile_ops): Declare.
10645
10646 2014-02-23  Yao Qi  <yao@codesourcery.com>
10647
10648         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10649         (O_LARGEFILE): Likewise.
10650         (tfile_ops): Likewise.
10651         (TRACE_HEADER_SIZE): Likewise.
10652         (trace_fd, trace_frames_offset, cur_offset): Likewise.
10653         (cur_data_size): Likewise.
10654         (tfile_read, tfile_open, tfile_interp_line): Likewise.
10655         (tfile_close, tfile_files_info): Likewise.
10656         (tfile_get_trace_status): Likewise.
10657         (tfile_get_tracepoint_status): Likewise.
10658         (tfile_get_traceframe_address): Likewise.
10659         (tfile_trace_find, match_blocktype): Likewise.
10660         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10661         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10662         (tfile_get_trace_state_variable_value): Likewise.
10663         (tfile_has_all_memory, tfile_has_memory): Likewise.
10664         (tfile_has_stack, tfile_has_registers): Likewise.
10665         (tfile_thread_alive, build_traceframe_info): Likewise.
10666         (tfile_traceframe_info, init_tfile_ops): Likewise.
10667         (_initialize_tracepoint): Don't call init_tfile_ops
10668         and add_target_with_completer.
10669         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10670         exec.h, completer.h and filenames.h.
10671         (_initialize_tracefile_tfile): New function.
10672
10673 2014-02-23  Yao Qi  <yao@codesourcery.com>
10674
10675         * Makefile.in (REMOTE_OBS): Append tracefile.o and
10676         tracefile-tfile.o.
10677         (HFILES_NO_SRCDIR): Add tracefile.h.
10678         * ctf.c: Include "tracefile.h".
10679         * tracefile.h: New file.
10680         * tracefile.c: New file
10681         * tracefile-tfile.c: New file.
10682         * tracepoint.c: Include "tracefile.h".
10683         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10684         (stop_reason_names): Add const.
10685         (trace_file_writer_xfree): Move it to tracefile.c.
10686         (trace_save, trace_save_command, trace_save_tfile): Likewise.
10687         (trace_save_ctf): Likewise.
10688         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10689         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10690         (tfile_write_header, tfile_write_regblock_type): Likewise.
10691         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10692         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10693         (tfile_write_raw_data, tfile_end): Likewise.
10694         (tfile_trace_file_writer_new): Likewise.
10695         (free_uploaded_tp): Make it extern.
10696         (free_uploaded_tsv): Make it extern.
10697         (_initialize_tracepoint): Move code to register command 'tsave'
10698         to tracefile.c.
10699         * tracepoint.h (stop_reason_names): Declare.
10700         (struct trace_frame_write_ops): Move it to tracefile.h.
10701         (struct trace_file_write_ops): Likewise.
10702         (struct trace_file_writer): Likewise.
10703         (free_uploaded_tsvs, free_uploaded_tps): Declare.
10704
10705 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
10706
10707         PR gdb/16594
10708         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10709         process name.
10710         (get_cores_used_by_process): New parameter num_cores, use it.
10711         (linux_xfer_osdata_processes): Pass num_cores to it.
10712         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10713         process name.
10714
10715 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
10716
10717         * target.c (memory_xfer_partial): Fix length arg in call to
10718         breakpoint_xfer_memory.
10719
10720 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
10721
10722         PR tdep/16397
10723         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10724         number comes after the + or - signs.  Adjust length of register
10725         name to be extracted.
10726
10727 2014-02-20  Tom Tromey  <tromey@redhat.com>
10728
10729         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10730         (ada_varobj_ops): Mark "extern".
10731
10732 2014-02-20  Tom Tromey  <tromey@redhat.com>
10733
10734         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10735
10736 2014-02-20  Doug Evans  <xdje42@gmail.com>
10737
10738         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10739         All callers updated.
10740         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10741         All callers updated.
10742         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10743         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10744
10745 2014-02-20  lin zuojian  <manjian2006@gmail.com>
10746             Joel Brobecker  <brobecker@adacore.com>
10747             Doug Evans  <xdje42@gmail.com>
10748
10749         PR symtab/16581
10750         * dwarf2read.c (struct die_info): New member in_process.
10751         (reset_die_in_process): New function.
10752         (process_die): Set it at the start, reset when returning.
10753         (inherit_abstract_dies): Only call process_die if origin_child_die
10754         not already being processed.
10755
10756 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10757
10758         * windows-nat.c (handle_unload_dll): Add function documentation.
10759         (do_initial_windows_stuff): Add comment explaining why we wait
10760         until after inferior initialization has finished before
10761         processing all DLLs.
10762
10763 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10764
10765         * windows-nat.c (get_module_name): Delete.
10766         (windows_get_exec_module_filename): New function, mostly
10767         inspired from get_module_name.
10768         (windows_pid_to_exec_file): Replace call to get_module_name
10769         by call to windows_get_exec_module_filename.
10770
10771 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10772
10773         * windows-nat.c (handle_load_dll): Rewrite this function's
10774         introductory comment.  Remove code using get_module_name
10775         to get the DLL's name.
10776
10777 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10778
10779         * windows-nat.c (get_windows_debug_event): Ignore
10780         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10781         if windows_initialization_done == 0.
10782         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10783         Adjust implementation to always load all DLLs.
10784         (do_initial_windows_stuff): Replace call to
10785         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10786
10787 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10788
10789         * windows-nat.c (_initialize_windows_nat): Deprecate the
10790         "dll-symbols" command.  Turn the "add-shared-symbol-files"
10791         and "assf" aliases into commands, and deprecate them as well.
10792         * NEWS: Add entry explaining that "dll-symbols" and its two
10793         aliases are now deprecated.
10794
10795 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10796
10797         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10798         new-line in debug string.  Remove trailing spaces.
10799
10800 2014-02-19  Stan Shebs  <stan@codesourcery.com>
10801
10802         * darwin-nat.c (darwin_xfer_partial): Fix return type.
10803
10804 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
10805
10806         * NEWS: Add entry for the new feature
10807         * python/py-value.c (valpy_binop): Call value_x_binop for struct
10808         and class values.
10809
10810 2014-02-19  Stan Shebs  <stan@codesourcery.com>
10811
10812         * MAINTAINERS: List Yao Qi as nios2 maintainer.
10813
10814 2014-02-19  Pedro Alves  <palves@redhat.com>
10815
10816         * common/ptid.h (struct ptid): Mention that process_stratum
10817         targets should prefer ptid.lwp.
10818
10819 2014-02-19  Pedro Alves  <palves@redhat.com>
10820
10821         * remote.c (remote_thread_alive, write_ptid, read_ptid)
10822         (read_ptid, remote_newthread_step, remote_threads_extra_info)
10823         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10824         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10825         store remote thread ids rather than ptid.tid.
10826         (_initialize_remote): Adjust.
10827
10828 2014-02-19  Tom Tromey  <tromey@redhat.com>
10829
10830         * target.c (target_get_unwinder): Rewrite.
10831         (target_get_tailcall_unwinder): Rewrite.
10832         * record-btrace.c (record_btrace_to_get_unwinder): New function.
10833         (record_btrace_to_get_tailcall_unwinder): New function.
10834         (init_record_btrace_ops): Update.
10835         * target.h (struct target_ops) <to_get_unwinder,
10836         to_get_tailcall_unwinder>: Now function pointers.  Use
10837         TARGET_DEFAULT_RETURN.
10838
10839 2014-02-19  Tom Tromey  <tromey@redhat.com>
10840
10841         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10842         argument.
10843         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10844
10845 2014-02-19  Tom Tromey  <tromey@redhat.com>
10846
10847         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10848         directly.
10849         * target-delegates.c: Rebuild.
10850         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10851         TARGET_DEFAULT_FUNC.
10852         * target.c (default_target_decr_pc_after_break): Rename from
10853         forward_target_decr_pc_after_break.  Simplify.
10854         (target_decr_pc_after_break): Rely on delegation.
10855
10856 2014-02-19  Tom Tromey  <tromey@redhat.com>
10857
10858         * target.c (update_current_target): Do not INHERIT to_doc or
10859         to_magic.  Do not de_fault to_open or to_close.
10860
10861 2014-02-19  Tom Tromey  <tromey@redhat.com>
10862
10863         * gcore.h (objfile_find_memory_regions): Declare.
10864         * gcore.c (objfile_find_memory_regions): No longer static.  Add
10865         "self" argument.
10866         (_initialize_gcore): Don't call exec_set_find_memory_regions.
10867         * exec.c: Include gcore.h.
10868         (exec_set_find_memory_regions): Remove.
10869         (exec_find_memory_regions): Remove.
10870         (exec_do_find_memory_regions): Remove.
10871         (init_exec_ops): Update.
10872         * defs.h (exec_set_find_memory_regions): Remove.
10873
10874 2014-02-19  Tom Tromey  <tromey@redhat.com>
10875
10876         * target-delegates.c: Rebuild.
10877         * target.h (struct target_ops) <to_extra_thread_info,
10878         to_thread_name, to_pid_to_exec_file, to_get_section_table,
10879         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10880         not 0, in TARGET_DEFAULT_RETURN.
10881
10882 2014-02-19  Tom Tromey  <tromey@redhat.com>
10883
10884         * target.c (complete_target_initialization): Remove casts.  Use
10885         return_zero_has_execution.
10886         (return_zero): Add "ignore" argument.
10887         (return_zero_has_execution): New function.
10888         (init_dummy_target): Remove casts.  Use
10889         return_zero_has_execution.
10890
10891 2014-02-19  Tom Tromey  <tromey@redhat.com>
10892
10893         * target.c (update_current_target): Update comments.  Do not
10894         INHERIT to_stratum.
10895
10896 2014-02-19  Tom Tromey  <tromey@redhat.com>
10897
10898         * arm-linux-nat.c (arm_linux_read_description): Delegate when
10899         needed.
10900         * corelow.c (core_read_description): Delegate when needed.
10901         * remote.c (remote_read_description): Delegate when needed.
10902         * target-delegates.c: Rebuild.
10903         * target.c (target_read_description): Rewrite.
10904         * target.h (struct target_ops) <to_read_description>: Update
10905         comment.  Use TARGET_DEFAULT_RETURN.
10906
10907 2014-02-19  Tom Tromey  <tromey@redhat.com>
10908
10909         * target-delegates.c: Rebuild.
10910         * target.c (update_current_target): Don't inherit or default
10911         to_can_run.
10912         (find_default_run_target): Check against delegate_can_run.
10913         * target.h (struct target_ops) <to_can_run>: Use
10914         TARGET_DEFAULT_RETURN.
10915
10916 2014-02-19  Tom Tromey  <tromey@redhat.com>
10917
10918         * target-delegates.c: Rebuild.
10919         * target.c (target_disconnect): Unconditionally delegate.
10920         * target.h (struct target_ops) <to_disconnect>: Use
10921         TARGET_DEFAULT_NORETURN.
10922
10923 2014-02-19  Tom Tromey  <tromey@redhat.com>
10924
10925         * record.c (record_stop): Unconditionally delegate.
10926         * target-delegates.c: Rebuild.
10927         * target.c (target_stop_recording): Unconditionally delegate.
10928         * target.h (struct target_ops) <to_stop_recording>: Use
10929         TARGET_DEFAULT_IGNORE.
10930
10931 2014-02-19  Tom Tromey  <tromey@redhat.com>
10932
10933         * target-delegates.c: Rebuild.
10934         * target.c (target_enable_btrace): Unconditionally delegate.
10935         * target.h (struct target_ops) <to_enable_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_read_btrace): Unconditionally delegate.
10942         * target.h (struct target_ops) <to_read_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 (target_teardown_btrace): Unconditionally delegate.
10949         * target.h (struct target_ops) <to_teardown_btrace>: Use
10950         TARGET_DEFAULT_NORETURN.
10951
10952 2014-02-19  Tom Tromey  <tromey@redhat.com>
10953
10954         * target-delegates.c: Rebuild.
10955         * target.c (target_disable_btrace): Unconditionally delegate.
10956         * target.h (struct target_ops) <to_disable_btrace>: Use
10957         TARGET_DEFAULT_NORETURN.
10958
10959 2014-02-19  Tom Tromey  <tromey@redhat.com>
10960
10961         * target-delegates.c: Rebuild.
10962         * target.c (default_search_memory): New function.
10963         (simple_search_memory): Update comment.
10964         (target_search_memory): Unconditionally delegate.
10965         * target.h (struct target_ops) <to_search_memory>: Use
10966         TARGET_DEFAULT_FUNC.
10967
10968 2014-02-19  Tom Tromey  <tromey@redhat.com>
10969
10970         * auxv.c (default_auxv_parse): No longer static.
10971         (target_auxv_parse): Unconditionally delegate.
10972         * auxv.h (default_auxv_parse): Declare.
10973         * target-delegates.c: Rebuild.
10974         * target.c: Include auxv.h.
10975         * target.h (struct target_ops) <to_auxv_parse>: Use
10976         TARGET_DEFAULT_FUNC.
10977
10978 2014-02-19  Tom Tromey  <tromey@redhat.com>
10979
10980         * target-delegates.c: Rebuild.
10981         * target.c (target_memory_map): Unconditionally delegate.
10982         * target.h (struct target_ops) <to_memory_map>: Use
10983         TARGET_DEFAULT_RETURN.
10984
10985 2014-02-19  Tom Tromey  <tromey@redhat.com>
10986
10987         * target-delegates.c: Rebuild.
10988         * target.c (target_thread_alive): Unconditionally delegate.
10989         * target.h (struct target_ops) <to_thread_alive>: Use
10990         TARGET_DEFAULT_RETURN.
10991
10992 2014-02-19  Tom Tromey  <tromey@redhat.com>
10993
10994         * target-delegates.c: Rebuild.
10995         * target.c (target_save_record): Unconditionally delegate.
10996         * target.h (struct target_ops) <to_save_record>: Use
10997         TARGET_DEFAULT_NORETURN.
10998
10999 2014-02-19  Tom Tromey  <tromey@redhat.com>
11000
11001         * target-delegates.c: Rebuild.
11002         * target.c (target_delete_record): Unconditionally delegate.
11003         * target.h (struct target_ops) <to_delete_record>: Use
11004         TARGET_DEFAULT_NORETURN.
11005
11006 2014-02-19  Tom Tromey  <tromey@redhat.com>
11007
11008         * target-delegates.c: Rebuild.
11009         * target.c (target_record_is_replaying): Unconditionally
11010         delegate.
11011         * target.h (struct target_ops) <to_record_is_replaying>: Use
11012         TARGET_DEFAULT_RETURN.
11013
11014 2014-02-19  Tom Tromey  <tromey@redhat.com>
11015
11016         * target-delegates.c: Rebuild.
11017         * target.c (target_goto_record_begin): Unconditionally delegate.
11018         * target.h (struct target_ops) <to_goto_record_begin>: 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_goto_record_end): Unconditionally delegate.
11025         * target.h (struct target_ops) <to_goto_record_end>: 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_goto_record): Unconditionally delegate.
11032         * target.h (struct target_ops) <to_goto_record>: 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): Unconditionally delegate.
11039         * target.h (struct target_ops) <to_insn_history>: 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_insn_history_from): Unconditionally delegate.
11046         * target.h (struct target_ops) <to_insn_history_from>: 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_insn_history_range): Unconditionally delegate.
11053         * target.h (struct target_ops) <to_insn_history_range>: 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): Unconditionally delegate.
11060         * target.h (struct target_ops) <to_call_history>: 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_call_history_from): Unconditionally delegate.
11067         * target.h (struct target_ops) <to_call_history_from>: 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_call_history_range): Unconditionally delegate.
11074         * target.h (struct target_ops) <to_call_history_range>: Use
11075         TARGET_DEFAULT_NORETURN.
11076
11077 2014-02-19  Tom Tromey  <tromey@redhat.com>
11078
11079         * target-delegates.c: Rebuild.
11080         * target.c (target_verify_memory): Unconditionally delegate.
11081         * target.h (struct target_ops) <to_verify_memory>: 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_core_of_thread): Unconditionally delegate.
11088         * target.h (struct target_ops) <to_core_of_thread>: Use
11089         TARGET_DEFAULT_RETURN.
11090
11091 2014-02-19  Tom Tromey  <tromey@redhat.com>
11092
11093         * target-delegates.c: Rebuild.
11094         * target.c (target_flash_done): Unconditionally delegate.
11095         * target.h (struct target_ops) <to_flash_done>: Use
11096         TARGET_DEFAULT_NORETURN.
11097
11098 2014-02-19  Tom Tromey  <tromey@redhat.com>
11099
11100         * target-delegates.c: Rebuild.
11101         * target.c (target_flash_erase): Unconditionally delegate.
11102         * target.h (struct target_ops) <to_flash_erase>: Use
11103         TARGET_DEFAULT_NORETURN.
11104
11105 2014-02-19  Tom Tromey  <tromey@redhat.com>
11106
11107         * target-delegates.c: Rebuild.
11108         * target.c (target_get_section_table): Unconditionally delegate.
11109         * target.h (struct target_ops) <to_get_section_table>: Use
11110         TARGET_DEFAULT_RETURN.
11111
11112 2014-02-19  Tom Tromey  <tromey@redhat.com>
11113
11114         * target-delegates.c: Rebuild.
11115         * target.c (target_pid_to_str): Unconditionally delegate.
11116         (init_dummy_target): Don't initialize to_pid_to_str.
11117         (default_pid_to_str): Rename from dummy_pid_to_str.
11118         * target.h (struct target_ops) <to_pid_to_str>: Use
11119         TARGET_DEFAULT_FUNC.
11120
11121 2014-02-19  Tom Tromey  <tromey@redhat.com>
11122
11123         * target-delegates.c: Rebuild.
11124         * target.c (target_find_new_threads): Unconditionally delegate.
11125         * target.h (struct target_ops) <to_find_new_threads>: Use
11126         TARGET_DEFAULT_RETURN.
11127
11128 2014-02-19  Tom Tromey  <tromey@redhat.com>
11129
11130         * target-delegates.c: Rebuild.
11131         * target.c (target_program_signals): Unconditionally delegate.
11132         * target.h (struct target_ops) <to_program_signals>: Use
11133         TARGET_DEFAULT_IGNORE.
11134
11135 2014-02-19  Tom Tromey  <tromey@redhat.com>
11136
11137         * target-delegates.c: Rebuild.
11138         * target.c (target_pass_signals): Unconditionally delegate.
11139         * target.h (struct target_ops) <to_pass_signals>: Use
11140         TARGET_DEFAULT_IGNORE.
11141
11142 2014-02-19  Tom Tromey  <tromey@redhat.com>
11143
11144         * target-delegates.c: Rebuild.
11145         * target.c (default_mourn_inferior): New function.
11146         (target_mourn_inferior): Unconditionally delegate.
11147         * target.h (struct target_ops) <to_mourn_inferior>: Use
11148         TARGET_DEFAULT_FUNC.
11149
11150 2014-02-19  Tom Tromey  <tromey@redhat.com>
11151
11152         * target-delegates.c: Rebuild.
11153         * target.c (default_follow_fork): New function.
11154         (target_follow_fork): Unconditionally delegate.
11155         * target.h (struct target_ops) <to_follow_fork>: Use
11156         TARGET_DEFAULT_FUNC.
11157
11158 2014-02-19  Tom Tromey  <tromey@redhat.com>
11159
11160         * target-delegates.c: Rebuild.
11161         * target.c (target_kill): Unconditionally delegate.
11162         * target.h (struct target_ops) <to_kill>: Use
11163         TARGET_DEFAULT_NORETURN.
11164
11165 2014-02-19  Tom Tromey  <tromey@redhat.com>
11166
11167         * target-delegates.c: Rebuild.
11168         * target.c (target_masked_watch_num_registers): Unconditionally
11169         delegate.
11170         * target.h (struct target_ops) <to_masked_watch_num_registers>:
11171         Use TARGET_DEFAULT_RETURN.
11172
11173 2014-02-19  Tom Tromey  <tromey@redhat.com>
11174
11175         * target-delegates.c: Rebuild.
11176         * target.c (target_remove_mask_watchpoint): Unconditionally
11177         delegate.
11178         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11179         TARGET_DEFAULT_RETURN.
11180
11181 2014-02-19  Tom Tromey  <tromey@redhat.com>
11182
11183         * target-delegates.c: Rebuild.
11184         * target.c (target_insert_mask_watchpoint): Unconditionally
11185         delegate.
11186         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11187         TARGET_DEFAULT_RETURN.
11188
11189 2014-02-19  Tom Tromey  <tromey@redhat.com>
11190
11191         * target-delegates.c: Rebuild.
11192         * target.c (target_ranged_break_num_registers): Unconditionally
11193         delegate.
11194         * target.h (struct target_ops) <to_ranged_break_num_registers>:
11195         Use TARGET_DEFAULT_RETURN.
11196
11197 2014-02-19  Tom Tromey  <tromey@redhat.com>
11198
11199         * target-delegates.c: Rebuild.
11200         * target.c (target_fetch_registers): Unconditionally delegate.
11201         * target.h (struct target_ops) <to_fetch_registers>: Use
11202         TARGET_DEFAULT_NORETURN.
11203
11204 2014-02-19  Tom Tromey  <tromey@redhat.com>
11205
11206         * target-delegates.c: Rebuild.
11207         * target.c (update_current_target): Don't inherit or default
11208         to_stop.
11209         * target.h (struct target_ops) <to_stop>: Use
11210         TARGET_DEFAULT_IGNORE.
11211
11212 2014-02-19  Tom Tromey  <tromey@redhat.com>
11213
11214         * target-delegates.c: Rebuild.
11215         * target.c (update_current_target): Don't inherit or default
11216         to_can_run_breakpoint_commands.
11217         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11218         Use TARGET_DEFAULT_RETURN.
11219
11220 2014-02-19  Tom Tromey  <tromey@redhat.com>
11221
11222         * target-delegates.c: Rebuild.
11223         * target.c (update_current_target): Don't inherit or default
11224         to_supports_evaluation_of_breakpoint_conditions.
11225         * target.h (struct target_ops)
11226         <to_supports_evaluation_of_breakpoint_conditions>: Use
11227         TARGET_DEFAULT_RETURN.
11228
11229 2014-02-19  Tom Tromey  <tromey@redhat.com>
11230
11231         * target-delegates.c: Rebuild.
11232         * target.c (update_current_target): Don't inherit or default
11233         to_augmented_libraries_svr4_read.
11234         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11235         Use TARGET_DEFAULT_RETURN.
11236
11237 2014-02-19  Tom Tromey  <tromey@redhat.com>
11238
11239         * target-delegates.c: Rebuild.
11240         * target.c (update_current_target): Don't inherit or default
11241         to_can_use_agent.
11242         * target.h (struct target_ops) <to_can_use_agent>: Use
11243         TARGET_DEFAULT_RETURN.
11244
11245 2014-02-19  Tom Tromey  <tromey@redhat.com>
11246
11247         * target-delegates.c: Rebuild.
11248         * target.c (update_current_target): Don't inherit or default
11249         to_use_agent.
11250         * target.h (struct target_ops) <to_use_agent>: Use
11251         TARGET_DEFAULT_NORETURN.
11252
11253 2014-02-19  Tom Tromey  <tromey@redhat.com>
11254
11255         * target-delegates.c: Rebuild.
11256         * target.c (update_current_target): Don't inherit or default
11257         to_traceframe_info.
11258         (return_null): Remove.
11259         * target.h (struct target_ops) <to_traceframe_info>: Use
11260         TARGET_DEFAULT_RETURN.
11261
11262 2014-02-19  Tom Tromey  <tromey@redhat.com>
11263
11264         * target-delegates.c: Rebuild.
11265         * target.c (update_current_target): Don't inherit or default
11266         to_static_tracepoint_markers_by_strid.
11267         * target.h (struct target_ops)
11268         <to_static_tracepoint_markers_by_strid>: Use
11269         TARGET_DEFAULT_NORETURN.
11270
11271 2014-02-19  Tom Tromey  <tromey@redhat.com>
11272
11273         * target-delegates.c: Rebuild.
11274         * target.c (update_current_target): Don't inherit or default
11275         to_static_tracepoint_marker_at.
11276         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11277         Use TARGET_DEFAULT_RETURN.
11278
11279 2014-02-19  Tom Tromey  <tromey@redhat.com>
11280
11281         * target-delegates.c: Rebuild.
11282         * target.c (update_current_target): Don't inherit or default
11283         to_set_permissions.
11284         * target.h (struct target_ops) <to_set_permissions>: Use
11285         TARGET_DEFAULT_IGNORE.
11286
11287 2014-02-19  Tom Tromey  <tromey@redhat.com>
11288
11289         * target-delegates.c: Rebuild.
11290         * target.c (update_current_target): Don't inherit or default
11291         to_get_tib_address.
11292         * target.h (struct target_ops) <to_get_tib_address>: Use
11293         TARGET_DEFAULT_NORETURN.
11294
11295 2014-02-19  Tom Tromey  <tromey@redhat.com>
11296
11297         * target-delegates.c: Rebuild.
11298         * target.c (update_current_target): Don't inherit or default
11299         to_set_trace_notes.
11300         * target.h (struct target_ops) <to_set_trace_notes>: Use
11301         TARGET_DEFAULT_RETURN.
11302
11303 2014-02-19  Tom Tromey  <tromey@redhat.com>
11304
11305         * target-delegates.c: Rebuild.
11306         * target.c (update_current_target): Don't initialize
11307         to_set_trace_buffer_size.
11308         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11309         TARGET_DEFAULT_IGNORE.
11310
11311 2014-02-19  Tom Tromey  <tromey@redhat.com>
11312
11313         * target-delegates.c: Rebuild.
11314         * target.c (update_current_target): Don't inherit or default
11315         to_set_circular_trace_buffer.
11316         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11317         TARGET_DEFAULT_IGNORE.
11318
11319 2014-02-19  Tom Tromey  <tromey@redhat.com>
11320
11321         * target-delegates.c: Rebuild.
11322         * target.c (update_current_target): Don't inherit or default
11323         to_set_disconnected_tracing.
11324         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11325         TARGET_DEFAULT_IGNORE.
11326
11327 2014-02-19  Tom Tromey  <tromey@redhat.com>
11328
11329         * target-delegates.c: Rebuild.
11330         * target.c (update_current_target): Don't inherit or default
11331         to_get_min_fast_tracepoint_insn_len.
11332         (return_minus_one): Remove.
11333         * target.h (struct target_ops)
11334         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11335
11336 2014-02-19  Tom Tromey  <tromey@redhat.com>
11337
11338         * target-delegates.c: Rebuild.
11339         * target.c (update_current_target): Don't inherit or default
11340         to_get_raw_trace_data.
11341         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11342         TARGET_DEFAULT_NORETURN.
11343
11344 2014-02-19  Tom Tromey  <tromey@redhat.com>
11345
11346         * target-delegates.c: Rebuild.
11347         * target.c (update_current_target): Don't inherit or default
11348         to_upload_trace_state_variables.
11349         * target.h (struct target_ops) <to_upload_trace_state_variables>:
11350         Use TARGET_DEFAULT_RETURN.
11351
11352 2014-02-19  Tom Tromey  <tromey@redhat.com>
11353
11354         * target-delegates.c: Rebuild.
11355         * target.c (update_current_target): Don't inherit or default
11356         to_upload_tracepoints.
11357         * target.h (struct target_ops) <to_upload_tracepoints>: Use
11358         TARGET_DEFAULT_RETURN.
11359
11360 2014-02-19  Tom Tromey  <tromey@redhat.com>
11361
11362         * target-delegates.c: Rebuild.
11363         * target.c (update_current_target): Don't inherit or default
11364         to_save_trace_data.
11365         * target.h (struct target_ops) <to_save_trace_data>: Use
11366         TARGET_DEFAULT_NORETURN.
11367
11368 2014-02-19  Tom Tromey  <tromey@redhat.com>
11369
11370         * target-delegates.c: Rebuild.
11371         * target.c (update_current_target): Don't inherit or default
11372         to_get_trace_state_variable_value.
11373         * target.h (struct target_ops)
11374         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11375
11376 2014-02-19  Tom Tromey  <tromey@redhat.com>
11377
11378         * target-delegates.c: Rebuild.
11379         * target.c (update_current_target): Don't inherit or default
11380         to_trace_find.
11381         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11382
11383 2014-02-19  Tom Tromey  <tromey@redhat.com>
11384
11385         * target-delegates.c: Rebuild.
11386         * target.c (update_current_target): Don't inherit or default
11387         to_trace_stop.
11388         * target.h (struct target_ops) <to_trace_stop>: Use
11389         TARGET_DEFAULT_NORETURN.
11390
11391 2014-02-19  Tom Tromey  <tromey@redhat.com>
11392
11393         * target-delegates.c: Rebuild.
11394         * target.c (update_current_target): Don't inherit or default
11395         to_get_tracepoint_status.
11396         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11397         TARGET_DEFAULT_NORETURN.
11398
11399 2014-02-19  Tom Tromey  <tromey@redhat.com>
11400
11401         * target-delegates.c: Rebuild.
11402         * target.c (update_current_target): Don't inherit or default
11403         to_get_trace_status.
11404         * target.h (struct target_ops) <to_get_trace_status>: Use
11405         TARGET_DEFAULT_RETURN.
11406
11407 2014-02-19  Tom Tromey  <tromey@redhat.com>
11408
11409         * target-delegates.c: Rebuild.
11410         * target.c (update_current_target): Don't inherit or default
11411         to_trace_start.
11412         * target.h (struct target_ops) <to_trace_start>: Use
11413         TARGET_DEFAULT_NORETURN.
11414
11415 2014-02-19  Tom Tromey  <tromey@redhat.com>
11416
11417         * target-delegates.c: Rebuild.
11418         * target.c (update_current_target): Don't inherit or default
11419         to_trace_set_readonly_regions.
11420         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11421         Use TARGET_DEFAULT_NORETURN.
11422
11423 2014-02-19  Tom Tromey  <tromey@redhat.com>
11424
11425         * target-delegates.c: Rebuild.
11426         * target.c (update_current_target): Don't inherit or default
11427         to_disable_tracepoint.
11428         * target.h (struct target_ops) <to_disable_tracepoint>: Use
11429         TARGET_DEFAULT_NORETURN.
11430
11431 2014-02-19  Tom Tromey  <tromey@redhat.com>
11432
11433         * target-delegates.c: Rebuild.
11434         * target.c (update_current_target): Don't inherit or default
11435         to_enable_tracepoint.
11436         * target.h (struct target_ops) <to_enable_tracepoint>: Use
11437         TARGET_DEFAULT_NORETURN.
11438
11439 2014-02-19  Tom Tromey  <tromey@redhat.com>
11440
11441         * target-delegates.c: Rebuild.
11442         * target.c (update_current_target): Don't inherit or default
11443         to_download_trace_state_variable.
11444         * target.h (struct target_ops) <to_download_trace_state_variable>:
11445         Use TARGET_DEFAULT_NORETURN.
11446
11447 2014-02-19  Tom Tromey  <tromey@redhat.com>
11448
11449         * target-delegates.c: Rebuild.
11450         * target.c (update_current_target): Don't inherit or default
11451         to_can_download_tracepoint.
11452         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11453         TARGET_DEFAULT_RETURN.
11454
11455 2014-02-19  Tom Tromey  <tromey@redhat.com>
11456
11457         * target-delegates.c: Rebuild.
11458         * target.c (update_current_target): Don't inherit or default
11459         to_download_tracepoint.
11460         * target.h (struct target_ops) <to_download_tracepoint>: Use
11461         TARGET_DEFAULT_NORETURN.
11462
11463 2014-02-19  Tom Tromey  <tromey@redhat.com>
11464
11465         * target-delegates.c: Rebuild.
11466         * target.c (update_current_target): Don't inherit or default
11467         to_trace_init.
11468         * target.h (struct target_ops) <to_trace_init>: Use
11469         TARGET_DEFAULT_RETURN.
11470
11471 2014-02-19  Tom Tromey  <tromey@redhat.com>
11472
11473         * target-delegates.c: Rebuild.
11474         * target.c (update_current_target): Don't inherit or default
11475         to_supports_string_tracing.
11476         * target.h (struct target_ops) <to_supports_string_tracing>: Use
11477         TARGET_DEFAULT_RETURN.
11478
11479 2014-02-19  Tom Tromey  <tromey@redhat.com>
11480
11481         * target-delegates.c: Rebuild.
11482         * target.c (update_current_target): Don't inherit or default
11483         to_supports_enable_disable_tracepoint.
11484         * target.h (struct target_ops)
11485         <to_supports_enable_disable_tracepoint>: Use
11486         TARGET_DEFAULT_RETURN.
11487
11488 2014-02-19  Tom Tromey  <tromey@redhat.com>
11489
11490         * target-delegates.c: Rebuild.
11491         * target.c (update_current_target): Don't inherit or default
11492         to_supports_multi_process.
11493         * target.h (struct target_ops) <to_supports_multi_process>: Use
11494         TARGET_DEFAULT_RETURN.
11495
11496 2014-02-19  Tom Tromey  <tromey@redhat.com>
11497
11498         * target-delegates.c: Rebuild.
11499         * target.c (update_current_target): Don't inherit or default
11500         to_get_ada_task_ptid.
11501         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11502         TARGET_DEFAULT_FUNC.
11503
11504 2014-02-19  Tom Tromey  <tromey@redhat.com>
11505
11506         * target-delegates.c: Rebuild.
11507         * target.c (update_current_target): Don't inherit or default
11508         to_thread_architecture.
11509         * target.h (struct target_ops) <to_thread_architecture>: Use
11510         TARGET_DEFAULT_FUNC.
11511
11512 2014-02-19  Tom Tromey  <tromey@redhat.com>
11513
11514         * target-delegates.c: Rebuild.
11515         * target.c (update_current_target): Don't inherit or default
11516         to_execution_direction.
11517         * target.h (struct target_ops) <to_execution_direction>: Use
11518         TARGET_DEFAULT_FUNC.
11519
11520 2014-02-19  Tom Tromey  <tromey@redhat.com>
11521
11522         * target-delegates.c: Rebuild.
11523         * target.c (update_current_target): Don't inherit or default
11524         to_can_execute_reverse.
11525         * target.h (struct target_ops) <to_can_execute_reverse>: Use
11526         TARGET_DEFAULT_RETURN.
11527         (target_can_execute_reverse): Unconditionally delegate.
11528
11529 2014-02-19  Tom Tromey  <tromey@redhat.com>
11530
11531         * target-delegates.c: Rebuild.
11532         * target.c (update_current_target): Don't inherit or default
11533         to_goto_bookmark.
11534         (dummy_goto_bookmark): Remove.
11535         (init_dummy_target): Don't inherit or default to_goto_bookmark.
11536         * target.h (struct target_ops) <to_goto_bookmark>: Use
11537         TARGET_DEFAULT_NORETURN.
11538
11539 2014-02-19  Tom Tromey  <tromey@redhat.com>
11540
11541         * target-delegates.c: Rebuild.
11542         * target.c (update_current_target): Don't inherit or default
11543         to_get_bookmark.
11544         (dummy_get_bookmark): Remove.
11545         (init_dummy_target): Don't inherit or default to_get_bookmark.
11546         * target.h (struct target_ops) <to_get_bookmark>: Use
11547         TARGET_DEFAULT_NORETURN
11548
11549 2014-02-19  Tom Tromey  <tromey@redhat.com>
11550
11551         * target-delegates.c: Rebuild.
11552         * target.c (update_current_target): Don't inherit or default
11553         to_make_corefile_notes.
11554         (init_dummy_target): Don't initialize to_make_corefile_notes.
11555         * target.h (struct target_ops) <to_make_corefile_notes>: Use
11556         TARGET_DEFAULT_FUNC.
11557
11558 2014-02-19  Tom Tromey  <tromey@redhat.com>
11559
11560         * target-delegates.c: Rebuild.
11561         * target.c (update_current_target): Don't inherit or default
11562         to_find_memory_regions.
11563         (init_dummy_target): Don't initialize to_find_memory_regions.
11564         * target.h (struct target_ops) <to_find_memory_regions>: Use
11565         TARGET_DEFAULT_FUNC.
11566
11567 2014-02-19  Tom Tromey  <tromey@redhat.com>
11568
11569         * target-delegates.c: Rebuild.
11570         * target.c (update_current_target): Don't inherit or default
11571         to_log_command.
11572         * target.h (struct target_ops) <to_log_command>: Use
11573         TARGET_DEFAULT_IGNORE.
11574         (target_log_command): Unconditionally delegate.
11575
11576 2014-02-19  Tom Tromey  <tromey@redhat.com>
11577
11578         * target-delegates.c: Rebuild.
11579         * target.c (update_current_target): Don't inherit or default
11580         to_pid_to_exec_file.
11581         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11582         TARGET_DEFAULT_RETURN.
11583
11584 2014-02-19  Tom Tromey  <tromey@redhat.com>
11585
11586         * target-delegates.c: Rebuild.
11587         * target.c (update_current_target): Don't inherit or default
11588         to_thread_name.
11589         (target_thread_name): Unconditionally delegate.
11590         * target.h (struct target_ops) <to_thread_name>: Use
11591         TARGET_DEFAULT_RETURN.
11592
11593 2014-02-19  Tom Tromey  <tromey@redhat.com>
11594
11595         * target-delegates.c: Rebuild.
11596         * target.c (update_current_target): Don't inherit or default
11597         to_extra_thread_info.
11598         * target.h (struct target_ops) <to_extra_thread_info>: Use
11599         TARGET_DEFAULT_RETURN.
11600
11601 2014-02-19  Tom Tromey  <tromey@redhat.com>
11602
11603         * target-delegates.c: Rebuild.
11604         * target.c (update_current_target): Don't inherit or default
11605         to_has_exited.
11606         * target.h (struct target_ops) <to_has_exited>: Use
11607         TARGET_DEFAULT_RETURN..
11608
11609 2014-02-19  Tom Tromey  <tromey@redhat.com>
11610
11611         * target-delegates.c: Rebuild.
11612         * target.c (update_current_target): Don't inherit or default
11613         to_set_syscall_catchpoint.
11614         (return_one): Remove.
11615         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11616         TARGET_DEFAULT_RETURN.
11617
11618 2014-02-19  Tom Tromey  <tromey@redhat.com>
11619
11620         * target-delegates.c: Rebuild.
11621         * target.c (update_current_target): Don't inherit or default
11622         to_insert_exec_catchpoint.
11623         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11624         TARGET_DEFAULT_RETURN.
11625
11626 2014-01-08  Tom Tromey  <tromey@redhat.com>
11627
11628         * target-delegates.c: Rebuild.
11629         * target.c (update_current_target): Don't inherit or default
11630         to_insert_exec_catchpoint.
11631         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11632         TARGET_DEFAULT_RETURN.
11633
11634 2014-02-19  Tom Tromey  <tromey@redhat.com>
11635
11636         * target-delegates.c: Rebuild.
11637         * target.c (update_current_target): Don't inherit or default
11638         to_remove_vfork_catchpoint.
11639         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11640         TARGET_DEFAULT_RETURN.
11641
11642 2014-02-19  Tom Tromey  <tromey@redhat.com>
11643
11644         * target-delegates.c: Rebuild.
11645         * target.c (update_current_target): Don't inherit or default
11646         to_insert_vfork_catchpoint.
11647         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11648         TARGET_DEFAULT_RETURN.
11649
11650 2014-02-19  Tom Tromey  <tromey@redhat.com>
11651
11652         * target-delegates.c: Rebuild.
11653         * target.c (update_current_target): Don't inherit or default
11654         to_remove_fork_catchpoint.
11655         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11656         TARGET_DEFAULT_RETURN.
11657
11658 2014-02-19  Tom Tromey  <tromey@redhat.com>
11659
11660         * target-delegates.c: Rebuild.
11661         * target.c (update_current_target): Don't inherit or default
11662         to_insert_fork_catchpoint.
11663         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11664         TARGET_DEFAULT_RETURN.
11665
11666 2014-02-19  Tom Tromey  <tromey@redhat.com>
11667
11668         * target-delegates.c: Rebuild.
11669         * target.c (update_current_target): Don't inherit or default
11670         to_post_startup_inferior.
11671         * target.h (struct target_ops) <to_post_startup_inferior>: Use
11672         TARGET_DEFAULT_IGNORE.
11673
11674 2014-02-19  Tom Tromey  <tromey@redhat.com>
11675
11676         * target-delegates.c: Rebuild.
11677         * target.c (update_current_target): Don't inherit or default
11678         to_load.
11679         * target.h (struct target_ops) <to_load>: Use
11680         TARGET_DEFAULT_NORETURN.
11681
11682 2014-02-19  Tom Tromey  <tromey@redhat.com>
11683
11684         * target-delegates.c: Rebuild.
11685         * target.c (update_current_target): Don't inherit or default
11686         to_terminal_info.
11687         * target.h (struct target_ops) <to_terminal_info>: Use
11688         TARGET_DEFAULT_FUNC.
11689
11690 2014-02-19  Tom Tromey  <tromey@redhat.com>
11691
11692         * target-delegates.c: Rebuild.
11693         * target.c (update_current_target): Don't inherit or default
11694         to_terminal_save_ours.
11695         * target.h (struct target_ops) <to_terminal_save_ours>: Use
11696         TARGET_DEFAULT_IGNORE.
11697
11698 2014-02-19  Tom Tromey  <tromey@redhat.com>
11699
11700         * target-delegates.c: Rebuild.
11701         * target.c (update_current_target): Don't inherit or default
11702         to_terminal_ours.
11703         * target.h (struct target_ops) <to_terminal_ours>: Use
11704         TARGET_DEFAULT_IGNORE.
11705
11706 2014-02-19  Tom Tromey  <tromey@redhat.com>
11707
11708         * target-delegates.c: Rebuild.
11709         * target.c (update_current_target): Don't inherit or default
11710         to_terminal_ours_for_output.
11711         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11712         TARGET_DEFAULT_IGNORE.
11713
11714 2014-02-19  Tom Tromey  <tromey@redhat.com>
11715
11716         * target-delegates.c: Rebuild.
11717         * target.c (update_current_target): Don't inherit or default
11718         to_terminal_inferior.
11719         * target.h (struct target_ops) <to_terminal_inferior>: Use
11720         TARGET_DEFAULT_IGNORE.
11721
11722 2014-02-19  Tom Tromey  <tromey@redhat.com>
11723
11724         * target-delegates.c: Rebuild.
11725         * target.c (update_current_target): Don't inherit or default
11726         to_terminal_init.
11727         * target.h (struct target_ops) <to_terminal_init>: Use
11728         TARGET_DEFAULT_IGNORE.
11729
11730 2014-02-19  Tom Tromey  <tromey@redhat.com>
11731
11732         * target-delegates.c: Rebuild.
11733         * target.c (update_current_target): Don't inherit or default
11734         to_can_accel_watchpoint_condition.
11735         * target.h (struct target_ops)
11736         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11737
11738 2014-02-19  Tom Tromey  <tromey@redhat.com>
11739
11740         * target-delegates.c: Rebuild.
11741         * target.c (update_current_target): Don't inherit or default
11742         to_region_ok_for_hw_watchpoint.
11743         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11744         Use TARGET_DEFAULT_FUNC.
11745
11746 2014-02-19  Tom Tromey  <tromey@redhat.com>
11747
11748         * target-delegates.c: Rebuild.
11749         * target.c (update_current_target): Don't inherit or default
11750         to_watchpoint_addr_within_range.
11751         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11752         Use TARGET_DEFAULT_FUNC.
11753
11754 2014-02-19  Tom Tromey  <tromey@redhat.com>
11755
11756         * target-delegates.c: Rebuild.
11757         * target.c (update_current_target): Don't inherit or default
11758         to_remove_watchpoint.
11759         * target.h (struct target_ops) <to_remove_watchpoint>: Use
11760         TARGET_DEFAULT_NORETURN.
11761
11762 2014-02-19  Tom Tromey  <tromey@redhat.com>
11763
11764         * target-delegates.c: Rebuild.
11765         * target.c (update_current_target): Don't inherit or default
11766         to_insert_watchpoint.
11767         * target.h (struct target_ops) <to_insert_watchpoint>: Use
11768         TARGET_DEFAULT_RETURN.
11769
11770 2014-02-19  Tom Tromey  <tromey@redhat.com>
11771
11772         * target-delegates.c: Rebuild.
11773         * target.c (update_current_target): Don't inherit or default
11774         to_remove_hw_breakpoint.
11775         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11776         TARGET_DEFAULT_RETURN.
11777
11778 2014-02-19  Tom Tromey  <tromey@redhat.com>
11779
11780         * target-delegates.c: Rebuild.
11781         * target.c (update_current_target): Don't inherit or default
11782         to_insert_hw_breakpoint.
11783         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11784         TARGET_DEFAULT_RETURN.
11785
11786 2014-02-19  Tom Tromey  <tromey@redhat.com>
11787
11788         * target-delegates.c: Rebuild.
11789         * target.c (update_current_target): Don't inherit or default
11790         to_can_use_hw_breakpoint.
11791         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11792         TARGET_DEFAULT_RETURN.
11793
11794 2014-02-19  Tom Tromey  <tromey@redhat.com>
11795
11796         * target-delegates.c: Rebuild.
11797         * target.c (update_current_target): Don't inherit or default
11798         to_files_info.
11799         * target.h (struct target_ops) <to_files_info>: Use
11800         TARGET_DEFAULT_IGNORE.
11801
11802 2014-02-19  Tom Tromey  <tromey@redhat.com>
11803
11804         * target-delegates.c: Rebuild.
11805         * target.c (update_current_target): Don't inherit or default
11806         to_store.
11807         * target.h (struct target_ops) <to_store>: Use
11808         TARGET_DEFAULT_NORETURN.
11809
11810 2014-02-19  Tom Tromey  <tromey@redhat.com>
11811
11812         * target-delegates.c: Rebuild.
11813         * target.c (update_current_target): Don't inherit or default
11814         to_post_attach.
11815         * target.h (struct target_ops) <to_post_attach>: Use
11816         TARGET_DEFAULT_IGNORE.
11817
11818 2014-02-19  Tom Tromey  <tromey@redhat.com>
11819
11820         * target-delegates.c: Rebuild.
11821         * target.c (update_current_target): Don't inherit or default
11822         to_rcmd.
11823         (default_rcmd): New function.
11824         (do_monitor_command): Unconditionally delegate.
11825         * target.h (struct target_ops) <to_rmcd>: Use
11826         TARGET_DEFAULT_FUNC.
11827
11828 2014-02-19  Tom Tromey  <tromey@redhat.com>
11829
11830         * target-delegates.c: Rebuild.
11831         * target.c (init_dummy_target): Don't initialize to_attach.
11832         (target_attach): Unconditionally delegate.
11833         * target.h (struct target_ops) <to_attach>: Use
11834         TARGET_DEFAULT_FUNC.
11835
11836 2014-02-19  Tom Tromey  <tromey@redhat.com>
11837
11838         * target-delegates.c: Rebuild.
11839         * target.c (target_detach): Unconditionally delegate.
11840         (init_dummy_target): Don't initialize to_detach.
11841         * target.h (struct target_ops) <to_detach>: Use
11842         TARGET_DEFAULT_IGNORE.
11843
11844 2014-02-19  Tom Tromey  <tromey@redhat.com>
11845
11846         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11847         Add argument.
11848         (target_augmented_libraries_svr4_read): Add argument.
11849         * target.c (update_current_target): Update.
11850         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11851         argument.
11852
11853 2014-02-19  Tom Tromey  <tromey@redhat.com>
11854
11855         * target.h (struct target_ops) <to_call_history_range>: Add
11856         argument.
11857         * target.c (target_call_history_range): Add argument.
11858         * record-btrace.c (record_btrace_call_history_range): Add 'self'
11859         argument.
11860         (record_btrace_call_history_from): Update.
11861
11862 2014-02-19  Tom Tromey  <tromey@redhat.com>
11863
11864         * target.h (struct target_ops) <to_call_history_from>: Add
11865         argument.
11866         * target.c (target_call_history_from): Add argument.
11867         * record-btrace.c (record_btrace_call_history_from): Add 'self'
11868         argument.
11869
11870 2014-02-19  Tom Tromey  <tromey@redhat.com>
11871
11872         * target.h (struct target_ops) <to_call_history>: Add argument.
11873         * target.c (target_call_history): Add argument.
11874         * record-btrace.c (record_btrace_call_history): Add 'self'
11875         argument.
11876
11877 2014-02-19  Tom Tromey  <tromey@redhat.com>
11878
11879         * target.h (struct target_ops) <to_insn_history_range>: Add
11880         argument.
11881         * target.c (target_insn_history_range): Add argument.
11882         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11883         argument.
11884         (record_btrace_insn_history_from): Update.
11885
11886 2014-02-19  Tom Tromey  <tromey@redhat.com>
11887
11888         * target.h (struct target_ops) <to_insn_history_from>: Add
11889         argument.
11890         * target.c (target_insn_history_from): Add argument.
11891         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11892         argument.
11893
11894 2014-02-19  Tom Tromey  <tromey@redhat.com>
11895
11896         * target.h (struct target_ops) <to_insn_history>: Add argument.
11897         * target.c (target_insn_history): Add argument.
11898         * record-btrace.c (record_btrace_insn_history): Add 'self'
11899         argument.
11900
11901 2014-02-19  Tom Tromey  <tromey@redhat.com>
11902
11903         * target.h (struct target_ops) <to_goto_record>: Add argument.
11904         * target.c (target_goto_record): Add argument.
11905         * record-full.c (record_full_goto): Add 'self' argument.
11906         * record-btrace.c (record_btrace_goto): Add 'self' argument.
11907
11908 2014-02-19  Tom Tromey  <tromey@redhat.com>
11909
11910         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11911         * target.c (target_goto_record_end): Add argument.
11912         * record-full.c (record_full_goto_end): Add 'self' argument.
11913         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11914
11915 2014-02-19  Tom Tromey  <tromey@redhat.com>
11916
11917         * target.h (struct target_ops) <to_goto_record_begin>: Add
11918         argument.
11919         * target.c (target_goto_record_begin): Add argument.
11920         * record-full.c (record_full_goto_begin): Add 'self' argument.
11921         * record-btrace.c (record_btrace_goto_begin): Add 'self'
11922         argument.
11923
11924 2014-02-19  Tom Tromey  <tromey@redhat.com>
11925
11926         * target.h (struct target_ops) <to_record_is_replaying>: Add
11927         argument.
11928         * target.c (target_record_is_replaying): Add argument.
11929         * record-full.c (record_full_is_replaying): Add 'self' argument.
11930         * record-btrace.c (record_btrace_is_replaying): Add 'self'
11931         argument.
11932         (record_btrace_xfer_partial, record_btrace_store_registers)
11933         (record_btrace_prepare_to_store, record_btrace_resume)
11934         (record_btrace_wait, record_btrace_decr_pc_after_break)
11935         (record_btrace_find_new_threads, record_btrace_thread_alive):
11936         Update.
11937
11938 2014-02-19  Tom Tromey  <tromey@redhat.com>
11939
11940         * target.h (struct target_ops) <to_delete_record>: Add argument.
11941         * target.c (target_delete_record): Add argument.
11942         * record-full.c (record_full_delete): Add 'self' argument.
11943
11944 2014-02-19  Tom Tromey  <tromey@redhat.com>
11945
11946         * target.h (struct target_ops) <to_save_record>: Add argument.
11947         * target.c (target_save_record): Add argument.
11948         * record-full.c (record_full_save): Add 'self' argument.
11949         (record_full_save): Add 'self' argument.
11950
11951 2014-02-19  Tom Tromey  <tromey@redhat.com>
11952
11953         * target.h (struct target_ops) <to_info_record>: Add argument.
11954         * target.c (target_info_record): Add argument.
11955         * record.c (info_record_command): Add argument.
11956         * record-full.c (record_full_info): Add 'self' argument.
11957         * record-btrace.c (record_btrace_info): Add 'self' argument.
11958
11959 2014-02-19  Tom Tromey  <tromey@redhat.com>
11960
11961         * target.h (struct target_ops) <to_stop_recording>: Add argument.
11962         * target.c (target_stop_recording): Add argument.
11963         * record.c (record_stop): Add argument.
11964         * record-btrace.c (record_btrace_stop_recording): Add 'self'
11965         argument.
11966
11967 2014-02-19  Tom Tromey  <tromey@redhat.com>
11968
11969         * target.h (struct target_ops) <to_read_btrace>: Add argument.
11970         * target.c (struct target_ops) <to_read_btrace>: Add argument.
11971         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
11972         argument.
11973         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
11974         (_initialize_amd64_linux_nat): Use it.
11975         * i386-linux-nat.c (i386_linux_read_btrace): New function.
11976         (_initialize_i386_linux_nat): Use it.
11977
11978 2014-02-19  Tom Tromey  <tromey@redhat.com>
11979
11980         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
11981         * target.c (target_teardown_btrace): Add argument.
11982         * remote.c (remote_teardown_btrace): Add 'self' argument.
11983         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
11984         argument.
11985         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
11986         argument.
11987
11988 2014-02-19  Tom Tromey  <tromey@redhat.com>
11989
11990         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
11991         * target.c (target_disable_btrace): Add argument.
11992         * remote.c (remote_disable_btrace): Add 'self' argument.
11993         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
11994         argument.
11995         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
11996         argument.
11997
11998 2014-02-19  Tom Tromey  <tromey@redhat.com>
11999
12000         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12001         * target.c (target_enable_btrace): Add argument.
12002         * remote.c (remote_enable_btrace): Add 'self' argument.
12003         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12004         argument.
12005         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12006         argument.
12007
12008 2014-02-19  Tom Tromey  <tromey@redhat.com>
12009
12010         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12011         (target_can_use_agent): Add argument.
12012         * target.c (update_current_target): Update.
12013         * remote.c (remote_can_use_agent): Add 'self' argument.
12014         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12015
12016 2014-02-19  Tom Tromey  <tromey@redhat.com>
12017
12018         * target.h (struct target_ops) <to_use_agent>: Add argument.
12019         (target_use_agent): Add argument.
12020         * target.c (update_current_target): Update.
12021         * remote.c (remote_use_agent): Add 'self' argument.
12022         * inf-child.c (inf_child_use_agent): Add 'self' argument.
12023
12024 2014-02-19  Tom Tromey  <tromey@redhat.com>
12025
12026         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12027         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12028         (target_traceframe_info): Add argument.
12029         * target.c (update_current_target): Update.
12030         * remote.c (remote_traceframe_info): Add 'self' argument.
12031         * ctf.c (ctf_traceframe_info): Add 'self' argument.
12032
12033 2014-02-19  Tom Tromey  <tromey@redhat.com>
12034
12035         * target.h (target_static_tracepoint_markers_by_strid): Add
12036         argument.
12037         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12038         'self' argument.
12039         * target.c (update_current_target): Update.
12040         * remote.c (struct target_ops)
12041         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12042         * linux-nat.c (struct target_ops)
12043         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12044
12045 2014-02-19  Tom Tromey  <tromey@redhat.com>
12046
12047         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12048         Add argument.
12049         (target_static_tracepoint_marker_at): Add argument.
12050         * target.c (update_current_target): Update.
12051         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12052         argument.
12053
12054 2014-02-19  Tom Tromey  <tromey@redhat.com>
12055
12056         * target.h (struct target_ops) <to_set_permissions>: Add argument.
12057         (target_set_permissions): Add argument.
12058         * target.c (update_current_target): Update.
12059         * remote.c (remote_set_permissions): Add 'self' argument.
12060         (remote_start_remote): Update.
12061
12062 2014-02-19  Tom Tromey  <tromey@redhat.com>
12063
12064         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12065         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12066         (target_get_tib_address): Add argument.
12067         * target.c (update_current_target): Update.
12068         * remote.c (remote_get_tib_address): Add 'self' argument.
12069
12070 2014-02-19  Tom Tromey  <tromey@redhat.com>
12071
12072         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12073         (target_set_trace_notes): Add argument.
12074         * target.c (update_current_target): Update.
12075         * remote.c (remote_set_trace_notes): Add 'self' argument.
12076
12077 2014-02-19  Tom Tromey  <tromey@redhat.com>
12078
12079         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12080         argument.
12081         (target_set_trace_buffer_size): Add argument.
12082         * target.c (update_current_target): Update.
12083         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12084
12085 2014-02-19  Tom Tromey  <tromey@redhat.com>
12086
12087         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12088         argument.
12089         (target_set_circular_trace_buffer): Add argument.
12090         * target.c (update_current_target): Update.
12091         * remote.c (remote_set_circular_trace_buffer): Add 'self'
12092         argument.
12093
12094 2014-02-19  Tom Tromey  <tromey@redhat.com>
12095
12096         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12097         argument.
12098         (target_set_disconnected_tracing): Add argument.
12099         * target.c (update_current_target): Update.
12100         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12101
12102 2014-02-19  Tom Tromey  <tromey@redhat.com>
12103
12104         * target.h (struct target_ops)
12105         <to_get_min_fast_tracepoint_insn_len>: Add argument.
12106         (target_get_min_fast_tracepoint_insn_len): Add argument.
12107         * target.c (update_current_target): Update.
12108         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12109         argument.
12110
12111 2014-02-19  Tom Tromey  <tromey@redhat.com>
12112
12113         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12114         argument.
12115         (target_get_raw_trace_data): Add argument.
12116         * target.c (update_current_target): Update.
12117         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12118
12119 2014-02-19  Tom Tromey  <tromey@redhat.com>
12120
12121         * target.h (struct target_ops) <to_upload_trace_state_variables>:
12122         Add argument.
12123         (target_upload_trace_state_variables): Add argument.
12124         * target.c (update_current_target): Update.
12125         * remote.c (remote_upload_trace_state_variables): Add 'self'
12126         argument.
12127         (remote_start_remote): Update.
12128
12129 2014-02-19  Tom Tromey  <tromey@redhat.com>
12130
12131         * target.h (struct target_ops) <to_upload_tracepoints>: Add
12132         argument.
12133         (target_upload_tracepoints): Add argument.
12134         * target.c (update_current_target): Update.
12135         * remote.c (remote_upload_tracepoints): Add 'self' argument.
12136         (remote_start_remote): Update.
12137
12138 2014-02-19  Tom Tromey  <tromey@redhat.com>
12139
12140         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12141         (target_save_trace_data): Add argument.
12142         * target.c (update_current_target): Update.
12143         * remote.c (remote_save_trace_data): Add 'self' argument.
12144
12145 2014-02-19  Tom Tromey  <tromey@redhat.com>
12146
12147         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12148         argument.
12149         * target.h (struct target_ops)
12150         <to_get_trace_state_variable_value>: Add argument.
12151         (target_get_trace_state_variable_value): Add argument.
12152         * target.c (update_current_target): Update.
12153         * remote.c (remote_get_trace_state_variable_value): Add 'self'
12154         argument.
12155         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12156
12157 2014-02-19  Tom Tromey  <tromey@redhat.com>
12158
12159         * tracepoint.c (tfile_trace_find): Add 'self' argument.
12160         * target.h (struct target_ops) <to_trace_find>: Add argument.
12161         (target_trace_find): Add argument.
12162         * target.c (update_current_target): Update.
12163         * remote.c (remote_trace_find): Add 'self' argument.
12164         * ctf.c (ctf_trace_find): Add 'self' argument.
12165
12166 2014-02-19  Tom Tromey  <tromey@redhat.com>
12167
12168         * target.h (struct target_ops) <to_trace_stop>: Add argument.
12169         (target_trace_stop): Add argument.
12170         * target.c (update_current_target): Update.
12171         * remote.c (remote_trace_stop): Add 'self' argument.
12172
12173 2014-02-19  Tom Tromey  <tromey@redhat.com>
12174
12175         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12176         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12177         argument.
12178         (target_get_tracepoint_status): Add argument.
12179         * target.c (update_current_target): Update.
12180         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12181
12182 2014-02-19  Tom Tromey  <tromey@redhat.com>
12183
12184         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12185         * target.h (struct target_ops) <to_get_trace_status>: Add
12186         argument.
12187         (target_get_trace_status): Add argument.
12188         * target.c (update_current_target): Update.
12189         * remote.c (remote_get_trace_status): Add 'self' argument.
12190         (remote_start_remote, remote_can_download_tracepoint): Update.
12191         * ctf.c (ctf_get_trace_status): Add 'self' argument.
12192
12193 2014-02-19  Tom Tromey  <tromey@redhat.com>
12194
12195         * target.h (struct target_ops) <to_trace_start>: Add argument.
12196         (target_trace_start): Add argument.
12197         * target.c (update_current_target): Update.
12198         * remote.c (remote_trace_start): Add 'self' argument.
12199
12200 2014-02-19  Tom Tromey  <tromey@redhat.com>
12201
12202         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12203         Add argument.
12204         (target_trace_set_readonly_regions): Add argument.
12205         * target.c (update_current_target): Update.
12206         * remote.c (remote_trace_set_readonly_regions): Add 'self'
12207         argument.
12208
12209 2014-02-19  Tom Tromey  <tromey@redhat.com>
12210
12211         * target.h (struct target_ops) <to_disable_tracepoint>: Add
12212         argument.
12213         (target_disable_tracepoint): Add argument.
12214         * target.c (update_current_target): Update.
12215         * remote.c (remote_disable_tracepoint): Add 'self' argument.
12216
12217 2014-02-19  Tom Tromey  <tromey@redhat.com>
12218
12219         * target.h (struct target_ops) <to_enable_tracepoint>: Add
12220         argument.
12221         (target_enable_tracepoint): Add argument.
12222         * target.c (update_current_target): Update.
12223         * remote.c (remote_enable_tracepoint): Add 'self' argument.
12224
12225 2014-02-19  Tom Tromey  <tromey@redhat.com>
12226
12227         * target.h (struct target_ops) <to_download_trace_state_variable>:
12228         Add argument.
12229         (target_download_trace_state_variable): Add argument.
12230         * target.c (update_current_target): Update.
12231         * remote.c (remote_download_trace_state_variable): Add 'self'
12232         argument.
12233
12234 2014-02-19  Tom Tromey  <tromey@redhat.com>
12235
12236         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12237         argument.
12238         (target_can_download_tracepoint): Add argument.
12239         * target.c (update_current_target): Update.
12240         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12241
12242 2014-02-19  Tom Tromey  <tromey@redhat.com>
12243
12244         * target.h (struct target_ops) <to_download_tracepoint>: Add
12245         argument.
12246         (target_download_tracepoint): Add argument.
12247         * target.c (update_current_target): Update.
12248         * remote.c (remote_download_tracepoint): Add 'self' argument.
12249
12250 2014-02-19  Tom Tromey  <tromey@redhat.com>
12251
12252         * target.h (struct target_ops) <to_trace_init>: Add argument.
12253         (target_trace_init): Add argument.
12254         * target.c (update_current_target): Update.
12255         * remote.c (remote_trace_init): Add 'self' argument.
12256
12257 2014-02-19  Tom Tromey  <tromey@redhat.com>
12258
12259         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12260         * target.c (target_fileio_readlink): Add argument.
12261         * remote.c (remote_hostio_readlink): Add 'self' argument.
12262         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12263
12264 2014-02-19  Tom Tromey  <tromey@redhat.com>
12265
12266         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12267         * target.c (target_fileio_unlink): Add argument.
12268         * remote.c (remote_hostio_unlink): Add 'self' argument.
12269         (remote_file_delete): Update.
12270         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12271
12272 2014-02-19  Tom Tromey  <tromey@redhat.com>
12273
12274         * target.h (struct target_ops) <to_fileio_close>: Add argument.
12275         * target.c (target_fileio_close): Add argument.
12276         * remote.c (remote_hostio_close): Add 'self' argument.
12277         (remote_hostio_close_cleanup): Update.
12278         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12279         Update.
12280         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12281
12282 2014-02-19  Tom Tromey  <tromey@redhat.com>
12283
12284         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12285         * target.c (target_fileio_pread): Add argument.
12286         * remote.c (remote_hostio_pread): Add 'self' argument.
12287         (remote_bfd_iovec_pread, remote_file_get): Update.
12288         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12289
12290 2014-02-19  Tom Tromey  <tromey@redhat.com>
12291
12292         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12293         * target.c (target_fileio_pwrite): Add argument.
12294         * remote.c (remote_hostio_pwrite): Add 'self' argument.
12295         (remote_file_put): Update.
12296         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12297
12298 2014-02-19  Tom Tromey  <tromey@redhat.com>
12299
12300         * target.h (struct target_ops) <to_fileio_open>: Add argument.
12301         * target.c (target_fileio_open): Add argument.
12302         * remote.c (remote_hostio_open): Add 'self' argument.
12303         (remote_bfd_iovec_open): Add 'self' argument.
12304         (remote_file_put): Add 'self' argument.
12305         (remote_file_get): Add 'self' argument.
12306         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12307
12308 2014-02-19  Tom Tromey  <tromey@redhat.com>
12309
12310         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12311         Add argument.
12312         (target_can_run_breakpoint_commands): Add argument.
12313         * target.c (update_current_target): Update.
12314         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12315         argument.
12316         (remote_insert_breakpoint): Add 'self' argument.
12317         (remote_insert_hw_breakpoint): Add 'self' argument.
12318         (remote_can_run_breakpoint_commands): Add 'self' argument.
12319
12320 2014-02-19  Tom Tromey  <tromey@redhat.com>
12321
12322         * target.h (struct target_ops)
12323         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12324         (target_supports_evaluation_of_breakpoint_conditions): Add
12325         argument.
12326         * target.c (update_current_target): Update.
12327         * remote.c (remote_supports_cond_breakpoints): Add 'self'
12328         argument.
12329         (remote_insert_breakpoint): Add 'self' argument.
12330         (remote_insert_hw_breakpoint): Add 'self' argument.
12331         (remote_supports_cond_breakpoints): Add 'self' argument.
12332
12333 2014-02-19  Tom Tromey  <tromey@redhat.com>
12334
12335         * target.h (struct target_ops) <to_supports_string_tracing>: Add
12336         argument.
12337         (target_supports_string_tracing): Add argument.
12338         * target.c (update_current_target): Update.
12339         * remote.c (remote_supports_string_tracing): Add 'self' argument.
12340
12341 2014-02-19  Tom Tromey  <tromey@redhat.com>
12342
12343         * target.h (struct target_ops)
12344         <to_supports_disable_randomization>: Add argument.
12345         * target.c (find_default_supports_disable_randomization): Add
12346         argument.
12347         (target_supports_disable_randomization): Add argument.
12348         (find_default_supports_disable_randomization): Add 'self'
12349         argument.
12350         * remote.c (extended_remote_supports_disable_randomization): Add
12351         'self' argument.
12352         (remote_supports_disable_randomization): Add 'self' argument.
12353         (extended_remote_create_inferior): Update.
12354         * linux-nat.c (linux_nat_supports_disable_randomization): Add
12355         'self' argument.
12356
12357 2014-02-19  Tom Tromey  <tromey@redhat.com>
12358
12359         * target.h (struct target_ops)
12360         <to_supports_enable_disable_tracepoint>: Add argument.
12361         (target_supports_enable_disable_tracepoint): Add argument.
12362         * target.c (update_current_target): Update.
12363         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12364         argument.
12365
12366 2014-02-19  Tom Tromey  <tromey@redhat.com>
12367
12368         * target.h (struct target_ops) <to_supports_multi_process>: Add
12369         argument.
12370         (target_supports_multi_process): Add argument.
12371         * target.c (update_current_target): Update.
12372         * remote.c (remote_supports_multi_process): Add 'self' argument.
12373         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12374         argument.
12375         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12376         argument.
12377
12378 2014-02-19  Tom Tromey  <tromey@redhat.com>
12379
12380         * target.h (struct target_ops) <to_execution_direction>: Add
12381         argument.
12382         (target_execution_direction): Add argument.
12383         * target.c (default_execution_direction): Add 'self' argument.
12384         * record-full.c (record_full_execution_direction): Add 'self'
12385         argument.
12386
12387 2014-02-19  Tom Tromey  <tromey@redhat.com>
12388
12389         * target.h (struct target_ops) <to_can_execute_reverse>: Add
12390         argument.
12391         (target_can_execute_reverse): Add argument.
12392         * remote.c (remote_can_execute_reverse): Add 'self' argument.
12393         * record-full.c (record_full_can_execute_reverse): Add 'self'
12394         argument.
12395         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12396         argument.
12397
12398 2014-02-19  Tom Tromey  <tromey@redhat.com>
12399
12400         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12401         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12402         argument.
12403         (target_get_ada_task_ptid): Add argument.
12404         * target.c (update_current_target): Update.
12405         (default_get_ada_task_ptid): Add 'self' argument.
12406         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12407         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12408         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12409         argument.
12410         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12411         argument.
12412         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12413         argument.
12414         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12415         argument.
12416         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12417         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12418         argument.
12419
12420 2014-02-19  Tom Tromey  <tromey@redhat.com>
12421
12422         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12423         (target_goto_bookmark): Add argument.
12424         * target.c (dummy_goto_bookmark): Add 'self' argument.
12425         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12426
12427 2014-02-19  Tom Tromey  <tromey@redhat.com>
12428
12429         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12430         (target_get_bookmark): Add argument.
12431         * target.c (dummy_get_bookmark): Add 'self' argument.
12432         * record-full.c (record_full_get_bookmark): Add 'self' argument.
12433
12434 2014-02-19  Tom Tromey  <tromey@redhat.com>
12435
12436         * target.h (struct target_ops) <to_make_corefile_notes>: Add
12437         argument.
12438         (target_make_corefile_notes): Add argument.
12439         * target.c (dummy_make_corefile_notes): Add 'self' argument.
12440         * procfs.c (procfs_make_note_section): Add 'self' argument.
12441         (procfs_make_note_section): Add 'self' argument.
12442         (procfs_make_note_section): Add 'self' argument.
12443         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12444         argument.
12445         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12446         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12447         * exec.c (exec_make_note_section): Add 'self' argument.
12448         (exec_make_note_section): Add 'self' argument.
12449
12450 2014-02-19  Tom Tromey  <tromey@redhat.com>
12451
12452         * target.h (struct target_ops) <to_find_memory_regions>: Add
12453         argument.
12454         (target_find_memory_regions): Add argument.
12455         * target.c (dummy_find_memory_regions): Add 'self' argument.
12456         * procfs.c (proc_find_memory_regions): Add 'self' argument.
12457         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12458         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12459         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12460         * exec. (exec_do_find_memory_regions): New global.
12461         (exec_set_find_memory_regions): Rewrite.
12462         (exec_find_memory_regions): New function.
12463         (init_exec_ops): Use exec_find_memory_regions.
12464
12465 2014-02-19  Tom Tromey  <tromey@redhat.com>
12466
12467         * target.h (struct target_ops) <to_supports_non_stop>: Add
12468         argument.
12469         * target.c (find_default_supports_non_stop): Add argument.
12470         (target_supports_non_stop): Add argument.
12471         (find_default_supports_non_stop): Add 'self' argument.
12472         * remote.c (remote_supports_non_stop): Add 'self' argument.
12473         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12474
12475 2014-02-19  Tom Tromey  <tromey@redhat.com>
12476
12477         * target.h (struct target_ops) <to_log_command>: Add argument.
12478         (target_log_command): Add argument.
12479         * serial.h (serial_log_command): Add 'self' argument.
12480         * serial.c (serial_log_command): Add 'self' argument.
12481
12482 2014-02-19  Tom Tromey  <tromey@redhat.com>
12483
12484         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12485         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12486         argument.
12487         (target_pid_to_exec_file): Add argument.
12488         * target.c (debug_to_pid_to_exec_file): Add argument.
12489         (update_current_target): Update.
12490         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12491         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12492         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12493         (linux_handle_extended_wait): Update.
12494         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12495         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12496         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12497         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12498
12499 2014-02-19  Tom Tromey  <tromey@redhat.com>
12500
12501         * target.h (struct target_ops) <to_rcmd>: Add argument.
12502         (target_rcmd): Add argument.
12503         * target.c (debug_to_rcmd): Add argument.
12504         (update_current_target, do_monitor_command): Update.
12505         * remote.c (remote_rcmd): Add 'self' argument.
12506         * monitor.c (monitor_rcmd): Add 'self' argument.
12507
12508 2014-02-19  Tom Tromey  <tromey@redhat.com>
12509
12510         * windows-nat.c (windows_stop): Add 'self' argument.
12511         * target.h (struct target_ops) <to_stop>: Add argument.
12512         * target.c (target_stop): Add argument.
12513         (debug_to_stop): Add argument.
12514         (update_current_target): Update.
12515         * remote.c (remote_stop): Add 'self' argument.
12516         * remote-sim.c (gdbsim_stop): Add 'self' argument.
12517         (gdbsim_cntrl_c): Update.
12518         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12519         * procfs.c (procfs_stop): Add 'self' argument.
12520         * nto-procfs.c (procfs_stop): Add 'self' argument.
12521         * monitor.c (monitor_stop): Add 'self' argument.
12522         (monitor_open): Update.
12523         * linux-nat.c (linux_nat_stop): Add argument.
12524         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12525         * gnu-nat.c (gnu_stop): Add 'self' argument.
12526         * darwin-nat.c (darwin_stop): Add 'self' argument.
12527
12528 2014-02-19  Tom Tromey  <tromey@redhat.com>
12529
12530         * target.h (struct target_ops) <to_thread_name>: Add argument.
12531         * target.c (target_thread_name): Add argument.
12532         (update_current_target): Update.
12533         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12534
12535 2014-02-19  Tom Tromey  <tromey@redhat.com>
12536
12537         * target.h (struct target_ops) <to_extra_thread_info>: Add
12538         argument.
12539         (target_extra_thread_info): Add argument.
12540         * target.c (update_current_target): Update.
12541         * remote.c (remote_threads_extra_info): Add 'self' argument.
12542         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12543         argument.
12544         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12545         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12546         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12547         argument.
12548         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12549         argument.
12550         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12551         argument.
12552         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12553         argument.
12554
12555 2014-02-19  Tom Tromey  <tromey@redhat.com>
12556
12557         * target.h (struct target_ops) <to_program_signals>: Add argument.
12558         * target.c (target_program_signals): Add argument.
12559         * remote.c (remote_program_signals): Add 'self' argument.
12560
12561 2014-02-19  Tom Tromey  <tromey@redhat.com>
12562
12563         * target.h (struct target_ops) <to_pass_signals>: Add argument.
12564         * target.c (target_pass_signals): Add argument.
12565         * remote.c (remote_pass_signals): Add 'self' argument.
12566         (remote_start_remote): Update.
12567         * procfs.c (procfs_pass_signals): Add 'self' argument.
12568         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12569         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12570         (linux_nat_create_inferior, linux_nat_attach): Update.
12571
12572 2014-02-19  Tom Tromey  <tromey@redhat.com>
12573
12574         * windows-nat.c (windows_can_run): Add 'self' argument.
12575         * target.h (struct target_ops) <to_can_run>: Add argument.
12576         (target_can_run): Add argument.
12577         * target.c (debug_to_can_run): Add argument.
12578         (update_current_target): Update.
12579         * nto-procfs.c (procfs_can_run): Add 'self' argument.
12580         * inf-child.c (inf_child_can_run): Add 'self' argument.
12581         * go32-nat.c (go32_can_run): Add 'self' argument.
12582
12583 2014-02-19  Tom Tromey  <tromey@redhat.com>
12584
12585         * target.h (struct target_ops) <to_has_exited>: Add argument.
12586         (target_has_exited): Add argument.
12587         * target.c (debug_to_has_exited): Add argument.
12588         (update_current_target): Update.
12589
12590 2014-02-19  Tom Tromey  <tromey@redhat.com>
12591
12592         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12593         argument.
12594         (target_set_syscall_catchpoint): Add argument.
12595         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12596         argument.
12597         * target.c (update_current_target): Update.
12598
12599 2014-02-19  Tom Tromey  <tromey@redhat.com>
12600
12601         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12602         argument.
12603         (target_remove_exec_catchpoint): Add argument.
12604         * target.c (debug_to_remove_exec_catchpoint): Add argument.
12605         (update_current_target): Update.
12606         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12607         argument.
12608
12609 2014-02-19  Tom Tromey  <tromey@redhat.com>
12610
12611         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12612         argument.
12613         (target_insert_exec_catchpoint): Add argument.
12614         * target.c (debug_to_insert_exec_catchpoint): Add argument.
12615         (update_current_target): Update.
12616         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12617         argument.
12618
12619 2014-02-19  Tom Tromey  <tromey@redhat.com>
12620
12621         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12622         argument.
12623         (target_remove_vfork_catchpoint): Add argument.
12624         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12625         (update_current_target): Update.
12626         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12627         argument.
12628
12629 2014-02-19  Tom Tromey  <tromey@redhat.com>
12630
12631         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12632         argument.
12633         (target_insert_vfork_catchpoint): Add argument.
12634         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12635         (update_current_target): Update.
12636         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12637         argument.
12638
12639 2014-02-19  Tom Tromey  <tromey@redhat.com>
12640
12641         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12642         argument.
12643         (target_remove_fork_catchpoint): Add argument.
12644         * target.c (debug_to_remove_fork_catchpoint): Add argument.
12645         (update_current_target): Update.
12646         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12647         argument.
12648
12649 2014-02-19  Tom Tromey  <tromey@redhat.com>
12650
12651         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12652         argument.
12653         (target_insert_fork_catchpoint): Add argument.
12654         * target.c (debug_to_insert_fork_catchpoint): Add argument.
12655         (update_current_target): Update.
12656         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12657         argument.
12658
12659 2014-02-19  Tom Tromey  <tromey@redhat.com>
12660
12661         * target.h (struct target_ops) <to_post_startup_inferior>: Add
12662         argument.
12663         (target_post_startup_inferior): Add argument.
12664         * target.c (debug_to_post_startup_inferior): Add argument.
12665         (update_current_target): Update.
12666         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12667         argument.
12668         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12669         argument.
12670         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12671         argument.
12672         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12673         argument.
12674         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12675         'self' argument.
12676         (super_post_startup_inferior): Likewise.
12677         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12678         'self' argument.
12679         (super_post_startup_inferior): Likewise.
12680         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12681         Add 'self' argument.
12682         (super_post_startup_inferior): Likewise.
12683
12684 2014-02-19  Tom Tromey  <tromey@redhat.com>
12685
12686         * target.h (struct target_ops) <to_load>: Add argument.
12687         * target.c (target_load): Add argument.
12688         (debug_to_load): Add argument.
12689         (update_current_target): Update.
12690         * remote.c (remote_load): Add 'self' argument.
12691         * remote-sim.c (gdbsim_load): Add 'self' argument.
12692         * remote-mips.c (mips_load): Add 'self' argument.
12693         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12694         * monitor.c (monitor_load): Add 'self' argument.
12695         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12696
12697 2014-02-19  Tom Tromey  <tromey@redhat.com>
12698
12699         * target.h (struct target_ops) <to_terminal_info>: Add argument.
12700         (target_terminal_info): Add argument.
12701         * target.c (debug_to_terminal_info): Add argument.
12702         (default_terminal_info): Likewise.
12703         * inflow.c (child_terminal_info): Add 'self' argument.
12704         * inferior.h (child_terminal_info): Add 'self' argument.
12705         * go32-nat.c (go32_terminal_info): Add 'self' argument.
12706
12707 2014-02-19  Tom Tromey  <tromey@redhat.com>
12708
12709         * target.h (struct target_ops) <to_terminal_save_ours>: Add
12710         argument.
12711         (target_terminal_save_ours): Add argument.
12712         * target.c (debug_to_terminal_save_ours): Add argument.
12713         (update_current_target): Update.
12714         * inflow.c (terminal_save_ours): Add 'self' argument.
12715         * inferior.h (terminal_save_ours): Add 'self' argument.
12716
12717 2014-02-19  Tom Tromey  <tromey@redhat.com>
12718
12719         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12720         (target_terminal_ours): Add argument.
12721         * target.c (debug_to_terminal_ours): Add argument.
12722         (update_current_target): Update.
12723         * remote.c (remote_terminal_ours): Add 'self' argument.
12724         (remote_close): Update.
12725         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12726         * inflow.c (terminal_ours): Add 'self' argument.
12727         * inferior.h (terminal_ours): Add 'self' argument.
12728         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12729
12730 2014-02-19  Pedro Alves  <palves@redhat.com>
12731             Tom Tromey  <tromey@redhat.com>
12732
12733         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12734         argument.
12735         (target_terminal_ours_for_output): Add argument.
12736         * target.c (debug_to_terminal_ours_for_output): Add argument.
12737         (update_current_target): Update.
12738         * inflow.c (terminal_ours_for_output): Add 'self' argument.
12739         * inferior.h (terminal_ours_for_output): Add 'self' argument.
12740         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12741
12742 2014-02-19  Tom Tromey  <tromey@redhat.com>
12743
12744         * target.h (struct target_ops) <to_terminal_inferior>: Add
12745         argument.
12746         * target.c (target_terminal_inferior): Add argument.
12747         (update_current_target): Update.
12748         * remote.c (remote_terminal_inferior): Add 'self' argument.
12749         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12750         * inflow.c (terminal_inferior): Add 'self' argument.
12751         * inferior.h (terminal_inferior): Add 'self' argument.
12752         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12753         (go32_terminal_inferior): Add 'self' argument.
12754
12755 2014-02-19  Tom Tromey  <tromey@redhat.com>
12756
12757         * target.h (struct target_ops) <to_terminal_init>: Add argument.
12758         (target_terminal_init): Add argument.
12759         * target.c (debug_to_terminal_init): Add argument.
12760         (update_current_target): Update.
12761         * inflow.c (terminal_init_inferior): Add 'self' argument.
12762         * inferior.h (terminal_init_inferior): Add 'self' argument.
12763         * go32-nat.c (go32_terminal_init): Add 'self' argument.
12764         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12765
12766 2014-02-19  Tom Tromey  <tromey@redhat.com>
12767
12768         * target.h (struct target_ops)
12769         <to_can_accel_watchpoint_condition>: Add argument.
12770         (target_can_accel_watchpoint_condition): Add argument.
12771         * target.c (debug_to_can_accel_watchpoint_condition): Add
12772         argument.
12773         (update_current_target): Update.
12774         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12775         'self' argument.
12776
12777 2014-02-19  Tom Tromey  <tromey@redhat.com>
12778
12779         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12780         Add argument.
12781         (target_region_ok_for_hw_watchpoint): Add argument.
12782         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12783         (default_region_ok_for_hw_watchpoint): Add argument.
12784         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12785         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12786         argument.
12787         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12788         argument.
12789         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12790         argument.
12791         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12792         'self' argument.
12793         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12794         'self' argument.
12795         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12796         'self' argument.
12797         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12798         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12799         'self' argument.
12800         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12801         Add 'self' argument.
12802
12803 2014-02-19  Tom Tromey  <tromey@redhat.com>
12804
12805         * target.h (struct target_ops) <to_insert_watchpoint>: Add
12806         argument.
12807         (target_insert_watchpoint): Add argument.
12808         * target.c (debug_to_insert_watchpoint): Add argument.
12809         (update_current_target): Update.
12810         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12811         * remote.c (remote_insert_watchpoint): Add 'self' argument.
12812         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12813         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12814         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12815         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12816         argument.
12817         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12818         (procfs_insert_hw_watchpoint): Add 'self' argument.
12819         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12820         argument.
12821         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12822         argument.
12823         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12824         argument.
12825         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12826         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12827         argument.
12828         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12829         'self' argument.
12830
12831 2014-02-19  Tom Tromey  <tromey@redhat.com>
12832
12833         * target.h (struct target_ops) <to_remove_watchpoint>: Add
12834         argument.
12835         (target_remove_watchpoint): Add argument.
12836         * target.c (debug_to_remove_watchpoint): Add argument.
12837         (update_current_target): Update.
12838         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12839         * remote.c (remote_remove_watchpoint): Add 'self' argument.
12840         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12841         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12842         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12843         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12844         argument.
12845         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12846         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12847         argument.
12848         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12849         argument.
12850         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12851         argument.
12852         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12853         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12854         argument.
12855         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12856         'self' argument.
12857
12858 2014-02-19  Tom Tromey  <tromey@redhat.com>
12859
12860         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12861         argument.
12862         (target_remove_hw_breakpoint): Add argument.
12863         * target.c (debug_to_remove_hw_breakpoint): Add argument.
12864         (update_current_target): Update.
12865         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12866         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12867         argument.
12868         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12869         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12870         argument.
12871         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12872         'self' argument.
12873
12874 2014-02-19  Tom Tromey  <tromey@redhat.com>
12875
12876         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12877         argument.
12878         (target_insert_hw_breakpoint): Add argument.
12879         * target.c (debug_to_insert_hw_breakpoint): Add argument.
12880         (update_current_target): Update.
12881         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12882         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12883         argument.
12884         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12885         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12886         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12887         argument.
12888         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12889         'self' argument.
12890
12891 2014-02-19  Tom Tromey  <tromey@redhat.com>
12892
12893         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12894         argument.
12895         (target_can_use_hardware_watchpoint): Add argument.
12896         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12897         (update_current_target): Update.
12898         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12899         argument.
12900         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12901         argument.
12902         * remote.c (remote_check_watch_resources): Add 'self' argument.
12903         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12904         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12905         argument.
12906         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12907         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12908         argument.
12909         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12910         argument.
12911         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12912         argument.
12913         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12914         argument.
12915         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12916         argument.
12917         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12918         argument.
12919         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12920         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12921         argument.
12922         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12923         'self' argument.
12924
12925 2014-02-19  Tom Tromey  <tromey@redhat.com>
12926
12927         * target.h (struct target_ops) <to_post_attach>: Add argument.
12928         (target_post_attach): Add argument.
12929         * target.c (debug_to_post_attach): Add argument.
12930         (update_current_target): Update.
12931         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
12932         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
12933         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
12934         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
12935         * inf-child.c (inf_child_post_attach): Add 'self' argument.
12936
12937 2014-02-19  Tom Tromey  <tromey@redhat.com>
12938
12939         * windows-nat.c (windows_close): Add 'self' argument.
12940         * tracepoint.c (tfile_close): Add 'self' argument.
12941         * target.h (struct target_ops) <to_close>: Add argument.
12942         * target.c (target_close): Add argument.
12943         (update_current_target): Update.
12944         * remote.c (remote_close): Add 'self' argument.
12945         * remote-sim.c (gdbsim_close): Add 'self' argument.
12946         * remote-mips.c (mips_close): Add 'self' argument.
12947         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
12948         * record-full.c (record_full_close): Add 'self' argument.
12949         * record-btrace.c (record_btrace_close): Add 'self' argument.
12950         * monitor.h (monitor_close): Add 'self' argument.
12951         * monitor.c (monitor_close): Add 'self' argument.
12952         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
12953         * linux-nat.c (linux_nat_close): Add argument.
12954         * go32-nat.c (go32_close): Add 'self' argument.
12955         * exec.c (exec_close_1): Add 'self' argument.
12956         * ctf.c (ctf_close): Add 'self' argument.
12957         * corelow.c (core_close): Add 'self' argument.
12958         (core_close_cleanup): Update.
12959         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
12960         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
12961
12962 2014-02-19  Tom Tromey  <tromey@redhat.com>
12963
12964         * remote.c (remote_load): New function.
12965         (init_remote_ops): Use it.
12966
12967 2014-02-19  Tom Tromey  <tromey@redhat.com>
12968
12969         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
12970         argument.
12971         * common/linux-btrace.h (linux_supports_btrace): Update.
12972         * remote.c (remote_supports_btrace): Add "self" argument.
12973         * target-delegates.c: Rebuild.
12974         * target.c (target_supports_btrace): Remove.
12975         * target.h (struct target_ops) <to_supports_btrace>: Add
12976         target_ops argument.
12977         (target_supports_btrace): New define.
12978
12979 2014-02-19  Tom Tromey  <tromey@redhat.com>
12980
12981         * record-full.c (record_full_beneath_to_resume_ops)
12982         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
12983         (record_full_beneath_to_wait)
12984         (record_full_beneath_to_store_registers_ops)
12985         (record_full_beneath_to_store_registers)
12986         (record_full_beneath_to_xfer_partial_ops)
12987         (record_full_beneath_to_xfer_partial)
12988         (record_full_beneath_to_insert_breakpoint_ops)
12989         (record_full_beneath_to_insert_breakpoint)
12990         (record_full_beneath_to_remove_breakpoint_ops)
12991         (record_full_beneath_to_remove_breakpoint)
12992         (record_full_beneath_to_stopped_by_watchpoint)
12993         (record_full_beneath_to_stopped_data_address)
12994         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
12995         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
12996         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
12997         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
12998         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
12999         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13000         (tmp_to_stopped_data_address, tmp_to_async): Remove.
13001         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
13002         (record_full_resume, record_full_wait_1)
13003         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13004         (record_full_store_registers, record_full_xfer_partial)
13005         (record_full_insert_breakpoint, record_full_remove_breakpoint)
13006         (record_full_async, record_full_core_xfer_partial): Use target
13007         delegation.
13008         * target-delegates.c: Rebuild.
13009         * target.c (current_xfer_partial): Remove.
13010         (update_current_target): Do not INHERIT or de_fault
13011         to_insert_breakpoint, to_remove_breakpoint,
13012         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13013         to_is_async_p, to_async.  Do not set to_xfer_partial field.
13014         (default_xfer_partial): Simplify.
13015         (current_xfer_partial): Remove.
13016         (target_wait, target_resume): Simplify.
13017         (find_default_can_async_p, find_default_is_async_p): Update.
13018         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13019         to_xfer_partial, to_stopped_by_watchpoint,
13020         to_stopped_data_address.
13021         (target_store_registers): Simplify.
13022         (forward_target_remove_breakpoint)
13023         (forward_target_insert_breakpoint): Remove.
13024         (target_remove_breakpoint, target_insert_breakpoint)
13025         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13026         * target.h (struct target_ops) <to_resume, to_wait,
13027         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13028         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13029         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13030         markup.
13031         (forward_target_remove_breakpoint)
13032         (forward_target_insert_breakpoint): Remove.
13033         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13034         directly.
13035         (record_btrace_insert_breakpoint): Delegate directly.
13036
13037 2014-02-19  Tom Tromey  <tromey@redhat.com>
13038
13039         PR build/7701:
13040         * target-delegates.c: New file.
13041         * target.c: Include target-delegates.c.
13042         (init_dummy_target): Call install_dummy_methods.
13043         (complete_target_initialization): Call install_delegators.
13044         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13045         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13046         * make-target-delegates: New file.
13047
13048 2014-02-19  Tom Tromey  <tromey@redhat.com>
13049
13050         * record.c (find_record_target): Use find_target_at.
13051         * target.c (find_target_at): New function.
13052         * target.h (find_target_at): Declare.
13053
13054 2014-02-19  Tom Tromey  <tromey@redhat.com>
13055
13056         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13057         Add 'ops' argument.
13058         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13059         'ops' argument.
13060         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13061         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13062         'ops' argument.
13063         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13064         argument.
13065         * linux-nat.c (save_sigtrap): Update.
13066         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13067         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13068         (linux_nat_close): Update.
13069         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13070         argument.
13071         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13072         argument.
13073         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13074         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13075         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13076         (tmp_to_async): Add 'ops' argument.
13077         (record_full_stopped_by_watchpoint, record_full_async)
13078         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13079         argument.
13080         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13081         (m32r_stopped_by_watchpoint): Add 'ops' argument.
13082         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13083         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13084         (remote_is_async_p, remote_async): Add 'ops' argument.
13085         (remote_stopped_data_address): Update.
13086         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13087         * target.c (update_current_target)
13088         (find_default_can_async_p, find_default_is_async_p): Update.
13089         (init_dummy_target): Update.
13090         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13091         * target.h (struct target_ops) <to_stopped_by_watchpoint,
13092         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13093         (target_can_async_p, target_is_async_p, target_async)
13094         (target_stopped_by_watchpoint): Update.
13095
13096 2014-02-19  Yao Qi  <yao@codesourcery.com>
13097
13098         PR gdb/16220
13099         * gdbarch.sh: Remove startup_gdbarch.
13100         * gdbarch.c: Regenerated.
13101         * gdbarch.h: Likewise.
13102
13103 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
13104
13105         * rl78-tdep.c (rl78_g10_register_name): New function.
13106         (rl78_return_value): Add g10 support.
13107         (rl78_gdbarch_init): Register rl78_g10_register_name for the
13108         g10.
13109
13110 2014-02-17  Doug Evans  <xdje42@gmail.com>
13111
13112         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13113         (SUBDIR_GUILE_SRCS): Ditto.
13114         (scm-gsmob.o): Ditto.
13115
13116 2014-02-17  Yao Qi  <yao@codesourcery.com>
13117
13118         * gnu-nat.c (ILL_RPC): Declare defined function.
13119
13120 2014-02-17  Yao Qi  <yao@codesourcery.com>
13121
13122         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13123         mach_msg_type_number_t.
13124         (gnu_write_inferior): Likewise.
13125
13126 2014-02-17  Yao Qi  <yao@codesourcery.com>
13127
13128         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13129         in format string.
13130         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13131         (inf_validate_procs, inf_signal): Likewise.
13132         (S_exception_raise_request): Likewise.
13133         (do_mach_notify_dead_name): Likewise.
13134         (steal_exc_port): Likewise.
13135         (gnu_read_inferior): Change 'copy_count''s type to
13136         mach_msg_type_number_t.
13137         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
13138         format string.
13139
13140 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
13141
13142         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13143         flag.  Adjust all users; in particular...
13144         (gnu_wait): ..., don't decrement its value in here...
13145         (gnu_create_inferior): ..., and instead set the flag in here,
13146         around the startup_inferior call, and call that one with
13147         START_INFERIOR_TRAPS_EXPECTED.
13148
13149         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13150         (ILL_RPC): ... new macro.
13151         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13152         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13153         (do_mach_notify_send_once, S_proc_setmsgport_reply)
13154         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13155         functions with ILL_RPC macro.
13156         (S_proc_pid2task_reply, S_proc_task2pid_reply)
13157         (S_proc_task2proc_reply, S_proc_proc2task_reply)
13158         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13159         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13160         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13161         (S_proc_getlogin_reply, S_proc_getsid_reply)
13162         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13163         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13164         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13165         (S_proc_getnports_reply, S_proc_is_important_reply)
13166         (S_proc_get_code_reply): New stub functions, generated with
13167         ILL_RPC macro.
13168
13169         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13170         collected the type check structures.
13171
13172         * reply_mig_hack.awk: Don't expect to see the auto keyword.
13173
13174 2014-02-14  Doug Evans  <dje@google.com>
13175
13176         * target.c (target_write_partial): Fix result type.
13177
13178 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
13179
13180         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13181         the proper offsets to access fpregset_t.
13182
13183 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
13184
13185         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13186         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13187         * h8300-tdep.c (setmachinelist): Remove global.
13188         * hppa-tdep.c (hppa_sigtramp): Remove global.
13189         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13190         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13191         * ravenscar-thread.c (update_target_observer): Remove global.
13192         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13193
13194 2014-02-12  Tom Tromey  <tromey@redhat.com>
13195
13196         * common/rsp-low.c: Update comments.
13197         * common/rsp-low.h: Update comments.
13198
13199 2014-02-12  Tom Tromey  <tromey@redhat.com>
13200
13201         * common/rsp-low.c (convert_ascii_to_int): Remove.
13202         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13203
13204 2014-02-12  Tom Tromey  <tromey@redhat.com>
13205
13206         * common/rsp-low.h (unhexify): Don't declare.
13207         * common/rsp-low.c (unhexify): Remove.
13208
13209 2014-02-12  Tom Tromey  <tromey@redhat.com>
13210
13211         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13212         * common/rsp-low.c (convert_int_to_ascii): Remove.
13213
13214 2014-02-12  Tom Tromey  <tromey@redhat.com>
13215
13216         * common/rsp-low.h (hexify): Don't declare.
13217         * common/rsp-low.c (hexify): Remove.
13218
13219 2014-02-12  Tom Tromey  <tromey@redhat.com>
13220
13221         * common/rsp-low.c (hexify): Never take strlen of argument.
13222
13223 2014-02-12  Tom Tromey  <tromey@redhat.com>
13224
13225         * common/rsp-low.c (bin2hex): Never take strlen of argument.
13226         * remote.c (extended_remote_run, remote_rcmd)
13227         (remote_download_trace_state_variable, remote_save_trace_data)
13228         (remote_set_trace_notes): Update.
13229         * tracepoint.c (encode_source_string, tfile_write_status)
13230         (tfile_write_uploaded_tsv): Update.
13231
13232 2014-02-12  Tom Tromey  <tromey@redhat.com>
13233
13234         * tracepoint.c: Include rsp-low.h.
13235         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13236         * remote.c: Include rsp-low.h.
13237         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13238         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13239         (remote_unescape_input): Move to common/rsp-low.c.
13240         * common/rsp-low.h: New file.
13241         * common/rsp-low.c: New file.
13242         * Makefile.in (SFILES): Add common/rsp-low.c.
13243         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13244         (COMMON_OBS): Add rsp-low.o.
13245         (rsp-low.o): New target.
13246
13247 2014-02-12  Tom Tromey  <tromey@redhat.com>
13248
13249         * utils.h: Include print-utils.h.
13250         (host_address_to_string, plongest, pulongest, phex, phex_nz)
13251         (int_string, core_addr_to_string, core_addr_to_string_nz)
13252         (hex_string, hex_string_custom): Don't declare.
13253         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13254         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13255         (hex_string_custom, int_string, core_addr_to_string)
13256         (core_addr_to_string_nz, host_address_to_string): Move to
13257         common/print-utils.c.
13258         * common/print-utils.h: New file.
13259         * common/print-utils.c: New file
13260         * Makefile.in (SFILES): Add common/print-utils.c.
13261         (HFILES_NO_SRCDIR): Add common/print-utils.h.
13262         (COMMON_OBS): Add print-utils.o.
13263         (print-utils.o): New target.
13264
13265 2014-02-12  Tom Tromey  <tromey@redhat.com>
13266
13267         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13268
13269 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
13270
13271         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13272
13273 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
13274
13275         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13276         if a PT_IO ptrace request returns sucessfully but indicates that 0
13277         bytes were transferred.
13278
13279 2014-02-12  Pedro Alves  <palves@redhat.com>
13280             Kevin Buettner <kevinb@redhat.com>
13281
13282         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13283         TYPE_INSTANCE_FLAG_CODE_SPACE.
13284
13285 2014-02-12  Pedro Alves  <palves@redhat.com>
13286
13287         * h8300-tdep.c (pseudo_from_raw_register)
13288         (raw_from_pseudo_register): New functions.
13289         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13290         them.
13291
13292 2014-02-12  Pedro Alves  <palves@redhat.com>
13293
13294         * h8300-tdep.c (h8300_register_sim_regno): New function.
13295         (h8300_gdbarch_init): Install h8300_register_sim_regno as
13296         gdbarch_register_sim_regno hook.
13297
13298 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
13299
13300         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13301
13302 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
13303
13304         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13305
13306 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
13307
13308         * obsd-tdep.h (obsd_init_abi): New prototype.
13309         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13310         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13311         (obsd_init_abi): New functions.
13312         * i386obsd-tdep.c: Include "obsd-tdep.h".
13313         (i386obsd_init_abi): Call obsd_init_abi.
13314         * amd64obsd-tdep.c: Include "obsd-tdep.h".
13315         (amd64obsd_init_abi): Call obsd_init_abi.
13316         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13317         obsd-tdep.c to gdb_target_obs.
13318
13319 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
13320
13321         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13322         double float arguments to 16-byte in the argument slots.
13323
13324 2014-02-11  Doug Evans  <xdje42@gmail.com>
13325
13326         * configure.ac: Don't crash if pkg-config is not found and guile
13327         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
13328         in guile checks.
13329         * configure: Regenerate.
13330
13331 2014-02-11  Yao Qi  <yao@codesourcery.com>
13332
13333         * aix-thread.c (aix_thread_xfer_partial): Update comments.
13334         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13335         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13336         * gnu-nat.c (gnu_xfer_memory): Likewise.
13337         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
13338         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13339         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13340         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13341
13342 2014-02-11  Yao Qi  <yao@codesourcery.com>
13343
13344         * target.h (enum target_xfer_error): Rename to ...
13345         (enum target_xfer_status): ... it.  New.  All users updated.
13346         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13347         New.
13348         (TARGET_XFER_STATUS_ERROR_P): New macro.
13349         (target_xfer_error_to_string): Remove declaration.
13350         (target_xfer_status_to_string): Declare.
13351         (target_xfer_partial_ftype): Adjust it.
13352         (struct target_ops) <to_xfer_partial>: Return
13353         target_xfer_status.  Add argument xfered_len.  Update
13354         comments.
13355         * target.c (target_xfer_error_to_string): Rename to ...
13356         (target_xfer_status_to_string): ... it.  New.  All callers
13357         updated.
13358         (target_read_live_memory): Likewise.  Call target_xfer_partial
13359         instead of target_read.
13360         (memory_xfer_live_readonly_partial): Return
13361         target_xfer_status.  Add argument xfered_len.
13362         (raw_memory_xfer_partial): Likewise.
13363         (memory_xfer_partial_1): Likewise.
13364         (memory_xfer_partial): Likewise.
13365         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
13366         properly.  Update debug message.
13367         (default_xfer_partial, current_xfer_partial): Likewise.
13368         (target_write_partial): Likewise.
13369         (target_read_partial): Likewise.  All callers updated.
13370         (read_whatever_is_readable): Likewise.
13371         (target_write_with_progress): Likewise.
13372         (target_read_alloc_1): Likewise.
13373
13374         * aix-thread.c (aix_thread_xfer_partial): Likewise.
13375         * auxv.c (procfs_xfer_auxv): Likewise.
13376         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13377         * bfd-target.c (target_bfd_xfer_partial): Likewise.
13378         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13379         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13380         * corefile.c (read_memory): Adjust.
13381         * corelow.c (core_xfer_partial): Likewise.
13382         * ctf.c (ctf_xfer_partial): Likewise.
13383         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
13384         updated.
13385         (darwin_xfer_partial): Likewise.
13386         * exec.c (section_table_xfer_memory_partial): Likewise.  All
13387         callers updated.
13388         (exec_xfer_partial): Likewise.
13389         * exec.h (section_table_xfer_memory_partial): Update
13390         declaration.
13391         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
13392         negative.
13393         (gnu_xfer_partial): Likewise.
13394         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13395         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13396         (ia64_hpux_xfer_solib_got): Likewise.
13397         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
13398         type of 'partial_len' to ULONGEST.
13399         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13400         * linux-nat.c (linux_xfer_siginfo ): Likewise.
13401         (linux_nat_xfer_partial): Likewise.
13402         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13403         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13404         * monitor.c (monitor_xfer_memory): Likewise.
13405         (monitor_xfer_partial): Likewise.
13406         * procfs.c (procfs_xfer_partial): Likewise.
13407         * record-btrace.c (record_btrace_xfer_partial): Likewise.
13408         * record-full.c (record_full_xfer_partial): Likewise.
13409         (record_full_core_xfer_partial): Likewise.
13410         * remote-sim.c (gdbsim_xfer_memory): Likewise.
13411         (gdbsim_xfer_partial): Likewise.
13412         * remote.c (remote_write_bytes_aux): Likewise.  All callers
13413         updated.
13414         (remote_write_bytes, remote_read_bytes): Likewise.  All
13415         callers updated.
13416         (remote_flash_erase): Likewise.  All callers updated.
13417         (remote_write_qxfer): Likewise.  All callers updated.
13418         (remote_read_qxfer): Likewise.  All callers updated.
13419         (remote_xfer_partial): Likewise.
13420         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13421         (rs6000_xfer_shared_libraries): Likewise.
13422         * sol-thread.c (sol_thread_xfer_partial): Likewise.
13423         (sol_thread_xfer_partial): Likewise.
13424         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13425         (sparc_xfer_partial): Likewise.
13426         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
13427         updated.
13428         (spu_xfer_partial): Likewise.
13429         * spu-multiarch.c (spu_xfer_partial): Likewise.
13430         * tracepoint.c (tfile_xfer_partial): Likewise.
13431         * windows-nat.c (windows_xfer_memory): Likewise.
13432         (windows_xfer_shared_libraries): Likewise.
13433         (windows_xfer_partial): Likewise.
13434         * valprint.c: Replace 'target_xfer_error' with
13435         'target_xfer_status' in comments.
13436
13437 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
13438
13439         Checked in by Joel Brobecker <brobecker@adacore.com>.
13440         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13441
13442 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
13443
13444         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13445         function parameters.
13446
13447 2014-02-10  Will Newton  <will.newton@linaro.org>
13448
13449         * elfread.c (elf_rel_plt_read): Look for a .got section if
13450         looking up .got.plt fails.
13451         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13452         on address passed to elf_gnu_ifunc_record_cache.
13453         (elf_gnu_ifunc_resolve_addr): Likewise.
13454         (elf_gnu_ifunc_resolver_return_stop): Likewise.
13455
13456 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
13457
13458         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13459         (X_RETTURN): New macro.
13460         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13461
13462         * sparc64-tdep.c (sparc64_init_abi): Hook
13463         sparc_in_function_epilogue_p.
13464
13465 2014-02-10  Gary Benson  <gbenson@redhat.com>
13466
13467         * symfile-debug.c (debug_qf_expand_symtabs_matching):
13468         Rename name_matcher to symbol_matcher.
13469
13470 2014-02-10  Gary Benson  <gbenson@redhat.com>
13471
13472         * symfile-debug.c (debug_qf_expand_symtabs_matching):
13473         Use expand_symtabs_file_matcher_ftype and
13474         expand_symtabs_symbol_matcher_ftype.
13475
13476 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13477
13478         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13479         (struct ada_symbol_cache): New.
13480         (ada_free_symbol_cache): Forward declare.
13481         (struct ada_pspace_data): New.
13482         (ada_pspace_data_handle): New static global.
13483         (get_ada_pspace_data, ada_pspace_data_cleanup)
13484         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13485         (cache_space, cache): Delete, now folded inside struct
13486         ada_pspace_data.
13487         (ada_get_symbol_cache): New function.
13488         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13489         implementation.
13490         (_initialize_ada_language): Remove initialization of cache_space.
13491         Move call to observer_attach_inferior_exit up, grouping it
13492         with the other observer registrations inside this function.
13493         Rename command to be more general.  Add call to
13494         register_program_space_data_with_cleanup.
13495
13496 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13497
13498         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13499         ada_new_objfile_observer.
13500         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13501         (_initialize_tasks): Update uses of ada_new_objfile_observer
13502         and ada_tasks_normal_stop_observer.
13503
13504 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13505
13506         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13507         returned by the 'Length attribute to integer.
13508
13509 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13510
13511         * ada-lang.c (_initialize_ada_language): Initialize
13512         cache_space obstack.
13513
13514 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13515
13516         * ada-lang.c (HASH_SIZE): New macro.
13517         (struct cache_entry): New type.
13518         (cache_space, cache): New static globals.
13519         (ada_clear_symbol_cache, find_entry): New functions.
13520         (lookup_cached_symbol, cache_symbol): Implement.
13521         (ada_new_objfile_observer, ada_free_objfile_observer): New.
13522         (_initialize_ada_language): Attach ada_new_objfile_observer
13523         and ada_free_objfile_observer.
13524
13525 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13526
13527         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13528         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13529         struct block * parameter.
13530         (ada_lookup_symbol_list_worker): Constify local variable "block".
13531         Remove cast which is no longer necessary.
13532
13533 2014-02-10  Doug Evans  <xdje42@gmail.com>
13534
13535         Add Guile as an extension language.
13536         * NEWS: Mention Guile scripting.
13537         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13538         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13539         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13540         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13541         (CLIBS): Add GUILE_LIBS.
13542         (install-guile): New rule.
13543         (guile.o): New rule.
13544         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13545         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13546         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13547         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13548         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13549         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13550         (scm-type.o, scm-utils.o, scm-value.o): New rules.
13551         * configure.ac: New option --with-guile.
13552         * configure: Regenerate.
13553         * config.in: Regenerate.
13554         * auto-load.c: Remove #include "python/python.h".  Add #include
13555         "gdb/section-scripts.h".
13556         (source_section_scripts): Handle Guile scripts.
13557         (_initialize_auto_load): Add name of Guile objfile script to
13558         scripts-directory help text.
13559         * breakpoint.c (condition_command): Tweak comment to include Scheme.
13560         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13561         (struct breakpoint): New member scm_bp_object.
13562         * defs.h (enum command_control_type): New value guile_control.
13563         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
13564         "extension.h".
13565         (show_user): Update comment.
13566         (_initialize_cli_cmds): Update help text for "show user".  Update help
13567         text for max-user-call-depth.
13568         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
13569         "extension.h".
13570         (multi_line_command_p): Add guile_control.
13571         (print_command_lines): Handle guile_control.
13572         (execute_control_command, recurse_read_control_structure): Ditto.
13573         (process_next_line): Recognize "guile" commands.
13574         * disasm.c (gdb_disassemble_info): Make non-static.
13575         * disasm.h: #include "dis-asm.h".
13576         (struct gdbarch): Add forward decl.
13577         (gdb_disassemble_info): Declare.
13578         * extension.c: #include "guile/guile.h".
13579         (extension_languages): Add guile.
13580         (get_ext_lang_defn): Handle EXT_LANG_GDB.
13581         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13582         * gdbtypes.c (get_unsigned_type_max): New function.
13583         (get_signed_type_minmax): New function.
13584         * gdbtypes.h (get_unsigned_type_max): Declare.
13585         (get_signed_type_minmax): Declare.
13586         * guile/README: New file.
13587         * guile/guile-internal.h: New file.
13588         * guile/guile.c: New file.
13589         * guile/guile.h: New file.
13590         * guile/scm-arch.c: New file.
13591         * guile/scm-auto-load.c: New file.
13592         * guile/scm-block.c: New file.
13593         * guile/scm-breakpoint.c: New file.
13594         * guile/scm-disasm.c: New file.
13595         * guile/scm-exception.c: New file.
13596         * guile/scm-frame.c: New file.
13597         * guile/scm-gsmob.c: New file.
13598         * guile/scm-iterator.c: New file.
13599         * guile/scm-lazy-string.c: New file.
13600         * guile/scm-math.c: New file.
13601         * guile/scm-objfile.c: New file.
13602         * guile/scm-ports.c: New file.
13603         * guile/scm-pretty-print.c: New file.
13604         * guile/scm-safe-call.c: New file.
13605         * guile/scm-string.c: New file.
13606         * guile/scm-symbol.c: New file.
13607         * guile/scm-symtab.c: New file.
13608         * guile/scm-type.c: New file.
13609         * guile/scm-utils.c: New file.
13610         * guile/scm-value.c: New file.
13611         * guile/lib/gdb.scm: New file.
13612         * guile/lib/gdb/boot.scm: New file.
13613         * guile/lib/gdb/experimental.scm: New file.
13614         * guile/lib/gdb/init.scm: New file.
13615         * guile/lib/gdb/iterator.scm: New file.
13616         * guile/lib/gdb/printing.scm: New file.
13617         * guile/lib/gdb/types.scm: New file.
13618         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13619         (VPATH): Add $(GUILE_SRCDIR).
13620         (GUILE_DIR): New variable.
13621         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13622         (all): Add stamp-guile dependency.
13623         (stamp-guile): New rule.
13624         (clean-guile, install-guile, uninstall-guile): New rules.
13625         (install-only): Add install-guile dependency.
13626         (uninstall): Add uninstall-guile dependency.
13627         (clean): Add clean-guile dependency.
13628
13629 2014-02-09  Doug Evans  <xdje42@gmail.com>
13630
13631         Revert this patch (which I approved, mea culpa).
13632
13633         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
13634
13635         * Makefile.in (all-lib): Remove.
13636         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13637
13638 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
13639
13640         Fix Python stack corruption.
13641         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13642         gdb_py_longest.
13643
13644 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
13645
13646         * Makefile.in (all-lib): Remove.
13647         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13648
13649 2014-02-07  Doug Evans  <dje@google.com>
13650
13651         * extension-priv.h (extension_language_script_ops): Add comment.
13652         (extension_language_ops): Add comment.
13653         (active_ext_lang_state): Fix typo in comment.
13654
13655 2014-02-07  Pedro Alves  <palves@redhat.com>
13656
13657         PR breakpoints/16292
13658         * infrun.c (handle_signal_stop) <signal arrives while stepping
13659         over a breakpoint>: Switch back to the stepping thread.
13660
13661 2014-02-07  Yao Qi  <yao@codesourcery.com>
13662
13663         * target.c (target_xfer_partial): Return zero if LEN is zero.
13664
13665 2014-02-07  Yao Qi  <yao@codesourcery.com>
13666
13667         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13668         (ld_so_xfer_auxv): Likewise.
13669         * bfd-target.c (target_bfd_xfer_partial): Likewise.
13670         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13671         * corelow.c (core_xfer_partial): Likewise.
13672         * ctf.c (ctf_xfer_partial): Likewise.
13673         * darwin-nat.c (darwin_read_dyld_info): Likewise.
13674         (darwin_xfer_partial): Likewise.
13675         * exec.c (exec_xfer_partial): Likewise.
13676         * gnu-nat.c (gnu_xfer_partial): Likewise.
13677         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13678         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13679         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13680         * linux-nat.c (linux_xfer_siginfo): Likewise.
13681         (linux_proc_xfer_spu): Likewise.
13682         * procfs.c (procfs_xfer_partial): Likewise.
13683         * record-full.c (record_full_xfer_partial): Likewise.
13684         (record_full_core_xfer_partial): Likewise.
13685         * remote-sim.c (gdbsim_xfer_partial): Likewise.
13686         * remote.c (remote_write_qxfer): Likewise.
13687         (remote_write_qxfer, remote_read_qxfer): Likewise.
13688         (remote_xfer_partial): Likewise.
13689         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13690         (rs6000_xfer_shared_libraries): Likewise.
13691         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13692         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13693         (spu_xfer_partial): Likewise.
13694         * target.c (memory_xfer_partial_1): Likewise.
13695         * tracepoint.c (tfile_xfer_partial): Likewise.
13696         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13697         (windows_xfer_partial): Likewise.
13698
13699 2014-02-07  Yao Qi  <yao@codesourcery.com>
13700
13701         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
13702         comments.
13703         (core_xfer_shared_libraries_aix): Likewise.
13704         * gdbarch.c, gdbarch.h: Regenerated.
13705         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13706         ULONGEST.  Change 'len_avail' type to ULONGEST.
13707         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13708         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13709         declaration.
13710         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13711
13712 2014-02-07  Yao Qi  <yao@codesourcery.com>
13713
13714         * corefile.c (memory_error): Get 'exception' from ERR and pass
13715         'exception' to throw_error.
13716
13717 2014-02-06  Doug Evans  <xdje42@gmail.com>
13718
13719         * configure.ac (libpython checking): Remove all but python.o from
13720         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
13721         * configure: Regenerate.
13722
13723         * Makefile.in (SFILES): Add extension.c.
13724         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13725         (COMMON_OBS): Add extension.o.
13726         * extension.h: New file.
13727         * extension-priv.h: New file.
13728         * extension.c: New file.
13729
13730         * python/python-internal.h: #include "extension.h".
13731         (gdbpy_auto_load_enabled): Declare.
13732         (gdbpy_apply_val_pretty_printer): Declare.
13733         (gdbpy_apply_frame_filter): Declare.
13734         (gdbpy_preserve_values): Declare.
13735         (gdbpy_breakpoint_cond_says_stop): Declare.
13736         (gdbpy_breakpoint_has_cond): Declare.
13737         (void source_python_script_for_objfile): Delete.
13738         * python/python.c: #include "extension-priv.h".
13739         Delete inclusion of "observer.h".
13740         (extension_language_python): Moved here and renamed from
13741         script_language_python in py-auto-load.c.
13742         Redefined to be of type extension_language_defn.
13743         (python_extension_script_ops): New global.
13744         (python_extension_ops): New global.
13745         (struct python_env): New member previous_active.
13746         (restore_python_env): Call restore_active_ext_lang.
13747         (ensure_python_env): Call set_active_ext_lang.
13748         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13749         New arg extlang.
13750         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13751         New arg extlang.
13752         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13753         New arg extlang.
13754         (gdbpy_eval_from_control_command): Renamed from
13755         eval_python_from_control_command, made static.  New arg extlang.
13756         (gdbpy_source_script) Renamed from source_python_script, made static.
13757         New arg extlang.
13758         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
13759         result to int.  New arg extlang.
13760         (gdbpy_source_objfile_script): Renamed from
13761         source_python_script_for_objfile, made static.  New arg extlang.
13762         (gdbpy_start_type_printers): Renamed from start_type_printers, made
13763         static.  New args extlang, extlang_printers.  Change result type to
13764         "void".
13765         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13766         static.  New arg extlang.  Rename arg printers to extlang_printers
13767         and change type to ext_lang_type_printers *.
13768         (gdbpy_free_type_printers): Renamed from free_type_printers, made
13769         static.  Replace argument arg with extlang, extlang_printers.
13770         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13771         (!HAVE_PYTHON, source_python_script): Delete.
13772         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13773         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13774         (!HAVE_PYTHON, start_type_printers): Delete.
13775         (!HAVE_PYTHON, apply_type_printers): Delete.
13776         (!HAVE_PYTHON, free_type_printers): Delete.
13777         (_initialize_python): Delete call to observer_attach_before_prompt.
13778         (finalize_python): Set/restore active extension language.
13779         (gdbpy_finish_initialization) Renamed from
13780         finish_python_initialization, made static.  New arg extlang.
13781         (gdbpy_initialized): New function.
13782         * python/python.h: #include "extension.h".  Delete #include
13783         "value.h", "mi/mi-cmds.h".
13784         (extension_language_python): Declare.
13785         (GDBPY_AUTO_FILE_NAME): Delete.
13786         (enum py_bt_status): Moved to extension.h and renamed to
13787         ext_lang_bt_status.
13788         (enum frame_filter_flags): Moved to extension.h.
13789         (enum py_frame_args): Moved to extension.h and renamed to
13790         ext_lang_frame_args.
13791         (finish_python_initialization): Delete.
13792         (eval_python_from_control_command): Delete.
13793         (source_python_script): Delete.
13794         (apply_val_pretty_printer): Delete.
13795         (apply_frame_filter): Delete.
13796         (preserve_python_values): Delete.
13797         (gdbpy_script_language_defn): Delete.
13798         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13799         (start_type_printers, apply_type_printers, free_type_printers): Delete.
13800
13801         * auto-load.c: #include "extension.h".
13802         (GDB_AUTO_FILE_NAME): Delete.
13803         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
13804         (script_language_gdb): Delete, moved to extension.c and renamed to
13805         extension_language_gdb.
13806         (source_gdb_script_for_objfile): Delete.
13807         (auto_load_pspace_info): New member unsupported_script_warning_printed.
13808         (loaded_script): Change type of language member to
13809         struct extension_language_defn *.
13810         (init_loaded_scripts_info): Initialize
13811         unsupported_script_warning_printed.
13812         (maybe_add_script): Make static.  Change type of language arg to
13813         struct extension_language_defn *.
13814         (clear_section_scripts): Reset unsupported_script_warning_printed.
13815         (auto_load_objfile_script_1): Rewrite to use extension language API.
13816         (auto_load_objfile_script): Make public.  Remove support-compiled-in
13817         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13818         (source_section_scripts): Rewrite to use extension language API.
13819         (load_auto_scripts_for_objfile): Rewrite to use
13820         auto_load_scripts_for_objfile.
13821         (collect_matching_scripts_data): Change type of language member to
13822         struct extension_language_defn *.
13823         (auto_load_info_scripts): Change type of language arg to
13824         struct extension_language_defn *.
13825         (unsupported_script_warning_print): New function.
13826         (script_not_found_warning_print): Make static.
13827         (_initialize_auto_load): Rewrite construction of scripts-directory
13828         help.
13829         * auto-load.h (struct objfile): Add forward decl.
13830         (struct script_language): Delete.
13831         (struct auto_load_pspace_info): Add forward decl.
13832         (struct extension_language_defn): Add forward decl.
13833         (maybe_add_script): Delete.
13834         (auto_load_objfile_script): Declare.
13835         (script_not_found_warning_print): Delete.
13836         (auto_load_info_scripts): Update prototype.
13837         (auto_load_gdb_scripts_enabled): Declare.
13838         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13839         auto_load_python_scripts_enabled and made public.
13840         (script_language_python): Delete, moved to python.c.
13841         (gdbpy_script_language_defn): Delete.
13842         (info_auto_load_python_scripts): Update to use
13843         extension_language_python.
13844
13845         * breakpoint.c (condition_command): Replace call to
13846         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13847         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13848         with call to breakpoint_ext_lang_cond_says_stop.
13849         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13850         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
13851         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13852         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13853         New arg slang.
13854         (local_setattro): Print name of extension language with existing
13855         stop condition.
13856
13857         * valprint.c (val_print, value_print): Update to call
13858         apply_ext_lang_val_pretty_printer.
13859         * cp-valprint.c (cp_print_value): Update call to
13860         apply_ext_lang_val_pretty_printer.
13861         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13862         (gdbpy_apply_val_pretty_printer): Renamed from
13863         apply_val_pretty_printer.  New arg extlang.
13864         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13865
13866         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13867         extension language API.
13868         * cli/cli-script.c (execute_control_command): Update to call
13869         eval_ext_lang_from_control_command.
13870
13871         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13872         enum ext_lang_bt_status values.  Update call to
13873         apply_ext_lang_frame_filter.
13874         (mi_cmd_stack_list_locals): Ditto.
13875         (mi_cmd_stack_list_args): Ditto.
13876         (mi_cmd_stack_list_variables): Ditto.
13877         * mi/mi-main.c: Delete #include "python/python-internal.h".
13878         Add #include "extension.h".
13879         (mi_cmd_list_features): Replace reference to python internal variable
13880         gdb_python_initialized with call to ext_lang_initialized_p.
13881
13882         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13883         Update to use enum ext_lang_frame_args.  Update to call
13884         apply_ext_lang_frame_filter.
13885         * python/py-framefilter.c (extract_sym): Update to use enum
13886         ext_lang_bt_status.
13887         (extract_value, py_print_type, py_print_value): Ditto.
13888         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13889         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13890         (py_print_frame): Ditto.
13891         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13892         New arg extlang.  Update to use enum ext_lang_bt_status.
13893
13894         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13895         finish_python_initialization.  Replace with call to
13896         finish_ext_lang_initialization.
13897
13898         * typeprint.c (do_free_global_table): Update to call
13899         free_ext_lang_type_printers.
13900         (create_global_typedef_table): Update to call
13901         start_ext_lang_type_printers.
13902         (find_global_typedef): Update to call apply_ext_lang_type_printers.
13903         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13904         (type_print_options): Change type of global_printers from "void *"
13905         to "struct ext_lang_type_printers *".
13906
13907         * value.c (preserve_values): Update to call preserve_ext_lang_values.
13908         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13909         (gdbpy_preserve_values): Renamed from preserve_python_values.
13910         New arg extlang.
13911         (!HAVE_PYTHON, preserve_python_values): Delete.
13912
13913         * utils.c (quit_flag): Delete, moved to extension.c.
13914         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13915         extension.c.
13916
13917         * eval.c: Delete #include "python/python.h".
13918         * main.c: Delete #include "python/python.h".
13919
13920         * defs.h: Update comment.
13921
13922 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
13923
13924         GDB 7.7 released.
13925
13926 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
13927
13928         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
13929         defined.
13930
13931 2014-02-05  Yao Qi  <yao@codesourcery.com>
13932
13933         * remote.c (remote_pass_signals): Remove local 'buf' and use
13934         rs->buf.
13935         (remote_program_signals): Likewise.
13936
13937 2014-02-05  Yao Qi  <yao@codesourcery.com>
13938
13939         * ctf.c: Include "inferior.h" and "gdbthread.h".
13940         (CTF_PID): A new macro.
13941         (ctf_open): Call inferior_appeared and add_thread_silent.
13942         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
13943         (ctf_thread_alive): New function.
13944         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
13945
13946 2014-02-05  Yao Qi  <yao@codesourcery.com>
13947
13948         Revert this patch:
13949
13950         2013-05-24  Yao Qi  <yao@codesourcery.com>
13951
13952         * tracepoint.c (TFILE_PID): Remove.
13953         (tfile_open): Don't add thread and inferior.
13954         (tfile_close): Don't set 'inferior_ptid'.  Don't call
13955         exit_inferior_silent.
13956         (tfile_thread_alive): Remove.
13957         (init_tfile_ops): Don't set field 'to_thread_alive' of
13958         tfile_ops.
13959
13960 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
13961
13962         * remote.c (remote_start_remote): Call remote_check_symbols even
13963         if only symbol-file (not file) has been given.
13964
13965 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13966
13967         * gdbarch.sh (skip_entrypoint): New callback.
13968         * gdbarch.c, gdbarch.h: Regenerate.
13969         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
13970         * infrun.c (fill_in_stop_func): Likewise.
13971         * ppc-linux-tdep.c: Include "elf/ppc64.h".
13972         (ppc_elfv2_elf_make_msymbol_special): New function.
13973         (ppc_elfv2_skip_entrypoint): Likewise.
13974         (ppc_linux_init_abi): Install them for ELFv2.
13975
13976 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13977
13978         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
13979         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
13980         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
13981         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
13982         structures returned in GPRs.
13983
13984 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13985
13986         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
13987         offset to the stack parameter list for the ELFv2 ABI.
13988
13989 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13990
13991         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
13992         set_gdbarch_convert_from_func_ptr_addr and
13993         set_gdbarch_elf_make_msymbol_special for ELFv1.
13994         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
13995         function descriptors on ELFv1.
13996         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
13997         set up r12 at function entry.
13998
13999 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14000
14001         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14002         (struct gdbarch_tdep): New member elf_abi.
14003
14004         * rs6000-tdep.c: Include "elf/ppc64.h".
14005         (rs6000_gdbarch_init): Detect ELF ABI version.
14006
14007 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14008
14009         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14010         within a register pair holding a DFP 128-bit value on little-endian.
14011         (ppc64_sysv_abi_return_value_base): Likewise.
14012         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14013         (dfp_pseudo_register_write): Likewise.
14014
14015 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14016
14017         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14018         offset on little-endian when passing _Decimal32.
14019         (ppc64_sysv_abi_return_value_base): Likewise for return values.
14020
14021 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14022
14023         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14024         of the overlapped FP register within the VSX register on little-
14025         endian platforms.
14026         (efpr_pseudo_register_write): Likewise.
14027
14028 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14029
14030         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14031         offset on little-endian when passing small structures.
14032
14033 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14034
14035         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14036         (struct ppc64_sysv_argpos): New data structure.
14037         (ppc64_sysv_abi_push_float): Remove.
14038         (ppc64_sysv_abi_push_val): New function.
14039         (ppc64_sysv_abi_push_integer): Likewise.
14040         (ppc64_sysv_abi_push_freg): Likewise.
14041         (ppc64_sysv_abi_push_vreg): Likewise.
14042         (ppc64_sysv_abi_push_param): Likewise.
14043         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14044         (ppc64_sysv_abi_return_value_base): New function.
14045         (ppc64_sysv_abi_return_value): Refactor to use it.
14046
14047 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14048
14049         * NEWS: Document new target powerpc64le-*-linux*.
14050
14051 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
14052
14053         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14054         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14055         core dumps.
14056         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14057         register set used in ELF core dumps.  Add floating-point register set.
14058
14059 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
14060
14061         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14062         dwarf2_to_gdb[] table using symbolic constants.  Adjust
14063         penultimate entry from number representing the PC register
14064         to symbolic constant representing the MDR register.  Add
14065         constant for the PC register to the end of the table.
14066
14067 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
14068
14069         * bsd-kvm.c: Include <sys/param.h>
14070
14071 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
14072
14073         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14074
14075 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
14076
14077         * ada-lang.h (clear_ada_sym_cache): Delete.
14078
14079 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
14080
14081         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14082
14083 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
14084
14085         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14086           the sigreturn register save area only if the syscall is
14087           sigreturn.
14088
14089 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
14090
14091         * valops.c (value_slice): Minor reformatting.
14092
14093 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
14094
14095         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14096
14097 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
14098
14099         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14100         New static globals.
14101         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14102         (ada_ignore_descriptive_types_p): New static global.
14103         (find_parallel_type_by_descriptive_type): Return immediately
14104         if ada_ignore_descriptive_types_p is set.
14105         (_initialize_ada_language): Register new commands "maintenance
14106         set ada", "maintenance show ada", "maintenance set ada
14107         ignore-descriptive-types" and "maintenance show ada
14108         ignore-descriptive-types".
14109         * NEWS: Add entry for new "maint ada set/show
14110         ignore-descriptive-types" commands.
14111
14112 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
14113
14114         * record-btrace.c (record_btrace_close): Call btrace_teardown
14115         for all threads.
14116
14117 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14118
14119         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14120         "ui-out.h".
14121
14122 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14123
14124         * ada-typeprint (type_is_full_subrange_of_target_type):
14125         New function.
14126         (print_range): Add parameter bounds_prefered_p.  If not set,
14127         try printing range types using the name of their base type.
14128         (print_range_type): Add parameter bounds_prefered_p.
14129         Use it in call to print_range.
14130         (print_array_type, ada_print_type): Update calls to print_range
14131         and print_range_type.
14132
14133 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14134
14135         * ada-typeprint.c (print_array_type, print_choices, print_range)
14136         (print_range_bound, print_dynamic_range_bound, print_range_type):
14137         Remove declaration.
14138
14139 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14140
14141         * ada-typeprint.c (print_range): Add missing empty line
14142         after local declaration.
14143
14144 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14145
14146         * ada-valprint.c (print_optional_low_bound): Get index_type's
14147         target type for as long as it is a TYPE_CODE_RANGE.
14148
14149 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14150
14151         * procfs.c (procfs_make_note_section): Remove assertion and
14152         associated comment.
14153
14154 2014-01-24  Yao Qi  <yao@codesourcery.com>
14155
14156         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14157         * corelow.c (get_core_siginfo): Likewise.
14158
14159 2014-01-24  Yao Qi  <yao@codesourcery.com>
14160
14161         * remote.c (remote_write_bytes_aux): Change type of 'len' to
14162         ULONGEST.  Don't check 'len' is negative.
14163         (remote_write_bytes):  Change type of 'len' to ULONGEST.
14164
14165 2014-01-23  Tom Tromey  <tromey@redhat.com>
14166
14167         PR python/16485:
14168         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14169         Handle exception from frame.block.
14170         (FrameVars.fetch_frame_locals): Likewise.
14171
14172 2014-01-23  Tom Tromey  <tromey@redhat.com>
14173
14174         PR python/16487:
14175         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14176         on a NULL pointer.  Move "goto error" to correct place.
14177
14178 2014-01-23  Tom Tromey  <tromey@redhat.com>
14179
14180         PR python/16491:
14181         * python/py-framefilter.c (apply_frame_filter): Call
14182         ensure_python_env after computing gdbarch.
14183
14184 2014-01-23  Yao Qi  <yao@codesourcery.com>
14185
14186         * target.c (raw_memory_xfer_partial): Change argument type
14187         from void * to gdb_byte *.
14188         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14189
14190 2014-01-22  Doug Evans  <dje@google.com>
14191
14192         New gdbserver option --debug-format=timestamp.
14193         * NEWS: Mention it.
14194
14195 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
14196
14197         * syscalls/s390x-linux.xml: New file.
14198         * syscalls/s390-linux.xml: New file.
14199         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14200         (XML_SYSCALL_FILENAME_S390X): Likewise.
14201         (op_svc): New enum value for SVC opcode.
14202         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14203         (s390_linux_get_syscall_number): New function.
14204         (s390_gdbarch_init): Register '*get_syscall_number' and the
14205         syscall xml file name.
14206         * data-directory/Makefile.in (SYSCALLS_FILES): Add
14207         "s390-linux.xml" and "s390x-linux.xml".
14208         * NEWS: Announce new feature.
14209
14210 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
14211
14212         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14213
14214 2014-01-22  Pedro Alves  <palves@redhat.com>
14215
14216         * xtensa-config.c: Include defs.h.
14217
14218 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
14219
14220         * common/common-utils.h: Add "ARI:" comment beside __func__
14221         reference.
14222
14223 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
14224
14225         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14226         documentation a bit.
14227
14228 2014-01-21  Roland McGrath  <mcgrathr@google.com>
14229
14230         * configure.ac: Call AM_PROG_INSTALL_STRIP.
14231         * configure: Regenerate.
14232         * aclocal.m4: Regenerate.
14233         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14234         New substituted variables.
14235         (install-strip): New target.
14236         (INSTALL_SCRIPT): New substituted variable.
14237         (FLAGS_TO_PASS): Add it.
14238         (install-only): Use $(INSTALL_SCRIPT) rather than
14239         $(INSTALL_PROGRAM) for gcore.
14240
14241 2014-01-20  Tom Tromey  <tromey@redhat.com>
14242
14243         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14244         together.
14245
14246 2014-01-20  Tom Tromey  <tromey@redhat.com>
14247
14248         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14249         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14250         (deprecated_cmd_warning, complete_on_cmdlist): Update.
14251         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14252         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14253         (struct cmd_list_element) <flags>: Remove.
14254         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14255         doc_allocated>: New fields.
14256         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14257         bitfields.
14258         * maint.c (maintenance_do_deprecate): Update.
14259         * top.c (execute_command): Update.
14260
14261 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
14262
14263         * xtensa-linux-nat.c: Include asm/ptrace.h.
14264
14265 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14266
14267         * Makefile.in (SFILES): Add d-support.c.
14268         (COMMON_OBS): Add d-support.o.
14269         * d-lang.h (d_parse_symbol): Add comment, now defined in
14270         d-support.c.
14271         * d-lang.c (parse_call_convention)
14272         (parse_attributes, parse_function_types)
14273         (parse_function_args, parse_type, parse_identifier)
14274         (call_convention_p, d_parse_symbol): Move functions to ...
14275         * d-support.c: ... New file.
14276
14277 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14278
14279         * d-lang.h (d_parse_symbol): Add declaration.
14280         * d-lang.c (extract_identifiers)
14281         (extract_type_info): Remove functions.
14282         (parse_call_convention, parse_attributes)
14283         (parse_function_types, parse_function_args)
14284         (parse_type, parse_identifier, call_convention_p)
14285         (d_parse_symbol): New functions.
14286         (d_demangle): Use d_parse_symbol to demangle D symbols.
14287
14288 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14289
14290         * d-lang.h (struct builtin_d_type): New data type.
14291         (builtin_d_type): Add declaration.
14292         * d-lang.c (d_language_arch_info, build_d_types)
14293         (builtin_d_type): New functions.
14294         (enum d_primitive_types): New data type.
14295         (d_language_defn): Change c_language_arch_info to
14296         d_language_arch_info.
14297         (d_type_data): New static variable.
14298         (_initialize_d_language): Initialize d_type_data.
14299
14300 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14301
14302         * d-lang.h (d_main_name): Add declaration.
14303         * d-lang.c (d_main_name): New function.
14304         * symtab.c (find_main_name): Add call to d_main_name.
14305
14306 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14307
14308         * d-lang.c (d_language_defn): Change macro_expansion_c to
14309         macro_expansion_no.
14310
14311 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14312
14313         * MAINTAINERS: Add myself as a write-after-approval maintainer.
14314
14315 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
14316
14317         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14318         gdb_exception" declaration.
14319         * remote.c (getpkt_or_notif_sane): Likewise.
14320
14321 2014-01-17  Doug Evans  <dje@google.com>
14322
14323         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14324         function, contents of dirnames_to_char_ptr_vec_append moved here.
14325         (delim_string_to_char_ptr_vec): New function.
14326         (dirnames_to_char_ptr_vec_append): Rewrite.
14327         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14328
14329 2014-01-17  Doug Evans  <dje@google.com>
14330
14331         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14332         and moved here ...
14333         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14334         #include "common-utils.h".
14335         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14336         * common/vec.h (VEC_ASSERT_PASS): Update.
14337         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14338         (MACH_CHECK_ERROR): Update.
14339
14340 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
14341
14342         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14343         comments.
14344         * gdbarch.h: Regenerate.
14345
14346 2014-01-16  Tom Tromey  <tromey@redhat.com>
14347
14348         * value.c (struct value) <regnum>: Move earlier.
14349
14350 2014-01-16  Tom Tromey  <tromey@redhat.com>
14351
14352         * remote.c (extended_remote_create_inferior): Rename from
14353         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
14354         old implementation.
14355
14356 2014-01-16  Pedro Alves  <palves@redhat.com>
14357
14358         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14359         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14360         the backchain.
14361
14362 2014-01-16  Doug Evans  <dje@google.com>
14363
14364         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14365
14366 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14367
14368         * btrace.h (btrace_thread_flag): New.
14369         (struct btrace_thread_info) <flags>: New.
14370         * record-btrace.c (record_btrace_resume_thread)
14371         (record_btrace_find_thread_to_move, btrace_step_no_history)
14372         (btrace_step_stopped, record_btrace_start_replaying)
14373         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14374         (record_btrace_find_resume_thread): New.
14375         (record_btrace_resume, record_btrace_wait): Extend.
14376         (record_btrace_can_execute_reverse): New.
14377         (record_btrace_open): Fail in non-stop mode.
14378         (record_btrace_set_replay): Split into this, ...
14379         (record_btrace_stop_replaying): ... this, ...
14380         (record_btrace_clear_histories): ... and this.
14381         (init_record_btrace_ops): Init to_can_execute_reverse.
14382         * NEWS: Announce it.
14383
14384 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14385
14386         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14387         (forward_target_decr_pc_after_break)
14388         (target_decr_pc_after_break): New.
14389         * target.c (forward_target_decr_pc_after_break)
14390         (target_decr_pc_after_break): New.
14391         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14392         instead of gdbarch_decr_pc_after_break.
14393         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14394         instead of gdbarch_decr_pc_after_break.
14395         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14396         instead of gdbarch_decr_pc_after_break.
14397         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14398         instead of gdbarch_decr_pc_after_break.
14399         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14400         instead of gdbarch_decr_pc_after_break.
14401         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14402         instead of gdbarch_decr_pc_after_break.
14403
14404 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14405
14406         * btrace.c: Include regcache.h.
14407         (btrace_add_pc): New.
14408         (btrace_enable): Call btrace_add_pc.
14409         (btrace_is_empty): New.
14410         * btrace.h (btrace_is_empty): New.
14411         * record-btrace.c (require_btrace, record_btrace_info): Call
14412         btrace_is_empty.
14413
14414 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14415
14416         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14417         Support delta reads.
14418         (linux_disable_btrace): Change return type.
14419         * common/linux-btrace.h (linux_read_btrace): Change parameters
14420         and return type to allow error reporting.  Update users.
14421         (linux_disable_btrace): Change return type.  Update users.
14422         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14423         New.
14424         (btrace_error): New.
14425         (btrace_block) <begin>: Comment on BEGIN == 0.
14426         * btrace.c (btrace_compute_ftrace): Start from the end of
14427         the current trace.
14428         (btrace_stitch_trace, btrace_clear_history): New.
14429         (btrace_fetch): Read delta trace, return if replaying.
14430         (btrace_clear): Move clear history code to btrace_clear_history.
14431         (parse_xml_btrace): Throw an error if parsing failed.
14432         * target.h (struct target_ops) <to_read_btrace>: Change parameters
14433         and return type to allow error reporting.
14434         (target_read_btrace): Change parameters and return type to allow
14435         error reporting.
14436         * target.c (target_read_btrace): Update.
14437         * remote.c (remote_read_btrace): Support delta reads.  Pass
14438         errors on.
14439         * NEWS: Announce it.
14440
14441 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14442
14443         * record.h (record_btrace_frame_unwind)
14444         (record_btrace_tailcall_frame_unwind): New declarations.
14445         * dwarf2-frame: Include record.h
14446         (dwarf2_frame_cfa): Throw an error for btrace frames.
14447         * record-btrace.c: Include hashtab.h.
14448         (btrace_get_bfun_name): New.
14449         (btrace_call_history): Call btrace_get_bfun_name.
14450         (struct btrace_frame_cache): New.
14451         (bfcache): New.
14452         (bfcache_hash, bfcache_eq, bfcache_new): New.
14453         (btrace_get_frame_function): New.
14454         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14455         (record_btrace_frame_this_id): Compute own id.
14456         (record_btrace_frame_prev_register): Provide PC, throw_error
14457         for all other registers.
14458         (record_btrace_frame_sniffer): Detect btrace frames.
14459         (record_btrace_tailcall_frame_sniffer): New.
14460         (record_btrace_frame_dealloc_cache): New.
14461         (record_btrace_frame_unwind): Add new functions.
14462         (record_btrace_tailcall_frame_unwind): New.
14463         (_initialize_record_btrace): Allocate cache.
14464         * btrace.c (btrace_clear): Call reinit_frame_cache.
14465         * NEWS: Announce it.
14466
14467 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14468
14469         * record-btrace.c (record_btrace_set_replay)
14470         (record_btrace_goto_begin, record_btrace_goto_end)
14471         (record_btrace_goto): New.
14472         (init_record_btrace_ops): Initialize them.
14473         * NEWS: Announce it.
14474
14475 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14476
14477         * record-btrace.c (record_btrace_find_new_threads)
14478         (record_btrace_thread_alive): New.
14479         (init_record_btrace_ops): Initialize to_find_new_threads and
14480         to_thread_alive.
14481
14482 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14483
14484         * record-btrace.c (record_btrace_resume): New.
14485         (record_btrace_wait): New.
14486         (init_record_btrace_ops): Initialize to_wait and to_resume.
14487
14488 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14489
14490         * record-btrace.c (record_btrace_xfer_partial)
14491         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14492         (record_btrace_allow_memory_access): New.
14493         (init_record_btrace_ops): Initialize new methods.
14494         * target.c (raw_memory_xfer_partial): Bail out if target reports
14495         that this memory is not available.
14496
14497 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14498
14499         * target.h (target_ops) <to_insert_breakpoint>
14500         <to_remove_breakpoint>: Add target_ops parameter.
14501         (forward_target_insert_breakpoint): New.
14502         (forward_target_remove_breakpoint): New.
14503         (memory_remove_breakpoint, memory_insert_breakpoint):
14504         Add target_ops parameter.
14505         * target.c (target_insert_breakpoint): Split into this and ...
14506         (forward_target_insert_breakpoint): ... this.
14507         (target_remove_breakpoint): Split into this and ...
14508         (forward_target_remove_breakpoint): ... this.
14509         (debug_to_insert_breakpoint): Add target_ops parameter.
14510         Call forward_target_insert_breakpoint.
14511         (debug_to_remove_breakpoint): Add target_ops parameter.
14512         Call forward_target_remove_breakpoint.
14513         (update_current_target): Do not inherit or default to_insert_breakpoint
14514         and to_remove_breakpoint.
14515         * corelow.c (ignore): Add target_ops parameter.
14516         * exec.c (ignore): Add target_ops parameter.
14517         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14518         Add target_ops parameter.
14519         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14520         Add target_ops parameter.
14521         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14522         Add target_ops parameter.
14523         * record-full.c (record_full_beneath_to_insert_breakpoint)
14524         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14525         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14526         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14527         (record_full_core_remove_breakpoint): Add target_ops parameter.
14528         Update users.
14529         (record_full_beneath_to_insert_breakpoint_ops)
14530         (record_full_beneath_to_remove_breakpoint_ops)
14531         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14532         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14533         tmp_to_remove_breakpoint_ops,
14534         record_full_beneath_to_insert_breakpoint_ops, and
14535         record_full_beneath_to_remove_breakpoint_ops.
14536         * remote-m32r-sdi.c (m32r_insert_breakpoint)
14537         (m32r_remove_breakpoint): Add target_ops parameter.
14538         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14539         Add target_ops parameter.
14540         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14541         Add target_ops parameter.
14542
14543 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
14544             Markus Metzger  <markus.t.metzger@intel.com>
14545
14546         * record-btrace.c: Include frame-unwind.h.
14547         (record_btrace_frame_unwind_stop_reason)
14548         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14549         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14550         New.
14551         (init_record_btrace_ops): Install it.
14552
14553 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
14554
14555         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14556         get_prev_frame_1.
14557
14558 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
14559
14560         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14561         earlier.
14562
14563 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
14564
14565         * frame-unwind.c: Include target.h.
14566         (frame_unwind_try_unwinder): New function with code from ...
14567         (frame_unwind_find_by_frame): ... here.  New variable
14568         unwinder_from_target, call also target_get_unwinder)
14569         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14570         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14571         * target.h (struct target_ops): New fields to_get_unwinder and
14572         to_get_tailcall_unwinder.
14573         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14574
14575 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14576
14577         * record-btrace.c (record_btrace_fetch_registers)
14578         (record_btrace_store_registers)
14579         (record_btrace_to_prepare_to_store): New.
14580         (init_record_btrace_ops): Add the above.
14581
14582 2014-01-16  Tom Tromey  <tromey@redhat.com>
14583
14584         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14585         * target.h (struct target_ops) <to_prepare_to_store>: Add
14586         argument.
14587         (target_prepare_to_store): Add argument.
14588         * target.c (debug_to_prepare_to_store): Add argument.
14589         (update_current_target): Update.
14590         * remote.c (remote_prepare_to_store): Add 'self' argument.
14591         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14592         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14593         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14594         * record-full.c (record_full_core_prepare_to_store): Add 'self'
14595         argument.
14596         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14597         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14598         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14599         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14600         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14601
14602 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14603
14604         * btrace.h (replay) <replay>: New.
14605         (btrace_is_replaying): New.
14606         * btrace.c (btrace_clear): Free replay iterator.
14607         (btrace_is_replaying): New.
14608         * record-btrace.c (record_btrace_is_replaying): New.
14609         (record_btrace_info): Print insn number if replaying.
14610         (record_btrace_insn_history): Start at replay position.
14611         (record_btrace_call_history): Start at replay position.
14612         (init_record_btrace_ops): Init to_record_is_replaying.
14613
14614 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14615
14616         * record-btrace.c (record_btrace_insn_history_range): Include
14617         end.
14618         (record_btrace_insn_history_from): Adjust range.
14619         (record_btrace_call_history_range): Include
14620         end.
14621         (record_btrace_call_history_from): Adjust range.
14622         * NEWS: Announce changes.
14623
14624 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14625
14626         * record.h (enum record_print_flag)
14627         <record_print_indent_calls>: New.
14628         * record.c (get_call_history_modifiers): Recognize /c modifier.
14629         (_initialize_record): Document /c modifier.
14630         * record-btrace.c (btrace_call_history): Add btinfo parameter.
14631         Reorder fields.  Optionally indent the function name.  Update
14632         all users.
14633         * NEWS: Announce changes.
14634
14635 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14636
14637         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14638
14639 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14640
14641         * btrace.c (ftrace_new_function): Start counting at one.
14642         * record-btrace.c (record_btrace_info): Adjust number of calls
14643         and insns.
14644         * NEWS: Announce it.
14645
14646 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14647
14648         * record-btrace.c (btrace_call_history_insn_range): Print
14649         insn range as [begin, end].
14650
14651 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14652
14653         * btrace.h (struct btrace_func_link): New.
14654         (enum btrace_function_flag): New.
14655         (struct btrace_inst): Rename to ...
14656         (struct btrace_insn): ...this. Update all users.
14657         (struct btrace_func) <ibegin, iend>: Remove.
14658         (struct btrace_func_link): New.
14659         (struct btrace_func): Rename to ...
14660         (struct btrace_function): ...this. Update all users.
14661         (struct btrace_function) <segment, flow, up, insn, insn_offset)
14662         (number, level, flags>: New.
14663         (struct btrace_insn_iterator): Rename to ...
14664         (struct btrace_insn_history): ...this.
14665         Update all users.
14666         (struct btrace_insn_iterator, btrace_call_iterator): New.
14667         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14668         (struct btrace_target_info) <begin, end, level>
14669         <insn_history, call_history>: New.
14670         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14671         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14672         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14673         (btrace_call_number, btrace_call_begin, btrace_call_end)
14674         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14675         (btrace_find_function_by_number, btrace_set_insn_history)
14676         (btrace_set_call_history): New.
14677         * btrace.c (btrace_init_insn_iterator)
14678         (btrace_init_func_iterator, compute_itrace): Remove.
14679         (ftrace_print_function_name, ftrace_print_filename)
14680         (ftrace_skip_file): Change
14681         parameter to const.
14682         (ftrace_init_func): Remove.
14683         (ftrace_debug): Use new btrace_function fields.
14684         (ftrace_function_switched): Also consider gaining and
14685         losing symbol information).
14686         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14687         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14688         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14689         New.
14690         (ftrace_new_function): Move. Remove debug print.
14691         (ftrace_update_lines, ftrace_update_insns): New.
14692         (ftrace_update_function): Check for call, ret, and jump.
14693         (compute_ftrace): Renamed to ...
14694         (btrace_compute_ftrace): ...this. Rewritten to compute call
14695         stack.
14696         (btrace_fetch, btrace_clear): Updated.
14697         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14698         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14699         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14700         (btrace_call_number, btrace_call_begin, btrace_call_end)
14701         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14702         (btrace_find_function_by_number, btrace_set_insn_history)
14703         (btrace_set_call_history): New.
14704         * record-btrace.c (require_btrace): Use new btrace thread
14705         info fields.
14706         (record_btrace_info, btrace_insn_history)
14707         (record_btrace_insn_history, record_btrace_insn_history_range):
14708         Use new btrace thread info fields and new iterator.
14709         (btrace_func_history_src_line): Rename to ...
14710         (btrace_call_history_src_line): ...this. Use new btrace
14711         thread info fields.
14712         (btrace_func_history): Rename to ...
14713         (btrace_call_history): ...this. Use new btrace thread info
14714         fields and new iterator.
14715         (record_btrace_call_history, record_btrace_call_history_range):
14716         Use new btrace thread info fields and new iterator.
14717
14718 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14719
14720         * frame.h (frame_id_build_unavailable_stack_special): New.
14721         * frame.c (frame_id_build_unavailable_stack_special): New.
14722
14723 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14724
14725         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14726         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14727         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14728         to gdbarch.
14729         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14730         (i386_insn_is_jump, i386_jmp_p): New.
14731         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14732         insn_is_jump to gdbarch.
14733         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14734         * gdbarch.h: Regenerated.
14735         * gdbarch.c: Regenerated.
14736         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14737         (default_insn_is_jump): New.
14738         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14739         (default_insn_is_jump): New.
14740
14741 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14742
14743         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14744         Change to ...
14745         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
14746         (btrace_read_type) <btrace_read_new>: Change to ...
14747         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
14748
14749 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14750
14751         * common/linux-btrace.c (linux_read_btrace): Free trace from
14752         previous iteration.
14753
14754 2014-01-15  Doug Evans  <dje@google.com>
14755
14756         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14757         uint32_t.
14758
14759 2014-01-15  Tom Tromey  <tromey@redhat.com>
14760
14761         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14762         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14763         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14764         (set_objfile_main_name): New function.
14765         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14766         language_of_main>: New fields.
14767         (set_objfile_main_name): Declare.
14768         * symtab.c (find_main_name): Loop over objfiles to find the main
14769         name and language.
14770         (set_main_name): Now static.
14771         (get_main_info): Add comment.
14772         * symtab.h (set_main_name): Don't declare.
14773
14774 2014-01-15  Tom Tromey  <tromey@redhat.com>
14775
14776         * symtab.c (main_progspace_key): New global.
14777         (struct main_info): New.
14778         (name_of_main, language_of_main): Remove.
14779         (get_main_info, main_info_cleanup): New function.
14780         (set_main_name, main_name, main_language): Use get_main_info.
14781         (_initialize_symtab): Initialize main_progspace_key.
14782
14783 2014-01-15  Tom Tromey  <tromey@redhat.com>
14784
14785         * dbxread.c (process_one_symbol): Update.
14786         * dwarf2read.c (read_partial_die): Update.
14787         * symfile.c (set_initial_language): Call main_language.
14788         * symtab.c (language_of_main): Now static.
14789         (set_main_name): Add 'lang' parameter.
14790         (find_main_name): Update.
14791         (main_language): New function.
14792         (symtab_observer_executable_changed): Update.
14793         * symtab.h (set_main_name): Update.
14794         (language_of_main): Remove.
14795         (main_language): Declare.
14796
14797 2014-01-15  Tom Tromey  <tromey@redhat.com>
14798
14799         * symfile.c (init_entry_point_info): Use new "initialized" field.
14800         Update.
14801         * objfiles.h (struct entry_point) <initialized>: New field.
14802         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14803         (struct objfile) <ei>: ...here.  Remove.
14804         * objfiles.c (entry_point_address_query): Update.
14805
14806 2014-01-15  Tom Tromey  <tromey@redhat.com>
14807
14808         * objfiles.c (entry_point_address_query): Relocate entry point
14809         address.
14810         (objfile_relocate1): Do not relocate entry point address.
14811         * objfiles.h (struct entry_info) <entry_point>: Update comment.
14812         <the_bfd_section_index>: New field.
14813         * symfile.c (init_entry_point_info): Find the entry point's
14814         section.
14815
14816 2014-01-15  Tom Tromey  <tromey@redhat.com>
14817
14818         * solib-frv.c (enable_break): Use entry_point_address_query.
14819
14820 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14821
14822         * NEWS: Add note on improved process record-replay on
14823         arm*-linux* targets.
14824
14825 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14826
14827         * arm-tdep.c (enum arm_record_result): New enum.
14828         (arm_record_unsupported_insn): New function.
14829         (arm_record_coproc_data_proc): Removed.
14830         (thumb2_record_ld_st_multiple): New function.
14831         (thumb2_record_ld_st_dual_ex_tbb): New function.
14832         (thumb2_record_data_proc_sreg_mimm): New function.
14833         (thumb2_record_ps_dest_generic): New function.
14834         (thumb2_record_branch_misc_cntrl): New function.
14835         (thumb2_record_str_single_data): New function.
14836         (thumb2_record_ld_mem_hints): New function.
14837         (thumb2_record_ld_word): New function.
14838         (thumb2_record_lmul_lmla_div): New function.
14839         (thumb2_record_decode_insn_handler): New function.
14840         (decode_insn): Add thumb32 instruction handlers.
14841
14842 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14843
14844         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14845         (struct arm_linux_record_tdep): Declare.
14846         (arm_canonicalize_syscall): New function.
14847         (arm_all_but_pc_registers_record): New function.
14848         (arm_linux_syscall_record): New function.
14849         (arm_linux_init_abi): Add syscall recording constructs.
14850         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14851         decoding.  (arm_record_coproc_data_proc): Update arm syscall
14852         decoding.
14853         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14854         <arm_syscall_record>: New field.
14855         * configure.tgt (arm*-*-linux*): Add linux-record.o to
14856         gdb_target_obs.
14857
14858 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14859
14860         * arm-tdep.c (thumb_record_misc): Update to use sp as base
14861         register for push instruction recording.
14862
14863 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14864
14865         * arm-tdep.c (thumb_record_misc): Update to correct logical
14866         error while recording ldm, ldmia and pop instructions.
14867
14868 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14869
14870         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14871
14872 2014-01-15  Pedro Alves  <palves@redhat.com>
14873
14874         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14875         (go32_resume, go32_fetch_registers, store_register)
14876         (go32_store_registers, go32_prepare_to_store)
14877         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14878         (go32_create_inferior, go32_can_run, go32_terminal_init)
14879         (go32_terminal_inferior, go32_terminal_ours): Delete forward
14880         declarations.
14881
14882 2014-01-15  Tom Tromey  <tromey@redhat.com>
14883
14884         * target.h (async_callback_ftype): New typedef.
14885         (struct target_ops) <to_async>: Use it.
14886
14887 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
14888
14889         * python/py-value.c (get_field_type): Remove unnecessary curly
14890         braces for single-statement if block.
14891
14892 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
14893
14894         * python/py-type.c (convert_field): Add missing empty line
14895         after declarations.
14896
14897 2014-01-14  Doug Evans  <dje@google.com>
14898
14899         * symfile.h (expand_symtabs_matching): Renamed from
14900         expand_partial_symbol_names.  Update prototype.
14901         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14902         * symfile.c (expand_symtabs_matching): Renamed from
14903         expand_partial_symbol_names.  New args file_matcher, kind.
14904         Rename arg fun to symbol_matcher.
14905         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14906         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14907         ada_expand_partial_symbol_name.
14908         (ada_make_symbol_completion_list): Update to call
14909         expand_symtabs_matching.
14910         (ada_add_global_exceptions): Call expand_symtabs_matching.
14911         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14912         call map_symbol_filenames.
14913         * symtab.c (sources_info): Update to call map_symbol_filenames.
14914         (search_symbols): Call expand_symtabs_matching.
14915         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14916         (default_make_symbol_completion_list_break_on): Update to call
14917         expand_symtabs_matching.
14918         (make_source_files_completion_list): Update to call
14919         map_symbol_filenames.
14920
14921 2014-01-14  Doug Evans  <dje@google.com>
14922
14923         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
14924         (expand_symtabs_symbol_matcher_ftype): New typedef.
14925         (quick_symbol_functions.expand_symtabs_matching): Update to use.
14926         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14927         * symfile.c (expand_partial_symbol_names): Update to use
14928         expand_symtabs_symbol_matcher_ftype.
14929         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
14930         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14931         Arg name_matcher renamed to symbol_matcher.
14932         * psymtab.c (recursively_search_psymtabs): Update to use
14933         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
14934         sym_matcher.
14935         (expand_symtabs_matching_via_partial): Update to use
14936         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
14937         Arg name_matcher renamed to symbol_matcher.
14938
14939 2014-01-14  Doug Evans  <dje@google.com>
14940
14941         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
14942         (map_partial_symbol_filenames): Ditto.
14943         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
14944         (map_partial_symbol_filenames): Ditto.
14945         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
14946         (map_partial_symbol_filenames): Ditto.
14947         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
14948         (map_partial_symbol_filenames): Ditto.
14949         * symtab.c: Delete #include "psymtab.h".
14950
14951 2014-01-14  Pedro Alves  <palves@redhat.com>
14952             Tom Tromey  <tromey@redhat.com>
14953
14954         * infrun.c (use_displaced_stepping): Use find_record_target
14955         instead of RECORD_IS_USED.
14956         (adjust_pc_after_break): Use record_full_is_used instead of
14957         RECORD_IS_USED.
14958         * record-btrace.c (record_btrace_open): Call record_preopen
14959         instead of checking RECORD_IS_USED.
14960         * record-full.c (record_full_shortname)
14961         (record_full_core_shortname): New globals.
14962         (record_full_is_used): New function.
14963         (find_full_open): Call record_preopen instead of checking
14964         RECORD_IS_USED.
14965         (init_record_full_ops): Set the target's shortname to
14966         record_full_shortname.
14967         (init_record_full_core_ops): Set the target's shortname to
14968         record_full_core_shortname.
14969         * record-full.h (record_full_is_used): Declare.
14970         * record.c (find_record_target): Make extern.
14971         (record_preopen): New function.
14972         * record.h (RECORD_IS_USED): Delete macro.
14973         (find_record_target, record_preopen): Declare functions.
14974
14975 2014-01-14  Yao Qi  <yao@codesourcery.com>
14976
14977         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
14978         'len''s type to ULONGEST.
14979         (core_xfer_shared_libraries_aix): Likewise.
14980         * gdbarch.c, gdbarch.h: Regenerated.
14981         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
14982         Change type of 'len' to ULONGEST.
14983         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
14984         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
14985
14986 2014-01-14  Yao Qi  <yao@codesourcery.com>
14987
14988         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
14989         type of 'len' to ULONGEST.
14990         (linux_xfer_osdata_processgroups): Likewise.
14991         (linux_xfer_osdata_threads): Likewise.
14992         (linux_xfer_osdata_fds): Likewise.
14993         (linux_xfer_osdata_isockets): Likewise.
14994         (linux_xfer_osdata_shm): Likewise.
14995         (linux_xfer_osdata_sem): Likewise.
14996         (linux_xfer_osdata_msg): Likewise.
14997         (linux_common_xfer_osdata): Likewise.
14998         (struct osdata_type) <getter>: Likewise.
14999         * common/linux-osdata.h (linux_common_xfer_osdata): Update
15000         the declaration.
15001
15002 2014-01-14  Yao Qi  <yao@codesourcery.com>
15003
15004         * target.h (target_xfer_partial_ftype): Update.
15005         (struct target_ops) <to_xfer_partial>: Change 'len' type to
15006         ULONGEST.
15007         * aix-thread.c (aix_thread_xfer_partial): Change type of
15008         argument 'len' to ULONGEST.
15009         * auxv.c (procfs_xfer_auxv): Likewise.
15010         (ld_so_xfer_auxv): Likewise.
15011         (memory_xfer_auxv): Likewise.
15012         * bfd-target.c (target_bfd_xfer_partial): Likewise.
15013         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15014         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15015         * corelow.c (core_xfer_partial): Likewise.
15016         * ctf.c (ctf_xfer_partial): Likewise.
15017         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
15018         '%u'.
15019         (darwin_read_dyld_info): Likewise.
15020         (darwin_xfer_partial): Likewise.
15021         * exec.c (section_table_xfer_memory_partial): Likewise.
15022         (exec_xfer_partial): Likewise.
15023         * exec.h (section_table_xfer_memory_partial): Update
15024         declaration.
15025         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
15026         instead of plongest.
15027         (gnu_xfer_partial): Likewise.
15028         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15029         (ia64_hpux_xfer_solib_got): Likewise.
15030         (ia64_hpux_xfer_partial): Likewise.
15031         * ia64-linux-nat.c (ia64_linux_xfer_partial):
15032         * inf-ptrace.c (inf_ptrace_xfer_partial):
15033         * inf-ttrace.c (inf_ttrace_xfer_partial):
15034         * linux-nat.c (linux_xfer_siginfo): Likewise.
15035         (linux_nat_xfer_partial): Likewise.
15036         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15037         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15038         * monitor.c (monitor_xfer_memory): Likewise.
15039         (monitor_xfer_partial): Likewise.
15040         * procfs.c (procfs_xfer_partial): Likewise.
15041         * record-full.c (record_full_xfer_partial): Likewise.
15042         (record_full_core_xfer_partial): Likewise.
15043         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
15044         instead of plongest.
15045         (gdbsim_xfer_partial): Likewise.
15046         * remote.c (remote_xfer_partial): Likewise.
15047         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15048         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15049         declaration.
15050         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15051         (rs6000_xfer_shared_libraries): Likewise.
15052         * sol-thread.c (sol_thread_xfer_partial): Likewise.
15053         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15054         (sparc_xfer_partial): Likewise.
15055         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15056         (spu_xfer_partial): Likewise.
15057         * spu-multiarch.c (spu_xfer_partial): Likewise.
15058         * target.c (target_read_live_memory): Likewise.
15059         (memory_xfer_live_readonly_partial): Likewise.
15060         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15061         (target_xfer_partial, default_xfer_partial): Likewise.
15062         (current_xfer_partial): Likewise.
15063         * tracepoint.c (tfile_xfer_partial): Likewise.
15064         * windows-nat.c (windows_xfer_memory): Likewise.  Call
15065         pulongest instead of plongest.
15066         (windows_xfer_partial): Likewise.
15067         (windows_xfer_shared_libraries): Likewise.
15068
15069 2014-01-14  Yao Qi  <yao@codesourcery.com>
15070
15071         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15072         target_xfer_partial_ftype.
15073
15074 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
15075
15076         PR python/15464
15077         PR python/16113
15078         * valops.c (value_struct_elt_bitpos): New function
15079         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15080         object to 'None' if the field name is an empty string ("").
15081         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15082         attribute to look for a field when 'name' is 'None'.
15083         (get_field_type): New function
15084
15085 2014-01-13  Doug Evans  <dje@google.com>
15086
15087         PR symtab/16426
15088         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15089         (try_open_dwop_file): Ditto.
15090         * gdb_bfd.c: #include "vec.h".
15091         (bfdp): New typedef.
15092         (struct gdb_bfd_data): New member included_bfds.
15093         (gdb_bfd_unref): Unref all included bfds.
15094         (gdb_bfd_record_inclusion): New function.
15095         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15096
15097 2014-01-13  Tom Tromey  <tromey@redhat.com>
15098
15099         * gdbcore.h (deprecated_core_resize_section_table): Remove.
15100
15101 2014-01-13  Tom Tromey  <tromey@redhat.com>
15102
15103         * defs.h (use_windows): Remove.
15104         * gdb.c (main): Update.
15105         * main.c (captured_main, gdb_main): Update.
15106         * main.h (struct captured_main_args) <use_windows>: Remove.
15107         * top.c (use_windows): Remove.
15108
15109 2014-01-13  Tom Tromey  <tromey@redhat.com>
15110
15111         * defs.h (deprecated_flush_hook): Remove.
15112
15113 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
15114
15115         PR threads/16216
15116         * linux-thread-db.c (try_thread_db_load): Add parameter
15117         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
15118         (try_thread_db_load_from_pdir_1): Move it there from here.
15119         (try_thread_db_load_from_sdir): Update caller.
15120         (try_thread_db_load_from_dir): Move it there from here.
15121
15122 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
15123
15124         * regformats/regdat.sh: Always rewrite the register file.
15125
15126 2014-01-13  Pedro Alves  <palves@redhat.com>
15127
15128         * Makefile.in (CHECK_HEADERS): New variable.
15129         (check-headers:): New rule.
15130
15131 2014-01-13  Tom Tromey  <tromey@redhat.com>
15132
15133         * cli/cli-setshow.c (do_set_command): Update.
15134         * defs.h (deprecated_set_hook): Remove.
15135         * top.c (deprecated_set_hook): Remove.
15136
15137 2014-01-13  Pedro Alves  <palves@redhat.com>
15138
15139         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15140         the tracepoint if the PC is a pseudo-register.
15141
15142 2014-01-13  Tom Tromey  <tromey@redhat.com>
15143
15144         * defs.h (XCALLOC): Remove.
15145         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15146         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15147         * dwarf2loc.c (allocate_piece_closure): Likewise.
15148         * elfread.c (elf_symfile_segments): Likewise.
15149         (elf_symfile_segments): Likewise.
15150         * gdbtypes.c (copy_type_recursive): Likewise.
15151         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15152         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15153         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15154         XCALLOC.
15155         * mt-tdep.c (mt_gdbarch_init): Likewise.
15156         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15157         XCALLOC.
15158         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15159         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15160         * registry.c (registry_alloc_data): Likewise.
15161         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15162         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15163         * serial.c (serial_fdopen_ops): Likewise.
15164         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15165         XCALLOC.
15166         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15167         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15168         not XCALLOC.
15169
15170 2014-01-13  Tom Tromey  <tromey@redhat.com>
15171
15172         * defs.h (XMALLOC): Remove.
15173         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15174         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15175         * cli-out.c (struct ui_out *): Likewise.
15176         * cli/cli-dump.c (add_dump_command): Likewise.
15177         (add_dump_command): Likewise.
15178         * complaints.c (get_complaints): Likewise.
15179         (find_complaint): Likewise.
15180         * dwarf2-frame.c (execute_cfa_program): Likewise.
15181         * dwarf2read.c (abbrev_table_read_table): Likewise.
15182         * gdbarch.sh: Likewise.
15183         * gdbarch.c: Rebuild.
15184         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15185         * interps.c (interp_new): Likewise.
15186         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15187         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15188         * mi/mi-console.c (mi_console_file_new): Likewise.
15189         * mi/mi-interp.c (mi_interpreter_init): Likewise.
15190         * mi/mi-out.c (mi_out_new): Likewise.
15191         * mi/mi-parse.c (mi_parse): Likewise.
15192         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15193         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15194         * observer.c (xalloc_observer_list_node): Likewise.
15195         * regcache.c (regcache_xmalloc_1): Likewise.
15196         * reggroups.c (reggroup_new): Likewise.
15197         (_initialize_reggroup): Likewise.
15198         * registry.c (register_data_with_cleanup): Likewise.
15199         * remote.c (remote_notif_stop_alloc_reply): Likewise.
15200         * ser-base.c (serial_ttystate): Likewise.
15201         * ser-mingw.c (make_pipe_state): Likewise.
15202         * ser-pipe.c (pipe_open): Likewise.
15203         * serial.c (serial_open): Likewise.
15204         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15205         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15206         (tui_alloc_win_info): Likewise.
15207         (tui_add_content_elements): Likewise.
15208         * tui/tui-file.c (tui_file_new): Likewise.
15209         * tui/tui-out.c (tui_out_new): Likewise.
15210         * ui-file.c (mem_file_new): Likewise.
15211         * ui-out.c (push_level): Likewise.
15212         (make_cleanup_ui_out_end): Likewise.
15213         (append_header_to_list): Likewise.
15214         (ui_out_new): Likewise.
15215         * user-regs.c (user_reg_add_builtin): Likewise.
15216
15217 2014-01-13  Tom Tromey  <tromey@redhat.com>
15218
15219         * defs.h (XZALLOC): Remove.
15220         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15221         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15222         (get_ada_tasks_inferior_data): Likewise.
15223         * auto-load.c (get_auto_load_pspace_data): Likewise.
15224         * auxv.c (get_auxv_inferior_data): Likewise.
15225         * bfd-target.c (target_bfd_reopen): Likewise.
15226         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15227         (deprecated_insert_raw_breakpoint): Likewise.
15228         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15229         * corelow.c (core_open): Likewise.
15230         * darwin-nat.c (darwin_check_new_threads): Likewise.
15231         (darwin_attach_pid): Likewise.
15232         * dummy-frame.c (dummy_frame_push): Likewise.
15233         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15234         * dwarf2loc.c (allocate_piece_closure): Likewise.
15235         * elfread.c (elf_symfile_segments): Likewise.
15236         * eval.c (ptrmath_type_p): Likewise.
15237         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15238         * gdbtypes.c (alloc_type_arch): Likewise.
15239         (alloc_type_instance): Likewise.
15240         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15241         * inf-child.c (inf_child_can_use_agent): Likewise.
15242         * inflow.c (get_inflow_inferior_data): Likewise.
15243         * infrun.c (save_infcall_suspend_state): Likewise.
15244         * jit.c (jit_reader_load): Likewise.
15245         (get_jit_objfile_data): Likewise.
15246         (get_jit_program_space_data): Likewise.
15247         (jit_object_open_impl): Likewise.
15248         (jit_symtab_open_impl): Likewise.
15249         (jit_block_open_impl): Likewise.
15250         (jit_frame_sniffer): Likewise.
15251         * linux-fork.c (add_fork): Likewise.
15252         * maint.c (make_command_stats_cleanup): Likewise.
15253         * objfiles.c (get_objfile_pspace_data): Likewise.
15254         * opencl-lang.c (struct lval_closure): Likewise.
15255         * osdata.c (osdata_start_osdata): Likewise.
15256         * progspace.c (new_address_space): Likewise.
15257         (add_program_space): Likewise.
15258         * remote-sim.c (get_sim_inferior_data): Likewise.
15259         * sh-tdep.c (sh_gdbarch_init): Likewise.
15260         * skip.c (Ignore): Likewise.
15261         (skip_delete_command): Likewise.
15262         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15263         (library_list_start_library): Likewise.
15264         (solib_aix_current_sos): Likewise.
15265         * solib-darwin.c (get_darwin_info): Likewise.
15266         (darwin_current_sos): Likewise.
15267         * solib-dsbt.c (get_dsbt_info): Likewise.
15268         * solib-ia64-hpux.c (new_so_list): Likewise.
15269         (ia64_hpux_get_solib_linkage_addr): Likewise.
15270         * solib-spu.c (append_ocl_sos): Likewise.
15271         (spu_current_sos): Likewise.
15272         * solib-svr4.c (get_svr4_info): Likewise.
15273         (svr4_keep_data_in_core): Likewise.
15274         (library_list_start_library): Likewise.
15275         (svr4_default_sos): Likewise.
15276         (svr4_read_so_list): Likewise.
15277         * solib-target.c (library_list_start_library): Likewise.
15278         (solib_target_current_sos): Likewise.
15279         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15280         * symfile-debug.c (install_symfile_debug_logging): Likewise.
15281         * symfile.c (default_symfile_segments): Likewise.
15282         * target-descriptions.c (tdesc_data_init): Likewise.
15283         (tdesc_create_reg): Likewise.
15284         (struct tdesc_type *): Likewise.
15285         (tdesc_create_vector): Likewise.
15286         (tdesc_set_struct_size): Likewise.
15287         (struct tdesc_type *): Likewise.
15288         (tdesc_free_feature): Likewise.
15289         (tdesc_create_feature): Likewise.
15290         * windows-nat.c (windows_add_thread): Likewise.
15291         (windows_make_so): Likewise.
15292         * xml-support.c (gdb_xml_body_text): Likewise.
15293         (gdb_xml_create_parser_and_cleanup): Likewise.
15294         (xml_process_xincludes): Likewise.
15295         * xml-syscall.c (allocate_syscalls_info): Likewise.
15296         (syscall_create_syscall_desc): Likewise.
15297
15298 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
15299
15300         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15301         function, with code from i386_stap_parse_special_token.
15302         (i386_stap_parse_special_token_three_arg_disp): Likewise.
15303         (i386_stap_parse_special_token): Move code to the two functions
15304         above; simplify it.
15305
15306 2014-01-09  Pedro Alves  <palves@redhat.com>
15307             Hui Zhu  <hui@codesourcery.com>
15308
15309         PR gdb/16101
15310         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15311         bp_err_string.  Don't mark the location shlib_disabled if the
15312         error thrown wasn't a generic or memory error.  Catch errors
15313         thrown while inserting breakpoints in overlayed code.  Output
15314         error message of software breakpoints.
15315         * remote.c (remote_insert_breakpoint): If this breakpoint has
15316         target-side commands but this stub doesn't support Z0 packets,
15317         throw NOT_SUPPORTED_ERROR error.
15318         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15319         * target.h (target_insert_breakpoint): Extend comment.
15320         (target_insert_hw_breakpoint): Add comment.
15321
15322 2014-01-08  Pedro Alves  <palves@redhat.com>
15323
15324         * remote.c (remote_add_thread): Add threads silently if starting
15325         up.
15326         (remote_notice_new_inferior): If in all-stop, and starting up,
15327         don't call notice_new_inferior.
15328         (get_current_thread): New function, factored out from ...
15329         (add_current_inferior_and_thread): ... this.  Adjust.
15330         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
15331         found any thread, then select the remote's current thread as GDB's
15332         current thread too.
15333
15334 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
15335
15336         * NEWS: Create a new section for the next release branch.
15337         Rename the section of the current branch, now that it has
15338         been cut.
15339
15340 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
15341
15342         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15343         * version.in: Bump version to 7.7.50.DATE-cvs.
15344
15345 2014-01-08  Yao Qi  <yao@codesourcery.com>
15346
15347         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15348         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
15349         (spu_xfer_partial): Cast 'buf' to 'const char *'.
15350
15351 2014-01-08  Yao Qi  <yao@codesourcery.com>
15352
15353         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15354         return value of bfd_get_filename to symbol_file_add_from_bfd.
15355
15356 2014-01-08  Pierre Muller  <muller@sourceware.org>
15357
15358         Fix PR16201.
15359         * coff-pe-read.c (struct read_pe_section_data): Add index field.
15360         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15361         to prim_record_mininal_symbol_and_info.
15362         (add_pe_forwarded_sym): Use known section number of forwarded symbol
15363         in call to prim_record_minimal_symbol_and_info.
15364         (read_pe_exported_syms): Set index field of section_data.
15365
15366 2014-01-07  Andrew Pinski  <apinski@cavium.com>
15367
15368         * features/aarch64-core.xml (cpsr): Change to be 64bit.
15369         * features/aarch64.c: Regenerate.
15370
15371 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
15372
15373         * target.c (return_null): Define.
15374         (update_current_target): Use it instead of return_zero for
15375         functions that return a pointer.
15376
15377 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
15378
15379         * source.c (add_path): Fix check for duplicated paths in the previously
15380         included paths.
15381
15382 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
15383
15384         * ada-lang.c: Remove duplicated include statements.
15385         * alphabsd-nat.c: Ditto.
15386         * amd64-darwin-tdep.c: Ditto.
15387         * amd64fbsd-nat.c: Ditto.
15388         * auto-load.c: Ditto.
15389         * ax-gdb.c: Ditto.
15390         * breakpoint.c: Ditto.
15391         * dbxread.c: Ditto.
15392         * fork-child.c: Ditto.
15393         * gdb_usleep.c: Ditto.
15394         * i386-darwin-tdep.c: Ditto.
15395         * i386fbsd-nat.c: Ditto.
15396         * infcmd.c: Ditto.
15397         * inferior.c: Ditto.
15398         * jv-lang.c: Ditto.
15399         * linux-nat.c: Ditto.
15400         * linux-tdep.c: Ditto.
15401         * m68kbsd-nat.c: Ditto.
15402         * m68klinux-nat.c: Ditto.
15403         * microblaze-tdep.c: Ditto.
15404         * mips-linux-tdep.c: Ditto.
15405         * mn10300-tdep.c: Ditto.
15406         * nto-tdep.c: Ditto.
15407         * opencl-lang.c: Ditto.
15408         * osdata.c: Ditto.
15409         * printcmd.c: Ditto.
15410         * regcache.c: Ditto.
15411         * remote-m32r-sdi.c: Ditto.
15412         * remote.c: Ditto.
15413         * symfile.c: Ditto.
15414         * symtab.c: Ditto.
15415         * tilegx-linux-nat.c: Ditto.
15416         * tilegx-tdep.c: Ditto.
15417         * tracepoint.c: Ditto.
15418         * valops.c: Ditto.
15419         * vaxbsd-nat.c: Ditto.
15420         * windows-nat.c: Ditto.
15421         * xtensa-tdep.c: Ditto.
15422
15423 2014-01-07  Yao Qi  <yao@codesourcery.com>
15424
15425         * spu-linux-nat.c (_initialize_spu_nat): Declare.
15426
15427 2014-01-07  Yao Qi  <yao@codesourcery.com>
15428             Joel Brobecker  <brobecker@adacore.com>
15429
15430         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15431         (pdc_write_regs): Likewise.
15432         (fetch_regs_kernel_thread): Likewise.
15433         (store_regs_kernel_thread): Likewise.
15434
15435 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15436
15437         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15438         tagged type objects to their actual type.
15439
15440 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15441
15442         * ada-valprint.c (print_field_values): Add "language" parameter.
15443         Update calls to print_field_values and print_variant_part.
15444         Pass new parameter "language" in call to val_print instead
15445         of "current_language".  Replace call to ada_val_print by call
15446         to val_print.
15447         (print_variant_part): Add "language" parameter.
15448         (ada_val_print_struct_union): Update call to print_field_values.
15449
15450 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15451
15452         * ada-valprint.c (ui_memcpy): Delete.
15453         (ada_print_floating): Update documentation.  Add empty line
15454         between between function documentation and implementation.
15455         Delete variable "buffer".  Use ui_file_xstrdup in place of
15456         ui_file_put.  Minor adjustments following this change.
15457
15458 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15459
15460         * ada-valprint.c (ada_val_print_string): New function,
15461         extracted from ada_val_print_array.
15462         (ada_val_print_array): Replace extracted code by call
15463         to ada_val_print_string followed by a return.  Move
15464         "else" branch to the function's top block.
15465
15466 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15467
15468         * ada-valprint.c (ada_val_print_array): Move implementation
15469         down.  Rename parameter "offset" and "val" into "offset_aligned"
15470         and "original_value" respectively.  Add parameter "offset".
15471
15472 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15473
15474         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15475         re-organizing the code. Change the "???" message printed
15476         when target type is a TYPE_CODE_UNDEF into
15477         "<ref to undefined type>".
15478
15479 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15480
15481         * ada-valprint.c (print_record): Delete, implementation inlined...
15482         (ada_val_print_struct_union): ... here.  Remove call to
15483         ada_check_typedef in inlined implementation.
15484
15485 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15486
15487         * ada-valprint.c (ada_val_print_gnat_array): New function,
15488         extracted from ada_val_print_1;
15489         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15490         (ada_val_print_flt, ada_val_print_struct_union)
15491         (ada_val_print_ref): Likewise.
15492         (ada_val_print_1): Delete variables i and elttype.
15493         Replace extracted-out code by call to corresponding
15494         new functions.
15495
15496 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15497
15498         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15499
15500 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15501
15502         * ada-valprint.c (ada_val_print_1): Replace calls to
15503         ada_val_print_1 by calls to val_print.
15504
15505 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15506
15507         * ada-valprint.c (ada_val_print_1): Add parameter "language".
15508         Update calls to self accordingly.  Replace calls to c_val_print
15509         by calls to val_print.
15510
15511 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15512
15513         * ada-valprint.c (print_record): Delete declaration.
15514         (adjust_type_signedness, ada_val_print_1): Likewise.
15515         (ada_val_print): Move function implementation down.
15516         (print_variant_part, print_field_values, print_record):
15517         Move function implementation up.
15518
15519 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15520
15521         * python/py-type.c (typy_get_name): New function.
15522         (type_object_getset): Add entry for attribute "name".
15523         * NEWS: Add entry mentioning this new attribute.
15524
15525 2014-01-07  Yao Qi  <yao@codesourcery.com>
15526
15527         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15528         statement.
15529
15530 2014-01-07  Yao Qi  <yao@codesourcery.com>
15531
15532         * gnu-nat.c (info_port_rights): Add qualifier const to
15533         argument args.
15534
15535 2014-01-07  Yao Qi  <yao@codesourcery.com>
15536
15537         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15538
15539 2014-01-07  Yao Qi  <yao@codesourcery.com>
15540
15541         * gnu-nat.c (make_inf) Update declaration.
15542         (make_inf): Make it static.
15543         (inf_set_traced): Likewise.
15544         (inf_port_to_thread, inf_task_died_status): Likewise.
15545
15546 2014-01-07  Yao Qi  <yao@codesourcery.com>
15547
15548         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15549
15550 2014-01-07  Yao Qi  <yao@codesourcery.com>
15551
15552         * gnu-nat.c (_initialize_gnu_nat): Declare.
15553
15554 2014-01-07  Yao Qi  <yao@codesourcery.com>
15555
15556         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15557         'enum bfd_endian'.
15558         (struct gdbarch_info) <byte_order>: Change type to
15559         'enum bfd_endian'.
15560         <byte_order_for_code>: Likewise.
15561         * gdbarch.c, gdbarch.h: Regenerated.
15562
15563 2014-01-06  Sasha Smundak  <asmundak@google.com>
15564
15565         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15566
15567 2014-01-06  Tom Tromey  <tromey@redhat.com>
15568
15569         * doublest.c (convert_doublest_to_floatformat): Use const, not
15570         CONST.
15571         * somread.c (som_symtab_read): Likewise.
15572
15573 2014-01-07  Hui Zhu  <hui@codesourcery.com>
15574
15575         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15576         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15577         (gdb_bfd_fopen): Ditto.
15578         (gdb_bfd_openr): Ditto.
15579         (gdb_bfd_openw): Ditto.
15580         (gdb_bfd_openr_iovec): Ditto.
15581         (gdb_bfd_fdopenr): Ditto.
15582         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15583         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15584         with xstrdup.
15585         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15586         with xstrdup.
15587         * symfile-mem.c (symbol_file_add_from_memory): Removed
15588         gdb_bfd_stash_filename.
15589
15590 2014-01-03  Doug Evans  <dje@google.com>
15591
15592         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15593         output.
15594
15595 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
15596
15597         Update year range in copyright notice of all files.
15598
15599 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
15600
15601         * top.c (print_gdb_version): Set copyright year to 2014.
15602
15603 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
15604
15605         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15606
15607 For older changes see ChangeLog-2013.
15608 \f
15609 Local Variables:
15610 mode: change-log
15611 left-margin: 8
15612 fill-column: 74
15613 version-control: never
15614 coding: utf-8
15615 End: