S390: Fix 'expedite' for s390-te-linux64
[external/binutils.git] / gdb / ChangeLog
1 2014-12-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2
3         * features/Makefile (s390-te-linux64-expedite): Replace
4         non-existant r14 and r15 by r14l and r15l, respectively.
5         * regformats/s390-te-linux64.dat: Regenerate.
6
7 2014-12-01  Simon Marchi  <simon.marchi@ericsson.com>
8
9         * objfiles.c (allocate_objfile): Remove duplicate comment.
10
11 2014-12-01  Ulrich Weigand  <uweigand@de.ibm.com>
12
13         * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
14         * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
15         (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
16         (supply_gregset, supply_fpregset): Remove.
17         * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
18         (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
19         and sizeof_gregset.
20
21 2014-11-30  Jan Kratochvil  <jan.kratochvil@redhat.com>
22
23         Add add-auto-load-scripts-directory.
24         * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
25         * auto-load.c (add_auto_load_dir): New function.
26         (_initialize_auto_load): Install it.
27
28 2014-11-30  Martin Galvan  <martin.galvan@tallertechnologies.com>  (tiny patch, obvious)
29
30         Pushed by Joel Brobecker  <brobecker@adacore.com>.
31         * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
32
33 2014-11-29  Siva Chandra Reddy  <sivachandra@google.com>
34
35         * eval.c (evaluate_subexp): Check that the thread stack temporaries
36         are not already enabled before enabling them.
37
38 2014-11-29  Yao Qi  <yao@codesourcery.com>
39
40         * arm-tdep.c (arm_analyze_prologue): Move local variables
41         'framereg' and 'framesize' to inner block.  Move code to
42         inner block too.
43
44 2014-11-28  Siva Chandra Reddy  <sivachandra@google.com>
45
46         * eval.c: Include gdbthread.h.
47         (evaluate_subexp): Enable thread stack temporaries before
48         evaluating a complete expression and clean them up after the
49         evaluation is complete.
50         * gdbthread.h: Include common/vec.h.
51         (value_ptr): New typedef.
52         (VEC (value_ptr)): New vector type.
53         (value_vec): New typedef.
54         (struct thread_info): Add new fields stack_temporaries_enabled
55         and stack_temporaries.
56         (enable_thread_stack_temporaries)
57         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
58         (get_last_thread_stack_temporary)
59         (value_in_thread_stack_temporaries): Declare.
60         * gdbtypes.c (class_or_union_p): New function.
61         * gdbtypes.h (class_or_union_p): Declare.
62         * infcall.c (call_function_by_hand): Store return values of class
63         type as temporaries on stack.
64         * thread.c (enable_thread_stack_temporaries): New function.
65         (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
66         (get_last_thread_stack_temporary): Likewise.
67         (value_in_thread_stack_temporaries): Likewise.
68         * value.c (value_force_lval): New function.
69         * value.h (value_force_lval): Declare.
70
71 2014-11-28  Pierre Muller  <muller@sourceware.org>
72
73         Pushed by Joel Brobecker  <brobecker@adacore.com>.
74         * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
75         registers.
76
77 2014-11-28  Ulrich Weigand  <uweigand@de.ibm.com>
78
79         * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
80         * config/sparc/linux.mh (NATDEPFILES): Likewise.
81         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
82         * m68klinux-nat.c (fetch_core_registers): Remove.
83         (linux_elf_core_fns): Remove.
84         (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
85
86 2014-11-28  Joel Brobecker  <brobecker@adacore.com>
87
88         * utils.c (gdb_realpath): Rework comment about handling on
89         Windows.
90
91 2014-11-28  Yao Qi  <yao@codesourcery.com>
92
93         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
94         rename.
95         * gnulib/aclocal.m4: Re-generated.
96         * gnulib/config.in: Re-generated.
97         * gnulib/configure: Re-generated.
98         * gnulib/import/Makefile.am: Re-generated.
99         * gnulib/import/Makefile.in: Re-generated.
100         * gnulib/import/m4/gnulib-cache.m4: Re-generated.
101         * gnulib/import/m4/gnulib-comp.m4: Re-generated.
102         * import/basename-lgpl.c: New file.
103         * import/dirname-lgpl.c: New file.
104         * import/dirname.h: New file.
105         * import/m4/dirname.m4: New file.
106         * import/m4/malloc.m4: New file.
107         * import/m4/rename.m4: New file.
108         * import/m4/rmdir.m4: New file.
109         * import/m4/stdio_h.m4: New file.
110         * import/malloc.c: New file.
111         * import/rename.c: New file.
112         * import/rmdir.c: New file.
113         * import/same-inode.h: New file.
114         * import/stdio.c: New file.
115         * import/stdio.in.h: New file.
116         * import/stripslash.c: New file.
117
118 2014-11-28  Yao Qi  <yao@codesourcery.com>
119
120         * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
121         and realpath.
122         * config.in: Re-generated.
123         * configure: Re-generated.
124         * utils.c (gdb_realpath): Remove code calling realpath,
125         canonicalize_file_name and pathconf.
126         [!_WIN32]: Call canonicalize_file_name.
127
128 2014-11-28  Yao Qi  <yao@codesourcery.com>
129
130         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
131         canonicalize-lgpl.
132         * aclocal.m4: Re-generated.
133         * config.in: Re-generated.
134         * configure: Re-generated.
135         * import/Makefile.am: Re-generated.
136         * import/Makefile.in: Re-generated.
137         * import/m4/gnulib-cache.m4: Re-generated.
138         * import/m4/gnulib-comp.m4: Re-generated.
139         * import/canonicalize-lgpl.c: New file.
140         * import/extra/snippet/_Noreturn.h: New file.
141         * import/m4/canonicalize.m4: New file.
142         * import/m4/double-slash-root.m4: New file.
143         * import/m4/eealloc.m4: New file.
144         * import/m4/malloca.m4: New file.
145         * import/m4/nocrash.m4: New file.
146         * import/m4/stdlib_h.m4: New file.
147         * import/malloca.c: New file.
148         * import/malloca.h: New file.
149         * import/malloca.valgrind: New file.
150
151 2014-11-28  Yao Qi  <yao@codesourcery.com>
152
153         * configure.ac (AC_CHECK_FUNCS): Remove lstat.
154         * config.in, configure: Regenerate.
155         * symfile.c (find_separate_debug_file_by_debuglink): Remove
156         code checking HAVE_LSTAT is defined.
157
158 2014-11-28  Yao Qi  <yao@codesourcery.com>
159
160         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
161         lstat.
162         * gnulib/aclocal.m4: Re-generated.
163         * gnulib/config.in: Re-generated.
164         * gnulib/configure: Re-generated.
165         * gnulib/import/Makefile.am: Re-generated.
166         * gnulib/import/Makefile.in: Re-generated.
167         * gnulib/import/m4/gnulib-cache.m4: Re-generated.
168         * gnulib/import/m4/gnulib-comp.m4: Re-generated.
169         * gnulib/import/lstat.c: New file.
170         * gnulib/import/m4/lstat.m4: New file.
171
172 2014-11-28  Yao Qi  <yao@codesourcery.com>
173
174         * configure.ac (AC_CHECK_FUNCS): Remove readlink.
175         * config.in, configure: Re-generate.
176         * inf-child.c (inf_child_fileio_readlink): Don't check
177         HAVE_READLINK is defined.
178
179 2014-11-28  Yao Qi  <yao@codesourcery.com>
180
181         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
182         * gnulib/aclocal.m4: Re-generated.
183         * gnulib/config.in: Likewise.
184         * gnulib/configure: Likewise.
185         * gnulib/import/Makefile.am: Likewise.
186         * gnulib/import/Makefile.in: Likewise.
187         * gnulib/import/m4/gnulib-cache.m4: Likewise.
188         * gnulib/import/m4/gnulib-comp.m4: Likewise.
189         * gnulib/import/dosname.h: New file
190         * gnulib/import/m4/largefile.m4: New file.
191         * gnulib/import/m4/readlink.m4: New file.
192         * gnulib/import/m4/stat.m4: New file.
193         * gnulib/import/readlink.c: New file.
194         * gnulib/import/stat.c: New file.
195
196 2014-11-26  Mark Wielaard  <mjw@redhat.com>
197
198         * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
199         DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
200
201 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
202
203         * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
204         that there can be only one stack adjustment in the prologue
205         with tests to detect specific disallowed stack adjustments.
206
207 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
208
209         * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
210         adjustments.
211
212 2014-11-25  Sandra Loosemore  <sandra@codesourcery.com>
213
214         * nios2-tdep.c (nios2_fetch_insn): Move up in file.  Disassemble
215         the instruction as well as reading it from memory.
216         (nios2_match_add): New.
217         (nios2_match_sub): New.
218         (nios2_match_addi): New.
219         (nios2_match_orhi): New.
220         (nios2_match_stw): New.
221         (nios2_match_ldw): New.
222         (nios2_match_rdctl): New.
223         (enum branch_condition): New.
224         (nios2_match_branch): New.
225         (nios2_match_jmpi): New.
226         (nios2_match_calli): New.
227         (nios2_match_jmpr): New.
228         (nios2_match_callr): New.
229         (nios2_match_break): New.
230         (nios2_match_trap): New.
231         (nios2_in_epilogue_p): Rewrite to use new functions.
232         (nios2_analyze_prologue): Likewise.
233         (nios2_skip_prologue): Delete unused local limit_pc.
234         (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
235         (nios2_get_next_pc): Rewrite to use new functions.
236
237 2014-11-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
238
239         * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
240
241 2014-11-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
242
243         Pushed by Joel Brobecker  <brobecker@adacore.com>
244         * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
245         elements pi_len by the size of the elements before calling
246         vm_deallocate.
247         (inf_validate_task_sc): Likewise, and properly deallocate the
248         noise array.
249
250 2014-11-23  Doug Evans  <xdje42@gmail.com>
251
252         * gdbtypes.c (print_args): Renamed from print_arg_types.  Print arg
253         number and name if present.  All callers updated.
254         (dump_fn_fieldlists): Fix indentation of args.
255
256 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
257
258         * MAINTAINERS (Write After Approval): Add myself.
259
260 2014-11-23  Joel Brobecker  <brobecker@adacore.com>
261
262         * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
263         to a bp_call_dummy breakpoint type.
264
265 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
266
267         * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
268         registering the signal handler.
269
270 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
271
272         * event-top.h (call_stdin_event_handler_again_p): Declare.
273         * event-top.c (call_stdin_event_handler_again_p): Define.
274         (stdin_event_handler): Use it.
275         * tui/tui-io.c (tui_getc): Prepare to call the stdin event
276         handler again if there is pending input following a
277         start sequence.
278
279 2014-11-23  Patrick Palka  <patrick@parcs.ath.cx>
280
281         Pushed by Joel Brobecker  <brobecker@adacore.com>
282         * linux-fork.c (checkpoint_command): Print index of new
283         checkpoint in response message.
284
285 2014-11-23  Yao Qi  <yao@codesourcery.com>
286
287         * valprint.c (read_string): Move local variables 'found_nul',
288         'chunksize' and 'limit' to inner scope.  Update comments.
289
290 2014-11-22  Doug Evans  <xdje42@gmail.com>
291
292         * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
293         function comment.
294         (search_symbols): Fix comments and whitespace.
295
296 2014-11-22  Doug Evans  <xdje42@gmail.com>
297
298         * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
299
300 2014-11-21  Doug Evans  <dje@google.com>
301
302         * psymtab.c (psymtab_search_name): Fix whitespace.
303
304 2014-11-21  Yao Qi  <yao@codesourcery.com>
305
306         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
307         errno.
308         * gnulib/import/Makefile.am: Re-generated.
309         * gnulib/import/Makefile.in: Likewise.
310         * gnulib/import/m4/gnulib-cache.m4: Likewise.
311
312 2014-11-21  Yao Qi  <yao@codesourcery.com>
313
314         * gdb_wchar.h: Include wchar.h and wctype.h.
315         [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
316         include wchar.h and wctype.h.
317         Don't check HAVE_WCHAR_H.
318
319 2014-11-21  Yao Qi  <yao@codesourcery.com>
320
321         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
322         and wctype-h.
323         * gnulib/import/Makefile.am: Re-generated.
324         * gnulib/import/Makefile.in: Likewise.
325         * gnulib/import/m4/gnulib-cache.m4: Likewise.
326
327 2014-11-21  Yao Qi  <yao@codesourcery.com>
328
329         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
330         memchr.
331         * gnulib/import/Makefile.am: Re-generated.
332         * gnulib/import/Makefile.in: Likewise.
333         * gnulib/import/m4/gnulib-cache.m4: Likewise.
334
335 2014-11-21  Yao Qi  <yao@codesourcery.com>
336
337         * common/common-defs.h: Include alloca.h
338         * configure.ac: Don't invoke AC_FUNC_ALLOCA.
339         * configure: Re-generated.
340         * defs.h: Remove code handling alloca.
341         * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
342         or not.
343
344 2014-11-21  Yao Qi  <yao@codesourcery.com>
345
346         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
347         alloca.
348         * gnulib/import/Makefile.am: Re-generated.
349         * gnulib/import/Makefile.in: Likewise..
350         * gnulib/import/m4/gnulib-cache.m4: Likewise.
351
352 2014-11-21  Yao Qi  <yao@codesourcery.com>
353
354         * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
355         alphabetical order.
356
357 2014-11-21  Joel Brobecker  <brobecker@adacore.com>
358
359         * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
360         flag_unsigned if HIGH_BOUND is constant and negative.
361
362 2014-11-20  Sergio Durigan Junior  <sergiodj@redhat.com>
363
364         PR breakpoints/10737
365         * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
366         modifier from "struct gdbarch" when compiling without Expat (XML)
367         support.
368         (get_syscall_by_number): Likewise.
369         (get_syscall_by_name): Likewise.
370         (get_syscall_names): Likewise.
371
372 2014-11-20  Sergio Durigan Junior  <sergiodj@redhat.com>
373
374         PR breakpoints/10737
375         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
376         set_xml_syscall_file_name to provide gdbarch.
377         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
378         * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
379         * breakpoint.c (print_it_catch_syscall): Adjust call to
380         get_syscall_by_number to provide gdbarch.
381         (print_one_catch_syscall): Likewise.
382         (print_mention_catch_syscall): Likewise.
383         (print_recreate_catch_syscall): Likewise.
384         (catch_syscall_split_args): Adjust calls to get_syscall_by_number
385         and get_syscall_by_name to provide gdbarch.
386         (catch_syscall_completer): Adjust call to get_syscall_names to
387         provide gdbarch.
388         * gdbarch.c: Regenerate.
389         * gdbarch.h: Likewise.
390         * gdbarch.sh: Forward declare "struct syscalls_info".
391         (xml_syscall_file): New variable.
392         (syscalls_info): Likewise.
393         * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
394         set_xml_syscall_file_name to provide gdbarch.
395         * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
396         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
397         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
398         * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
399         * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
400         * xml-syscall.c: Include gdbarch.h.
401         (set_xml_syscall_file_name): Accept gdbarch parameter.
402         (get_syscall_by_number): Likewise.
403         (get_syscall_by_name): Likewise.
404         (get_syscall_names): Likewise.
405         (my_gdb_datadir): Delete global variable.
406         (struct syscalls_info) <my_gdb_datadir>: New variable.
407         (struct syscalls_info) <sysinfo>: Rename variable to
408         "syscalls_info".
409         (sysinfo): Delete global variable.
410         (have_initialized_sysinfo): Likewise.
411         (xml_syscall_file): Likewise.
412         (sysinfo_free_syscalls_desc): Rename to...
413         (syscalls_info_free_syscalls_desc): ... this.
414         (free_syscalls_info): Rename "sysinfo" to "syscalls_info".  Adjust
415         code to the new layout of "struct syscalls_info".
416         (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
417         "syscalls_info".
418         (syscall_create_syscall_desc): Likewise.
419         (syscall_start_syscall): Likewise.
420         (syscall_parse_xml): Likewise.
421         (xml_init_syscalls_info): Likewise.  Drop "const" from return value.
422         (init_sysinfo): Rename to...
423         (init_syscalls_info): ...this.  Add gdbarch as a parameter.
424         Adjust function to deal with gdbarch.
425         (xml_get_syscall_number): Delete parameter sysinfo.  Accept
426         gdbarch as a parameter.  Adjust code.
427         (xml_get_syscall_name): Likewise.
428         (xml_list_of_syscalls): Likewise.
429         (set_xml_syscall_file_name): Accept gdbarch as parameter.
430         (get_syscall_by_number): Likewise.
431         (get_syscall_by_name): Likewise.
432         (get_syscall_names): Likewise.
433         * xml-syscall.h (set_xml_syscall_file_name): Likewise.
434         (get_syscall_by_number): Likewise.
435         (get_syscall_by_name): Likewise.
436         (get_syscall_names): Likewise.
437
438 2014-11-20  Doug Evans  <xdje42@gmail.com>
439
440         Split struct symtab into two: struct symtab and compunit_symtab.
441         * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
442         * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
443         to "struct compunit_symtab *".  All callers updated.
444         (set_block_compunit_symtab): Renamed from set_block_symtab.  Change
445         "struct symtab *" argument to "struct compunit_symtab *".
446         All callers updated.
447         (get_block_compunit_symtab): Renamed from get_block_symtab.  Change
448         result to "struct compunit_symtab *".  All callers updated.
449         (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
450         Change result to "struct compunit_symtab *".  All callers updated.
451         * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
452         hange type to "struct compunit_symtab *".  All uses updated.
453         (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
454         Change type to "struct compunit_symtab *".  All uses updated.
455         * buildsym.c (struct buildsym_compunit): New struct.
456         (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
457         (buildsym_compunit): New static global.
458         (finish_block_internal): Update to fetch objfile from
459         buildsym_compunit.
460         (make_blockvector): Delete objfile argument.
461         (start_subfile): Rewrite to use buildsym_compunit.  Don't initialize
462         debugformat, producer.
463         (start_buildsym_compunit): New function.
464         (free_buildsym_compunit): Renamed from free_subfiles_list.
465         All callers updated.
466         (patch_subfile_names): Rewrite to use buildsym_compunit.
467         (get_compunit_symtab): New function.
468         (get_macro_table): Delete argument comp_dir.  All callers updated.
469         (start_symtab): Change result to "struct compunit_symtab *".
470         All callers updated.  Create the subfile of the main source file.
471         (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
472         (reset_symtab_globals): Update.
473         (end_symtab_get_static_block): Update to use buildsym_compunit.
474         (end_symtab_without_blockvector): Rewrite.
475         (end_symtab_with_blockvector): Change result to
476         "struct compunit_symtab *".  All callers updated.
477         Update to use buildsym_compunit.  Don't set symtab->dirname,
478         instead set it in the compunit.
479         Explicitly make sure main symtab is first in its list.
480         Set debugformat, producer, blockvector, block_line_section, and
481         macrotable in the compunit.
482         (end_symtab_from_static_block): Change result to
483         "struct compunit_symtab *".  All callers updated.
484         (end_symtab, end_expandable_symtab): Ditto.
485         (set_missing_symtab): Change symtab argument to
486         "struct compunit_symtab *".  All callers updated.
487         (augment_type_symtab): Ditto.
488         (record_debugformat): Update to use buildsym_compunit.
489         (record_producer): Update to use buildsym_compunit.
490         * buildsym.h (struct subfile) <dirname>: Delete.
491         <producer, debugformat>: Delete.
492         <buildsym_compunit>: New member.
493         (get_compunit_symtab): Declare.
494         * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
495         from primary_symtab.  Change type to "struct compunit_symtab *".
496         All uses updated.
497         (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
498         All callers updated.
499         (dwarf_decode_macros): Delete comp_dir argument.  All callers updated.
500         (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
501         symtab.  Change type to "struct compunit_symtab *".  All uses updated.
502         (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
503         All callers updated.
504         (dw2_find_last_source_symtab): Ditto.
505         (dw2_lookup_symbol): Ditto.
506         (recursively_find_pc_sect_compunit_symtab): Renamed from
507         recursively_find_pc_sect_symtab.  Change result to
508         "struct compunit_symtab *".  All callers updated.
509         (dw2_find_pc_sect_compunit_symtab): Renamed from
510         dw2_find_pc_sect_symtab.  Change result to
511         "struct compunit_symtab *".  All callers updated.
512         (get_compunit_symtab): Renamed from get_symtab.  Change result to
513         "struct compunit_symtab *".  All callers updated.
514         (recursively_compute_inclusions): Change type of immediate_parent
515         argument to "struct compunit_symtab *".  All callers updated.
516         (compute_compunit_symtab_includes): Renamed from
517         compute_symtab_includes.  All callers updated.  Rewrite to compute
518         includes of compunit_symtabs and not symtabs.
519         (process_full_comp_unit): Update to work with struct compunit_symtab.
520         (process_full_type_unit): Ditto.
521         (dwarf_decode_lines_1): Delete argument comp_dir.  All callers updated.
522         (dwarf_decode_lines): Remove special case handling of main subfile.
523         (macro_start_file): Delete argument comp_dir.  All callers updated.
524         (dwarf_decode_macro_bytes): Ditto.
525         * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
526         use struct compunit_symtab.
527         * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
528         * jit.c (finalize_symtab): Build compunit_symtab.
529         * jv-lang.c (get_java_class_symtab): Change result to
530         "struct compunit_symtab *".  All callers updated.
531         * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
532         * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
533         comp_dir.  Change type to "struct compunit_symtab *".
534         All uses updated.
535         (new_macro_table): Change comp_dir argument to cust,
536         "struct compunit_symtab *".  All callers updated.
537         * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
538         nr_primary_symtabs.  All uses updated.
539         (count_symtabs_and_blocks): Update to handle compunits.
540         (report_command_stats): Update output, "primary symtabs" renamed to
541         "compunits".
542         * mdebugread.c (new_symtab): Change result to
543         "struct compunit_symtab *".  All callers updated.
544         (parse_procedure): Change type of search_symtab argument to
545         "struct compunit_symtab *".  All callers updated.
546         * objfiles.c (objfile_relocate1): Loop over blockvectors in a
547         separate loop.
548         * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
549         symtabs.  Change type to "struct compunit_symtab *".  All uses updated.
550         (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
551         All uses updated.
552         (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
553         All uses updated.
554         (ALL_FILETABS): Renamed from ALL_SYMTABS.  All uses updated.
555         (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS.  All uses updated.
556         * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
557         symtab.  Change type to "struct compunit_symtab *".  All uses updated.
558         * psymtab.c (psymtab_to_symtab): Change result type to
559         "struct compunit_symtab *".  All callers updated.
560         (find_pc_sect_compunit_symtab_from_partial): Renamed from
561         find_pc_sect_symtab_from_partial.  Change result type to
562         "struct compunit_symtab *".  All callers updated.
563         (lookup_symbol_aux_psymtabs): Change result type to
564         "struct compunit_symtab *".  All callers updated.
565         (find_last_source_symtab_from_partial): Ditto.
566         * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
567         * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
568         and macro_table from compunit.
569         * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
570         type to "struct compunit_symtab *".  All callers updated.
571         (debug_qf_lookup_symbol): Ditto.
572         (debug_qf_find_pc_sect_compunit_symtab): Renamed from
573         debug_qf_find_pc_sect_symtab, change result type to
574         "struct compunit_symtab *".  All callers updated.
575         * symfile.c (allocate_symtab): Delete objfile argument.
576         New argument cust.
577         (allocate_compunit_symtab): New function.
578         (add_compunit_symtab_to_objfile): New function.
579         * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
580         Change result type to "struct compunit_symtab *".  All uses updated.
581         <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
582         Change result type to "struct compunit_symtab *".  All uses updated.
583         * symmisc.c (print_objfile_statistics): Compute blockvector count in
584         separate loop.
585         (dump_symtab_1): Update test for primary source symtab.
586         (maintenance_info_symtabs): Update to handle compunit symtabs.
587         (maintenance_check_symtabs): Ditto.
588         * symtab.c (set_primary_symtab): Delete.
589         (compunit_primary_filetab): New function.
590         (compunit_language): New function.
591         (iterate_over_some_symtabs): Change type of arguments "first",
592         "after_last" to "struct compunit_symtab *".  All callers updated.
593         Update to loop over symtabs in each compunit.
594         (error_in_psymtab_expansion): Rename symtab argument to cust,
595         and change type to "struct compunit_symtab *".  All callers updated.
596         (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
597         Change result type to "struct compunit_symtab *".  All callers updated.
598         (find_pc_compunit_symtab): Renamed from find_pc_symtab.
599         Change result type to "struct compunit_symtab *".  All callers updated.
600         (find_pc_sect_line): Only loop over symtabs within selected compunit
601         instead of all symtabs in the objfile.
602         * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
603         <compunit_symtab> New member.
604         <block_line_section>: Moved to compunit_symtab.
605         <locations_valid>: Ditto.
606         <epilogue_unwind_valid>: Ditto.
607         <macro_table>: Ditto.
608         <dirname>: Ditto.
609         <debugformat>: Ditto.
610         <producer>: Ditto.
611         <objfile>: Ditto.
612         <call_site_htab>: Ditto.
613         <includes>: Ditto.
614         <user>: Ditto.
615         <primary>: Delete
616         (SYMTAB_COMPUNIT): New macro.
617         (SYMTAB_BLOCKVECTOR): Update definition.
618         (SYMTAB_OBJFILE): Update definition.
619         (SYMTAB_DIRNAME): Update definition.
620         (struct compunit_symtab): New type.  Common members among all source
621         symtabs within a compilation unit moved here.  All uses updated.
622         (COMPUNIT_OBJFILE): New macro.
623         (COMPUNIT_FILETABS): New macro.
624         (COMPUNIT_DEBUGFORMAT): New macro.
625         (COMPUNIT_PRODUCER): New macro.
626         (COMPUNIT_DIRNAME): New macro.
627         (COMPUNIT_BLOCKVECTOR): New macro.
628         (COMPUNIT_BLOCK_LINE_SECTION): New macro.
629         (COMPUNIT_LOCATIONS_VALID): New macro.
630         (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
631         (COMPUNIT_CALL_SITE_HTAB): New macro.
632         (COMPUNIT_MACRO_TABLE): New macro.
633         (ALL_COMPUNIT_FILETABS): New macro.
634         (compunit_symtab_ptr): New typedef.
635         (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
636
637 2014-11-20  Joel Brobecker  <brobecker@adacore.com>
638
639         * ada-lang.c (ada_is_redundant_range_encoding): Return 0
640         if the TYPE_CODE of range_type's base type does not match
641         the TYPE_CODE of encoding_type's base type.
642
643 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
644
645         * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
646         it starts with '<'.
647
648 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
649
650         * ada-lang.c (ada_is_redundant_range_encoding): New function.
651         (ada_is_redundant_index_type_desc): New function.
652         (to_fixed_array_type): Ignore parallel XA type if redundant.
653
654 2014-11-19  Joel Brobecker  <brobecker@adacore.com>
655
656         * ada-lang.c (constrained_packed_array_type): Set the length
657         of the return array as if both bounds where zero if that
658         returned array's index type is dynamic.
659
660 2014-11-19  Yao Qi  <yao@codesourcery.com>
661
662         * config/i386/go32.mh (CC): Remove.
663
664 2014-11-18  Doug Evans  <xdje42@gmail.com>
665
666         * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR.  All uses
667         updated.
668
669 2014-11-18  Doug Evans  <xdje42@gmail.com>
670
671         * buildsym.c (buildsym_objfile): New static global.
672         (buildsym_comp_dir): New static global.
673         (finish_block_internal): Delete arg objfile.  All callers updated.
674         (finish_block): Delete arg objfile.  All callers updated.
675         (start_subfile): Delete arg dirname.  All callers updated.
676         (patch_subfile_names): Update buildsym_comp_dir.
677         (get_macro_table): Delete arg objfile.  All callers updated.
678         (start_symtab): New arg objfile.  All callers updated.
679         Rename arg dirname to comp_dir.
680         (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
681         (end_symtab_get_static_block): Delete arg objfile.  All callers
682         updated.
683         (end_symtab_without_blockvector): Ditto.
684         (end_symtab_with_blockvector): Ditto.
685         (end_symtab_from_static_block): Ditto.
686         (end_symtab): Ditto.
687         (end_expandable_symtab): Ditto.
688         (augment_type_symtab): Ditto.
689         * coffread.c (coff_start_symtab): New arg objfile.  All callers
690         updated.
691
692 2014-11-18  Doug Evans  <xdje42@gmail.com>
693
694         * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE.  All uses
695         updated.
696
697 2014-11-18  Doug Evans  <xdje42@gmail.com>
698
699         * symtab.h (SYMTAB_DIRNAME): New macro.  All uses of member
700         symtab.dirname updated to use it.
701
702 2014-11-18  Doug Evans  <xdje42@gmail.com>
703
704         * symtab.h (SYMTAB_OBJFILE): New macro.  All uses of member
705         symtab.objfile updated to use it.
706
707 2014-11-18  Doug Evans  <xdje42@gmail.com>
708
709         * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
710
711 2014-11-18  Doug Evans  <xdje42@gmail.com>
712
713         * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
714         SYMBOL_OBJFILE.
715         * findvar.c (default_read_var_value): Ditto.
716         * jv-lang.c (add_class_symtab_symbol): Ditto.
717         * parse.c (operator_check_standard): Ditto.
718         * printcmd.c (address_info): Ditto.
719         * symtab.c (fixup_symbol_section): Ditto.
720         (skip_prologue_sal): Ditto.
721         * tracepoint.c (scope_info): Ditto.
722         * valops.c (find_function_in_inferior): Ditto.
723         * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
724         * python/py-symbol.c (set_symbol): Ditto.
725
726 2014-11-18  Doug Evans  <xdje42@gmail.com>
727
728         * buildsym.c (main_subfile): New static global.
729         (free_subfiles_list): New function.
730         (start_symtab): Set main_subfile.
731         (restart_symtab): Replace init of subfiles, current_subfile with
732         call to free_subfiles_list.
733         (watch_main_source_file_lossage): Use main_subfile.
734         (reset_symtab_globals): Replace init of current_subfile with call
735         to free_subfiles_list.
736         (end_symtab_without_blockvector, end_symtab_with_blockvector): New
737         functions, split out from ...
738         (end_symtab_from_static_block): ... here.  Rewrite to call them.
739
740 2014-11-18  Doug Evans  <xdje42@gmail.com>
741
742         The result of symtab expansion is always a primary symtab.
743         * dwarf2read.c (dw2_instantiate_symtab): Add assert.
744         (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
745         * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
746         (psymtab_to_symtab): Add comment and assert.
747         (map_matching_symbols_psymtab): Remove unnecessary test for
748         non-primary symtab.
749
750 2014-11-15  Doug Evans  <xdje42@gmail.com>
751
752         PR symtab/17559
753         * symtab.c (find_pc_line_symtab): New function.
754         * symtab.h (find_pc_line_symtab): Declare.
755         * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
756         find_pc_symtab.
757         * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
758         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
759         * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
760         * tui/tui-win.c (make_visible_with_new_height): Ditto.
761         * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
762         (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
763
764 2014-11-15  Doug Evans  <xdje42@gmail.com>
765
766         * symtab.c (expand_symtab_containing_pc): Renamed from
767         find_pc_sect_symtab_via_partial.  All callers updated.
768
769 2014-11-15  Yao Qi  <yao@codesourcery.com>
770
771         * go32-nat.c (go32_create_inferior): Add missing parenthesis.
772
773 2014-11-14  Joel Brobecker  <brobecker@adacore.com>
774
775         * common/common-defs.h: Move <stdarg.h> #include ahead of
776         <stdio.h> #include.
777
778 2014-11-14  Pedro Alves  <palves@redhat.com>
779
780         * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
781         [!PHONY_ICONV] (gdb_iconv): New function.
782         [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
783
784 2014-11-13  Doug Evans  <dje@google.com>
785
786         PR symtab/17591
787         * dwarf2read.c (find_slot_in_mapped_hash): Handle
788         "(anonymous namespace)".
789
790 2014-11-13  Doug Evans  <dje@google.com>
791
792         * dwarf2read.c (update_enumeration_type_from_children): Avoid
793         infinite loop.
794
795 2014-11-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
796
797         * NEWS (maint set target-async): Fix typo.
798
799 2014-11-12  Pedro Alves  <palves@redhat.com>
800
801         * infrun.c (enum infwait_states, infwait_state): Delete.
802
803 2014-11-12  Pedro Alves  <palves@redhat.com>
804
805         * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
806         Rewrite stepping over a permanent breakpoint.
807         (thread_still_needs_step_over, proceed): Don't set
808         stepping_over_breakpoint for permanent breakpoints.
809         (handle_signal_stop): Don't clear stepped_breakpoint.  Also pull
810         single-step breakpoints out of the target on hardware step
811         targets.
812         (process_event_stop_test): If stepping a permanent breakpoint
813         doesn't hit the step-resume breakpoint, delete the step-resume
814         breakpoint.
815         (switch_back_to_stepped_thread): Also check if the stepped thread
816         has advanced already on hardware step targets.
817         (currently_stepping): Return true if the thread stepped a
818         breakpoint.
819
820 2014-11-12  Pedro Alves  <palves@redhat.com>
821
822         Mark locations as permanent, not the whole breakpoint.
823         * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
824         (mark_breakpoints_out): Don't mark permanent breakpoints as
825         uninserted.
826         (breakpoint_init_inferior): Use mark_breakpoints_out.
827         (breakpoint_here_p): Adjust.
828         (bpstat_stop_status, describe_other_breakpoints): Remove handling
829         of permanent breakpoints.
830         (make_breakpoint_permanent): Mark each location as permanent,
831         instead of marking the breakpoint.
832         (add_location_to_breakpoint): If the location is permanent, mark
833         it as such, and as inserted.
834         (init_breakpoint_sal): Don't make the breakpoint permanent here.
835         (bp_location_compare, update_global_location_list): Adjust.
836         (update_breakpoint_locations): Don't make the breakpoint permanent
837         here.
838         (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
839         breakpoints.
840         * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
841         (struct bp_location) <permanent>: New field.
842         * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
843         reference to bp_permanent.
844
845 2014-11-12  Pedro Alves  <palves@redhat.com>
846
847         * arch-utils.c (default_skip_permanent_breakpoint): New function.
848         * arch-utils.h (default_skip_permanent_breakpoint): New
849         declaration.
850         * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
851         Install default_skip_permanent_breakpoint as default method.
852         * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
853         (i386_gdbarch_init): Don't install it.
854         * infrun.c (resume): Assume there's always a
855         gdbarch_skip_permanent_breakpoint implementation.
856         * gdbarch.h, gdbarch.c: Regenerate.
857
858 2014-11-11  Daniel Colascione  <dancol@dancol.org>
859
860         Warn about cross-PID-namespace debugging.
861         * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
862         * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
863         * linux-thread-db.c (check_pid_namespace_match): New function.
864         (thread_db_inferior_created): Call it.
865
866 2014-11-10  Doug Evans  <xdje42@gmail.com>
867
868         * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
869         (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
870
871 2014-11-10  Doug Evans  <xdje42@gmail.com>
872
873         * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
874
875 2014-11-10  Doug Evans  <xdje42@gmail.com>
876
877         PR symtab/17564
878         * symtab.c (lookup_symbol_in_all_objfiles): Delete.
879         (lookup_static_symbol): Move definition to new location and rewrite.
880         (lookup_symbol_in_objfile): New function.
881         (lookup_symbol_global_iterator_cb): Call it.
882
883 2014-11-10  Ulrich Weigand  <uweigand@de.ibm.com>
884
885         * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
886
887 2014-11-07  Pedro Alves  <palves@redhat.com>
888
889         * infrun.c (process_event_stop_test) <subroutine check>: Don't
890         check if we did a "nexti" inside a prologue.
891         * symtab.c (in_prologue): Delete function.
892         * symtab.h (in_prologue): Delete declaration.
893
894 2014-11-06  Doug Evans  <xdje42@gmail.com>
895
896         * symtab.h (lookup_global_symbol): Improve function comment.
897
898 2014-11-06  Doug Evans  <xdje42@gmail.com>
899
900         * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
901         All callers updated.
902         * symtab.h (lookup_global_symbol): Update decl.
903         (lookup_static_symbol): Move decl to better location.
904
905 2014-11-06  Doug Evans  <xdje42@gmail.com>
906
907         * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
908
909 2014-11-06  Doug Evans  <xdje42@gmail.com>
910
911         * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
912         All callers updated.
913         (lookup_symbol_in_all_objfiles): Renamed from
914         lookup_symbol_aux_symtabs.  All callers updated.
915         (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
916         All callers updated.
917         (lookup_symbol_in_objfile_symtabs): Renamed from
918         lookup_symbol_aux_objfile.  All callers updated.
919
920 2014-11-06  Doug Evans  <xdje42@gmail.com>
921
922         * symtab.c (lookup_symbol_in_block): Renamed from
923         lookup_symbol_aux_block.  All callers updated.
924
925 2014-11-06  Doug Evans  <xdje42@gmail.com>
926
927         * symtab.c (lookup_static_symbol): Renamed from
928         lookup_static_symbol_aux.  All callers updated.
929         (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
930         All callers updated.
931
932 2014-11-06  Doug Evans  <xdje42@gmail.com>
933
934         * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
935         * block.c (block_lookup_symbol): Use it.
936         * cp-support.c (make_symbol_overload_list_block): Use it.
937         * symtab.c (iterate_over_symbols): Use it.
938
939 2014-11-06  Doug Evans  <xdje42@gmail.com>
940
941         * symtab.c (lookup_block_symbol): Moved to ...
942         * block.c (block_lookup_symbol):  ... here and renamed.
943         All callers updated.
944         * block.h (block_lookup_symbol): Declare.
945         * symtab.h (lookup_block_symbol): Delete.
946
947 2014-11-06  Doug Evans  <xdje42@gmail.com>
948
949         * ada-lang.c (ada_make_symbol_completion_list): Use
950         ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
951         * symtab.c (lookup_objfile_from_block): Ditto.
952
953 2014-11-06  Doug Evans  <xdje42@gmail.com>
954
955         * gdbtypes.h (TYPE_CODE_CLASS): Delete.  All uses changed to use
956         TYPE_CODE_STRUCT.
957
958 2014-11-06  Doug Evans  <xdje42@gmail.com>
959
960         * objfiles.c (get_objfile_arch): Constify.
961         * objfiles.h (get_objfile_arch): Update prototype.
962         * solib.c (solib_global_lookup): Fetch arch from objfile,
963         not target_gdbarch.
964
965 2014-11-06  Sandra Loosemore  <sandra@codesourcery.com>
966
967         * nios2-tdep.c (wild_insn): Delete.
968         (profiler_insn, irqentry_insn): Delete.
969         (nios2_match_sequence): Delete.
970         (nios2_analyze_prologue): Update comments.  Remove matching
971         of obsolete profiler_insn and irqentry_insn sequences.
972
973 2014-11-05  Alan Modra  <amodra@gmail.com>
974
975         * charset.c (convert_between_encodings): Shrink obstack using
976         obstack_blank_fast.
977         * minsyms.c (install_minimal_symbols): Likewise.
978         * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
979         to char* before doing pointer arithmetic.
980
981 2014-11-04  Simon Marchi  <simon.marchi@ericsson.com>
982
983         * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
984
985 2014-11-04  Pedro Alves  <palves@redhat.com>
986
987         * breakpoint.c (breakpoint_thread_match): Delete function.
988         * breakpoint.h (breakpoint_thread_match): Delete declaration.
989
990 2014-11-03  Siva Chandra Reddy  <sivachandra@google.com>
991
992         PR c++/17494
993         * eval.c (evaluate_subexp_standard): Evaluate the "object" and
994         the method args also under EVAL_SKIP when evaluating method
995         calls under EVAL_SKIP.
996
997 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
998
999         * dwarf2loc.c (read_pieced_value): Do big endian
1000         processing only if gdb_regnum is not -1.
1001         (write_pieced_value): Ditto.
1002
1003 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
1004
1005         * arm-linux-tdep.c (arm_linux_init_abi): Use
1006         info.byte_order_for_code to choose endianity of breakpoint
1007         instructions snippets.
1008
1009 2014-11-02  Victor Kamensky  <victor.kamensky@linaro.org>
1010
1011         * arm-tdep.c (extract_arm_insn): Use
1012         gdbarch_byte_order_for_code to read arm instruction.
1013
1014 2014-11-02  Doug Evans  <xdje42@gmail.com>
1015
1016         * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1017
1018 2014-11-02  Doug Evans  <xdje42@gmail.com>
1019
1020         * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1021         main_subfile before returning.
1022
1023 2014-10-31  Doug Evans  <xdje42@gmail.com>
1024
1025         * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1026         (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1027
1028 2014-10-31  Doug Evans  <xdje42@gmail.com>
1029
1030         * valops.c (value_cast_pointers): Fix whitespace.
1031         (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1032         Ditto.
1033
1034 2014-10-30  Doug Evans  <dje@google.com>
1035
1036         * NEWS: Mention ability add attributes to gdb.Objfile and
1037         gdb.Progspace objects.
1038         * python/py-objfile.c (objfile_object): New member dict.
1039         (objfpy_dealloc): Py_XDECREF dict.
1040         (objfpy_initialize): Initialize dict.
1041         (objfile_getset): Add __dict__.
1042         (objfile_object_type): Set tp_dictoffset member.
1043         * python/py-progspace.c (progspace_object): New member dict.
1044         (pspy_dealloc): Py_XDECREF dict.
1045         (pspy_initialize): Initialize dict.
1046         (pspace_getset): Add __dict__.
1047         (pspace_object_type): Set tp_dictoffset member.
1048
1049 2014-10-30  Yao Qi  <yao@codesourcery.com>
1050
1051         * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1052         replace '\\' with '\\\\'.
1053
1054 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
1055
1056         GDB 7.8.1 released.
1057
1058 2014-10-29  Pedro Alves  <palves@redhat.com>
1059
1060         PR gdb/17408
1061         * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1062         instead of assuming a thread with a stepping range is always
1063         stepping.
1064
1065 2014-10-29  Pedro Alves  <palves@redhat.com>
1066
1067         PR python/17372
1068         * event-top.c (change_line_handler): Call
1069         gdb_rl_callback_handler_remove instead of
1070         rl_callback_handler_remove.
1071         (callback_handler_installed): New global.
1072         (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1073         (gdb_rl_callback_handler_reinstall): New functions.
1074         (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1075         gdb_rl_callback_handler_install instead of
1076         rl_callback_handler_remove and rl_callback_handler_install.
1077         (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1078         instead of rl_callback_handler_remove.
1079         * event-top.h (gdb_rl_callback_handler_remove)
1080         (gdb_rl_callback_handler_install)
1081         (gdb_rl_callback_handler_reinstall): New declarations.
1082         * infrun.c (reinstall_readline_callback_handler_cleanup): New
1083         cleanup function.
1084         (fetch_inferior_event): Install it.
1085         * top.c (gdb_readline_wrapper_line) Call
1086         gdb_rl_callback_handler_remove instead of
1087         rl_callback_handler_remove.
1088         (gdb_readline_wrapper_cleanup): Don't call
1089         rl_callback_handler_install.
1090
1091 2014-10-29  Pedro Alves  <palves@redhat.com>
1092
1093         * event-top.c (command_line_handler): Clear the first byte of
1094         linebuffer, when it is first allocated.
1095
1096 2014-10-29  Pedro Alves  <palves@redhat.com>
1097
1098         * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1099         TRY_CATCH.
1100
1101 2014-10-29  Pedro Alves  <palves@redhat.com>
1102
1103         PR tui/16138
1104         PR tui/17519
1105         * tui/tui-interp.c (tui_is_toplevel): Delete global.
1106         (tui_allowed_p): Delete function.
1107         * tui/tui.c: Include "interps.h".
1108         (tui_enable): Don't use tui_allowed_p.  Error out here with
1109         detailed error messages if the TUI is the top level interpreter,
1110         or if output is not a terminal.  Use newterm instead of initscr,
1111         and error out if initializing the terminal fails.  Also error out if
1112         the terminal doesn't support cursor addressing.
1113         * tui/tui.h (tui_allowed_p): Delete declaration.
1114
1115 2014-10-29  Joel Brobecker  <brobecker@adacore.com>
1116
1117         * arm-tdep.c (arm_skip_stack_protector): Return early if
1118         address loaded by first "ldr" instruction does not have
1119         a corresponding minimal symbol.  Update comment.
1120
1121 2014-10-29  Yao Qi  <yao@codesourcery.com>
1122
1123         * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1124         loaded address correctly of ldr instruction.
1125
1126 2014-10-28  Pedro Alves  <palves@redhat.com>
1127
1128         PR gdb/12623
1129         * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1130         field.
1131         * infrun.c (resume) <stepping breakpoint instruction>: Set the
1132         thread's stepped_breakpoint field.  Skip if reverse debugging.
1133         Add comment.
1134         (init_thread_stepping_state, handle_signal_stop): Clear the
1135         thread's stepped_breakpoint field.
1136
1137 2014-10-27  Pedro Alves  <palves@redhat.com>
1138
1139         * remote.c (remote_thread_alive): New, factored out from ...
1140         (remote_thread_alive): ... this.
1141         (remote_update_thread_list): Bail out before deleting threads if
1142         the target returned an empty list, and, the current thread has a
1143         magic/fake ptid.
1144
1145 2014-10-27  Pedro Alves  <palves@redhat.com>
1146
1147         * infrun.c (handle_signal_stop): Also skip handlers when a random
1148         signal arrives while handling a "stepi" or a "nexti".  Set the
1149         thread's 'step_after_step_resume_breakpoint' flag.
1150
1151 2014-10-27  Luis Machado  <lgustavo@codesourcery.com>
1152
1153         * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1154         (arm_record_ld_st_imm_offset): Reimplement to cover all
1155         load/store cases for ARM opcode 010.
1156         (arm_record_ld_st_multiple): Reimplement to cover all
1157         load/store cases for ARM opcode 100.
1158
1159 2014-10-26  Doug Evans  <xdje42@gmail.com>
1160
1161         * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1162
1163 2014-10-26  Doug Evans  <xdje42@gmail.com>
1164
1165         * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1166         parameter "kind" to "block_index".
1167         * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1168         "block_index".
1169         (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1170
1171 2014-10-26  Doug Evans  <xdje42@gmail.com>
1172
1173         * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1174
1175 2014-10-26  Doug Evans  <xdje42@gmail.com>
1176
1177         * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1178         obstack_alloc.
1179
1180 2014-10-26  Doug Evans  <xdje42@gmail.com>
1181
1182         * parser-defs.h (block_found): Move decl from here ...
1183         * symtab.h (block_found): ... to here.
1184
1185 2014-10-26  Doug Evans  <xdje42@gmail.com>
1186
1187         * symtab.h (struct field_of_this_result): Fix typo in comment.
1188         (lookup_symbol_in_language): Move function comment here.
1189         (lookup_symbol): Improve function comment.
1190         (basic_lookup_symbol_nonlocal): Ditto.
1191         (lookup_symbol_static, lookup_symbol_global): Ditto.
1192         (lookup_symbol_aux_block): Ditto.
1193         (lookup_language_this): Add function comment.
1194         (lookup_static_symbol_aux): Explicitly mark as extern.  Improve
1195         function comment.
1196         (lookup_block_symbol): Improve function comment.
1197         (lookup_struct): Fix capitalization in function comment.
1198         (lookup_transparent_type): Add function comment.
1199         (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1200         Improve function comment.
1201         (lookup_objfile_from_block): Add function comment.
1202         * symtab.c (lookup_symbol_in_language): Update function comment.
1203         (lookup_symbol, lookup_language_this): Ditto.
1204         (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1205         (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1206         (basic_lookup_symbol_nonlocal): Ditto.
1207         (lookup_symbol_static, lookup_symbol_global): Ditto.
1208         (lookup_transparent_type, lookup_block_symbol): Ditto.
1209
1210 2014-10-25  Doug Evans  <xdje42@gmail.com>
1211
1212         * symtab.c (types_info): Delete forward decl.
1213         (functions_info, variables_info, sources_info): Ditto.
1214         (_initialize_symtab): Rewrite forward decl to use
1215         initialize_file_ftype.
1216
1217 2014-10-25  Doug Evans  <xdje42@gmail.com>
1218
1219         * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1220
1221 2014-10-25  Doug Evans  <xdje42@gmail.com>
1222
1223         * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1224         of local var child_die.
1225
1226 2014-10-24  Don Breazeal  <donb@codesourcery.com>
1227
1228         * infrun.c (follow_fork_inferior): Update fork message printing
1229         to use target_terminal_ours_for_output instead of
1230         target_terminal_ours, to use _() for all format strings, to print
1231         "vfork" instead of "fork" for vforks, and to add a detach message.
1232         (handle_vfork_child_exec_or_exit): Update message printing to use
1233         target_terminal_ours_for_output instead of target_terminal_ours, to
1234         use _() for all format strings, and to fix some formatting.
1235
1236 2014-10-24  Pedro Alves  <palves@redhat.com>
1237
1238         * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1239         * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1240         * config/vax/vax.mh: Delete.
1241         * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1242         obsolete configurations section.
1243         * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1244         * vax-nat.c: Delete file.
1245
1246 2014-10-24  Pedro Alves  <palves@redhat.com>
1247
1248         * NEWS (Removed targets): Add OS/arch column.
1249
1250 2014-10-24  Siva Chandra Reddy  <sivachandra@google.com>
1251
1252         * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1253         on the arg type of a constructor only if it is of reference type.
1254
1255 2014-10-23  Sandra Loosemore  <sandra@codesourcery.com>
1256
1257         * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1258         accessors and constants from nios2 opcodes update.
1259         (nios2_get_next_pc): Likewise.
1260
1261 2014-10-19  Doug Evans  <xdje42@gmail.com>
1262
1263         * gdbthread.h (set_running): Fix comment.
1264         (set_executing, finish_thread_state): Fix comment.
1265
1266 2014-10-18  Doug Evans  <xdje42@gmail.com>
1267
1268         * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1269
1270 2014-10-17  Doug Evans  <dje@google.com>
1271
1272         * NEWS: Mention new event gdb.clear_objfiles.
1273         * python/py-event.h (emit_clear_objfiles_event): Clear
1274         * python/py-events.h (events_object): New member clear_objfiles.
1275         * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1276         event.
1277         * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1278         emit clear_objfiles event.
1279         * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1280         function.
1281         (emit_clear_objfiles_event): New function.
1282         (clear_objfiles): New event.
1283         * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1284         Declare.
1285         * python/python.c (_initialize_python): Call
1286         gdbpy_initialize_clear_objfiles_event.
1287
1288 2014-10-17  Doug Evans  <dje@google.com>
1289
1290         * NEWS: Mention new gdb.Objfile.progspace attribute.
1291         * python/py-objfile.c (objfpy_get_progspace): New function.
1292         (objfile_getset): New entry for "progspace".
1293
1294 2014-10-17  Pedro Alves  <palves@redhat.com>
1295
1296         PR gdb/17471
1297         * infcmd.c (strip_bg_char): Change prototype and rewrite.  Now
1298         returns a copy of the input.
1299         (run_command_1, continue_command, step_1, jump_command)
1300         (signal_command, until_command, advance_command, finish_command)
1301         (attach_command): Adjust and install a cleanup to free the
1302         stripped args.
1303
1304 2014-10-17  Pedro Alves  <palves@redhat.com>
1305
1306         PR gdb/17300
1307         * infcmd.c (continue_1): If continuing all threads in the
1308         foreground, make sure the inferior's terminal settings are put in
1309         effect.
1310
1311 2014-10-17  Pedro Alves  <palves@redhat.com>
1312
1313         PR gdb/17472
1314         * annotate.c (annotate_breakpoints_invalid): Use
1315         target_terminal_our_for_output instead of target_terminal_ours.
1316         Give back the terminal to the target.
1317         (annotate_frames_invalid): Likewise.
1318
1319 2014-10-17  Pedro Alves  <palves@redhat.com>
1320
1321         * target.c (enum terminal_state): New enum.
1322         (terminal_state): New global.
1323         (target_terminal_init): New function.
1324         (target_terminal_inferior): Skip if inferior already owns the
1325         terminal.
1326         (target_terminal_ours, target_terminal_ours_for_output): New
1327         functions.
1328         * target.h (target_terminal_init): Convert to function prototype.
1329         (target_terminal_ours_for_output): Convert to function prototype
1330         and tweak comment.
1331         (target_terminal_ours): Convert to function prototype and tweak
1332         comment.
1333         * windows-nat.c (do_initial_windows_stuff): Call
1334         target_terminal_init instead of child_terminal_init_with_pgrp.
1335
1336 2014-10-17  Pedro Alves  <palves@redhat.com>
1337
1338         * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1339         (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1340         (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1341         solib-osf.c.
1342         * NEWS: Mention that support for alpha*-*-osf* has been removed.
1343         * ada-lang.h [__alpha__ && __osf__]
1344         (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1345         * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1346         * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1347         GDB_OSABI_OSF1.
1348         * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1349         files.
1350         * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1351         (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1352         * configure: Regenerate.
1353         * configure.ac: Remove references to osf.
1354         * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1355         section.  Remove all other references to osf.
1356         * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1357         Remove all other references to osf.
1358         * dec-thread.c: Delete file.
1359         * defs.h (GDB_OSABI_OSF1): Delete.
1360         * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1361         defined.
1362         * osabi.c (gdb_osabi_names): Delete "OSF/1".
1363         * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1364         Delete code.
1365         (unconditionally_kill_inferior)
1366         [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1367         * solib-osf.c: Delete file.
1368
1369 2014-10-17  Pedro Alves  <palves@redhat.com>
1370
1371         * remote.c (clear_threads_listing_context): Move higher up, out of
1372         the HAVE_LIBEXPAT guard.
1373
1374 2014-10-16  Tristan Gingold  <gingold@adacore.com>
1375
1376         * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1377         (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1378         on amd64.
1379
1380 2014-10-15  Pedro Alves  <palves@redhat.com>
1381
1382         * dec-thread.c (dec_thread_count_gdb_threads)
1383         (dec_thread_add_gdb_thread): Delete.
1384         (dec_thread_update_thread_list): Delete.
1385         (dec_thread_find_new_threads): Rename to ...
1386         (dec_thread_update_thread_list): ... this.  Delete GDB-size
1387         threads that are no longer found in dec_thread_list.
1388         (resync_thread_list): Delete.
1389         (dec_thread_wait): Call dec_thread_update_thread_list instead of
1390         resync_thread_list.
1391
1392 2014-10-15  Pedro Alves  <palves@redhat.com>
1393
1394         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1395         * remote.c (remote_update_thread_list): Skip calling prune_threads
1396         if any thread listing method is supported, and instead walk over
1397         the set of remote threads listed, deleting those that are not
1398         found in GDB's thread list.
1399
1400 2014-10-15  Pedro Alves  <palves@redhat.com>
1401
1402         * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1403         * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1404         (bsd_uthread_update_thread_list): ... this.  Call prune_threads.
1405         (bsd_uthread_target): Adjust.
1406         * corelow.c (core_open): Adjust.
1407         * dec-thread.c (dec_thread_find_new_threads): Update comment.
1408         (dec_thread_update_thread_list): New function.
1409         (init_dec_thread_ops): Adjust.
1410         * gdbthread.h (prune_threads): New declaration.
1411         * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1412         (thread_db_update_thread_list): ... this.  Call prune_threads.
1413         (init_thread_db_ops): Adjust.
1414         * nto-procfs.c (procfs_find_new_threads): Rename to ...
1415         (procfs_update_thread_list): ... this.  Call prune_threads.
1416         (procfs_attach, procfs_create_inferior, init_procfs_targets):
1417         Adjust.
1418         * obsd-nat.c (obsd_find_new_threads): Rename to ...
1419         (obsd_update_thread_list): ... this.  Call prune_threads.
1420         (obsd_add_target): Adjust.
1421         * procfs.c (procfs_target): Adjust.
1422         (procfs_notice_thread): Update comment.
1423         (procfs_find_new_threads): Rename to ...
1424         (procfs_update_thread_list): ... this.  Call prune_threads.
1425         * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1426         comment.
1427         (ravenscar_wait): Adjust.
1428         (ravenscar_find_new_threads): Rename to ...
1429         (ravenscar_update_thread_list): ... this.  Call prune_threads.
1430         (init_ravenscar_thread_ops): Adjust.
1431         * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1432         (record_btrace_update_thread_list): ... this.  Adjust comment.
1433         (init_record_btrace_ops): Adjust.
1434         * remote.c (remote_threads_info): Rename to ...
1435         (remote_update_thread_list): ... this.  Call prune_threads.
1436         (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1437         Adjust.
1438         * sol-thread.c (check_for_thread_db): Adjust.
1439         (sol_find_new_threads_callback): Rename to ...
1440         (sol_update_thread_list_callback): ... this.
1441         (sol_find_new_threads): Rename to ...
1442         (sol_update_thread_list): ... this.  Call prune_threads.  Adjust.
1443         (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1444         * target-delegates.c: Regenerate.
1445         * target.c (target_find_new_threads): Rename to ...
1446         (target_update_thread_list): ... this.
1447         * target.h (struct target_ops): Rename to_find_new_threads field
1448         to to_update_thread_list.
1449         (target_find_new_threads): Rename to ...
1450         (target_update_thread_list): ... this.
1451         * thread.c (prune_threads): Make extern.
1452         (update_thread_list): Adjust.
1453
1454 2014-10-15  Pedro Alves  <palves@redhat.com>
1455
1456         * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1457         Add describing comment.  Return -1 if the qL packet is not
1458         supported.
1459         (struct thread_item, thread_item_t): Move higher up in
1460         the file.  Add comments.
1461         (struct threads_parsing_context): Move higher up in
1462         the file, add comments, and remote to ...
1463         (struct threads_listing_context): ... this.
1464         (remote_newthread_step): Don't add the thread to GDB's thread
1465         database here.  Instead push it to the thread_listing_context
1466         list.
1467         (remote_find_new_threads): Rename to ...
1468         (remote_get_threads_with_ql): ... this.  Add target_ops and
1469         targets_listing_context parameters.  Pass down context.
1470         (start_thread): Adjust.
1471         (clear_threads_parsing_context): Rename to ...
1472         (clear_threads_listing_context): ... this.
1473         (remote_get_threads_with_qxfer): New, with parts salvaged from old
1474         remote_threads_info.
1475         (remote_get_threads_with_qthreadinfo): Ditto.
1476         (remote_threads_info): Reimplement.
1477
1478 2014-10-15  Pedro Alves  <palves@redhat.com>
1479
1480         * infrun.c (resume): Don't force displaced-stepping for all
1481         single-steps on software single-stepping archs.
1482
1483 2014-10-15  Pedro Alves  <palves@redhat.com>
1484
1485         * breakpoint.c (single_step_breakpoints): Delete global.
1486         (insert_single_step_breakpoint): Adjust to store the breakpoint
1487         pointer in the current thread.
1488         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1489         (cancel_single_step_breakpoints): Delete functions.
1490         (breakpoint_has_location_inserted_here): Make extern.
1491         (single_step_breakpoint_inserted_here_p): Adjust to walk the
1492         breakpoint list.
1493         * breakpoint.h (breakpoint_has_location_inserted_here): New
1494         declaration.
1495         (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1496         (cancel_single_step_breakpoints): Remove declarations.
1497         * gdbthread.h (struct thread_control_state)
1498         <single_step_breakpoints>: New field.
1499         (delete_single_step_breakpoints)
1500         (thread_has_single_step_breakpoints_set)
1501         (thread_has_single_step_breakpoint_here): New declarations.
1502         * infrun.c (follow_exec): Also clear the single-step breakpoints.
1503         (singlestep_breakpoints_inserted_p, singlestep_ptid)
1504         (singlestep_pc): Delete globals.
1505         (infrun_thread_ptid_changed): Remove references to removed
1506         globals.
1507         (resume_cleanups): Delete the current thread's single-step
1508         breakpoints.
1509         (maybe_software_singlestep): Remove references to removed globals.
1510         (resume): Adjust to use thread_has_single_step_breakpoints_set and
1511         delete_single_step_breakpoints.
1512         (init_wait_for_inferior): Remove references to removed globals.
1513         (delete_thread_infrun_breakpoints): Delete the thread's
1514         single-step breakpoints too.
1515         (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1516         single-step breakpoints here.
1517         (delete_stopped_threads_single_step_breakpoints): New function.
1518         (adjust_pc_after_break): Adjust to use
1519         thread_has_single_step_breakpoints_set.
1520         (handle_inferior_event): Remove references to removed globals.
1521         Use delete_stopped_threads_single_step_breakpoints.
1522         (handle_signal_stop): Adjust to per-thread single-step
1523         breakpoints.  Swap test order to do cheaper tests first.
1524         (switch_back_to_stepped_thread): Extend debug output.  Remove
1525         references to removed globals.
1526         * record-full.c (record_full_wait_1): Adjust to per-thread
1527         single-step breakpoints.
1528         * thread.c (delete_single_step_breakpoints)
1529         (thread_has_single_step_breakpoints_set)
1530         (thread_has_single_step_breakpoint_here): New functions.
1531         (clear_thread_inferior_resources): Also delete the thread's
1532         single-step breakpoints.
1533
1534 2014-10-15  Pedro Alves  <palves@redhat.com>
1535
1536         * thread.c (delete_thread_breakpoint): New function.
1537         (delete_step_resume_breakpoint)
1538         (delete_exception_resume_breakpoint): Use it.
1539         (delete_at_next_stop): New function.
1540         (clear_thread_inferior_resources): Use delete_at_next_stop.
1541
1542 2014-10-15  Pedro Alves  <palves@redhat.com>
1543
1544         * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1545         (breakpoint_inserted_here_p): ... here.  Remove special case for
1546         software single-step breakpoints.
1547         (find_non_raw_software_breakpoint_inserted_here): Inline ...
1548         (software_breakpoint_inserted_here_p): ... here.  Remove special
1549         case for software single-step breakpoints.
1550         (bp_target_info_copy_insertion_state)
1551         (deprecated_insert_raw_breakpoint)
1552         (deprecated_remove_raw_breakpoint): Delete functions.
1553         * breakpoint.h (deprecated_insert_raw_breakpoint)
1554         (deprecated_remove_raw_breakpoint): Remove declarations.
1555
1556 2014-10-15  Pedro Alves  <palves@redhat.com>
1557
1558         PR breakpoints/9649
1559         * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1560         Delete array globals.
1561         (single_step_breakpoints): New global.
1562         (breakpoint_xfer_memory): Remove special handling for single-step
1563         breakpoints.
1564         (update_breakpoints_after_exec): Delete bp_single_step
1565         breakpoints.
1566         (detach_breakpoints): Remove special handling for single-step
1567         breakpoints.
1568         (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1569         (bpstat_stop_status): Add comment.
1570         (bpstat_what, bptype_string, print_one_breakpoint_location)
1571         (adjust_breakpoint_address, init_bp_location): Handle
1572         bp_single_step.
1573         (new_single_step_breakpoint): New function.
1574         (set_momentary_breakpoint, bkpt_remove_location): Remove special
1575         handling for single-step breakpoints.
1576         (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1577         (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1578         Rewrite.
1579         (detach_single_step_breakpoints, find_single_step_breakpoint):
1580         Delete functions.
1581         (breakpoint_has_location_inserted_here): New function.
1582         (single_step_breakpoint_inserted_here_p): Rewrite.
1583         * breakpoint.h: Remove FIXME.
1584         (enum bptype) <bp_single_step>: New enum value.
1585         (insert_single_step_breakpoint): Update comment.
1586         * infrun.c (resume_cleanups)
1587         (delete_step_thread_step_resume_breakpoint): Remove single-step
1588         breakpoints.
1589         (fetch_inferior_event): Install a cleanup that removes infrun
1590         breakpoints.
1591         (switch_back_to_stepped_thread) <expect thread advanced also>:
1592         Clear step-over info.
1593
1594 2014-10-15  Pedro Alves  <palves@redhat.com>
1595
1596         * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1597         (delete_thread_infrun_breakpoints): New function, with parts
1598         salvaged from delete_step_resume_breakpoint_callback.
1599         (delete_step_thread_step_resume_breakpoint): Delete.
1600         (for_each_just_stopped_thread_callback_func): New typedef.
1601         (for_each_just_stopped_thread): New function.
1602         (delete_just_stopped_threads_infrun_breakpoints): New function.
1603         (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1604         (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1605         ... this.  Adjust.
1606         (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1607
1608 2014-10-15  Pedro Alves  <palves@redhat.com>
1609
1610         * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1611         trying to step past a non-steppable watchpoint.
1612         * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1613         field.
1614         * infrun.c (struct step_over_info): Add new field
1615         'nonsteppable_watchpoint_p' and adjust comments.
1616         (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1617         Adjust.
1618         (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1619         (stepping_past_nonsteppable_watchpoint): New function.
1620         (step_over_info_valid_p): Also return true if stepping past a
1621         nonsteppable watchpoint.
1622         (proceed): Adjust call to set_step_over_info.  Remove reference to
1623         init_infwait_state.
1624         (init_wait_for_inferior): Remove reference to init_infwait_state.
1625         (waiton_ptid): Delete global.
1626         (struct execution_control_state)
1627         <stepped_after_stopped_by_watchpoint>: Delete field.
1628         (wait_for_inferior, fetch_inferior_event): Always pass
1629         minus_one_ptid to target_wait.
1630         (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1631         field.
1632         (init_infwait_state): Delete function.
1633         (handle_inferior_event): Remove infwait_state handling.
1634         (handle_signal_stop) <watchpoints handling>: Adjust after
1635         stepped_after_stopped_by_watchpoint removal.  Don't remove
1636         breakpoints here nor set infwait_state.  Set the thread's
1637         stepping_over_watchpoint flag, and call keep_going instead.
1638         (keep_going): Handle stepping_over_watchpoint.  Adjust
1639         set_step_over_info calls.
1640         * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1641         function.
1642
1643 2014-10-15  Pedro Alves  <palves@redhat.com>
1644
1645         * infrun.c (step_over_info_valid_p): New function.
1646         (resume): Use step_over_info_valid_p instead of checking the
1647         threads's trap_expected flag.
1648
1649 2014-10-15  Doug Evans  <dje@google.com>
1650             Walfred Tedeschi  <walfred.tedeschi@intel.com>
1651
1652         PR python/17364
1653         * python/lib/gdb/__init__.py (packages): Add "printer".
1654         * python/lib/gdb/command/bound_registers.py: Moved to ...
1655         * python/lib/gdb/printer/bound_registers.py: ... here.
1656         Add printer to global set of builtin printers.  Rename printer from
1657         "bound" to "mpx_bound128".
1658         * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1659         registered as global "builtin" printer.
1660         (add_builtin_pretty_printer): New function.
1661         * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1662         gdb/printer/__init__.py.
1663
1664 2014-10-15  Iain Buclaw  <ibuclaw@gdcproject.org>
1665
1666         * Makefile.in (SFILES): Remove d-support.c.
1667         (COMMON_OBS): Remove d-support.o.
1668         * d-lang.h (d_parse_symbol): Remove declaration.
1669         * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1670         * d-support.c: Remove file.
1671
1672 2014-10-15  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1673
1674         * gdb/infrun.c (process_event_stop_test): Apply
1675         gdbarch_addr_bits_remove to longjmp resume address.
1676
1677 2014-10-15  Pedro Alves  <palves@redhat.com>
1678
1679         * regformats/microblaze.dat: Delete file.
1680
1681 2014-10-15  Ajit Agarwal  <ajitkum@xilinx.com>
1682
1683         * features/Makefile (microblaze-expedite): Replace pc with rpc.
1684         * regformats/microblaze-with-stack-protect.dat: Regenerate.
1685
1686 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
1687
1688         * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1689         as non-trivial.
1690
1691 2014-10-15  Siva Chandra Reddy  <sivachandra@google.com>
1692
1693         PR c++/13403
1694         PR c++/15154
1695         * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1696         with qualified args.
1697
1698 2014-10-14  Joel Brobecker  <brobecker@adacore.com>
1699
1700         * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1701         of the case where the second operand is a pointer.
1702         <BINOP_SUB>: Likewise.
1703
1704 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
1705
1706         * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1707         only if it is not NULL.
1708         (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1709         * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1710         (struct probe_ops) <clear_semaphore>: Likewise.
1711         * tracepoint.c (start_tracing): Call set_semaphore only if it is
1712         not NULL.
1713         (stop_tracing): Likewise, for clear_semaphore.
1714
1715 2014-10-14  Sergio Durigan Junior  <sergiodj@redhat.com>
1716
1717         * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1718         using language_c, instead of current_language.
1719
1720 2014-10-13  Doug Evans  <dje@google.com>
1721
1722         * python/py-objfile.c (objfpy_initialize): New function.
1723         (objfpy_new, objfile_to_objfile_object): Call it.
1724         * python/py-progspace.c (pspy_initialize): New function.
1725         (pspy_new, pspace_to_pspace_object): Call it.
1726
1727 2014-10-13  Miroslav Franc  <mfranc@redhat.com>
1728             Jan Kratochvil  <jan.kratochvil@redhat.com>
1729
1730         Fix "save breakpoints" for "catch" command.
1731         * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1732         newline.
1733
1734 2014-10-12  Miroslav Franc  <mfranc@redhat.com>
1735
1736         Fix "save breakpoints" for "disable $bpnum" command.
1737         * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1738
1739 2014-10-10  Pedro Alves  <palves@redhat.com>
1740
1741         * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1742         (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1743         (HFILES_NO_SRCDIR): Remove solib-irix.h.
1744         * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1745         and been removed.
1746         * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1747         * configure.ac: Remove references to IRIX.
1748         * configure.host: Add *-*-irix* to the obsolete hosts section.
1749         Remove all other references to irix.
1750         * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1751         Delete files.
1752
1753 2014-10-10  Ajit Agarwal  <ajitkum@xilinx.com>
1754
1755         * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1756         isn't valid, release the tdesc arch data and return NULL.
1757
1758 2014-10-10  Pedro Alves  <palves@redhat.com>
1759
1760         * linux-tdep.c: Include observer.h.
1761         (linux_inferior_data): New global.
1762         (struct linux_info): New structure.
1763         (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1764         (get_linux_inferior_data): New functions.
1765         (linux_vsyscall_range): Rename to ...
1766         (linux_vsyscall_range_raw): ... this.
1767         (linux_vsyscall_range): New function; handles caching.
1768         (_initialize_linux_tdep): Register linux_inferior_data.  Install
1769         inferior_exit and inferior_appeared observers.
1770
1771 2014-10-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
1772             Pedro Alves  <palves@redhat.com>
1773
1774         PR symtab/14466
1775         * solib-svr4.c (svr4_read_so_list): Rename to ...
1776         (svr4_current_sos_1): ... this and change the function comment.
1777         (svr4_current_sos): New function.
1778
1779 2014-10-10  Pedro Alves  <palves@redhat.com>
1780
1781         * arch-utils.c (default_vsyscall_range): New function.
1782         * arch-utils.h (default_vsyscall_range): New declaration.
1783         * gdbarch.sh (vsyscall_range): New hook.
1784         * gdbarch.h, gdbarch.c: Regenerate.
1785         * linux-tdep.c (linux_vsyscall_range): New function.
1786         (linux_init_abi): Install linux_vsyscall_range as
1787         vsyscall_range gdbarch hook.
1788         * memrange.c (address_in_mem_range): New function.
1789         * memrange.h (address_in_mem_range): New declaration.
1790         * symfile-mem.c (find_vdso_size): Delete function.
1791         (add_vsyscall_page): Use gdbarch_vsyscall_range.
1792
1793 2014-10-10  Pedro Alves  <palves@redhat.com>
1794
1795         * infrun.c (normal_stop): Fix typo in comment.
1796
1797 2014-10-09  Sergio Durigan Junior  <sergiodj@redhat.com>
1798
1799         PR tdep/9390
1800         * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1801         typo when using logical AND to determine instruction type.
1802
1803 2014-10-09  Yao Qi  <yao@codesourcery.com>
1804
1805         * infrun.c (handle_signal_stop): Remove local variable
1806         'printed'.
1807
1808 2014-10-08  Stan Shebs  <stan@codesourcery.com>
1809
1810         * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1811
1812 2014-10-08  Gary Benson  <gbenson@redhat.com>
1813
1814         * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1815
1816 2014-10-08  Gary Benson  <gbenson@redhat.com>
1817
1818         * common/common-defs.h: Include common-exceptions.h.
1819         * exceptions.h: Do not include common-exceptions.h.
1820
1821 2014-10-08  Gary Benson  <gbenson@redhat.com>
1822
1823         * common/common-defs.h: Include cleanups.h.
1824         * common/common-exceptions.c: Do not include cleanups.h.
1825         * utils.h: Likewise.
1826
1827 2014-10-08  Gary Benson  <gbenson@redhat.com>
1828
1829         * ada-lang.c: Do not include exceptions.h.
1830         * ada-valprint.c: Likewise.
1831         * amd64-tdep.c: Likewise.
1832         * auto-load.c: Likewise.
1833         * block.c: Likewise.
1834         * break-catch-throw.c: Likewise.
1835         * breakpoint.c: Likewise.
1836         * btrace.c: Likewise.
1837         * c-lang.c: Likewise.
1838         * cli/cli-cmds.c: Likewise.
1839         * cli/cli-interp.c: Likewise.
1840         * cli/cli-script.c: Likewise.
1841         * completer.c: Likewise.
1842         * corefile.c: Likewise.
1843         * corelow.c: Likewise.
1844         * cp-abi.c: Likewise.
1845         * cp-support.c: Likewise.
1846         * cp-valprint.c: Likewise.
1847         * darwin-nat.c: Likewise.
1848         * dwarf2-frame-tailcall.c: Likewise.
1849         * dwarf2-frame.c: Likewise.
1850         * dwarf2loc.c: Likewise.
1851         * dwarf2read.c: Likewise.
1852         * eval.c: Likewise.
1853         * event-loop.c: Likewise.
1854         * event-top.c: Likewise.
1855         * f-valprint.c: Likewise.
1856         * frame-unwind.c: Likewise.
1857         * frame.c: Likewise.
1858         * gdbtypes.c: Likewise.
1859         * gnu-v2-abi.c: Likewise.
1860         * gnu-v3-abi.c: Likewise.
1861         * guile/scm-auto-load.c: Likewise.
1862         * guile/scm-breakpoint.c: Likewise.
1863         * guile/scm-cmd.c: Likewise.
1864         * guile/scm-frame.c: Likewise.
1865         * guile/scm-lazy-string.c: Likewise.
1866         * guile/scm-param.c: Likewise.
1867         * guile/scm-symbol.c: Likewise.
1868         * guile/scm-type.c: Likewise.
1869         * hppa-hpux-tdep.c: Likewise.
1870         * i386-tdep.c: Likewise.
1871         * inf-loop.c: Likewise.
1872         * infcall.c: Likewise.
1873         * infcmd.c: Likewise.
1874         * infrun.c: Likewise.
1875         * interps.c: Likewise.
1876         * interps.h: Likewise.
1877         * jit.c: Likewise.
1878         * linespec.c: Likewise.
1879         * linux-nat.c: Likewise.
1880         * linux-thread-db.c: Likewise.
1881         * m32r-rom.c: Likewise.
1882         * main.c: Likewise.
1883         * memory-map.c: Likewise.
1884         * mi/mi-cmd-break.c: Likewise.
1885         * mi/mi-cmd-stack.c: Likewise.
1886         * mi/mi-interp.c: Likewise.
1887         * mi/mi-main.c: Likewise.
1888         * monitor.c: Likewise.
1889         * nto-procfs.c: Likewise.
1890         * objc-lang.c: Likewise.
1891         * p-valprint.c: Likewise.
1892         * parse.c: Likewise.
1893         * ppc-linux-tdep.c: Likewise.
1894         * printcmd.c: Likewise.
1895         * probe.c: Likewise.
1896         * python/py-auto-load.c: Likewise.
1897         * python/py-breakpoint.c: Likewise.
1898         * python/py-cmd.c: Likewise.
1899         * python/py-finishbreakpoint.c: Likewise.
1900         * python/py-frame.c: Likewise.
1901         * python/py-framefilter.c: Likewise.
1902         * python/py-function.c: Likewise.
1903         * python/py-gdb-readline.c: Likewise.
1904         * python/py-inferior.c: Likewise.
1905         * python/py-infthread.c: Likewise.
1906         * python/py-lazy-string.c: Likewise.
1907         * python/py-linetable.c: Likewise.
1908         * python/py-param.c: Likewise.
1909         * python/py-prettyprint.c: Likewise.
1910         * python/py-symbol.c: Likewise.
1911         * python/py-type.c: Likewise.
1912         * python/py-value.c: Likewise.
1913         * python/python-internal.h: Likewise.
1914         * python/python.c: Likewise.
1915         * record-btrace.c: Likewise.
1916         * record-full.c: Likewise.
1917         * regcache.c: Likewise.
1918         * remote-fileio.c: Likewise.
1919         * remote-mips.c: Likewise.
1920         * remote.c: Likewise.
1921         * rs6000-aix-tdep.c: Likewise.
1922         * rs6000-nat.c: Likewise.
1923         * skip.c: Likewise.
1924         * solib-darwin.c: Likewise.
1925         * solib-dsbt.c: Likewise.
1926         * solib-frv.c: Likewise.
1927         * solib-ia64-hpux.c: Likewise.
1928         * solib-spu.c: Likewise.
1929         * solib-svr4.c: Likewise.
1930         * solib.c: Likewise.
1931         * spu-tdep.c: Likewise.
1932         * stack.c: Likewise.
1933         * stap-probe.c: Likewise.
1934         * symfile-mem.c: Likewise.
1935         * symmisc.c: Likewise.
1936         * target.c: Likewise.
1937         * thread.c: Likewise.
1938         * top.c: Likewise.
1939         * tracepoint.c: Likewise.
1940         * tui/tui-interp.c: Likewise.
1941         * typeprint.c: Likewise.
1942         * utils.c: Likewise.
1943         * valarith.c: Likewise.
1944         * valops.c: Likewise.
1945         * valprint.c: Likewise.
1946         * value.c: Likewise.
1947         * varobj.c: Likewise.
1948         * windows-nat.c: Likewise.
1949         * xml-support.c: Likewise.
1950
1951 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
1952
1953         * mips-tdep.c (add_offset_16): Rewrite to implement what the
1954         name implies.
1955         (extended_mips16_next_pc): Update accordingly.
1956
1957 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
1958
1959         * mips-tdep.c (mips16_instruction_is_compact_branch): New
1960         function.
1961         (micromips_instruction_is_compact_branch): Likewise.
1962         (mips16_scan_prologue): Terminate scanning upon seeing a branch
1963         or a compact jump, reaching a jump delay slot, or seeing a
1964         second non-prologue instruction.
1965         (micromips_scan_prologue): Also terminate scanning upon seeing a
1966         compact branch or jump, or reaching a branch or jump delay slot.
1967         (mips32_scan_prologue): Terminate scanning upon reaching a branch
1968         or jump delay slot, or seeing a second non-prologue instruction.
1969         (mips32_instruction_has_delay_slot): Retain instruction
1970         examination code only, update arguments accordingly and move
1971         instruction fetch pieces to...
1972         (mips32_insn_at_pc_has_delay_slot): ... this new function.
1973         (micromips_instruction_has_delay_slot): Likewise and to...
1974         (micromips_insn_at_pc_has_delay_slot): ... this new function.
1975         (mips16_instruction_has_delay_slot): Likewise and to...
1976         (mips16_insn_at_pc_has_delay_slot): ... this new function.
1977         (mips_single_step_through_delay): Update accordingly.
1978         (mips_adjust_breakpoint_address): Likewise.
1979
1980 2014-10-05  Maciej W. Rozycki  <macro@codesourcery.com>
1981
1982         * mips-tdep.c (micromips_instruction_has_delay_slot): When
1983         !mustbe32 also return 1 for 32-bit instructions.
1984         (mips16_instruction_has_delay_slot): Likewise.  Add an
1985         explanatory comment.
1986
1987 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
1988
1989         * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
1990         symbols special.
1991
1992 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
1993
1994         * breakpoint.h (bp_target_info): Add `reqstd_address' member,
1995         update comments.
1996         * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
1997         for the breakpoint's address.  Don't preinitialize `placed_size'.
1998         (insert_bp_location): Set `reqstd_address' rather than
1999         `placed_address'.
2000         (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2001         (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2002         address.
2003         (bkpt_remove_location): Likewise.
2004         (deprecated_insert_raw_breakpoint): Likewise.
2005         (deprecated_remove_raw_breakpoint): Likewise.
2006         (find_single_step_breakpoint): Likewise.
2007         * mem-break.c (default_memory_insert_breakpoint): Use
2008         `reqstd_address' for the breakpoint's address.  Don't set
2009         `placed_address' or `placed_size' if breakpoint contents couldn't
2010         have been determined.
2011         * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2012         the breakpoint's address.
2013         (remote_insert_hw_breakpoint): Likewise.  Don't set
2014         `placed_address' or `placed_size' if breakpoint couldn't have been
2015         set.
2016         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2017         `reqstd_address' for the breakpoint's address.
2018         * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2019         * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2020         * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2021         * microblaze-linux-tdep.c
2022         (microblaze_linux_memory_remove_breakpoint): Likewise.
2023         * monitor.c (monitor_insert_breakpoint): Likewise.
2024         * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2025         (procfs_insert_hw_breakpoint): Likewise.
2026         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2027         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2028         * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2029         * remote-mips.c (mips_insert_breakpoint): Likewise.
2030         * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2031
2032 2014-10-03  Luis Machado  <lgustavo@codesourcery.com>
2033
2034         * valops.c (value_assign): Check for bit field assignments
2035         before calling architecture-specific register value
2036         conversion functions.
2037
2038 2014-10-03  Pierre Muller  <muller@sourceware.org>
2039
2040         * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2041
2042 2014-10-02  Pedro Alves  <palves@redhat.com>
2043
2044         * breakpoint.c (breakpoints_should_be_inserted_now): Use
2045         threads_are_executing.
2046         * breakpoint.h (breakpoints_should_be_inserted_now): Add
2047         describing comment.
2048         * gdbthread.h (threads_are_executing): Declare.
2049         (handle_signal_stop) <random signals>: Don't print about the
2050         signal here if stopping.
2051         (end_stepping_range): Don't notify observers here.
2052         (normal_stop): Update the thread list.  If stopped by a random
2053         signal or a stepping range ended, notify observers.
2054         * thread.c (threads_executing): New global.
2055         (init_thread_list): Clear 'threads_executing'.
2056         (set_executing): Set or clear 'threads_executing'.
2057         (threads_are_executing): New function.
2058         (update_threads_executing): New function.
2059         (update_thread_list): Use it.
2060
2061 2014-10-02  Pedro Alves  <palves@redhat.com>
2062
2063         PR breakpoints/17431
2064         * breakpoint.c (update_breakpoints_after_exec): Don't create
2065         overlay, longjmp, std terminate nor exception breakpoints here.
2066
2067 2014-10-02  Pedro Alves  <palves@redhat.com>
2068
2069         * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2070         Adjust comments.
2071         * inferior.c (find_inferior_for_program_space): Give preference to
2072         the current inferior.
2073         * inferior.h (find_inferior_for_program_space): Update comment.
2074         * progspace.c (switch_to_program_space_and_thread): Prefer the
2075         current inferior if it's bound to the program space requested.  If
2076         the inferior found doesn't have a PID yet, don't bother looking up
2077         a thread.
2078         * progspace.h (switch_to_program_space_and_thread): Adjust
2079         comment.
2080         * thread.c (any_thread_of_process, any_live_thread_of_process):
2081         Give preference to the current thread.
2082
2083 2014-10-01  Pedro Alves  <palves@redhat.com>
2084
2085         * breakpoint.c (insert_bp_location): Error out if inserting a
2086         software breakpoint at a read-only address.
2087         * target.c (memory_xfer_check_region): New function, factored out
2088         from ...
2089         (memory_xfer_partial_1): ... this.  Make the 'reg_len' local a
2090         ULONGEST.
2091         (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2092         against the memory region attributes.
2093
2094 2014-10-01  Simon Marchi  <simon.marchi@ericsson.com>
2095
2096         * NEWS: Announce new exit-code field in -list-thread-groups
2097         output.
2098         * inferior.c (exit_inferior_1): Don't clear exit code.
2099         (inferior_appeared): Clear exit code.
2100         * mi/mi-main.c (print_one_inferior): Add printing of the exit
2101         code.
2102
2103 2014-10-01  Pedro Alves  <palves@redhat.com>
2104
2105         * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2106         GENERATED" along with emacs/vi read-only markers.
2107         * regformats/aarch64.dat: Regenerate.
2108         * regformats/arm-with-iwmmxt.dat: Regenerate.
2109         * regformats/arm-with-neon.dat: Regenerate.
2110         * regformats/arm-with-vfpv2.dat: Regenerate.
2111         * regformats/arm-with-vfpv3.dat: Regenerate.
2112         * regformats/i386/amd64-avx-linux.dat: Regenerate.
2113         * regformats/i386/amd64-avx.dat: Regenerate.
2114         * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2115         * regformats/i386/amd64-avx512.dat: Regenerate.
2116         * regformats/i386/amd64-linux.dat: Regenerate.
2117         * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2118         * regformats/i386/amd64-mpx.dat: Regenerate.
2119         * regformats/i386/amd64.dat: Regenerate.
2120         * regformats/i386/i386-avx-linux.dat: Regenerate.
2121         * regformats/i386/i386-avx.dat: Regenerate.
2122         * regformats/i386/i386-avx512-linux.dat: Regenerate.
2123         * regformats/i386/i386-avx512.dat: Regenerate.
2124         * regformats/i386/i386-linux.dat: Regenerate.
2125         * regformats/i386/i386-mmx-linux.dat: Regenerate.
2126         * regformats/i386/i386-mmx.dat: Regenerate.
2127         * regformats/i386/i386-mpx-linux.dat: Regenerate.
2128         * regformats/i386/i386-mpx.dat: Regenerate.
2129         * regformats/i386/i386.dat: Regenerate.
2130         * regformats/i386/x32-avx-linux.dat: Regenerate.
2131         * regformats/i386/x32-avx.dat: Regenerate.
2132         * regformats/i386/x32-avx512-linux.dat: Regenerate.
2133         * regformats/i386/x32-avx512.dat: Regenerate.
2134         * regformats/i386/x32-linux.dat: Regenerate.
2135         * regformats/i386/x32.dat: Regenerate.
2136         * regformats/microblaze-with-stack-protect.dat: Regenerate.
2137         * regformats/mips-dsp-linux.dat: Regenerate.
2138         * regformats/mips-linux.dat: Regenerate.
2139         * regformats/mips64-dsp-linux.dat: Regenerate.
2140         * regformats/mips64-linux.dat: Regenerate.
2141         * regformats/nios2-linux.dat: Regenerate.
2142         * regformats/rs6000/powerpc-32.dat: Regenerate.
2143         * regformats/rs6000/powerpc-32l.dat: Regenerate.
2144         * regformats/rs6000/powerpc-64l.dat: Regenerate.
2145         * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2146         * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2147         * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2148         * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2149         * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2150         * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2151         * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2152         * regformats/s390-linux32.dat: Regenerate.
2153         * regformats/s390-linux32v1.dat: Regenerate.
2154         * regformats/s390-linux32v2.dat: Regenerate.
2155         * regformats/s390-linux64.dat: Regenerate.
2156         * regformats/s390-linux64v1.dat: Regenerate.
2157         * regformats/s390-linux64v2.dat: Regenerate.
2158         * regformats/s390-te-linux64.dat: Regenerate.
2159         * regformats/s390x-linux64.dat: Regenerate.
2160         * regformats/s390x-linux64v1.dat: Regenerate.
2161         * regformats/s390x-linux64v2.dat: Regenerate.
2162         * regformats/s390x-te-linux64.dat: Regenerate.
2163         * regformats/tic6x-c62x-linux.dat: Regenerate.
2164         * regformats/tic6x-c62x.dat: Regenerate.
2165         * regformats/tic6x-c64x-linux.dat: Regenerate.
2166         * regformats/tic6x-c64x.dat: Regenerate.
2167         * regformats/tic6x-c64xp-linux.dat: Regenerate.
2168         * regformats/tic6x-c64xp.dat: Regenerate.
2169
2170 2014-10-01  Pedro Alves  <palves@redhat.com>
2171
2172         * features/Makefile: Update comments.
2173         (XMLTOC): List all xml files we build C files from.
2174         (clean-cfiles): New rule.
2175
2176 2014-10-01  Pedro Alves  <palves@redhat.com>
2177
2178         * features/i386/amd64-avx512-linux.c: Regenerate.
2179         * features/i386/amd64-avx512.c: Regenerate.
2180         * features/i386/x32-avx512-linux.c: Regenerate.
2181         * features/i386/x32-avx512.c: Regenerate.
2182
2183 2014-10-01  Pedro Alves  <palves@redhat.com>
2184
2185         * features/Makefile (WHICH): Remove arm-with-m,
2186         arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2187
2188 2014-10-01  Pedro Alves  <palves@redhat.com>
2189
2190         * features/Makefile (clean): New rule.
2191
2192 2014-10-01  Pedro Alves  <palves@redhat.com>
2193
2194         * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2195         (zmm14h): Add missing end quotes.
2196
2197 2014-10-01  Pedro Alves  <palves@redhat.com>
2198
2199         * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2200         * features/aarch64.c: Regenerate.
2201
2202 2014-09-30  Don Breazeal  <donb@codesourcery.com>
2203
2204         * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2205         code so as to work with follow_fork_inferior.
2206         * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2207         (inf_ttrace_create_inferior): Remove reference to
2208         inf_ttrace_vfork_ppid.
2209         (inf_ttrace_attach): Ditto.
2210         (inf_ttrace_detach): Ditto.
2211         (inf_ttrace_kill): Use current_inferior instead of
2212         inf_ttrace_vfork_ppid.
2213         (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2214         TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2215         inferior away from the parent.
2216         * infrun.c (follow_fork): Call follow_fork_inferior instead of
2217         target_follow_fork.
2218         (follow_fork_inferior): New function.
2219         (follow_inferior_reset_breakpoints): Make function static.
2220         * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2221         * linux-nat.c (linux_child_follow_fork): Move target-independent
2222         code to infrun.c:follow_fork_inferior.
2223
2224 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2225
2226         * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2227         * gdbarch.c: Regenerate.
2228         * gdbarch.h: Likewise.
2229         * corelow.c (sniff_core_bfd): Drop presence check for deleted
2230         gdbarch method 'regset_from_core_section'.
2231         (get_core_register_section): Remove handling for the case that
2232         regset == NULL and regset_from_core_section is defined.
2233         (get_core_registers): Drop check for deleted method.
2234         * procfs.c (procfs_do_thread_registers): Adjust comment.
2235
2236 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2237
2238         * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2239         (linux_nat_make_corefile_notes): Remove.
2240         (linux_target_install_ops): Do not set target method
2241         'make_corefile_notes'.
2242         * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2243         Remove field.
2244         (linux_corefile_thread_callback): Instead of args->collect, call
2245         linux_collect_thread_registers.
2246         (linux_make_corefile_notes): Remove 'collect' parameter.  Return
2247         NULL unless there is a regset iterator.
2248         (linux_make_corefile_notes_1): Remove.
2249         (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2250         by linux_make_corefile_notes.
2251         * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2252
2253 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2254
2255         * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2256         (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2257         Remove.
2258         * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2259
2260 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2261
2262         * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2263         (xtensa_iterate_over_regset_sections): New.
2264         (xtensa_gdbarch_init): Adjust gdbarch initialization.
2265
2266 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2267
2268         * vax-tdep.c (vax_regset_from_core_section): Remove.
2269         (vax_iterate_over_regset_sections): New.
2270         (vax_gdbarch_init): Adjust gdbarch initialization.
2271
2272 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2273
2274         * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2275         (tilegx_regset_from_core_section): Remove.
2276         (tilegx_iterate_over_regset_sections): New.
2277         (tilegx_linux_init_abi): Adjust gdbarch initialization.
2278
2279 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2280
2281         * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2282         (sparc_iterate_over_regset_sections): New.
2283         (sparc32_gdbarch_init): Adjust gdbarch initialization.
2284         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2285         targets.
2286         * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2287         (sparc64fbsd_init_abi): Call fbsd_init_abi.
2288         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2289         target method 'make_corefile_notes'.
2290
2291 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2292
2293         * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2294         'sizeof_gregset' and 'sizeof_fpregset'.
2295         * sh-tdep.c (sh_regset_from_core_section): Remove.
2296         (sh_iterate_over_regset_sections): New.
2297         (sh_gdbarch_init): Adjust gdbarch initialization.
2298         * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2299         sizeof_fpregset.
2300         * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2301         'sizeof_gregset'.
2302
2303 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2304
2305         * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2306         (score7_linux_iterate_over_regset_sections): New.
2307         (score_gdbarch_init): Adjust gdbarch initialization.
2308
2309 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2310
2311         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2312         FreeBSD targets.
2313         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2314         method 'make_corefile_notes'.
2315         * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2316         (ppcfbsd_regset_from_core_section): Remove.
2317         (ppcfbsd_iterate_over_regset_sections): New.
2318         (ppcfbsd_init_abi): Call fbsd_init_abi.  Adjust gdbarch
2319         initialization.
2320         * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2321         (ppcnbsd_iterate_over_regset_sections): New.
2322         (ppcnbsd_init_abi): Adjust.
2323         * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2324         (ppcobsd_iterate_over_regset_sections): New.
2325         (ppcobsd_init_abi): Adjust.
2326         * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2327         (rs6000_aix_iterate_over_regset_sections): New.
2328         (rs6000_aix_init_osabi): Adjust.
2329
2330 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2331
2332         * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2333         (nios2_regset_from_core_section): Remove.
2334         (nios2_iterate_over_regset_sections): New.
2335         (nios2_linux_init_abi): Adjust gdbarch initialization.
2336
2337 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2338
2339         * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2340         (am33_iterate_over_regset_sections): New.
2341         (am33_linux_init_osabi): Adjust gdbarch initialization.
2342
2343 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2344
2345         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2346         (mips_linux_iterate_over_regset_sections): New.
2347         (mips_linux_init_abi): Adjust gdbarch initialization.
2348         * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2349         (mips64obsd_iterate_over_regset_sections): New.
2350         (mips64obsd_init_abi): Adjust.
2351         * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2352         (mipsnbsd_iterate_over_regset_sections): New.
2353         (mipsnbsd_init_abi): Adjust.
2354
2355 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2356
2357         * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2358         (m88k_iterate_over_regset_sections): New.
2359         (m88k_gdbarch_init): Adjust gdbarch initialization.
2360
2361 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2362
2363         * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2364         (ia64_linux_iterate_over_regset_sections): New.
2365         (ia64_linux_init_abi): Adjust gdbarch initialization.
2366
2367 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2368
2369         * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2370         (m68kbsd_iterate_over_regset_sections): New.
2371         (m68kbsd_init_abi): Adjust gdbarch initialization.
2372         * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2373         (m68k_linux_iterate_over_regset_sections): New.
2374         (m68k_linux_init_abi): Adjust gdbarch initialization.
2375
2376 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2377
2378         * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2379         (m32r_linux_regset_from_core_section): Remove.
2380         (m32r_linux_iterate_over_regset_sections): New.
2381         (m32r_linux_init_abi): Adjust gdbarch initialization.
2382
2383 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2384
2385         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2386         (amd64obsd_iterate_over_regset_sections): New.
2387         (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2388         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2389         Remove.
2390         (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset.  Drop
2391         regset_from_core_section initialization.
2392         * i386-tdep.c (i386_regset_from_core_section): Remove.
2393         (i386_iterate_over_regset_sections): New.
2394         (i386_gdbarch_init): Adjust gdbarch initialization.
2395         * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2396         (i386_iterate_over_regset_sections): New prototype.
2397         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2398         Remove.
2399         (i386obsd_aout_iterate_over_regset_sections): New.
2400         (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2401         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2402         targets.
2403         * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2404         (amd64fbsd_init_abi): Call fbsd_init_abi.
2405         * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2406         (i386fbsd4_init_abi): Call fbsd_init_abi.
2407         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2408         target method 'make_corefile_notes'.
2409         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2410
2411 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2412
2413         * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2414         (hppa_hpux_iterate_over_regset_sections): New.
2415         (hppa_hpux_init_abi): Adjust gdbarch initialization.
2416         * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2417         (hppa_linux_iterate_over_regset_sections): New.
2418         (hppa_linux_init_abi): Adjust.
2419         * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2420         (hppanbsd_iterate_over_regset_sections): New.
2421         (hppanbsd_init_abi): Adjust.
2422         * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2423         (hppaobsd_iterate_over_regset_sections): New.
2424         (hppaobsd_init_abi): Adjust.
2425
2426 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2427
2428         * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2429         (frv_linux_iterate_over_regset_sections): New.
2430         (frv_linux_init_abi): Adjust gdbarch initialization.
2431
2432 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2433
2434         * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2435         (armbsd_iterate_over_regset_sections): New prototype.
2436         * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2437         (armbsd_iterate_over_regset_sections): New.
2438         * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2439         initialization.
2440
2441 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2442
2443         * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2444         (alpha_linux_iterate_over_regset_sections): New.
2445         (alpha_linux_init_abi): Adjust gdbarch initialization.
2446         * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2447         prototype.
2448         (alphanbsd_iterate_over_regset_sections): New prototype.
2449
2450 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2451
2452         * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2453         Remove.
2454         (aarch64_linux_iterate_over_regset_sections): New.
2455         (aarch64_linux_init_abi): Adjust gdbarch initialization.
2456
2457 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2458
2459         * fbsd-tdep.c: New file.
2460         * fbsd-tdep.h: New file.
2461         * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2462         (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2463         (ALLDEPFILES): Add fbsd-tdep.c.
2464
2465 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2466
2467         * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2468         parameter.
2469         * gdbarch.h: Regenerate.
2470         * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2471         iterator.
2472         (get_core_register_section): Add parameter 'regset' and use it, if
2473         set.  Add parameter 'min_size' and verify the bfd section size
2474         against it.
2475         (get_core_registers_cb): Add parameter 'regset' and pass it to
2476         get_core_register section.  For the "standard" register sections
2477         ".reg" and ".reg2", set an appropriate default for human_name.
2478         (get_core_registers): Don't abort when the gdbarch has an iterator
2479         but no regset_from_core_section.  Add NULL/0 for parameters
2480         'regset'/'min_size' in calls to get_core_register_section.
2481         * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2482         'regset' and use it instead of calling the
2483         regset_from_core_section gdbarch method.
2484         * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2485         * i386-tdep.c (i386_supply_xstateregset)
2486         (i386_collect_xstateregset, i386_xstateregset): Moved to
2487         i386-linux-tdep.c.
2488         (i386_regset_from_core_section): Drop handling for .reg-xfp and
2489         .reg-xstate.
2490         (i386_gdbarch_init): Set tdep field 'fpregset'.  Enable generic
2491         core file support only if the regset iterator hasn't been set.
2492         * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2493         (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2494         Moved from i386-tdep.c and renamed to *_linux*.
2495         (i386_linux_iterate_over_regset_sections): Add regset parameter to
2496         each callback invocation.  Allow any .reg-xstate size when reading
2497         from a core file.
2498         * amd64-tdep.c (amd64_supply_xstateregset)
2499         (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2500         amd64-linux-tdep.c.
2501         (amd64_regset_from_core_section): Remove.
2502         (amd64_init_abi): Set new tdep field 'fpregset'.  No longer
2503         install an amd64-specific regset_from_core_section gdbarch method.
2504         * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2505         (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2506         Moved from amd64-tdep.c and renamed to *_linux*.
2507         (amd64_linux_iterate_over_regset_sections): Add regset parameter
2508         to each callback invocation.  Allow any .reg-xstate size when
2509         reading from a core file.
2510         * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2511         (arm_linux_iterate_over_regset_sections): Add regset parameter to
2512         each callback invocation.
2513         (arm_linux_init_abi): No longer set the regset_from_core_section
2514         gdbarch method.
2515         * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2516         (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2517         each callback invocation.
2518         (ppc_linux_init_abi): No longer set the regset_from_core_section
2519         gdbarch method.
2520         * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2521         gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2522         (s390_regset_from_core_section): Remove.
2523         (s390_iterate_over_regset_sections): Add regset parameter to each
2524         callback invocation.
2525         (s390_gdbarch_init): No longer set the regset_from_core_section
2526         gdbarch method.  Drop initialization of deleted tdep fields.
2527
2528 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2529
2530         * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2531         (amd64_linux_iterate_over_regset_sections): New.
2532         (amd64_linux_init_abi_common): Don't install the regset section
2533         list, but the new iterator in gdbarch.
2534         * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2535         (arm_linux_vfp_regset_sections): Remove.  Move combined logic...
2536         (arm_linux_iterate_over_regset_sections): ...here.  New function.
2537         (arm_linux_init_abi): Set iterator instead of section list.
2538         * corelow.c (get_core_registers_cb): New function, logic moved
2539         from...
2540         (get_core_registers): ...loop body here.  Use new iterator method
2541         instead of walking through the regset section list.
2542         * gdbarch.sh: Remove 'core_regset_sections'.  New method
2543         'iterate_over_regset_sections'.  New typedef
2544         'iterate_over_regset_sections_cb'.
2545         * gdbarch.c: Regenerate.
2546         * gdbarch.h: Likewise.
2547         * i386-linux-tdep.c (i386_linux_regset_sections)
2548         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2549         Remove.
2550         (i386_linux_iterate_over_regset_sections): New.
2551         (i386_linux_init_abi): Don't choose a regset section list, but
2552         install new iterator in gdbarch.
2553         * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2554         (linux_collect_regset_section_cb): New function, logic moved
2555         from...
2556         (linux_collect_thread_registers): ...loop body here.  Use iterator
2557         method instead of walking through list.
2558         (linux_make_corefile_notes_1): Check for presence of iterator
2559         method instead of regset section list.
2560         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2561         (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2562         (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2563         (ppc64_linux_fp_regset_sections): Remove.  Move combined logic...
2564         (ppc_linux_iterate_over_regset_sections): ...here.  New function.
2565         (ppc_linux_init_abi): Don't choose from above regset section
2566         lists, but install new iterator in gdbarch.
2567         * regset.h (struct core_regset_section): Remove.
2568         * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2569         have_linux_v1, have_linux_v2, and have_tdb.
2570         (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2571         (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2572         (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2573         (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2574         (s390x_linux64v2_regset_sections): Remove.  Move combined logic...
2575         (s390_iterate_over_regset_sections): ...here.  New function.  Use
2576         new tdep fields.
2577         (s390_gdbarch_init): Set new tdep fields.  Don't choose from above
2578         regset section lists, but install new iterator.
2579
2580 2014-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
2581
2582         * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2583
2584 2014-09-26  Simon Marchi  <simon.marchi@ericsson.com>
2585
2586         * progspace.c (print_program_space): Don't prune program spaces
2587         before printing them.
2588
2589 2014-09-25  Pedro Alves  <palves@redhat.com>
2590
2591         * infrun.c (user_visible_resume_ptid): Don't check
2592         singlestep_breakpoints_inserted_p.
2593
2594 2014-09-25  Pedro Alves  <palves@redhat.com>
2595
2596         * breakpoint.c (should_be_inserted): Add debug output.
2597
2598 2014-09-25  Pedro Alves  <palves@redhat.com>
2599
2600         * infrun.c (stepping_past_instruction_at)
2601         (clear_exit_convenience_vars): Point at infrun.h instead of
2602         inferior.h.
2603         (handle_signal_stop): Fix typo.
2604
2605 2014-09-24  Yao Qi  <yao@codesourcery.com>
2606
2607         * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2608         bitmask.
2609
2610 2014-09-22  Gary Benson  <gbenson@redhat.com>
2611
2612         * target.c (target_stop): Updated comment.
2613
2614 2014-09-22  Gary Benson  <gbenson@redhat.com>
2615
2616         * target/target.h (target_stop_ptid): Renamed as...
2617         (target_stop_and_wait): New function.  Updated comment.
2618         All uses updated.
2619         (target_continue_ptid): Renamed as...
2620         (target_continue_no_signal): New function.  Updated comment.
2621         All uses updated.
2622
2623 2014-09-22  Pedro Alves  <palves@redhat.com>
2624
2625         * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2626         and "auto" merged.
2627         * breakpoint.c (enum ugll_insert_mode): New enum.
2628         (always_inserted_mode): Now a plain boolean.
2629         (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2630         (breakpoints_always_inserted_mode): Delete.
2631         (breakpoints_should_be_inserted_now): New function.
2632         (insert_breakpoints): Pass UGLL_INSERT to
2633         update_global_location_list instead of calling
2634         insert_breakpoint_locations manually.
2635         (create_solib_event_breakpoint_1): New, factored out from ...
2636         (create_solib_event_breakpoint): ... this.
2637         (create_and_insert_solib_event_breakpoint): Use
2638         create_solib_event_breakpoint_1 instead of calling
2639         insert_breakpoint_locations manually.
2640         (update_global_location_list): Change parameter type from boolean
2641         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
2642         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2643         (update_global_location_list_nothrow): Change parameter type from
2644         boolean to enum ugll_insert_mode.
2645         (_initialize_breakpoint): "breakpoint always-inserted" option is
2646         now a boolean command.  Update help text.
2647         * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2648         (breakpoints_should_be_inserted_now): New declaration.
2649         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2650         Remove breakpoints_always_inserted_mode check.
2651         (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2652         * remote.c (remote_start_remote): Likewise.
2653
2654 2014-09-22  Pedro Alves  <palves@redhat.com>
2655
2656         * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2657         (insert_breakpoints): Don't call insert_breakpoint_locations here.
2658         Instead, pass UGLL_INSERT to update_global_location_list.
2659         (update_global_location_list): Change parameter type from boolean
2660         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
2661         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2662         (create_solib_event_breakpoint_1): New, factored out from ...
2663         (create_solib_event_breakpoint): ... this.
2664         (create_and_insert_solib_event_breakpoint): Use
2665         create_solib_event_breakpoint_1 instead of calling
2666         insert_breakpoint_locations manually.
2667         (update_global_location_list): Handle UGLL_INSERT.
2668
2669 2014-09-22  Pedro Alves  <palves@redhat.com>
2670
2671         * breakpoint.c (enum ugll_insert_mode): New enum.
2672         (update_global_location_list)
2673         (update_global_location_list_nothrow): Change parameter type from
2674         boolean to enum ugll_insert_mode.  All callers adjusted.
2675
2676 2014-09-19  Joel Brobecker  <brobecker@adacore.com>
2677
2678         * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2679         SystemTap support in GDB.
2680
2681 2014-09-19  Don Breazeal  <donb@codesourcery.com>
2682
2683         * linux-nat.c (linux_handle_extended_wait): Call
2684         linux_ptrace_get_extended_event.
2685         (wait_lwp): Call linux_is_extended_waitstatus.
2686         (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2687         and linux_is_extended_waitstatus.
2688         * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2689         linux_ptrace_get_extended_event.
2690         (linux_ptrace_get_extended_event): New function.
2691         (linux_is_extended_waitstatus): New function.
2692         * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2693         (linux_is_extended_waitstatus): New declarations.
2694
2695 2014-09-19  Yao Qi  <yao@codesourcery.com>
2696
2697         * dwarf2read.c (dwarf_decode_lines): Update declaration.
2698         (handle_DW_AT_stmt_list): Add argument 'lowpc'.  Update
2699         comments.  Callers update.
2700         (dwarf_decode_lines): Likewise.
2701         (dwarf_decode_lines_1): Add argument 'lowpc'.  Update
2702         comments.  Skip the line table if  'lowpc' is greater than
2703         'address'.  Don't check
2704         dwarf2_per_objfile->has_section_at_zero.
2705
2706 2014-09-18  Doug Evans  <dje@google.com>
2707
2708         * NEWS: Mention new "producer" attribute of gdb.Symtab.
2709         * python/py-symtab.c (stpy_get_producer): New function.
2710         (symtab_object_getset): Add "producer" attribute.
2711
2712 2014-09-17  Ulrich Weigand  <uweigand@de.ibm.com>
2713
2714         PR gdb/17384
2715         * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2716         (do_captured_read_memory_integer): Remove.
2717         (safe_read_memory_integer): Use target_read_memory directly instead
2718         of catching errors in do_captured_read_memory_integer.
2719
2720 2014-09-16  Maciej W. Rozycki  <macro@codesourcery.com>
2721
2722         * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2723         not gdb/doc.
2724
2725 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
2726
2727         * objc-lang.c (find_implementation_from_class): Remove dead code.
2728
2729 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
2730
2731         PR cli/7233
2732         * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2733         "fprintf_unfiltered (gdb_stdlog...)".
2734
2735 2014-09-16  Patrick Palka  <patrick@parcs.ath.cx>
2736
2737         PR breakpoints/12526
2738         * breakpoint.h (struct watchpoint): New fields val_bitpos and
2739         val_bitsize.
2740         * breakpoint.c (watch_command_1): Use these fields to retain
2741         bitfield information.
2742         (extract_bitfield_from_watchpoint_value): New function.
2743         (watchpoint_check): Use it.
2744         (update_watchpoint): Use it.  Optimize the address and length of a
2745         HW watchpoint pointing to a bitfield.
2746         * value.h (unpack_value_bitfield): New prototype.
2747         * value.c (unpack_value_bitfield): Make extern.
2748
2749 2014-09-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2750
2751         * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2752         x86-dregs.o.
2753         * gnu-nat.c (inf_threads): New function.
2754         * gnu-nat.h (inf_threads_ftype): New typedef.
2755         (inf_threads): New declaration.
2756         * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2757         [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2758         (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2759         (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2760         (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2761         (i386_gnu_dr_get_control): New functions.
2762         (reg_addr): New structure.
2763         (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2764         i386 debugging register hooks.
2765         * NEWS: Mention this.
2766
2767 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2768
2769         * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2770         vector data transfer instructions.
2771         (arm_record_coproc_data_proc): Updated.
2772
2773 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2774
2775         * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2776         arm_record_exreg_ld_st_insn.
2777         (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2778         load/store insns.
2779
2780 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2781
2782         * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2783         (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2784         processing instructions.
2785
2786 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2787
2788         * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2789         for advance SIMD struct ld/st insn.
2790         (thumb2_record_decode_insn_handler): Replace stub handler with
2791         thumb2_record_asimd_struct_ld_st.
2792
2793 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
2794
2795         * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2796         for asimd, vfp and coprocessor insns.
2797         (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2798         and coprocessor insns.
2799         (thumb2_record_coproc_insn): New function.
2800         (thumb2_record_decode_insn_handler): Update coprocessor insns record
2801         handlers.
2802         (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2803         opcode 110 insns.
2804
2805 2014-09-13  Doug Evans  <xdje42@gmail.com>
2806
2807         * NEWS: Mention new "queue-signal" command.
2808         * infcmd.c (queue_signal_command): New function.
2809         (_initialize_infcmd): Add new queue-signal command.
2810
2811 2014-09-13  Doug Evans  <xdje42@gmail.com>
2812
2813         * linux-nat.c (wait_lwp): Add debugging printf.
2814         (linux_nat_wait_1): Ditto.
2815
2816 2014-09-12  Pedro Alves  <palves@redhat.com>
2817
2818         * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2819         (create_and_insert_solib_event_breakpoint): New functions.
2820         * breakpoint.h (create_and_insert_solib_event_breakpoint)
2821         (remove_solib_event_breakpoints_at_next_stop): New declarations.
2822         * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2823         (remove_dbx_link_breakpoint): Delete function.
2824         (insert_dbx_link_bpt_in_file): Use
2825         create_and_insert_solib_event_breakpoint instead of
2826         deprecated_insert_raw_breakpoint.
2827         (procfs_wait): Don't check whether we hit __dbx_link here.
2828         (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2829         here.
2830         * solib-irix.c (base_breakpoint): Delete global.
2831         (disable_break): Delete function.
2832         (enable_break): Use create_solib_event_breakpoint
2833         instead of deprecated_insert_raw_breakpoint.
2834         (irix_solib_handle_event): New function.
2835         (irix_solib_create_inferior_hook): Don't run the target or disable
2836         the mapping-complete breakpoint here.
2837         (_initialize_irix_solib): Install irix_solib_handle_event as
2838         so_ops->handle_event hook.
2839
2840 2014-09-12  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
2841             Ulrich Weigand  <uweigand@de.ibm.com>
2842
2843         PR tdep/17379
2844         * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2845         instead of read_memory_unsigned_integer.
2846
2847 2014-09-12  Gary Benson  <gbenson@redhat.com>
2848
2849         * nat/linux-waitpid.c: Include common-defs.h.
2850         [GDBSERVER]: Add FIXME comment.
2851         [!GDBSERVER]: Don't include defs.h or signal.h.
2852         (linux_debug) [!GDBSERVER]: Remove empty block.
2853
2854 2014-09-12  Gary Benson  <gbenson@redhat.com>
2855
2856         * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2857         Don't include defs.h or server.h.
2858
2859 2014-09-12  Gary Benson  <gbenson@redhat.com>
2860
2861         * nat/linux-btrace.c: Include common-defs.h.
2862         Don't include defs.h, server.h or gdbthread.h.
2863         * nat/linux-btrace.h (struct target_ops): New forward declaration.
2864
2865 2014-09-12  Gary Benson  <gbenson@redhat.com>
2866
2867         * common/agent.c: Include common-defs.h.
2868         Don't include defs.h or server.h.
2869         * common/buffer.c: Likewise.
2870         * common/common-debug.c: Likewise.
2871         * common/common-utils.c: Likewise.
2872         * common/errors.c: Likewise.
2873         * common/filestuff.c: Likewise.
2874         * common/format.c: Likewise.
2875         * common/gdb_vecs.c: Likewise.
2876         * common/print-utils.c: Likewise.
2877         * common/ptid.c: Likewise.
2878         * common/rsp-low.c: Likewise.
2879         * common/signals.c: Likewise.
2880         * common/vec.c: Likewise.
2881         * common/xml-utils.c: Likewise.
2882         * nat/linux-osdata.c: Likewise.
2883         * nat/linux-procfs.c: Likewise.
2884         * nat/linux-ptrace.c: Likewise.
2885         * nat/mips-linux-watch.c: Likewise.
2886         * target/waitstatus.c: Likewise.
2887
2888 2014-09-12  Tom Tromey  <tromey@redhat.com>
2889             Gary Benson  <gbenson@redhat.com>
2890
2891         * common/common-regcache.h: New file.
2892         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
2893         * regcache.h: Include common-regcache.h.
2894         (regcache_read_pc): Don't declare.
2895         * regcache.c (get_thread_regcache_for_ptid): New function.
2896         * nat/linux-btrace.c: Don't include regcache.h.
2897         Include common-regcache.h.
2898         (perf_event_read_bts): Use get_thread_regcache_for_ptid.
2899
2900 2014-09-11  Thomas Schwinge  <thomas@codesourcery.com>
2901
2902         * regcache.h (struct regset): Declare.
2903
2904 2014-09-11  Pedro Alves  <palves@redhat.com>
2905
2906         PR gdb/17347
2907         * main.c: Include "infrun.h".
2908         (catch_command_errors, catch_command_errors_const): Wait for the
2909         foreground command to complete.
2910         * top.c (maybe_wait_sync_command_done): New function, factored out
2911         from ...
2912         (maybe_wait_sync_command_done): ... here.
2913         * top.h (maybe_wait_sync_command_done): New declaration.
2914
2915 2014-09-11  Tom Tromey  <tromey@redhat.com>
2916             Gary Benson  <gbenson@redhat.com>
2917
2918         * common/symbol.h: New file.
2919         * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
2920         * minsyms.c (find_minimal_symbol_address): New function.
2921         * common/agent.c: Include common/symbol.h.
2922         [!GDBSERVER]: Don't include objfiles.h.
2923         (agent_look_up_symbols): Use find_minimal_symbol_address.
2924
2925 2014-09-11  Gary Benson  <gbenson@redhat.com>
2926
2927         * target/target.h (target_stop_ptid, target_continue_ptid):
2928         Declare.
2929         * target.c (target_stop_ptid, target_continue_ptid): New
2930         functions.
2931         * common/agent.c [!GDBSERVER]: Don't include infrun.h.
2932         (agent_run_command): Always use target_stop_ptid and
2933         target_continue_ptid.
2934
2935 2014-09-11  Tom Tromey  <tromey@redhat.com>
2936             Gary Benson  <gbenson@redhat.com>
2937
2938         * target/target.h: New file.
2939         * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
2940         * target.h: Include target/target.h.
2941         (target_read_memory, target_write_memory): Don't declare.
2942         * target.c (target_read_uint32): New function.
2943         * common/agent.c: Include target/target.h.
2944         [!GDBSERVER]: Don't include target.h.
2945         (helper_thread_id): Type changed to uint32_t.
2946         (agent_get_helper_thread_id): Use target_read_uint32.
2947         (agent_run_command): Always use target_read_memory and
2948         target_write_memory.
2949         (agent_capability): Type changed to uint32_t.
2950         (agent_capability_check): Use target_read_uint32.
2951
2952 2014-09-11  Gary Benson  <gbenson@redhat.com>
2953
2954         * common/common-debug.h (show_debug_regs): Declare.
2955         * common/common-debug.c (show_debug_regs): Define.
2956         * aarch64-linux-nat.c (debug_hw_points): Don't define.  Replace
2957         all uses with show_debug_regs.  Replace all uses that considered
2958         debug_hw_points as a multi-value integer with straight boolean
2959         uses.
2960         * x86-nat.c (debug_hw_points): Don't define.  Replace all uses
2961         with show_debug_regs.
2962         * nat/x86-dregs.c (debug_hw_points): Don't declare.  Replace
2963         all uses with show_debug_regs.
2964         * mips-linux-nat.c (maint_show_dr): Don't define.  Replace all
2965         uses with show_debug_regs.
2966
2967 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
2968
2969         * findvar.c (address_from_register): Handle targets requiring
2970         a special conversion routine even for plain pointer types.
2971
2972 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
2973
2974         * rs6000-nat.c (exec_one_dummy_insn): Remove.
2975         (store_register): Do not call exec_one_dummy_insn.
2976
2977 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2978
2979         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
2980         dereference it first.  Use value_enclosing_type instead of
2981         value_type.
2982         (ada_array_length): Likewise.
2983
2984 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2985
2986         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
2987         Adjust function implementation and documentation accordingly.
2988         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
2989         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
2990         Update call to ada_value_ptr_subscript.
2991
2992 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2993
2994         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
2995         instead of VAL's type.
2996
2997 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
2998
2999         * amd64-linux-nat.c: Add <sys/uio.h> #include.
3000
3001 2014-09-09  Doug Evans  <xdje42@gmail.com>
3002
3003         PR guile/17367
3004         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3005         last parameter to pkg-config, not first.
3006         * configure.ac: Pass --with-guile provided pkg-config path to
3007         GDB_GUILE_PROGRAM_NAMES.
3008         * configure: Regenerate.
3009
3010 2014-09-09  Gabriel Krisman Bertazi  <gabriel@krisman.be>
3011
3012         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3013         Bertazi".
3014
3015 2014-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
3016
3017         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3018         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3019         the list of sections determining GDB_OSABI_IRIX.
3020
3021 2014-09-09  James Hogan  <james.hogan@imgtec.com>
3022
3023         * MAINTAINERS (Write After Approval): Add "James Hogan".
3024
3025 2014-09-09  James Hogan  <james.hogan@imgtec.com>
3026
3027         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3028
3029 2014-09-09  Joel Brobecker  <brobecker@adacore.com>
3030
3031         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3032
3033 2014-09-08  Doug Evans  <xdje42@gmail.com>
3034
3035         PR 17247
3036         * guile.c: #include <signal.h>.
3037         (_initialize_guile): Block SIGCHLD while initializing Guile.
3038
3039         Replaces the following, which is reverted.
3040
3041         2014-07-26  Doug Evans  <xdje42@gmail.com>
3042
3043         PR 17185
3044         * configure.ac: Add check for header gc/gc.h.
3045         Add check for function setenv.
3046         * configure: Regenerate.
3047         * config.in: Regenerate.
3048         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3049
3050 2014-09-08  Doug Evans  <xdje42@gmail.com>
3051
3052         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3053         with named constant.  Fix style of pointer comparison.
3054         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3055
3056 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
3057
3058         PR gdb/17035
3059         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3060         decide whether we display the command on "show user".
3061         * cli/cli-script.c (show_user_1): Only verify cmdlines after
3062         printing command name.
3063         * cli/cli-decode.h (cli_user_command_p): Declare new function.
3064         * cli/cli-decode.c (cli_user_command_p): Create helper function
3065         to verify whether cmd_list_element is a user-defined command.
3066
3067 2014-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
3068
3069         PR python/17355
3070         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3071         Fix goto out of TRY_CATCH.
3072
3073 2014-09-06  Doug Evans  <xdje42@gmail.com>
3074             Tom Tromey  <tromey@redhat.com>
3075
3076         PR 15276
3077         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3078         $_any_caller_matches.
3079         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3080         * python/lib/gdb/function/caller_is.py: New file.
3081
3082 2014-09-06  Doug Evans  <xdje42@gmail.com>
3083
3084         * infcmd.c (program_info): Fix typo.
3085
3086 2014-09-05  Sergio Durigan Junior  <sergiodj@redhat.com>
3087
3088         PR gdb/17235
3089         * stap-probe.c (stap_parse_single_operand): Delete unused variable
3090         'number'.  New variable 'has_digit'.  Rewrite code to deal with
3091         subexpressions on SDT probes.
3092
3093 2014-09-04  Pedro Alves  <palves@redhat.com>
3094
3095         * c-exp.y (parse_number): Skip handling base-switching prefixes if
3096         the input is only one character long.
3097
3098 2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
3099
3100         PR fortran/17237
3101         * f-valprint.c (f_val_print): Specify the correct print option to
3102         use when printing integer values.
3103
3104 2014-09-04  Gary Benson  <gbenson@redhat.com>
3105
3106         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3107         Remove code to cope with LWPs wrapped as PIDs.
3108         Add assertions to ensure no wrapped LWPs are passed.
3109
3110 2014-09-04  Pedro Alves  <palves@redhat.com>
3111
3112         * value.c (value_ranges_copy_adjusted): New function, factored out
3113         from ...
3114         (value_contents_copy_raw): ... here.
3115         (unpack_value_bits_as_long_1): Rename back to ...
3116         (unpack_bits_as_long): ... this.  Remove 'original_value' and
3117         'result' parameters.  Change return type to LONGEST.
3118         (unpack_value_bits_as_long): Delete.
3119         (unpack_value_field_as_long_1): Delete.
3120         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3121         (unpack_value_bitfield): New function.
3122         (value_field_bitfield): Reimplement using unpack_value_bitfield.
3123         (value_fetch_lazy): Use unpack_value_bitfield.
3124         * value.h (unpack_value_bits_as_long): Delete declaration.
3125
3126 2014-09-03  Sasha Smundak  <asmundak@google.com>
3127
3128         * python/py-frame.c (frapy_read_register): New function.
3129
3130 2014-09-03  James Hogan  <james.hogan@imgtec.com>
3131
3132         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3133         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3134
3135 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
3136
3137         PR python/16699
3138         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3139         function.
3140         (add_cmd): Set "completer_handle_brkchars" to NULL.
3141         * cli/cli-decode.h (struct cmd_list_element)
3142         <completer_handle_brkchars>: New field.
3143         * command.h (completer_ftype_void): New typedef.
3144         (set_cmd_completer_handle_brkchars): New prototype.
3145         * completer.c (set_gdb_completion_word_break_characters): New
3146         function.
3147         (complete_line_internal): Call "completer_handle_brkchars"
3148         callback from command.
3149         * completer.h: Include "command.h".
3150         (set_gdb_completion_word_break_characters): New prototype.
3151         * python/py-cmd.c (cmdpy_completer_helper): New function.
3152         (cmdpy_completer_handle_brkchars): New function.
3153         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3154         (cmdpy_init): Set completer_handle_brkchars to
3155         cmdpy_completer_handle_brkchars.
3156
3157 2014-09-03  Gary Benson  <gbenson@redhat.com>
3158
3159         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3160         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
3161         Loop conditions changed to equivalent form.
3162         (struct x86_debug_reg_state): Updated dr_ref_count comment.
3163         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3164         ALL_DEBUG_ADDRESS_REGISTERS.
3165
3166 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
3167
3168         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3169         description fix.
3170
3171 2014-09-02  Doug Evans  <dje@google.com>
3172
3173         * typeprint.c (find_global_typedef): Fix comment.
3174
3175 2014-09-02  Gary Benson  <gbenson@redhat.com>
3176
3177         * i386-nat.h: Renamed as...
3178         * x86-nat.h: New file.  All type, function and variable name
3179         prefixes changed from "i386_" to "x86_".  All references updated.
3180         * i386-nat.c: Renamed as...
3181         * x86-nat.c: New file.  All type, function and variable name
3182         prefixes changed from "i386_" to "x86_".  All references updated.
3183         * common/i386-xstate.h: Renamed as...
3184         * common/x86-xstate.h: New file.  All type, function and variable
3185         name prefixes changed from "i386_" to "x86_".  All references
3186         updated.
3187         * nat/i386-cpuid.h: Renamed as...
3188         * nat/x86-cpuid.h: New file.  All type, function and variable name
3189         prefixes changed from "i386_" to "x86_".  All references updated.
3190         * nat/i386-gcc-cpuid.h: Renamed as...
3191         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
3192         name prefixes changed from "i386_" to "x86_".  All references
3193         updated.
3194         * nat/i386-dregs.h: Renamed as...
3195         * nat/x86-dregs.h: New file.  All type, function and variable name
3196         prefixes changed from "i386_" to "x86_".  All references updated.
3197         * nat/i386-dregs.c: Renamed as...
3198         * nat/x86-dregs.c: New file.  All type, function and variable name
3199         prefixes changed from "i386_" to "x86_".  All references updated.
3200
3201 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
3202
3203         * varobj.c (_initialize_varobj): Move to the end of file.
3204
3205 2014-08-29  Gary Benson  <gbenson@redhat.com>
3206
3207         * common/common-exceptions.h: New file.
3208         * common/common-exceptions.c: Likewise.
3209         * Makefile.in (SFILES): Add common/common-exceptions.c.
3210         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3211         (COMMON_OBS): Add common-exceptions.o.
3212         (common-exceptions.o): New rule.
3213         * exceptions.h (common-exceptions.h): Include.
3214         (gdb_setjmp.h): Do not include.
3215         (return_reason): Moved to common-exceptions.h.
3216         (enum return_reason): Likewise.
3217         (RETURN_MASK): Likewise.
3218         (typedef return_mask): Likewise.
3219         (enum errors): Likewise.
3220         (struct gdb_exception): Likewise.
3221         (exceptions_state_mc_init): Likewise.
3222         (exceptions_state_mc_action_iter): Likewise.
3223         (exceptions_state_mc_action_iter_1): Likewise.
3224         (TRY_CATCH): Likewise.
3225         (throw_exception): Likewise.
3226         (throw_verror): Likewise.
3227         (throw_vquit): Likewise.
3228         (throw_error): Likewise.
3229         (throw_quit): Likewise.
3230         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3231         (enum catcher_action): Likewise.
3232         (struct catcher): Likewise.
3233         (current_catcher): Likewise.
3234         (catcher_list_size): Likewise.
3235         (exceptions_state_mc_init): Likewise.
3236         (catcher_pop): Likewise.
3237         (exceptions_state_mc): Likewise.
3238         (exceptions_state_mc_action_iter): Likewise.
3239         (exceptions_state_mc_action_iter_1): Likewise.
3240         (throw_exception): Likewise.
3241         (exception_messages): Likewise.
3242         (exception_messages_size): Likewise.
3243         (throw_it): Likewise.
3244         (throw_verror): Likewise.
3245         (throw_vquit): Likewise.
3246         (throw_error): Likewise.
3247         (throw_quit): Likewise.
3248         (prepare_to_throw_exception): New function.
3249
3250 2014-08-29  Gary Benson  <gbenson@redhat.com>
3251
3252         * common/gdb_setjmp.h: New file.
3253         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3254         * configure.ac: Move sigsetjmp check...
3255         * common/common.m4: ...here.
3256         * configure: Regenerate.
3257         * cp-support.c (SIGJMP_BUF): Delete.
3258         (SIGSETJMP): Likewise.
3259         (SIGLONGJMP): Likewise.
3260         * exceptions.h (gdb_setjmp.h): Include.
3261         (setjmp.h): Do not include.
3262         (EXCEPTIONS_SIGJMP_BUF): Delete.
3263         (EXCEPTIONS_SIGSETJMP): Likewise.
3264         (EXCEPTIONS_SIGLONGJMP): Likewise.
3265         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3266         from gdb_setjmp.h.
3267         * exceptions.c: Likewise.
3268
3269 2014-08-29  Gary Benson  <gbenson@redhat.com>
3270
3271         * cleanups.h: Moved to...
3272         * common/cleanups.h: New file.
3273         * cleanups.c: Moved to...
3274         * common/cleanups.c: New file.  Include common-defs.h and
3275         cleanups.h.  Do not include defs.h.
3276         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3277         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3278         (cleanups.o): New rule.
3279
3280 2014-08-29  Gary Benson  <gbenson@redhat.com>
3281
3282         * common/errors.h (internal_warning): New declaration.
3283         (internal_vwarning): Likewise.
3284         * common/errors.c (internal_warning): New function.
3285         * utils.h (internal_warning): Don't declare.
3286         (internal_vwarning): Likewise.
3287         * utils.c (internal_warning): Removed.
3288
3289 2014-08-29  Gary Benson  <gbenson@redhat.com>
3290
3291         * main.c (captured_main): Use warning during startup.
3292         Prefix startup warning messages with command name.
3293
3294 2014-08-29  Gary Benson  <gbenson@redhat.com>
3295
3296         * main.c (captured_main): Handle usage errors with error.
3297
3298 2014-08-29  Gary Benson  <gbenson@redhat.com>
3299
3300         * go32-nat.c (go32_create_inferior): Replace a fprintf/
3301         exit pair with a call to error.  Wrap the message with _().
3302
3303 2014-08-29  Gary Benson  <gbenson@redhat.com>
3304
3305         * main.c (captured_main): Replace a fprintf/exit
3306         pair with a call to error.  Wrap the message with _().
3307
3308 2014-08-29  Gary Benson  <gbenson@redhat.com>
3309
3310         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3311         pairs with calls to error.  Wrap the message with _().
3312
3313 2014-08-29  Gary Benson  <gbenson@redhat.com>
3314
3315         * utils.c (vwarning): Protect calls to target_terminal_ours
3316         and wrap_here.
3317
3318 2014-08-29  Gary Benson  <gbenson@redhat.com>
3319
3320         * exceptions.c (print_flush): Protect calls to
3321         target_terminal_ours and wrap_here.
3322
3323 2014-08-29  Gary Benson  <gbenson@redhat.com>
3324
3325         * utils.h (filtered_printing_initialized): New declaration.
3326         * utils.c (abort_with_message): New function.
3327         (internal_vproblem): Use abort_with_message for first level
3328         recursive internal problems, and if gdb_stderr is not set up.
3329         Protect calls to target_terminal_ours, begin_line and query.
3330
3331 2014-08-28  Doug Evans  <dje@google.com>
3332
3333         * symtab.c (in_prologue): Move definition to better spot.
3334         (skip_prologue_using_sal): Ditto.
3335
3336 2014-08-28  Doug Evans  <dje@google.com>
3337
3338         * symtab.c (find_function_start_sal): Move definition to better spot.
3339
3340 2014-08-28  Yao Qi  <yao@codesourcery.com>
3341
3342         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3343         found_stack_adjust in forward scan.  Remove condition check
3344         on found_stack_adjust which is always true.  Indent the code.
3345
3346 2014-08-28  Yao Qi  <yao@codesourcery.com>
3347
3348         * dwarf2read.c (dwarf_decode_lines): Update declaration.
3349         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3350         (dwarf_decode_lines): Remove argument
3351         want_line_info.  Remove condition check on want_line_info.
3352         Callers update.
3353
3354 2014-08-27  Doug Evans  <dje@google.com>
3355
3356         * dwarf2read.c (dwarf_record_line): Fix typo.
3357
3358 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
3359
3360         * target.h (struct target_ops::to_terminal_save_ours): Remove
3361         declaration.
3362         (target_terminal_save_ours): Remove macro.
3363         * target-delegates.c: Regenerate.
3364         * inf-child.c (inf_child_target): Don't set the nonexistent
3365         field to_terminal_save_ours.
3366         * inferior.h (child_terminal_save_ours): Remove declaration.
3367         * terminal.h (gdb_save_tty_state): New declaration.
3368         * inflow.c (child_terminal_save_ours): Rename to ...
3369         (gdb_save_tty_state): ... this.
3370         * tui/tui.c: Include terminal.h.
3371         (tui_enable): Use gdb_save_tty_state instead of
3372         target_terminal_save_ours.
3373         (tui_disable): Likewise.
3374
3375 2014-08-25  Doug Evans  <dje@google.com>
3376
3377         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3378         Pass NULL instead of 0 for context pointer.
3379
3380 2014-08-25  Yao Qi  <yao@codesourcery.com>
3381
3382         * dwarf2read.c: Fix grammatical error.
3383
3384 2014-08-24  Yao Qi  <yao@codesourcery.com>
3385
3386         * dwarf2read.c (scan_partial_symbols):  Update comments.
3387         Rename argument 'need_pc' with 'set_addrmap'.
3388         (add_partial_namespace): Rename argument 'need_pc' with
3389         'set_addrmap'.
3390         (add_partial_module): Likewise.
3391         (add_partial_subprogram): Likewise.  Update comments.
3392         (dwarf2_name): Fix typo.
3393
3394 2014-08-22  Doug Evans  <dje@google.com>
3395
3396         PR 17276
3397         * dwarf2read.c (dwarf_record_line_p): New function.
3398         (dwarf_decode_lines_1): Ignore subsequent line number entries
3399         for the same line if any entry had a non-zero discriminator.
3400
3401 2014-08-22  Doug Evans  <dje@google.com>
3402
3403         * buildsym.h (record_line_ftype): New typedef.
3404         (record_line): Use it.
3405         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3406         (dwarf_decode_lines_1): Call them.
3407
3408 2014-08-22  Yao Qi  <yao@codesourcery.com>
3409
3410         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3411         (ctf_end): Remove code.
3412
3413 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
3414
3415         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3416         (linux_make_corefile_notes): call update_thread_list, protected against
3417         exceptions.
3418
3419 2014-08-21  Pedro Alves  <palves@redhat.com>
3420
3421         * infcmd.c (attach_command): Remove comment.
3422
3423 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
3424
3425         * aarch64-linux-nat.c (dr_changed_t): Change the type from
3426         unsigned LONGEST to ULONGEST.
3427
3428 2014-08-20  Pedro Alves  <palves@redhat.com>
3429
3430         * Makefile.in (check-read1): New rule.
3431
3432 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
3433
3434         * value.c (value_from_contents_and_address): Strip resolved_type's
3435         typedef layers before checking its TYPE_DATA_LOCATION.
3436
3437 2014-08-20  Pedro Alves  <palves@redhat.com>
3438
3439         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3440
3441 2014-08-20  Yao Qi  <yao@codesourcery.com>
3442
3443         * amd64-tdep.c (amd64_classify): Add a blank line after the
3444         example.  Move "*/" to a new line.
3445         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3446         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3447         * dwarf2read.c (psymtab_include_file_name): Likewise.
3448
3449 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
3450             Pedro Alves  <palves@redhat.com>
3451
3452         PR symtab/14604
3453         PR symtab/14605
3454         * ada-lang.c (coerce_unspec_val_to_type): Use
3455         value_contents_copy_raw.
3456         * ada-valprint.c (val_print_packed_array_elements): Adjust.
3457         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3458         * cp-valprint.c (cp_print_value_fields): Let the common printing
3459         code handle optimized out values.
3460         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3461         * d-valprint.c (dynamic_array_type): Use
3462         value_bits_any_optimized_out.
3463         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3464         check_any_valid fields.
3465         (check_pieced_value_bits): Delete and inline ...
3466         (check_pieced_synthetic_pointer): ... here.
3467         (check_pieced_value_validity): Delete.
3468         (check_pieced_value_invalid): Delete.
3469         (pieced_value_funcs): Remove check_validity and check_any_valid
3470         fields.
3471         (read_pieced_value): Use mark_value_bits_optimized_out.
3472         (write_pieced_value): Switch to use
3473         mark_value_bytes_optimized_out.
3474         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3475         of assuming the whole value is optimized out.
3476         * findvar.c (read_frame_register_value): Remove special handling
3477         of optimized out registers.
3478         (value_from_register): Use mark_value_bytes_optimized_out.
3479         * frame-unwind.c (frame_unwind_got_optimized): Use
3480         mark_value_bytes_optimized_out.
3481         * jv-valprint.c (java_value_print): Adjust.
3482         (java_print_value_fields): Let the common printing code handle
3483         optimized out values.
3484         * mips-tdep.c (mips_print_register): Remove special handling of
3485         optimized out registers.
3486         * opencl-lang.c (lval_func_check_validity): Delete.
3487         (lval_func_check_any_valid): Delete.
3488         (opencl_value_funcs): Remove check_validity and check_any_valid
3489         fields.
3490         * p-valprint.c (pascal_object_print_value_fields): Let the common
3491         printing code handle optimized out values.
3492         * stack.c (read_frame_arg): Remove special handling of optimized
3493         out values.  Fetch both VAL and ENTRYVAL before comparing
3494         contents.  Adjust to value_available_contents_eq rename.
3495         * valprint.c (valprint_check_validity)
3496         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3497         (val_print_array_elements): Adjust.
3498         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3499         (value_bits_any_optimized_out): New function.
3500         (value_entirely_covered_by_range_vector): New function, factored
3501         out from value_entirely_unavailable.
3502         (value_entirely_unavailable): Reimplement.
3503         (value_entirely_optimized_out): New function.
3504         (insert_into_bit_range_vector): New function, factored out from
3505         mark_value_bits_unavailable.
3506         (mark_value_bits_unavailable): Reimplement.
3507         (struct ranges_and_idx): New struct.
3508         (find_first_range_overlap_and_match): New function, factored out
3509         from value_available_contents_bits_eq.
3510         (value_available_contents_bits_eq): Rename to ...
3511         (value_contents_bits_eq): ... this.  Check both unavailable
3512         contents and optimized out contents.
3513         (value_available_contents_eq): Rename to ...
3514         (value_contents_eq): ... this.
3515         (allocate_value_lazy): Remove reference to the old optimized_out
3516         boolean.
3517         (allocate_optimized_out_value): Use
3518         mark_value_bytes_optimized_out.
3519         (require_not_optimized_out): Adjust to check whether the
3520         optimized_out vec is empty.
3521         (ranges_copy_adjusted): New function, factored out from
3522         value_contents_copy_raw.
3523         (value_contents_copy_raw): Also copy the optimized out ranges.
3524         Assert the destination ranges aren't optimized out.
3525         (value_contents_copy): Update comment, remove call to
3526         require_not_optimized_out.
3527         (value_contents_equal): Adjust to check whether the optimized_out
3528         vec is empty.
3529         (set_value_optimized_out, value_optimized_out_const): Delete.
3530         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3531         New functions.
3532         (value_entirely_optimized_out, value_bits_valid): Delete.
3533         (value_copy): Take a VEC copy of the 'optimized_out' field.
3534         (value_primitive_field): Remove special handling of optimized out.
3535         (value_fetch_lazy): Assert that lazy values have no unavailable
3536         regions.  Use value_bits_any_optimized_out.  Remove some special
3537         handling for optimized out values.
3538         * value.h: Add intro comment about <optimized out> and
3539         <unavailable>.
3540         (struct lval_funcs): Remove check_validity and check_any_valid
3541         fields.
3542         (set_value_optimized_out, value_optimized_out_const): Remove.
3543         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3544         New declarations.
3545         (value_bits_any_optimized_out): New declaration.
3546         (value_bits_valid): Delete declaration.
3547         (value_available_contents_eq): Rename to ...
3548         (value_contents_eq): ... this, and extend comments.
3549
3550 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
3551
3552         Fix -fsanitize=address on unreadable inferior strings.
3553         * valprint.c (val_print_string): Fix access before BUFFER.
3554
3555 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
3556
3557         * target.c (target_struct_size): Remove.
3558         (target_struct_allocsize): Remove.
3559         (DEFAULT_ALLOCSIZE): Remove.
3560         (target_ops_p): New typedef.
3561         (DEF_VEC_P (target_ops_p)): New vector type.
3562         (target_structs): Change type to VEC (target_ops_p).
3563         (add_target_with_completer): Replace "push" code by VEC_safe_push.
3564         (find_default_run_target): Rewrite for loop following changes to
3565         target_structs.
3566
3567 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
3568
3569         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3570         Adjust code accordingly.  Adjust function description comment.
3571
3572 2014-08-19  Yao Qi  <yao@codesourcery.com>
3573
3574         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3575         types.
3576
3577 2014-08-19  Alan Modra  <amodra@gmail.com>
3578
3579         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3580         * config.in: Regenerate.
3581         * configure: Regenerate.
3582
3583 2014-08-19  Tom Tromey  <tromey@redhat.com>
3584             Gary Benson  <gbenson@redhat.com>
3585
3586         * common/common-debug.h: New file.
3587         * common/common-debug.c: Likewise.
3588         * debug.c: Likewise.
3589         * Makefile.in (SFILES): Add common/common-debug.c.
3590         (HFILES_NO_SRCDIR): Add common/common-debug.h.
3591         (COMMON_OBS): Add common-debug.o and debug.o.
3592         (common-debug.o): New rule.
3593         * common/common-defs.h: Include common-debug.h.
3594         * common/agent.c (debug_agent_printf): New function.
3595         (DEBUG_AGENT): Redefine.
3596         * nat/i386-dregs.c (debug_printf): Undefine.
3597
3598 2014-08-19  Gary Benson  <gbenson@redhat.com>
3599
3600         * common/common-defs.h: Include print-utils.h.
3601         * utils.h: Do not include print-utils.h.
3602
3603 2014-08-19  Tom Tromey  <tromey@redhat.com>
3604             Gary Benson  <gbenson@redhat.com>
3605
3606         * common/common-types.h: New file.
3607         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3608         * common/common-defs.h: Include common-types.h.
3609         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3610         (ULONGEST): Remove.
3611
3612 2014-08-19  Tom Tromey  <tromey@redhat.com>
3613             Gary Benson  <gbenson@redhat.com>
3614
3615         * common/errors.h: New file.
3616         * common/errors.c: Likewise.
3617         * Makefile.in (SFILES): Add common/errors.c.
3618         (HFILES_NO_SRCDIR): Add common/errors.h.
3619         (COMMON_OBS): Add errors.o.
3620         (errors.o): New rule.
3621         * common/common-defs.h: Include errors.h.
3622         * utils.h (perror_with_name, error, verror, warning, vwarning):
3623         Don't declare.
3624         * common/common-utils.h: (malloc_failure, internal_error):
3625         Likewise.
3626
3627 2014-08-19  Gary Benson  <gbenson@redhat.com>
3628
3629         * utils.c (internal_vproblem): Always print the message.
3630
3631 2014-08-18  Doug Evans  <dje@google.com>
3632
3633         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3634
3635 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
3636
3637         * ada-typeprint.c (type_is_full_subrange_of_target_type):
3638         Return 0 if TYPE is dynamic.
3639         (print_range): Add handling of dynamic ranges.
3640
3641 2014-08-18  Keven Boell  <keven.boell@intel.com>
3642             Joel Brobecker  <brobecker@adacore.com>
3643
3644         * gdbtypes.h (struct main_type): Add field "data_location".
3645         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3646         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3647         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3648         a dynamic data location.
3649         (resolve_dynamic_type): Add DW_AT_data_location handling.
3650         (copy_recursive, copy_type): Copy the data_location information
3651         when present.
3652         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3653         * value.c (value_from_contents_and_address): Add
3654         DW_AT_data_location handling.
3655
3656 2014-08-18  Keven Boell  <keven.boell@intel.com>
3657             Joel Brobecker  <brobecker@adacore.com>
3658
3659         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3660         field "get_object_address".
3661         * dwarf2expr.c (execute_stack_op): Add handling for
3662         DW_OP_push_object_address.
3663         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3664         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3665         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3666         (dwarf_expr_get_obj_addr): New function.
3667         (dwarf_expr_ctx_funcs): Add get_object_address field.
3668         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3669         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
3670         (dwarf2_evaluate_property): Add parameter "address".  Use it.
3671         (needs_get_obj_addr): New function.
3672         (needs_frame_ctx_funcs): Add get_object_address field.
3673         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3674         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
3675         (resolve_dynamic_array): Likewise.
3676
3677 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
3678
3679         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3680         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3681         fixed value for records and unions for which some GNAT encodings
3682         are present.
3683
3684 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
3685
3686         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3687         rewrite to avoid "else if" and "else" constructs.  Should be
3688         a no-op in practice.
3689
3690 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
3691
3692         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3693         of lexical block.
3694
3695 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
3696
3697         PR c++/17132
3698         * eval.c: Update all calls to find_overload_match.
3699         * valarith.c: Likewise.
3700         (value_user_defined_cpp_op, value_user_defined_op): New
3701         argument NOSIDE.  Update all callers.
3702         * valops.c (find_overload_match): New argument NOSIDE.
3703         * value.h (find_overload_match): Update signature.
3704
3705 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
3706
3707         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3708         'items' methods instead of 'iteritems' method on dictionaries.
3709
3710 2014-08-15  Doug Evans  <dje@google.com>
3711
3712         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3713         closer to use.
3714
3715 2014-08-15  Doug Evans  <dje@google.com>
3716
3717         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3718
3719 2014-08-15  Doug Evans  <dje@google.com>
3720
3721         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3722
3723 2014-08-15  Doug Evans  <dje@google.com>
3724
3725         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3726         unused.
3727
3728 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
3729
3730         * dcache.h: Include target.h, to avoid compile time warnings.
3731
3732 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
3733
3734         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
3735         frame_info" partial declaration.
3736         * gdbarch.h: Regenerate.
3737
3738 2014-08-15  Yao Qi  <yao@codesourcery.com>
3739
3740         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3741         Add parameter 'decode_for_pst_p'.  Callers update.
3742
3743 2014-08-13  Yao Qi  <yao@codesourcery.com>
3744
3745         PR build/17104
3746         * configure.ac: Use local variable 'pos'.
3747         * configure: Regenerated.
3748
3749 2014-08-11  Doug Evans  <dje@google.com>
3750
3751         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3752         message, it is redundant with "Reading symbols from ..." message.
3753
3754 2014-08-10  Doug Evans  <xdje42@gmail.com>
3755
3756         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3757
3758 2014-08-09  Yao Qi  <yao@codesourcery.com>
3759
3760         PR remote/9053
3761         * remote.c (remote_xfer_partial): Remove dead code.
3762
3763 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3764
3765         * ia64-linux-tdep.c: Include "regset.h".
3766         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3767         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3768         (ia64_linux_supply_fpregset): New function.
3769         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3770         (ia64_linux_regset_from_core_section): New function.
3771         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3772         method.
3773
3774 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3775
3776         * m68klinux-tdep.c: Include "regset.h".
3777         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3778         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3779         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3780         (m68k_linux_regset_from_core_section): New function.
3781         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3782         method.
3783
3784 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3785
3786         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3787         function.  Move logic to...
3788         (tilegx_linux_regmap): ... this new register map.
3789         (tilegx_linux_regset): Refer to register map, replace supply
3790         method by regcache_supply_regset, and add collect method.
3791         * tilegx-tdep.h (enum tilegx_regnum): New enum value
3792         TILEGX_FIRST_EASY_REGNUM.
3793
3794 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3795
3796         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3797         that calls regcache_supply_regset and handles the EPC register
3798         separately.  Move main logic to...
3799         (score7_linux_gregmap): ... this new register map.
3800         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3801         (score7_linux_gregset): Refer to register map.  Add collect method.
3802         (score7_linux_regset_from_core_section): Replace
3803         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3804         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3805         (struct regset): Delete unused forward declaraction.
3806         (struct pt_regs): Delete structure definition.
3807         (elf_gregset_t): Delete typedef.
3808
3809 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3810
3811         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3812         (nios2_core_regset): Add collect method.
3813
3814 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3815
3816         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3817         platform-independent and don't write to read-only input buffer.
3818         (m32r_linux_collect_gregset): New function.
3819         (m32r_linux_gregset): Add collect method.
3820
3821 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3822
3823         * hppa-linux-tdep.c (greg_map): Rename to...
3824         (hppa_linux_gregmap): ... this.  Also convert to
3825         regcache_map_entry format.
3826         (hppa_linux_supply_regset): Delete function.
3827         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
3828         (hppa_linux_fpregmap): ... this new register map.
3829         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3830         register map, replace supply method by regcache_supply_regset, and
3831         add collect method regcache_collect_regset.
3832
3833 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3834
3835         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3836         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3837         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3838         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3839         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3840         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3841         (frv_linux_supply_gregset): Replace main logic by call to
3842         regcache_supply_regset, but keep clearing gr32-gr63.
3843         (frv_linux_supply_fpregset): Delete function.
3844         (frv_linux_gregset): Refer to appropriate register map and add
3845         regcache_collect_regset as the collect method.
3846         (frv_linux_fpregset): Likewise.  Also exchange the supply method
3847         by regcache_supply_regset.
3848
3849 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3850
3851         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3852         by call to alpha_supply_int_regs.
3853         (alpha_linux_collect_gregset): New function.
3854         (alpha_linux_supply_fpregset): Replace logic by call to
3855         alpha_supply_fp_regs.
3856         (alpha_linux_collect_fpregset): New function.
3857         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3858
3859 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3860
3861         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3862         by call to regcache_collect_regset.
3863         (supply_gregset, supply_fpregset): Call regcache_supply_regset
3864         instead of aarch64_linux_supply_gregset/_fpregset.
3865         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3866         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3867         header file instead.
3868         (aarch64_linux_supply_gregset, supply_gregset_from_core)
3869         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3870         functions.  Move logic to ...
3871         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3872         register maps.
3873         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3874         refer to new register maps, replace *_regset_from_core by
3875         regcache_supply_regset, and also use regcache_collect_regset.
3876         * aarch64-linux-tdep.h: Include "regset.h".
3877         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
3878         Delete prototypes.
3879         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
3880         macros, moved from C source file.
3881         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
3882         variable declarations.
3883
3884 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3885
3886         * s390-linux-nat.c: Include "regset.h".
3887         (regmap_gregset): Delete macro.
3888         (s390_64_regmap_gregset): New register map for
3889         regcache_supply/_collect_regset.
3890         (s390_64_gregset): New regset.
3891         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
3892         (regmap_fpregset): Delete macro.
3893         (s390_native_supply, s390_native_collect): Delete functions.
3894         (supply_gregset, fill_gregset): Replace s390-specific regmap
3895         handling by a call to regcache_supply/_collect_regset.
3896         (supply_fpregset, fill_fpregset): Call regcache_supply/
3897         _collect_regset instead of s390_native_supply/_collect.
3898         (fetch_regset, store_regset): Likewise.  Also change the last
3899         parameter to a regset instead of a regmap.
3900         (s390_linux_fetch_inferior_registers)
3901         (390_linux_store_inferior_registers): Adjust last parameter in
3902         calls to fetch_regset and store_regset.
3903         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
3904         (s390_gregmap): ... this.  Also make static const and convert to
3905         regcache_map_entry format.
3906         (s390x_regmap_gregset): Delete.
3907         (s390_regmap_fpregset): Rename to...
3908         (s390_fpregmap): ... this.  Make static const and convert to
3909         regcache_map_entry format.
3910         (s390_regmap_upper, s390_regmap_last_break)
3911         (s390x_regmap_last_break, s390_regmap_system_call)
3912         (s390_regmap_tdb): Likewise.
3913         (s390_supply_regset, s390_collect_regset): Remove functions.
3914         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
3915         s390_supply_regset.
3916         (s390_gregset, s390_fpregset, s390_upper_regset)
3917         (s390_last_break_regset, s390x_last_break_regset)
3918         (s390_system_call_regset, s390_tdb_regset): Make global and
3919         replace s390_supply/_collect_regset by regcache_supply/
3920         _collect_regset.
3921         (s390x_gregset): Delete.
3922         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
3923         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
3924         (s390_regmap_fpregset, s390_regmap_last_break)
3925         (s390x_regmap_last_break, s390_regmap_system_call)
3926         (s390_regmap_tdb): Delete global variable declarations.
3927         (s390_gregset, s390_fpregset, s390_last_break_regset)
3928         (s390x_last_break_regset, s390_system_call_regset)
3929         (s390_tdb_regset): New global variable declarations.
3930
3931 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3932
3933         * regcache.c: Include "regset.h".
3934         (regcache_transfer_regset): New local function.
3935         (regcache_supply_regset, regcache_collect_regset): New functions.
3936         * regcache.h (struct regcache_map_entry): New structure.
3937         (REGCACHE_MAP_SKIP): New enum value.
3938         (regcache_supply_regset, regcache_collect_regset): New prototypes.
3939
3940 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3941
3942         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
3943         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
3944         (ppc_linux_collect_gregset ): Likewise.
3945         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
3946         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
3947         (ppc_collect_vrregset): Likewise.
3948         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
3949         Likewise.
3950
3951 2014-08-07  Yao Qi  <yao@codesourcery.com>
3952
3953         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
3954         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
3955         * remote.c (remote_read_bytes): Likewise.
3956
3957 2014-08-07  Yao Qi  <yao@codesourcery.com>
3958
3959         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
3960
3961 2014-08-07  Yao Qi  <yao@codesourcery.com>
3962
3963         PR remote/17230
3964         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
3965         TARGET_XFER_OK instead of 0.
3966
3967 2014-08-07  Gary Benson  <gbenson@redhat.com>
3968
3969         * common/common-defs.h: Include errno.h.
3970         * defs.h: Do not include errno.h.
3971         * ada-typeprint.c: Likewise.
3972         * c-typeprint.c: Likewise.
3973         * core-regset.c: Likewise.
3974         * corefile.c: Likewise.
3975         * corelow.c: Likewise.
3976         * event-loop.c: Likewise.
3977         * f-typeprint.c: Likewise.
3978         * gnu-nat.c: Likewise.
3979         * go32-nat.c: Likewise.
3980         * i386gnu-nat.c: Likewise.
3981         * m2-typeprint.c: Likewise.
3982         * nat/linux-btrace.c: Likewise.
3983         * p-typeprint.c: Likewise.
3984         * procfs.c: Likewise.
3985         * remote-sim.c: Likewise.
3986         * rs6000-nat.c: Likewise.
3987         * target.c: Likewise.
3988         * typeprint.c: Likewise.
3989         * ui-file.c: Likewise.
3990         * valops.c: Likewise.
3991         * valprint.c: Likewise.
3992
3993 2014-08-07  Gary Benson  <gbenson@redhat.com>
3994
3995         * common/common-defs.h: Include string.h.
3996         * aarch64-tdep.c: Do not include string.h.
3997         * ada-exp.y: Likewise.
3998         * ada-lang.c: Likewise.
3999         * ada-lex.l: Likewise.
4000         * ada-typeprint.c: Likewise.
4001         * ada-valprint.c: Likewise.
4002         * aix-thread.c: Likewise.
4003         * alpha-linux-tdep.c: Likewise.
4004         * alpha-mdebug-tdep.c: Likewise.
4005         * alpha-nat.c: Likewise.
4006         * alpha-osf1-tdep.c: Likewise.
4007         * alpha-tdep.c: Likewise.
4008         * alphanbsd-tdep.c: Likewise.
4009         * amd64-dicos-tdep.c: Likewise.
4010         * amd64-linux-tdep.c: Likewise.
4011         * amd64-nat.c: Likewise.
4012         * amd64-sol2-tdep.c: Likewise.
4013         * amd64fbsd-tdep.c: Likewise.
4014         * amd64obsd-tdep.c: Likewise.
4015         * arch-utils.c: Likewise.
4016         * arm-linux-nat.c: Likewise.
4017         * arm-linux-tdep.c: Likewise.
4018         * arm-tdep.c: Likewise.
4019         * arm-wince-tdep.c: Likewise.
4020         * armbsd-tdep.c: Likewise.
4021         * armnbsd-nat.c: Likewise.
4022         * armnbsd-tdep.c: Likewise.
4023         * armobsd-tdep.c: Likewise.
4024         * avr-tdep.c: Likewise.
4025         * ax-gdb.c: Likewise.
4026         * ax-general.c: Likewise.
4027         * bcache.c: Likewise.
4028         * bfin-tdep.c: Likewise.
4029         * breakpoint.c: Likewise.
4030         * build-id.c: Likewise.
4031         * buildsym.c: Likewise.
4032         * c-exp.y: Likewise.
4033         * c-lang.c: Likewise.
4034         * c-typeprint.c: Likewise.
4035         * c-valprint.c: Likewise.
4036         * charset.c: Likewise.
4037         * cli-out.c: Likewise.
4038         * cli/cli-cmds.c: Likewise.
4039         * cli/cli-decode.c: Likewise.
4040         * cli/cli-dump.c: Likewise.
4041         * cli/cli-interp.c: Likewise.
4042         * cli/cli-logging.c: Likewise.
4043         * cli/cli-script.c: Likewise.
4044         * cli/cli-setshow.c: Likewise.
4045         * cli/cli-utils.c: Likewise.
4046         * coffread.c: Likewise.
4047         * common/agent.c: Likewise.
4048         * common/buffer.c: Likewise.
4049         * common/buffer.h: Likewise.
4050         * common/common-utils.c: Likewise.
4051         * common/filestuff.c: Likewise.
4052         * common/filestuff.c: Likewise.
4053         * common/format.c: Likewise.
4054         * common/print-utils.c: Likewise.
4055         * common/rsp-low.c: Likewise.
4056         * common/signals.c: Likewise.
4057         * common/vec.h: Likewise.
4058         * common/xml-utils.c: Likewise.
4059         * core-regset.c: Likewise.
4060         * corefile.c: Likewise.
4061         * corelow.c: Likewise.
4062         * cp-abi.c: Likewise.
4063         * cp-name-parser.y: Likewise.
4064         * cp-support.c: Likewise.
4065         * cp-valprint.c: Likewise.
4066         * cris-tdep.c: Likewise.
4067         * d-exp.y: Likewise.
4068         * darwin-nat.c: Likewise.
4069         * dbxread.c: Likewise.
4070         * dcache.c: Likewise.
4071         * demangle.c: Likewise.
4072         * dicos-tdep.c: Likewise.
4073         * disasm.c: Likewise.
4074         * doublest.c: Likewise.
4075         * dsrec.c: Likewise.
4076         * dummy-frame.c: Likewise.
4077         * dwarf2-frame.c: Likewise.
4078         * dwarf2loc.c: Likewise.
4079         * dwarf2read.c: Likewise.
4080         * elfread.c: Likewise.
4081         * environ.c: Likewise.
4082         * eval.c: Likewise.
4083         * event-loop.c: Likewise.
4084         * exceptions.c: Likewise.
4085         * exec.c: Likewise.
4086         * expprint.c: Likewise.
4087         * f-exp.y: Likewise.
4088         * f-lang.c: Likewise.
4089         * f-typeprint.c: Likewise.
4090         * f-valprint.c: Likewise.
4091         * fbsd-nat.c: Likewise.
4092         * findcmd.c: Likewise.
4093         * findvar.c: Likewise.
4094         * fork-child.c: Likewise.
4095         * frame.c: Likewise.
4096         * frv-linux-tdep.c: Likewise.
4097         * frv-tdep.c: Likewise.
4098         * gdb.c: Likewise.
4099         * gdb_bfd.c: Likewise.
4100         * gdbarch.c: Likewise.
4101         * gdbarch.sh: Likewise.
4102         * gdbtypes.c: Likewise.
4103         * gnu-nat.c: Likewise.
4104         * gnu-v2-abi.c: Likewise.
4105         * gnu-v3-abi.c: Likewise.
4106         * go-exp.y: Likewise.
4107         * go-lang.c: Likewise.
4108         * go32-nat.c: Likewise.
4109         * guile/guile.c: Likewise.
4110         * guile/scm-auto-load.c: Likewise.
4111         * hppa-hpux-tdep.c: Likewise.
4112         * hppa-linux-nat.c: Likewise.
4113         * hppanbsd-tdep.c: Likewise.
4114         * hppaobsd-tdep.c: Likewise.
4115         * i386-cygwin-tdep.c: Likewise.
4116         * i386-dicos-tdep.c: Likewise.
4117         * i386-linux-tdep.c: Likewise.
4118         * i386-nto-tdep.c: Likewise.
4119         * i386-sol2-tdep.c: Likewise.
4120         * i386-tdep.c: Likewise.
4121         * i386bsd-tdep.c: Likewise.
4122         * i386gnu-nat.c: Likewise.
4123         * i386nbsd-tdep.c: Likewise.
4124         * i386obsd-tdep.c: Likewise.
4125         * i387-tdep.c: Likewise.
4126         * ia64-libunwind-tdep.c: Likewise.
4127         * ia64-linux-nat.c: Likewise.
4128         * inf-child.c: Likewise.
4129         * inf-ptrace.c: Likewise.
4130         * inf-ttrace.c: Likewise.
4131         * infcall.c: Likewise.
4132         * infcmd.c: Likewise.
4133         * inflow.c: Likewise.
4134         * infrun.c: Likewise.
4135         * interps.c: Likewise.
4136         * iq2000-tdep.c: Likewise.
4137         * irix5-nat.c: Likewise.
4138         * jv-exp.y: Likewise.
4139         * jv-lang.c: Likewise.
4140         * jv-typeprint.c: Likewise.
4141         * jv-valprint.c: Likewise.
4142         * language.c: Likewise.
4143         * linux-fork.c: Likewise.
4144         * linux-nat.c: Likewise.
4145         * lm32-tdep.c: Likewise.
4146         * m2-exp.y: Likewise.
4147         * m2-typeprint.c: Likewise.
4148         * m32c-tdep.c: Likewise.
4149         * m32r-linux-nat.c: Likewise.
4150         * m32r-linux-tdep.c: Likewise.
4151         * m32r-rom.c: Likewise.
4152         * m32r-tdep.c: Likewise.
4153         * m68hc11-tdep.c: Likewise.
4154         * m68k-tdep.c: Likewise.
4155         * m68kbsd-tdep.c: Likewise.
4156         * m68klinux-nat.c: Likewise.
4157         * m68klinux-tdep.c: Likewise.
4158         * m88k-tdep.c: Likewise.
4159         * machoread.c: Likewise.
4160         * macrocmd.c: Likewise.
4161         * main.c: Likewise.
4162         * mdebugread.c: Likewise.
4163         * mem-break.c: Likewise.
4164         * memattr.c: Likewise.
4165         * memory-map.c: Likewise.
4166         * mep-tdep.c: Likewise.
4167         * mi/mi-cmd-break.c: Likewise.
4168         * mi/mi-cmd-disas.c: Likewise.
4169         * mi/mi-cmd-env.c: Likewise.
4170         * mi/mi-cmd-stack.c: Likewise.
4171         * mi/mi-cmd-var.c: Likewise.
4172         * mi/mi-cmds.c: Likewise.
4173         * mi/mi-console.c: Likewise.
4174         * mi/mi-getopt.c: Likewise.
4175         * mi/mi-interp.c: Likewise.
4176         * mi/mi-main.c: Likewise.
4177         * mi/mi-parse.c: Likewise.
4178         * microblaze-rom.c: Likewise.
4179         * microblaze-tdep.c: Likewise.
4180         * mingw-hdep.c: Likewise.
4181         * minidebug.c: Likewise.
4182         * minsyms.c: Likewise.
4183         * mips-irix-tdep.c: Likewise.
4184         * mips-linux-tdep.c: Likewise.
4185         * mips-tdep.c: Likewise.
4186         * mips64obsd-tdep.c: Likewise.
4187         * mipsnbsd-tdep.c: Likewise.
4188         * mipsread.c: Likewise.
4189         * mn10300-linux-tdep.c: Likewise.
4190         * mn10300-tdep.c: Likewise.
4191         * monitor.c: Likewise.
4192         * moxie-tdep.c: Likewise.
4193         * mt-tdep.c: Likewise.
4194         * nat/linux-btrace.c: Likewise.
4195         * nat/linux-osdata.c: Likewise.
4196         * nat/linux-procfs.c: Likewise.
4197         * nat/linux-ptrace.c: Likewise.
4198         * nat/linux-waitpid.c: Likewise.
4199         * nbsd-tdep.c: Likewise.
4200         * nios2-linux-tdep.c: Likewise.
4201         * nto-procfs.c: Likewise.
4202         * nto-tdep.c: Likewise.
4203         * objc-lang.c: Likewise.
4204         * objfiles.c: Likewise.
4205         * opencl-lang.c: Likewise.
4206         * osabi.c: Likewise.
4207         * osdata.c: Likewise.
4208         * p-exp.y: Likewise.
4209         * p-lang.c: Likewise.
4210         * p-typeprint.c: Likewise.
4211         * parse.c: Likewise.
4212         * posix-hdep.c: Likewise.
4213         * ppc-linux-nat.c: Likewise.
4214         * ppc-sysv-tdep.c: Likewise.
4215         * ppcfbsd-tdep.c: Likewise.
4216         * ppcnbsd-tdep.c: Likewise.
4217         * ppcobsd-tdep.c: Likewise.
4218         * printcmd.c: Likewise.
4219         * procfs.c: Likewise.
4220         * prologue-value.c: Likewise.
4221         * python/py-auto-load.c: Likewise.
4222         * python/py-gdb-readline.c: Likewise.
4223         * ravenscar-thread.c: Likewise.
4224         * regcache.c: Likewise.
4225         * registry.c: Likewise.
4226         * remote-fileio.c: Likewise.
4227         * remote-m32r-sdi.c: Likewise.
4228         * remote-mips.c: Likewise.
4229         * remote-notif.c: Likewise.
4230         * remote-sim.c: Likewise.
4231         * remote.c: Likewise.
4232         * reverse.c: Likewise.
4233         * rs6000-aix-tdep.c: Likewise.
4234         * ser-base.c: Likewise.
4235         * ser-go32.c: Likewise.
4236         * ser-mingw.c: Likewise.
4237         * ser-pipe.c: Likewise.
4238         * ser-tcp.c: Likewise.
4239         * ser-unix.c: Likewise.
4240         * serial.c: Likewise.
4241         * sh-tdep.c: Likewise.
4242         * sh64-tdep.c: Likewise.
4243         * shnbsd-tdep.c: Likewise.
4244         * skip.c: Likewise.
4245         * sol-thread.c: Likewise.
4246         * solib-dsbt.c: Likewise.
4247         * solib-frv.c: Likewise.
4248         * solib-osf.c: Likewise.
4249         * solib-som.c: Likewise.
4250         * solib-spu.c: Likewise.
4251         * solib-target.c: Likewise.
4252         * solib.c: Likewise.
4253         * somread.c: Likewise.
4254         * source.c: Likewise.
4255         * sparc-nat.c: Likewise.
4256         * sparc-sol2-tdep.c: Likewise.
4257         * sparc-tdep.c: Likewise.
4258         * sparc64-tdep.c: Likewise.
4259         * sparc64fbsd-tdep.c: Likewise.
4260         * sparc64nbsd-tdep.c: Likewise.
4261         * sparcnbsd-tdep.c: Likewise.
4262         * spu-linux-nat.c: Likewise.
4263         * spu-multiarch.c: Likewise.
4264         * spu-tdep.c: Likewise.
4265         * stabsread.c: Likewise.
4266         * stack.c: Likewise.
4267         * std-regs.c: Likewise.
4268         * symfile.c: Likewise.
4269         * symmisc.c: Likewise.
4270         * symtab.c: Likewise.
4271         * target.c: Likewise.
4272         * thread.c: Likewise.
4273         * tilegx-linux-nat.c: Likewise.
4274         * tilegx-tdep.c: Likewise.
4275         * top.c: Likewise.
4276         * tracepoint.c: Likewise.
4277         * tui/tui-command.c: Likewise.
4278         * tui/tui-data.c: Likewise.
4279         * tui/tui-disasm.c: Likewise.
4280         * tui/tui-file.c: Likewise.
4281         * tui/tui-layout.c: Likewise.
4282         * tui/tui-out.c: Likewise.
4283         * tui/tui-regs.c: Likewise.
4284         * tui/tui-source.c: Likewise.
4285         * tui/tui-stack.c: Likewise.
4286         * tui/tui-win.c: Likewise.
4287         * tui/tui-windata.c: Likewise.
4288         * tui/tui-winsource.c: Likewise.
4289         * typeprint.c: Likewise.
4290         * ui-file.c: Likewise.
4291         * ui-out.c: Likewise.
4292         * user-regs.c: Likewise.
4293         * utils.c: Likewise.
4294         * v850-tdep.c: Likewise.
4295         * valarith.c: Likewise.
4296         * valops.c: Likewise.
4297         * valprint.c: Likewise.
4298         * value.c: Likewise.
4299         * varobj.c: Likewise.
4300         * vax-tdep.c: Likewise.
4301         * vaxnbsd-tdep.c: Likewise.
4302         * vaxobsd-tdep.c: Likewise.
4303         * windows-nat.c: Likewise.
4304         * xcoffread.c: Likewise.
4305         * xml-support.c: Likewise.
4306         * xstormy16-tdep.c: Likewise.
4307         * xtensa-linux-nat.c: Likewise.
4308
4309 2014-08-07  Gary Benson  <gbenson@redhat.com>
4310
4311         * common/common-defs.h: Include gdb_assert.h.
4312         * aarch64-tdep.c: Do not include gdb_assert.h.
4313         * addrmap.c: Likewise.
4314         * aix-thread.c: Likewise.
4315         * alpha-linux-tdep.c: Likewise.
4316         * alpha-mdebug-tdep.c: Likewise.
4317         * alphanbsd-tdep.c: Likewise.
4318         * amd64-nat.c: Likewise.
4319         * amd64-tdep.c: Likewise.
4320         * amd64bsd-nat.c: Likewise.
4321         * amd64fbsd-nat.c: Likewise.
4322         * amd64fbsd-tdep.c: Likewise.
4323         * amd64nbsd-nat.c: Likewise.
4324         * amd64nbsd-tdep.c: Likewise.
4325         * amd64obsd-nat.c: Likewise.
4326         * amd64obsd-tdep.c: Likewise.
4327         * arch-utils.c: Likewise.
4328         * arm-tdep.c: Likewise.
4329         * armbsd-tdep.c: Likewise.
4330         * auxv.c: Likewise.
4331         * bcache.c: Likewise.
4332         * bfin-tdep.c: Likewise.
4333         * blockframe.c: Likewise.
4334         * breakpoint.c: Likewise.
4335         * bsd-kvm.c: Likewise.
4336         * bsd-uthread.c: Likewise.
4337         * buildsym.c: Likewise.
4338         * c-exp.y: Likewise.
4339         * c-lang.c: Likewise.
4340         * charset.c: Likewise.
4341         * cleanups.c: Likewise.
4342         * cli-out.c: Likewise.
4343         * cli/cli-decode.c: Likewise.
4344         * cli/cli-dump.c: Likewise.
4345         * cli/cli-logging.c: Likewise.
4346         * cli/cli-script.c: Likewise.
4347         * cli/cli-utils.c: Likewise.
4348         * coffread.c: Likewise.
4349         * common/common-utils.c: Likewise.
4350         * common/queue.h: Likewise.
4351         * common/signals.c: Likewise.
4352         * common/vec.h: Likewise.
4353         * complaints.c: Likewise.
4354         * completer.c: Likewise.
4355         * corelow.c: Likewise.
4356         * cp-abi.c: Likewise.
4357         * cp-name-parser.y: Likewise.
4358         * cp-namespace.c: Likewise.
4359         * cp-support.c: Likewise.
4360         * cris-tdep.c: Likewise.
4361         * dbxread.c: Likewise.
4362         * dictionary.c: Likewise.
4363         * doublest.c: Likewise.
4364         * dsrec.c: Likewise.
4365         * dummy-frame.c: Likewise.
4366         * dwarf2-frame-tailcall.c: Likewise.
4367         * dwarf2-frame.c: Likewise.
4368         * dwarf2expr.c: Likewise.
4369         * dwarf2loc.c: Likewise.
4370         * dwarf2read.c: Likewise.
4371         * eval.c: Likewise.
4372         * event-loop.c: Likewise.
4373         * exceptions.c: Likewise.
4374         * expprint.c: Likewise.
4375         * f-valprint.c: Likewise.
4376         * fbsd-nat.c: Likewise.
4377         * findvar.c: Likewise.
4378         * frame-unwind.c: Likewise.
4379         * frame.c: Likewise.
4380         * frv-tdep.c: Likewise.
4381         * gcore.c: Likewise.
4382         * gdb-dlfcn.c: Likewise.
4383         * gdb_bfd.c: Likewise.
4384         * gdbarch.c: Likewise.
4385         * gdbarch.sh: Likewise.
4386         * gdbtypes.c: Likewise.
4387         * gnu-nat.c: Likewise.
4388         * gnu-v3-abi.c: Likewise.
4389         * go-lang.c: Likewise.
4390         * guile/scm-exception.c: Likewise.
4391         * guile/scm-gsmob.c: Likewise.
4392         * guile/scm-lazy-string.c: Likewise.
4393         * guile/scm-math.c: Likewise.
4394         * guile/scm-pretty-print.c: Likewise.
4395         * guile/scm-safe-call.c: Likewise.
4396         * guile/scm-utils.c: Likewise.
4397         * guile/scm-value.c: Likewise.
4398         * h8300-tdep.c: Likewise.
4399         * hppa-hpux-nat.c: Likewise.
4400         * hppa-tdep.c: Likewise.
4401         * hppanbsd-tdep.c: Likewise.
4402         * hppaobsd-tdep.c: Likewise.
4403         * i386-darwin-nat.c: Likewise.
4404         * i386-darwin-tdep.c: Likewise.
4405         * i386-nto-tdep.c: Likewise.
4406         * i386-tdep.c: Likewise.
4407         * i386bsd-nat.c: Likewise.
4408         * i386fbsd-tdep.c: Likewise.
4409         * i386gnu-nat.c: Likewise.
4410         * i386nbsd-tdep.c: Likewise.
4411         * i386obsd-tdep.c: Likewise.
4412         * i387-tdep.c: Likewise.
4413         * ia64-libunwind-tdep.c: Likewise.
4414         * ia64-tdep.c: Likewise.
4415         * inf-ptrace.c: Likewise.
4416         * inf-ttrace.c: Likewise.
4417         * infcall.c: Likewise.
4418         * infcmd.c: Likewise.
4419         * infrun.c: Likewise.
4420         * inline-frame.c: Likewise.
4421         * interps.c: Likewise.
4422         * jv-lang.c: Likewise.
4423         * jv-typeprint.c: Likewise.
4424         * linux-fork.c: Likewise.
4425         * linux-nat.c: Likewise.
4426         * linux-thread-db.c: Likewise.
4427         * m32c-tdep.c: Likewise.
4428         * m32r-linux-nat.c: Likewise.
4429         * m32r-tdep.c: Likewise.
4430         * m68k-tdep.c: Likewise.
4431         * m68kbsd-nat.c: Likewise.
4432         * m68kbsd-tdep.c: Likewise.
4433         * m88k-tdep.c: Likewise.
4434         * machoread.c: Likewise.
4435         * macroexp.c: Likewise.
4436         * macrotab.c: Likewise.
4437         * maint.c: Likewise.
4438         * mdebugread.c: Likewise.
4439         * memory-map.c: Likewise.
4440         * mep-tdep.c: Likewise.
4441         * mi/mi-common.c: Likewise.
4442         * microblaze-tdep.c: Likewise.
4443         * mingw-hdep.c: Likewise.
4444         * mips-linux-nat.c: Likewise.
4445         * mips-linux-tdep.c: Likewise.
4446         * mips-tdep.c: Likewise.
4447         * mips64obsd-tdep.c: Likewise.
4448         * mipsnbsd-tdep.c: Likewise.
4449         * mn10300-linux-tdep.c: Likewise.
4450         * mn10300-tdep.c: Likewise.
4451         * moxie-tdep.c: Likewise.
4452         * mt-tdep.c: Likewise.
4453         * nat/linux-btrace.c: Likewise.
4454         * nat/linux-osdata.c: Likewise.
4455         * nat/linux-ptrace.c: Likewise.
4456         * nat/mips-linux-watch.c: Likewise.
4457         * nios2-linux-tdep.c: Likewise.
4458         * nios2-tdep.c: Likewise.
4459         * objc-lang.c: Likewise.
4460         * objfiles.c: Likewise.
4461         * obsd-nat.c: Likewise.
4462         * opencl-lang.c: Likewise.
4463         * osabi.c: Likewise.
4464         * parse.c: Likewise.
4465         * ppc-linux-nat.c: Likewise.
4466         * ppc-sysv-tdep.c: Likewise.
4467         * ppcfbsd-nat.c: Likewise.
4468         * ppcfbsd-tdep.c: Likewise.
4469         * ppcnbsd-nat.c: Likewise.
4470         * ppcnbsd-tdep.c: Likewise.
4471         * ppcobsd-nat.c: Likewise.
4472         * ppcobsd-tdep.c: Likewise.
4473         * printcmd.c: Likewise.
4474         * procfs.c: Likewise.
4475         * prologue-value.c: Likewise.
4476         * psymtab.c: Likewise.
4477         * python/py-lazy-string.c: Likewise.
4478         * python/py-value.c: Likewise.
4479         * regcache.c: Likewise.
4480         * reggroups.c: Likewise.
4481         * registry.c: Likewise.
4482         * remote-sim.c: Likewise.
4483         * remote.c: Likewise.
4484         * rs6000-aix-tdep.c: Likewise.
4485         * rs6000-tdep.c: Likewise.
4486         * s390-linux-tdep.c: Likewise.
4487         * score-tdep.c: Likewise.
4488         * ser-base.c: Likewise.
4489         * ser-mingw.c: Likewise.
4490         * sh-tdep.c: Likewise.
4491         * sh64-tdep.c: Likewise.
4492         * solib-darwin.c: Likewise.
4493         * solib-spu.c: Likewise.
4494         * solib-svr4.c: Likewise.
4495         * source.c: Likewise.
4496         * sparc-nat.c: Likewise.
4497         * sparc-sol2-tdep.c: Likewise.
4498         * sparc-tdep.c: Likewise.
4499         * sparc64-sol2-tdep.c: Likewise.
4500         * sparc64-tdep.c: Likewise.
4501         * sparc64fbsd-tdep.c: Likewise.
4502         * sparc64nbsd-tdep.c: Likewise.
4503         * sparc64obsd-tdep.c: Likewise.
4504         * sparcnbsd-tdep.c: Likewise.
4505         * sparcobsd-tdep.c: Likewise.
4506         * spu-multiarch.c: Likewise.
4507         * spu-tdep.c: Likewise.
4508         * stabsread.c: Likewise.
4509         * stack.c: Likewise.
4510         * symfile.c: Likewise.
4511         * symtab.c: Likewise.
4512         * target-descriptions.c: Likewise.
4513         * target-memory.c: Likewise.
4514         * target.c: Likewise.
4515         * tic6x-linux-tdep.c: Likewise.
4516         * tic6x-tdep.c: Likewise.
4517         * tilegx-linux-nat.c: Likewise.
4518         * tilegx-tdep.c: Likewise.
4519         * top.c: Likewise.
4520         * tramp-frame.c: Likewise.
4521         * tui/tui-out.c: Likewise.
4522         * tui/tui-winsource.c: Likewise.
4523         * ui-out.c: Likewise.
4524         * user-regs.c: Likewise.
4525         * utils.c: Likewise.
4526         * v850-tdep.c: Likewise.
4527         * valops.c: Likewise.
4528         * value.c: Likewise.
4529         * varobj.c: Likewise.
4530         * vax-nat.c: Likewise.
4531         * xml-syscall.c: Likewise.
4532         * xml-tdesc.c: Likewise.
4533         * xstormy16-tdep.c: Likewise.
4534         * xtensa-linux-nat.c: Likewise.
4535         * xtensa-tdep.c: Likewise.
4536
4537 2014-08-07  Gary Benson  <gbenson@redhat.com>
4538
4539         * common/common-defs.h: Include common-utils.h.
4540         * defs.h: Do not include common-utils.h.
4541         * common/gdb_assert.h: Likewise.
4542         * darwin-nat.h: Likewise.
4543         * nat/linux-btrace.c: Likewise.
4544         * target/waitstatus.h: Likewise.
4545
4546 2014-08-07  Gary Benson  <gbenson@redhat.com>
4547
4548         * common/common-defs.h: Include ptid.h.
4549         * defs.h: Do not include ptid.h.
4550         * inferior.h: Likewise.
4551         * infrun.h: Likewise.
4552         * nat/linux-btrace.h: Likewise.
4553         * nat/linux-osdata.h: Likewise.
4554         * target/waitstatus.h: Likewise.
4555
4556 2014-08-07  Gary Benson  <gbenson@redhat.com>
4557
4558         * common/common-defs.h: Include gdb_locale.h.
4559         * defs.h: Do not include gdb_locale.h.
4560
4561 2014-08-07  Gary Benson  <gbenson@redhat.com>
4562
4563         * common/common-defs.h: Include gdb/signals.h.
4564         * defs.h: Do not include gdb/signals.h.
4565
4566 2014-08-07  Gary Benson  <gbenson@redhat.com>
4567
4568         * common/common-defs.h: Include pathmax.h.
4569         * defs.h: Do not include pathmax.h.
4570
4571 2014-08-07  Gary Benson  <gbenson@redhat.com>
4572
4573         * common/common-defs.h: Include libiberty.h.
4574         * defs.h: Do not include libiberty.h.
4575         * common/queue.h: Likewise.
4576         * cp-name-parser.y: Likewise.
4577         * mi/mi-cmd-catch.c: Likewise.
4578         * python/python.c: Likewise.
4579
4580 2014-08-07  Gary Benson  <gbenson@redhat.com>
4581
4582         * common/common-defs.h: Include ansidecl.h.
4583         * defs.h: Do not include ansidecl.h.
4584         * common/buffer.h: Likewise.
4585         * common/common-utils.h: Likewise.
4586
4587 2014-08-07  Gary Benson  <gbenson@redhat.com>
4588
4589         * common/common-defs.h: Include stddef.h.
4590         * defs.h: Do not include stddef.h.
4591         * common/common-utils.h: Likewise.
4592         * amd64fbsd-nat.c: Likewise.
4593         * bcache.c: Likewise.
4594         * charset.c: Likewise.
4595         * common/buffer.h: Likewise.
4596         * common/vec.h: Likewise.
4597         * i386bsd-nat.c: Likewise.
4598         * nat/linux-btrace.h: Likewise.
4599         * ppcfbsd-nat.c: Likewise.
4600         * ppcnbsd-tdep.h: Likewise.
4601         * ppcobsd-nat.c: Likewise.
4602         * ppcobsd-tdep.h: Likewise.
4603         * python/py-gdb-readline.c: Likewise.
4604
4605 2014-08-07  Gary Benson  <gbenson@redhat.com>
4606
4607         * common/common-defs.h: Include stdarg.h.
4608         * defs.h: Do not include stdarg.h.
4609         * ada-lang.c: Likewise.
4610         * common/common-utils.h: Likewise.
4611         * guile/scm-string.c: Likewise.
4612         * guile/scm-utils.c: Likewise.
4613         * m32c-tdep.c: Likewise.
4614
4615 2014-08-07  Gary Benson  <gbenson@redhat.com>
4616
4617         * common/common-defs.h: Include stdlib.h.
4618         * defs.h: Do not include stdlib.h.
4619         * addrmap.c: Likewise.
4620         * bcache.c: Likewise.
4621         * common/buffer.c: Likewise.
4622         * common/common-utils.c: Likewise.
4623         * cp-name-parser.y: Likewise.
4624         * go32-nat.c: Likewise.
4625         * mn10300-linux-tdep.c: Likewise.
4626         * nat/linux-osdata.c: Likewise.
4627         * tui/tui.c: Likewise.
4628         * windows-nat.c: Likewise.
4629
4630 2014-08-07  Gary Benson  <gbenson@redhat.com>
4631
4632         * common/common-defs.h: Include stdio.h.
4633         * defs.h: Do not include stdio.h.
4634         * ada-lang.c: Likewise.
4635         * common/buffer.c: Likewise.
4636         * common/common-utils.c: Likewise.
4637         * cp-name-parser.y: Likewise.
4638         * gnu-nat.c: Likewise.
4639         * go32-nat.c: Likewise.
4640         * i386gnu-nat.c: Likewise.
4641         * proc-api.c: Likewise.
4642         * proc-events.c: Likewise.
4643         * proc-flags.c: Likewise.
4644         * proc-why.c: Likewise.
4645         * python/python-internal.h: Likewise.
4646         * target-memory.c: Likewise.
4647         * tui/tui-io.c: Likewise.
4648         * tui/tui.c: Likewise.
4649
4650 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
4651
4652         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4653         (scan_dyntag_auxv): Same.
4654
4655 2014-08-06  Yao Qi  <yao@codesourcery.com>
4656
4657         * amd64-linux-nat.c: Remove duplicated include
4658         "x86-linux-nat.h".
4659         * i386-linux-nat.c: Likewise.
4660
4661 2014-08-06  Yao Qi  <yao@codesourcery.com>
4662
4663         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4664         operand" with "Special opcode" in comments.
4665
4666 2014-08-05  Gary Benson  <gbenson@redhat.com>
4667
4668         * interps.c (initialize_interps): Remove prototype.
4669         (interpreter_initialized): Remove static global.
4670         (interp_add): Do not call initialize_interps.
4671         (initialize_interps): Remove function.
4672
4673 2014-08-05  Gary Benson  <gbenson@redhat.com>
4674
4675         * utils.c (vwarning): Remove spurious va_end.
4676
4677 2014-08-05  Alan Modra  <amodra@gmail.com>
4678
4679         * charset.c (convert_between_encodings): Cast result of obstack_base.
4680         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4681         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4682         (read_unwind_info): Use size_t for some locals.
4683         * jit.c (finalize_symtab): Likewise.
4684         * utils.c (hashtab_obstack_allocate): Likewise.
4685         * symmisc.c (print_objfile_statistics): Update format strings.
4686
4687 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
4688
4689         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4690         (Changes in GDB 7.8): ... here.
4691
4692 2014-08-04  Tom Tromey  <tromey@redhat.com>
4693
4694         * target.c (set_targetdebug): New function.
4695         (initialize_targets): Pass set_targetdebug when creating "set
4696         debug target".
4697
4698 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
4699
4700         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4701         if detecting a variable-sized field that is not the last field.
4702         Fix struct type length computation.
4703
4704 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
4705
4706         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4707         Add debug trace.
4708
4709 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
4710
4711         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4712         Remove "+ 8" offset in computation of CHAIN_VMA.
4713
4714 2014-07-31  Doug Evans  <dje@google.com>
4715
4716         * inflow.c (child_terminal_inferior): Add comment.
4717         (child_terminal_ours_for_output): Add comment.
4718         (child_terminal_ours): Add comment.
4719         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4720         (linux_nat_terminal_ours): Add comment.
4721
4722 2014-07-31  Gary Benson  <gbenson@redhat.com>
4723
4724         * common/btrace-common.h: Do not include defs.h or server.h.
4725         * nat/mips-linux-watch.h: Likewise.
4726         * gdb-dlfcn.h: Do not include defs.h.
4727         * tracefile.h: Likewise.
4728
4729 2014-07-30  Roland McGrath  <mcgrathr@google.com>
4730
4731         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4732
4733 2014-07-30  Tom Tromey  <tromey@redhat.com>
4734
4735         * bsd-kvm.c (bsd_kvm_open): Constify.
4736         * corelow.c (core_open): Constify.
4737         * ctf.c (ctf_open): Constify.
4738         * dbug-rom.c (dbug_open): Constify.
4739         * exec.c (exec_open): Constify.
4740         * m32r-rom.c (m32r_open, mon2000_open): Constify.
4741         * microblaze-rom.c (picobug_open): Constify.
4742         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4743         Constify.
4744         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4745         * record-btrace.c (record_btrace_open): Constify.
4746         * record-full.c (record_full_core_open_1, record_full_open_1)
4747         (record_full_open): Constify.
4748         * remote-m32r-sdi.c (m32r_open): Constify.
4749         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4750         (rockhopper_open, lsi_open): Constify.
4751         * remote-sim.c (gdbsim_open): Constify.
4752         * remote.c (remote_open, extended_remote_open, remote_open_1):
4753         Constify.
4754         * target.h (struct target_ops) <to_open>: Make "arg" const.
4755         * tracefile-tfile.c (tfile_open): Constify.
4756
4757 2014-07-30  Tom Tromey  <tromey@redhat.com>
4758
4759         * breakpoint.c (map_breakpoint_numbers): Update.
4760         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
4761         (get_number_const): New function.
4762         (get_number): Rewrite using get_number_const.
4763         (init_number_or_range): Make "string" const.
4764         (number_is_in_list): Make "list" const.
4765         * cli/cli-utils.h (get_number_const): Declare.
4766         (struct get_number_or_range_state) <string, end_ptr>: Now const.
4767         (init_number_or_range, number_is_in_list): Update.
4768         * printcmd.c (map_display_numbers): Update.
4769         * value.c (value_from_history_ref): Constify.
4770         * value.h (value_from_history_ref): Update.
4771
4772 2014-07-30  Tom Tromey  <tromey@redhat.com>
4773
4774         * corefile.c (hook_type, call_extra_exec_file_hooks)
4775         (specify_exec_file_hook): Constify.
4776         * exec.c (exec_file_attach): Make "filename" const.
4777         * gdbcore.h (deprecated_exec_file_display_hook)
4778         (specify_exec_file_hook, exec_file_attach): Constify.
4779         * main.c (captured_main): Use catch_command_errors_const.
4780
4781 2014-07-30  Tom Tromey  <tromey@redhat.com>
4782
4783         * target.c (open_target): New function.
4784         (add_target_with_completer, add_deprecated_target_alias): Use
4785         set_cmd_sfunc, set_cmd_context.
4786         (debug_to_open): Remove.
4787         (setup_target_debug): Update.
4788
4789 2014-07-30  Yao Qi  <yao@codesourcery.com>
4790
4791         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4792         comments.
4793         * parse.c (exp_iterate): Update comments.
4794
4795 2014-07-30  Gary Benson  <gbenson@redhat.com>
4796
4797         * common/common-defs.h: New file.
4798         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4799         * defs.h: Include common-defs.h.
4800         Do not include config.h or build-gnulib/config.h.
4801
4802 2014-07-30  Gary Benson  <gbenson@redhat.com>
4803
4804         * common/common-utils.h: Do not include config.h.
4805         * nat/linux-btrace.h: Likewise.
4806
4807 2014-07-30  Gary Benson  <gbenson@redhat.com>
4808
4809         * btrace.c: Include defs.h.
4810         * common/ptid.c: Include defs.h or server.h as appropriate.
4811         * nat/mips-linux-watch.c: Likewise.
4812
4813 2014-07-29  Tom Tromey  <tromey@redhat.com>
4814
4815         * target.c (target_is_pushed): Simplify.
4816
4817 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
4818
4819         GDB 7.8 released.
4820
4821 2014-07-29  Yao Qi  <yao@codesourcery.com>
4822
4823         PR gdb/17206
4824         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4825
4826 2014-07-28  Doug Evans  <xdje42@gmail.com>
4827
4828         PR guile/17203
4829         * guile/scm-param.c (pascm_parameter_defined_p): New function.
4830         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
4831         parameters.
4832
4833 2014-07-28  Will Newton  <will.newton@linaro.org>
4834
4835         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4836         (THUMB2_SET_R7_SIGRETURN2): Likewise.
4837         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4838         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4839         (THUMB2_EABI_SYSCALL): Likewise.
4840         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4841         struct tramp_frame.
4842         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4843         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4844
4845 2014-07-27  Doug Evans  <xdje42@gmail.com>
4846
4847         * guile/scm-param.c (pascm_print_param_smob): Fix output.
4848
4849 2014-07-27  Doug Evans  <xdje42@gmail.com>
4850
4851         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4852
4853 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
4854             Doug Evans  <xdje42@gmail.com>
4855
4856         PR guile/17146
4857         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4858         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4859         * configure.ac: Try to use guild to compile an scm file, if it fails
4860         then disable guile support.
4861         * configure: Regenerate.
4862         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4863         GUILE_FILE_LIST.
4864         (GUILE_COMPILED_FILES): New variable.
4865         (GUILE_FILES) Update.
4866         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4867         (stamp-guile): Compile scm files.
4868         * guile/guile.c (boot_guile_support): New function.
4869         (standard_throw_args_p): New function.
4870         (print_standard_throw_error, print_throw_error): New functions.
4871         (handle_boot_error): New function.
4872         (initialize_scheme_side): Rewrite to call boot_guile_support.
4873         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
4874         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
4875
4876 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
4877             Doug Evans  <xdje42@gmail.com>
4878
4879         PR guile/17146
4880         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
4881         * guile/lib/gdb/support.scm: New file.
4882         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
4883         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
4884         All uses updated.
4885         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
4886         All uses updated.
4887         (%assert-type): Ditto, and renamed to assert-type.
4888         (%exception-print-style): Delete.
4889
4890 2014-07-26  Doug Evans  <xdje42@gmail.com>
4891
4892         PR build/17105
4893         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
4894         * configure: Regenerate.
4895         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
4896         PYTHON_FILES.
4897         (PYTHON_FILES): New variable.
4898         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
4899         (GUILE_FILES): New variable.
4900         (stamp-python, install-python, uninstall-python): Handle empty
4901         file list.
4902         (stamp-guile, install-guile, uninstall-guile): Ditto.
4903
4904 2014-07-26  Doug Evans  <xdje42@gmail.com>
4905
4906         PR guile/17177
4907         * guile/lib/gdb.scm (pretty-printers): Export.
4908         (set-pretty-printers!): Export.
4909         * guile/lib/gdb/printing.scm (gdb module): Update.
4910         (prepend-pretty-printer!, append-pretty-printer!): Update.
4911         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
4912         (pretty_printer_list_var): Delete.
4913         (pretty_printer_list): New static global.
4914         (gdbscm_pretty_printers): New function.
4915         (gdbscm_set_pretty_printers_x): New function.
4916         (ppscm_find_pretty_printer_from_gdb): Update.
4917         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
4918         (gdbscm_initialize_pretty_printers): Update.
4919
4920 2014-07-26  Doug Evans  <xdje42@gmail.com>
4921
4922         PR 17185
4923         * configure.ac: Add check for header gc/gc.h.
4924         Add check for function setenv.
4925         * configure: Regenerate.
4926         * config.in: Regenerate.
4927         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
4928
4929 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
4930
4931         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
4932         variation in gdbarch matching.
4933
4934 2014-07-25  Tom Tromey  <tromey@redhat.com>
4935
4936         * exec.c (using_exec_ops): Remove.
4937         (exec_close_1): Update.  Remove extraneous block, reindent.
4938         (add_target_sections): Use target_is_pushed.
4939
4940 2014-07-25  Pedro Alves  <palves@redhat.com>
4941
4942         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
4943         * monitor.c (monitor_create_inferior): Likewise.
4944         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
4945         * remote-sim.c (gdbsim_create_inferior): Likewise.
4946         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4947         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4948         * windows-nat.c (do_initial_windows_stuff): Likewise.
4949
4950 2014-07-25  Pedro Alves  <palves@redhat.com>
4951
4952         * NEWS: Mention signal passing and "signal" command changes.
4953         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
4954         comment.
4955         * breakpoint.c (until_break_command): Adjust clear_proceed_status
4956         call.
4957         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
4958         * infcmd.c (proceed_thread_callback, continue_1, step_once)
4959         (jump_command): Adjust clear_proceed_status call.
4960         (signal_command): Warn if other thread that are resumed have
4961         signals that will be delivered.  Adjust clear_proceed_status call.
4962         (until_next_command, finish_command)
4963         (proceed_after_attach_callback, attach_command_post_wait)
4964         (attach_command): Adjust clear_proceed_status call.
4965         * infrun.c (proceed_after_vfork_done): Likewise.
4966         (proceed_after_attach_callback): Adjust comment.
4967         (clear_proceed_status_thread): Clear stop_signal if not in pass
4968         state.
4969         (clear_proceed_status_callback): Delete.
4970         (clear_proceed_status): New 'step' parameter.  Only clear the
4971         proceed status of threads the command being prepared is about to
4972         resume.
4973         (proceed): If passed in an explicit signal, override stop_signal
4974         with it.  Don't pass the last stop signal to the thread we're
4975         resuming.
4976         (init_wait_for_inferior): Adjust clear_proceed_status call.
4977         (switch_back_to_stepped_thread): Clear the signal if it should not
4978         be passed.
4979         * infrun.h (clear_proceed_status): New 'step' parameter.
4980         (user_visible_resume_ptid): Add comment.
4981         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
4982         signal is in pass state.
4983         * remote.c (append_pending_thread_resumptions): Likewise.
4984         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
4985
4986 2014-07-25  Tom Tromey  <tromey@redhat.com>
4987
4988         * target.h (target_stopped_data_address)
4989         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
4990         parentheses.
4991
4992 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
4993
4994         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
4995         comments.
4996         (avr_pointer_to_address): Likewise.
4997
4998 2014-07-24  Tom Tromey  <tromey@redhat.com>
4999
5000         * monitor.c (compile_pattern): Update.
5001         * target.h (struct target_ops) <to_shortname, to_longname,
5002         to_doc>: Now const.
5003
5004 2014-07-24  Tom Tromey  <tromey@redhat.com>
5005
5006         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5007         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5008         (add_info_alias, add_com): Make "doc" const.
5009         (print_doc_line): Make "str" const.
5010         (delete_cmd): Update.
5011         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5012         (print_doc_line): Update.
5013         * cli/cli-script.c (document_command): Update.
5014         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5015         (add_com, add_info, add_info_alias): Update.
5016         * guile/scm-cmd.c (cmdscm_destroyer): Update.
5017         * python/py-cmd.c (cmdpy_destroyer): Update.
5018
5019 2014-07-24  Tom Tromey  <tromey@redhat.com>
5020
5021         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5022         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5023         (help_cmd_list): Constify.
5024         (lookup_cmd): Update.
5025         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5026         const.
5027         (help_cmd_list, apropos_cmd): Update.
5028         * cli/cli-script.c (show_user): Update.
5029         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5030         * cli/cli-setshow.h (cmd_show_list): Update.
5031         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5032         (cmd_show_list): Update.
5033         * guile/scm-cmd.c (cmdscm_destroyer): Update.
5034         * python/py-cmd.c (cmdpy_destroyer): Update.
5035
5036 2014-07-24  Tom Tromey  <tromey@redhat.com>
5037
5038         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5039         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5040         const.
5041         * command.h (deprecate_cmd): Update.
5042         * maint.c (maintenance_do_deprecate): Add casts.
5043
5044 2014-07-24  Tom Tromey  <tromey@redhat.com>
5045
5046         * cli/cli-decode.c (help_cmd): Make parameter "const".
5047         * cli/cli-decode.h (help_cmd): Update.
5048
5049 2014-07-24  Tom Tromey  <tromey@redhat.com>
5050
5051         * stack.c (up_silently_base, down_silently_base): Make argument
5052         const.
5053
5054 2014-07-24  Tom Tromey  <tromey@redhat.com>
5055
5056         * solib.c (solib_add): Make "pattern" const.
5057         * solib.h (solib_add): Update.
5058
5059 2014-07-24  Tom Tromey  <tromey@redhat.com>
5060
5061         * remote.c (remote_serial_open, print_packet, putpkt)
5062         (putpkt_binary): Constify.
5063         * remote.h (putpkt): Update.
5064
5065 2014-07-24  Tom Tromey  <tromey@redhat.com>
5066
5067         * monitor.c (monitor_open): Make "args" const.
5068         * monitor.h (monitor_open): Update.
5069
5070 2014-07-24  Tom Tromey  <tromey@redhat.com>
5071
5072         * maint.c (match_bfd_flags): Make "string" const.
5073         (print_bfd_section_info): Remove casts.
5074         (print_objfile_section_info): Make "string" const.
5075
5076 2014-07-24  Tom Tromey  <tromey@redhat.com>
5077
5078         * inf-child.c (inf_child_open_target): Make "arg" const.
5079         * inf-child.h (inf_child_open_target): Update.
5080
5081 2014-07-24  Tom Tromey  <tromey@redhat.com>
5082
5083         * environ.c (unset_in_environ): Make "var" const.
5084         * environ.h (unset_in_environ): Update.
5085
5086 2014-07-24  Tom Tromey  <tromey@redhat.com>
5087
5088         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5089         Make "cmd" const.
5090         (scan_filename_with_cleanup): Likewise.
5091         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5092         Make arguments const.
5093         (restore_command): Update.
5094
5095 2014-07-24  Pedro Alves  <palves@redhat.com>
5096
5097         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5098
5099 2014-07-24  Tom Tromey  <tromey@redhat.com>
5100             Gary Benson  <gbenson@redhat.com>
5101
5102         * nat/linux-ptrace.c (additional_flags): New global.
5103         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5104         additional_flags; don't check GDBSERVER.
5105         (linux_ptrace_set_additional_flags): New function.
5106         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5107         Declare.
5108         * linux-nat.c (_initialize_linux_nat): Call
5109         linux_ptrace_set_additional_flags.
5110
5111 2014-07-24  Tom Tromey  <tromey@redhat.com>
5112
5113         * make-target-delegates (munge_type, write_debugmethod): New
5114         functions.
5115         (debug_names): New global.
5116         ($TARGET_DEBUG_PRINTER): New global.
5117         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5118         name.
5119         Write debug methods.  Generate init_debug_target.
5120         * target-debug.h: New file.
5121         * target-delegates.c: Rebuild.
5122         * target.c: Include target-debug.h.
5123         (debug_target): Hoist definition.
5124         (target_kill, target_get_section_table, target_memory_map)
5125         (target_flash_erase, target_flash_done, target_detach)
5126         (target_disconnect, target_wait, target_resume)
5127         (target_pass_signals, target_program_signals, target_follow_fork)
5128         (target_mourn_inferior, target_search_memory)
5129         (target_thread_address_space, target_close)
5130         (target_find_new_threads, target_core_of_thread)
5131         (target_verify_memory, target_insert_mask_watchpoint)
5132         (target_remove_mask_watchpoint): Remove targetdebug code.
5133         (debug_to_post_attach, debug_to_prepare_to_store)
5134         (debug_to_files_info, debug_to_insert_breakpoint)
5135         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5136         (debug_to_region_ok_for_hw_watchpoint)
5137         (debug_to_can_accel_watchpoint_condition)
5138         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5139         (debug_to_watchpoint_addr_within_range)
5140         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5141         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5142         (debug_to_terminal_init, debug_to_terminal_inferior)
5143         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5144         (debug_to_terminal_save_ours, debug_to_terminal_info)
5145         (debug_to_load, debug_to_post_startup_inferior)
5146         (debug_to_insert_fork_catchpoint)
5147         (debug_to_remove_fork_catchpoint)
5148         (debug_to_insert_vfork_catchpoint)
5149         (debug_to_remove_vfork_catchpoint)
5150         (debug_to_insert_exec_catchpoint)
5151         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5152         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5153         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5154         (setup_target_debug): Call init_debug_target.
5155         * target.h (TARGET_DEBUG_PRINTER): New macro.
5156         (struct target_ops) <to_resume, to_wait, to_pass_signals,
5157         to_program_signals>: Use TARGET_DEBUG_PRINTER.
5158
5159 2014-07-24  Gary Benson  <gbenson@redhat.com>
5160
5161         * exceptions.h (throw_vfatal): Renamed to...
5162         (throw_vquit): New declaration.
5163         (throw_quit): Likewise.
5164         * exceptions.c (throw_vfatal): Renamed to...
5165         (throw_vquit): New function.
5166         (throw_quit): Likewise.
5167         (throw_error): Call throw_verror rather than throw_it.
5168         * utils.h (vfatal): Removed.
5169         (fatal): Likewise.
5170         * utils.c (vfatal): Removed.
5171         (fatal): Likewise.
5172         (internal_verror): Replaced call to fatal with call to throw_quit.
5173         (quit): Replaced calls to fatal with calls to throw_quit.
5174
5175 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
5176
5177         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5178         target_read_code.
5179
5180 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
5181
5182         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5183         less than zero in conditional expression.
5184
5185 2014-07-23  Tom Tromey  <tromey@redhat.com>
5186
5187         * make-target-delegates ($ARGS_PART): Match trailing close paren.
5188         ($INTRO_PART): Don't match whitespace.
5189         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
5190         argument matching.
5191         ($METHOD): Add $METHOD_TRAILER.
5192         (trim): Rewrite.
5193         (scan_target_h): New sub.
5194         Change main loop not to collect state.
5195         * target-delegates.c: Rebuild.
5196
5197 2014-07-23  Gary Benson  <gbenson@redhat.com>
5198
5199         * cp-support.c (gdb_demangle): Fix build on systems without
5200         sigaltstack.
5201
5202 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
5203
5204         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5205         for reference entry value target data value.
5206
5207 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
5208
5209         * stack.c (read_frame_arg): Verify value_optimized_out before calling
5210         value_available_contents_eq.
5211
5212 2014-07-22  Pedro Alves  <palves@redhat.com>
5213
5214         * value.c (allocate_optimized_out_value): Don't mark value as
5215         non-lazy.
5216
5217 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
5218
5219         * MAINTAINERS (Write After Approval): Update my email address.
5220
5221 2014-07-20  Doug Evans  <dje@google.com>
5222
5223         PR server/17147
5224         * remote.c (putpkt_binary): Add text to error message.
5225
5226 2014-07-20  Yao Qi  <yao@codesourcery.com>
5227
5228         * eval.c: Remove "Chill" from comments.
5229         * gdbtypes.h: Likewise.
5230         * symtab.h: Likewise.
5231
5232 2014-07-20  Yao Qi  <yao@codesourcery.com>
5233
5234         * std-operator.def: Update comments to TERNOP_SLICE.
5235
5236 2014-07-20  Yao Qi  <yao@codesourcery.com>
5237
5238         * std-operator.def: Remove BINOP_RANGE.
5239         * breakpoint.c (watchpoint_exp_is_const): Update.
5240         * expprint.c (dump_subexp_body_standard): Likewise.
5241         * eval.c (init_array_element): Remove dead code.
5242         (evaluate_subexp_standard): Likewise.
5243
5244 2014-07-20  Yao Qi  <yao@codesourcery.com>
5245
5246         * std-operator.def: Remove BINOP_IN.
5247         * breakpoint.c (watchpoint_exp_is_const): Update.
5248         * eval.c (evaluate_subexp_standard): Likewise.
5249         * expprint.c (dump_subexp_body_standard): Likewise.
5250
5251 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
5252
5253         * microblaze-tdep.c (microblaze_register_names): Add
5254         the rshr and rslr register names.
5255         (microblaze_gdbarch_init): Use of tdesc_has_registers.
5256         Use of tdesc_find_feature. Use of tdesc_data_alloc.
5257         Use of tdesc_numbered_register. Use of
5258         microblaze_register_g_packet_guesses. Use of
5259         tdesc_use_registers. Use of set_gdbarch_register_type.
5260         (microblaze_register_g_packet_guesses): New.
5261         * microblaze-tdep.h (microblaze_reg_num): Add
5262         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5263         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5264         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5265         * features/microblaze-core.xml: New file.
5266         * features/microblaze-stack-protect.xml: New file.
5267         * features/microblaze-with-stack-protect.c: New file.
5268         * features/microblaze-with-stack-protect.xml: New file.
5269         * features/microblaze.xml: New file.
5270         * features/microblaze.c: New file.
5271         * features/Makefile (microblaze-with-stack-protect): Add
5272         microblaze-with-stack-protect microblaze and microblaze-expedite.
5273         * regformats/microblaze-with-stack-protect.dat: New file.
5274         * regformats/microblaze.dat: New file.
5275         * doc/gdb.texinfo (MicroBlaze Features): Added.
5276
5277 2014-07-18  Tom Tromey  <tromey@redhat.com>
5278
5279         * exec.c (exec_ops): Now static.
5280         * exec.h (exec_ops): Don't declare.
5281
5282 2014-07-18  Tom Tromey  <tromey@redhat.com>
5283
5284         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5285         to find_target_beneath.
5286         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5287         find_target_beneath.
5288         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5289
5290 2014-07-18  Tom Tromey  <tromey@redhat.com>
5291
5292         PR gdb/17130:
5293         * utils.c (quit): Use target_supports_terminal_ours.
5294         * target.h (target_supports_terminal_ours): Declare.
5295         * target.c (target_supports_delete_record): Don't check
5296         to_delete_record against NULL.
5297         (target_supports_terminal_ours): New function.
5298
5299 2014-07-18  Tom Tromey  <tromey@redhat.com>
5300
5301         PR gdb/17130:
5302         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5303         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5304         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5305         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5306         * windows-nat.c (windows_xfer_partial): Always delegate.
5307         * record-btrace.c (record_btrace_xfer_partial): Simplify
5308         delegation.
5309         (record_btrace_fetch_registers, record_btrace_store_registers)
5310         (record_btrace_prepare_to_store, record_btrace_resume)
5311         (record_btrace_wait, record_btrace_find_new_threads)
5312         (record_btrace_thread_alive): Likewise.
5313         * procfs.c (procfs_xfer_partial): Always delegate.
5314         * corelow.c (core_xfer_partial): Always delegate.
5315         * sol-thread.c (sol_find_new_threads): Simplify delegation.
5316
5317 2014-07-18  Tom Tromey  <tromey@redhat.com>
5318
5319         * exec.c (exec_make_note_section): Move earlier.
5320
5321 2014-07-17  Doug Evans  <dje@google.com>
5322
5323         PR gdb/17170
5324         * maint.c (count_symtabs_and_blocks): Handle NULL
5325         current_program_space.
5326         (report_command_stats): Check global enabled flag in addition to
5327         recorded enabled flag.
5328         (make_command_stats_cleanup): Handle msg_type == 0, startup.
5329
5330 2014-07-16  Pedro Alves  <palves@redhat.com>
5331
5332         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5333
5334 2014-07-16  Tom Tromey  <tromey@redhat.com>
5335
5336         * target.h (struct target_ops) <to_delete_record>: Reformat
5337         comment.
5338
5339 2014-07-16  Tom Tromey  <tromey@redhat.com>
5340
5341         * target-delegates.c: Rebuild.
5342
5343 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
5344
5345         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5346         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5347         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5348         (avr_pointer_to_address): Likewise.
5349         (avr_address_class_type_flags): New function.
5350         (avr_address_class_type_flags_to_name): Likewise.
5351         (avr_address_class_name_to_type_flags): Likewise.
5352         (avr_gdbarch_init): Set address_class_type_flags,
5353         address_class_type_flags_to_name and
5354         address_class_name_to_type_flags.
5355
5356 2014-07-15  Pedro Alves  <palves@redhat.com>
5357
5358         * linux-nat.c (kill_callback): Save errno and work with saved
5359         copy.
5360
5361 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
5362
5363         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5364
5365 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
5366
5367         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5368         breakpoint support correctly.
5369
5370 2014-07-14  Pedro Alves  <palves@redhat.com>
5371
5372         * utils.c (prompt_for_continue): Call target_terminal_ours.
5373
5374 2014-07-14  Pedro Alves  <palves@redhat.com>
5375
5376         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5377         catch_errors.  Don't re-enable stdin or notify observers where,
5378         and rethrow error.
5379         (fetch_inferior_event_wrapper): Delete.
5380
5381 2014-07-14  Pedro Alves  <palves@redhat.com>
5382
5383         PR gdb/17072
5384         * top.c: Include "inf-loop.h".
5385         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5386         field.
5387         (gdb_readline_wrapper_cleanup): Make the target async again, if it
5388         was async before.
5389         (gdb_readline_wrapper): Store whether the target is async, and
5390         make it sync.
5391
5392 2014-07-14  Pedro Alves  <palves@redhat.com>
5393
5394         PR gdb/17072
5395         * top.c (gdb_readline_wrapper_line): Tweak comment.
5396         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5397         the input handler callback.
5398
5399 2014-07-14  Pedro Alves  <palves@redhat.com>
5400
5401         PR gdb/17072
5402         * main.c: Include event-top.h.
5403         (handle_command_errors): New function.
5404         (catch_command_errors, catch_command_errors_const): Use it.
5405
5406 2014-07-14  Pedro Alves  <palves@redhat.com>
5407
5408         * exceptions.c (catch_command_errors, catch_command_errors_const):
5409         Moved to main.c.
5410         * exceptions.h (catch_command_errors_ftype)
5411         (catch_command_errors_const_ftype): Moved to main.c.
5412         (catch_command_errors, catch_command_errors_const): Delete
5413         declarations.
5414         * main.c (catch_command_errors_ftype)
5415         (catch_command_errors_const_ftype): Moved here from exceptions.h.
5416         (catch_command_errors, catch_command_errors_const)): Moved here
5417         from exceptions.c and make static.
5418
5419 2014-07-14  Pedro Alves  <palves@redhat.com>
5420
5421         * exceptions.c (print_any_exception): Delete.
5422         (catch_exceptions_with_msg): Use exception_print instead of
5423         print_any_exception.
5424         (catch_errors): Use exception_fprintf instead of
5425         print_any_exception.
5426         (catch_command_errors, catch_command_errors_const): Use
5427         exception_print instead of print_any_exception.
5428
5429 2014-07-14  Pedro Alves  <palves@redhat.com>
5430
5431         * infcall.c (run_inferior_call): Set 'sync_execution' while
5432         running the inferior call.
5433
5434 2014-07-14  Pedro Alves  <palves@redhat.com>
5435
5436         * value.c (value_contents_equal): Delete function.
5437         * value.h (value_contents_equal): Delete declaration.
5438
5439 2014-07-14  Tom Tromey  <tromey@redhat.com>
5440
5441         PR exp/17106:
5442         * gdbtypes.c (is_dynamic_type_internal): New function, from
5443         is_dynamic_type.
5444         (is_dynamic_type): Rewrite.
5445         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5446         (resolve_dynamic_struct): Likewise.
5447         (resolve_dynamic_type_internal): New function, from
5448         resolve_dynamic_type.
5449         (resolve_dynamic_type): Rewrite.
5450
5451 2014-07-14  Tom Tromey  <tromey@redhat.com>
5452
5453         * target.c (target_require_runnable): Also check record_stratum.
5454         Update comment.
5455
5456 2014-07-11  Yao Qi  <yao@codesourcery.com>
5457
5458         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5459         thumb_instruction_restores_sp return true.
5460
5461 2014-07-11  Yao Qi  <yao@codesourcery.com>
5462
5463         * arm-tdep.c (thumb_instruction_restores_sp): New function.
5464         (thumb_in_function_epilogue_p): Call
5465         thumb_instruction_restores_sp.
5466
5467 2014-07-11  Yao Qi  <yao@codesourcery.com>
5468
5469         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5470         'add sp, #imm'.
5471         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5472
5473 2014-07-11  Gary Benson  <gbenson@redhat.com>
5474
5475         * amd64-linux-nat.c (gdbcore.h): Remove include.
5476         (regset.h): Likewise.
5477         (nat/linux-btrace.h): Likewise.
5478         (btrace.h): Likewise.
5479         (gdb_assert.h): Likewise.
5480         (string.h): Likewise.
5481         (sys/uio.h): Likewise.
5482         (sys/debugreg.h): Likewise.
5483         (sys/syscall.h): Likewise.
5484         (sys/procfs.h): Likewise.
5485         (sys/user.h): Likewise.
5486         (asm/ptrace.h): Likewise.
5487         (i386-nat.h): Likewise.
5488         * i386-linux-nat.c (i386-nat.h): Likewise.
5489         (regset.h): Likewise.
5490         (target.h): Likewise.
5491         (linux-nat.h): Likewise.
5492         (nat/linux-btrace.h): Likewise.
5493         (btrace.h): Likewise.
5494         (gdb_assert.h): Likewise.
5495         (string.h): Likewise.
5496         (sys/uio.h): Likewise.
5497         (sys/user.h): Likewise.
5498         (sys/procfs.h): Likewise.
5499         (sys/reg.h): Likewise.
5500         (sys/debugreg.h): Likewise.
5501         (ORIG_EAX): Remove definition.
5502
5503 2014-07-11  Gary Benson  <gbenson@redhat.com>
5504
5505         * i386-linux-nat.h: New file.
5506         * x86-linux-nat.h: Likewise.
5507         * x86-linux-nat.c: Likewise.
5508         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5509         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5510         * config/i386/linux64.mh (NATDEPFILES): Likewise.
5511         * amd64-linux-nat.c (x86-linux-nat.h): New include.
5512         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5513         (PTRACE_SETREGSET): Likewise.
5514         (arch_lwp_info): Now in x86-linux-nat.c.
5515         (have_ptrace_getregset): Now in x86-linux-nat.h.
5516         (x86_linux_dr_get): Now in x86-linux-nat.c.
5517         (x86_linux_dr_set): Likewise.
5518         (x86_linux_dr_get_addr): Likewise.
5519         (x86_linux_dr_get_control): Likewise.
5520         (x86_linux_dr_get_status): Likewise.
5521         (update_debug_registers_callback): Likewise.
5522         (x86_linux_dr_set_control): Likewise.
5523         (x86_linux_dr_set_addr): Likewise.
5524         (x86_linux_prepare_to_resume): Likewise.
5525         (x86_linux_new_thread): Likewise.
5526         (x86_linux_new_fork): Likewise.
5527         (x86_linux_get_thread_area): Likewise.
5528         (super_post_startup_inferior): Likewise.
5529         (x86_linux_child_post_startup_inferior): Likewise.
5530         (AMD64_LINUX_USER64_CS): Likewise.
5531         (AMD64_LINUX_X32_DS): Likewise.
5532         (x86_linux_read_description): Likewise.
5533         (x86_linux_enable_btrace): Likewise.
5534         (x86_linux_disable_btrace): Likewise.
5535         (x86_linux_teardown_btrace): Likewise.
5536         (x86_linux_read_btrace): Likewise.
5537         (x86_linux_create_target): Likewise.
5538         (x86_linux_add_target): Likewise.
5539         * i386-linux-nat.c (x86-linux-nat.h): New include.
5540         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5541         (PTRACE_SETREGSET): Likewise.
5542         (arch_lwp_info): Now in x86-linux-nat.c.
5543         (have_ptrace_getregset): Now in x86-linux-nat.h.
5544         (x86_linux_dr_get): Now in x86-linux-nat.c.
5545         (x86_linux_dr_set): Likewise.
5546         (x86_linux_dr_get_addr): Likewise.
5547         (x86_linux_dr_get_control): Likewise.
5548         (x86_linux_dr_get_status): Likewise.
5549         (update_debug_registers_callback): Likewise.
5550         (x86_linux_dr_set_control): Likewise.
5551         (x86_linux_dr_set_addr): Likewise.
5552         (x86_linux_prepare_to_resume): Likewise.
5553         (x86_linux_new_thread): Likewise.
5554         (x86_linux_new_fork): Likewise.
5555         (x86_linux_get_thread_area): Likewise.
5556         (super_post_startup_inferior): Likewise.
5557         (x86_linux_child_post_startup_inferior): Likewise.
5558         (AMD64_LINUX_USER64_CS): Likewise.
5559         (AMD64_LINUX_X32_DS): Likewise.
5560         (x86_linux_read_description): Likewise.
5561         (x86_linux_enable_btrace): Likewise.
5562         (x86_linux_disable_btrace): Likewise.
5563         (x86_linux_teardown_btrace): Likewise.
5564         (x86_linux_read_btrace): Likewise.
5565         (x86_linux_create_target): Likewise.
5566         (x86_linux_add_target): Likewise.
5567
5568 2014-07-11  Gary Benson  <gbenson@redhat.com>
5569
5570         * amd64-linux-nat.c: Comment and whitespace changes.
5571         * i386-linux-nat.c: Comment and whitespace changes.
5572
5573 2014-07-11  Gary Benson  <gbenson@redhat.com>
5574
5575         * amd64-linux-nat.c (x86_linux_create_target): New function.
5576         (x86_linux_add_target): Likewise.
5577         (_initialize_amd64_linux_nat): Delegate to the above new functions.
5578         * i386-linux-nat.c (x86_linux_create_target): New function.
5579         (x86_linux_add_target): Likewise.
5580         (_initialize_i386_linux_nat): Delegate to the above new functions.
5581
5582 2014-07-11  Gary Benson  <gbenson@redhat.com>
5583
5584         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5585         (ps_get_thread_area): Delegate to the above in 32-bit mode.
5586         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5587         (ps_get_thread_area): Delegate to the above.
5588
5589 2014-07-11  Gary Benson  <gbenson@redhat.com>
5590
5591         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5592         x86_linux_read_description.  All uses updated.  amd64-specific
5593         code conditionalized.  Conditionalized i386-specific code added.
5594         Redundant cast removed.
5595         * i386-linux-nat.c (i386_linux_read_description): Renamed to
5596         x86_linux_read_description.  All uses updated.  i386-specific
5597         code conditionalized.  Conditionalized amd64-specific code added.
5598         One sizeof replaced with the actual type it is describing.
5599
5600 2014-07-11  Gary Benson  <gbenson@redhat.com>
5601
5602         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5603         x86_linux_dr_get.  All uses updated.
5604         (amd64_linux_dr_set): Renamed to
5605         x86_linux_dr_set.  All uses updated.
5606         (amd64_linux_dr_get_addr): Renamed to
5607         x86_linux_dr_get_addr.  All uses updated.
5608         (amd64_linux_dr_get_control): Renamed to
5609         x86_linux_dr_get_control.  All uses updated.
5610         (amd64_linux_dr_get_status): Renamed to
5611         x86_linux_dr_get_status.  All uses updated.
5612         (amd64_linux_dr_set_control): Renamed to
5613         x86_linux_dr_set_control.  All uses updated.
5614         (amd64_linux_dr_set_addr): Renamed to
5615         x86_linux_dr_set_addr.  All uses updated.
5616         (amd64_linux_prepare_to_resume): Renamed to
5617         x86_linux_prepare_to_resume.  All uses updated.
5618         (amd64_linux_new_thread): Renamed to
5619         x86_linux_new_thread.  All uses updated.
5620         (amd64_linux_new_fork): Renamed to
5621         x86_linux_new_fork.  All uses updated.
5622         (amd64_linux_child_post_startup_inferior): Renamed to
5623         x86_linux_child_post_startup_inferior.  All uses updated.
5624         (amd64_linux_enable_btrace): Renamed to
5625         x86_linux_enable_btrace.  All uses updated.
5626         (amd64_linux_disable_btrace): Renamed to
5627         x86_linux_disable_btrace.  All uses updated.
5628         (amd64_linux_teardown_btrace): Renamed to
5629         x86_linux_teardown_btrace.  All uses updated.
5630         (amd64_linux_read_btrace): Renamed to
5631         x86_linux_read_btrace.  All uses updated.
5632         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5633         x86_linux_dr_get.  All uses updated.
5634         (i386_linux_dr_set): Renamed to
5635         x86_linux_dr_set.  All uses updated.
5636         (i386_linux_dr_get_addr): Renamed to
5637         x86_linux_dr_get_addr.  All uses updated.
5638         (i386_linux_dr_get_control): Renamed to
5639         x86_linux_dr_get_control.  All uses updated.
5640         (i386_linux_dr_get_status): Renamed to
5641         x86_linux_dr_get_status.  All uses updated.
5642         (i386_linux_dr_set_control): Renamed to
5643         x86_linux_dr_set_control.  All uses updated.
5644         (i386_linux_dr_set_addr): Renamed to
5645         x86_linux_dr_set_addr.  All uses updated.
5646         (i386_linux_prepare_to_resume): Renamed to
5647         x86_linux_prepare_to_resume.  All uses updated.
5648         (i386_linux_new_thread): Renamed to
5649         x86_linux_new_thread.  All uses updated.
5650         (i386_linux_new_fork): Renamed to
5651         x86_linux_new_fork.  All uses updated.
5652         (i386_linux_child_post_startup_inferior): Renamed to
5653         x86_linux_child_post_startup_inferior.  All uses updated.
5654         (i386_linux_enable_btrace): Renamed to
5655         x86_linux_enable_btrace.  All uses updated.
5656         (i386_linux_disable_btrace): Renamed to
5657         x86_linux_disable_btrace.  All uses updated.
5658         (i386_linux_teardown_btrace): Renamed to
5659         x86_linux_teardown_btrace.  All uses updated.
5660         (i386_linux_read_btrace): Renamed to
5661         x86_linux_read_btrace.  All uses updated.
5662
5663 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
5664
5665         * remote.c (extended_remote_post_attach): New function.
5666         (init_extended_remote_ops): Install it as to_post_attach method.
5667
5668 2014-07-09  Pedro Alves  <palves@redhat.com>
5669
5670         * infcmd.c (attach_command_post_wait): Don't call
5671         target_terminal_inferior here.
5672         (attach_command): Call it here instead.
5673
5674 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
5675
5676         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5677         field.
5678         * c-varobj.c (c_is_path_expr_parent): New function, moved core
5679         from varobj.c, with additional checks.
5680         (c_varobj_ops): Fill in is_path_expr_parent field.
5681         (cplus_varobj_ops): Fill in is_path_expr_parent field.
5682         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5683         field.
5684         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5685         ops method.
5686         (varobj_default_is_path_expr_parent): New function.
5687         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5688         (varobj_default_is_path_expr_parent): Declare new function.
5689
5690 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
5691
5692         * infcmd.c (finish_backward): Turn internal error into normal error.
5693
5694 2014-07-07  Pedro Alves  <palves@redhat.com>
5695
5696         PR gdb/17096
5697         * remote.c (async_handle_remote_sigint)
5698         (async_handle_remote_sigint_twice): Call
5699         gdb_call_async_signal_handler instead of
5700         mark_async_signal_handler.
5701
5702 2014-07-07  Tom Tromey  <tromey@redhat.com>
5703
5704         * target-delegates.c: Rebuild.
5705         * target.c (target_info_record): Remove.
5706         * record.c (info_record_command): Unconditionally call
5707         to_info_record.
5708         * target.h (struct target_ops) <to_info_record>: Use
5709         TARGET_DEFAULT_IGNORE.
5710         (target_info_record): Remove.
5711
5712 2014-07-07  Tom Tromey  <tromey@redhat.com>
5713
5714         * target.h (struct target_ops) <to_get_thread_local_address>: Use
5715         TARGET_DEFAULT_NORETURN.
5716         * target.c (generic_tls_error): New function.
5717         (target_translate_tls_address): Don't search target stack.
5718         * target-delegates.c: Rebuild.
5719         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5720         stack.
5721         * linux-thread-db.c (thread_db_get_thread_local_address):
5722         Unconditionally call beneath target.
5723
5724 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
5725
5726         * cli/cli-logging.c (pop_output_files): Assign targerr to
5727         gdb_stdtargerr.
5728
5729 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
5730
5731         * MAINTAINERS (Write After Approval): Update my email address.
5732
5733 2014-07-02  Gary Benson  <gbenson@redhat.com>
5734
5735         * proc-service.c (ps_xfer_memory): Update comment.
5736         (ps_pstop): Remove unused function.
5737         (ps_pcontinue): Likewise.
5738         (ps_lstop): Likewise.
5739         (ps_lcontinue): Likewise.
5740         (ps_lgetxregsize): Likewise.
5741         (ps_lgetxregs): Likewise.
5742         (ps_lsetxregs): Likewise.
5743         (ps_plog): Likewise.
5744         (ps_ptread): Likewise.
5745         (ps_ptwrite): Likewise.
5746
5747 2014-07-01  Mark Wielaard  <mjw@redhat.com>
5748
5749         * dwarf2read.c (add_array_cv_type): New function.
5750         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5751         (read_tag_volatile_type): Likewise.
5752
5753 2014-07-01  Tom Tromey  <tromey@redhat.com>
5754
5755         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5756         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5757         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5758         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5759         * command.h (cmd_cfunc_ftype): Move earlier.
5760         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5761         (add_com, add_info): Use cmd_cfunc_ftype.
5762
5763 2014-06-30  Tom Tromey  <tromey@redhat.com>
5764
5765         * symtab.c (operator_chars): Make parameters and return type
5766         const.
5767         (file_matches): Make "files" const.
5768         (struct search_symbols_data) <files>: Now const.
5769         (search_symbols): Make "regexp" and "files" parameters const.
5770         Update.
5771         (symtab_symbol_info): Remove cast.
5772         (rbreak_command): Update.
5773         * symtab.h (search_symbols): Update.
5774
5775 2014-06-27  Yao Qi  <yao@codesourcery.com>
5776
5777         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5778         Change parameter type to 'struct thread_info *'.  Caller
5779         updated.
5780         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5781         Update declaration.
5782         * dummy-frame.c (struct dummy_frame_id): New.
5783         (dummy_frame_id_eq): New function.
5784         (struct dummy_frame) <id>: Change its type to 'struct
5785         dummy_frame_id'.
5786         (dummy_frame_push): Add parameter ptid and save it in
5787         dummy_frame_id.
5788         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5789         inferior_ptid.
5790         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5791         to inferior_ptid.
5792         (lookup_dummy_frame): Change parameter type to 'struct
5793         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
5794         instead of frame_id_eq.
5795         (dummy_frame_pop): Add parameter ptid.  Callers updated.
5796         Update comments.  Compose dummy_frame_id and pass it to
5797         lookup_dummy_frame.
5798         (dummy_frame_discard): Add parameter ptid.
5799         (dummy_frame_sniffer): Compose dummy_frame_id and call
5800         dummy_frame_id_eq instead of frame_id_eq.
5801         (fprint_dummy_frames): Print ptid.
5802         * dummy-frame.h: Remove comments.
5803         (dummy_frame_push): Add ptid in declaration.
5804         (dummy_frame_pop, dummy_frame_discard): Likewise.
5805
5806 2014-06-26  Tom Tromey  <tromey@redhat.com>
5807
5808         * cli/cli-cmds.c (error_no_arg): Make "why" const.
5809         * command.h (error_no_arg): Update.
5810
5811 2014-06-26  Tom Tromey  <tromey@redhat.com>
5812
5813         * cli/cli-setshow.c (do_set_command): Make "arg" const.
5814         (do_show_command): Make "arg" const.
5815         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5816
5817 2014-06-26  Tom Tromey  <tromey@redhat.com>
5818
5819         * record-full.c (record_full_get_bookmark): Make "args" const.
5820         (record_full_goto_bookmark): Make "raw_bookmark" const.
5821         * record.c (record_goto): New function.
5822         (cmd_record_goto): Use it.  Now static.
5823         * record.h (record_goto): Declare.
5824         (cmd_record_goto): Remove declaration.
5825         * target-delegates.c: Rebuild.
5826         * target.h (struct target_ops) <to_get_bookmark,
5827         to_goto_bookmark>: Make parameter const.
5828
5829 2014-06-26  Tom Tromey  <tromey@redhat.com>
5830
5831         * defs.h (generic_load): Update.
5832         * m32r-rom.c (m32r_load_gen): Make "filename" const.
5833         * monitor.c (monitor_load): Make "args" const.
5834         * remote-m32r-sdi.c (m32r_load): Make "args" const.
5835         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5836         const.
5837         (mips_load): Make "file" const.
5838         * remote-sim.c (gdbsim_load): Make "args" const.
5839         * remote.c (remote_load): Make "name" const.
5840         * symfile.c (generic_load): Make "args" const.
5841         * target-delegates.c: Rebuild.
5842         * target.c (target_load): Make "arg" const.
5843         (debug_to_load): Make "args" const.
5844         * target.h (struct target_ops) <to_load>: Make parameter const.
5845         (target_load): Update.
5846
5847 2014-06-26  Tom Tromey  <tromey@redhat.com>
5848
5849         PR symtab/16902:
5850         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5851         (dwarf2_physname, read_partial_die)
5852         (guess_partial_die_structure_name, fixup_partial_die)
5853         (guess_full_die_structure_name, anonymous_struct_prefix)
5854         (dwarf2_name): Use per-BFD obstack.
5855
5856 2014-06-26  Yao Qi  <yao@codesourcery.com>
5857
5858         * dummy-frame.c (dummy_frame_sniffer): Move local variables
5859         dummyframe and this_id into inner block below.
5860
5861 2014-06-26  Yao Qi  <yao@codesourcery.com>
5862
5863         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5864         with "signal_pass[0]" in the initialization of signal_pass.
5865
5866 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
5867
5868         * record-btrace.c (record_btrace_generating_corefile)
5869         (record_btrace_prepare_to_generate_core)
5870         (record_btrace_done_generating_core): New.
5871         (record_btrace_xfer_partial, record_btrace_fetch_registers)
5872         (record_btrace_store_registers, record_btrace_prepare_to_store):
5873         Forward request when generating a core file.
5874         (record_btrace_open): Set record_btrace_generating_corefile to zero.
5875         (init_record_btrace_ops): Set to_prepare_to_generate_core and
5876         to_done_generating_core.
5877
5878 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
5879
5880         * target.h (target_ops) <to_prepare_to_generate_core>
5881         <to_done_generating_core>: New.
5882         (target_prepare_to_generate_core, target_done_generating_core): New.
5883         * target.c (target_prepare_to_generate_core)
5884         (target_done_generating_core): New.
5885         * target-delegates.c: Regenerate.
5886         * gcore.c: (write_gcore_file): Rename to ...
5887         (write_gcore_file_1): ...this.
5888         (write_gcore_file): Call target_prepare_to_generate_core
5889         and target_done_generating_core.
5890
5891 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
5892
5893         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
5894         * gcore.c (write_gcore_file): Free memory returned from
5895         make_corefile_notes.
5896         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
5897         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
5898
5899 2014-06-24  Yao Qi  <yao@codesourcery.com>
5900
5901         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
5902         (arm_linux_init_abi): Set skip_trampoline_code with
5903         gdbarch_skip_trampoline_code instead of
5904         find_solib_trampoline_target.
5905
5906 2014-06-24  Yao Qi  <yao@codesourcery.com>
5907
5908         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
5909         arm_skip_bx_reg returns non-zero.
5910
5911 2014-06-24  Yao Qi  <yao@codesourcery.com>
5912
5913         * arm-tdep.c (arm_skip_bx_reg): New function.
5914         (arm_skip_stub): Call arm_skip_bx_reg.
5915
5916 2014-06-23  Don Breazeal  <donb@codesourcery.com>
5917
5918         * MAINTAINERS: Add myself as write-after-approval maintainer.
5919
5920 2014-06-23  Pedro Alves  <palves@redhat.com>
5921
5922         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
5923         DR_CONTROL before setting DR0..DR3.
5924         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
5925         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
5926         bits of DR_CONTROL related to the debug register slot being
5927         disabled.  If all slots are vacant, clear local slowdown as well,
5928         and assert DR_CONTROL is 0.
5929
5930 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
5931
5932         * python/lib/gdb/command/xmethods.py
5933         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
5934         current progspace only if the string "progspace" matches LOCUS_RE.
5935
5936 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
5937
5938         Fix --with-system-readline with readline-6.3 patch 5.
5939         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
5940         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
5941         types.
5942
5943 2014-06-20  Tom Tromey  <tromey@redhat.com>
5944
5945         * dwarf2read.c (dw2_get_real_path): Use correct type in
5946         OBSTACK_CALLOC.
5947         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
5948
5949 2014-06-20  Gary Benson  <gbenson@redhat.com>
5950
5951         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
5952         * common/glibc_thread_db.h: Likewise.
5953         * common/i386-cpuid.h: Likewise.
5954         * common/i386-gcc-cpuid.h: Likewise.
5955         * common/linux-btrace.h: Likewise.
5956         * common/linux-osdata.h: Likewise.
5957         * common/linux-procfs.h: Likewise.
5958         * common/linux-ptrace.h: Likewise.
5959         * common/mips-linux-watch.h: Likewise.
5960         * common/linux-btrace.c: Moved to nat.
5961         * common/linux-osdata.c: Likewise.
5962         * common/linux-procfs.c: Likewise.
5963         * common/linux-ptrace.c: Likewise.
5964         * common/mips-linux-watch.c: Likewise.
5965         * nat/gdb_thread_db.h: Moved from common.
5966         * nat/glibc_thread_db.h: Likewise.
5967         * nat/i386-cpuid.h: Likewise.
5968         * nat/i386-gcc-cpuid.h: Likewise.
5969         * nat/linux-btrace.c: Likewise.
5970         * nat/linux-btrace.h: Likewise.
5971         * nat/linux-osdata.c: Likewise.
5972         * nat/linux-osdata.h: Likewise.
5973         * nat/linux-procfs.c: Likewise.
5974         * nat/linux-procfs.h: Likewise.
5975         * nat/linux-ptrace.c: Likewise.
5976         * nat/linux-ptrace.h: Likewise.
5977         * nat/mips-linux-watch.c: Likewise.
5978         * nat/mips-linux-watch.h: Likewise.
5979         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
5980         (object file files): Reordered.
5981         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
5982         of glibc_thread_db.h.
5983
5984 2014-06-20  Gary Benson  <gbenson@redhat.com>
5985
5986         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
5987         (i386_dr_low_type): Moved to nat/i386-dregs.h.
5988         (i386_dr_low): Likewise.
5989         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
5990         (i386_dr_low_set_addr): Likewise.
5991         (i386_dr_low_get_addr): Likewise.
5992         (i386_dr_low_can_set_control): Likewise.
5993         (i386_dr_low_set_control): Likewise.
5994         (i386_dr_low_get_control): Likewise.
5995         (i386_dr_low_get_status): Likewise.
5996         (i386_get_debug_register_length): Likewise.
5997         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
5998         (i386_dr_low): Likewise.
5999         * nat/i386-dregs.c (i386-low.h): Remove include.
6000         (i386-nat.h): Likewise.
6001         (nat/i386-dregs.h): New include.
6002         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6003         (i386_dr_low_set_addr): Likewise.
6004         (i386_dr_low_get_addr): Likewise.
6005         (i386_dr_low_can_set_control): Likewise.
6006         (i386_dr_low_set_control): Likewise.
6007         (i386_dr_low_get_control): Likewise.
6008         (i386_dr_low_get_status): Likewise.
6009         (i386_get_debug_register_length): Likewise.
6010         (debug_hw_points): Likewise.
6011
6012 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
6013
6014         * Makefile.in (SFILES): Add d-exp.y.
6015         (YYFILES): Add d-exp.c.
6016         (YYOBJ): Add d-exp.o.
6017         (local-maintainer-clean): Delete d-exp.c.
6018         * d-exp.y: New file.
6019         * d-lang.h (d_parse): New declaration.
6020         (d_error): New declaration.
6021         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6022         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6023         PREC_ORDER operators.
6024         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6025
6026 2014-06-19  Yao Qi  <yao@codesourcery.com>
6027
6028         * gdbthread.h (any_running): Remove the declaration.
6029         * thread.c (any_running): Remove.
6030
6031 2014-06-19  Yao Qi  <yao@codesourcery.com>
6032
6033         * gdbthread.h (struct thread_info) <state>: Change its type to
6034         'enum thread_state'.  Update comments.
6035
6036 2014-06-19  Pedro Alves  <palves@redhat.com>
6037
6038         * gdbthread.h (ALL_THREADS): Delete.
6039         (ALL_NON_EXITED_THREADS): New macro.
6040         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6041         instead of ALL_THREADS.
6042         * infrun.c (find_thread_needs_step_over)
6043         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6044         instead of ALL_THREADS.
6045         * record-btrace.c (record_btrace_open)
6046         (record_btrace_stop_recording, record_btrace_close)
6047         (record_btrace_is_replaying, record_btrace_resume)
6048         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6049         * remote.c (append_pending_thread_resumptions): Likewise.
6050         * thread.c (thread_apply_all_command): Likewise.
6051
6052 2014-06-19  Gary Benson  <gbenson@redhat.com>
6053
6054         * i386-nat.c (i386_stopped_by_watchpoint):
6055         Use i386_dr_stopped_by_watchpoint.
6056         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6057         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6058
6059 2014-06-19  Gary Benson  <gbenson@redhat.com>
6060
6061         * nat/i386-dregs.c: New file.
6062         * Makefile.in (i386-dregs.o): New rule.
6063         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6064         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6065         * config/i386/darwin.mh (NATDEPFILES): Likewise.
6066         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6067         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6068         * config/i386/go32.mh (NATDEPFILES): Likewise.
6069         * config/i386/linux.mh (NATDEPFILES): Likewise.
6070         * config/i386/linux64.mh (NATDEPFILES): Likewise.
6071         * config/i386/mingw.mh (NATDEPFILES): Likewise.
6072         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6073         * i386-nat.h (debug_hw_points): New declaration.
6074         * i386-nat.c (breakpoint.h): Remove include.
6075         (command.h): Likewise.
6076         (target.h): Likewise.
6077         (gdb_assert.h): Likewise.
6078         (debug_hw_points): Made nonstatic.
6079         (debug_printf): Now in i386-dregs.c.
6080         (TARGET_HAS_DR_LEN_8): Likewise.
6081         (DR_CONTROL_SHIFT): Likewise.
6082         (DR_CONTROL_SIZE): Likewise.
6083         (DR_RW_EXECUTE): Likewise.
6084         (DR_RW_WRITE): Likewise.
6085         (DR_RW_READ): Likewise.
6086         (DR_RW_IORW): Likewise.
6087         (DR_LEN_1): Likewise.
6088         (DR_LEN_2): Likewise.
6089         (DR_LEN_4): Likewise.
6090         (DR_LEN_8): Likewise.
6091         (DR_LOCAL_ENABLE_SHIFT): Likewise.
6092         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6093         (DR_ENABLE_SIZE): Likewise.
6094         (DR_LOCAL_SLOWDOWN): Likewise.
6095         (DR_GLOBAL_SLOWDOWN): Likewise.
6096         (DR_CONTROL_RESERVED): Likewise.
6097         (I386_DR_CONTROL_MASK): Likewise.
6098         (I386_DR_VACANT): Likewise.
6099         (I386_DR_LOCAL_ENABLE): Likewise.
6100         (I386_DR_GLOBAL_ENABLE): Likewise.
6101         (I386_DR_DISABLE): Likewise.
6102         (I386_DR_SET_RW_LEN): Likewise.
6103         (I386_DR_GET_RW_LEN): Likewise.
6104         (I386_DR_WATCH_HIT): Likewise.
6105         (i386_wp_op_t): Likewise.
6106         (i386_show_dr): Likewise.
6107         (i386_length_and_rw_bits): Likewise.
6108         (i386_insert_aligned_watchpoint): Likewise.
6109         (i386_remove_aligned_watchpoint): Likewise.
6110         (i386_handle_nonaligned_watchpoint): Likewise.
6111         (i386_update_inferior_debug_regs): Likewise.
6112         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6113         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6114         (i386_region_ok_for_watchpoint):
6115         Use i386_dr_region_ok_for_watchpoint.
6116         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6117
6118 2014-06-19  Gary Benson  <gbenson@redhat.com>
6119
6120         * i386-nat.c (i386_insert_hw_breakpoint): Use
6121         i386_insert_watchpoint.
6122         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6123
6124 2014-06-19  Gary Benson  <gbenson@redhat.com>
6125
6126         * i386-nat.c (i386_dr_show): Renamed to
6127         i386_show_dr and made static.  All uses updated.
6128         (i386_dr_length_and_rw_bits): Renamed to
6129         i386_length_and_rw_bits and made static.
6130         All uses updated.
6131         (i386_dr_insert_aligned_watchpoint): Renamed to
6132         i386_insert_aligned_watchpoint and made static.
6133         All uses updated.
6134         (i386_dr_remove_aligned_watchpoint): Renamed to
6135         i386_remove_aligned_watchpoint and made static.
6136         All uses updated.
6137         (i386_dr_update_inferior_debug_regs): Renamed to
6138         i386_update_inferior_debug_regs and made static.
6139         All uses updated.
6140         * nat/i386-dregs.h (i386_dr_show): Removed.
6141         (i386_dr_length_and_rw_bits): Likewise.
6142         (i386_dr_insert_aligned_watchpoint): Likewise.
6143         (i386_dr_remove_aligned_watchpoint): Likewise.
6144         (i386_dr_update_inferior_debug_regs): Likewise.
6145
6146 2014-06-19  Gary Benson  <gbenson@redhat.com>
6147
6148         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6149         * configure: Regenerate.
6150         * config.in: Likewise.
6151         * main.c (signal.h): New include.
6152         (setup_alternate_signal_stack): New function.
6153         (captured_main): Call the above.
6154         * cp-support.c (signal.h): New include.
6155         (catch_demangler_crashes): New flag.
6156         (SIGJMP_BUF): New define.
6157         (SIGSETJMP): Likewise.
6158         (SIGLONGJMP): Likewise.
6159         (gdb_demangle_jmp_buf): New static global.
6160         (gdb_demangle_attempt_core_dump): Likewise.
6161         (gdb_demangle_signal_handler): New function.
6162         (gdb_demangle): If catch_demangler_crashes is set, install the
6163         above signal handler before calling bfd_demangle, and restore
6164         the original signal handler afterwards.  Display the offending
6165         symbol and call demangler_warning the first time a segmentation
6166         fault is caught.
6167         (_initialize_cp_support): New maint set/show command.
6168
6169 2014-06-19  Gary Benson  <gbenson@redhat.com>
6170
6171         * utils.h (resource_limit_kind): New enum.
6172         (can_dump_core): New declaration.
6173         (warn_cant_dump_core): Likewise.
6174         (dump_core): Likewise.
6175         * utils.c (dump_core): Made nonstatic.  Added new
6176         parameter "limit_kind".
6177         (can_dump_core): Made nonstatic. Moved printing code to...
6178         (warn_cant_dump_core): New function.
6179         (can_dump_core_warn): Likewise.
6180         (internal_vproblem): Replace calls to can_dump_core with
6181         calls to can_dump_core_warn.  Supply new argument to each.
6182
6183 2014-06-19  Gary Benson  <gbenson@redhat.com>
6184
6185         * utils.h (demangler_vwarning): New declaration.
6186         (demangler_warning): Likewise.
6187         * utils.c (struct internal_problem)
6188         <user_settable_should_quit>: New field.
6189         <user_settable_should_dump_core>: Likewise
6190         (internal_error_problem): Add values for above new fields.
6191         (internal_warning_problem): Likewise.
6192         (demangler_warning_problem): New static global.
6193         (demangler_vwarning): New function.
6194         (demangler_warning): Likewise.
6195         (add_internal_problem_command): Selectively add commands.
6196         (_initialize_utils): New internal problem command.
6197         * maint.c (maintenance_demangler_warning): New function.
6198         (_initialize_maint_cmds): New command.
6199
6200 2014-06-18  Tom Tromey  <tromey@redhat.com>
6201
6202         * f-valprint.c (info_common_command_for_block): Update.
6203         * symtab.h (struct general_symbol_info) <common_block>: Now
6204         const.
6205
6206 2014-06-18  Tom Tromey  <tromey@redhat.com>
6207
6208         * symtab.h (struct symtab) <blockvector>: Now const.
6209         * ada-lang.c (ada_add_global_exceptions): Update.
6210         * buildsym.c (augment_type_symtab): Update.
6211         * dwarf2read.c (dw2_lookup_symbol): Update.
6212         * jit.c (finalize_symtab): Update.
6213         * jv-lang.c (add_class_symtab_symbol): Update.
6214         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6215         Update.
6216         * objfiles.c (objfile_relocate1): Update.
6217         * psymtab.c (lookup_symbol_aux_psymtabs)
6218         (maintenance_check_psymtabs): Update.
6219         * python/py-symtab.c (stpy_global_block, stpy_static_block):
6220         Update.
6221         * spu-tdep.c (spu_catch_start): Update.
6222         * symmisc.c (dump_symtab_1): Update.
6223         * symtab.c (lookup_global_symbol_from_objfile)
6224         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6225         (basic_lookup_transparent_type_quick)
6226         (basic_lookup_transparent_type, find_pc_sect_symtab)
6227         (find_pc_sect_line, search_symbols): Update.
6228         * block.c (find_block_in_blockvector): Make "bl" const.
6229         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6230         const.
6231         (blockvector_contains_pc): Make "bv" const.
6232         (block_for_pc_sect): Update.
6233         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6234         (blockvector_contains_pc): Update.
6235         * breakpoint.c (resolve_sal_pc): Update.
6236         * inline-frame.c (block_starting_point_at): Update.
6237
6238 2014-06-18  Tom Tromey  <tromey@redhat.com>
6239
6240         * completer.c (complete_line): Make "line_buffer" const.
6241         * completer.h (complete_line): Update.
6242
6243 2014-06-18  Tom Tromey  <tromey@redhat.com>
6244
6245         * symtab.c (add_macro_name): Remove unneeded cast.
6246
6247 2014-06-18  Tom Tromey  <tromey@redhat.com>
6248
6249         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6250         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6251
6252 2014-06-18  Tom Tromey  <tromey@redhat.com>
6253
6254         * probe.c (info_probes_for_ops): Make "arg" const.
6255         * probe.h (info_probes_for_ops): Update.
6256
6257 2014-06-18  Tom Tromey  <tromey@redhat.com>
6258
6259         * varobj.c (varobj_create): Update.
6260         * valops.c (value_of_this): Update.
6261         * tracepoint.c (add_local_symbols, scope_info): Update.
6262         * symtab.h (struct general_symbol_info) <block>: Now const.
6263         * symtab.c (skip_prologue_sal)
6264         (default_make_symbol_completion_list_break_on)
6265         (skip_prologue_using_sal): Update.
6266         * stack.h (iterate_over_block_locals)
6267         (iterate_over_block_local_vars): Update.
6268         * stack.c (print_frame_args): Update.
6269         (iterate_over_block_locals, iterate_over_block_local_vars): Make
6270         parameter const.
6271         (get_selected_block): Make return type const.
6272         * python/py-frame.c (frapy_block): Update.
6273         * python/py-block.c (gdbpy_block_for_pc): Update.
6274         * p-exp.y (%union) <bval>: Now const.
6275         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6276         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6277         * m2-exp.y (%union) <bval>: Now const.
6278         * linespec.c (get_current_search_block): Make return type const.
6279         (create_sals_line_offset, find_label_symbols): Update.
6280         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6281         Update.
6282         (block_starting_point_at): Make "block" const.
6283         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6284         (check_exception_resume): Update.
6285         * guile/scm-frame.c (gdbscm_frame_block): Update.
6286         * guile/scm-block.c (gdbscm_lookup_block): Update.
6287         * frame.h (get_frame_block): Update.
6288         (get_selected_block): Make return type const.
6289         * frame.c (frame_id_inner): Update.
6290         * f-valprint.c (info_common_command_for_block)
6291         (info_common_command): Update.
6292         * dwarf2loc.c (dwarf2_find_location_expression)
6293         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6294         (locexpr_describe_location_piece): Update.
6295         * c-exp.y (%union) <bval>: Now const.
6296         * breakpoint.c (resolve_sal_pc): Update.
6297         * blockframe.c (get_frame_block):Make return type const.
6298         (get_pc_function_start, get_frame_function, find_pc_sect_function)
6299         (block_innermost_frame): Update.
6300         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6301         (block_for_pc, block_for_pc_sect): Update.
6302         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6303         'pblock' const.
6304         (block_for_pc_sect, block_for_pc): Make return type const.
6305         * ax-gdb.c (gen_expr): Update.
6306         * alpha-mdebug-tdep.c (find_proc_desc): Update.
6307         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6308         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6309         (ada_read_var_value): Update.
6310         * ada-exp.y (struct name_info) <block>: Now const.
6311         (%union): Likewise.
6312         (block_lookup): Constify.
6313
6314 2014-06-18  Gary Benson  <gbenson@redhat.com>
6315
6316         * nat/i386-dregs.h: New file.
6317         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6318         * i386-nat.h (i386-dregs.h): New include.
6319         (DR_FIRSTADDR): Now in i386-dregs.h.
6320         (DR_LASTADDR): Likewise.
6321         (DR_NADDR): Likewise.
6322         (DR_STATUS): Likewise.
6323         (DR_CONTROL): Likewise.
6324         (i386_debug_reg_state): Likewise.
6325         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6326
6327 2014-06-18  Don Breazeal  <donb@codesourcery.com>
6328
6329         * breakpoint.c (set_longjmp_breakpoint): Call
6330         momentary_breakpoint_from_master with additional argument.
6331         (set_longjmp_breakpoint_for_call_dummy): Call
6332         momentary_breakpoint_from_master with additional argument.
6333         (set_std_terminate_breakpoint): Call
6334         momentary_breakpoint_from_master with additional argument.
6335         (momentary_breakpoint_from_master): Add argument to function
6336         definition and use it to initialize structure member flag.
6337         (clone_momentary_breakpoint): Call
6338         momentary_breakpoint_from_master with additional argument.
6339         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6340         member flags set in momentary_breakpoint_from_master.
6341
6342 2014-06-18  Gary Benson  <gbenson@redhat.com>
6343
6344         * i386-nat.c (i386_show_dr): Renamed to
6345         i386_dr_show and made nonstatic.  All uses updated.
6346         (i386_length_and_rw_bits): Renamed to
6347         i386_dr_length_and_rw_bits and made nonstatic.
6348         All uses updated.
6349         (i386_insert_aligned_watchpoint): Renamed to
6350         i386_dr_insert_aligned_watchpoint and made nonstatic.
6351         All uses updated.
6352         (i386_remove_aligned_watchpoint): Renamed to
6353         i386_dr_remove_aligned_watchpoint and made nonstatic.
6354         All uses updated.
6355         (i386_update_inferior_debug_regs): Renamed to
6356         i386_dr_update_inferior_debug_regs and made nonstatic.
6357         All uses updated.
6358
6359 2014-06-18  Gary Benson  <gbenson@redhat.com>
6360
6361         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6362         (i386_dr_low_can_set_control): Likewise.
6363         (i386_dr_low_set_addr): Likewise.
6364         (i386_dr_low_set_control): Likewise.
6365         (i386_dr_low_get_addr): Likewise.
6366         (i386_dr_low_get_status): Likewise.
6367         (i386_dr_low_get_control): Likewise.
6368         (i386_insert_aligned_watchpoint): Use new macros.
6369         (i386_update_inferior_debug_regs): Likewise.
6370         (i386_stopped_data_address): Likewise.
6371
6372 2014-06-18  Gary Benson  <gbenson@redhat.com>
6373
6374         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6375         New parameter.  All uses updated.
6376
6377 2014-06-18  Gary Benson  <gbenson@redhat.com>
6378
6379         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6380         All uses updated.
6381
6382 2014-06-18  Gary Benson  <gbenson@redhat.com>
6383
6384         * i386-nat.c (debug_printf): New macro.
6385         (i386_get_debug_register_length): Likewise.
6386         (TARGET_HAS_DR_LEN_8): Use above macro.
6387         (i386_show_dr): Use debug_printf instead of puts_unfiltered
6388         and printf_unfiltered.  Use phex to format values.
6389
6390 2014-06-18  Gary Benson  <gbenson@redhat.com>
6391
6392         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6393         Make const.
6394
6395 2014-06-18  Gary Benson  <gbenson@redhat.com>
6396
6397         * i386-nat.c: Comment changes.
6398
6399 2014-06-18  Gary Benson  <gbenson@redhat.com>
6400
6401         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6402
6403 2014-06-18  Gary Benson  <gbenson@redhat.com>
6404
6405         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6406         (i386_insert_aligned_watchpoint): Likewise.
6407         (i386_remove_aligned_watchpoint): Likewise.
6408         (i386_handle_nonaligned_watchpoint): Likewise.
6409
6410 2014-06-18  Gary Benson  <gbenson@redhat.com>
6411
6412         * i386-nat.c: Whitespace changes.
6413
6414 2014-06-17  Samuel Bronson  <naesten@gmail.com>
6415
6416         * MAINTAINERS: Update Roland McGrath's email address.
6417         Thanks to Sergio Durigan Junior for pointing out that he left
6418         Red Hat a while ago, and giving me a current address.
6419
6420 2014-06-17  Tom Tromey  <tromey@redhat.com>
6421
6422         * utils.h (savestring): Remove declaration.
6423
6424 2014-06-17  Tom Tromey  <tromey@redhat.com>
6425
6426         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6427
6428 2014-06-16  Keith Seitz  <keiths@redhat.com>
6429
6430         PR mi/15863
6431         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6432         to update the varobj if inferior_ptid is null_ptid.
6433
6434 2014-06-16  Tom Tromey  <tromey@redhat.com>
6435
6436         * target.h (struct target_ops) <to_info_proc>: Make parameter
6437         const.
6438         (target_info_proc): Update.
6439         * target.c (target_info_proc): Make "args" const.
6440         * procfs.c (procfs_info_proc): Update.
6441         * linux-tdep.c (linux_info_proc): Update.
6442         (linux_core_info_proc_mappings): Make "args" const.
6443         (linux_core_info_proc): Update.
6444         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6445         * gdbarch.c: Rebuild.
6446         * gdbarch.h: Rebuild.
6447         * corelow.c (core_info_proc): Update.
6448
6449 2014-06-16  Tom Tromey  <tromey@redhat.com>
6450
6451         * target.h (struct target_ops) <to_disconnect>: Make parameter
6452         const.
6453         (target_disconnect): Update.
6454         * target.c (target_disconnect): Make "args" const.
6455         * target-delegates.c: Rebuild.
6456         * remote.c (remote_disconnect): Update.
6457         * record.h (record_disconnect): Update.
6458         * record.c (record_disconnect): Update.
6459         * inf-child.c (inf_child_disconnect): Update.
6460
6461 2014-06-16  Tom Tromey  <tromey@redhat.com>
6462
6463         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6464         * target.c (debug_to_rcmd, default_rcmd): Update.
6465         * target-delegates.c: Rebuild.
6466         * remote.c (remote_rcmd): Update.
6467         * monitor.c (monitor_rcmd): Update.
6468
6469 2014-06-16  Pedro Alves  <palves@redhat.com>
6470
6471         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6472         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6473         have OBJF_SHARED set.
6474         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6475         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
6476         instead of OBJF_USERLOADED.
6477         * objfiles.h (OBJF_SHARED): Update comment.
6478         (userloaded_objfile_contains_address_p): Rename to ...
6479         (shared_objfile_contains_address_p): ... this, and update
6480         comments.
6481         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6482         new objfile.
6483         (remove_symbol_file_command): Skip objfiles that don't have
6484         OBJF_SHARED set.
6485
6486 2014-06-16  Tom Tromey  <tromey@redhat.com>
6487
6488         * minsyms.h (prim_record_minimal_symbol)
6489         (prim_record_minimal_symbol_and_info): Update comments.
6490
6491 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
6492
6493         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6494         or --without-guile, according to how GDB was built.
6495
6496 2014-06-13  Tom Tromey  <tromey@redhat.com>
6497
6498         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6499         to help_list.
6500         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6501         to help_list.
6502         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6503         help_list.
6504         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6505         help_list.Pass all_commands, not -1, to help_list.
6506         * cli/cli-dump.c (dump_command, append_command)
6507         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6508         (binary_dump_command, binary_append_command): Pass all_commands,
6509         not -1, to help_list.
6510         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6511         -1, to help_list.
6512         * valprint.c (set_print, set_print_raw): Pass all_commands, not
6513         -1, to help_list.
6514         * typeprint.c (set_print_type): Pass all_commands, not -1, to
6515         help_list.
6516         * top.c (set_history): Pass all_commands, not -1, to help_list.
6517         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6518         all_commands, not -1, to help_list.
6519         * symfile.c (overlay_command): Pass all_commands, not -1, to
6520         help_list.
6521         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6522         help_list.
6523         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6524         help_list.
6525         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6526         -1, to help_list.
6527         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6528         not -1, to help_list.
6529         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6530         not -1, to help_list.
6531         * maint.c (maintenance_command, maintenance_info_command)
6532         (maintenance_print_command, maintenance_set_cmd): Pass
6533         all_commands, not -1, to help_list.
6534         * macrocmd.c (macro_command): Pass all_commands, not -1, to
6535         help_list.
6536         * language.c (set_check): Pass all_commands, not -1, to help_list.
6537         * infcmd.c (unset_command): Pass all_commands, not -1, to
6538         help_list.
6539         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6540         help_list.
6541         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6542         help_list.
6543         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6544         help_list.
6545         * breakpoint.c (save_command): Pass all_commands, not -1, to
6546         help_list.
6547         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6548         all_commands, not -1, to help_list.
6549
6550 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
6551
6552         * regcache.c (struct register_to_invalidate): New structure.
6553         (do_register_invalidate, make_cleanup_regcache_invalidate): New
6554         functions.
6555         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6556
6557 2014-06-12  Yao Qi  <yao@codesourcery.com>
6558
6559         * varobj.c (varobj_get_num_children): Call
6560         varobj_is_dynamic_p.
6561         (varobj_list_children): Likewise.
6562         (varobj_update): Likewise.  Update comments.
6563
6564 2014-06-12  Yao Qi  <yao@codesourcery.com>
6565
6566         * varobj.c (varobj_pretty_printed_p): Rename to ...
6567         (varobj_is_dynamic_p): ... this.  New function.
6568         * varobj.h (varobj_pretty_printed_p): Remove declaration.
6569         (varobj_is_dynamic_p): Declare.
6570         * mi/mi-cmd-var.c (print_varobj): All callers updated.
6571         (mi_print_value_p, varobj_update_one): Likewise.
6572
6573 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
6574             Yao Qi  <yao@codesourcery.com>
6575
6576         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6577         (varobj_get_iterator): Wrap up code for pretty-printer by
6578         "#if HAVE_PYTHON" and "#endif".
6579         (update_dynamic_varobj_children): Likewise.
6580
6581 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
6582             Yao Qi  <yao@codesourcery.com>
6583
6584         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6585         gdb_python_initialized is false.  Move some code from varobj.c.
6586         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6587         * varobj.c: Move "varobj-iter.h" inclusion earlier.
6588         (struct varobj_item): Moved to varobj-iter.h".
6589         (varobj_clear_saved_item): New function.
6590         (update_dynamic_varobj_children): Move python-related code to
6591         py-varobj.c.
6592         (free_variable): Call varobj_clear_saved_item and
6593         varobj_iter_delete.
6594
6595 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
6596             Yao Qi  <yao@codesourcery.com>
6597
6598         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6599         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6600         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6601         (py-varobj.o): New rule.
6602         * python/py-varobj.c: New file.
6603         * python/python-internal.h (py_varobj_get_iterator): Declare.
6604         * varobj-iter.h: New file.
6605         * varobj.c: Include "varobj-iter.h"
6606         (struct varobj) <child_iter>: Change its type from "PyObject *"
6607         to "struct varobj_iter *".
6608         <saved_item>: Likewise.
6609         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6610         [HAVE_PYTHON] (varobj_get_iterator): New function.
6611         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6612         python-specific code to python/py-varobj.c.
6613         (install_visualizer): Call varobj_iter_delete instead of
6614         Py_XDECREF.
6615         * varobj.h (varobj_ensure_python_env): Declare.
6616
6617 2014-06-12  Yao Qi  <yao@codesourcery.com>
6618
6619         * varobj.c (struct varobj_item): New structure.
6620         (create_child_with_value): Update declaration.
6621         (varobj_add_child): Replace arguments 'name' and 'value' with
6622         'item'.  All callers updated.
6623         (install_dynamic_child): Likewise.
6624         (update_dynamic_varobj_children): Likewise.
6625         (varobj_add_child): Likewise.
6626         (create_child_with_value): Likewise.
6627
6628 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
6629
6630         * NEWS: Create a new section for the next release branch.
6631         Rename the section of the current branch, now that it has
6632         been cut.
6633
6634 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
6635
6636         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6637         * version.in: Bump version to 7.8.50.DATE-cvs.
6638
6639 2014-06-11  Pedro Alves  <palves@redhat.com>
6640
6641         PR remote/17028
6642         * ser-mingw.c (net_windows_socket_check_pending): New function.
6643         (net_windows_select_thread): Ignore spurious wakeups.  Use
6644         net_windows_socket_check_pending.
6645         (net_windows_wait_handle): Check for pending events with
6646         ioctlsocket, through net_windows_socket_check_pending, instead of
6647         checking the socket's event.
6648
6649 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
6650
6651         * python/python-internal.h (gdb_PyObject_GetAttrString)
6652         (gdb_PyObject_HasAttrString): New inline function definitions.
6653         * py-value.c (get_field_flag): Remove the now unnecessary cast to
6654         char * of the second argument to PyObject_GetAttrString.
6655
6656 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
6657
6658         * serial.c (serial_write): Fix index of character to be printed
6659         in call to serial_logchar when serial debug traces are enabled.
6660
6661 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
6662
6663         * gdbtypes (resolve_dynamic_range): Add function description.
6664
6665 2014-06-09  Pedro Alves  <palves@redhat.com>
6666
6667         * linux-nat.c (linux_child_follow_fork): Initialize status with
6668         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
6669         inner block.  Only pass the signal to PTRACE_DETACH if in pass
6670         state.
6671
6672 2014-06-09  Gary Benson  <gbenson@redhat.com>
6673
6674         * common/signals.c (gdb_signal_from_host): Reorder to separate
6675         the always-available ANSI-standard signals from the signals that
6676         require checking.
6677         (do_gdb_signal_to_host): Likewise.
6678         * proc-events.c (signal_table): Likewise.
6679
6680 2014-06-08  Hui Zhu  <hui@codesourcery.com>
6681
6682         * common/linux-ptrace.c (linux_disable_event_reporting): New
6683         function.
6684         * common/linux-ptrace.h (linux_disable_event_reporting): New
6685         declaration.
6686         * linux-nat.c (linux_child_follow_fork): Do a single step before
6687         detach.
6688
6689 2014-06-07  Keith Seitz  <keiths@redhat.com>
6690
6691         Revert:
6692         PR c++/16253
6693         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6694         from symbol_matches_domain in symtab.c. All local callers
6695         of symbol_matches_domain updated.
6696         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6697         search STRUCT_DOMAIN.
6698         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6699         independently.  standard_lookup will do that automatically.
6700         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6701         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6702         (cp_lookup_symbol_in_namespace): Likewise.
6703         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6704         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6705         may return a STRUCT_DOMAIN match.
6706         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6707         * cp-support.c: Include language.h.
6708         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6709         VAR_DOMAIN.
6710         * psymtab.c (match_partial_symbol): Compare the requested
6711         domain with the symbol's domain directly.
6712         (lookup_partial_symbol): Likewise.
6713         * symtab.c (lookup_symbol_in_language): Explain when/why
6714         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6715         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6716         appropriate languages.
6717         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6718         and moved to ada-lang.c
6719         (lookup_block_symbol): Explain that this function only returns
6720         symbol matching the requested DOMAIN.
6721         Compare the requested domain with the symbol's domain directly.
6722         (iterate_over_symbols): Compare the requested domain with the
6723         symbol's domain directly.
6724         * symtab.h (symbol_matches_domain): Remove.
6725
6726 2014-06-06  Doug Evans  <xdje42@gmail.com>
6727
6728         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6729         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6730         (gdbscm_guile_version_is_at_least): Declare.
6731         (gdbscm_scm_string_to_int): Declare.
6732         * guile/guile.c (gdbscm_guile_major_version): New global.
6733         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6734         (guile_datadir): New static global.
6735         (gdbscm_guile_data_directory): New function.
6736         (initialize_scheme_side): Update.
6737         (misc_guile_functions): Add guile-data-directory.
6738         (initialize_gdb_module): Fetch guile version number.
6739         * guile/lib/gdb.scm: Remove call to add-to-load-path.
6740         * guile/lib/gdb/init.scm (%initialize!): Ditto.
6741         * guile/lib/gdb/boot.scm: Use guile-data-directory.
6742         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6743         comments.
6744         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6745         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6746         * guile/scm-value.c (gdbscm_value_to_string): Only call
6747         scm_port_conversion_strategy if Guile version >= 2.0.6.
6748
6749 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
6750
6751         * main.c (print_gdb_help): Add -q and --silent.
6752
6753 2014-06-06  Gary Benson  <gbenson@redhat.com>
6754
6755         * common/signals.c: Remove preprocessor conditionals for
6756         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6757         SIGSEGV and SIGTERM.
6758         * proc-events.c: Likewise.
6759
6760 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
6761
6762         * symfile.c (symfile_free_objfile): Remove restriction to
6763         OBJF_USERLOADED.
6764         * symfile-mem.c (symbol_file_add_from_memory): Call
6765         add_target_sections_of_objfile.
6766
6767 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
6768
6769         * guile/scm-value.c (gdbscm_history_append_x): Use
6770         'vlscm_get_value_smob_arg_unsafe' instead of
6771         'vlscm_scm_to_value'.
6772
6773 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
6774
6775         PR mi/15806
6776         * utils.c (printchar): Don't escape at all if quoter is NUL.
6777         Update function documentation to clarify effect of parameter
6778         QUOTER.
6779         * remote.c (escape_buffer): Pass '\\' as the quoter to
6780         fputstrn_unfiltered.
6781         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6782         generate the output.
6783         (mi_solib_unloaded): Same.
6784
6785 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
6786
6787         * development.sh: Delete.
6788         * Makefile.in (config.status): Adjust dependency on development.sh.
6789         * configure.ac: Adjust development.sh source call.
6790         * configure: Regenerate.
6791
6792 2014-06-04  Doug Evans  <xdje42@gmail.com>
6793
6794         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6795         is_scheme_bkpt, spec.
6796         (bpscm_make_breakpoint_smob): Initialize new members.
6797         (gdbscm_create_breakpoint_x): Split into two ...
6798         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6799         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6800         (scheme_function breakpoint_functions): Update.
6801         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
6802         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
6803         register-breakpoint!.
6804
6805 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
6806
6807         PR server/17023
6808         * mem-break.c (z_type_supported): Return zero if
6809         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6810
6811 2014-06-04  Tom Tromey  <tromey@redhat.com>
6812
6813         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6814         value_from_contents_and_address_unresolved.
6815         (ada_template_to_fixed_record_type_1): Likewise.
6816         (ada_which_variant_applies): Likewise.
6817         * value.h (value_from_contents_and_address_unresolved): Declare.
6818         * value.c (value_from_contents_and_address_unresolved): New
6819         function.
6820         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6821         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6822         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6823
6824 2014-06-04  Tom Tromey  <tromey@redhat.com>
6825
6826         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6827
6828 2014-06-04  Tom Tromey  <tromey@redhat.com>
6829
6830         * procfs.c (procfs_attach): Make "args" const.
6831         * windows-nat.c (windows_attach): Make "args" const.
6832         * nto-procfs.c (procfs_attach): Make "args" const.
6833         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6834         * go32-nat.c (go32_attach): Make "args" const.
6835         * gnu-nat.c (gnu_attach): Make "args" const.
6836         * darwin-nat.c (darwin_attach): Make "args" const.
6837         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6838         * linux-nat.c (linux_nat_attach): Make "args" const.
6839         * remote.c (extended_remote_attach_1, extended_remote_attach):
6840         Make "args" const.
6841         * target.h (struct target_ops) <to_attach>: Make "args" const.
6842         (find_default_attach): Likewise.
6843         * utils.c (parse_pid_to_attach): Make "args" const.
6844         * utils.h (parse_pid_to_attach): Update.
6845
6846 2014-06-04  Tom Tromey  <tromey@redhat.com>
6847
6848         * target-delegates.c: Rebuild.
6849         * target.c (default_thread_address_space): New function.
6850         (target_thread_address_space): Simplify.
6851         * target.h (struct target_ops) <to_thread_address_space>: Add
6852         TARGET_DEFAULT_FUNC.
6853
6854 2014-06-04  Doug Evans  <xdje42@gmail.com>
6855
6856         * guile/scm-type.c (type_smob): Remove duplicate typedef.
6857
6858 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
6859
6860         * record-btrace.c: Include event-loop.h and inf-loop.h.
6861         (record_btrace_resume_exec_dir)
6862         (record_btrace_async_inferior_event_handler)
6863         (record_btrace_handle_async_inferior_event): New.
6864         (record_btrace_open): Create async event handler.
6865         (record_btrace_close): Delete async event handler.
6866         (record_btrace_resume): Set record_btrace_resume_exec_dir,
6867         Mark async event handler.
6868         (record_btrace_execution_direction): New.
6869         (init_record_btrace_ops): Initialize to_execution_direction.
6870
6871 2014-06-03  Doug Evans  <xdje42@gmail.com>
6872
6873         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6874         (gdbscm_make_parameter): Ditto.
6875
6876 2014-06-03  Doug Evans  <dje@google.com>
6877
6878         * exec.c (exec_close_1): Call clear_section_table instead of
6879         resize_section_table.
6880         (clear_section_table): New function.
6881         (resize_section_table): Make static.  Rename arg num_added to
6882         adjustment.
6883         * exec.h (clear_section_table): Declare.
6884         (resize_section_table): Delete.
6885         * progspace.c (release_program_space): Call clear_section_table
6886         instead of resize_section_table.
6887
6888 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
6889
6890         * NEWS (Python Scripting): Add entry about the new xmethods
6891         feature.
6892
6893 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
6894
6895         * python/py-xmethods.c: New file.
6896         * python/py-objfile.c (objfile_object): New field 'xmethods'.
6897         (objfpy_dealloc): XDECREF on the new xmethods field.
6898         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
6899         field.
6900         (objfpy_get_xmethods): New function.
6901         (objfile_getset): New entry 'xmethods'.
6902         * python/py-progspace.c (pspace_object): New field 'xmethods'.
6903         (pspy_dealloc): XDECREF on the new xmethods field.
6904         (pspy_new, pspace_to_pspace_object): Initialize xmethods
6905         field.
6906         (pspy_get_xmethods): New function.
6907         (pspace_getset): New entry 'xmethods'.
6908         * python/python-internal.h: Add declarations for new functions.
6909         * python/python.c (_initialize_python): Invoke
6910         gdbpy_initialize_xmethods.
6911         * python/lib/gdb/__init__.py (xmethods): New
6912         attribute.
6913         * python/lib/gdb/xmethod.py: New file.
6914         * python/lib/gdb/command/xmethods.py: New file.
6915
6916 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
6917
6918         * eval.c (evaluate_subexp_standard): Call the xmethod if the
6919         best match method returned by find_overload_match is an xmethod.
6920         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
6921         the best matching operator returned by find_overload_match is an
6922         xmethod.
6923         * valops.c: #include "extension.h".
6924         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
6925         Return void.  The list of matching source methods is returned in
6926         "fn_list" and a vector of matching debug method workers is
6927         returned in "xm_worker_vec".  Update all callers.
6928         (value_find_oload_method_list): Likewise.
6929         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
6930         non-NULL, then the index of the best matching method in this
6931         vector is returned.  Update all callers.
6932         (find_overload_match): Include xmethods while performing overload
6933         resolution.
6934
6935 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
6936
6937         * defs.h (enum lval_type): New enumerator "lval_xcallable".
6938         * extension-priv.h (struct extension_language_ops): Add the
6939         xmethod interface.
6940         * extension.c (new_xmethod_worker, clone_xmethod_worker,
6941         get_matching_xmethod_workers, get_xmethod_argtypes,
6942         invoke_xmethod, free_xmethod_worker,
6943         free_xmethod_worker_vec): New functions.
6944         * extension.h: #include "common/vec.h".
6945         New function declarations.
6946         (struct xmethod_worker): New struct.
6947         (VEC (xmethod_worker_ptr)): New vector type.
6948         (xmethod_worker_ptr): New typedef.
6949         (xmethod_worker_vec): Likewise.
6950         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
6951         builtin_type.
6952         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
6953         (struct builtin_type): New field "xmethod".
6954         * valarith.c (value_ptradd): Assert that the value argument is not
6955         lval_xcallable.
6956         * valops.c (value_must_coerce_to_target): Return 0 for
6957         lval_xcallable values.
6958         * value.c (struct value): New field XM_WORKER in the field
6959         LOCATION.
6960         (value_address, value_raw_address): Return 0 for lval_xcallable
6961         values.
6962         (set_value_address): Assert that the value is not an
6963         lval_xcallable.
6964         (value_free): Free the associated xmethod worker when freeing
6965         lval_xcallable values.
6966         (set_value_component_location): Assert that the WHOLE value is not
6967         lval_xcallable.
6968         (value_of_xmethod, call_xmethod): New functions.
6969         * value.h: Declare "struct xmethod_worker".
6970         Declare new functions value_of_xmethod, call_xmethod.
6971
6972 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
6973             Pedro Alves  <palves@redhat.com>
6974
6975         PR breakpoints/17000
6976         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
6977         New function, extracted from software_breakpoint_inserted_here_p.
6978         (software_breakpoint_inserted_here_p): Replace factored out code
6979         by call to find_non_raw_software_breakpoint_inserted_here.
6980         (bp_target_info_copy_insertion_state): New function.
6981         (bkpt_insert_location): Handle the case of a single-step
6982         breakpoint already inserted at the same address.
6983         (bkpt_remove_location): Handle the case of a single-step
6984         breakpoint still inserted at the same address.
6985         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
6986         breakpoint already inserted at the same address.
6987         (deprecated_remove_raw_breakpoint): Handle the case of a
6988         non-raw breakpoint still inserted at the same address.
6989         (find_single_step_breakpoint): New function, extracted from
6990         single_step_breakpoint_inserted_here_p.
6991         (find_single_step_breakpoint): New function,
6992         factored out from single_step_breakpoint_inserted_here_p.
6993         (single_step_breakpoint_inserted_here_p): Reimplement.
6994
6995 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
6996
6997         Pushed by Joel Brobecker  <brobecker@adacore.com>
6998         * source.c (show_substitute_path_command): Fix display of matching
6999         substitution rules.
7000
7001 2014-06-03  Gary Benson  <gbenson@redhat.com>
7002
7003         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7004
7005 2014-06-02  Doug Evans  <xdje42@gmail.com>
7006
7007         Add parameter support for Guile.
7008         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7009         (SUBDIR_GUILE_SRCS): Add scm-param.c.
7010         (scm-param.o): New rule.
7011         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7012         (gdbscm_misc_error): Declare.
7013         (gdbscm_canonicalize_command_name): Declare.
7014         (gdbscm_scm_to_host_string): Declare.
7015         (gdbscm_scm_from_host_string): Declare.
7016         (gdbscm_initialize_parameters): Declare.
7017         * guile/guile.c (initialize_gdb_module): Call
7018         gdbscm_initialize_parameters.
7019         * guile/lib/gdb.scm: Export parameter symbols.
7020         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7021         cmdscm_canonicalize_name and made public.  All callers updated.
7022         * guile/scm-exception.c (gdbscm_misc_error): New function.
7023         * guile/scm-param.c: New file.
7024         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7025         (gdbscm_scm_to_host_string): New function.
7026         (gdbscm_scm_from_host_string): New function.
7027         * scm-utils.c (gdbscm_gc_dup_argv): New function.
7028
7029 2014-06-02  Doug Evans  <xdje42@gmail.com>
7030
7031         Add command support for Guile.
7032         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7033         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7034         (scm-cmd.o): New rule.
7035         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7036         (gdbscm_user_error_p): Declare.
7037         (gdbscm_parse_command_name): Declare.
7038         (gdbscm_valid_command_class_p): Declare.
7039         (gdbscm_initialize_commands): Declare.
7040         * guile/guile.c (initialize_gdb_module): Call
7041         gdbscm_initialize_commands.
7042         * guile/lib/gdb.scm: Export command symbols.
7043         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7044         (throw-user-error): New function.
7045         * guile/scm-cmd.c: New file.
7046         * guile/scm-exception.c (user_error_symbol): New static global.
7047         (gdbscm_user_error_p): New function.
7048         (gdbscm_initialize_exceptions): Set user_error_symbol.
7049         * scm-utils.c (gdbscm_gc_xstrdup): New function.
7050
7051 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
7052
7053         * top.c (command_loop): Handle comments here...
7054         (command_line_input): ... not here.
7055
7056 2014-06-02  Doug Evans  <xdje42@gmail.com>
7057
7058         Add progspace support for Guile.
7059         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7060         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7061         (scm-progspace.o): New rule.
7062         * guile/guile-internal.h (pspace_smob): New typedef.
7063         (psscm_pspace_smob_pretty_printers): Declare.
7064         (psscm_pspace_smob_from_pspace): Declare.
7065         (psscm_scm_from_pspace): Declare.
7066         * guile/guile.c (initialize_gdb_module): Call
7067         gdbscm_initialize_pspaces.
7068         * guile/lib/gdb.scm: Export progspace symbols.
7069         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7070         support.
7071         (append-pretty-printer!): Ditto.
7072         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7073         Implement.
7074         * guile/scm-progspace.c: New file.
7075
7076 2014-06-03  Alan Modra  <amodra@gmail.com>
7077
7078         * ppc64-tdep.c (ppc64_standard_linkage8): New.
7079         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7080
7081 2014-06-02  Doug Evans  <dje@google.com>
7082
7083         Add support for skeletonless type units.
7084         * dwarf2read.c (struct dwarf2_per_objfile): New member
7085         n_allocated_type_units.
7086         (struct dwarf2_per_objfile) <tu_stats>: New member
7087         nr_all_type_units_reallocs.
7088         (create_signatured_type_table_from_index): Initialize
7089         n_allocated_type_units
7090         (create_all_type_units): Ditto.
7091         (add_type_unit): Move up in file.  New arg slot.
7092         All callers updated.  Increase space for all_type_units more
7093         efficiently.
7094         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7095         (lookup_dwo_signatured_type): Handle skeletonless TUs.
7096         (lookup_dwp_signatured_type): Ditto.
7097         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7098         All callers updated.
7099         (build_type_psymtabs_1): Leave type_unit_groups as
7100         NULL if no TUs present.
7101         (print_tu_stats): New function.
7102         (process_skeletonless_type_unit): New function.
7103         (process_dwo_file_for_skeletonless_type_units): New
7104         function.
7105         (process_skeletonless_type_units): New function.
7106         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7107         Call print tu_stats if debugging enabled.
7108
7109 2014-06-02  Pedro Alves  <palves@redhat.com>
7110
7111         * breakpoint.c (build_target_command_list): Don't build a command
7112         list if we have any duplicate location that isn't a dprintf.
7113
7114 2014-06-02  Pedro Alves  <palves@redhat.com>
7115
7116         * breakpoint.c (dprintf_breakpoint_hit): New function.
7117         (initialize_breakpoint_ops): Install it as dprintf's
7118         breakpoint_hit method.
7119
7120 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
7121
7122         * source.c (substitute_path_rule_matches): Simplify using
7123         filename_ncmp instead of FILENAME_CMP.
7124
7125 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
7126
7127         * source.c (substitute_path_rule_matches): Remove trailing spaces.
7128
7129 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
7130
7131         * configure.ac: When Guile is available, check for the
7132         availability of 'scm_new_smob'.
7133         * configure, config.h.in: Regenerate.
7134         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7135         function.
7136
7137 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
7138
7139         * frame.c (struct frame_info): Add stop_string field.
7140         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7141         (get_prev_frame_always): Old content moved into
7142         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
7143         TRY_CATCH, handle MEMORY_ERROR exceptions.
7144         (frame_stop_reason_string): New function definition.
7145         * frame.h (unwind_stop_reason_to_string): Extend comment to
7146         mention frame_stop_reason_string.
7147         (frame_stop_reason_string): New function declaration.
7148         * stack.c (frame_info): Switch to frame_stop_reason_string.
7149         (backtrace_command_1): Switch to frame_stop_reason_string.
7150         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7151         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7152         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7153
7154 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
7155
7156         * frame.c (frame_stop_reason_string): Rename to ...
7157         (unwind_stop_reason_to_string): this.
7158         * frame.h (frame_stop_reason_string): Rename to ...
7159         (unwind_stop_reason_to_string): this.
7160         * stack.c (frame_info): Update call to frame_stop_reason_string.
7161         (backtrace_command_1): Likewise.
7162         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7163         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7164
7165 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
7166
7167         * frame.c (remove_prev_frame): New function.
7168         (get_prev_frame_if_no_cycle): Create / discard cleanup using
7169         remove_prev_frame.
7170
7171 2014-05-29  Pedro Alves  <palves@redhat.com>
7172
7173         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7174         and make it const.  When a single-step decays to a continue,
7175         clear 'step', not 'hw_step'.  Pass whether the caller wanted
7176         to step to user_visible_resume_ptid, not what we ask the
7177         target to do.
7178
7179 2014-05-29  Pedro Alves  <palves@redhat.com>
7180
7181         * infrun.c (process_event_stop_test, handle_step_into_function)
7182         (handle_step_into_function_backward): Adjust.
7183         Don't set the even thread's stop_step and call stop_waiting before
7184         calling end_stepping_range.  Instead do that ...
7185         (end_stepping_range): ... here.  Take an ecs pointer parameter.
7186
7187 2014-05-29  Pedro Alves  <palves@redhat.com>
7188
7189         * infrun.c (stop_stepping): Rename to ...
7190         (stop_waiting): ... this.
7191         (proceed): Update comment.
7192         (process_event_stop_test, handle_inferior_event)
7193         (handle_signal_stop, handle_step_into_function)
7194         (handle_step_into_function_backward): Update.
7195
7196 2014-05-29  Pedro Alves  <palves@redhat.com>
7197
7198         * infcall.c (run_inferior_call): Don't check whether the current
7199         thread is running after the proceed call.
7200
7201 2014-05-29  Pedro Alves  <palves@redhat.com>
7202             Tom Tromey  <tromey@redhat.com>
7203
7204         * NEWS: Mention "maint set target-async", "set mi-async", and that
7205         background execution commands are now always available.
7206         * target.h (target_async_permitted): Update comment.
7207         * target.c (target_async_permitted, target_async_permitted_1):
7208         Default to 1.
7209         (set_target_async_command): Rename to ...
7210         (maint_set_target_async_command): ... this.
7211         (show_target_async_command): Rename to ...
7212         (maint_show_target_async_command): ... this.
7213         (_initialize_target): Adjust.
7214         * infcmd.c (prepare_execution_command): Make extern.
7215         * inferior.h (prepare_execution_command): Declare.
7216         * infrun.c (set_observer_mode): Leave target async alone.
7217         * mi/mi-interp.c (mi_interpreter_init): Install
7218         mi_on_sync_execution_done as sync_execution_done observer.
7219         (mi_on_sync_execution_done): New function.
7220         (mi_execute_command_input_handler): Don't print the prompt if we
7221         just started a synchronous command with an async target.
7222         (mi_on_resume): Check sync_execution before printing prompt.
7223         * mi/mi-main.h (mi_async_p): Declare.
7224         * mi/mi-main.c: Include gdbcmd.h.
7225         (mi_async_p): New function.
7226         (mi_async, mi_async_1): New globals.
7227         (set_mi_async_command, show_mi_async_command, mi_async): New
7228         functions.
7229         (exec_continue): Call prepare_execution_command.
7230         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7231         (mi_execute_async_cli_command): Use mi_async_p.
7232         (_initialize_mi_main): Install "set mi-async".  Make
7233         "target-async" a deprecated alias.
7234
7235 2014-05-29  Pedro Alves  <palves@redhat.com>
7236
7237         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7238         (_initialize_cli_interp): Adjust.
7239         * event-loop.c: Include "observer.h".
7240         (start_event_loop): Notify 'command_error' observers instead of
7241         calling display_gdb_prompt.  Remove FIXME comment.
7242         * event-top.c (display_gdb_prompt): Remove call into the
7243         interpreters.
7244         * inf-loop.c: Include "observer.h".
7245         (inferior_event_handler): Notify 'command_error' observers instead
7246         of calling display_gdb_prompt.
7247         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7248         observers instead of calling display_gdb_prompt.
7249         * interps.c (interp_set): Don't call display_gdb_prompt.
7250         (current_interp_display_prompt_p): Delete.
7251         * interps.h (interp_prompt_p): Delete declaration.
7252         (interp_prompt_p_ftype): Delete.
7253         (struct interp_procs) <prompt_proc_p>: Delete field.
7254         (current_interp_display_prompt_p): Delete declaration.
7255         * mi-interp.c (mi_interpreter_prompt_p): Delete.
7256         (_initialize_mi_interp): Adjust.
7257         * tui-interp.c (tui_init): Install 'sync_execution_done' and
7258         'command_error' observers.
7259         (tui_on_sync_execution_done, tui_on_command_error): New
7260         functions.
7261         (tui_display_prompt_p): Delete.
7262         (_initialize_tui_interp): Adjust.
7263
7264 2014-05-29  Pedro Alves  <palves@redhat.com>
7265
7266         PR gdb/13860
7267         * cli/cli-interp.c: Include infrun.h and observer.h.
7268         (cli_uiout, cli_interp): New globals.
7269         (cli_on_signal_received, cli_on_end_stepping_range)
7270         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7271         functions.
7272         (cli_interpreter_init): Install them as 'end_stepping_range',
7273         'signal_received' 'signal_exited', 'exited' and 'no_history'
7274         observers.
7275         (_initialize_cli_interp): Remove cli_interp local.
7276         * infrun.c (handle_inferior_event): Call the several stop reason
7277         observers instead of printing the stop reason directly.
7278         (end_stepping_range): New function.
7279         (print_end_stepping_range_reason, print_signal_exited_reason)
7280         (print_exited_reason, print_signal_received_reason)
7281         (print_no_history_reason): Make static, and add an uiout
7282         parameter.  Print to that instead of to CURRENT_UIOUT.
7283         * infrun.h (print_end_stepping_range_reason)
7284         (print_signal_exited_reason, print_exited_reason)
7285         (print_signal_received_reason print_no_history_reason): New
7286         declarations.
7287         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7288         'mi_uiout'.
7289         <cli_uiout>: New field.
7290         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
7291         uiout for CLI output.  Install 'signal_received',
7292         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7293         observers.
7294         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7295         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7296         (mi_on_no_history): New functions.
7297         (ui_out_free_cleanup): Delete function.
7298         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7299         instead use the one already stored in the MI interpreter data.
7300         (mi_ui_out): Adjust.
7301         * tui/tui-interp.c: Include infrun.h and observer.h.
7302         (tui_interp): New global.
7303         (tui_on_signal_received, tui_on_end_stepping_range)
7304         (tui_on_signal_exited, tui_on_exited)
7305         (tui_on_no_history): New functions.
7306         (tui_init): Install them as 'end_stepping_range',
7307         'signal_received' 'signal_exited', 'exited' and 'no_history'
7308         observers.
7309         (_initialize_tui_interp): Delete tui_interp local.
7310
7311 2014-05-29  Pedro Alves  <palves@redhat.com>
7312
7313         PR gdb/15713
7314         * linux-nat.c (linux_nat_resume_callback): Rename the second
7315         parameter to 'except'.  Skip LP if it points to EXCEPT.
7316         (linux_nat_resume): Don't mark the event lwp as not stopped
7317         before resuming sibling lwps.  Instead ask
7318         linux_nat_resume_callback to skip the event lwp.  Mark it as not
7319         stopped after actually resuming it.
7320         (linux_handle_syscall_trap): Mark the lwp as not stopped after
7321         resuming it.
7322         (wait_lwp): Mark the lwp as stopped here.
7323         (stop_wait_callback): Mark the lwp as not stopped right after
7324         resuming it.  Don't mark lwps as stopped here.
7325         (linux_nat_filter_event): Mark the lwp as stopped earlier.
7326         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7327
7328 2014-05-29  Pedro Alves  <palves@redhat.com>
7329
7330         PR PR15693
7331         * infrun.c (resume): Determine how much to resume depending on
7332         whether the caller wanted a step, not whether we can hardware step
7333         the target.  Mark all threads that we intend to run as running,
7334         unless we're calling an inferior function.
7335         (normal_stop): If the thread is running an infcall, don't finish
7336         thread state.
7337         * target.c (target_resume): Don't mark threads as running here.
7338
7339 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
7340
7341         * serial.c (_initialize_serial): Remove support for
7342         the "set remotebaud" and "show remotebaud" commands.
7343         * NEWS: Add entry documenting the removal of that command.
7344
7345 2014-05-28  Yao Qi  <yao@codesourcery.com>
7346
7347         * charset.c: Fix typo in comments.
7348
7349 2014-05-27  Gary Benson  <gbenson@redhat.com>
7350
7351         * utils.c (internal_vproblem): Prompt for a bug report.
7352
7353 2014-05-26  Andy Wingo  <wingo@igalia.com>
7354
7355         * guile/scm-arch.c (arscm_mark_arch_smob):
7356         * guile/scm-block.c (bkscm_mark_block_smob)
7357         (bkscm_mark_block_syms_progress_smob):
7358         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7359         * guile/scm-exception.c (exscm_mark_exception_smob):
7360         * guile/scm-frame.c (frscm_mark_frame_smob):
7361         * guile/scm-iterator.c (itscm_mark_iterator_smob):
7362         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7363         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7364         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7365         (ppscm_mark_pretty_printer_worker_smob):
7366         * guile/scm-symbol.c (syscm_mark_symbol_smob):
7367         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7368         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7369         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7370         mark functions.
7371         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7372         function.
7373
7374 2014-05-26  Andy Wingo  <wingo@igalia.com>
7375             Doug Evans  <xdje42@gmail.com>
7376
7377         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7378         empty_base_class.  All uses updated.
7379         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7380         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7381         Adapt all callers.
7382         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7383         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7384         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7385         (gdbscm_gsmob_has_property_p, add_property_name)
7386         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7387         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7388         (gdb-object-has-property?, gdb-object-properties): Remove.
7389         (gdb-object-kind): Renamed from gsmob-kind.
7390
7391 2014-05-26  Andy Wingo  <wingo@igalia.com>
7392
7393         * configure.ac (try_guile_versions): Allow building with guile 2.2.
7394         * configure: Regenerate.
7395
7396 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
7397
7398         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7399
7400 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
7401
7402         * record-btrace.c (record_btrace_allow_memory_access): Remove.
7403         (replay_memory_access_read_only, replay_memory_access_read_write)
7404         (replay_memory_access_types, replay_memory_access)
7405         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7406         (cmd_set_record_btrace, cmd_show_record_btrace)
7407         (cmd_show_replay_memory_access): New.
7408         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7409         (record_btrace_remove_breakpoint): Replace
7410         record_btrace_allow_memory_access with replay_memory_access.
7411         (_initialize_record_btrace): Add commands.
7412         * NEWS: Announce it.
7413
7414 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7415
7416         * aarch64-linux-nat.c (asm/ptrace.h): Include.
7417
7418 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7419
7420         * MAINTAINERS (Write After Approval): Move self back from
7421         paper trail.
7422
7423 2014-05-22  Pedro Alves  <palves@redhat.com>
7424
7425         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7426         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7427         (disable_randomization, enum exec_direction_kind)
7428         (execution_direction, stop_registers, start_remote)
7429         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7430         (wait_for_inferior, normal_stop, get_last_target_status)
7431         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7432         (insert_step_resume_breakpoint_at_sal)
7433         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7434         (set_step_info, print_stop_event, signal_stop_state)
7435         (signal_print_state, signal_pass_state, signal_stop_update)
7436         (signal_print_update, signal_pass_update)
7437         (update_signals_program_target, clear_exit_convenience_vars)
7438         (displaced_step_dump_bytes, update_observer_mode)
7439         (signal_catch_update, gdb_signal_from_command): Move
7440         declarations ...
7441         * infrun.h: ... to this new file.
7442         * amd64-tdep.c: Include infrun.h.
7443         * annotate.c: Include infrun.h.
7444         * arch-utils.c: Include infrun.h.
7445         * arm-linux-tdep.c: Include infrun.h.
7446         * arm-tdep.c: Include infrun.h.
7447         * break-catch-sig.c: Include infrun.h.
7448         * breakpoint.c: Include infrun.h.
7449         * common/agent.c: Include infrun.h instead of inferior.h.
7450         * corelow.c: Include infrun.h.
7451         * event-top.c: Include infrun.h.
7452         * go32-nat.c: Include infrun.h.
7453         * i386-tdep.c: Include infrun.h.
7454         * inf-loop.c: Include infrun.h.
7455         * infcall.c: Include infrun.h.
7456         * infcmd.c: Include infrun.h.
7457         * infrun.c: Include infrun.h.
7458         * linux-fork.c: Include infrun.h.
7459         * linux-nat.c: Include infrun.h.
7460         * linux-thread-db.c: Include infrun.h.
7461         * monitor.c: Include infrun.h.
7462         * nto-tdep.c: Include infrun.h.
7463         * procfs.c: Include infrun.h.
7464         * record-btrace.c: Include infrun.h.
7465         * record-full.c: Include infrun.h.
7466         * remote-m32r-sdi.c: Include infrun.h.
7467         * remote-mips.c: Include infrun.h.
7468         * remote-notif.c: Include infrun.h.
7469         * remote-sim.c: Include infrun.h.
7470         * remote.c: Include infrun.h.
7471         * reverse.c: Include infrun.h.
7472         * rs6000-tdep.c: Include infrun.h.
7473         * s390-linux-tdep.c: Include infrun.h.
7474         * solib-irix.c: Include infrun.h.
7475         * solib-osf.c: Include infrun.h.
7476         * solib-svr4.c: Include infrun.h.
7477         * target.c: Include infrun.h.
7478         * top.c: Include infrun.h.
7479         * windows-nat.c: Include infrun.h.
7480         * mi/mi-interp.c: Include infrun.h.
7481         * mi/mi-main.c: Include infrun.h.
7482         * python/py-threadevent.c: Include infrun.h.
7483
7484 2014-05-22  Pedro Alves  <palves@redhat.com>
7485
7486         * infrun.c (handle_inferior_event): Store the exit code for
7487         --return-child-result here, instead of ...
7488         (print_exited_reason): ... here.
7489
7490 2014-05-21  Pedro Alves  <palves@redhat.com>
7491
7492         PR gdb/13860
7493         * gdbthread.h (struct thread_control_state): New field
7494         `command_interp'.
7495         * infrun.c (follow_fork): Copy the new thread control field to the
7496         child fork thread.
7497         (clear_proceed_status_thread): Clear the new thread control field.
7498         (proceed): Set the new thread control field.
7499         * interps.h (command_interp): Declare.
7500         * interps.c (command_interpreter): New global.
7501         (command_interp): New function.
7502         (interp_exec): Set `command_interpreter' while here.
7503         * cli-out.c (cli_uiout_dtor): New function.
7504         (cli_ui_out_impl): Install it.
7505         * mi/mi-interp.c: Include cli-out.h.
7506         (mi_cmd_interpreter_exec): Add comment.
7507         (restore_current_uiout_cleanup): New function.
7508         (ui_out_free_cleanup): New function.
7509         (mi_on_normal_stop): If finishing an execution command started by
7510         a CLI command, or any kind of breakpoint-like event triggered,
7511         print the stop event to the output (CLI) stream.
7512         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7513
7514 2014-05-21  Pedro Alves  <palves@redhat.com>
7515
7516         * cli/cli-cmds.c (list_command): Handle the first "list" after the
7517         current source line having changed.
7518         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7519         * infrun.c (normal_stop): Adjust call to
7520         set_current_sal_from_frame.
7521         * source.c (clear_lines_listed_range): New function.
7522         (set_current_source_symtab_and_line, identify_source_line): Clear
7523         the lines listed range.
7524         (line_info): Handle the first "info line" after the current source
7525         line having changed.
7526         * stack.c (print_stack_frame): Remove center handling.
7527         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
7528         center sal.line.
7529
7530 2014-05-21  Pedro Alves  <palves@redhat.com>
7531
7532         * inf-child.c (inf_child_mourn_inferior): New function.
7533         * inf-child.h (inf_child_mourn_inferior): New declaration.
7534         * darwin-nat.c (darwin_mourn_inferior): Use
7535         inf_child_mourn_inferior.
7536         * gnu-nat.c (gnu_mourn_inferior): Likewise.
7537         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7538         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7539         * nto-procfs.c (procfs_mourn_inferior): Likewise.
7540         * windows-nat.c (windows_mourn_inferior): Likewise.
7541
7542 2014-05-21  Doug Evans  <xdje42@gmail.com>
7543
7544         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7545
7546 2014-05-21  Doug Evans  <xdje42@gmail.com>
7547
7548         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7549         (gdbscm_out_of_range_error): Ditto.
7550         (gdbscm_memory_error): Ditto.
7551         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7552         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7553         (gdbscm_out_of_range_error): Update.
7554         (gdbscm_memory_error): Update.
7555         (gdbscm_scm_to_target_string_unsafe): Delete.
7556
7557 2014-05-21  Pedro Alves  <palves@redhat.com>
7558
7559         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7560         globals.
7561         (inf_child_open_target): New function.
7562         (inf_child_open): Use inf_child_open_target to push the target
7563         instead of erroring out.
7564         (inf_child_disconnect, inf_child_close)
7565         (inf_child_maybe_unpush_target): New functions.
7566         (inf_child_target): Install inf_child_disconnect and
7567         inf_child_close.  Store a pointer to the returned object.
7568         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7569         declarations.
7570         * target.c (auto_connect_native_target): New global.
7571         (show_default_run_target): New function.
7572         (find_default_run_target): Return NULL if automatically connecting
7573         to the native target is disabled.
7574         (_initialize_target): Install set/show auto-connect-native-target.
7575         * NEWS: Mention "set auto-connect-native-target", and "target
7576         native".
7577         * linux-nat.c (super_close): New global.
7578         (linux_nat_close): Call super_close.
7579         (linux_nat_add_target): Store a pointer to the base class's
7580         to_close method.
7581         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7582         inf_child_maybe_unpush.
7583         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7584         already pushed.
7585         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7586         the inferior.  Use inf_child_maybe_unpush_target.
7587         (inf_ttrace_attach): Don't push the target if it is already
7588         pushed.
7589         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7590         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7591         after mourning the inferior.  Use inf_child_maybe_unpush_target.
7592         (darwin_attach_pid): Don't push the target if it is already
7593         pushed.
7594         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7595         mourning the inferior.  Use inf_child_maybe_unpush_target.
7596         (gnu_detach): Use inf_child_maybe_unpush_target.
7597         * go32-nat.c (go32_create_inferior): Don't push the target if it
7598         is already pushed.
7599         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7600         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7601         (procfs_open): Rename to ...
7602         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
7603         comments.  Can target_preopen before changing node.  Call
7604         inf_child_open_target to push the target explicitly.
7605         (procfs_attach): Don't push the target if it is already pushed.
7606         (procfs_detach): Use inf_child_maybe_unpush_target.
7607         (procfs_create_inferior): Don't push the target if it is already
7608         pushed.
7609         (nto_native_ops): New global.
7610         (procfs_open): Reimplement.
7611         (procfs_native_open): New function.
7612         (init_procfs_targets): Install procfs_native_open as to_open of
7613         "target native".  Store a pointer to the "native" target in
7614         nto_native_ops.
7615         * procfs.c (procfs_attach): Don't push the target if it is already
7616         pushed.
7617         (procfs_detach): Use inf_child_maybe_unpush_target.
7618         (procfs_mourn_inferior): Only unpush the target after mourning the
7619         inferior.  Use inf_child_maybe_unpush_target.
7620         (procfs_init_inferior): Don't push the target if it is already
7621         pushed.
7622         * windows-nat.c (do_initial_windows_stuff): Don't push the target
7623         if it is already pushed.
7624
7625 2014-05-21  Pedro Alves  <palves@redhat.com>
7626
7627         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7628         and "procfs" targets are now called "native" instead.
7629
7630 2014-05-21  Pedro Alves  <palves@redhat.com>
7631
7632         * go32-nat.c (go32_open): Delete.
7633         (go32_target): Don't override the to_open method.
7634
7635 2014-05-21  Pedro Alves  <palves@redhat.com>
7636
7637         * nto-procfs.c (procfs_can_run): New function.
7638         (nto_procfs_ops): New global.
7639         (init_procfs_targets): New, based on procfs_target.  Install
7640         "target native" in addition to "target procfs".
7641         (_initialize_procfs): Call init_procfs_targets instead of adding
7642         the target here.
7643
7644 2014-05-21  Pedro Alves  <palves@redhat.com>
7645
7646         * windows-nat.c (windows_target): Don't override to_shortname,
7647         to_longname or to_doc.
7648
7649 2014-05-21  Pedro Alves  <palves@redhat.com>
7650
7651         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7652         to_doc.
7653
7654 2014-05-21  Pedro Alves  <palves@redhat.com>
7655
7656         * darwin-nat.c (_initialize_darwin_inferior): Don't override
7657         to_shortname, to_longname or to_doc.
7658
7659 2014-05-21  Pedro Alves  <palves@redhat.com>
7660
7661         * go32-nat.c (go32_target): Don't override to_shortname,
7662         to_longname or to_doc.
7663
7664 2014-05-21  Pedro Alves  <palves@redhat.com>
7665
7666         * inf-child.c (inf_child_open): Remove mention of "child".
7667         (inf_child_target): Rename target to "native" instead of "child".
7668
7669 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7670
7671         * Makefile.in (SFILES): Delete "regset.c".
7672         (COMMON_OBS): Delete "regset.o".
7673         * regset.c: Remove.
7674         * regset.h (regset_alloc): Delete prototype.
7675
7676 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7677
7678         * sparc-linux-tdep.c (sparc32_linux_gregset)
7679         (sparc32_linux_fpregset): New static regset structures.
7680         (sparc32_linux_init_abi): Drop dynamic regset allocations.
7681         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7682         'fpregset' fields.
7683         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7684         (sparc64_linux_fpregset): New static regset structures.
7685         (sparc64_linux_init_abi): Drop dynamic regset allocations.
7686         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7687         New static regset structures.
7688         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7689         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7690         New static regset structures.
7691         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7692         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7693         New static regset structures.
7694         (sparc64obsd_init_abi): Drop dynamic regset allocations.
7695         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7696         New static regset structures.
7697         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7698
7699 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7700
7701         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7702         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7703         register maps ("regmaps") from "*regset" to "*regmap".  Do this
7704         for all regmap types and variables.
7705         * sparc-linux-tdep.c (sparc32_linux_step_trap)
7706         (sparc32_linux_supply_core_gregset)
7707         (sparc32_linux_collect_core_gregset)
7708         (sparc32_linux_supply_core_fpregset)
7709         (sparc32_linux_collect_core_fpregset): Likewise.
7710         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7711         (sparc_gregmap, sparc_fpregmap): ... these.
7712         (sparc_supply_gregset, sparc_collect_gregset)
7713         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7714         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7715         (_initialize_sparc_nat): Rename regmaps.
7716         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7717         (sparc_gregmap, sparc_fpregmap): ... these.
7718         (sparc_supply_gregset, sparc_collect_gregset)
7719         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7720         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7721         Rename macros to...
7722         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7723         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7724         Likewise.
7725         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7726         Rename to...
7727         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7728         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7729         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7730         regmaps.
7731         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7732         (sparc32_bsd_fpregset): Rename to...
7733         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7734         (sparc32_bsd_fpregmap): ... these.
7735         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7736         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7737         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7738         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7739         (struct sparc_gregmap, struct sparc_fpregmap)
7740         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7741         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7742         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7743         (sparc32_supply_regset, sparc32_collect_gregset)
7744         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7745         prototypes.
7746         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7747         (sparc64_linux_ptrace_gregmap): ... this.
7748         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7749         (_initialize_sparc64_linux_nat): Rename regmaps.
7750         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7751         (sparc64_linux_core_gregmap): ... this.
7752         (sparc64_linux_supply_core_gregset)
7753         (sparc64_linux_collect_core_gregset)
7754         (sparc64_linux_supply_core_fpregset)
7755         (sparc64_linux_collect_core_fpregset): Rename regmaps.
7756         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7757         (sparc64_sol2_fpregset): Rename to...
7758         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7759         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7760         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7761         regmaps.
7762         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7763         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7764         (sparc64_bsd_fpregset): Rename to...
7765         (struct sparc_gregmap, sparc64_sol2_gregmap)
7766         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7767         (sparc64_bsd_fpregmap): ... these.
7768         (sparc64_supply_gregset, sparc64_collect_gregset)
7769         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7770         prototypes.
7771         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7772         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7773         (sparc64fbsd_gregmap): ... this.
7774         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7775         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7776         Rename regmaps.
7777         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7778         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7779         (sparc64nbsd_collect_fpregset): Likewise.
7780         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7781         (sparc64nbsd_gregmap): ... this.
7782         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7783         regmaps.
7784         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7785         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7786         (sparc64obsd_gregmap): ... this.
7787         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7788         regmaps.
7789         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7790         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7791         (sparc32nbsd_gregmap): ... this.
7792         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7793         regmaps.
7794
7795 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7796
7797         * score-tdep.c (score7_linux_gregset): New static regset
7798         structure.
7799         (score7_linux_regset_from_core_section): Remove dynamic regset
7800         allocation.
7801         (score_gdbarch_init): Drop allocation of tdep structure.
7802         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7803
7804 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7805
7806         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7807         regset structures.
7808         (am33_regset_from_core_section): Remove dynamic regset
7809         allocations.
7810
7811 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7812
7813         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7814         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7815         structures.
7816         (mips_linux_regset_from_core_section): Remove dynamic regset
7817         allocations.
7818         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7819         'gregset64', 'fpregset', and 'fpregset64'.
7820         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7821         deleted tdep fields.
7822
7823 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7824
7825         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7826         regset structures.
7827         (amd64_regset_from_core_section): Remove dynamic regset
7828         allocations.
7829         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7830         structure.
7831         (amd64obsd_regset_from_core_section): Remove dynamic regset
7832         allocation.
7833         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7834         Likewise.
7835         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7836         x86-common regset supply function.
7837         * i386-tdep.c (i386_collect_gregset): Make static.
7838         (i386_gregset): New global regset structure.
7839         (i386_fpregset, i386_xstateregset): New static regset structures.
7840         (i386_regset_from_core_section): Remove dynamic regset
7841         allocations.
7842         (i386_gdbarch_init): Remove initialization of tdep fields
7843         'gregset', 'fpregset', and 'xstateregset'.
7844         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7845         'fpregset', and 'xstateregset'.
7846         (i386_collect_gregset): Remove prototype.
7847         (i386_gregset): New declaration.
7848         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7849         structure.
7850         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7851         allocation.
7852
7853 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7854
7855         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7856         (arm_linux_vfpregset): New static regset structures.
7857         (arm_linux_regset_from_core_section): Remove dynamic allocation of
7858         regset structures.
7859         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7860         and 'vfpregset' fields.
7861
7862 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7863
7864         * aarch64-linux-tdep.c (aarch64_linux_gregset)
7865         (aarch64_linux_fpregset): New static regset structures.
7866         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7867         of regset structures.
7868         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7869         'fpregset' fields.
7870
7871 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7872
7873         * regset.h (struct regset): Remove gdbarch field.
7874         * regset.c (regset_alloc): Drop initialization of gdbarch field.
7875         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7876         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
7877         Likewise.
7878         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
7879         (ppc32_linux_fpregset, ppc32_linux_vrregset)
7880         (ppc32_linux_vsxregset): Likewise.
7881         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
7882         via the regcache instead of the regset.
7883         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
7884         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
7885         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
7886         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
7887         Likewise.
7888
7889 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
7890
7891         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
7892         Constify structures.
7893         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
7894         (alphanbsd_aout_gregset): Likewise.
7895         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
7896         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
7897         Likewise.
7898         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
7899         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
7900         Likewise.
7901         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
7902         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
7903         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
7904         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
7905         * m88k-tdep.c (m88k_gregset): Likewise.
7906         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
7907         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
7908         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
7909         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
7910         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7911         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
7912         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7913         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
7914         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
7915         Likewise.
7916         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
7917         * sh-tdep.h (sh_corefile_gregset): Likewise.
7918         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
7919         * vax-tdep.c (vax_gregset): Likewise.
7920
7921 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
7922
7923         Fix TLS access for -static -pthread.
7924         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
7925         (try_thread_db_load_1): Initialize it.
7926         (thread_db_get_thread_local_address): Call it if LM is zero.
7927         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
7928         * target.h (struct target_ops) (to_get_thread_local_address): Add
7929         load_module_addr comment.
7930
7931 2014-05-21  Pedro Alves  <palves@redhat.com>
7932
7933         * dcache.c (dcache_read_memory_partial): If reading the cache line
7934         fails, fallback to reading just the memory the caller wanted.
7935
7936 2014-05-20  Doug Evans  <dje@google.com>
7937
7938         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
7939         instead of get_current_arch.
7940
7941 2014-05-20  Pedro Alves  <palves@redhat.com>
7942
7943         * NEWS: Mention that compare-sections now works with all targets.
7944
7945         * remote.c (PACKET_qCRC): New enum value.
7946         (remote_verify_memory): Don't send qCRC if the target has no
7947         execution.  Use packet_support/packet_ok.  If the target doesn't
7948         support the qCRC packet, fallback to a deep memory copy.
7949         (compare_sections_command): Say "target image" instead of "remote
7950         executable".
7951         (_initialize_remote): Add PACKET_qCRC to the list of config
7952         packets that have no associated command.  Extend comment.
7953         * target.c (simple_verify_memory, default_verify_memory): New
7954         function.
7955         * target.h (struct target_ops) <to_verify_memory>: Default to
7956         default_verify_memory.
7957         (simple_verify_memory): New declaration.
7958         * target-delegates.c: Regenerate.
7959
7960 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
7961
7962         * record-btrace.c (record_btrace_step_thread): Check for empty history.
7963
7964 2014-05-20  Hui Zhu  <hui@codesourcery.com>
7965             Yao Qi  <yao@codesourcery.com>
7966
7967         PR backtrace/16558
7968         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
7969         and change address of sp and pc.
7970
7971 2014-05-19  Tom Tromey  <tromey@redhat.com>
7972
7973         * gdbtypes.c (rank_function): Use XNEWVEC.
7974         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
7975
7976 2014-05-19  Doug Evans  <dje@google.com>
7977
7978         * dwarf2read.c (build_type_psymtabs_1): Renamed from
7979         build_type_unit_groups and moved closer to only caller.  Remove
7980         arguments.  All references updated.  Remove outdated .gdb_index
7981         comment.
7982         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
7983         build_type_psymtabs_1.
7984
7985 2014-05-19  Doug Evans  <dje@google.com>
7986
7987         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
7988         n_type_unit_groups, all_type_unit_groups.  All uses removed.
7989         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
7990         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
7991         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
7992         (add_type_unit_group_to_table): Delete.
7993
7994 2014-05-19  Doug Evans  <dje@google.com>
7995
7996         * eval.c (evaluate_subexp_standard): Add some comments.
7997
7998 2014-05-17  Doug Evans  <xdje42@gmail.com>
7999
8000         * progspace.c (remove_program_space): Delete, unused.
8001         * progspace.h (remove_program_space): Ditto.
8002
8003 2014-05-17  Doug Evans  <xdje42@gmail.com>
8004
8005         * inferior.c (prune_inferiors): Fix comment.
8006         (remove_inferior_command): Call prune_program_spaces.
8007
8008 2014-05-16  Doug Evans  <dje@google.com>
8009
8010         New command line option -D.
8011         * NEWS: Mention it.
8012         * main.c (set_gdb_data_directory): New function.
8013         (captured_main): Recognize -D.  Flag error for --data-directory "".
8014         Call set_gdb_data_directory.
8015         (print_gdb_help): Print --data-directory, -D.
8016         * main.h (set_gdb_data_directory): Declare.
8017         * top.c (staged_gdb_datadir): New static global.
8018         (set_gdb_datadir): Call set_gdb_data_directory
8019         (show_gdb_datadir): New function.
8020         (init_main): Update init of data-directory parameter.
8021
8022 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
8023
8024         Import the "dirfd" gnulib module.
8025         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8026         * gnulib/aclocal.m4: Update.
8027         * gnulib/config.in: Update.
8028         * gnulib/configure: Update.
8029         * gnulib/import/Makefile.am: Update.
8030         * gnulib/import/Makefile.in: Update.
8031         * gnulib/import/dirfd.c: New.
8032         * gnulib/import/m4/dirfd.m4: New.
8033         * gnulib/import/m4/gnulib-cache.m4: Update.
8034         * gnulib/import/m4/gnulib-comp.m4: Update.
8035
8036 2014-05-16  Pierre Muller  <muller@sourceware.org>
8037             Yao Qi  <yao@codesourcery.com>
8038
8039         * valprint.c (print_wchar): Move the code on checking whether
8040         W is a printable wide char to the default branch of switch
8041         statement below.  Call wchar_printable instead of gdb_iswprint.
8042
8043 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
8044
8045         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8046         ldr.w and ldrd instructions.
8047
8048 2014-05-15  Doug Evans  <dje@google.com>
8049
8050         * dwarf2read.c (read_structure_type): Delete outdated comments.
8051
8052 2014-05-14  Tom Tromey  <tromey@redhat.com>
8053
8054         * macrocmd.c (print_macro_definition): Reindent.
8055
8056 2014-05-13  Doug Evans  <xdje42@gmail.com>
8057
8058         * python/py-cmd.c (cmdpy_completer): Add comment.
8059         (completers): Make const.
8060
8061 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
8062
8063         * infrun.c (resume): Remove should_resume (unused).  Move up
8064         declaration of resume_ptid.
8065
8066 2014-05-13  Tom Tromey  <tromey@redhat.com>
8067
8068         * language.h (unop_type_check): Remove.
8069         (binop_type_check): Don't declare.
8070
8071 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
8072
8073         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8074         call to regcache_raw_collect.
8075
8076 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
8077
8078         * mi/mi-console.c (mi_console_raw_packet): Use the value from
8079         mi_console->quote as the quoting character.
8080
8081 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
8082
8083         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8084
8085 2014-04-29  Tom Tromey  <tromey@redhat.com>
8086
8087         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8088         "show debug varobj".
8089
8090 2014-05-07  Kyle McMartin  <kyle@redhat.com>
8091
8092         Pushed by Joel Brobecker  <brobecker@adacore.com>.
8093         * aarch64-tdep.c (aarch64_software_single_step): New function.
8094         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8095         with aarch64_software_single_step.
8096
8097 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
8098
8099         GDB 7.7.1 released.
8100
8101 2014-05-05  Keith Seitz  <keiths@redhat.com>
8102
8103         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8104         variable or history value is successfully parsed.
8105
8106 2014-05-05  Yao Qi  <yao@codesourcery.com>
8107             Pedro Alves  <palves@redhat.com>
8108
8109         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8110         address of blocks that intersects the requested range.  Trim
8111         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8112         sections.
8113         * ctf.c (ctf_xfer_partial): Likewise.
8114
8115 2014-05-05  Yao Qi  <yao@codesourcery.com>
8116
8117         * printcmd.c (display_command): Remove the check to
8118         target_has_execution.
8119
8120 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
8121
8122         * ppcobsd-nat.c: Include "obsd-nat.h".
8123         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8124         add_target.
8125         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8126
8127 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
8128
8129         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8130         and 16-bit signed and unsigned arguments.  Update comment.
8131         (stap_parse_probe_arguments): Extend code to handle such
8132         arguments.  Use warning instead of complaint to notify about
8133         unrecognized bitness.
8134
8135 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
8136
8137         PR breakpoints/16889
8138         * stap-probe.c (stap_parse_probe_arguments): Simplify
8139         check for non-prefixed probes (i.e., probes whose
8140         arguments do not start with "N@").  Always set the
8141         argument type to a sane value.
8142
8143 2014-05-01  David Taylor  <dtaylor@emc.com>
8144
8145         * remote.c (compare_sections_command): Add -r option to compare
8146         all loadable read-only sections.
8147
8148 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
8149
8150         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8151         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8152         Update all callers.
8153         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8154         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8155         Remove unused CORE_ADDR argument.  Update all callers.
8156
8157 2014-04-29  Pedro Alves  <palves@redhat.com>
8158
8159         * remote.c (struct packet_config) <detect>: Extend comment.
8160         (add_packet_config_cmd): Don't set the config's detect or support
8161         fields here.
8162         (init_all_packet_configs): Also initialize the config's 'detect'
8163         field.
8164         (reset_all_packet_configs_support): New function.
8165         (remote_open_1): Call reset_all_packet_configs_support instead of
8166         init_all_packet_configs.
8167         (_initialize_remote): Initialize all packet configs.  Assert that
8168         all packets have an associated command, except a few known
8169         outliers.
8170
8171 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8172
8173         * dwarf2read.c (read_subrange_type): Handle dynamic
8174         DW_AT_lower_bound attributes.
8175
8176 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8177
8178         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8179         dynamic bounds before computing its upper bound.
8180         (ada_discrete_type_low_bound): Same as above with the lower bound.
8181
8182 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8183
8184         * dwarf2read.c (is_dynamic_type): Return true for dynamic
8185         range types.  Adjust the array handling implementation to
8186         take advantage of this change.
8187         (resolve_dynamic_range): New function, mostly extracted from
8188         resolve_dynamic_bounds.
8189         (resolve_dynamic_array): New function, mostly extracted from
8190         resolve_dynamic_bounds.
8191         (resolve_dynamic_bounds): Delete.
8192         (resolve_dynamic_type): Reimplement.  Add handling of
8193         TYPE_CODE_RANGE types.
8194
8195 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8196
8197         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8198         handling of parallel ___XA types.
8199
8200 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
8201
8202         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8203         unnecessary second call to static_unwrap_type.
8204
8205 2014-04-27  Hui Zhu  <hui@codesourcery.com>
8206
8207         * stack.c (print_frame_info): Call do_gdb_disassembly with
8208         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8209
8210 2014-04-26  Doug Evans  <xdje42@gmail.com>
8211
8212         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8213
8214 2014-04-25  Pedro Alves  <palves@redhat.com>
8215
8216         PR server/16255
8217         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8218         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
8219         and newline from built string.
8220         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8221         (linux_ptrace_attach_fail_reason): ... this.
8222         * linux-nat.c (linux_nat_attach): Adjust to use
8223         linux_ptrace_attach_fail_reason.
8224
8225 2014-04-25  Pedro Alves  <palves@redhat.com>
8226
8227         * remote.c (struct remote_state): Remove multi_process_aware,
8228         non_stop_aware, cond_tracepoints, cond_breakpoints,
8229         breakpoint_commands, fast_tracepoints, static_tracepoints,
8230         install_in_trace, disconnected_tracing,
8231         enable_disable_tracepoints, string_tracing, and
8232         augmented_libraries_svr4_read fields.
8233         (remote_multi_process_p): Move further below in the file.
8234         (struct packet_config): Add comments.
8235         (update_packet_config): Delete function.
8236         (show_packet_config_cmd): Use packet_config_support.
8237         (add_packet_config_cmd): Use NULL as set callback.
8238         (packet_ok): "set remote foo-packet"-style commands no longer
8239         change config->supported -- adjust.
8240         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8241         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8242         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8243         (PACKET_QNonStop, PACKET_multiprocess_feature)
8244         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8245         (PACKET_DisconnectedTracing_feature)
8246         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8247         (set_remote_protocol_packet_cmd): Delete function.
8248         (packet_config_support, packet_support): New functions.
8249         (set_remote_protocol_Z_packet_cmd): Don't call
8250         update_packet_config.
8251         (remote_query_attached, remote_pass_signals)
8252         (remote_program_signals, remote_threads_info)
8253         (remote_threads_extra_info, remote_start_remote): Use
8254         packet_support.
8255         (remote_start_remote): Use packet_config_support and
8256         packet_support.
8257         (init_all_packet_configs): Set all packets to unknown support,
8258         instead of calling update_packet_config.
8259         (remote_check_symbols): Use packet_support.
8260         (remote_supported_packet): Unconditionally set the packet config's
8261         support status.
8262         (remote_multi_process_feature, remote_non_stop_feature)
8263         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8264         (remote_breakpoint_commands_feature)
8265         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8266         (remote_install_in_trace_feature)
8267         (remote_disconnected_tracing_feature)
8268         (remote_enable_disable_tracepoint_feature)
8269         (remote_string_tracing_feature)
8270         (remote_augmented_libraries_svr4_read_feature): Delete functions.
8271         (remote_protocol_features): Adjust to use remote_supported_packet
8272         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8273         "ConditionalTracepoints", "ConditionalBreakpoints",
8274         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8275         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8276         "EnableDisableTracepoints", and "tracenz".
8277         (remote_query_supported): Use packet_support.
8278         (remote_open_1): Adjust.
8279         (extended_remote_attach_1): Use packet_support.  Switch on the
8280         result of packet_ok instead of checking whether the packet ended
8281         up disabled.
8282         (remote_vcont_resume): Use packet_support.
8283         (remote_resume, remote_stop_ns, fetch_register_using_p)
8284         (remote_prepare_to_store, store_register_using_P)
8285         (check_binary_download, remote_write_bytes): Use packet_support.
8286         (remote_vkill): Use packet_support.  Switch on the result of
8287         packet_ok instead of checking whether the packet ended up
8288         disabled.
8289         (extended_remote_supports_disable_randomization): Use
8290         packet_support.
8291         (extended_remote_run): Switch on the result of packet_ok instead
8292         of checking whether the packet ended up disabled.
8293         (remote_insert_breakpoint, remote_remove_breakpoint)
8294         (remote_insert_watchpoint, remote_remove_watchpoint)
8295         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8296         packet_support.
8297         (remote_search_memory): Use packet_config_support.
8298         (remote_get_thread_local_address, remote_get_tib_address)
8299         (remote_hostio_send_command, remote_can_execute_reverse): Use
8300         packet_support.
8301         (remote_supports_cond_tracepoints)
8302         (remote_supports_cond_breakpoints)
8303         (remote_supports_fast_tracepoints)
8304         (remote_supports_static_tracepoints)
8305         (remote_supports_install_in_trace)
8306         (remote_supports_enable_disable_tracepoint)
8307         (remote_supports_string_tracing)
8308         (remote_can_run_breakpoint_commands): Rewrite, checking whether
8309         the packet config says the feature is enabled or disabled.
8310         (remote_download_tracepoint, remote_trace_set_readonly_regions)
8311         (remote_get_trace_status): Use packet_support.
8312         (remote_set_disconnected_tracing): Adjust to check whether the
8313         feature is enabled with packet_support.
8314         (remote_set_trace_buffer_size, remote_use_agent)
8315         (remote_can_use_agent, remote_supports_btrace): Use
8316         packet_support.
8317         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8318         Use packet_config_support.
8319         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8320         the packet config says the feature is enabled or disabled.
8321         (set_range_stepping): Use packet_support.
8322
8323 2014-04-25  Tom Tromey  <tromey@redhat.com>
8324
8325         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8326         argument.
8327
8328 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
8329
8330         * NEWS: Mention support for C99 variable length arrays.
8331
8332 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
8333
8334         * ada-lang.c (standard_exc): Expand introductory comment.
8335
8336 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
8337             Walfred Tedeschi  <walfred.tedeschi@intel.com>
8338
8339         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8340         AVX512 registers.
8341         (amd64_linux_read_description): Add code to handle AVX512 xstate
8342         mask and return respective tdesc.
8343         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8344         and features/i386/x32-avx512-linux.c.
8345         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8346         (amd64_linux_core_read_description): Add code to handle AVX512
8347         xstate mask and return respective tdesc.
8348         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8349         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8350         calculation.
8351         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8352         (tdesc_amd64_avx512_linux): New prototype.
8353         (tdesc_x32_avx512_linux): Likewise.
8354         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8355         features/i386/x32-avx512.c.
8356         (amd64_ymm_avx512_names): New register names for pseudo
8357         registers YMM16-31.
8358         (amd64_ymmh_avx512_names): New register names for raw registers
8359         YMMH16-31.
8360         (amd64_k_names): New register names for K registers.
8361         (amd64_zmmh_names): New register names for ZMM raw registers.
8362         (amd64_zmm_names): New registers names for ZMM pseudo registers.
8363         (amd64_xmm_avx512_names): New register names for XMM16-31
8364         registers.
8365         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8366         registers.
8367         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8368         if feature is present.
8369         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8370         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8371         (AMD64_NUM_REGS): Adjust to new number of registers.
8372         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8373         registers supplied via XSTATE by AVX512 registers.
8374         (i386_linux_read_description): Add case for AVX512.
8375         * i386-linux-tdep.c: Include i386-avx512-linux.c.
8376         (i386_linux_gregset_reg_offset): Add AVX512 registers.
8377         (i386_linux_core_read_description): Add case for AVX512.
8378         (i386_linux_init_abi): Install supported register note section
8379         for AVX512.
8380         (_initialize_i386_linux_tdep): Add call to tdesc init function for
8381         AVX512.
8382         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8383         registers to be number of zmm7h + 1.
8384         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8385         * i386-tdep.c: Include features/i386/i386-avx512.c.
8386         (i386_zmm_names): Add ZMM pseudo register names array.
8387         (i386_zmmh_names): Add ZMM raw register names array.
8388         (i386_k_names): Add K raw register names array.
8389         (num_lower_zmm_regs): Add constant for the number of lower ZMM
8390         registers. AVX512 has 16 more ZMM registers than there are YMM
8391         registers.
8392         (i386_zmmh_regnum_p): Add function to look up register number of
8393         ZMM raw registers.
8394         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8395         (i386_k_regnum_p): Likewise for K raw registers.
8396         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8397         registers added by AVX512.
8398         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8399         registers added by AVX512.
8400         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8401         added by AVX512.
8402         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8403         (i386_pseudo_register_name): Add ZMM pseudo registers.
8404         (i386_zmm_type): Construct and return vector registers type for ZMM
8405         registers.
8406         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8407         ZMM0-31 pseudo registers and K registers.
8408         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8409         and YMM16-31 registers from register cache.
8410         (i386_pseudo_register_write): Add code to write  K, ZMM and
8411         YMM16-31 registers.
8412         (i386_register_reggroup_p): Add code to include/exclude AVX512
8413         registers in/from respective register groups.
8414         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8415         registers if feature is present in xcr0.
8416         (i386_gdbarch_init): Add code to initialize AVX512 feature
8417         variables in tdep structure, wire in pseudo registers and call
8418         initialize_tdesc_i386_avx512.
8419         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8420         variables.
8421         (i386_regnum): Add AVX512 registers.
8422         (I386_SSE_NUM_REGS): New define for number of SSE registers.
8423         (I386_AVX_NUM_REGS): Likewise for AVX registers.
8424         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8425         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8426         512 bits wide.
8427         (i386_xmm_avx512_regnum_p): New prototype for register look up.
8428         (i386_ymm_avx512_regnum_p): Likewise.
8429         (i386_k_regnum_p): Likewise.
8430         (i386_zmm_regnum_p): Likewise.
8431         (i386_zmmh_regnum_p): Likewise.
8432         * i387-tdep.c : Update year in copyright notice.
8433         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8434         XSAVE buffer.
8435         (XSAVE_YMM_AVX512_ADDR): New macro.
8436         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8437         XSAVE buffer.
8438         (XSAVE_XMM_AVX512_ADDR): New macro.
8439         (xsave_avx512_k_offset): New table for K register offsets in
8440         XSAVE buffer.
8441         (XSAVE_AVX512_K_ADDR): New macro.
8442         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8443         in XSAVE buffer.
8444         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8445         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8446         buffer.
8447         (i387_collect_xsave): Add code to collect AVX512 registers from
8448         XSAVE buffer.
8449         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8450         of XMM16-31 registers.
8451         (I387_NUM_K_REGS): New define for number of K registers.
8452         (I387_K0_REGNUM): New define for K0 register number.
8453         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8454         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8455         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8456         registers.
8457         (I387_YMM16H_REGNUM): New define for YMM16H register number.
8458         (I387_XMM16_REGNUM): New define for XMM16 register number.
8459         (I387_YMM0_REGNUM): New define for YMM0 register number.
8460         (I387_KEND_REGNUM): New define for last K register number.
8461         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8462         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8463         number.
8464         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8465         number.
8466         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8467         size.
8468         * features/Makefile: Add AVX512 related files.
8469         * features/i386/32bit-avx512.xml: New file.
8470         * features/i386/64bit-avx512.xml: Likewise.
8471         * features/i386/amd64-avx512-linux.c: Likewise.
8472         * features/i386/amd64-avx512-linux.xml: Likewise.
8473         * features/i386/amd64-avx512.c: Likewise.
8474         * features/i386/amd64-avx512.xml: Likewise.
8475         * features/i386/i386-avx512-linux.c: Likewise.
8476         * features/i386/i386-avx512-linux.xml: Likewise.
8477         * features/i386/i386-avx512.c: Likewise.
8478         * features/i386/i386-avx512.xml: Likewise.
8479         * features/i386/x32-avx512-linux.c: Likewise.
8480         * features/i386/x32-avx512-linux.xml: Likewise.
8481         * features/i386/x32-avx512.c: Likewise.
8482         * features/i386/x32-avx512.xml: Likewise.
8483         * regformats/i386/amd64-avx512-linux.dat: New file.
8484         * regformats/i386/amd64-avx512.dat: Likewise.
8485         * regformats/i386/i386-avx512-linux.dat: Likewise.
8486         * regformats/i386/i386-avx512.dat: Likewise.
8487         * regformats/i386/x32-avx512-linux.dat: Likewise.
8488         * regformats/i386/x32-avx512.dat: Likewise.
8489         * NEWS: Add note about new support for AVX512.
8490
8491
8492 2014-04-23  Pedro Alves  <palves@redhat.com>
8493
8494         * breakpoint.c (insert_bp_location): Tolerate errors if the
8495         breakpoint is set in a user-loaded objfile.
8496         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
8497         location is marked shlib_disabled.  If the breakpoint is set in a
8498         user-loaded objfile is a GDB-side memory breakpoint, validate it
8499         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
8500         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
8501         flag.
8502         * mem-break.c (memory_validate_breakpoint): New function.
8503         * objfiles.c (userloaded_objfile_contains_address_p): New
8504         function.
8505         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8506         * target.h (memory_validate_breakpoint): New declaration.
8507
8508 2014-04-23  Pedro Alves  <palves@redhat.com>
8509
8510         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8511         the breakpoint is set in a shared library, only suppress
8512         errors for software breakpoints, not hardware breakpoints.
8513
8514 2014-04-22  Pedro Alves  <palves@redhat.com>
8515
8516         * infrun.c (schedlock_applies): New function, factored out from
8517         find_thread_needs_step_over.
8518         (find_thread_needs_step_over): Use it.
8519         (switch_back_to_stepped_thread): Always clear trap_expected if the
8520         step over is finished.  Return early if scheduler locking applies.
8521         Look for the stepping thread and a potential step-over thread with
8522         a single loop.
8523         (currently_stepping_or_nexting_callback): Delete.
8524
8525 2014-04-22  Nick Clifton  <nickc@redhat.com>
8526
8527         * NEWS: Mention that ARM sim now supports tracing.
8528
8529 2014-04-22  Yao Qi  <yao@codesourcery.com>
8530
8531         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8532         to ...
8533         * tracefile.c (tracefile_fetch_registers): ... it.  New
8534         function.
8535         * tracefile.h (tracefile_fetch_registers): Declare.
8536         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
8537         tracefile_fetch_registers.
8538
8539 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
8540
8541         PR gdb/14018
8542         * windows-nat.c (thread_rec): Don't display a warning when
8543         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
8544         fails for any reason, set th->suspended to -1, so that we don't
8545         try to resume such a thread.  Also, don't return NULL in these
8546         cases, to avoid completely ruin the session due to "PC register is
8547         not available" error.
8548         (do_windows_fetch_inferior_registers): Check errors in
8549         GetThreadContext call.
8550         (windows_continue): Accept an additional argument KILLED; if not
8551         zero, ignore errors in the SetThreadContext call, since the
8552         inferior was killed and is shutting down.
8553         (windows_resume, get_windows_debug_event)
8554         (windows_create_inferior, windows_mourn_inferior)
8555         (windows_kill_inferior): All callers of windows_continue changed
8556         to adjust to its new calling sequence.
8557
8558 2014-04-19  Yao Qi  <yao@codesourcery.com>
8559
8560         * ctf.c (ctf_open): Call post_create_inferior.
8561
8562 2014-04-19  Yao Qi  <yao@codesourcery.com>
8563
8564         * ctf.c (handle_id): New static variable.
8565         (ctf_open_dir): Get handle_id from bt_context_add_trace return
8566         value.  Get the declaration of event "register" and get length
8567         of field "contents".
8568
8569 2014-04-19  Yao Qi  <yao@codesourcery.com>
8570
8571         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8572
8573 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
8574
8575         * valops.c (oload_method_static): Remove unnecessary argument
8576         METHOD.  Update all callers.
8577
8578 2014-04-18  Pedro alves  <palves@redhat.com>
8579             Tom Tromey  <tromey@redhat.com>
8580
8581         PR backtrace/15558
8582         * frame.c (get_prev_frame_1): Rename to ...
8583         (get_prev_frame_always): ... this, and make extern.  Adjust.
8584         (skip_artificial_frames): Use get_prev_frame_always.
8585         (frame_unwind_caller_id, frame_pop, get_prev_frame)
8586         (get_frame_unwind_stop_reason): Adjust to rename.
8587         * frame.h (get_prev_frame_always): Declare.
8588         * inline-frame.c: Include frame.h.
8589         (inline_frame_this_id): Use get_prev_frame_always.
8590
8591 2014-04-18  Tristan Gingold  <gingold@adacore.com>
8592
8593         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8594         code by using bfd_mach_o_get_base_address.
8595
8596 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
8597
8598         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8599         (spu_ax_pseudo_register_collect): New function.
8600         (spu_ax_pseudo_register_push_stack): Likewise.
8601         (spu_dwarf_reg_to_regnum): Likewise.
8602         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
8603
8604 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
8605
8606         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8607         Replace FRAME argument with FRAME_ID.
8608         * gdbarch.c, gdbarch.h: Regenerate.
8609         * findvar.c (default_value_from_register): Add GDBARCH argument;
8610         replace FRAME by FRAME_ID.  No longer call get_frame_id.
8611         (value_from_register): Update call to gdbarch_value_from_register.
8612         * value.h (default_value_from_register): Update prototype.
8613         * s390-linux-tdep.c (s390_value_from_register): Update interface
8614         and call to default_value_from_register.
8615         * spu-tdep.c (spu_value_from_register): Likewise.
8616
8617         * findvar.c (address_from_register): Remove TYPE argument.
8618         Do not call value_from_register; use gdbarch_value_from_register
8619         with null_frame_id instead.
8620         * value.h (address_from_register): Update prototype.
8621         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8622         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8623         address_from_register interface change.
8624
8625 2014-04-17  Yao Qi  <yao@codesourcery.com>
8626
8627         * gdbtypes.h: Update comments to link to types and macros'
8628         definitions.
8629
8630 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
8631
8632         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8633
8634 2014-04-16  Keith Seitz  <keiths@redhat.com>
8635
8636         PR gdb/15827
8637         * dwarf2read.c (skip_one_die): Check that all relative-offset
8638         sibling DIEs fall within range of the current reader's buffer.
8639         (read_partial_die): Likewise.
8640
8641 2014-04-16  Keith Seitz  <keiths@redhat.com>
8642
8643         PR c++/16597
8644         * cp-namespace.c (lookup_symbol_file): If the type name of
8645         `this' is NULL, return immediately.
8646
8647 2014-04-14  Keith Seitz  <keiths@redhat.com>
8648
8649         PR c++/16253
8650         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8651         from symbol_matches_domain in symtab.c. All local callers
8652         of symbol_matches_domain updated.
8653         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8654         search STRUCT_DOMAIN.
8655         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8656         independently.  standard_lookup will do that automatically.
8657         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8658         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8659         (cp_lookup_symbol_in_namespace): Likewise.
8660         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8661         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8662         may return a STRUCT_DOMAIN match.
8663         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8664         * cp-support.c: Include language.h.
8665         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8666         VAR_DOMAIN.
8667         * psymtab.c (match_partial_symbol): Compare the requested
8668         domain with the symbol's domain directly.
8669         (lookup_partial_symbol): Likewise.
8670         * symtab.c (lookup_symbol_in_language): Explain when/why
8671         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8672         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8673         appropriate languages.
8674         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8675         and moved to ada-lang.c
8676         (lookup_block_symbol): Explain that this function only returns
8677         symbol matching the requested DOMAIN.
8678         Compare the requested domain with the symbol's domain directly.
8679         (iterate_over_symbols): Compare the requested domain with the
8680         symbol's domain directly.
8681         * symtab.h (symbol_matches_domain): Remove.
8682
8683 2014-04-14  Tom Tromey  <tromey@redhat.com>
8684
8685         PR c++/15246:
8686         * c-exp.y (type_aggregate_p): New function.
8687         (qualified_name, classify_inner_name): Use it.
8688         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8689         and TYPE_TARGET_TYPE of an enum type.
8690         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8691         an enum type.
8692         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8693         handle TYPE_DECLARED_CLASS.
8694         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8695         types.
8696         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8697         * valops.c (enum_constant_from_type): New function.
8698         (value_aggregate_elt): Use it.
8699         * cp-namespace.c (cp_lookup_nested_symbol): Handle
8700         TYPE_CODE_ENUM.
8701
8702 2014-04-14  Tom Tromey  <tromey@redhat.com>
8703
8704         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8705         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8706         const.
8707         * value.h (value_aggregate_elt): Update.
8708
8709 2014-04-14  Tom Tromey  <tromey@redhat.com>
8710
8711         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8712
8713 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8714
8715         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8716         (evaluate_subexp_standard): Pass noside argument.
8717         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8718         if noside equals EVAL_NORMAL. If the subscript yields a vla type
8719         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8720         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8721         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8722
8723 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8724
8725         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8726         points to a constant blob.
8727
8728 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8729
8730         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8731         property and store it as the high bound and flag the range accordingly.
8732         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8733         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8734         * gdbtypes.h (enum range_flags): New enum.
8735         (struct range_bounds): Add flags member.
8736
8737 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8738
8739         * c-typeprint.c (c_type_print_varspec_suffix): Added
8740         check for not yet resolved high bound. If unresolved, print
8741         "variable length" string to the console instead of random
8742         length.
8743
8744 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8745
8746         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8747         value.
8748         (ada_template_to_fixed_record_type_1): Likewise.
8749         (ada_to_fixed_type_1): Likewise.
8750         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8751         (cp_print_value): Likewise.
8752         * d-valprint.c (dynamic_array_type): Likewise.
8753         * findvar.c (address_of_variable): Likewise.
8754         * jv-valprint.c (java_value_print): Likewise.
8755         * valops.c (value_ind): Likewise.
8756         * value.c (coerce_ref): Likewise.
8757
8758 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8759
8760         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8761         value and retrieve the dynamic type size.
8762
8763 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8764
8765         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8766         passed to sizeof is dynamic evaluate the argument to compute the length.
8767
8768 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
8769             Joel Brobecker  <brobecker@adacore.com>
8770
8771         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8772         (dwarf2_evaluate_property): New function.
8773         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8774         * dwarf2read.c (attr_to_dynamic_prop): New function.
8775         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8776         attribute.
8777         * gdbtypes.c: Include dwarf2loc.h.
8778         (is_dynamic_type): New function.
8779         (resolve_dynamic_type): New function.
8780         (resolve_dynamic_bounds): New function.
8781         (get_type_length): New function.
8782         (check_typedef): Use get_type_length to compute type length.
8783         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8784         (TYPE_LOW_BOUND_KIND): New macro.
8785         (is_dynamic_type): New function prototype.
8786         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8787         to resolve dynamic properties of the type. Update comment.
8788         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8789
8790 2014-04-14  Richard Henderson  <rth@redhat.com>
8791
8792         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8793
8794 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
8795             Doug Evans  <xdje42@gmail.com>
8796
8797         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8798         dereference TYPE_CODE_REF values.
8799
8800 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
8801
8802         Revert the following changes due to regressions:
8803
8804         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8805         (dwarf2_evaluate_property): New function.
8806         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8807         * dwarf2read.c (attr_to_dynamic_prop): New function.
8808         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8809         attribute.
8810         * gdbtypes.c: Include dwarf2loc.h.
8811         (is_dynamic_type): New function.
8812         (resolve_dynamic_type): New function.
8813         (resolve_dynamic_bounds): New function.
8814         (get_type_length): New function.
8815         (check_typedef): Use get_type_length to compute type length.
8816         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8817         (TYPE_LOW_BOUND_KIND): New macro.
8818         (is_dynamic_type): New function prototype.
8819         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8820         to resolve dynamic properties of the type. Update comment.
8821         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8822
8823         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8824         passed to sizeof is dynamic evaluate the argument to compute the length.
8825
8826         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8827         value and retrieve the dynamic type size.
8828
8829         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8830         (ada_template_to_fixed_record_type_1): Likewise.
8831         (ada_to_fixed_type_1): Likewise.
8832         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8833         (cp_print_value): Likewise.
8834         * d-valprint.c (dynamic_array_type): Likewise.
8835         * eval.c (evaluate_subexp_with_coercion): Likewise.
8836         * findvar.c (address_of_variable): Likewise.
8837         * jv-valprint.c (java_value_print): Likewise.
8838         * valops.c (value_ind): Likewise.
8839         * value.c (coerce_ref): Likewise.
8840
8841         * c-typeprint.c (c_type_print_varspec_suffix): Added
8842         check for not yet resolved high bound. If unresolved, print
8843         "variable length" string to the console instead of random
8844         length.
8845
8846         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8847         property and store it as the high bound and flag the range accordingly.
8848         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8849         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8850         * gdbtypes.h (enum range_flags): New enum.
8851         (struct range_bounds): Add flags member.
8852
8853         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8854         points to a constant blob.
8855
8856         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8857         (evaluate_subexp_standard): Pass noside argument.
8858         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8859         if noside equals EVAL_NORMAL. If the subscript yields a vla type
8860         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8861         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8862         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8863
8864 2014-04-11  Keith Seitz  <keiths@redhat.com>
8865
8866         PR c++/16675
8867         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8868         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8869         reference types.
8870
8871 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8872
8873         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8874         (evaluate_subexp_standard): Pass noside argument.
8875         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8876         if noside equals EVAL_NORMAL. If the subscript yields a vla type
8877         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8878         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8879         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8880
8881 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8882
8883         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8884         points to a constant blob.
8885
8886 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8887
8888         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8889         property and store it as the high bound and flag the range accordingly.
8890         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8891         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8892         * gdbtypes.h (enum range_flags): New enum.
8893         (struct range_bounds): Add flags member.
8894
8895 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8896
8897         * c-typeprint.c (c_type_print_varspec_suffix): Added
8898         check for not yet resolved high bound. If unresolved, print
8899         "variable length" string to the console instead of random
8900         length.
8901
8902 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8903
8904         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8905         (ada_template_to_fixed_record_type_1): Likewise.
8906         (ada_to_fixed_type_1): Likewise.
8907         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8908         (cp_print_value): Likewise.
8909         * d-valprint.c (dynamic_array_type): Likewise.
8910         * eval.c (evaluate_subexp_with_coercion): Likewise.
8911         * findvar.c (address_of_variable): Likewise.
8912         * jv-valprint.c (java_value_print): Likewise.
8913         * valops.c (value_ind): Likewise.
8914         * value.c (coerce_ref): Likewise.
8915
8916 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8917
8918         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8919         value and retrieve the dynamic type size.
8920
8921 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8922
8923         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8924         passed to sizeof is dynamic evaluate the argument to compute the length.
8925
8926 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8927
8928         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8929         (dwarf2_evaluate_property): New function.
8930         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8931         * dwarf2read.c (attr_to_dynamic_prop): New function.
8932         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8933         attribute.
8934         * gdbtypes.c: Include dwarf2loc.h.
8935         (is_dynamic_type): New function.
8936         (resolve_dynamic_type): New function.
8937         (resolve_dynamic_bounds): New function.
8938         (get_type_length): New function.
8939         (check_typedef): Use get_type_length to compute type length.
8940         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8941         (TYPE_LOW_BOUND_KIND): New macro.
8942         (is_dynamic_type): New function prototype.
8943         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8944         to resolve dynamic properties of the type. Update comment.
8945         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8946
8947 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8948
8949         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
8950         declaring high/low bounds and change uses accordingly. Call
8951         create_range_type instead of create_static_range_type.
8952         * gdbtypes.c (create_range_type): New function.
8953         (create_range_type): Convert bounds into struct bound_prop and pass
8954         them to create_range_type.
8955         * gdbtypes.h (struct bound_prop): New struct.
8956         (create_range_type): New function prototype.
8957         (struct range_bounds): Use struct bound_prop instead of LONGEST for
8958         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
8959         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
8960         part of the bound.
8961         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
8962
8963 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
8964
8965         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
8966         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
8967         * ada-lang.c: All uses of create_range_type updated.
8968         * coffread.c: All uses of create_range_type updated.
8969         * dwarf2read.c: All uses of create_range_type updated.
8970         * f-exp.y: All uses of create_range_type updated.
8971         * m2-valprint.c: All uses of create_range_type updated.
8972         * mdebugread.c: All uses of create_range_type updated.
8973         * stabsread.c: All uses of create_range_type updated.
8974         * valops.c: All uses of create_range_type updated.
8975         * valprint.c: All uses of create_range_type updated.
8976
8977 2014-04-10  Pedro Alves  <palves@redhat.com>
8978
8979         * breakpoint.c (single_step_breakpoints)
8980         (single_step_gdbarch): Move up in the file.
8981         (one_breakpoint_xfer_memory): New function, factored out from ...
8982         (breakpoint_xfer_memory): ... here.  Also process single-step
8983         breakpoints.
8984
8985 2014-04-09  Tristan Gingold  <gingold@adacore.com>
8986
8987         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
8988         comments.
8989         (darwin_decode_exception_message): Free port only after use.
8990
8991 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
8992
8993         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
8994         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
8995         when setting the size of call_length.
8996
8997 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
8998
8999         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9000         dereference TYPE_CODE_REF values.
9001
9002 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
9003
9004         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9005         end of warning message.
9006
9007 2014-04-03  Doug Evans  <dje@google.com>
9008
9009         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9010         of stub_comp_unit_die, stub_comp_dir is non-NULL.
9011
9012 2014-04-02  Alan Modra  <amodra@gmail.com>
9013
9014         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9015         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
9016         (struct symbol_file_add_from_memory_args): Add size field.
9017         (find_vdso_size): New function.
9018         (add_vsyscall_page): Attempt to find vdso size.
9019
9020 2014-04-01  Doug Evans  <dje@google.com>
9021
9022         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9023
9024 2014-04-01  Tristan Gingold  <gingold@adacore.com>
9025
9026         * darwin-nat.c (darwin_encode_reply): Add prototype.
9027         (darwin_decode_exception_message): Reply to unknown inferiors.
9028         (darwin_decode_message): Handle message by id.  Ignore message
9029         to unknown inferior.
9030         (darwin_wait): Discard unknown messages, add debug trace.
9031
9032 2014-03-31  Doug Evans  <dje@google.com>
9033
9034         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9035         comp_dir_string.
9036
9037 2014-03-31  Doug Evans  <dje@google.com>
9038
9039         New option "set print symbol-loading".
9040         * NEWS: Mention it.
9041         * solib.c (solib_read_symbols): Only print symbol loading messages
9042         if requested.
9043         (solib_add): If symbol loading is in "brief" mode, notify user
9044         symbols are being loaded.
9045         (reload_shared_libraries_1): Ditto.
9046         * symfile.c (print_symbol_loading_off): New static global.
9047         (print_symbol_loading_brief): New static global.
9048         (print_symbol_loading_full): New static global.
9049         (print_symbol_loading_enums): New static global.
9050         (print_symbol_loading): New static global.
9051         (print_symbol_loading_p): New function.
9052         (symbol_file_add_with_addrs): Only print symbol loading messages
9053         if requested.
9054         (_initialize_symfile): Register "print symbol-loading" set/show
9055         command.
9056         * symfile.h (print_symbol_loading_p): Declare.
9057
9058 2014-03-30  Doug Evans  <xdje42@gmail.com>
9059
9060         * infrun.c (set_last_target_status): New function.
9061         (handle_inferior_event): Call it.
9062
9063 2014-03-30  Doug Evans  <xdje42@gmail.com>
9064
9065         * inferior.h (enum stop_kind): Improve comment.
9066
9067 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
9068
9069         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9070         a reference, strip the reference layer before calling
9071         the lang_ops value_has_mutated callback.
9072
9073 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
9074
9075         Remove some globals from our parser.
9076         * language.c (unk_lang_parser): Add "struct parser_state"
9077         argument.
9078         * language.h (struct language_defn) <la_parser>: Likewise.
9079         * parse.c (expout, expout_size, expout_ptr): Remove variables.
9080         (initialize_expout): Add "struct parser_state" argument.
9081         Rewrite function to use the parser state.
9082         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9083         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9084         write_exp_elt_longcst, write_exp_elt_dblcst,
9085         write_exp_elt_decfloatcst, write_exp_elt_type,
9086         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9087         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9088         write_dollar_variable): Likewise.
9089         (parse_exp_in_context_1): Use parser state.
9090         (insert_type_address_space): Add "struct parser_state" argument.
9091         Use parser state.
9092         (increase_expout_size): New function.
9093         * parser-defs.h: Forward declare "struct language_defn" and
9094         "struct parser_state".
9095         (expout, expout_size, expout_ptr): Remove extern declarations.
9096         (parse_gdbarch, parse_language): Rewrite macro declarations to
9097         accept the parser state.
9098         (struct parser_state): New struct.
9099         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9100         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9101         write_exp_elt_decfloatcst, write_exp_elt_type,
9102         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9103         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9104         write_exp_msymbol, write_dollar_variable,
9105         mark_struct_expression, insert_type_address_space): Add "struct
9106         parser_state" argument.
9107         (increase_expout_size): New function.
9108         * utils.c (do_clear_parser_state): New function.
9109         (make_cleanup_clear_parser_state): Likewise.
9110         * utils.h (make_cleanup_clear_parser_state): New function
9111         prototype.
9112         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9113         Update calls to write_exp* in order to pass the parser state.
9114         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9115         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9116         (i386_stap_parse_special_token_three_arg_disp): Likewise.
9117         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9118         * stap-probe.c (stap_parse_register_operand): Likewise.
9119         (stap_parse_single_operand): Likewise.
9120         (stap_parse_argument_1): Likewise.
9121         (stap_parse_argument): Use parser state.
9122         * stap-probe.h: Include "parser-defs.h".
9123         (struct stap_parse_info) <pstate>: New field.
9124         * c-exp.y (parse_type): Rewrite to use parser state.
9125         (yyparse): Redefine to c_parse_internal.
9126         (pstate): New global variable.
9127         (parse_number): Add "struct parser_state" argument.
9128         (write_destructor_name): Likewise.
9129         (type_exp): Update calls to write_exp* and similars in order to
9130         use parser state.
9131         (exp1, exp, variable, qualified_name, space_identifier,
9132         typename, typebase): Likewise.
9133         (write_destructor_name, parse_number, lex_one_token,
9134         classify_name, classify_inner_name, c_parse): Add "struct
9135         parser_state" argument.  Update function to use parser state.
9136         * c-lang.h: Forward declare "struct parser_state".
9137         (c_parse): Add "struct parser_state" argument.
9138         * ada-exp.y (parse_type): Rewrite macro to use parser state.
9139         (yyparse): Redefine macro to ada_parse_internal.
9140         (pstate): New variable.
9141         (write_int, write_object_renaming, write_var_or_type,
9142         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9143         type_int, type_long, type_long_long, type_float, type_double,
9144         type_long_double, type_char, type_boolean, type_system_address):
9145         Add "struct parser_state" argument.
9146         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9147         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9148         var_or_type, aggregate, aggregate_component_list,
9149         positional_list, others, component_group,
9150         component_associations): Update calls to write_exp* and similar
9151         functions in order to use parser state.
9152         (ada_parse, write_var_from_sym, write_int,
9153         write_exp_op_with_string, write_object_renaming,
9154         find_primitive_type, write_selectors, write_ambiguous_var,
9155         write_var_or_type, write_name_assoc, type_int, type_long,
9156         type_long_long, type_float, type_double, type_long_double,
9157         type_char, type_boolean, type_system_address): Add "struct
9158         parser_state" argument.  Adjust function to use parser state.
9159         * ada-lang.c (parse): Likewise.
9160         * ada-lang.h: Forward declare "struct parser_state".
9161         (ada_parse): Add "struct parser_state" argument.
9162         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
9163         calls to both functions.
9164         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9165         parser state.
9166         (yyparse): Redefine macro to f_parse_internal.
9167         (pstate): New variable.
9168         (parse_number): Add "struct parser_state" argument.
9169         (type_exp, exp, subrange, typebase): Update calls to write_exp*
9170         and similars in order to use parser state.
9171         (parse_number): Adjust code to use parser state.
9172         (yylex): Likewise.
9173         (f_parse): New function.
9174         * f-lang.h: Forward declare "struct parser_state".
9175         (f_parse): Add "struct parser_state" argument.
9176         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9177         parser state.
9178         (yyparse): Redefine macro for java_parse_internal.
9179         (pstate): New variable.
9180         (push_expression_name, push_expression_name, insert_exp): Add
9181         "struct parser_state" argument.
9182         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9183         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9184         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9185         PostIncrementExpression, PostDecrementExpression,
9186         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9187         UnaryExpressionNotPlusMinus, CastExpression,
9188         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9189         RelationalExpression, EqualityExpression, AndExpression,
9190         ExclusiveOrExpression, InclusiveOrExpression,
9191         ConditionalAndExpression, ConditionalOrExpression,
9192         ConditionalExpression, Assignment, LeftHandSide): Update
9193         calls to write_exp* and similars in order to use parser state.
9194         (parse_number): Ajust code to use parser state.
9195         (yylex): Likewise.
9196         (java_parse): New function.
9197         (push_variable): Add "struct parser_state" argument.  Adjust
9198         code to user parser state.
9199         (push_fieldnames, push_qualified_expression_name,
9200         push_expression_name, insert_exp): Likewise.
9201         * jv-lang.h: Forward declare "struct parser_state".
9202         (java_parse): Add "struct parser_state" argument.
9203         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9204         parser state.
9205         (yyparse): Redefine macro to m2_parse_internal.
9206         (pstate): New variable.
9207         (type_exp, exp, fblock, variable, type): Update calls to
9208         write_exp* and similars to use parser state.
9209         (yylex): Likewise.
9210         (m2_parse): New function.
9211         * m2-lang.h: Forward declare "struct parser_state".
9212         (m2_parse): Add "struct parser_state" argument.
9213         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9214         * objc-lang.h: Forward declare "struct parser_state".
9215         (end_msglist): Add "struct parser_state" argument.
9216         * p-exp.y (parse_type): Rewrite macro to use parser state.
9217         (yyparse): Redefine macro to pascal_parse_internal.
9218         (pstate): New variable.
9219         (parse_number): Add "struct parser_state" argument.
9220         (type_exp, exp1, exp, qualified_name, variable): Update calls to
9221         write_exp* and similars in order to use parser state.
9222         (parse_number, yylex): Adjust code to use parser state.
9223         (pascal_parse): New function.
9224         * p-lang.h: Forward declare "struct parser_state".
9225         (pascal_parse): Add "struct parser_state" argument.
9226         * go-exp.y (parse_type): Rewrite macro to use parser state.
9227         (yyparse): Redefine macro to go_parse_internal.
9228         (pstate): New variable.
9229         (parse_number): Add "struct parser_state" argument.
9230         (type_exp, exp1, exp, variable, type): Update calls to
9231         write_exp* and similars in order to use parser state.
9232         (parse_number, lex_one_token, classify_name, yylex): Adjust code
9233         to use parser state.
9234         (go_parse): Likewise.
9235         * go-lang.h: Forward declare "struct parser_state".
9236         (go_parse): Add "struct parser_state" argument.
9237
9238 2014-03-27  Doug Evans  <dje@google.com>
9239
9240         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
9241
9242 2014-03-27  Doug Evans  <dje@google.com>
9243
9244         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9245         Remove argument abbrev_section.  All callers updated.
9246
9247 2014-03-27  Doug Evans  <dje@google.com>
9248
9249         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9250         addr_base, ranges_base.
9251
9252 2014-03-26  Keith Seitz  <keiths@redhat.com>
9253
9254         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9255         types, not VAR_DOMAIN.
9256
9257 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
9258
9259         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9260         "ra" registers.
9261         * features/nios2-linux.c: Regenerated.
9262         * features/nios2.c: Regenerated.
9263
9264 2014-03-25  Pedro Alves  <palves@redhat.com>
9265
9266         * cli/cli-script.c (script_from_file): Force the interpreter to
9267         sync mode.
9268
9269 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
9270
9271         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9272         small stack allocation.
9273
9274 2014-03-24  Tristan Gingold  <gingold@adacore.com>
9275
9276         * darwin-nat.c (exc_server): Remove unused prototype.
9277         (darwin_dump_message): Correctly display data on x86_64.
9278         (darwin_encode_reply): Fix style.
9279         Add comments and fix indentation.
9280
9281 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
9282
9283         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9284
9285 2014-03-22  Doug Evans  <xdje42@gmail.com>
9286
9287         * infcmd.c: Whitespace fixes.
9288         (interrupt_command): Merge two function comments into one.
9289
9290 2014-03-22  Doug Evans  <xdje42@gmail.com>
9291
9292         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9293         All uses updated.
9294
9295 2014-03-22  Yao Qi  <yao@codesourcery.com>
9296
9297         * remote.c (target_read_live_memory): Remove.
9298         (memory_xfer_live_readonly_partial): Rename it to
9299         remote_xfer_live_readonly_partial.  Remove argument 'object'.
9300         All callers updated.  Call remote_read_bytes_1
9301         instead of target_read_live_memory.
9302         * tracepoint.c (set_traceframe_number): Remove.
9303         (make_cleanup_restore_traceframe_number): Likewise .
9304         * tracepoint.h (set_traceframe_number): Remove declaration.
9305         (make_cleanup_restore_traceframe_number): Likewise.
9306
9307 2014-03-22  Yao Qi  <yao@codesourcery.com>
9308
9309         * remote.c (remote_read_bytes): Move code on reading from the
9310         remote stub to ...
9311         (remote_read_bytes_1): ... here.  New function.
9312
9313 2014-03-22  Yao Qi  <yao@codesourcery.com>
9314
9315         * ctf.c (ctf_xfer_partial): Check the return value of
9316         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9317         return TARGET_XFER_UNAVAILABLE.
9318         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9319         * target.c (target_read_live_memory): Move it to remote.c.
9320         (memory_xfer_live_readonly_partial): Likewise.
9321         (memory_xfer_partial_1): Move some code to remote_read_bytes.
9322         * remote.c (target_read_live_memory): Moved from target.c.
9323         (memory_xfer_live_readonly_partial): Likewise.
9324         (remote_read_bytes): Factored out from
9325         memory_xfer_partial_1.
9326
9327 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
9328
9329         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9330         NULL pointer.
9331
9332 2014-03-21  Pedro Alves  <palves@redhat.com>
9333
9334         * infrun.c (normal_stop): Extend comment.
9335
9336 2014-03-21  Hui Zhu  <hui@codesourcery.com>
9337             Pedro Alves  <palves@redhat.com>
9338
9339         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9340         static buffer.
9341         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9342         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9343         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9344
9345 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
9346
9347         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9348         `z' formatted output modifier.
9349
9350 2014-03-20  Tom Tromey  <tromey@redhat.com>
9351             Sergio Durigan Junior  <sergiodj@redhat.com>
9352
9353         * probe.c (parse_probes): Turn assert into an ordinary error.
9354         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9355         exceptions when parsing probes.  Rearrange the code for clarity.
9356
9357 2014-03-20  Tom Tromey  <tromey@redhat.com>
9358
9359         PR gdb/14135
9360         * top.c (execute_command): Only dispatch events if the command
9361         started the target.
9362
9363 2014-03-20  Tom Tromey  <tromey@redhat.com>
9364
9365         PR cli/15718
9366         * infcall.c: Include event-top.h.
9367         (run_inferior_call): Call async_disable_stdin if needed.
9368
9369 2014-03-20  Pedro Alves  <palves@redhat.com>
9370
9371         * infrun.c (prepare_to_proceed): Delete.
9372         (thread_still_needs_step_over): New function.
9373         (find_thread_needs_step_over): New function.
9374         (proceed): If the current thread needs a step-over, set its
9375         steping_over_breakpoint flag.  Adjust to use
9376         find_thread_needs_step_over instead of prepare_to_proceed.
9377         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9378         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9379         breakpoint.
9380         (switch_back_to_stepped_thread): Step over breakpoints of all
9381         threads not the stepping thread, before switching back to the
9382         stepping thread.
9383
9384 2014-03-20  Pedro Alves  <palves@redhat.com>
9385
9386         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9387         extern.
9388         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9389         * infrun.c (saved_singlestep_ptid)
9390         (stepping_past_singlestep_breakpoint): Delete.
9391         (resume): Remove stepping_past_singlestep_breakpoint handling.
9392         (proceed): Store the prev_pc of the stepping thread too.
9393         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
9394         singlestep_pc.
9395         (enum infwait_states): Delete infwait_thread_hop_state.
9396         (struct execution_control_state) <hit_singlestep_breakpoint>: New
9397         field.
9398         (handle_inferior_event): Adjust.
9399         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9400         handling and the thread-hop code.  Before removing single-step
9401         breakpoints, check whether the thread hit a single-step breakpoint
9402         of another thread.  If it did, the trap is not a random signal.
9403         (switch_back_to_stepped_thread): If the event thread hit a
9404         single-step breakpoint, unblock it before switching to the
9405         stepping thread.  Handle the case of the stepped thread having
9406         advanced already.
9407         (keep_going): Handle the case of the current thread moving past a
9408         single-step breakpoint.
9409
9410 2014-03-20  Pedro Alves  <palves@redhat.com>
9411
9412         PR breakpoints/7143
9413         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9414         are being stepped over.
9415         (breakpoint_address_match): Make extern.
9416         * breakpoint.h (breakpoint_address_match): New declaration.
9417         * inferior.h (stepping_past_instruction_at): New declaration.
9418         * infrun.c (struct step_over_info): New type.
9419         (step_over_info): New global.
9420         (set_step_over_info, clear_step_over_info)
9421         (stepping_past_instruction_at): New functions.
9422         (handle_inferior_event): Clear the step-over info when
9423         trap_expected is cleared.
9424         (resume): Remove now stale comment.
9425         (clear_proceed_status): Clear step-over info.
9426         (proceed): Adjust step-over handling to set or clear the step-over
9427         info instead of removing all breakpoints.
9428         (handle_signal_stop): When setting up a thread-hop, don't remove
9429         breakpoints here.
9430         (stop_stepping): Clear step-over info.
9431         (keep_going): Adjust step-over handling to set or clear step-over
9432         info and then always inserting breakpoints, instead of removing
9433         all breakpoints when stepping over one.
9434
9435 2014-03-20  Pedro Alves  <palves@redhat.com>
9436
9437         * infrun.c (previous_inferior_ptid): Adjust comment.
9438         (deferred_step_ptid): Delete.
9439         (infrun_thread_ptid_changed, prepare_to_proceed)
9440         (init_wait_for_inferior): Adjust.
9441         (handle_signal_stop): Delete deferred_step_ptid handling.
9442
9443 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
9444
9445         PR gdb/15358
9446         * defs.h (sync_quit_force_run): New declaration.
9447         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9448         * event-top.c (async_sigterm_handler): New declaration.
9449         (async_sigterm_token): New variable.
9450         (async_init_signals): Create also async_sigterm_token.
9451         (async_sigterm_handler): New function.
9452         (sync_quit_force_run): New variable.
9453         (handle_sigterm): Replace quit_force call by other calls.
9454         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9455
9456 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
9457
9458         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9459         offset into SPE pseudo registers.
9460
9461 2014-03-18  Pedro Alves  <palves@redhat.com>
9462
9463         PR gdb/13860
9464         * inferior.h (print_stop_event): Declare.
9465         * infrun.c (print_stop_event): New, factored out from ...
9466         (normal_stop): ... this.
9467         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9468         of bpstat_print/print_stack_frame.
9469
9470 2014-03-17  Tom Tromey  <tromey@redhat.com>
9471
9472         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9473
9474 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
9475
9476         * ada-lang.c (decode_constrained_packed_array): Perform a
9477         minimal coercion for reference with coerce_ref instead of
9478         ada_coerce_ref.
9479
9480 2014-03-17  Tristan Gingold  <gingold@adacore.com>
9481
9482         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9483         (darwin_solib_create_inferior_hook): Emit a warning if version
9484         is unhandled.
9485
9486 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
9487
9488         * python/py-value.c (get_field_flag): Cast flag_name argument to
9489         PyObject_GetAttrString to support Python 2.4.
9490
9491 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
9492
9493         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9494         (Global Maintainers): Remove Jan Kratochvil.
9495
9496 2014-03-14  Pedro Alves  <palves@redhat.com>
9497
9498         * inferior.h (terminal_ours_for_output): Rename to ...
9499         (child_terminal_ours_for_output): ... this.
9500         (terminal_save_ours): Rename to ...
9501         (child_terminal_save_ours): ... this.
9502         (terminal_ours): Rename to ...
9503         (child_terminal_ours): ... this.
9504         (terminal_inferior): Rename to ...
9505         (child_terminal_inferior): ... this.
9506         (terminal_init_inferior): Rename to ...
9507         (child_terminal_init_inferior): ... this.
9508         (terminal_init_inferior_with_pgrp): Rename to ...
9509         (child_terminal_init_inferior_with_pgrp): ... this.
9510         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9511         (child_terminal_init_with_pgrp): ... this.
9512         (terminal_save_ours): Rename to ...
9513         (child_terminal_save_ours): ... this.
9514         (terminal_init_inferior): Rename to ...
9515         (child_terminal_init): ... this.  Adjust.
9516         (terminal_inferior): Rename to ...
9517         (child_terminal_inferior): ... this.
9518         (terminal_ours_for_output): Rename to ...
9519         (child_terminal_ours_for_output): ... this.  Adjust.
9520         (terminal_ours): Rename to ...
9521         (child_terminal_ours): ... this.
9522         (terminal_ours_1): Rename to ...
9523         (child_terminal_ours_1): ... this.  Adjust.
9524         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9525         * windows-nat.c (do_initial_windows_stuff): Adjust.
9526         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9527         (gnu_terminal_init): ... this.  Adjust.
9528         (gnu_target): Adjust.
9529         * inf-child.c (inf_child_target): Adjust.
9530
9531 2014-03-13  Doug Evans  <xdje42@gmail.com>
9532
9533         PR guile/16612
9534         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9535         new eq?-hashtab.
9536
9537 2014-03-13  Doug Evans  <xdje42@gmail.com>
9538
9539         * value.c (record_latest_value): Call release_value_or_incref
9540         instead of release_value.
9541
9542 2014-03-13  Pedro Alves  <palves@redhat.com>
9543
9544         * procfs.c (procfs_target): Don't override to_shortname,
9545         to_longname or to_doc.
9546
9547 2014-03-13  Pedro Alves  <palves@redhat.com>
9548
9549         * inf-child.c (inf_child_open, inf_child_target): Don't mention
9550         Unix in user visible strings.
9551
9552 2014-03-12  Stan Shebs  <stan@codesourcery.com>
9553
9554         * gdbtypes.h: Annotate comments for Doxygen, add a page
9555         block comment with some general info.
9556
9557 2014-03-12  Pedro Alves  <palves@redhat.com>
9558
9559         * infcmd.c (prepare_execution_command): New function, factored out
9560         from several execution commands.
9561         (run_command_1, continue_command, step_1, jump_command)
9562         (signal_command, until_command, advance_command, finish_command)
9563         (attach_command): Use prepare_execution_command.
9564
9565 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
9566
9567         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9568         (MAX_BPTS): Define.
9569         (MAX_WPTS): Define.
9570         (struct arm_linux_thread_points): Removed.
9571         (struct arm_linux_process_info): New.
9572         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9573         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9574         (arm_linux_find_breakpoints_by_tid): Removed.
9575         (struct arch_lwp_info): New.
9576         (arm_linux_find_process_pid): New functions.
9577         (arm_linux_add_process): New functions.
9578         (arm_linux_process_info_get): New functions.
9579         (arm_linux_forget_process): New function.
9580         (arm_linux_get_debug_reg_state): New function.
9581         (struct update_registers_data): New.
9582         (update_registers_callback): New function.
9583         (arm_linux_insert_hw_breakpoint1): Updated.
9584         (arm_linux_remove_hw_breakpoint1): Updated.
9585         (arm_linux_insert_hw_breakpoint): Updated.
9586         (arm_linux_remove_hw_breakpoint): Updated.
9587         (arm_linux_insert_watchpoint): Updated.
9588         (arm_linux_remove_watchpoint): Updated.
9589         (arm_linux_new_thread): Updated.
9590         (arm_linux_prepare_to_resume): New function.
9591         (arm_linux_new_fork): New function.
9592         (_initialize_arm_linux_nat): Updated.
9593
9594 2014-03-12  Pedro Alves  <palves@redhat.com>
9595
9596         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9597
9598 2014-03-12  Tom Tromey  <tromey@redhat.com>
9599
9600         * inf-child.c (return_zero): New function.
9601         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9602         * aix-thread.c (aix_thread_inferior_created): New function.
9603         (aix_thread_attach): Remove.
9604         (init_aix_thread_ops): Don't set to_attach.
9605         (_initialize_aix_thread): Register inferior_created observer.
9606         * corelow.c (init_core_ops): Don't set to_attach or
9607         to_create_inferior.
9608         * exec.c (init_exec_ops): Don't set to_attach or
9609         to_create_inferior.
9610         * infcmd.c (run_command_1): Use find_run_target.  Make direct
9611         target calls.
9612         (attach_command): Use find_attach_target.  Make direct target
9613         calls.
9614         * record-btrace.c (init_record_btrace_ops): Don't set
9615         to_create_inferior.
9616         * record-full.c (record_full_can_async_p, record_full_is_async_p):
9617         Remove.
9618         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
9619         set to_create_inferior.
9620         * target.c (complete_target_initialization): Add assertion.
9621         (target_create_inferior): Remove.
9622         (find_default_attach, find_default_create_inferior): Remove.
9623         (find_attach_target, find_run_target): New functions.
9624         (find_default_is_async_p, find_default_can_async_p)
9625         (target_supports_non_stop, target_attach): Remove.
9626         (init_dummy_target): Don't set to_create_inferior or
9627         to_supports_non_stop.
9628         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
9629         TARGET_DEFAULT_FUNC.
9630         <to_create_inferior>: Add comment.
9631         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9632         TARGET_DEFAULT_RETURN.
9633         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9634         (find_attach_target, find_run_target): Declare.
9635         (target_create_inferior): Remove.
9636         (target_has_execution_1): Update comment.
9637         (target_supports_non_stop): Remove.
9638         * target-delegates.c: Rebuild.
9639
9640 2014-03-12  Pedro Alves  <palves@redhat.com>
9641
9642         * inf-child.h: Update comment to not mention Unix.
9643
9644 2014-03-12  Pedro Alves  <palves@redhat.com>
9645
9646         * inf-child.c: Update top comment to not mention Unix.  Add
9647         generic comment describing how this target is meant to be used.
9648         (inf_child_post_attach, inf_child_post_startup_inferior)
9649         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9650         Unix in comment.
9651
9652 2014-03-12  Pedro Alves  <palves@redhat.com>
9653
9654         * nto-procfs.c: Include inf-child.h.
9655         (procfs_ops): Delete global.
9656         (procfs_can_run): Delete method.
9657         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9658         target pointer instead of referencing procfs_ops.
9659         (procfs_prepare_to_store): Delete.
9660         (init_procfs_ops): Delete function.
9661         (procfs_target): New function, based on init_procfs_ops, but
9662         inherit inf_child_target.
9663         (_initialize_procfs): Use procfs_target.
9664
9665 2014-03-12  Pedro Alves  <palves@redhat.com>
9666
9667         * windows-nat.c: Include inf-child.h.
9668         (windows_ops): Delete global.
9669         (windows_open, windows_prepare_to_store, windows_can_run): Delete
9670         methods.
9671         (init_windows_ops): Delete function.
9672         (windows_target): New function, based on init_windows_ops, but
9673         inherit inf_child_target.
9674         (_initialize_windows_nat): Use windows_target.  Install x86
9675         specific target methods here.
9676
9677 2014-03-10  Doug Evans  <xdje42@gmail.com>
9678
9679         * guile/guile.c (call_initialize_gdb_module): New function.
9680         (initialize_guile): Replace call to scm_init_guile with call to
9681         scm_with_guile.
9682
9683 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
9684
9685         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9686         in call to TYPE_CODE macro.
9687
9688 2014-03-10  Jerome Guitton  <guitton@adacore.com>
9689
9690         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9691         Resolve tagged types to full view.
9692
9693 2014-03-10  Hui Zhu  <hui@codesourcery.com>
9694
9695         * target.h (target_insert_breakpoint): Remove "hardware" from its
9696         comments.
9697
9698 2014-03-07  Doug Evans  <dje@google.com>
9699
9700         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9701
9702 2014-03-07  Doug Evans  <dje@google.com>
9703
9704         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9705         Remove unused local comp_dir_attr.  Assert exactly one of
9706         stub_comp_unit_die, stub_comp_dir is non-NULL.
9707
9708 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
9709
9710         * target.h (complete_target_initialization, add_target):
9711         Add comment.
9712
9713 2014-03-07  Pedro Alves  <palves@redhat.com>
9714
9715         * go32-nat.c: Include inf-child.h.
9716         (go32_ops): Delete global.
9717         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9718         Delete methods.
9719         (go32_create_inferior): Push the passed in target pointer instead
9720         of referencing go32_ops.
9721         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
9722         (go32_target): New function, based on init_go32_ops, but inherit
9723         inf_child_target.
9724         (_initialize_go32_nat): Use go32_target.  Move parts of
9725         init_go32_ops here.
9726
9727 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
9728
9729         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9730         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9731         SYMBOL_VALUE_ADDRESS.
9732         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9733
9734 2014-03-06  Yao Qi  <yao@codesourcery.com>
9735
9736         * breakpoint.c (get_tracepoint_by_number): Remove argument
9737         optional_p.  All callers updated.  Adjust comments.  Update
9738         output message.
9739         * breakpoint.h (get_tracepoint_by_number): Update declaration.
9740
9741 2014-03-06  Yao Qi  <yao@codesourcery.com>
9742
9743         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
9744         early if get_number returns zero.  Use 'p' instead of 'args'.
9745
9746 2014-03-06  Yao Qi  <yao@codesourcery.com>
9747
9748         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9749         message.
9750
9751 2014-03-06  Yao Qi  <yao@codesourcery.com>
9752
9753         PR breakpoints/16508
9754         * tracepoint.c (check_trace_running): New function.
9755         (trace_find_command): Move code to check_trace_running and
9756         call check_trace_running.
9757         (trace_find_pc_command): Likewise.
9758         (trace_find_tracepoint_command): Likewise.
9759         (trace_find_line_command): Likewise.
9760         (trace_find_range_command): Likewise.
9761         * tracepoint.h (check_trace_running): Likewise.
9762         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9763
9764 2014-03-06  Yao Qi  <yao@codesourcery.com>
9765
9766         * target.h (struct target_ops) <to_traceframe_info>: Use
9767         TARGET_DEFAULT_NORETURN (tcomplain ()).
9768         * target-delegates.c: Regenerated.
9769
9770 2014-03-05  Pedro Alves  <palves@redhat.com>
9771
9772         PR gdb/16575
9773         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
9774         void.  Update comment.
9775         (dcache_xfer_memory): Delete.
9776         (dcache_read_memory_partial): New, based on the read bits of
9777         dcache_xfer_memory.
9778         (dcache_update): Add status parameter.  Use ULONGEST for len, and
9779         adjust.  Discard cache lines if the reason for the update was
9780         error.
9781         * dcache.h (dcache_xfer_memory): Delete declaration.
9782         (dcache_read_memory_partial): New declaration.
9783         (dcache_update): Update prototype.
9784         * target.c (raw_memory_xfer_partial): Update the dcache here.
9785         (memory_xfer_partial_1): Don't handle dcache writes here.
9786
9787 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
9788
9789         * remote-sim.c (gdbsim_load): Add const to prog.
9790
9791 2014-03-03  Tom Tromey  <tromey@redhat.com>
9792
9793         * elfread.c (probe_key): Change to bfd_data.
9794         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9795         now per-BFD, not per-objfile.
9796         * stap-probe.c (stap_probe_destroy): Update comment.
9797         (handle_stap_probe): Allocate on the per-BFD obstack.
9798
9799 2014-03-03  Tom Tromey  <tromey@redhat.com>
9800
9801         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9802         * breakpoint.c (create_longjmp_master_breakpoint): Use
9803         get_probe_address.
9804         (add_location_to_breakpoint, bkpt_probe_insert_location)
9805         (bkpt_probe_remove_location): Update.
9806         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9807         * elfread.c (elf_symfile_relocate_probe): Remove.
9808         (elf_probe_fns): Update.
9809         (insert_exception_resume_breakpoint): Change type of "probe"
9810         parameter to bound_probe.
9811         (check_exception_resume): Update.
9812         * objfiles.c (objfile_relocate1): Don't relocate probes.
9813         * probe.c (bound_probe_s): New typedef.
9814         (parse_probes): Use get_probe_address.  Set sal's objfile.
9815         (find_probe_by_pc): Return a bound_probe.
9816         (collect_probes): Return a VEC(bound_probe_s).
9817         (compare_probes): Update.
9818         (gen_ui_out_table_header_info): Change type of "probes"
9819         parameter.  Update.
9820         (info_probes_for_ops): Update.
9821         (get_probe_address): New function.
9822         (probe_safe_evaluate_at_pc): Update.
9823         * probe.h (struct probe_ops) <get_probe_address>: New field.
9824         <set_semaphore, clear_semaphore>: Add objfile parameter.
9825         (struct probe) <objfile>: Remove field.
9826         <arch>: New field.
9827         <address>: Update comment.
9828         (struct bound_probe): New.
9829         (find_probe_by_pc): Return a bound_probe.
9830         (get_probe_address): Declare.
9831         * solib-svr4.c (struct probe_and_action) <address>: New field.
9832         (hash_probe_and_action, equal_probe_and_action): Update.
9833         (register_solib_event_probe): Add address parameter.
9834         (solib_event_probe_at): Update.
9835         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
9836         get_probe_address.
9837         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9838         (stap_get_probe_address): New function.
9839         (stap_can_evaluate_probe_arguments, compute_probe_arg)
9840         (compile_probe_arg): Update.
9841         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9842         address.
9843         (handle_stap_probe): Don't relocate the probe.
9844         (stap_relocate): Remove.
9845         (stap_gen_info_probes_table_values): Update.
9846         (stap_probe_ops): Remove stap_relocate.
9847         * symfile-debug.c (debug_sym_relocate_probe): Remove.
9848         (debug_sym_probe_fns): Update.
9849         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9850         * symtab.c (init_sal): Use memset.
9851         * symtab.h (struct symtab_and_line) <objfile>: New field.
9852         * tracepoint.c (start_tracing, stop_tracing): Update.
9853
9854 2014-03-03  Tom Tromey  <tromey@redhat.com>
9855
9856         * probe.h (parse_probes, find_probe_by_pc)
9857         (find_probes_in_objfile): Fix comments.
9858
9859 2014-03-02  Doug Evans  <xdje42@gmail.com>
9860
9861         * infrun.c (handle_signal_stop): Replace test for
9862         TARGET_WAITKIND_STOPPED with an assert.
9863
9864 2014-03-02  Doug Evans  <xdje42@gmail.com>
9865
9866         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9867
9868 2014-03-02  Doug Evans  <xdje42@gmail.com>
9869
9870         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9871
9872 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
9873
9874         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
9875
9876 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
9877
9878         * i386obsd-nat.c: Include "obsd-nat.h".
9879         (_initialize_i386obsd_nat): Call obsd_add_target instead of
9880         add_target.
9881         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
9882
9883 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
9884
9885         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
9886
9887 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
9888
9889         * mips64obsd-nat.c: Include "obsd-nath".
9890         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
9891         add_target
9892         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9893
9894 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
9895
9896         * amd64obsd-nat.c: Include "obsd-nat,h.
9897         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
9898         add_target.
9899         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
9900
9901 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
9902
9903         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
9904         (find_overload_match): Update call to find_oload_champ.
9905         (find_oload_champ_namespace_loop): Likewise
9906
9907 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
9908
9909         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
9910
9911         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
9912         * config/sparc/obsd64.mh: New file.
9913         * sparc64obsd-nat.c: New file.
9914
9915         * obsd-nat.h: New file.
9916         * obsd-nat.c: New file.
9917         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
9918         (ALLDEPFILES): Add obsd-nat.c.
9919
9920 2014-02-28  Tom Tromey  <tromey@redhat.com>
9921
9922         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
9923         * cli-out.h (cli_ui_out_impl): Now const.
9924         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
9925         * ui-out.c (struct ui_out) <impl>: Now const.
9926         (default_ui_out_impl): Now const.
9927         (ui_out_new): Make 'impl' parameter const.
9928         * ui-out.h (ui_out_new): Update.
9929
9930 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9931
9932         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
9933
9934 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9935
9936         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
9937
9938 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
9939
9940         Additional PR 8882 fix.
9941         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
9942
9943 2014-02-27  Pedro Alves  <palves@redhat.com>
9944
9945         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
9946         isn't set.
9947
9948 2014-02-27  Pedro Alves  <palves@redhat.com>
9949
9950         PR 12702
9951         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
9952         * nat/linux-waitpid.c: Include string.h.
9953         (status_to_str): Moved here and made extern.
9954         * nat/linux-waitpid.h (status_to_str): New declaration.
9955
9956 2014-02-27  Hui Zhu  <hui@codesourcery.com>
9957
9958         PR 12702
9959         * infrun.c (ptid_match): Move ...
9960         * common/ptid.c (ptid_match): ... here.
9961         * inferior.h (ptid_match): Move ...
9962         * common/ptid.h (ptid_match): ... here.
9963
9964 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9965
9966         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
9967         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
9968         gdb_target_obs.
9969
9970 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
9971
9972         * obsd-tdep.c (obsd_auxv_parse): New function.
9973         (obsd_init_abi): Set auxv_parse.
9974
9975         * gdbarch.sh (auxv_parse): New.
9976         * gdbarch.h: Regenerated.
9977         * gdbarch.c: Regenerated.
9978         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
9979
9980 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
9981
9982         * guile/scm-value.c (gdbscm_history_append_x): New function.
9983         (value_functions): Add it.
9984
9985 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
9986
9987         * dwarf2read.c (attr_value_as_address): New function.
9988         (dwarf2_find_base_address, read_call_site_scope): Use
9989         attr_value_as_address in place of DW_ADDR.
9990         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
9991         the low and high addresses.  Slight rework of the handling
9992         of the high pc being a constant form, and limit it to
9993         DWARF verson 4 or higher.
9994         (dwarf2_record_block_ranges): Likewise.
9995         (read_partial_die): Likewise.
9996         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
9997
9998 2014-02-26  Tom Tromey  <tromey@redhat.com>
9999
10000         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10001
10002 2014-02-26  Tom Tromey  <tromey@redhat.com>
10003
10004         * elfread.c (elf_read_minimal_symbols): Return early if
10005         minimal symbols have already been read.  Add "ei" parameter.
10006         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10007         * minsyms.c (prim_record_minimal_symbol_full): Update.
10008         * objfiles.h (struct objstats) <n_minsyms>: Move...
10009         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10010         * symmisc.c (print_objfile_statistics): Update.
10011
10012 2014-02-26  Tom Tromey  <tromey@redhat.com>
10013
10014         * elfread.c (elf_read_minimal_symbols): New function, from
10015         elf_symfile_read.
10016         (elf_symfile_read): Call it.
10017
10018 2014-02-26  Tom Tromey  <tromey@redhat.com>
10019
10020         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10021         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10022         (lookup_minimal_symbol_solib_trampoline)
10023         (lookup_minimal_symbol_by_pc_section_1)
10024         (lookup_minimal_symbol_and_objfile): Update.
10025         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10026         Don't allocate a minimal symbol if minsyms have already been read.
10027         (build_minimal_symbol_hash_tables): Update.
10028         (install_minimal_symbols): Do nothing if minsyms already read.
10029         Use the per-BFD obstack.
10030         (terminate_minimal_symbol_table): Use the per-BFD obstack.
10031         * objfiles.c (allocate_objfile): Call
10032         terminate_minimal_symbol_table later.
10033         (have_minimal_symbols): Update.
10034         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10035         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10036         Move from struct objfile.
10037         <minsyms_read>: New field.
10038         (struct objfile) <msymbols, minimal_symbol_count,
10039         msymbol_hash, msymbol_demangled_hash>: Move.
10040         (ALL_OBJFILE_MSYMBOLS): Update.
10041         * symfile.c (read_symbols): Set minsyms_read.
10042         (reread_symbols): Update.
10043         * symmisc.c (dump_objfile, dump_msymbols): Update.
10044
10045 2014-02-26  Tom Tromey  <tromey@redhat.com>
10046
10047         * minsyms.c (msymbols_sort): Remove.
10048         * minsyms.h (msymbols_sort): Remove.
10049         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10050         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10051         * elfread.c (elf_symtab_read): Don't add section offsets.
10052         * xcoffread.c (record_minimal_symbol): Don't add section offset
10053         to minimal symbol address.
10054         * somread.c (text_offset, data_offset): Remove.
10055         (som_symtab_read): Don't add section offsets to minimal symbol
10056         addresses.
10057         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10058         Don't add section offsets to minimal symbols.
10059         * coffread.c (coff_symtab_read): Don't add section offsets
10060         to minimal symbol addresses.
10061         * machoread.c (macho_symtab_add_minsym): Don't add section offset
10062         to minimal symbol addresses.
10063         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10064         section offset to minimal symbol addresses.
10065         * mdebugread.c (parse_partial_symbols): Don't add section
10066         offset to minimal symbol addresses.
10067         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10068         offset to minimal symbol addresses.
10069
10070 2014-02-26  Tom Tromey  <tromey@redhat.com>
10071
10072         * ada-lang.c (ada_main_name): Update.
10073         (ada_add_standard_exceptions): Update.
10074         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10075         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10076         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10077         * auxv.c (ld_so_xfer_auxv): Update.
10078         * avr-tdep.c (avr_scan_prologue): Update.
10079         * ax-gdb.c (gen_var_ref): Update.
10080         * blockframe.c (get_pc_function_start)
10081         (find_pc_partial_function_gnu_ifunc): Update.
10082         * breakpoint.c (create_overlay_event_breakpoint)
10083         (create_longjmp_master_breakpoint)
10084         (create_std_terminate_master_breakpoint)
10085         (create_exception_master_breakpoint): Update.
10086         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10087         * c-valprint.c (c_val_print): Update.
10088         * coff-pe-read.c (add_pe_forwarded_sym): Update.
10089         * common/agent.c (agent_look_up_symbols): Update.
10090         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10091         * dwarf2loc.c (call_site_to_target_addr): Update.
10092         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10093         * elfread.c (elf_gnu_ifunc_record_cache)
10094         (elf_gnu_ifunc_resolve_by_got): Update.
10095         * findvar.c (default_read_var_value): Update.
10096         * frame.c (inside_main_func): Update.
10097         * frv-tdep.c (frv_frame_this_id): Update.
10098         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10099         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10100         Update.
10101         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10102         (hppa_hpux_find_dummy_bpaddr): Update.
10103         * hppa-tdep.c (hppa_symbol_address): Update.
10104         * infcmd.c (until_next_command): Update.
10105         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10106         Update.
10107         * linespec.c (minsym_found, add_minsym): Update.
10108         * linux-nat.c (get_signo): Update.
10109         * linux-thread-db.c (inferior_has_bug): Update.
10110         * m32c-tdep.c (m32c_return_value)
10111         (m32c_m16c_address_to_pointer): Update.
10112         * m32r-tdep.c (m32r_frame_this_id): Update.
10113         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10114         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10115         * maint.c (maintenance_translate_address): Update.
10116         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10117         (frob_address): New function.
10118         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10119         frob_address.  Rename parameter to "pc_in".
10120         (compare_minimal_symbols, compact_minimal_symbols): Use raw
10121         addresses.
10122         (find_solib_trampoline_target, minimal_symbol_upper_bound):
10123         Update.
10124         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10125         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10126         * objc-lang.c (find_objc_msgsend): Update.
10127         * objfiles.c (objfile_relocate1): Update.
10128         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10129         * p-valprint.c (pascal_val_print): Update.
10130         * parse.c (write_exp_msymbol): Update.
10131         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10132         (ppc_elfv2_skip_entrypoint): Update.
10133         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10134         * printcmd.c (build_address_symbolic, msym_info)
10135         (address_info): Update.
10136         * proc-service.c (ps_pglobal_lookup): Update.
10137         * psymtab.c (find_pc_sect_psymtab_closer)
10138         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10139         Change msymbol parameter to bound_minimal_symbol.
10140         * ravenscar-thread.c (get_running_thread_id): Update.
10141         * remote.c (remote_check_symbols): Update.
10142         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10143         address.
10144         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10145         * solib-dsbt.c (lm_base): Update.
10146         * solib-frv.c (lm_base, main_got): Update.
10147         * solib-irix.c (locate_base): Update.
10148         * solib-som.c (som_solib_create_inferior_hook)
10149         (link_map_start): Update.
10150         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10151         * solib-svr4.c (elf_locate_base, enable_break): Update.
10152         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10153         (flush_ea_cache): Update.
10154         * stabsread.c (define_symbol, scan_file_globals): Update.
10155         * stack.c (find_frame_funname): Update.
10156         * symfile-debug.c (debug_qf_expand_symtabs_matching)
10157         (debug_qf_find_pc_sect_symtab): Update.
10158         * symfile.c (simple_read_overlay_table)
10159         (simple_overlay_update): Update.
10160         * symfile.h (struct quick_symbol_functions)
10161         <find_pc_sect_symtab>: Change type of msymbol to
10162         bound_minimal_symbol.
10163         * symmisc.c (dump_msymbols): Update.
10164         * symtab.c (find_pc_sect_symtab_via_partial)
10165         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10166         (search_symbols, print_msymbol_info): Update.
10167         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10168         (MSYMBOL_VALUE_ADDRESS): Redefine.
10169         (BMSYMBOL_VALUE_ADDRESS): New macro.
10170         * tracepoint.c (scope_info): Update.
10171         * tui/tui-disasm.c (tui_find_disassembly_address)
10172         (tui_get_begin_asm_address): Update.
10173         * valops.c (find_function_in_inferior): Update.
10174         * value.c (value_static_field, value_fn_field): Update.
10175
10176 2014-02-26  Tom Tromey  <tromey@redhat.com>
10177
10178         * ada-lang.c (ada_update_initial_language): Update.
10179         (ada_main_name, ada_has_this_exception_support): Update.
10180         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10181         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10182         * arm-tdep.c (arm_skip_stub): Update.
10183         * auxv.c (ld_so_xfer_auxv): Update.
10184         * avr-tdep.c (avr_scan_prologue): Update.
10185         * ax-gdb.c (gen_var_ref): Update.
10186         * breakpoint.c (struct breakpoint_objfile_data)
10187         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10188         type to bound_minimal_symbol.
10189         (create_overlay_event_breakpoint)
10190         (create_longjmp_master_breakpoint)
10191         (create_std_terminate_master_breakpoint)
10192         (create_exception_master_breakpoint): Update.
10193         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10194         * c-exp.y (classify_name): Update.
10195         * coffread.c (coff_symfile_read): Update.
10196         * common/agent.c (agent_look_up_symbols): Update.
10197         * d-lang.c (d_main_name): Update.
10198         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10199         * dec-thread.c (enable_dec_thread): Update.
10200         * dwarf2loc.c (call_site_to_target_addr): Update.
10201         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10202         * eval.c (evaluate_subexp_standard): Update.
10203         * findvar.c (struct minsym_lookup_data) <result>: Change type
10204         to bound_minimal_symbol.
10205         <objfile>: Remove.
10206         (minsym_lookup_iterator_cb, default_read_var_value): Update.
10207         * frame.c (inside_main_func): Update.
10208         * frv-tdep.c (frv_frame_this_id): Update.
10209         * gcore.c (call_target_sbrk): Update.
10210         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10211         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10212         Update.
10213         * go-lang.c (go_main_name): Update.
10214         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10215         (hppa_hpux_find_import_stub_for_addr): Update.
10216         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10217         Update.  Change return type.
10218         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10219         type.
10220         * jit.c (jit_breakpoint_re_set_internal): Update.
10221         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10222         Update.
10223         * linux-nat.c (get_signo): Update.
10224         * linux-thread-db.c (inferior_has_bug): Update
10225         * m32c-tdep.c (m32c_return_value)
10226         (m32c_m16c_address_to_pointer): Update.
10227         * m32r-tdep.c (m32r_frame_this_id): Update.
10228         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10229         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10230         * minsyms.c (lookup_minimal_symbol_internal): Rename to
10231         lookup_minimal_symbol.  Change return type.
10232         (lookup_minimal_symbol): Remove.
10233         (lookup_bound_minimal_symbol): Update.
10234         (lookup_minimal_symbol_text): Change return type.
10235         (lookup_minimal_symbol_solib_trampoline): Change return type.
10236         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10237         (lookup_minimal_symbol_solib_trampoline): Change return type.
10238         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10239         * objc-lang.c (lookup_objc_class, lookup_child_selector)
10240         (value_nsstring, find_imps): Update.
10241         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10242         * p-lang.c (pascal_main_name): Update.
10243         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10244         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10245         * proc-service.c (ps_pglobal_lookup): Update.
10246         * ravenscar-thread.c (get_running_thread_msymbol): Change
10247         return type.
10248         (has_ravenscar_runtime, get_running_thread_id): Update.
10249         * remote.c (remote_check_symbols): Update.
10250         * sol-thread.c (ps_pglobal_lookup): Update.
10251         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10252         * solib-dsbt.c (lm_base): Update.
10253         * solib-frv.c (lm_base, frv_relocate_section_addresses):
10254         Update.
10255         * solib-irix.c (locate_base): Update.
10256         * solib-som.c (som_solib_create_inferior_hook)
10257         (som_solib_desire_dynamic_linker_symbols, link_map_start):
10258         Update.
10259         * solib-spu.c (spu_enable_break): Update.
10260         * solib-svr4.c (elf_locate_base, enable_break): Update.
10261         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10262         (flush_ea_cache): Update.
10263         * stabsread.c (define_symbol): Update.
10264         * symfile.c (simple_read_overlay_table): Update.
10265         * symtab.c (find_pc_sect_line): Update.
10266         * tracepoint.c (scope_info): Update.
10267         * tui-disasm.c (tui_get_begin_asm_address): Update.
10268         * value.c (value_static_field): Update.
10269
10270 2014-02-26  Tom Tromey  <tromey@redhat.com>
10271
10272         * minsyms.c (prim_record_minimal_symbol_full): Use
10273         SET_MSYMBOL_VALUE_ADDRESS.
10274         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10275         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10276         SET_MSYMBOL_VALUE_ADDRESS.
10277         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10278         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10279
10280 2014-02-26  Tom Tromey  <tromey@redhat.com>
10281
10282         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10283         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10284         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10285         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10286         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10287         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10288         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10289         * ada-lang.c (ada_main_name): Update.
10290         (ada_lookup_simple_minsym): Update.
10291         (ada_make_symbol_completion_list): Update.
10292         (ada_add_standard_exceptions): Update.
10293         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10294         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10295         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10296         * arm-tdep.c (skip_prologue_function): Update.
10297         (arm_skip_stack_protector, arm_skip_stub): Update.
10298         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10299         (arm_wince_skip_main_prologue): Update.
10300         * auxv.c (ld_so_xfer_auxv): Update.
10301         * avr-tdep.c (avr_scan_prologue): Update.
10302         * ax-gdb.c (gen_var_ref): Update.
10303         * block.c (call_site_for_pc): Update.
10304         * blockframe.c (get_pc_function_start): Update.
10305         (find_pc_partial_function_gnu_ifunc): Update.
10306         * breakpoint.c (create_overlay_event_breakpoint): Update.
10307         (create_longjmp_master_breakpoint): Update.
10308         (create_std_terminate_master_breakpoint): Update.
10309         (create_exception_master_breakpoint): Update.
10310         (resolve_sal_pc): Update.
10311         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10312         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10313         Update.
10314         * c-valprint.c (c_val_print): Update.
10315         * coff-pe-read.c (add_pe_forwarded_sym): Update.
10316         * coffread.c (coff_symfile_read): Update.
10317         * common/agent.c (agent_look_up_symbols): Update.
10318         * dbxread.c (find_stab_function_addr): Update.
10319         (end_psymtab): Update.
10320         * dwarf2loc.c (call_site_to_target_addr): Update.
10321         (func_verify_no_selftailcall): Update.
10322         (tailcall_dump): Update.
10323         (call_site_find_chain_1): Update.
10324         (dwarf_expr_reg_to_entry_parameter): Update.
10325         * elfread.c (elf_gnu_ifunc_record_cache): Update.
10326         (elf_gnu_ifunc_resolve_by_got): Update.
10327         * f-valprint.c (info_common_command): Update.
10328         * findvar.c (read_var_value): Update.
10329         * frame.c (get_prev_frame_1): Update.
10330         (inside_main_func): Update.
10331         * frv-tdep.c (frv_skip_main_prologue): Update.
10332         (frv_frame_this_id): Update.
10333         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10334         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10335         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10336         (gnuv3_skip_trampoline): Update.
10337         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10338         (hppa64_hpux_in_solib_call_trampoline): Update.
10339         (hppa_hpux_skip_trampoline_code): Update.
10340         (hppa64_hpux_search_dummy_call_sequence): Update.
10341         (hppa_hpux_find_import_stub_for_addr): Update.
10342         (hppa_hpux_find_dummy_bpaddr): Update.
10343         * hppa-tdep.c (hppa_symbol_address)
10344         (hppa_lookup_stub_minimal_symbol): Update.
10345         * i386-tdep.c (i386_skip_main_prologue): Update.
10346         (i386_pe_skip_trampoline_code): Update.
10347         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10348         * infcall.c (get_function_name): Update.
10349         * infcmd.c (until_next_command): Update.
10350         * jit.c (jit_breakpoint_re_set_internal): Update.
10351         (jit_inferior_init): Update.
10352         * linespec.c (minsym_found): Update.
10353         (add_minsym): Update.
10354         * linux-fork.c (info_checkpoints_command): Update.
10355         * linux-nat.c (get_signo): Update.
10356         * linux-thread-db.c (inferior_has_bug): Update.
10357         * m32c-tdep.c (m32c_return_value): Update.
10358         (m32c_m16c_address_to_pointer): Update.
10359         (m32c_m16c_pointer_to_address): Update.
10360         * m32r-tdep.c (m32r_frame_this_id): Update.
10361         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10362         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10363         * maint.c (maintenance_translate_address): Update.
10364         * minsyms.c (add_minsym_to_hash_table): Update.
10365         (add_minsym_to_demangled_hash_table): Update.
10366         (msymbol_objfile): Update.
10367         (lookup_minimal_symbol): Update.
10368         (iterate_over_minimal_symbols): Update.
10369         (lookup_minimal_symbol_text): Update.
10370         (lookup_minimal_symbol_by_pc_name): Update.
10371         (lookup_minimal_symbol_solib_trampoline): Update.
10372         (lookup_minimal_symbol_by_pc_section_1): Update.
10373         (lookup_minimal_symbol_and_objfile): Update.
10374         (prim_record_minimal_symbol_full): Update.
10375         (compare_minimal_symbols): Update.
10376         (compact_minimal_symbols): Update.
10377         (build_minimal_symbol_hash_tables): Update.
10378         (install_minimal_symbols): Update.
10379         (terminate_minimal_symbol_table): Update.
10380         (find_solib_trampoline_target): Update.
10381         (minimal_symbol_upper_bound): Update.
10382         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10383         * mips-tdep.c (mips_stub_frame_sniffer): Update.
10384         (mips_skip_pic_trampoline_code): Update.
10385         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10386         * objc-lang.c (selectors_info): Update.
10387         (classes_info): Update.
10388         (find_methods): Update.
10389         (find_imps): Update.
10390         (find_objc_msgsend): Update.
10391         * objfiles.c (objfile_relocate1): Update.
10392         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10393         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10394         * p-valprint.c (pascal_val_print): Update.
10395         * parse.c (write_exp_msymbol): Update.
10396         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10397         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10398         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10399         * printcmd.c (build_address_symbolic): Update.
10400         (sym_info): Update.
10401         (address_info): Update.
10402         * proc-service.c (ps_pglobal_lookup): Update.
10403         * psymtab.c (find_pc_sect_psymtab_closer): Update.
10404         (find_pc_sect_psymtab): Update.
10405         * python/py-framefilter.c (py_print_frame): Update.
10406         * ravenscar-thread.c (get_running_thread_id): Update.
10407         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10408         Update.
10409         * remote.c (remote_check_symbols): Update.
10410         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10411         (rs6000_skip_trampoline_code): Update.
10412         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10413         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10414         * solib-dsbt.c (lm_base): Update.
10415         * solib-frv.c (lm_base): Update.
10416         (main_got): Update.
10417         * solib-irix.c (locate_base): Update.
10418         * solib-som.c (som_solib_create_inferior_hook): Update.
10419         (som_solib_desire_dynamic_linker_symbols): Update.
10420         (link_map_start): Update.
10421         * solib-spu.c (spu_enable_break): Update.
10422         (ocl_enable_break): Update.
10423         * solib-svr4.c (elf_locate_base): Update.
10424         (enable_break): Update.
10425         * spu-tdep.c (spu_get_overlay_table): Update.
10426         (spu_catch_start): Update.
10427         (flush_ea_cache): Update.
10428         * stabsread.c (define_symbol): Update.
10429         (scan_file_globals): Update.
10430         * stack.c (find_frame_funname): Update.
10431         (frame_info): Update.
10432         * symfile.c (simple_read_overlay_table): Update.
10433         (simple_overlay_update): Update.
10434         * symmisc.c (dump_msymbols): Update.
10435         * symtab.c (fixup_section): Update.
10436         (find_pc_sect_line): Update.
10437         (skip_prologue_sal): Update.
10438         (search_symbols): Update.
10439         (print_msymbol_info): Update.
10440         (rbreak_command): Update.
10441         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10442         (completion_list_objc_symbol): Update.
10443         (default_make_symbol_completion_list_break_on): Update.
10444         * tracepoint.c (scope_info): Update.
10445         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10446         (tui_get_begin_asm_address): Update.
10447         * valops.c (find_function_in_inferior): Update.
10448         * value.c (value_static_field): Update.
10449         (value_fn_field): Update.
10450
10451 2014-02-26  Tom Tromey  <tromey@redhat.com>
10452
10453         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10454         bound minimal symbols.  Move code that knows about minsym
10455         table layout...
10456         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
10457         function.
10458         * minsyms.h (minimal_symbol_upper_bound): Declare.
10459         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10460         minimal_symbol_upper_bound.
10461
10462 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
10463
10464         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10465         Use the type's name if its basic type does not have a tag.
10466
10467 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
10468
10469         * dwarf2read.c (read_subrange_type): Add comment.
10470
10471 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
10472
10473         * dwarf2read.c (update_enumeration_type_from_children): New
10474         function, mostly extracted from process_structure_scope.
10475         (read_enumeration_type): Call update_enumeration_type_from_children.
10476         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10477         and flag_flag_enum fields.
10478
10479 2014-02-26  Pedro Alves  <palves@redhat.com>
10480
10481         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10482         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10483         to_xfer_partial method.
10484
10485 2014-02-26  Pedro Alves  <palves@redhat.com>
10486
10487         * target.c (complete_target_initialization): Don't install
10488         default_xfer_partial as to_xfer_partial hook.
10489         (nomemory): Delete.
10490         (update_current_target): Don't INHERIT nor de_fault
10491         deprecated_xfer_memory.  Delete de_fault macro.
10492         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10493         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10494         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10495         field.
10496
10497 2014-02-26  Pedro Alves  <palves@redhat.com>
10498
10499         * go32-nat.c (my_write_child): New function.
10500         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10501         (go32_xfer_partial): New function.
10502         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10503         Instead install a to_xfer_partial hook.
10504
10505 2014-02-26  Pedro Alves  <palves@redhat.com>
10506
10507         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10508         to_xfer_partial helper.  Rewrite.
10509         (procfs_xfer_partial): New function.
10510         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10511         Install a to_xfer_partial hook.
10512
10513 2014-02-26  Pedro Alves  <palves@redhat.com>
10514
10515         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10516         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10517         (m32r_xfer_partial): New function.
10518         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10519         Install a to_xfer_partial hook.
10520
10521 2014-02-26  Pedro Alves  <palves@redhat.com>
10522
10523         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10524         helper.
10525         (mips_xfer_partial): New function.
10526         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10527         hook.  Install a to_xfer_partial hook.
10528
10529 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
10530
10531         * gdbtypes.h (create_array_type_with_stride): Add declaration.
10532         * gdbtypes.c (create_array_type_with_stride): New function,
10533         renaming create_array_type, but with an added parameter
10534         called "bit_stride".
10535         (create_array_type): Re-implement using
10536         create_array_type_with_stride.
10537         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10538         and DW_AT_bit_stride attributes.
10539
10540 2014-02-26  Pedro Alves  <palves@redhat.com>
10541
10542         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10543         task-specific breakpoints.
10544
10545 2014-02-25  Pedro Alves  <palves@redhat.com>
10546
10547         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10548         handling of object == TARGET_OBJECT_UNWIND_TABLE.
10549
10550 2014-02-25  Stan Shebs  <stan@codesourcery.com>
10551
10552         * defs.h: Annotate comments for Doxygen.
10553
10554 2014-02-25  Tom Tromey  <tromey@redhat.com>
10555
10556         * target.h (target_ignore): Don't declare.
10557         * target.c (target_ignore): Remove.
10558
10559 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
10560
10561         PR gdb/16626
10562         * auto-load.c (auto_load_objfile_script_1): Change filename to
10563         debugfile.
10564
10565 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
10566
10567         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10568         documentation.  Adjust prototype to match the target_ops
10569         to_xfer_partial method.  Adjust implementation accordingly.
10570
10571 2014-02-25  Hui Zhu  <hui@codesourcery.com>
10572
10573         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10574         to_traceframe_info.
10575
10576 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
10577
10578         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10579         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10580         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10581         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10582         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10583         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10584         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10585         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10586         New constants.
10587         (rl78_register_type): Use a data pointer type for SP and
10588         new pseudo registers mentioned above.  Use a 16 bit integer
10589         type for all other register pairs.
10590         (rl78_register_name, rl78_g10_register_name): Update for
10591         new pseudo registers.
10592         (rl78_pseudo_register_read): Likewise.
10593         (rl78_pseudo_register_write): Likewise.
10594         (rl78_dwarf_reg_to_regnum): Return register numbers representing
10595         to the newly added pseudo registers.
10596
10597 2014-02-24  Doug Evans  <dje@google.com>
10598
10599         * value.c (record_latest_value): Fix comment.
10600         * printcmd.c (print_command_1): Remove code to handle -1 return from
10601         record_latest_value.
10602
10603 2014-02-24  Pedro Alves  <palves@redhat.com>
10604
10605         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10606         deprecated_xfer_memory hook.
10607         (procfs_xfer_partial): Call procfs_xfer_memory instead
10608         of the deprecated_xfer_memory target hook.
10609         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10610         helper.
10611
10612 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
10613
10614         * windows-nat.c (windows_xfer_shared_libraries): Return
10615         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10616         requested object is TARGET_OBJECT_LIBRARIES.
10617
10618 2014-02-24  Yao Qi  <yao@codesourcery.com>
10619
10620         * target.h (enum target_xfer_status)
10621         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10622         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10623         explicitly.  New.
10624         * corefile.c (memory_error_message): User updated.
10625         * exec.c (section_table_read_available_memory): Likewise.
10626         * record-btrace.c (record_btrace_xfer_partial): Likewise.
10627         * target.c (target_xfer_status_to_string): Likewise.
10628         (raw_memory_xfer_partial): Likewise.
10629         (memory_xfer_partial_1, target_xfer_partial): Likewise.
10630         * valops.c (read_value_memory): Likewise.
10631         * exec.h: Update comments.
10632
10633 2014-02-24  Yao Qi  <yao@codesourcery.com>
10634
10635         * target.c (target_xfer_status_to_string): Rename argument err
10636         to status.
10637         * target.h (target_xfer_status_to_string): Update declaration.
10638         Replace target_xfer_error_to_string with
10639         target_xfer_status_to_string in comment.
10640
10641 2014-02-24  Yao Qi  <yao@codesourcery.com>
10642
10643         * mips-linux-nat.c (super_close): Update its type.
10644         (mips_linux_close): Pass 'self' to super_close.
10645
10646 2014-02-24  Yao Qi  <yao@codesourcery.com>
10647
10648         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10649         * corefile.c (read_memory): Adjusted.
10650         * target.c (target_write_with_progress): Adjusted.
10651
10652 2014-02-23  Yao Qi  <yao@codesourcery.com>
10653
10654         Revert two patches:
10655
10656         2013-10-25  Yao Qi  <yao@codesourcery.com>
10657
10658         * remote.c (remote_traceframe_info): Return early if
10659         traceframe is not selected.
10660
10661         2013-07-19  Yao Qi  <yao@codesourcery.com>
10662
10663         * target.c (update_current_target): Change the default action
10664         of 'to_traceframe_info' from tcomplain to return_zero.
10665         * target.h (struct target_ops) <to_traceframe_info>: Add more
10666         comments.
10667
10668 2014-02-23  Yao Qi  <yao@codesourcery.com>
10669
10670         * valops.c (read_value_memory): Rewrite it.  Call
10671         target_xfer_partial in a loop.
10672         * exec.h (section_table_available_memory): Remove declaration.
10673         Move comments to ...
10674         * exec.c (section_table_available_memory): ... here.  Make it
10675         static.
10676
10677 2014-02-23  Yao Qi  <yao@codesourcery.com>
10678
10679         * exec.c (section_table_read_available_memory): New function.
10680         * exec.h (section_table_read_available_memory): Declare.
10681         * ctf.c (ctf_xfer_partial): Call
10682         section_table_read_available_memory.
10683         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10684
10685 2014-02-23  Yao Qi  <yao@codesourcery.com>
10686
10687         * ctf.c (ctf_xfer_partial): Move code to ...
10688         * exec.c (exec_read_partial_read_only): ... it.  New function.
10689         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10690         * tracefile.c: Include "exec.h".
10691         * exec.h (exec_read_partial_read_only): Declare.
10692
10693 2014-02-23  Yao Qi  <yao@codesourcery.com>
10694
10695         * tracefile-tfile.c (tfile_has_all_memory): Remove.
10696         (tfile_has_memory): Remove.
10697         (init_tfile_ops): Don't set fields to_has_all_memory and
10698         to_has_memory of tfile_ops.
10699         * tracefile.c (tracefile_has_all_memory): New function.
10700         (tracefile_has_memory): New function.
10701         (init_tracefile_ops): Initialize fields to_has_all_memory and
10702         to_has_memory of 'ops'.
10703
10704 2014-02-23  Yao Qi  <yao@codesourcery.com>
10705
10706         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10707         (ctf_thread_alive, ctf_get_trace_status): Remove.
10708         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
10709         init_tracefile_ops.
10710         * tracefile-tfile.c (tfile_get_trace_status): Remove.
10711         (tfile_has_stack, tfile_has_registers): Remove.
10712         (tfile_thread_alive): Remove.
10713         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
10714         init_tracefile_ops.
10715         * tracefile.c (tracefile_has_stack): New function.
10716         (tracefile_has_registers): New function.
10717         (tracefile_thread_alive): New function.
10718         (tracefile_get_trace_status): New function.
10719         (init_tracefile_ops): New function.
10720         * tracefile.h (init_tracefile_ops): Declare.
10721
10722 2014-02-23  Yao Qi  <yao@codesourcery.com>
10723
10724         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10725         (O_LARGEFILE): Likewise.
10726         (tfile_ops): Likewise.
10727         (TRACE_HEADER_SIZE): Likewise.
10728         (trace_fd, trace_frames_offset, cur_offset): Likewise.
10729         (cur_data_size): Likewise.
10730         (tfile_read, tfile_open, tfile_interp_line): Likewise.
10731         (tfile_close, tfile_files_info): Likewise.
10732         (tfile_get_trace_status): Likewise.
10733         (tfile_get_tracepoint_status): Likewise.
10734         (tfile_get_traceframe_address): Likewise.
10735         (tfile_trace_find, match_blocktype): Likewise.
10736         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10737         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10738         (tfile_get_trace_state_variable_value): Likewise.
10739         (tfile_has_all_memory, tfile_has_memory): Likewise.
10740         (tfile_has_stack, tfile_has_registers): Likewise.
10741         (tfile_thread_alive, build_traceframe_info): Likewise.
10742         (tfile_traceframe_info, init_tfile_ops): Likewise.
10743         (_initialize_tracepoint): Don't call init_tfile_ops
10744         and add_target_with_completer.
10745         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10746         exec.h, completer.h and filenames.h.
10747         (_initialize_tracefile_tfile): New function.
10748
10749 2014-02-23  Yao Qi  <yao@codesourcery.com>
10750
10751         * Makefile.in (REMOTE_OBS): Append tracefile.o and
10752         tracefile-tfile.o.
10753         (HFILES_NO_SRCDIR): Add tracefile.h.
10754         * ctf.c: Include "tracefile.h".
10755         * tracefile.h: New file.
10756         * tracefile.c: New file
10757         * tracefile-tfile.c: New file.
10758         * tracepoint.c: Include "tracefile.h".
10759         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10760         (stop_reason_names): Add const.
10761         (trace_file_writer_xfree): Move it to tracefile.c.
10762         (trace_save, trace_save_command, trace_save_tfile): Likewise.
10763         (trace_save_ctf): Likewise.
10764         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10765         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10766         (tfile_write_header, tfile_write_regblock_type): Likewise.
10767         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10768         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10769         (tfile_write_raw_data, tfile_end): Likewise.
10770         (tfile_trace_file_writer_new): Likewise.
10771         (free_uploaded_tp): Make it extern.
10772         (free_uploaded_tsv): Make it extern.
10773         (_initialize_tracepoint): Move code to register command 'tsave'
10774         to tracefile.c.
10775         * tracepoint.h (stop_reason_names): Declare.
10776         (struct trace_frame_write_ops): Move it to tracefile.h.
10777         (struct trace_file_write_ops): Likewise.
10778         (struct trace_file_writer): Likewise.
10779         (free_uploaded_tsvs, free_uploaded_tps): Declare.
10780
10781 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
10782
10783         PR gdb/16594
10784         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10785         process name.
10786         (get_cores_used_by_process): New parameter num_cores, use it.
10787         (linux_xfer_osdata_processes): Pass num_cores to it.
10788         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10789         process name.
10790
10791 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
10792
10793         * target.c (memory_xfer_partial): Fix length arg in call to
10794         breakpoint_xfer_memory.
10795
10796 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
10797
10798         PR tdep/16397
10799         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10800         number comes after the + or - signs.  Adjust length of register
10801         name to be extracted.
10802
10803 2014-02-20  Tom Tromey  <tromey@redhat.com>
10804
10805         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10806         (ada_varobj_ops): Mark "extern".
10807
10808 2014-02-20  Tom Tromey  <tromey@redhat.com>
10809
10810         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10811
10812 2014-02-20  Doug Evans  <xdje42@gmail.com>
10813
10814         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10815         All callers updated.
10816         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10817         All callers updated.
10818         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10819         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10820
10821 2014-02-20  lin zuojian  <manjian2006@gmail.com>
10822             Joel Brobecker  <brobecker@adacore.com>
10823             Doug Evans  <xdje42@gmail.com>
10824
10825         PR symtab/16581
10826         * dwarf2read.c (struct die_info): New member in_process.
10827         (reset_die_in_process): New function.
10828         (process_die): Set it at the start, reset when returning.
10829         (inherit_abstract_dies): Only call process_die if origin_child_die
10830         not already being processed.
10831
10832 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10833
10834         * windows-nat.c (handle_unload_dll): Add function documentation.
10835         (do_initial_windows_stuff): Add comment explaining why we wait
10836         until after inferior initialization has finished before
10837         processing all DLLs.
10838
10839 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10840
10841         * windows-nat.c (get_module_name): Delete.
10842         (windows_get_exec_module_filename): New function, mostly
10843         inspired from get_module_name.
10844         (windows_pid_to_exec_file): Replace call to get_module_name
10845         by call to windows_get_exec_module_filename.
10846
10847 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10848
10849         * windows-nat.c (handle_load_dll): Rewrite this function's
10850         introductory comment.  Remove code using get_module_name
10851         to get the DLL's name.
10852
10853 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10854
10855         * windows-nat.c (get_windows_debug_event): Ignore
10856         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10857         if windows_initialization_done == 0.
10858         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10859         Adjust implementation to always load all DLLs.
10860         (do_initial_windows_stuff): Replace call to
10861         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10862
10863 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10864
10865         * windows-nat.c (_initialize_windows_nat): Deprecate the
10866         "dll-symbols" command.  Turn the "add-shared-symbol-files"
10867         and "assf" aliases into commands, and deprecate them as well.
10868         * NEWS: Add entry explaining that "dll-symbols" and its two
10869         aliases are now deprecated.
10870
10871 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
10872
10873         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10874         new-line in debug string.  Remove trailing spaces.
10875
10876 2014-02-19  Stan Shebs  <stan@codesourcery.com>
10877
10878         * darwin-nat.c (darwin_xfer_partial): Fix return type.
10879
10880 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
10881
10882         * NEWS: Add entry for the new feature
10883         * python/py-value.c (valpy_binop): Call value_x_binop for struct
10884         and class values.
10885
10886 2014-02-19  Stan Shebs  <stan@codesourcery.com>
10887
10888         * MAINTAINERS: List Yao Qi as nios2 maintainer.
10889
10890 2014-02-19  Pedro Alves  <palves@redhat.com>
10891
10892         * common/ptid.h (struct ptid): Mention that process_stratum
10893         targets should prefer ptid.lwp.
10894
10895 2014-02-19  Pedro Alves  <palves@redhat.com>
10896
10897         * remote.c (remote_thread_alive, write_ptid, read_ptid)
10898         (read_ptid, remote_newthread_step, remote_threads_extra_info)
10899         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
10900         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
10901         store remote thread ids rather than ptid.tid.
10902         (_initialize_remote): Adjust.
10903
10904 2014-02-19  Tom Tromey  <tromey@redhat.com>
10905
10906         * target.c (target_get_unwinder): Rewrite.
10907         (target_get_tailcall_unwinder): Rewrite.
10908         * record-btrace.c (record_btrace_to_get_unwinder): New function.
10909         (record_btrace_to_get_tailcall_unwinder): New function.
10910         (init_record_btrace_ops): Update.
10911         * target.h (struct target_ops) <to_get_unwinder,
10912         to_get_tailcall_unwinder>: Now function pointers.  Use
10913         TARGET_DEFAULT_RETURN.
10914
10915 2014-02-19  Tom Tromey  <tromey@redhat.com>
10916
10917         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
10918         argument.
10919         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
10920
10921 2014-02-19  Tom Tromey  <tromey@redhat.com>
10922
10923         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
10924         directly.
10925         * target-delegates.c: Rebuild.
10926         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
10927         TARGET_DEFAULT_FUNC.
10928         * target.c (default_target_decr_pc_after_break): Rename from
10929         forward_target_decr_pc_after_break.  Simplify.
10930         (target_decr_pc_after_break): Rely on delegation.
10931
10932 2014-02-19  Tom Tromey  <tromey@redhat.com>
10933
10934         * target.c (update_current_target): Do not INHERIT to_doc or
10935         to_magic.  Do not de_fault to_open or to_close.
10936
10937 2014-02-19  Tom Tromey  <tromey@redhat.com>
10938
10939         * gcore.h (objfile_find_memory_regions): Declare.
10940         * gcore.c (objfile_find_memory_regions): No longer static.  Add
10941         "self" argument.
10942         (_initialize_gcore): Don't call exec_set_find_memory_regions.
10943         * exec.c: Include gcore.h.
10944         (exec_set_find_memory_regions): Remove.
10945         (exec_find_memory_regions): Remove.
10946         (exec_do_find_memory_regions): Remove.
10947         (init_exec_ops): Update.
10948         * defs.h (exec_set_find_memory_regions): Remove.
10949
10950 2014-02-19  Tom Tromey  <tromey@redhat.com>
10951
10952         * target-delegates.c: Rebuild.
10953         * target.h (struct target_ops) <to_extra_thread_info,
10954         to_thread_name, to_pid_to_exec_file, to_get_section_table,
10955         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
10956         not 0, in TARGET_DEFAULT_RETURN.
10957
10958 2014-02-19  Tom Tromey  <tromey@redhat.com>
10959
10960         * target.c (complete_target_initialization): Remove casts.  Use
10961         return_zero_has_execution.
10962         (return_zero): Add "ignore" argument.
10963         (return_zero_has_execution): New function.
10964         (init_dummy_target): Remove casts.  Use
10965         return_zero_has_execution.
10966
10967 2014-02-19  Tom Tromey  <tromey@redhat.com>
10968
10969         * target.c (update_current_target): Update comments.  Do not
10970         INHERIT to_stratum.
10971
10972 2014-02-19  Tom Tromey  <tromey@redhat.com>
10973
10974         * arm-linux-nat.c (arm_linux_read_description): Delegate when
10975         needed.
10976         * corelow.c (core_read_description): Delegate when needed.
10977         * remote.c (remote_read_description): Delegate when needed.
10978         * target-delegates.c: Rebuild.
10979         * target.c (target_read_description): Rewrite.
10980         * target.h (struct target_ops) <to_read_description>: Update
10981         comment.  Use TARGET_DEFAULT_RETURN.
10982
10983 2014-02-19  Tom Tromey  <tromey@redhat.com>
10984
10985         * target-delegates.c: Rebuild.
10986         * target.c (update_current_target): Don't inherit or default
10987         to_can_run.
10988         (find_default_run_target): Check against delegate_can_run.
10989         * target.h (struct target_ops) <to_can_run>: 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_disconnect): Unconditionally delegate.
10996         * target.h (struct target_ops) <to_disconnect>: Use
10997         TARGET_DEFAULT_NORETURN.
10998
10999 2014-02-19  Tom Tromey  <tromey@redhat.com>
11000
11001         * record.c (record_stop): Unconditionally delegate.
11002         * target-delegates.c: Rebuild.
11003         * target.c (target_stop_recording): Unconditionally delegate.
11004         * target.h (struct target_ops) <to_stop_recording>: Use
11005         TARGET_DEFAULT_IGNORE.
11006
11007 2014-02-19  Tom Tromey  <tromey@redhat.com>
11008
11009         * target-delegates.c: Rebuild.
11010         * target.c (target_enable_btrace): Unconditionally delegate.
11011         * target.h (struct target_ops) <to_enable_btrace>: Use
11012         TARGET_DEFAULT_NORETURN.
11013
11014 2014-02-19  Tom Tromey  <tromey@redhat.com>
11015
11016         * target-delegates.c: Rebuild.
11017         * target.c (target_read_btrace): Unconditionally delegate.
11018         * target.h (struct target_ops) <to_read_btrace>: 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_teardown_btrace): Unconditionally delegate.
11025         * target.h (struct target_ops) <to_teardown_btrace>: 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_disable_btrace): Unconditionally delegate.
11032         * target.h (struct target_ops) <to_disable_btrace>: Use
11033         TARGET_DEFAULT_NORETURN.
11034
11035 2014-02-19  Tom Tromey  <tromey@redhat.com>
11036
11037         * target-delegates.c: Rebuild.
11038         * target.c (default_search_memory): New function.
11039         (simple_search_memory): Update comment.
11040         (target_search_memory): Unconditionally delegate.
11041         * target.h (struct target_ops) <to_search_memory>: Use
11042         TARGET_DEFAULT_FUNC.
11043
11044 2014-02-19  Tom Tromey  <tromey@redhat.com>
11045
11046         * auxv.c (default_auxv_parse): No longer static.
11047         (target_auxv_parse): Unconditionally delegate.
11048         * auxv.h (default_auxv_parse): Declare.
11049         * target-delegates.c: Rebuild.
11050         * target.c: Include auxv.h.
11051         * target.h (struct target_ops) <to_auxv_parse>: Use
11052         TARGET_DEFAULT_FUNC.
11053
11054 2014-02-19  Tom Tromey  <tromey@redhat.com>
11055
11056         * target-delegates.c: Rebuild.
11057         * target.c (target_memory_map): Unconditionally delegate.
11058         * target.h (struct target_ops) <to_memory_map>: Use
11059         TARGET_DEFAULT_RETURN.
11060
11061 2014-02-19  Tom Tromey  <tromey@redhat.com>
11062
11063         * target-delegates.c: Rebuild.
11064         * target.c (target_thread_alive): Unconditionally delegate.
11065         * target.h (struct target_ops) <to_thread_alive>: Use
11066         TARGET_DEFAULT_RETURN.
11067
11068 2014-02-19  Tom Tromey  <tromey@redhat.com>
11069
11070         * target-delegates.c: Rebuild.
11071         * target.c (target_save_record): Unconditionally delegate.
11072         * target.h (struct target_ops) <to_save_record>: Use
11073         TARGET_DEFAULT_NORETURN.
11074
11075 2014-02-19  Tom Tromey  <tromey@redhat.com>
11076
11077         * target-delegates.c: Rebuild.
11078         * target.c (target_delete_record): Unconditionally delegate.
11079         * target.h (struct target_ops) <to_delete_record>: Use
11080         TARGET_DEFAULT_NORETURN.
11081
11082 2014-02-19  Tom Tromey  <tromey@redhat.com>
11083
11084         * target-delegates.c: Rebuild.
11085         * target.c (target_record_is_replaying): Unconditionally
11086         delegate.
11087         * target.h (struct target_ops) <to_record_is_replaying>: Use
11088         TARGET_DEFAULT_RETURN.
11089
11090 2014-02-19  Tom Tromey  <tromey@redhat.com>
11091
11092         * target-delegates.c: Rebuild.
11093         * target.c (target_goto_record_begin): Unconditionally delegate.
11094         * target.h (struct target_ops) <to_goto_record_begin>: Use
11095         TARGET_DEFAULT_NORETURN.
11096
11097 2014-02-19  Tom Tromey  <tromey@redhat.com>
11098
11099         * target-delegates.c: Rebuild.
11100         * target.c (target_goto_record_end): Unconditionally delegate.
11101         * target.h (struct target_ops) <to_goto_record_end>: Use
11102         TARGET_DEFAULT_NORETURN.
11103
11104 2014-02-19  Tom Tromey  <tromey@redhat.com>
11105
11106         * target-delegates.c: Rebuild.
11107         * target.c (target_goto_record): Unconditionally delegate.
11108         * target.h (struct target_ops) <to_goto_record>: Use
11109         TARGET_DEFAULT_NORETURN.
11110
11111 2014-02-19  Tom Tromey  <tromey@redhat.com>
11112
11113         * target-delegates.c: Rebuild.
11114         * target.c (target_insn_history): Unconditionally delegate.
11115         * target.h (struct target_ops) <to_insn_history>: Use
11116         TARGET_DEFAULT_NORETURN.
11117
11118 2014-02-19  Tom Tromey  <tromey@redhat.com>
11119
11120         * target-delegates.c: Rebuild.
11121         * target.c (target_insn_history_from): Unconditionally delegate.
11122         * target.h (struct target_ops) <to_insn_history_from>: Use
11123         TARGET_DEFAULT_NORETURN.
11124
11125 2014-02-19  Tom Tromey  <tromey@redhat.com>
11126
11127         * target-delegates.c: Rebuild.
11128         * target.c (target_insn_history_range): Unconditionally delegate.
11129         * target.h (struct target_ops) <to_insn_history_range>: Use
11130         TARGET_DEFAULT_NORETURN.
11131
11132 2014-02-19  Tom Tromey  <tromey@redhat.com>
11133
11134         * target-delegates.c: Rebuild.
11135         * target.c (target_call_history): Unconditionally delegate.
11136         * target.h (struct target_ops) <to_call_history>: Use
11137         TARGET_DEFAULT_NORETURN.
11138
11139 2014-02-19  Tom Tromey  <tromey@redhat.com>
11140
11141         * target-delegates.c: Rebuild.
11142         * target.c (target_call_history_from): Unconditionally delegate.
11143         * target.h (struct target_ops) <to_call_history_from>: Use
11144         TARGET_DEFAULT_NORETURN.
11145
11146 2014-02-19  Tom Tromey  <tromey@redhat.com>
11147
11148         * target-delegates.c: Rebuild.
11149         * target.c (target_call_history_range): Unconditionally delegate.
11150         * target.h (struct target_ops) <to_call_history_range>: Use
11151         TARGET_DEFAULT_NORETURN.
11152
11153 2014-02-19  Tom Tromey  <tromey@redhat.com>
11154
11155         * target-delegates.c: Rebuild.
11156         * target.c (target_verify_memory): Unconditionally delegate.
11157         * target.h (struct target_ops) <to_verify_memory>: Use
11158         TARGET_DEFAULT_NORETURN.
11159
11160 2014-02-19  Tom Tromey  <tromey@redhat.com>
11161
11162         * target-delegates.c: Rebuild.
11163         * target.c (target_core_of_thread): Unconditionally delegate.
11164         * target.h (struct target_ops) <to_core_of_thread>: Use
11165         TARGET_DEFAULT_RETURN.
11166
11167 2014-02-19  Tom Tromey  <tromey@redhat.com>
11168
11169         * target-delegates.c: Rebuild.
11170         * target.c (target_flash_done): Unconditionally delegate.
11171         * target.h (struct target_ops) <to_flash_done>: Use
11172         TARGET_DEFAULT_NORETURN.
11173
11174 2014-02-19  Tom Tromey  <tromey@redhat.com>
11175
11176         * target-delegates.c: Rebuild.
11177         * target.c (target_flash_erase): Unconditionally delegate.
11178         * target.h (struct target_ops) <to_flash_erase>: Use
11179         TARGET_DEFAULT_NORETURN.
11180
11181 2014-02-19  Tom Tromey  <tromey@redhat.com>
11182
11183         * target-delegates.c: Rebuild.
11184         * target.c (target_get_section_table): Unconditionally delegate.
11185         * target.h (struct target_ops) <to_get_section_table>: Use
11186         TARGET_DEFAULT_RETURN.
11187
11188 2014-02-19  Tom Tromey  <tromey@redhat.com>
11189
11190         * target-delegates.c: Rebuild.
11191         * target.c (target_pid_to_str): Unconditionally delegate.
11192         (init_dummy_target): Don't initialize to_pid_to_str.
11193         (default_pid_to_str): Rename from dummy_pid_to_str.
11194         * target.h (struct target_ops) <to_pid_to_str>: Use
11195         TARGET_DEFAULT_FUNC.
11196
11197 2014-02-19  Tom Tromey  <tromey@redhat.com>
11198
11199         * target-delegates.c: Rebuild.
11200         * target.c (target_find_new_threads): Unconditionally delegate.
11201         * target.h (struct target_ops) <to_find_new_threads>: Use
11202         TARGET_DEFAULT_RETURN.
11203
11204 2014-02-19  Tom Tromey  <tromey@redhat.com>
11205
11206         * target-delegates.c: Rebuild.
11207         * target.c (target_program_signals): Unconditionally delegate.
11208         * target.h (struct target_ops) <to_program_signals>: Use
11209         TARGET_DEFAULT_IGNORE.
11210
11211 2014-02-19  Tom Tromey  <tromey@redhat.com>
11212
11213         * target-delegates.c: Rebuild.
11214         * target.c (target_pass_signals): Unconditionally delegate.
11215         * target.h (struct target_ops) <to_pass_signals>: Use
11216         TARGET_DEFAULT_IGNORE.
11217
11218 2014-02-19  Tom Tromey  <tromey@redhat.com>
11219
11220         * target-delegates.c: Rebuild.
11221         * target.c (default_mourn_inferior): New function.
11222         (target_mourn_inferior): Unconditionally delegate.
11223         * target.h (struct target_ops) <to_mourn_inferior>: Use
11224         TARGET_DEFAULT_FUNC.
11225
11226 2014-02-19  Tom Tromey  <tromey@redhat.com>
11227
11228         * target-delegates.c: Rebuild.
11229         * target.c (default_follow_fork): New function.
11230         (target_follow_fork): Unconditionally delegate.
11231         * target.h (struct target_ops) <to_follow_fork>: Use
11232         TARGET_DEFAULT_FUNC.
11233
11234 2014-02-19  Tom Tromey  <tromey@redhat.com>
11235
11236         * target-delegates.c: Rebuild.
11237         * target.c (target_kill): Unconditionally delegate.
11238         * target.h (struct target_ops) <to_kill>: Use
11239         TARGET_DEFAULT_NORETURN.
11240
11241 2014-02-19  Tom Tromey  <tromey@redhat.com>
11242
11243         * target-delegates.c: Rebuild.
11244         * target.c (target_masked_watch_num_registers): Unconditionally
11245         delegate.
11246         * target.h (struct target_ops) <to_masked_watch_num_registers>:
11247         Use TARGET_DEFAULT_RETURN.
11248
11249 2014-02-19  Tom Tromey  <tromey@redhat.com>
11250
11251         * target-delegates.c: Rebuild.
11252         * target.c (target_remove_mask_watchpoint): Unconditionally
11253         delegate.
11254         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11255         TARGET_DEFAULT_RETURN.
11256
11257 2014-02-19  Tom Tromey  <tromey@redhat.com>
11258
11259         * target-delegates.c: Rebuild.
11260         * target.c (target_insert_mask_watchpoint): Unconditionally
11261         delegate.
11262         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11263         TARGET_DEFAULT_RETURN.
11264
11265 2014-02-19  Tom Tromey  <tromey@redhat.com>
11266
11267         * target-delegates.c: Rebuild.
11268         * target.c (target_ranged_break_num_registers): Unconditionally
11269         delegate.
11270         * target.h (struct target_ops) <to_ranged_break_num_registers>:
11271         Use TARGET_DEFAULT_RETURN.
11272
11273 2014-02-19  Tom Tromey  <tromey@redhat.com>
11274
11275         * target-delegates.c: Rebuild.
11276         * target.c (target_fetch_registers): Unconditionally delegate.
11277         * target.h (struct target_ops) <to_fetch_registers>: Use
11278         TARGET_DEFAULT_NORETURN.
11279
11280 2014-02-19  Tom Tromey  <tromey@redhat.com>
11281
11282         * target-delegates.c: Rebuild.
11283         * target.c (update_current_target): Don't inherit or default
11284         to_stop.
11285         * target.h (struct target_ops) <to_stop>: Use
11286         TARGET_DEFAULT_IGNORE.
11287
11288 2014-02-19  Tom Tromey  <tromey@redhat.com>
11289
11290         * target-delegates.c: Rebuild.
11291         * target.c (update_current_target): Don't inherit or default
11292         to_can_run_breakpoint_commands.
11293         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11294         Use TARGET_DEFAULT_RETURN.
11295
11296 2014-02-19  Tom Tromey  <tromey@redhat.com>
11297
11298         * target-delegates.c: Rebuild.
11299         * target.c (update_current_target): Don't inherit or default
11300         to_supports_evaluation_of_breakpoint_conditions.
11301         * target.h (struct target_ops)
11302         <to_supports_evaluation_of_breakpoint_conditions>: Use
11303         TARGET_DEFAULT_RETURN.
11304
11305 2014-02-19  Tom Tromey  <tromey@redhat.com>
11306
11307         * target-delegates.c: Rebuild.
11308         * target.c (update_current_target): Don't inherit or default
11309         to_augmented_libraries_svr4_read.
11310         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11311         Use TARGET_DEFAULT_RETURN.
11312
11313 2014-02-19  Tom Tromey  <tromey@redhat.com>
11314
11315         * target-delegates.c: Rebuild.
11316         * target.c (update_current_target): Don't inherit or default
11317         to_can_use_agent.
11318         * target.h (struct target_ops) <to_can_use_agent>: Use
11319         TARGET_DEFAULT_RETURN.
11320
11321 2014-02-19  Tom Tromey  <tromey@redhat.com>
11322
11323         * target-delegates.c: Rebuild.
11324         * target.c (update_current_target): Don't inherit or default
11325         to_use_agent.
11326         * target.h (struct target_ops) <to_use_agent>: Use
11327         TARGET_DEFAULT_NORETURN.
11328
11329 2014-02-19  Tom Tromey  <tromey@redhat.com>
11330
11331         * target-delegates.c: Rebuild.
11332         * target.c (update_current_target): Don't inherit or default
11333         to_traceframe_info.
11334         (return_null): Remove.
11335         * target.h (struct target_ops) <to_traceframe_info>: Use
11336         TARGET_DEFAULT_RETURN.
11337
11338 2014-02-19  Tom Tromey  <tromey@redhat.com>
11339
11340         * target-delegates.c: Rebuild.
11341         * target.c (update_current_target): Don't inherit or default
11342         to_static_tracepoint_markers_by_strid.
11343         * target.h (struct target_ops)
11344         <to_static_tracepoint_markers_by_strid>: Use
11345         TARGET_DEFAULT_NORETURN.
11346
11347 2014-02-19  Tom Tromey  <tromey@redhat.com>
11348
11349         * target-delegates.c: Rebuild.
11350         * target.c (update_current_target): Don't inherit or default
11351         to_static_tracepoint_marker_at.
11352         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11353         Use TARGET_DEFAULT_RETURN.
11354
11355 2014-02-19  Tom Tromey  <tromey@redhat.com>
11356
11357         * target-delegates.c: Rebuild.
11358         * target.c (update_current_target): Don't inherit or default
11359         to_set_permissions.
11360         * target.h (struct target_ops) <to_set_permissions>: Use
11361         TARGET_DEFAULT_IGNORE.
11362
11363 2014-02-19  Tom Tromey  <tromey@redhat.com>
11364
11365         * target-delegates.c: Rebuild.
11366         * target.c (update_current_target): Don't inherit or default
11367         to_get_tib_address.
11368         * target.h (struct target_ops) <to_get_tib_address>: Use
11369         TARGET_DEFAULT_NORETURN.
11370
11371 2014-02-19  Tom Tromey  <tromey@redhat.com>
11372
11373         * target-delegates.c: Rebuild.
11374         * target.c (update_current_target): Don't inherit or default
11375         to_set_trace_notes.
11376         * target.h (struct target_ops) <to_set_trace_notes>: Use
11377         TARGET_DEFAULT_RETURN.
11378
11379 2014-02-19  Tom Tromey  <tromey@redhat.com>
11380
11381         * target-delegates.c: Rebuild.
11382         * target.c (update_current_target): Don't initialize
11383         to_set_trace_buffer_size.
11384         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11385         TARGET_DEFAULT_IGNORE.
11386
11387 2014-02-19  Tom Tromey  <tromey@redhat.com>
11388
11389         * target-delegates.c: Rebuild.
11390         * target.c (update_current_target): Don't inherit or default
11391         to_set_circular_trace_buffer.
11392         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11393         TARGET_DEFAULT_IGNORE.
11394
11395 2014-02-19  Tom Tromey  <tromey@redhat.com>
11396
11397         * target-delegates.c: Rebuild.
11398         * target.c (update_current_target): Don't inherit or default
11399         to_set_disconnected_tracing.
11400         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11401         TARGET_DEFAULT_IGNORE.
11402
11403 2014-02-19  Tom Tromey  <tromey@redhat.com>
11404
11405         * target-delegates.c: Rebuild.
11406         * target.c (update_current_target): Don't inherit or default
11407         to_get_min_fast_tracepoint_insn_len.
11408         (return_minus_one): Remove.
11409         * target.h (struct target_ops)
11410         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11411
11412 2014-02-19  Tom Tromey  <tromey@redhat.com>
11413
11414         * target-delegates.c: Rebuild.
11415         * target.c (update_current_target): Don't inherit or default
11416         to_get_raw_trace_data.
11417         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11418         TARGET_DEFAULT_NORETURN.
11419
11420 2014-02-19  Tom Tromey  <tromey@redhat.com>
11421
11422         * target-delegates.c: Rebuild.
11423         * target.c (update_current_target): Don't inherit or default
11424         to_upload_trace_state_variables.
11425         * target.h (struct target_ops) <to_upload_trace_state_variables>:
11426         Use TARGET_DEFAULT_RETURN.
11427
11428 2014-02-19  Tom Tromey  <tromey@redhat.com>
11429
11430         * target-delegates.c: Rebuild.
11431         * target.c (update_current_target): Don't inherit or default
11432         to_upload_tracepoints.
11433         * target.h (struct target_ops) <to_upload_tracepoints>: Use
11434         TARGET_DEFAULT_RETURN.
11435
11436 2014-02-19  Tom Tromey  <tromey@redhat.com>
11437
11438         * target-delegates.c: Rebuild.
11439         * target.c (update_current_target): Don't inherit or default
11440         to_save_trace_data.
11441         * target.h (struct target_ops) <to_save_trace_data>: Use
11442         TARGET_DEFAULT_NORETURN.
11443
11444 2014-02-19  Tom Tromey  <tromey@redhat.com>
11445
11446         * target-delegates.c: Rebuild.
11447         * target.c (update_current_target): Don't inherit or default
11448         to_get_trace_state_variable_value.
11449         * target.h (struct target_ops)
11450         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11451
11452 2014-02-19  Tom Tromey  <tromey@redhat.com>
11453
11454         * target-delegates.c: Rebuild.
11455         * target.c (update_current_target): Don't inherit or default
11456         to_trace_find.
11457         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11458
11459 2014-02-19  Tom Tromey  <tromey@redhat.com>
11460
11461         * target-delegates.c: Rebuild.
11462         * target.c (update_current_target): Don't inherit or default
11463         to_trace_stop.
11464         * target.h (struct target_ops) <to_trace_stop>: Use
11465         TARGET_DEFAULT_NORETURN.
11466
11467 2014-02-19  Tom Tromey  <tromey@redhat.com>
11468
11469         * target-delegates.c: Rebuild.
11470         * target.c (update_current_target): Don't inherit or default
11471         to_get_tracepoint_status.
11472         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11473         TARGET_DEFAULT_NORETURN.
11474
11475 2014-02-19  Tom Tromey  <tromey@redhat.com>
11476
11477         * target-delegates.c: Rebuild.
11478         * target.c (update_current_target): Don't inherit or default
11479         to_get_trace_status.
11480         * target.h (struct target_ops) <to_get_trace_status>: Use
11481         TARGET_DEFAULT_RETURN.
11482
11483 2014-02-19  Tom Tromey  <tromey@redhat.com>
11484
11485         * target-delegates.c: Rebuild.
11486         * target.c (update_current_target): Don't inherit or default
11487         to_trace_start.
11488         * target.h (struct target_ops) <to_trace_start>: Use
11489         TARGET_DEFAULT_NORETURN.
11490
11491 2014-02-19  Tom Tromey  <tromey@redhat.com>
11492
11493         * target-delegates.c: Rebuild.
11494         * target.c (update_current_target): Don't inherit or default
11495         to_trace_set_readonly_regions.
11496         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11497         Use TARGET_DEFAULT_NORETURN.
11498
11499 2014-02-19  Tom Tromey  <tromey@redhat.com>
11500
11501         * target-delegates.c: Rebuild.
11502         * target.c (update_current_target): Don't inherit or default
11503         to_disable_tracepoint.
11504         * target.h (struct target_ops) <to_disable_tracepoint>: Use
11505         TARGET_DEFAULT_NORETURN.
11506
11507 2014-02-19  Tom Tromey  <tromey@redhat.com>
11508
11509         * target-delegates.c: Rebuild.
11510         * target.c (update_current_target): Don't inherit or default
11511         to_enable_tracepoint.
11512         * target.h (struct target_ops) <to_enable_tracepoint>: Use
11513         TARGET_DEFAULT_NORETURN.
11514
11515 2014-02-19  Tom Tromey  <tromey@redhat.com>
11516
11517         * target-delegates.c: Rebuild.
11518         * target.c (update_current_target): Don't inherit or default
11519         to_download_trace_state_variable.
11520         * target.h (struct target_ops) <to_download_trace_state_variable>:
11521         Use TARGET_DEFAULT_NORETURN.
11522
11523 2014-02-19  Tom Tromey  <tromey@redhat.com>
11524
11525         * target-delegates.c: Rebuild.
11526         * target.c (update_current_target): Don't inherit or default
11527         to_can_download_tracepoint.
11528         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11529         TARGET_DEFAULT_RETURN.
11530
11531 2014-02-19  Tom Tromey  <tromey@redhat.com>
11532
11533         * target-delegates.c: Rebuild.
11534         * target.c (update_current_target): Don't inherit or default
11535         to_download_tracepoint.
11536         * target.h (struct target_ops) <to_download_tracepoint>: 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_trace_init.
11544         * target.h (struct target_ops) <to_trace_init>: Use
11545         TARGET_DEFAULT_RETURN.
11546
11547 2014-02-19  Tom Tromey  <tromey@redhat.com>
11548
11549         * target-delegates.c: Rebuild.
11550         * target.c (update_current_target): Don't inherit or default
11551         to_supports_string_tracing.
11552         * target.h (struct target_ops) <to_supports_string_tracing>: Use
11553         TARGET_DEFAULT_RETURN.
11554
11555 2014-02-19  Tom Tromey  <tromey@redhat.com>
11556
11557         * target-delegates.c: Rebuild.
11558         * target.c (update_current_target): Don't inherit or default
11559         to_supports_enable_disable_tracepoint.
11560         * target.h (struct target_ops)
11561         <to_supports_enable_disable_tracepoint>: Use
11562         TARGET_DEFAULT_RETURN.
11563
11564 2014-02-19  Tom Tromey  <tromey@redhat.com>
11565
11566         * target-delegates.c: Rebuild.
11567         * target.c (update_current_target): Don't inherit or default
11568         to_supports_multi_process.
11569         * target.h (struct target_ops) <to_supports_multi_process>: Use
11570         TARGET_DEFAULT_RETURN.
11571
11572 2014-02-19  Tom Tromey  <tromey@redhat.com>
11573
11574         * target-delegates.c: Rebuild.
11575         * target.c (update_current_target): Don't inherit or default
11576         to_get_ada_task_ptid.
11577         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11578         TARGET_DEFAULT_FUNC.
11579
11580 2014-02-19  Tom Tromey  <tromey@redhat.com>
11581
11582         * target-delegates.c: Rebuild.
11583         * target.c (update_current_target): Don't inherit or default
11584         to_thread_architecture.
11585         * target.h (struct target_ops) <to_thread_architecture>: Use
11586         TARGET_DEFAULT_FUNC.
11587
11588 2014-02-19  Tom Tromey  <tromey@redhat.com>
11589
11590         * target-delegates.c: Rebuild.
11591         * target.c (update_current_target): Don't inherit or default
11592         to_execution_direction.
11593         * target.h (struct target_ops) <to_execution_direction>: Use
11594         TARGET_DEFAULT_FUNC.
11595
11596 2014-02-19  Tom Tromey  <tromey@redhat.com>
11597
11598         * target-delegates.c: Rebuild.
11599         * target.c (update_current_target): Don't inherit or default
11600         to_can_execute_reverse.
11601         * target.h (struct target_ops) <to_can_execute_reverse>: Use
11602         TARGET_DEFAULT_RETURN.
11603         (target_can_execute_reverse): Unconditionally delegate.
11604
11605 2014-02-19  Tom Tromey  <tromey@redhat.com>
11606
11607         * target-delegates.c: Rebuild.
11608         * target.c (update_current_target): Don't inherit or default
11609         to_goto_bookmark.
11610         (dummy_goto_bookmark): Remove.
11611         (init_dummy_target): Don't inherit or default to_goto_bookmark.
11612         * target.h (struct target_ops) <to_goto_bookmark>: Use
11613         TARGET_DEFAULT_NORETURN.
11614
11615 2014-02-19  Tom Tromey  <tromey@redhat.com>
11616
11617         * target-delegates.c: Rebuild.
11618         * target.c (update_current_target): Don't inherit or default
11619         to_get_bookmark.
11620         (dummy_get_bookmark): Remove.
11621         (init_dummy_target): Don't inherit or default to_get_bookmark.
11622         * target.h (struct target_ops) <to_get_bookmark>: Use
11623         TARGET_DEFAULT_NORETURN
11624
11625 2014-02-19  Tom Tromey  <tromey@redhat.com>
11626
11627         * target-delegates.c: Rebuild.
11628         * target.c (update_current_target): Don't inherit or default
11629         to_make_corefile_notes.
11630         (init_dummy_target): Don't initialize to_make_corefile_notes.
11631         * target.h (struct target_ops) <to_make_corefile_notes>: Use
11632         TARGET_DEFAULT_FUNC.
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_find_memory_regions.
11639         (init_dummy_target): Don't initialize to_find_memory_regions.
11640         * target.h (struct target_ops) <to_find_memory_regions>: Use
11641         TARGET_DEFAULT_FUNC.
11642
11643 2014-02-19  Tom Tromey  <tromey@redhat.com>
11644
11645         * target-delegates.c: Rebuild.
11646         * target.c (update_current_target): Don't inherit or default
11647         to_log_command.
11648         * target.h (struct target_ops) <to_log_command>: Use
11649         TARGET_DEFAULT_IGNORE.
11650         (target_log_command): Unconditionally delegate.
11651
11652 2014-02-19  Tom Tromey  <tromey@redhat.com>
11653
11654         * target-delegates.c: Rebuild.
11655         * target.c (update_current_target): Don't inherit or default
11656         to_pid_to_exec_file.
11657         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11658         TARGET_DEFAULT_RETURN.
11659
11660 2014-02-19  Tom Tromey  <tromey@redhat.com>
11661
11662         * target-delegates.c: Rebuild.
11663         * target.c (update_current_target): Don't inherit or default
11664         to_thread_name.
11665         (target_thread_name): Unconditionally delegate.
11666         * target.h (struct target_ops) <to_thread_name>: Use
11667         TARGET_DEFAULT_RETURN.
11668
11669 2014-02-19  Tom Tromey  <tromey@redhat.com>
11670
11671         * target-delegates.c: Rebuild.
11672         * target.c (update_current_target): Don't inherit or default
11673         to_extra_thread_info.
11674         * target.h (struct target_ops) <to_extra_thread_info>: Use
11675         TARGET_DEFAULT_RETURN.
11676
11677 2014-02-19  Tom Tromey  <tromey@redhat.com>
11678
11679         * target-delegates.c: Rebuild.
11680         * target.c (update_current_target): Don't inherit or default
11681         to_has_exited.
11682         * target.h (struct target_ops) <to_has_exited>: Use
11683         TARGET_DEFAULT_RETURN..
11684
11685 2014-02-19  Tom Tromey  <tromey@redhat.com>
11686
11687         * target-delegates.c: Rebuild.
11688         * target.c (update_current_target): Don't inherit or default
11689         to_set_syscall_catchpoint.
11690         (return_one): Remove.
11691         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11692         TARGET_DEFAULT_RETURN.
11693
11694 2014-02-19  Tom Tromey  <tromey@redhat.com>
11695
11696         * target-delegates.c: Rebuild.
11697         * target.c (update_current_target): Don't inherit or default
11698         to_insert_exec_catchpoint.
11699         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11700         TARGET_DEFAULT_RETURN.
11701
11702 2014-01-08  Tom Tromey  <tromey@redhat.com>
11703
11704         * target-delegates.c: Rebuild.
11705         * target.c (update_current_target): Don't inherit or default
11706         to_insert_exec_catchpoint.
11707         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11708         TARGET_DEFAULT_RETURN.
11709
11710 2014-02-19  Tom Tromey  <tromey@redhat.com>
11711
11712         * target-delegates.c: Rebuild.
11713         * target.c (update_current_target): Don't inherit or default
11714         to_remove_vfork_catchpoint.
11715         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11716         TARGET_DEFAULT_RETURN.
11717
11718 2014-02-19  Tom Tromey  <tromey@redhat.com>
11719
11720         * target-delegates.c: Rebuild.
11721         * target.c (update_current_target): Don't inherit or default
11722         to_insert_vfork_catchpoint.
11723         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11724         TARGET_DEFAULT_RETURN.
11725
11726 2014-02-19  Tom Tromey  <tromey@redhat.com>
11727
11728         * target-delegates.c: Rebuild.
11729         * target.c (update_current_target): Don't inherit or default
11730         to_remove_fork_catchpoint.
11731         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11732         TARGET_DEFAULT_RETURN.
11733
11734 2014-02-19  Tom Tromey  <tromey@redhat.com>
11735
11736         * target-delegates.c: Rebuild.
11737         * target.c (update_current_target): Don't inherit or default
11738         to_insert_fork_catchpoint.
11739         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11740         TARGET_DEFAULT_RETURN.
11741
11742 2014-02-19  Tom Tromey  <tromey@redhat.com>
11743
11744         * target-delegates.c: Rebuild.
11745         * target.c (update_current_target): Don't inherit or default
11746         to_post_startup_inferior.
11747         * target.h (struct target_ops) <to_post_startup_inferior>: Use
11748         TARGET_DEFAULT_IGNORE.
11749
11750 2014-02-19  Tom Tromey  <tromey@redhat.com>
11751
11752         * target-delegates.c: Rebuild.
11753         * target.c (update_current_target): Don't inherit or default
11754         to_load.
11755         * target.h (struct target_ops) <to_load>: Use
11756         TARGET_DEFAULT_NORETURN.
11757
11758 2014-02-19  Tom Tromey  <tromey@redhat.com>
11759
11760         * target-delegates.c: Rebuild.
11761         * target.c (update_current_target): Don't inherit or default
11762         to_terminal_info.
11763         * target.h (struct target_ops) <to_terminal_info>: Use
11764         TARGET_DEFAULT_FUNC.
11765
11766 2014-02-19  Tom Tromey  <tromey@redhat.com>
11767
11768         * target-delegates.c: Rebuild.
11769         * target.c (update_current_target): Don't inherit or default
11770         to_terminal_save_ours.
11771         * target.h (struct target_ops) <to_terminal_save_ours>: Use
11772         TARGET_DEFAULT_IGNORE.
11773
11774 2014-02-19  Tom Tromey  <tromey@redhat.com>
11775
11776         * target-delegates.c: Rebuild.
11777         * target.c (update_current_target): Don't inherit or default
11778         to_terminal_ours.
11779         * target.h (struct target_ops) <to_terminal_ours>: Use
11780         TARGET_DEFAULT_IGNORE.
11781
11782 2014-02-19  Tom Tromey  <tromey@redhat.com>
11783
11784         * target-delegates.c: Rebuild.
11785         * target.c (update_current_target): Don't inherit or default
11786         to_terminal_ours_for_output.
11787         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11788         TARGET_DEFAULT_IGNORE.
11789
11790 2014-02-19  Tom Tromey  <tromey@redhat.com>
11791
11792         * target-delegates.c: Rebuild.
11793         * target.c (update_current_target): Don't inherit or default
11794         to_terminal_inferior.
11795         * target.h (struct target_ops) <to_terminal_inferior>: Use
11796         TARGET_DEFAULT_IGNORE.
11797
11798 2014-02-19  Tom Tromey  <tromey@redhat.com>
11799
11800         * target-delegates.c: Rebuild.
11801         * target.c (update_current_target): Don't inherit or default
11802         to_terminal_init.
11803         * target.h (struct target_ops) <to_terminal_init>: Use
11804         TARGET_DEFAULT_IGNORE.
11805
11806 2014-02-19  Tom Tromey  <tromey@redhat.com>
11807
11808         * target-delegates.c: Rebuild.
11809         * target.c (update_current_target): Don't inherit or default
11810         to_can_accel_watchpoint_condition.
11811         * target.h (struct target_ops)
11812         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11813
11814 2014-02-19  Tom Tromey  <tromey@redhat.com>
11815
11816         * target-delegates.c: Rebuild.
11817         * target.c (update_current_target): Don't inherit or default
11818         to_region_ok_for_hw_watchpoint.
11819         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11820         Use TARGET_DEFAULT_FUNC.
11821
11822 2014-02-19  Tom Tromey  <tromey@redhat.com>
11823
11824         * target-delegates.c: Rebuild.
11825         * target.c (update_current_target): Don't inherit or default
11826         to_watchpoint_addr_within_range.
11827         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11828         Use TARGET_DEFAULT_FUNC.
11829
11830 2014-02-19  Tom Tromey  <tromey@redhat.com>
11831
11832         * target-delegates.c: Rebuild.
11833         * target.c (update_current_target): Don't inherit or default
11834         to_remove_watchpoint.
11835         * target.h (struct target_ops) <to_remove_watchpoint>: Use
11836         TARGET_DEFAULT_NORETURN.
11837
11838 2014-02-19  Tom Tromey  <tromey@redhat.com>
11839
11840         * target-delegates.c: Rebuild.
11841         * target.c (update_current_target): Don't inherit or default
11842         to_insert_watchpoint.
11843         * target.h (struct target_ops) <to_insert_watchpoint>: Use
11844         TARGET_DEFAULT_RETURN.
11845
11846 2014-02-19  Tom Tromey  <tromey@redhat.com>
11847
11848         * target-delegates.c: Rebuild.
11849         * target.c (update_current_target): Don't inherit or default
11850         to_remove_hw_breakpoint.
11851         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11852         TARGET_DEFAULT_RETURN.
11853
11854 2014-02-19  Tom Tromey  <tromey@redhat.com>
11855
11856         * target-delegates.c: Rebuild.
11857         * target.c (update_current_target): Don't inherit or default
11858         to_insert_hw_breakpoint.
11859         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11860         TARGET_DEFAULT_RETURN.
11861
11862 2014-02-19  Tom Tromey  <tromey@redhat.com>
11863
11864         * target-delegates.c: Rebuild.
11865         * target.c (update_current_target): Don't inherit or default
11866         to_can_use_hw_breakpoint.
11867         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11868         TARGET_DEFAULT_RETURN.
11869
11870 2014-02-19  Tom Tromey  <tromey@redhat.com>
11871
11872         * target-delegates.c: Rebuild.
11873         * target.c (update_current_target): Don't inherit or default
11874         to_files_info.
11875         * target.h (struct target_ops) <to_files_info>: Use
11876         TARGET_DEFAULT_IGNORE.
11877
11878 2014-02-19  Tom Tromey  <tromey@redhat.com>
11879
11880         * target-delegates.c: Rebuild.
11881         * target.c (update_current_target): Don't inherit or default
11882         to_store.
11883         * target.h (struct target_ops) <to_store>: Use
11884         TARGET_DEFAULT_NORETURN.
11885
11886 2014-02-19  Tom Tromey  <tromey@redhat.com>
11887
11888         * target-delegates.c: Rebuild.
11889         * target.c (update_current_target): Don't inherit or default
11890         to_post_attach.
11891         * target.h (struct target_ops) <to_post_attach>: Use
11892         TARGET_DEFAULT_IGNORE.
11893
11894 2014-02-19  Tom Tromey  <tromey@redhat.com>
11895
11896         * target-delegates.c: Rebuild.
11897         * target.c (update_current_target): Don't inherit or default
11898         to_rcmd.
11899         (default_rcmd): New function.
11900         (do_monitor_command): Unconditionally delegate.
11901         * target.h (struct target_ops) <to_rmcd>: Use
11902         TARGET_DEFAULT_FUNC.
11903
11904 2014-02-19  Tom Tromey  <tromey@redhat.com>
11905
11906         * target-delegates.c: Rebuild.
11907         * target.c (init_dummy_target): Don't initialize to_attach.
11908         (target_attach): Unconditionally delegate.
11909         * target.h (struct target_ops) <to_attach>: Use
11910         TARGET_DEFAULT_FUNC.
11911
11912 2014-02-19  Tom Tromey  <tromey@redhat.com>
11913
11914         * target-delegates.c: Rebuild.
11915         * target.c (target_detach): Unconditionally delegate.
11916         (init_dummy_target): Don't initialize to_detach.
11917         * target.h (struct target_ops) <to_detach>: Use
11918         TARGET_DEFAULT_IGNORE.
11919
11920 2014-02-19  Tom Tromey  <tromey@redhat.com>
11921
11922         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11923         Add argument.
11924         (target_augmented_libraries_svr4_read): Add argument.
11925         * target.c (update_current_target): Update.
11926         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
11927         argument.
11928
11929 2014-02-19  Tom Tromey  <tromey@redhat.com>
11930
11931         * target.h (struct target_ops) <to_call_history_range>: Add
11932         argument.
11933         * target.c (target_call_history_range): Add argument.
11934         * record-btrace.c (record_btrace_call_history_range): Add 'self'
11935         argument.
11936         (record_btrace_call_history_from): Update.
11937
11938 2014-02-19  Tom Tromey  <tromey@redhat.com>
11939
11940         * target.h (struct target_ops) <to_call_history_from>: Add
11941         argument.
11942         * target.c (target_call_history_from): Add argument.
11943         * record-btrace.c (record_btrace_call_history_from): Add 'self'
11944         argument.
11945
11946 2014-02-19  Tom Tromey  <tromey@redhat.com>
11947
11948         * target.h (struct target_ops) <to_call_history>: Add argument.
11949         * target.c (target_call_history): Add argument.
11950         * record-btrace.c (record_btrace_call_history): Add 'self'
11951         argument.
11952
11953 2014-02-19  Tom Tromey  <tromey@redhat.com>
11954
11955         * target.h (struct target_ops) <to_insn_history_range>: Add
11956         argument.
11957         * target.c (target_insn_history_range): Add argument.
11958         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
11959         argument.
11960         (record_btrace_insn_history_from): Update.
11961
11962 2014-02-19  Tom Tromey  <tromey@redhat.com>
11963
11964         * target.h (struct target_ops) <to_insn_history_from>: Add
11965         argument.
11966         * target.c (target_insn_history_from): Add argument.
11967         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
11968         argument.
11969
11970 2014-02-19  Tom Tromey  <tromey@redhat.com>
11971
11972         * target.h (struct target_ops) <to_insn_history>: Add argument.
11973         * target.c (target_insn_history): Add argument.
11974         * record-btrace.c (record_btrace_insn_history): Add 'self'
11975         argument.
11976
11977 2014-02-19  Tom Tromey  <tromey@redhat.com>
11978
11979         * target.h (struct target_ops) <to_goto_record>: Add argument.
11980         * target.c (target_goto_record): Add argument.
11981         * record-full.c (record_full_goto): Add 'self' argument.
11982         * record-btrace.c (record_btrace_goto): Add 'self' argument.
11983
11984 2014-02-19  Tom Tromey  <tromey@redhat.com>
11985
11986         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
11987         * target.c (target_goto_record_end): Add argument.
11988         * record-full.c (record_full_goto_end): Add 'self' argument.
11989         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
11990
11991 2014-02-19  Tom Tromey  <tromey@redhat.com>
11992
11993         * target.h (struct target_ops) <to_goto_record_begin>: Add
11994         argument.
11995         * target.c (target_goto_record_begin): Add argument.
11996         * record-full.c (record_full_goto_begin): Add 'self' argument.
11997         * record-btrace.c (record_btrace_goto_begin): Add 'self'
11998         argument.
11999
12000 2014-02-19  Tom Tromey  <tromey@redhat.com>
12001
12002         * target.h (struct target_ops) <to_record_is_replaying>: Add
12003         argument.
12004         * target.c (target_record_is_replaying): Add argument.
12005         * record-full.c (record_full_is_replaying): Add 'self' argument.
12006         * record-btrace.c (record_btrace_is_replaying): Add 'self'
12007         argument.
12008         (record_btrace_xfer_partial, record_btrace_store_registers)
12009         (record_btrace_prepare_to_store, record_btrace_resume)
12010         (record_btrace_wait, record_btrace_decr_pc_after_break)
12011         (record_btrace_find_new_threads, record_btrace_thread_alive):
12012         Update.
12013
12014 2014-02-19  Tom Tromey  <tromey@redhat.com>
12015
12016         * target.h (struct target_ops) <to_delete_record>: Add argument.
12017         * target.c (target_delete_record): Add argument.
12018         * record-full.c (record_full_delete): Add 'self' argument.
12019
12020 2014-02-19  Tom Tromey  <tromey@redhat.com>
12021
12022         * target.h (struct target_ops) <to_save_record>: Add argument.
12023         * target.c (target_save_record): Add argument.
12024         * record-full.c (record_full_save): Add 'self' argument.
12025         (record_full_save): Add 'self' argument.
12026
12027 2014-02-19  Tom Tromey  <tromey@redhat.com>
12028
12029         * target.h (struct target_ops) <to_info_record>: Add argument.
12030         * target.c (target_info_record): Add argument.
12031         * record.c (info_record_command): Add argument.
12032         * record-full.c (record_full_info): Add 'self' argument.
12033         * record-btrace.c (record_btrace_info): Add 'self' argument.
12034
12035 2014-02-19  Tom Tromey  <tromey@redhat.com>
12036
12037         * target.h (struct target_ops) <to_stop_recording>: Add argument.
12038         * target.c (target_stop_recording): Add argument.
12039         * record.c (record_stop): Add argument.
12040         * record-btrace.c (record_btrace_stop_recording): Add 'self'
12041         argument.
12042
12043 2014-02-19  Tom Tromey  <tromey@redhat.com>
12044
12045         * target.h (struct target_ops) <to_read_btrace>: Add argument.
12046         * target.c (struct target_ops) <to_read_btrace>: Add argument.
12047         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12048         argument.
12049         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12050         (_initialize_amd64_linux_nat): Use it.
12051         * i386-linux-nat.c (i386_linux_read_btrace): New function.
12052         (_initialize_i386_linux_nat): Use it.
12053
12054 2014-02-19  Tom Tromey  <tromey@redhat.com>
12055
12056         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12057         * target.c (target_teardown_btrace): Add argument.
12058         * remote.c (remote_teardown_btrace): Add 'self' argument.
12059         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12060         argument.
12061         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12062         argument.
12063
12064 2014-02-19  Tom Tromey  <tromey@redhat.com>
12065
12066         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12067         * target.c (target_disable_btrace): Add argument.
12068         * remote.c (remote_disable_btrace): Add 'self' argument.
12069         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12070         argument.
12071         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12072         argument.
12073
12074 2014-02-19  Tom Tromey  <tromey@redhat.com>
12075
12076         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12077         * target.c (target_enable_btrace): Add argument.
12078         * remote.c (remote_enable_btrace): Add 'self' argument.
12079         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12080         argument.
12081         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12082         argument.
12083
12084 2014-02-19  Tom Tromey  <tromey@redhat.com>
12085
12086         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12087         (target_can_use_agent): Add argument.
12088         * target.c (update_current_target): Update.
12089         * remote.c (remote_can_use_agent): Add 'self' argument.
12090         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12091
12092 2014-02-19  Tom Tromey  <tromey@redhat.com>
12093
12094         * target.h (struct target_ops) <to_use_agent>: Add argument.
12095         (target_use_agent): Add argument.
12096         * target.c (update_current_target): Update.
12097         * remote.c (remote_use_agent): Add 'self' argument.
12098         * inf-child.c (inf_child_use_agent): Add 'self' argument.
12099
12100 2014-02-19  Tom Tromey  <tromey@redhat.com>
12101
12102         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12103         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12104         (target_traceframe_info): Add argument.
12105         * target.c (update_current_target): Update.
12106         * remote.c (remote_traceframe_info): Add 'self' argument.
12107         * ctf.c (ctf_traceframe_info): Add 'self' argument.
12108
12109 2014-02-19  Tom Tromey  <tromey@redhat.com>
12110
12111         * target.h (target_static_tracepoint_markers_by_strid): Add
12112         argument.
12113         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12114         'self' argument.
12115         * target.c (update_current_target): Update.
12116         * remote.c (struct target_ops)
12117         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12118         * linux-nat.c (struct target_ops)
12119         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12120
12121 2014-02-19  Tom Tromey  <tromey@redhat.com>
12122
12123         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12124         Add argument.
12125         (target_static_tracepoint_marker_at): Add argument.
12126         * target.c (update_current_target): Update.
12127         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12128         argument.
12129
12130 2014-02-19  Tom Tromey  <tromey@redhat.com>
12131
12132         * target.h (struct target_ops) <to_set_permissions>: Add argument.
12133         (target_set_permissions): Add argument.
12134         * target.c (update_current_target): Update.
12135         * remote.c (remote_set_permissions): Add 'self' argument.
12136         (remote_start_remote): Update.
12137
12138 2014-02-19  Tom Tromey  <tromey@redhat.com>
12139
12140         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12141         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12142         (target_get_tib_address): Add argument.
12143         * target.c (update_current_target): Update.
12144         * remote.c (remote_get_tib_address): Add 'self' argument.
12145
12146 2014-02-19  Tom Tromey  <tromey@redhat.com>
12147
12148         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12149         (target_set_trace_notes): Add argument.
12150         * target.c (update_current_target): Update.
12151         * remote.c (remote_set_trace_notes): Add 'self' argument.
12152
12153 2014-02-19  Tom Tromey  <tromey@redhat.com>
12154
12155         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12156         argument.
12157         (target_set_trace_buffer_size): Add argument.
12158         * target.c (update_current_target): Update.
12159         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12160
12161 2014-02-19  Tom Tromey  <tromey@redhat.com>
12162
12163         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12164         argument.
12165         (target_set_circular_trace_buffer): Add argument.
12166         * target.c (update_current_target): Update.
12167         * remote.c (remote_set_circular_trace_buffer): Add 'self'
12168         argument.
12169
12170 2014-02-19  Tom Tromey  <tromey@redhat.com>
12171
12172         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12173         argument.
12174         (target_set_disconnected_tracing): Add argument.
12175         * target.c (update_current_target): Update.
12176         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12177
12178 2014-02-19  Tom Tromey  <tromey@redhat.com>
12179
12180         * target.h (struct target_ops)
12181         <to_get_min_fast_tracepoint_insn_len>: Add argument.
12182         (target_get_min_fast_tracepoint_insn_len): Add argument.
12183         * target.c (update_current_target): Update.
12184         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12185         argument.
12186
12187 2014-02-19  Tom Tromey  <tromey@redhat.com>
12188
12189         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12190         argument.
12191         (target_get_raw_trace_data): Add argument.
12192         * target.c (update_current_target): Update.
12193         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12194
12195 2014-02-19  Tom Tromey  <tromey@redhat.com>
12196
12197         * target.h (struct target_ops) <to_upload_trace_state_variables>:
12198         Add argument.
12199         (target_upload_trace_state_variables): Add argument.
12200         * target.c (update_current_target): Update.
12201         * remote.c (remote_upload_trace_state_variables): Add 'self'
12202         argument.
12203         (remote_start_remote): Update.
12204
12205 2014-02-19  Tom Tromey  <tromey@redhat.com>
12206
12207         * target.h (struct target_ops) <to_upload_tracepoints>: Add
12208         argument.
12209         (target_upload_tracepoints): Add argument.
12210         * target.c (update_current_target): Update.
12211         * remote.c (remote_upload_tracepoints): Add 'self' argument.
12212         (remote_start_remote): Update.
12213
12214 2014-02-19  Tom Tromey  <tromey@redhat.com>
12215
12216         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12217         (target_save_trace_data): Add argument.
12218         * target.c (update_current_target): Update.
12219         * remote.c (remote_save_trace_data): Add 'self' argument.
12220
12221 2014-02-19  Tom Tromey  <tromey@redhat.com>
12222
12223         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12224         argument.
12225         * target.h (struct target_ops)
12226         <to_get_trace_state_variable_value>: Add argument.
12227         (target_get_trace_state_variable_value): Add argument.
12228         * target.c (update_current_target): Update.
12229         * remote.c (remote_get_trace_state_variable_value): Add 'self'
12230         argument.
12231         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12232
12233 2014-02-19  Tom Tromey  <tromey@redhat.com>
12234
12235         * tracepoint.c (tfile_trace_find): Add 'self' argument.
12236         * target.h (struct target_ops) <to_trace_find>: Add argument.
12237         (target_trace_find): Add argument.
12238         * target.c (update_current_target): Update.
12239         * remote.c (remote_trace_find): Add 'self' argument.
12240         * ctf.c (ctf_trace_find): Add 'self' argument.
12241
12242 2014-02-19  Tom Tromey  <tromey@redhat.com>
12243
12244         * target.h (struct target_ops) <to_trace_stop>: Add argument.
12245         (target_trace_stop): Add argument.
12246         * target.c (update_current_target): Update.
12247         * remote.c (remote_trace_stop): Add 'self' argument.
12248
12249 2014-02-19  Tom Tromey  <tromey@redhat.com>
12250
12251         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12252         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12253         argument.
12254         (target_get_tracepoint_status): Add argument.
12255         * target.c (update_current_target): Update.
12256         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12257
12258 2014-02-19  Tom Tromey  <tromey@redhat.com>
12259
12260         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12261         * target.h (struct target_ops) <to_get_trace_status>: Add
12262         argument.
12263         (target_get_trace_status): Add argument.
12264         * target.c (update_current_target): Update.
12265         * remote.c (remote_get_trace_status): Add 'self' argument.
12266         (remote_start_remote, remote_can_download_tracepoint): Update.
12267         * ctf.c (ctf_get_trace_status): Add 'self' argument.
12268
12269 2014-02-19  Tom Tromey  <tromey@redhat.com>
12270
12271         * target.h (struct target_ops) <to_trace_start>: Add argument.
12272         (target_trace_start): Add argument.
12273         * target.c (update_current_target): Update.
12274         * remote.c (remote_trace_start): Add 'self' argument.
12275
12276 2014-02-19  Tom Tromey  <tromey@redhat.com>
12277
12278         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12279         Add argument.
12280         (target_trace_set_readonly_regions): Add argument.
12281         * target.c (update_current_target): Update.
12282         * remote.c (remote_trace_set_readonly_regions): Add 'self'
12283         argument.
12284
12285 2014-02-19  Tom Tromey  <tromey@redhat.com>
12286
12287         * target.h (struct target_ops) <to_disable_tracepoint>: Add
12288         argument.
12289         (target_disable_tracepoint): Add argument.
12290         * target.c (update_current_target): Update.
12291         * remote.c (remote_disable_tracepoint): Add 'self' argument.
12292
12293 2014-02-19  Tom Tromey  <tromey@redhat.com>
12294
12295         * target.h (struct target_ops) <to_enable_tracepoint>: Add
12296         argument.
12297         (target_enable_tracepoint): Add argument.
12298         * target.c (update_current_target): Update.
12299         * remote.c (remote_enable_tracepoint): Add 'self' argument.
12300
12301 2014-02-19  Tom Tromey  <tromey@redhat.com>
12302
12303         * target.h (struct target_ops) <to_download_trace_state_variable>:
12304         Add argument.
12305         (target_download_trace_state_variable): Add argument.
12306         * target.c (update_current_target): Update.
12307         * remote.c (remote_download_trace_state_variable): Add 'self'
12308         argument.
12309
12310 2014-02-19  Tom Tromey  <tromey@redhat.com>
12311
12312         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12313         argument.
12314         (target_can_download_tracepoint): Add argument.
12315         * target.c (update_current_target): Update.
12316         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12317
12318 2014-02-19  Tom Tromey  <tromey@redhat.com>
12319
12320         * target.h (struct target_ops) <to_download_tracepoint>: Add
12321         argument.
12322         (target_download_tracepoint): Add argument.
12323         * target.c (update_current_target): Update.
12324         * remote.c (remote_download_tracepoint): Add 'self' argument.
12325
12326 2014-02-19  Tom Tromey  <tromey@redhat.com>
12327
12328         * target.h (struct target_ops) <to_trace_init>: Add argument.
12329         (target_trace_init): Add argument.
12330         * target.c (update_current_target): Update.
12331         * remote.c (remote_trace_init): Add 'self' argument.
12332
12333 2014-02-19  Tom Tromey  <tromey@redhat.com>
12334
12335         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12336         * target.c (target_fileio_readlink): Add argument.
12337         * remote.c (remote_hostio_readlink): Add 'self' argument.
12338         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12339
12340 2014-02-19  Tom Tromey  <tromey@redhat.com>
12341
12342         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12343         * target.c (target_fileio_unlink): Add argument.
12344         * remote.c (remote_hostio_unlink): Add 'self' argument.
12345         (remote_file_delete): Update.
12346         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12347
12348 2014-02-19  Tom Tromey  <tromey@redhat.com>
12349
12350         * target.h (struct target_ops) <to_fileio_close>: Add argument.
12351         * target.c (target_fileio_close): Add argument.
12352         * remote.c (remote_hostio_close): Add 'self' argument.
12353         (remote_hostio_close_cleanup): Update.
12354         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12355         Update.
12356         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12357
12358 2014-02-19  Tom Tromey  <tromey@redhat.com>
12359
12360         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12361         * target.c (target_fileio_pread): Add argument.
12362         * remote.c (remote_hostio_pread): Add 'self' argument.
12363         (remote_bfd_iovec_pread, remote_file_get): Update.
12364         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12365
12366 2014-02-19  Tom Tromey  <tromey@redhat.com>
12367
12368         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12369         * target.c (target_fileio_pwrite): Add argument.
12370         * remote.c (remote_hostio_pwrite): Add 'self' argument.
12371         (remote_file_put): Update.
12372         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12373
12374 2014-02-19  Tom Tromey  <tromey@redhat.com>
12375
12376         * target.h (struct target_ops) <to_fileio_open>: Add argument.
12377         * target.c (target_fileio_open): Add argument.
12378         * remote.c (remote_hostio_open): Add 'self' argument.
12379         (remote_bfd_iovec_open): Add 'self' argument.
12380         (remote_file_put): Add 'self' argument.
12381         (remote_file_get): Add 'self' argument.
12382         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12383
12384 2014-02-19  Tom Tromey  <tromey@redhat.com>
12385
12386         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12387         Add argument.
12388         (target_can_run_breakpoint_commands): Add argument.
12389         * target.c (update_current_target): Update.
12390         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12391         argument.
12392         (remote_insert_breakpoint): Add 'self' argument.
12393         (remote_insert_hw_breakpoint): Add 'self' argument.
12394         (remote_can_run_breakpoint_commands): Add 'self' argument.
12395
12396 2014-02-19  Tom Tromey  <tromey@redhat.com>
12397
12398         * target.h (struct target_ops)
12399         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12400         (target_supports_evaluation_of_breakpoint_conditions): Add
12401         argument.
12402         * target.c (update_current_target): Update.
12403         * remote.c (remote_supports_cond_breakpoints): Add 'self'
12404         argument.
12405         (remote_insert_breakpoint): Add 'self' argument.
12406         (remote_insert_hw_breakpoint): Add 'self' argument.
12407         (remote_supports_cond_breakpoints): Add 'self' argument.
12408
12409 2014-02-19  Tom Tromey  <tromey@redhat.com>
12410
12411         * target.h (struct target_ops) <to_supports_string_tracing>: Add
12412         argument.
12413         (target_supports_string_tracing): Add argument.
12414         * target.c (update_current_target): Update.
12415         * remote.c (remote_supports_string_tracing): Add 'self' argument.
12416
12417 2014-02-19  Tom Tromey  <tromey@redhat.com>
12418
12419         * target.h (struct target_ops)
12420         <to_supports_disable_randomization>: Add argument.
12421         * target.c (find_default_supports_disable_randomization): Add
12422         argument.
12423         (target_supports_disable_randomization): Add argument.
12424         (find_default_supports_disable_randomization): Add 'self'
12425         argument.
12426         * remote.c (extended_remote_supports_disable_randomization): Add
12427         'self' argument.
12428         (remote_supports_disable_randomization): Add 'self' argument.
12429         (extended_remote_create_inferior): Update.
12430         * linux-nat.c (linux_nat_supports_disable_randomization): Add
12431         'self' argument.
12432
12433 2014-02-19  Tom Tromey  <tromey@redhat.com>
12434
12435         * target.h (struct target_ops)
12436         <to_supports_enable_disable_tracepoint>: Add argument.
12437         (target_supports_enable_disable_tracepoint): Add argument.
12438         * target.c (update_current_target): Update.
12439         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12440         argument.
12441
12442 2014-02-19  Tom Tromey  <tromey@redhat.com>
12443
12444         * target.h (struct target_ops) <to_supports_multi_process>: Add
12445         argument.
12446         (target_supports_multi_process): Add argument.
12447         * target.c (update_current_target): Update.
12448         * remote.c (remote_supports_multi_process): Add 'self' argument.
12449         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12450         argument.
12451         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12452         argument.
12453
12454 2014-02-19  Tom Tromey  <tromey@redhat.com>
12455
12456         * target.h (struct target_ops) <to_execution_direction>: Add
12457         argument.
12458         (target_execution_direction): Add argument.
12459         * target.c (default_execution_direction): Add 'self' argument.
12460         * record-full.c (record_full_execution_direction): Add 'self'
12461         argument.
12462
12463 2014-02-19  Tom Tromey  <tromey@redhat.com>
12464
12465         * target.h (struct target_ops) <to_can_execute_reverse>: Add
12466         argument.
12467         (target_can_execute_reverse): Add argument.
12468         * remote.c (remote_can_execute_reverse): Add 'self' argument.
12469         * record-full.c (record_full_can_execute_reverse): Add 'self'
12470         argument.
12471         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12472         argument.
12473
12474 2014-02-19  Tom Tromey  <tromey@redhat.com>
12475
12476         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12477         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12478         argument.
12479         (target_get_ada_task_ptid): Add argument.
12480         * target.c (update_current_target): Update.
12481         (default_get_ada_task_ptid): Add 'self' argument.
12482         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12483         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12484         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12485         argument.
12486         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12487         argument.
12488         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12489         argument.
12490         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12491         argument.
12492         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12493         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12494         argument.
12495
12496 2014-02-19  Tom Tromey  <tromey@redhat.com>
12497
12498         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12499         (target_goto_bookmark): Add argument.
12500         * target.c (dummy_goto_bookmark): Add 'self' argument.
12501         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12502
12503 2014-02-19  Tom Tromey  <tromey@redhat.com>
12504
12505         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12506         (target_get_bookmark): Add argument.
12507         * target.c (dummy_get_bookmark): Add 'self' argument.
12508         * record-full.c (record_full_get_bookmark): Add 'self' argument.
12509
12510 2014-02-19  Tom Tromey  <tromey@redhat.com>
12511
12512         * target.h (struct target_ops) <to_make_corefile_notes>: Add
12513         argument.
12514         (target_make_corefile_notes): Add argument.
12515         * target.c (dummy_make_corefile_notes): Add 'self' argument.
12516         * procfs.c (procfs_make_note_section): Add 'self' argument.
12517         (procfs_make_note_section): Add 'self' argument.
12518         (procfs_make_note_section): Add 'self' argument.
12519         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12520         argument.
12521         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12522         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12523         * exec.c (exec_make_note_section): Add 'self' argument.
12524         (exec_make_note_section): Add 'self' argument.
12525
12526 2014-02-19  Tom Tromey  <tromey@redhat.com>
12527
12528         * target.h (struct target_ops) <to_find_memory_regions>: Add
12529         argument.
12530         (target_find_memory_regions): Add argument.
12531         * target.c (dummy_find_memory_regions): Add 'self' argument.
12532         * procfs.c (proc_find_memory_regions): Add 'self' argument.
12533         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12534         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12535         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12536         * exec. (exec_do_find_memory_regions): New global.
12537         (exec_set_find_memory_regions): Rewrite.
12538         (exec_find_memory_regions): New function.
12539         (init_exec_ops): Use exec_find_memory_regions.
12540
12541 2014-02-19  Tom Tromey  <tromey@redhat.com>
12542
12543         * target.h (struct target_ops) <to_supports_non_stop>: Add
12544         argument.
12545         * target.c (find_default_supports_non_stop): Add argument.
12546         (target_supports_non_stop): Add argument.
12547         (find_default_supports_non_stop): Add 'self' argument.
12548         * remote.c (remote_supports_non_stop): Add 'self' argument.
12549         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12550
12551 2014-02-19  Tom Tromey  <tromey@redhat.com>
12552
12553         * target.h (struct target_ops) <to_log_command>: Add argument.
12554         (target_log_command): Add argument.
12555         * serial.h (serial_log_command): Add 'self' argument.
12556         * serial.c (serial_log_command): Add 'self' argument.
12557
12558 2014-02-19  Tom Tromey  <tromey@redhat.com>
12559
12560         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12561         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12562         argument.
12563         (target_pid_to_exec_file): Add argument.
12564         * target.c (debug_to_pid_to_exec_file): Add argument.
12565         (update_current_target): Update.
12566         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12567         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12568         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12569         (linux_handle_extended_wait): Update.
12570         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12571         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12572         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12573         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12574
12575 2014-02-19  Tom Tromey  <tromey@redhat.com>
12576
12577         * target.h (struct target_ops) <to_rcmd>: Add argument.
12578         (target_rcmd): Add argument.
12579         * target.c (debug_to_rcmd): Add argument.
12580         (update_current_target, do_monitor_command): Update.
12581         * remote.c (remote_rcmd): Add 'self' argument.
12582         * monitor.c (monitor_rcmd): Add 'self' argument.
12583
12584 2014-02-19  Tom Tromey  <tromey@redhat.com>
12585
12586         * windows-nat.c (windows_stop): Add 'self' argument.
12587         * target.h (struct target_ops) <to_stop>: Add argument.
12588         * target.c (target_stop): Add argument.
12589         (debug_to_stop): Add argument.
12590         (update_current_target): Update.
12591         * remote.c (remote_stop): Add 'self' argument.
12592         * remote-sim.c (gdbsim_stop): Add 'self' argument.
12593         (gdbsim_cntrl_c): Update.
12594         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12595         * procfs.c (procfs_stop): Add 'self' argument.
12596         * nto-procfs.c (procfs_stop): Add 'self' argument.
12597         * monitor.c (monitor_stop): Add 'self' argument.
12598         (monitor_open): Update.
12599         * linux-nat.c (linux_nat_stop): Add argument.
12600         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12601         * gnu-nat.c (gnu_stop): Add 'self' argument.
12602         * darwin-nat.c (darwin_stop): Add 'self' argument.
12603
12604 2014-02-19  Tom Tromey  <tromey@redhat.com>
12605
12606         * target.h (struct target_ops) <to_thread_name>: Add argument.
12607         * target.c (target_thread_name): Add argument.
12608         (update_current_target): Update.
12609         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12610
12611 2014-02-19  Tom Tromey  <tromey@redhat.com>
12612
12613         * target.h (struct target_ops) <to_extra_thread_info>: Add
12614         argument.
12615         (target_extra_thread_info): Add argument.
12616         * target.c (update_current_target): Update.
12617         * remote.c (remote_threads_extra_info): Add 'self' argument.
12618         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12619         argument.
12620         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12621         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12622         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12623         argument.
12624         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12625         argument.
12626         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12627         argument.
12628         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12629         argument.
12630
12631 2014-02-19  Tom Tromey  <tromey@redhat.com>
12632
12633         * target.h (struct target_ops) <to_program_signals>: Add argument.
12634         * target.c (target_program_signals): Add argument.
12635         * remote.c (remote_program_signals): Add 'self' argument.
12636
12637 2014-02-19  Tom Tromey  <tromey@redhat.com>
12638
12639         * target.h (struct target_ops) <to_pass_signals>: Add argument.
12640         * target.c (target_pass_signals): Add argument.
12641         * remote.c (remote_pass_signals): Add 'self' argument.
12642         (remote_start_remote): Update.
12643         * procfs.c (procfs_pass_signals): Add 'self' argument.
12644         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12645         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12646         (linux_nat_create_inferior, linux_nat_attach): Update.
12647
12648 2014-02-19  Tom Tromey  <tromey@redhat.com>
12649
12650         * windows-nat.c (windows_can_run): Add 'self' argument.
12651         * target.h (struct target_ops) <to_can_run>: Add argument.
12652         (target_can_run): Add argument.
12653         * target.c (debug_to_can_run): Add argument.
12654         (update_current_target): Update.
12655         * nto-procfs.c (procfs_can_run): Add 'self' argument.
12656         * inf-child.c (inf_child_can_run): Add 'self' argument.
12657         * go32-nat.c (go32_can_run): Add 'self' argument.
12658
12659 2014-02-19  Tom Tromey  <tromey@redhat.com>
12660
12661         * target.h (struct target_ops) <to_has_exited>: Add argument.
12662         (target_has_exited): Add argument.
12663         * target.c (debug_to_has_exited): Add argument.
12664         (update_current_target): Update.
12665
12666 2014-02-19  Tom Tromey  <tromey@redhat.com>
12667
12668         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12669         argument.
12670         (target_set_syscall_catchpoint): Add argument.
12671         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12672         argument.
12673         * target.c (update_current_target): Update.
12674
12675 2014-02-19  Tom Tromey  <tromey@redhat.com>
12676
12677         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12678         argument.
12679         (target_remove_exec_catchpoint): Add argument.
12680         * target.c (debug_to_remove_exec_catchpoint): Add argument.
12681         (update_current_target): Update.
12682         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12683         argument.
12684
12685 2014-02-19  Tom Tromey  <tromey@redhat.com>
12686
12687         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12688         argument.
12689         (target_insert_exec_catchpoint): Add argument.
12690         * target.c (debug_to_insert_exec_catchpoint): Add argument.
12691         (update_current_target): Update.
12692         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12693         argument.
12694
12695 2014-02-19  Tom Tromey  <tromey@redhat.com>
12696
12697         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12698         argument.
12699         (target_remove_vfork_catchpoint): Add argument.
12700         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12701         (update_current_target): Update.
12702         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12703         argument.
12704
12705 2014-02-19  Tom Tromey  <tromey@redhat.com>
12706
12707         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12708         argument.
12709         (target_insert_vfork_catchpoint): Add argument.
12710         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12711         (update_current_target): Update.
12712         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12713         argument.
12714
12715 2014-02-19  Tom Tromey  <tromey@redhat.com>
12716
12717         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12718         argument.
12719         (target_remove_fork_catchpoint): Add argument.
12720         * target.c (debug_to_remove_fork_catchpoint): Add argument.
12721         (update_current_target): Update.
12722         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12723         argument.
12724
12725 2014-02-19  Tom Tromey  <tromey@redhat.com>
12726
12727         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12728         argument.
12729         (target_insert_fork_catchpoint): Add argument.
12730         * target.c (debug_to_insert_fork_catchpoint): Add argument.
12731         (update_current_target): Update.
12732         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12733         argument.
12734
12735 2014-02-19  Tom Tromey  <tromey@redhat.com>
12736
12737         * target.h (struct target_ops) <to_post_startup_inferior>: Add
12738         argument.
12739         (target_post_startup_inferior): Add argument.
12740         * target.c (debug_to_post_startup_inferior): Add argument.
12741         (update_current_target): Update.
12742         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12743         argument.
12744         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12745         argument.
12746         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12747         argument.
12748         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12749         argument.
12750         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12751         'self' argument.
12752         (super_post_startup_inferior): Likewise.
12753         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12754         'self' argument.
12755         (super_post_startup_inferior): Likewise.
12756         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12757         Add 'self' argument.
12758         (super_post_startup_inferior): Likewise.
12759
12760 2014-02-19  Tom Tromey  <tromey@redhat.com>
12761
12762         * target.h (struct target_ops) <to_load>: Add argument.
12763         * target.c (target_load): Add argument.
12764         (debug_to_load): Add argument.
12765         (update_current_target): Update.
12766         * remote.c (remote_load): Add 'self' argument.
12767         * remote-sim.c (gdbsim_load): Add 'self' argument.
12768         * remote-mips.c (mips_load): Add 'self' argument.
12769         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12770         * monitor.c (monitor_load): Add 'self' argument.
12771         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12772
12773 2014-02-19  Tom Tromey  <tromey@redhat.com>
12774
12775         * target.h (struct target_ops) <to_terminal_info>: Add argument.
12776         (target_terminal_info): Add argument.
12777         * target.c (debug_to_terminal_info): Add argument.
12778         (default_terminal_info): Likewise.
12779         * inflow.c (child_terminal_info): Add 'self' argument.
12780         * inferior.h (child_terminal_info): Add 'self' argument.
12781         * go32-nat.c (go32_terminal_info): Add 'self' argument.
12782
12783 2014-02-19  Tom Tromey  <tromey@redhat.com>
12784
12785         * target.h (struct target_ops) <to_terminal_save_ours>: Add
12786         argument.
12787         (target_terminal_save_ours): Add argument.
12788         * target.c (debug_to_terminal_save_ours): Add argument.
12789         (update_current_target): Update.
12790         * inflow.c (terminal_save_ours): Add 'self' argument.
12791         * inferior.h (terminal_save_ours): Add 'self' argument.
12792
12793 2014-02-19  Tom Tromey  <tromey@redhat.com>
12794
12795         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12796         (target_terminal_ours): Add argument.
12797         * target.c (debug_to_terminal_ours): Add argument.
12798         (update_current_target): Update.
12799         * remote.c (remote_terminal_ours): Add 'self' argument.
12800         (remote_close): Update.
12801         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12802         * inflow.c (terminal_ours): Add 'self' argument.
12803         * inferior.h (terminal_ours): Add 'self' argument.
12804         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12805
12806 2014-02-19  Pedro Alves  <palves@redhat.com>
12807             Tom Tromey  <tromey@redhat.com>
12808
12809         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12810         argument.
12811         (target_terminal_ours_for_output): Add argument.
12812         * target.c (debug_to_terminal_ours_for_output): Add argument.
12813         (update_current_target): Update.
12814         * inflow.c (terminal_ours_for_output): Add 'self' argument.
12815         * inferior.h (terminal_ours_for_output): Add 'self' argument.
12816         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12817
12818 2014-02-19  Tom Tromey  <tromey@redhat.com>
12819
12820         * target.h (struct target_ops) <to_terminal_inferior>: Add
12821         argument.
12822         * target.c (target_terminal_inferior): Add argument.
12823         (update_current_target): Update.
12824         * remote.c (remote_terminal_inferior): Add 'self' argument.
12825         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12826         * inflow.c (terminal_inferior): Add 'self' argument.
12827         * inferior.h (terminal_inferior): Add 'self' argument.
12828         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12829         (go32_terminal_inferior): Add 'self' argument.
12830
12831 2014-02-19  Tom Tromey  <tromey@redhat.com>
12832
12833         * target.h (struct target_ops) <to_terminal_init>: Add argument.
12834         (target_terminal_init): Add argument.
12835         * target.c (debug_to_terminal_init): Add argument.
12836         (update_current_target): Update.
12837         * inflow.c (terminal_init_inferior): Add 'self' argument.
12838         * inferior.h (terminal_init_inferior): Add 'self' argument.
12839         * go32-nat.c (go32_terminal_init): Add 'self' argument.
12840         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12841
12842 2014-02-19  Tom Tromey  <tromey@redhat.com>
12843
12844         * target.h (struct target_ops)
12845         <to_can_accel_watchpoint_condition>: Add argument.
12846         (target_can_accel_watchpoint_condition): Add argument.
12847         * target.c (debug_to_can_accel_watchpoint_condition): Add
12848         argument.
12849         (update_current_target): Update.
12850         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12851         'self' argument.
12852
12853 2014-02-19  Tom Tromey  <tromey@redhat.com>
12854
12855         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12856         Add argument.
12857         (target_region_ok_for_hw_watchpoint): Add argument.
12858         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12859         (default_region_ok_for_hw_watchpoint): Add argument.
12860         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12861         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12862         argument.
12863         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12864         argument.
12865         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12866         argument.
12867         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12868         'self' argument.
12869         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12870         'self' argument.
12871         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12872         'self' argument.
12873         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12874         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
12875         'self' argument.
12876         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
12877         Add 'self' argument.
12878
12879 2014-02-19  Tom Tromey  <tromey@redhat.com>
12880
12881         * target.h (struct target_ops) <to_insert_watchpoint>: Add
12882         argument.
12883         (target_insert_watchpoint): Add argument.
12884         * target.c (debug_to_insert_watchpoint): Add argument.
12885         (update_current_target): Update.
12886         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
12887         * remote.c (remote_insert_watchpoint): Add 'self' argument.
12888         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
12889         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
12890         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
12891         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
12892         argument.
12893         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
12894         (procfs_insert_hw_watchpoint): Add 'self' argument.
12895         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
12896         argument.
12897         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
12898         argument.
12899         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
12900         argument.
12901         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
12902         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
12903         argument.
12904         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
12905         'self' argument.
12906
12907 2014-02-19  Tom Tromey  <tromey@redhat.com>
12908
12909         * target.h (struct target_ops) <to_remove_watchpoint>: Add
12910         argument.
12911         (target_remove_watchpoint): Add argument.
12912         * target.c (debug_to_remove_watchpoint): Add argument.
12913         (update_current_target): Update.
12914         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
12915         * remote.c (remote_remove_watchpoint): Add 'self' argument.
12916         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
12917         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
12918         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
12919         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
12920         argument.
12921         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
12922         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
12923         argument.
12924         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
12925         argument.
12926         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
12927         argument.
12928         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
12929         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
12930         argument.
12931         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
12932         'self' argument.
12933
12934 2014-02-19  Tom Tromey  <tromey@redhat.com>
12935
12936         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
12937         argument.
12938         (target_remove_hw_breakpoint): Add argument.
12939         * target.c (debug_to_remove_hw_breakpoint): Add argument.
12940         (update_current_target): Update.
12941         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
12942         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
12943         argument.
12944         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
12945         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
12946         argument.
12947         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
12948         'self' argument.
12949
12950 2014-02-19  Tom Tromey  <tromey@redhat.com>
12951
12952         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
12953         argument.
12954         (target_insert_hw_breakpoint): Add argument.
12955         * target.c (debug_to_insert_hw_breakpoint): Add argument.
12956         (update_current_target): Update.
12957         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
12958         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
12959         argument.
12960         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
12961         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
12962         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
12963         argument.
12964         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
12965         'self' argument.
12966
12967 2014-02-19  Tom Tromey  <tromey@redhat.com>
12968
12969         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
12970         argument.
12971         (target_can_use_hardware_watchpoint): Add argument.
12972         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
12973         (update_current_target): Update.
12974         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
12975         argument.
12976         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
12977         argument.
12978         * remote.c (remote_check_watch_resources): Add 'self' argument.
12979         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
12980         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
12981         argument.
12982         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
12983         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
12984         argument.
12985         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
12986         argument.
12987         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
12988         argument.
12989         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
12990         argument.
12991         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
12992         argument.
12993         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
12994         argument.
12995         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
12996         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
12997         argument.
12998         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
12999         'self' argument.
13000
13001 2014-02-19  Tom Tromey  <tromey@redhat.com>
13002
13003         * target.h (struct target_ops) <to_post_attach>: Add argument.
13004         (target_post_attach): Add argument.
13005         * target.c (debug_to_post_attach): Add argument.
13006         (update_current_target): Update.
13007         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13008         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13009         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13010         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13011         * inf-child.c (inf_child_post_attach): Add 'self' argument.
13012
13013 2014-02-19  Tom Tromey  <tromey@redhat.com>
13014
13015         * windows-nat.c (windows_close): Add 'self' argument.
13016         * tracepoint.c (tfile_close): Add 'self' argument.
13017         * target.h (struct target_ops) <to_close>: Add argument.
13018         * target.c (target_close): Add argument.
13019         (update_current_target): Update.
13020         * remote.c (remote_close): Add 'self' argument.
13021         * remote-sim.c (gdbsim_close): Add 'self' argument.
13022         * remote-mips.c (mips_close): Add 'self' argument.
13023         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13024         * record-full.c (record_full_close): Add 'self' argument.
13025         * record-btrace.c (record_btrace_close): Add 'self' argument.
13026         * monitor.h (monitor_close): Add 'self' argument.
13027         * monitor.c (monitor_close): Add 'self' argument.
13028         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13029         * linux-nat.c (linux_nat_close): Add argument.
13030         * go32-nat.c (go32_close): Add 'self' argument.
13031         * exec.c (exec_close_1): Add 'self' argument.
13032         * ctf.c (ctf_close): Add 'self' argument.
13033         * corelow.c (core_close): Add 'self' argument.
13034         (core_close_cleanup): Update.
13035         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13036         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13037
13038 2014-02-19  Tom Tromey  <tromey@redhat.com>
13039
13040         * remote.c (remote_load): New function.
13041         (init_remote_ops): Use it.
13042
13043 2014-02-19  Tom Tromey  <tromey@redhat.com>
13044
13045         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13046         argument.
13047         * common/linux-btrace.h (linux_supports_btrace): Update.
13048         * remote.c (remote_supports_btrace): Add "self" argument.
13049         * target-delegates.c: Rebuild.
13050         * target.c (target_supports_btrace): Remove.
13051         * target.h (struct target_ops) <to_supports_btrace>: Add
13052         target_ops argument.
13053         (target_supports_btrace): New define.
13054
13055 2014-02-19  Tom Tromey  <tromey@redhat.com>
13056
13057         * record-full.c (record_full_beneath_to_resume_ops)
13058         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13059         (record_full_beneath_to_wait)
13060         (record_full_beneath_to_store_registers_ops)
13061         (record_full_beneath_to_store_registers)
13062         (record_full_beneath_to_xfer_partial_ops)
13063         (record_full_beneath_to_xfer_partial)
13064         (record_full_beneath_to_insert_breakpoint_ops)
13065         (record_full_beneath_to_insert_breakpoint)
13066         (record_full_beneath_to_remove_breakpoint_ops)
13067         (record_full_beneath_to_remove_breakpoint)
13068         (record_full_beneath_to_stopped_by_watchpoint)
13069         (record_full_beneath_to_stopped_data_address)
13070         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13071         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13072         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13073         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13074         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13075         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13076         (tmp_to_stopped_data_address, tmp_to_async): Remove.
13077         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
13078         (record_full_resume, record_full_wait_1)
13079         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13080         (record_full_store_registers, record_full_xfer_partial)
13081         (record_full_insert_breakpoint, record_full_remove_breakpoint)
13082         (record_full_async, record_full_core_xfer_partial): Use target
13083         delegation.
13084         * target-delegates.c: Rebuild.
13085         * target.c (current_xfer_partial): Remove.
13086         (update_current_target): Do not INHERIT or de_fault
13087         to_insert_breakpoint, to_remove_breakpoint,
13088         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13089         to_is_async_p, to_async.  Do not set to_xfer_partial field.
13090         (default_xfer_partial): Simplify.
13091         (current_xfer_partial): Remove.
13092         (target_wait, target_resume): Simplify.
13093         (find_default_can_async_p, find_default_is_async_p): Update.
13094         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13095         to_xfer_partial, to_stopped_by_watchpoint,
13096         to_stopped_data_address.
13097         (target_store_registers): Simplify.
13098         (forward_target_remove_breakpoint)
13099         (forward_target_insert_breakpoint): Remove.
13100         (target_remove_breakpoint, target_insert_breakpoint)
13101         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13102         * target.h (struct target_ops) <to_resume, to_wait,
13103         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13104         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13105         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13106         markup.
13107         (forward_target_remove_breakpoint)
13108         (forward_target_insert_breakpoint): Remove.
13109         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13110         directly.
13111         (record_btrace_insert_breakpoint): Delegate directly.
13112
13113 2014-02-19  Tom Tromey  <tromey@redhat.com>
13114
13115         PR build/7701:
13116         * target-delegates.c: New file.
13117         * target.c: Include target-delegates.c.
13118         (init_dummy_target): Call install_dummy_methods.
13119         (complete_target_initialization): Call install_delegators.
13120         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13121         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13122         * make-target-delegates: New file.
13123
13124 2014-02-19  Tom Tromey  <tromey@redhat.com>
13125
13126         * record.c (find_record_target): Use find_target_at.
13127         * target.c (find_target_at): New function.
13128         * target.h (find_target_at): Declare.
13129
13130 2014-02-19  Tom Tromey  <tromey@redhat.com>
13131
13132         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13133         Add 'ops' argument.
13134         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13135         'ops' argument.
13136         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13137         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13138         'ops' argument.
13139         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13140         argument.
13141         * linux-nat.c (save_sigtrap): Update.
13142         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13143         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13144         (linux_nat_close): Update.
13145         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13146         argument.
13147         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13148         argument.
13149         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13150         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13151         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13152         (tmp_to_async): Add 'ops' argument.
13153         (record_full_stopped_by_watchpoint, record_full_async)
13154         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13155         argument.
13156         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13157         (m32r_stopped_by_watchpoint): Add 'ops' argument.
13158         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13159         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13160         (remote_is_async_p, remote_async): Add 'ops' argument.
13161         (remote_stopped_data_address): Update.
13162         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13163         * target.c (update_current_target)
13164         (find_default_can_async_p, find_default_is_async_p): Update.
13165         (init_dummy_target): Update.
13166         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13167         * target.h (struct target_ops) <to_stopped_by_watchpoint,
13168         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13169         (target_can_async_p, target_is_async_p, target_async)
13170         (target_stopped_by_watchpoint): Update.
13171
13172 2014-02-19  Yao Qi  <yao@codesourcery.com>
13173
13174         PR gdb/16220
13175         * gdbarch.sh: Remove startup_gdbarch.
13176         * gdbarch.c: Regenerated.
13177         * gdbarch.h: Likewise.
13178
13179 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
13180
13181         * rl78-tdep.c (rl78_g10_register_name): New function.
13182         (rl78_return_value): Add g10 support.
13183         (rl78_gdbarch_init): Register rl78_g10_register_name for the
13184         g10.
13185
13186 2014-02-17  Doug Evans  <xdje42@gmail.com>
13187
13188         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13189         (SUBDIR_GUILE_SRCS): Ditto.
13190         (scm-gsmob.o): Ditto.
13191
13192 2014-02-17  Yao Qi  <yao@codesourcery.com>
13193
13194         * gnu-nat.c (ILL_RPC): Declare defined function.
13195
13196 2014-02-17  Yao Qi  <yao@codesourcery.com>
13197
13198         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13199         mach_msg_type_number_t.
13200         (gnu_write_inferior): Likewise.
13201
13202 2014-02-17  Yao Qi  <yao@codesourcery.com>
13203
13204         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13205         in format string.
13206         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13207         (inf_validate_procs, inf_signal): Likewise.
13208         (S_exception_raise_request): Likewise.
13209         (do_mach_notify_dead_name): Likewise.
13210         (steal_exc_port): Likewise.
13211         (gnu_read_inferior): Change 'copy_count''s type to
13212         mach_msg_type_number_t.
13213         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
13214         format string.
13215
13216 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
13217
13218         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13219         flag.  Adjust all users; in particular...
13220         (gnu_wait): ..., don't decrement its value in here...
13221         (gnu_create_inferior): ..., and instead set the flag in here,
13222         around the startup_inferior call, and call that one with
13223         START_INFERIOR_TRAPS_EXPECTED.
13224
13225         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13226         (ILL_RPC): ... new macro.
13227         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13228         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13229         (do_mach_notify_send_once, S_proc_setmsgport_reply)
13230         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13231         functions with ILL_RPC macro.
13232         (S_proc_pid2task_reply, S_proc_task2pid_reply)
13233         (S_proc_task2proc_reply, S_proc_proc2task_reply)
13234         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13235         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13236         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13237         (S_proc_getlogin_reply, S_proc_getsid_reply)
13238         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13239         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13240         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13241         (S_proc_getnports_reply, S_proc_is_important_reply)
13242         (S_proc_get_code_reply): New stub functions, generated with
13243         ILL_RPC macro.
13244
13245         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13246         collected the type check structures.
13247
13248         * reply_mig_hack.awk: Don't expect to see the auto keyword.
13249
13250 2014-02-14  Doug Evans  <dje@google.com>
13251
13252         * target.c (target_write_partial): Fix result type.
13253
13254 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
13255
13256         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13257         the proper offsets to access fpregset_t.
13258
13259 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
13260
13261         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13262         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13263         * h8300-tdep.c (setmachinelist): Remove global.
13264         * hppa-tdep.c (hppa_sigtramp): Remove global.
13265         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13266         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13267         * ravenscar-thread.c (update_target_observer): Remove global.
13268         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13269
13270 2014-02-12  Tom Tromey  <tromey@redhat.com>
13271
13272         * common/rsp-low.c: Update comments.
13273         * common/rsp-low.h: Update comments.
13274
13275 2014-02-12  Tom Tromey  <tromey@redhat.com>
13276
13277         * common/rsp-low.c (convert_ascii_to_int): Remove.
13278         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13279
13280 2014-02-12  Tom Tromey  <tromey@redhat.com>
13281
13282         * common/rsp-low.h (unhexify): Don't declare.
13283         * common/rsp-low.c (unhexify): Remove.
13284
13285 2014-02-12  Tom Tromey  <tromey@redhat.com>
13286
13287         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13288         * common/rsp-low.c (convert_int_to_ascii): Remove.
13289
13290 2014-02-12  Tom Tromey  <tromey@redhat.com>
13291
13292         * common/rsp-low.h (hexify): Don't declare.
13293         * common/rsp-low.c (hexify): Remove.
13294
13295 2014-02-12  Tom Tromey  <tromey@redhat.com>
13296
13297         * common/rsp-low.c (hexify): Never take strlen of argument.
13298
13299 2014-02-12  Tom Tromey  <tromey@redhat.com>
13300
13301         * common/rsp-low.c (bin2hex): Never take strlen of argument.
13302         * remote.c (extended_remote_run, remote_rcmd)
13303         (remote_download_trace_state_variable, remote_save_trace_data)
13304         (remote_set_trace_notes): Update.
13305         * tracepoint.c (encode_source_string, tfile_write_status)
13306         (tfile_write_uploaded_tsv): Update.
13307
13308 2014-02-12  Tom Tromey  <tromey@redhat.com>
13309
13310         * tracepoint.c: Include rsp-low.h.
13311         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13312         * remote.c: Include rsp-low.h.
13313         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13314         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13315         (remote_unescape_input): Move to common/rsp-low.c.
13316         * common/rsp-low.h: New file.
13317         * common/rsp-low.c: New file.
13318         * Makefile.in (SFILES): Add common/rsp-low.c.
13319         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13320         (COMMON_OBS): Add rsp-low.o.
13321         (rsp-low.o): New target.
13322
13323 2014-02-12  Tom Tromey  <tromey@redhat.com>
13324
13325         * utils.h: Include print-utils.h.
13326         (host_address_to_string, plongest, pulongest, phex, phex_nz)
13327         (int_string, core_addr_to_string, core_addr_to_string_nz)
13328         (hex_string, hex_string_custom): Don't declare.
13329         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13330         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13331         (hex_string_custom, int_string, core_addr_to_string)
13332         (core_addr_to_string_nz, host_address_to_string): Move to
13333         common/print-utils.c.
13334         * common/print-utils.h: New file.
13335         * common/print-utils.c: New file
13336         * Makefile.in (SFILES): Add common/print-utils.c.
13337         (HFILES_NO_SRCDIR): Add common/print-utils.h.
13338         (COMMON_OBS): Add print-utils.o.
13339         (print-utils.o): New target.
13340
13341 2014-02-12  Tom Tromey  <tromey@redhat.com>
13342
13343         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13344
13345 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
13346
13347         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13348
13349 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
13350
13351         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13352         if a PT_IO ptrace request returns sucessfully but indicates that 0
13353         bytes were transferred.
13354
13355 2014-02-12  Pedro Alves  <palves@redhat.com>
13356             Kevin Buettner <kevinb@redhat.com>
13357
13358         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13359         TYPE_INSTANCE_FLAG_CODE_SPACE.
13360
13361 2014-02-12  Pedro Alves  <palves@redhat.com>
13362
13363         * h8300-tdep.c (pseudo_from_raw_register)
13364         (raw_from_pseudo_register): New functions.
13365         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13366         them.
13367
13368 2014-02-12  Pedro Alves  <palves@redhat.com>
13369
13370         * h8300-tdep.c (h8300_register_sim_regno): New function.
13371         (h8300_gdbarch_init): Install h8300_register_sim_regno as
13372         gdbarch_register_sim_regno hook.
13373
13374 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
13375
13376         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13377
13378 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
13379
13380         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13381
13382 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
13383
13384         * obsd-tdep.h (obsd_init_abi): New prototype.
13385         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13386         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13387         (obsd_init_abi): New functions.
13388         * i386obsd-tdep.c: Include "obsd-tdep.h".
13389         (i386obsd_init_abi): Call obsd_init_abi.
13390         * amd64obsd-tdep.c: Include "obsd-tdep.h".
13391         (amd64obsd_init_abi): Call obsd_init_abi.
13392         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13393         obsd-tdep.c to gdb_target_obs.
13394
13395 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
13396
13397         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13398         double float arguments to 16-byte in the argument slots.
13399
13400 2014-02-11  Doug Evans  <xdje42@gmail.com>
13401
13402         * configure.ac: Don't crash if pkg-config is not found and guile
13403         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
13404         in guile checks.
13405         * configure: Regenerate.
13406
13407 2014-02-11  Yao Qi  <yao@codesourcery.com>
13408
13409         * aix-thread.c (aix_thread_xfer_partial): Update comments.
13410         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13411         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13412         * gnu-nat.c (gnu_xfer_memory): Likewise.
13413         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
13414         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13415         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13416         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13417
13418 2014-02-11  Yao Qi  <yao@codesourcery.com>
13419
13420         * target.h (enum target_xfer_error): Rename to ...
13421         (enum target_xfer_status): ... it.  New.  All users updated.
13422         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13423         New.
13424         (TARGET_XFER_STATUS_ERROR_P): New macro.
13425         (target_xfer_error_to_string): Remove declaration.
13426         (target_xfer_status_to_string): Declare.
13427         (target_xfer_partial_ftype): Adjust it.
13428         (struct target_ops) <to_xfer_partial>: Return
13429         target_xfer_status.  Add argument xfered_len.  Update
13430         comments.
13431         * target.c (target_xfer_error_to_string): Rename to ...
13432         (target_xfer_status_to_string): ... it.  New.  All callers
13433         updated.
13434         (target_read_live_memory): Likewise.  Call target_xfer_partial
13435         instead of target_read.
13436         (memory_xfer_live_readonly_partial): Return
13437         target_xfer_status.  Add argument xfered_len.
13438         (raw_memory_xfer_partial): Likewise.
13439         (memory_xfer_partial_1): Likewise.
13440         (memory_xfer_partial): Likewise.
13441         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
13442         properly.  Update debug message.
13443         (default_xfer_partial, current_xfer_partial): Likewise.
13444         (target_write_partial): Likewise.
13445         (target_read_partial): Likewise.  All callers updated.
13446         (read_whatever_is_readable): Likewise.
13447         (target_write_with_progress): Likewise.
13448         (target_read_alloc_1): Likewise.
13449
13450         * aix-thread.c (aix_thread_xfer_partial): Likewise.
13451         * auxv.c (procfs_xfer_auxv): Likewise.
13452         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13453         * bfd-target.c (target_bfd_xfer_partial): Likewise.
13454         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13455         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13456         * corefile.c (read_memory): Adjust.
13457         * corelow.c (core_xfer_partial): Likewise.
13458         * ctf.c (ctf_xfer_partial): Likewise.
13459         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
13460         updated.
13461         (darwin_xfer_partial): Likewise.
13462         * exec.c (section_table_xfer_memory_partial): Likewise.  All
13463         callers updated.
13464         (exec_xfer_partial): Likewise.
13465         * exec.h (section_table_xfer_memory_partial): Update
13466         declaration.
13467         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
13468         negative.
13469         (gnu_xfer_partial): Likewise.
13470         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13471         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13472         (ia64_hpux_xfer_solib_got): Likewise.
13473         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
13474         type of 'partial_len' to ULONGEST.
13475         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13476         * linux-nat.c (linux_xfer_siginfo ): Likewise.
13477         (linux_nat_xfer_partial): Likewise.
13478         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13479         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13480         * monitor.c (monitor_xfer_memory): Likewise.
13481         (monitor_xfer_partial): Likewise.
13482         * procfs.c (procfs_xfer_partial): Likewise.
13483         * record-btrace.c (record_btrace_xfer_partial): Likewise.
13484         * record-full.c (record_full_xfer_partial): Likewise.
13485         (record_full_core_xfer_partial): Likewise.
13486         * remote-sim.c (gdbsim_xfer_memory): Likewise.
13487         (gdbsim_xfer_partial): Likewise.
13488         * remote.c (remote_write_bytes_aux): Likewise.  All callers
13489         updated.
13490         (remote_write_bytes, remote_read_bytes): Likewise.  All
13491         callers updated.
13492         (remote_flash_erase): Likewise.  All callers updated.
13493         (remote_write_qxfer): Likewise.  All callers updated.
13494         (remote_read_qxfer): Likewise.  All callers updated.
13495         (remote_xfer_partial): Likewise.
13496         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13497         (rs6000_xfer_shared_libraries): Likewise.
13498         * sol-thread.c (sol_thread_xfer_partial): Likewise.
13499         (sol_thread_xfer_partial): Likewise.
13500         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13501         (sparc_xfer_partial): Likewise.
13502         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
13503         updated.
13504         (spu_xfer_partial): Likewise.
13505         * spu-multiarch.c (spu_xfer_partial): Likewise.
13506         * tracepoint.c (tfile_xfer_partial): Likewise.
13507         * windows-nat.c (windows_xfer_memory): Likewise.
13508         (windows_xfer_shared_libraries): Likewise.
13509         (windows_xfer_partial): Likewise.
13510         * valprint.c: Replace 'target_xfer_error' with
13511         'target_xfer_status' in comments.
13512
13513 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
13514
13515         Checked in by Joel Brobecker <brobecker@adacore.com>.
13516         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13517
13518 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
13519
13520         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13521         function parameters.
13522
13523 2014-02-10  Will Newton  <will.newton@linaro.org>
13524
13525         * elfread.c (elf_rel_plt_read): Look for a .got section if
13526         looking up .got.plt fails.
13527         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13528         on address passed to elf_gnu_ifunc_record_cache.
13529         (elf_gnu_ifunc_resolve_addr): Likewise.
13530         (elf_gnu_ifunc_resolver_return_stop): Likewise.
13531
13532 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
13533
13534         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13535         (X_RETTURN): New macro.
13536         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13537
13538         * sparc64-tdep.c (sparc64_init_abi): Hook
13539         sparc_in_function_epilogue_p.
13540
13541 2014-02-10  Gary Benson  <gbenson@redhat.com>
13542
13543         * symfile-debug.c (debug_qf_expand_symtabs_matching):
13544         Rename name_matcher to symbol_matcher.
13545
13546 2014-02-10  Gary Benson  <gbenson@redhat.com>
13547
13548         * symfile-debug.c (debug_qf_expand_symtabs_matching):
13549         Use expand_symtabs_file_matcher_ftype and
13550         expand_symtabs_symbol_matcher_ftype.
13551
13552 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13553
13554         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13555         (struct ada_symbol_cache): New.
13556         (ada_free_symbol_cache): Forward declare.
13557         (struct ada_pspace_data): New.
13558         (ada_pspace_data_handle): New static global.
13559         (get_ada_pspace_data, ada_pspace_data_cleanup)
13560         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13561         (cache_space, cache): Delete, now folded inside struct
13562         ada_pspace_data.
13563         (ada_get_symbol_cache): New function.
13564         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13565         implementation.
13566         (_initialize_ada_language): Remove initialization of cache_space.
13567         Move call to observer_attach_inferior_exit up, grouping it
13568         with the other observer registrations inside this function.
13569         Rename command to be more general.  Add call to
13570         register_program_space_data_with_cleanup.
13571
13572 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13573
13574         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13575         ada_new_objfile_observer.
13576         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13577         (_initialize_tasks): Update uses of ada_new_objfile_observer
13578         and ada_tasks_normal_stop_observer.
13579
13580 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13581
13582         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13583         returned by the 'Length attribute to integer.
13584
13585 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13586
13587         * ada-lang.c (_initialize_ada_language): Initialize
13588         cache_space obstack.
13589
13590 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13591
13592         * ada-lang.c (HASH_SIZE): New macro.
13593         (struct cache_entry): New type.
13594         (cache_space, cache): New static globals.
13595         (ada_clear_symbol_cache, find_entry): New functions.
13596         (lookup_cached_symbol, cache_symbol): Implement.
13597         (ada_new_objfile_observer, ada_free_objfile_observer): New.
13598         (_initialize_ada_language): Attach ada_new_objfile_observer
13599         and ada_free_objfile_observer.
13600
13601 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
13602
13603         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13604         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13605         struct block * parameter.
13606         (ada_lookup_symbol_list_worker): Constify local variable "block".
13607         Remove cast which is no longer necessary.
13608
13609 2014-02-10  Doug Evans  <xdje42@gmail.com>
13610
13611         Add Guile as an extension language.
13612         * NEWS: Mention Guile scripting.
13613         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13614         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13615         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13616         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13617         (CLIBS): Add GUILE_LIBS.
13618         (install-guile): New rule.
13619         (guile.o): New rule.
13620         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13621         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13622         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13623         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13624         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13625         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13626         (scm-type.o, scm-utils.o, scm-value.o): New rules.
13627         * configure.ac: New option --with-guile.
13628         * configure: Regenerate.
13629         * config.in: Regenerate.
13630         * auto-load.c: Remove #include "python/python.h".  Add #include
13631         "gdb/section-scripts.h".
13632         (source_section_scripts): Handle Guile scripts.
13633         (_initialize_auto_load): Add name of Guile objfile script to
13634         scripts-directory help text.
13635         * breakpoint.c (condition_command): Tweak comment to include Scheme.
13636         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13637         (struct breakpoint): New member scm_bp_object.
13638         * defs.h (enum command_control_type): New value guile_control.
13639         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
13640         "extension.h".
13641         (show_user): Update comment.
13642         (_initialize_cli_cmds): Update help text for "show user".  Update help
13643         text for max-user-call-depth.
13644         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
13645         "extension.h".
13646         (multi_line_command_p): Add guile_control.
13647         (print_command_lines): Handle guile_control.
13648         (execute_control_command, recurse_read_control_structure): Ditto.
13649         (process_next_line): Recognize "guile" commands.
13650         * disasm.c (gdb_disassemble_info): Make non-static.
13651         * disasm.h: #include "dis-asm.h".
13652         (struct gdbarch): Add forward decl.
13653         (gdb_disassemble_info): Declare.
13654         * extension.c: #include "guile/guile.h".
13655         (extension_languages): Add guile.
13656         (get_ext_lang_defn): Handle EXT_LANG_GDB.
13657         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13658         * gdbtypes.c (get_unsigned_type_max): New function.
13659         (get_signed_type_minmax): New function.
13660         * gdbtypes.h (get_unsigned_type_max): Declare.
13661         (get_signed_type_minmax): Declare.
13662         * guile/README: New file.
13663         * guile/guile-internal.h: New file.
13664         * guile/guile.c: New file.
13665         * guile/guile.h: New file.
13666         * guile/scm-arch.c: New file.
13667         * guile/scm-auto-load.c: New file.
13668         * guile/scm-block.c: New file.
13669         * guile/scm-breakpoint.c: New file.
13670         * guile/scm-disasm.c: New file.
13671         * guile/scm-exception.c: New file.
13672         * guile/scm-frame.c: New file.
13673         * guile/scm-gsmob.c: New file.
13674         * guile/scm-iterator.c: New file.
13675         * guile/scm-lazy-string.c: New file.
13676         * guile/scm-math.c: New file.
13677         * guile/scm-objfile.c: New file.
13678         * guile/scm-ports.c: New file.
13679         * guile/scm-pretty-print.c: New file.
13680         * guile/scm-safe-call.c: New file.
13681         * guile/scm-string.c: New file.
13682         * guile/scm-symbol.c: New file.
13683         * guile/scm-symtab.c: New file.
13684         * guile/scm-type.c: New file.
13685         * guile/scm-utils.c: New file.
13686         * guile/scm-value.c: New file.
13687         * guile/lib/gdb.scm: New file.
13688         * guile/lib/gdb/boot.scm: New file.
13689         * guile/lib/gdb/experimental.scm: New file.
13690         * guile/lib/gdb/init.scm: New file.
13691         * guile/lib/gdb/iterator.scm: New file.
13692         * guile/lib/gdb/printing.scm: New file.
13693         * guile/lib/gdb/types.scm: New file.
13694         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13695         (VPATH): Add $(GUILE_SRCDIR).
13696         (GUILE_DIR): New variable.
13697         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13698         (all): Add stamp-guile dependency.
13699         (stamp-guile): New rule.
13700         (clean-guile, install-guile, uninstall-guile): New rules.
13701         (install-only): Add install-guile dependency.
13702         (uninstall): Add uninstall-guile dependency.
13703         (clean): Add clean-guile dependency.
13704
13705 2014-02-09  Doug Evans  <xdje42@gmail.com>
13706
13707         Revert this patch (which I approved, mea culpa).
13708
13709         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
13710
13711         * Makefile.in (all-lib): Remove.
13712         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13713
13714 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
13715
13716         Fix Python stack corruption.
13717         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13718         gdb_py_longest.
13719
13720 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
13721
13722         * Makefile.in (all-lib): Remove.
13723         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13724
13725 2014-02-07  Doug Evans  <dje@google.com>
13726
13727         * extension-priv.h (extension_language_script_ops): Add comment.
13728         (extension_language_ops): Add comment.
13729         (active_ext_lang_state): Fix typo in comment.
13730
13731 2014-02-07  Pedro Alves  <palves@redhat.com>
13732
13733         PR breakpoints/16292
13734         * infrun.c (handle_signal_stop) <signal arrives while stepping
13735         over a breakpoint>: Switch back to the stepping thread.
13736
13737 2014-02-07  Yao Qi  <yao@codesourcery.com>
13738
13739         * target.c (target_xfer_partial): Return zero if LEN is zero.
13740
13741 2014-02-07  Yao Qi  <yao@codesourcery.com>
13742
13743         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13744         (ld_so_xfer_auxv): Likewise.
13745         * bfd-target.c (target_bfd_xfer_partial): Likewise.
13746         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13747         * corelow.c (core_xfer_partial): Likewise.
13748         * ctf.c (ctf_xfer_partial): Likewise.
13749         * darwin-nat.c (darwin_read_dyld_info): Likewise.
13750         (darwin_xfer_partial): Likewise.
13751         * exec.c (exec_xfer_partial): Likewise.
13752         * gnu-nat.c (gnu_xfer_partial): Likewise.
13753         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13754         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13755         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13756         * linux-nat.c (linux_xfer_siginfo): Likewise.
13757         (linux_proc_xfer_spu): Likewise.
13758         * procfs.c (procfs_xfer_partial): Likewise.
13759         * record-full.c (record_full_xfer_partial): Likewise.
13760         (record_full_core_xfer_partial): Likewise.
13761         * remote-sim.c (gdbsim_xfer_partial): Likewise.
13762         * remote.c (remote_write_qxfer): Likewise.
13763         (remote_write_qxfer, remote_read_qxfer): Likewise.
13764         (remote_xfer_partial): Likewise.
13765         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13766         (rs6000_xfer_shared_libraries): Likewise.
13767         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13768         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13769         (spu_xfer_partial): Likewise.
13770         * target.c (memory_xfer_partial_1): Likewise.
13771         * tracepoint.c (tfile_xfer_partial): Likewise.
13772         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13773         (windows_xfer_partial): Likewise.
13774
13775 2014-02-07  Yao Qi  <yao@codesourcery.com>
13776
13777         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
13778         comments.
13779         (core_xfer_shared_libraries_aix): Likewise.
13780         * gdbarch.c, gdbarch.h: Regenerated.
13781         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13782         ULONGEST.  Change 'len_avail' type to ULONGEST.
13783         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13784         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13785         declaration.
13786         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13787
13788 2014-02-07  Yao Qi  <yao@codesourcery.com>
13789
13790         * corefile.c (memory_error): Get 'exception' from ERR and pass
13791         'exception' to throw_error.
13792
13793 2014-02-06  Doug Evans  <xdje42@gmail.com>
13794
13795         * configure.ac (libpython checking): Remove all but python.o from
13796         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
13797         * configure: Regenerate.
13798
13799         * Makefile.in (SFILES): Add extension.c.
13800         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13801         (COMMON_OBS): Add extension.o.
13802         * extension.h: New file.
13803         * extension-priv.h: New file.
13804         * extension.c: New file.
13805
13806         * python/python-internal.h: #include "extension.h".
13807         (gdbpy_auto_load_enabled): Declare.
13808         (gdbpy_apply_val_pretty_printer): Declare.
13809         (gdbpy_apply_frame_filter): Declare.
13810         (gdbpy_preserve_values): Declare.
13811         (gdbpy_breakpoint_cond_says_stop): Declare.
13812         (gdbpy_breakpoint_has_cond): Declare.
13813         (void source_python_script_for_objfile): Delete.
13814         * python/python.c: #include "extension-priv.h".
13815         Delete inclusion of "observer.h".
13816         (extension_language_python): Moved here and renamed from
13817         script_language_python in py-auto-load.c.
13818         Redefined to be of type extension_language_defn.
13819         (python_extension_script_ops): New global.
13820         (python_extension_ops): New global.
13821         (struct python_env): New member previous_active.
13822         (restore_python_env): Call restore_active_ext_lang.
13823         (ensure_python_env): Call set_active_ext_lang.
13824         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13825         New arg extlang.
13826         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13827         New arg extlang.
13828         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13829         New arg extlang.
13830         (gdbpy_eval_from_control_command): Renamed from
13831         eval_python_from_control_command, made static.  New arg extlang.
13832         (gdbpy_source_script) Renamed from source_python_script, made static.
13833         New arg extlang.
13834         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
13835         result to int.  New arg extlang.
13836         (gdbpy_source_objfile_script): Renamed from
13837         source_python_script_for_objfile, made static.  New arg extlang.
13838         (gdbpy_start_type_printers): Renamed from start_type_printers, made
13839         static.  New args extlang, extlang_printers.  Change result type to
13840         "void".
13841         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13842         static.  New arg extlang.  Rename arg printers to extlang_printers
13843         and change type to ext_lang_type_printers *.
13844         (gdbpy_free_type_printers): Renamed from free_type_printers, made
13845         static.  Replace argument arg with extlang, extlang_printers.
13846         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13847         (!HAVE_PYTHON, source_python_script): Delete.
13848         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13849         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13850         (!HAVE_PYTHON, start_type_printers): Delete.
13851         (!HAVE_PYTHON, apply_type_printers): Delete.
13852         (!HAVE_PYTHON, free_type_printers): Delete.
13853         (_initialize_python): Delete call to observer_attach_before_prompt.
13854         (finalize_python): Set/restore active extension language.
13855         (gdbpy_finish_initialization) Renamed from
13856         finish_python_initialization, made static.  New arg extlang.
13857         (gdbpy_initialized): New function.
13858         * python/python.h: #include "extension.h".  Delete #include
13859         "value.h", "mi/mi-cmds.h".
13860         (extension_language_python): Declare.
13861         (GDBPY_AUTO_FILE_NAME): Delete.
13862         (enum py_bt_status): Moved to extension.h and renamed to
13863         ext_lang_bt_status.
13864         (enum frame_filter_flags): Moved to extension.h.
13865         (enum py_frame_args): Moved to extension.h and renamed to
13866         ext_lang_frame_args.
13867         (finish_python_initialization): Delete.
13868         (eval_python_from_control_command): Delete.
13869         (source_python_script): Delete.
13870         (apply_val_pretty_printer): Delete.
13871         (apply_frame_filter): Delete.
13872         (preserve_python_values): Delete.
13873         (gdbpy_script_language_defn): Delete.
13874         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
13875         (start_type_printers, apply_type_printers, free_type_printers): Delete.
13876
13877         * auto-load.c: #include "extension.h".
13878         (GDB_AUTO_FILE_NAME): Delete.
13879         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
13880         (script_language_gdb): Delete, moved to extension.c and renamed to
13881         extension_language_gdb.
13882         (source_gdb_script_for_objfile): Delete.
13883         (auto_load_pspace_info): New member unsupported_script_warning_printed.
13884         (loaded_script): Change type of language member to
13885         struct extension_language_defn *.
13886         (init_loaded_scripts_info): Initialize
13887         unsupported_script_warning_printed.
13888         (maybe_add_script): Make static.  Change type of language arg to
13889         struct extension_language_defn *.
13890         (clear_section_scripts): Reset unsupported_script_warning_printed.
13891         (auto_load_objfile_script_1): Rewrite to use extension language API.
13892         (auto_load_objfile_script): Make public.  Remove support-compiled-in
13893         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
13894         (source_section_scripts): Rewrite to use extension language API.
13895         (load_auto_scripts_for_objfile): Rewrite to use
13896         auto_load_scripts_for_objfile.
13897         (collect_matching_scripts_data): Change type of language member to
13898         struct extension_language_defn *.
13899         (auto_load_info_scripts): Change type of language arg to
13900         struct extension_language_defn *.
13901         (unsupported_script_warning_print): New function.
13902         (script_not_found_warning_print): Make static.
13903         (_initialize_auto_load): Rewrite construction of scripts-directory
13904         help.
13905         * auto-load.h (struct objfile): Add forward decl.
13906         (struct script_language): Delete.
13907         (struct auto_load_pspace_info): Add forward decl.
13908         (struct extension_language_defn): Add forward decl.
13909         (maybe_add_script): Delete.
13910         (auto_load_objfile_script): Declare.
13911         (script_not_found_warning_print): Delete.
13912         (auto_load_info_scripts): Update prototype.
13913         (auto_load_gdb_scripts_enabled): Declare.
13914         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
13915         auto_load_python_scripts_enabled and made public.
13916         (script_language_python): Delete, moved to python.c.
13917         (gdbpy_script_language_defn): Delete.
13918         (info_auto_load_python_scripts): Update to use
13919         extension_language_python.
13920
13921         * breakpoint.c (condition_command): Replace call to
13922         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
13923         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
13924         with call to breakpoint_ext_lang_cond_says_stop.
13925         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
13926         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
13927         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
13928         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
13929         New arg slang.
13930         (local_setattro): Print name of extension language with existing
13931         stop condition.
13932
13933         * valprint.c (val_print, value_print): Update to call
13934         apply_ext_lang_val_pretty_printer.
13935         * cp-valprint.c (cp_print_value): Update call to
13936         apply_ext_lang_val_pretty_printer.
13937         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
13938         (gdbpy_apply_val_pretty_printer): Renamed from
13939         apply_val_pretty_printer.  New arg extlang.
13940         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
13941
13942         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
13943         extension language API.
13944         * cli/cli-script.c (execute_control_command): Update to call
13945         eval_ext_lang_from_control_command.
13946
13947         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
13948         enum ext_lang_bt_status values.  Update call to
13949         apply_ext_lang_frame_filter.
13950         (mi_cmd_stack_list_locals): Ditto.
13951         (mi_cmd_stack_list_args): Ditto.
13952         (mi_cmd_stack_list_variables): Ditto.
13953         * mi/mi-main.c: Delete #include "python/python-internal.h".
13954         Add #include "extension.h".
13955         (mi_cmd_list_features): Replace reference to python internal variable
13956         gdb_python_initialized with call to ext_lang_initialized_p.
13957
13958         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
13959         Update to use enum ext_lang_frame_args.  Update to call
13960         apply_ext_lang_frame_filter.
13961         * python/py-framefilter.c (extract_sym): Update to use enum
13962         ext_lang_bt_status.
13963         (extract_value, py_print_type, py_print_value): Ditto.
13964         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
13965         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
13966         (py_print_frame): Ditto.
13967         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
13968         New arg extlang.  Update to use enum ext_lang_bt_status.
13969
13970         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
13971         finish_python_initialization.  Replace with call to
13972         finish_ext_lang_initialization.
13973
13974         * typeprint.c (do_free_global_table): Update to call
13975         free_ext_lang_type_printers.
13976         (create_global_typedef_table): Update to call
13977         start_ext_lang_type_printers.
13978         (find_global_typedef): Update to call apply_ext_lang_type_printers.
13979         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
13980         (type_print_options): Change type of global_printers from "void *"
13981         to "struct ext_lang_type_printers *".
13982
13983         * value.c (preserve_values): Update to call preserve_ext_lang_values.
13984         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
13985         (gdbpy_preserve_values): Renamed from preserve_python_values.
13986         New arg extlang.
13987         (!HAVE_PYTHON, preserve_python_values): Delete.
13988
13989         * utils.c (quit_flag): Delete, moved to extension.c.
13990         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
13991         extension.c.
13992
13993         * eval.c: Delete #include "python/python.h".
13994         * main.c: Delete #include "python/python.h".
13995
13996         * defs.h: Update comment.
13997
13998 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
13999
14000         GDB 7.7 released.
14001
14002 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
14003
14004         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14005         defined.
14006
14007 2014-02-05  Yao Qi  <yao@codesourcery.com>
14008
14009         * remote.c (remote_pass_signals): Remove local 'buf' and use
14010         rs->buf.
14011         (remote_program_signals): Likewise.
14012
14013 2014-02-05  Yao Qi  <yao@codesourcery.com>
14014
14015         * ctf.c: Include "inferior.h" and "gdbthread.h".
14016         (CTF_PID): A new macro.
14017         (ctf_open): Call inferior_appeared and add_thread_silent.
14018         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14019         (ctf_thread_alive): New function.
14020         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14021
14022 2014-02-05  Yao Qi  <yao@codesourcery.com>
14023
14024         Revert this patch:
14025
14026         2013-05-24  Yao Qi  <yao@codesourcery.com>
14027
14028         * tracepoint.c (TFILE_PID): Remove.
14029         (tfile_open): Don't add thread and inferior.
14030         (tfile_close): Don't set 'inferior_ptid'.  Don't call
14031         exit_inferior_silent.
14032         (tfile_thread_alive): Remove.
14033         (init_tfile_ops): Don't set field 'to_thread_alive' of
14034         tfile_ops.
14035
14036 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
14037
14038         * remote.c (remote_start_remote): Call remote_check_symbols even
14039         if only symbol-file (not file) has been given.
14040
14041 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14042
14043         * gdbarch.sh (skip_entrypoint): New callback.
14044         * gdbarch.c, gdbarch.h: Regenerate.
14045         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14046         * infrun.c (fill_in_stop_func): Likewise.
14047         * ppc-linux-tdep.c: Include "elf/ppc64.h".
14048         (ppc_elfv2_elf_make_msymbol_special): New function.
14049         (ppc_elfv2_skip_entrypoint): Likewise.
14050         (ppc_linux_init_abi): Install them for ELFv2.
14051
14052 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14053
14054         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14055         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14056         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14057         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
14058         structures returned in GPRs.
14059
14060 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14061
14062         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14063         offset to the stack parameter list for the ELFv2 ABI.
14064
14065 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14066
14067         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14068         set_gdbarch_convert_from_func_ptr_addr and
14069         set_gdbarch_elf_make_msymbol_special for ELFv1.
14070         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14071         function descriptors on ELFv1.
14072         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
14073         set up r12 at function entry.
14074
14075 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14076
14077         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14078         (struct gdbarch_tdep): New member elf_abi.
14079
14080         * rs6000-tdep.c: Include "elf/ppc64.h".
14081         (rs6000_gdbarch_init): Detect ELF ABI version.
14082
14083 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14084
14085         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14086         within a register pair holding a DFP 128-bit value on little-endian.
14087         (ppc64_sysv_abi_return_value_base): Likewise.
14088         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14089         (dfp_pseudo_register_write): Likewise.
14090
14091 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14092
14093         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14094         offset on little-endian when passing _Decimal32.
14095         (ppc64_sysv_abi_return_value_base): Likewise for return values.
14096
14097 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14098
14099         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14100         of the overlapped FP register within the VSX register on little-
14101         endian platforms.
14102         (efpr_pseudo_register_write): Likewise.
14103
14104 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14105
14106         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14107         offset on little-endian when passing small structures.
14108
14109 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14110
14111         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14112         (struct ppc64_sysv_argpos): New data structure.
14113         (ppc64_sysv_abi_push_float): Remove.
14114         (ppc64_sysv_abi_push_val): New function.
14115         (ppc64_sysv_abi_push_integer): Likewise.
14116         (ppc64_sysv_abi_push_freg): Likewise.
14117         (ppc64_sysv_abi_push_vreg): Likewise.
14118         (ppc64_sysv_abi_push_param): Likewise.
14119         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14120         (ppc64_sysv_abi_return_value_base): New function.
14121         (ppc64_sysv_abi_return_value): Refactor to use it.
14122
14123 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14124
14125         * NEWS: Document new target powerpc64le-*-linux*.
14126
14127 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
14128
14129         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14130         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14131         core dumps.
14132         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14133         register set used in ELF core dumps.  Add floating-point register set.
14134
14135 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
14136
14137         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14138         dwarf2_to_gdb[] table using symbolic constants.  Adjust
14139         penultimate entry from number representing the PC register
14140         to symbolic constant representing the MDR register.  Add
14141         constant for the PC register to the end of the table.
14142
14143 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
14144
14145         * bsd-kvm.c: Include <sys/param.h>
14146
14147 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
14148
14149         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14150
14151 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
14152
14153         * ada-lang.h (clear_ada_sym_cache): Delete.
14154
14155 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
14156
14157         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14158
14159 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
14160
14161         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14162           the sigreturn register save area only if the syscall is
14163           sigreturn.
14164
14165 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
14166
14167         * valops.c (value_slice): Minor reformatting.
14168
14169 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
14170
14171         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14172
14173 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
14174
14175         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14176         New static globals.
14177         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14178         (ada_ignore_descriptive_types_p): New static global.
14179         (find_parallel_type_by_descriptive_type): Return immediately
14180         if ada_ignore_descriptive_types_p is set.
14181         (_initialize_ada_language): Register new commands "maintenance
14182         set ada", "maintenance show ada", "maintenance set ada
14183         ignore-descriptive-types" and "maintenance show ada
14184         ignore-descriptive-types".
14185         * NEWS: Add entry for new "maint ada set/show
14186         ignore-descriptive-types" commands.
14187
14188 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
14189
14190         * record-btrace.c (record_btrace_close): Call btrace_teardown
14191         for all threads.
14192
14193 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14194
14195         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14196         "ui-out.h".
14197
14198 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14199
14200         * ada-typeprint (type_is_full_subrange_of_target_type):
14201         New function.
14202         (print_range): Add parameter bounds_prefered_p.  If not set,
14203         try printing range types using the name of their base type.
14204         (print_range_type): Add parameter bounds_prefered_p.
14205         Use it in call to print_range.
14206         (print_array_type, ada_print_type): Update calls to print_range
14207         and print_range_type.
14208
14209 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14210
14211         * ada-typeprint.c (print_array_type, print_choices, print_range)
14212         (print_range_bound, print_dynamic_range_bound, print_range_type):
14213         Remove declaration.
14214
14215 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14216
14217         * ada-typeprint.c (print_range): Add missing empty line
14218         after local declaration.
14219
14220 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14221
14222         * ada-valprint.c (print_optional_low_bound): Get index_type's
14223         target type for as long as it is a TYPE_CODE_RANGE.
14224
14225 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
14226
14227         * procfs.c (procfs_make_note_section): Remove assertion and
14228         associated comment.
14229
14230 2014-01-24  Yao Qi  <yao@codesourcery.com>
14231
14232         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14233         * corelow.c (get_core_siginfo): Likewise.
14234
14235 2014-01-24  Yao Qi  <yao@codesourcery.com>
14236
14237         * remote.c (remote_write_bytes_aux): Change type of 'len' to
14238         ULONGEST.  Don't check 'len' is negative.
14239         (remote_write_bytes):  Change type of 'len' to ULONGEST.
14240
14241 2014-01-23  Tom Tromey  <tromey@redhat.com>
14242
14243         PR python/16485:
14244         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14245         Handle exception from frame.block.
14246         (FrameVars.fetch_frame_locals): Likewise.
14247
14248 2014-01-23  Tom Tromey  <tromey@redhat.com>
14249
14250         PR python/16487:
14251         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14252         on a NULL pointer.  Move "goto error" to correct place.
14253
14254 2014-01-23  Tom Tromey  <tromey@redhat.com>
14255
14256         PR python/16491:
14257         * python/py-framefilter.c (apply_frame_filter): Call
14258         ensure_python_env after computing gdbarch.
14259
14260 2014-01-23  Yao Qi  <yao@codesourcery.com>
14261
14262         * target.c (raw_memory_xfer_partial): Change argument type
14263         from void * to gdb_byte *.
14264         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14265
14266 2014-01-22  Doug Evans  <dje@google.com>
14267
14268         New gdbserver option --debug-format=timestamp.
14269         * NEWS: Mention it.
14270
14271 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
14272
14273         * syscalls/s390x-linux.xml: New file.
14274         * syscalls/s390-linux.xml: New file.
14275         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14276         (XML_SYSCALL_FILENAME_S390X): Likewise.
14277         (op_svc): New enum value for SVC opcode.
14278         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14279         (s390_linux_get_syscall_number): New function.
14280         (s390_gdbarch_init): Register '*get_syscall_number' and the
14281         syscall xml file name.
14282         * data-directory/Makefile.in (SYSCALLS_FILES): Add
14283         "s390-linux.xml" and "s390x-linux.xml".
14284         * NEWS: Announce new feature.
14285
14286 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
14287
14288         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14289
14290 2014-01-22  Pedro Alves  <palves@redhat.com>
14291
14292         * xtensa-config.c: Include defs.h.
14293
14294 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
14295
14296         * common/common-utils.h: Add "ARI:" comment beside __func__
14297         reference.
14298
14299 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
14300
14301         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14302         documentation a bit.
14303
14304 2014-01-21  Roland McGrath  <mcgrathr@google.com>
14305
14306         * configure.ac: Call AM_PROG_INSTALL_STRIP.
14307         * configure: Regenerate.
14308         * aclocal.m4: Regenerate.
14309         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14310         New substituted variables.
14311         (install-strip): New target.
14312         (INSTALL_SCRIPT): New substituted variable.
14313         (FLAGS_TO_PASS): Add it.
14314         (install-only): Use $(INSTALL_SCRIPT) rather than
14315         $(INSTALL_PROGRAM) for gcore.
14316
14317 2014-01-20  Tom Tromey  <tromey@redhat.com>
14318
14319         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14320         together.
14321
14322 2014-01-20  Tom Tromey  <tromey@redhat.com>
14323
14324         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14325         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14326         (deprecated_cmd_warning, complete_on_cmdlist): Update.
14327         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14328         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14329         (struct cmd_list_element) <flags>: Remove.
14330         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14331         doc_allocated>: New fields.
14332         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14333         bitfields.
14334         * maint.c (maintenance_do_deprecate): Update.
14335         * top.c (execute_command): Update.
14336
14337 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
14338
14339         * xtensa-linux-nat.c: Include asm/ptrace.h.
14340
14341 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14342
14343         * Makefile.in (SFILES): Add d-support.c.
14344         (COMMON_OBS): Add d-support.o.
14345         * d-lang.h (d_parse_symbol): Add comment, now defined in
14346         d-support.c.
14347         * d-lang.c (parse_call_convention)
14348         (parse_attributes, parse_function_types)
14349         (parse_function_args, parse_type, parse_identifier)
14350         (call_convention_p, d_parse_symbol): Move functions to ...
14351         * d-support.c: ... New file.
14352
14353 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14354
14355         * d-lang.h (d_parse_symbol): Add declaration.
14356         * d-lang.c (extract_identifiers)
14357         (extract_type_info): Remove functions.
14358         (parse_call_convention, parse_attributes)
14359         (parse_function_types, parse_function_args)
14360         (parse_type, parse_identifier, call_convention_p)
14361         (d_parse_symbol): New functions.
14362         (d_demangle): Use d_parse_symbol to demangle D symbols.
14363
14364 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14365
14366         * d-lang.h (struct builtin_d_type): New data type.
14367         (builtin_d_type): Add declaration.
14368         * d-lang.c (d_language_arch_info, build_d_types)
14369         (builtin_d_type): New functions.
14370         (enum d_primitive_types): New data type.
14371         (d_language_defn): Change c_language_arch_info to
14372         d_language_arch_info.
14373         (d_type_data): New static variable.
14374         (_initialize_d_language): Initialize d_type_data.
14375
14376 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14377
14378         * d-lang.h (d_main_name): Add declaration.
14379         * d-lang.c (d_main_name): New function.
14380         * symtab.c (find_main_name): Add call to d_main_name.
14381
14382 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14383
14384         * d-lang.c (d_language_defn): Change macro_expansion_c to
14385         macro_expansion_no.
14386
14387 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
14388
14389         * MAINTAINERS: Add myself as a write-after-approval maintainer.
14390
14391 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
14392
14393         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14394         gdb_exception" declaration.
14395         * remote.c (getpkt_or_notif_sane): Likewise.
14396
14397 2014-01-17  Doug Evans  <dje@google.com>
14398
14399         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14400         function, contents of dirnames_to_char_ptr_vec_append moved here.
14401         (delim_string_to_char_ptr_vec): New function.
14402         (dirnames_to_char_ptr_vec_append): Rewrite.
14403         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14404
14405 2014-01-17  Doug Evans  <dje@google.com>
14406
14407         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14408         and moved here ...
14409         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14410         #include "common-utils.h".
14411         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14412         * common/vec.h (VEC_ASSERT_PASS): Update.
14413         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14414         (MACH_CHECK_ERROR): Update.
14415
14416 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
14417
14418         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14419         comments.
14420         * gdbarch.h: Regenerate.
14421
14422 2014-01-16  Tom Tromey  <tromey@redhat.com>
14423
14424         * value.c (struct value) <regnum>: Move earlier.
14425
14426 2014-01-16  Tom Tromey  <tromey@redhat.com>
14427
14428         * remote.c (extended_remote_create_inferior): Rename from
14429         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
14430         old implementation.
14431
14432 2014-01-16  Pedro Alves  <palves@redhat.com>
14433
14434         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14435         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14436         the backchain.
14437
14438 2014-01-16  Doug Evans  <dje@google.com>
14439
14440         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14441
14442 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14443
14444         * btrace.h (btrace_thread_flag): New.
14445         (struct btrace_thread_info) <flags>: New.
14446         * record-btrace.c (record_btrace_resume_thread)
14447         (record_btrace_find_thread_to_move, btrace_step_no_history)
14448         (btrace_step_stopped, record_btrace_start_replaying)
14449         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14450         (record_btrace_find_resume_thread): New.
14451         (record_btrace_resume, record_btrace_wait): Extend.
14452         (record_btrace_can_execute_reverse): New.
14453         (record_btrace_open): Fail in non-stop mode.
14454         (record_btrace_set_replay): Split into this, ...
14455         (record_btrace_stop_replaying): ... this, ...
14456         (record_btrace_clear_histories): ... and this.
14457         (init_record_btrace_ops): Init to_can_execute_reverse.
14458         * NEWS: Announce it.
14459
14460 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14461
14462         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14463         (forward_target_decr_pc_after_break)
14464         (target_decr_pc_after_break): New.
14465         * target.c (forward_target_decr_pc_after_break)
14466         (target_decr_pc_after_break): New.
14467         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14468         instead of gdbarch_decr_pc_after_break.
14469         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14470         instead of gdbarch_decr_pc_after_break.
14471         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14472         instead of gdbarch_decr_pc_after_break.
14473         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14474         instead of gdbarch_decr_pc_after_break.
14475         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14476         instead of gdbarch_decr_pc_after_break.
14477         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14478         instead of gdbarch_decr_pc_after_break.
14479
14480 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14481
14482         * btrace.c: Include regcache.h.
14483         (btrace_add_pc): New.
14484         (btrace_enable): Call btrace_add_pc.
14485         (btrace_is_empty): New.
14486         * btrace.h (btrace_is_empty): New.
14487         * record-btrace.c (require_btrace, record_btrace_info): Call
14488         btrace_is_empty.
14489
14490 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14491
14492         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14493         Support delta reads.
14494         (linux_disable_btrace): Change return type.
14495         * common/linux-btrace.h (linux_read_btrace): Change parameters
14496         and return type to allow error reporting.  Update users.
14497         (linux_disable_btrace): Change return type.  Update users.
14498         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14499         New.
14500         (btrace_error): New.
14501         (btrace_block) <begin>: Comment on BEGIN == 0.
14502         * btrace.c (btrace_compute_ftrace): Start from the end of
14503         the current trace.
14504         (btrace_stitch_trace, btrace_clear_history): New.
14505         (btrace_fetch): Read delta trace, return if replaying.
14506         (btrace_clear): Move clear history code to btrace_clear_history.
14507         (parse_xml_btrace): Throw an error if parsing failed.
14508         * target.h (struct target_ops) <to_read_btrace>: Change parameters
14509         and return type to allow error reporting.
14510         (target_read_btrace): Change parameters and return type to allow
14511         error reporting.
14512         * target.c (target_read_btrace): Update.
14513         * remote.c (remote_read_btrace): Support delta reads.  Pass
14514         errors on.
14515         * NEWS: Announce it.
14516
14517 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14518
14519         * record.h (record_btrace_frame_unwind)
14520         (record_btrace_tailcall_frame_unwind): New declarations.
14521         * dwarf2-frame: Include record.h
14522         (dwarf2_frame_cfa): Throw an error for btrace frames.
14523         * record-btrace.c: Include hashtab.h.
14524         (btrace_get_bfun_name): New.
14525         (btrace_call_history): Call btrace_get_bfun_name.
14526         (struct btrace_frame_cache): New.
14527         (bfcache): New.
14528         (bfcache_hash, bfcache_eq, bfcache_new): New.
14529         (btrace_get_frame_function): New.
14530         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14531         (record_btrace_frame_this_id): Compute own id.
14532         (record_btrace_frame_prev_register): Provide PC, throw_error
14533         for all other registers.
14534         (record_btrace_frame_sniffer): Detect btrace frames.
14535         (record_btrace_tailcall_frame_sniffer): New.
14536         (record_btrace_frame_dealloc_cache): New.
14537         (record_btrace_frame_unwind): Add new functions.
14538         (record_btrace_tailcall_frame_unwind): New.
14539         (_initialize_record_btrace): Allocate cache.
14540         * btrace.c (btrace_clear): Call reinit_frame_cache.
14541         * NEWS: Announce it.
14542
14543 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14544
14545         * record-btrace.c (record_btrace_set_replay)
14546         (record_btrace_goto_begin, record_btrace_goto_end)
14547         (record_btrace_goto): New.
14548         (init_record_btrace_ops): Initialize them.
14549         * NEWS: Announce it.
14550
14551 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14552
14553         * record-btrace.c (record_btrace_find_new_threads)
14554         (record_btrace_thread_alive): New.
14555         (init_record_btrace_ops): Initialize to_find_new_threads and
14556         to_thread_alive.
14557
14558 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14559
14560         * record-btrace.c (record_btrace_resume): New.
14561         (record_btrace_wait): New.
14562         (init_record_btrace_ops): Initialize to_wait and to_resume.
14563
14564 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14565
14566         * record-btrace.c (record_btrace_xfer_partial)
14567         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14568         (record_btrace_allow_memory_access): New.
14569         (init_record_btrace_ops): Initialize new methods.
14570         * target.c (raw_memory_xfer_partial): Bail out if target reports
14571         that this memory is not available.
14572
14573 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14574
14575         * target.h (target_ops) <to_insert_breakpoint>
14576         <to_remove_breakpoint>: Add target_ops parameter.
14577         (forward_target_insert_breakpoint): New.
14578         (forward_target_remove_breakpoint): New.
14579         (memory_remove_breakpoint, memory_insert_breakpoint):
14580         Add target_ops parameter.
14581         * target.c (target_insert_breakpoint): Split into this and ...
14582         (forward_target_insert_breakpoint): ... this.
14583         (target_remove_breakpoint): Split into this and ...
14584         (forward_target_remove_breakpoint): ... this.
14585         (debug_to_insert_breakpoint): Add target_ops parameter.
14586         Call forward_target_insert_breakpoint.
14587         (debug_to_remove_breakpoint): Add target_ops parameter.
14588         Call forward_target_remove_breakpoint.
14589         (update_current_target): Do not inherit or default to_insert_breakpoint
14590         and to_remove_breakpoint.
14591         * corelow.c (ignore): Add target_ops parameter.
14592         * exec.c (ignore): Add target_ops parameter.
14593         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14594         Add target_ops parameter.
14595         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14596         Add target_ops parameter.
14597         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14598         Add target_ops parameter.
14599         * record-full.c (record_full_beneath_to_insert_breakpoint)
14600         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14601         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14602         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14603         (record_full_core_remove_breakpoint): Add target_ops parameter.
14604         Update users.
14605         (record_full_beneath_to_insert_breakpoint_ops)
14606         (record_full_beneath_to_remove_breakpoint_ops)
14607         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14608         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14609         tmp_to_remove_breakpoint_ops,
14610         record_full_beneath_to_insert_breakpoint_ops, and
14611         record_full_beneath_to_remove_breakpoint_ops.
14612         * remote-m32r-sdi.c (m32r_insert_breakpoint)
14613         (m32r_remove_breakpoint): Add target_ops parameter.
14614         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14615         Add target_ops parameter.
14616         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14617         Add target_ops parameter.
14618
14619 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
14620             Markus Metzger  <markus.t.metzger@intel.com>
14621
14622         * record-btrace.c: Include frame-unwind.h.
14623         (record_btrace_frame_unwind_stop_reason)
14624         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14625         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14626         New.
14627         (init_record_btrace_ops): Install it.
14628
14629 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
14630
14631         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14632         get_prev_frame_1.
14633
14634 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
14635
14636         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14637         earlier.
14638
14639 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
14640
14641         * frame-unwind.c: Include target.h.
14642         (frame_unwind_try_unwinder): New function with code from ...
14643         (frame_unwind_find_by_frame): ... here.  New variable
14644         unwinder_from_target, call also target_get_unwinder)
14645         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14646         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14647         * target.h (struct target_ops): New fields to_get_unwinder and
14648         to_get_tailcall_unwinder.
14649         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14650
14651 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14652
14653         * record-btrace.c (record_btrace_fetch_registers)
14654         (record_btrace_store_registers)
14655         (record_btrace_to_prepare_to_store): New.
14656         (init_record_btrace_ops): Add the above.
14657
14658 2014-01-16  Tom Tromey  <tromey@redhat.com>
14659
14660         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14661         * target.h (struct target_ops) <to_prepare_to_store>: Add
14662         argument.
14663         (target_prepare_to_store): Add argument.
14664         * target.c (debug_to_prepare_to_store): Add argument.
14665         (update_current_target): Update.
14666         * remote.c (remote_prepare_to_store): Add 'self' argument.
14667         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14668         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14669         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14670         * record-full.c (record_full_core_prepare_to_store): Add 'self'
14671         argument.
14672         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14673         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14674         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14675         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14676         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14677
14678 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14679
14680         * btrace.h (replay) <replay>: New.
14681         (btrace_is_replaying): New.
14682         * btrace.c (btrace_clear): Free replay iterator.
14683         (btrace_is_replaying): New.
14684         * record-btrace.c (record_btrace_is_replaying): New.
14685         (record_btrace_info): Print insn number if replaying.
14686         (record_btrace_insn_history): Start at replay position.
14687         (record_btrace_call_history): Start at replay position.
14688         (init_record_btrace_ops): Init to_record_is_replaying.
14689
14690 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14691
14692         * record-btrace.c (record_btrace_insn_history_range): Include
14693         end.
14694         (record_btrace_insn_history_from): Adjust range.
14695         (record_btrace_call_history_range): Include
14696         end.
14697         (record_btrace_call_history_from): Adjust range.
14698         * NEWS: Announce changes.
14699
14700 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14701
14702         * record.h (enum record_print_flag)
14703         <record_print_indent_calls>: New.
14704         * record.c (get_call_history_modifiers): Recognize /c modifier.
14705         (_initialize_record): Document /c modifier.
14706         * record-btrace.c (btrace_call_history): Add btinfo parameter.
14707         Reorder fields.  Optionally indent the function name.  Update
14708         all users.
14709         * NEWS: Announce changes.
14710
14711 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14712
14713         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14714
14715 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14716
14717         * btrace.c (ftrace_new_function): Start counting at one.
14718         * record-btrace.c (record_btrace_info): Adjust number of calls
14719         and insns.
14720         * NEWS: Announce it.
14721
14722 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14723
14724         * record-btrace.c (btrace_call_history_insn_range): Print
14725         insn range as [begin, end].
14726
14727 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14728
14729         * btrace.h (struct btrace_func_link): New.
14730         (enum btrace_function_flag): New.
14731         (struct btrace_inst): Rename to ...
14732         (struct btrace_insn): ...this. Update all users.
14733         (struct btrace_func) <ibegin, iend>: Remove.
14734         (struct btrace_func_link): New.
14735         (struct btrace_func): Rename to ...
14736         (struct btrace_function): ...this. Update all users.
14737         (struct btrace_function) <segment, flow, up, insn, insn_offset)
14738         (number, level, flags>: New.
14739         (struct btrace_insn_iterator): Rename to ...
14740         (struct btrace_insn_history): ...this.
14741         Update all users.
14742         (struct btrace_insn_iterator, btrace_call_iterator): New.
14743         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14744         (struct btrace_target_info) <begin, end, level>
14745         <insn_history, call_history>: New.
14746         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14747         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14748         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14749         (btrace_call_number, btrace_call_begin, btrace_call_end)
14750         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14751         (btrace_find_function_by_number, btrace_set_insn_history)
14752         (btrace_set_call_history): New.
14753         * btrace.c (btrace_init_insn_iterator)
14754         (btrace_init_func_iterator, compute_itrace): Remove.
14755         (ftrace_print_function_name, ftrace_print_filename)
14756         (ftrace_skip_file): Change
14757         parameter to const.
14758         (ftrace_init_func): Remove.
14759         (ftrace_debug): Use new btrace_function fields.
14760         (ftrace_function_switched): Also consider gaining and
14761         losing symbol information).
14762         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14763         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14764         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14765         New.
14766         (ftrace_new_function): Move. Remove debug print.
14767         (ftrace_update_lines, ftrace_update_insns): New.
14768         (ftrace_update_function): Check for call, ret, and jump.
14769         (compute_ftrace): Renamed to ...
14770         (btrace_compute_ftrace): ...this. Rewritten to compute call
14771         stack.
14772         (btrace_fetch, btrace_clear): Updated.
14773         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14774         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14775         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14776         (btrace_call_number, btrace_call_begin, btrace_call_end)
14777         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14778         (btrace_find_function_by_number, btrace_set_insn_history)
14779         (btrace_set_call_history): New.
14780         * record-btrace.c (require_btrace): Use new btrace thread
14781         info fields.
14782         (record_btrace_info, btrace_insn_history)
14783         (record_btrace_insn_history, record_btrace_insn_history_range):
14784         Use new btrace thread info fields and new iterator.
14785         (btrace_func_history_src_line): Rename to ...
14786         (btrace_call_history_src_line): ...this. Use new btrace
14787         thread info fields.
14788         (btrace_func_history): Rename to ...
14789         (btrace_call_history): ...this. Use new btrace thread info
14790         fields and new iterator.
14791         (record_btrace_call_history, record_btrace_call_history_range):
14792         Use new btrace thread info fields and new iterator.
14793
14794 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14795
14796         * frame.h (frame_id_build_unavailable_stack_special): New.
14797         * frame.c (frame_id_build_unavailable_stack_special): New.
14798
14799 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14800
14801         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14802         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14803         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14804         to gdbarch.
14805         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14806         (i386_insn_is_jump, i386_jmp_p): New.
14807         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14808         insn_is_jump to gdbarch.
14809         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14810         * gdbarch.h: Regenerated.
14811         * gdbarch.c: Regenerated.
14812         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14813         (default_insn_is_jump): New.
14814         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14815         (default_insn_is_jump): New.
14816
14817 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14818
14819         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14820         Change to ...
14821         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
14822         (btrace_read_type) <btrace_read_new>: Change to ...
14823         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
14824
14825 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
14826
14827         * common/linux-btrace.c (linux_read_btrace): Free trace from
14828         previous iteration.
14829
14830 2014-01-15  Doug Evans  <dje@google.com>
14831
14832         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14833         uint32_t.
14834
14835 2014-01-15  Tom Tromey  <tromey@redhat.com>
14836
14837         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14838         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14839         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14840         (set_objfile_main_name): New function.
14841         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14842         language_of_main>: New fields.
14843         (set_objfile_main_name): Declare.
14844         * symtab.c (find_main_name): Loop over objfiles to find the main
14845         name and language.
14846         (set_main_name): Now static.
14847         (get_main_info): Add comment.
14848         * symtab.h (set_main_name): Don't declare.
14849
14850 2014-01-15  Tom Tromey  <tromey@redhat.com>
14851
14852         * symtab.c (main_progspace_key): New global.
14853         (struct main_info): New.
14854         (name_of_main, language_of_main): Remove.
14855         (get_main_info, main_info_cleanup): New function.
14856         (set_main_name, main_name, main_language): Use get_main_info.
14857         (_initialize_symtab): Initialize main_progspace_key.
14858
14859 2014-01-15  Tom Tromey  <tromey@redhat.com>
14860
14861         * dbxread.c (process_one_symbol): Update.
14862         * dwarf2read.c (read_partial_die): Update.
14863         * symfile.c (set_initial_language): Call main_language.
14864         * symtab.c (language_of_main): Now static.
14865         (set_main_name): Add 'lang' parameter.
14866         (find_main_name): Update.
14867         (main_language): New function.
14868         (symtab_observer_executable_changed): Update.
14869         * symtab.h (set_main_name): Update.
14870         (language_of_main): Remove.
14871         (main_language): Declare.
14872
14873 2014-01-15  Tom Tromey  <tromey@redhat.com>
14874
14875         * symfile.c (init_entry_point_info): Use new "initialized" field.
14876         Update.
14877         * objfiles.h (struct entry_point) <initialized>: New field.
14878         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
14879         (struct objfile) <ei>: ...here.  Remove.
14880         * objfiles.c (entry_point_address_query): Update.
14881
14882 2014-01-15  Tom Tromey  <tromey@redhat.com>
14883
14884         * objfiles.c (entry_point_address_query): Relocate entry point
14885         address.
14886         (objfile_relocate1): Do not relocate entry point address.
14887         * objfiles.h (struct entry_info) <entry_point>: Update comment.
14888         <the_bfd_section_index>: New field.
14889         * symfile.c (init_entry_point_info): Find the entry point's
14890         section.
14891
14892 2014-01-15  Tom Tromey  <tromey@redhat.com>
14893
14894         * solib-frv.c (enable_break): Use entry_point_address_query.
14895
14896 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14897
14898         * NEWS: Add note on improved process record-replay on
14899         arm*-linux* targets.
14900
14901 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14902
14903         * arm-tdep.c (enum arm_record_result): New enum.
14904         (arm_record_unsupported_insn): New function.
14905         (arm_record_coproc_data_proc): Removed.
14906         (thumb2_record_ld_st_multiple): New function.
14907         (thumb2_record_ld_st_dual_ex_tbb): New function.
14908         (thumb2_record_data_proc_sreg_mimm): New function.
14909         (thumb2_record_ps_dest_generic): New function.
14910         (thumb2_record_branch_misc_cntrl): New function.
14911         (thumb2_record_str_single_data): New function.
14912         (thumb2_record_ld_mem_hints): New function.
14913         (thumb2_record_ld_word): New function.
14914         (thumb2_record_lmul_lmla_div): New function.
14915         (thumb2_record_decode_insn_handler): New function.
14916         (decode_insn): Add thumb32 instruction handlers.
14917
14918 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14919
14920         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
14921         (struct arm_linux_record_tdep): Declare.
14922         (arm_canonicalize_syscall): New function.
14923         (arm_all_but_pc_registers_record): New function.
14924         (arm_linux_syscall_record): New function.
14925         (arm_linux_init_abi): Add syscall recording constructs.
14926         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
14927         decoding.  (arm_record_coproc_data_proc): Update arm syscall
14928         decoding.
14929         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
14930         <arm_syscall_record>: New field.
14931         * configure.tgt (arm*-*-linux*): Add linux-record.o to
14932         gdb_target_obs.
14933
14934 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14935
14936         * arm-tdep.c (thumb_record_misc): Update to use sp as base
14937         register for push instruction recording.
14938
14939 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14940
14941         * arm-tdep.c (thumb_record_misc): Update to correct logical
14942         error while recording ldm, ldmia and pop instructions.
14943
14944 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
14945
14946         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
14947
14948 2014-01-15  Pedro Alves  <palves@redhat.com>
14949
14950         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
14951         (go32_resume, go32_fetch_registers, store_register)
14952         (go32_store_registers, go32_prepare_to_store)
14953         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
14954         (go32_create_inferior, go32_can_run, go32_terminal_init)
14955         (go32_terminal_inferior, go32_terminal_ours): Delete forward
14956         declarations.
14957
14958 2014-01-15  Tom Tromey  <tromey@redhat.com>
14959
14960         * target.h (async_callback_ftype): New typedef.
14961         (struct target_ops) <to_async>: Use it.
14962
14963 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
14964
14965         * python/py-value.c (get_field_type): Remove unnecessary curly
14966         braces for single-statement if block.
14967
14968 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
14969
14970         * python/py-type.c (convert_field): Add missing empty line
14971         after declarations.
14972
14973 2014-01-14  Doug Evans  <dje@google.com>
14974
14975         * symfile.h (expand_symtabs_matching): Renamed from
14976         expand_partial_symbol_names.  Update prototype.
14977         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14978         * symfile.c (expand_symtabs_matching): Renamed from
14979         expand_partial_symbol_names.  New args file_matcher, kind.
14980         Rename arg fun to symbol_matcher.
14981         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
14982         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
14983         ada_expand_partial_symbol_name.
14984         (ada_make_symbol_completion_list): Update to call
14985         expand_symtabs_matching.
14986         (ada_add_global_exceptions): Call expand_symtabs_matching.
14987         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
14988         call map_symbol_filenames.
14989         * symtab.c (sources_info): Update to call map_symbol_filenames.
14990         (search_symbols): Call expand_symtabs_matching.
14991         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
14992         (default_make_symbol_completion_list_break_on): Update to call
14993         expand_symtabs_matching.
14994         (make_source_files_completion_list): Update to call
14995         map_symbol_filenames.
14996
14997 2014-01-14  Doug Evans  <dje@google.com>
14998
14999         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15000         (expand_symtabs_symbol_matcher_ftype): New typedef.
15001         (quick_symbol_functions.expand_symtabs_matching): Update to use.
15002         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15003         * symfile.c (expand_partial_symbol_names): Update to use
15004         expand_symtabs_symbol_matcher_ftype.
15005         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15006         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15007         Arg name_matcher renamed to symbol_matcher.
15008         * psymtab.c (recursively_search_psymtabs): Update to use
15009         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
15010         sym_matcher.
15011         (expand_symtabs_matching_via_partial): Update to use
15012         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15013         Arg name_matcher renamed to symbol_matcher.
15014
15015 2014-01-14  Doug Evans  <dje@google.com>
15016
15017         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15018         (map_partial_symbol_filenames): Ditto.
15019         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15020         (map_partial_symbol_filenames): Ditto.
15021         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15022         (map_partial_symbol_filenames): Ditto.
15023         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15024         (map_partial_symbol_filenames): Ditto.
15025         * symtab.c: Delete #include "psymtab.h".
15026
15027 2014-01-14  Pedro Alves  <palves@redhat.com>
15028             Tom Tromey  <tromey@redhat.com>
15029
15030         * infrun.c (use_displaced_stepping): Use find_record_target
15031         instead of RECORD_IS_USED.
15032         (adjust_pc_after_break): Use record_full_is_used instead of
15033         RECORD_IS_USED.
15034         * record-btrace.c (record_btrace_open): Call record_preopen
15035         instead of checking RECORD_IS_USED.
15036         * record-full.c (record_full_shortname)
15037         (record_full_core_shortname): New globals.
15038         (record_full_is_used): New function.
15039         (find_full_open): Call record_preopen instead of checking
15040         RECORD_IS_USED.
15041         (init_record_full_ops): Set the target's shortname to
15042         record_full_shortname.
15043         (init_record_full_core_ops): Set the target's shortname to
15044         record_full_core_shortname.
15045         * record-full.h (record_full_is_used): Declare.
15046         * record.c (find_record_target): Make extern.
15047         (record_preopen): New function.
15048         * record.h (RECORD_IS_USED): Delete macro.
15049         (find_record_target, record_preopen): Declare functions.
15050
15051 2014-01-14  Yao Qi  <yao@codesourcery.com>
15052
15053         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15054         'len''s type to ULONGEST.
15055         (core_xfer_shared_libraries_aix): Likewise.
15056         * gdbarch.c, gdbarch.h: Regenerated.
15057         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15058         Change type of 'len' to ULONGEST.
15059         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15060         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15061
15062 2014-01-14  Yao Qi  <yao@codesourcery.com>
15063
15064         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15065         type of 'len' to ULONGEST.
15066         (linux_xfer_osdata_processgroups): Likewise.
15067         (linux_xfer_osdata_threads): Likewise.
15068         (linux_xfer_osdata_fds): Likewise.
15069         (linux_xfer_osdata_isockets): Likewise.
15070         (linux_xfer_osdata_shm): Likewise.
15071         (linux_xfer_osdata_sem): Likewise.
15072         (linux_xfer_osdata_msg): Likewise.
15073         (linux_common_xfer_osdata): Likewise.
15074         (struct osdata_type) <getter>: Likewise.
15075         * common/linux-osdata.h (linux_common_xfer_osdata): Update
15076         the declaration.
15077
15078 2014-01-14  Yao Qi  <yao@codesourcery.com>
15079
15080         * target.h (target_xfer_partial_ftype): Update.
15081         (struct target_ops) <to_xfer_partial>: Change 'len' type to
15082         ULONGEST.
15083         * aix-thread.c (aix_thread_xfer_partial): Change type of
15084         argument 'len' to ULONGEST.
15085         * auxv.c (procfs_xfer_auxv): Likewise.
15086         (ld_so_xfer_auxv): Likewise.
15087         (memory_xfer_auxv): Likewise.
15088         * bfd-target.c (target_bfd_xfer_partial): Likewise.
15089         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15090         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15091         * corelow.c (core_xfer_partial): Likewise.
15092         * ctf.c (ctf_xfer_partial): Likewise.
15093         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
15094         '%u'.
15095         (darwin_read_dyld_info): Likewise.
15096         (darwin_xfer_partial): Likewise.
15097         * exec.c (section_table_xfer_memory_partial): Likewise.
15098         (exec_xfer_partial): Likewise.
15099         * exec.h (section_table_xfer_memory_partial): Update
15100         declaration.
15101         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
15102         instead of plongest.
15103         (gnu_xfer_partial): Likewise.
15104         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15105         (ia64_hpux_xfer_solib_got): Likewise.
15106         (ia64_hpux_xfer_partial): Likewise.
15107         * ia64-linux-nat.c (ia64_linux_xfer_partial):
15108         * inf-ptrace.c (inf_ptrace_xfer_partial):
15109         * inf-ttrace.c (inf_ttrace_xfer_partial):
15110         * linux-nat.c (linux_xfer_siginfo): Likewise.
15111         (linux_nat_xfer_partial): Likewise.
15112         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15113         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15114         * monitor.c (monitor_xfer_memory): Likewise.
15115         (monitor_xfer_partial): Likewise.
15116         * procfs.c (procfs_xfer_partial): Likewise.
15117         * record-full.c (record_full_xfer_partial): Likewise.
15118         (record_full_core_xfer_partial): Likewise.
15119         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
15120         instead of plongest.
15121         (gdbsim_xfer_partial): Likewise.
15122         * remote.c (remote_xfer_partial): Likewise.
15123         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15124         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15125         declaration.
15126         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15127         (rs6000_xfer_shared_libraries): Likewise.
15128         * sol-thread.c (sol_thread_xfer_partial): Likewise.
15129         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15130         (sparc_xfer_partial): Likewise.
15131         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15132         (spu_xfer_partial): Likewise.
15133         * spu-multiarch.c (spu_xfer_partial): Likewise.
15134         * target.c (target_read_live_memory): Likewise.
15135         (memory_xfer_live_readonly_partial): Likewise.
15136         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15137         (target_xfer_partial, default_xfer_partial): Likewise.
15138         (current_xfer_partial): Likewise.
15139         * tracepoint.c (tfile_xfer_partial): Likewise.
15140         * windows-nat.c (windows_xfer_memory): Likewise.  Call
15141         pulongest instead of plongest.
15142         (windows_xfer_partial): Likewise.
15143         (windows_xfer_shared_libraries): Likewise.
15144
15145 2014-01-14  Yao Qi  <yao@codesourcery.com>
15146
15147         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15148         target_xfer_partial_ftype.
15149
15150 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
15151
15152         PR python/15464
15153         PR python/16113
15154         * valops.c (value_struct_elt_bitpos): New function
15155         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15156         object to 'None' if the field name is an empty string ("").
15157         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15158         attribute to look for a field when 'name' is 'None'.
15159         (get_field_type): New function
15160
15161 2014-01-13  Doug Evans  <dje@google.com>
15162
15163         PR symtab/16426
15164         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15165         (try_open_dwop_file): Ditto.
15166         * gdb_bfd.c: #include "vec.h".
15167         (bfdp): New typedef.
15168         (struct gdb_bfd_data): New member included_bfds.
15169         (gdb_bfd_unref): Unref all included bfds.
15170         (gdb_bfd_record_inclusion): New function.
15171         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15172
15173 2014-01-13  Tom Tromey  <tromey@redhat.com>
15174
15175         * gdbcore.h (deprecated_core_resize_section_table): Remove.
15176
15177 2014-01-13  Tom Tromey  <tromey@redhat.com>
15178
15179         * defs.h (use_windows): Remove.
15180         * gdb.c (main): Update.
15181         * main.c (captured_main, gdb_main): Update.
15182         * main.h (struct captured_main_args) <use_windows>: Remove.
15183         * top.c (use_windows): Remove.
15184
15185 2014-01-13  Tom Tromey  <tromey@redhat.com>
15186
15187         * defs.h (deprecated_flush_hook): Remove.
15188
15189 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
15190
15191         PR threads/16216
15192         * linux-thread-db.c (try_thread_db_load): Add parameter
15193         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
15194         (try_thread_db_load_from_pdir_1): Move it there from here.
15195         (try_thread_db_load_from_sdir): Update caller.
15196         (try_thread_db_load_from_dir): Move it there from here.
15197
15198 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
15199
15200         * regformats/regdat.sh: Always rewrite the register file.
15201
15202 2014-01-13  Pedro Alves  <palves@redhat.com>
15203
15204         * Makefile.in (CHECK_HEADERS): New variable.
15205         (check-headers:): New rule.
15206
15207 2014-01-13  Tom Tromey  <tromey@redhat.com>
15208
15209         * cli/cli-setshow.c (do_set_command): Update.
15210         * defs.h (deprecated_set_hook): Remove.
15211         * top.c (deprecated_set_hook): Remove.
15212
15213 2014-01-13  Pedro Alves  <palves@redhat.com>
15214
15215         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15216         the tracepoint if the PC is a pseudo-register.
15217
15218 2014-01-13  Tom Tromey  <tromey@redhat.com>
15219
15220         * defs.h (XCALLOC): Remove.
15221         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15222         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15223         * dwarf2loc.c (allocate_piece_closure): Likewise.
15224         * elfread.c (elf_symfile_segments): Likewise.
15225         (elf_symfile_segments): Likewise.
15226         * gdbtypes.c (copy_type_recursive): Likewise.
15227         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15228         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15229         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15230         XCALLOC.
15231         * mt-tdep.c (mt_gdbarch_init): Likewise.
15232         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15233         XCALLOC.
15234         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15235         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15236         * registry.c (registry_alloc_data): Likewise.
15237         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15238         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15239         * serial.c (serial_fdopen_ops): Likewise.
15240         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15241         XCALLOC.
15242         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15243         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15244         not XCALLOC.
15245
15246 2014-01-13  Tom Tromey  <tromey@redhat.com>
15247
15248         * defs.h (XMALLOC): Remove.
15249         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15250         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15251         * cli-out.c (struct ui_out *): Likewise.
15252         * cli/cli-dump.c (add_dump_command): Likewise.
15253         (add_dump_command): Likewise.
15254         * complaints.c (get_complaints): Likewise.
15255         (find_complaint): Likewise.
15256         * dwarf2-frame.c (execute_cfa_program): Likewise.
15257         * dwarf2read.c (abbrev_table_read_table): Likewise.
15258         * gdbarch.sh: Likewise.
15259         * gdbarch.c: Rebuild.
15260         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15261         * interps.c (interp_new): Likewise.
15262         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15263         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15264         * mi/mi-console.c (mi_console_file_new): Likewise.
15265         * mi/mi-interp.c (mi_interpreter_init): Likewise.
15266         * mi/mi-out.c (mi_out_new): Likewise.
15267         * mi/mi-parse.c (mi_parse): Likewise.
15268         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15269         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15270         * observer.c (xalloc_observer_list_node): Likewise.
15271         * regcache.c (regcache_xmalloc_1): Likewise.
15272         * reggroups.c (reggroup_new): Likewise.
15273         (_initialize_reggroup): Likewise.
15274         * registry.c (register_data_with_cleanup): Likewise.
15275         * remote.c (remote_notif_stop_alloc_reply): Likewise.
15276         * ser-base.c (serial_ttystate): Likewise.
15277         * ser-mingw.c (make_pipe_state): Likewise.
15278         * ser-pipe.c (pipe_open): Likewise.
15279         * serial.c (serial_open): Likewise.
15280         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15281         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15282         (tui_alloc_win_info): Likewise.
15283         (tui_add_content_elements): Likewise.
15284         * tui/tui-file.c (tui_file_new): Likewise.
15285         * tui/tui-out.c (tui_out_new): Likewise.
15286         * ui-file.c (mem_file_new): Likewise.
15287         * ui-out.c (push_level): Likewise.
15288         (make_cleanup_ui_out_end): Likewise.
15289         (append_header_to_list): Likewise.
15290         (ui_out_new): Likewise.
15291         * user-regs.c (user_reg_add_builtin): Likewise.
15292
15293 2014-01-13  Tom Tromey  <tromey@redhat.com>
15294
15295         * defs.h (XZALLOC): Remove.
15296         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15297         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15298         (get_ada_tasks_inferior_data): Likewise.
15299         * auto-load.c (get_auto_load_pspace_data): Likewise.
15300         * auxv.c (get_auxv_inferior_data): Likewise.
15301         * bfd-target.c (target_bfd_reopen): Likewise.
15302         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15303         (deprecated_insert_raw_breakpoint): Likewise.
15304         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15305         * corelow.c (core_open): Likewise.
15306         * darwin-nat.c (darwin_check_new_threads): Likewise.
15307         (darwin_attach_pid): Likewise.
15308         * dummy-frame.c (dummy_frame_push): Likewise.
15309         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15310         * dwarf2loc.c (allocate_piece_closure): Likewise.
15311         * elfread.c (elf_symfile_segments): Likewise.
15312         * eval.c (ptrmath_type_p): Likewise.
15313         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15314         * gdbtypes.c (alloc_type_arch): Likewise.
15315         (alloc_type_instance): Likewise.
15316         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15317         * inf-child.c (inf_child_can_use_agent): Likewise.
15318         * inflow.c (get_inflow_inferior_data): Likewise.
15319         * infrun.c (save_infcall_suspend_state): Likewise.
15320         * jit.c (jit_reader_load): Likewise.
15321         (get_jit_objfile_data): Likewise.
15322         (get_jit_program_space_data): Likewise.
15323         (jit_object_open_impl): Likewise.
15324         (jit_symtab_open_impl): Likewise.
15325         (jit_block_open_impl): Likewise.
15326         (jit_frame_sniffer): Likewise.
15327         * linux-fork.c (add_fork): Likewise.
15328         * maint.c (make_command_stats_cleanup): Likewise.
15329         * objfiles.c (get_objfile_pspace_data): Likewise.
15330         * opencl-lang.c (struct lval_closure): Likewise.
15331         * osdata.c (osdata_start_osdata): Likewise.
15332         * progspace.c (new_address_space): Likewise.
15333         (add_program_space): Likewise.
15334         * remote-sim.c (get_sim_inferior_data): Likewise.
15335         * sh-tdep.c (sh_gdbarch_init): Likewise.
15336         * skip.c (Ignore): Likewise.
15337         (skip_delete_command): Likewise.
15338         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15339         (library_list_start_library): Likewise.
15340         (solib_aix_current_sos): Likewise.
15341         * solib-darwin.c (get_darwin_info): Likewise.
15342         (darwin_current_sos): Likewise.
15343         * solib-dsbt.c (get_dsbt_info): Likewise.
15344         * solib-ia64-hpux.c (new_so_list): Likewise.
15345         (ia64_hpux_get_solib_linkage_addr): Likewise.
15346         * solib-spu.c (append_ocl_sos): Likewise.
15347         (spu_current_sos): Likewise.
15348         * solib-svr4.c (get_svr4_info): Likewise.
15349         (svr4_keep_data_in_core): Likewise.
15350         (library_list_start_library): Likewise.
15351         (svr4_default_sos): Likewise.
15352         (svr4_read_so_list): Likewise.
15353         * solib-target.c (library_list_start_library): Likewise.
15354         (solib_target_current_sos): Likewise.
15355         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15356         * symfile-debug.c (install_symfile_debug_logging): Likewise.
15357         * symfile.c (default_symfile_segments): Likewise.
15358         * target-descriptions.c (tdesc_data_init): Likewise.
15359         (tdesc_create_reg): Likewise.
15360         (struct tdesc_type *): Likewise.
15361         (tdesc_create_vector): Likewise.
15362         (tdesc_set_struct_size): Likewise.
15363         (struct tdesc_type *): Likewise.
15364         (tdesc_free_feature): Likewise.
15365         (tdesc_create_feature): Likewise.
15366         * windows-nat.c (windows_add_thread): Likewise.
15367         (windows_make_so): Likewise.
15368         * xml-support.c (gdb_xml_body_text): Likewise.
15369         (gdb_xml_create_parser_and_cleanup): Likewise.
15370         (xml_process_xincludes): Likewise.
15371         * xml-syscall.c (allocate_syscalls_info): Likewise.
15372         (syscall_create_syscall_desc): Likewise.
15373
15374 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
15375
15376         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15377         function, with code from i386_stap_parse_special_token.
15378         (i386_stap_parse_special_token_three_arg_disp): Likewise.
15379         (i386_stap_parse_special_token): Move code to the two functions
15380         above; simplify it.
15381
15382 2014-01-09  Pedro Alves  <palves@redhat.com>
15383             Hui Zhu  <hui@codesourcery.com>
15384
15385         PR gdb/16101
15386         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15387         bp_err_string.  Don't mark the location shlib_disabled if the
15388         error thrown wasn't a generic or memory error.  Catch errors
15389         thrown while inserting breakpoints in overlayed code.  Output
15390         error message of software breakpoints.
15391         * remote.c (remote_insert_breakpoint): If this breakpoint has
15392         target-side commands but this stub doesn't support Z0 packets,
15393         throw NOT_SUPPORTED_ERROR error.
15394         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15395         * target.h (target_insert_breakpoint): Extend comment.
15396         (target_insert_hw_breakpoint): Add comment.
15397
15398 2014-01-08  Pedro Alves  <palves@redhat.com>
15399
15400         * remote.c (remote_add_thread): Add threads silently if starting
15401         up.
15402         (remote_notice_new_inferior): If in all-stop, and starting up,
15403         don't call notice_new_inferior.
15404         (get_current_thread): New function, factored out from ...
15405         (add_current_inferior_and_thread): ... this.  Adjust.
15406         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
15407         found any thread, then select the remote's current thread as GDB's
15408         current thread too.
15409
15410 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
15411
15412         * NEWS: Create a new section for the next release branch.
15413         Rename the section of the current branch, now that it has
15414         been cut.
15415
15416 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
15417
15418         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15419         * version.in: Bump version to 7.7.50.DATE-cvs.
15420
15421 2014-01-08  Yao Qi  <yao@codesourcery.com>
15422
15423         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15424         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
15425         (spu_xfer_partial): Cast 'buf' to 'const char *'.
15426
15427 2014-01-08  Yao Qi  <yao@codesourcery.com>
15428
15429         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15430         return value of bfd_get_filename to symbol_file_add_from_bfd.
15431
15432 2014-01-08  Pierre Muller  <muller@sourceware.org>
15433
15434         Fix PR16201.
15435         * coff-pe-read.c (struct read_pe_section_data): Add index field.
15436         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15437         to prim_record_mininal_symbol_and_info.
15438         (add_pe_forwarded_sym): Use known section number of forwarded symbol
15439         in call to prim_record_minimal_symbol_and_info.
15440         (read_pe_exported_syms): Set index field of section_data.
15441
15442 2014-01-07  Andrew Pinski  <apinski@cavium.com>
15443
15444         * features/aarch64-core.xml (cpsr): Change to be 64bit.
15445         * features/aarch64.c: Regenerate.
15446
15447 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
15448
15449         * target.c (return_null): Define.
15450         (update_current_target): Use it instead of return_zero for
15451         functions that return a pointer.
15452
15453 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
15454
15455         * source.c (add_path): Fix check for duplicated paths in the previously
15456         included paths.
15457
15458 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
15459
15460         * ada-lang.c: Remove duplicated include statements.
15461         * alphabsd-nat.c: Ditto.
15462         * amd64-darwin-tdep.c: Ditto.
15463         * amd64fbsd-nat.c: Ditto.
15464         * auto-load.c: Ditto.
15465         * ax-gdb.c: Ditto.
15466         * breakpoint.c: Ditto.
15467         * dbxread.c: Ditto.
15468         * fork-child.c: Ditto.
15469         * gdb_usleep.c: Ditto.
15470         * i386-darwin-tdep.c: Ditto.
15471         * i386fbsd-nat.c: Ditto.
15472         * infcmd.c: Ditto.
15473         * inferior.c: Ditto.
15474         * jv-lang.c: Ditto.
15475         * linux-nat.c: Ditto.
15476         * linux-tdep.c: Ditto.
15477         * m68kbsd-nat.c: Ditto.
15478         * m68klinux-nat.c: Ditto.
15479         * microblaze-tdep.c: Ditto.
15480         * mips-linux-tdep.c: Ditto.
15481         * mn10300-tdep.c: Ditto.
15482         * nto-tdep.c: Ditto.
15483         * opencl-lang.c: Ditto.
15484         * osdata.c: Ditto.
15485         * printcmd.c: Ditto.
15486         * regcache.c: Ditto.
15487         * remote-m32r-sdi.c: Ditto.
15488         * remote.c: Ditto.
15489         * symfile.c: Ditto.
15490         * symtab.c: Ditto.
15491         * tilegx-linux-nat.c: Ditto.
15492         * tilegx-tdep.c: Ditto.
15493         * tracepoint.c: Ditto.
15494         * valops.c: Ditto.
15495         * vaxbsd-nat.c: Ditto.
15496         * windows-nat.c: Ditto.
15497         * xtensa-tdep.c: Ditto.
15498
15499 2014-01-07  Yao Qi  <yao@codesourcery.com>
15500
15501         * spu-linux-nat.c (_initialize_spu_nat): Declare.
15502
15503 2014-01-07  Yao Qi  <yao@codesourcery.com>
15504             Joel Brobecker  <brobecker@adacore.com>
15505
15506         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15507         (pdc_write_regs): Likewise.
15508         (fetch_regs_kernel_thread): Likewise.
15509         (store_regs_kernel_thread): Likewise.
15510
15511 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15512
15513         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15514         tagged type objects to their actual type.
15515
15516 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15517
15518         * ada-valprint.c (print_field_values): Add "language" parameter.
15519         Update calls to print_field_values and print_variant_part.
15520         Pass new parameter "language" in call to val_print instead
15521         of "current_language".  Replace call to ada_val_print by call
15522         to val_print.
15523         (print_variant_part): Add "language" parameter.
15524         (ada_val_print_struct_union): Update call to print_field_values.
15525
15526 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15527
15528         * ada-valprint.c (ui_memcpy): Delete.
15529         (ada_print_floating): Update documentation.  Add empty line
15530         between between function documentation and implementation.
15531         Delete variable "buffer".  Use ui_file_xstrdup in place of
15532         ui_file_put.  Minor adjustments following this change.
15533
15534 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15535
15536         * ada-valprint.c (ada_val_print_string): New function,
15537         extracted from ada_val_print_array.
15538         (ada_val_print_array): Replace extracted code by call
15539         to ada_val_print_string followed by a return.  Move
15540         "else" branch to the function's top block.
15541
15542 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15543
15544         * ada-valprint.c (ada_val_print_array): Move implementation
15545         down.  Rename parameter "offset" and "val" into "offset_aligned"
15546         and "original_value" respectively.  Add parameter "offset".
15547
15548 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15549
15550         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15551         re-organizing the code. Change the "???" message printed
15552         when target type is a TYPE_CODE_UNDEF into
15553         "<ref to undefined type>".
15554
15555 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15556
15557         * ada-valprint.c (print_record): Delete, implementation inlined...
15558         (ada_val_print_struct_union): ... here.  Remove call to
15559         ada_check_typedef in inlined implementation.
15560
15561 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15562
15563         * ada-valprint.c (ada_val_print_gnat_array): New function,
15564         extracted from ada_val_print_1;
15565         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15566         (ada_val_print_flt, ada_val_print_struct_union)
15567         (ada_val_print_ref): Likewise.
15568         (ada_val_print_1): Delete variables i and elttype.
15569         Replace extracted-out code by call to corresponding
15570         new functions.
15571
15572 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15573
15574         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15575
15576 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15577
15578         * ada-valprint.c (ada_val_print_1): Replace calls to
15579         ada_val_print_1 by calls to val_print.
15580
15581 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15582
15583         * ada-valprint.c (ada_val_print_1): Add parameter "language".
15584         Update calls to self accordingly.  Replace calls to c_val_print
15585         by calls to val_print.
15586
15587 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15588
15589         * ada-valprint.c (print_record): Delete declaration.
15590         (adjust_type_signedness, ada_val_print_1): Likewise.
15591         (ada_val_print): Move function implementation down.
15592         (print_variant_part, print_field_values, print_record):
15593         Move function implementation up.
15594
15595 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
15596
15597         * python/py-type.c (typy_get_name): New function.
15598         (type_object_getset): Add entry for attribute "name".
15599         * NEWS: Add entry mentioning this new attribute.
15600
15601 2014-01-07  Yao Qi  <yao@codesourcery.com>
15602
15603         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15604         statement.
15605
15606 2014-01-07  Yao Qi  <yao@codesourcery.com>
15607
15608         * gnu-nat.c (info_port_rights): Add qualifier const to
15609         argument args.
15610
15611 2014-01-07  Yao Qi  <yao@codesourcery.com>
15612
15613         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15614
15615 2014-01-07  Yao Qi  <yao@codesourcery.com>
15616
15617         * gnu-nat.c (make_inf) Update declaration.
15618         (make_inf): Make it static.
15619         (inf_set_traced): Likewise.
15620         (inf_port_to_thread, inf_task_died_status): Likewise.
15621
15622 2014-01-07  Yao Qi  <yao@codesourcery.com>
15623
15624         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15625
15626 2014-01-07  Yao Qi  <yao@codesourcery.com>
15627
15628         * gnu-nat.c (_initialize_gnu_nat): Declare.
15629
15630 2014-01-07  Yao Qi  <yao@codesourcery.com>
15631
15632         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15633         'enum bfd_endian'.
15634         (struct gdbarch_info) <byte_order>: Change type to
15635         'enum bfd_endian'.
15636         <byte_order_for_code>: Likewise.
15637         * gdbarch.c, gdbarch.h: Regenerated.
15638
15639 2014-01-06  Sasha Smundak  <asmundak@google.com>
15640
15641         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15642
15643 2014-01-06  Tom Tromey  <tromey@redhat.com>
15644
15645         * doublest.c (convert_doublest_to_floatformat): Use const, not
15646         CONST.
15647         * somread.c (som_symtab_read): Likewise.
15648
15649 2014-01-07  Hui Zhu  <hui@codesourcery.com>
15650
15651         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15652         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15653         (gdb_bfd_fopen): Ditto.
15654         (gdb_bfd_openr): Ditto.
15655         (gdb_bfd_openw): Ditto.
15656         (gdb_bfd_openr_iovec): Ditto.
15657         (gdb_bfd_fdopenr): Ditto.
15658         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15659         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15660         with xstrdup.
15661         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15662         with xstrdup.
15663         * symfile-mem.c (symbol_file_add_from_memory): Removed
15664         gdb_bfd_stash_filename.
15665
15666 2014-01-03  Doug Evans  <dje@google.com>
15667
15668         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15669         output.
15670
15671 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
15672
15673         Update year range in copyright notice of all files.
15674
15675 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
15676
15677         * top.c (print_gdb_version): Set copyright year to 2014.
15678
15679 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
15680
15681         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15682
15683 For older changes see ChangeLog-2013.
15684 \f
15685 Local Variables:
15686 mode: change-log
15687 left-margin: 8
15688 fill-column: 74
15689 version-control: never
15690 coding: utf-8
15691 End: