a743020f4d4541a0247bf4218bef1ec2b9680316
[external/binutils.git] / gdb / ChangeLog
1 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2
3         * vax-tdep.c (vax_regset_from_core_section): Remove.
4         (vax_iterate_over_regset_sections): New.
5         (vax_gdbarch_init): Adjust gdbarch initialization.
6
7 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8
9         * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
10         (tilegx_regset_from_core_section): Remove.
11         (tilegx_iterate_over_regset_sections): New.
12         (tilegx_linux_init_abi): Adjust gdbarch initialization.
13
14 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
15
16         * sparc-tdep.c (sparc_regset_from_core_section): Remove.
17         (sparc_iterate_over_regset_sections): New.
18         (sparc32_gdbarch_init): Adjust gdbarch initialization.
19         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
20         targets.
21         * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
22         (sparc64fbsd_init_abi): Call fbsd_init_abi.
23         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
24         target method 'make_corefile_notes'.
25
26 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
27
28         * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
29         'sizeof_gregset' and 'sizeof_fpregset'.
30         * sh-tdep.c (sh_regset_from_core_section): Remove.
31         (sh_iterate_over_regset_sections): New.
32         (sh_gdbarch_init): Adjust gdbarch initialization.
33         * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
34         sizeof_fpregset.
35         * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
36         'sizeof_gregset'.
37
38 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
39
40         * score-tdep.c (score7_linux_regset_from_core_section): Remove.
41         (score7_linux_iterate_over_regset_sections): New.
42         (score_gdbarch_init): Adjust gdbarch initialization.
43
44 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
45
46         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
47         FreeBSD targets.
48         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
49         method 'make_corefile_notes'.
50         * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
51         (ppcfbsd_regset_from_core_section): Remove.
52         (ppcfbsd_iterate_over_regset_sections): New.
53         (ppcfbsd_init_abi): Call fbsd_init_abi.  Adjust gdbarch
54         initialization.
55         * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
56         (ppcnbsd_iterate_over_regset_sections): New.
57         (ppcnbsd_init_abi): Adjust.
58         * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
59         (ppcobsd_iterate_over_regset_sections): New.
60         (ppcobsd_init_abi): Adjust.
61         * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
62         (rs6000_aix_iterate_over_regset_sections): New.
63         (rs6000_aix_init_osabi): Adjust.
64
65 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
66
67         * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
68         (nios2_regset_from_core_section): Remove.
69         (nios2_iterate_over_regset_sections): New.
70         (nios2_linux_init_abi): Adjust gdbarch initialization.
71
72 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
73
74         * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
75         (am33_iterate_over_regset_sections): New.
76         (am33_linux_init_osabi): Adjust gdbarch initialization.
77
78 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
79
80         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
81         (mips_linux_iterate_over_regset_sections): New.
82         (mips_linux_init_abi): Adjust gdbarch initialization.
83         * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
84         (mips64obsd_iterate_over_regset_sections): New.
85         (mips64obsd_init_abi): Adjust.
86         * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
87         (mipsnbsd_iterate_over_regset_sections): New.
88         (mipsnbsd_init_abi): Adjust.
89
90 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
91
92         * m88k-tdep.c (m88k_regset_from_core_section): Remove.
93         (m88k_iterate_over_regset_sections): New.
94         (m88k_gdbarch_init): Adjust gdbarch initialization.
95
96 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
97
98         * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
99         (ia64_linux_iterate_over_regset_sections): New.
100         (ia64_linux_init_abi): Adjust gdbarch initialization.
101
102 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
103
104         * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
105         (m68kbsd_iterate_over_regset_sections): New.
106         (m68kbsd_init_abi): Adjust gdbarch initialization.
107         * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
108         (m68k_linux_iterate_over_regset_sections): New.
109         (m68k_linux_init_abi): Adjust gdbarch initialization.
110
111 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
112
113         * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
114         (m32r_linux_regset_from_core_section): Remove.
115         (m32r_linux_iterate_over_regset_sections): New.
116         (m32r_linux_init_abi): Adjust gdbarch initialization.
117
118 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
119
120         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
121         (amd64obsd_iterate_over_regset_sections): New.
122         (amd64obsd_core_init_abi): Adjust gdbarch initialization.
123         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
124         Remove.
125         (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset.  Drop
126         regset_from_core_section initialization.
127         * i386-tdep.c (i386_regset_from_core_section): Remove.
128         (i386_iterate_over_regset_sections): New.
129         (i386_gdbarch_init): Adjust gdbarch initialization.
130         * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
131         (i386_iterate_over_regset_sections): New prototype.
132         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
133         Remove.
134         (i386obsd_aout_iterate_over_regset_sections): New.
135         (i386obsd_aout_init_abi): Adjust gdbarch initialization.
136         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
137         targets.
138         * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
139         (amd64fbsd_init_abi): Call fbsd_init_abi.
140         * i386fbsd-tdep.c (fbsd-tdep.h): Include.
141         (i386fbsd4_init_abi): Call fbsd_init_abi.
142         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
143         target method 'make_corefile_notes'.
144         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
145
146 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
147
148         * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
149         (hppa_hpux_iterate_over_regset_sections): New.
150         (hppa_hpux_init_abi): Adjust gdbarch initialization.
151         * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
152         (hppa_linux_iterate_over_regset_sections): New.
153         (hppa_linux_init_abi): Adjust.
154         * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
155         (hppanbsd_iterate_over_regset_sections): New.
156         (hppanbsd_init_abi): Adjust.
157         * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
158         (hppaobsd_iterate_over_regset_sections): New.
159         (hppaobsd_init_abi): Adjust.
160
161 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
162
163         * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
164         (frv_linux_iterate_over_regset_sections): New.
165         (frv_linux_init_abi): Adjust gdbarch initialization.
166
167 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
168
169         * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
170         (armbsd_iterate_over_regset_sections): New prototype.
171         * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
172         (armbsd_iterate_over_regset_sections): New.
173         * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
174         initialization.
175
176 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
177
178         * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
179         (alpha_linux_iterate_over_regset_sections): New.
180         (alpha_linux_init_abi): Adjust gdbarch initialization.
181         * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
182         prototype.
183         (alphanbsd_iterate_over_regset_sections): New prototype.
184
185 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
186
187         * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
188         Remove.
189         (aarch64_linux_iterate_over_regset_sections): New.
190         (aarch64_linux_init_abi): Adjust gdbarch initialization.
191
192 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
193
194         * fbsd-tdep.c: New file.
195         * fbsd-tdep.h: New file.
196         * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
197         (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
198         (ALLDEPFILES): Add fbsd-tdep.c.
199
200 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
201
202         * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
203         parameter.
204         * gdbarch.h: Regenerate.
205         * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
206         iterator.
207         (get_core_register_section): Add parameter 'regset' and use it, if
208         set.  Add parameter 'min_size' and verify the bfd section size
209         against it.
210         (get_core_registers_cb): Add parameter 'regset' and pass it to
211         get_core_register section.  For the "standard" register sections
212         ".reg" and ".reg2", set an appropriate default for human_name.
213         (get_core_registers): Don't abort when the gdbarch has an iterator
214         but no regset_from_core_section.  Add NULL/0 for parameters
215         'regset'/'min_size' in calls to get_core_register_section.
216         * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
217         'regset' and use it instead of calling the
218         regset_from_core_section gdbarch method.
219         * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
220         * i386-tdep.c (i386_supply_xstateregset)
221         (i386_collect_xstateregset, i386_xstateregset): Moved to
222         i386-linux-tdep.c.
223         (i386_regset_from_core_section): Drop handling for .reg-xfp and
224         .reg-xstate.
225         (i386_gdbarch_init): Set tdep field 'fpregset'.  Enable generic
226         core file support only if the regset iterator hasn't been set.
227         * i386-linux-tdep.c (i386_linux_supply_xstateregset)
228         (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
229         Moved from i386-tdep.c and renamed to *_linux*.
230         (i386_linux_iterate_over_regset_sections): Add regset parameter to
231         each callback invocation.  Allow any .reg-xstate size when reading
232         from a core file.
233         * amd64-tdep.c (amd64_supply_xstateregset)
234         (amd64_collect_xstateregset, amd64_xstateregset): Moved to
235         amd64-linux-tdep.c.
236         (amd64_regset_from_core_section): Remove.
237         (amd64_init_abi): Set new tdep field 'fpregset'.  No longer
238         install an amd64-specific regset_from_core_section gdbarch method.
239         * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
240         (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
241         Moved from amd64-tdep.c and renamed to *_linux*.
242         (amd64_linux_iterate_over_regset_sections): Add regset parameter
243         to each callback invocation.  Allow any .reg-xstate size when
244         reading from a core file.
245         * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
246         (arm_linux_iterate_over_regset_sections): Add regset parameter to
247         each callback invocation.
248         (arm_linux_init_abi): No longer set the regset_from_core_section
249         gdbarch method.
250         * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
251         (ppc_linux_iterate_over_regset_sections): Add regset parameter to
252         each callback invocation.
253         (ppc_linux_init_abi): No longer set the regset_from_core_section
254         gdbarch method.
255         * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
256         gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
257         (s390_regset_from_core_section): Remove.
258         (s390_iterate_over_regset_sections): Add regset parameter to each
259         callback invocation.
260         (s390_gdbarch_init): No longer set the regset_from_core_section
261         gdbarch method.  Drop initialization of deleted tdep fields.
262
263 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
264
265         * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
266         (amd64_linux_iterate_over_regset_sections): New.
267         (amd64_linux_init_abi_common): Don't install the regset section
268         list, but the new iterator in gdbarch.
269         * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
270         (arm_linux_vfp_regset_sections): Remove.  Move combined logic...
271         (arm_linux_iterate_over_regset_sections): ...here.  New function.
272         (arm_linux_init_abi): Set iterator instead of section list.
273         * corelow.c (get_core_registers_cb): New function, logic moved
274         from...
275         (get_core_registers): ...loop body here.  Use new iterator method
276         instead of walking through the regset section list.
277         * gdbarch.sh: Remove 'core_regset_sections'.  New method
278         'iterate_over_regset_sections'.  New typedef
279         'iterate_over_regset_sections_cb'.
280         * gdbarch.c: Regenerate.
281         * gdbarch.h: Likewise.
282         * i386-linux-tdep.c (i386_linux_regset_sections)
283         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
284         Remove.
285         (i386_linux_iterate_over_regset_sections): New.
286         (i386_linux_init_abi): Don't choose a regset section list, but
287         install new iterator in gdbarch.
288         * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
289         (linux_collect_regset_section_cb): New function, logic moved
290         from...
291         (linux_collect_thread_registers): ...loop body here.  Use iterator
292         method instead of walking through list.
293         (linux_make_corefile_notes_1): Check for presence of iterator
294         method instead of regset section list.
295         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
296         (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
297         (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
298         (ppc64_linux_fp_regset_sections): Remove.  Move combined logic...
299         (ppc_linux_iterate_over_regset_sections): ...here.  New function.
300         (ppc_linux_init_abi): Don't choose from above regset section
301         lists, but install new iterator in gdbarch.
302         * regset.h (struct core_regset_section): Remove.
303         * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
304         have_linux_v1, have_linux_v2, and have_tdb.
305         (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
306         (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
307         (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
308         (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
309         (s390x_linux64v2_regset_sections): Remove.  Move combined logic...
310         (s390_iterate_over_regset_sections): ...here.  New function.  Use
311         new tdep fields.
312         (s390_gdbarch_init): Set new tdep fields.  Don't choose from above
313         regset section lists, but install new iterator.
314
315 2014-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
316
317         * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
318
319 2014-09-26  Simon Marchi  <simon.marchi@ericsson.com>
320
321         * progspace.c (print_program_space): Don't prune program spaces
322         before printing them.
323
324 2014-09-25  Pedro Alves  <palves@redhat.com>
325
326         * infrun.c (user_visible_resume_ptid): Don't check
327         singlestep_breakpoints_inserted_p.
328
329 2014-09-25  Pedro Alves  <palves@redhat.com>
330
331         * breakpoint.c (should_be_inserted): Add debug output.
332
333 2014-09-25  Pedro Alves  <palves@redhat.com>
334
335         * infrun.c (stepping_past_instruction_at)
336         (clear_exit_convenience_vars): Point at infrun.h instead of
337         inferior.h.
338         (handle_signal_stop): Fix typo.
339
340 2014-09-24  Yao Qi  <yao@codesourcery.com>
341
342         * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
343         bitmask.
344
345 2014-09-22  Gary Benson  <gbenson@redhat.com>
346
347         * target.c (target_stop): Updated comment.
348
349 2014-09-22  Gary Benson  <gbenson@redhat.com>
350
351         * target/target.h (target_stop_ptid): Renamed as...
352         (target_stop_and_wait): New function.  Updated comment.
353         All uses updated.
354         (target_continue_ptid): Renamed as...
355         (target_continue_no_signal): New function.  Updated comment.
356         All uses updated.
357
358 2014-09-22  Pedro Alves  <palves@redhat.com>
359
360         * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
361         and "auto" merged.
362         * breakpoint.c (enum ugll_insert_mode): New enum.
363         (always_inserted_mode): Now a plain boolean.
364         (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
365         (breakpoints_always_inserted_mode): Delete.
366         (breakpoints_should_be_inserted_now): New function.
367         (insert_breakpoints): Pass UGLL_INSERT to
368         update_global_location_list instead of calling
369         insert_breakpoint_locations manually.
370         (create_solib_event_breakpoint_1): New, factored out from ...
371         (create_solib_event_breakpoint): ... this.
372         (create_and_insert_solib_event_breakpoint): Use
373         create_solib_event_breakpoint_1 instead of calling
374         insert_breakpoint_locations manually.
375         (update_global_location_list): Change parameter type from boolean
376         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
377         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
378         (update_global_location_list_nothrow): Change parameter type from
379         boolean to enum ugll_insert_mode.
380         (_initialize_breakpoint): "breakpoint always-inserted" option is
381         now a boolean command.  Update help text.
382         * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
383         (breakpoints_should_be_inserted_now): New declaration.
384         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
385         Remove breakpoints_always_inserted_mode check.
386         (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
387         * remote.c (remote_start_remote): Likewise.
388
389 2014-09-22  Pedro Alves  <palves@redhat.com>
390
391         * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
392         (insert_breakpoints): Don't call insert_breakpoint_locations here.
393         Instead, pass UGLL_INSERT to update_global_location_list.
394         (update_global_location_list): Change parameter type from boolean
395         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
396         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
397         (create_solib_event_breakpoint_1): New, factored out from ...
398         (create_solib_event_breakpoint): ... this.
399         (create_and_insert_solib_event_breakpoint): Use
400         create_solib_event_breakpoint_1 instead of calling
401         insert_breakpoint_locations manually.
402         (update_global_location_list): Handle UGLL_INSERT.
403
404 2014-09-22  Pedro Alves  <palves@redhat.com>
405
406         * breakpoint.c (enum ugll_insert_mode): New enum.
407         (update_global_location_list)
408         (update_global_location_list_nothrow): Change parameter type from
409         boolean to enum ugll_insert_mode.  All callers adjusted.
410
411 2014-09-19  Joel Brobecker  <brobecker@adacore.com>
412
413         * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
414         SystemTap support in GDB.
415
416 2014-09-19  Don Breazeal  <donb@codesourcery.com>
417
418         * linux-nat.c (linux_handle_extended_wait): Call
419         linux_ptrace_get_extended_event.
420         (wait_lwp): Call linux_is_extended_waitstatus.
421         (linux_nat_filter_event): Call linux_ptrace_get_extended_event
422         and linux_is_extended_waitstatus.
423         * nat/linux-ptrace.c (linux_test_for_tracefork): Call
424         linux_ptrace_get_extended_event.
425         (linux_ptrace_get_extended_event): New function.
426         (linux_is_extended_waitstatus): New function.
427         * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
428         (linux_is_extended_waitstatus): New declarations.
429
430 2014-09-19  Yao Qi  <yao@codesourcery.com>
431
432         * dwarf2read.c (dwarf_decode_lines): Update declaration.
433         (handle_DW_AT_stmt_list): Add argument 'lowpc'.  Update
434         comments.  Callers update.
435         (dwarf_decode_lines): Likewise.
436         (dwarf_decode_lines_1): Add argument 'lowpc'.  Update
437         comments.  Skip the line table if  'lowpc' is greater than
438         'address'.  Don't check
439         dwarf2_per_objfile->has_section_at_zero.
440
441 2014-09-18  Doug Evans  <dje@google.com>
442
443         * NEWS: Mention new "producer" attribute of gdb.Symtab.
444         * python/py-symtab.c (stpy_get_producer): New function.
445         (symtab_object_getset): Add "producer" attribute.
446
447 2014-09-17  Ulrich Weigand  <uweigand@de.ibm.com>
448
449         PR gdb/17384
450         * corefile.c (struct captured_read_memory_integer_arguments): Remove.
451         (do_captured_read_memory_integer): Remove.
452         (safe_read_memory_integer): Use target_read_memory directly instead
453         of catching errors in do_captured_read_memory_integer.
454
455 2014-09-16  Maciej W. Rozycki  <macro@codesourcery.com>
456
457         * CONTRIBUTE (Coding Standards): For internals refer to wiki,
458         not gdb/doc.
459
460 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
461
462         * objc-lang.c (find_implementation_from_class): Remove dead code.
463
464 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
465
466         PR cli/7233
467         * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
468         "fprintf_unfiltered (gdb_stdlog...)".
469
470 2014-09-16  Patrick Palka  <patrick@parcs.ath.cx>
471
472         PR breakpoints/12526
473         * breakpoint.h (struct watchpoint): New fields val_bitpos and
474         val_bitsize.
475         * breakpoint.c (watch_command_1): Use these fields to retain
476         bitfield information.
477         (extract_bitfield_from_watchpoint_value): New function.
478         (watchpoint_check): Use it.
479         (update_watchpoint): Use it.  Optimize the address and length of a
480         HW watchpoint pointing to a bitfield.
481         * value.h (unpack_value_bitfield): New prototype.
482         * value.c (unpack_value_bitfield): Make extern.
483
484 2014-09-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
485
486         * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
487         x86-dregs.o.
488         * gnu-nat.c (inf_threads): New function.
489         * gnu-nat.h (inf_threads_ftype): New typedef.
490         (inf_threads): New declaration.
491         * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
492         [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
493         (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
494         (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
495         (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
496         (i386_gnu_dr_get_control): New functions.
497         (reg_addr): New structure.
498         (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
499         i386 debugging register hooks.
500         * NEWS: Mention this.
501
502 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
503
504         * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
505         vector data transfer instructions.
506         (arm_record_coproc_data_proc): Updated.
507
508 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
509
510         * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
511         arm_record_exreg_ld_st_insn.
512         (arm_record_exreg_ld_st_insn): Add record handler for ex-register
513         load/store insns.
514
515 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
516
517         * arm-tdep.c (arm_record_coproc_data_proc): Updated.
518         (arm_record_vfp_data_proc_insn): Added record handler for VFP data
519         processing instructions.
520
521 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
522
523         * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
524         for advance SIMD struct ld/st insn.
525         (thumb2_record_decode_insn_handler): Replace stub handler with
526         thumb2_record_asimd_struct_ld_st.
527
528 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
529
530         * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
531         for asimd, vfp and coprocessor insns.
532         (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
533         and coprocessor insns.
534         (thumb2_record_coproc_insn): New function.
535         (thumb2_record_decode_insn_handler): Update coprocessor insns record
536         handlers.
537         (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
538         opcode 110 insns.
539
540 2014-09-13  Doug Evans  <xdje42@gmail.com>
541
542         * NEWS: Mention new "queue-signal" command.
543         * infcmd.c (queue_signal_command): New function.
544         (_initialize_infcmd): Add new queue-signal command.
545
546 2014-09-13  Doug Evans  <xdje42@gmail.com>
547
548         * linux-nat.c (wait_lwp): Add debugging printf.
549         (linux_nat_wait_1): Ditto.
550
551 2014-09-12  Pedro Alves  <palves@redhat.com>
552
553         * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
554         (create_and_insert_solib_event_breakpoint): New functions.
555         * breakpoint.h (create_and_insert_solib_event_breakpoint)
556         (remove_solib_event_breakpoints_at_next_stop): New declarations.
557         * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
558         (remove_dbx_link_breakpoint): Delete function.
559         (insert_dbx_link_bpt_in_file): Use
560         create_and_insert_solib_event_breakpoint instead of
561         deprecated_insert_raw_breakpoint.
562         (procfs_wait): Don't check whether we hit __dbx_link here.
563         (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
564         here.
565         * solib-irix.c (base_breakpoint): Delete global.
566         (disable_break): Delete function.
567         (enable_break): Use create_solib_event_breakpoint
568         instead of deprecated_insert_raw_breakpoint.
569         (irix_solib_handle_event): New function.
570         (irix_solib_create_inferior_hook): Don't run the target or disable
571         the mapping-complete breakpoint here.
572         (_initialize_irix_solib): Install irix_solib_handle_event as
573         so_ops->handle_event hook.
574
575 2014-09-12  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
576             Ulrich Weigand  <uweigand@de.ibm.com>
577
578         PR tdep/17379
579         * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
580         instead of read_memory_unsigned_integer.
581
582 2014-09-12  Gary Benson  <gbenson@redhat.com>
583
584         * nat/linux-waitpid.c: Include common-defs.h.
585         [GDBSERVER]: Add FIXME comment.
586         [!GDBSERVER]: Don't include defs.h or signal.h.
587         (linux_debug) [!GDBSERVER]: Remove empty block.
588
589 2014-09-12  Gary Benson  <gbenson@redhat.com>
590
591         * nat/x86-dregs.c: Include common-defs.h and break-common.h.
592         Don't include defs.h or server.h.
593
594 2014-09-12  Gary Benson  <gbenson@redhat.com>
595
596         * nat/linux-btrace.c: Include common-defs.h.
597         Don't include defs.h, server.h or gdbthread.h.
598         * nat/linux-btrace.h (struct target_ops): New forward declaration.
599
600 2014-09-12  Gary Benson  <gbenson@redhat.com>
601
602         * common/agent.c: Include common-defs.h.
603         Don't include defs.h or server.h.
604         * common/buffer.c: Likewise.
605         * common/common-debug.c: Likewise.
606         * common/common-utils.c: Likewise.
607         * common/errors.c: Likewise.
608         * common/filestuff.c: Likewise.
609         * common/format.c: Likewise.
610         * common/gdb_vecs.c: Likewise.
611         * common/print-utils.c: Likewise.
612         * common/ptid.c: Likewise.
613         * common/rsp-low.c: Likewise.
614         * common/signals.c: Likewise.
615         * common/vec.c: Likewise.
616         * common/xml-utils.c: Likewise.
617         * nat/linux-osdata.c: Likewise.
618         * nat/linux-procfs.c: Likewise.
619         * nat/linux-ptrace.c: Likewise.
620         * nat/mips-linux-watch.c: Likewise.
621         * target/waitstatus.c: Likewise.
622
623 2014-09-12  Tom Tromey  <tromey@redhat.com>
624             Gary Benson  <gbenson@redhat.com>
625
626         * common/common-regcache.h: New file.
627         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
628         * regcache.h: Include common-regcache.h.
629         (regcache_read_pc): Don't declare.
630         * regcache.c (get_thread_regcache_for_ptid): New function.
631         * nat/linux-btrace.c: Don't include regcache.h.
632         Include common-regcache.h.
633         (perf_event_read_bts): Use get_thread_regcache_for_ptid.
634
635 2014-09-11  Thomas Schwinge  <thomas@codesourcery.com>
636
637         * regcache.h (struct regset): Declare.
638
639 2014-09-11  Pedro Alves  <palves@redhat.com>
640
641         PR gdb/17347
642         * main.c: Include "infrun.h".
643         (catch_command_errors, catch_command_errors_const): Wait for the
644         foreground command to complete.
645         * top.c (maybe_wait_sync_command_done): New function, factored out
646         from ...
647         (maybe_wait_sync_command_done): ... here.
648         * top.h (maybe_wait_sync_command_done): New declaration.
649
650 2014-09-11  Tom Tromey  <tromey@redhat.com>
651             Gary Benson  <gbenson@redhat.com>
652
653         * common/symbol.h: New file.
654         * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
655         * minsyms.c (find_minimal_symbol_address): New function.
656         * common/agent.c: Include common/symbol.h.
657         [!GDBSERVER]: Don't include objfiles.h.
658         (agent_look_up_symbols): Use find_minimal_symbol_address.
659
660 2014-09-11  Gary Benson  <gbenson@redhat.com>
661
662         * target/target.h (target_stop_ptid, target_continue_ptid):
663         Declare.
664         * target.c (target_stop_ptid, target_continue_ptid): New
665         functions.
666         * common/agent.c [!GDBSERVER]: Don't include infrun.h.
667         (agent_run_command): Always use target_stop_ptid and
668         target_continue_ptid.
669
670 2014-09-11  Tom Tromey  <tromey@redhat.com>
671             Gary Benson  <gbenson@redhat.com>
672
673         * target/target.h: New file.
674         * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
675         * target.h: Include target/target.h.
676         (target_read_memory, target_write_memory): Don't declare.
677         * target.c (target_read_uint32): New function.
678         * common/agent.c: Include target/target.h.
679         [!GDBSERVER]: Don't include target.h.
680         (helper_thread_id): Type changed to uint32_t.
681         (agent_get_helper_thread_id): Use target_read_uint32.
682         (agent_run_command): Always use target_read_memory and
683         target_write_memory.
684         (agent_capability): Type changed to uint32_t.
685         (agent_capability_check): Use target_read_uint32.
686
687 2014-09-11  Gary Benson  <gbenson@redhat.com>
688
689         * common/common-debug.h (show_debug_regs): Declare.
690         * common/common-debug.c (show_debug_regs): Define.
691         * aarch64-linux-nat.c (debug_hw_points): Don't define.  Replace
692         all uses with show_debug_regs.  Replace all uses that considered
693         debug_hw_points as a multi-value integer with straight boolean
694         uses.
695         * x86-nat.c (debug_hw_points): Don't define.  Replace all uses
696         with show_debug_regs.
697         * nat/x86-dregs.c (debug_hw_points): Don't declare.  Replace
698         all uses with show_debug_regs.
699         * mips-linux-nat.c (maint_show_dr): Don't define.  Replace all
700         uses with show_debug_regs.
701
702 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
703
704         * findvar.c (address_from_register): Handle targets requiring
705         a special conversion routine even for plain pointer types.
706
707 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
708
709         * rs6000-nat.c (exec_one_dummy_insn): Remove.
710         (store_register): Do not call exec_one_dummy_insn.
711
712 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
713
714         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
715         dereference it first.  Use value_enclosing_type instead of
716         value_type.
717         (ada_array_length): Likewise.
718
719 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
720
721         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
722         Adjust function implementation and documentation accordingly.
723         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
724         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
725         Update call to ada_value_ptr_subscript.
726
727 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
728
729         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
730         instead of VAL's type.
731
732 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
733
734         * amd64-linux-nat.c: Add <sys/uio.h> #include.
735
736 2014-09-09  Doug Evans  <xdje42@gmail.com>
737
738         PR guile/17367
739         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
740         last parameter to pkg-config, not first.
741         * configure.ac: Pass --with-guile provided pkg-config path to
742         GDB_GUILE_PROGRAM_NAMES.
743         * configure: Regenerate.
744
745 2014-09-09  Gabriel Krisman Bertazi  <gabriel@krisman.be>
746
747         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
748         Bertazi".
749
750 2014-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
751
752         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
753         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
754         the list of sections determining GDB_OSABI_IRIX.
755
756 2014-09-09  James Hogan  <james.hogan@imgtec.com>
757
758         * MAINTAINERS (Write After Approval): Add "James Hogan".
759
760 2014-09-09  James Hogan  <james.hogan@imgtec.com>
761
762         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
763
764 2014-09-09  Joel Brobecker  <brobecker@adacore.com>
765
766         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
767
768 2014-09-08  Doug Evans  <xdje42@gmail.com>
769
770         PR 17247
771         * guile.c: #include <signal.h>.
772         (_initialize_guile): Block SIGCHLD while initializing Guile.
773
774         Replaces the following, which is reverted.
775
776         2014-07-26  Doug Evans  <xdje42@gmail.com>
777
778         PR 17185
779         * configure.ac: Add check for header gc/gc.h.
780         Add check for function setenv.
781         * configure: Regenerate.
782         * config.in: Regenerate.
783         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
784
785 2014-09-08  Doug Evans  <xdje42@gmail.com>
786
787         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
788         with named constant.  Fix style of pointer comparison.
789         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
790
791 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
792
793         PR gdb/17035
794         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
795         decide whether we display the command on "show user".
796         * cli/cli-script.c (show_user_1): Only verify cmdlines after
797         printing command name.
798         * cli/cli-decode.h (cli_user_command_p): Declare new function.
799         * cli/cli-decode.c (cli_user_command_p): Create helper function
800         to verify whether cmd_list_element is a user-defined command.
801
802 2014-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
803
804         PR python/17355
805         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
806         Fix goto out of TRY_CATCH.
807
808 2014-09-06  Doug Evans  <xdje42@gmail.com>
809             Tom Tromey  <tromey@redhat.com>
810
811         PR 15276
812         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
813         $_any_caller_matches.
814         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
815         * python/lib/gdb/function/caller_is.py: New file.
816
817 2014-09-06  Doug Evans  <xdje42@gmail.com>
818
819         * infcmd.c (program_info): Fix typo.
820
821 2014-09-05  Sergio Durigan Junior  <sergiodj@redhat.com>
822
823         PR gdb/17235
824         * stap-probe.c (stap_parse_single_operand): Delete unused variable
825         'number'.  New variable 'has_digit'.  Rewrite code to deal with
826         subexpressions on SDT probes.
827
828 2014-09-04  Pedro Alves  <palves@redhat.com>
829
830         * c-exp.y (parse_number): Skip handling base-switching prefixes if
831         the input is only one character long.
832
833 2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
834
835         PR fortran/17237
836         * f-valprint.c (f_val_print): Specify the correct print option to
837         use when printing integer values.
838
839 2014-09-04  Gary Benson  <gbenson@redhat.com>
840
841         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
842         Remove code to cope with LWPs wrapped as PIDs.
843         Add assertions to ensure no wrapped LWPs are passed.
844
845 2014-09-04  Pedro Alves  <palves@redhat.com>
846
847         * value.c (value_ranges_copy_adjusted): New function, factored out
848         from ...
849         (value_contents_copy_raw): ... here.
850         (unpack_value_bits_as_long_1): Rename back to ...
851         (unpack_bits_as_long): ... this.  Remove 'original_value' and
852         'result' parameters.  Change return type to LONGEST.
853         (unpack_value_bits_as_long): Delete.
854         (unpack_value_field_as_long_1): Delete.
855         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
856         (unpack_value_bitfield): New function.
857         (value_field_bitfield): Reimplement using unpack_value_bitfield.
858         (value_fetch_lazy): Use unpack_value_bitfield.
859         * value.h (unpack_value_bits_as_long): Delete declaration.
860
861 2014-09-03  Sasha Smundak  <asmundak@google.com>
862
863         * python/py-frame.c (frapy_read_register): New function.
864
865 2014-09-03  James Hogan  <james.hogan@imgtec.com>
866
867         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
868         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
869
870 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
871
872         PR python/16699
873         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
874         function.
875         (add_cmd): Set "completer_handle_brkchars" to NULL.
876         * cli/cli-decode.h (struct cmd_list_element)
877         <completer_handle_brkchars>: New field.
878         * command.h (completer_ftype_void): New typedef.
879         (set_cmd_completer_handle_brkchars): New prototype.
880         * completer.c (set_gdb_completion_word_break_characters): New
881         function.
882         (complete_line_internal): Call "completer_handle_brkchars"
883         callback from command.
884         * completer.h: Include "command.h".
885         (set_gdb_completion_word_break_characters): New prototype.
886         * python/py-cmd.c (cmdpy_completer_helper): New function.
887         (cmdpy_completer_handle_brkchars): New function.
888         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
889         (cmdpy_init): Set completer_handle_brkchars to
890         cmdpy_completer_handle_brkchars.
891
892 2014-09-03  Gary Benson  <gbenson@redhat.com>
893
894         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
895         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
896         Loop conditions changed to equivalent form.
897         (struct x86_debug_reg_state): Updated dr_ref_count comment.
898         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
899         ALL_DEBUG_ADDRESS_REGISTERS.
900
901 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
902
903         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
904         description fix.
905
906 2014-09-02  Doug Evans  <dje@google.com>
907
908         * typeprint.c (find_global_typedef): Fix comment.
909
910 2014-09-02  Gary Benson  <gbenson@redhat.com>
911
912         * i386-nat.h: Renamed as...
913         * x86-nat.h: New file.  All type, function and variable name
914         prefixes changed from "i386_" to "x86_".  All references updated.
915         * i386-nat.c: Renamed as...
916         * x86-nat.c: New file.  All type, function and variable name
917         prefixes changed from "i386_" to "x86_".  All references updated.
918         * common/i386-xstate.h: Renamed as...
919         * common/x86-xstate.h: New file.  All type, function and variable
920         name prefixes changed from "i386_" to "x86_".  All references
921         updated.
922         * nat/i386-cpuid.h: Renamed as...
923         * nat/x86-cpuid.h: New file.  All type, function and variable name
924         prefixes changed from "i386_" to "x86_".  All references updated.
925         * nat/i386-gcc-cpuid.h: Renamed as...
926         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
927         name prefixes changed from "i386_" to "x86_".  All references
928         updated.
929         * nat/i386-dregs.h: Renamed as...
930         * nat/x86-dregs.h: New file.  All type, function and variable name
931         prefixes changed from "i386_" to "x86_".  All references updated.
932         * nat/i386-dregs.c: Renamed as...
933         * nat/x86-dregs.c: New file.  All type, function and variable name
934         prefixes changed from "i386_" to "x86_".  All references updated.
935
936 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
937
938         * varobj.c (_initialize_varobj): Move to the end of file.
939
940 2014-08-29  Gary Benson  <gbenson@redhat.com>
941
942         * common/common-exceptions.h: New file.
943         * common/common-exceptions.c: Likewise.
944         * Makefile.in (SFILES): Add common/common-exceptions.c.
945         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
946         (COMMON_OBS): Add common-exceptions.o.
947         (common-exceptions.o): New rule.
948         * exceptions.h (common-exceptions.h): Include.
949         (gdb_setjmp.h): Do not include.
950         (return_reason): Moved to common-exceptions.h.
951         (enum return_reason): Likewise.
952         (RETURN_MASK): Likewise.
953         (typedef return_mask): Likewise.
954         (enum errors): Likewise.
955         (struct gdb_exception): Likewise.
956         (exceptions_state_mc_init): Likewise.
957         (exceptions_state_mc_action_iter): Likewise.
958         (exceptions_state_mc_action_iter_1): Likewise.
959         (TRY_CATCH): Likewise.
960         (throw_exception): Likewise.
961         (throw_verror): Likewise.
962         (throw_vquit): Likewise.
963         (throw_error): Likewise.
964         (throw_quit): Likewise.
965         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
966         (enum catcher_action): Likewise.
967         (struct catcher): Likewise.
968         (current_catcher): Likewise.
969         (catcher_list_size): Likewise.
970         (exceptions_state_mc_init): Likewise.
971         (catcher_pop): Likewise.
972         (exceptions_state_mc): Likewise.
973         (exceptions_state_mc_action_iter): Likewise.
974         (exceptions_state_mc_action_iter_1): Likewise.
975         (throw_exception): Likewise.
976         (exception_messages): Likewise.
977         (exception_messages_size): Likewise.
978         (throw_it): Likewise.
979         (throw_verror): Likewise.
980         (throw_vquit): Likewise.
981         (throw_error): Likewise.
982         (throw_quit): Likewise.
983         (prepare_to_throw_exception): New function.
984
985 2014-08-29  Gary Benson  <gbenson@redhat.com>
986
987         * common/gdb_setjmp.h: New file.
988         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
989         * configure.ac: Move sigsetjmp check...
990         * common/common.m4: ...here.
991         * configure: Regenerate.
992         * cp-support.c (SIGJMP_BUF): Delete.
993         (SIGSETJMP): Likewise.
994         (SIGLONGJMP): Likewise.
995         * exceptions.h (gdb_setjmp.h): Include.
996         (setjmp.h): Do not include.
997         (EXCEPTIONS_SIGJMP_BUF): Delete.
998         (EXCEPTIONS_SIGSETJMP): Likewise.
999         (EXCEPTIONS_SIGLONGJMP): Likewise.
1000         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1001         from gdb_setjmp.h.
1002         * exceptions.c: Likewise.
1003
1004 2014-08-29  Gary Benson  <gbenson@redhat.com>
1005
1006         * cleanups.h: Moved to...
1007         * common/cleanups.h: New file.
1008         * cleanups.c: Moved to...
1009         * common/cleanups.c: New file.  Include common-defs.h and
1010         cleanups.h.  Do not include defs.h.
1011         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1012         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1013         (cleanups.o): New rule.
1014
1015 2014-08-29  Gary Benson  <gbenson@redhat.com>
1016
1017         * common/errors.h (internal_warning): New declaration.
1018         (internal_vwarning): Likewise.
1019         * common/errors.c (internal_warning): New function.
1020         * utils.h (internal_warning): Don't declare.
1021         (internal_vwarning): Likewise.
1022         * utils.c (internal_warning): Removed.
1023
1024 2014-08-29  Gary Benson  <gbenson@redhat.com>
1025
1026         * main.c (captured_main): Use warning during startup.
1027         Prefix startup warning messages with command name.
1028
1029 2014-08-29  Gary Benson  <gbenson@redhat.com>
1030
1031         * main.c (captured_main): Handle usage errors with error.
1032
1033 2014-08-29  Gary Benson  <gbenson@redhat.com>
1034
1035         * go32-nat.c (go32_create_inferior): Replace a fprintf/
1036         exit pair with a call to error.  Wrap the message with _().
1037
1038 2014-08-29  Gary Benson  <gbenson@redhat.com>
1039
1040         * main.c (captured_main): Replace a fprintf/exit
1041         pair with a call to error.  Wrap the message with _().
1042
1043 2014-08-29  Gary Benson  <gbenson@redhat.com>
1044
1045         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1046         pairs with calls to error.  Wrap the message with _().
1047
1048 2014-08-29  Gary Benson  <gbenson@redhat.com>
1049
1050         * utils.c (vwarning): Protect calls to target_terminal_ours
1051         and wrap_here.
1052
1053 2014-08-29  Gary Benson  <gbenson@redhat.com>
1054
1055         * exceptions.c (print_flush): Protect calls to
1056         target_terminal_ours and wrap_here.
1057
1058 2014-08-29  Gary Benson  <gbenson@redhat.com>
1059
1060         * utils.h (filtered_printing_initialized): New declaration.
1061         * utils.c (abort_with_message): New function.
1062         (internal_vproblem): Use abort_with_message for first level
1063         recursive internal problems, and if gdb_stderr is not set up.
1064         Protect calls to target_terminal_ours, begin_line and query.
1065
1066 2014-08-28  Doug Evans  <dje@google.com>
1067
1068         * symtab.c (in_prologue): Move definition to better spot.
1069         (skip_prologue_using_sal): Ditto.
1070
1071 2014-08-28  Doug Evans  <dje@google.com>
1072
1073         * symtab.c (find_function_start_sal): Move definition to better spot.
1074
1075 2014-08-28  Yao Qi  <yao@codesourcery.com>
1076
1077         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1078         found_stack_adjust in forward scan.  Remove condition check
1079         on found_stack_adjust which is always true.  Indent the code.
1080
1081 2014-08-28  Yao Qi  <yao@codesourcery.com>
1082
1083         * dwarf2read.c (dwarf_decode_lines): Update declaration.
1084         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1085         (dwarf_decode_lines): Remove argument
1086         want_line_info.  Remove condition check on want_line_info.
1087         Callers update.
1088
1089 2014-08-27  Doug Evans  <dje@google.com>
1090
1091         * dwarf2read.c (dwarf_record_line): Fix typo.
1092
1093 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
1094
1095         * target.h (struct target_ops::to_terminal_save_ours): Remove
1096         declaration.
1097         (target_terminal_save_ours): Remove macro.
1098         * target-delegates.c: Regenerate.
1099         * inf-child.c (inf_child_target): Don't set the nonexistent
1100         field to_terminal_save_ours.
1101         * inferior.h (child_terminal_save_ours): Remove declaration.
1102         * terminal.h (gdb_save_tty_state): New declaration.
1103         * inflow.c (child_terminal_save_ours): Rename to ...
1104         (gdb_save_tty_state): ... this.
1105         * tui/tui.c: Include terminal.h.
1106         (tui_enable): Use gdb_save_tty_state instead of
1107         target_terminal_save_ours.
1108         (tui_disable): Likewise.
1109
1110 2014-08-25  Doug Evans  <dje@google.com>
1111
1112         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1113         Pass NULL instead of 0 for context pointer.
1114
1115 2014-08-25  Yao Qi  <yao@codesourcery.com>
1116
1117         * dwarf2read.c: Fix grammatical error.
1118
1119 2014-08-24  Yao Qi  <yao@codesourcery.com>
1120
1121         * dwarf2read.c (scan_partial_symbols):  Update comments.
1122         Rename argument 'need_pc' with 'set_addrmap'.
1123         ï¼ˆadd_partial_namespace): Rename argument 'need_pc' with
1124         'set_addrmap'.
1125         (add_partial_module): Likewise.
1126         (add_partial_subprogram): Likewise.  Update comments.
1127         (dwarf2_name): Fix typo.
1128
1129 2014-08-22  Doug Evans  <dje@google.com>
1130
1131         PR 17276
1132         * dwarf2read.c (dwarf_record_line_p): New function.
1133         (dwarf_decode_lines_1): Ignore subsequent line number entries
1134         for the same line if any entry had a non-zero discriminator.
1135
1136 2014-08-22  Doug Evans  <dje@google.com>
1137
1138         * buildsym.h (record_line_ftype): New typedef.
1139         (record_line): Use it.
1140         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1141         (dwarf_decode_lines_1): Call them.
1142
1143 2014-08-22  Yao Qi  <yao@codesourcery.com>
1144
1145         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1146         (ctf_end): Remove code.
1147
1148 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
1149
1150         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1151         (linux_make_corefile_notes): call update_thread_list, protected against
1152         exceptions.
1153
1154 2014-08-21  Pedro Alves  <palves@redhat.com>
1155
1156         * infcmd.c (attach_command): Remove comment.
1157
1158 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
1159
1160         * aarch64-linux-nat.c (dr_changed_t): Change the type from
1161         unsigned LONGEST to ULONGEST.
1162
1163 2014-08-20  Pedro Alves  <palves@redhat.com>
1164
1165         * Makefile.in (check-read1): New rule.
1166
1167 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
1168
1169         * value.c (value_from_contents_and_address): Strip resolved_type's
1170         typedef layers before checking its TYPE_DATA_LOCATION.
1171
1172 2014-08-20  Pedro Alves  <palves@redhat.com>
1173
1174         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1175
1176 2014-08-20  Yao Qi  <yao@codesourcery.com>
1177
1178         * amd64-tdep.c (amd64_classify): Add a blank line after the
1179         example.  Move "*/" to a new line.
1180         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1181         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1182         * dwarf2read.c (psymtab_include_file_name): Likewise.
1183
1184 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
1185             Pedro Alves  <palves@redhat.com>
1186
1187         PR symtab/14604
1188         PR symtab/14605
1189         * ada-lang.c (coerce_unspec_val_to_type): Use
1190         value_contents_copy_raw.
1191         * ada-valprint.c (val_print_packed_array_elements): Adjust.
1192         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1193         * cp-valprint.c (cp_print_value_fields): Let the common printing
1194         code handle optimized out values.
1195         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1196         * d-valprint.c (dynamic_array_type): Use
1197         value_bits_any_optimized_out.
1198         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1199         check_any_valid fields.
1200         (check_pieced_value_bits): Delete and inline ...
1201         (check_pieced_synthetic_pointer): ... here.
1202         (check_pieced_value_validity): Delete.
1203         (check_pieced_value_invalid): Delete.
1204         (pieced_value_funcs): Remove check_validity and check_any_valid
1205         fields.
1206         (read_pieced_value): Use mark_value_bits_optimized_out.
1207         (write_pieced_value): Switch to use
1208         mark_value_bytes_optimized_out.
1209         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1210         of assuming the whole value is optimized out.
1211         * findvar.c (read_frame_register_value): Remove special handling
1212         of optimized out registers.
1213         (value_from_register): Use mark_value_bytes_optimized_out.
1214         * frame-unwind.c (frame_unwind_got_optimized): Use
1215         mark_value_bytes_optimized_out.
1216         * jv-valprint.c (java_value_print): Adjust.
1217         (java_print_value_fields): Let the common printing code handle
1218         optimized out values.
1219         * mips-tdep.c (mips_print_register): Remove special handling of
1220         optimized out registers.
1221         * opencl-lang.c (lval_func_check_validity): Delete.
1222         (lval_func_check_any_valid): Delete.
1223         (opencl_value_funcs): Remove check_validity and check_any_valid
1224         fields.
1225         * p-valprint.c (pascal_object_print_value_fields): Let the common
1226         printing code handle optimized out values.
1227         * stack.c (read_frame_arg): Remove special handling of optimized
1228         out values.  Fetch both VAL and ENTRYVAL before comparing
1229         contents.  Adjust to value_available_contents_eq rename.
1230         * valprint.c (valprint_check_validity)
1231         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1232         (val_print_array_elements): Adjust.
1233         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1234         (value_bits_any_optimized_out): New function.
1235         (value_entirely_covered_by_range_vector): New function, factored
1236         out from value_entirely_unavailable.
1237         (value_entirely_unavailable): Reimplement.
1238         (value_entirely_optimized_out): New function.
1239         (insert_into_bit_range_vector): New function, factored out from
1240         mark_value_bits_unavailable.
1241         (mark_value_bits_unavailable): Reimplement.
1242         (struct ranges_and_idx): New struct.
1243         (find_first_range_overlap_and_match): New function, factored out
1244         from value_available_contents_bits_eq.
1245         (value_available_contents_bits_eq): Rename to ...
1246         (value_contents_bits_eq): ... this.  Check both unavailable
1247         contents and optimized out contents.
1248         (value_available_contents_eq): Rename to ...
1249         (value_contents_eq): ... this.
1250         (allocate_value_lazy): Remove reference to the old optimized_out
1251         boolean.
1252         (allocate_optimized_out_value): Use
1253         mark_value_bytes_optimized_out.
1254         (require_not_optimized_out): Adjust to check whether the
1255         optimized_out vec is empty.
1256         (ranges_copy_adjusted): New function, factored out from
1257         value_contents_copy_raw.
1258         (value_contents_copy_raw): Also copy the optimized out ranges.
1259         Assert the destination ranges aren't optimized out.
1260         (value_contents_copy): Update comment, remove call to
1261         require_not_optimized_out.
1262         (value_contents_equal): Adjust to check whether the optimized_out
1263         vec is empty.
1264         (set_value_optimized_out, value_optimized_out_const): Delete.
1265         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1266         New functions.
1267         (value_entirely_optimized_out, value_bits_valid): Delete.
1268         (value_copy): Take a VEC copy of the 'optimized_out' field.
1269         (value_primitive_field): Remove special handling of optimized out.
1270         (value_fetch_lazy): Assert that lazy values have no unavailable
1271         regions.  Use value_bits_any_optimized_out.  Remove some special
1272         handling for optimized out values.
1273         * value.h: Add intro comment about <optimized out> and
1274         <unavailable>.
1275         (struct lval_funcs): Remove check_validity and check_any_valid
1276         fields.
1277         (set_value_optimized_out, value_optimized_out_const): Remove.
1278         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1279         New declarations.
1280         (value_bits_any_optimized_out): New declaration.
1281         (value_bits_valid): Delete declaration.
1282         (value_available_contents_eq): Rename to ...
1283         (value_contents_eq): ... this, and extend comments.
1284
1285 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
1286
1287         Fix -fsanitize=address on unreadable inferior strings.
1288         * valprint.c (val_print_string): Fix access before BUFFER.
1289
1290 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
1291
1292         * target.c (target_struct_size): Remove.
1293         (target_struct_allocsize): Remove.
1294         (DEFAULT_ALLOCSIZE): Remove.
1295         (target_ops_p): New typedef.
1296         (DEF_VEC_P (target_ops_p)): New vector type.
1297         (target_structs): Change type to VEC (target_ops_p).
1298         (add_target_with_completer): Replace "push" code by VEC_safe_push.
1299         (find_default_run_target): Rewrite for loop following changes to
1300         target_structs.
1301
1302 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
1303
1304         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1305         Adjust code accordingly.  Adjust function description comment.
1306
1307 2014-08-19  Yao Qi  <yao@codesourcery.com>
1308
1309         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1310         types.
1311
1312 2014-08-19  Alan Modra  <amodra@gmail.com>
1313
1314         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1315         * config.in: Regenerate.
1316         * configure: Regenerate.
1317
1318 2014-08-19  Tom Tromey  <tromey@redhat.com>
1319             Gary Benson  <gbenson@redhat.com>
1320
1321         * common/common-debug.h: New file.
1322         * common/common-debug.c: Likewise.
1323         * debug.c: Likewise.
1324         * Makefile.in (SFILES): Add common/common-debug.c.
1325         (HFILES_NO_SRCDIR): Add common/common-debug.h.
1326         (COMMON_OBS): Add common-debug.o and debug.o.
1327         (common-debug.o): New rule.
1328         * common/common-defs.h: Include common-debug.h.
1329         * common/agent.c (debug_agent_printf): New function.
1330         (DEBUG_AGENT): Redefine.
1331         * nat/i386-dregs.c (debug_printf): Undefine.
1332
1333 2014-08-19  Gary Benson  <gbenson@redhat.com>
1334
1335         * common/common-defs.h: Include print-utils.h.
1336         * utils.h: Do not include print-utils.h.
1337
1338 2014-08-19  Tom Tromey  <tromey@redhat.com>
1339             Gary Benson  <gbenson@redhat.com>
1340
1341         * common/common-types.h: New file.
1342         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1343         * common/common-defs.h: Include common-types.h.
1344         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1345         (ULONGEST): Remove.
1346
1347 2014-08-19  Tom Tromey  <tromey@redhat.com>
1348             Gary Benson  <gbenson@redhat.com>
1349
1350         * common/errors.h: New file.
1351         * common/errors.c: Likewise.
1352         * Makefile.in (SFILES): Add common/errors.c.
1353         (HFILES_NO_SRCDIR): Add common/errors.h.
1354         (COMMON_OBS): Add errors.o.
1355         (errors.o): New rule.
1356         * common/common-defs.h: Include errors.h.
1357         * utils.h (perror_with_name, error, verror, warning, vwarning):
1358         Don't declare.
1359         * common/common-utils.h: (malloc_failure, internal_error):
1360         Likewise.
1361
1362 2014-08-19  Gary Benson  <gbenson@redhat.com>
1363
1364         * utils.c (internal_vproblem): Always print the message.
1365
1366 2014-08-18  Doug Evans  <dje@google.com>
1367
1368         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1369
1370 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1371
1372         * ada-typeprint.c (type_is_full_subrange_of_target_type):
1373         Return 0 if TYPE is dynamic.
1374         (print_range): Add handling of dynamic ranges.
1375
1376 2014-08-18  Keven Boell  <keven.boell@intel.com>
1377             Joel Brobecker  <brobecker@adacore.com>
1378
1379         * gdbtypes.h (struct main_type): Add field "data_location".
1380         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1381         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1382         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1383         a dynamic data location.
1384         (resolve_dynamic_type): Add DW_AT_data_location handling.
1385         (copy_recursive, copy_type): Copy the data_location information
1386         when present.
1387         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1388         * value.c (value_from_contents_and_address): Add
1389         DW_AT_data_location handling.
1390
1391 2014-08-18  Keven Boell  <keven.boell@intel.com>
1392             Joel Brobecker  <brobecker@adacore.com>
1393
1394         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1395         field "get_object_address".
1396         * dwarf2expr.c (execute_stack_op): Add handling for
1397         DW_OP_push_object_address.
1398         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1399         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1400         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1401         (dwarf_expr_get_obj_addr): New function.
1402         (dwarf_expr_ctx_funcs): Add get_object_address field.
1403         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1404         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
1405         (dwarf2_evaluate_property): Add parameter "address".  Use it.
1406         (needs_get_obj_addr): New function.
1407         (needs_frame_ctx_funcs): Add get_object_address field.
1408         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1409         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
1410         (resolve_dynamic_array): Likewise.
1411
1412 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1413
1414         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1415         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1416         fixed value for records and unions for which some GNAT encodings
1417         are present.
1418
1419 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1420
1421         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1422         rewrite to avoid "else if" and "else" constructs.  Should be
1423         a no-op in practice.
1424
1425 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1426
1427         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1428         of lexical block.
1429
1430 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
1431
1432         PR c++/17132
1433         * eval.c: Update all calls to find_overload_match.
1434         * valarith.c: Likewise.
1435         (value_user_defined_cpp_op, value_user_defined_op): New
1436         argument NOSIDE.  Update all callers.
1437         * valops.c (find_overload_match): New argument NOSIDE.
1438         * value.h (find_overload_match): Update signature.
1439
1440 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
1441
1442         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1443         'items' methods instead of 'iteritems' method on dictionaries.
1444
1445 2014-08-15  Doug Evans  <dje@google.com>
1446
1447         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1448         closer to use.
1449
1450 2014-08-15  Doug Evans  <dje@google.com>
1451
1452         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1453
1454 2014-08-15  Doug Evans  <dje@google.com>
1455
1456         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1457
1458 2014-08-15  Doug Evans  <dje@google.com>
1459
1460         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1461         unused.
1462
1463 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
1464
1465         * dcache.h: Include target.h, to avoid compile time warnings.
1466
1467 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
1468
1469         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
1470         frame_info" partial declaration.
1471         * gdbarch.h: Regenerate.
1472
1473 2014-08-15  Yao Qi  <yao@codesourcery.com>
1474
1475         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1476         Add parameter 'decode_for_pst_p'.  Callers update.
1477
1478 2014-08-13  Yao Qi  <yao@codesourcery.com>
1479
1480         PR build/17104
1481         * configure.ac: Use local variable 'pos'.
1482         * configure: Regenerated.
1483
1484 2014-08-11  Doug Evans  <dje@google.com>
1485
1486         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1487         message, it is redundant with "Reading symbols from ..." message.
1488
1489 2014-08-10  Doug Evans  <xdje42@gmail.com>
1490
1491         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1492
1493 2014-08-09  Yao Qi  <yao@codesourcery.com>
1494
1495         PR remote/9053
1496         * remote.c (remote_xfer_partial): Remove dead code.
1497
1498 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1499
1500         * ia64-linux-tdep.c: Include "regset.h".
1501         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1502         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1503         (ia64_linux_supply_fpregset): New function.
1504         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1505         (ia64_linux_regset_from_core_section): New function.
1506         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1507         method.
1508
1509 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1510
1511         * m68klinux-tdep.c: Include "regset.h".
1512         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1513         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1514         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1515         (m68k_linux_regset_from_core_section): New function.
1516         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1517         method.
1518
1519 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1520
1521         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1522         function.  Move logic to...
1523         (tilegx_linux_regmap): ... this new register map.
1524         (tilegx_linux_regset): Refer to register map, replace supply
1525         method by regcache_supply_regset, and add collect method.
1526         * tilegx-tdep.h (enum tilegx_regnum): New enum value
1527         TILEGX_FIRST_EASY_REGNUM.
1528
1529 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1530
1531         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1532         that calls regcache_supply_regset and handles the EPC register
1533         separately.  Move main logic to...
1534         (score7_linux_gregmap): ... this new register map.
1535         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1536         (score7_linux_gregset): Refer to register map.  Add collect method.
1537         (score7_linux_regset_from_core_section): Replace
1538         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1539         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1540         (struct regset): Delete unused forward declaraction.
1541         (struct pt_regs): Delete structure definition.
1542         (elf_gregset_t): Delete typedef.
1543
1544 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1545
1546         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1547         (nios2_core_regset): Add collect method.
1548
1549 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1550
1551         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1552         platform-independent and don't write to read-only input buffer.
1553         (m32r_linux_collect_gregset): New function.
1554         (m32r_linux_gregset): Add collect method.
1555
1556 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1557
1558         * hppa-linux-tdep.c (greg_map): Rename to...
1559         (hppa_linux_gregmap): ... this.  Also convert to
1560         regcache_map_entry format.
1561         (hppa_linux_supply_regset): Delete function.
1562         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
1563         (hppa_linux_fpregmap): ... this new register map.
1564         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1565         register map, replace supply method by regcache_supply_regset, and
1566         add collect method regcache_collect_regset.
1567
1568 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1569
1570         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1571         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1572         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1573         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1574         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1575         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1576         (frv_linux_supply_gregset): Replace main logic by call to
1577         regcache_supply_regset, but keep clearing gr32-gr63.
1578         (frv_linux_supply_fpregset): Delete function.
1579         (frv_linux_gregset): Refer to appropriate register map and add
1580         regcache_collect_regset as the collect method.
1581         (frv_linux_fpregset): Likewise.  Also exchange the supply method
1582         by regcache_supply_regset.
1583
1584 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1585
1586         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1587         by call to alpha_supply_int_regs.
1588         (alpha_linux_collect_gregset): New function.
1589         (alpha_linux_supply_fpregset): Replace logic by call to
1590         alpha_supply_fp_regs.
1591         (alpha_linux_collect_fpregset): New function.
1592         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1593
1594 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1595
1596         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1597         by call to regcache_collect_regset.
1598         (supply_gregset, supply_fpregset): Call regcache_supply_regset
1599         instead of aarch64_linux_supply_gregset/_fpregset.
1600         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1601         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1602         header file instead.
1603         (aarch64_linux_supply_gregset, supply_gregset_from_core)
1604         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1605         functions.  Move logic to ...
1606         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1607         register maps.
1608         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1609         refer to new register maps, replace *_regset_from_core by
1610         regcache_supply_regset, and also use regcache_collect_regset.
1611         * aarch64-linux-tdep.h: Include "regset.h".
1612         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1613         Delete prototypes.
1614         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1615         macros, moved from C source file.
1616         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1617         variable declarations.
1618
1619 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1620
1621         * s390-linux-nat.c: Include "regset.h".
1622         (regmap_gregset): Delete macro.
1623         (s390_64_regmap_gregset): New register map for
1624         regcache_supply/_collect_regset.
1625         (s390_64_gregset): New regset.
1626         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1627         (regmap_fpregset): Delete macro.
1628         (s390_native_supply, s390_native_collect): Delete functions.
1629         (supply_gregset, fill_gregset): Replace s390-specific regmap
1630         handling by a call to regcache_supply/_collect_regset.
1631         (supply_fpregset, fill_fpregset): Call regcache_supply/
1632         _collect_regset instead of s390_native_supply/_collect.
1633         (fetch_regset, store_regset): Likewise.  Also change the last
1634         parameter to a regset instead of a regmap.
1635         (s390_linux_fetch_inferior_registers)
1636         (390_linux_store_inferior_registers): Adjust last parameter in
1637         calls to fetch_regset and store_regset.
1638         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1639         (s390_gregmap): ... this.  Also make static const and convert to
1640         regcache_map_entry format.
1641         (s390x_regmap_gregset): Delete.
1642         (s390_regmap_fpregset): Rename to...
1643         (s390_fpregmap): ... this.  Make static const and convert to
1644         regcache_map_entry format.
1645         (s390_regmap_upper, s390_regmap_last_break)
1646         (s390x_regmap_last_break, s390_regmap_system_call)
1647         (s390_regmap_tdb): Likewise.
1648         (s390_supply_regset, s390_collect_regset): Remove functions.
1649         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1650         s390_supply_regset.
1651         (s390_gregset, s390_fpregset, s390_upper_regset)
1652         (s390_last_break_regset, s390x_last_break_regset)
1653         (s390_system_call_regset, s390_tdb_regset): Make global and
1654         replace s390_supply/_collect_regset by regcache_supply/
1655         _collect_regset.
1656         (s390x_gregset): Delete.
1657         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1658         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1659         (s390_regmap_fpregset, s390_regmap_last_break)
1660         (s390x_regmap_last_break, s390_regmap_system_call)
1661         (s390_regmap_tdb): Delete global variable declarations.
1662         (s390_gregset, s390_fpregset, s390_last_break_regset)
1663         (s390x_last_break_regset, s390_system_call_regset)
1664         (s390_tdb_regset): New global variable declarations.
1665
1666 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1667
1668         * regcache.c: Include "regset.h".
1669         (regcache_transfer_regset): New local function.
1670         (regcache_supply_regset, regcache_collect_regset): New functions.
1671         * regcache.h (struct regcache_map_entry): New structure.
1672         (REGCACHE_MAP_SKIP): New enum value.
1673         (regcache_supply_regset, regcache_collect_regset): New prototypes.
1674
1675 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1676
1677         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1678         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1679         (ppc_linux_collect_gregset ): Likewise.
1680         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1681         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1682         (ppc_collect_vrregset): Likewise.
1683         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1684         Likewise.
1685
1686 2014-08-07  Yao Qi  <yao@codesourcery.com>
1687
1688         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1689         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1690         * remote.c (remote_read_bytes): Likewise.
1691
1692 2014-08-07  Yao Qi  <yao@codesourcery.com>
1693
1694         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1695
1696 2014-08-07  Yao Qi  <yao@codesourcery.com>
1697
1698         PR remote/17230
1699         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1700         TARGET_XFER_OK instead of 0.
1701
1702 2014-08-07  Gary Benson  <gbenson@redhat.com>
1703
1704         * common/common-defs.h: Include errno.h.
1705         * defs.h: Do not include errno.h.
1706         * ada-typeprint.c: Likewise.
1707         * c-typeprint.c: Likewise.
1708         * core-regset.c: Likewise.
1709         * corefile.c: Likewise.
1710         * corelow.c: Likewise.
1711         * event-loop.c: Likewise.
1712         * f-typeprint.c: Likewise.
1713         * gnu-nat.c: Likewise.
1714         * go32-nat.c: Likewise.
1715         * i386gnu-nat.c: Likewise.
1716         * m2-typeprint.c: Likewise.
1717         * nat/linux-btrace.c: Likewise.
1718         * p-typeprint.c: Likewise.
1719         * procfs.c: Likewise.
1720         * remote-sim.c: Likewise.
1721         * rs6000-nat.c: Likewise.
1722         * target.c: Likewise.
1723         * typeprint.c: Likewise.
1724         * ui-file.c: Likewise.
1725         * valops.c: Likewise.
1726         * valprint.c: Likewise.
1727
1728 2014-08-07  Gary Benson  <gbenson@redhat.com>
1729
1730         * common/common-defs.h: Include string.h.
1731         * aarch64-tdep.c: Do not include string.h.
1732         * ada-exp.y: Likewise.
1733         * ada-lang.c: Likewise.
1734         * ada-lex.l: Likewise.
1735         * ada-typeprint.c: Likewise.
1736         * ada-valprint.c: Likewise.
1737         * aix-thread.c: Likewise.
1738         * alpha-linux-tdep.c: Likewise.
1739         * alpha-mdebug-tdep.c: Likewise.
1740         * alpha-nat.c: Likewise.
1741         * alpha-osf1-tdep.c: Likewise.
1742         * alpha-tdep.c: Likewise.
1743         * alphanbsd-tdep.c: Likewise.
1744         * amd64-dicos-tdep.c: Likewise.
1745         * amd64-linux-tdep.c: Likewise.
1746         * amd64-nat.c: Likewise.
1747         * amd64-sol2-tdep.c: Likewise.
1748         * amd64fbsd-tdep.c: Likewise.
1749         * amd64obsd-tdep.c: Likewise.
1750         * arch-utils.c: Likewise.
1751         * arm-linux-nat.c: Likewise.
1752         * arm-linux-tdep.c: Likewise.
1753         * arm-tdep.c: Likewise.
1754         * arm-wince-tdep.c: Likewise.
1755         * armbsd-tdep.c: Likewise.
1756         * armnbsd-nat.c: Likewise.
1757         * armnbsd-tdep.c: Likewise.
1758         * armobsd-tdep.c: Likewise.
1759         * avr-tdep.c: Likewise.
1760         * ax-gdb.c: Likewise.
1761         * ax-general.c: Likewise.
1762         * bcache.c: Likewise.
1763         * bfin-tdep.c: Likewise.
1764         * breakpoint.c: Likewise.
1765         * build-id.c: Likewise.
1766         * buildsym.c: Likewise.
1767         * c-exp.y: Likewise.
1768         * c-lang.c: Likewise.
1769         * c-typeprint.c: Likewise.
1770         * c-valprint.c: Likewise.
1771         * charset.c: Likewise.
1772         * cli-out.c: Likewise.
1773         * cli/cli-cmds.c: Likewise.
1774         * cli/cli-decode.c: Likewise.
1775         * cli/cli-dump.c: Likewise.
1776         * cli/cli-interp.c: Likewise.
1777         * cli/cli-logging.c: Likewise.
1778         * cli/cli-script.c: Likewise.
1779         * cli/cli-setshow.c: Likewise.
1780         * cli/cli-utils.c: Likewise.
1781         * coffread.c: Likewise.
1782         * common/agent.c: Likewise.
1783         * common/buffer.c: Likewise.
1784         * common/buffer.h: Likewise.
1785         * common/common-utils.c: Likewise.
1786         * common/filestuff.c: Likewise.
1787         * common/filestuff.c: Likewise.
1788         * common/format.c: Likewise.
1789         * common/print-utils.c: Likewise.
1790         * common/rsp-low.c: Likewise.
1791         * common/signals.c: Likewise.
1792         * common/vec.h: Likewise.
1793         * common/xml-utils.c: Likewise.
1794         * core-regset.c: Likewise.
1795         * corefile.c: Likewise.
1796         * corelow.c: Likewise.
1797         * cp-abi.c: Likewise.
1798         * cp-name-parser.y: Likewise.
1799         * cp-support.c: Likewise.
1800         * cp-valprint.c: Likewise.
1801         * cris-tdep.c: Likewise.
1802         * d-exp.y: Likewise.
1803         * darwin-nat.c: Likewise.
1804         * dbxread.c: Likewise.
1805         * dcache.c: Likewise.
1806         * demangle.c: Likewise.
1807         * dicos-tdep.c: Likewise.
1808         * disasm.c: Likewise.
1809         * doublest.c: Likewise.
1810         * dsrec.c: Likewise.
1811         * dummy-frame.c: Likewise.
1812         * dwarf2-frame.c: Likewise.
1813         * dwarf2loc.c: Likewise.
1814         * dwarf2read.c: Likewise.
1815         * elfread.c: Likewise.
1816         * environ.c: Likewise.
1817         * eval.c: Likewise.
1818         * event-loop.c: Likewise.
1819         * exceptions.c: Likewise.
1820         * exec.c: Likewise.
1821         * expprint.c: Likewise.
1822         * f-exp.y: Likewise.
1823         * f-lang.c: Likewise.
1824         * f-typeprint.c: Likewise.
1825         * f-valprint.c: Likewise.
1826         * fbsd-nat.c: Likewise.
1827         * findcmd.c: Likewise.
1828         * findvar.c: Likewise.
1829         * fork-child.c: Likewise.
1830         * frame.c: Likewise.
1831         * frv-linux-tdep.c: Likewise.
1832         * frv-tdep.c: Likewise.
1833         * gdb.c: Likewise.
1834         * gdb_bfd.c: Likewise.
1835         * gdbarch.c: Likewise.
1836         * gdbarch.sh: Likewise.
1837         * gdbtypes.c: Likewise.
1838         * gnu-nat.c: Likewise.
1839         * gnu-v2-abi.c: Likewise.
1840         * gnu-v3-abi.c: Likewise.
1841         * go-exp.y: Likewise.
1842         * go-lang.c: Likewise.
1843         * go32-nat.c: Likewise.
1844         * guile/guile.c: Likewise.
1845         * guile/scm-auto-load.c: Likewise.
1846         * hppa-hpux-tdep.c: Likewise.
1847         * hppa-linux-nat.c: Likewise.
1848         * hppanbsd-tdep.c: Likewise.
1849         * hppaobsd-tdep.c: Likewise.
1850         * i386-cygwin-tdep.c: Likewise.
1851         * i386-dicos-tdep.c: Likewise.
1852         * i386-linux-tdep.c: Likewise.
1853         * i386-nto-tdep.c: Likewise.
1854         * i386-sol2-tdep.c: Likewise.
1855         * i386-tdep.c: Likewise.
1856         * i386bsd-tdep.c: Likewise.
1857         * i386gnu-nat.c: Likewise.
1858         * i386nbsd-tdep.c: Likewise.
1859         * i386obsd-tdep.c: Likewise.
1860         * i387-tdep.c: Likewise.
1861         * ia64-libunwind-tdep.c: Likewise.
1862         * ia64-linux-nat.c: Likewise.
1863         * inf-child.c: Likewise.
1864         * inf-ptrace.c: Likewise.
1865         * inf-ttrace.c: Likewise.
1866         * infcall.c: Likewise.
1867         * infcmd.c: Likewise.
1868         * inflow.c: Likewise.
1869         * infrun.c: Likewise.
1870         * interps.c: Likewise.
1871         * iq2000-tdep.c: Likewise.
1872         * irix5-nat.c: Likewise.
1873         * jv-exp.y: Likewise.
1874         * jv-lang.c: Likewise.
1875         * jv-typeprint.c: Likewise.
1876         * jv-valprint.c: Likewise.
1877         * language.c: Likewise.
1878         * linux-fork.c: Likewise.
1879         * linux-nat.c: Likewise.
1880         * lm32-tdep.c: Likewise.
1881         * m2-exp.y: Likewise.
1882         * m2-typeprint.c: Likewise.
1883         * m32c-tdep.c: Likewise.
1884         * m32r-linux-nat.c: Likewise.
1885         * m32r-linux-tdep.c: Likewise.
1886         * m32r-rom.c: Likewise.
1887         * m32r-tdep.c: Likewise.
1888         * m68hc11-tdep.c: Likewise.
1889         * m68k-tdep.c: Likewise.
1890         * m68kbsd-tdep.c: Likewise.
1891         * m68klinux-nat.c: Likewise.
1892         * m68klinux-tdep.c: Likewise.
1893         * m88k-tdep.c: Likewise.
1894         * machoread.c: Likewise.
1895         * macrocmd.c: Likewise.
1896         * main.c: Likewise.
1897         * mdebugread.c: Likewise.
1898         * mem-break.c: Likewise.
1899         * memattr.c: Likewise.
1900         * memory-map.c: Likewise.
1901         * mep-tdep.c: Likewise.
1902         * mi/mi-cmd-break.c: Likewise.
1903         * mi/mi-cmd-disas.c: Likewise.
1904         * mi/mi-cmd-env.c: Likewise.
1905         * mi/mi-cmd-stack.c: Likewise.
1906         * mi/mi-cmd-var.c: Likewise.
1907         * mi/mi-cmds.c: Likewise.
1908         * mi/mi-console.c: Likewise.
1909         * mi/mi-getopt.c: Likewise.
1910         * mi/mi-interp.c: Likewise.
1911         * mi/mi-main.c: Likewise.
1912         * mi/mi-parse.c: Likewise.
1913         * microblaze-rom.c: Likewise.
1914         * microblaze-tdep.c: Likewise.
1915         * mingw-hdep.c: Likewise.
1916         * minidebug.c: Likewise.
1917         * minsyms.c: Likewise.
1918         * mips-irix-tdep.c: Likewise.
1919         * mips-linux-tdep.c: Likewise.
1920         * mips-tdep.c: Likewise.
1921         * mips64obsd-tdep.c: Likewise.
1922         * mipsnbsd-tdep.c: Likewise.
1923         * mipsread.c: Likewise.
1924         * mn10300-linux-tdep.c: Likewise.
1925         * mn10300-tdep.c: Likewise.
1926         * monitor.c: Likewise.
1927         * moxie-tdep.c: Likewise.
1928         * mt-tdep.c: Likewise.
1929         * nat/linux-btrace.c: Likewise.
1930         * nat/linux-osdata.c: Likewise.
1931         * nat/linux-procfs.c: Likewise.
1932         * nat/linux-ptrace.c: Likewise.
1933         * nat/linux-waitpid.c: Likewise.
1934         * nbsd-tdep.c: Likewise.
1935         * nios2-linux-tdep.c: Likewise.
1936         * nto-procfs.c: Likewise.
1937         * nto-tdep.c: Likewise.
1938         * objc-lang.c: Likewise.
1939         * objfiles.c: Likewise.
1940         * opencl-lang.c: Likewise.
1941         * osabi.c: Likewise.
1942         * osdata.c: Likewise.
1943         * p-exp.y: Likewise.
1944         * p-lang.c: Likewise.
1945         * p-typeprint.c: Likewise.
1946         * parse.c: Likewise.
1947         * posix-hdep.c: Likewise.
1948         * ppc-linux-nat.c: Likewise.
1949         * ppc-sysv-tdep.c: Likewise.
1950         * ppcfbsd-tdep.c: Likewise.
1951         * ppcnbsd-tdep.c: Likewise.
1952         * ppcobsd-tdep.c: Likewise.
1953         * printcmd.c: Likewise.
1954         * procfs.c: Likewise.
1955         * prologue-value.c: Likewise.
1956         * python/py-auto-load.c: Likewise.
1957         * python/py-gdb-readline.c: Likewise.
1958         * ravenscar-thread.c: Likewise.
1959         * regcache.c: Likewise.
1960         * registry.c: Likewise.
1961         * remote-fileio.c: Likewise.
1962         * remote-m32r-sdi.c: Likewise.
1963         * remote-mips.c: Likewise.
1964         * remote-notif.c: Likewise.
1965         * remote-sim.c: Likewise.
1966         * remote.c: Likewise.
1967         * reverse.c: Likewise.
1968         * rs6000-aix-tdep.c: Likewise.
1969         * ser-base.c: Likewise.
1970         * ser-go32.c: Likewise.
1971         * ser-mingw.c: Likewise.
1972         * ser-pipe.c: Likewise.
1973         * ser-tcp.c: Likewise.
1974         * ser-unix.c: Likewise.
1975         * serial.c: Likewise.
1976         * sh-tdep.c: Likewise.
1977         * sh64-tdep.c: Likewise.
1978         * shnbsd-tdep.c: Likewise.
1979         * skip.c: Likewise.
1980         * sol-thread.c: Likewise.
1981         * solib-dsbt.c: Likewise.
1982         * solib-frv.c: Likewise.
1983         * solib-osf.c: Likewise.
1984         * solib-som.c: Likewise.
1985         * solib-spu.c: Likewise.
1986         * solib-target.c: Likewise.
1987         * solib.c: Likewise.
1988         * somread.c: Likewise.
1989         * source.c: Likewise.
1990         * sparc-nat.c: Likewise.
1991         * sparc-sol2-tdep.c: Likewise.
1992         * sparc-tdep.c: Likewise.
1993         * sparc64-tdep.c: Likewise.
1994         * sparc64fbsd-tdep.c: Likewise.
1995         * sparc64nbsd-tdep.c: Likewise.
1996         * sparcnbsd-tdep.c: Likewise.
1997         * spu-linux-nat.c: Likewise.
1998         * spu-multiarch.c: Likewise.
1999         * spu-tdep.c: Likewise.
2000         * stabsread.c: Likewise.
2001         * stack.c: Likewise.
2002         * std-regs.c: Likewise.
2003         * symfile.c: Likewise.
2004         * symmisc.c: Likewise.
2005         * symtab.c: Likewise.
2006         * target.c: Likewise.
2007         * thread.c: Likewise.
2008         * tilegx-linux-nat.c: Likewise.
2009         * tilegx-tdep.c: Likewise.
2010         * top.c: Likewise.
2011         * tracepoint.c: Likewise.
2012         * tui/tui-command.c: Likewise.
2013         * tui/tui-data.c: Likewise.
2014         * tui/tui-disasm.c: Likewise.
2015         * tui/tui-file.c: Likewise.
2016         * tui/tui-layout.c: Likewise.
2017         * tui/tui-out.c: Likewise.
2018         * tui/tui-regs.c: Likewise.
2019         * tui/tui-source.c: Likewise.
2020         * tui/tui-stack.c: Likewise.
2021         * tui/tui-win.c: Likewise.
2022         * tui/tui-windata.c: Likewise.
2023         * tui/tui-winsource.c: Likewise.
2024         * typeprint.c: Likewise.
2025         * ui-file.c: Likewise.
2026         * ui-out.c: Likewise.
2027         * user-regs.c: Likewise.
2028         * utils.c: Likewise.
2029         * v850-tdep.c: Likewise.
2030         * valarith.c: Likewise.
2031         * valops.c: Likewise.
2032         * valprint.c: Likewise.
2033         * value.c: Likewise.
2034         * varobj.c: Likewise.
2035         * vax-tdep.c: Likewise.
2036         * vaxnbsd-tdep.c: Likewise.
2037         * vaxobsd-tdep.c: Likewise.
2038         * windows-nat.c: Likewise.
2039         * xcoffread.c: Likewise.
2040         * xml-support.c: Likewise.
2041         * xstormy16-tdep.c: Likewise.
2042         * xtensa-linux-nat.c: Likewise.
2043
2044 2014-08-07  Gary Benson  <gbenson@redhat.com>
2045
2046         * common/common-defs.h: Include gdb_assert.h.
2047         * aarch64-tdep.c: Do not include gdb_assert.h.
2048         * addrmap.c: Likewise.
2049         * aix-thread.c: Likewise.
2050         * alpha-linux-tdep.c: Likewise.
2051         * alpha-mdebug-tdep.c: Likewise.
2052         * alphanbsd-tdep.c: Likewise.
2053         * amd64-nat.c: Likewise.
2054         * amd64-tdep.c: Likewise.
2055         * amd64bsd-nat.c: Likewise.
2056         * amd64fbsd-nat.c: Likewise.
2057         * amd64fbsd-tdep.c: Likewise.
2058         * amd64nbsd-nat.c: Likewise.
2059         * amd64nbsd-tdep.c: Likewise.
2060         * amd64obsd-nat.c: Likewise.
2061         * amd64obsd-tdep.c: Likewise.
2062         * arch-utils.c: Likewise.
2063         * arm-tdep.c: Likewise.
2064         * armbsd-tdep.c: Likewise.
2065         * auxv.c: Likewise.
2066         * bcache.c: Likewise.
2067         * bfin-tdep.c: Likewise.
2068         * blockframe.c: Likewise.
2069         * breakpoint.c: Likewise.
2070         * bsd-kvm.c: Likewise.
2071         * bsd-uthread.c: Likewise.
2072         * buildsym.c: Likewise.
2073         * c-exp.y: Likewise.
2074         * c-lang.c: Likewise.
2075         * charset.c: Likewise.
2076         * cleanups.c: Likewise.
2077         * cli-out.c: Likewise.
2078         * cli/cli-decode.c: Likewise.
2079         * cli/cli-dump.c: Likewise.
2080         * cli/cli-logging.c: Likewise.
2081         * cli/cli-script.c: Likewise.
2082         * cli/cli-utils.c: Likewise.
2083         * coffread.c: Likewise.
2084         * common/common-utils.c: Likewise.
2085         * common/queue.h: Likewise.
2086         * common/signals.c: Likewise.
2087         * common/vec.h: Likewise.
2088         * complaints.c: Likewise.
2089         * completer.c: Likewise.
2090         * corelow.c: Likewise.
2091         * cp-abi.c: Likewise.
2092         * cp-name-parser.y: Likewise.
2093         * cp-namespace.c: Likewise.
2094         * cp-support.c: Likewise.
2095         * cris-tdep.c: Likewise.
2096         * dbxread.c: Likewise.
2097         * dictionary.c: Likewise.
2098         * doublest.c: Likewise.
2099         * dsrec.c: Likewise.
2100         * dummy-frame.c: Likewise.
2101         * dwarf2-frame-tailcall.c: Likewise.
2102         * dwarf2-frame.c: Likewise.
2103         * dwarf2expr.c: Likewise.
2104         * dwarf2loc.c: Likewise.
2105         * dwarf2read.c: Likewise.
2106         * eval.c: Likewise.
2107         * event-loop.c: Likewise.
2108         * exceptions.c: Likewise.
2109         * expprint.c: Likewise.
2110         * f-valprint.c: Likewise.
2111         * fbsd-nat.c: Likewise.
2112         * findvar.c: Likewise.
2113         * frame-unwind.c: Likewise.
2114         * frame.c: Likewise.
2115         * frv-tdep.c: Likewise.
2116         * gcore.c: Likewise.
2117         * gdb-dlfcn.c: Likewise.
2118         * gdb_bfd.c: Likewise.
2119         * gdbarch.c: Likewise.
2120         * gdbarch.sh: Likewise.
2121         * gdbtypes.c: Likewise.
2122         * gnu-nat.c: Likewise.
2123         * gnu-v3-abi.c: Likewise.
2124         * go-lang.c: Likewise.
2125         * guile/scm-exception.c: Likewise.
2126         * guile/scm-gsmob.c: Likewise.
2127         * guile/scm-lazy-string.c: Likewise.
2128         * guile/scm-math.c: Likewise.
2129         * guile/scm-pretty-print.c: Likewise.
2130         * guile/scm-safe-call.c: Likewise.
2131         * guile/scm-utils.c: Likewise.
2132         * guile/scm-value.c: Likewise.
2133         * h8300-tdep.c: Likewise.
2134         * hppa-hpux-nat.c: Likewise.
2135         * hppa-tdep.c: Likewise.
2136         * hppanbsd-tdep.c: Likewise.
2137         * hppaobsd-tdep.c: Likewise.
2138         * i386-darwin-nat.c: Likewise.
2139         * i386-darwin-tdep.c: Likewise.
2140         * i386-nto-tdep.c: Likewise.
2141         * i386-tdep.c: Likewise.
2142         * i386bsd-nat.c: Likewise.
2143         * i386fbsd-tdep.c: Likewise.
2144         * i386gnu-nat.c: Likewise.
2145         * i386nbsd-tdep.c: Likewise.
2146         * i386obsd-tdep.c: Likewise.
2147         * i387-tdep.c: Likewise.
2148         * ia64-libunwind-tdep.c: Likewise.
2149         * ia64-tdep.c: Likewise.
2150         * inf-ptrace.c: Likewise.
2151         * inf-ttrace.c: Likewise.
2152         * infcall.c: Likewise.
2153         * infcmd.c: Likewise.
2154         * infrun.c: Likewise.
2155         * inline-frame.c: Likewise.
2156         * interps.c: Likewise.
2157         * jv-lang.c: Likewise.
2158         * jv-typeprint.c: Likewise.
2159         * linux-fork.c: Likewise.
2160         * linux-nat.c: Likewise.
2161         * linux-thread-db.c: Likewise.
2162         * m32c-tdep.c: Likewise.
2163         * m32r-linux-nat.c: Likewise.
2164         * m32r-tdep.c: Likewise.
2165         * m68k-tdep.c: Likewise.
2166         * m68kbsd-nat.c: Likewise.
2167         * m68kbsd-tdep.c: Likewise.
2168         * m88k-tdep.c: Likewise.
2169         * machoread.c: Likewise.
2170         * macroexp.c: Likewise.
2171         * macrotab.c: Likewise.
2172         * maint.c: Likewise.
2173         * mdebugread.c: Likewise.
2174         * memory-map.c: Likewise.
2175         * mep-tdep.c: Likewise.
2176         * mi/mi-common.c: Likewise.
2177         * microblaze-tdep.c: Likewise.
2178         * mingw-hdep.c: Likewise.
2179         * mips-linux-nat.c: Likewise.
2180         * mips-linux-tdep.c: Likewise.
2181         * mips-tdep.c: Likewise.
2182         * mips64obsd-tdep.c: Likewise.
2183         * mipsnbsd-tdep.c: Likewise.
2184         * mn10300-linux-tdep.c: Likewise.
2185         * mn10300-tdep.c: Likewise.
2186         * moxie-tdep.c: Likewise.
2187         * mt-tdep.c: Likewise.
2188         * nat/linux-btrace.c: Likewise.
2189         * nat/linux-osdata.c: Likewise.
2190         * nat/linux-ptrace.c: Likewise.
2191         * nat/mips-linux-watch.c: Likewise.
2192         * nios2-linux-tdep.c: Likewise.
2193         * nios2-tdep.c: Likewise.
2194         * objc-lang.c: Likewise.
2195         * objfiles.c: Likewise.
2196         * obsd-nat.c: Likewise.
2197         * opencl-lang.c: Likewise.
2198         * osabi.c: Likewise.
2199         * parse.c: Likewise.
2200         * ppc-linux-nat.c: Likewise.
2201         * ppc-sysv-tdep.c: Likewise.
2202         * ppcfbsd-nat.c: Likewise.
2203         * ppcfbsd-tdep.c: Likewise.
2204         * ppcnbsd-nat.c: Likewise.
2205         * ppcnbsd-tdep.c: Likewise.
2206         * ppcobsd-nat.c: Likewise.
2207         * ppcobsd-tdep.c: Likewise.
2208         * printcmd.c: Likewise.
2209         * procfs.c: Likewise.
2210         * prologue-value.c: Likewise.
2211         * psymtab.c: Likewise.
2212         * python/py-lazy-string.c: Likewise.
2213         * python/py-value.c: Likewise.
2214         * regcache.c: Likewise.
2215         * reggroups.c: Likewise.
2216         * registry.c: Likewise.
2217         * remote-sim.c: Likewise.
2218         * remote.c: Likewise.
2219         * rs6000-aix-tdep.c: Likewise.
2220         * rs6000-tdep.c: Likewise.
2221         * s390-linux-tdep.c: Likewise.
2222         * score-tdep.c: Likewise.
2223         * ser-base.c: Likewise.
2224         * ser-mingw.c: Likewise.
2225         * sh-tdep.c: Likewise.
2226         * sh64-tdep.c: Likewise.
2227         * solib-darwin.c: Likewise.
2228         * solib-spu.c: Likewise.
2229         * solib-svr4.c: Likewise.
2230         * source.c: Likewise.
2231         * sparc-nat.c: Likewise.
2232         * sparc-sol2-tdep.c: Likewise.
2233         * sparc-tdep.c: Likewise.
2234         * sparc64-sol2-tdep.c: Likewise.
2235         * sparc64-tdep.c: Likewise.
2236         * sparc64fbsd-tdep.c: Likewise.
2237         * sparc64nbsd-tdep.c: Likewise.
2238         * sparc64obsd-tdep.c: Likewise.
2239         * sparcnbsd-tdep.c: Likewise.
2240         * sparcobsd-tdep.c: Likewise.
2241         * spu-multiarch.c: Likewise.
2242         * spu-tdep.c: Likewise.
2243         * stabsread.c: Likewise.
2244         * stack.c: Likewise.
2245         * symfile.c: Likewise.
2246         * symtab.c: Likewise.
2247         * target-descriptions.c: Likewise.
2248         * target-memory.c: Likewise.
2249         * target.c: Likewise.
2250         * tic6x-linux-tdep.c: Likewise.
2251         * tic6x-tdep.c: Likewise.
2252         * tilegx-linux-nat.c: Likewise.
2253         * tilegx-tdep.c: Likewise.
2254         * top.c: Likewise.
2255         * tramp-frame.c: Likewise.
2256         * tui/tui-out.c: Likewise.
2257         * tui/tui-winsource.c: Likewise.
2258         * ui-out.c: Likewise.
2259         * user-regs.c: Likewise.
2260         * utils.c: Likewise.
2261         * v850-tdep.c: Likewise.
2262         * valops.c: Likewise.
2263         * value.c: Likewise.
2264         * varobj.c: Likewise.
2265         * vax-nat.c: Likewise.
2266         * xml-syscall.c: Likewise.
2267         * xml-tdesc.c: Likewise.
2268         * xstormy16-tdep.c: Likewise.
2269         * xtensa-linux-nat.c: Likewise.
2270         * xtensa-tdep.c: Likewise.
2271
2272 2014-08-07  Gary Benson  <gbenson@redhat.com>
2273
2274         * common/common-defs.h: Include common-utils.h.
2275         * defs.h: Do not include common-utils.h.
2276         * common/gdb_assert.h: Likewise.
2277         * darwin-nat.h: Likewise.
2278         * nat/linux-btrace.c: Likewise.
2279         * target/waitstatus.h: Likewise.
2280
2281 2014-08-07  Gary Benson  <gbenson@redhat.com>
2282
2283         * common/common-defs.h: Include ptid.h.
2284         * defs.h: Do not include ptid.h.
2285         * inferior.h: Likewise.
2286         * infrun.h: Likewise.
2287         * nat/linux-btrace.h: Likewise.
2288         * nat/linux-osdata.h: Likewise.
2289         * target/waitstatus.h: Likewise.
2290
2291 2014-08-07  Gary Benson  <gbenson@redhat.com>
2292
2293         * common/common-defs.h: Include gdb_locale.h.
2294         * defs.h: Do not include gdb_locale.h.
2295
2296 2014-08-07  Gary Benson  <gbenson@redhat.com>
2297
2298         * common/common-defs.h: Include gdb/signals.h.
2299         * defs.h: Do not include gdb/signals.h.
2300
2301 2014-08-07  Gary Benson  <gbenson@redhat.com>
2302
2303         * common/common-defs.h: Include pathmax.h.
2304         * defs.h: Do not include pathmax.h.
2305
2306 2014-08-07  Gary Benson  <gbenson@redhat.com>
2307
2308         * common/common-defs.h: Include libiberty.h.
2309         * defs.h: Do not include libiberty.h.
2310         * common/queue.h: Likewise.
2311         * cp-name-parser.y: Likewise.
2312         * mi/mi-cmd-catch.c: Likewise.
2313         * python/python.c: Likewise.
2314
2315 2014-08-07  Gary Benson  <gbenson@redhat.com>
2316
2317         * common/common-defs.h: Include ansidecl.h.
2318         * defs.h: Do not include ansidecl.h.
2319         * common/buffer.h: Likewise.
2320         * common/common-utils.h: Likewise.
2321
2322 2014-08-07  Gary Benson  <gbenson@redhat.com>
2323
2324         * common/common-defs.h: Include stddef.h.
2325         * defs.h: Do not include stddef.h.
2326         * common/common-utils.h: Likewise.
2327         * amd64fbsd-nat.c: Likewise.
2328         * bcache.c: Likewise.
2329         * charset.c: Likewise.
2330         * common/buffer.h: Likewise.
2331         * common/vec.h: Likewise.
2332         * i386bsd-nat.c: Likewise.
2333         * nat/linux-btrace.h: Likewise.
2334         * ppcfbsd-nat.c: Likewise.
2335         * ppcnbsd-tdep.h: Likewise.
2336         * ppcobsd-nat.c: Likewise.
2337         * ppcobsd-tdep.h: Likewise.
2338         * python/py-gdb-readline.c: Likewise.
2339
2340 2014-08-07  Gary Benson  <gbenson@redhat.com>
2341
2342         * common/common-defs.h: Include stdarg.h.
2343         * defs.h: Do not include stdarg.h.
2344         * ada-lang.c: Likewise.
2345         * common/common-utils.h: Likewise.
2346         * guile/scm-string.c: Likewise.
2347         * guile/scm-utils.c: Likewise.
2348         * m32c-tdep.c: Likewise.
2349
2350 2014-08-07  Gary Benson  <gbenson@redhat.com>
2351
2352         * common/common-defs.h: Include stdlib.h.
2353         * defs.h: Do not include stdlib.h.
2354         * addrmap.c: Likewise.
2355         * bcache.c: Likewise.
2356         * common/buffer.c: Likewise.
2357         * common/common-utils.c: Likewise.
2358         * cp-name-parser.y: Likewise.
2359         * go32-nat.c: Likewise.
2360         * mn10300-linux-tdep.c: Likewise.
2361         * nat/linux-osdata.c: Likewise.
2362         * tui/tui.c: Likewise.
2363         * windows-nat.c: Likewise.
2364
2365 2014-08-07  Gary Benson  <gbenson@redhat.com>
2366
2367         * common/common-defs.h: Include stdio.h.
2368         * defs.h: Do not include stdio.h.
2369         * ada-lang.c: Likewise.
2370         * common/buffer.c: Likewise.
2371         * common/common-utils.c: Likewise.
2372         * cp-name-parser.y: Likewise.
2373         * gnu-nat.c: Likewise.
2374         * go32-nat.c: Likewise.
2375         * i386gnu-nat.c: Likewise.
2376         * proc-api.c: Likewise.
2377         * proc-events.c: Likewise.
2378         * proc-flags.c: Likewise.
2379         * proc-why.c: Likewise.
2380         * python/python-internal.h: Likewise.
2381         * target-memory.c: Likewise.
2382         * tui/tui-io.c: Likewise.
2383         * tui/tui.c: Likewise.
2384
2385 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
2386
2387         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2388         (scan_dyntag_auxv): Same.
2389
2390 2014-08-06  Yao Qi  <yao@codesourcery.com>
2391
2392         * amd64-linux-nat.c: Remove duplicated include
2393         "x86-linux-nat.h".
2394         * i386-linux-nat.c: Likewise.
2395
2396 2014-08-06  Yao Qi  <yao@codesourcery.com>
2397
2398         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2399         operand" with "Special opcode" in comments.
2400
2401 2014-08-05  Gary Benson  <gbenson@redhat.com>
2402
2403         * interps.c (initialize_interps): Remove prototype.
2404         (interpreter_initialized): Remove static global.
2405         (interp_add): Do not call initialize_interps.
2406         (initialize_interps): Remove function.
2407
2408 2014-08-05  Gary Benson  <gbenson@redhat.com>
2409
2410         * utils.c (vwarning): Remove spurious va_end.
2411
2412 2014-08-05  Alan Modra  <amodra@gmail.com>
2413
2414         * charset.c (convert_between_encodings): Cast result of obstack_base.
2415         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2416         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2417         (read_unwind_info): Use size_t for some locals.
2418         * jit.c (finalize_symtab): Likewise.
2419         * utils.c (hashtab_obstack_allocate): Likewise.
2420         * symmisc.c (print_objfile_statistics): Update format strings.
2421
2422 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
2423
2424         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2425         (Changes in GDB 7.8): ... here.
2426
2427 2014-08-04  Tom Tromey  <tromey@redhat.com>
2428
2429         * target.c (set_targetdebug): New function.
2430         (initialize_targets): Pass set_targetdebug when creating "set
2431         debug target".
2432
2433 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
2434
2435         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2436         if detecting a variable-sized field that is not the last field.
2437         Fix struct type length computation.
2438
2439 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
2440
2441         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2442         Add debug trace.
2443
2444 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
2445
2446         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2447         Remove "+ 8" offset in computation of CHAIN_VMA.
2448
2449 2014-07-31  Doug Evans  <dje@google.com>
2450
2451         * inflow.c (child_terminal_inferior): Add comment.
2452         (child_terminal_ours_for_output): Add comment.
2453         (child_terminal_ours): Add comment.
2454         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2455         (linux_nat_terminal_ours): Add comment.
2456
2457 2014-07-31  Gary Benson  <gbenson@redhat.com>
2458
2459         * common/btrace-common.h: Do not include defs.h or server.h.
2460         * nat/mips-linux-watch.h: Likewise.
2461         * gdb-dlfcn.h: Do not include defs.h.
2462         * tracefile.h: Likewise.
2463
2464 2014-07-30  Roland McGrath  <mcgrathr@google.com>
2465
2466         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2467
2468 2014-07-30  Tom Tromey  <tromey@redhat.com>
2469
2470         * bsd-kvm.c (bsd_kvm_open): Constify.
2471         * corelow.c (core_open): Constify.
2472         * ctf.c (ctf_open): Constify.
2473         * dbug-rom.c (dbug_open): Constify.
2474         * exec.c (exec_open): Constify.
2475         * m32r-rom.c (m32r_open, mon2000_open): Constify.
2476         * microblaze-rom.c (picobug_open): Constify.
2477         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2478         Constify.
2479         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2480         * record-btrace.c (record_btrace_open): Constify.
2481         * record-full.c (record_full_core_open_1, record_full_open_1)
2482         (record_full_open): Constify.
2483         * remote-m32r-sdi.c (m32r_open): Constify.
2484         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2485         (rockhopper_open, lsi_open): Constify.
2486         * remote-sim.c (gdbsim_open): Constify.
2487         * remote.c (remote_open, extended_remote_open, remote_open_1):
2488         Constify.
2489         * target.h (struct target_ops) <to_open>: Make "arg" const.
2490         * tracefile-tfile.c (tfile_open): Constify.
2491
2492 2014-07-30  Tom Tromey  <tromey@redhat.com>
2493
2494         * breakpoint.c (map_breakpoint_numbers): Update.
2495         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
2496         (get_number_const): New function.
2497         (get_number): Rewrite using get_number_const.
2498         (init_number_or_range): Make "string" const.
2499         (number_is_in_list): Make "list" const.
2500         * cli/cli-utils.h (get_number_const): Declare.
2501         (struct get_number_or_range_state) <string, end_ptr>: Now const.
2502         (init_number_or_range, number_is_in_list): Update.
2503         * printcmd.c (map_display_numbers): Update.
2504         * value.c (value_from_history_ref): Constify.
2505         * value.h (value_from_history_ref): Update.
2506
2507 2014-07-30  Tom Tromey  <tromey@redhat.com>
2508
2509         * corefile.c (hook_type, call_extra_exec_file_hooks)
2510         (specify_exec_file_hook): Constify.
2511         * exec.c (exec_file_attach): Make "filename" const.
2512         * gdbcore.h (deprecated_exec_file_display_hook)
2513         (specify_exec_file_hook, exec_file_attach): Constify.
2514         * main.c (captured_main): Use catch_command_errors_const.
2515
2516 2014-07-30  Tom Tromey  <tromey@redhat.com>
2517
2518         * target.c (open_target): New function.
2519         (add_target_with_completer, add_deprecated_target_alias): Use
2520         set_cmd_sfunc, set_cmd_context.
2521         (debug_to_open): Remove.
2522         (setup_target_debug): Update.
2523
2524 2014-07-30  Yao Qi  <yao@codesourcery.com>
2525
2526         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2527         comments.
2528         * parse.c (exp_iterate): Update comments.
2529
2530 2014-07-30  Gary Benson  <gbenson@redhat.com>
2531
2532         * common/common-defs.h: New file.
2533         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2534         * defs.h: Include common-defs.h.
2535         Do not include config.h or build-gnulib/config.h.
2536
2537 2014-07-30  Gary Benson  <gbenson@redhat.com>
2538
2539         * common/common-utils.h: Do not include config.h.
2540         * nat/linux-btrace.h: Likewise.
2541
2542 2014-07-30  Gary Benson  <gbenson@redhat.com>
2543
2544         * btrace.c: Include defs.h.
2545         * common/ptid.c: Include defs.h or server.h as appropriate.
2546         * nat/mips-linux-watch.c: Likewise.
2547
2548 2014-07-29  Tom Tromey  <tromey@redhat.com>
2549
2550         * target.c (target_is_pushed): Simplify.
2551
2552 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
2553
2554         GDB 7.8 released.
2555
2556 2014-07-29  Yao Qi  <yao@codesourcery.com>
2557
2558         PR gdb/17206
2559         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2560
2561 2014-07-28  Doug Evans  <xdje42@gmail.com>
2562
2563         PR guile/17203
2564         * guile/scm-param.c (pascm_parameter_defined_p): New function.
2565         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
2566         parameters.
2567
2568 2014-07-28  Will Newton  <will.newton@linaro.org>
2569
2570         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2571         (THUMB2_SET_R7_SIGRETURN2): Likewise.
2572         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2573         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2574         (THUMB2_EABI_SYSCALL): Likewise.
2575         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2576         struct tramp_frame.
2577         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2578         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2579
2580 2014-07-27  Doug Evans  <xdje42@gmail.com>
2581
2582         * guile/scm-param.c (pascm_print_param_smob): Fix output.
2583
2584 2014-07-27  Doug Evans  <xdje42@gmail.com>
2585
2586         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2587
2588 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
2589             Doug Evans  <xdje42@gmail.com>
2590
2591         PR guile/17146
2592         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2593         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2594         * configure.ac: Try to use guild to compile an scm file, if it fails
2595         then disable guile support.
2596         * configure: Regenerate.
2597         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2598         GUILE_FILE_LIST.
2599         (GUILE_COMPILED_FILES): New variable.
2600         (GUILE_FILES) Update.
2601         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2602         (stamp-guile): Compile scm files.
2603         * guile/guile.c (boot_guile_support): New function.
2604         (standard_throw_args_p): New function.
2605         (print_standard_throw_error, print_throw_error): New functions.
2606         (handle_boot_error): New function.
2607         (initialize_scheme_side): Rewrite to call boot_guile_support.
2608         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
2609         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2610
2611 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
2612             Doug Evans  <xdje42@gmail.com>
2613
2614         PR guile/17146
2615         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2616         * guile/lib/gdb/support.scm: New file.
2617         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2618         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2619         All uses updated.
2620         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2621         All uses updated.
2622         (%assert-type): Ditto, and renamed to assert-type.
2623         (%exception-print-style): Delete.
2624
2625 2014-07-26  Doug Evans  <xdje42@gmail.com>
2626
2627         PR build/17105
2628         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2629         * configure: Regenerate.
2630         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2631         PYTHON_FILES.
2632         (PYTHON_FILES): New variable.
2633         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2634         (GUILE_FILES): New variable.
2635         (stamp-python, install-python, uninstall-python): Handle empty
2636         file list.
2637         (stamp-guile, install-guile, uninstall-guile): Ditto.
2638
2639 2014-07-26  Doug Evans  <xdje42@gmail.com>
2640
2641         PR guile/17177
2642         * guile/lib/gdb.scm (pretty-printers): Export.
2643         (set-pretty-printers!): Export.
2644         * guile/lib/gdb/printing.scm (gdb module): Update.
2645         (prepend-pretty-printer!, append-pretty-printer!): Update.
2646         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2647         (pretty_printer_list_var): Delete.
2648         (pretty_printer_list): New static global.
2649         (gdbscm_pretty_printers): New function.
2650         (gdbscm_set_pretty_printers_x): New function.
2651         (ppscm_find_pretty_printer_from_gdb): Update.
2652         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2653         (gdbscm_initialize_pretty_printers): Update.
2654
2655 2014-07-26  Doug Evans  <xdje42@gmail.com>
2656
2657         PR 17185
2658         * configure.ac: Add check for header gc/gc.h.
2659         Add check for function setenv.
2660         * configure: Regenerate.
2661         * config.in: Regenerate.
2662         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2663
2664 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
2665
2666         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2667         variation in gdbarch matching.
2668
2669 2014-07-25  Tom Tromey  <tromey@redhat.com>
2670
2671         * exec.c (using_exec_ops): Remove.
2672         (exec_close_1): Update.  Remove extraneous block, reindent.
2673         (add_target_sections): Use target_is_pushed.
2674
2675 2014-07-25  Pedro Alves  <palves@redhat.com>
2676
2677         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2678         * monitor.c (monitor_create_inferior): Likewise.
2679         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2680         * remote-sim.c (gdbsim_create_inferior): Likewise.
2681         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2682         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2683         * windows-nat.c (do_initial_windows_stuff): Likewise.
2684
2685 2014-07-25  Pedro Alves  <palves@redhat.com>
2686
2687         * NEWS: Mention signal passing and "signal" command changes.
2688         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2689         comment.
2690         * breakpoint.c (until_break_command): Adjust clear_proceed_status
2691         call.
2692         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2693         * infcmd.c (proceed_thread_callback, continue_1, step_once)
2694         (jump_command): Adjust clear_proceed_status call.
2695         (signal_command): Warn if other thread that are resumed have
2696         signals that will be delivered.  Adjust clear_proceed_status call.
2697         (until_next_command, finish_command)
2698         (proceed_after_attach_callback, attach_command_post_wait)
2699         (attach_command): Adjust clear_proceed_status call.
2700         * infrun.c (proceed_after_vfork_done): Likewise.
2701         (proceed_after_attach_callback): Adjust comment.
2702         (clear_proceed_status_thread): Clear stop_signal if not in pass
2703         state.
2704         (clear_proceed_status_callback): Delete.
2705         (clear_proceed_status): New 'step' parameter.  Only clear the
2706         proceed status of threads the command being prepared is about to
2707         resume.
2708         (proceed): If passed in an explicit signal, override stop_signal
2709         with it.  Don't pass the last stop signal to the thread we're
2710         resuming.
2711         (init_wait_for_inferior): Adjust clear_proceed_status call.
2712         (switch_back_to_stepped_thread): Clear the signal if it should not
2713         be passed.
2714         * infrun.h (clear_proceed_status): New 'step' parameter.
2715         (user_visible_resume_ptid): Add comment.
2716         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2717         signal is in pass state.
2718         * remote.c (append_pending_thread_resumptions): Likewise.
2719         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2720
2721 2014-07-25  Tom Tromey  <tromey@redhat.com>
2722
2723         * target.h (target_stopped_data_address)
2724         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
2725         parentheses.
2726
2727 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
2728
2729         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2730         comments.
2731         (avr_pointer_to_address): Likewise.
2732
2733 2014-07-24  Tom Tromey  <tromey@redhat.com>
2734
2735         * monitor.c (compile_pattern): Update.
2736         * target.h (struct target_ops) <to_shortname, to_longname,
2737         to_doc>: Now const.
2738
2739 2014-07-24  Tom Tromey  <tromey@redhat.com>
2740
2741         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2742         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2743         (add_info_alias, add_com): Make "doc" const.
2744         (print_doc_line): Make "str" const.
2745         (delete_cmd): Update.
2746         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2747         (print_doc_line): Update.
2748         * cli/cli-script.c (document_command): Update.
2749         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2750         (add_com, add_info, add_info_alias): Update.
2751         * guile/scm-cmd.c (cmdscm_destroyer): Update.
2752         * python/py-cmd.c (cmdpy_destroyer): Update.
2753
2754 2014-07-24  Tom Tromey  <tromey@redhat.com>
2755
2756         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2757         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2758         (help_cmd_list): Constify.
2759         (lookup_cmd): Update.
2760         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2761         const.
2762         (help_cmd_list, apropos_cmd): Update.
2763         * cli/cli-script.c (show_user): Update.
2764         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2765         * cli/cli-setshow.h (cmd_show_list): Update.
2766         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2767         (cmd_show_list): Update.
2768         * guile/scm-cmd.c (cmdscm_destroyer): Update.
2769         * python/py-cmd.c (cmdpy_destroyer): Update.
2770
2771 2014-07-24  Tom Tromey  <tromey@redhat.com>
2772
2773         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2774         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2775         const.
2776         * command.h (deprecate_cmd): Update.
2777         * maint.c (maintenance_do_deprecate): Add casts.
2778
2779 2014-07-24  Tom Tromey  <tromey@redhat.com>
2780
2781         * cli/cli-decode.c (help_cmd): Make parameter "const".
2782         * cli/cli-decode.h (help_cmd): Update.
2783
2784 2014-07-24  Tom Tromey  <tromey@redhat.com>
2785
2786         * stack.c (up_silently_base, down_silently_base): Make argument
2787         const.
2788
2789 2014-07-24  Tom Tromey  <tromey@redhat.com>
2790
2791         * solib.c (solib_add): Make "pattern" const.
2792         * solib.h (solib_add): Update.
2793
2794 2014-07-24  Tom Tromey  <tromey@redhat.com>
2795
2796         * remote.c (remote_serial_open, print_packet, putpkt)
2797         (putpkt_binary): Constify.
2798         * remote.h (putpkt): Update.
2799
2800 2014-07-24  Tom Tromey  <tromey@redhat.com>
2801
2802         * monitor.c (monitor_open): Make "args" const.
2803         * monitor.h (monitor_open): Update.
2804
2805 2014-07-24  Tom Tromey  <tromey@redhat.com>
2806
2807         * maint.c (match_bfd_flags): Make "string" const.
2808         (print_bfd_section_info): Remove casts.
2809         (print_objfile_section_info): Make "string" const.
2810
2811 2014-07-24  Tom Tromey  <tromey@redhat.com>
2812
2813         * inf-child.c (inf_child_open_target): Make "arg" const.
2814         * inf-child.h (inf_child_open_target): Update.
2815
2816 2014-07-24  Tom Tromey  <tromey@redhat.com>
2817
2818         * environ.c (unset_in_environ): Make "var" const.
2819         * environ.h (unset_in_environ): Update.
2820
2821 2014-07-24  Tom Tromey  <tromey@redhat.com>
2822
2823         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2824         Make "cmd" const.
2825         (scan_filename_with_cleanup): Likewise.
2826         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2827         Make arguments const.
2828         (restore_command): Update.
2829
2830 2014-07-24  Pedro Alves  <palves@redhat.com>
2831
2832         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2833
2834 2014-07-24  Tom Tromey  <tromey@redhat.com>
2835             Gary Benson  <gbenson@redhat.com>
2836
2837         * nat/linux-ptrace.c (additional_flags): New global.
2838         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2839         additional_flags; don't check GDBSERVER.
2840         (linux_ptrace_set_additional_flags): New function.
2841         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2842         Declare.
2843         * linux-nat.c (_initialize_linux_nat): Call
2844         linux_ptrace_set_additional_flags.
2845
2846 2014-07-24  Tom Tromey  <tromey@redhat.com>
2847
2848         * make-target-delegates (munge_type, write_debugmethod): New
2849         functions.
2850         (debug_names): New global.
2851         ($TARGET_DEBUG_PRINTER): New global.
2852         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2853         name.
2854         Write debug methods.  Generate init_debug_target.
2855         * target-debug.h: New file.
2856         * target-delegates.c: Rebuild.
2857         * target.c: Include target-debug.h.
2858         (debug_target): Hoist definition.
2859         (target_kill, target_get_section_table, target_memory_map)
2860         (target_flash_erase, target_flash_done, target_detach)
2861         (target_disconnect, target_wait, target_resume)
2862         (target_pass_signals, target_program_signals, target_follow_fork)
2863         (target_mourn_inferior, target_search_memory)
2864         (target_thread_address_space, target_close)
2865         (target_find_new_threads, target_core_of_thread)
2866         (target_verify_memory, target_insert_mask_watchpoint)
2867         (target_remove_mask_watchpoint): Remove targetdebug code.
2868         (debug_to_post_attach, debug_to_prepare_to_store)
2869         (debug_to_files_info, debug_to_insert_breakpoint)
2870         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2871         (debug_to_region_ok_for_hw_watchpoint)
2872         (debug_to_can_accel_watchpoint_condition)
2873         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2874         (debug_to_watchpoint_addr_within_range)
2875         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2876         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2877         (debug_to_terminal_init, debug_to_terminal_inferior)
2878         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2879         (debug_to_terminal_save_ours, debug_to_terminal_info)
2880         (debug_to_load, debug_to_post_startup_inferior)
2881         (debug_to_insert_fork_catchpoint)
2882         (debug_to_remove_fork_catchpoint)
2883         (debug_to_insert_vfork_catchpoint)
2884         (debug_to_remove_vfork_catchpoint)
2885         (debug_to_insert_exec_catchpoint)
2886         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2887         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2888         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2889         (setup_target_debug): Call init_debug_target.
2890         * target.h (TARGET_DEBUG_PRINTER): New macro.
2891         (struct target_ops) <to_resume, to_wait, to_pass_signals,
2892         to_program_signals>: Use TARGET_DEBUG_PRINTER.
2893
2894 2014-07-24  Gary Benson  <gbenson@redhat.com>
2895
2896         * exceptions.h (throw_vfatal): Renamed to...
2897         (throw_vquit): New declaration.
2898         (throw_quit): Likewise.
2899         * exceptions.c (throw_vfatal): Renamed to...
2900         (throw_vquit): New function.
2901         (throw_quit): Likewise.
2902         (throw_error): Call throw_verror rather than throw_it.
2903         * utils.h (vfatal): Removed.
2904         (fatal): Likewise.
2905         * utils.c (vfatal): Removed.
2906         (fatal): Likewise.
2907         (internal_verror): Replaced call to fatal with call to throw_quit.
2908         (quit): Replaced calls to fatal with calls to throw_quit.
2909
2910 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
2911
2912         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2913         target_read_code.
2914
2915 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
2916
2917         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2918         less than zero in conditional expression.
2919
2920 2014-07-23  Tom Tromey  <tromey@redhat.com>
2921
2922         * make-target-delegates ($ARGS_PART): Match trailing close paren.
2923         ($INTRO_PART): Don't match whitespace.
2924         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
2925         argument matching.
2926         ($METHOD): Add $METHOD_TRAILER.
2927         (trim): Rewrite.
2928         (scan_target_h): New sub.
2929         Change main loop not to collect state.
2930         * target-delegates.c: Rebuild.
2931
2932 2014-07-23  Gary Benson  <gbenson@redhat.com>
2933
2934         * cp-support.c (gdb_demangle): Fix build on systems without
2935         sigaltstack.
2936
2937 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
2938
2939         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2940         for reference entry value target data value.
2941
2942 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
2943
2944         * stack.c (read_frame_arg): Verify value_optimized_out before calling
2945         value_available_contents_eq.
2946
2947 2014-07-22  Pedro Alves  <palves@redhat.com>
2948
2949         * value.c (allocate_optimized_out_value): Don't mark value as
2950         non-lazy.
2951
2952 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
2953
2954         * MAINTAINERS (Write After Approval): Update my email address.
2955
2956 2014-07-20  Doug Evans  <dje@google.com>
2957
2958         PR server/17147
2959         * remote.c (putpkt_binary): Add text to error message.
2960
2961 2014-07-20  Yao Qi  <yao@codesourcery.com>
2962
2963         * eval.c: Remove "Chill" from comments.
2964         * gdbtypes.h: Likewise.
2965         * symtab.h: Likewise.
2966
2967 2014-07-20  Yao Qi  <yao@codesourcery.com>
2968
2969         * std-operator.def: Update comments to TERNOP_SLICE.
2970
2971 2014-07-20  Yao Qi  <yao@codesourcery.com>
2972
2973         * std-operator.def: Remove BINOP_RANGE.
2974         * breakpoint.c (watchpoint_exp_is_const): Update.
2975         * expprint.c (dump_subexp_body_standard): Likewise.
2976         * eval.c (init_array_element): Remove dead code.
2977         (evaluate_subexp_standard): Likewise.
2978
2979 2014-07-20  Yao Qi  <yao@codesourcery.com>
2980
2981         * std-operator.def: Remove BINOP_IN.
2982         * breakpoint.c (watchpoint_exp_is_const): Update.
2983         * eval.c (evaluate_subexp_standard): Likewise.
2984         * expprint.c (dump_subexp_body_standard): Likewise.
2985
2986 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
2987
2988         * microblaze-tdep.c (microblaze_register_names): Add
2989         the rshr and rslr register names.
2990         (microblaze_gdbarch_init): Use of tdesc_has_registers.
2991         Use of tdesc_find_feature. Use of tdesc_data_alloc.
2992         Use of tdesc_numbered_register. Use of
2993         microblaze_register_g_packet_guesses. Use of
2994         tdesc_use_registers. Use of set_gdbarch_register_type.
2995         (microblaze_register_g_packet_guesses): New.
2996         * microblaze-tdep.h (microblaze_reg_num): Add
2997         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2998         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2999         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3000         * features/microblaze-core.xml: New file.
3001         * features/microblaze-stack-protect.xml: New file.
3002         * features/microblaze-with-stack-protect.c: New file.
3003         * features/microblaze-with-stack-protect.xml: New file.
3004         * features/microblaze.xml: New file.
3005         * features/microblaze.c: New file.
3006         * features/Makefile (microblaze-with-stack-protect): Add
3007         microblaze-with-stack-protect microblaze and microblaze-expedite.
3008         * regformats/microblaze-with-stack-protect.dat: New file.
3009         * regformats/microblaze.dat: New file.
3010         * doc/gdb.texinfo (MicroBlaze Features): Added.
3011
3012 2014-07-18  Tom Tromey  <tromey@redhat.com>
3013
3014         * exec.c (exec_ops): Now static.
3015         * exec.h (exec_ops): Don't declare.
3016
3017 2014-07-18  Tom Tromey  <tromey@redhat.com>
3018
3019         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3020         to find_target_beneath.
3021         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3022         find_target_beneath.
3023         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3024
3025 2014-07-18  Tom Tromey  <tromey@redhat.com>
3026
3027         PR gdb/17130:
3028         * utils.c (quit): Use target_supports_terminal_ours.
3029         * target.h (target_supports_terminal_ours): Declare.
3030         * target.c (target_supports_delete_record): Don't check
3031         to_delete_record against NULL.
3032         (target_supports_terminal_ours): New function.
3033
3034 2014-07-18  Tom Tromey  <tromey@redhat.com>
3035
3036         PR gdb/17130:
3037         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3038         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3039         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3040         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3041         * windows-nat.c (windows_xfer_partial): Always delegate.
3042         * record-btrace.c (record_btrace_xfer_partial): Simplify
3043         delegation.
3044         (record_btrace_fetch_registers, record_btrace_store_registers)
3045         (record_btrace_prepare_to_store, record_btrace_resume)
3046         (record_btrace_wait, record_btrace_find_new_threads)
3047         (record_btrace_thread_alive): Likewise.
3048         * procfs.c (procfs_xfer_partial): Always delegate.
3049         * corelow.c (core_xfer_partial): Always delegate.
3050         * sol-thread.c (sol_find_new_threads): Simplify delegation.
3051
3052 2014-07-18  Tom Tromey  <tromey@redhat.com>
3053
3054         * exec.c (exec_make_note_section): Move earlier.
3055
3056 2014-07-17  Doug Evans  <dje@google.com>
3057
3058         PR gdb/17170
3059         * maint.c (count_symtabs_and_blocks): Handle NULL
3060         current_program_space.
3061         (report_command_stats): Check global enabled flag in addition to
3062         recorded enabled flag.
3063         (make_command_stats_cleanup): Handle msg_type == 0, startup.
3064
3065 2014-07-16  Pedro Alves  <palves@redhat.com>
3066
3067         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3068
3069 2014-07-16  Tom Tromey  <tromey@redhat.com>
3070
3071         * target.h (struct target_ops) <to_delete_record>: Reformat
3072         comment.
3073
3074 2014-07-16  Tom Tromey  <tromey@redhat.com>
3075
3076         * target-delegates.c: Rebuild.
3077
3078 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
3079
3080         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3081         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3082         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3083         (avr_pointer_to_address): Likewise.
3084         (avr_address_class_type_flags): New function.
3085         (avr_address_class_type_flags_to_name): Likewise.
3086         (avr_address_class_name_to_type_flags): Likewise.
3087         (avr_gdbarch_init): Set address_class_type_flags,
3088         address_class_type_flags_to_name and
3089         address_class_name_to_type_flags.
3090
3091 2014-07-15  Pedro Alves  <palves@redhat.com>
3092
3093         * linux-nat.c (kill_callback): Save errno and work with saved
3094         copy.
3095
3096 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
3097
3098         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3099
3100 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
3101
3102         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3103         breakpoint support correctly.
3104
3105 2014-07-14  Pedro Alves  <palves@redhat.com>
3106
3107         * utils.c (prompt_for_continue): Call target_terminal_ours.
3108
3109 2014-07-14  Pedro Alves  <palves@redhat.com>
3110
3111         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3112         catch_errors.  Don't re-enable stdin or notify observers where,
3113         and rethrow error.
3114         (fetch_inferior_event_wrapper): Delete.
3115
3116 2014-07-14  Pedro Alves  <palves@redhat.com>
3117
3118         PR gdb/17072
3119         * top.c: Include "inf-loop.h".
3120         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3121         field.
3122         (gdb_readline_wrapper_cleanup): Make the target async again, if it
3123         was async before.
3124         (gdb_readline_wrapper): Store whether the target is async, and
3125         make it sync.
3126
3127 2014-07-14  Pedro Alves  <palves@redhat.com>
3128
3129         PR gdb/17072
3130         * top.c (gdb_readline_wrapper_line): Tweak comment.
3131         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3132         the input handler callback.
3133
3134 2014-07-14  Pedro Alves  <palves@redhat.com>
3135
3136         PR gdb/17072
3137         * main.c: Include event-top.h.
3138         (handle_command_errors): New function.
3139         (catch_command_errors, catch_command_errors_const): Use it.
3140
3141 2014-07-14  Pedro Alves  <palves@redhat.com>
3142
3143         * exceptions.c (catch_command_errors, catch_command_errors_const):
3144         Moved to main.c.
3145         * exceptions.h (catch_command_errors_ftype)
3146         (catch_command_errors_const_ftype): Moved to main.c.
3147         (catch_command_errors, catch_command_errors_const): Delete
3148         declarations.
3149         * main.c (catch_command_errors_ftype)
3150         (catch_command_errors_const_ftype): Moved here from exceptions.h.
3151         (catch_command_errors, catch_command_errors_const)): Moved here
3152         from exceptions.c and make static.
3153
3154 2014-07-14  Pedro Alves  <palves@redhat.com>
3155
3156         * exceptions.c (print_any_exception): Delete.
3157         (catch_exceptions_with_msg): Use exception_print instead of
3158         print_any_exception.
3159         (catch_errors): Use exception_fprintf instead of
3160         print_any_exception.
3161         (catch_command_errors, catch_command_errors_const): Use
3162         exception_print instead of print_any_exception.
3163
3164 2014-07-14  Pedro Alves  <palves@redhat.com>
3165
3166         * infcall.c (run_inferior_call): Set 'sync_execution' while
3167         running the inferior call.
3168
3169 2014-07-14  Pedro Alves  <palves@redhat.com>
3170
3171         * value.c (value_contents_equal): Delete function.
3172         * value.h (value_contents_equal): Delete declaration.
3173
3174 2014-07-14  Tom Tromey  <tromey@redhat.com>
3175
3176         PR exp/17106:
3177         * gdbtypes.c (is_dynamic_type_internal): New function, from
3178         is_dynamic_type.
3179         (is_dynamic_type): Rewrite.
3180         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3181         (resolve_dynamic_struct): Likewise.
3182         (resolve_dynamic_type_internal): New function, from
3183         resolve_dynamic_type.
3184         (resolve_dynamic_type): Rewrite.
3185
3186 2014-07-14  Tom Tromey  <tromey@redhat.com>
3187
3188         * target.c (target_require_runnable): Also check record_stratum.
3189         Update comment.
3190
3191 2014-07-11  Yao Qi  <yao@codesourcery.com>
3192
3193         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3194         thumb_instruction_restores_sp return true.
3195
3196 2014-07-11  Yao Qi  <yao@codesourcery.com>
3197
3198         * arm-tdep.c (thumb_instruction_restores_sp): New function.
3199         (thumb_in_function_epilogue_p): Call
3200         thumb_instruction_restores_sp.
3201
3202 2014-07-11  Yao Qi  <yao@codesourcery.com>
3203
3204         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3205         'add sp, #imm'.
3206         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3207
3208 2014-07-11  Gary Benson  <gbenson@redhat.com>
3209
3210         * amd64-linux-nat.c (gdbcore.h): Remove include.
3211         (regset.h): Likewise.
3212         (nat/linux-btrace.h): Likewise.
3213         (btrace.h): Likewise.
3214         (gdb_assert.h): Likewise.
3215         (string.h): Likewise.
3216         (sys/uio.h): Likewise.
3217         (sys/debugreg.h): Likewise.
3218         (sys/syscall.h): Likewise.
3219         (sys/procfs.h): Likewise.
3220         (sys/user.h): Likewise.
3221         (asm/ptrace.h): Likewise.
3222         (i386-nat.h): Likewise.
3223         * i386-linux-nat.c (i386-nat.h): Likewise.
3224         (regset.h): Likewise.
3225         (target.h): Likewise.
3226         (linux-nat.h): Likewise.
3227         (nat/linux-btrace.h): Likewise.
3228         (btrace.h): Likewise.
3229         (gdb_assert.h): Likewise.
3230         (string.h): Likewise.
3231         (sys/uio.h): Likewise.
3232         (sys/user.h): Likewise.
3233         (sys/procfs.h): Likewise.
3234         (sys/reg.h): Likewise.
3235         (sys/debugreg.h): Likewise.
3236         (ORIG_EAX): Remove definition.
3237
3238 2014-07-11  Gary Benson  <gbenson@redhat.com>
3239
3240         * i386-linux-nat.h: New file.
3241         * x86-linux-nat.h: Likewise.
3242         * x86-linux-nat.c: Likewise.
3243         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3244         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3245         * config/i386/linux64.mh (NATDEPFILES): Likewise.
3246         * amd64-linux-nat.c (x86-linux-nat.h): New include.
3247         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3248         (PTRACE_SETREGSET): Likewise.
3249         (arch_lwp_info): Now in x86-linux-nat.c.
3250         (have_ptrace_getregset): Now in x86-linux-nat.h.
3251         (x86_linux_dr_get): Now in x86-linux-nat.c.
3252         (x86_linux_dr_set): Likewise.
3253         (x86_linux_dr_get_addr): Likewise.
3254         (x86_linux_dr_get_control): Likewise.
3255         (x86_linux_dr_get_status): Likewise.
3256         (update_debug_registers_callback): Likewise.
3257         (x86_linux_dr_set_control): Likewise.
3258         (x86_linux_dr_set_addr): Likewise.
3259         (x86_linux_prepare_to_resume): Likewise.
3260         (x86_linux_new_thread): Likewise.
3261         (x86_linux_new_fork): Likewise.
3262         (x86_linux_get_thread_area): Likewise.
3263         (super_post_startup_inferior): Likewise.
3264         (x86_linux_child_post_startup_inferior): Likewise.
3265         (AMD64_LINUX_USER64_CS): Likewise.
3266         (AMD64_LINUX_X32_DS): Likewise.
3267         (x86_linux_read_description): Likewise.
3268         (x86_linux_enable_btrace): Likewise.
3269         (x86_linux_disable_btrace): Likewise.
3270         (x86_linux_teardown_btrace): Likewise.
3271         (x86_linux_read_btrace): Likewise.
3272         (x86_linux_create_target): Likewise.
3273         (x86_linux_add_target): Likewise.
3274         * i386-linux-nat.c (x86-linux-nat.h): New include.
3275         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3276         (PTRACE_SETREGSET): Likewise.
3277         (arch_lwp_info): Now in x86-linux-nat.c.
3278         (have_ptrace_getregset): Now in x86-linux-nat.h.
3279         (x86_linux_dr_get): Now in x86-linux-nat.c.
3280         (x86_linux_dr_set): Likewise.
3281         (x86_linux_dr_get_addr): Likewise.
3282         (x86_linux_dr_get_control): Likewise.
3283         (x86_linux_dr_get_status): Likewise.
3284         (update_debug_registers_callback): Likewise.
3285         (x86_linux_dr_set_control): Likewise.
3286         (x86_linux_dr_set_addr): Likewise.
3287         (x86_linux_prepare_to_resume): Likewise.
3288         (x86_linux_new_thread): Likewise.
3289         (x86_linux_new_fork): Likewise.
3290         (x86_linux_get_thread_area): Likewise.
3291         (super_post_startup_inferior): Likewise.
3292         (x86_linux_child_post_startup_inferior): Likewise.
3293         (AMD64_LINUX_USER64_CS): Likewise.
3294         (AMD64_LINUX_X32_DS): Likewise.
3295         (x86_linux_read_description): Likewise.
3296         (x86_linux_enable_btrace): Likewise.
3297         (x86_linux_disable_btrace): Likewise.
3298         (x86_linux_teardown_btrace): Likewise.
3299         (x86_linux_read_btrace): Likewise.
3300         (x86_linux_create_target): Likewise.
3301         (x86_linux_add_target): Likewise.
3302
3303 2014-07-11  Gary Benson  <gbenson@redhat.com>
3304
3305         * amd64-linux-nat.c: Comment and whitespace changes.
3306         * i386-linux-nat.c: Comment and whitespace changes.
3307
3308 2014-07-11  Gary Benson  <gbenson@redhat.com>
3309
3310         * amd64-linux-nat.c (x86_linux_create_target): New function.
3311         (x86_linux_add_target): Likewise.
3312         (_initialize_amd64_linux_nat): Delegate to the above new functions.
3313         * i386-linux-nat.c (x86_linux_create_target): New function.
3314         (x86_linux_add_target): Likewise.
3315         (_initialize_i386_linux_nat): Delegate to the above new functions.
3316
3317 2014-07-11  Gary Benson  <gbenson@redhat.com>
3318
3319         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3320         (ps_get_thread_area): Delegate to the above in 32-bit mode.
3321         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3322         (ps_get_thread_area): Delegate to the above.
3323
3324 2014-07-11  Gary Benson  <gbenson@redhat.com>
3325
3326         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3327         x86_linux_read_description.  All uses updated.  amd64-specific
3328         code conditionalized.  Conditionalized i386-specific code added.
3329         Redundant cast removed.
3330         * i386-linux-nat.c (i386_linux_read_description): Renamed to
3331         x86_linux_read_description.  All uses updated.  i386-specific
3332         code conditionalized.  Conditionalized amd64-specific code added.
3333         One sizeof replaced with the actual type it is describing.
3334
3335 2014-07-11  Gary Benson  <gbenson@redhat.com>
3336
3337         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3338         x86_linux_dr_get.  All uses updated.
3339         (amd64_linux_dr_set): Renamed to
3340         x86_linux_dr_set.  All uses updated.
3341         (amd64_linux_dr_get_addr): Renamed to
3342         x86_linux_dr_get_addr.  All uses updated.
3343         (amd64_linux_dr_get_control): Renamed to
3344         x86_linux_dr_get_control.  All uses updated.
3345         (amd64_linux_dr_get_status): Renamed to
3346         x86_linux_dr_get_status.  All uses updated.
3347         (amd64_linux_dr_set_control): Renamed to
3348         x86_linux_dr_set_control.  All uses updated.
3349         (amd64_linux_dr_set_addr): Renamed to
3350         x86_linux_dr_set_addr.  All uses updated.
3351         (amd64_linux_prepare_to_resume): Renamed to
3352         x86_linux_prepare_to_resume.  All uses updated.
3353         (amd64_linux_new_thread): Renamed to
3354         x86_linux_new_thread.  All uses updated.
3355         (amd64_linux_new_fork): Renamed to
3356         x86_linux_new_fork.  All uses updated.
3357         (amd64_linux_child_post_startup_inferior): Renamed to
3358         x86_linux_child_post_startup_inferior.  All uses updated.
3359         (amd64_linux_enable_btrace): Renamed to
3360         x86_linux_enable_btrace.  All uses updated.
3361         (amd64_linux_disable_btrace): Renamed to
3362         x86_linux_disable_btrace.  All uses updated.
3363         (amd64_linux_teardown_btrace): Renamed to
3364         x86_linux_teardown_btrace.  All uses updated.
3365         (amd64_linux_read_btrace): Renamed to
3366         x86_linux_read_btrace.  All uses updated.
3367         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3368         x86_linux_dr_get.  All uses updated.
3369         (i386_linux_dr_set): Renamed to
3370         x86_linux_dr_set.  All uses updated.
3371         (i386_linux_dr_get_addr): Renamed to
3372         x86_linux_dr_get_addr.  All uses updated.
3373         (i386_linux_dr_get_control): Renamed to
3374         x86_linux_dr_get_control.  All uses updated.
3375         (i386_linux_dr_get_status): Renamed to
3376         x86_linux_dr_get_status.  All uses updated.
3377         (i386_linux_dr_set_control): Renamed to
3378         x86_linux_dr_set_control.  All uses updated.
3379         (i386_linux_dr_set_addr): Renamed to
3380         x86_linux_dr_set_addr.  All uses updated.
3381         (i386_linux_prepare_to_resume): Renamed to
3382         x86_linux_prepare_to_resume.  All uses updated.
3383         (i386_linux_new_thread): Renamed to
3384         x86_linux_new_thread.  All uses updated.
3385         (i386_linux_new_fork): Renamed to
3386         x86_linux_new_fork.  All uses updated.
3387         (i386_linux_child_post_startup_inferior): Renamed to
3388         x86_linux_child_post_startup_inferior.  All uses updated.
3389         (i386_linux_enable_btrace): Renamed to
3390         x86_linux_enable_btrace.  All uses updated.
3391         (i386_linux_disable_btrace): Renamed to
3392         x86_linux_disable_btrace.  All uses updated.
3393         (i386_linux_teardown_btrace): Renamed to
3394         x86_linux_teardown_btrace.  All uses updated.
3395         (i386_linux_read_btrace): Renamed to
3396         x86_linux_read_btrace.  All uses updated.
3397
3398 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
3399
3400         * remote.c (extended_remote_post_attach): New function.
3401         (init_extended_remote_ops): Install it as to_post_attach method.
3402
3403 2014-07-09  Pedro Alves  <palves@redhat.com>
3404
3405         * infcmd.c (attach_command_post_wait): Don't call
3406         target_terminal_inferior here.
3407         (attach_command): Call it here instead.
3408
3409 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
3410
3411         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3412         field.
3413         * c-varobj.c (c_is_path_expr_parent): New function, moved core
3414         from varobj.c, with additional checks.
3415         (c_varobj_ops): Fill in is_path_expr_parent field.
3416         (cplus_varobj_ops): Fill in is_path_expr_parent field.
3417         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3418         field.
3419         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3420         ops method.
3421         (varobj_default_is_path_expr_parent): New function.
3422         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3423         (varobj_default_is_path_expr_parent): Declare new function.
3424
3425 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
3426
3427         * infcmd.c (finish_backward): Turn internal error into normal error.
3428
3429 2014-07-07  Pedro Alves  <palves@redhat.com>
3430
3431         PR gdb/17096
3432         * remote.c (async_handle_remote_sigint)
3433         (async_handle_remote_sigint_twice): Call
3434         gdb_call_async_signal_handler instead of
3435         mark_async_signal_handler.
3436
3437 2014-07-07  Tom Tromey  <tromey@redhat.com>
3438
3439         * target-delegates.c: Rebuild.
3440         * target.c (target_info_record): Remove.
3441         * record.c (info_record_command): Unconditionally call
3442         to_info_record.
3443         * target.h (struct target_ops) <to_info_record>: Use
3444         TARGET_DEFAULT_IGNORE.
3445         (target_info_record): Remove.
3446
3447 2014-07-07  Tom Tromey  <tromey@redhat.com>
3448
3449         * target.h (struct target_ops) <to_get_thread_local_address>: Use
3450         TARGET_DEFAULT_NORETURN.
3451         * target.c (generic_tls_error): New function.
3452         (target_translate_tls_address): Don't search target stack.
3453         * target-delegates.c: Rebuild.
3454         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3455         stack.
3456         * linux-thread-db.c (thread_db_get_thread_local_address):
3457         Unconditionally call beneath target.
3458
3459 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
3460
3461         * cli/cli-logging.c (pop_output_files): Assign targerr to
3462         gdb_stdtargerr.
3463
3464 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
3465
3466         * MAINTAINERS (Write After Approval): Update my email address.
3467
3468 2014-07-02  Gary Benson  <gbenson@redhat.com>
3469
3470         * proc-service.c (ps_xfer_memory): Update comment.
3471         (ps_pstop): Remove unused function.
3472         (ps_pcontinue): Likewise.
3473         (ps_lstop): Likewise.
3474         (ps_lcontinue): Likewise.
3475         (ps_lgetxregsize): Likewise.
3476         (ps_lgetxregs): Likewise.
3477         (ps_lsetxregs): Likewise.
3478         (ps_plog): Likewise.
3479         (ps_ptread): Likewise.
3480         (ps_ptwrite): Likewise.
3481
3482 2014-07-01  Mark Wielaard  <mjw@redhat.com>
3483
3484         * dwarf2read.c (add_array_cv_type): New function.
3485         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3486         (read_tag_volatile_type): Likewise.
3487
3488 2014-07-01  Tom Tromey  <tromey@redhat.com>
3489
3490         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3491         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3492         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3493         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3494         * command.h (cmd_cfunc_ftype): Move earlier.
3495         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3496         (add_com, add_info): Use cmd_cfunc_ftype.
3497
3498 2014-06-30  Tom Tromey  <tromey@redhat.com>
3499
3500         * symtab.c (operator_chars): Make parameters and return type
3501         const.
3502         (file_matches): Make "files" const.
3503         (struct search_symbols_data) <files>: Now const.
3504         (search_symbols): Make "regexp" and "files" parameters const.
3505         Update.
3506         (symtab_symbol_info): Remove cast.
3507         (rbreak_command): Update.
3508         * symtab.h (search_symbols): Update.
3509
3510 2014-06-27  Yao Qi  <yao@codesourcery.com>
3511
3512         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3513         Change parameter type to 'struct thread_info *'.  Caller
3514         updated.
3515         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3516         Update declaration.
3517         * dummy-frame.c (struct dummy_frame_id): New.
3518         (dummy_frame_id_eq): New function.
3519         (struct dummy_frame) <id>: Change its type to 'struct
3520         dummy_frame_id'.
3521         (dummy_frame_push): Add parameter ptid and save it in
3522         dummy_frame_id.
3523         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3524         inferior_ptid.
3525         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3526         to inferior_ptid.
3527         (lookup_dummy_frame): Change parameter type to 'struct
3528         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
3529         instead of frame_id_eq.
3530         (dummy_frame_pop): Add parameter ptid.  Callers updated.
3531         Update comments.  Compose dummy_frame_id and pass it to
3532         lookup_dummy_frame.
3533         (dummy_frame_discard): Add parameter ptid.
3534         (dummy_frame_sniffer): Compose dummy_frame_id and call
3535         dummy_frame_id_eq instead of frame_id_eq.
3536         (fprint_dummy_frames): Print ptid.
3537         * dummy-frame.h: Remove comments.
3538         (dummy_frame_push): Add ptid in declaration.
3539         (dummy_frame_pop, dummy_frame_discard): Likewise.
3540
3541 2014-06-26  Tom Tromey  <tromey@redhat.com>
3542
3543         * cli/cli-cmds.c (error_no_arg): Make "why" const.
3544         * command.h (error_no_arg): Update.
3545
3546 2014-06-26  Tom Tromey  <tromey@redhat.com>
3547
3548         * cli/cli-setshow.c (do_set_command): Make "arg" const.
3549         (do_show_command): Make "arg" const.
3550         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3551
3552 2014-06-26  Tom Tromey  <tromey@redhat.com>
3553
3554         * record-full.c (record_full_get_bookmark): Make "args" const.
3555         (record_full_goto_bookmark): Make "raw_bookmark" const.
3556         * record.c (record_goto): New function.
3557         (cmd_record_goto): Use it.  Now static.
3558         * record.h (record_goto): Declare.
3559         (cmd_record_goto): Remove declaration.
3560         * target-delegates.c: Rebuild.
3561         * target.h (struct target_ops) <to_get_bookmark,
3562         to_goto_bookmark>: Make parameter const.
3563
3564 2014-06-26  Tom Tromey  <tromey@redhat.com>
3565
3566         * defs.h (generic_load): Update.
3567         * m32r-rom.c (m32r_load_gen): Make "filename" const.
3568         * monitor.c (monitor_load): Make "args" const.
3569         * remote-m32r-sdi.c (m32r_load): Make "args" const.
3570         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3571         const.
3572         (mips_load): Make "file" const.
3573         * remote-sim.c (gdbsim_load): Make "args" const.
3574         * remote.c (remote_load): Make "name" const.
3575         * symfile.c (generic_load): Make "args" const.
3576         * target-delegates.c: Rebuild.
3577         * target.c (target_load): Make "arg" const.
3578         (debug_to_load): Make "args" const.
3579         * target.h (struct target_ops) <to_load>: Make parameter const.
3580         (target_load): Update.
3581
3582 2014-06-26  Tom Tromey  <tromey@redhat.com>
3583
3584         PR symtab/16902:
3585         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3586         (dwarf2_physname, read_partial_die)
3587         (guess_partial_die_structure_name, fixup_partial_die)
3588         (guess_full_die_structure_name, anonymous_struct_prefix)
3589         (dwarf2_name): Use per-BFD obstack.
3590
3591 2014-06-26  Yao Qi  <yao@codesourcery.com>
3592
3593         * dummy-frame.c (dummy_frame_sniffer): Move local variables
3594         dummyframe and this_id into inner block below.
3595
3596 2014-06-26  Yao Qi  <yao@codesourcery.com>
3597
3598         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3599         with "signal_pass[0]" in the initialization of signal_pass.
3600
3601 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
3602
3603         * record-btrace.c (record_btrace_generating_corefile)
3604         (record_btrace_prepare_to_generate_core)
3605         (record_btrace_done_generating_core): New.
3606         (record_btrace_xfer_partial, record_btrace_fetch_registers)
3607         (record_btrace_store_registers, record_btrace_prepare_to_store):
3608         Forward request when generating a core file.
3609         (record_btrace_open): Set record_btrace_generating_corefile to zero.
3610         (init_record_btrace_ops): Set to_prepare_to_generate_core and
3611         to_done_generating_core.
3612
3613 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
3614
3615         * target.h (target_ops) <to_prepare_to_generate_core>
3616         <to_done_generating_core>: New.
3617         (target_prepare_to_generate_core, target_done_generating_core): New.
3618         * target.c (target_prepare_to_generate_core)
3619         (target_done_generating_core): New.
3620         * target-delegates.c: Regenerate.
3621         * gcore.c: (write_gcore_file): Rename to ...
3622         (write_gcore_file_1): ...this.
3623         (write_gcore_file): Call target_prepare_to_generate_core
3624         and target_done_generating_core.
3625
3626 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
3627
3628         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3629         * gcore.c (write_gcore_file): Free memory returned from
3630         make_corefile_notes.
3631         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3632         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3633
3634 2014-06-24  Yao Qi  <yao@codesourcery.com>
3635
3636         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3637         (arm_linux_init_abi): Set skip_trampoline_code with
3638         gdbarch_skip_trampoline_code instead of
3639         find_solib_trampoline_target.
3640
3641 2014-06-24  Yao Qi  <yao@codesourcery.com>
3642
3643         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3644         arm_skip_bx_reg returns non-zero.
3645
3646 2014-06-24  Yao Qi  <yao@codesourcery.com>
3647
3648         * arm-tdep.c (arm_skip_bx_reg): New function.
3649         (arm_skip_stub): Call arm_skip_bx_reg.
3650
3651 2014-06-23  Don Breazeal  <donb@codesourcery.com>
3652
3653         * MAINTAINERS: Add myself as write-after-approval maintainer.
3654
3655 2014-06-23  Pedro Alves  <palves@redhat.com>
3656
3657         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3658         DR_CONTROL before setting DR0..DR3.
3659         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3660         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3661         bits of DR_CONTROL related to the debug register slot being
3662         disabled.  If all slots are vacant, clear local slowdown as well,
3663         and assert DR_CONTROL is 0.
3664
3665 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
3666
3667         * python/lib/gdb/command/xmethods.py
3668         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
3669         current progspace only if the string "progspace" matches LOCUS_RE.
3670
3671 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
3672
3673         Fix --with-system-readline with readline-6.3 patch 5.
3674         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3675         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3676         types.
3677
3678 2014-06-20  Tom Tromey  <tromey@redhat.com>
3679
3680         * dwarf2read.c (dw2_get_real_path): Use correct type in
3681         OBSTACK_CALLOC.
3682         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3683
3684 2014-06-20  Gary Benson  <gbenson@redhat.com>
3685
3686         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
3687         * common/glibc_thread_db.h: Likewise.
3688         * common/i386-cpuid.h: Likewise.
3689         * common/i386-gcc-cpuid.h: Likewise.
3690         * common/linux-btrace.h: Likewise.
3691         * common/linux-osdata.h: Likewise.
3692         * common/linux-procfs.h: Likewise.
3693         * common/linux-ptrace.h: Likewise.
3694         * common/mips-linux-watch.h: Likewise.
3695         * common/linux-btrace.c: Moved to nat.
3696         * common/linux-osdata.c: Likewise.
3697         * common/linux-procfs.c: Likewise.
3698         * common/linux-ptrace.c: Likewise.
3699         * common/mips-linux-watch.c: Likewise.
3700         * nat/gdb_thread_db.h: Moved from common.
3701         * nat/glibc_thread_db.h: Likewise.
3702         * nat/i386-cpuid.h: Likewise.
3703         * nat/i386-gcc-cpuid.h: Likewise.
3704         * nat/linux-btrace.c: Likewise.
3705         * nat/linux-btrace.h: Likewise.
3706         * nat/linux-osdata.c: Likewise.
3707         * nat/linux-osdata.h: Likewise.
3708         * nat/linux-procfs.c: Likewise.
3709         * nat/linux-procfs.h: Likewise.
3710         * nat/linux-ptrace.c: Likewise.
3711         * nat/linux-ptrace.h: Likewise.
3712         * nat/mips-linux-watch.c: Likewise.
3713         * nat/mips-linux-watch.h: Likewise.
3714         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3715         (object file files): Reordered.
3716         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3717         of glibc_thread_db.h.
3718
3719 2014-06-20  Gary Benson  <gbenson@redhat.com>
3720
3721         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3722         (i386_dr_low_type): Moved to nat/i386-dregs.h.
3723         (i386_dr_low): Likewise.
3724         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3725         (i386_dr_low_set_addr): Likewise.
3726         (i386_dr_low_get_addr): Likewise.
3727         (i386_dr_low_can_set_control): Likewise.
3728         (i386_dr_low_set_control): Likewise.
3729         (i386_dr_low_get_control): Likewise.
3730         (i386_dr_low_get_status): Likewise.
3731         (i386_get_debug_register_length): Likewise.
3732         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3733         (i386_dr_low): Likewise.
3734         * nat/i386-dregs.c (i386-low.h): Remove include.
3735         (i386-nat.h): Likewise.
3736         (nat/i386-dregs.h): New include.
3737         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3738         (i386_dr_low_set_addr): Likewise.
3739         (i386_dr_low_get_addr): Likewise.
3740         (i386_dr_low_can_set_control): Likewise.
3741         (i386_dr_low_set_control): Likewise.
3742         (i386_dr_low_get_control): Likewise.
3743         (i386_dr_low_get_status): Likewise.
3744         (i386_get_debug_register_length): Likewise.
3745         (debug_hw_points): Likewise.
3746
3747 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
3748
3749         * Makefile.in (SFILES): Add d-exp.y.
3750         (YYFILES): Add d-exp.c.
3751         (YYOBJ): Add d-exp.o.
3752         (local-maintainer-clean): Delete d-exp.c.
3753         * d-exp.y: New file.
3754         * d-lang.h (d_parse): New declaration.
3755         (d_error): New declaration.
3756         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3757         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3758         PREC_ORDER operators.
3759         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3760
3761 2014-06-19  Yao Qi  <yao@codesourcery.com>
3762
3763         * gdbthread.h (any_running): Remove the declaration.
3764         * thread.c (any_running): Remove.
3765
3766 2014-06-19  Yao Qi  <yao@codesourcery.com>
3767
3768         * gdbthread.h (struct thread_info) <state>: Change its type to
3769         'enum thread_state'.  Update comments.
3770
3771 2014-06-19  Pedro Alves  <palves@redhat.com>
3772
3773         * gdbthread.h (ALL_THREADS): Delete.
3774         (ALL_NON_EXITED_THREADS): New macro.
3775         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3776         instead of ALL_THREADS.
3777         * infrun.c (find_thread_needs_step_over)
3778         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3779         instead of ALL_THREADS.
3780         * record-btrace.c (record_btrace_open)
3781         (record_btrace_stop_recording, record_btrace_close)
3782         (record_btrace_is_replaying, record_btrace_resume)
3783         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3784         * remote.c (append_pending_thread_resumptions): Likewise.
3785         * thread.c (thread_apply_all_command): Likewise.
3786
3787 2014-06-19  Gary Benson  <gbenson@redhat.com>
3788
3789         * i386-nat.c (i386_stopped_by_watchpoint):
3790         Use i386_dr_stopped_by_watchpoint.
3791         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3792         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3793
3794 2014-06-19  Gary Benson  <gbenson@redhat.com>
3795
3796         * nat/i386-dregs.c: New file.
3797         * Makefile.in (i386-dregs.o): New rule.
3798         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3799         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3800         * config/i386/darwin.mh (NATDEPFILES): Likewise.
3801         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3802         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3803         * config/i386/go32.mh (NATDEPFILES): Likewise.
3804         * config/i386/linux.mh (NATDEPFILES): Likewise.
3805         * config/i386/linux64.mh (NATDEPFILES): Likewise.
3806         * config/i386/mingw.mh (NATDEPFILES): Likewise.
3807         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3808         * i386-nat.h (debug_hw_points): New declaration.
3809         * i386-nat.c (breakpoint.h): Remove include.
3810         (command.h): Likewise.
3811         (target.h): Likewise.
3812         (gdb_assert.h): Likewise.
3813         (debug_hw_points): Made nonstatic.
3814         (debug_printf): Now in i386-dregs.c.
3815         (TARGET_HAS_DR_LEN_8): Likewise.
3816         (DR_CONTROL_SHIFT): Likewise.
3817         (DR_CONTROL_SIZE): Likewise.
3818         (DR_RW_EXECUTE): Likewise.
3819         (DR_RW_WRITE): Likewise.
3820         (DR_RW_READ): Likewise.
3821         (DR_RW_IORW): Likewise.
3822         (DR_LEN_1): Likewise.
3823         (DR_LEN_2): Likewise.
3824         (DR_LEN_4): Likewise.
3825         (DR_LEN_8): Likewise.
3826         (DR_LOCAL_ENABLE_SHIFT): Likewise.
3827         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3828         (DR_ENABLE_SIZE): Likewise.
3829         (DR_LOCAL_SLOWDOWN): Likewise.
3830         (DR_GLOBAL_SLOWDOWN): Likewise.
3831         (DR_CONTROL_RESERVED): Likewise.
3832         (I386_DR_CONTROL_MASK): Likewise.
3833         (I386_DR_VACANT): Likewise.
3834         (I386_DR_LOCAL_ENABLE): Likewise.
3835         (I386_DR_GLOBAL_ENABLE): Likewise.
3836         (I386_DR_DISABLE): Likewise.
3837         (I386_DR_SET_RW_LEN): Likewise.
3838         (I386_DR_GET_RW_LEN): Likewise.
3839         (I386_DR_WATCH_HIT): Likewise.
3840         (i386_wp_op_t): Likewise.
3841         (i386_show_dr): Likewise.
3842         (i386_length_and_rw_bits): Likewise.
3843         (i386_insert_aligned_watchpoint): Likewise.
3844         (i386_remove_aligned_watchpoint): Likewise.
3845         (i386_handle_nonaligned_watchpoint): Likewise.
3846         (i386_update_inferior_debug_regs): Likewise.
3847         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3848         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3849         (i386_region_ok_for_watchpoint):
3850         Use i386_dr_region_ok_for_watchpoint.
3851         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3852
3853 2014-06-19  Gary Benson  <gbenson@redhat.com>
3854
3855         * i386-nat.c (i386_insert_hw_breakpoint): Use
3856         i386_insert_watchpoint.
3857         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3858
3859 2014-06-19  Gary Benson  <gbenson@redhat.com>
3860
3861         * i386-nat.c (i386_dr_show): Renamed to
3862         i386_show_dr and made static.  All uses updated.
3863         (i386_dr_length_and_rw_bits): Renamed to
3864         i386_length_and_rw_bits and made static.
3865         All uses updated.
3866         (i386_dr_insert_aligned_watchpoint): Renamed to
3867         i386_insert_aligned_watchpoint and made static.
3868         All uses updated.
3869         (i386_dr_remove_aligned_watchpoint): Renamed to
3870         i386_remove_aligned_watchpoint and made static.
3871         All uses updated.
3872         (i386_dr_update_inferior_debug_regs): Renamed to
3873         i386_update_inferior_debug_regs and made static.
3874         All uses updated.
3875         * nat/i386-dregs.h (i386_dr_show): Removed.
3876         (i386_dr_length_and_rw_bits): Likewise.
3877         (i386_dr_insert_aligned_watchpoint): Likewise.
3878         (i386_dr_remove_aligned_watchpoint): Likewise.
3879         (i386_dr_update_inferior_debug_regs): Likewise.
3880
3881 2014-06-19  Gary Benson  <gbenson@redhat.com>
3882
3883         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3884         * configure: Regenerate.
3885         * config.in: Likewise.
3886         * main.c (signal.h): New include.
3887         (setup_alternate_signal_stack): New function.
3888         (captured_main): Call the above.
3889         * cp-support.c (signal.h): New include.
3890         (catch_demangler_crashes): New flag.
3891         (SIGJMP_BUF): New define.
3892         (SIGSETJMP): Likewise.
3893         (SIGLONGJMP): Likewise.
3894         (gdb_demangle_jmp_buf): New static global.
3895         (gdb_demangle_attempt_core_dump): Likewise.
3896         (gdb_demangle_signal_handler): New function.
3897         (gdb_demangle): If catch_demangler_crashes is set, install the
3898         above signal handler before calling bfd_demangle, and restore
3899         the original signal handler afterwards.  Display the offending
3900         symbol and call demangler_warning the first time a segmentation
3901         fault is caught.
3902         (_initialize_cp_support): New maint set/show command.
3903
3904 2014-06-19  Gary Benson  <gbenson@redhat.com>
3905
3906         * utils.h (resource_limit_kind): New enum.
3907         (can_dump_core): New declaration.
3908         (warn_cant_dump_core): Likewise.
3909         (dump_core): Likewise.
3910         * utils.c (dump_core): Made nonstatic.  Added new
3911         parameter "limit_kind".
3912         (can_dump_core): Made nonstatic. Moved printing code to...
3913         (warn_cant_dump_core): New function.
3914         (can_dump_core_warn): Likewise.
3915         (internal_vproblem): Replace calls to can_dump_core with
3916         calls to can_dump_core_warn.  Supply new argument to each.
3917
3918 2014-06-19  Gary Benson  <gbenson@redhat.com>
3919
3920         * utils.h (demangler_vwarning): New declaration.
3921         (demangler_warning): Likewise.
3922         * utils.c (struct internal_problem)
3923         <user_settable_should_quit>: New field.
3924         <user_settable_should_dump_core>: Likewise
3925         (internal_error_problem): Add values for above new fields.
3926         (internal_warning_problem): Likewise.
3927         (demangler_warning_problem): New static global.
3928         (demangler_vwarning): New function.
3929         (demangler_warning): Likewise.
3930         (add_internal_problem_command): Selectively add commands.
3931         (_initialize_utils): New internal problem command.
3932         * maint.c (maintenance_demangler_warning): New function.
3933         (_initialize_maint_cmds): New command.
3934
3935 2014-06-18  Tom Tromey  <tromey@redhat.com>
3936
3937         * f-valprint.c (info_common_command_for_block): Update.
3938         * symtab.h (struct general_symbol_info) <common_block>: Now
3939         const.
3940
3941 2014-06-18  Tom Tromey  <tromey@redhat.com>
3942
3943         * symtab.h (struct symtab) <blockvector>: Now const.
3944         * ada-lang.c (ada_add_global_exceptions): Update.
3945         * buildsym.c (augment_type_symtab): Update.
3946         * dwarf2read.c (dw2_lookup_symbol): Update.
3947         * jit.c (finalize_symtab): Update.
3948         * jv-lang.c (add_class_symtab_symbol): Update.
3949         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3950         Update.
3951         * objfiles.c (objfile_relocate1): Update.
3952         * psymtab.c (lookup_symbol_aux_psymtabs)
3953         (maintenance_check_psymtabs): Update.
3954         * python/py-symtab.c (stpy_global_block, stpy_static_block):
3955         Update.
3956         * spu-tdep.c (spu_catch_start): Update.
3957         * symmisc.c (dump_symtab_1): Update.
3958         * symtab.c (lookup_global_symbol_from_objfile)
3959         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3960         (basic_lookup_transparent_type_quick)
3961         (basic_lookup_transparent_type, find_pc_sect_symtab)
3962         (find_pc_sect_line, search_symbols): Update.
3963         * block.c (find_block_in_blockvector): Make "bl" const.
3964         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3965         const.
3966         (blockvector_contains_pc): Make "bv" const.
3967         (block_for_pc_sect): Update.
3968         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3969         (blockvector_contains_pc): Update.
3970         * breakpoint.c (resolve_sal_pc): Update.
3971         * inline-frame.c (block_starting_point_at): Update.
3972
3973 2014-06-18  Tom Tromey  <tromey@redhat.com>
3974
3975         * completer.c (complete_line): Make "line_buffer" const.
3976         * completer.h (complete_line): Update.
3977
3978 2014-06-18  Tom Tromey  <tromey@redhat.com>
3979
3980         * symtab.c (add_macro_name): Remove unneeded cast.
3981
3982 2014-06-18  Tom Tromey  <tromey@redhat.com>
3983
3984         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3985         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3986
3987 2014-06-18  Tom Tromey  <tromey@redhat.com>
3988
3989         * probe.c (info_probes_for_ops): Make "arg" const.
3990         * probe.h (info_probes_for_ops): Update.
3991
3992 2014-06-18  Tom Tromey  <tromey@redhat.com>
3993
3994         * varobj.c (varobj_create): Update.
3995         * valops.c (value_of_this): Update.
3996         * tracepoint.c (add_local_symbols, scope_info): Update.
3997         * symtab.h (struct general_symbol_info) <block>: Now const.
3998         * symtab.c (skip_prologue_sal)
3999         (default_make_symbol_completion_list_break_on)
4000         (skip_prologue_using_sal): Update.
4001         * stack.h (iterate_over_block_locals)
4002         (iterate_over_block_local_vars): Update.
4003         * stack.c (print_frame_args): Update.
4004         (iterate_over_block_locals, iterate_over_block_local_vars): Make
4005         parameter const.
4006         (get_selected_block): Make return type const.
4007         * python/py-frame.c (frapy_block): Update.
4008         * python/py-block.c (gdbpy_block_for_pc): Update.
4009         * p-exp.y (%union) <bval>: Now const.
4010         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4011         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4012         * m2-exp.y (%union) <bval>: Now const.
4013         * linespec.c (get_current_search_block): Make return type const.
4014         (create_sals_line_offset, find_label_symbols): Update.
4015         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4016         Update.
4017         (block_starting_point_at): Make "block" const.
4018         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4019         (check_exception_resume): Update.
4020         * guile/scm-frame.c (gdbscm_frame_block): Update.
4021         * guile/scm-block.c (gdbscm_lookup_block): Update.
4022         * frame.h (get_frame_block): Update.
4023         (get_selected_block): Make return type const.
4024         * frame.c (frame_id_inner): Update.
4025         * f-valprint.c (info_common_command_for_block)
4026         (info_common_command): Update.
4027         * dwarf2loc.c (dwarf2_find_location_expression)
4028         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4029         (locexpr_describe_location_piece): Update.
4030         * c-exp.y (%union) <bval>: Now const.
4031         * breakpoint.c (resolve_sal_pc): Update.
4032         * blockframe.c (get_frame_block):Make return type const.
4033         (get_pc_function_start, get_frame_function, find_pc_sect_function)
4034         (block_innermost_frame): Update.
4035         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4036         (block_for_pc, block_for_pc_sect): Update.
4037         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4038         'pblock' const.
4039         (block_for_pc_sect, block_for_pc): Make return type const.
4040         * ax-gdb.c (gen_expr): Update.
4041         * alpha-mdebug-tdep.c (find_proc_desc): Update.
4042         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4043         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4044         (ada_read_var_value): Update.
4045         * ada-exp.y (struct name_info) <block>: Now const.
4046         (%union): Likewise.
4047         (block_lookup): Constify.
4048
4049 2014-06-18  Gary Benson  <gbenson@redhat.com>
4050
4051         * nat/i386-dregs.h: New file.
4052         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4053         * i386-nat.h (i386-dregs.h): New include.
4054         (DR_FIRSTADDR): Now in i386-dregs.h.
4055         (DR_LASTADDR): Likewise.
4056         (DR_NADDR): Likewise.
4057         (DR_STATUS): Likewise.
4058         (DR_CONTROL): Likewise.
4059         (i386_debug_reg_state): Likewise.
4060         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4061
4062 2014-06-18  Don Breazeal  <donb@codesourcery.com>
4063
4064         * breakpoint.c (set_longjmp_breakpoint): Call
4065         momentary_breakpoint_from_master with additional argument.
4066         (set_longjmp_breakpoint_for_call_dummy): Call
4067         momentary_breakpoint_from_master with additional argument.
4068         (set_std_terminate_breakpoint): Call
4069         momentary_breakpoint_from_master with additional argument.
4070         (momentary_breakpoint_from_master): Add argument to function
4071         definition and use it to initialize structure member flag.
4072         (clone_momentary_breakpoint): Call
4073         momentary_breakpoint_from_master with additional argument.
4074         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4075         member flags set in momentary_breakpoint_from_master.
4076
4077 2014-06-18  Gary Benson  <gbenson@redhat.com>
4078
4079         * i386-nat.c (i386_show_dr): Renamed to
4080         i386_dr_show and made nonstatic.  All uses updated.
4081         (i386_length_and_rw_bits): Renamed to
4082         i386_dr_length_and_rw_bits and made nonstatic.
4083         All uses updated.
4084         (i386_insert_aligned_watchpoint): Renamed to
4085         i386_dr_insert_aligned_watchpoint and made nonstatic.
4086         All uses updated.
4087         (i386_remove_aligned_watchpoint): Renamed to
4088         i386_dr_remove_aligned_watchpoint and made nonstatic.
4089         All uses updated.
4090         (i386_update_inferior_debug_regs): Renamed to
4091         i386_dr_update_inferior_debug_regs and made nonstatic.
4092         All uses updated.
4093
4094 2014-06-18  Gary Benson  <gbenson@redhat.com>
4095
4096         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4097         (i386_dr_low_can_set_control): Likewise.
4098         (i386_dr_low_set_addr): Likewise.
4099         (i386_dr_low_set_control): Likewise.
4100         (i386_dr_low_get_addr): Likewise.
4101         (i386_dr_low_get_status): Likewise.
4102         (i386_dr_low_get_control): Likewise.
4103         (i386_insert_aligned_watchpoint): Use new macros.
4104         (i386_update_inferior_debug_regs): Likewise.
4105         (i386_stopped_data_address): Likewise.
4106
4107 2014-06-18  Gary Benson  <gbenson@redhat.com>
4108
4109         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4110         New parameter.  All uses updated.
4111
4112 2014-06-18  Gary Benson  <gbenson@redhat.com>
4113
4114         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4115         All uses updated.
4116
4117 2014-06-18  Gary Benson  <gbenson@redhat.com>
4118
4119         * i386-nat.c (debug_printf): New macro.
4120         (i386_get_debug_register_length): Likewise.
4121         (TARGET_HAS_DR_LEN_8): Use above macro.
4122         (i386_show_dr): Use debug_printf instead of puts_unfiltered
4123         and printf_unfiltered.  Use phex to format values.
4124
4125 2014-06-18  Gary Benson  <gbenson@redhat.com>
4126
4127         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4128         Make const.
4129
4130 2014-06-18  Gary Benson  <gbenson@redhat.com>
4131
4132         * i386-nat.c: Comment changes.
4133
4134 2014-06-18  Gary Benson  <gbenson@redhat.com>
4135
4136         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4137
4138 2014-06-18  Gary Benson  <gbenson@redhat.com>
4139
4140         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4141         (i386_insert_aligned_watchpoint): Likewise.
4142         (i386_remove_aligned_watchpoint): Likewise.
4143         (i386_handle_nonaligned_watchpoint): Likewise.
4144
4145 2014-06-18  Gary Benson  <gbenson@redhat.com>
4146
4147         * i386-nat.c: Whitespace changes.
4148
4149 2014-06-17  Samuel Bronson  <naesten@gmail.com>
4150
4151         * MAINTAINERS: Update Roland McGrath's email address.
4152         Thanks to Sergio Durigan Junior for pointing out that he left
4153         Red Hat a while ago, and giving me a current address.
4154
4155 2014-06-17  Tom Tromey  <tromey@redhat.com>
4156
4157         * utils.h (savestring): Remove declaration.
4158
4159 2014-06-17  Tom Tromey  <tromey@redhat.com>
4160
4161         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4162
4163 2014-06-16  Keith Seitz  <keiths@redhat.com>
4164
4165         PR mi/15863
4166         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4167         to update the varobj if inferior_ptid is null_ptid.
4168
4169 2014-06-16  Tom Tromey  <tromey@redhat.com>
4170
4171         * target.h (struct target_ops) <to_info_proc>: Make parameter
4172         const.
4173         (target_info_proc): Update.
4174         * target.c (target_info_proc): Make "args" const.
4175         * procfs.c (procfs_info_proc): Update.
4176         * linux-tdep.c (linux_info_proc): Update.
4177         (linux_core_info_proc_mappings): Make "args" const.
4178         (linux_core_info_proc): Update.
4179         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4180         * gdbarch.c: Rebuild.
4181         * gdbarch.h: Rebuild.
4182         * corelow.c (core_info_proc): Update.
4183
4184 2014-06-16  Tom Tromey  <tromey@redhat.com>
4185
4186         * target.h (struct target_ops) <to_disconnect>: Make parameter
4187         const.
4188         (target_disconnect): Update.
4189         * target.c (target_disconnect): Make "args" const.
4190         * target-delegates.c: Rebuild.
4191         * remote.c (remote_disconnect): Update.
4192         * record.h (record_disconnect): Update.
4193         * record.c (record_disconnect): Update.
4194         * inf-child.c (inf_child_disconnect): Update.
4195
4196 2014-06-16  Tom Tromey  <tromey@redhat.com>
4197
4198         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4199         * target.c (debug_to_rcmd, default_rcmd): Update.
4200         * target-delegates.c: Rebuild.
4201         * remote.c (remote_rcmd): Update.
4202         * monitor.c (monitor_rcmd): Update.
4203
4204 2014-06-16  Pedro Alves  <palves@redhat.com>
4205
4206         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4207         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4208         have OBJF_SHARED set.
4209         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4210         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
4211         instead of OBJF_USERLOADED.
4212         * objfiles.h (OBJF_SHARED): Update comment.
4213         (userloaded_objfile_contains_address_p): Rename to ...
4214         (shared_objfile_contains_address_p): ... this, and update
4215         comments.
4216         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4217         new objfile.
4218         (remove_symbol_file_command): Skip objfiles that don't have
4219         OBJF_SHARED set.
4220
4221 2014-06-16  Tom Tromey  <tromey@redhat.com>
4222
4223         * minsyms.h (prim_record_minimal_symbol)
4224         (prim_record_minimal_symbol_and_info): Update comments.
4225
4226 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
4227
4228         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4229         or --without-guile, according to how GDB was built.
4230
4231 2014-06-13  Tom Tromey  <tromey@redhat.com>
4232
4233         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4234         to help_list.
4235         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4236         to help_list.
4237         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4238         help_list.
4239         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4240         help_list.Pass all_commands, not -1, to help_list.
4241         * cli/cli-dump.c (dump_command, append_command)
4242         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4243         (binary_dump_command, binary_append_command): Pass all_commands,
4244         not -1, to help_list.
4245         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4246         -1, to help_list.
4247         * valprint.c (set_print, set_print_raw): Pass all_commands, not
4248         -1, to help_list.
4249         * typeprint.c (set_print_type): Pass all_commands, not -1, to
4250         help_list.
4251         * top.c (set_history): Pass all_commands, not -1, to help_list.
4252         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4253         all_commands, not -1, to help_list.
4254         * symfile.c (overlay_command): Pass all_commands, not -1, to
4255         help_list.
4256         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4257         help_list.
4258         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4259         help_list.
4260         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4261         -1, to help_list.
4262         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4263         not -1, to help_list.
4264         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4265         not -1, to help_list.
4266         * maint.c (maintenance_command, maintenance_info_command)
4267         (maintenance_print_command, maintenance_set_cmd): Pass
4268         all_commands, not -1, to help_list.
4269         * macrocmd.c (macro_command): Pass all_commands, not -1, to
4270         help_list.
4271         * language.c (set_check): Pass all_commands, not -1, to help_list.
4272         * infcmd.c (unset_command): Pass all_commands, not -1, to
4273         help_list.
4274         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4275         help_list.
4276         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4277         help_list.
4278         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4279         help_list.
4280         * breakpoint.c (save_command): Pass all_commands, not -1, to
4281         help_list.
4282         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4283         all_commands, not -1, to help_list.
4284
4285 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
4286
4287         * regcache.c (struct register_to_invalidate): New structure.
4288         (do_register_invalidate, make_cleanup_regcache_invalidate): New
4289         functions.
4290         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4291
4292 2014-06-12  Yao Qi  <yao@codesourcery.com>
4293
4294         * varobj.c (varobj_get_num_children): Call
4295         varobj_is_dynamic_p.
4296         (varobj_list_children): Likewise.
4297         (varobj_update): Likewise.  Update comments.
4298
4299 2014-06-12  Yao Qi  <yao@codesourcery.com>
4300
4301         * varobj.c (varobj_pretty_printed_p): Rename to ...
4302         (varobj_is_dynamic_p): ... this.  New function.
4303         * varobj.h (varobj_pretty_printed_p): Remove declaration.
4304         (varobj_is_dynamic_p): Declare.
4305         * mi/mi-cmd-var.c (print_varobj): All callers updated.
4306         (mi_print_value_p, varobj_update_one): Likewise.
4307
4308 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
4309             Yao Qi  <yao@codesourcery.com>
4310
4311         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4312         (varobj_get_iterator): Wrap up code for pretty-printer by
4313         "#if HAVE_PYTHON" and "#endif".
4314         (update_dynamic_varobj_children): Likewise.
4315
4316 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
4317             Yao Qi  <yao@codesourcery.com>
4318
4319         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4320         gdb_python_initialized is false.  Move some code from varobj.c.
4321         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4322         * varobj.c: Move "varobj-iter.h" inclusion earlier.
4323         (struct varobj_item): Moved to varobj-iter.h".
4324         (varobj_clear_saved_item): New function.
4325         (update_dynamic_varobj_children): Move python-related code to
4326         py-varobj.c.
4327         (free_variable): Call varobj_clear_saved_item and
4328         varobj_iter_delete.
4329
4330 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
4331             Yao Qi  <yao@codesourcery.com>
4332
4333         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4334         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4335         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4336         (py-varobj.o): New rule.
4337         * python/py-varobj.c: New file.
4338         * python/python-internal.h (py_varobj_get_iterator): Declare.
4339         * varobj-iter.h: New file.
4340         * varobj.c: Include "varobj-iter.h"
4341         (struct varobj) <child_iter>: Change its type from "PyObject *"
4342         to "struct varobj_iter *".
4343         <saved_item>: Likewise.
4344         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4345         [HAVE_PYTHON] (varobj_get_iterator): New function.
4346         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4347         python-specific code to python/py-varobj.c.
4348         (install_visualizer): Call varobj_iter_delete instead of
4349         Py_XDECREF.
4350         * varobj.h (varobj_ensure_python_env): Declare.
4351
4352 2014-06-12  Yao Qi  <yao@codesourcery.com>
4353
4354         * varobj.c (struct varobj_item): New structure.
4355         (create_child_with_value): Update declaration.
4356         (varobj_add_child): Replace arguments 'name' and 'value' with
4357         'item'.  All callers updated.
4358         (install_dynamic_child): Likewise.
4359         (update_dynamic_varobj_children): Likewise.
4360         (varobj_add_child): Likewise.
4361         (create_child_with_value): Likewise.
4362
4363 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
4364
4365         * NEWS: Create a new section for the next release branch.
4366         Rename the section of the current branch, now that it has
4367         been cut.
4368
4369 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
4370
4371         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4372         * version.in: Bump version to 7.8.50.DATE-cvs.
4373
4374 2014-06-11  Pedro Alves  <palves@redhat.com>
4375
4376         PR remote/17028
4377         * ser-mingw.c (net_windows_socket_check_pending): New function.
4378         (net_windows_select_thread): Ignore spurious wakeups.  Use
4379         net_windows_socket_check_pending.
4380         (net_windows_wait_handle): Check for pending events with
4381         ioctlsocket, through net_windows_socket_check_pending, instead of
4382         checking the socket's event.
4383
4384 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
4385
4386         * python/python-internal.h (gdb_PyObject_GetAttrString)
4387         (gdb_PyObject_HasAttrString): New inline function definitions.
4388         * py-value.c (get_field_flag): Remove the now unnecessary cast to
4389         char * of the second argument to PyObject_GetAttrString.
4390
4391 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
4392
4393         * serial.c (serial_write): Fix index of character to be printed
4394         in call to serial_logchar when serial debug traces are enabled.
4395
4396 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
4397
4398         * gdbtypes (resolve_dynamic_range): Add function description.
4399
4400 2014-06-09  Pedro Alves  <palves@redhat.com>
4401
4402         * linux-nat.c (linux_child_follow_fork): Initialize status with
4403         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
4404         inner block.  Only pass the signal to PTRACE_DETACH if in pass
4405         state.
4406
4407 2014-06-09  Gary Benson  <gbenson@redhat.com>
4408
4409         * common/signals.c (gdb_signal_from_host): Reorder to separate
4410         the always-available ANSI-standard signals from the signals that
4411         require checking.
4412         (do_gdb_signal_to_host): Likewise.
4413         * proc-events.c (signal_table): Likewise.
4414
4415 2014-06-08  Hui Zhu  <hui@codesourcery.com>
4416
4417         * common/linux-ptrace.c (linux_disable_event_reporting): New
4418         function.
4419         * common/linux-ptrace.h (linux_disable_event_reporting): New
4420         declaration.
4421         * linux-nat.c (linux_child_follow_fork): Do a single step before
4422         detach.
4423
4424 2014-06-07  Keith Seitz  <keiths@redhat.com>
4425
4426         Revert:
4427         PR c++/16253
4428         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4429         from symbol_matches_domain in symtab.c. All local callers
4430         of symbol_matches_domain updated.
4431         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4432         search STRUCT_DOMAIN.
4433         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4434         independently.  standard_lookup will do that automatically.
4435         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4436         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4437         (cp_lookup_symbol_in_namespace): Likewise.
4438         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4439         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4440         may return a STRUCT_DOMAIN match.
4441         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4442         * cp-support.c: Include language.h.
4443         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4444         VAR_DOMAIN.
4445         * psymtab.c (match_partial_symbol): Compare the requested
4446         domain with the symbol's domain directly.
4447         (lookup_partial_symbol): Likewise.
4448         * symtab.c (lookup_symbol_in_language): Explain when/why
4449         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4450         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4451         appropriate languages.
4452         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4453         and moved to ada-lang.c
4454         (lookup_block_symbol): Explain that this function only returns
4455         symbol matching the requested DOMAIN.
4456         Compare the requested domain with the symbol's domain directly.
4457         (iterate_over_symbols): Compare the requested domain with the
4458         symbol's domain directly.
4459         * symtab.h (symbol_matches_domain): Remove.
4460
4461 2014-06-06  Doug Evans  <xdje42@gmail.com>
4462
4463         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4464         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4465         (gdbscm_guile_version_is_at_least): Declare.
4466         (gdbscm_scm_string_to_int): Declare.
4467         * guile/guile.c (gdbscm_guile_major_version): New global.
4468         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4469         (guile_datadir): New static global.
4470         (gdbscm_guile_data_directory): New function.
4471         (initialize_scheme_side): Update.
4472         (misc_guile_functions): Add guile-data-directory.
4473         (initialize_gdb_module): Fetch guile version number.
4474         * guile/lib/gdb.scm: Remove call to add-to-load-path.
4475         * guile/lib/gdb/init.scm (%initialize!): Ditto.
4476         * guile/lib/gdb/boot.scm: Use guile-data-directory.
4477         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4478         comments.
4479         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4480         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4481         * guile/scm-value.c (gdbscm_value_to_string): Only call
4482         scm_port_conversion_strategy if Guile version >= 2.0.6.
4483
4484 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
4485
4486         * main.c (print_gdb_help): Add -q and --silent.
4487
4488 2014-06-06  Gary Benson  <gbenson@redhat.com>
4489
4490         * common/signals.c: Remove preprocessor conditionals for
4491         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4492         SIGSEGV and SIGTERM.
4493         * proc-events.c: Likewise.
4494
4495 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
4496
4497         * symfile.c (symfile_free_objfile): Remove restriction to
4498         OBJF_USERLOADED.
4499         * symfile-mem.c (symbol_file_add_from_memory): Call
4500         add_target_sections_of_objfile.
4501
4502 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
4503
4504         * guile/scm-value.c (gdbscm_history_append_x): Use
4505         'vlscm_get_value_smob_arg_unsafe' instead of
4506         'vlscm_scm_to_value'.
4507
4508 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
4509
4510         PR mi/15806
4511         * utils.c (printchar): Don't escape at all if quoter is NUL.
4512         Update function documentation to clarify effect of parameter
4513         QUOTER.
4514         * remote.c (escape_buffer): Pass '\\' as the quoter to
4515         fputstrn_unfiltered.
4516         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4517         generate the output.
4518         (mi_solib_unloaded): Same.
4519
4520 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
4521
4522         * development.sh: Delete.
4523         * Makefile.in (config.status): Adjust dependency on development.sh.
4524         * configure.ac: Adjust development.sh source call.
4525         * configure: Regenerate.
4526
4527 2014-06-04  Doug Evans  <xdje42@gmail.com>
4528
4529         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4530         is_scheme_bkpt, spec.
4531         (bpscm_make_breakpoint_smob): Initialize new members.
4532         (gdbscm_create_breakpoint_x): Split into two ...
4533         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4534         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4535         (scheme_function breakpoint_functions): Update.
4536         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
4537         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
4538         register-breakpoint!.
4539
4540 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
4541
4542         PR server/17023
4543         * mem-break.c (z_type_supported): Return zero if
4544         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4545
4546 2014-06-04  Tom Tromey  <tromey@redhat.com>
4547
4548         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4549         value_from_contents_and_address_unresolved.
4550         (ada_template_to_fixed_record_type_1): Likewise.
4551         (ada_which_variant_applies): Likewise.
4552         * value.h (value_from_contents_and_address_unresolved): Declare.
4553         * value.c (value_from_contents_and_address_unresolved): New
4554         function.
4555         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4556         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4557         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4558
4559 2014-06-04  Tom Tromey  <tromey@redhat.com>
4560
4561         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4562
4563 2014-06-04  Tom Tromey  <tromey@redhat.com>
4564
4565         * procfs.c (procfs_attach): Make "args" const.
4566         * windows-nat.c (windows_attach): Make "args" const.
4567         * nto-procfs.c (procfs_attach): Make "args" const.
4568         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4569         * go32-nat.c (go32_attach): Make "args" const.
4570         * gnu-nat.c (gnu_attach): Make "args" const.
4571         * darwin-nat.c (darwin_attach): Make "args" const.
4572         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4573         * linux-nat.c (linux_nat_attach): Make "args" const.
4574         * remote.c (extended_remote_attach_1, extended_remote_attach):
4575         Make "args" const.
4576         * target.h (struct target_ops) <to_attach>: Make "args" const.
4577         (find_default_attach): Likewise.
4578         * utils.c (parse_pid_to_attach): Make "args" const.
4579         * utils.h (parse_pid_to_attach): Update.
4580
4581 2014-06-04  Tom Tromey  <tromey@redhat.com>
4582
4583         * target-delegates.c: Rebuild.
4584         * target.c (default_thread_address_space): New function.
4585         (target_thread_address_space): Simplify.
4586         * target.h (struct target_ops) <to_thread_address_space>: Add
4587         TARGET_DEFAULT_FUNC.
4588
4589 2014-06-04  Doug Evans  <xdje42@gmail.com>
4590
4591         * guile/scm-type.c (type_smob): Remove duplicate typedef.
4592
4593 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
4594
4595         * record-btrace.c: Include event-loop.h and inf-loop.h.
4596         (record_btrace_resume_exec_dir)
4597         (record_btrace_async_inferior_event_handler)
4598         (record_btrace_handle_async_inferior_event): New.
4599         (record_btrace_open): Create async event handler.
4600         (record_btrace_close): Delete async event handler.
4601         (record_btrace_resume): Set record_btrace_resume_exec_dir,
4602         Mark async event handler.
4603         (record_btrace_execution_direction): New.
4604         (init_record_btrace_ops): Initialize to_execution_direction.
4605
4606 2014-06-03  Doug Evans  <xdje42@gmail.com>
4607
4608         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4609         (gdbscm_make_parameter): Ditto.
4610
4611 2014-06-03  Doug Evans  <dje@google.com>
4612
4613         * exec.c (exec_close_1): Call clear_section_table instead of
4614         resize_section_table.
4615         (clear_section_table): New function.
4616         (resize_section_table): Make static.  Rename arg num_added to
4617         adjustment.
4618         * exec.h (clear_section_table): Declare.
4619         (resize_section_table): Delete.
4620         * progspace.c (release_program_space): Call clear_section_table
4621         instead of resize_section_table.
4622
4623 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4624
4625         * NEWS (Python Scripting): Add entry about the new xmethods
4626         feature.
4627
4628 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4629
4630         * python/py-xmethods.c: New file.
4631         * python/py-objfile.c (objfile_object): New field 'xmethods'.
4632         (objfpy_dealloc): XDECREF on the new xmethods field.
4633         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4634         field.
4635         (objfpy_get_xmethods): New function.
4636         (objfile_getset): New entry 'xmethods'.
4637         * python/py-progspace.c (pspace_object): New field 'xmethods'.
4638         (pspy_dealloc): XDECREF on the new xmethods field.
4639         (pspy_new, pspace_to_pspace_object): Initialize xmethods
4640         field.
4641         (pspy_get_xmethods): New function.
4642         (pspace_getset): New entry 'xmethods'.
4643         * python/python-internal.h: Add declarations for new functions.
4644         * python/python.c (_initialize_python): Invoke
4645         gdbpy_initialize_xmethods.
4646         * python/lib/gdb/__init__.py (xmethods): New
4647         attribute.
4648         * python/lib/gdb/xmethod.py: New file.
4649         * python/lib/gdb/command/xmethods.py: New file.
4650
4651 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4652
4653         * eval.c (evaluate_subexp_standard): Call the xmethod if the
4654         best match method returned by find_overload_match is an xmethod.
4655         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4656         the best matching operator returned by find_overload_match is an
4657         xmethod.
4658         * valops.c: #include "extension.h".
4659         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4660         Return void.  The list of matching source methods is returned in
4661         "fn_list" and a vector of matching debug method workers is
4662         returned in "xm_worker_vec".  Update all callers.
4663         (value_find_oload_method_list): Likewise.
4664         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
4665         non-NULL, then the index of the best matching method in this
4666         vector is returned.  Update all callers.
4667         (find_overload_match): Include xmethods while performing overload
4668         resolution.
4669
4670 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4671
4672         * defs.h (enum lval_type): New enumerator "lval_xcallable".
4673         * extension-priv.h (struct extension_language_ops): Add the
4674         xmethod interface.
4675         * extension.c (new_xmethod_worker, clone_xmethod_worker,
4676         get_matching_xmethod_workers, get_xmethod_argtypes,
4677         invoke_xmethod, free_xmethod_worker,
4678         free_xmethod_worker_vec): New functions.
4679         * extension.h: #include "common/vec.h".
4680         New function declarations.
4681         (struct xmethod_worker): New struct.
4682         (VEC (xmethod_worker_ptr)): New vector type.
4683         (xmethod_worker_ptr): New typedef.
4684         (xmethod_worker_vec): Likewise.
4685         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4686         builtin_type.
4687         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4688         (struct builtin_type): New field "xmethod".
4689         * valarith.c (value_ptradd): Assert that the value argument is not
4690         lval_xcallable.
4691         * valops.c (value_must_coerce_to_target): Return 0 for
4692         lval_xcallable values.
4693         * value.c (struct value): New field XM_WORKER in the field
4694         LOCATION.
4695         (value_address, value_raw_address): Return 0 for lval_xcallable
4696         values.
4697         (set_value_address): Assert that the value is not an
4698         lval_xcallable.
4699         (value_free): Free the associated xmethod worker when freeing
4700         lval_xcallable values.
4701         (set_value_component_location): Assert that the WHOLE value is not
4702         lval_xcallable.
4703         (value_of_xmethod, call_xmethod): New functions.
4704         * value.h: Declare "struct xmethod_worker".
4705         Declare new functions value_of_xmethod, call_xmethod.
4706
4707 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
4708             Pedro Alves  <palves@redhat.com>
4709
4710         PR breakpoints/17000
4711         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4712         New function, extracted from software_breakpoint_inserted_here_p.
4713         (software_breakpoint_inserted_here_p): Replace factored out code
4714         by call to find_non_raw_software_breakpoint_inserted_here.
4715         (bp_target_info_copy_insertion_state): New function.
4716         (bkpt_insert_location): Handle the case of a single-step
4717         breakpoint already inserted at the same address.
4718         (bkpt_remove_location): Handle the case of a single-step
4719         breakpoint still inserted at the same address.
4720         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4721         breakpoint already inserted at the same address.
4722         (deprecated_remove_raw_breakpoint): Handle the case of a
4723         non-raw breakpoint still inserted at the same address.
4724         (find_single_step_breakpoint): New function, extracted from
4725         single_step_breakpoint_inserted_here_p.
4726         (find_single_step_breakpoint): New function,
4727         factored out from single_step_breakpoint_inserted_here_p.
4728         (single_step_breakpoint_inserted_here_p): Reimplement.
4729
4730 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
4731
4732         Pushed by Joel Brobecker  <brobecker@adacore.com>
4733         * source.c (show_substitute_path_command): Fix display of matching
4734         substitution rules.
4735
4736 2014-06-03  Gary Benson  <gbenson@redhat.com>
4737
4738         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4739
4740 2014-06-02  Doug Evans  <xdje42@gmail.com>
4741
4742         Add parameter support for Guile.
4743         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4744         (SUBDIR_GUILE_SRCS): Add scm-param.c.
4745         (scm-param.o): New rule.
4746         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4747         (gdbscm_misc_error): Declare.
4748         (gdbscm_canonicalize_command_name): Declare.
4749         (gdbscm_scm_to_host_string): Declare.
4750         (gdbscm_scm_from_host_string): Declare.
4751         (gdbscm_initialize_parameters): Declare.
4752         * guile/guile.c (initialize_gdb_module): Call
4753         gdbscm_initialize_parameters.
4754         * guile/lib/gdb.scm: Export parameter symbols.
4755         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4756         cmdscm_canonicalize_name and made public.  All callers updated.
4757         * guile/scm-exception.c (gdbscm_misc_error): New function.
4758         * guile/scm-param.c: New file.
4759         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4760         (gdbscm_scm_to_host_string): New function.
4761         (gdbscm_scm_from_host_string): New function.
4762         * scm-utils.c (gdbscm_gc_dup_argv): New function.
4763
4764 2014-06-02  Doug Evans  <xdje42@gmail.com>
4765
4766         Add command support for Guile.
4767         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4768         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4769         (scm-cmd.o): New rule.
4770         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4771         (gdbscm_user_error_p): Declare.
4772         (gdbscm_parse_command_name): Declare.
4773         (gdbscm_valid_command_class_p): Declare.
4774         (gdbscm_initialize_commands): Declare.
4775         * guile/guile.c (initialize_gdb_module): Call
4776         gdbscm_initialize_commands.
4777         * guile/lib/gdb.scm: Export command symbols.
4778         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4779         (throw-user-error): New function.
4780         * guile/scm-cmd.c: New file.
4781         * guile/scm-exception.c (user_error_symbol): New static global.
4782         (gdbscm_user_error_p): New function.
4783         (gdbscm_initialize_exceptions): Set user_error_symbol.
4784         * scm-utils.c (gdbscm_gc_xstrdup): New function.
4785
4786 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
4787
4788         * top.c (command_loop): Handle comments here...
4789         (command_line_input): ... not here.
4790
4791 2014-06-02  Doug Evans  <xdje42@gmail.com>
4792
4793         Add progspace support for Guile.
4794         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4795         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4796         (scm-progspace.o): New rule.
4797         * guile/guile-internal.h (pspace_smob): New typedef.
4798         (psscm_pspace_smob_pretty_printers): Declare.
4799         (psscm_pspace_smob_from_pspace): Declare.
4800         (psscm_scm_from_pspace): Declare.
4801         * guile/guile.c (initialize_gdb_module): Call
4802         gdbscm_initialize_pspaces.
4803         * guile/lib/gdb.scm: Export progspace symbols.
4804         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4805         support.
4806         (append-pretty-printer!): Ditto.
4807         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4808         Implement.
4809         * guile/scm-progspace.c: New file.
4810
4811 2014-06-03  Alan Modra  <amodra@gmail.com>
4812
4813         * ppc64-tdep.c (ppc64_standard_linkage8): New.
4814         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4815
4816 2014-06-02  Doug Evans  <dje@google.com>
4817
4818         Add support for skeletonless type units.
4819         * dwarf2read.c (struct dwarf2_per_objfile): New member
4820         n_allocated_type_units.
4821         (struct dwarf2_per_objfile) <tu_stats>: New member
4822         nr_all_type_units_reallocs.
4823         (create_signatured_type_table_from_index): Initialize
4824         n_allocated_type_units
4825         (create_all_type_units): Ditto.
4826         (add_type_unit): Move up in file.  New arg slot.
4827         All callers updated.  Increase space for all_type_units more
4828         efficiently.
4829         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4830         (lookup_dwo_signatured_type): Handle skeletonless TUs.
4831         (lookup_dwp_signatured_type): Ditto.
4832         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4833         All callers updated.
4834         (build_type_psymtabs_1): Leave type_unit_groups as
4835         NULL if no TUs present.
4836         (print_tu_stats): New function.
4837         (process_skeletonless_type_unit): New function.
4838         (process_dwo_file_for_skeletonless_type_units): New
4839         function.
4840         (process_skeletonless_type_units): New function.
4841         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4842         Call print tu_stats if debugging enabled.
4843
4844 2014-06-02  Pedro Alves  <palves@redhat.com>
4845
4846         * breakpoint.c (build_target_command_list): Don't build a command
4847         list if we have any duplicate location that isn't a dprintf.
4848
4849 2014-06-02  Pedro Alves  <palves@redhat.com>
4850
4851         * breakpoint.c (dprintf_breakpoint_hit): New function.
4852         (initialize_breakpoint_ops): Install it as dprintf's
4853         breakpoint_hit method.
4854
4855 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
4856
4857         * source.c (substitute_path_rule_matches): Simplify using
4858         filename_ncmp instead of FILENAME_CMP.
4859
4860 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
4861
4862         * source.c (substitute_path_rule_matches): Remove trailing spaces.
4863
4864 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
4865
4866         * configure.ac: When Guile is available, check for the
4867         availability of 'scm_new_smob'.
4868         * configure, config.h.in: Regenerate.
4869         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4870         function.
4871
4872 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
4873
4874         * frame.c (struct frame_info): Add stop_string field.
4875         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4876         (get_prev_frame_always): Old content moved into
4877         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
4878         TRY_CATCH, handle MEMORY_ERROR exceptions.
4879         (frame_stop_reason_string): New function definition.
4880         * frame.h (unwind_stop_reason_to_string): Extend comment to
4881         mention frame_stop_reason_string.
4882         (frame_stop_reason_string): New function declaration.
4883         * stack.c (frame_info): Switch to frame_stop_reason_string.
4884         (backtrace_command_1): Switch to frame_stop_reason_string.
4885         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4886         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4887         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4888
4889 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
4890
4891         * frame.c (frame_stop_reason_string): Rename to ...
4892         (unwind_stop_reason_to_string): this.
4893         * frame.h (frame_stop_reason_string): Rename to ...
4894         (unwind_stop_reason_to_string): this.
4895         * stack.c (frame_info): Update call to frame_stop_reason_string.
4896         (backtrace_command_1): Likewise.
4897         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4898         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4899
4900 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
4901
4902         * frame.c (remove_prev_frame): New function.
4903         (get_prev_frame_if_no_cycle): Create / discard cleanup using
4904         remove_prev_frame.
4905
4906 2014-05-29  Pedro Alves  <palves@redhat.com>
4907
4908         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4909         and make it const.  When a single-step decays to a continue,
4910         clear 'step', not 'hw_step'.  Pass whether the caller wanted
4911         to step to user_visible_resume_ptid, not what we ask the
4912         target to do.
4913
4914 2014-05-29  Pedro Alves  <palves@redhat.com>
4915
4916         * infrun.c (process_event_stop_test, handle_step_into_function)
4917         (handle_step_into_function_backward): Adjust.
4918         Don't set the even thread's stop_step and call stop_waiting before
4919         calling end_stepping_range.  Instead do that ...
4920         (end_stepping_range): ... here.  Take an ecs pointer parameter.
4921
4922 2014-05-29  Pedro Alves  <palves@redhat.com>
4923
4924         * infrun.c (stop_stepping): Rename to ...
4925         (stop_waiting): ... this.
4926         (proceed): Update comment.
4927         (process_event_stop_test, handle_inferior_event)
4928         (handle_signal_stop, handle_step_into_function)
4929         (handle_step_into_function_backward): Update.
4930
4931 2014-05-29  Pedro Alves  <palves@redhat.com>
4932
4933         * infcall.c (run_inferior_call): Don't check whether the current
4934         thread is running after the proceed call.
4935
4936 2014-05-29  Pedro Alves  <palves@redhat.com>
4937             Tom Tromey  <tromey@redhat.com>
4938
4939         * NEWS: Mention "maint set target-async", "set mi-async", and that
4940         background execution commands are now always available.
4941         * target.h (target_async_permitted): Update comment.
4942         * target.c (target_async_permitted, target_async_permitted_1):
4943         Default to 1.
4944         (set_target_async_command): Rename to ...
4945         (maint_set_target_async_command): ... this.
4946         (show_target_async_command): Rename to ...
4947         (maint_show_target_async_command): ... this.
4948         (_initialize_target): Adjust.
4949         * infcmd.c (prepare_execution_command): Make extern.
4950         * inferior.h (prepare_execution_command): Declare.
4951         * infrun.c (set_observer_mode): Leave target async alone.
4952         * mi/mi-interp.c (mi_interpreter_init): Install
4953         mi_on_sync_execution_done as sync_execution_done observer.
4954         (mi_on_sync_execution_done): New function.
4955         (mi_execute_command_input_handler): Don't print the prompt if we
4956         just started a synchronous command with an async target.
4957         (mi_on_resume): Check sync_execution before printing prompt.
4958         * mi/mi-main.h (mi_async_p): Declare.
4959         * mi/mi-main.c: Include gdbcmd.h.
4960         (mi_async_p): New function.
4961         (mi_async, mi_async_1): New globals.
4962         (set_mi_async_command, show_mi_async_command, mi_async): New
4963         functions.
4964         (exec_continue): Call prepare_execution_command.
4965         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4966         (mi_execute_async_cli_command): Use mi_async_p.
4967         (_initialize_mi_main): Install "set mi-async".  Make
4968         "target-async" a deprecated alias.
4969
4970 2014-05-29  Pedro Alves  <palves@redhat.com>
4971
4972         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4973         (_initialize_cli_interp): Adjust.
4974         * event-loop.c: Include "observer.h".
4975         (start_event_loop): Notify 'command_error' observers instead of
4976         calling display_gdb_prompt.  Remove FIXME comment.
4977         * event-top.c (display_gdb_prompt): Remove call into the
4978         interpreters.
4979         * inf-loop.c: Include "observer.h".
4980         (inferior_event_handler): Notify 'command_error' observers instead
4981         of calling display_gdb_prompt.
4982         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4983         observers instead of calling display_gdb_prompt.
4984         * interps.c (interp_set): Don't call display_gdb_prompt.
4985         (current_interp_display_prompt_p): Delete.
4986         * interps.h (interp_prompt_p): Delete declaration.
4987         (interp_prompt_p_ftype): Delete.
4988         (struct interp_procs) <prompt_proc_p>: Delete field.
4989         (current_interp_display_prompt_p): Delete declaration.
4990         * mi-interp.c (mi_interpreter_prompt_p): Delete.
4991         (_initialize_mi_interp): Adjust.
4992         * tui-interp.c (tui_init): Install 'sync_execution_done' and
4993         'command_error' observers.
4994         (tui_on_sync_execution_done, tui_on_command_error): New
4995         functions.
4996         (tui_display_prompt_p): Delete.
4997         (_initialize_tui_interp): Adjust.
4998
4999 2014-05-29  Pedro Alves  <palves@redhat.com>
5000
5001         PR gdb/13860
5002         * cli/cli-interp.c: Include infrun.h and observer.h.
5003         (cli_uiout, cli_interp): New globals.
5004         (cli_on_signal_received, cli_on_end_stepping_range)
5005         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5006         functions.
5007         (cli_interpreter_init): Install them as 'end_stepping_range',
5008         'signal_received' 'signal_exited', 'exited' and 'no_history'
5009         observers.
5010         (_initialize_cli_interp): Remove cli_interp local.
5011         * infrun.c (handle_inferior_event): Call the several stop reason
5012         observers instead of printing the stop reason directly.
5013         (end_stepping_range): New function.
5014         (print_end_stepping_range_reason, print_signal_exited_reason)
5015         (print_exited_reason, print_signal_received_reason)
5016         (print_no_history_reason): Make static, and add an uiout
5017         parameter.  Print to that instead of to CURRENT_UIOUT.
5018         * infrun.h (print_end_stepping_range_reason)
5019         (print_signal_exited_reason, print_exited_reason)
5020         (print_signal_received_reason print_no_history_reason): New
5021         declarations.
5022         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5023         'mi_uiout'.
5024         <cli_uiout>: New field.
5025         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
5026         uiout for CLI output.  Install 'signal_received',
5027         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5028         observers.
5029         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5030         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5031         (mi_on_no_history): New functions.
5032         (ui_out_free_cleanup): Delete function.
5033         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5034         instead use the one already stored in the MI interpreter data.
5035         (mi_ui_out): Adjust.
5036         * tui/tui-interp.c: Include infrun.h and observer.h.
5037         (tui_interp): New global.
5038         (tui_on_signal_received, tui_on_end_stepping_range)
5039         (tui_on_signal_exited, tui_on_exited)
5040         (tui_on_no_history): New functions.
5041         (tui_init): Install them as 'end_stepping_range',
5042         'signal_received' 'signal_exited', 'exited' and 'no_history'
5043         observers.
5044         (_initialize_tui_interp): Delete tui_interp local.
5045
5046 2014-05-29  Pedro Alves  <palves@redhat.com>
5047
5048         PR gdb/15713
5049         * linux-nat.c (linux_nat_resume_callback): Rename the second
5050         parameter to 'except'.  Skip LP if it points to EXCEPT.
5051         (linux_nat_resume): Don't mark the event lwp as not stopped
5052         before resuming sibling lwps.  Instead ask
5053         linux_nat_resume_callback to skip the event lwp.  Mark it as not
5054         stopped after actually resuming it.
5055         (linux_handle_syscall_trap): Mark the lwp as not stopped after
5056         resuming it.
5057         (wait_lwp): Mark the lwp as stopped here.
5058         (stop_wait_callback): Mark the lwp as not stopped right after
5059         resuming it.  Don't mark lwps as stopped here.
5060         (linux_nat_filter_event): Mark the lwp as stopped earlier.
5061         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5062
5063 2014-05-29  Pedro Alves  <palves@redhat.com>
5064
5065         PR PR15693
5066         * infrun.c (resume): Determine how much to resume depending on
5067         whether the caller wanted a step, not whether we can hardware step
5068         the target.  Mark all threads that we intend to run as running,
5069         unless we're calling an inferior function.
5070         (normal_stop): If the thread is running an infcall, don't finish
5071         thread state.
5072         * target.c (target_resume): Don't mark threads as running here.
5073
5074 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
5075
5076         * serial.c (_initialize_serial): Remove support for
5077         the "set remotebaud" and "show remotebaud" commands.
5078         * NEWS: Add entry documenting the removal of that command.
5079
5080 2014-05-28  Yao Qi  <yao@codesourcery.com>
5081
5082         * charset.c: Fix typo in comments.
5083
5084 2014-05-27  Gary Benson  <gbenson@redhat.com>
5085
5086         * utils.c (internal_vproblem): Prompt for a bug report.
5087
5088 2014-05-26  Andy Wingo  <wingo@igalia.com>
5089
5090         * guile/scm-arch.c (arscm_mark_arch_smob):
5091         * guile/scm-block.c (bkscm_mark_block_smob)
5092         (bkscm_mark_block_syms_progress_smob):
5093         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5094         * guile/scm-exception.c (exscm_mark_exception_smob):
5095         * guile/scm-frame.c (frscm_mark_frame_smob):
5096         * guile/scm-iterator.c (itscm_mark_iterator_smob):
5097         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5098         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5099         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5100         (ppscm_mark_pretty_printer_worker_smob):
5101         * guile/scm-symbol.c (syscm_mark_symbol_smob):
5102         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5103         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5104         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5105         mark functions.
5106         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5107         function.
5108
5109 2014-05-26  Andy Wingo  <wingo@igalia.com>
5110             Doug Evans  <xdje42@gmail.com>
5111
5112         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5113         empty_base_class.  All uses updated.
5114         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5115         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5116         Adapt all callers.
5117         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5118         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5119         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5120         (gdbscm_gsmob_has_property_p, add_property_name)
5121         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5122         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5123         (gdb-object-has-property?, gdb-object-properties): Remove.
5124         (gdb-object-kind): Renamed from gsmob-kind.
5125
5126 2014-05-26  Andy Wingo  <wingo@igalia.com>
5127
5128         * configure.ac (try_guile_versions): Allow building with guile 2.2.
5129         * configure: Regenerate.
5130
5131 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
5132
5133         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5134
5135 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
5136
5137         * record-btrace.c (record_btrace_allow_memory_access): Remove.
5138         (replay_memory_access_read_only, replay_memory_access_read_write)
5139         (replay_memory_access_types, replay_memory_access)
5140         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5141         (cmd_set_record_btrace, cmd_show_record_btrace)
5142         (cmd_show_replay_memory_access): New.
5143         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5144         (record_btrace_remove_breakpoint): Replace
5145         record_btrace_allow_memory_access with replay_memory_access.
5146         (_initialize_record_btrace): Add commands.
5147         * NEWS: Announce it.
5148
5149 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5150
5151         * aarch64-linux-nat.c (asm/ptrace.h): Include.
5152
5153 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5154
5155         * MAINTAINERS (Write After Approval): Move self back from
5156         paper trail.
5157
5158 2014-05-22  Pedro Alves  <palves@redhat.com>
5159
5160         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5161         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5162         (disable_randomization, enum exec_direction_kind)
5163         (execution_direction, stop_registers, start_remote)
5164         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5165         (wait_for_inferior, normal_stop, get_last_target_status)
5166         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5167         (insert_step_resume_breakpoint_at_sal)
5168         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5169         (set_step_info, print_stop_event, signal_stop_state)
5170         (signal_print_state, signal_pass_state, signal_stop_update)
5171         (signal_print_update, signal_pass_update)
5172         (update_signals_program_target, clear_exit_convenience_vars)
5173         (displaced_step_dump_bytes, update_observer_mode)
5174         (signal_catch_update, gdb_signal_from_command): Move
5175         declarations ...
5176         * infrun.h: ... to this new file.
5177         * amd64-tdep.c: Include infrun.h.
5178         * annotate.c: Include infrun.h.
5179         * arch-utils.c: Include infrun.h.
5180         * arm-linux-tdep.c: Include infrun.h.
5181         * arm-tdep.c: Include infrun.h.
5182         * break-catch-sig.c: Include infrun.h.
5183         * breakpoint.c: Include infrun.h.
5184         * common/agent.c: Include infrun.h instead of inferior.h.
5185         * corelow.c: Include infrun.h.
5186         * event-top.c: Include infrun.h.
5187         * go32-nat.c: Include infrun.h.
5188         * i386-tdep.c: Include infrun.h.
5189         * inf-loop.c: Include infrun.h.
5190         * infcall.c: Include infrun.h.
5191         * infcmd.c: Include infrun.h.
5192         * infrun.c: Include infrun.h.
5193         * linux-fork.c: Include infrun.h.
5194         * linux-nat.c: Include infrun.h.
5195         * linux-thread-db.c: Include infrun.h.
5196         * monitor.c: Include infrun.h.
5197         * nto-tdep.c: Include infrun.h.
5198         * procfs.c: Include infrun.h.
5199         * record-btrace.c: Include infrun.h.
5200         * record-full.c: Include infrun.h.
5201         * remote-m32r-sdi.c: Include infrun.h.
5202         * remote-mips.c: Include infrun.h.
5203         * remote-notif.c: Include infrun.h.
5204         * remote-sim.c: Include infrun.h.
5205         * remote.c: Include infrun.h.
5206         * reverse.c: Include infrun.h.
5207         * rs6000-tdep.c: Include infrun.h.
5208         * s390-linux-tdep.c: Include infrun.h.
5209         * solib-irix.c: Include infrun.h.
5210         * solib-osf.c: Include infrun.h.
5211         * solib-svr4.c: Include infrun.h.
5212         * target.c: Include infrun.h.
5213         * top.c: Include infrun.h.
5214         * windows-nat.c: Include infrun.h.
5215         * mi/mi-interp.c: Include infrun.h.
5216         * mi/mi-main.c: Include infrun.h.
5217         * python/py-threadevent.c: Include infrun.h.
5218
5219 2014-05-22  Pedro Alves  <palves@redhat.com>
5220
5221         * infrun.c (handle_inferior_event): Store the exit code for
5222         --return-child-result here, instead of ...
5223         (print_exited_reason): ... here.
5224
5225 2014-05-21  Pedro Alves  <palves@redhat.com>
5226
5227         PR gdb/13860
5228         * gdbthread.h (struct thread_control_state): New field
5229         `command_interp'.
5230         * infrun.c (follow_fork): Copy the new thread control field to the
5231         child fork thread.
5232         (clear_proceed_status_thread): Clear the new thread control field.
5233         (proceed): Set the new thread control field.
5234         * interps.h (command_interp): Declare.
5235         * interps.c (command_interpreter): New global.
5236         (command_interp): New function.
5237         (interp_exec): Set `command_interpreter' while here.
5238         * cli-out.c (cli_uiout_dtor): New function.
5239         (cli_ui_out_impl): Install it.
5240         * mi/mi-interp.c: Include cli-out.h.
5241         (mi_cmd_interpreter_exec): Add comment.
5242         (restore_current_uiout_cleanup): New function.
5243         (ui_out_free_cleanup): New function.
5244         (mi_on_normal_stop): If finishing an execution command started by
5245         a CLI command, or any kind of breakpoint-like event triggered,
5246         print the stop event to the output (CLI) stream.
5247         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5248
5249 2014-05-21  Pedro Alves  <palves@redhat.com>
5250
5251         * cli/cli-cmds.c (list_command): Handle the first "list" after the
5252         current source line having changed.
5253         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5254         * infrun.c (normal_stop): Adjust call to
5255         set_current_sal_from_frame.
5256         * source.c (clear_lines_listed_range): New function.
5257         (set_current_source_symtab_and_line, identify_source_line): Clear
5258         the lines listed range.
5259         (line_info): Handle the first "info line" after the current source
5260         line having changed.
5261         * stack.c (print_stack_frame): Remove center handling.
5262         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
5263         center sal.line.
5264
5265 2014-05-21  Pedro Alves  <palves@redhat.com>
5266
5267         * inf-child.c (inf_child_mourn_inferior): New function.
5268         * inf-child.h (inf_child_mourn_inferior): New declaration.
5269         * darwin-nat.c (darwin_mourn_inferior): Use
5270         inf_child_mourn_inferior.
5271         * gnu-nat.c (gnu_mourn_inferior): Likewise.
5272         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5273         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5274         * nto-procfs.c (procfs_mourn_inferior): Likewise.
5275         * windows-nat.c (windows_mourn_inferior): Likewise.
5276
5277 2014-05-21  Doug Evans  <xdje42@gmail.com>
5278
5279         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5280
5281 2014-05-21  Doug Evans  <xdje42@gmail.com>
5282
5283         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5284         (gdbscm_out_of_range_error): Ditto.
5285         (gdbscm_memory_error): Ditto.
5286         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5287         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5288         (gdbscm_out_of_range_error): Update.
5289         (gdbscm_memory_error): Update.
5290         (gdbscm_scm_to_target_string_unsafe): Delete.
5291
5292 2014-05-21  Pedro Alves  <palves@redhat.com>
5293
5294         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5295         globals.
5296         (inf_child_open_target): New function.
5297         (inf_child_open): Use inf_child_open_target to push the target
5298         instead of erroring out.
5299         (inf_child_disconnect, inf_child_close)
5300         (inf_child_maybe_unpush_target): New functions.
5301         (inf_child_target): Install inf_child_disconnect and
5302         inf_child_close.  Store a pointer to the returned object.
5303         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5304         declarations.
5305         * target.c (auto_connect_native_target): New global.
5306         (show_default_run_target): New function.
5307         (find_default_run_target): Return NULL if automatically connecting
5308         to the native target is disabled.
5309         (_initialize_target): Install set/show auto-connect-native-target.
5310         * NEWS: Mention "set auto-connect-native-target", and "target
5311         native".
5312         * linux-nat.c (super_close): New global.
5313         (linux_nat_close): Call super_close.
5314         (linux_nat_add_target): Store a pointer to the base class's
5315         to_close method.
5316         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5317         inf_child_maybe_unpush.
5318         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5319         already pushed.
5320         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5321         the inferior.  Use inf_child_maybe_unpush_target.
5322         (inf_ttrace_attach): Don't push the target if it is already
5323         pushed.
5324         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5325         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5326         after mourning the inferior.  Use inf_child_maybe_unpush_target.
5327         (darwin_attach_pid): Don't push the target if it is already
5328         pushed.
5329         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5330         mourning the inferior.  Use inf_child_maybe_unpush_target.
5331         (gnu_detach): Use inf_child_maybe_unpush_target.
5332         * go32-nat.c (go32_create_inferior): Don't push the target if it
5333         is already pushed.
5334         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5335         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5336         (procfs_open): Rename to ...
5337         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
5338         comments.  Can target_preopen before changing node.  Call
5339         inf_child_open_target to push the target explicitly.
5340         (procfs_attach): Don't push the target if it is already pushed.
5341         (procfs_detach): Use inf_child_maybe_unpush_target.
5342         (procfs_create_inferior): Don't push the target if it is already
5343         pushed.
5344         (nto_native_ops): New global.
5345         (procfs_open): Reimplement.
5346         (procfs_native_open): New function.
5347         (init_procfs_targets): Install procfs_native_open as to_open of
5348         "target native".  Store a pointer to the "native" target in
5349         nto_native_ops.
5350         * procfs.c (procfs_attach): Don't push the target if it is already
5351         pushed.
5352         (procfs_detach): Use inf_child_maybe_unpush_target.
5353         (procfs_mourn_inferior): Only unpush the target after mourning the
5354         inferior.  Use inf_child_maybe_unpush_target.
5355         (procfs_init_inferior): Don't push the target if it is already
5356         pushed.
5357         * windows-nat.c (do_initial_windows_stuff): Don't push the target
5358         if it is already pushed.
5359
5360 2014-05-21  Pedro Alves  <palves@redhat.com>
5361
5362         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5363         and "procfs" targets are now called "native" instead.
5364
5365 2014-05-21  Pedro Alves  <palves@redhat.com>
5366
5367         * go32-nat.c (go32_open): Delete.
5368         (go32_target): Don't override the to_open method.
5369
5370 2014-05-21  Pedro Alves  <palves@redhat.com>
5371
5372         * nto-procfs.c (procfs_can_run): New function.
5373         (nto_procfs_ops): New global.
5374         (init_procfs_targets): New, based on procfs_target.  Install
5375         "target native" in addition to "target procfs".
5376         (_initialize_procfs): Call init_procfs_targets instead of adding
5377         the target here.
5378
5379 2014-05-21  Pedro Alves  <palves@redhat.com>
5380
5381         * windows-nat.c (windows_target): Don't override to_shortname,
5382         to_longname or to_doc.
5383
5384 2014-05-21  Pedro Alves  <palves@redhat.com>
5385
5386         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5387         to_doc.
5388
5389 2014-05-21  Pedro Alves  <palves@redhat.com>
5390
5391         * darwin-nat.c (_initialize_darwin_inferior): Don't override
5392         to_shortname, to_longname or to_doc.
5393
5394 2014-05-21  Pedro Alves  <palves@redhat.com>
5395
5396         * go32-nat.c (go32_target): Don't override to_shortname,
5397         to_longname or to_doc.
5398
5399 2014-05-21  Pedro Alves  <palves@redhat.com>
5400
5401         * inf-child.c (inf_child_open): Remove mention of "child".
5402         (inf_child_target): Rename target to "native" instead of "child".
5403
5404 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5405
5406         * Makefile.in (SFILES): Delete "regset.c".
5407         (COMMON_OBS): Delete "regset.o".
5408         * regset.c: Remove.
5409         * regset.h (regset_alloc): Delete prototype.
5410
5411 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5412
5413         * sparc-linux-tdep.c (sparc32_linux_gregset)
5414         (sparc32_linux_fpregset): New static regset structures.
5415         (sparc32_linux_init_abi): Drop dynamic regset allocations.
5416         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5417         'fpregset' fields.
5418         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5419         (sparc64_linux_fpregset): New static regset structures.
5420         (sparc64_linux_init_abi): Drop dynamic regset allocations.
5421         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5422         New static regset structures.
5423         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5424         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5425         New static regset structures.
5426         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5427         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5428         New static regset structures.
5429         (sparc64obsd_init_abi): Drop dynamic regset allocations.
5430         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5431         New static regset structures.
5432         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5433
5434 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5435
5436         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5437         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5438         register maps ("regmaps") from "*regset" to "*regmap".  Do this
5439         for all regmap types and variables.
5440         * sparc-linux-tdep.c (sparc32_linux_step_trap)
5441         (sparc32_linux_supply_core_gregset)
5442         (sparc32_linux_collect_core_gregset)
5443         (sparc32_linux_supply_core_fpregset)
5444         (sparc32_linux_collect_core_fpregset): Likewise.
5445         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5446         (sparc_gregmap, sparc_fpregmap): ... these.
5447         (sparc_supply_gregset, sparc_collect_gregset)
5448         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5449         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5450         (_initialize_sparc_nat): Rename regmaps.
5451         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5452         (sparc_gregmap, sparc_fpregmap): ... these.
5453         (sparc_supply_gregset, sparc_collect_gregset)
5454         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5455         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5456         Rename macros to...
5457         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5458         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5459         Likewise.
5460         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5461         Rename to...
5462         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5463         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5464         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5465         regmaps.
5466         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5467         (sparc32_bsd_fpregset): Rename to...
5468         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5469         (sparc32_bsd_fpregmap): ... these.
5470         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5471         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5472         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5473         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5474         (struct sparc_gregmap, struct sparc_fpregmap)
5475         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5476         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5477         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5478         (sparc32_supply_regset, sparc32_collect_gregset)
5479         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5480         prototypes.
5481         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5482         (sparc64_linux_ptrace_gregmap): ... this.
5483         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5484         (_initialize_sparc64_linux_nat): Rename regmaps.
5485         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5486         (sparc64_linux_core_gregmap): ... this.
5487         (sparc64_linux_supply_core_gregset)
5488         (sparc64_linux_collect_core_gregset)
5489         (sparc64_linux_supply_core_fpregset)
5490         (sparc64_linux_collect_core_fpregset): Rename regmaps.
5491         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5492         (sparc64_sol2_fpregset): Rename to...
5493         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5494         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5495         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5496         regmaps.
5497         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5498         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5499         (sparc64_bsd_fpregset): Rename to...
5500         (struct sparc_gregmap, sparc64_sol2_gregmap)
5501         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5502         (sparc64_bsd_fpregmap): ... these.
5503         (sparc64_supply_gregset, sparc64_collect_gregset)
5504         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5505         prototypes.
5506         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5507         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5508         (sparc64fbsd_gregmap): ... this.
5509         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5510         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5511         Rename regmaps.
5512         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5513         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5514         (sparc64nbsd_collect_fpregset): Likewise.
5515         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5516         (sparc64nbsd_gregmap): ... this.
5517         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5518         regmaps.
5519         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5520         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5521         (sparc64obsd_gregmap): ... this.
5522         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5523         regmaps.
5524         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5525         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5526         (sparc32nbsd_gregmap): ... this.
5527         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5528         regmaps.
5529
5530 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5531
5532         * score-tdep.c (score7_linux_gregset): New static regset
5533         structure.
5534         (score7_linux_regset_from_core_section): Remove dynamic regset
5535         allocation.
5536         (score_gdbarch_init): Drop allocation of tdep structure.
5537         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5538
5539 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5540
5541         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5542         regset structures.
5543         (am33_regset_from_core_section): Remove dynamic regset
5544         allocations.
5545
5546 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5547
5548         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5549         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5550         structures.
5551         (mips_linux_regset_from_core_section): Remove dynamic regset
5552         allocations.
5553         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5554         'gregset64', 'fpregset', and 'fpregset64'.
5555         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5556         deleted tdep fields.
5557
5558 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5559
5560         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5561         regset structures.
5562         (amd64_regset_from_core_section): Remove dynamic regset
5563         allocations.
5564         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5565         structure.
5566         (amd64obsd_regset_from_core_section): Remove dynamic regset
5567         allocation.
5568         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5569         Likewise.
5570         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5571         x86-common regset supply function.
5572         * i386-tdep.c (i386_collect_gregset): Make static.
5573         (i386_gregset): New global regset structure.
5574         (i386_fpregset, i386_xstateregset): New static regset structures.
5575         (i386_regset_from_core_section): Remove dynamic regset
5576         allocations.
5577         (i386_gdbarch_init): Remove initialization of tdep fields
5578         'gregset', 'fpregset', and 'xstateregset'.
5579         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5580         'fpregset', and 'xstateregset'.
5581         (i386_collect_gregset): Remove prototype.
5582         (i386_gregset): New declaration.
5583         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5584         structure.
5585         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5586         allocation.
5587
5588 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5589
5590         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5591         (arm_linux_vfpregset): New static regset structures.
5592         (arm_linux_regset_from_core_section): Remove dynamic allocation of
5593         regset structures.
5594         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5595         and 'vfpregset' fields.
5596
5597 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5598
5599         * aarch64-linux-tdep.c (aarch64_linux_gregset)
5600         (aarch64_linux_fpregset): New static regset structures.
5601         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5602         of regset structures.
5603         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5604         'fpregset' fields.
5605
5606 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5607
5608         * regset.h (struct regset): Remove gdbarch field.
5609         * regset.c (regset_alloc): Drop initialization of gdbarch field.
5610         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5611         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5612         Likewise.
5613         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5614         (ppc32_linux_fpregset, ppc32_linux_vrregset)
5615         (ppc32_linux_vsxregset): Likewise.
5616         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5617         via the regcache instead of the regset.
5618         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5619         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5620         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5621         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5622         Likewise.
5623
5624 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5625
5626         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5627         Constify structures.
5628         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5629         (alphanbsd_aout_gregset): Likewise.
5630         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5631         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5632         Likewise.
5633         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5634         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5635         Likewise.
5636         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5637         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5638         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5639         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5640         * m88k-tdep.c (m88k_gregset): Likewise.
5641         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5642         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5643         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5644         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5645         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5646         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5647         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5648         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5649         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5650         Likewise.
5651         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5652         * sh-tdep.h (sh_corefile_gregset): Likewise.
5653         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5654         * vax-tdep.c (vax_gregset): Likewise.
5655
5656 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
5657
5658         Fix TLS access for -static -pthread.
5659         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5660         (try_thread_db_load_1): Initialize it.
5661         (thread_db_get_thread_local_address): Call it if LM is zero.
5662         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5663         * target.h (struct target_ops) (to_get_thread_local_address): Add
5664         load_module_addr comment.
5665
5666 2014-05-21  Pedro Alves  <palves@redhat.com>
5667
5668         * dcache.c (dcache_read_memory_partial): If reading the cache line
5669         fails, fallback to reading just the memory the caller wanted.
5670
5671 2014-05-20  Doug Evans  <dje@google.com>
5672
5673         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5674         instead of get_current_arch.
5675
5676 2014-05-20  Pedro Alves  <palves@redhat.com>
5677
5678         * NEWS: Mention that compare-sections now works with all targets.
5679
5680         * remote.c (PACKET_qCRC): New enum value.
5681         (remote_verify_memory): Don't send qCRC if the target has no
5682         execution.  Use packet_support/packet_ok.  If the target doesn't
5683         support the qCRC packet, fallback to a deep memory copy.
5684         (compare_sections_command): Say "target image" instead of "remote
5685         executable".
5686         (_initialize_remote): Add PACKET_qCRC to the list of config
5687         packets that have no associated command.  Extend comment.
5688         * target.c (simple_verify_memory, default_verify_memory): New
5689         function.
5690         * target.h (struct target_ops) <to_verify_memory>: Default to
5691         default_verify_memory.
5692         (simple_verify_memory): New declaration.
5693         * target-delegates.c: Regenerate.
5694
5695 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
5696
5697         * record-btrace.c (record_btrace_step_thread): Check for empty history.
5698
5699 2014-05-20  Hui Zhu  <hui@codesourcery.com>
5700             Yao Qi  <yao@codesourcery.com>
5701
5702         PR backtrace/16558
5703         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5704         and change address of sp and pc.
5705
5706 2014-05-19  Tom Tromey  <tromey@redhat.com>
5707
5708         * gdbtypes.c (rank_function): Use XNEWVEC.
5709         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5710
5711 2014-05-19  Doug Evans  <dje@google.com>
5712
5713         * dwarf2read.c (build_type_psymtabs_1): Renamed from
5714         build_type_unit_groups and moved closer to only caller.  Remove
5715         arguments.  All references updated.  Remove outdated .gdb_index
5716         comment.
5717         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5718         build_type_psymtabs_1.
5719
5720 2014-05-19  Doug Evans  <dje@google.com>
5721
5722         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5723         n_type_unit_groups, all_type_unit_groups.  All uses removed.
5724         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5725         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
5726         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
5727         (add_type_unit_group_to_table): Delete.
5728
5729 2014-05-19  Doug Evans  <dje@google.com>
5730
5731         * eval.c (evaluate_subexp_standard): Add some comments.
5732
5733 2014-05-17  Doug Evans  <xdje42@gmail.com>
5734
5735         * progspace.c (remove_program_space): Delete, unused.
5736         * progspace.h (remove_program_space): Ditto.
5737
5738 2014-05-17  Doug Evans  <xdje42@gmail.com>
5739
5740         * inferior.c (prune_inferiors): Fix comment.
5741         (remove_inferior_command): Call prune_program_spaces.
5742
5743 2014-05-16  Doug Evans  <dje@google.com>
5744
5745         New command line option -D.
5746         * NEWS: Mention it.
5747         * main.c (set_gdb_data_directory): New function.
5748         (captured_main): Recognize -D.  Flag error for --data-directory "".
5749         Call set_gdb_data_directory.
5750         (print_gdb_help): Print --data-directory, -D.
5751         * main.h (set_gdb_data_directory): Declare.
5752         * top.c (staged_gdb_datadir): New static global.
5753         (set_gdb_datadir): Call set_gdb_data_directory
5754         (show_gdb_datadir): New function.
5755         (init_main): Update init of data-directory parameter.
5756
5757 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
5758
5759         Import the "dirfd" gnulib module.
5760         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5761         * gnulib/aclocal.m4: Update.
5762         * gnulib/config.in: Update.
5763         * gnulib/configure: Update.
5764         * gnulib/import/Makefile.am: Update.
5765         * gnulib/import/Makefile.in: Update.
5766         * gnulib/import/dirfd.c: New.
5767         * gnulib/import/m4/dirfd.m4: New.
5768         * gnulib/import/m4/gnulib-cache.m4: Update.
5769         * gnulib/import/m4/gnulib-comp.m4: Update.
5770
5771 2014-05-16  Pierre Muller  <muller@sourceware.org>
5772             Yao Qi  <yao@codesourcery.com>
5773
5774         * valprint.c (print_wchar): Move the code on checking whether
5775         W is a printable wide char to the default branch of switch
5776         statement below.  Call wchar_printable instead of gdb_iswprint.
5777
5778 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
5779
5780         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5781         ldr.w and ldrd instructions.
5782
5783 2014-05-15  Doug Evans  <dje@google.com>
5784
5785         * dwarf2read.c (read_structure_type): Delete outdated comments.
5786
5787 2014-05-14  Tom Tromey  <tromey@redhat.com>
5788
5789         * macrocmd.c (print_macro_definition): Reindent.
5790
5791 2014-05-13  Doug Evans  <xdje42@gmail.com>
5792
5793         * python/py-cmd.c (cmdpy_completer): Add comment.
5794         (completers): Make const.
5795
5796 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
5797
5798         * infrun.c (resume): Remove should_resume (unused).  Move up
5799         declaration of resume_ptid.
5800
5801 2014-05-13  Tom Tromey  <tromey@redhat.com>
5802
5803         * language.h (unop_type_check): Remove.
5804         (binop_type_check): Don't declare.
5805
5806 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
5807
5808         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5809         call to regcache_raw_collect.
5810
5811 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
5812
5813         * mi/mi-console.c (mi_console_raw_packet): Use the value from
5814         mi_console->quote as the quoting character.
5815
5816 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
5817
5818         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5819
5820 2014-04-29  Tom Tromey  <tromey@redhat.com>
5821
5822         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5823         "show debug varobj".
5824
5825 2014-05-07  Kyle McMartin  <kyle@redhat.com>
5826
5827         Pushed by Joel Brobecker  <brobecker@adacore.com>.
5828         * aarch64-tdep.c (aarch64_software_single_step): New function.
5829         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5830         with aarch64_software_single_step.
5831
5832 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
5833
5834         GDB 7.7.1 released.
5835
5836 2014-05-05  Keith Seitz  <keiths@redhat.com>
5837
5838         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5839         variable or history value is successfully parsed.
5840
5841 2014-05-05  Yao Qi  <yao@codesourcery.com>
5842             Pedro Alves  <palves@redhat.com>
5843
5844         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5845         address of blocks that intersects the requested range.  Trim
5846         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5847         sections.
5848         * ctf.c (ctf_xfer_partial): Likewise.
5849
5850 2014-05-05  Yao Qi  <yao@codesourcery.com>
5851
5852         * printcmd.c (display_command): Remove the check to
5853         target_has_execution.
5854
5855 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
5856
5857         * ppcobsd-nat.c: Include "obsd-nat.h".
5858         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5859         add_target.
5860         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5861
5862 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
5863
5864         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5865         and 16-bit signed and unsigned arguments.  Update comment.
5866         (stap_parse_probe_arguments): Extend code to handle such
5867         arguments.  Use warning instead of complaint to notify about
5868         unrecognized bitness.
5869
5870 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
5871
5872         PR breakpoints/16889
5873         * stap-probe.c (stap_parse_probe_arguments): Simplify
5874         check for non-prefixed probes (i.e., probes whose
5875         arguments do not start with "N@").  Always set the
5876         argument type to a sane value.
5877
5878 2014-05-01  David Taylor  <dtaylor@emc.com>
5879
5880         * remote.c (compare_sections_command): Add -r option to compare
5881         all loadable read-only sections.
5882
5883 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
5884
5885         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5886         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5887         Update all callers.
5888         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5889         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5890         Remove unused CORE_ADDR argument.  Update all callers.
5891
5892 2014-04-29  Pedro Alves  <palves@redhat.com>
5893
5894         * remote.c (struct packet_config) <detect>: Extend comment.
5895         (add_packet_config_cmd): Don't set the config's detect or support
5896         fields here.
5897         (init_all_packet_configs): Also initialize the config's 'detect'
5898         field.
5899         (reset_all_packet_configs_support): New function.
5900         (remote_open_1): Call reset_all_packet_configs_support instead of
5901         init_all_packet_configs.
5902         (_initialize_remote): Initialize all packet configs.  Assert that
5903         all packets have an associated command, except a few known
5904         outliers.
5905
5906 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5907
5908         * dwarf2read.c (read_subrange_type): Handle dynamic
5909         DW_AT_lower_bound attributes.
5910
5911 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5912
5913         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5914         dynamic bounds before computing its upper bound.
5915         (ada_discrete_type_low_bound): Same as above with the lower bound.
5916
5917 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5918
5919         * dwarf2read.c (is_dynamic_type): Return true for dynamic
5920         range types.  Adjust the array handling implementation to
5921         take advantage of this change.
5922         (resolve_dynamic_range): New function, mostly extracted from
5923         resolve_dynamic_bounds.
5924         (resolve_dynamic_array): New function, mostly extracted from
5925         resolve_dynamic_bounds.
5926         (resolve_dynamic_bounds): Delete.
5927         (resolve_dynamic_type): Reimplement.  Add handling of
5928         TYPE_CODE_RANGE types.
5929
5930 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5931
5932         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5933         handling of parallel ___XA types.
5934
5935 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5936
5937         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5938         unnecessary second call to static_unwrap_type.
5939
5940 2014-04-27  Hui Zhu  <hui@codesourcery.com>
5941
5942         * stack.c (print_frame_info): Call do_gdb_disassembly with
5943         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5944
5945 2014-04-26  Doug Evans  <xdje42@gmail.com>
5946
5947         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5948
5949 2014-04-25  Pedro Alves  <palves@redhat.com>
5950
5951         PR server/16255
5952         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5953         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
5954         and newline from built string.
5955         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5956         (linux_ptrace_attach_fail_reason): ... this.
5957         * linux-nat.c (linux_nat_attach): Adjust to use
5958         linux_ptrace_attach_fail_reason.
5959
5960 2014-04-25  Pedro Alves  <palves@redhat.com>
5961
5962         * remote.c (struct remote_state): Remove multi_process_aware,
5963         non_stop_aware, cond_tracepoints, cond_breakpoints,
5964         breakpoint_commands, fast_tracepoints, static_tracepoints,
5965         install_in_trace, disconnected_tracing,
5966         enable_disable_tracepoints, string_tracing, and
5967         augmented_libraries_svr4_read fields.
5968         (remote_multi_process_p): Move further below in the file.
5969         (struct packet_config): Add comments.
5970         (update_packet_config): Delete function.
5971         (show_packet_config_cmd): Use packet_config_support.
5972         (add_packet_config_cmd): Use NULL as set callback.
5973         (packet_ok): "set remote foo-packet"-style commands no longer
5974         change config->supported -- adjust.
5975         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5976         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5977         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5978         (PACKET_QNonStop, PACKET_multiprocess_feature)
5979         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5980         (PACKET_DisconnectedTracing_feature)
5981         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5982         (set_remote_protocol_packet_cmd): Delete function.
5983         (packet_config_support, packet_support): New functions.
5984         (set_remote_protocol_Z_packet_cmd): Don't call
5985         update_packet_config.
5986         (remote_query_attached, remote_pass_signals)
5987         (remote_program_signals, remote_threads_info)
5988         (remote_threads_extra_info, remote_start_remote): Use
5989         packet_support.
5990         (remote_start_remote): Use packet_config_support and
5991         packet_support.
5992         (init_all_packet_configs): Set all packets to unknown support,
5993         instead of calling update_packet_config.
5994         (remote_check_symbols): Use packet_support.
5995         (remote_supported_packet): Unconditionally set the packet config's
5996         support status.
5997         (remote_multi_process_feature, remote_non_stop_feature)
5998         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5999         (remote_breakpoint_commands_feature)
6000         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6001         (remote_install_in_trace_feature)
6002         (remote_disconnected_tracing_feature)
6003         (remote_enable_disable_tracepoint_feature)
6004         (remote_string_tracing_feature)
6005         (remote_augmented_libraries_svr4_read_feature): Delete functions.
6006         (remote_protocol_features): Adjust to use remote_supported_packet
6007         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6008         "ConditionalTracepoints", "ConditionalBreakpoints",
6009         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6010         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6011         "EnableDisableTracepoints", and "tracenz".
6012         (remote_query_supported): Use packet_support.
6013         (remote_open_1): Adjust.
6014         (extended_remote_attach_1): Use packet_support.  Switch on the
6015         result of packet_ok instead of checking whether the packet ended
6016         up disabled.
6017         (remote_vcont_resume): Use packet_support.
6018         (remote_resume, remote_stop_ns, fetch_register_using_p)
6019         (remote_prepare_to_store, store_register_using_P)
6020         (check_binary_download, remote_write_bytes): Use packet_support.
6021         (remote_vkill): Use packet_support.  Switch on the result of
6022         packet_ok instead of checking whether the packet ended up
6023         disabled.
6024         (extended_remote_supports_disable_randomization): Use
6025         packet_support.
6026         (extended_remote_run): Switch on the result of packet_ok instead
6027         of checking whether the packet ended up disabled.
6028         (remote_insert_breakpoint, remote_remove_breakpoint)
6029         (remote_insert_watchpoint, remote_remove_watchpoint)
6030         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6031         packet_support.
6032         (remote_search_memory): Use packet_config_support.
6033         (remote_get_thread_local_address, remote_get_tib_address)
6034         (remote_hostio_send_command, remote_can_execute_reverse): Use
6035         packet_support.
6036         (remote_supports_cond_tracepoints)
6037         (remote_supports_cond_breakpoints)
6038         (remote_supports_fast_tracepoints)
6039         (remote_supports_static_tracepoints)
6040         (remote_supports_install_in_trace)
6041         (remote_supports_enable_disable_tracepoint)
6042         (remote_supports_string_tracing)
6043         (remote_can_run_breakpoint_commands): Rewrite, checking whether
6044         the packet config says the feature is enabled or disabled.
6045         (remote_download_tracepoint, remote_trace_set_readonly_regions)
6046         (remote_get_trace_status): Use packet_support.
6047         (remote_set_disconnected_tracing): Adjust to check whether the
6048         feature is enabled with packet_support.
6049         (remote_set_trace_buffer_size, remote_use_agent)
6050         (remote_can_use_agent, remote_supports_btrace): Use
6051         packet_support.
6052         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6053         Use packet_config_support.
6054         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6055         the packet config says the feature is enabled or disabled.
6056         (set_range_stepping): Use packet_support.
6057
6058 2014-04-25  Tom Tromey  <tromey@redhat.com>
6059
6060         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6061         argument.
6062
6063 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
6064
6065         * NEWS: Mention support for C99 variable length arrays.
6066
6067 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
6068
6069         * ada-lang.c (standard_exc): Expand introductory comment.
6070
6071 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
6072             Walfred Tedeschi  <walfred.tedeschi@intel.com>
6073
6074         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6075         AVX512 registers.
6076         (amd64_linux_read_description): Add code to handle AVX512 xstate
6077         mask and return respective tdesc.
6078         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6079         and features/i386/x32-avx512-linux.c.
6080         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6081         (amd64_linux_core_read_description): Add code to handle AVX512
6082         xstate mask and return respective tdesc.
6083         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6084         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6085         calculation.
6086         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6087         (tdesc_amd64_avx512_linux): New prototype.
6088         (tdesc_x32_avx512_linux): Likewise.
6089         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6090         features/i386/x32-avx512.c.
6091         (amd64_ymm_avx512_names): New register names for pseudo
6092         registers YMM16-31.
6093         (amd64_ymmh_avx512_names): New register names for raw registers
6094         YMMH16-31.
6095         (amd64_k_names): New register names for K registers.
6096         (amd64_zmmh_names): New register names for ZMM raw registers.
6097         (amd64_zmm_names): New registers names for ZMM pseudo registers.
6098         (amd64_xmm_avx512_names): New register names for XMM16-31
6099         registers.
6100         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6101         registers.
6102         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6103         if feature is present.
6104         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6105         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6106         (AMD64_NUM_REGS): Adjust to new number of registers.
6107         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6108         registers supplied via XSTATE by AVX512 registers.
6109         (i386_linux_read_description): Add case for AVX512.
6110         * i386-linux-tdep.c: Include i386-avx512-linux.c.
6111         (i386_linux_gregset_reg_offset): Add AVX512 registers.
6112         (i386_linux_core_read_description): Add case for AVX512.
6113         (i386_linux_init_abi): Install supported register note section
6114         for AVX512.
6115         (_initialize_i386_linux_tdep): Add call to tdesc init function for
6116         AVX512.
6117         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6118         registers to be number of zmm7h + 1.
6119         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6120         * i386-tdep.c: Include features/i386/i386-avx512.c.
6121         (i386_zmm_names): Add ZMM pseudo register names array.
6122         (i386_zmmh_names): Add ZMM raw register names array.
6123         (i386_k_names): Add K raw register names array.
6124         (num_lower_zmm_regs): Add constant for the number of lower ZMM
6125         registers. AVX512 has 16 more ZMM registers than there are YMM
6126         registers.
6127         (i386_zmmh_regnum_p): Add function to look up register number of
6128         ZMM raw registers.
6129         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6130         (i386_k_regnum_p): Likewise for K raw registers.
6131         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6132         registers added by AVX512.
6133         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6134         registers added by AVX512.
6135         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6136         added by AVX512.
6137         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6138         (i386_pseudo_register_name): Add ZMM pseudo registers.
6139         (i386_zmm_type): Construct and return vector registers type for ZMM
6140         registers.
6141         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6142         ZMM0-31 pseudo registers and K registers.
6143         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6144         and YMM16-31 registers from register cache.
6145         (i386_pseudo_register_write): Add code to write  K, ZMM and
6146         YMM16-31 registers.
6147         (i386_register_reggroup_p): Add code to include/exclude AVX512
6148         registers in/from respective register groups.
6149         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6150         registers if feature is present in xcr0.
6151         (i386_gdbarch_init): Add code to initialize AVX512 feature
6152         variables in tdep structure, wire in pseudo registers and call
6153         initialize_tdesc_i386_avx512.
6154         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6155         variables.
6156         (i386_regnum): Add AVX512 registers.
6157         (I386_SSE_NUM_REGS): New define for number of SSE registers.
6158         (I386_AVX_NUM_REGS): Likewise for AVX registers.
6159         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6160         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6161         512 bits wide.
6162         (i386_xmm_avx512_regnum_p): New prototype for register look up.
6163         (i386_ymm_avx512_regnum_p): Likewise.
6164         (i386_k_regnum_p): Likewise.
6165         (i386_zmm_regnum_p): Likewise.
6166         (i386_zmmh_regnum_p): Likewise.
6167         * i387-tdep.c : Update year in copyright notice.
6168         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6169         XSAVE buffer.
6170         (XSAVE_YMM_AVX512_ADDR): New macro.
6171         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6172         XSAVE buffer.
6173         (XSAVE_XMM_AVX512_ADDR): New macro.
6174         (xsave_avx512_k_offset): New table for K register offsets in
6175         XSAVE buffer.
6176         (XSAVE_AVX512_K_ADDR): New macro.
6177         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6178         in XSAVE buffer.
6179         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6180         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6181         buffer.
6182         (i387_collect_xsave): Add code to collect AVX512 registers from
6183         XSAVE buffer.
6184         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6185         of XMM16-31 registers.
6186         (I387_NUM_K_REGS): New define for number of K registers.
6187         (I387_K0_REGNUM): New define for K0 register number.
6188         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6189         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6190         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6191         registers.
6192         (I387_YMM16H_REGNUM): New define for YMM16H register number.
6193         (I387_XMM16_REGNUM): New define for XMM16 register number.
6194         (I387_YMM0_REGNUM): New define for YMM0 register number.
6195         (I387_KEND_REGNUM): New define for last K register number.
6196         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6197         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6198         number.
6199         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6200         number.
6201         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6202         size.
6203         * features/Makefile: Add AVX512 related files.
6204         * features/i386/32bit-avx512.xml: New file.
6205         * features/i386/64bit-avx512.xml: Likewise.
6206         * features/i386/amd64-avx512-linux.c: Likewise.
6207         * features/i386/amd64-avx512-linux.xml: Likewise.
6208         * features/i386/amd64-avx512.c: Likewise.
6209         * features/i386/amd64-avx512.xml: Likewise.
6210         * features/i386/i386-avx512-linux.c: Likewise.
6211         * features/i386/i386-avx512-linux.xml: Likewise.
6212         * features/i386/i386-avx512.c: Likewise.
6213         * features/i386/i386-avx512.xml: Likewise.
6214         * features/i386/x32-avx512-linux.c: Likewise.
6215         * features/i386/x32-avx512-linux.xml: Likewise.
6216         * features/i386/x32-avx512.c: Likewise.
6217         * features/i386/x32-avx512.xml: Likewise.
6218         * regformats/i386/amd64-avx512-linux.dat: New file.
6219         * regformats/i386/amd64-avx512.dat: Likewise.
6220         * regformats/i386/i386-avx512-linux.dat: Likewise.
6221         * regformats/i386/i386-avx512.dat: Likewise.
6222         * regformats/i386/x32-avx512-linux.dat: Likewise.
6223         * regformats/i386/x32-avx512.dat: Likewise.
6224         * NEWS: Add note about new support for AVX512.
6225
6226
6227 2014-04-23  Pedro Alves  <palves@redhat.com>
6228
6229         * breakpoint.c (insert_bp_location): Tolerate errors if the
6230         breakpoint is set in a user-loaded objfile.
6231         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
6232         location is marked shlib_disabled.  If the breakpoint is set in a
6233         user-loaded objfile is a GDB-side memory breakpoint, validate it
6234         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
6235         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
6236         flag.
6237         * mem-break.c (memory_validate_breakpoint): New function.
6238         * objfiles.c (userloaded_objfile_contains_address_p): New
6239         function.
6240         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6241         * target.h (memory_validate_breakpoint): New declaration.
6242
6243 2014-04-23  Pedro Alves  <palves@redhat.com>
6244
6245         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6246         the breakpoint is set in a shared library, only suppress
6247         errors for software breakpoints, not hardware breakpoints.
6248
6249 2014-04-22  Pedro Alves  <palves@redhat.com>
6250
6251         * infrun.c (schedlock_applies): New function, factored out from
6252         find_thread_needs_step_over.
6253         (find_thread_needs_step_over): Use it.
6254         (switch_back_to_stepped_thread): Always clear trap_expected if the
6255         step over is finished.  Return early if scheduler locking applies.
6256         Look for the stepping thread and a potential step-over thread with
6257         a single loop.
6258         (currently_stepping_or_nexting_callback): Delete.
6259
6260 2014-04-22  Nick Clifton  <nickc@redhat.com>
6261
6262         * NEWS: Mention that ARM sim now supports tracing.
6263
6264 2014-04-22  Yao Qi  <yao@codesourcery.com>
6265
6266         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6267         to ...
6268         * tracefile.c (tracefile_fetch_registers): ... it.  New
6269         function.
6270         * tracefile.h (tracefile_fetch_registers): Declare.
6271         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
6272         tracefile_fetch_registers.
6273
6274 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
6275
6276         PR gdb/14018
6277         * windows-nat.c (thread_rec): Don't display a warning when
6278         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
6279         fails for any reason, set th->suspended to -1, so that we don't
6280         try to resume such a thread.  Also, don't return NULL in these
6281         cases, to avoid completely ruin the session due to "PC register is
6282         not available" error.
6283         (do_windows_fetch_inferior_registers): Check errors in
6284         GetThreadContext call.
6285         (windows_continue): Accept an additional argument KILLED; if not
6286         zero, ignore errors in the SetThreadContext call, since the
6287         inferior was killed and is shutting down.
6288         (windows_resume, get_windows_debug_event)
6289         (windows_create_inferior, windows_mourn_inferior)
6290         (windows_kill_inferior): All callers of windows_continue changed
6291         to adjust to its new calling sequence.
6292
6293 2014-04-19  Yao Qi  <yao@codesourcery.com>
6294
6295         * ctf.c (ctf_open): Call post_create_inferior.
6296
6297 2014-04-19  Yao Qi  <yao@codesourcery.com>
6298
6299         * ctf.c (handle_id): New static variable.
6300         (ctf_open_dir): Get handle_id from bt_context_add_trace return
6301         value.  Get the declaration of event "register" and get length
6302         of field "contents".
6303
6304 2014-04-19  Yao Qi  <yao@codesourcery.com>
6305
6306         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6307
6308 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
6309
6310         * valops.c (oload_method_static): Remove unnecessary argument
6311         METHOD.  Update all callers.
6312
6313 2014-04-18  Pedro alves  <palves@redhat.com>
6314             Tom Tromey  <tromey@redhat.com>
6315
6316         PR backtrace/15558
6317         * frame.c (get_prev_frame_1): Rename to ...
6318         (get_prev_frame_always): ... this, and make extern.  Adjust.
6319         (skip_artificial_frames): Use get_prev_frame_always.
6320         (frame_unwind_caller_id, frame_pop, get_prev_frame)
6321         (get_frame_unwind_stop_reason): Adjust to rename.
6322         * frame.h (get_prev_frame_always): Declare.
6323         * inline-frame.c: Include frame.h.
6324         (inline_frame_this_id): Use get_prev_frame_always.
6325
6326 2014-04-18  Tristan Gingold  <gingold@adacore.com>
6327
6328         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6329         code by using bfd_mach_o_get_base_address.
6330
6331 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6332
6333         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6334         (spu_ax_pseudo_register_collect): New function.
6335         (spu_ax_pseudo_register_push_stack): Likewise.
6336         (spu_dwarf_reg_to_regnum): Likewise.
6337         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
6338
6339 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6340
6341         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6342         Replace FRAME argument with FRAME_ID.
6343         * gdbarch.c, gdbarch.h: Regenerate.
6344         * findvar.c (default_value_from_register): Add GDBARCH argument;
6345         replace FRAME by FRAME_ID.  No longer call get_frame_id.
6346         (value_from_register): Update call to gdbarch_value_from_register.
6347         * value.h (default_value_from_register): Update prototype.
6348         * s390-linux-tdep.c (s390_value_from_register): Update interface
6349         and call to default_value_from_register.
6350         * spu-tdep.c (spu_value_from_register): Likewise.
6351
6352         * findvar.c (address_from_register): Remove TYPE argument.
6353         Do not call value_from_register; use gdbarch_value_from_register
6354         with null_frame_id instead.
6355         * value.h (address_from_register): Update prototype.
6356         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6357         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6358         address_from_register interface change.
6359
6360 2014-04-17  Yao Qi  <yao@codesourcery.com>
6361
6362         * gdbtypes.h: Update comments to link to types and macros'
6363         definitions.
6364
6365 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
6366
6367         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6368
6369 2014-04-16  Keith Seitz  <keiths@redhat.com>
6370
6371         PR gdb/15827
6372         * dwarf2read.c (skip_one_die): Check that all relative-offset
6373         sibling DIEs fall within range of the current reader's buffer.
6374         (read_partial_die): Likewise.
6375
6376 2014-04-16  Keith Seitz  <keiths@redhat.com>
6377
6378         PR c++/16597
6379         * cp-namespace.c (lookup_symbol_file): If the type name of
6380         `this' is NULL, return immediately.
6381
6382 2014-04-14  Keith Seitz  <keiths@redhat.com>
6383
6384         PR c++/16253
6385         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6386         from symbol_matches_domain in symtab.c. All local callers
6387         of symbol_matches_domain updated.
6388         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6389         search STRUCT_DOMAIN.
6390         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6391         independently.  standard_lookup will do that automatically.
6392         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6393         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6394         (cp_lookup_symbol_in_namespace): Likewise.
6395         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6396         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6397         may return a STRUCT_DOMAIN match.
6398         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6399         * cp-support.c: Include language.h.
6400         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6401         VAR_DOMAIN.
6402         * psymtab.c (match_partial_symbol): Compare the requested
6403         domain with the symbol's domain directly.
6404         (lookup_partial_symbol): Likewise.
6405         * symtab.c (lookup_symbol_in_language): Explain when/why
6406         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6407         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6408         appropriate languages.
6409         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6410         and moved to ada-lang.c
6411         (lookup_block_symbol): Explain that this function only returns
6412         symbol matching the requested DOMAIN.
6413         Compare the requested domain with the symbol's domain directly.
6414         (iterate_over_symbols): Compare the requested domain with the
6415         symbol's domain directly.
6416         * symtab.h (symbol_matches_domain): Remove.
6417
6418 2014-04-14  Tom Tromey  <tromey@redhat.com>
6419
6420         PR c++/15246:
6421         * c-exp.y (type_aggregate_p): New function.
6422         (qualified_name, classify_inner_name): Use it.
6423         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6424         and TYPE_TARGET_TYPE of an enum type.
6425         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6426         an enum type.
6427         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6428         handle TYPE_DECLARED_CLASS.
6429         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6430         types.
6431         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6432         * valops.c (enum_constant_from_type): New function.
6433         (value_aggregate_elt): Use it.
6434         * cp-namespace.c (cp_lookup_nested_symbol): Handle
6435         TYPE_CODE_ENUM.
6436
6437 2014-04-14  Tom Tromey  <tromey@redhat.com>
6438
6439         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6440         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6441         const.
6442         * value.h (value_aggregate_elt): Update.
6443
6444 2014-04-14  Tom Tromey  <tromey@redhat.com>
6445
6446         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6447
6448 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6449
6450         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6451         (evaluate_subexp_standard): Pass noside argument.
6452         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6453         if noside equals EVAL_NORMAL. If the subscript yields a vla type
6454         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6455         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6456         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6457
6458 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6459
6460         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6461         points to a constant blob.
6462
6463 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6464
6465         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6466         property and store it as the high bound and flag the range accordingly.
6467         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6468         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6469         * gdbtypes.h (enum range_flags): New enum.
6470         (struct range_bounds): Add flags member.
6471
6472 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6473
6474         * c-typeprint.c (c_type_print_varspec_suffix): Added
6475         check for not yet resolved high bound. If unresolved, print
6476         "variable length" string to the console instead of random
6477         length.
6478
6479 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6480
6481         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6482         value.
6483         (ada_template_to_fixed_record_type_1): Likewise.
6484         (ada_to_fixed_type_1): Likewise.
6485         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6486         (cp_print_value): Likewise.
6487         * d-valprint.c (dynamic_array_type): Likewise.
6488         * findvar.c (address_of_variable): Likewise.
6489         * jv-valprint.c (java_value_print): Likewise.
6490         * valops.c (value_ind): Likewise.
6491         * value.c (coerce_ref): Likewise.
6492
6493 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6494
6495         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6496         value and retrieve the dynamic type size.
6497
6498 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6499
6500         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6501         passed to sizeof is dynamic evaluate the argument to compute the length.
6502
6503 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6504             Joel Brobecker  <brobecker@adacore.com>
6505
6506         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6507         (dwarf2_evaluate_property): New function.
6508         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6509         * dwarf2read.c (attr_to_dynamic_prop): New function.
6510         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6511         attribute.
6512         * gdbtypes.c: Include dwarf2loc.h.
6513         (is_dynamic_type): New function.
6514         (resolve_dynamic_type): New function.
6515         (resolve_dynamic_bounds): New function.
6516         (get_type_length): New function.
6517         (check_typedef): Use get_type_length to compute type length.
6518         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6519         (TYPE_LOW_BOUND_KIND): New macro.
6520         (is_dynamic_type): New function prototype.
6521         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6522         to resolve dynamic properties of the type. Update comment.
6523         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6524
6525 2014-04-14  Richard Henderson  <rth@redhat.com>
6526
6527         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6528
6529 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
6530             Doug Evans  <xdje42@gmail.com>
6531
6532         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6533         dereference TYPE_CODE_REF values.
6534
6535 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
6536
6537         Revert the following changes due to regressions:
6538
6539         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6540         (dwarf2_evaluate_property): New function.
6541         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6542         * dwarf2read.c (attr_to_dynamic_prop): New function.
6543         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6544         attribute.
6545         * gdbtypes.c: Include dwarf2loc.h.
6546         (is_dynamic_type): New function.
6547         (resolve_dynamic_type): New function.
6548         (resolve_dynamic_bounds): New function.
6549         (get_type_length): New function.
6550         (check_typedef): Use get_type_length to compute type length.
6551         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6552         (TYPE_LOW_BOUND_KIND): New macro.
6553         (is_dynamic_type): New function prototype.
6554         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6555         to resolve dynamic properties of the type. Update comment.
6556         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6557
6558         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6559         passed to sizeof is dynamic evaluate the argument to compute the length.
6560
6561         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6562         value and retrieve the dynamic type size.
6563
6564         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6565         (ada_template_to_fixed_record_type_1): Likewise.
6566         (ada_to_fixed_type_1): Likewise.
6567         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6568         (cp_print_value): Likewise.
6569         * d-valprint.c (dynamic_array_type): Likewise.
6570         * eval.c (evaluate_subexp_with_coercion): Likewise.
6571         * findvar.c (address_of_variable): Likewise.
6572         * jv-valprint.c (java_value_print): Likewise.
6573         * valops.c (value_ind): Likewise.
6574         * value.c (coerce_ref): Likewise.
6575
6576         * c-typeprint.c (c_type_print_varspec_suffix): Added
6577         check for not yet resolved high bound. If unresolved, print
6578         "variable length" string to the console instead of random
6579         length.
6580
6581         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6582         property and store it as the high bound and flag the range accordingly.
6583         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6584         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6585         * gdbtypes.h (enum range_flags): New enum.
6586         (struct range_bounds): Add flags member.
6587
6588         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6589         points to a constant blob.
6590
6591         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6592         (evaluate_subexp_standard): Pass noside argument.
6593         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6594         if noside equals EVAL_NORMAL. If the subscript yields a vla type
6595         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6596         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6597         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6598
6599 2014-04-11  Keith Seitz  <keiths@redhat.com>
6600
6601         PR c++/16675
6602         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6603         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6604         reference types.
6605
6606 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6607
6608         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6609         (evaluate_subexp_standard): Pass noside argument.
6610         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6611         if noside equals EVAL_NORMAL. If the subscript yields a vla type
6612         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6613         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6614         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6615
6616 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6617
6618         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6619         points to a constant blob.
6620
6621 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6622
6623         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6624         property and store it as the high bound and flag the range accordingly.
6625         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6626         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6627         * gdbtypes.h (enum range_flags): New enum.
6628         (struct range_bounds): Add flags member.
6629
6630 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6631
6632         * c-typeprint.c (c_type_print_varspec_suffix): Added
6633         check for not yet resolved high bound. If unresolved, print
6634         "variable length" string to the console instead of random
6635         length.
6636
6637 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6638
6639         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6640         (ada_template_to_fixed_record_type_1): Likewise.
6641         (ada_to_fixed_type_1): Likewise.
6642         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6643         (cp_print_value): Likewise.
6644         * d-valprint.c (dynamic_array_type): Likewise.
6645         * eval.c (evaluate_subexp_with_coercion): Likewise.
6646         * findvar.c (address_of_variable): Likewise.
6647         * jv-valprint.c (java_value_print): Likewise.
6648         * valops.c (value_ind): Likewise.
6649         * value.c (coerce_ref): Likewise.
6650
6651 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6652
6653         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6654         value and retrieve the dynamic type size.
6655
6656 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6657
6658         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6659         passed to sizeof is dynamic evaluate the argument to compute the length.
6660
6661 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6662
6663         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6664         (dwarf2_evaluate_property): New function.
6665         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6666         * dwarf2read.c (attr_to_dynamic_prop): New function.
6667         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6668         attribute.
6669         * gdbtypes.c: Include dwarf2loc.h.
6670         (is_dynamic_type): New function.
6671         (resolve_dynamic_type): New function.
6672         (resolve_dynamic_bounds): New function.
6673         (get_type_length): New function.
6674         (check_typedef): Use get_type_length to compute type length.
6675         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6676         (TYPE_LOW_BOUND_KIND): New macro.
6677         (is_dynamic_type): New function prototype.
6678         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6679         to resolve dynamic properties of the type. Update comment.
6680         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6681
6682 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6683
6684         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6685         declaring high/low bounds and change uses accordingly. Call
6686         create_range_type instead of create_static_range_type.
6687         * gdbtypes.c (create_range_type): New function.
6688         (create_range_type): Convert bounds into struct bound_prop and pass
6689         them to create_range_type.
6690         * gdbtypes.h (struct bound_prop): New struct.
6691         (create_range_type): New function prototype.
6692         (struct range_bounds): Use struct bound_prop instead of LONGEST for
6693         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6694         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6695         part of the bound.
6696         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6697
6698 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6699
6700         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6701         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6702         * ada-lang.c: All uses of create_range_type updated.
6703         * coffread.c: All uses of create_range_type updated.
6704         * dwarf2read.c: All uses of create_range_type updated.
6705         * f-exp.y: All uses of create_range_type updated.
6706         * m2-valprint.c: All uses of create_range_type updated.
6707         * mdebugread.c: All uses of create_range_type updated.
6708         * stabsread.c: All uses of create_range_type updated.
6709         * valops.c: All uses of create_range_type updated.
6710         * valprint.c: All uses of create_range_type updated.
6711
6712 2014-04-10  Pedro Alves  <palves@redhat.com>
6713
6714         * breakpoint.c (single_step_breakpoints)
6715         (single_step_gdbarch): Move up in the file.
6716         (one_breakpoint_xfer_memory): New function, factored out from ...
6717         (breakpoint_xfer_memory): ... here.  Also process single-step
6718         breakpoints.
6719
6720 2014-04-09  Tristan Gingold  <gingold@adacore.com>
6721
6722         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6723         comments.
6724         (darwin_decode_exception_message): Free port only after use.
6725
6726 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
6727
6728         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6729         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6730         when setting the size of call_length.
6731
6732 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
6733
6734         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6735         dereference TYPE_CODE_REF values.
6736
6737 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
6738
6739         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6740         end of warning message.
6741
6742 2014-04-03  Doug Evans  <dje@google.com>
6743
6744         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6745         of stub_comp_unit_die, stub_comp_dir is non-NULL.
6746
6747 2014-04-02  Alan Modra  <amodra@gmail.com>
6748
6749         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6750         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
6751         (struct symbol_file_add_from_memory_args): Add size field.
6752         (find_vdso_size): New function.
6753         (add_vsyscall_page): Attempt to find vdso size.
6754
6755 2014-04-01  Doug Evans  <dje@google.com>
6756
6757         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6758
6759 2014-04-01  Tristan Gingold  <gingold@adacore.com>
6760
6761         * darwin-nat.c (darwin_encode_reply): Add prototype.
6762         (darwin_decode_exception_message): Reply to unknown inferiors.
6763         (darwin_decode_message): Handle message by id.  Ignore message
6764         to unknown inferior.
6765         (darwin_wait): Discard unknown messages, add debug trace.
6766
6767 2014-03-31  Doug Evans  <dje@google.com>
6768
6769         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6770         comp_dir_string.
6771
6772 2014-03-31  Doug Evans  <dje@google.com>
6773
6774         New option "set print symbol-loading".
6775         * NEWS: Mention it.
6776         * solib.c (solib_read_symbols): Only print symbol loading messages
6777         if requested.
6778         (solib_add): If symbol loading is in "brief" mode, notify user
6779         symbols are being loaded.
6780         (reload_shared_libraries_1): Ditto.
6781         * symfile.c (print_symbol_loading_off): New static global.
6782         (print_symbol_loading_brief): New static global.
6783         (print_symbol_loading_full): New static global.
6784         (print_symbol_loading_enums): New static global.
6785         (print_symbol_loading): New static global.
6786         (print_symbol_loading_p): New function.
6787         (symbol_file_add_with_addrs): Only print symbol loading messages
6788         if requested.
6789         (_initialize_symfile): Register "print symbol-loading" set/show
6790         command.
6791         * symfile.h (print_symbol_loading_p): Declare.
6792
6793 2014-03-30  Doug Evans  <xdje42@gmail.com>
6794
6795         * infrun.c (set_last_target_status): New function.
6796         (handle_inferior_event): Call it.
6797
6798 2014-03-30  Doug Evans  <xdje42@gmail.com>
6799
6800         * inferior.h (enum stop_kind): Improve comment.
6801
6802 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
6803
6804         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6805         a reference, strip the reference layer before calling
6806         the lang_ops value_has_mutated callback.
6807
6808 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6809
6810         Remove some globals from our parser.
6811         * language.c (unk_lang_parser): Add "struct parser_state"
6812         argument.
6813         * language.h (struct language_defn) <la_parser>: Likewise.
6814         * parse.c (expout, expout_size, expout_ptr): Remove variables.
6815         (initialize_expout): Add "struct parser_state" argument.
6816         Rewrite function to use the parser state.
6817         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6818         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6819         write_exp_elt_longcst, write_exp_elt_dblcst,
6820         write_exp_elt_decfloatcst, write_exp_elt_type,
6821         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6822         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6823         write_dollar_variable): Likewise.
6824         (parse_exp_in_context_1): Use parser state.
6825         (insert_type_address_space): Add "struct parser_state" argument.
6826         Use parser state.
6827         (increase_expout_size): New function.
6828         * parser-defs.h: Forward declare "struct language_defn" and
6829         "struct parser_state".
6830         (expout, expout_size, expout_ptr): Remove extern declarations.
6831         (parse_gdbarch, parse_language): Rewrite macro declarations to
6832         accept the parser state.
6833         (struct parser_state): New struct.
6834         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6835         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6836         write_exp_elt_decfloatcst, write_exp_elt_type,
6837         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6838         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6839         write_exp_msymbol, write_dollar_variable,
6840         mark_struct_expression, insert_type_address_space): Add "struct
6841         parser_state" argument.
6842         (increase_expout_size): New function.
6843         * utils.c (do_clear_parser_state): New function.
6844         (make_cleanup_clear_parser_state): Likewise.
6845         * utils.h (make_cleanup_clear_parser_state): New function
6846         prototype.
6847         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6848         Update calls to write_exp* in order to pass the parser state.
6849         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6850         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6851         (i386_stap_parse_special_token_three_arg_disp): Likewise.
6852         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6853         * stap-probe.c (stap_parse_register_operand): Likewise.
6854         (stap_parse_single_operand): Likewise.
6855         (stap_parse_argument_1): Likewise.
6856         (stap_parse_argument): Use parser state.
6857         * stap-probe.h: Include "parser-defs.h".
6858         (struct stap_parse_info) <pstate>: New field.
6859         * c-exp.y (parse_type): Rewrite to use parser state.
6860         (yyparse): Redefine to c_parse_internal.
6861         (pstate): New global variable.
6862         (parse_number): Add "struct parser_state" argument.
6863         (write_destructor_name): Likewise.
6864         (type_exp): Update calls to write_exp* and similars in order to
6865         use parser state.
6866         (exp1, exp, variable, qualified_name, space_identifier,
6867         typename, typebase): Likewise.
6868         (write_destructor_name, parse_number, lex_one_token,
6869         classify_name, classify_inner_name, c_parse): Add "struct
6870         parser_state" argument.  Update function to use parser state.
6871         * c-lang.h: Forward declare "struct parser_state".
6872         (c_parse): Add "struct parser_state" argument.
6873         * ada-exp.y (parse_type): Rewrite macro to use parser state.
6874         (yyparse): Redefine macro to ada_parse_internal.
6875         (pstate): New variable.
6876         (write_int, write_object_renaming, write_var_or_type,
6877         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6878         type_int, type_long, type_long_long, type_float, type_double,
6879         type_long_double, type_char, type_boolean, type_system_address):
6880         Add "struct parser_state" argument.
6881         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6882         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6883         var_or_type, aggregate, aggregate_component_list,
6884         positional_list, others, component_group,
6885         component_associations): Update calls to write_exp* and similar
6886         functions in order to use parser state.
6887         (ada_parse, write_var_from_sym, write_int,
6888         write_exp_op_with_string, write_object_renaming,
6889         find_primitive_type, write_selectors, write_ambiguous_var,
6890         write_var_or_type, write_name_assoc, type_int, type_long,
6891         type_long_long, type_float, type_double, type_long_double,
6892         type_char, type_boolean, type_system_address): Add "struct
6893         parser_state" argument.  Adjust function to use parser state.
6894         * ada-lang.c (parse): Likewise.
6895         * ada-lang.h: Forward declare "struct parser_state".
6896         (ada_parse): Add "struct parser_state" argument.
6897         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
6898         calls to both functions.
6899         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6900         parser state.
6901         (yyparse): Redefine macro to f_parse_internal.
6902         (pstate): New variable.
6903         (parse_number): Add "struct parser_state" argument.
6904         (type_exp, exp, subrange, typebase): Update calls to write_exp*
6905         and similars in order to use parser state.
6906         (parse_number): Adjust code to use parser state.
6907         (yylex): Likewise.
6908         (f_parse): New function.
6909         * f-lang.h: Forward declare "struct parser_state".
6910         (f_parse): Add "struct parser_state" argument.
6911         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6912         parser state.
6913         (yyparse): Redefine macro for java_parse_internal.
6914         (pstate): New variable.
6915         (push_expression_name, push_expression_name, insert_exp): Add
6916         "struct parser_state" argument.
6917         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6918         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6919         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6920         PostIncrementExpression, PostDecrementExpression,
6921         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6922         UnaryExpressionNotPlusMinus, CastExpression,
6923         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6924         RelationalExpression, EqualityExpression, AndExpression,
6925         ExclusiveOrExpression, InclusiveOrExpression,
6926         ConditionalAndExpression, ConditionalOrExpression,
6927         ConditionalExpression, Assignment, LeftHandSide): Update
6928         calls to write_exp* and similars in order to use parser state.
6929         (parse_number): Ajust code to use parser state.
6930         (yylex): Likewise.
6931         (java_parse): New function.
6932         (push_variable): Add "struct parser_state" argument.  Adjust
6933         code to user parser state.
6934         (push_fieldnames, push_qualified_expression_name,
6935         push_expression_name, insert_exp): Likewise.
6936         * jv-lang.h: Forward declare "struct parser_state".
6937         (java_parse): Add "struct parser_state" argument.
6938         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6939         parser state.
6940         (yyparse): Redefine macro to m2_parse_internal.
6941         (pstate): New variable.
6942         (type_exp, exp, fblock, variable, type): Update calls to
6943         write_exp* and similars to use parser state.
6944         (yylex): Likewise.
6945         (m2_parse): New function.
6946         * m2-lang.h: Forward declare "struct parser_state".
6947         (m2_parse): Add "struct parser_state" argument.
6948         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6949         * objc-lang.h: Forward declare "struct parser_state".
6950         (end_msglist): Add "struct parser_state" argument.
6951         * p-exp.y (parse_type): Rewrite macro to use parser state.
6952         (yyparse): Redefine macro to pascal_parse_internal.
6953         (pstate): New variable.
6954         (parse_number): Add "struct parser_state" argument.
6955         (type_exp, exp1, exp, qualified_name, variable): Update calls to
6956         write_exp* and similars in order to use parser state.
6957         (parse_number, yylex): Adjust code to use parser state.
6958         (pascal_parse): New function.
6959         * p-lang.h: Forward declare "struct parser_state".
6960         (pascal_parse): Add "struct parser_state" argument.
6961         * go-exp.y (parse_type): Rewrite macro to use parser state.
6962         (yyparse): Redefine macro to go_parse_internal.
6963         (pstate): New variable.
6964         (parse_number): Add "struct parser_state" argument.
6965         (type_exp, exp1, exp, variable, type): Update calls to
6966         write_exp* and similars in order to use parser state.
6967         (parse_number, lex_one_token, classify_name, yylex): Adjust code
6968         to use parser state.
6969         (go_parse): Likewise.
6970         * go-lang.h: Forward declare "struct parser_state".
6971         (go_parse): Add "struct parser_state" argument.
6972
6973 2014-03-27  Doug Evans  <dje@google.com>
6974
6975         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
6976
6977 2014-03-27  Doug Evans  <dje@google.com>
6978
6979         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6980         Remove argument abbrev_section.  All callers updated.
6981
6982 2014-03-27  Doug Evans  <dje@google.com>
6983
6984         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6985         addr_base, ranges_base.
6986
6987 2014-03-26  Keith Seitz  <keiths@redhat.com>
6988
6989         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6990         types, not VAR_DOMAIN.
6991
6992 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
6993
6994         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6995         "ra" registers.
6996         * features/nios2-linux.c: Regenerated.
6997         * features/nios2.c: Regenerated.
6998
6999 2014-03-25  Pedro Alves  <palves@redhat.com>
7000
7001         * cli/cli-script.c (script_from_file): Force the interpreter to
7002         sync mode.
7003
7004 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
7005
7006         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7007         small stack allocation.
7008
7009 2014-03-24  Tristan Gingold  <gingold@adacore.com>
7010
7011         * darwin-nat.c (exc_server): Remove unused prototype.
7012         (darwin_dump_message): Correctly display data on x86_64.
7013         (darwin_encode_reply): Fix style.
7014         Add comments and fix indentation.
7015
7016 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
7017
7018         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7019
7020 2014-03-22  Doug Evans  <xdje42@gmail.com>
7021
7022         * infcmd.c: Whitespace fixes.
7023         (interrupt_command): Merge two function comments into one.
7024
7025 2014-03-22  Doug Evans  <xdje42@gmail.com>
7026
7027         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7028         All uses updated.
7029
7030 2014-03-22  Yao Qi  <yao@codesourcery.com>
7031
7032         * remote.c (target_read_live_memory): Remove.
7033         (memory_xfer_live_readonly_partial): Rename it to
7034         remote_xfer_live_readonly_partial.  Remove argument 'object'.
7035         All callers updated.  Call remote_read_bytes_1
7036         instead of target_read_live_memory.
7037         * tracepoint.c (set_traceframe_number): Remove.
7038         (make_cleanup_restore_traceframe_number): Likewise .
7039         * tracepoint.h (set_traceframe_number): Remove declaration.
7040         (make_cleanup_restore_traceframe_number): Likewise.
7041
7042 2014-03-22  Yao Qi  <yao@codesourcery.com>
7043
7044         * remote.c (remote_read_bytes): Move code on reading from the
7045         remote stub to ...
7046         (remote_read_bytes_1): ... here.  New function.
7047
7048 2014-03-22  Yao Qi  <yao@codesourcery.com>
7049
7050         * ctf.c (ctf_xfer_partial): Check the return value of
7051         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7052         return TARGET_XFER_UNAVAILABLE.
7053         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7054         * target.c (target_read_live_memory): Move it to remote.c.
7055         (memory_xfer_live_readonly_partial): Likewise.
7056         (memory_xfer_partial_1): Move some code to remote_read_bytes.
7057         * remote.c (target_read_live_memory): Moved from target.c.
7058         (memory_xfer_live_readonly_partial): Likewise.
7059         (remote_read_bytes): Factored out from
7060         memory_xfer_partial_1.
7061
7062 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
7063
7064         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7065         NULL pointer.
7066
7067 2014-03-21  Pedro Alves  <palves@redhat.com>
7068
7069         * infrun.c (normal_stop): Extend comment.
7070
7071 2014-03-21  Hui Zhu  <hui@codesourcery.com>
7072             Pedro Alves  <palves@redhat.com>
7073
7074         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7075         static buffer.
7076         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7077         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7078         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7079
7080 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
7081
7082         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7083         `z' formatted output modifier.
7084
7085 2014-03-20  Tom Tromey  <tromey@redhat.com>
7086             Sergio Durigan Junior  <sergiodj@redhat.com>
7087
7088         * probe.c (parse_probes): Turn assert into an ordinary error.
7089         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7090         exceptions when parsing probes.  Rearrange the code for clarity.
7091
7092 2014-03-20  Tom Tromey  <tromey@redhat.com>
7093
7094         PR gdb/14135
7095         * top.c (execute_command): Only dispatch events if the command
7096         started the target.
7097
7098 2014-03-20  Tom Tromey  <tromey@redhat.com>
7099
7100         PR cli/15718
7101         * infcall.c: Include event-top.h.
7102         (run_inferior_call): Call async_disable_stdin if needed.
7103
7104 2014-03-20  Pedro Alves  <palves@redhat.com>
7105
7106         * infrun.c (prepare_to_proceed): Delete.
7107         (thread_still_needs_step_over): New function.
7108         (find_thread_needs_step_over): New function.
7109         (proceed): If the current thread needs a step-over, set its
7110         steping_over_breakpoint flag.  Adjust to use
7111         find_thread_needs_step_over instead of prepare_to_proceed.
7112         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7113         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7114         breakpoint.
7115         (switch_back_to_stepped_thread): Step over breakpoints of all
7116         threads not the stepping thread, before switching back to the
7117         stepping thread.
7118
7119 2014-03-20  Pedro Alves  <palves@redhat.com>
7120
7121         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7122         extern.
7123         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7124         * infrun.c (saved_singlestep_ptid)
7125         (stepping_past_singlestep_breakpoint): Delete.
7126         (resume): Remove stepping_past_singlestep_breakpoint handling.
7127         (proceed): Store the prev_pc of the stepping thread too.
7128         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
7129         singlestep_pc.
7130         (enum infwait_states): Delete infwait_thread_hop_state.
7131         (struct execution_control_state) <hit_singlestep_breakpoint>: New
7132         field.
7133         (handle_inferior_event): Adjust.
7134         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7135         handling and the thread-hop code.  Before removing single-step
7136         breakpoints, check whether the thread hit a single-step breakpoint
7137         of another thread.  If it did, the trap is not a random signal.
7138         (switch_back_to_stepped_thread): If the event thread hit a
7139         single-step breakpoint, unblock it before switching to the
7140         stepping thread.  Handle the case of the stepped thread having
7141         advanced already.
7142         (keep_going): Handle the case of the current thread moving past a
7143         single-step breakpoint.
7144
7145 2014-03-20  Pedro Alves  <palves@redhat.com>
7146
7147         PR breakpoints/7143
7148         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7149         are being stepped over.
7150         (breakpoint_address_match): Make extern.
7151         * breakpoint.h (breakpoint_address_match): New declaration.
7152         * inferior.h (stepping_past_instruction_at): New declaration.
7153         * infrun.c (struct step_over_info): New type.
7154         (step_over_info): New global.
7155         (set_step_over_info, clear_step_over_info)
7156         (stepping_past_instruction_at): New functions.
7157         (handle_inferior_event): Clear the step-over info when
7158         trap_expected is cleared.
7159         (resume): Remove now stale comment.
7160         (clear_proceed_status): Clear step-over info.
7161         (proceed): Adjust step-over handling to set or clear the step-over
7162         info instead of removing all breakpoints.
7163         (handle_signal_stop): When setting up a thread-hop, don't remove
7164         breakpoints here.
7165         (stop_stepping): Clear step-over info.
7166         (keep_going): Adjust step-over handling to set or clear step-over
7167         info and then always inserting breakpoints, instead of removing
7168         all breakpoints when stepping over one.
7169
7170 2014-03-20  Pedro Alves  <palves@redhat.com>
7171
7172         * infrun.c (previous_inferior_ptid): Adjust comment.
7173         (deferred_step_ptid): Delete.
7174         (infrun_thread_ptid_changed, prepare_to_proceed)
7175         (init_wait_for_inferior): Adjust.
7176         (handle_signal_stop): Delete deferred_step_ptid handling.
7177
7178 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
7179
7180         PR gdb/15358
7181         * defs.h (sync_quit_force_run): New declaration.
7182         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7183         * event-top.c (async_sigterm_handler): New declaration.
7184         (async_sigterm_token): New variable.
7185         (async_init_signals): Create also async_sigterm_token.
7186         (async_sigterm_handler): New function.
7187         (sync_quit_force_run): New variable.
7188         (handle_sigterm): Replace quit_force call by other calls.
7189         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7190
7191 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
7192
7193         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7194         offset into SPE pseudo registers.
7195
7196 2014-03-18  Pedro Alves  <palves@redhat.com>
7197
7198         PR gdb/13860
7199         * inferior.h (print_stop_event): Declare.
7200         * infrun.c (print_stop_event): New, factored out from ...
7201         (normal_stop): ... this.
7202         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7203         of bpstat_print/print_stack_frame.
7204
7205 2014-03-17  Tom Tromey  <tromey@redhat.com>
7206
7207         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7208
7209 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
7210
7211         * ada-lang.c (decode_constrained_packed_array): Perform a
7212         minimal coercion for reference with coerce_ref instead of
7213         ada_coerce_ref.
7214
7215 2014-03-17  Tristan Gingold  <gingold@adacore.com>
7216
7217         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7218         (darwin_solib_create_inferior_hook): Emit a warning if version
7219         is unhandled.
7220
7221 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
7222
7223         * python/py-value.c (get_field_flag): Cast flag_name argument to
7224         PyObject_GetAttrString to support Python 2.4.
7225
7226 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
7227
7228         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7229         (Global Maintainers): Remove Jan Kratochvil.
7230
7231 2014-03-14  Pedro Alves  <palves@redhat.com>
7232
7233         * inferior.h (terminal_ours_for_output): Rename to ...
7234         (child_terminal_ours_for_output): ... this.
7235         (terminal_save_ours): Rename to ...
7236         (child_terminal_save_ours): ... this.
7237         (terminal_ours): Rename to ...
7238         (child_terminal_ours): ... this.
7239         (terminal_inferior): Rename to ...
7240         (child_terminal_inferior): ... this.
7241         (terminal_init_inferior): Rename to ...
7242         (child_terminal_init_inferior): ... this.
7243         (terminal_init_inferior_with_pgrp): Rename to ...
7244         (child_terminal_init_inferior_with_pgrp): ... this.
7245         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7246         (child_terminal_init_with_pgrp): ... this.
7247         (terminal_save_ours): Rename to ...
7248         (child_terminal_save_ours): ... this.
7249         (terminal_init_inferior): Rename to ...
7250         (child_terminal_init): ... this.  Adjust.
7251         (terminal_inferior): Rename to ...
7252         (child_terminal_inferior): ... this.
7253         (terminal_ours_for_output): Rename to ...
7254         (child_terminal_ours_for_output): ... this.  Adjust.
7255         (terminal_ours): Rename to ...
7256         (child_terminal_ours): ... this.
7257         (terminal_ours_1): Rename to ...
7258         (child_terminal_ours_1): ... this.  Adjust.
7259         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7260         * windows-nat.c (do_initial_windows_stuff): Adjust.
7261         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7262         (gnu_terminal_init): ... this.  Adjust.
7263         (gnu_target): Adjust.
7264         * inf-child.c (inf_child_target): Adjust.
7265
7266 2014-03-13  Doug Evans  <xdje42@gmail.com>
7267
7268         PR guile/16612
7269         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7270         new eq?-hashtab.
7271
7272 2014-03-13  Doug Evans  <xdje42@gmail.com>
7273
7274         * value.c (record_latest_value): Call release_value_or_incref
7275         instead of release_value.
7276
7277 2014-03-13  Pedro Alves  <palves@redhat.com>
7278
7279         * procfs.c (procfs_target): Don't override to_shortname,
7280         to_longname or to_doc.
7281
7282 2014-03-13  Pedro Alves  <palves@redhat.com>
7283
7284         * inf-child.c (inf_child_open, inf_child_target): Don't mention
7285         Unix in user visible strings.
7286
7287 2014-03-12  Stan Shebs  <stan@codesourcery.com>
7288
7289         * gdbtypes.h: Annotate comments for Doxygen, add a page
7290         block comment with some general info.
7291
7292 2014-03-12  Pedro Alves  <palves@redhat.com>
7293
7294         * infcmd.c (prepare_execution_command): New function, factored out
7295         from several execution commands.
7296         (run_command_1, continue_command, step_1, jump_command)
7297         (signal_command, until_command, advance_command, finish_command)
7298         (attach_command): Use prepare_execution_command.
7299
7300 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
7301
7302         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7303         (MAX_BPTS): Define.
7304         (MAX_WPTS): Define.
7305         (struct arm_linux_thread_points): Removed.
7306         (struct arm_linux_process_info): New.
7307         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7308         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7309         (arm_linux_find_breakpoints_by_tid): Removed.
7310         (struct arch_lwp_info): New.
7311         (arm_linux_find_process_pid): New functions.
7312         (arm_linux_add_process): New functions.
7313         (arm_linux_process_info_get): New functions.
7314         (arm_linux_forget_process): New function.
7315         (arm_linux_get_debug_reg_state): New function.
7316         (struct update_registers_data): New.
7317         (update_registers_callback): New function.
7318         (arm_linux_insert_hw_breakpoint1): Updated.
7319         (arm_linux_remove_hw_breakpoint1): Updated.
7320         (arm_linux_insert_hw_breakpoint): Updated.
7321         (arm_linux_remove_hw_breakpoint): Updated.
7322         (arm_linux_insert_watchpoint): Updated.
7323         (arm_linux_remove_watchpoint): Updated.
7324         (arm_linux_new_thread): Updated.
7325         (arm_linux_prepare_to_resume): New function.
7326         (arm_linux_new_fork): New function.
7327         (_initialize_arm_linux_nat): Updated.
7328
7329 2014-03-12  Pedro Alves  <palves@redhat.com>
7330
7331         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7332
7333 2014-03-12  Tom Tromey  <tromey@redhat.com>
7334
7335         * inf-child.c (return_zero): New function.
7336         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7337         * aix-thread.c (aix_thread_inferior_created): New function.
7338         (aix_thread_attach): Remove.
7339         (init_aix_thread_ops): Don't set to_attach.
7340         (_initialize_aix_thread): Register inferior_created observer.
7341         * corelow.c (init_core_ops): Don't set to_attach or
7342         to_create_inferior.
7343         * exec.c (init_exec_ops): Don't set to_attach or
7344         to_create_inferior.
7345         * infcmd.c (run_command_1): Use find_run_target.  Make direct
7346         target calls.
7347         (attach_command): Use find_attach_target.  Make direct target
7348         calls.
7349         * record-btrace.c (init_record_btrace_ops): Don't set
7350         to_create_inferior.
7351         * record-full.c (record_full_can_async_p, record_full_is_async_p):
7352         Remove.
7353         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
7354         set to_create_inferior.
7355         * target.c (complete_target_initialization): Add assertion.
7356         (target_create_inferior): Remove.
7357         (find_default_attach, find_default_create_inferior): Remove.
7358         (find_attach_target, find_run_target): New functions.
7359         (find_default_is_async_p, find_default_can_async_p)
7360         (target_supports_non_stop, target_attach): Remove.
7361         (init_dummy_target): Don't set to_create_inferior or
7362         to_supports_non_stop.
7363         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
7364         TARGET_DEFAULT_FUNC.
7365         <to_create_inferior>: Add comment.
7366         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7367         TARGET_DEFAULT_RETURN.
7368         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7369         (find_attach_target, find_run_target): Declare.
7370         (target_create_inferior): Remove.
7371         (target_has_execution_1): Update comment.
7372         (target_supports_non_stop): Remove.
7373         * target-delegates.c: Rebuild.
7374
7375 2014-03-12  Pedro Alves  <palves@redhat.com>
7376
7377         * inf-child.h: Update comment to not mention Unix.
7378
7379 2014-03-12  Pedro Alves  <palves@redhat.com>
7380
7381         * inf-child.c: Update top comment to not mention Unix.  Add
7382         generic comment describing how this target is meant to be used.
7383         (inf_child_post_attach, inf_child_post_startup_inferior)
7384         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7385         Unix in comment.
7386
7387 2014-03-12  Pedro Alves  <palves@redhat.com>
7388
7389         * nto-procfs.c: Include inf-child.h.
7390         (procfs_ops): Delete global.
7391         (procfs_can_run): Delete method.
7392         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7393         target pointer instead of referencing procfs_ops.
7394         (procfs_prepare_to_store): Delete.
7395         (init_procfs_ops): Delete function.
7396         (procfs_target): New function, based on init_procfs_ops, but
7397         inherit inf_child_target.
7398         (_initialize_procfs): Use procfs_target.
7399
7400 2014-03-12  Pedro Alves  <palves@redhat.com>
7401
7402         * windows-nat.c: Include inf-child.h.
7403         (windows_ops): Delete global.
7404         (windows_open, windows_prepare_to_store, windows_can_run): Delete
7405         methods.
7406         (init_windows_ops): Delete function.
7407         (windows_target): New function, based on init_windows_ops, but
7408         inherit inf_child_target.
7409         (_initialize_windows_nat): Use windows_target.  Install x86
7410         specific target methods here.
7411
7412 2014-03-10  Doug Evans  <xdje42@gmail.com>
7413
7414         * guile/guile.c (call_initialize_gdb_module): New function.
7415         (initialize_guile): Replace call to scm_init_guile with call to
7416         scm_with_guile.
7417
7418 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
7419
7420         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7421         in call to TYPE_CODE macro.
7422
7423 2014-03-10  Jerome Guitton  <guitton@adacore.com>
7424
7425         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7426         Resolve tagged types to full view.
7427
7428 2014-03-10  Hui Zhu  <hui@codesourcery.com>
7429
7430         * target.h (target_insert_breakpoint): Remove "hardware" from its
7431         comments.
7432
7433 2014-03-07  Doug Evans  <dje@google.com>
7434
7435         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7436
7437 2014-03-07  Doug Evans  <dje@google.com>
7438
7439         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7440         Remove unused local comp_dir_attr.  Assert exactly one of
7441         stub_comp_unit_die, stub_comp_dir is non-NULL.
7442
7443 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
7444
7445         * target.h (complete_target_initialization, add_target):
7446         Add comment.
7447
7448 2014-03-07  Pedro Alves  <palves@redhat.com>
7449
7450         * go32-nat.c: Include inf-child.h.
7451         (go32_ops): Delete global.
7452         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7453         Delete methods.
7454         (go32_create_inferior): Push the passed in target pointer instead
7455         of referencing go32_ops.
7456         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
7457         (go32_target): New function, based on init_go32_ops, but inherit
7458         inf_child_target.
7459         (_initialize_go32_nat): Use go32_target.  Move parts of
7460         init_go32_ops here.
7461
7462 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
7463
7464         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7465         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7466         SYMBOL_VALUE_ADDRESS.
7467         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7468
7469 2014-03-06  Yao Qi  <yao@codesourcery.com>
7470
7471         * breakpoint.c (get_tracepoint_by_number): Remove argument
7472         optional_p.  All callers updated.  Adjust comments.  Update
7473         output message.
7474         * breakpoint.h (get_tracepoint_by_number): Update declaration.
7475
7476 2014-03-06  Yao Qi  <yao@codesourcery.com>
7477
7478         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
7479         early if get_number returns zero.  Use 'p' instead of 'args'.
7480
7481 2014-03-06  Yao Qi  <yao@codesourcery.com>
7482
7483         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7484         message.
7485
7486 2014-03-06  Yao Qi  <yao@codesourcery.com>
7487
7488         PR breakpoints/16508
7489         * tracepoint.c (check_trace_running): New function.
7490         (trace_find_command): Move code to check_trace_running and
7491         call check_trace_running.
7492         (trace_find_pc_command): Likewise.
7493         (trace_find_tracepoint_command): Likewise.
7494         (trace_find_line_command): Likewise.
7495         (trace_find_range_command): Likewise.
7496         * tracepoint.h (check_trace_running): Likewise.
7497         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7498
7499 2014-03-06  Yao Qi  <yao@codesourcery.com>
7500
7501         * target.h (struct target_ops) <to_traceframe_info>: Use
7502         TARGET_DEFAULT_NORETURN (tcomplain ()).
7503         * target-delegates.c: Regenerated.
7504
7505 2014-03-05  Pedro Alves  <palves@redhat.com>
7506
7507         PR gdb/16575
7508         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
7509         void.  Update comment.
7510         (dcache_xfer_memory): Delete.
7511         (dcache_read_memory_partial): New, based on the read bits of
7512         dcache_xfer_memory.
7513         (dcache_update): Add status parameter.  Use ULONGEST for len, and
7514         adjust.  Discard cache lines if the reason for the update was
7515         error.
7516         * dcache.h (dcache_xfer_memory): Delete declaration.
7517         (dcache_read_memory_partial): New declaration.
7518         (dcache_update): Update prototype.
7519         * target.c (raw_memory_xfer_partial): Update the dcache here.
7520         (memory_xfer_partial_1): Don't handle dcache writes here.
7521
7522 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
7523
7524         * remote-sim.c (gdbsim_load): Add const to prog.
7525
7526 2014-03-03  Tom Tromey  <tromey@redhat.com>
7527
7528         * elfread.c (probe_key): Change to bfd_data.
7529         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7530         now per-BFD, not per-objfile.
7531         * stap-probe.c (stap_probe_destroy): Update comment.
7532         (handle_stap_probe): Allocate on the per-BFD obstack.
7533
7534 2014-03-03  Tom Tromey  <tromey@redhat.com>
7535
7536         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7537         * breakpoint.c (create_longjmp_master_breakpoint): Use
7538         get_probe_address.
7539         (add_location_to_breakpoint, bkpt_probe_insert_location)
7540         (bkpt_probe_remove_location): Update.
7541         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7542         * elfread.c (elf_symfile_relocate_probe): Remove.
7543         (elf_probe_fns): Update.
7544         (insert_exception_resume_breakpoint): Change type of "probe"
7545         parameter to bound_probe.
7546         (check_exception_resume): Update.
7547         * objfiles.c (objfile_relocate1): Don't relocate probes.
7548         * probe.c (bound_probe_s): New typedef.
7549         (parse_probes): Use get_probe_address.  Set sal's objfile.
7550         (find_probe_by_pc): Return a bound_probe.
7551         (collect_probes): Return a VEC(bound_probe_s).
7552         (compare_probes): Update.
7553         (gen_ui_out_table_header_info): Change type of "probes"
7554         parameter.  Update.
7555         (info_probes_for_ops): Update.
7556         (get_probe_address): New function.
7557         (probe_safe_evaluate_at_pc): Update.
7558         * probe.h (struct probe_ops) <get_probe_address>: New field.
7559         <set_semaphore, clear_semaphore>: Add objfile parameter.
7560         (struct probe) <objfile>: Remove field.
7561         <arch>: New field.
7562         <address>: Update comment.
7563         (struct bound_probe): New.
7564         (find_probe_by_pc): Return a bound_probe.
7565         (get_probe_address): Declare.
7566         * solib-svr4.c (struct probe_and_action) <address>: New field.
7567         (hash_probe_and_action, equal_probe_and_action): Update.
7568         (register_solib_event_probe): Add address parameter.
7569         (solib_event_probe_at): Update.
7570         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
7571         get_probe_address.
7572         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7573         (stap_get_probe_address): New function.
7574         (stap_can_evaluate_probe_arguments, compute_probe_arg)
7575         (compile_probe_arg): Update.
7576         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7577         address.
7578         (handle_stap_probe): Don't relocate the probe.
7579         (stap_relocate): Remove.
7580         (stap_gen_info_probes_table_values): Update.
7581         (stap_probe_ops): Remove stap_relocate.
7582         * symfile-debug.c (debug_sym_relocate_probe): Remove.
7583         (debug_sym_probe_fns): Update.
7584         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7585         * symtab.c (init_sal): Use memset.
7586         * symtab.h (struct symtab_and_line) <objfile>: New field.
7587         * tracepoint.c (start_tracing, stop_tracing): Update.
7588
7589 2014-03-03  Tom Tromey  <tromey@redhat.com>
7590
7591         * probe.h (parse_probes, find_probe_by_pc)
7592         (find_probes_in_objfile): Fix comments.
7593
7594 2014-03-02  Doug Evans  <xdje42@gmail.com>
7595
7596         * infrun.c (handle_signal_stop): Replace test for
7597         TARGET_WAITKIND_STOPPED with an assert.
7598
7599 2014-03-02  Doug Evans  <xdje42@gmail.com>
7600
7601         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7602
7603 2014-03-02  Doug Evans  <xdje42@gmail.com>
7604
7605         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7606
7607 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7608
7609         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7610
7611 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7612
7613         * i386obsd-nat.c: Include "obsd-nat.h".
7614         (_initialize_i386obsd_nat): Call obsd_add_target instead of
7615         add_target.
7616         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7617
7618 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7619
7620         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7621
7622 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7623
7624         * mips64obsd-nat.c: Include "obsd-nath".
7625         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7626         add_target
7627         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7628
7629 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7630
7631         * amd64obsd-nat.c: Include "obsd-nat,h.
7632         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7633         add_target.
7634         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7635
7636 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
7637
7638         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7639         (find_overload_match): Update call to find_oload_champ.
7640         (find_oload_champ_namespace_loop): Likewise
7641
7642 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
7643
7644         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7645
7646         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7647         * config/sparc/obsd64.mh: New file.
7648         * sparc64obsd-nat.c: New file.
7649
7650         * obsd-nat.h: New file.
7651         * obsd-nat.c: New file.
7652         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7653         (ALLDEPFILES): Add obsd-nat.c.
7654
7655 2014-02-28  Tom Tromey  <tromey@redhat.com>
7656
7657         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
7658         * cli-out.h (cli_ui_out_impl): Now const.
7659         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
7660         * ui-out.c (struct ui_out) <impl>: Now const.
7661         (default_ui_out_impl): Now const.
7662         (ui_out_new): Make 'impl' parameter const.
7663         * ui-out.h (ui_out_new): Update.
7664
7665 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7666
7667         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7668
7669 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7670
7671         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7672
7673 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
7674
7675         Additional PR 8882 fix.
7676         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7677
7678 2014-02-27  Pedro Alves  <palves@redhat.com>
7679
7680         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7681         isn't set.
7682
7683 2014-02-27  Pedro Alves  <palves@redhat.com>
7684
7685         PR 12702
7686         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7687         * nat/linux-waitpid.c: Include string.h.
7688         (status_to_str): Moved here and made extern.
7689         * nat/linux-waitpid.h (status_to_str): New declaration.
7690
7691 2014-02-27  Hui Zhu  <hui@codesourcery.com>
7692
7693         PR 12702
7694         * infrun.c (ptid_match): Move ...
7695         * common/ptid.c (ptid_match): ... here.
7696         * inferior.h (ptid_match): Move ...
7697         * common/ptid.h (ptid_match): ... here.
7698
7699 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7700
7701         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7702         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7703         gdb_target_obs.
7704
7705 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7706
7707         * obsd-tdep.c (obsd_auxv_parse): New function.
7708         (obsd_init_abi): Set auxv_parse.
7709
7710         * gdbarch.sh (auxv_parse): New.
7711         * gdbarch.h: Regenerated.
7712         * gdbarch.c: Regenerated.
7713         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7714
7715 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
7716
7717         * guile/scm-value.c (gdbscm_history_append_x): New function.
7718         (value_functions): Add it.
7719
7720 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
7721
7722         * dwarf2read.c (attr_value_as_address): New function.
7723         (dwarf2_find_base_address, read_call_site_scope): Use
7724         attr_value_as_address in place of DW_ADDR.
7725         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7726         the low and high addresses.  Slight rework of the handling
7727         of the high pc being a constant form, and limit it to
7728         DWARF verson 4 or higher.
7729         (dwarf2_record_block_ranges): Likewise.
7730         (read_partial_die): Likewise.
7731         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7732
7733 2014-02-26  Tom Tromey  <tromey@redhat.com>
7734
7735         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7736
7737 2014-02-26  Tom Tromey  <tromey@redhat.com>
7738
7739         * elfread.c (elf_read_minimal_symbols): Return early if
7740         minimal symbols have already been read.  Add "ei" parameter.
7741         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7742         * minsyms.c (prim_record_minimal_symbol_full): Update.
7743         * objfiles.h (struct objstats) <n_minsyms>: Move...
7744         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7745         * symmisc.c (print_objfile_statistics): Update.
7746
7747 2014-02-26  Tom Tromey  <tromey@redhat.com>
7748
7749         * elfread.c (elf_read_minimal_symbols): New function, from
7750         elf_symfile_read.
7751         (elf_symfile_read): Call it.
7752
7753 2014-02-26  Tom Tromey  <tromey@redhat.com>
7754
7755         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7756         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7757         (lookup_minimal_symbol_solib_trampoline)
7758         (lookup_minimal_symbol_by_pc_section_1)
7759         (lookup_minimal_symbol_and_objfile): Update.
7760         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7761         Don't allocate a minimal symbol if minsyms have already been read.
7762         (build_minimal_symbol_hash_tables): Update.
7763         (install_minimal_symbols): Do nothing if minsyms already read.
7764         Use the per-BFD obstack.
7765         (terminate_minimal_symbol_table): Use the per-BFD obstack.
7766         * objfiles.c (allocate_objfile): Call
7767         terminate_minimal_symbol_table later.
7768         (have_minimal_symbols): Update.
7769         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7770         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7771         Move from struct objfile.
7772         <minsyms_read>: New field.
7773         (struct objfile) <msymbols, minimal_symbol_count,
7774         msymbol_hash, msymbol_demangled_hash>: Move.
7775         (ALL_OBJFILE_MSYMBOLS): Update.
7776         * symfile.c (read_symbols): Set minsyms_read.
7777         (reread_symbols): Update.
7778         * symmisc.c (dump_objfile, dump_msymbols): Update.
7779
7780 2014-02-26  Tom Tromey  <tromey@redhat.com>
7781
7782         * minsyms.c (msymbols_sort): Remove.
7783         * minsyms.h (msymbols_sort): Remove.
7784         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7785         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7786         * elfread.c (elf_symtab_read): Don't add section offsets.
7787         * xcoffread.c (record_minimal_symbol): Don't add section offset
7788         to minimal symbol address.
7789         * somread.c (text_offset, data_offset): Remove.
7790         (som_symtab_read): Don't add section offsets to minimal symbol
7791         addresses.
7792         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7793         Don't add section offsets to minimal symbols.
7794         * coffread.c (coff_symtab_read): Don't add section offsets
7795         to minimal symbol addresses.
7796         * machoread.c (macho_symtab_add_minsym): Don't add section offset
7797         to minimal symbol addresses.
7798         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7799         section offset to minimal symbol addresses.
7800         * mdebugread.c (parse_partial_symbols): Don't add section
7801         offset to minimal symbol addresses.
7802         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7803         offset to minimal symbol addresses.
7804
7805 2014-02-26  Tom Tromey  <tromey@redhat.com>
7806
7807         * ada-lang.c (ada_main_name): Update.
7808         (ada_add_standard_exceptions): Update.
7809         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7810         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7811         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7812         * auxv.c (ld_so_xfer_auxv): Update.
7813         * avr-tdep.c (avr_scan_prologue): Update.
7814         * ax-gdb.c (gen_var_ref): Update.
7815         * blockframe.c (get_pc_function_start)
7816         (find_pc_partial_function_gnu_ifunc): Update.
7817         * breakpoint.c (create_overlay_event_breakpoint)
7818         (create_longjmp_master_breakpoint)
7819         (create_std_terminate_master_breakpoint)
7820         (create_exception_master_breakpoint): Update.
7821         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7822         * c-valprint.c (c_val_print): Update.
7823         * coff-pe-read.c (add_pe_forwarded_sym): Update.
7824         * common/agent.c (agent_look_up_symbols): Update.
7825         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7826         * dwarf2loc.c (call_site_to_target_addr): Update.
7827         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7828         * elfread.c (elf_gnu_ifunc_record_cache)
7829         (elf_gnu_ifunc_resolve_by_got): Update.
7830         * findvar.c (default_read_var_value): Update.
7831         * frame.c (inside_main_func): Update.
7832         * frv-tdep.c (frv_frame_this_id): Update.
7833         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7834         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7835         Update.
7836         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7837         (hppa_hpux_find_dummy_bpaddr): Update.
7838         * hppa-tdep.c (hppa_symbol_address): Update.
7839         * infcmd.c (until_next_command): Update.
7840         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7841         Update.
7842         * linespec.c (minsym_found, add_minsym): Update.
7843         * linux-nat.c (get_signo): Update.
7844         * linux-thread-db.c (inferior_has_bug): Update.
7845         * m32c-tdep.c (m32c_return_value)
7846         (m32c_m16c_address_to_pointer): Update.
7847         * m32r-tdep.c (m32r_frame_this_id): Update.
7848         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7849         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7850         * maint.c (maintenance_translate_address): Update.
7851         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7852         (frob_address): New function.
7853         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7854         frob_address.  Rename parameter to "pc_in".
7855         (compare_minimal_symbols, compact_minimal_symbols): Use raw
7856         addresses.
7857         (find_solib_trampoline_target, minimal_symbol_upper_bound):
7858         Update.
7859         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7860         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7861         * objc-lang.c (find_objc_msgsend): Update.
7862         * objfiles.c (objfile_relocate1): Update.
7863         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7864         * p-valprint.c (pascal_val_print): Update.
7865         * parse.c (write_exp_msymbol): Update.
7866         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7867         (ppc_elfv2_skip_entrypoint): Update.
7868         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7869         * printcmd.c (build_address_symbolic, msym_info)
7870         (address_info): Update.
7871         * proc-service.c (ps_pglobal_lookup): Update.
7872         * psymtab.c (find_pc_sect_psymtab_closer)
7873         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7874         Change msymbol parameter to bound_minimal_symbol.
7875         * ravenscar-thread.c (get_running_thread_id): Update.
7876         * remote.c (remote_check_symbols): Update.
7877         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7878         address.
7879         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7880         * solib-dsbt.c (lm_base): Update.
7881         * solib-frv.c (lm_base, main_got): Update.
7882         * solib-irix.c (locate_base): Update.
7883         * solib-som.c (som_solib_create_inferior_hook)
7884         (link_map_start): Update.
7885         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7886         * solib-svr4.c (elf_locate_base, enable_break): Update.
7887         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7888         (flush_ea_cache): Update.
7889         * stabsread.c (define_symbol, scan_file_globals): Update.
7890         * stack.c (find_frame_funname): Update.
7891         * symfile-debug.c (debug_qf_expand_symtabs_matching)
7892         (debug_qf_find_pc_sect_symtab): Update.
7893         * symfile.c (simple_read_overlay_table)
7894         (simple_overlay_update): Update.
7895         * symfile.h (struct quick_symbol_functions)
7896         <find_pc_sect_symtab>: Change type of msymbol to
7897         bound_minimal_symbol.
7898         * symmisc.c (dump_msymbols): Update.
7899         * symtab.c (find_pc_sect_symtab_via_partial)
7900         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7901         (search_symbols, print_msymbol_info): Update.
7902         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7903         (MSYMBOL_VALUE_ADDRESS): Redefine.
7904         (BMSYMBOL_VALUE_ADDRESS): New macro.
7905         * tracepoint.c (scope_info): Update.
7906         * tui/tui-disasm.c (tui_find_disassembly_address)
7907         (tui_get_begin_asm_address): Update.
7908         * valops.c (find_function_in_inferior): Update.
7909         * value.c (value_static_field, value_fn_field): Update.
7910
7911 2014-02-26  Tom Tromey  <tromey@redhat.com>
7912
7913         * ada-lang.c (ada_update_initial_language): Update.
7914         (ada_main_name, ada_has_this_exception_support): Update.
7915         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7916         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7917         * arm-tdep.c (arm_skip_stub): Update.
7918         * auxv.c (ld_so_xfer_auxv): Update.
7919         * avr-tdep.c (avr_scan_prologue): Update.
7920         * ax-gdb.c (gen_var_ref): Update.
7921         * breakpoint.c (struct breakpoint_objfile_data)
7922         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7923         type to bound_minimal_symbol.
7924         (create_overlay_event_breakpoint)
7925         (create_longjmp_master_breakpoint)
7926         (create_std_terminate_master_breakpoint)
7927         (create_exception_master_breakpoint): Update.
7928         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7929         * c-exp.y (classify_name): Update.
7930         * coffread.c (coff_symfile_read): Update.
7931         * common/agent.c (agent_look_up_symbols): Update.
7932         * d-lang.c (d_main_name): Update.
7933         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7934         * dec-thread.c (enable_dec_thread): Update.
7935         * dwarf2loc.c (call_site_to_target_addr): Update.
7936         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7937         * eval.c (evaluate_subexp_standard): Update.
7938         * findvar.c (struct minsym_lookup_data) <result>: Change type
7939         to bound_minimal_symbol.
7940         <objfile>: Remove.
7941         (minsym_lookup_iterator_cb, default_read_var_value): Update.
7942         * frame.c (inside_main_func): Update.
7943         * frv-tdep.c (frv_frame_this_id): Update.
7944         * gcore.c (call_target_sbrk): Update.
7945         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7946         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7947         Update.
7948         * go-lang.c (go_main_name): Update.
7949         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7950         (hppa_hpux_find_import_stub_for_addr): Update.
7951         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7952         Update.  Change return type.
7953         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7954         type.
7955         * jit.c (jit_breakpoint_re_set_internal): Update.
7956         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7957         Update.
7958         * linux-nat.c (get_signo): Update.
7959         * linux-thread-db.c (inferior_has_bug): Update
7960         * m32c-tdep.c (m32c_return_value)
7961         (m32c_m16c_address_to_pointer): Update.
7962         * m32r-tdep.c (m32r_frame_this_id): Update.
7963         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7964         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7965         * minsyms.c (lookup_minimal_symbol_internal): Rename to
7966         lookup_minimal_symbol.  Change return type.
7967         (lookup_minimal_symbol): Remove.
7968         (lookup_bound_minimal_symbol): Update.
7969         (lookup_minimal_symbol_text): Change return type.
7970         (lookup_minimal_symbol_solib_trampoline): Change return type.
7971         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7972         (lookup_minimal_symbol_solib_trampoline): Change return type.
7973         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7974         * objc-lang.c (lookup_objc_class, lookup_child_selector)
7975         (value_nsstring, find_imps): Update.
7976         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7977         * p-lang.c (pascal_main_name): Update.
7978         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7979         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7980         * proc-service.c (ps_pglobal_lookup): Update.
7981         * ravenscar-thread.c (get_running_thread_msymbol): Change
7982         return type.
7983         (has_ravenscar_runtime, get_running_thread_id): Update.
7984         * remote.c (remote_check_symbols): Update.
7985         * sol-thread.c (ps_pglobal_lookup): Update.
7986         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7987         * solib-dsbt.c (lm_base): Update.
7988         * solib-frv.c (lm_base, frv_relocate_section_addresses):
7989         Update.
7990         * solib-irix.c (locate_base): Update.
7991         * solib-som.c (som_solib_create_inferior_hook)
7992         (som_solib_desire_dynamic_linker_symbols, link_map_start):
7993         Update.
7994         * solib-spu.c (spu_enable_break): Update.
7995         * solib-svr4.c (elf_locate_base, enable_break): Update.
7996         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7997         (flush_ea_cache): Update.
7998         * stabsread.c (define_symbol): Update.
7999         * symfile.c (simple_read_overlay_table): Update.
8000         * symtab.c (find_pc_sect_line): Update.
8001         * tracepoint.c (scope_info): Update.
8002         * tui-disasm.c (tui_get_begin_asm_address): Update.
8003         * value.c (value_static_field): Update.
8004
8005 2014-02-26  Tom Tromey  <tromey@redhat.com>
8006
8007         * minsyms.c (prim_record_minimal_symbol_full): Use
8008         SET_MSYMBOL_VALUE_ADDRESS.
8009         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8010         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8011         SET_MSYMBOL_VALUE_ADDRESS.
8012         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8013         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8014
8015 2014-02-26  Tom Tromey  <tromey@redhat.com>
8016
8017         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8018         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8019         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8020         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8021         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8022         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8023         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8024         * ada-lang.c (ada_main_name): Update.
8025         (ada_lookup_simple_minsym): Update.
8026         (ada_make_symbol_completion_list): Update.
8027         (ada_add_standard_exceptions): Update.
8028         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8029         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8030         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8031         * arm-tdep.c (skip_prologue_function): Update.
8032         (arm_skip_stack_protector, arm_skip_stub): Update.
8033         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8034         (arm_wince_skip_main_prologue): Update.
8035         * auxv.c (ld_so_xfer_auxv): Update.
8036         * avr-tdep.c (avr_scan_prologue): Update.
8037         * ax-gdb.c (gen_var_ref): Update.
8038         * block.c (call_site_for_pc): Update.
8039         * blockframe.c (get_pc_function_start): Update.
8040         (find_pc_partial_function_gnu_ifunc): Update.
8041         * breakpoint.c (create_overlay_event_breakpoint): Update.
8042         (create_longjmp_master_breakpoint): Update.
8043         (create_std_terminate_master_breakpoint): Update.
8044         (create_exception_master_breakpoint): Update.
8045         (resolve_sal_pc): Update.
8046         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8047         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8048         Update.
8049         * c-valprint.c (c_val_print): Update.
8050         * coff-pe-read.c (add_pe_forwarded_sym): Update.
8051         * coffread.c (coff_symfile_read): Update.
8052         * common/agent.c (agent_look_up_symbols): Update.
8053         * dbxread.c (find_stab_function_addr): Update.
8054         (end_psymtab): Update.
8055         * dwarf2loc.c (call_site_to_target_addr): Update.
8056         (func_verify_no_selftailcall): Update.
8057         (tailcall_dump): Update.
8058         (call_site_find_chain_1): Update.
8059         (dwarf_expr_reg_to_entry_parameter): Update.
8060         * elfread.c (elf_gnu_ifunc_record_cache): Update.
8061         (elf_gnu_ifunc_resolve_by_got): Update.
8062         * f-valprint.c (info_common_command): Update.
8063         * findvar.c (read_var_value): Update.
8064         * frame.c (get_prev_frame_1): Update.
8065         (inside_main_func): Update.
8066         * frv-tdep.c (frv_skip_main_prologue): Update.
8067         (frv_frame_this_id): Update.
8068         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8069         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8070         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8071         (gnuv3_skip_trampoline): Update.
8072         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8073         (hppa64_hpux_in_solib_call_trampoline): Update.
8074         (hppa_hpux_skip_trampoline_code): Update.
8075         (hppa64_hpux_search_dummy_call_sequence): Update.
8076         (hppa_hpux_find_import_stub_for_addr): Update.
8077         (hppa_hpux_find_dummy_bpaddr): Update.
8078         * hppa-tdep.c (hppa_symbol_address)
8079         (hppa_lookup_stub_minimal_symbol): Update.
8080         * i386-tdep.c (i386_skip_main_prologue): Update.
8081         (i386_pe_skip_trampoline_code): Update.
8082         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8083         * infcall.c (get_function_name): Update.
8084         * infcmd.c (until_next_command): Update.
8085         * jit.c (jit_breakpoint_re_set_internal): Update.
8086         (jit_inferior_init): Update.
8087         * linespec.c (minsym_found): Update.
8088         (add_minsym): Update.
8089         * linux-fork.c (info_checkpoints_command): Update.
8090         * linux-nat.c (get_signo): Update.
8091         * linux-thread-db.c (inferior_has_bug): Update.
8092         * m32c-tdep.c (m32c_return_value): Update.
8093         (m32c_m16c_address_to_pointer): Update.
8094         (m32c_m16c_pointer_to_address): Update.
8095         * m32r-tdep.c (m32r_frame_this_id): Update.
8096         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8097         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8098         * maint.c (maintenance_translate_address): Update.
8099         * minsyms.c (add_minsym_to_hash_table): Update.
8100         (add_minsym_to_demangled_hash_table): Update.
8101         (msymbol_objfile): Update.
8102         (lookup_minimal_symbol): Update.
8103         (iterate_over_minimal_symbols): Update.
8104         (lookup_minimal_symbol_text): Update.
8105         (lookup_minimal_symbol_by_pc_name): Update.
8106         (lookup_minimal_symbol_solib_trampoline): Update.
8107         (lookup_minimal_symbol_by_pc_section_1): Update.
8108         (lookup_minimal_symbol_and_objfile): Update.
8109         (prim_record_minimal_symbol_full): Update.
8110         (compare_minimal_symbols): Update.
8111         (compact_minimal_symbols): Update.
8112         (build_minimal_symbol_hash_tables): Update.
8113         (install_minimal_symbols): Update.
8114         (terminate_minimal_symbol_table): Update.
8115         (find_solib_trampoline_target): Update.
8116         (minimal_symbol_upper_bound): Update.
8117         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8118         * mips-tdep.c (mips_stub_frame_sniffer): Update.
8119         (mips_skip_pic_trampoline_code): Update.
8120         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8121         * objc-lang.c (selectors_info): Update.
8122         (classes_info): Update.
8123         (find_methods): Update.
8124         (find_imps): Update.
8125         (find_objc_msgsend): Update.
8126         * objfiles.c (objfile_relocate1): Update.
8127         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8128         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8129         * p-valprint.c (pascal_val_print): Update.
8130         * parse.c (write_exp_msymbol): Update.
8131         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8132         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8133         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8134         * printcmd.c (build_address_symbolic): Update.
8135         (sym_info): Update.
8136         (address_info): Update.
8137         * proc-service.c (ps_pglobal_lookup): Update.
8138         * psymtab.c (find_pc_sect_psymtab_closer): Update.
8139         (find_pc_sect_psymtab): Update.
8140         * python/py-framefilter.c (py_print_frame): Update.
8141         * ravenscar-thread.c (get_running_thread_id): Update.
8142         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8143         Update.
8144         * remote.c (remote_check_symbols): Update.
8145         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8146         (rs6000_skip_trampoline_code): Update.
8147         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8148         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8149         * solib-dsbt.c (lm_base): Update.
8150         * solib-frv.c (lm_base): Update.
8151         (main_got): Update.
8152         * solib-irix.c (locate_base): Update.
8153         * solib-som.c (som_solib_create_inferior_hook): Update.
8154         (som_solib_desire_dynamic_linker_symbols): Update.
8155         (link_map_start): Update.
8156         * solib-spu.c (spu_enable_break): Update.
8157         (ocl_enable_break): Update.
8158         * solib-svr4.c (elf_locate_base): Update.
8159         (enable_break): Update.
8160         * spu-tdep.c (spu_get_overlay_table): Update.
8161         (spu_catch_start): Update.
8162         (flush_ea_cache): Update.
8163         * stabsread.c (define_symbol): Update.
8164         (scan_file_globals): Update.
8165         * stack.c (find_frame_funname): Update.
8166         (frame_info): Update.
8167         * symfile.c (simple_read_overlay_table): Update.
8168         (simple_overlay_update): Update.
8169         * symmisc.c (dump_msymbols): Update.
8170         * symtab.c (fixup_section): Update.
8171         (find_pc_sect_line): Update.
8172         (skip_prologue_sal): Update.
8173         (search_symbols): Update.
8174         (print_msymbol_info): Update.
8175         (rbreak_command): Update.
8176         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8177         (completion_list_objc_symbol): Update.
8178         (default_make_symbol_completion_list_break_on): Update.
8179         * tracepoint.c (scope_info): Update.
8180         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8181         (tui_get_begin_asm_address): Update.
8182         * valops.c (find_function_in_inferior): Update.
8183         * value.c (value_static_field): Update.
8184         (value_fn_field): Update.
8185
8186 2014-02-26  Tom Tromey  <tromey@redhat.com>
8187
8188         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8189         bound minimal symbols.  Move code that knows about minsym
8190         table layout...
8191         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
8192         function.
8193         * minsyms.h (minimal_symbol_upper_bound): Declare.
8194         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8195         minimal_symbol_upper_bound.
8196
8197 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8198
8199         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8200         Use the type's name if its basic type does not have a tag.
8201
8202 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8203
8204         * dwarf2read.c (read_subrange_type): Add comment.
8205
8206 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8207
8208         * dwarf2read.c (update_enumeration_type_from_children): New
8209         function, mostly extracted from process_structure_scope.
8210         (read_enumeration_type): Call update_enumeration_type_from_children.
8211         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8212         and flag_flag_enum fields.
8213
8214 2014-02-26  Pedro Alves  <palves@redhat.com>
8215
8216         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8217         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8218         to_xfer_partial method.
8219
8220 2014-02-26  Pedro Alves  <palves@redhat.com>
8221
8222         * target.c (complete_target_initialization): Don't install
8223         default_xfer_partial as to_xfer_partial hook.
8224         (nomemory): Delete.
8225         (update_current_target): Don't INHERIT nor de_fault
8226         deprecated_xfer_memory.  Delete de_fault macro.
8227         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8228         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8229         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8230         field.
8231
8232 2014-02-26  Pedro Alves  <palves@redhat.com>
8233
8234         * go32-nat.c (my_write_child): New function.
8235         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8236         (go32_xfer_partial): New function.
8237         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8238         Instead install a to_xfer_partial hook.
8239
8240 2014-02-26  Pedro Alves  <palves@redhat.com>
8241
8242         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8243         to_xfer_partial helper.  Rewrite.
8244         (procfs_xfer_partial): New function.
8245         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8246         Install a to_xfer_partial hook.
8247
8248 2014-02-26  Pedro Alves  <palves@redhat.com>
8249
8250         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8251         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8252         (m32r_xfer_partial): New function.
8253         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8254         Install a to_xfer_partial hook.
8255
8256 2014-02-26  Pedro Alves  <palves@redhat.com>
8257
8258         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8259         helper.
8260         (mips_xfer_partial): New function.
8261         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8262         hook.  Install a to_xfer_partial hook.
8263
8264 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
8265
8266         * gdbtypes.h (create_array_type_with_stride): Add declaration.
8267         * gdbtypes.c (create_array_type_with_stride): New function,
8268         renaming create_array_type, but with an added parameter
8269         called "bit_stride".
8270         (create_array_type): Re-implement using
8271         create_array_type_with_stride.
8272         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8273         and DW_AT_bit_stride attributes.
8274
8275 2014-02-26  Pedro Alves  <palves@redhat.com>
8276
8277         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8278         task-specific breakpoints.
8279
8280 2014-02-25  Pedro Alves  <palves@redhat.com>
8281
8282         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8283         handling of object == TARGET_OBJECT_UNWIND_TABLE.
8284
8285 2014-02-25  Stan Shebs  <stan@codesourcery.com>
8286
8287         * defs.h: Annotate comments for Doxygen.
8288
8289 2014-02-25  Tom Tromey  <tromey@redhat.com>
8290
8291         * target.h (target_ignore): Don't declare.
8292         * target.c (target_ignore): Remove.
8293
8294 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
8295
8296         PR gdb/16626
8297         * auto-load.c (auto_load_objfile_script_1): Change filename to
8298         debugfile.
8299
8300 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
8301
8302         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8303         documentation.  Adjust prototype to match the target_ops
8304         to_xfer_partial method.  Adjust implementation accordingly.
8305
8306 2014-02-25  Hui Zhu  <hui@codesourcery.com>
8307
8308         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8309         to_traceframe_info.
8310
8311 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
8312
8313         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8314         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8315         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8316         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8317         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8318         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8319         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8320         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8321         New constants.
8322         (rl78_register_type): Use a data pointer type for SP and
8323         new pseudo registers mentioned above.  Use a 16 bit integer
8324         type for all other register pairs.
8325         (rl78_register_name, rl78_g10_register_name): Update for
8326         new pseudo registers.
8327         (rl78_pseudo_register_read): Likewise.
8328         (rl78_pseudo_register_write): Likewise.
8329         (rl78_dwarf_reg_to_regnum): Return register numbers representing
8330         to the newly added pseudo registers.
8331
8332 2014-02-24  Doug Evans  <dje@google.com>
8333
8334         * value.c (record_latest_value): Fix comment.
8335         * printcmd.c (print_command_1): Remove code to handle -1 return from
8336         record_latest_value.
8337
8338 2014-02-24  Pedro Alves  <palves@redhat.com>
8339
8340         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8341         deprecated_xfer_memory hook.
8342         (procfs_xfer_partial): Call procfs_xfer_memory instead
8343         of the deprecated_xfer_memory target hook.
8344         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8345         helper.
8346
8347 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
8348
8349         * windows-nat.c (windows_xfer_shared_libraries): Return
8350         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8351         requested object is TARGET_OBJECT_LIBRARIES.
8352
8353 2014-02-24  Yao Qi  <yao@codesourcery.com>
8354
8355         * target.h (enum target_xfer_status)
8356         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8357         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8358         explicitly.  New.
8359         * corefile.c (memory_error_message): User updated.
8360         * exec.c (section_table_read_available_memory): Likewise.
8361         * record-btrace.c (record_btrace_xfer_partial): Likewise.
8362         * target.c (target_xfer_status_to_string): Likewise.
8363         (raw_memory_xfer_partial): Likewise.
8364         (memory_xfer_partial_1, target_xfer_partial): Likewise.
8365         * valops.c (read_value_memory): Likewise.
8366         * exec.h: Update comments.
8367
8368 2014-02-24  Yao Qi  <yao@codesourcery.com>
8369
8370         * target.c (target_xfer_status_to_string): Rename argument err
8371         to status.
8372         * target.h (target_xfer_status_to_string): Update declaration.
8373         Replace target_xfer_error_to_string with
8374         target_xfer_status_to_string in comment.
8375
8376 2014-02-24  Yao Qi  <yao@codesourcery.com>
8377
8378         * mips-linux-nat.c (super_close): Update its type.
8379         (mips_linux_close): Pass 'self' to super_close.
8380
8381 2014-02-24  Yao Qi  <yao@codesourcery.com>
8382
8383         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8384         * corefile.c (read_memory): Adjusted.
8385         * target.c (target_write_with_progress): Adjusted.
8386
8387 2014-02-23  Yao Qi  <yao@codesourcery.com>
8388
8389         Revert two patches:
8390
8391         2013-10-25  Yao Qi  <yao@codesourcery.com>
8392
8393         * remote.c (remote_traceframe_info): Return early if
8394         traceframe is not selected.
8395
8396         2013-07-19  Yao Qi  <yao@codesourcery.com>
8397
8398         * target.c (update_current_target): Change the default action
8399         of 'to_traceframe_info' from tcomplain to return_zero.
8400         * target.h (struct target_ops) <to_traceframe_info>: Add more
8401         comments.
8402
8403 2014-02-23  Yao Qi  <yao@codesourcery.com>
8404
8405         * valops.c (read_value_memory): Rewrite it.  Call
8406         target_xfer_partial in a loop.
8407         * exec.h (section_table_available_memory): Remove declaration.
8408         Move comments to ...
8409         * exec.c (section_table_available_memory): ... here.  Make it
8410         static.
8411
8412 2014-02-23  Yao Qi  <yao@codesourcery.com>
8413
8414         * exec.c (section_table_read_available_memory): New function.
8415         * exec.h (section_table_read_available_memory): Declare.
8416         * ctf.c (ctf_xfer_partial): Call
8417         section_table_read_available_memory.
8418         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8419
8420 2014-02-23  Yao Qi  <yao@codesourcery.com>
8421
8422         * ctf.c (ctf_xfer_partial): Move code to ...
8423         * exec.c (exec_read_partial_read_only): ... it.  New function.
8424         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8425         * tracefile.c: Include "exec.h".
8426         * exec.h (exec_read_partial_read_only): Declare.
8427
8428 2014-02-23  Yao Qi  <yao@codesourcery.com>
8429
8430         * tracefile-tfile.c (tfile_has_all_memory): Remove.
8431         (tfile_has_memory): Remove.
8432         (init_tfile_ops): Don't set fields to_has_all_memory and
8433         to_has_memory of tfile_ops.
8434         * tracefile.c (tracefile_has_all_memory): New function.
8435         (tracefile_has_memory): New function.
8436         (init_tracefile_ops): Initialize fields to_has_all_memory and
8437         to_has_memory of 'ops'.
8438
8439 2014-02-23  Yao Qi  <yao@codesourcery.com>
8440
8441         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8442         (ctf_thread_alive, ctf_get_trace_status): Remove.
8443         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
8444         init_tracefile_ops.
8445         * tracefile-tfile.c (tfile_get_trace_status): Remove.
8446         (tfile_has_stack, tfile_has_registers): Remove.
8447         (tfile_thread_alive): Remove.
8448         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
8449         init_tracefile_ops.
8450         * tracefile.c (tracefile_has_stack): New function.
8451         (tracefile_has_registers): New function.
8452         (tracefile_thread_alive): New function.
8453         (tracefile_get_trace_status): New function.
8454         (init_tracefile_ops): New function.
8455         * tracefile.h (init_tracefile_ops): Declare.
8456
8457 2014-02-23  Yao Qi  <yao@codesourcery.com>
8458
8459         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8460         (O_LARGEFILE): Likewise.
8461         (tfile_ops): Likewise.
8462         (TRACE_HEADER_SIZE): Likewise.
8463         (trace_fd, trace_frames_offset, cur_offset): Likewise.
8464         (cur_data_size): Likewise.
8465         (tfile_read, tfile_open, tfile_interp_line): Likewise.
8466         (tfile_close, tfile_files_info): Likewise.
8467         (tfile_get_trace_status): Likewise.
8468         (tfile_get_tracepoint_status): Likewise.
8469         (tfile_get_traceframe_address): Likewise.
8470         (tfile_trace_find, match_blocktype): Likewise.
8471         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8472         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8473         (tfile_get_trace_state_variable_value): Likewise.
8474         (tfile_has_all_memory, tfile_has_memory): Likewise.
8475         (tfile_has_stack, tfile_has_registers): Likewise.
8476         (tfile_thread_alive, build_traceframe_info): Likewise.
8477         (tfile_traceframe_info, init_tfile_ops): Likewise.
8478         (_initialize_tracepoint): Don't call init_tfile_ops
8479         and add_target_with_completer.
8480         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8481         exec.h, completer.h and filenames.h.
8482         (_initialize_tracefile_tfile): New function.
8483
8484 2014-02-23  Yao Qi  <yao@codesourcery.com>
8485
8486         * Makefile.in (REMOTE_OBS): Append tracefile.o and
8487         tracefile-tfile.o.
8488         (HFILES_NO_SRCDIR): Add tracefile.h.
8489         * ctf.c: Include "tracefile.h".
8490         * tracefile.h: New file.
8491         * tracefile.c: New file
8492         * tracefile-tfile.c: New file.
8493         * tracepoint.c: Include "tracefile.h".
8494         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8495         (stop_reason_names): Add const.
8496         (trace_file_writer_xfree): Move it to tracefile.c.
8497         (trace_save, trace_save_command, trace_save_tfile): Likewise.
8498         (trace_save_ctf): Likewise.
8499         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8500         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8501         (tfile_write_header, tfile_write_regblock_type): Likewise.
8502         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8503         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8504         (tfile_write_raw_data, tfile_end): Likewise.
8505         (tfile_trace_file_writer_new): Likewise.
8506         (free_uploaded_tp): Make it extern.
8507         (free_uploaded_tsv): Make it extern.
8508         (_initialize_tracepoint): Move code to register command 'tsave'
8509         to tracefile.c.
8510         * tracepoint.h (stop_reason_names): Declare.
8511         (struct trace_frame_write_ops): Move it to tracefile.h.
8512         (struct trace_file_write_ops): Likewise.
8513         (struct trace_file_writer): Likewise.
8514         (free_uploaded_tsvs, free_uploaded_tps): Declare.
8515
8516 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8517
8518         PR gdb/16594
8519         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8520         process name.
8521         (get_cores_used_by_process): New parameter num_cores, use it.
8522         (linux_xfer_osdata_processes): Pass num_cores to it.
8523         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8524         process name.
8525
8526 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
8527
8528         * target.c (memory_xfer_partial): Fix length arg in call to
8529         breakpoint_xfer_memory.
8530
8531 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
8532
8533         PR tdep/16397
8534         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8535         number comes after the + or - signs.  Adjust length of register
8536         name to be extracted.
8537
8538 2014-02-20  Tom Tromey  <tromey@redhat.com>
8539
8540         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8541         (ada_varobj_ops): Mark "extern".
8542
8543 2014-02-20  Tom Tromey  <tromey@redhat.com>
8544
8545         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8546
8547 2014-02-20  Doug Evans  <xdje42@gmail.com>
8548
8549         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8550         All callers updated.
8551         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8552         All callers updated.
8553         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8554         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8555
8556 2014-02-20  lin zuojian  <manjian2006@gmail.com>
8557             Joel Brobecker  <brobecker@adacore.com>
8558             Doug Evans  <xdje42@gmail.com>
8559
8560         PR symtab/16581
8561         * dwarf2read.c (struct die_info): New member in_process.
8562         (reset_die_in_process): New function.
8563         (process_die): Set it at the start, reset when returning.
8564         (inherit_abstract_dies): Only call process_die if origin_child_die
8565         not already being processed.
8566
8567 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8568
8569         * windows-nat.c (handle_unload_dll): Add function documentation.
8570         (do_initial_windows_stuff): Add comment explaining why we wait
8571         until after inferior initialization has finished before
8572         processing all DLLs.
8573
8574 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8575
8576         * windows-nat.c (get_module_name): Delete.
8577         (windows_get_exec_module_filename): New function, mostly
8578         inspired from get_module_name.
8579         (windows_pid_to_exec_file): Replace call to get_module_name
8580         by call to windows_get_exec_module_filename.
8581
8582 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8583
8584         * windows-nat.c (handle_load_dll): Rewrite this function's
8585         introductory comment.  Remove code using get_module_name
8586         to get the DLL's name.
8587
8588 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8589
8590         * windows-nat.c (get_windows_debug_event): Ignore
8591         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8592         if windows_initialization_done == 0.
8593         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8594         Adjust implementation to always load all DLLs.
8595         (do_initial_windows_stuff): Replace call to
8596         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8597
8598 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8599
8600         * windows-nat.c (_initialize_windows_nat): Deprecate the
8601         "dll-symbols" command.  Turn the "add-shared-symbol-files"
8602         and "assf" aliases into commands, and deprecate them as well.
8603         * NEWS: Add entry explaining that "dll-symbols" and its two
8604         aliases are now deprecated.
8605
8606 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8607
8608         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8609         new-line in debug string.  Remove trailing spaces.
8610
8611 2014-02-19  Stan Shebs  <stan@codesourcery.com>
8612
8613         * darwin-nat.c (darwin_xfer_partial): Fix return type.
8614
8615 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
8616
8617         * NEWS: Add entry for the new feature
8618         * python/py-value.c (valpy_binop): Call value_x_binop for struct
8619         and class values.
8620
8621 2014-02-19  Stan Shebs  <stan@codesourcery.com>
8622
8623         * MAINTAINERS: List Yao Qi as nios2 maintainer.
8624
8625 2014-02-19  Pedro Alves  <palves@redhat.com>
8626
8627         * common/ptid.h (struct ptid): Mention that process_stratum
8628         targets should prefer ptid.lwp.
8629
8630 2014-02-19  Pedro Alves  <palves@redhat.com>
8631
8632         * remote.c (remote_thread_alive, write_ptid, read_ptid)
8633         (read_ptid, remote_newthread_step, remote_threads_extra_info)
8634         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8635         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8636         store remote thread ids rather than ptid.tid.
8637         (_initialize_remote): Adjust.
8638
8639 2014-02-19  Tom Tromey  <tromey@redhat.com>
8640
8641         * target.c (target_get_unwinder): Rewrite.
8642         (target_get_tailcall_unwinder): Rewrite.
8643         * record-btrace.c (record_btrace_to_get_unwinder): New function.
8644         (record_btrace_to_get_tailcall_unwinder): New function.
8645         (init_record_btrace_ops): Update.
8646         * target.h (struct target_ops) <to_get_unwinder,
8647         to_get_tailcall_unwinder>: Now function pointers.  Use
8648         TARGET_DEFAULT_RETURN.
8649
8650 2014-02-19  Tom Tromey  <tromey@redhat.com>
8651
8652         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8653         argument.
8654         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8655
8656 2014-02-19  Tom Tromey  <tromey@redhat.com>
8657
8658         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8659         directly.
8660         * target-delegates.c: Rebuild.
8661         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8662         TARGET_DEFAULT_FUNC.
8663         * target.c (default_target_decr_pc_after_break): Rename from
8664         forward_target_decr_pc_after_break.  Simplify.
8665         (target_decr_pc_after_break): Rely on delegation.
8666
8667 2014-02-19  Tom Tromey  <tromey@redhat.com>
8668
8669         * target.c (update_current_target): Do not INHERIT to_doc or
8670         to_magic.  Do not de_fault to_open or to_close.
8671
8672 2014-02-19  Tom Tromey  <tromey@redhat.com>
8673
8674         * gcore.h (objfile_find_memory_regions): Declare.
8675         * gcore.c (objfile_find_memory_regions): No longer static.  Add
8676         "self" argument.
8677         (_initialize_gcore): Don't call exec_set_find_memory_regions.
8678         * exec.c: Include gcore.h.
8679         (exec_set_find_memory_regions): Remove.
8680         (exec_find_memory_regions): Remove.
8681         (exec_do_find_memory_regions): Remove.
8682         (init_exec_ops): Update.
8683         * defs.h (exec_set_find_memory_regions): Remove.
8684
8685 2014-02-19  Tom Tromey  <tromey@redhat.com>
8686
8687         * target-delegates.c: Rebuild.
8688         * target.h (struct target_ops) <to_extra_thread_info,
8689         to_thread_name, to_pid_to_exec_file, to_get_section_table,
8690         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8691         not 0, in TARGET_DEFAULT_RETURN.
8692
8693 2014-02-19  Tom Tromey  <tromey@redhat.com>
8694
8695         * target.c (complete_target_initialization): Remove casts.  Use
8696         return_zero_has_execution.
8697         (return_zero): Add "ignore" argument.
8698         (return_zero_has_execution): New function.
8699         (init_dummy_target): Remove casts.  Use
8700         return_zero_has_execution.
8701
8702 2014-02-19  Tom Tromey  <tromey@redhat.com>
8703
8704         * target.c (update_current_target): Update comments.  Do not
8705         INHERIT to_stratum.
8706
8707 2014-02-19  Tom Tromey  <tromey@redhat.com>
8708
8709         * arm-linux-nat.c (arm_linux_read_description): Delegate when
8710         needed.
8711         * corelow.c (core_read_description): Delegate when needed.
8712         * remote.c (remote_read_description): Delegate when needed.
8713         * target-delegates.c: Rebuild.
8714         * target.c (target_read_description): Rewrite.
8715         * target.h (struct target_ops) <to_read_description>: Update
8716         comment.  Use TARGET_DEFAULT_RETURN.
8717
8718 2014-02-19  Tom Tromey  <tromey@redhat.com>
8719
8720         * target-delegates.c: Rebuild.
8721         * target.c (update_current_target): Don't inherit or default
8722         to_can_run.
8723         (find_default_run_target): Check against delegate_can_run.
8724         * target.h (struct target_ops) <to_can_run>: Use
8725         TARGET_DEFAULT_RETURN.
8726
8727 2014-02-19  Tom Tromey  <tromey@redhat.com>
8728
8729         * target-delegates.c: Rebuild.
8730         * target.c (target_disconnect): Unconditionally delegate.
8731         * target.h (struct target_ops) <to_disconnect>: Use
8732         TARGET_DEFAULT_NORETURN.
8733
8734 2014-02-19  Tom Tromey  <tromey@redhat.com>
8735
8736         * record.c (record_stop): Unconditionally delegate.
8737         * target-delegates.c: Rebuild.
8738         * target.c (target_stop_recording): Unconditionally delegate.
8739         * target.h (struct target_ops) <to_stop_recording>: Use
8740         TARGET_DEFAULT_IGNORE.
8741
8742 2014-02-19  Tom Tromey  <tromey@redhat.com>
8743
8744         * target-delegates.c: Rebuild.
8745         * target.c (target_enable_btrace): Unconditionally delegate.
8746         * target.h (struct target_ops) <to_enable_btrace>: Use
8747         TARGET_DEFAULT_NORETURN.
8748
8749 2014-02-19  Tom Tromey  <tromey@redhat.com>
8750
8751         * target-delegates.c: Rebuild.
8752         * target.c (target_read_btrace): Unconditionally delegate.
8753         * target.h (struct target_ops) <to_read_btrace>: Use
8754         TARGET_DEFAULT_NORETURN.
8755
8756 2014-02-19  Tom Tromey  <tromey@redhat.com>
8757
8758         * target-delegates.c: Rebuild.
8759         * target.c (target_teardown_btrace): Unconditionally delegate.
8760         * target.h (struct target_ops) <to_teardown_btrace>: Use
8761         TARGET_DEFAULT_NORETURN.
8762
8763 2014-02-19  Tom Tromey  <tromey@redhat.com>
8764
8765         * target-delegates.c: Rebuild.
8766         * target.c (target_disable_btrace): Unconditionally delegate.
8767         * target.h (struct target_ops) <to_disable_btrace>: Use
8768         TARGET_DEFAULT_NORETURN.
8769
8770 2014-02-19  Tom Tromey  <tromey@redhat.com>
8771
8772         * target-delegates.c: Rebuild.
8773         * target.c (default_search_memory): New function.
8774         (simple_search_memory): Update comment.
8775         (target_search_memory): Unconditionally delegate.
8776         * target.h (struct target_ops) <to_search_memory>: Use
8777         TARGET_DEFAULT_FUNC.
8778
8779 2014-02-19  Tom Tromey  <tromey@redhat.com>
8780
8781         * auxv.c (default_auxv_parse): No longer static.
8782         (target_auxv_parse): Unconditionally delegate.
8783         * auxv.h (default_auxv_parse): Declare.
8784         * target-delegates.c: Rebuild.
8785         * target.c: Include auxv.h.
8786         * target.h (struct target_ops) <to_auxv_parse>: Use
8787         TARGET_DEFAULT_FUNC.
8788
8789 2014-02-19  Tom Tromey  <tromey@redhat.com>
8790
8791         * target-delegates.c: Rebuild.
8792         * target.c (target_memory_map): Unconditionally delegate.
8793         * target.h (struct target_ops) <to_memory_map>: Use
8794         TARGET_DEFAULT_RETURN.
8795
8796 2014-02-19  Tom Tromey  <tromey@redhat.com>
8797
8798         * target-delegates.c: Rebuild.
8799         * target.c (target_thread_alive): Unconditionally delegate.
8800         * target.h (struct target_ops) <to_thread_alive>: Use
8801         TARGET_DEFAULT_RETURN.
8802
8803 2014-02-19  Tom Tromey  <tromey@redhat.com>
8804
8805         * target-delegates.c: Rebuild.
8806         * target.c (target_save_record): Unconditionally delegate.
8807         * target.h (struct target_ops) <to_save_record>: Use
8808         TARGET_DEFAULT_NORETURN.
8809
8810 2014-02-19  Tom Tromey  <tromey@redhat.com>
8811
8812         * target-delegates.c: Rebuild.
8813         * target.c (target_delete_record): Unconditionally delegate.
8814         * target.h (struct target_ops) <to_delete_record>: Use
8815         TARGET_DEFAULT_NORETURN.
8816
8817 2014-02-19  Tom Tromey  <tromey@redhat.com>
8818
8819         * target-delegates.c: Rebuild.
8820         * target.c (target_record_is_replaying): Unconditionally
8821         delegate.
8822         * target.h (struct target_ops) <to_record_is_replaying>: Use
8823         TARGET_DEFAULT_RETURN.
8824
8825 2014-02-19  Tom Tromey  <tromey@redhat.com>
8826
8827         * target-delegates.c: Rebuild.
8828         * target.c (target_goto_record_begin): Unconditionally delegate.
8829         * target.h (struct target_ops) <to_goto_record_begin>: Use
8830         TARGET_DEFAULT_NORETURN.
8831
8832 2014-02-19  Tom Tromey  <tromey@redhat.com>
8833
8834         * target-delegates.c: Rebuild.
8835         * target.c (target_goto_record_end): Unconditionally delegate.
8836         * target.h (struct target_ops) <to_goto_record_end>: Use
8837         TARGET_DEFAULT_NORETURN.
8838
8839 2014-02-19  Tom Tromey  <tromey@redhat.com>
8840
8841         * target-delegates.c: Rebuild.
8842         * target.c (target_goto_record): Unconditionally delegate.
8843         * target.h (struct target_ops) <to_goto_record>: Use
8844         TARGET_DEFAULT_NORETURN.
8845
8846 2014-02-19  Tom Tromey  <tromey@redhat.com>
8847
8848         * target-delegates.c: Rebuild.
8849         * target.c (target_insn_history): Unconditionally delegate.
8850         * target.h (struct target_ops) <to_insn_history>: Use
8851         TARGET_DEFAULT_NORETURN.
8852
8853 2014-02-19  Tom Tromey  <tromey@redhat.com>
8854
8855         * target-delegates.c: Rebuild.
8856         * target.c (target_insn_history_from): Unconditionally delegate.
8857         * target.h (struct target_ops) <to_insn_history_from>: Use
8858         TARGET_DEFAULT_NORETURN.
8859
8860 2014-02-19  Tom Tromey  <tromey@redhat.com>
8861
8862         * target-delegates.c: Rebuild.
8863         * target.c (target_insn_history_range): Unconditionally delegate.
8864         * target.h (struct target_ops) <to_insn_history_range>: Use
8865         TARGET_DEFAULT_NORETURN.
8866
8867 2014-02-19  Tom Tromey  <tromey@redhat.com>
8868
8869         * target-delegates.c: Rebuild.
8870         * target.c (target_call_history): Unconditionally delegate.
8871         * target.h (struct target_ops) <to_call_history>: Use
8872         TARGET_DEFAULT_NORETURN.
8873
8874 2014-02-19  Tom Tromey  <tromey@redhat.com>
8875
8876         * target-delegates.c: Rebuild.
8877         * target.c (target_call_history_from): Unconditionally delegate.
8878         * target.h (struct target_ops) <to_call_history_from>: Use
8879         TARGET_DEFAULT_NORETURN.
8880
8881 2014-02-19  Tom Tromey  <tromey@redhat.com>
8882
8883         * target-delegates.c: Rebuild.
8884         * target.c (target_call_history_range): Unconditionally delegate.
8885         * target.h (struct target_ops) <to_call_history_range>: Use
8886         TARGET_DEFAULT_NORETURN.
8887
8888 2014-02-19  Tom Tromey  <tromey@redhat.com>
8889
8890         * target-delegates.c: Rebuild.
8891         * target.c (target_verify_memory): Unconditionally delegate.
8892         * target.h (struct target_ops) <to_verify_memory>: Use
8893         TARGET_DEFAULT_NORETURN.
8894
8895 2014-02-19  Tom Tromey  <tromey@redhat.com>
8896
8897         * target-delegates.c: Rebuild.
8898         * target.c (target_core_of_thread): Unconditionally delegate.
8899         * target.h (struct target_ops) <to_core_of_thread>: Use
8900         TARGET_DEFAULT_RETURN.
8901
8902 2014-02-19  Tom Tromey  <tromey@redhat.com>
8903
8904         * target-delegates.c: Rebuild.
8905         * target.c (target_flash_done): Unconditionally delegate.
8906         * target.h (struct target_ops) <to_flash_done>: Use
8907         TARGET_DEFAULT_NORETURN.
8908
8909 2014-02-19  Tom Tromey  <tromey@redhat.com>
8910
8911         * target-delegates.c: Rebuild.
8912         * target.c (target_flash_erase): Unconditionally delegate.
8913         * target.h (struct target_ops) <to_flash_erase>: Use
8914         TARGET_DEFAULT_NORETURN.
8915
8916 2014-02-19  Tom Tromey  <tromey@redhat.com>
8917
8918         * target-delegates.c: Rebuild.
8919         * target.c (target_get_section_table): Unconditionally delegate.
8920         * target.h (struct target_ops) <to_get_section_table>: Use
8921         TARGET_DEFAULT_RETURN.
8922
8923 2014-02-19  Tom Tromey  <tromey@redhat.com>
8924
8925         * target-delegates.c: Rebuild.
8926         * target.c (target_pid_to_str): Unconditionally delegate.
8927         (init_dummy_target): Don't initialize to_pid_to_str.
8928         (default_pid_to_str): Rename from dummy_pid_to_str.
8929         * target.h (struct target_ops) <to_pid_to_str>: Use
8930         TARGET_DEFAULT_FUNC.
8931
8932 2014-02-19  Tom Tromey  <tromey@redhat.com>
8933
8934         * target-delegates.c: Rebuild.
8935         * target.c (target_find_new_threads): Unconditionally delegate.
8936         * target.h (struct target_ops) <to_find_new_threads>: Use
8937         TARGET_DEFAULT_RETURN.
8938
8939 2014-02-19  Tom Tromey  <tromey@redhat.com>
8940
8941         * target-delegates.c: Rebuild.
8942         * target.c (target_program_signals): Unconditionally delegate.
8943         * target.h (struct target_ops) <to_program_signals>: Use
8944         TARGET_DEFAULT_IGNORE.
8945
8946 2014-02-19  Tom Tromey  <tromey@redhat.com>
8947
8948         * target-delegates.c: Rebuild.
8949         * target.c (target_pass_signals): Unconditionally delegate.
8950         * target.h (struct target_ops) <to_pass_signals>: Use
8951         TARGET_DEFAULT_IGNORE.
8952
8953 2014-02-19  Tom Tromey  <tromey@redhat.com>
8954
8955         * target-delegates.c: Rebuild.
8956         * target.c (default_mourn_inferior): New function.
8957         (target_mourn_inferior): Unconditionally delegate.
8958         * target.h (struct target_ops) <to_mourn_inferior>: Use
8959         TARGET_DEFAULT_FUNC.
8960
8961 2014-02-19  Tom Tromey  <tromey@redhat.com>
8962
8963         * target-delegates.c: Rebuild.
8964         * target.c (default_follow_fork): New function.
8965         (target_follow_fork): Unconditionally delegate.
8966         * target.h (struct target_ops) <to_follow_fork>: Use
8967         TARGET_DEFAULT_FUNC.
8968
8969 2014-02-19  Tom Tromey  <tromey@redhat.com>
8970
8971         * target-delegates.c: Rebuild.
8972         * target.c (target_kill): Unconditionally delegate.
8973         * target.h (struct target_ops) <to_kill>: Use
8974         TARGET_DEFAULT_NORETURN.
8975
8976 2014-02-19  Tom Tromey  <tromey@redhat.com>
8977
8978         * target-delegates.c: Rebuild.
8979         * target.c (target_masked_watch_num_registers): Unconditionally
8980         delegate.
8981         * target.h (struct target_ops) <to_masked_watch_num_registers>:
8982         Use TARGET_DEFAULT_RETURN.
8983
8984 2014-02-19  Tom Tromey  <tromey@redhat.com>
8985
8986         * target-delegates.c: Rebuild.
8987         * target.c (target_remove_mask_watchpoint): Unconditionally
8988         delegate.
8989         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8990         TARGET_DEFAULT_RETURN.
8991
8992 2014-02-19  Tom Tromey  <tromey@redhat.com>
8993
8994         * target-delegates.c: Rebuild.
8995         * target.c (target_insert_mask_watchpoint): Unconditionally
8996         delegate.
8997         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8998         TARGET_DEFAULT_RETURN.
8999
9000 2014-02-19  Tom Tromey  <tromey@redhat.com>
9001
9002         * target-delegates.c: Rebuild.
9003         * target.c (target_ranged_break_num_registers): Unconditionally
9004         delegate.
9005         * target.h (struct target_ops) <to_ranged_break_num_registers>:
9006         Use TARGET_DEFAULT_RETURN.
9007
9008 2014-02-19  Tom Tromey  <tromey@redhat.com>
9009
9010         * target-delegates.c: Rebuild.
9011         * target.c (target_fetch_registers): Unconditionally delegate.
9012         * target.h (struct target_ops) <to_fetch_registers>: Use
9013         TARGET_DEFAULT_NORETURN.
9014
9015 2014-02-19  Tom Tromey  <tromey@redhat.com>
9016
9017         * target-delegates.c: Rebuild.
9018         * target.c (update_current_target): Don't inherit or default
9019         to_stop.
9020         * target.h (struct target_ops) <to_stop>: Use
9021         TARGET_DEFAULT_IGNORE.
9022
9023 2014-02-19  Tom Tromey  <tromey@redhat.com>
9024
9025         * target-delegates.c: Rebuild.
9026         * target.c (update_current_target): Don't inherit or default
9027         to_can_run_breakpoint_commands.
9028         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9029         Use TARGET_DEFAULT_RETURN.
9030
9031 2014-02-19  Tom Tromey  <tromey@redhat.com>
9032
9033         * target-delegates.c: Rebuild.
9034         * target.c (update_current_target): Don't inherit or default
9035         to_supports_evaluation_of_breakpoint_conditions.
9036         * target.h (struct target_ops)
9037         <to_supports_evaluation_of_breakpoint_conditions>: Use
9038         TARGET_DEFAULT_RETURN.
9039
9040 2014-02-19  Tom Tromey  <tromey@redhat.com>
9041
9042         * target-delegates.c: Rebuild.
9043         * target.c (update_current_target): Don't inherit or default
9044         to_augmented_libraries_svr4_read.
9045         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9046         Use TARGET_DEFAULT_RETURN.
9047
9048 2014-02-19  Tom Tromey  <tromey@redhat.com>
9049
9050         * target-delegates.c: Rebuild.
9051         * target.c (update_current_target): Don't inherit or default
9052         to_can_use_agent.
9053         * target.h (struct target_ops) <to_can_use_agent>: Use
9054         TARGET_DEFAULT_RETURN.
9055
9056 2014-02-19  Tom Tromey  <tromey@redhat.com>
9057
9058         * target-delegates.c: Rebuild.
9059         * target.c (update_current_target): Don't inherit or default
9060         to_use_agent.
9061         * target.h (struct target_ops) <to_use_agent>: Use
9062         TARGET_DEFAULT_NORETURN.
9063
9064 2014-02-19  Tom Tromey  <tromey@redhat.com>
9065
9066         * target-delegates.c: Rebuild.
9067         * target.c (update_current_target): Don't inherit or default
9068         to_traceframe_info.
9069         (return_null): Remove.
9070         * target.h (struct target_ops) <to_traceframe_info>: Use
9071         TARGET_DEFAULT_RETURN.
9072
9073 2014-02-19  Tom Tromey  <tromey@redhat.com>
9074
9075         * target-delegates.c: Rebuild.
9076         * target.c (update_current_target): Don't inherit or default
9077         to_static_tracepoint_markers_by_strid.
9078         * target.h (struct target_ops)
9079         <to_static_tracepoint_markers_by_strid>: Use
9080         TARGET_DEFAULT_NORETURN.
9081
9082 2014-02-19  Tom Tromey  <tromey@redhat.com>
9083
9084         * target-delegates.c: Rebuild.
9085         * target.c (update_current_target): Don't inherit or default
9086         to_static_tracepoint_marker_at.
9087         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9088         Use TARGET_DEFAULT_RETURN.
9089
9090 2014-02-19  Tom Tromey  <tromey@redhat.com>
9091
9092         * target-delegates.c: Rebuild.
9093         * target.c (update_current_target): Don't inherit or default
9094         to_set_permissions.
9095         * target.h (struct target_ops) <to_set_permissions>: Use
9096         TARGET_DEFAULT_IGNORE.
9097
9098 2014-02-19  Tom Tromey  <tromey@redhat.com>
9099
9100         * target-delegates.c: Rebuild.
9101         * target.c (update_current_target): Don't inherit or default
9102         to_get_tib_address.
9103         * target.h (struct target_ops) <to_get_tib_address>: Use
9104         TARGET_DEFAULT_NORETURN.
9105
9106 2014-02-19  Tom Tromey  <tromey@redhat.com>
9107
9108         * target-delegates.c: Rebuild.
9109         * target.c (update_current_target): Don't inherit or default
9110         to_set_trace_notes.
9111         * target.h (struct target_ops) <to_set_trace_notes>: Use
9112         TARGET_DEFAULT_RETURN.
9113
9114 2014-02-19  Tom Tromey  <tromey@redhat.com>
9115
9116         * target-delegates.c: Rebuild.
9117         * target.c (update_current_target): Don't initialize
9118         to_set_trace_buffer_size.
9119         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9120         TARGET_DEFAULT_IGNORE.
9121
9122 2014-02-19  Tom Tromey  <tromey@redhat.com>
9123
9124         * target-delegates.c: Rebuild.
9125         * target.c (update_current_target): Don't inherit or default
9126         to_set_circular_trace_buffer.
9127         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9128         TARGET_DEFAULT_IGNORE.
9129
9130 2014-02-19  Tom Tromey  <tromey@redhat.com>
9131
9132         * target-delegates.c: Rebuild.
9133         * target.c (update_current_target): Don't inherit or default
9134         to_set_disconnected_tracing.
9135         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9136         TARGET_DEFAULT_IGNORE.
9137
9138 2014-02-19  Tom Tromey  <tromey@redhat.com>
9139
9140         * target-delegates.c: Rebuild.
9141         * target.c (update_current_target): Don't inherit or default
9142         to_get_min_fast_tracepoint_insn_len.
9143         (return_minus_one): Remove.
9144         * target.h (struct target_ops)
9145         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9146
9147 2014-02-19  Tom Tromey  <tromey@redhat.com>
9148
9149         * target-delegates.c: Rebuild.
9150         * target.c (update_current_target): Don't inherit or default
9151         to_get_raw_trace_data.
9152         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9153         TARGET_DEFAULT_NORETURN.
9154
9155 2014-02-19  Tom Tromey  <tromey@redhat.com>
9156
9157         * target-delegates.c: Rebuild.
9158         * target.c (update_current_target): Don't inherit or default
9159         to_upload_trace_state_variables.
9160         * target.h (struct target_ops) <to_upload_trace_state_variables>:
9161         Use TARGET_DEFAULT_RETURN.
9162
9163 2014-02-19  Tom Tromey  <tromey@redhat.com>
9164
9165         * target-delegates.c: Rebuild.
9166         * target.c (update_current_target): Don't inherit or default
9167         to_upload_tracepoints.
9168         * target.h (struct target_ops) <to_upload_tracepoints>: Use
9169         TARGET_DEFAULT_RETURN.
9170
9171 2014-02-19  Tom Tromey  <tromey@redhat.com>
9172
9173         * target-delegates.c: Rebuild.
9174         * target.c (update_current_target): Don't inherit or default
9175         to_save_trace_data.
9176         * target.h (struct target_ops) <to_save_trace_data>: Use
9177         TARGET_DEFAULT_NORETURN.
9178
9179 2014-02-19  Tom Tromey  <tromey@redhat.com>
9180
9181         * target-delegates.c: Rebuild.
9182         * target.c (update_current_target): Don't inherit or default
9183         to_get_trace_state_variable_value.
9184         * target.h (struct target_ops)
9185         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9186
9187 2014-02-19  Tom Tromey  <tromey@redhat.com>
9188
9189         * target-delegates.c: Rebuild.
9190         * target.c (update_current_target): Don't inherit or default
9191         to_trace_find.
9192         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9193
9194 2014-02-19  Tom Tromey  <tromey@redhat.com>
9195
9196         * target-delegates.c: Rebuild.
9197         * target.c (update_current_target): Don't inherit or default
9198         to_trace_stop.
9199         * target.h (struct target_ops) <to_trace_stop>: Use
9200         TARGET_DEFAULT_NORETURN.
9201
9202 2014-02-19  Tom Tromey  <tromey@redhat.com>
9203
9204         * target-delegates.c: Rebuild.
9205         * target.c (update_current_target): Don't inherit or default
9206         to_get_tracepoint_status.
9207         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9208         TARGET_DEFAULT_NORETURN.
9209
9210 2014-02-19  Tom Tromey  <tromey@redhat.com>
9211
9212         * target-delegates.c: Rebuild.
9213         * target.c (update_current_target): Don't inherit or default
9214         to_get_trace_status.
9215         * target.h (struct target_ops) <to_get_trace_status>: Use
9216         TARGET_DEFAULT_RETURN.
9217
9218 2014-02-19  Tom Tromey  <tromey@redhat.com>
9219
9220         * target-delegates.c: Rebuild.
9221         * target.c (update_current_target): Don't inherit or default
9222         to_trace_start.
9223         * target.h (struct target_ops) <to_trace_start>: Use
9224         TARGET_DEFAULT_NORETURN.
9225
9226 2014-02-19  Tom Tromey  <tromey@redhat.com>
9227
9228         * target-delegates.c: Rebuild.
9229         * target.c (update_current_target): Don't inherit or default
9230         to_trace_set_readonly_regions.
9231         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9232         Use TARGET_DEFAULT_NORETURN.
9233
9234 2014-02-19  Tom Tromey  <tromey@redhat.com>
9235
9236         * target-delegates.c: Rebuild.
9237         * target.c (update_current_target): Don't inherit or default
9238         to_disable_tracepoint.
9239         * target.h (struct target_ops) <to_disable_tracepoint>: Use
9240         TARGET_DEFAULT_NORETURN.
9241
9242 2014-02-19  Tom Tromey  <tromey@redhat.com>
9243
9244         * target-delegates.c: Rebuild.
9245         * target.c (update_current_target): Don't inherit or default
9246         to_enable_tracepoint.
9247         * target.h (struct target_ops) <to_enable_tracepoint>: Use
9248         TARGET_DEFAULT_NORETURN.
9249
9250 2014-02-19  Tom Tromey  <tromey@redhat.com>
9251
9252         * target-delegates.c: Rebuild.
9253         * target.c (update_current_target): Don't inherit or default
9254         to_download_trace_state_variable.
9255         * target.h (struct target_ops) <to_download_trace_state_variable>:
9256         Use TARGET_DEFAULT_NORETURN.
9257
9258 2014-02-19  Tom Tromey  <tromey@redhat.com>
9259
9260         * target-delegates.c: Rebuild.
9261         * target.c (update_current_target): Don't inherit or default
9262         to_can_download_tracepoint.
9263         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9264         TARGET_DEFAULT_RETURN.
9265
9266 2014-02-19  Tom Tromey  <tromey@redhat.com>
9267
9268         * target-delegates.c: Rebuild.
9269         * target.c (update_current_target): Don't inherit or default
9270         to_download_tracepoint.
9271         * target.h (struct target_ops) <to_download_tracepoint>: Use
9272         TARGET_DEFAULT_NORETURN.
9273
9274 2014-02-19  Tom Tromey  <tromey@redhat.com>
9275
9276         * target-delegates.c: Rebuild.
9277         * target.c (update_current_target): Don't inherit or default
9278         to_trace_init.
9279         * target.h (struct target_ops) <to_trace_init>: Use
9280         TARGET_DEFAULT_RETURN.
9281
9282 2014-02-19  Tom Tromey  <tromey@redhat.com>
9283
9284         * target-delegates.c: Rebuild.
9285         * target.c (update_current_target): Don't inherit or default
9286         to_supports_string_tracing.
9287         * target.h (struct target_ops) <to_supports_string_tracing>: Use
9288         TARGET_DEFAULT_RETURN.
9289
9290 2014-02-19  Tom Tromey  <tromey@redhat.com>
9291
9292         * target-delegates.c: Rebuild.
9293         * target.c (update_current_target): Don't inherit or default
9294         to_supports_enable_disable_tracepoint.
9295         * target.h (struct target_ops)
9296         <to_supports_enable_disable_tracepoint>: Use
9297         TARGET_DEFAULT_RETURN.
9298
9299 2014-02-19  Tom Tromey  <tromey@redhat.com>
9300
9301         * target-delegates.c: Rebuild.
9302         * target.c (update_current_target): Don't inherit or default
9303         to_supports_multi_process.
9304         * target.h (struct target_ops) <to_supports_multi_process>: Use
9305         TARGET_DEFAULT_RETURN.
9306
9307 2014-02-19  Tom Tromey  <tromey@redhat.com>
9308
9309         * target-delegates.c: Rebuild.
9310         * target.c (update_current_target): Don't inherit or default
9311         to_get_ada_task_ptid.
9312         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9313         TARGET_DEFAULT_FUNC.
9314
9315 2014-02-19  Tom Tromey  <tromey@redhat.com>
9316
9317         * target-delegates.c: Rebuild.
9318         * target.c (update_current_target): Don't inherit or default
9319         to_thread_architecture.
9320         * target.h (struct target_ops) <to_thread_architecture>: Use
9321         TARGET_DEFAULT_FUNC.
9322
9323 2014-02-19  Tom Tromey  <tromey@redhat.com>
9324
9325         * target-delegates.c: Rebuild.
9326         * target.c (update_current_target): Don't inherit or default
9327         to_execution_direction.
9328         * target.h (struct target_ops) <to_execution_direction>: Use
9329         TARGET_DEFAULT_FUNC.
9330
9331 2014-02-19  Tom Tromey  <tromey@redhat.com>
9332
9333         * target-delegates.c: Rebuild.
9334         * target.c (update_current_target): Don't inherit or default
9335         to_can_execute_reverse.
9336         * target.h (struct target_ops) <to_can_execute_reverse>: Use
9337         TARGET_DEFAULT_RETURN.
9338         (target_can_execute_reverse): Unconditionally delegate.
9339
9340 2014-02-19  Tom Tromey  <tromey@redhat.com>
9341
9342         * target-delegates.c: Rebuild.
9343         * target.c (update_current_target): Don't inherit or default
9344         to_goto_bookmark.
9345         (dummy_goto_bookmark): Remove.
9346         (init_dummy_target): Don't inherit or default to_goto_bookmark.
9347         * target.h (struct target_ops) <to_goto_bookmark>: Use
9348         TARGET_DEFAULT_NORETURN.
9349
9350 2014-02-19  Tom Tromey  <tromey@redhat.com>
9351
9352         * target-delegates.c: Rebuild.
9353         * target.c (update_current_target): Don't inherit or default
9354         to_get_bookmark.
9355         (dummy_get_bookmark): Remove.
9356         (init_dummy_target): Don't inherit or default to_get_bookmark.
9357         * target.h (struct target_ops) <to_get_bookmark>: Use
9358         TARGET_DEFAULT_NORETURN
9359
9360 2014-02-19  Tom Tromey  <tromey@redhat.com>
9361
9362         * target-delegates.c: Rebuild.
9363         * target.c (update_current_target): Don't inherit or default
9364         to_make_corefile_notes.
9365         (init_dummy_target): Don't initialize to_make_corefile_notes.
9366         * target.h (struct target_ops) <to_make_corefile_notes>: Use
9367         TARGET_DEFAULT_FUNC.
9368
9369 2014-02-19  Tom Tromey  <tromey@redhat.com>
9370
9371         * target-delegates.c: Rebuild.
9372         * target.c (update_current_target): Don't inherit or default
9373         to_find_memory_regions.
9374         (init_dummy_target): Don't initialize to_find_memory_regions.
9375         * target.h (struct target_ops) <to_find_memory_regions>: Use
9376         TARGET_DEFAULT_FUNC.
9377
9378 2014-02-19  Tom Tromey  <tromey@redhat.com>
9379
9380         * target-delegates.c: Rebuild.
9381         * target.c (update_current_target): Don't inherit or default
9382         to_log_command.
9383         * target.h (struct target_ops) <to_log_command>: Use
9384         TARGET_DEFAULT_IGNORE.
9385         (target_log_command): Unconditionally delegate.
9386
9387 2014-02-19  Tom Tromey  <tromey@redhat.com>
9388
9389         * target-delegates.c: Rebuild.
9390         * target.c (update_current_target): Don't inherit or default
9391         to_pid_to_exec_file.
9392         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9393         TARGET_DEFAULT_RETURN.
9394
9395 2014-02-19  Tom Tromey  <tromey@redhat.com>
9396
9397         * target-delegates.c: Rebuild.
9398         * target.c (update_current_target): Don't inherit or default
9399         to_thread_name.
9400         (target_thread_name): Unconditionally delegate.
9401         * target.h (struct target_ops) <to_thread_name>: Use
9402         TARGET_DEFAULT_RETURN.
9403
9404 2014-02-19  Tom Tromey  <tromey@redhat.com>
9405
9406         * target-delegates.c: Rebuild.
9407         * target.c (update_current_target): Don't inherit or default
9408         to_extra_thread_info.
9409         * target.h (struct target_ops) <to_extra_thread_info>: Use
9410         TARGET_DEFAULT_RETURN.
9411
9412 2014-02-19  Tom Tromey  <tromey@redhat.com>
9413
9414         * target-delegates.c: Rebuild.
9415         * target.c (update_current_target): Don't inherit or default
9416         to_has_exited.
9417         * target.h (struct target_ops) <to_has_exited>: Use
9418         TARGET_DEFAULT_RETURN..
9419
9420 2014-02-19  Tom Tromey  <tromey@redhat.com>
9421
9422         * target-delegates.c: Rebuild.
9423         * target.c (update_current_target): Don't inherit or default
9424         to_set_syscall_catchpoint.
9425         (return_one): Remove.
9426         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9427         TARGET_DEFAULT_RETURN.
9428
9429 2014-02-19  Tom Tromey  <tromey@redhat.com>
9430
9431         * target-delegates.c: Rebuild.
9432         * target.c (update_current_target): Don't inherit or default
9433         to_insert_exec_catchpoint.
9434         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9435         TARGET_DEFAULT_RETURN.
9436
9437 2014-01-08  Tom Tromey  <tromey@redhat.com>
9438
9439         * target-delegates.c: Rebuild.
9440         * target.c (update_current_target): Don't inherit or default
9441         to_insert_exec_catchpoint.
9442         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9443         TARGET_DEFAULT_RETURN.
9444
9445 2014-02-19  Tom Tromey  <tromey@redhat.com>
9446
9447         * target-delegates.c: Rebuild.
9448         * target.c (update_current_target): Don't inherit or default
9449         to_remove_vfork_catchpoint.
9450         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9451         TARGET_DEFAULT_RETURN.
9452
9453 2014-02-19  Tom Tromey  <tromey@redhat.com>
9454
9455         * target-delegates.c: Rebuild.
9456         * target.c (update_current_target): Don't inherit or default
9457         to_insert_vfork_catchpoint.
9458         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9459         TARGET_DEFAULT_RETURN.
9460
9461 2014-02-19  Tom Tromey  <tromey@redhat.com>
9462
9463         * target-delegates.c: Rebuild.
9464         * target.c (update_current_target): Don't inherit or default
9465         to_remove_fork_catchpoint.
9466         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9467         TARGET_DEFAULT_RETURN.
9468
9469 2014-02-19  Tom Tromey  <tromey@redhat.com>
9470
9471         * target-delegates.c: Rebuild.
9472         * target.c (update_current_target): Don't inherit or default
9473         to_insert_fork_catchpoint.
9474         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9475         TARGET_DEFAULT_RETURN.
9476
9477 2014-02-19  Tom Tromey  <tromey@redhat.com>
9478
9479         * target-delegates.c: Rebuild.
9480         * target.c (update_current_target): Don't inherit or default
9481         to_post_startup_inferior.
9482         * target.h (struct target_ops) <to_post_startup_inferior>: Use
9483         TARGET_DEFAULT_IGNORE.
9484
9485 2014-02-19  Tom Tromey  <tromey@redhat.com>
9486
9487         * target-delegates.c: Rebuild.
9488         * target.c (update_current_target): Don't inherit or default
9489         to_load.
9490         * target.h (struct target_ops) <to_load>: Use
9491         TARGET_DEFAULT_NORETURN.
9492
9493 2014-02-19  Tom Tromey  <tromey@redhat.com>
9494
9495         * target-delegates.c: Rebuild.
9496         * target.c (update_current_target): Don't inherit or default
9497         to_terminal_info.
9498         * target.h (struct target_ops) <to_terminal_info>: Use
9499         TARGET_DEFAULT_FUNC.
9500
9501 2014-02-19  Tom Tromey  <tromey@redhat.com>
9502
9503         * target-delegates.c: Rebuild.
9504         * target.c (update_current_target): Don't inherit or default
9505         to_terminal_save_ours.
9506         * target.h (struct target_ops) <to_terminal_save_ours>: Use
9507         TARGET_DEFAULT_IGNORE.
9508
9509 2014-02-19  Tom Tromey  <tromey@redhat.com>
9510
9511         * target-delegates.c: Rebuild.
9512         * target.c (update_current_target): Don't inherit or default
9513         to_terminal_ours.
9514         * target.h (struct target_ops) <to_terminal_ours>: Use
9515         TARGET_DEFAULT_IGNORE.
9516
9517 2014-02-19  Tom Tromey  <tromey@redhat.com>
9518
9519         * target-delegates.c: Rebuild.
9520         * target.c (update_current_target): Don't inherit or default
9521         to_terminal_ours_for_output.
9522         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9523         TARGET_DEFAULT_IGNORE.
9524
9525 2014-02-19  Tom Tromey  <tromey@redhat.com>
9526
9527         * target-delegates.c: Rebuild.
9528         * target.c (update_current_target): Don't inherit or default
9529         to_terminal_inferior.
9530         * target.h (struct target_ops) <to_terminal_inferior>: Use
9531         TARGET_DEFAULT_IGNORE.
9532
9533 2014-02-19  Tom Tromey  <tromey@redhat.com>
9534
9535         * target-delegates.c: Rebuild.
9536         * target.c (update_current_target): Don't inherit or default
9537         to_terminal_init.
9538         * target.h (struct target_ops) <to_terminal_init>: Use
9539         TARGET_DEFAULT_IGNORE.
9540
9541 2014-02-19  Tom Tromey  <tromey@redhat.com>
9542
9543         * target-delegates.c: Rebuild.
9544         * target.c (update_current_target): Don't inherit or default
9545         to_can_accel_watchpoint_condition.
9546         * target.h (struct target_ops)
9547         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9548
9549 2014-02-19  Tom Tromey  <tromey@redhat.com>
9550
9551         * target-delegates.c: Rebuild.
9552         * target.c (update_current_target): Don't inherit or default
9553         to_region_ok_for_hw_watchpoint.
9554         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9555         Use TARGET_DEFAULT_FUNC.
9556
9557 2014-02-19  Tom Tromey  <tromey@redhat.com>
9558
9559         * target-delegates.c: Rebuild.
9560         * target.c (update_current_target): Don't inherit or default
9561         to_watchpoint_addr_within_range.
9562         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9563         Use TARGET_DEFAULT_FUNC.
9564
9565 2014-02-19  Tom Tromey  <tromey@redhat.com>
9566
9567         * target-delegates.c: Rebuild.
9568         * target.c (update_current_target): Don't inherit or default
9569         to_remove_watchpoint.
9570         * target.h (struct target_ops) <to_remove_watchpoint>: Use
9571         TARGET_DEFAULT_NORETURN.
9572
9573 2014-02-19  Tom Tromey  <tromey@redhat.com>
9574
9575         * target-delegates.c: Rebuild.
9576         * target.c (update_current_target): Don't inherit or default
9577         to_insert_watchpoint.
9578         * target.h (struct target_ops) <to_insert_watchpoint>: Use
9579         TARGET_DEFAULT_RETURN.
9580
9581 2014-02-19  Tom Tromey  <tromey@redhat.com>
9582
9583         * target-delegates.c: Rebuild.
9584         * target.c (update_current_target): Don't inherit or default
9585         to_remove_hw_breakpoint.
9586         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9587         TARGET_DEFAULT_RETURN.
9588
9589 2014-02-19  Tom Tromey  <tromey@redhat.com>
9590
9591         * target-delegates.c: Rebuild.
9592         * target.c (update_current_target): Don't inherit or default
9593         to_insert_hw_breakpoint.
9594         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9595         TARGET_DEFAULT_RETURN.
9596
9597 2014-02-19  Tom Tromey  <tromey@redhat.com>
9598
9599         * target-delegates.c: Rebuild.
9600         * target.c (update_current_target): Don't inherit or default
9601         to_can_use_hw_breakpoint.
9602         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9603         TARGET_DEFAULT_RETURN.
9604
9605 2014-02-19  Tom Tromey  <tromey@redhat.com>
9606
9607         * target-delegates.c: Rebuild.
9608         * target.c (update_current_target): Don't inherit or default
9609         to_files_info.
9610         * target.h (struct target_ops) <to_files_info>: Use
9611         TARGET_DEFAULT_IGNORE.
9612
9613 2014-02-19  Tom Tromey  <tromey@redhat.com>
9614
9615         * target-delegates.c: Rebuild.
9616         * target.c (update_current_target): Don't inherit or default
9617         to_store.
9618         * target.h (struct target_ops) <to_store>: Use
9619         TARGET_DEFAULT_NORETURN.
9620
9621 2014-02-19  Tom Tromey  <tromey@redhat.com>
9622
9623         * target-delegates.c: Rebuild.
9624         * target.c (update_current_target): Don't inherit or default
9625         to_post_attach.
9626         * target.h (struct target_ops) <to_post_attach>: Use
9627         TARGET_DEFAULT_IGNORE.
9628
9629 2014-02-19  Tom Tromey  <tromey@redhat.com>
9630
9631         * target-delegates.c: Rebuild.
9632         * target.c (update_current_target): Don't inherit or default
9633         to_rcmd.
9634         (default_rcmd): New function.
9635         (do_monitor_command): Unconditionally delegate.
9636         * target.h (struct target_ops) <to_rmcd>: Use
9637         TARGET_DEFAULT_FUNC.
9638
9639 2014-02-19  Tom Tromey  <tromey@redhat.com>
9640
9641         * target-delegates.c: Rebuild.
9642         * target.c (init_dummy_target): Don't initialize to_attach.
9643         (target_attach): Unconditionally delegate.
9644         * target.h (struct target_ops) <to_attach>: Use
9645         TARGET_DEFAULT_FUNC.
9646
9647 2014-02-19  Tom Tromey  <tromey@redhat.com>
9648
9649         * target-delegates.c: Rebuild.
9650         * target.c (target_detach): Unconditionally delegate.
9651         (init_dummy_target): Don't initialize to_detach.
9652         * target.h (struct target_ops) <to_detach>: Use
9653         TARGET_DEFAULT_IGNORE.
9654
9655 2014-02-19  Tom Tromey  <tromey@redhat.com>
9656
9657         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9658         Add argument.
9659         (target_augmented_libraries_svr4_read): Add argument.
9660         * target.c (update_current_target): Update.
9661         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9662         argument.
9663
9664 2014-02-19  Tom Tromey  <tromey@redhat.com>
9665
9666         * target.h (struct target_ops) <to_call_history_range>: Add
9667         argument.
9668         * target.c (target_call_history_range): Add argument.
9669         * record-btrace.c (record_btrace_call_history_range): Add 'self'
9670         argument.
9671         (record_btrace_call_history_from): Update.
9672
9673 2014-02-19  Tom Tromey  <tromey@redhat.com>
9674
9675         * target.h (struct target_ops) <to_call_history_from>: Add
9676         argument.
9677         * target.c (target_call_history_from): Add argument.
9678         * record-btrace.c (record_btrace_call_history_from): Add 'self'
9679         argument.
9680
9681 2014-02-19  Tom Tromey  <tromey@redhat.com>
9682
9683         * target.h (struct target_ops) <to_call_history>: Add argument.
9684         * target.c (target_call_history): Add argument.
9685         * record-btrace.c (record_btrace_call_history): Add 'self'
9686         argument.
9687
9688 2014-02-19  Tom Tromey  <tromey@redhat.com>
9689
9690         * target.h (struct target_ops) <to_insn_history_range>: Add
9691         argument.
9692         * target.c (target_insn_history_range): Add argument.
9693         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9694         argument.
9695         (record_btrace_insn_history_from): Update.
9696
9697 2014-02-19  Tom Tromey  <tromey@redhat.com>
9698
9699         * target.h (struct target_ops) <to_insn_history_from>: Add
9700         argument.
9701         * target.c (target_insn_history_from): Add argument.
9702         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9703         argument.
9704
9705 2014-02-19  Tom Tromey  <tromey@redhat.com>
9706
9707         * target.h (struct target_ops) <to_insn_history>: Add argument.
9708         * target.c (target_insn_history): Add argument.
9709         * record-btrace.c (record_btrace_insn_history): Add 'self'
9710         argument.
9711
9712 2014-02-19  Tom Tromey  <tromey@redhat.com>
9713
9714         * target.h (struct target_ops) <to_goto_record>: Add argument.
9715         * target.c (target_goto_record): Add argument.
9716         * record-full.c (record_full_goto): Add 'self' argument.
9717         * record-btrace.c (record_btrace_goto): Add 'self' argument.
9718
9719 2014-02-19  Tom Tromey  <tromey@redhat.com>
9720
9721         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9722         * target.c (target_goto_record_end): Add argument.
9723         * record-full.c (record_full_goto_end): Add 'self' argument.
9724         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9725
9726 2014-02-19  Tom Tromey  <tromey@redhat.com>
9727
9728         * target.h (struct target_ops) <to_goto_record_begin>: Add
9729         argument.
9730         * target.c (target_goto_record_begin): Add argument.
9731         * record-full.c (record_full_goto_begin): Add 'self' argument.
9732         * record-btrace.c (record_btrace_goto_begin): Add 'self'
9733         argument.
9734
9735 2014-02-19  Tom Tromey  <tromey@redhat.com>
9736
9737         * target.h (struct target_ops) <to_record_is_replaying>: Add
9738         argument.
9739         * target.c (target_record_is_replaying): Add argument.
9740         * record-full.c (record_full_is_replaying): Add 'self' argument.
9741         * record-btrace.c (record_btrace_is_replaying): Add 'self'
9742         argument.
9743         (record_btrace_xfer_partial, record_btrace_store_registers)
9744         (record_btrace_prepare_to_store, record_btrace_resume)
9745         (record_btrace_wait, record_btrace_decr_pc_after_break)
9746         (record_btrace_find_new_threads, record_btrace_thread_alive):
9747         Update.
9748
9749 2014-02-19  Tom Tromey  <tromey@redhat.com>
9750
9751         * target.h (struct target_ops) <to_delete_record>: Add argument.
9752         * target.c (target_delete_record): Add argument.
9753         * record-full.c (record_full_delete): Add 'self' argument.
9754
9755 2014-02-19  Tom Tromey  <tromey@redhat.com>
9756
9757         * target.h (struct target_ops) <to_save_record>: Add argument.
9758         * target.c (target_save_record): Add argument.
9759         * record-full.c (record_full_save): Add 'self' argument.
9760         (record_full_save): Add 'self' argument.
9761
9762 2014-02-19  Tom Tromey  <tromey@redhat.com>
9763
9764         * target.h (struct target_ops) <to_info_record>: Add argument.
9765         * target.c (target_info_record): Add argument.
9766         * record.c (info_record_command): Add argument.
9767         * record-full.c (record_full_info): Add 'self' argument.
9768         * record-btrace.c (record_btrace_info): Add 'self' argument.
9769
9770 2014-02-19  Tom Tromey  <tromey@redhat.com>
9771
9772         * target.h (struct target_ops) <to_stop_recording>: Add argument.
9773         * target.c (target_stop_recording): Add argument.
9774         * record.c (record_stop): Add argument.
9775         * record-btrace.c (record_btrace_stop_recording): Add 'self'
9776         argument.
9777
9778 2014-02-19  Tom Tromey  <tromey@redhat.com>
9779
9780         * target.h (struct target_ops) <to_read_btrace>: Add argument.
9781         * target.c (struct target_ops) <to_read_btrace>: Add argument.
9782         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9783         argument.
9784         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9785         (_initialize_amd64_linux_nat): Use it.
9786         * i386-linux-nat.c (i386_linux_read_btrace): New function.
9787         (_initialize_i386_linux_nat): Use it.
9788
9789 2014-02-19  Tom Tromey  <tromey@redhat.com>
9790
9791         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9792         * target.c (target_teardown_btrace): Add argument.
9793         * remote.c (remote_teardown_btrace): Add 'self' argument.
9794         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9795         argument.
9796         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9797         argument.
9798
9799 2014-02-19  Tom Tromey  <tromey@redhat.com>
9800
9801         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9802         * target.c (target_disable_btrace): Add argument.
9803         * remote.c (remote_disable_btrace): Add 'self' argument.
9804         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9805         argument.
9806         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9807         argument.
9808
9809 2014-02-19  Tom Tromey  <tromey@redhat.com>
9810
9811         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9812         * target.c (target_enable_btrace): Add argument.
9813         * remote.c (remote_enable_btrace): Add 'self' argument.
9814         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9815         argument.
9816         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9817         argument.
9818
9819 2014-02-19  Tom Tromey  <tromey@redhat.com>
9820
9821         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9822         (target_can_use_agent): Add argument.
9823         * target.c (update_current_target): Update.
9824         * remote.c (remote_can_use_agent): Add 'self' argument.
9825         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9826
9827 2014-02-19  Tom Tromey  <tromey@redhat.com>
9828
9829         * target.h (struct target_ops) <to_use_agent>: Add argument.
9830         (target_use_agent): Add argument.
9831         * target.c (update_current_target): Update.
9832         * remote.c (remote_use_agent): Add 'self' argument.
9833         * inf-child.c (inf_child_use_agent): Add 'self' argument.
9834
9835 2014-02-19  Tom Tromey  <tromey@redhat.com>
9836
9837         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9838         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9839         (target_traceframe_info): Add argument.
9840         * target.c (update_current_target): Update.
9841         * remote.c (remote_traceframe_info): Add 'self' argument.
9842         * ctf.c (ctf_traceframe_info): Add 'self' argument.
9843
9844 2014-02-19  Tom Tromey  <tromey@redhat.com>
9845
9846         * target.h (target_static_tracepoint_markers_by_strid): Add
9847         argument.
9848         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9849         'self' argument.
9850         * target.c (update_current_target): Update.
9851         * remote.c (struct target_ops)
9852         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9853         * linux-nat.c (struct target_ops)
9854         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9855
9856 2014-02-19  Tom Tromey  <tromey@redhat.com>
9857
9858         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9859         Add argument.
9860         (target_static_tracepoint_marker_at): Add argument.
9861         * target.c (update_current_target): Update.
9862         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9863         argument.
9864
9865 2014-02-19  Tom Tromey  <tromey@redhat.com>
9866
9867         * target.h (struct target_ops) <to_set_permissions>: Add argument.
9868         (target_set_permissions): Add argument.
9869         * target.c (update_current_target): Update.
9870         * remote.c (remote_set_permissions): Add 'self' argument.
9871         (remote_start_remote): Update.
9872
9873 2014-02-19  Tom Tromey  <tromey@redhat.com>
9874
9875         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9876         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9877         (target_get_tib_address): Add argument.
9878         * target.c (update_current_target): Update.
9879         * remote.c (remote_get_tib_address): Add 'self' argument.
9880
9881 2014-02-19  Tom Tromey  <tromey@redhat.com>
9882
9883         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9884         (target_set_trace_notes): Add argument.
9885         * target.c (update_current_target): Update.
9886         * remote.c (remote_set_trace_notes): Add 'self' argument.
9887
9888 2014-02-19  Tom Tromey  <tromey@redhat.com>
9889
9890         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9891         argument.
9892         (target_set_trace_buffer_size): Add argument.
9893         * target.c (update_current_target): Update.
9894         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9895
9896 2014-02-19  Tom Tromey  <tromey@redhat.com>
9897
9898         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9899         argument.
9900         (target_set_circular_trace_buffer): Add argument.
9901         * target.c (update_current_target): Update.
9902         * remote.c (remote_set_circular_trace_buffer): Add 'self'
9903         argument.
9904
9905 2014-02-19  Tom Tromey  <tromey@redhat.com>
9906
9907         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9908         argument.
9909         (target_set_disconnected_tracing): Add argument.
9910         * target.c (update_current_target): Update.
9911         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9912
9913 2014-02-19  Tom Tromey  <tromey@redhat.com>
9914
9915         * target.h (struct target_ops)
9916         <to_get_min_fast_tracepoint_insn_len>: Add argument.
9917         (target_get_min_fast_tracepoint_insn_len): Add argument.
9918         * target.c (update_current_target): Update.
9919         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9920         argument.
9921
9922 2014-02-19  Tom Tromey  <tromey@redhat.com>
9923
9924         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9925         argument.
9926         (target_get_raw_trace_data): Add argument.
9927         * target.c (update_current_target): Update.
9928         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9929
9930 2014-02-19  Tom Tromey  <tromey@redhat.com>
9931
9932         * target.h (struct target_ops) <to_upload_trace_state_variables>:
9933         Add argument.
9934         (target_upload_trace_state_variables): Add argument.
9935         * target.c (update_current_target): Update.
9936         * remote.c (remote_upload_trace_state_variables): Add 'self'
9937         argument.
9938         (remote_start_remote): Update.
9939
9940 2014-02-19  Tom Tromey  <tromey@redhat.com>
9941
9942         * target.h (struct target_ops) <to_upload_tracepoints>: Add
9943         argument.
9944         (target_upload_tracepoints): Add argument.
9945         * target.c (update_current_target): Update.
9946         * remote.c (remote_upload_tracepoints): Add 'self' argument.
9947         (remote_start_remote): Update.
9948
9949 2014-02-19  Tom Tromey  <tromey@redhat.com>
9950
9951         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9952         (target_save_trace_data): Add argument.
9953         * target.c (update_current_target): Update.
9954         * remote.c (remote_save_trace_data): Add 'self' argument.
9955
9956 2014-02-19  Tom Tromey  <tromey@redhat.com>
9957
9958         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9959         argument.
9960         * target.h (struct target_ops)
9961         <to_get_trace_state_variable_value>: Add argument.
9962         (target_get_trace_state_variable_value): Add argument.
9963         * target.c (update_current_target): Update.
9964         * remote.c (remote_get_trace_state_variable_value): Add 'self'
9965         argument.
9966         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9967
9968 2014-02-19  Tom Tromey  <tromey@redhat.com>
9969
9970         * tracepoint.c (tfile_trace_find): Add 'self' argument.
9971         * target.h (struct target_ops) <to_trace_find>: Add argument.
9972         (target_trace_find): Add argument.
9973         * target.c (update_current_target): Update.
9974         * remote.c (remote_trace_find): Add 'self' argument.
9975         * ctf.c (ctf_trace_find): Add 'self' argument.
9976
9977 2014-02-19  Tom Tromey  <tromey@redhat.com>
9978
9979         * target.h (struct target_ops) <to_trace_stop>: Add argument.
9980         (target_trace_stop): Add argument.
9981         * target.c (update_current_target): Update.
9982         * remote.c (remote_trace_stop): Add 'self' argument.
9983
9984 2014-02-19  Tom Tromey  <tromey@redhat.com>
9985
9986         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9987         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9988         argument.
9989         (target_get_tracepoint_status): Add argument.
9990         * target.c (update_current_target): Update.
9991         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9992
9993 2014-02-19  Tom Tromey  <tromey@redhat.com>
9994
9995         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9996         * target.h (struct target_ops) <to_get_trace_status>: Add
9997         argument.
9998         (target_get_trace_status): Add argument.
9999         * target.c (update_current_target): Update.
10000         * remote.c (remote_get_trace_status): Add 'self' argument.
10001         (remote_start_remote, remote_can_download_tracepoint): Update.
10002         * ctf.c (ctf_get_trace_status): Add 'self' argument.
10003
10004 2014-02-19  Tom Tromey  <tromey@redhat.com>
10005
10006         * target.h (struct target_ops) <to_trace_start>: Add argument.
10007         (target_trace_start): Add argument.
10008         * target.c (update_current_target): Update.
10009         * remote.c (remote_trace_start): Add 'self' argument.
10010
10011 2014-02-19  Tom Tromey  <tromey@redhat.com>
10012
10013         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10014         Add argument.
10015         (target_trace_set_readonly_regions): Add argument.
10016         * target.c (update_current_target): Update.
10017         * remote.c (remote_trace_set_readonly_regions): Add 'self'
10018         argument.
10019
10020 2014-02-19  Tom Tromey  <tromey@redhat.com>
10021
10022         * target.h (struct target_ops) <to_disable_tracepoint>: Add
10023         argument.
10024         (target_disable_tracepoint): Add argument.
10025         * target.c (update_current_target): Update.
10026         * remote.c (remote_disable_tracepoint): Add 'self' argument.
10027
10028 2014-02-19  Tom Tromey  <tromey@redhat.com>
10029
10030         * target.h (struct target_ops) <to_enable_tracepoint>: Add
10031         argument.
10032         (target_enable_tracepoint): Add argument.
10033         * target.c (update_current_target): Update.
10034         * remote.c (remote_enable_tracepoint): Add 'self' argument.
10035
10036 2014-02-19  Tom Tromey  <tromey@redhat.com>
10037
10038         * target.h (struct target_ops) <to_download_trace_state_variable>:
10039         Add argument.
10040         (target_download_trace_state_variable): Add argument.
10041         * target.c (update_current_target): Update.
10042         * remote.c (remote_download_trace_state_variable): Add 'self'
10043         argument.
10044
10045 2014-02-19  Tom Tromey  <tromey@redhat.com>
10046
10047         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10048         argument.
10049         (target_can_download_tracepoint): Add argument.
10050         * target.c (update_current_target): Update.
10051         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10052
10053 2014-02-19  Tom Tromey  <tromey@redhat.com>
10054
10055         * target.h (struct target_ops) <to_download_tracepoint>: Add
10056         argument.
10057         (target_download_tracepoint): Add argument.
10058         * target.c (update_current_target): Update.
10059         * remote.c (remote_download_tracepoint): Add 'self' argument.
10060
10061 2014-02-19  Tom Tromey  <tromey@redhat.com>
10062
10063         * target.h (struct target_ops) <to_trace_init>: Add argument.
10064         (target_trace_init): Add argument.
10065         * target.c (update_current_target): Update.
10066         * remote.c (remote_trace_init): Add 'self' argument.
10067
10068 2014-02-19  Tom Tromey  <tromey@redhat.com>
10069
10070         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10071         * target.c (target_fileio_readlink): Add argument.
10072         * remote.c (remote_hostio_readlink): Add 'self' argument.
10073         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10074
10075 2014-02-19  Tom Tromey  <tromey@redhat.com>
10076
10077         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10078         * target.c (target_fileio_unlink): Add argument.
10079         * remote.c (remote_hostio_unlink): Add 'self' argument.
10080         (remote_file_delete): Update.
10081         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10082
10083 2014-02-19  Tom Tromey  <tromey@redhat.com>
10084
10085         * target.h (struct target_ops) <to_fileio_close>: Add argument.
10086         * target.c (target_fileio_close): Add argument.
10087         * remote.c (remote_hostio_close): Add 'self' argument.
10088         (remote_hostio_close_cleanup): Update.
10089         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10090         Update.
10091         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10092
10093 2014-02-19  Tom Tromey  <tromey@redhat.com>
10094
10095         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10096         * target.c (target_fileio_pread): Add argument.
10097         * remote.c (remote_hostio_pread): Add 'self' argument.
10098         (remote_bfd_iovec_pread, remote_file_get): Update.
10099         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10100
10101 2014-02-19  Tom Tromey  <tromey@redhat.com>
10102
10103         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10104         * target.c (target_fileio_pwrite): Add argument.
10105         * remote.c (remote_hostio_pwrite): Add 'self' argument.
10106         (remote_file_put): Update.
10107         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10108
10109 2014-02-19  Tom Tromey  <tromey@redhat.com>
10110
10111         * target.h (struct target_ops) <to_fileio_open>: Add argument.
10112         * target.c (target_fileio_open): Add argument.
10113         * remote.c (remote_hostio_open): Add 'self' argument.
10114         (remote_bfd_iovec_open): Add 'self' argument.
10115         (remote_file_put): Add 'self' argument.
10116         (remote_file_get): Add 'self' argument.
10117         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10118
10119 2014-02-19  Tom Tromey  <tromey@redhat.com>
10120
10121         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10122         Add argument.
10123         (target_can_run_breakpoint_commands): Add argument.
10124         * target.c (update_current_target): Update.
10125         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10126         argument.
10127         (remote_insert_breakpoint): Add 'self' argument.
10128         (remote_insert_hw_breakpoint): Add 'self' argument.
10129         (remote_can_run_breakpoint_commands): Add 'self' argument.
10130
10131 2014-02-19  Tom Tromey  <tromey@redhat.com>
10132
10133         * target.h (struct target_ops)
10134         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10135         (target_supports_evaluation_of_breakpoint_conditions): Add
10136         argument.
10137         * target.c (update_current_target): Update.
10138         * remote.c (remote_supports_cond_breakpoints): Add 'self'
10139         argument.
10140         (remote_insert_breakpoint): Add 'self' argument.
10141         (remote_insert_hw_breakpoint): Add 'self' argument.
10142         (remote_supports_cond_breakpoints): Add 'self' argument.
10143
10144 2014-02-19  Tom Tromey  <tromey@redhat.com>
10145
10146         * target.h (struct target_ops) <to_supports_string_tracing>: Add
10147         argument.
10148         (target_supports_string_tracing): Add argument.
10149         * target.c (update_current_target): Update.
10150         * remote.c (remote_supports_string_tracing): Add 'self' argument.
10151
10152 2014-02-19  Tom Tromey  <tromey@redhat.com>
10153
10154         * target.h (struct target_ops)
10155         <to_supports_disable_randomization>: Add argument.
10156         * target.c (find_default_supports_disable_randomization): Add
10157         argument.
10158         (target_supports_disable_randomization): Add argument.
10159         (find_default_supports_disable_randomization): Add 'self'
10160         argument.
10161         * remote.c (extended_remote_supports_disable_randomization): Add
10162         'self' argument.
10163         (remote_supports_disable_randomization): Add 'self' argument.
10164         (extended_remote_create_inferior): Update.
10165         * linux-nat.c (linux_nat_supports_disable_randomization): Add
10166         'self' argument.
10167
10168 2014-02-19  Tom Tromey  <tromey@redhat.com>
10169
10170         * target.h (struct target_ops)
10171         <to_supports_enable_disable_tracepoint>: Add argument.
10172         (target_supports_enable_disable_tracepoint): Add argument.
10173         * target.c (update_current_target): Update.
10174         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10175         argument.
10176
10177 2014-02-19  Tom Tromey  <tromey@redhat.com>
10178
10179         * target.h (struct target_ops) <to_supports_multi_process>: Add
10180         argument.
10181         (target_supports_multi_process): Add argument.
10182         * target.c (update_current_target): Update.
10183         * remote.c (remote_supports_multi_process): Add 'self' argument.
10184         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10185         argument.
10186         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10187         argument.
10188
10189 2014-02-19  Tom Tromey  <tromey@redhat.com>
10190
10191         * target.h (struct target_ops) <to_execution_direction>: Add
10192         argument.
10193         (target_execution_direction): Add argument.
10194         * target.c (default_execution_direction): Add 'self' argument.
10195         * record-full.c (record_full_execution_direction): Add 'self'
10196         argument.
10197
10198 2014-02-19  Tom Tromey  <tromey@redhat.com>
10199
10200         * target.h (struct target_ops) <to_can_execute_reverse>: Add
10201         argument.
10202         (target_can_execute_reverse): Add argument.
10203         * remote.c (remote_can_execute_reverse): Add 'self' argument.
10204         * record-full.c (record_full_can_execute_reverse): Add 'self'
10205         argument.
10206         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10207         argument.
10208
10209 2014-02-19  Tom Tromey  <tromey@redhat.com>
10210
10211         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10212         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10213         argument.
10214         (target_get_ada_task_ptid): Add argument.
10215         * target.c (update_current_target): Update.
10216         (default_get_ada_task_ptid): Add 'self' argument.
10217         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10218         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10219         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10220         argument.
10221         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10222         argument.
10223         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10224         argument.
10225         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10226         argument.
10227         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10228         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10229         argument.
10230
10231 2014-02-19  Tom Tromey  <tromey@redhat.com>
10232
10233         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10234         (target_goto_bookmark): Add argument.
10235         * target.c (dummy_goto_bookmark): Add 'self' argument.
10236         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10237
10238 2014-02-19  Tom Tromey  <tromey@redhat.com>
10239
10240         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10241         (target_get_bookmark): Add argument.
10242         * target.c (dummy_get_bookmark): Add 'self' argument.
10243         * record-full.c (record_full_get_bookmark): Add 'self' argument.
10244
10245 2014-02-19  Tom Tromey  <tromey@redhat.com>
10246
10247         * target.h (struct target_ops) <to_make_corefile_notes>: Add
10248         argument.
10249         (target_make_corefile_notes): Add argument.
10250         * target.c (dummy_make_corefile_notes): Add 'self' argument.
10251         * procfs.c (procfs_make_note_section): Add 'self' argument.
10252         (procfs_make_note_section): Add 'self' argument.
10253         (procfs_make_note_section): Add 'self' argument.
10254         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10255         argument.
10256         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10257         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10258         * exec.c (exec_make_note_section): Add 'self' argument.
10259         (exec_make_note_section): Add 'self' argument.
10260
10261 2014-02-19  Tom Tromey  <tromey@redhat.com>
10262
10263         * target.h (struct target_ops) <to_find_memory_regions>: Add
10264         argument.
10265         (target_find_memory_regions): Add argument.
10266         * target.c (dummy_find_memory_regions): Add 'self' argument.
10267         * procfs.c (proc_find_memory_regions): Add 'self' argument.
10268         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10269         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10270         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10271         * exec. (exec_do_find_memory_regions): New global.
10272         (exec_set_find_memory_regions): Rewrite.
10273         (exec_find_memory_regions): New function.
10274         (init_exec_ops): Use exec_find_memory_regions.
10275
10276 2014-02-19  Tom Tromey  <tromey@redhat.com>
10277
10278         * target.h (struct target_ops) <to_supports_non_stop>: Add
10279         argument.
10280         * target.c (find_default_supports_non_stop): Add argument.
10281         (target_supports_non_stop): Add argument.
10282         (find_default_supports_non_stop): Add 'self' argument.
10283         * remote.c (remote_supports_non_stop): Add 'self' argument.
10284         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10285
10286 2014-02-19  Tom Tromey  <tromey@redhat.com>
10287
10288         * target.h (struct target_ops) <to_log_command>: Add argument.
10289         (target_log_command): Add argument.
10290         * serial.h (serial_log_command): Add 'self' argument.
10291         * serial.c (serial_log_command): Add 'self' argument.
10292
10293 2014-02-19  Tom Tromey  <tromey@redhat.com>
10294
10295         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10296         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10297         argument.
10298         (target_pid_to_exec_file): Add argument.
10299         * target.c (debug_to_pid_to_exec_file): Add argument.
10300         (update_current_target): Update.
10301         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10302         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10303         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10304         (linux_handle_extended_wait): Update.
10305         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10306         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10307         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10308         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10309
10310 2014-02-19  Tom Tromey  <tromey@redhat.com>
10311
10312         * target.h (struct target_ops) <to_rcmd>: Add argument.
10313         (target_rcmd): Add argument.
10314         * target.c (debug_to_rcmd): Add argument.
10315         (update_current_target, do_monitor_command): Update.
10316         * remote.c (remote_rcmd): Add 'self' argument.
10317         * monitor.c (monitor_rcmd): Add 'self' argument.
10318
10319 2014-02-19  Tom Tromey  <tromey@redhat.com>
10320
10321         * windows-nat.c (windows_stop): Add 'self' argument.
10322         * target.h (struct target_ops) <to_stop>: Add argument.
10323         * target.c (target_stop): Add argument.
10324         (debug_to_stop): Add argument.
10325         (update_current_target): Update.
10326         * remote.c (remote_stop): Add 'self' argument.
10327         * remote-sim.c (gdbsim_stop): Add 'self' argument.
10328         (gdbsim_cntrl_c): Update.
10329         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10330         * procfs.c (procfs_stop): Add 'self' argument.
10331         * nto-procfs.c (procfs_stop): Add 'self' argument.
10332         * monitor.c (monitor_stop): Add 'self' argument.
10333         (monitor_open): Update.
10334         * linux-nat.c (linux_nat_stop): Add argument.
10335         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10336         * gnu-nat.c (gnu_stop): Add 'self' argument.
10337         * darwin-nat.c (darwin_stop): Add 'self' argument.
10338
10339 2014-02-19  Tom Tromey  <tromey@redhat.com>
10340
10341         * target.h (struct target_ops) <to_thread_name>: Add argument.
10342         * target.c (target_thread_name): Add argument.
10343         (update_current_target): Update.
10344         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10345
10346 2014-02-19  Tom Tromey  <tromey@redhat.com>
10347
10348         * target.h (struct target_ops) <to_extra_thread_info>: Add
10349         argument.
10350         (target_extra_thread_info): Add argument.
10351         * target.c (update_current_target): Update.
10352         * remote.c (remote_threads_extra_info): Add 'self' argument.
10353         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10354         argument.
10355         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10356         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10357         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10358         argument.
10359         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10360         argument.
10361         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10362         argument.
10363         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10364         argument.
10365
10366 2014-02-19  Tom Tromey  <tromey@redhat.com>
10367
10368         * target.h (struct target_ops) <to_program_signals>: Add argument.
10369         * target.c (target_program_signals): Add argument.
10370         * remote.c (remote_program_signals): Add 'self' argument.
10371
10372 2014-02-19  Tom Tromey  <tromey@redhat.com>
10373
10374         * target.h (struct target_ops) <to_pass_signals>: Add argument.
10375         * target.c (target_pass_signals): Add argument.
10376         * remote.c (remote_pass_signals): Add 'self' argument.
10377         (remote_start_remote): Update.
10378         * procfs.c (procfs_pass_signals): Add 'self' argument.
10379         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10380         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10381         (linux_nat_create_inferior, linux_nat_attach): Update.
10382
10383 2014-02-19  Tom Tromey  <tromey@redhat.com>
10384
10385         * windows-nat.c (windows_can_run): Add 'self' argument.
10386         * target.h (struct target_ops) <to_can_run>: Add argument.
10387         (target_can_run): Add argument.
10388         * target.c (debug_to_can_run): Add argument.
10389         (update_current_target): Update.
10390         * nto-procfs.c (procfs_can_run): Add 'self' argument.
10391         * inf-child.c (inf_child_can_run): Add 'self' argument.
10392         * go32-nat.c (go32_can_run): Add 'self' argument.
10393
10394 2014-02-19  Tom Tromey  <tromey@redhat.com>
10395
10396         * target.h (struct target_ops) <to_has_exited>: Add argument.
10397         (target_has_exited): Add argument.
10398         * target.c (debug_to_has_exited): Add argument.
10399         (update_current_target): Update.
10400
10401 2014-02-19  Tom Tromey  <tromey@redhat.com>
10402
10403         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10404         argument.
10405         (target_set_syscall_catchpoint): Add argument.
10406         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10407         argument.
10408         * target.c (update_current_target): Update.
10409
10410 2014-02-19  Tom Tromey  <tromey@redhat.com>
10411
10412         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10413         argument.
10414         (target_remove_exec_catchpoint): Add argument.
10415         * target.c (debug_to_remove_exec_catchpoint): Add argument.
10416         (update_current_target): Update.
10417         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10418         argument.
10419
10420 2014-02-19  Tom Tromey  <tromey@redhat.com>
10421
10422         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10423         argument.
10424         (target_insert_exec_catchpoint): Add argument.
10425         * target.c (debug_to_insert_exec_catchpoint): Add argument.
10426         (update_current_target): Update.
10427         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10428         argument.
10429
10430 2014-02-19  Tom Tromey  <tromey@redhat.com>
10431
10432         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10433         argument.
10434         (target_remove_vfork_catchpoint): Add argument.
10435         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10436         (update_current_target): Update.
10437         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10438         argument.
10439
10440 2014-02-19  Tom Tromey  <tromey@redhat.com>
10441
10442         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10443         argument.
10444         (target_insert_vfork_catchpoint): Add argument.
10445         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10446         (update_current_target): Update.
10447         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10448         argument.
10449
10450 2014-02-19  Tom Tromey  <tromey@redhat.com>
10451
10452         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10453         argument.
10454         (target_remove_fork_catchpoint): Add argument.
10455         * target.c (debug_to_remove_fork_catchpoint): Add argument.
10456         (update_current_target): Update.
10457         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10458         argument.
10459
10460 2014-02-19  Tom Tromey  <tromey@redhat.com>
10461
10462         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10463         argument.
10464         (target_insert_fork_catchpoint): Add argument.
10465         * target.c (debug_to_insert_fork_catchpoint): Add argument.
10466         (update_current_target): Update.
10467         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10468         argument.
10469
10470 2014-02-19  Tom Tromey  <tromey@redhat.com>
10471
10472         * target.h (struct target_ops) <to_post_startup_inferior>: Add
10473         argument.
10474         (target_post_startup_inferior): Add argument.
10475         * target.c (debug_to_post_startup_inferior): Add argument.
10476         (update_current_target): Update.
10477         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10478         argument.
10479         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10480         argument.
10481         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10482         argument.
10483         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10484         argument.
10485         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10486         'self' argument.
10487         (super_post_startup_inferior): Likewise.
10488         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10489         'self' argument.
10490         (super_post_startup_inferior): Likewise.
10491         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10492         Add 'self' argument.
10493         (super_post_startup_inferior): Likewise.
10494
10495 2014-02-19  Tom Tromey  <tromey@redhat.com>
10496
10497         * target.h (struct target_ops) <to_load>: Add argument.
10498         * target.c (target_load): Add argument.
10499         (debug_to_load): Add argument.
10500         (update_current_target): Update.
10501         * remote.c (remote_load): Add 'self' argument.
10502         * remote-sim.c (gdbsim_load): Add 'self' argument.
10503         * remote-mips.c (mips_load): Add 'self' argument.
10504         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10505         * monitor.c (monitor_load): Add 'self' argument.
10506         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10507
10508 2014-02-19  Tom Tromey  <tromey@redhat.com>
10509
10510         * target.h (struct target_ops) <to_terminal_info>: Add argument.
10511         (target_terminal_info): Add argument.
10512         * target.c (debug_to_terminal_info): Add argument.
10513         (default_terminal_info): Likewise.
10514         * inflow.c (child_terminal_info): Add 'self' argument.
10515         * inferior.h (child_terminal_info): Add 'self' argument.
10516         * go32-nat.c (go32_terminal_info): Add 'self' argument.
10517
10518 2014-02-19  Tom Tromey  <tromey@redhat.com>
10519
10520         * target.h (struct target_ops) <to_terminal_save_ours>: Add
10521         argument.
10522         (target_terminal_save_ours): Add argument.
10523         * target.c (debug_to_terminal_save_ours): Add argument.
10524         (update_current_target): Update.
10525         * inflow.c (terminal_save_ours): Add 'self' argument.
10526         * inferior.h (terminal_save_ours): Add 'self' argument.
10527
10528 2014-02-19  Tom Tromey  <tromey@redhat.com>
10529
10530         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10531         (target_terminal_ours): Add argument.
10532         * target.c (debug_to_terminal_ours): Add argument.
10533         (update_current_target): Update.
10534         * remote.c (remote_terminal_ours): Add 'self' argument.
10535         (remote_close): Update.
10536         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10537         * inflow.c (terminal_ours): Add 'self' argument.
10538         * inferior.h (terminal_ours): Add 'self' argument.
10539         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10540
10541 2014-02-19  Pedro Alves  <palves@redhat.com>
10542             Tom Tromey  <tromey@redhat.com>
10543
10544         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10545         argument.
10546         (target_terminal_ours_for_output): Add argument.
10547         * target.c (debug_to_terminal_ours_for_output): Add argument.
10548         (update_current_target): Update.
10549         * inflow.c (terminal_ours_for_output): Add 'self' argument.
10550         * inferior.h (terminal_ours_for_output): Add 'self' argument.
10551         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10552
10553 2014-02-19  Tom Tromey  <tromey@redhat.com>
10554
10555         * target.h (struct target_ops) <to_terminal_inferior>: Add
10556         argument.
10557         * target.c (target_terminal_inferior): Add argument.
10558         (update_current_target): Update.
10559         * remote.c (remote_terminal_inferior): Add 'self' argument.
10560         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10561         * inflow.c (terminal_inferior): Add 'self' argument.
10562         * inferior.h (terminal_inferior): Add 'self' argument.
10563         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10564         (go32_terminal_inferior): Add 'self' argument.
10565
10566 2014-02-19  Tom Tromey  <tromey@redhat.com>
10567
10568         * target.h (struct target_ops) <to_terminal_init>: Add argument.
10569         (target_terminal_init): Add argument.
10570         * target.c (debug_to_terminal_init): Add argument.
10571         (update_current_target): Update.
10572         * inflow.c (terminal_init_inferior): Add 'self' argument.
10573         * inferior.h (terminal_init_inferior): Add 'self' argument.
10574         * go32-nat.c (go32_terminal_init): Add 'self' argument.
10575         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10576
10577 2014-02-19  Tom Tromey  <tromey@redhat.com>
10578
10579         * target.h (struct target_ops)
10580         <to_can_accel_watchpoint_condition>: Add argument.
10581         (target_can_accel_watchpoint_condition): Add argument.
10582         * target.c (debug_to_can_accel_watchpoint_condition): Add
10583         argument.
10584         (update_current_target): Update.
10585         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10586         'self' argument.
10587
10588 2014-02-19  Tom Tromey  <tromey@redhat.com>
10589
10590         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10591         Add argument.
10592         (target_region_ok_for_hw_watchpoint): Add argument.
10593         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10594         (default_region_ok_for_hw_watchpoint): Add argument.
10595         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10596         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10597         argument.
10598         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10599         argument.
10600         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10601         argument.
10602         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10603         'self' argument.
10604         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10605         'self' argument.
10606         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10607         'self' argument.
10608         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10609         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10610         'self' argument.
10611         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10612         Add 'self' argument.
10613
10614 2014-02-19  Tom Tromey  <tromey@redhat.com>
10615
10616         * target.h (struct target_ops) <to_insert_watchpoint>: Add
10617         argument.
10618         (target_insert_watchpoint): Add argument.
10619         * target.c (debug_to_insert_watchpoint): Add argument.
10620         (update_current_target): Update.
10621         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10622         * remote.c (remote_insert_watchpoint): Add 'self' argument.
10623         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10624         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10625         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10626         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10627         argument.
10628         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10629         (procfs_insert_hw_watchpoint): Add 'self' argument.
10630         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10631         argument.
10632         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10633         argument.
10634         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10635         argument.
10636         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10637         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10638         argument.
10639         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10640         'self' argument.
10641
10642 2014-02-19  Tom Tromey  <tromey@redhat.com>
10643
10644         * target.h (struct target_ops) <to_remove_watchpoint>: Add
10645         argument.
10646         (target_remove_watchpoint): Add argument.
10647         * target.c (debug_to_remove_watchpoint): Add argument.
10648         (update_current_target): Update.
10649         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10650         * remote.c (remote_remove_watchpoint): Add 'self' argument.
10651         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10652         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10653         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10654         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10655         argument.
10656         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10657         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10658         argument.
10659         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10660         argument.
10661         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10662         argument.
10663         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10664         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10665         argument.
10666         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10667         'self' argument.
10668
10669 2014-02-19  Tom Tromey  <tromey@redhat.com>
10670
10671         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10672         argument.
10673         (target_remove_hw_breakpoint): Add argument.
10674         * target.c (debug_to_remove_hw_breakpoint): Add argument.
10675         (update_current_target): Update.
10676         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10677         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10678         argument.
10679         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10680         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10681         argument.
10682         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10683         'self' argument.
10684
10685 2014-02-19  Tom Tromey  <tromey@redhat.com>
10686
10687         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10688         argument.
10689         (target_insert_hw_breakpoint): Add argument.
10690         * target.c (debug_to_insert_hw_breakpoint): Add argument.
10691         (update_current_target): Update.
10692         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10693         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10694         argument.
10695         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10696         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10697         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10698         argument.
10699         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10700         'self' argument.
10701
10702 2014-02-19  Tom Tromey  <tromey@redhat.com>
10703
10704         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10705         argument.
10706         (target_can_use_hardware_watchpoint): Add argument.
10707         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10708         (update_current_target): Update.
10709         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10710         argument.
10711         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10712         argument.
10713         * remote.c (remote_check_watch_resources): Add 'self' argument.
10714         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10715         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10716         argument.
10717         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10718         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10719         argument.
10720         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10721         argument.
10722         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10723         argument.
10724         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10725         argument.
10726         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10727         argument.
10728         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10729         argument.
10730         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10731         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10732         argument.
10733         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10734         'self' argument.
10735
10736 2014-02-19  Tom Tromey  <tromey@redhat.com>
10737
10738         * target.h (struct target_ops) <to_post_attach>: Add argument.
10739         (target_post_attach): Add argument.
10740         * target.c (debug_to_post_attach): Add argument.
10741         (update_current_target): Update.
10742         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10743         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10744         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10745         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10746         * inf-child.c (inf_child_post_attach): Add 'self' argument.
10747
10748 2014-02-19  Tom Tromey  <tromey@redhat.com>
10749
10750         * windows-nat.c (windows_close): Add 'self' argument.
10751         * tracepoint.c (tfile_close): Add 'self' argument.
10752         * target.h (struct target_ops) <to_close>: Add argument.
10753         * target.c (target_close): Add argument.
10754         (update_current_target): Update.
10755         * remote.c (remote_close): Add 'self' argument.
10756         * remote-sim.c (gdbsim_close): Add 'self' argument.
10757         * remote-mips.c (mips_close): Add 'self' argument.
10758         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10759         * record-full.c (record_full_close): Add 'self' argument.
10760         * record-btrace.c (record_btrace_close): Add 'self' argument.
10761         * monitor.h (monitor_close): Add 'self' argument.
10762         * monitor.c (monitor_close): Add 'self' argument.
10763         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10764         * linux-nat.c (linux_nat_close): Add argument.
10765         * go32-nat.c (go32_close): Add 'self' argument.
10766         * exec.c (exec_close_1): Add 'self' argument.
10767         * ctf.c (ctf_close): Add 'self' argument.
10768         * corelow.c (core_close): Add 'self' argument.
10769         (core_close_cleanup): Update.
10770         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10771         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10772
10773 2014-02-19  Tom Tromey  <tromey@redhat.com>
10774
10775         * remote.c (remote_load): New function.
10776         (init_remote_ops): Use it.
10777
10778 2014-02-19  Tom Tromey  <tromey@redhat.com>
10779
10780         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10781         argument.
10782         * common/linux-btrace.h (linux_supports_btrace): Update.
10783         * remote.c (remote_supports_btrace): Add "self" argument.
10784         * target-delegates.c: Rebuild.
10785         * target.c (target_supports_btrace): Remove.
10786         * target.h (struct target_ops) <to_supports_btrace>: Add
10787         target_ops argument.
10788         (target_supports_btrace): New define.
10789
10790 2014-02-19  Tom Tromey  <tromey@redhat.com>
10791
10792         * record-full.c (record_full_beneath_to_resume_ops)
10793         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10794         (record_full_beneath_to_wait)
10795         (record_full_beneath_to_store_registers_ops)
10796         (record_full_beneath_to_store_registers)
10797         (record_full_beneath_to_xfer_partial_ops)
10798         (record_full_beneath_to_xfer_partial)
10799         (record_full_beneath_to_insert_breakpoint_ops)
10800         (record_full_beneath_to_insert_breakpoint)
10801         (record_full_beneath_to_remove_breakpoint_ops)
10802         (record_full_beneath_to_remove_breakpoint)
10803         (record_full_beneath_to_stopped_by_watchpoint)
10804         (record_full_beneath_to_stopped_data_address)
10805         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10806         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10807         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10808         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10809         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10810         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10811         (tmp_to_stopped_data_address, tmp_to_async): Remove.
10812         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
10813         (record_full_resume, record_full_wait_1)
10814         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10815         (record_full_store_registers, record_full_xfer_partial)
10816         (record_full_insert_breakpoint, record_full_remove_breakpoint)
10817         (record_full_async, record_full_core_xfer_partial): Use target
10818         delegation.
10819         * target-delegates.c: Rebuild.
10820         * target.c (current_xfer_partial): Remove.
10821         (update_current_target): Do not INHERIT or de_fault
10822         to_insert_breakpoint, to_remove_breakpoint,
10823         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10824         to_is_async_p, to_async.  Do not set to_xfer_partial field.
10825         (default_xfer_partial): Simplify.
10826         (current_xfer_partial): Remove.
10827         (target_wait, target_resume): Simplify.
10828         (find_default_can_async_p, find_default_is_async_p): Update.
10829         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10830         to_xfer_partial, to_stopped_by_watchpoint,
10831         to_stopped_data_address.
10832         (target_store_registers): Simplify.
10833         (forward_target_remove_breakpoint)
10834         (forward_target_insert_breakpoint): Remove.
10835         (target_remove_breakpoint, target_insert_breakpoint)
10836         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10837         * target.h (struct target_ops) <to_resume, to_wait,
10838         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10839         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10840         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10841         markup.
10842         (forward_target_remove_breakpoint)
10843         (forward_target_insert_breakpoint): Remove.
10844         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10845         directly.
10846         (record_btrace_insert_breakpoint): Delegate directly.
10847
10848 2014-02-19  Tom Tromey  <tromey@redhat.com>
10849
10850         PR build/7701:
10851         * target-delegates.c: New file.
10852         * target.c: Include target-delegates.c.
10853         (init_dummy_target): Call install_dummy_methods.
10854         (complete_target_initialization): Call install_delegators.
10855         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10856         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10857         * make-target-delegates: New file.
10858
10859 2014-02-19  Tom Tromey  <tromey@redhat.com>
10860
10861         * record.c (find_record_target): Use find_target_at.
10862         * target.c (find_target_at): New function.
10863         * target.h (find_target_at): Declare.
10864
10865 2014-02-19  Tom Tromey  <tromey@redhat.com>
10866
10867         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10868         Add 'ops' argument.
10869         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10870         'ops' argument.
10871         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10872         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10873         'ops' argument.
10874         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10875         argument.
10876         * linux-nat.c (save_sigtrap): Update.
10877         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10878         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10879         (linux_nat_close): Update.
10880         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10881         argument.
10882         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10883         argument.
10884         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10885         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10886         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10887         (tmp_to_async): Add 'ops' argument.
10888         (record_full_stopped_by_watchpoint, record_full_async)
10889         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10890         argument.
10891         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10892         (m32r_stopped_by_watchpoint): Add 'ops' argument.
10893         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10894         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10895         (remote_is_async_p, remote_async): Add 'ops' argument.
10896         (remote_stopped_data_address): Update.
10897         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10898         * target.c (update_current_target)
10899         (find_default_can_async_p, find_default_is_async_p): Update.
10900         (init_dummy_target): Update.
10901         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10902         * target.h (struct target_ops) <to_stopped_by_watchpoint,
10903         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10904         (target_can_async_p, target_is_async_p, target_async)
10905         (target_stopped_by_watchpoint): Update.
10906
10907 2014-02-19  Yao Qi  <yao@codesourcery.com>
10908
10909         PR gdb/16220
10910         * gdbarch.sh: Remove startup_gdbarch.
10911         * gdbarch.c: Regenerated.
10912         * gdbarch.h: Likewise.
10913
10914 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
10915
10916         * rl78-tdep.c (rl78_g10_register_name): New function.
10917         (rl78_return_value): Add g10 support.
10918         (rl78_gdbarch_init): Register rl78_g10_register_name for the
10919         g10.
10920
10921 2014-02-17  Doug Evans  <xdje42@gmail.com>
10922
10923         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10924         (SUBDIR_GUILE_SRCS): Ditto.
10925         (scm-gsmob.o): Ditto.
10926
10927 2014-02-17  Yao Qi  <yao@codesourcery.com>
10928
10929         * gnu-nat.c (ILL_RPC): Declare defined function.
10930
10931 2014-02-17  Yao Qi  <yao@codesourcery.com>
10932
10933         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10934         mach_msg_type_number_t.
10935         (gnu_write_inferior): Likewise.
10936
10937 2014-02-17  Yao Qi  <yao@codesourcery.com>
10938
10939         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10940         in format string.
10941         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10942         (inf_validate_procs, inf_signal): Likewise.
10943         (S_exception_raise_request): Likewise.
10944         (do_mach_notify_dead_name): Likewise.
10945         (steal_exc_port): Likewise.
10946         (gnu_read_inferior): Change 'copy_count''s type to
10947         mach_msg_type_number_t.
10948         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
10949         format string.
10950
10951 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
10952
10953         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10954         flag.  Adjust all users; in particular...
10955         (gnu_wait): ..., don't decrement its value in here...
10956         (gnu_create_inferior): ..., and instead set the flag in here,
10957         around the startup_inferior call, and call that one with
10958         START_INFERIOR_TRAPS_EXPECTED.
10959
10960         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10961         (ILL_RPC): ... new macro.
10962         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10963         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10964         (do_mach_notify_send_once, S_proc_setmsgport_reply)
10965         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10966         functions with ILL_RPC macro.
10967         (S_proc_pid2task_reply, S_proc_task2pid_reply)
10968         (S_proc_task2proc_reply, S_proc_proc2task_reply)
10969         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10970         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10971         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10972         (S_proc_getlogin_reply, S_proc_getsid_reply)
10973         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10974         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10975         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10976         (S_proc_getnports_reply, S_proc_is_important_reply)
10977         (S_proc_get_code_reply): New stub functions, generated with
10978         ILL_RPC macro.
10979
10980         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10981         collected the type check structures.
10982
10983         * reply_mig_hack.awk: Don't expect to see the auto keyword.
10984
10985 2014-02-14  Doug Evans  <dje@google.com>
10986
10987         * target.c (target_write_partial): Fix result type.
10988
10989 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
10990
10991         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10992         the proper offsets to access fpregset_t.
10993
10994 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
10995
10996         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10997         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10998         * h8300-tdep.c (setmachinelist): Remove global.
10999         * hppa-tdep.c (hppa_sigtramp): Remove global.
11000         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11001         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11002         * ravenscar-thread.c (update_target_observer): Remove global.
11003         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11004
11005 2014-02-12  Tom Tromey  <tromey@redhat.com>
11006
11007         * common/rsp-low.c: Update comments.
11008         * common/rsp-low.h: Update comments.
11009
11010 2014-02-12  Tom Tromey  <tromey@redhat.com>
11011
11012         * common/rsp-low.c (convert_ascii_to_int): Remove.
11013         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11014
11015 2014-02-12  Tom Tromey  <tromey@redhat.com>
11016
11017         * common/rsp-low.h (unhexify): Don't declare.
11018         * common/rsp-low.c (unhexify): Remove.
11019
11020 2014-02-12  Tom Tromey  <tromey@redhat.com>
11021
11022         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11023         * common/rsp-low.c (convert_int_to_ascii): Remove.
11024
11025 2014-02-12  Tom Tromey  <tromey@redhat.com>
11026
11027         * common/rsp-low.h (hexify): Don't declare.
11028         * common/rsp-low.c (hexify): Remove.
11029
11030 2014-02-12  Tom Tromey  <tromey@redhat.com>
11031
11032         * common/rsp-low.c (hexify): Never take strlen of argument.
11033
11034 2014-02-12  Tom Tromey  <tromey@redhat.com>
11035
11036         * common/rsp-low.c (bin2hex): Never take strlen of argument.
11037         * remote.c (extended_remote_run, remote_rcmd)
11038         (remote_download_trace_state_variable, remote_save_trace_data)
11039         (remote_set_trace_notes): Update.
11040         * tracepoint.c (encode_source_string, tfile_write_status)
11041         (tfile_write_uploaded_tsv): Update.
11042
11043 2014-02-12  Tom Tromey  <tromey@redhat.com>
11044
11045         * tracepoint.c: Include rsp-low.h.
11046         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11047         * remote.c: Include rsp-low.h.
11048         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11049         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11050         (remote_unescape_input): Move to common/rsp-low.c.
11051         * common/rsp-low.h: New file.
11052         * common/rsp-low.c: New file.
11053         * Makefile.in (SFILES): Add common/rsp-low.c.
11054         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11055         (COMMON_OBS): Add rsp-low.o.
11056         (rsp-low.o): New target.
11057
11058 2014-02-12  Tom Tromey  <tromey@redhat.com>
11059
11060         * utils.h: Include print-utils.h.
11061         (host_address_to_string, plongest, pulongest, phex, phex_nz)
11062         (int_string, core_addr_to_string, core_addr_to_string_nz)
11063         (hex_string, hex_string_custom): Don't declare.
11064         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11065         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11066         (hex_string_custom, int_string, core_addr_to_string)
11067         (core_addr_to_string_nz, host_address_to_string): Move to
11068         common/print-utils.c.
11069         * common/print-utils.h: New file.
11070         * common/print-utils.c: New file
11071         * Makefile.in (SFILES): Add common/print-utils.c.
11072         (HFILES_NO_SRCDIR): Add common/print-utils.h.
11073         (COMMON_OBS): Add print-utils.o.
11074         (print-utils.o): New target.
11075
11076 2014-02-12  Tom Tromey  <tromey@redhat.com>
11077
11078         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11079
11080 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
11081
11082         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11083
11084 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
11085
11086         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11087         if a PT_IO ptrace request returns sucessfully but indicates that 0
11088         bytes were transferred.
11089
11090 2014-02-12  Pedro Alves  <palves@redhat.com>
11091             Kevin Buettner <kevinb@redhat.com>
11092
11093         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11094         TYPE_INSTANCE_FLAG_CODE_SPACE.
11095
11096 2014-02-12  Pedro Alves  <palves@redhat.com>
11097
11098         * h8300-tdep.c (pseudo_from_raw_register)
11099         (raw_from_pseudo_register): New functions.
11100         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11101         them.
11102
11103 2014-02-12  Pedro Alves  <palves@redhat.com>
11104
11105         * h8300-tdep.c (h8300_register_sim_regno): New function.
11106         (h8300_gdbarch_init): Install h8300_register_sim_regno as
11107         gdbarch_register_sim_regno hook.
11108
11109 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
11110
11111         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11112
11113 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
11114
11115         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11116
11117 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
11118
11119         * obsd-tdep.h (obsd_init_abi): New prototype.
11120         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11121         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11122         (obsd_init_abi): New functions.
11123         * i386obsd-tdep.c: Include "obsd-tdep.h".
11124         (i386obsd_init_abi): Call obsd_init_abi.
11125         * amd64obsd-tdep.c: Include "obsd-tdep.h".
11126         (amd64obsd_init_abi): Call obsd_init_abi.
11127         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11128         obsd-tdep.c to gdb_target_obs.
11129
11130 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
11131
11132         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11133         double float arguments to 16-byte in the argument slots.
11134
11135 2014-02-11  Doug Evans  <xdje42@gmail.com>
11136
11137         * configure.ac: Don't crash if pkg-config is not found and guile
11138         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
11139         in guile checks.
11140         * configure: Regenerate.
11141
11142 2014-02-11  Yao Qi  <yao@codesourcery.com>
11143
11144         * aix-thread.c (aix_thread_xfer_partial): Update comments.
11145         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11146         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11147         * gnu-nat.c (gnu_xfer_memory): Likewise.
11148         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
11149         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11150         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11151         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11152
11153 2014-02-11  Yao Qi  <yao@codesourcery.com>
11154
11155         * target.h (enum target_xfer_error): Rename to ...
11156         (enum target_xfer_status): ... it.  New.  All users updated.
11157         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11158         New.
11159         (TARGET_XFER_STATUS_ERROR_P): New macro.
11160         (target_xfer_error_to_string): Remove declaration.
11161         (target_xfer_status_to_string): Declare.
11162         (target_xfer_partial_ftype): Adjust it.
11163         (struct target_ops) <to_xfer_partial>: Return
11164         target_xfer_status.  Add argument xfered_len.  Update
11165         comments.
11166         * target.c (target_xfer_error_to_string): Rename to ...
11167         (target_xfer_status_to_string): ... it.  New.  All callers
11168         updated.
11169         (target_read_live_memory): Likewise.  Call target_xfer_partial
11170         instead of target_read.
11171         (memory_xfer_live_readonly_partial): Return
11172         target_xfer_status.  Add argument xfered_len.
11173         (raw_memory_xfer_partial): Likewise.
11174         (memory_xfer_partial_1): Likewise.
11175         (memory_xfer_partial): Likewise.
11176         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
11177         properly.  Update debug message.
11178         (default_xfer_partial, current_xfer_partial): Likewise.
11179         (target_write_partial): Likewise.
11180         (target_read_partial): Likewise.  All callers updated.
11181         (read_whatever_is_readable): Likewise.
11182         (target_write_with_progress): Likewise.
11183         (target_read_alloc_1): Likewise.
11184
11185         * aix-thread.c (aix_thread_xfer_partial): Likewise.
11186         * auxv.c (procfs_xfer_auxv): Likewise.
11187         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11188         * bfd-target.c (target_bfd_xfer_partial): Likewise.
11189         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11190         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11191         * corefile.c (read_memory): Adjust.
11192         * corelow.c (core_xfer_partial): Likewise.
11193         * ctf.c (ctf_xfer_partial): Likewise.
11194         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
11195         updated.
11196         (darwin_xfer_partial): Likewise.
11197         * exec.c (section_table_xfer_memory_partial): Likewise.  All
11198         callers updated.
11199         (exec_xfer_partial): Likewise.
11200         * exec.h (section_table_xfer_memory_partial): Update
11201         declaration.
11202         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
11203         negative.
11204         (gnu_xfer_partial): Likewise.
11205         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11206         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11207         (ia64_hpux_xfer_solib_got): Likewise.
11208         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
11209         type of 'partial_len' to ULONGEST.
11210         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11211         * linux-nat.c (linux_xfer_siginfo ): Likewise.
11212         (linux_nat_xfer_partial): Likewise.
11213         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11214         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11215         * monitor.c (monitor_xfer_memory): Likewise.
11216         (monitor_xfer_partial): Likewise.
11217         * procfs.c (procfs_xfer_partial): Likewise.
11218         * record-btrace.c (record_btrace_xfer_partial): Likewise.
11219         * record-full.c (record_full_xfer_partial): Likewise.
11220         (record_full_core_xfer_partial): Likewise.
11221         * remote-sim.c (gdbsim_xfer_memory): Likewise.
11222         (gdbsim_xfer_partial): Likewise.
11223         * remote.c (remote_write_bytes_aux): Likewise.  All callers
11224         updated.
11225         (remote_write_bytes, remote_read_bytes): Likewise.  All
11226         callers updated.
11227         (remote_flash_erase): Likewise.  All callers updated.
11228         (remote_write_qxfer): Likewise.  All callers updated.
11229         (remote_read_qxfer): Likewise.  All callers updated.
11230         (remote_xfer_partial): Likewise.
11231         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11232         (rs6000_xfer_shared_libraries): Likewise.
11233         * sol-thread.c (sol_thread_xfer_partial): Likewise.
11234         (sol_thread_xfer_partial): Likewise.
11235         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11236         (sparc_xfer_partial): Likewise.
11237         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
11238         updated.
11239         (spu_xfer_partial): Likewise.
11240         * spu-multiarch.c (spu_xfer_partial): Likewise.
11241         * tracepoint.c (tfile_xfer_partial): Likewise.
11242         * windows-nat.c (windows_xfer_memory): Likewise.
11243         (windows_xfer_shared_libraries): Likewise.
11244         (windows_xfer_partial): Likewise.
11245         * valprint.c: Replace 'target_xfer_error' with
11246         'target_xfer_status' in comments.
11247
11248 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
11249
11250         Checked in by Joel Brobecker <brobecker@adacore.com>.
11251         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11252
11253 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
11254
11255         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11256         function parameters.
11257
11258 2014-02-10  Will Newton  <will.newton@linaro.org>
11259
11260         * elfread.c (elf_rel_plt_read): Look for a .got section if
11261         looking up .got.plt fails.
11262         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11263         on address passed to elf_gnu_ifunc_record_cache.
11264         (elf_gnu_ifunc_resolve_addr): Likewise.
11265         (elf_gnu_ifunc_resolver_return_stop): Likewise.
11266
11267 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
11268
11269         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11270         (X_RETTURN): New macro.
11271         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11272
11273         * sparc64-tdep.c (sparc64_init_abi): Hook
11274         sparc_in_function_epilogue_p.
11275
11276 2014-02-10  Gary Benson  <gbenson@redhat.com>
11277
11278         * symfile-debug.c (debug_qf_expand_symtabs_matching):
11279         Rename name_matcher to symbol_matcher.
11280
11281 2014-02-10  Gary Benson  <gbenson@redhat.com>
11282
11283         * symfile-debug.c (debug_qf_expand_symtabs_matching):
11284         Use expand_symtabs_file_matcher_ftype and
11285         expand_symtabs_symbol_matcher_ftype.
11286
11287 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11288
11289         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11290         (struct ada_symbol_cache): New.
11291         (ada_free_symbol_cache): Forward declare.
11292         (struct ada_pspace_data): New.
11293         (ada_pspace_data_handle): New static global.
11294         (get_ada_pspace_data, ada_pspace_data_cleanup)
11295         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11296         (cache_space, cache): Delete, now folded inside struct
11297         ada_pspace_data.
11298         (ada_get_symbol_cache): New function.
11299         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11300         implementation.
11301         (_initialize_ada_language): Remove initialization of cache_space.
11302         Move call to observer_attach_inferior_exit up, grouping it
11303         with the other observer registrations inside this function.
11304         Rename command to be more general.  Add call to
11305         register_program_space_data_with_cleanup.
11306
11307 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11308
11309         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11310         ada_new_objfile_observer.
11311         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11312         (_initialize_tasks): Update uses of ada_new_objfile_observer
11313         and ada_tasks_normal_stop_observer.
11314
11315 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11316
11317         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11318         returned by the 'Length attribute to integer.
11319
11320 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11321
11322         * ada-lang.c (_initialize_ada_language): Initialize
11323         cache_space obstack.
11324
11325 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11326
11327         * ada-lang.c (HASH_SIZE): New macro.
11328         (struct cache_entry): New type.
11329         (cache_space, cache): New static globals.
11330         (ada_clear_symbol_cache, find_entry): New functions.
11331         (lookup_cached_symbol, cache_symbol): Implement.
11332         (ada_new_objfile_observer, ada_free_objfile_observer): New.
11333         (_initialize_ada_language): Attach ada_new_objfile_observer
11334         and ada_free_objfile_observer.
11335
11336 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11337
11338         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11339         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11340         struct block * parameter.
11341         (ada_lookup_symbol_list_worker): Constify local variable "block".
11342         Remove cast which is no longer necessary.
11343
11344 2014-02-10  Doug Evans  <xdje42@gmail.com>
11345
11346         Add Guile as an extension language.
11347         * NEWS: Mention Guile scripting.
11348         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11349         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11350         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11351         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11352         (CLIBS): Add GUILE_LIBS.
11353         (install-guile): New rule.
11354         (guile.o): New rule.
11355         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11356         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11357         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11358         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11359         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11360         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11361         (scm-type.o, scm-utils.o, scm-value.o): New rules.
11362         * configure.ac: New option --with-guile.
11363         * configure: Regenerate.
11364         * config.in: Regenerate.
11365         * auto-load.c: Remove #include "python/python.h".  Add #include
11366         "gdb/section-scripts.h".
11367         (source_section_scripts): Handle Guile scripts.
11368         (_initialize_auto_load): Add name of Guile objfile script to
11369         scripts-directory help text.
11370         * breakpoint.c (condition_command): Tweak comment to include Scheme.
11371         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11372         (struct breakpoint): New member scm_bp_object.
11373         * defs.h (enum command_control_type): New value guile_control.
11374         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
11375         "extension.h".
11376         (show_user): Update comment.
11377         (_initialize_cli_cmds): Update help text for "show user".  Update help
11378         text for max-user-call-depth.
11379         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
11380         "extension.h".
11381         (multi_line_command_p): Add guile_control.
11382         (print_command_lines): Handle guile_control.
11383         (execute_control_command, recurse_read_control_structure): Ditto.
11384         (process_next_line): Recognize "guile" commands.
11385         * disasm.c (gdb_disassemble_info): Make non-static.
11386         * disasm.h: #include "dis-asm.h".
11387         (struct gdbarch): Add forward decl.
11388         (gdb_disassemble_info): Declare.
11389         * extension.c: #include "guile/guile.h".
11390         (extension_languages): Add guile.
11391         (get_ext_lang_defn): Handle EXT_LANG_GDB.
11392         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11393         * gdbtypes.c (get_unsigned_type_max): New function.
11394         (get_signed_type_minmax): New function.
11395         * gdbtypes.h (get_unsigned_type_max): Declare.
11396         (get_signed_type_minmax): Declare.
11397         * guile/README: New file.
11398         * guile/guile-internal.h: New file.
11399         * guile/guile.c: New file.
11400         * guile/guile.h: New file.
11401         * guile/scm-arch.c: New file.
11402         * guile/scm-auto-load.c: New file.
11403         * guile/scm-block.c: New file.
11404         * guile/scm-breakpoint.c: New file.
11405         * guile/scm-disasm.c: New file.
11406         * guile/scm-exception.c: New file.
11407         * guile/scm-frame.c: New file.
11408         * guile/scm-gsmob.c: New file.
11409         * guile/scm-iterator.c: New file.
11410         * guile/scm-lazy-string.c: New file.
11411         * guile/scm-math.c: New file.
11412         * guile/scm-objfile.c: New file.
11413         * guile/scm-ports.c: New file.
11414         * guile/scm-pretty-print.c: New file.
11415         * guile/scm-safe-call.c: New file.
11416         * guile/scm-string.c: New file.
11417         * guile/scm-symbol.c: New file.
11418         * guile/scm-symtab.c: New file.
11419         * guile/scm-type.c: New file.
11420         * guile/scm-utils.c: New file.
11421         * guile/scm-value.c: New file.
11422         * guile/lib/gdb.scm: New file.
11423         * guile/lib/gdb/boot.scm: New file.
11424         * guile/lib/gdb/experimental.scm: New file.
11425         * guile/lib/gdb/init.scm: New file.
11426         * guile/lib/gdb/iterator.scm: New file.
11427         * guile/lib/gdb/printing.scm: New file.
11428         * guile/lib/gdb/types.scm: New file.
11429         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11430         (VPATH): Add $(GUILE_SRCDIR).
11431         (GUILE_DIR): New variable.
11432         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11433         (all): Add stamp-guile dependency.
11434         (stamp-guile): New rule.
11435         (clean-guile, install-guile, uninstall-guile): New rules.
11436         (install-only): Add install-guile dependency.
11437         (uninstall): Add uninstall-guile dependency.
11438         (clean): Add clean-guile dependency.
11439
11440 2014-02-09  Doug Evans  <xdje42@gmail.com>
11441
11442         Revert this patch (which I approved, mea culpa).
11443
11444         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
11445
11446         * Makefile.in (all-lib): Remove.
11447         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11448
11449 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
11450
11451         Fix Python stack corruption.
11452         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11453         gdb_py_longest.
11454
11455 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
11456
11457         * Makefile.in (all-lib): Remove.
11458         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11459
11460 2014-02-07  Doug Evans  <dje@google.com>
11461
11462         * extension-priv.h (extension_language_script_ops): Add comment.
11463         (extension_language_ops): Add comment.
11464         (active_ext_lang_state): Fix typo in comment.
11465
11466 2014-02-07  Pedro Alves  <palves@redhat.com>
11467
11468         PR breakpoints/16292
11469         * infrun.c (handle_signal_stop) <signal arrives while stepping
11470         over a breakpoint>: Switch back to the stepping thread.
11471
11472 2014-02-07  Yao Qi  <yao@codesourcery.com>
11473
11474         * target.c (target_xfer_partial): Return zero if LEN is zero.
11475
11476 2014-02-07  Yao Qi  <yao@codesourcery.com>
11477
11478         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11479         (ld_so_xfer_auxv): Likewise.
11480         * bfd-target.c (target_bfd_xfer_partial): Likewise.
11481         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11482         * corelow.c (core_xfer_partial): Likewise.
11483         * ctf.c (ctf_xfer_partial): Likewise.
11484         * darwin-nat.c (darwin_read_dyld_info): Likewise.
11485         (darwin_xfer_partial): Likewise.
11486         * exec.c (exec_xfer_partial): Likewise.
11487         * gnu-nat.c (gnu_xfer_partial): Likewise.
11488         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11489         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11490         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11491         * linux-nat.c (linux_xfer_siginfo): Likewise.
11492         (linux_proc_xfer_spu): Likewise.
11493         * procfs.c (procfs_xfer_partial): Likewise.
11494         * record-full.c (record_full_xfer_partial): Likewise.
11495         (record_full_core_xfer_partial): Likewise.
11496         * remote-sim.c (gdbsim_xfer_partial): Likewise.
11497         * remote.c (remote_write_qxfer): Likewise.
11498         (remote_write_qxfer, remote_read_qxfer): Likewise.
11499         (remote_xfer_partial): Likewise.
11500         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11501         (rs6000_xfer_shared_libraries): Likewise.
11502         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11503         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11504         (spu_xfer_partial): Likewise.
11505         * target.c (memory_xfer_partial_1): Likewise.
11506         * tracepoint.c (tfile_xfer_partial): Likewise.
11507         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11508         (windows_xfer_partial): Likewise.
11509
11510 2014-02-07  Yao Qi  <yao@codesourcery.com>
11511
11512         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
11513         comments.
11514         (core_xfer_shared_libraries_aix): Likewise.
11515         * gdbarch.c, gdbarch.h: Regenerated.
11516         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11517         ULONGEST.  Change 'len_avail' type to ULONGEST.
11518         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11519         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11520         declaration.
11521         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11522
11523 2014-02-07  Yao Qi  <yao@codesourcery.com>
11524
11525         * corefile.c (memory_error): Get 'exception' from ERR and pass
11526         'exception' to throw_error.
11527
11528 2014-02-06  Doug Evans  <xdje42@gmail.com>
11529
11530         * configure.ac (libpython checking): Remove all but python.o from
11531         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
11532         * configure: Regenerate.
11533
11534         * Makefile.in (SFILES): Add extension.c.
11535         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11536         (COMMON_OBS): Add extension.o.
11537         * extension.h: New file.
11538         * extension-priv.h: New file.
11539         * extension.c: New file.
11540
11541         * python/python-internal.h: #include "extension.h".
11542         (gdbpy_auto_load_enabled): Declare.
11543         (gdbpy_apply_val_pretty_printer): Declare.
11544         (gdbpy_apply_frame_filter): Declare.
11545         (gdbpy_preserve_values): Declare.
11546         (gdbpy_breakpoint_cond_says_stop): Declare.
11547         (gdbpy_breakpoint_has_cond): Declare.
11548         (void source_python_script_for_objfile): Delete.
11549         * python/python.c: #include "extension-priv.h".
11550         Delete inclusion of "observer.h".
11551         (extension_language_python): Moved here and renamed from
11552         script_language_python in py-auto-load.c.
11553         Redefined to be of type extension_language_defn.
11554         (python_extension_script_ops): New global.
11555         (python_extension_ops): New global.
11556         (struct python_env): New member previous_active.
11557         (restore_python_env): Call restore_active_ext_lang.
11558         (ensure_python_env): Call set_active_ext_lang.
11559         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11560         New arg extlang.
11561         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11562         New arg extlang.
11563         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11564         New arg extlang.
11565         (gdbpy_eval_from_control_command): Renamed from
11566         eval_python_from_control_command, made static.  New arg extlang.
11567         (gdbpy_source_script) Renamed from source_python_script, made static.
11568         New arg extlang.
11569         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
11570         result to int.  New arg extlang.
11571         (gdbpy_source_objfile_script): Renamed from
11572         source_python_script_for_objfile, made static.  New arg extlang.
11573         (gdbpy_start_type_printers): Renamed from start_type_printers, made
11574         static.  New args extlang, extlang_printers.  Change result type to
11575         "void".
11576         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11577         static.  New arg extlang.  Rename arg printers to extlang_printers
11578         and change type to ext_lang_type_printers *.
11579         (gdbpy_free_type_printers): Renamed from free_type_printers, made
11580         static.  Replace argument arg with extlang, extlang_printers.
11581         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11582         (!HAVE_PYTHON, source_python_script): Delete.
11583         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11584         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11585         (!HAVE_PYTHON, start_type_printers): Delete.
11586         (!HAVE_PYTHON, apply_type_printers): Delete.
11587         (!HAVE_PYTHON, free_type_printers): Delete.
11588         (_initialize_python): Delete call to observer_attach_before_prompt.
11589         (finalize_python): Set/restore active extension language.
11590         (gdbpy_finish_initialization) Renamed from
11591         finish_python_initialization, made static.  New arg extlang.
11592         (gdbpy_initialized): New function.
11593         * python/python.h: #include "extension.h".  Delete #include
11594         "value.h", "mi/mi-cmds.h".
11595         (extension_language_python): Declare.
11596         (GDBPY_AUTO_FILE_NAME): Delete.
11597         (enum py_bt_status): Moved to extension.h and renamed to
11598         ext_lang_bt_status.
11599         (enum frame_filter_flags): Moved to extension.h.
11600         (enum py_frame_args): Moved to extension.h and renamed to
11601         ext_lang_frame_args.
11602         (finish_python_initialization): Delete.
11603         (eval_python_from_control_command): Delete.
11604         (source_python_script): Delete.
11605         (apply_val_pretty_printer): Delete.
11606         (apply_frame_filter): Delete.
11607         (preserve_python_values): Delete.
11608         (gdbpy_script_language_defn): Delete.
11609         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11610         (start_type_printers, apply_type_printers, free_type_printers): Delete.
11611
11612         * auto-load.c: #include "extension.h".
11613         (GDB_AUTO_FILE_NAME): Delete.
11614         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
11615         (script_language_gdb): Delete, moved to extension.c and renamed to
11616         extension_language_gdb.
11617         (source_gdb_script_for_objfile): Delete.
11618         (auto_load_pspace_info): New member unsupported_script_warning_printed.
11619         (loaded_script): Change type of language member to
11620         struct extension_language_defn *.
11621         (init_loaded_scripts_info): Initialize
11622         unsupported_script_warning_printed.
11623         (maybe_add_script): Make static.  Change type of language arg to
11624         struct extension_language_defn *.
11625         (clear_section_scripts): Reset unsupported_script_warning_printed.
11626         (auto_load_objfile_script_1): Rewrite to use extension language API.
11627         (auto_load_objfile_script): Make public.  Remove support-compiled-in
11628         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11629         (source_section_scripts): Rewrite to use extension language API.
11630         (load_auto_scripts_for_objfile): Rewrite to use
11631         auto_load_scripts_for_objfile.
11632         (collect_matching_scripts_data): Change type of language member to
11633         struct extension_language_defn *.
11634         (auto_load_info_scripts): Change type of language arg to
11635         struct extension_language_defn *.
11636         (unsupported_script_warning_print): New function.
11637         (script_not_found_warning_print): Make static.
11638         (_initialize_auto_load): Rewrite construction of scripts-directory
11639         help.
11640         * auto-load.h (struct objfile): Add forward decl.
11641         (struct script_language): Delete.
11642         (struct auto_load_pspace_info): Add forward decl.
11643         (struct extension_language_defn): Add forward decl.
11644         (maybe_add_script): Delete.
11645         (auto_load_objfile_script): Declare.
11646         (script_not_found_warning_print): Delete.
11647         (auto_load_info_scripts): Update prototype.
11648         (auto_load_gdb_scripts_enabled): Declare.
11649         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11650         auto_load_python_scripts_enabled and made public.
11651         (script_language_python): Delete, moved to python.c.
11652         (gdbpy_script_language_defn): Delete.
11653         (info_auto_load_python_scripts): Update to use
11654         extension_language_python.
11655
11656         * breakpoint.c (condition_command): Replace call to
11657         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11658         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11659         with call to breakpoint_ext_lang_cond_says_stop.
11660         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11661         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
11662         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11663         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11664         New arg slang.
11665         (local_setattro): Print name of extension language with existing
11666         stop condition.
11667
11668         * valprint.c (val_print, value_print): Update to call
11669         apply_ext_lang_val_pretty_printer.
11670         * cp-valprint.c (cp_print_value): Update call to
11671         apply_ext_lang_val_pretty_printer.
11672         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11673         (gdbpy_apply_val_pretty_printer): Renamed from
11674         apply_val_pretty_printer.  New arg extlang.
11675         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11676
11677         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11678         extension language API.
11679         * cli/cli-script.c (execute_control_command): Update to call
11680         eval_ext_lang_from_control_command.
11681
11682         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11683         enum ext_lang_bt_status values.  Update call to
11684         apply_ext_lang_frame_filter.
11685         (mi_cmd_stack_list_locals): Ditto.
11686         (mi_cmd_stack_list_args): Ditto.
11687         (mi_cmd_stack_list_variables): Ditto.
11688         * mi/mi-main.c: Delete #include "python/python-internal.h".
11689         Add #include "extension.h".
11690         (mi_cmd_list_features): Replace reference to python internal variable
11691         gdb_python_initialized with call to ext_lang_initialized_p.
11692
11693         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11694         Update to use enum ext_lang_frame_args.  Update to call
11695         apply_ext_lang_frame_filter.
11696         * python/py-framefilter.c (extract_sym): Update to use enum
11697         ext_lang_bt_status.
11698         (extract_value, py_print_type, py_print_value): Ditto.
11699         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11700         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11701         (py_print_frame): Ditto.
11702         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11703         New arg extlang.  Update to use enum ext_lang_bt_status.
11704
11705         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11706         finish_python_initialization.  Replace with call to
11707         finish_ext_lang_initialization.
11708
11709         * typeprint.c (do_free_global_table): Update to call
11710         free_ext_lang_type_printers.
11711         (create_global_typedef_table): Update to call
11712         start_ext_lang_type_printers.
11713         (find_global_typedef): Update to call apply_ext_lang_type_printers.
11714         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11715         (type_print_options): Change type of global_printers from "void *"
11716         to "struct ext_lang_type_printers *".
11717
11718         * value.c (preserve_values): Update to call preserve_ext_lang_values.
11719         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11720         (gdbpy_preserve_values): Renamed from preserve_python_values.
11721         New arg extlang.
11722         (!HAVE_PYTHON, preserve_python_values): Delete.
11723
11724         * utils.c (quit_flag): Delete, moved to extension.c.
11725         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11726         extension.c.
11727
11728         * eval.c: Delete #include "python/python.h".
11729         * main.c: Delete #include "python/python.h".
11730
11731         * defs.h: Update comment.
11732
11733 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
11734
11735         GDB 7.7 released.
11736
11737 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
11738
11739         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11740         defined.
11741
11742 2014-02-05  Yao Qi  <yao@codesourcery.com>
11743
11744         * remote.c (remote_pass_signals): Remove local 'buf' and use
11745         rs->buf.
11746         (remote_program_signals): Likewise.
11747
11748 2014-02-05  Yao Qi  <yao@codesourcery.com>
11749
11750         * ctf.c: Include "inferior.h" and "gdbthread.h".
11751         (CTF_PID): A new macro.
11752         (ctf_open): Call inferior_appeared and add_thread_silent.
11753         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11754         (ctf_thread_alive): New function.
11755         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11756
11757 2014-02-05  Yao Qi  <yao@codesourcery.com>
11758
11759         Revert this patch:
11760
11761         2013-05-24  Yao Qi  <yao@codesourcery.com>
11762
11763         * tracepoint.c (TFILE_PID): Remove.
11764         (tfile_open): Don't add thread and inferior.
11765         (tfile_close): Don't set 'inferior_ptid'.  Don't call
11766         exit_inferior_silent.
11767         (tfile_thread_alive): Remove.
11768         (init_tfile_ops): Don't set field 'to_thread_alive' of
11769         tfile_ops.
11770
11771 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
11772
11773         * remote.c (remote_start_remote): Call remote_check_symbols even
11774         if only symbol-file (not file) has been given.
11775
11776 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11777
11778         * gdbarch.sh (skip_entrypoint): New callback.
11779         * gdbarch.c, gdbarch.h: Regenerate.
11780         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11781         * infrun.c (fill_in_stop_func): Likewise.
11782         * ppc-linux-tdep.c: Include "elf/ppc64.h".
11783         (ppc_elfv2_elf_make_msymbol_special): New function.
11784         (ppc_elfv2_skip_entrypoint): Likewise.
11785         (ppc_linux_init_abi): Install them for ELFv2.
11786
11787 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11788
11789         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11790         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11791         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11792         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
11793         structures returned in GPRs.
11794
11795 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11796
11797         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11798         offset to the stack parameter list for the ELFv2 ABI.
11799
11800 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11801
11802         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11803         set_gdbarch_convert_from_func_ptr_addr and
11804         set_gdbarch_elf_make_msymbol_special for ELFv1.
11805         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11806         function descriptors on ELFv1.
11807         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
11808         set up r12 at function entry.
11809
11810 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11811
11812         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11813         (struct gdbarch_tdep): New member elf_abi.
11814
11815         * rs6000-tdep.c: Include "elf/ppc64.h".
11816         (rs6000_gdbarch_init): Detect ELF ABI version.
11817
11818 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11819
11820         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11821         within a register pair holding a DFP 128-bit value on little-endian.
11822         (ppc64_sysv_abi_return_value_base): Likewise.
11823         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11824         (dfp_pseudo_register_write): Likewise.
11825
11826 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11827
11828         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11829         offset on little-endian when passing _Decimal32.
11830         (ppc64_sysv_abi_return_value_base): Likewise for return values.
11831
11832 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11833
11834         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11835         of the overlapped FP register within the VSX register on little-
11836         endian platforms.
11837         (efpr_pseudo_register_write): Likewise.
11838
11839 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11840
11841         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11842         offset on little-endian when passing small structures.
11843
11844 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11845
11846         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11847         (struct ppc64_sysv_argpos): New data structure.
11848         (ppc64_sysv_abi_push_float): Remove.
11849         (ppc64_sysv_abi_push_val): New function.
11850         (ppc64_sysv_abi_push_integer): Likewise.
11851         (ppc64_sysv_abi_push_freg): Likewise.
11852         (ppc64_sysv_abi_push_vreg): Likewise.
11853         (ppc64_sysv_abi_push_param): Likewise.
11854         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11855         (ppc64_sysv_abi_return_value_base): New function.
11856         (ppc64_sysv_abi_return_value): Refactor to use it.
11857
11858 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11859
11860         * NEWS: Document new target powerpc64le-*-linux*.
11861
11862 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
11863
11864         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11865         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11866         core dumps.
11867         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11868         register set used in ELF core dumps.  Add floating-point register set.
11869
11870 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
11871
11872         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11873         dwarf2_to_gdb[] table using symbolic constants.  Adjust
11874         penultimate entry from number representing the PC register
11875         to symbolic constant representing the MDR register.  Add
11876         constant for the PC register to the end of the table.
11877
11878 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
11879
11880         * bsd-kvm.c: Include <sys/param.h>
11881
11882 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
11883
11884         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11885
11886 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
11887
11888         * ada-lang.h (clear_ada_sym_cache): Delete.
11889
11890 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
11891
11892         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11893
11894 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
11895
11896         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11897           the sigreturn register save area only if the syscall is
11898           sigreturn.
11899
11900 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
11901
11902         * valops.c (value_slice): Minor reformatting.
11903
11904 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
11905
11906         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11907
11908 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
11909
11910         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11911         New static globals.
11912         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11913         (ada_ignore_descriptive_types_p): New static global.
11914         (find_parallel_type_by_descriptive_type): Return immediately
11915         if ada_ignore_descriptive_types_p is set.
11916         (_initialize_ada_language): Register new commands "maintenance
11917         set ada", "maintenance show ada", "maintenance set ada
11918         ignore-descriptive-types" and "maintenance show ada
11919         ignore-descriptive-types".
11920         * NEWS: Add entry for new "maint ada set/show
11921         ignore-descriptive-types" commands.
11922
11923 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
11924
11925         * record-btrace.c (record_btrace_close): Call btrace_teardown
11926         for all threads.
11927
11928 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11929
11930         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11931         "ui-out.h".
11932
11933 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11934
11935         * ada-typeprint (type_is_full_subrange_of_target_type):
11936         New function.
11937         (print_range): Add parameter bounds_prefered_p.  If not set,
11938         try printing range types using the name of their base type.
11939         (print_range_type): Add parameter bounds_prefered_p.
11940         Use it in call to print_range.
11941         (print_array_type, ada_print_type): Update calls to print_range
11942         and print_range_type.
11943
11944 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11945
11946         * ada-typeprint.c (print_array_type, print_choices, print_range)
11947         (print_range_bound, print_dynamic_range_bound, print_range_type):
11948         Remove declaration.
11949
11950 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11951
11952         * ada-typeprint.c (print_range): Add missing empty line
11953         after local declaration.
11954
11955 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11956
11957         * ada-valprint.c (print_optional_low_bound): Get index_type's
11958         target type for as long as it is a TYPE_CODE_RANGE.
11959
11960 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11961
11962         * procfs.c (procfs_make_note_section): Remove assertion and
11963         associated comment.
11964
11965 2014-01-24  Yao Qi  <yao@codesourcery.com>
11966
11967         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11968         * corelow.c (get_core_siginfo): Likewise.
11969
11970 2014-01-24  Yao Qi  <yao@codesourcery.com>
11971
11972         * remote.c (remote_write_bytes_aux): Change type of 'len' to
11973         ULONGEST.  Don't check 'len' is negative.
11974         (remote_write_bytes):  Change type of 'len' to ULONGEST.
11975
11976 2014-01-23  Tom Tromey  <tromey@redhat.com>
11977
11978         PR python/16485:
11979         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11980         Handle exception from frame.block.
11981         (FrameVars.fetch_frame_locals): Likewise.
11982
11983 2014-01-23  Tom Tromey  <tromey@redhat.com>
11984
11985         PR python/16487:
11986         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11987         on a NULL pointer.  Move "goto error" to correct place.
11988
11989 2014-01-23  Tom Tromey  <tromey@redhat.com>
11990
11991         PR python/16491:
11992         * python/py-framefilter.c (apply_frame_filter): Call
11993         ensure_python_env after computing gdbarch.
11994
11995 2014-01-23  Yao Qi  <yao@codesourcery.com>
11996
11997         * target.c (raw_memory_xfer_partial): Change argument type
11998         from void * to gdb_byte *.
11999         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12000
12001 2014-01-22  Doug Evans  <dje@google.com>
12002
12003         New gdbserver option --debug-format=timestamp.
12004         * NEWS: Mention it.
12005
12006 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
12007
12008         * syscalls/s390x-linux.xml: New file.
12009         * syscalls/s390-linux.xml: New file.
12010         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12011         (XML_SYSCALL_FILENAME_S390X): Likewise.
12012         (op_svc): New enum value for SVC opcode.
12013         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12014         (s390_linux_get_syscall_number): New function.
12015         (s390_gdbarch_init): Register '*get_syscall_number' and the
12016         syscall xml file name.
12017         * data-directory/Makefile.in (SYSCALLS_FILES): Add
12018         "s390-linux.xml" and "s390x-linux.xml".
12019         * NEWS: Announce new feature.
12020
12021 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
12022
12023         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12024
12025 2014-01-22  Pedro Alves  <palves@redhat.com>
12026
12027         * xtensa-config.c: Include defs.h.
12028
12029 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
12030
12031         * common/common-utils.h: Add "ARI:" comment beside __func__
12032         reference.
12033
12034 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
12035
12036         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12037         documentation a bit.
12038
12039 2014-01-21  Roland McGrath  <mcgrathr@google.com>
12040
12041         * configure.ac: Call AM_PROG_INSTALL_STRIP.
12042         * configure: Regenerate.
12043         * aclocal.m4: Regenerate.
12044         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12045         New substituted variables.
12046         (install-strip): New target.
12047         (INSTALL_SCRIPT): New substituted variable.
12048         (FLAGS_TO_PASS): Add it.
12049         (install-only): Use $(INSTALL_SCRIPT) rather than
12050         $(INSTALL_PROGRAM) for gcore.
12051
12052 2014-01-20  Tom Tromey  <tromey@redhat.com>
12053
12054         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12055         together.
12056
12057 2014-01-20  Tom Tromey  <tromey@redhat.com>
12058
12059         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12060         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12061         (deprecated_cmd_warning, complete_on_cmdlist): Update.
12062         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12063         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12064         (struct cmd_list_element) <flags>: Remove.
12065         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12066         doc_allocated>: New fields.
12067         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12068         bitfields.
12069         * maint.c (maintenance_do_deprecate): Update.
12070         * top.c (execute_command): Update.
12071
12072 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
12073
12074         * xtensa-linux-nat.c: Include asm/ptrace.h.
12075
12076 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12077
12078         * Makefile.in (SFILES): Add d-support.c.
12079         (COMMON_OBS): Add d-support.o.
12080         * d-lang.h (d_parse_symbol): Add comment, now defined in
12081         d-support.c.
12082         * d-lang.c (parse_call_convention)
12083         (parse_attributes, parse_function_types)
12084         (parse_function_args, parse_type, parse_identifier)
12085         (call_convention_p, d_parse_symbol): Move functions to ...
12086         * d-support.c: ... New file.
12087
12088 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12089
12090         * d-lang.h (d_parse_symbol): Add declaration.
12091         * d-lang.c (extract_identifiers)
12092         (extract_type_info): Remove functions.
12093         (parse_call_convention, parse_attributes)
12094         (parse_function_types, parse_function_args)
12095         (parse_type, parse_identifier, call_convention_p)
12096         (d_parse_symbol): New functions.
12097         (d_demangle): Use d_parse_symbol to demangle D symbols.
12098
12099 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12100
12101         * d-lang.h (struct builtin_d_type): New data type.
12102         (builtin_d_type): Add declaration.
12103         * d-lang.c (d_language_arch_info, build_d_types)
12104         (builtin_d_type): New functions.
12105         (enum d_primitive_types): New data type.
12106         (d_language_defn): Change c_language_arch_info to
12107         d_language_arch_info.
12108         (d_type_data): New static variable.
12109         (_initialize_d_language): Initialize d_type_data.
12110
12111 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12112
12113         * d-lang.h (d_main_name): Add declaration.
12114         * d-lang.c (d_main_name): New function.
12115         * symtab.c (find_main_name): Add call to d_main_name.
12116
12117 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12118
12119         * d-lang.c (d_language_defn): Change macro_expansion_c to
12120         macro_expansion_no.
12121
12122 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12123
12124         * MAINTAINERS: Add myself as a write-after-approval maintainer.
12125
12126 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
12127
12128         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12129         gdb_exception" declaration.
12130         * remote.c (getpkt_or_notif_sane): Likewise.
12131
12132 2014-01-17  Doug Evans  <dje@google.com>
12133
12134         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12135         function, contents of dirnames_to_char_ptr_vec_append moved here.
12136         (delim_string_to_char_ptr_vec): New function.
12137         (dirnames_to_char_ptr_vec_append): Rewrite.
12138         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12139
12140 2014-01-17  Doug Evans  <dje@google.com>
12141
12142         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12143         and moved here ...
12144         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12145         #include "common-utils.h".
12146         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12147         * common/vec.h (VEC_ASSERT_PASS): Update.
12148         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12149         (MACH_CHECK_ERROR): Update.
12150
12151 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
12152
12153         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12154         comments.
12155         * gdbarch.h: Regenerate.
12156
12157 2014-01-16  Tom Tromey  <tromey@redhat.com>
12158
12159         * value.c (struct value) <regnum>: Move earlier.
12160
12161 2014-01-16  Tom Tromey  <tromey@redhat.com>
12162
12163         * remote.c (extended_remote_create_inferior): Rename from
12164         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
12165         old implementation.
12166
12167 2014-01-16  Pedro Alves  <palves@redhat.com>
12168
12169         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12170         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12171         the backchain.
12172
12173 2014-01-16  Doug Evans  <dje@google.com>
12174
12175         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12176
12177 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12178
12179         * btrace.h (btrace_thread_flag): New.
12180         (struct btrace_thread_info) <flags>: New.
12181         * record-btrace.c (record_btrace_resume_thread)
12182         (record_btrace_find_thread_to_move, btrace_step_no_history)
12183         (btrace_step_stopped, record_btrace_start_replaying)
12184         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12185         (record_btrace_find_resume_thread): New.
12186         (record_btrace_resume, record_btrace_wait): Extend.
12187         (record_btrace_can_execute_reverse): New.
12188         (record_btrace_open): Fail in non-stop mode.
12189         (record_btrace_set_replay): Split into this, ...
12190         (record_btrace_stop_replaying): ... this, ...
12191         (record_btrace_clear_histories): ... and this.
12192         (init_record_btrace_ops): Init to_can_execute_reverse.
12193         * NEWS: Announce it.
12194
12195 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12196
12197         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12198         (forward_target_decr_pc_after_break)
12199         (target_decr_pc_after_break): New.
12200         * target.c (forward_target_decr_pc_after_break)
12201         (target_decr_pc_after_break): New.
12202         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12203         instead of gdbarch_decr_pc_after_break.
12204         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12205         instead of gdbarch_decr_pc_after_break.
12206         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12207         instead of gdbarch_decr_pc_after_break.
12208         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12209         instead of gdbarch_decr_pc_after_break.
12210         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12211         instead of gdbarch_decr_pc_after_break.
12212         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12213         instead of gdbarch_decr_pc_after_break.
12214
12215 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12216
12217         * btrace.c: Include regcache.h.
12218         (btrace_add_pc): New.
12219         (btrace_enable): Call btrace_add_pc.
12220         (btrace_is_empty): New.
12221         * btrace.h (btrace_is_empty): New.
12222         * record-btrace.c (require_btrace, record_btrace_info): Call
12223         btrace_is_empty.
12224
12225 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12226
12227         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12228         Support delta reads.
12229         (linux_disable_btrace): Change return type.
12230         * common/linux-btrace.h (linux_read_btrace): Change parameters
12231         and return type to allow error reporting.  Update users.
12232         (linux_disable_btrace): Change return type.  Update users.
12233         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12234         New.
12235         (btrace_error): New.
12236         (btrace_block) <begin>: Comment on BEGIN == 0.
12237         * btrace.c (btrace_compute_ftrace): Start from the end of
12238         the current trace.
12239         (btrace_stitch_trace, btrace_clear_history): New.
12240         (btrace_fetch): Read delta trace, return if replaying.
12241         (btrace_clear): Move clear history code to btrace_clear_history.
12242         (parse_xml_btrace): Throw an error if parsing failed.
12243         * target.h (struct target_ops) <to_read_btrace>: Change parameters
12244         and return type to allow error reporting.
12245         (target_read_btrace): Change parameters and return type to allow
12246         error reporting.
12247         * target.c (target_read_btrace): Update.
12248         * remote.c (remote_read_btrace): Support delta reads.  Pass
12249         errors on.
12250         * NEWS: Announce it.
12251
12252 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12253
12254         * record.h (record_btrace_frame_unwind)
12255         (record_btrace_tailcall_frame_unwind): New declarations.
12256         * dwarf2-frame: Include record.h
12257         (dwarf2_frame_cfa): Throw an error for btrace frames.
12258         * record-btrace.c: Include hashtab.h.
12259         (btrace_get_bfun_name): New.
12260         (btrace_call_history): Call btrace_get_bfun_name.
12261         (struct btrace_frame_cache): New.
12262         (bfcache): New.
12263         (bfcache_hash, bfcache_eq, bfcache_new): New.
12264         (btrace_get_frame_function): New.
12265         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12266         (record_btrace_frame_this_id): Compute own id.
12267         (record_btrace_frame_prev_register): Provide PC, throw_error
12268         for all other registers.
12269         (record_btrace_frame_sniffer): Detect btrace frames.
12270         (record_btrace_tailcall_frame_sniffer): New.
12271         (record_btrace_frame_dealloc_cache): New.
12272         (record_btrace_frame_unwind): Add new functions.
12273         (record_btrace_tailcall_frame_unwind): New.
12274         (_initialize_record_btrace): Allocate cache.
12275         * btrace.c (btrace_clear): Call reinit_frame_cache.
12276         * NEWS: Announce it.
12277
12278 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12279
12280         * record-btrace.c (record_btrace_set_replay)
12281         (record_btrace_goto_begin, record_btrace_goto_end)
12282         (record_btrace_goto): New.
12283         (init_record_btrace_ops): Initialize them.
12284         * NEWS: Announce it.
12285
12286 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12287
12288         * record-btrace.c (record_btrace_find_new_threads)
12289         (record_btrace_thread_alive): New.
12290         (init_record_btrace_ops): Initialize to_find_new_threads and
12291         to_thread_alive.
12292
12293 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12294
12295         * record-btrace.c (record_btrace_resume): New.
12296         (record_btrace_wait): New.
12297         (init_record_btrace_ops): Initialize to_wait and to_resume.
12298
12299 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12300
12301         * record-btrace.c (record_btrace_xfer_partial)
12302         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12303         (record_btrace_allow_memory_access): New.
12304         (init_record_btrace_ops): Initialize new methods.
12305         * target.c (raw_memory_xfer_partial): Bail out if target reports
12306         that this memory is not available.
12307
12308 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12309
12310         * target.h (target_ops) <to_insert_breakpoint>
12311         <to_remove_breakpoint>: Add target_ops parameter.
12312         (forward_target_insert_breakpoint): New.
12313         (forward_target_remove_breakpoint): New.
12314         (memory_remove_breakpoint, memory_insert_breakpoint):
12315         Add target_ops parameter.
12316         * target.c (target_insert_breakpoint): Split into this and ...
12317         (forward_target_insert_breakpoint): ... this.
12318         (target_remove_breakpoint): Split into this and ...
12319         (forward_target_remove_breakpoint): ... this.
12320         (debug_to_insert_breakpoint): Add target_ops parameter.
12321         Call forward_target_insert_breakpoint.
12322         (debug_to_remove_breakpoint): Add target_ops parameter.
12323         Call forward_target_remove_breakpoint.
12324         (update_current_target): Do not inherit or default to_insert_breakpoint
12325         and to_remove_breakpoint.
12326         * corelow.c (ignore): Add target_ops parameter.
12327         * exec.c (ignore): Add target_ops parameter.
12328         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12329         Add target_ops parameter.
12330         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12331         Add target_ops parameter.
12332         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12333         Add target_ops parameter.
12334         * record-full.c (record_full_beneath_to_insert_breakpoint)
12335         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12336         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12337         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12338         (record_full_core_remove_breakpoint): Add target_ops parameter.
12339         Update users.
12340         (record_full_beneath_to_insert_breakpoint_ops)
12341         (record_full_beneath_to_remove_breakpoint_ops)
12342         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12343         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12344         tmp_to_remove_breakpoint_ops,
12345         record_full_beneath_to_insert_breakpoint_ops, and
12346         record_full_beneath_to_remove_breakpoint_ops.
12347         * remote-m32r-sdi.c (m32r_insert_breakpoint)
12348         (m32r_remove_breakpoint): Add target_ops parameter.
12349         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12350         Add target_ops parameter.
12351         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12352         Add target_ops parameter.
12353
12354 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12355             Markus Metzger  <markus.t.metzger@intel.com>
12356
12357         * record-btrace.c: Include frame-unwind.h.
12358         (record_btrace_frame_unwind_stop_reason)
12359         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12360         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12361         New.
12362         (init_record_btrace_ops): Install it.
12363
12364 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12365
12366         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12367         get_prev_frame_1.
12368
12369 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12370
12371         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12372         earlier.
12373
12374 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12375
12376         * frame-unwind.c: Include target.h.
12377         (frame_unwind_try_unwinder): New function with code from ...
12378         (frame_unwind_find_by_frame): ... here.  New variable
12379         unwinder_from_target, call also target_get_unwinder)
12380         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12381         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12382         * target.h (struct target_ops): New fields to_get_unwinder and
12383         to_get_tailcall_unwinder.
12384         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12385
12386 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12387
12388         * record-btrace.c (record_btrace_fetch_registers)
12389         (record_btrace_store_registers)
12390         (record_btrace_to_prepare_to_store): New.
12391         (init_record_btrace_ops): Add the above.
12392
12393 2014-01-16  Tom Tromey  <tromey@redhat.com>
12394
12395         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12396         * target.h (struct target_ops) <to_prepare_to_store>: Add
12397         argument.
12398         (target_prepare_to_store): Add argument.
12399         * target.c (debug_to_prepare_to_store): Add argument.
12400         (update_current_target): Update.
12401         * remote.c (remote_prepare_to_store): Add 'self' argument.
12402         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12403         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12404         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12405         * record-full.c (record_full_core_prepare_to_store): Add 'self'
12406         argument.
12407         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12408         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12409         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12410         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12411         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12412
12413 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12414
12415         * btrace.h (replay) <replay>: New.
12416         (btrace_is_replaying): New.
12417         * btrace.c (btrace_clear): Free replay iterator.
12418         (btrace_is_replaying): New.
12419         * record-btrace.c (record_btrace_is_replaying): New.
12420         (record_btrace_info): Print insn number if replaying.
12421         (record_btrace_insn_history): Start at replay position.
12422         (record_btrace_call_history): Start at replay position.
12423         (init_record_btrace_ops): Init to_record_is_replaying.
12424
12425 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12426
12427         * record-btrace.c (record_btrace_insn_history_range): Include
12428         end.
12429         (record_btrace_insn_history_from): Adjust range.
12430         (record_btrace_call_history_range): Include
12431         end.
12432         (record_btrace_call_history_from): Adjust range.
12433         * NEWS: Announce changes.
12434
12435 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12436
12437         * record.h (enum record_print_flag)
12438         <record_print_indent_calls>: New.
12439         * record.c (get_call_history_modifiers): Recognize /c modifier.
12440         (_initialize_record): Document /c modifier.
12441         * record-btrace.c (btrace_call_history): Add btinfo parameter.
12442         Reorder fields.  Optionally indent the function name.  Update
12443         all users.
12444         * NEWS: Announce changes.
12445
12446 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12447
12448         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12449
12450 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12451
12452         * btrace.c (ftrace_new_function): Start counting at one.
12453         * record-btrace.c (record_btrace_info): Adjust number of calls
12454         and insns.
12455         * NEWS: Announce it.
12456
12457 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12458
12459         * record-btrace.c (btrace_call_history_insn_range): Print
12460         insn range as [begin, end].
12461
12462 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12463
12464         * btrace.h (struct btrace_func_link): New.
12465         (enum btrace_function_flag): New.
12466         (struct btrace_inst): Rename to ...
12467         (struct btrace_insn): ...this. Update all users.
12468         (struct btrace_func) <ibegin, iend>: Remove.
12469         (struct btrace_func_link): New.
12470         (struct btrace_func): Rename to ...
12471         (struct btrace_function): ...this. Update all users.
12472         (struct btrace_function) <segment, flow, up, insn, insn_offset)
12473         (number, level, flags>: New.
12474         (struct btrace_insn_iterator): Rename to ...
12475         (struct btrace_insn_history): ...this.
12476         Update all users.
12477         (struct btrace_insn_iterator, btrace_call_iterator): New.
12478         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12479         (struct btrace_target_info) <begin, end, level>
12480         <insn_history, call_history>: New.
12481         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12482         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12483         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12484         (btrace_call_number, btrace_call_begin, btrace_call_end)
12485         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12486         (btrace_find_function_by_number, btrace_set_insn_history)
12487         (btrace_set_call_history): New.
12488         * btrace.c (btrace_init_insn_iterator)
12489         (btrace_init_func_iterator, compute_itrace): Remove.
12490         (ftrace_print_function_name, ftrace_print_filename)
12491         (ftrace_skip_file): Change
12492         parameter to const.
12493         (ftrace_init_func): Remove.
12494         (ftrace_debug): Use new btrace_function fields.
12495         (ftrace_function_switched): Also consider gaining and
12496         losing symbol information).
12497         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12498         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12499         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12500         New.
12501         (ftrace_new_function): Move. Remove debug print.
12502         (ftrace_update_lines, ftrace_update_insns): New.
12503         (ftrace_update_function): Check for call, ret, and jump.
12504         (compute_ftrace): Renamed to ...
12505         (btrace_compute_ftrace): ...this. Rewritten to compute call
12506         stack.
12507         (btrace_fetch, btrace_clear): Updated.
12508         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12509         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12510         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12511         (btrace_call_number, btrace_call_begin, btrace_call_end)
12512         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12513         (btrace_find_function_by_number, btrace_set_insn_history)
12514         (btrace_set_call_history): New.
12515         * record-btrace.c (require_btrace): Use new btrace thread
12516         info fields.
12517         (record_btrace_info, btrace_insn_history)
12518         (record_btrace_insn_history, record_btrace_insn_history_range):
12519         Use new btrace thread info fields and new iterator.
12520         (btrace_func_history_src_line): Rename to ...
12521         (btrace_call_history_src_line): ...this. Use new btrace
12522         thread info fields.
12523         (btrace_func_history): Rename to ...
12524         (btrace_call_history): ...this. Use new btrace thread info
12525         fields and new iterator.
12526         (record_btrace_call_history, record_btrace_call_history_range):
12527         Use new btrace thread info fields and new iterator.
12528
12529 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12530
12531         * frame.h (frame_id_build_unavailable_stack_special): New.
12532         * frame.c (frame_id_build_unavailable_stack_special): New.
12533
12534 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12535
12536         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12537         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12538         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12539         to gdbarch.
12540         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12541         (i386_insn_is_jump, i386_jmp_p): New.
12542         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12543         insn_is_jump to gdbarch.
12544         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12545         * gdbarch.h: Regenerated.
12546         * gdbarch.c: Regenerated.
12547         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12548         (default_insn_is_jump): New.
12549         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12550         (default_insn_is_jump): New.
12551
12552 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12553
12554         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12555         Change to ...
12556         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
12557         (btrace_read_type) <btrace_read_new>: Change to ...
12558         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
12559
12560 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12561
12562         * common/linux-btrace.c (linux_read_btrace): Free trace from
12563         previous iteration.
12564
12565 2014-01-15  Doug Evans  <dje@google.com>
12566
12567         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12568         uint32_t.
12569
12570 2014-01-15  Tom Tromey  <tromey@redhat.com>
12571
12572         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12573         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12574         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12575         (set_objfile_main_name): New function.
12576         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12577         language_of_main>: New fields.
12578         (set_objfile_main_name): Declare.
12579         * symtab.c (find_main_name): Loop over objfiles to find the main
12580         name and language.
12581         (set_main_name): Now static.
12582         (get_main_info): Add comment.
12583         * symtab.h (set_main_name): Don't declare.
12584
12585 2014-01-15  Tom Tromey  <tromey@redhat.com>
12586
12587         * symtab.c (main_progspace_key): New global.
12588         (struct main_info): New.
12589         (name_of_main, language_of_main): Remove.
12590         (get_main_info, main_info_cleanup): New function.
12591         (set_main_name, main_name, main_language): Use get_main_info.
12592         (_initialize_symtab): Initialize main_progspace_key.
12593
12594 2014-01-15  Tom Tromey  <tromey@redhat.com>
12595
12596         * dbxread.c (process_one_symbol): Update.
12597         * dwarf2read.c (read_partial_die): Update.
12598         * symfile.c (set_initial_language): Call main_language.
12599         * symtab.c (language_of_main): Now static.
12600         (set_main_name): Add 'lang' parameter.
12601         (find_main_name): Update.
12602         (main_language): New function.
12603         (symtab_observer_executable_changed): Update.
12604         * symtab.h (set_main_name): Update.
12605         (language_of_main): Remove.
12606         (main_language): Declare.
12607
12608 2014-01-15  Tom Tromey  <tromey@redhat.com>
12609
12610         * symfile.c (init_entry_point_info): Use new "initialized" field.
12611         Update.
12612         * objfiles.h (struct entry_point) <initialized>: New field.
12613         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12614         (struct objfile) <ei>: ...here.  Remove.
12615         * objfiles.c (entry_point_address_query): Update.
12616
12617 2014-01-15  Tom Tromey  <tromey@redhat.com>
12618
12619         * objfiles.c (entry_point_address_query): Relocate entry point
12620         address.
12621         (objfile_relocate1): Do not relocate entry point address.
12622         * objfiles.h (struct entry_info) <entry_point>: Update comment.
12623         <the_bfd_section_index>: New field.
12624         * symfile.c (init_entry_point_info): Find the entry point's
12625         section.
12626
12627 2014-01-15  Tom Tromey  <tromey@redhat.com>
12628
12629         * solib-frv.c (enable_break): Use entry_point_address_query.
12630
12631 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12632
12633         * NEWS: Add note on improved process record-replay on
12634         arm*-linux* targets.
12635
12636 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12637
12638         * arm-tdep.c (enum arm_record_result): New enum.
12639         (arm_record_unsupported_insn): New function.
12640         (arm_record_coproc_data_proc): Removed.
12641         (thumb2_record_ld_st_multiple): New function.
12642         (thumb2_record_ld_st_dual_ex_tbb): New function.
12643         (thumb2_record_data_proc_sreg_mimm): New function.
12644         (thumb2_record_ps_dest_generic): New function.
12645         (thumb2_record_branch_misc_cntrl): New function.
12646         (thumb2_record_str_single_data): New function.
12647         (thumb2_record_ld_mem_hints): New function.
12648         (thumb2_record_ld_word): New function.
12649         (thumb2_record_lmul_lmla_div): New function.
12650         (thumb2_record_decode_insn_handler): New function.
12651         (decode_insn): Add thumb32 instruction handlers.
12652
12653 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12654
12655         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12656         (struct arm_linux_record_tdep): Declare.
12657         (arm_canonicalize_syscall): New function.
12658         (arm_all_but_pc_registers_record): New function.
12659         (arm_linux_syscall_record): New function.
12660         (arm_linux_init_abi): Add syscall recording constructs.
12661         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12662         decoding.  (arm_record_coproc_data_proc): Update arm syscall
12663         decoding.
12664         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12665         <arm_syscall_record>: New field.
12666         * configure.tgt (arm*-*-linux*): Add linux-record.o to
12667         gdb_target_obs.
12668
12669 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12670
12671         * arm-tdep.c (thumb_record_misc): Update to use sp as base
12672         register for push instruction recording.
12673
12674 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12675
12676         * arm-tdep.c (thumb_record_misc): Update to correct logical
12677         error while recording ldm, ldmia and pop instructions.
12678
12679 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12680
12681         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12682
12683 2014-01-15  Pedro Alves  <palves@redhat.com>
12684
12685         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12686         (go32_resume, go32_fetch_registers, store_register)
12687         (go32_store_registers, go32_prepare_to_store)
12688         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12689         (go32_create_inferior, go32_can_run, go32_terminal_init)
12690         (go32_terminal_inferior, go32_terminal_ours): Delete forward
12691         declarations.
12692
12693 2014-01-15  Tom Tromey  <tromey@redhat.com>
12694
12695         * target.h (async_callback_ftype): New typedef.
12696         (struct target_ops) <to_async>: Use it.
12697
12698 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
12699
12700         * python/py-value.c (get_field_type): Remove unnecessary curly
12701         braces for single-statement if block.
12702
12703 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
12704
12705         * python/py-type.c (convert_field): Add missing empty line
12706         after declarations.
12707
12708 2014-01-14  Doug Evans  <dje@google.com>
12709
12710         * symfile.h (expand_symtabs_matching): Renamed from
12711         expand_partial_symbol_names.  Update prototype.
12712         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12713         * symfile.c (expand_symtabs_matching): Renamed from
12714         expand_partial_symbol_names.  New args file_matcher, kind.
12715         Rename arg fun to symbol_matcher.
12716         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12717         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12718         ada_expand_partial_symbol_name.
12719         (ada_make_symbol_completion_list): Update to call
12720         expand_symtabs_matching.
12721         (ada_add_global_exceptions): Call expand_symtabs_matching.
12722         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12723         call map_symbol_filenames.
12724         * symtab.c (sources_info): Update to call map_symbol_filenames.
12725         (search_symbols): Call expand_symtabs_matching.
12726         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12727         (default_make_symbol_completion_list_break_on): Update to call
12728         expand_symtabs_matching.
12729         (make_source_files_completion_list): Update to call
12730         map_symbol_filenames.
12731
12732 2014-01-14  Doug Evans  <dje@google.com>
12733
12734         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12735         (expand_symtabs_symbol_matcher_ftype): New typedef.
12736         (quick_symbol_functions.expand_symtabs_matching): Update to use.
12737         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12738         * symfile.c (expand_partial_symbol_names): Update to use
12739         expand_symtabs_symbol_matcher_ftype.
12740         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12741         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12742         Arg name_matcher renamed to symbol_matcher.
12743         * psymtab.c (recursively_search_psymtabs): Update to use
12744         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
12745         sym_matcher.
12746         (expand_symtabs_matching_via_partial): Update to use
12747         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12748         Arg name_matcher renamed to symbol_matcher.
12749
12750 2014-01-14  Doug Evans  <dje@google.com>
12751
12752         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12753         (map_partial_symbol_filenames): Ditto.
12754         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12755         (map_partial_symbol_filenames): Ditto.
12756         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12757         (map_partial_symbol_filenames): Ditto.
12758         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12759         (map_partial_symbol_filenames): Ditto.
12760         * symtab.c: Delete #include "psymtab.h".
12761
12762 2014-01-14  Pedro Alves  <palves@redhat.com>
12763             Tom Tromey  <tromey@redhat.com>
12764
12765         * infrun.c (use_displaced_stepping): Use find_record_target
12766         instead of RECORD_IS_USED.
12767         (adjust_pc_after_break): Use record_full_is_used instead of
12768         RECORD_IS_USED.
12769         * record-btrace.c (record_btrace_open): Call record_preopen
12770         instead of checking RECORD_IS_USED.
12771         * record-full.c (record_full_shortname)
12772         (record_full_core_shortname): New globals.
12773         (record_full_is_used): New function.
12774         (find_full_open): Call record_preopen instead of checking
12775         RECORD_IS_USED.
12776         (init_record_full_ops): Set the target's shortname to
12777         record_full_shortname.
12778         (init_record_full_core_ops): Set the target's shortname to
12779         record_full_core_shortname.
12780         * record-full.h (record_full_is_used): Declare.
12781         * record.c (find_record_target): Make extern.
12782         (record_preopen): New function.
12783         * record.h (RECORD_IS_USED): Delete macro.
12784         (find_record_target, record_preopen): Declare functions.
12785
12786 2014-01-14  Yao Qi  <yao@codesourcery.com>
12787
12788         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12789         'len''s type to ULONGEST.
12790         (core_xfer_shared_libraries_aix): Likewise.
12791         * gdbarch.c, gdbarch.h: Regenerated.
12792         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12793         Change type of 'len' to ULONGEST.
12794         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12795         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12796
12797 2014-01-14  Yao Qi  <yao@codesourcery.com>
12798
12799         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12800         type of 'len' to ULONGEST.
12801         (linux_xfer_osdata_processgroups): Likewise.
12802         (linux_xfer_osdata_threads): Likewise.
12803         (linux_xfer_osdata_fds): Likewise.
12804         (linux_xfer_osdata_isockets): Likewise.
12805         (linux_xfer_osdata_shm): Likewise.
12806         (linux_xfer_osdata_sem): Likewise.
12807         (linux_xfer_osdata_msg): Likewise.
12808         (linux_common_xfer_osdata): Likewise.
12809         (struct osdata_type) <getter>: Likewise.
12810         * common/linux-osdata.h (linux_common_xfer_osdata): Update
12811         the declaration.
12812
12813 2014-01-14  Yao Qi  <yao@codesourcery.com>
12814
12815         * target.h (target_xfer_partial_ftype): Update.
12816         (struct target_ops) <to_xfer_partial>: Change 'len' type to
12817         ULONGEST.
12818         * aix-thread.c (aix_thread_xfer_partial): Change type of
12819         argument 'len' to ULONGEST.
12820         * auxv.c (procfs_xfer_auxv): Likewise.
12821         (ld_so_xfer_auxv): Likewise.
12822         (memory_xfer_auxv): Likewise.
12823         * bfd-target.c (target_bfd_xfer_partial): Likewise.
12824         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12825         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12826         * corelow.c (core_xfer_partial): Likewise.
12827         * ctf.c (ctf_xfer_partial): Likewise.
12828         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
12829         '%u'.
12830         (darwin_read_dyld_info): Likewise.
12831         (darwin_xfer_partial): Likewise.
12832         * exec.c (section_table_xfer_memory_partial): Likewise.
12833         (exec_xfer_partial): Likewise.
12834         * exec.h (section_table_xfer_memory_partial): Update
12835         declaration.
12836         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
12837         instead of plongest.
12838         (gnu_xfer_partial): Likewise.
12839         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12840         (ia64_hpux_xfer_solib_got): Likewise.
12841         (ia64_hpux_xfer_partial): Likewise.
12842         * ia64-linux-nat.c (ia64_linux_xfer_partial):
12843         * inf-ptrace.c (inf_ptrace_xfer_partial):
12844         * inf-ttrace.c (inf_ttrace_xfer_partial):
12845         * linux-nat.c (linux_xfer_siginfo): Likewise.
12846         (linux_nat_xfer_partial): Likewise.
12847         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12848         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12849         * monitor.c (monitor_xfer_memory): Likewise.
12850         (monitor_xfer_partial): Likewise.
12851         * procfs.c (procfs_xfer_partial): Likewise.
12852         * record-full.c (record_full_xfer_partial): Likewise.
12853         (record_full_core_xfer_partial): Likewise.
12854         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
12855         instead of plongest.
12856         (gdbsim_xfer_partial): Likewise.
12857         * remote.c (remote_xfer_partial): Likewise.
12858         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12859         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12860         declaration.
12861         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12862         (rs6000_xfer_shared_libraries): Likewise.
12863         * sol-thread.c (sol_thread_xfer_partial): Likewise.
12864         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12865         (sparc_xfer_partial): Likewise.
12866         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12867         (spu_xfer_partial): Likewise.
12868         * spu-multiarch.c (spu_xfer_partial): Likewise.
12869         * target.c (target_read_live_memory): Likewise.
12870         (memory_xfer_live_readonly_partial): Likewise.
12871         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12872         (target_xfer_partial, default_xfer_partial): Likewise.
12873         (current_xfer_partial): Likewise.
12874         * tracepoint.c (tfile_xfer_partial): Likewise.
12875         * windows-nat.c (windows_xfer_memory): Likewise.  Call
12876         pulongest instead of plongest.
12877         (windows_xfer_partial): Likewise.
12878         (windows_xfer_shared_libraries): Likewise.
12879
12880 2014-01-14  Yao Qi  <yao@codesourcery.com>
12881
12882         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12883         target_xfer_partial_ftype.
12884
12885 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
12886
12887         PR python/15464
12888         PR python/16113
12889         * valops.c (value_struct_elt_bitpos): New function
12890         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12891         object to 'None' if the field name is an empty string ("").
12892         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12893         attribute to look for a field when 'name' is 'None'.
12894         (get_field_type): New function
12895
12896 2014-01-13  Doug Evans  <dje@google.com>
12897
12898         PR symtab/16426
12899         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12900         (try_open_dwop_file): Ditto.
12901         * gdb_bfd.c: #include "vec.h".
12902         (bfdp): New typedef.
12903         (struct gdb_bfd_data): New member included_bfds.
12904         (gdb_bfd_unref): Unref all included bfds.
12905         (gdb_bfd_record_inclusion): New function.
12906         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12907
12908 2014-01-13  Tom Tromey  <tromey@redhat.com>
12909
12910         * gdbcore.h (deprecated_core_resize_section_table): Remove.
12911
12912 2014-01-13  Tom Tromey  <tromey@redhat.com>
12913
12914         * defs.h (use_windows): Remove.
12915         * gdb.c (main): Update.
12916         * main.c (captured_main, gdb_main): Update.
12917         * main.h (struct captured_main_args) <use_windows>: Remove.
12918         * top.c (use_windows): Remove.
12919
12920 2014-01-13  Tom Tromey  <tromey@redhat.com>
12921
12922         * defs.h (deprecated_flush_hook): Remove.
12923
12924 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
12925
12926         PR threads/16216
12927         * linux-thread-db.c (try_thread_db_load): Add parameter
12928         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
12929         (try_thread_db_load_from_pdir_1): Move it there from here.
12930         (try_thread_db_load_from_sdir): Update caller.
12931         (try_thread_db_load_from_dir): Move it there from here.
12932
12933 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
12934
12935         * regformats/regdat.sh: Always rewrite the register file.
12936
12937 2014-01-13  Pedro Alves  <palves@redhat.com>
12938
12939         * Makefile.in (CHECK_HEADERS): New variable.
12940         (check-headers:): New rule.
12941
12942 2014-01-13  Tom Tromey  <tromey@redhat.com>
12943
12944         * cli/cli-setshow.c (do_set_command): Update.
12945         * defs.h (deprecated_set_hook): Remove.
12946         * top.c (deprecated_set_hook): Remove.
12947
12948 2014-01-13  Pedro Alves  <palves@redhat.com>
12949
12950         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12951         the tracepoint if the PC is a pseudo-register.
12952
12953 2014-01-13  Tom Tromey  <tromey@redhat.com>
12954
12955         * defs.h (XCALLOC): Remove.
12956         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12957         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12958         * dwarf2loc.c (allocate_piece_closure): Likewise.
12959         * elfread.c (elf_symfile_segments): Likewise.
12960         (elf_symfile_segments): Likewise.
12961         * gdbtypes.c (copy_type_recursive): Likewise.
12962         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12963         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12964         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12965         XCALLOC.
12966         * mt-tdep.c (mt_gdbarch_init): Likewise.
12967         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12968         XCALLOC.
12969         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12970         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12971         * registry.c (registry_alloc_data): Likewise.
12972         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12973         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12974         * serial.c (serial_fdopen_ops): Likewise.
12975         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12976         XCALLOC.
12977         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12978         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12979         not XCALLOC.
12980
12981 2014-01-13  Tom Tromey  <tromey@redhat.com>
12982
12983         * defs.h (XMALLOC): Remove.
12984         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12985         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12986         * cli-out.c (struct ui_out *): Likewise.
12987         * cli/cli-dump.c (add_dump_command): Likewise.
12988         (add_dump_command): Likewise.
12989         * complaints.c (get_complaints): Likewise.
12990         (find_complaint): Likewise.
12991         * dwarf2-frame.c (execute_cfa_program): Likewise.
12992         * dwarf2read.c (abbrev_table_read_table): Likewise.
12993         * gdbarch.sh: Likewise.
12994         * gdbarch.c: Rebuild.
12995         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12996         * interps.c (interp_new): Likewise.
12997         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12998         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12999         * mi/mi-console.c (mi_console_file_new): Likewise.
13000         * mi/mi-interp.c (mi_interpreter_init): Likewise.
13001         * mi/mi-out.c (mi_out_new): Likewise.
13002         * mi/mi-parse.c (mi_parse): Likewise.
13003         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13004         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13005         * observer.c (xalloc_observer_list_node): Likewise.
13006         * regcache.c (regcache_xmalloc_1): Likewise.
13007         * reggroups.c (reggroup_new): Likewise.
13008         (_initialize_reggroup): Likewise.
13009         * registry.c (register_data_with_cleanup): Likewise.
13010         * remote.c (remote_notif_stop_alloc_reply): Likewise.
13011         * ser-base.c (serial_ttystate): Likewise.
13012         * ser-mingw.c (make_pipe_state): Likewise.
13013         * ser-pipe.c (pipe_open): Likewise.
13014         * serial.c (serial_open): Likewise.
13015         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13016         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13017         (tui_alloc_win_info): Likewise.
13018         (tui_add_content_elements): Likewise.
13019         * tui/tui-file.c (tui_file_new): Likewise.
13020         * tui/tui-out.c (tui_out_new): Likewise.
13021         * ui-file.c (mem_file_new): Likewise.
13022         * ui-out.c (push_level): Likewise.
13023         (make_cleanup_ui_out_end): Likewise.
13024         (append_header_to_list): Likewise.
13025         (ui_out_new): Likewise.
13026         * user-regs.c (user_reg_add_builtin): Likewise.
13027
13028 2014-01-13  Tom Tromey  <tromey@redhat.com>
13029
13030         * defs.h (XZALLOC): Remove.
13031         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13032         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13033         (get_ada_tasks_inferior_data): Likewise.
13034         * auto-load.c (get_auto_load_pspace_data): Likewise.
13035         * auxv.c (get_auxv_inferior_data): Likewise.
13036         * bfd-target.c (target_bfd_reopen): Likewise.
13037         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13038         (deprecated_insert_raw_breakpoint): Likewise.
13039         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13040         * corelow.c (core_open): Likewise.
13041         * darwin-nat.c (darwin_check_new_threads): Likewise.
13042         (darwin_attach_pid): Likewise.
13043         * dummy-frame.c (dummy_frame_push): Likewise.
13044         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13045         * dwarf2loc.c (allocate_piece_closure): Likewise.
13046         * elfread.c (elf_symfile_segments): Likewise.
13047         * eval.c (ptrmath_type_p): Likewise.
13048         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13049         * gdbtypes.c (alloc_type_arch): Likewise.
13050         (alloc_type_instance): Likewise.
13051         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13052         * inf-child.c (inf_child_can_use_agent): Likewise.
13053         * inflow.c (get_inflow_inferior_data): Likewise.
13054         * infrun.c (save_infcall_suspend_state): Likewise.
13055         * jit.c (jit_reader_load): Likewise.
13056         (get_jit_objfile_data): Likewise.
13057         (get_jit_program_space_data): Likewise.
13058         (jit_object_open_impl): Likewise.
13059         (jit_symtab_open_impl): Likewise.
13060         (jit_block_open_impl): Likewise.
13061         (jit_frame_sniffer): Likewise.
13062         * linux-fork.c (add_fork): Likewise.
13063         * maint.c (make_command_stats_cleanup): Likewise.
13064         * objfiles.c (get_objfile_pspace_data): Likewise.
13065         * opencl-lang.c (struct lval_closure): Likewise.
13066         * osdata.c (osdata_start_osdata): Likewise.
13067         * progspace.c (new_address_space): Likewise.
13068         (add_program_space): Likewise.
13069         * remote-sim.c (get_sim_inferior_data): Likewise.
13070         * sh-tdep.c (sh_gdbarch_init): Likewise.
13071         * skip.c (Ignore): Likewise.
13072         (skip_delete_command): Likewise.
13073         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13074         (library_list_start_library): Likewise.
13075         (solib_aix_current_sos): Likewise.
13076         * solib-darwin.c (get_darwin_info): Likewise.
13077         (darwin_current_sos): Likewise.
13078         * solib-dsbt.c (get_dsbt_info): Likewise.
13079         * solib-ia64-hpux.c (new_so_list): Likewise.
13080         (ia64_hpux_get_solib_linkage_addr): Likewise.
13081         * solib-spu.c (append_ocl_sos): Likewise.
13082         (spu_current_sos): Likewise.
13083         * solib-svr4.c (get_svr4_info): Likewise.
13084         (svr4_keep_data_in_core): Likewise.
13085         (library_list_start_library): Likewise.
13086         (svr4_default_sos): Likewise.
13087         (svr4_read_so_list): Likewise.
13088         * solib-target.c (library_list_start_library): Likewise.
13089         (solib_target_current_sos): Likewise.
13090         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13091         * symfile-debug.c (install_symfile_debug_logging): Likewise.
13092         * symfile.c (default_symfile_segments): Likewise.
13093         * target-descriptions.c (tdesc_data_init): Likewise.
13094         (tdesc_create_reg): Likewise.
13095         (struct tdesc_type *): Likewise.
13096         (tdesc_create_vector): Likewise.
13097         (tdesc_set_struct_size): Likewise.
13098         (struct tdesc_type *): Likewise.
13099         (tdesc_free_feature): Likewise.
13100         (tdesc_create_feature): Likewise.
13101         * windows-nat.c (windows_add_thread): Likewise.
13102         (windows_make_so): Likewise.
13103         * xml-support.c (gdb_xml_body_text): Likewise.
13104         (gdb_xml_create_parser_and_cleanup): Likewise.
13105         (xml_process_xincludes): Likewise.
13106         * xml-syscall.c (allocate_syscalls_info): Likewise.
13107         (syscall_create_syscall_desc): Likewise.
13108
13109 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
13110
13111         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13112         function, with code from i386_stap_parse_special_token.
13113         (i386_stap_parse_special_token_three_arg_disp): Likewise.
13114         (i386_stap_parse_special_token): Move code to the two functions
13115         above; simplify it.
13116
13117 2014-01-09  Pedro Alves  <palves@redhat.com>
13118             Hui Zhu  <hui@codesourcery.com>
13119
13120         PR gdb/16101
13121         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13122         bp_err_string.  Don't mark the location shlib_disabled if the
13123         error thrown wasn't a generic or memory error.  Catch errors
13124         thrown while inserting breakpoints in overlayed code.  Output
13125         error message of software breakpoints.
13126         * remote.c (remote_insert_breakpoint): If this breakpoint has
13127         target-side commands but this stub doesn't support Z0 packets,
13128         throw NOT_SUPPORTED_ERROR error.
13129         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13130         * target.h (target_insert_breakpoint): Extend comment.
13131         (target_insert_hw_breakpoint): Add comment.
13132
13133 2014-01-08  Pedro Alves  <palves@redhat.com>
13134
13135         * remote.c (remote_add_thread): Add threads silently if starting
13136         up.
13137         (remote_notice_new_inferior): If in all-stop, and starting up,
13138         don't call notice_new_inferior.
13139         (get_current_thread): New function, factored out from ...
13140         (add_current_inferior_and_thread): ... this.  Adjust.
13141         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
13142         found any thread, then select the remote's current thread as GDB's
13143         current thread too.
13144
13145 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
13146
13147         * NEWS: Create a new section for the next release branch.
13148         Rename the section of the current branch, now that it has
13149         been cut.
13150
13151 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
13152
13153         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13154         * version.in: Bump version to 7.7.50.DATE-cvs.
13155
13156 2014-01-08  Yao Qi  <yao@codesourcery.com>
13157
13158         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13159         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
13160         (spu_xfer_partial): Cast 'buf' to 'const char *'.
13161
13162 2014-01-08  Yao Qi  <yao@codesourcery.com>
13163
13164         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13165         return value of bfd_get_filename to symbol_file_add_from_bfd.
13166
13167 2014-01-08  Pierre Muller  <muller@sourceware.org>
13168
13169         Fix PR16201.
13170         * coff-pe-read.c (struct read_pe_section_data): Add index field.
13171         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13172         to prim_record_mininal_symbol_and_info.
13173         (add_pe_forwarded_sym): Use known section number of forwarded symbol
13174         in call to prim_record_minimal_symbol_and_info.
13175         (read_pe_exported_syms): Set index field of section_data.
13176
13177 2014-01-07  Andrew Pinski  <apinski@cavium.com>
13178
13179         * features/aarch64-core.xml (cpsr): Change to be 64bit.
13180         * features/aarch64.c: Regenerate.
13181
13182 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
13183
13184         * target.c (return_null): Define.
13185         (update_current_target): Use it instead of return_zero for
13186         functions that return a pointer.
13187
13188 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
13189
13190         * source.c (add_path): Fix check for duplicated paths in the previously
13191         included paths.
13192
13193 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
13194
13195         * ada-lang.c: Remove duplicated include statements.
13196         * alphabsd-nat.c: Ditto.
13197         * amd64-darwin-tdep.c: Ditto.
13198         * amd64fbsd-nat.c: Ditto.
13199         * auto-load.c: Ditto.
13200         * ax-gdb.c: Ditto.
13201         * breakpoint.c: Ditto.
13202         * dbxread.c: Ditto.
13203         * fork-child.c: Ditto.
13204         * gdb_usleep.c: Ditto.
13205         * i386-darwin-tdep.c: Ditto.
13206         * i386fbsd-nat.c: Ditto.
13207         * infcmd.c: Ditto.
13208         * inferior.c: Ditto.
13209         * jv-lang.c: Ditto.
13210         * linux-nat.c: Ditto.
13211         * linux-tdep.c: Ditto.
13212         * m68kbsd-nat.c: Ditto.
13213         * m68klinux-nat.c: Ditto.
13214         * microblaze-tdep.c: Ditto.
13215         * mips-linux-tdep.c: Ditto.
13216         * mn10300-tdep.c: Ditto.
13217         * nto-tdep.c: Ditto.
13218         * opencl-lang.c: Ditto.
13219         * osdata.c: Ditto.
13220         * printcmd.c: Ditto.
13221         * regcache.c: Ditto.
13222         * remote-m32r-sdi.c: Ditto.
13223         * remote.c: Ditto.
13224         * symfile.c: Ditto.
13225         * symtab.c: Ditto.
13226         * tilegx-linux-nat.c: Ditto.
13227         * tilegx-tdep.c: Ditto.
13228         * tracepoint.c: Ditto.
13229         * valops.c: Ditto.
13230         * vaxbsd-nat.c: Ditto.
13231         * windows-nat.c: Ditto.
13232         * xtensa-tdep.c: Ditto.
13233
13234 2014-01-07  Yao Qi  <yao@codesourcery.com>
13235
13236         * spu-linux-nat.c (_initialize_spu_nat): Declare.
13237
13238 2014-01-07  Yao Qi  <yao@codesourcery.com>
13239             Joel Brobecker  <brobecker@adacore.com>
13240
13241         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13242         (pdc_write_regs): Likewise.
13243         (fetch_regs_kernel_thread): Likewise.
13244         (store_regs_kernel_thread): Likewise.
13245
13246 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13247
13248         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13249         tagged type objects to their actual type.
13250
13251 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13252
13253         * ada-valprint.c (print_field_values): Add "language" parameter.
13254         Update calls to print_field_values and print_variant_part.
13255         Pass new parameter "language" in call to val_print instead
13256         of "current_language".  Replace call to ada_val_print by call
13257         to val_print.
13258         (print_variant_part): Add "language" parameter.
13259         (ada_val_print_struct_union): Update call to print_field_values.
13260
13261 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13262
13263         * ada-valprint.c (ui_memcpy): Delete.
13264         (ada_print_floating): Update documentation.  Add empty line
13265         between between function documentation and implementation.
13266         Delete variable "buffer".  Use ui_file_xstrdup in place of
13267         ui_file_put.  Minor adjustments following this change.
13268
13269 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13270
13271         * ada-valprint.c (ada_val_print_string): New function,
13272         extracted from ada_val_print_array.
13273         (ada_val_print_array): Replace extracted code by call
13274         to ada_val_print_string followed by a return.  Move
13275         "else" branch to the function's top block.
13276
13277 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13278
13279         * ada-valprint.c (ada_val_print_array): Move implementation
13280         down.  Rename parameter "offset" and "val" into "offset_aligned"
13281         and "original_value" respectively.  Add parameter "offset".
13282
13283 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13284
13285         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13286         re-organizing the code. Change the "???" message printed
13287         when target type is a TYPE_CODE_UNDEF into
13288         "<ref to undefined type>".
13289
13290 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13291
13292         * ada-valprint.c (print_record): Delete, implementation inlined...
13293         (ada_val_print_struct_union): ... here.  Remove call to
13294         ada_check_typedef in inlined implementation.
13295
13296 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13297
13298         * ada-valprint.c (ada_val_print_gnat_array): New function,
13299         extracted from ada_val_print_1;
13300         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13301         (ada_val_print_flt, ada_val_print_struct_union)
13302         (ada_val_print_ref): Likewise.
13303         (ada_val_print_1): Delete variables i and elttype.
13304         Replace extracted-out code by call to corresponding
13305         new functions.
13306
13307 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13308
13309         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13310
13311 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13312
13313         * ada-valprint.c (ada_val_print_1): Replace calls to
13314         ada_val_print_1 by calls to val_print.
13315
13316 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13317
13318         * ada-valprint.c (ada_val_print_1): Add parameter "language".
13319         Update calls to self accordingly.  Replace calls to c_val_print
13320         by calls to val_print.
13321
13322 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13323
13324         * ada-valprint.c (print_record): Delete declaration.
13325         (adjust_type_signedness, ada_val_print_1): Likewise.
13326         (ada_val_print): Move function implementation down.
13327         (print_variant_part, print_field_values, print_record):
13328         Move function implementation up.
13329
13330 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13331
13332         * python/py-type.c (typy_get_name): New function.
13333         (type_object_getset): Add entry for attribute "name".
13334         * NEWS: Add entry mentioning this new attribute.
13335
13336 2014-01-07  Yao Qi  <yao@codesourcery.com>
13337
13338         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13339         statement.
13340
13341 2014-01-07  Yao Qi  <yao@codesourcery.com>
13342
13343         * gnu-nat.c (info_port_rights): Add qualifier const to
13344         argument args.
13345
13346 2014-01-07  Yao Qi  <yao@codesourcery.com>
13347
13348         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13349
13350 2014-01-07  Yao Qi  <yao@codesourcery.com>
13351
13352         * gnu-nat.c (make_inf) Update declaration.
13353         (make_inf): Make it static.
13354         (inf_set_traced): Likewise.
13355         (inf_port_to_thread, inf_task_died_status): Likewise.
13356
13357 2014-01-07  Yao Qi  <yao@codesourcery.com>
13358
13359         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13360
13361 2014-01-07  Yao Qi  <yao@codesourcery.com>
13362
13363         * gnu-nat.c (_initialize_gnu_nat): Declare.
13364
13365 2014-01-07  Yao Qi  <yao@codesourcery.com>
13366
13367         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13368         'enum bfd_endian'.
13369         (struct gdbarch_info) <byte_order>: Change type to
13370         'enum bfd_endian'.
13371         <byte_order_for_code>: Likewise.
13372         * gdbarch.c, gdbarch.h: Regenerated.
13373
13374 2014-01-06  Sasha Smundak  <asmundak@google.com>
13375
13376         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13377
13378 2014-01-06  Tom Tromey  <tromey@redhat.com>
13379
13380         * doublest.c (convert_doublest_to_floatformat): Use const, not
13381         CONST.
13382         * somread.c (som_symtab_read): Likewise.
13383
13384 2014-01-07  Hui Zhu  <hui@codesourcery.com>
13385
13386         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13387         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13388         (gdb_bfd_fopen): Ditto.
13389         (gdb_bfd_openr): Ditto.
13390         (gdb_bfd_openw): Ditto.
13391         (gdb_bfd_openr_iovec): Ditto.
13392         (gdb_bfd_fdopenr): Ditto.
13393         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13394         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13395         with xstrdup.
13396         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13397         with xstrdup.
13398         * symfile-mem.c (symbol_file_add_from_memory): Removed
13399         gdb_bfd_stash_filename.
13400
13401 2014-01-03  Doug Evans  <dje@google.com>
13402
13403         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13404         output.
13405
13406 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
13407
13408         Update year range in copyright notice of all files.
13409
13410 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
13411
13412         * top.c (print_gdb_version): Set copyright year to 2014.
13413
13414 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
13415
13416         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13417
13418 For older changes see ChangeLog-2013.
13419 \f
13420 Local Variables:
13421 mode: change-log
13422 left-margin: 8
13423 fill-column: 74
13424 version-control: never
13425 coding: utf-8
13426 End: