Drop 'regset_from_core_section' gdbarch method
[external/binutils.git] / gdb / ChangeLog
1 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2
3         * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
4         * gdbarch.c: Regenerate.
5         * gdbarch.h: Likewise.
6         * corelow.c (sniff_core_bfd): Drop presence check for deleted
7         gdbarch method 'regset_from_core_section'.
8         (get_core_register_section): Remove handling for the case that
9         regset == NULL and regset_from_core_section is defined.
10         (get_core_registers): Drop check for deleted method.
11         * procfs.c (procfs_do_thread_registers): Adjust comment.
12
13 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
14
15         * linux-nat.c (linux_nat_collect_thread_registers): Remove.
16         (linux_nat_make_corefile_notes): Remove.
17         (linux_target_install_ops): Do not set target method
18         'make_corefile_notes'.
19         * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
20         Remove field.
21         (linux_corefile_thread_callback): Instead of args->collect, call
22         linux_collect_thread_registers.
23         (linux_make_corefile_notes): Remove 'collect' parameter.  Return
24         NULL unless there is a regset iterator.
25         (linux_make_corefile_notes_1): Remove.
26         (linux_init_abi): Replace reference to linux_make_corefile_notes_1
27         by linux_make_corefile_notes.
28         * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
29
30 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
31
32         * fbsd-nat.c (find_signalled_thread, find_stop_signal)
33         (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
34         Remove.
35         * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
36
37 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
38
39         * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
40         (xtensa_iterate_over_regset_sections): New.
41         (xtensa_gdbarch_init): Adjust gdbarch initialization.
42
43 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
44
45         * vax-tdep.c (vax_regset_from_core_section): Remove.
46         (vax_iterate_over_regset_sections): New.
47         (vax_gdbarch_init): Adjust gdbarch initialization.
48
49 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
50
51         * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
52         (tilegx_regset_from_core_section): Remove.
53         (tilegx_iterate_over_regset_sections): New.
54         (tilegx_linux_init_abi): Adjust gdbarch initialization.
55
56 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
57
58         * sparc-tdep.c (sparc_regset_from_core_section): Remove.
59         (sparc_iterate_over_regset_sections): New.
60         (sparc32_gdbarch_init): Adjust gdbarch initialization.
61         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
62         targets.
63         * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
64         (sparc64fbsd_init_abi): Call fbsd_init_abi.
65         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
66         target method 'make_corefile_notes'.
67
68 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
69
70         * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
71         'sizeof_gregset' and 'sizeof_fpregset'.
72         * sh-tdep.c (sh_regset_from_core_section): Remove.
73         (sh_iterate_over_regset_sections): New.
74         (sh_gdbarch_init): Adjust gdbarch initialization.
75         * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
76         sizeof_fpregset.
77         * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
78         'sizeof_gregset'.
79
80 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
81
82         * score-tdep.c (score7_linux_regset_from_core_section): Remove.
83         (score7_linux_iterate_over_regset_sections): New.
84         (score_gdbarch_init): Adjust gdbarch initialization.
85
86 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
87
88         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
89         FreeBSD targets.
90         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
91         method 'make_corefile_notes'.
92         * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
93         (ppcfbsd_regset_from_core_section): Remove.
94         (ppcfbsd_iterate_over_regset_sections): New.
95         (ppcfbsd_init_abi): Call fbsd_init_abi.  Adjust gdbarch
96         initialization.
97         * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
98         (ppcnbsd_iterate_over_regset_sections): New.
99         (ppcnbsd_init_abi): Adjust.
100         * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
101         (ppcobsd_iterate_over_regset_sections): New.
102         (ppcobsd_init_abi): Adjust.
103         * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
104         (rs6000_aix_iterate_over_regset_sections): New.
105         (rs6000_aix_init_osabi): Adjust.
106
107 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
108
109         * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
110         (nios2_regset_from_core_section): Remove.
111         (nios2_iterate_over_regset_sections): New.
112         (nios2_linux_init_abi): Adjust gdbarch initialization.
113
114 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
115
116         * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
117         (am33_iterate_over_regset_sections): New.
118         (am33_linux_init_osabi): Adjust gdbarch initialization.
119
120 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
121
122         * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
123         (mips_linux_iterate_over_regset_sections): New.
124         (mips_linux_init_abi): Adjust gdbarch initialization.
125         * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
126         (mips64obsd_iterate_over_regset_sections): New.
127         (mips64obsd_init_abi): Adjust.
128         * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
129         (mipsnbsd_iterate_over_regset_sections): New.
130         (mipsnbsd_init_abi): Adjust.
131
132 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
133
134         * m88k-tdep.c (m88k_regset_from_core_section): Remove.
135         (m88k_iterate_over_regset_sections): New.
136         (m88k_gdbarch_init): Adjust gdbarch initialization.
137
138 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
139
140         * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
141         (ia64_linux_iterate_over_regset_sections): New.
142         (ia64_linux_init_abi): Adjust gdbarch initialization.
143
144 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
145
146         * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
147         (m68kbsd_iterate_over_regset_sections): New.
148         (m68kbsd_init_abi): Adjust gdbarch initialization.
149         * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
150         (m68k_linux_iterate_over_regset_sections): New.
151         (m68k_linux_init_abi): Adjust gdbarch initialization.
152
153 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
154
155         * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
156         (m32r_linux_regset_from_core_section): Remove.
157         (m32r_linux_iterate_over_regset_sections): New.
158         (m32r_linux_init_abi): Adjust gdbarch initialization.
159
160 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
161
162         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
163         (amd64obsd_iterate_over_regset_sections): New.
164         (amd64obsd_core_init_abi): Adjust gdbarch initialization.
165         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
166         Remove.
167         (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset.  Drop
168         regset_from_core_section initialization.
169         * i386-tdep.c (i386_regset_from_core_section): Remove.
170         (i386_iterate_over_regset_sections): New.
171         (i386_gdbarch_init): Adjust gdbarch initialization.
172         * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
173         (i386_iterate_over_regset_sections): New prototype.
174         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
175         Remove.
176         (i386obsd_aout_iterate_over_regset_sections): New.
177         (i386obsd_aout_init_abi): Adjust gdbarch initialization.
178         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
179         targets.
180         * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
181         (amd64fbsd_init_abi): Call fbsd_init_abi.
182         * i386fbsd-tdep.c (fbsd-tdep.h): Include.
183         (i386fbsd4_init_abi): Call fbsd_init_abi.
184         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
185         target method 'make_corefile_notes'.
186         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
187
188 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
189
190         * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
191         (hppa_hpux_iterate_over_regset_sections): New.
192         (hppa_hpux_init_abi): Adjust gdbarch initialization.
193         * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
194         (hppa_linux_iterate_over_regset_sections): New.
195         (hppa_linux_init_abi): Adjust.
196         * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
197         (hppanbsd_iterate_over_regset_sections): New.
198         (hppanbsd_init_abi): Adjust.
199         * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
200         (hppaobsd_iterate_over_regset_sections): New.
201         (hppaobsd_init_abi): Adjust.
202
203 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
204
205         * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
206         (frv_linux_iterate_over_regset_sections): New.
207         (frv_linux_init_abi): Adjust gdbarch initialization.
208
209 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
210
211         * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
212         (armbsd_iterate_over_regset_sections): New prototype.
213         * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
214         (armbsd_iterate_over_regset_sections): New.
215         * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
216         initialization.
217
218 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
219
220         * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
221         (alpha_linux_iterate_over_regset_sections): New.
222         (alpha_linux_init_abi): Adjust gdbarch initialization.
223         * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
224         prototype.
225         (alphanbsd_iterate_over_regset_sections): New prototype.
226
227 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
228
229         * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
230         Remove.
231         (aarch64_linux_iterate_over_regset_sections): New.
232         (aarch64_linux_init_abi): Adjust gdbarch initialization.
233
234 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
235
236         * fbsd-tdep.c: New file.
237         * fbsd-tdep.h: New file.
238         * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
239         (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
240         (ALLDEPFILES): Add fbsd-tdep.c.
241
242 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
243
244         * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
245         parameter.
246         * gdbarch.h: Regenerate.
247         * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
248         iterator.
249         (get_core_register_section): Add parameter 'regset' and use it, if
250         set.  Add parameter 'min_size' and verify the bfd section size
251         against it.
252         (get_core_registers_cb): Add parameter 'regset' and pass it to
253         get_core_register section.  For the "standard" register sections
254         ".reg" and ".reg2", set an appropriate default for human_name.
255         (get_core_registers): Don't abort when the gdbarch has an iterator
256         but no regset_from_core_section.  Add NULL/0 for parameters
257         'regset'/'min_size' in calls to get_core_register_section.
258         * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
259         'regset' and use it instead of calling the
260         regset_from_core_section gdbarch method.
261         * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
262         * i386-tdep.c (i386_supply_xstateregset)
263         (i386_collect_xstateregset, i386_xstateregset): Moved to
264         i386-linux-tdep.c.
265         (i386_regset_from_core_section): Drop handling for .reg-xfp and
266         .reg-xstate.
267         (i386_gdbarch_init): Set tdep field 'fpregset'.  Enable generic
268         core file support only if the regset iterator hasn't been set.
269         * i386-linux-tdep.c (i386_linux_supply_xstateregset)
270         (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
271         Moved from i386-tdep.c and renamed to *_linux*.
272         (i386_linux_iterate_over_regset_sections): Add regset parameter to
273         each callback invocation.  Allow any .reg-xstate size when reading
274         from a core file.
275         * amd64-tdep.c (amd64_supply_xstateregset)
276         (amd64_collect_xstateregset, amd64_xstateregset): Moved to
277         amd64-linux-tdep.c.
278         (amd64_regset_from_core_section): Remove.
279         (amd64_init_abi): Set new tdep field 'fpregset'.  No longer
280         install an amd64-specific regset_from_core_section gdbarch method.
281         * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
282         (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
283         Moved from amd64-tdep.c and renamed to *_linux*.
284         (amd64_linux_iterate_over_regset_sections): Add regset parameter
285         to each callback invocation.  Allow any .reg-xstate size when
286         reading from a core file.
287         * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
288         (arm_linux_iterate_over_regset_sections): Add regset parameter to
289         each callback invocation.
290         (arm_linux_init_abi): No longer set the regset_from_core_section
291         gdbarch method.
292         * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
293         (ppc_linux_iterate_over_regset_sections): Add regset parameter to
294         each callback invocation.
295         (ppc_linux_init_abi): No longer set the regset_from_core_section
296         gdbarch method.
297         * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
298         gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
299         (s390_regset_from_core_section): Remove.
300         (s390_iterate_over_regset_sections): Add regset parameter to each
301         callback invocation.
302         (s390_gdbarch_init): No longer set the regset_from_core_section
303         gdbarch method.  Drop initialization of deleted tdep fields.
304
305 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
306
307         * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
308         (amd64_linux_iterate_over_regset_sections): New.
309         (amd64_linux_init_abi_common): Don't install the regset section
310         list, but the new iterator in gdbarch.
311         * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
312         (arm_linux_vfp_regset_sections): Remove.  Move combined logic...
313         (arm_linux_iterate_over_regset_sections): ...here.  New function.
314         (arm_linux_init_abi): Set iterator instead of section list.
315         * corelow.c (get_core_registers_cb): New function, logic moved
316         from...
317         (get_core_registers): ...loop body here.  Use new iterator method
318         instead of walking through the regset section list.
319         * gdbarch.sh: Remove 'core_regset_sections'.  New method
320         'iterate_over_regset_sections'.  New typedef
321         'iterate_over_regset_sections_cb'.
322         * gdbarch.c: Regenerate.
323         * gdbarch.h: Likewise.
324         * i386-linux-tdep.c (i386_linux_regset_sections)
325         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
326         Remove.
327         (i386_linux_iterate_over_regset_sections): New.
328         (i386_linux_init_abi): Don't choose a regset section list, but
329         install new iterator in gdbarch.
330         * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
331         (linux_collect_regset_section_cb): New function, logic moved
332         from...
333         (linux_collect_thread_registers): ...loop body here.  Use iterator
334         method instead of walking through list.
335         (linux_make_corefile_notes_1): Check for presence of iterator
336         method instead of regset section list.
337         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
338         (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
339         (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
340         (ppc64_linux_fp_regset_sections): Remove.  Move combined logic...
341         (ppc_linux_iterate_over_regset_sections): ...here.  New function.
342         (ppc_linux_init_abi): Don't choose from above regset section
343         lists, but install new iterator in gdbarch.
344         * regset.h (struct core_regset_section): Remove.
345         * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
346         have_linux_v1, have_linux_v2, and have_tdb.
347         (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
348         (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
349         (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
350         (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
351         (s390x_linux64v2_regset_sections): Remove.  Move combined logic...
352         (s390_iterate_over_regset_sections): ...here.  New function.  Use
353         new tdep fields.
354         (s390_gdbarch_init): Set new tdep fields.  Don't choose from above
355         regset section lists, but install new iterator.
356
357 2014-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
358
359         * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
360
361 2014-09-26  Simon Marchi  <simon.marchi@ericsson.com>
362
363         * progspace.c (print_program_space): Don't prune program spaces
364         before printing them.
365
366 2014-09-25  Pedro Alves  <palves@redhat.com>
367
368         * infrun.c (user_visible_resume_ptid): Don't check
369         singlestep_breakpoints_inserted_p.
370
371 2014-09-25  Pedro Alves  <palves@redhat.com>
372
373         * breakpoint.c (should_be_inserted): Add debug output.
374
375 2014-09-25  Pedro Alves  <palves@redhat.com>
376
377         * infrun.c (stepping_past_instruction_at)
378         (clear_exit_convenience_vars): Point at infrun.h instead of
379         inferior.h.
380         (handle_signal_stop): Fix typo.
381
382 2014-09-24  Yao Qi  <yao@codesourcery.com>
383
384         * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
385         bitmask.
386
387 2014-09-22  Gary Benson  <gbenson@redhat.com>
388
389         * target.c (target_stop): Updated comment.
390
391 2014-09-22  Gary Benson  <gbenson@redhat.com>
392
393         * target/target.h (target_stop_ptid): Renamed as...
394         (target_stop_and_wait): New function.  Updated comment.
395         All uses updated.
396         (target_continue_ptid): Renamed as...
397         (target_continue_no_signal): New function.  Updated comment.
398         All uses updated.
399
400 2014-09-22  Pedro Alves  <palves@redhat.com>
401
402         * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
403         and "auto" merged.
404         * breakpoint.c (enum ugll_insert_mode): New enum.
405         (always_inserted_mode): Now a plain boolean.
406         (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
407         (breakpoints_always_inserted_mode): Delete.
408         (breakpoints_should_be_inserted_now): New function.
409         (insert_breakpoints): Pass UGLL_INSERT to
410         update_global_location_list instead of calling
411         insert_breakpoint_locations manually.
412         (create_solib_event_breakpoint_1): New, factored out from ...
413         (create_solib_event_breakpoint): ... this.
414         (create_and_insert_solib_event_breakpoint): Use
415         create_solib_event_breakpoint_1 instead of calling
416         insert_breakpoint_locations manually.
417         (update_global_location_list): Change parameter type from boolean
418         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
419         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
420         (update_global_location_list_nothrow): Change parameter type from
421         boolean to enum ugll_insert_mode.
422         (_initialize_breakpoint): "breakpoint always-inserted" option is
423         now a boolean command.  Update help text.
424         * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
425         (breakpoints_should_be_inserted_now): New declaration.
426         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
427         Remove breakpoints_always_inserted_mode check.
428         (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
429         * remote.c (remote_start_remote): Likewise.
430
431 2014-09-22  Pedro Alves  <palves@redhat.com>
432
433         * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
434         (insert_breakpoints): Don't call insert_breakpoint_locations here.
435         Instead, pass UGLL_INSERT to update_global_location_list.
436         (update_global_location_list): Change parameter type from boolean
437         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
438         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
439         (create_solib_event_breakpoint_1): New, factored out from ...
440         (create_solib_event_breakpoint): ... this.
441         (create_and_insert_solib_event_breakpoint): Use
442         create_solib_event_breakpoint_1 instead of calling
443         insert_breakpoint_locations manually.
444         (update_global_location_list): Handle UGLL_INSERT.
445
446 2014-09-22  Pedro Alves  <palves@redhat.com>
447
448         * breakpoint.c (enum ugll_insert_mode): New enum.
449         (update_global_location_list)
450         (update_global_location_list_nothrow): Change parameter type from
451         boolean to enum ugll_insert_mode.  All callers adjusted.
452
453 2014-09-19  Joel Brobecker  <brobecker@adacore.com>
454
455         * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
456         SystemTap support in GDB.
457
458 2014-09-19  Don Breazeal  <donb@codesourcery.com>
459
460         * linux-nat.c (linux_handle_extended_wait): Call
461         linux_ptrace_get_extended_event.
462         (wait_lwp): Call linux_is_extended_waitstatus.
463         (linux_nat_filter_event): Call linux_ptrace_get_extended_event
464         and linux_is_extended_waitstatus.
465         * nat/linux-ptrace.c (linux_test_for_tracefork): Call
466         linux_ptrace_get_extended_event.
467         (linux_ptrace_get_extended_event): New function.
468         (linux_is_extended_waitstatus): New function.
469         * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
470         (linux_is_extended_waitstatus): New declarations.
471
472 2014-09-19  Yao Qi  <yao@codesourcery.com>
473
474         * dwarf2read.c (dwarf_decode_lines): Update declaration.
475         (handle_DW_AT_stmt_list): Add argument 'lowpc'.  Update
476         comments.  Callers update.
477         (dwarf_decode_lines): Likewise.
478         (dwarf_decode_lines_1): Add argument 'lowpc'.  Update
479         comments.  Skip the line table if  'lowpc' is greater than
480         'address'.  Don't check
481         dwarf2_per_objfile->has_section_at_zero.
482
483 2014-09-18  Doug Evans  <dje@google.com>
484
485         * NEWS: Mention new "producer" attribute of gdb.Symtab.
486         * python/py-symtab.c (stpy_get_producer): New function.
487         (symtab_object_getset): Add "producer" attribute.
488
489 2014-09-17  Ulrich Weigand  <uweigand@de.ibm.com>
490
491         PR gdb/17384
492         * corefile.c (struct captured_read_memory_integer_arguments): Remove.
493         (do_captured_read_memory_integer): Remove.
494         (safe_read_memory_integer): Use target_read_memory directly instead
495         of catching errors in do_captured_read_memory_integer.
496
497 2014-09-16  Maciej W. Rozycki  <macro@codesourcery.com>
498
499         * CONTRIBUTE (Coding Standards): For internals refer to wiki,
500         not gdb/doc.
501
502 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
503
504         * objc-lang.c (find_implementation_from_class): Remove dead code.
505
506 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
507
508         PR cli/7233
509         * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
510         "fprintf_unfiltered (gdb_stdlog...)".
511
512 2014-09-16  Patrick Palka  <patrick@parcs.ath.cx>
513
514         PR breakpoints/12526
515         * breakpoint.h (struct watchpoint): New fields val_bitpos and
516         val_bitsize.
517         * breakpoint.c (watch_command_1): Use these fields to retain
518         bitfield information.
519         (extract_bitfield_from_watchpoint_value): New function.
520         (watchpoint_check): Use it.
521         (update_watchpoint): Use it.  Optimize the address and length of a
522         HW watchpoint pointing to a bitfield.
523         * value.h (unpack_value_bitfield): New prototype.
524         * value.c (unpack_value_bitfield): Make extern.
525
526 2014-09-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
527
528         * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
529         x86-dregs.o.
530         * gnu-nat.c (inf_threads): New function.
531         * gnu-nat.h (inf_threads_ftype): New typedef.
532         (inf_threads): New declaration.
533         * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
534         [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
535         (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
536         (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
537         (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
538         (i386_gnu_dr_get_control): New functions.
539         (reg_addr): New structure.
540         (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
541         i386 debugging register hooks.
542         * NEWS: Mention this.
543
544 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
545
546         * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
547         vector data transfer instructions.
548         (arm_record_coproc_data_proc): Updated.
549
550 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
551
552         * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
553         arm_record_exreg_ld_st_insn.
554         (arm_record_exreg_ld_st_insn): Add record handler for ex-register
555         load/store insns.
556
557 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
558
559         * arm-tdep.c (arm_record_coproc_data_proc): Updated.
560         (arm_record_vfp_data_proc_insn): Added record handler for VFP data
561         processing instructions.
562
563 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
564
565         * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
566         for advance SIMD struct ld/st insn.
567         (thumb2_record_decode_insn_handler): Replace stub handler with
568         thumb2_record_asimd_struct_ld_st.
569
570 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
571
572         * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
573         for asimd, vfp and coprocessor insns.
574         (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
575         and coprocessor insns.
576         (thumb2_record_coproc_insn): New function.
577         (thumb2_record_decode_insn_handler): Update coprocessor insns record
578         handlers.
579         (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
580         opcode 110 insns.
581
582 2014-09-13  Doug Evans  <xdje42@gmail.com>
583
584         * NEWS: Mention new "queue-signal" command.
585         * infcmd.c (queue_signal_command): New function.
586         (_initialize_infcmd): Add new queue-signal command.
587
588 2014-09-13  Doug Evans  <xdje42@gmail.com>
589
590         * linux-nat.c (wait_lwp): Add debugging printf.
591         (linux_nat_wait_1): Ditto.
592
593 2014-09-12  Pedro Alves  <palves@redhat.com>
594
595         * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
596         (create_and_insert_solib_event_breakpoint): New functions.
597         * breakpoint.h (create_and_insert_solib_event_breakpoint)
598         (remove_solib_event_breakpoints_at_next_stop): New declarations.
599         * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
600         (remove_dbx_link_breakpoint): Delete function.
601         (insert_dbx_link_bpt_in_file): Use
602         create_and_insert_solib_event_breakpoint instead of
603         deprecated_insert_raw_breakpoint.
604         (procfs_wait): Don't check whether we hit __dbx_link here.
605         (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
606         here.
607         * solib-irix.c (base_breakpoint): Delete global.
608         (disable_break): Delete function.
609         (enable_break): Use create_solib_event_breakpoint
610         instead of deprecated_insert_raw_breakpoint.
611         (irix_solib_handle_event): New function.
612         (irix_solib_create_inferior_hook): Don't run the target or disable
613         the mapping-complete breakpoint here.
614         (_initialize_irix_solib): Install irix_solib_handle_event as
615         so_ops->handle_event hook.
616
617 2014-09-12  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
618             Ulrich Weigand  <uweigand@de.ibm.com>
619
620         PR tdep/17379
621         * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
622         instead of read_memory_unsigned_integer.
623
624 2014-09-12  Gary Benson  <gbenson@redhat.com>
625
626         * nat/linux-waitpid.c: Include common-defs.h.
627         [GDBSERVER]: Add FIXME comment.
628         [!GDBSERVER]: Don't include defs.h or signal.h.
629         (linux_debug) [!GDBSERVER]: Remove empty block.
630
631 2014-09-12  Gary Benson  <gbenson@redhat.com>
632
633         * nat/x86-dregs.c: Include common-defs.h and break-common.h.
634         Don't include defs.h or server.h.
635
636 2014-09-12  Gary Benson  <gbenson@redhat.com>
637
638         * nat/linux-btrace.c: Include common-defs.h.
639         Don't include defs.h, server.h or gdbthread.h.
640         * nat/linux-btrace.h (struct target_ops): New forward declaration.
641
642 2014-09-12  Gary Benson  <gbenson@redhat.com>
643
644         * common/agent.c: Include common-defs.h.
645         Don't include defs.h or server.h.
646         * common/buffer.c: Likewise.
647         * common/common-debug.c: Likewise.
648         * common/common-utils.c: Likewise.
649         * common/errors.c: Likewise.
650         * common/filestuff.c: Likewise.
651         * common/format.c: Likewise.
652         * common/gdb_vecs.c: Likewise.
653         * common/print-utils.c: Likewise.
654         * common/ptid.c: Likewise.
655         * common/rsp-low.c: Likewise.
656         * common/signals.c: Likewise.
657         * common/vec.c: Likewise.
658         * common/xml-utils.c: Likewise.
659         * nat/linux-osdata.c: Likewise.
660         * nat/linux-procfs.c: Likewise.
661         * nat/linux-ptrace.c: Likewise.
662         * nat/mips-linux-watch.c: Likewise.
663         * target/waitstatus.c: Likewise.
664
665 2014-09-12  Tom Tromey  <tromey@redhat.com>
666             Gary Benson  <gbenson@redhat.com>
667
668         * common/common-regcache.h: New file.
669         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
670         * regcache.h: Include common-regcache.h.
671         (regcache_read_pc): Don't declare.
672         * regcache.c (get_thread_regcache_for_ptid): New function.
673         * nat/linux-btrace.c: Don't include regcache.h.
674         Include common-regcache.h.
675         (perf_event_read_bts): Use get_thread_regcache_for_ptid.
676
677 2014-09-11  Thomas Schwinge  <thomas@codesourcery.com>
678
679         * regcache.h (struct regset): Declare.
680
681 2014-09-11  Pedro Alves  <palves@redhat.com>
682
683         PR gdb/17347
684         * main.c: Include "infrun.h".
685         (catch_command_errors, catch_command_errors_const): Wait for the
686         foreground command to complete.
687         * top.c (maybe_wait_sync_command_done): New function, factored out
688         from ...
689         (maybe_wait_sync_command_done): ... here.
690         * top.h (maybe_wait_sync_command_done): New declaration.
691
692 2014-09-11  Tom Tromey  <tromey@redhat.com>
693             Gary Benson  <gbenson@redhat.com>
694
695         * common/symbol.h: New file.
696         * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
697         * minsyms.c (find_minimal_symbol_address): New function.
698         * common/agent.c: Include common/symbol.h.
699         [!GDBSERVER]: Don't include objfiles.h.
700         (agent_look_up_symbols): Use find_minimal_symbol_address.
701
702 2014-09-11  Gary Benson  <gbenson@redhat.com>
703
704         * target/target.h (target_stop_ptid, target_continue_ptid):
705         Declare.
706         * target.c (target_stop_ptid, target_continue_ptid): New
707         functions.
708         * common/agent.c [!GDBSERVER]: Don't include infrun.h.
709         (agent_run_command): Always use target_stop_ptid and
710         target_continue_ptid.
711
712 2014-09-11  Tom Tromey  <tromey@redhat.com>
713             Gary Benson  <gbenson@redhat.com>
714
715         * target/target.h: New file.
716         * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
717         * target.h: Include target/target.h.
718         (target_read_memory, target_write_memory): Don't declare.
719         * target.c (target_read_uint32): New function.
720         * common/agent.c: Include target/target.h.
721         [!GDBSERVER]: Don't include target.h.
722         (helper_thread_id): Type changed to uint32_t.
723         (agent_get_helper_thread_id): Use target_read_uint32.
724         (agent_run_command): Always use target_read_memory and
725         target_write_memory.
726         (agent_capability): Type changed to uint32_t.
727         (agent_capability_check): Use target_read_uint32.
728
729 2014-09-11  Gary Benson  <gbenson@redhat.com>
730
731         * common/common-debug.h (show_debug_regs): Declare.
732         * common/common-debug.c (show_debug_regs): Define.
733         * aarch64-linux-nat.c (debug_hw_points): Don't define.  Replace
734         all uses with show_debug_regs.  Replace all uses that considered
735         debug_hw_points as a multi-value integer with straight boolean
736         uses.
737         * x86-nat.c (debug_hw_points): Don't define.  Replace all uses
738         with show_debug_regs.
739         * nat/x86-dregs.c (debug_hw_points): Don't declare.  Replace
740         all uses with show_debug_regs.
741         * mips-linux-nat.c (maint_show_dr): Don't define.  Replace all
742         uses with show_debug_regs.
743
744 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
745
746         * findvar.c (address_from_register): Handle targets requiring
747         a special conversion routine even for plain pointer types.
748
749 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
750
751         * rs6000-nat.c (exec_one_dummy_insn): Remove.
752         (store_register): Do not call exec_one_dummy_insn.
753
754 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
755
756         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
757         dereference it first.  Use value_enclosing_type instead of
758         value_type.
759         (ada_array_length): Likewise.
760
761 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
762
763         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
764         Adjust function implementation and documentation accordingly.
765         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
766         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
767         Update call to ada_value_ptr_subscript.
768
769 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
770
771         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
772         instead of VAL's type.
773
774 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
775
776         * amd64-linux-nat.c: Add <sys/uio.h> #include.
777
778 2014-09-09  Doug Evans  <xdje42@gmail.com>
779
780         PR guile/17367
781         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
782         last parameter to pkg-config, not first.
783         * configure.ac: Pass --with-guile provided pkg-config path to
784         GDB_GUILE_PROGRAM_NAMES.
785         * configure: Regenerate.
786
787 2014-09-09  Gabriel Krisman Bertazi  <gabriel@krisman.be>
788
789         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
790         Bertazi".
791
792 2014-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
793
794         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
795         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
796         the list of sections determining GDB_OSABI_IRIX.
797
798 2014-09-09  James Hogan  <james.hogan@imgtec.com>
799
800         * MAINTAINERS (Write After Approval): Add "James Hogan".
801
802 2014-09-09  James Hogan  <james.hogan@imgtec.com>
803
804         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
805
806 2014-09-09  Joel Brobecker  <brobecker@adacore.com>
807
808         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
809
810 2014-09-08  Doug Evans  <xdje42@gmail.com>
811
812         PR 17247
813         * guile.c: #include <signal.h>.
814         (_initialize_guile): Block SIGCHLD while initializing Guile.
815
816         Replaces the following, which is reverted.
817
818         2014-07-26  Doug Evans  <xdje42@gmail.com>
819
820         PR 17185
821         * configure.ac: Add check for header gc/gc.h.
822         Add check for function setenv.
823         * configure: Regenerate.
824         * config.in: Regenerate.
825         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
826
827 2014-09-08  Doug Evans  <xdje42@gmail.com>
828
829         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
830         with named constant.  Fix style of pointer comparison.
831         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
832
833 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
834
835         PR gdb/17035
836         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
837         decide whether we display the command on "show user".
838         * cli/cli-script.c (show_user_1): Only verify cmdlines after
839         printing command name.
840         * cli/cli-decode.h (cli_user_command_p): Declare new function.
841         * cli/cli-decode.c (cli_user_command_p): Create helper function
842         to verify whether cmd_list_element is a user-defined command.
843
844 2014-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
845
846         PR python/17355
847         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
848         Fix goto out of TRY_CATCH.
849
850 2014-09-06  Doug Evans  <xdje42@gmail.com>
851             Tom Tromey  <tromey@redhat.com>
852
853         PR 15276
854         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
855         $_any_caller_matches.
856         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
857         * python/lib/gdb/function/caller_is.py: New file.
858
859 2014-09-06  Doug Evans  <xdje42@gmail.com>
860
861         * infcmd.c (program_info): Fix typo.
862
863 2014-09-05  Sergio Durigan Junior  <sergiodj@redhat.com>
864
865         PR gdb/17235
866         * stap-probe.c (stap_parse_single_operand): Delete unused variable
867         'number'.  New variable 'has_digit'.  Rewrite code to deal with
868         subexpressions on SDT probes.
869
870 2014-09-04  Pedro Alves  <palves@redhat.com>
871
872         * c-exp.y (parse_number): Skip handling base-switching prefixes if
873         the input is only one character long.
874
875 2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
876
877         PR fortran/17237
878         * f-valprint.c (f_val_print): Specify the correct print option to
879         use when printing integer values.
880
881 2014-09-04  Gary Benson  <gbenson@redhat.com>
882
883         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
884         Remove code to cope with LWPs wrapped as PIDs.
885         Add assertions to ensure no wrapped LWPs are passed.
886
887 2014-09-04  Pedro Alves  <palves@redhat.com>
888
889         * value.c (value_ranges_copy_adjusted): New function, factored out
890         from ...
891         (value_contents_copy_raw): ... here.
892         (unpack_value_bits_as_long_1): Rename back to ...
893         (unpack_bits_as_long): ... this.  Remove 'original_value' and
894         'result' parameters.  Change return type to LONGEST.
895         (unpack_value_bits_as_long): Delete.
896         (unpack_value_field_as_long_1): Delete.
897         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
898         (unpack_value_bitfield): New function.
899         (value_field_bitfield): Reimplement using unpack_value_bitfield.
900         (value_fetch_lazy): Use unpack_value_bitfield.
901         * value.h (unpack_value_bits_as_long): Delete declaration.
902
903 2014-09-03  Sasha Smundak  <asmundak@google.com>
904
905         * python/py-frame.c (frapy_read_register): New function.
906
907 2014-09-03  James Hogan  <james.hogan@imgtec.com>
908
909         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
910         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
911
912 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
913
914         PR python/16699
915         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
916         function.
917         (add_cmd): Set "completer_handle_brkchars" to NULL.
918         * cli/cli-decode.h (struct cmd_list_element)
919         <completer_handle_brkchars>: New field.
920         * command.h (completer_ftype_void): New typedef.
921         (set_cmd_completer_handle_brkchars): New prototype.
922         * completer.c (set_gdb_completion_word_break_characters): New
923         function.
924         (complete_line_internal): Call "completer_handle_brkchars"
925         callback from command.
926         * completer.h: Include "command.h".
927         (set_gdb_completion_word_break_characters): New prototype.
928         * python/py-cmd.c (cmdpy_completer_helper): New function.
929         (cmdpy_completer_handle_brkchars): New function.
930         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
931         (cmdpy_init): Set completer_handle_brkchars to
932         cmdpy_completer_handle_brkchars.
933
934 2014-09-03  Gary Benson  <gbenson@redhat.com>
935
936         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
937         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
938         Loop conditions changed to equivalent form.
939         (struct x86_debug_reg_state): Updated dr_ref_count comment.
940         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
941         ALL_DEBUG_ADDRESS_REGISTERS.
942
943 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
944
945         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
946         description fix.
947
948 2014-09-02  Doug Evans  <dje@google.com>
949
950         * typeprint.c (find_global_typedef): Fix comment.
951
952 2014-09-02  Gary Benson  <gbenson@redhat.com>
953
954         * i386-nat.h: Renamed as...
955         * x86-nat.h: New file.  All type, function and variable name
956         prefixes changed from "i386_" to "x86_".  All references updated.
957         * i386-nat.c: Renamed as...
958         * x86-nat.c: New file.  All type, function and variable name
959         prefixes changed from "i386_" to "x86_".  All references updated.
960         * common/i386-xstate.h: Renamed as...
961         * common/x86-xstate.h: New file.  All type, function and variable
962         name prefixes changed from "i386_" to "x86_".  All references
963         updated.
964         * nat/i386-cpuid.h: Renamed as...
965         * nat/x86-cpuid.h: New file.  All type, function and variable name
966         prefixes changed from "i386_" to "x86_".  All references updated.
967         * nat/i386-gcc-cpuid.h: Renamed as...
968         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
969         name prefixes changed from "i386_" to "x86_".  All references
970         updated.
971         * nat/i386-dregs.h: Renamed as...
972         * nat/x86-dregs.h: New file.  All type, function and variable name
973         prefixes changed from "i386_" to "x86_".  All references updated.
974         * nat/i386-dregs.c: Renamed as...
975         * nat/x86-dregs.c: New file.  All type, function and variable name
976         prefixes changed from "i386_" to "x86_".  All references updated.
977
978 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
979
980         * varobj.c (_initialize_varobj): Move to the end of file.
981
982 2014-08-29  Gary Benson  <gbenson@redhat.com>
983
984         * common/common-exceptions.h: New file.
985         * common/common-exceptions.c: Likewise.
986         * Makefile.in (SFILES): Add common/common-exceptions.c.
987         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
988         (COMMON_OBS): Add common-exceptions.o.
989         (common-exceptions.o): New rule.
990         * exceptions.h (common-exceptions.h): Include.
991         (gdb_setjmp.h): Do not include.
992         (return_reason): Moved to common-exceptions.h.
993         (enum return_reason): Likewise.
994         (RETURN_MASK): Likewise.
995         (typedef return_mask): Likewise.
996         (enum errors): Likewise.
997         (struct gdb_exception): Likewise.
998         (exceptions_state_mc_init): Likewise.
999         (exceptions_state_mc_action_iter): Likewise.
1000         (exceptions_state_mc_action_iter_1): Likewise.
1001         (TRY_CATCH): Likewise.
1002         (throw_exception): Likewise.
1003         (throw_verror): Likewise.
1004         (throw_vquit): Likewise.
1005         (throw_error): Likewise.
1006         (throw_quit): Likewise.
1007         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
1008         (enum catcher_action): Likewise.
1009         (struct catcher): Likewise.
1010         (current_catcher): Likewise.
1011         (catcher_list_size): Likewise.
1012         (exceptions_state_mc_init): Likewise.
1013         (catcher_pop): Likewise.
1014         (exceptions_state_mc): Likewise.
1015         (exceptions_state_mc_action_iter): Likewise.
1016         (exceptions_state_mc_action_iter_1): Likewise.
1017         (throw_exception): Likewise.
1018         (exception_messages): Likewise.
1019         (exception_messages_size): Likewise.
1020         (throw_it): Likewise.
1021         (throw_verror): Likewise.
1022         (throw_vquit): Likewise.
1023         (throw_error): Likewise.
1024         (throw_quit): Likewise.
1025         (prepare_to_throw_exception): New function.
1026
1027 2014-08-29  Gary Benson  <gbenson@redhat.com>
1028
1029         * common/gdb_setjmp.h: New file.
1030         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
1031         * configure.ac: Move sigsetjmp check...
1032         * common/common.m4: ...here.
1033         * configure: Regenerate.
1034         * cp-support.c (SIGJMP_BUF): Delete.
1035         (SIGSETJMP): Likewise.
1036         (SIGLONGJMP): Likewise.
1037         * exceptions.h (gdb_setjmp.h): Include.
1038         (setjmp.h): Do not include.
1039         (EXCEPTIONS_SIGJMP_BUF): Delete.
1040         (EXCEPTIONS_SIGSETJMP): Likewise.
1041         (EXCEPTIONS_SIGLONGJMP): Likewise.
1042         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
1043         from gdb_setjmp.h.
1044         * exceptions.c: Likewise.
1045
1046 2014-08-29  Gary Benson  <gbenson@redhat.com>
1047
1048         * cleanups.h: Moved to...
1049         * common/cleanups.h: New file.
1050         * cleanups.c: Moved to...
1051         * common/cleanups.c: New file.  Include common-defs.h and
1052         cleanups.h.  Do not include defs.h.
1053         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
1054         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
1055         (cleanups.o): New rule.
1056
1057 2014-08-29  Gary Benson  <gbenson@redhat.com>
1058
1059         * common/errors.h (internal_warning): New declaration.
1060         (internal_vwarning): Likewise.
1061         * common/errors.c (internal_warning): New function.
1062         * utils.h (internal_warning): Don't declare.
1063         (internal_vwarning): Likewise.
1064         * utils.c (internal_warning): Removed.
1065
1066 2014-08-29  Gary Benson  <gbenson@redhat.com>
1067
1068         * main.c (captured_main): Use warning during startup.
1069         Prefix startup warning messages with command name.
1070
1071 2014-08-29  Gary Benson  <gbenson@redhat.com>
1072
1073         * main.c (captured_main): Handle usage errors with error.
1074
1075 2014-08-29  Gary Benson  <gbenson@redhat.com>
1076
1077         * go32-nat.c (go32_create_inferior): Replace a fprintf/
1078         exit pair with a call to error.  Wrap the message with _().
1079
1080 2014-08-29  Gary Benson  <gbenson@redhat.com>
1081
1082         * main.c (captured_main): Replace a fprintf/exit
1083         pair with a call to error.  Wrap the message with _().
1084
1085 2014-08-29  Gary Benson  <gbenson@redhat.com>
1086
1087         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
1088         pairs with calls to error.  Wrap the message with _().
1089
1090 2014-08-29  Gary Benson  <gbenson@redhat.com>
1091
1092         * utils.c (vwarning): Protect calls to target_terminal_ours
1093         and wrap_here.
1094
1095 2014-08-29  Gary Benson  <gbenson@redhat.com>
1096
1097         * exceptions.c (print_flush): Protect calls to
1098         target_terminal_ours and wrap_here.
1099
1100 2014-08-29  Gary Benson  <gbenson@redhat.com>
1101
1102         * utils.h (filtered_printing_initialized): New declaration.
1103         * utils.c (abort_with_message): New function.
1104         (internal_vproblem): Use abort_with_message for first level
1105         recursive internal problems, and if gdb_stderr is not set up.
1106         Protect calls to target_terminal_ours, begin_line and query.
1107
1108 2014-08-28  Doug Evans  <dje@google.com>
1109
1110         * symtab.c (in_prologue): Move definition to better spot.
1111         (skip_prologue_using_sal): Ditto.
1112
1113 2014-08-28  Doug Evans  <dje@google.com>
1114
1115         * symtab.c (find_function_start_sal): Move definition to better spot.
1116
1117 2014-08-28  Yao Qi  <yao@codesourcery.com>
1118
1119         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
1120         found_stack_adjust in forward scan.  Remove condition check
1121         on found_stack_adjust which is always true.  Indent the code.
1122
1123 2014-08-28  Yao Qi  <yao@codesourcery.com>
1124
1125         * dwarf2read.c (dwarf_decode_lines): Update declaration.
1126         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
1127         (dwarf_decode_lines): Remove argument
1128         want_line_info.  Remove condition check on want_line_info.
1129         Callers update.
1130
1131 2014-08-27  Doug Evans  <dje@google.com>
1132
1133         * dwarf2read.c (dwarf_record_line): Fix typo.
1134
1135 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
1136
1137         * target.h (struct target_ops::to_terminal_save_ours): Remove
1138         declaration.
1139         (target_terminal_save_ours): Remove macro.
1140         * target-delegates.c: Regenerate.
1141         * inf-child.c (inf_child_target): Don't set the nonexistent
1142         field to_terminal_save_ours.
1143         * inferior.h (child_terminal_save_ours): Remove declaration.
1144         * terminal.h (gdb_save_tty_state): New declaration.
1145         * inflow.c (child_terminal_save_ours): Rename to ...
1146         (gdb_save_tty_state): ... this.
1147         * tui/tui.c: Include terminal.h.
1148         (tui_enable): Use gdb_save_tty_state instead of
1149         target_terminal_save_ours.
1150         (tui_disable): Likewise.
1151
1152 2014-08-25  Doug Evans  <dje@google.com>
1153
1154         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1155         Pass NULL instead of 0 for context pointer.
1156
1157 2014-08-25  Yao Qi  <yao@codesourcery.com>
1158
1159         * dwarf2read.c: Fix grammatical error.
1160
1161 2014-08-24  Yao Qi  <yao@codesourcery.com>
1162
1163         * dwarf2read.c (scan_partial_symbols):  Update comments.
1164         Rename argument 'need_pc' with 'set_addrmap'.
1165         ï¼ˆadd_partial_namespace): Rename argument 'need_pc' with
1166         'set_addrmap'.
1167         (add_partial_module): Likewise.
1168         (add_partial_subprogram): Likewise.  Update comments.
1169         (dwarf2_name): Fix typo.
1170
1171 2014-08-22  Doug Evans  <dje@google.com>
1172
1173         PR 17276
1174         * dwarf2read.c (dwarf_record_line_p): New function.
1175         (dwarf_decode_lines_1): Ignore subsequent line number entries
1176         for the same line if any entry had a non-zero discriminator.
1177
1178 2014-08-22  Doug Evans  <dje@google.com>
1179
1180         * buildsym.h (record_line_ftype): New typedef.
1181         (record_line): Use it.
1182         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1183         (dwarf_decode_lines_1): Call them.
1184
1185 2014-08-22  Yao Qi  <yao@codesourcery.com>
1186
1187         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1188         (ctf_end): Remove code.
1189
1190 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
1191
1192         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1193         (linux_make_corefile_notes): call update_thread_list, protected against
1194         exceptions.
1195
1196 2014-08-21  Pedro Alves  <palves@redhat.com>
1197
1198         * infcmd.c (attach_command): Remove comment.
1199
1200 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
1201
1202         * aarch64-linux-nat.c (dr_changed_t): Change the type from
1203         unsigned LONGEST to ULONGEST.
1204
1205 2014-08-20  Pedro Alves  <palves@redhat.com>
1206
1207         * Makefile.in (check-read1): New rule.
1208
1209 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
1210
1211         * value.c (value_from_contents_and_address): Strip resolved_type's
1212         typedef layers before checking its TYPE_DATA_LOCATION.
1213
1214 2014-08-20  Pedro Alves  <palves@redhat.com>
1215
1216         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1217
1218 2014-08-20  Yao Qi  <yao@codesourcery.com>
1219
1220         * amd64-tdep.c (amd64_classify): Add a blank line after the
1221         example.  Move "*/" to a new line.
1222         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1223         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1224         * dwarf2read.c (psymtab_include_file_name): Likewise.
1225
1226 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
1227             Pedro Alves  <palves@redhat.com>
1228
1229         PR symtab/14604
1230         PR symtab/14605
1231         * ada-lang.c (coerce_unspec_val_to_type): Use
1232         value_contents_copy_raw.
1233         * ada-valprint.c (val_print_packed_array_elements): Adjust.
1234         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1235         * cp-valprint.c (cp_print_value_fields): Let the common printing
1236         code handle optimized out values.
1237         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1238         * d-valprint.c (dynamic_array_type): Use
1239         value_bits_any_optimized_out.
1240         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1241         check_any_valid fields.
1242         (check_pieced_value_bits): Delete and inline ...
1243         (check_pieced_synthetic_pointer): ... here.
1244         (check_pieced_value_validity): Delete.
1245         (check_pieced_value_invalid): Delete.
1246         (pieced_value_funcs): Remove check_validity and check_any_valid
1247         fields.
1248         (read_pieced_value): Use mark_value_bits_optimized_out.
1249         (write_pieced_value): Switch to use
1250         mark_value_bytes_optimized_out.
1251         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1252         of assuming the whole value is optimized out.
1253         * findvar.c (read_frame_register_value): Remove special handling
1254         of optimized out registers.
1255         (value_from_register): Use mark_value_bytes_optimized_out.
1256         * frame-unwind.c (frame_unwind_got_optimized): Use
1257         mark_value_bytes_optimized_out.
1258         * jv-valprint.c (java_value_print): Adjust.
1259         (java_print_value_fields): Let the common printing code handle
1260         optimized out values.
1261         * mips-tdep.c (mips_print_register): Remove special handling of
1262         optimized out registers.
1263         * opencl-lang.c (lval_func_check_validity): Delete.
1264         (lval_func_check_any_valid): Delete.
1265         (opencl_value_funcs): Remove check_validity and check_any_valid
1266         fields.
1267         * p-valprint.c (pascal_object_print_value_fields): Let the common
1268         printing code handle optimized out values.
1269         * stack.c (read_frame_arg): Remove special handling of optimized
1270         out values.  Fetch both VAL and ENTRYVAL before comparing
1271         contents.  Adjust to value_available_contents_eq rename.
1272         * valprint.c (valprint_check_validity)
1273         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1274         (val_print_array_elements): Adjust.
1275         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1276         (value_bits_any_optimized_out): New function.
1277         (value_entirely_covered_by_range_vector): New function, factored
1278         out from value_entirely_unavailable.
1279         (value_entirely_unavailable): Reimplement.
1280         (value_entirely_optimized_out): New function.
1281         (insert_into_bit_range_vector): New function, factored out from
1282         mark_value_bits_unavailable.
1283         (mark_value_bits_unavailable): Reimplement.
1284         (struct ranges_and_idx): New struct.
1285         (find_first_range_overlap_and_match): New function, factored out
1286         from value_available_contents_bits_eq.
1287         (value_available_contents_bits_eq): Rename to ...
1288         (value_contents_bits_eq): ... this.  Check both unavailable
1289         contents and optimized out contents.
1290         (value_available_contents_eq): Rename to ...
1291         (value_contents_eq): ... this.
1292         (allocate_value_lazy): Remove reference to the old optimized_out
1293         boolean.
1294         (allocate_optimized_out_value): Use
1295         mark_value_bytes_optimized_out.
1296         (require_not_optimized_out): Adjust to check whether the
1297         optimized_out vec is empty.
1298         (ranges_copy_adjusted): New function, factored out from
1299         value_contents_copy_raw.
1300         (value_contents_copy_raw): Also copy the optimized out ranges.
1301         Assert the destination ranges aren't optimized out.
1302         (value_contents_copy): Update comment, remove call to
1303         require_not_optimized_out.
1304         (value_contents_equal): Adjust to check whether the optimized_out
1305         vec is empty.
1306         (set_value_optimized_out, value_optimized_out_const): Delete.
1307         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1308         New functions.
1309         (value_entirely_optimized_out, value_bits_valid): Delete.
1310         (value_copy): Take a VEC copy of the 'optimized_out' field.
1311         (value_primitive_field): Remove special handling of optimized out.
1312         (value_fetch_lazy): Assert that lazy values have no unavailable
1313         regions.  Use value_bits_any_optimized_out.  Remove some special
1314         handling for optimized out values.
1315         * value.h: Add intro comment about <optimized out> and
1316         <unavailable>.
1317         (struct lval_funcs): Remove check_validity and check_any_valid
1318         fields.
1319         (set_value_optimized_out, value_optimized_out_const): Remove.
1320         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1321         New declarations.
1322         (value_bits_any_optimized_out): New declaration.
1323         (value_bits_valid): Delete declaration.
1324         (value_available_contents_eq): Rename to ...
1325         (value_contents_eq): ... this, and extend comments.
1326
1327 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
1328
1329         Fix -fsanitize=address on unreadable inferior strings.
1330         * valprint.c (val_print_string): Fix access before BUFFER.
1331
1332 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
1333
1334         * target.c (target_struct_size): Remove.
1335         (target_struct_allocsize): Remove.
1336         (DEFAULT_ALLOCSIZE): Remove.
1337         (target_ops_p): New typedef.
1338         (DEF_VEC_P (target_ops_p)): New vector type.
1339         (target_structs): Change type to VEC (target_ops_p).
1340         (add_target_with_completer): Replace "push" code by VEC_safe_push.
1341         (find_default_run_target): Rewrite for loop following changes to
1342         target_structs.
1343
1344 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
1345
1346         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1347         Adjust code accordingly.  Adjust function description comment.
1348
1349 2014-08-19  Yao Qi  <yao@codesourcery.com>
1350
1351         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1352         types.
1353
1354 2014-08-19  Alan Modra  <amodra@gmail.com>
1355
1356         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1357         * config.in: Regenerate.
1358         * configure: Regenerate.
1359
1360 2014-08-19  Tom Tromey  <tromey@redhat.com>
1361             Gary Benson  <gbenson@redhat.com>
1362
1363         * common/common-debug.h: New file.
1364         * common/common-debug.c: Likewise.
1365         * debug.c: Likewise.
1366         * Makefile.in (SFILES): Add common/common-debug.c.
1367         (HFILES_NO_SRCDIR): Add common/common-debug.h.
1368         (COMMON_OBS): Add common-debug.o and debug.o.
1369         (common-debug.o): New rule.
1370         * common/common-defs.h: Include common-debug.h.
1371         * common/agent.c (debug_agent_printf): New function.
1372         (DEBUG_AGENT): Redefine.
1373         * nat/i386-dregs.c (debug_printf): Undefine.
1374
1375 2014-08-19  Gary Benson  <gbenson@redhat.com>
1376
1377         * common/common-defs.h: Include print-utils.h.
1378         * utils.h: Do not include print-utils.h.
1379
1380 2014-08-19  Tom Tromey  <tromey@redhat.com>
1381             Gary Benson  <gbenson@redhat.com>
1382
1383         * common/common-types.h: New file.
1384         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1385         * common/common-defs.h: Include common-types.h.
1386         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1387         (ULONGEST): Remove.
1388
1389 2014-08-19  Tom Tromey  <tromey@redhat.com>
1390             Gary Benson  <gbenson@redhat.com>
1391
1392         * common/errors.h: New file.
1393         * common/errors.c: Likewise.
1394         * Makefile.in (SFILES): Add common/errors.c.
1395         (HFILES_NO_SRCDIR): Add common/errors.h.
1396         (COMMON_OBS): Add errors.o.
1397         (errors.o): New rule.
1398         * common/common-defs.h: Include errors.h.
1399         * utils.h (perror_with_name, error, verror, warning, vwarning):
1400         Don't declare.
1401         * common/common-utils.h: (malloc_failure, internal_error):
1402         Likewise.
1403
1404 2014-08-19  Gary Benson  <gbenson@redhat.com>
1405
1406         * utils.c (internal_vproblem): Always print the message.
1407
1408 2014-08-18  Doug Evans  <dje@google.com>
1409
1410         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1411
1412 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1413
1414         * ada-typeprint.c (type_is_full_subrange_of_target_type):
1415         Return 0 if TYPE is dynamic.
1416         (print_range): Add handling of dynamic ranges.
1417
1418 2014-08-18  Keven Boell  <keven.boell@intel.com>
1419             Joel Brobecker  <brobecker@adacore.com>
1420
1421         * gdbtypes.h (struct main_type): Add field "data_location".
1422         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1423         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1424         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1425         a dynamic data location.
1426         (resolve_dynamic_type): Add DW_AT_data_location handling.
1427         (copy_recursive, copy_type): Copy the data_location information
1428         when present.
1429         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1430         * value.c (value_from_contents_and_address): Add
1431         DW_AT_data_location handling.
1432
1433 2014-08-18  Keven Boell  <keven.boell@intel.com>
1434             Joel Brobecker  <brobecker@adacore.com>
1435
1436         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1437         field "get_object_address".
1438         * dwarf2expr.c (execute_stack_op): Add handling for
1439         DW_OP_push_object_address.
1440         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1441         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1442         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1443         (dwarf_expr_get_obj_addr): New function.
1444         (dwarf_expr_ctx_funcs): Add get_object_address field.
1445         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1446         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
1447         (dwarf2_evaluate_property): Add parameter "address".  Use it.
1448         (needs_get_obj_addr): New function.
1449         (needs_frame_ctx_funcs): Add get_object_address field.
1450         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1451         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
1452         (resolve_dynamic_array): Likewise.
1453
1454 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1455
1456         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1457         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1458         fixed value for records and unions for which some GNAT encodings
1459         are present.
1460
1461 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1462
1463         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1464         rewrite to avoid "else if" and "else" constructs.  Should be
1465         a no-op in practice.
1466
1467 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1468
1469         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1470         of lexical block.
1471
1472 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
1473
1474         PR c++/17132
1475         * eval.c: Update all calls to find_overload_match.
1476         * valarith.c: Likewise.
1477         (value_user_defined_cpp_op, value_user_defined_op): New
1478         argument NOSIDE.  Update all callers.
1479         * valops.c (find_overload_match): New argument NOSIDE.
1480         * value.h (find_overload_match): Update signature.
1481
1482 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
1483
1484         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1485         'items' methods instead of 'iteritems' method on dictionaries.
1486
1487 2014-08-15  Doug Evans  <dje@google.com>
1488
1489         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1490         closer to use.
1491
1492 2014-08-15  Doug Evans  <dje@google.com>
1493
1494         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1495
1496 2014-08-15  Doug Evans  <dje@google.com>
1497
1498         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1499
1500 2014-08-15  Doug Evans  <dje@google.com>
1501
1502         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1503         unused.
1504
1505 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
1506
1507         * dcache.h: Include target.h, to avoid compile time warnings.
1508
1509 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
1510
1511         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
1512         frame_info" partial declaration.
1513         * gdbarch.h: Regenerate.
1514
1515 2014-08-15  Yao Qi  <yao@codesourcery.com>
1516
1517         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1518         Add parameter 'decode_for_pst_p'.  Callers update.
1519
1520 2014-08-13  Yao Qi  <yao@codesourcery.com>
1521
1522         PR build/17104
1523         * configure.ac: Use local variable 'pos'.
1524         * configure: Regenerated.
1525
1526 2014-08-11  Doug Evans  <dje@google.com>
1527
1528         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1529         message, it is redundant with "Reading symbols from ..." message.
1530
1531 2014-08-10  Doug Evans  <xdje42@gmail.com>
1532
1533         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1534
1535 2014-08-09  Yao Qi  <yao@codesourcery.com>
1536
1537         PR remote/9053
1538         * remote.c (remote_xfer_partial): Remove dead code.
1539
1540 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1541
1542         * ia64-linux-tdep.c: Include "regset.h".
1543         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1544         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1545         (ia64_linux_supply_fpregset): New function.
1546         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1547         (ia64_linux_regset_from_core_section): New function.
1548         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1549         method.
1550
1551 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1552
1553         * m68klinux-tdep.c: Include "regset.h".
1554         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1555         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1556         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1557         (m68k_linux_regset_from_core_section): New function.
1558         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1559         method.
1560
1561 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1562
1563         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1564         function.  Move logic to...
1565         (tilegx_linux_regmap): ... this new register map.
1566         (tilegx_linux_regset): Refer to register map, replace supply
1567         method by regcache_supply_regset, and add collect method.
1568         * tilegx-tdep.h (enum tilegx_regnum): New enum value
1569         TILEGX_FIRST_EASY_REGNUM.
1570
1571 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1572
1573         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1574         that calls regcache_supply_regset and handles the EPC register
1575         separately.  Move main logic to...
1576         (score7_linux_gregmap): ... this new register map.
1577         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1578         (score7_linux_gregset): Refer to register map.  Add collect method.
1579         (score7_linux_regset_from_core_section): Replace
1580         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1581         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1582         (struct regset): Delete unused forward declaraction.
1583         (struct pt_regs): Delete structure definition.
1584         (elf_gregset_t): Delete typedef.
1585
1586 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1587
1588         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1589         (nios2_core_regset): Add collect method.
1590
1591 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1592
1593         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1594         platform-independent and don't write to read-only input buffer.
1595         (m32r_linux_collect_gregset): New function.
1596         (m32r_linux_gregset): Add collect method.
1597
1598 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1599
1600         * hppa-linux-tdep.c (greg_map): Rename to...
1601         (hppa_linux_gregmap): ... this.  Also convert to
1602         regcache_map_entry format.
1603         (hppa_linux_supply_regset): Delete function.
1604         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
1605         (hppa_linux_fpregmap): ... this new register map.
1606         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1607         register map, replace supply method by regcache_supply_regset, and
1608         add collect method regcache_collect_regset.
1609
1610 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1611
1612         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1613         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1614         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1615         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1616         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1617         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1618         (frv_linux_supply_gregset): Replace main logic by call to
1619         regcache_supply_regset, but keep clearing gr32-gr63.
1620         (frv_linux_supply_fpregset): Delete function.
1621         (frv_linux_gregset): Refer to appropriate register map and add
1622         regcache_collect_regset as the collect method.
1623         (frv_linux_fpregset): Likewise.  Also exchange the supply method
1624         by regcache_supply_regset.
1625
1626 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1627
1628         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1629         by call to alpha_supply_int_regs.
1630         (alpha_linux_collect_gregset): New function.
1631         (alpha_linux_supply_fpregset): Replace logic by call to
1632         alpha_supply_fp_regs.
1633         (alpha_linux_collect_fpregset): New function.
1634         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1635
1636 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1637
1638         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1639         by call to regcache_collect_regset.
1640         (supply_gregset, supply_fpregset): Call regcache_supply_regset
1641         instead of aarch64_linux_supply_gregset/_fpregset.
1642         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1643         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1644         header file instead.
1645         (aarch64_linux_supply_gregset, supply_gregset_from_core)
1646         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1647         functions.  Move logic to ...
1648         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1649         register maps.
1650         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1651         refer to new register maps, replace *_regset_from_core by
1652         regcache_supply_regset, and also use regcache_collect_regset.
1653         * aarch64-linux-tdep.h: Include "regset.h".
1654         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1655         Delete prototypes.
1656         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1657         macros, moved from C source file.
1658         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1659         variable declarations.
1660
1661 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1662
1663         * s390-linux-nat.c: Include "regset.h".
1664         (regmap_gregset): Delete macro.
1665         (s390_64_regmap_gregset): New register map for
1666         regcache_supply/_collect_regset.
1667         (s390_64_gregset): New regset.
1668         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1669         (regmap_fpregset): Delete macro.
1670         (s390_native_supply, s390_native_collect): Delete functions.
1671         (supply_gregset, fill_gregset): Replace s390-specific regmap
1672         handling by a call to regcache_supply/_collect_regset.
1673         (supply_fpregset, fill_fpregset): Call regcache_supply/
1674         _collect_regset instead of s390_native_supply/_collect.
1675         (fetch_regset, store_regset): Likewise.  Also change the last
1676         parameter to a regset instead of a regmap.
1677         (s390_linux_fetch_inferior_registers)
1678         (390_linux_store_inferior_registers): Adjust last parameter in
1679         calls to fetch_regset and store_regset.
1680         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1681         (s390_gregmap): ... this.  Also make static const and convert to
1682         regcache_map_entry format.
1683         (s390x_regmap_gregset): Delete.
1684         (s390_regmap_fpregset): Rename to...
1685         (s390_fpregmap): ... this.  Make static const and convert to
1686         regcache_map_entry format.
1687         (s390_regmap_upper, s390_regmap_last_break)
1688         (s390x_regmap_last_break, s390_regmap_system_call)
1689         (s390_regmap_tdb): Likewise.
1690         (s390_supply_regset, s390_collect_regset): Remove functions.
1691         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1692         s390_supply_regset.
1693         (s390_gregset, s390_fpregset, s390_upper_regset)
1694         (s390_last_break_regset, s390x_last_break_regset)
1695         (s390_system_call_regset, s390_tdb_regset): Make global and
1696         replace s390_supply/_collect_regset by regcache_supply/
1697         _collect_regset.
1698         (s390x_gregset): Delete.
1699         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1700         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1701         (s390_regmap_fpregset, s390_regmap_last_break)
1702         (s390x_regmap_last_break, s390_regmap_system_call)
1703         (s390_regmap_tdb): Delete global variable declarations.
1704         (s390_gregset, s390_fpregset, s390_last_break_regset)
1705         (s390x_last_break_regset, s390_system_call_regset)
1706         (s390_tdb_regset): New global variable declarations.
1707
1708 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1709
1710         * regcache.c: Include "regset.h".
1711         (regcache_transfer_regset): New local function.
1712         (regcache_supply_regset, regcache_collect_regset): New functions.
1713         * regcache.h (struct regcache_map_entry): New structure.
1714         (REGCACHE_MAP_SKIP): New enum value.
1715         (regcache_supply_regset, regcache_collect_regset): New prototypes.
1716
1717 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1718
1719         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1720         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1721         (ppc_linux_collect_gregset ): Likewise.
1722         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1723         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1724         (ppc_collect_vrregset): Likewise.
1725         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1726         Likewise.
1727
1728 2014-08-07  Yao Qi  <yao@codesourcery.com>
1729
1730         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1731         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1732         * remote.c (remote_read_bytes): Likewise.
1733
1734 2014-08-07  Yao Qi  <yao@codesourcery.com>
1735
1736         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1737
1738 2014-08-07  Yao Qi  <yao@codesourcery.com>
1739
1740         PR remote/17230
1741         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1742         TARGET_XFER_OK instead of 0.
1743
1744 2014-08-07  Gary Benson  <gbenson@redhat.com>
1745
1746         * common/common-defs.h: Include errno.h.
1747         * defs.h: Do not include errno.h.
1748         * ada-typeprint.c: Likewise.
1749         * c-typeprint.c: Likewise.
1750         * core-regset.c: Likewise.
1751         * corefile.c: Likewise.
1752         * corelow.c: Likewise.
1753         * event-loop.c: Likewise.
1754         * f-typeprint.c: Likewise.
1755         * gnu-nat.c: Likewise.
1756         * go32-nat.c: Likewise.
1757         * i386gnu-nat.c: Likewise.
1758         * m2-typeprint.c: Likewise.
1759         * nat/linux-btrace.c: Likewise.
1760         * p-typeprint.c: Likewise.
1761         * procfs.c: Likewise.
1762         * remote-sim.c: Likewise.
1763         * rs6000-nat.c: Likewise.
1764         * target.c: Likewise.
1765         * typeprint.c: Likewise.
1766         * ui-file.c: Likewise.
1767         * valops.c: Likewise.
1768         * valprint.c: Likewise.
1769
1770 2014-08-07  Gary Benson  <gbenson@redhat.com>
1771
1772         * common/common-defs.h: Include string.h.
1773         * aarch64-tdep.c: Do not include string.h.
1774         * ada-exp.y: Likewise.
1775         * ada-lang.c: Likewise.
1776         * ada-lex.l: Likewise.
1777         * ada-typeprint.c: Likewise.
1778         * ada-valprint.c: Likewise.
1779         * aix-thread.c: Likewise.
1780         * alpha-linux-tdep.c: Likewise.
1781         * alpha-mdebug-tdep.c: Likewise.
1782         * alpha-nat.c: Likewise.
1783         * alpha-osf1-tdep.c: Likewise.
1784         * alpha-tdep.c: Likewise.
1785         * alphanbsd-tdep.c: Likewise.
1786         * amd64-dicos-tdep.c: Likewise.
1787         * amd64-linux-tdep.c: Likewise.
1788         * amd64-nat.c: Likewise.
1789         * amd64-sol2-tdep.c: Likewise.
1790         * amd64fbsd-tdep.c: Likewise.
1791         * amd64obsd-tdep.c: Likewise.
1792         * arch-utils.c: Likewise.
1793         * arm-linux-nat.c: Likewise.
1794         * arm-linux-tdep.c: Likewise.
1795         * arm-tdep.c: Likewise.
1796         * arm-wince-tdep.c: Likewise.
1797         * armbsd-tdep.c: Likewise.
1798         * armnbsd-nat.c: Likewise.
1799         * armnbsd-tdep.c: Likewise.
1800         * armobsd-tdep.c: Likewise.
1801         * avr-tdep.c: Likewise.
1802         * ax-gdb.c: Likewise.
1803         * ax-general.c: Likewise.
1804         * bcache.c: Likewise.
1805         * bfin-tdep.c: Likewise.
1806         * breakpoint.c: Likewise.
1807         * build-id.c: Likewise.
1808         * buildsym.c: Likewise.
1809         * c-exp.y: Likewise.
1810         * c-lang.c: Likewise.
1811         * c-typeprint.c: Likewise.
1812         * c-valprint.c: Likewise.
1813         * charset.c: Likewise.
1814         * cli-out.c: Likewise.
1815         * cli/cli-cmds.c: Likewise.
1816         * cli/cli-decode.c: Likewise.
1817         * cli/cli-dump.c: Likewise.
1818         * cli/cli-interp.c: Likewise.
1819         * cli/cli-logging.c: Likewise.
1820         * cli/cli-script.c: Likewise.
1821         * cli/cli-setshow.c: Likewise.
1822         * cli/cli-utils.c: Likewise.
1823         * coffread.c: Likewise.
1824         * common/agent.c: Likewise.
1825         * common/buffer.c: Likewise.
1826         * common/buffer.h: Likewise.
1827         * common/common-utils.c: Likewise.
1828         * common/filestuff.c: Likewise.
1829         * common/filestuff.c: Likewise.
1830         * common/format.c: Likewise.
1831         * common/print-utils.c: Likewise.
1832         * common/rsp-low.c: Likewise.
1833         * common/signals.c: Likewise.
1834         * common/vec.h: Likewise.
1835         * common/xml-utils.c: Likewise.
1836         * core-regset.c: Likewise.
1837         * corefile.c: Likewise.
1838         * corelow.c: Likewise.
1839         * cp-abi.c: Likewise.
1840         * cp-name-parser.y: Likewise.
1841         * cp-support.c: Likewise.
1842         * cp-valprint.c: Likewise.
1843         * cris-tdep.c: Likewise.
1844         * d-exp.y: Likewise.
1845         * darwin-nat.c: Likewise.
1846         * dbxread.c: Likewise.
1847         * dcache.c: Likewise.
1848         * demangle.c: Likewise.
1849         * dicos-tdep.c: Likewise.
1850         * disasm.c: Likewise.
1851         * doublest.c: Likewise.
1852         * dsrec.c: Likewise.
1853         * dummy-frame.c: Likewise.
1854         * dwarf2-frame.c: Likewise.
1855         * dwarf2loc.c: Likewise.
1856         * dwarf2read.c: Likewise.
1857         * elfread.c: Likewise.
1858         * environ.c: Likewise.
1859         * eval.c: Likewise.
1860         * event-loop.c: Likewise.
1861         * exceptions.c: Likewise.
1862         * exec.c: Likewise.
1863         * expprint.c: Likewise.
1864         * f-exp.y: Likewise.
1865         * f-lang.c: Likewise.
1866         * f-typeprint.c: Likewise.
1867         * f-valprint.c: Likewise.
1868         * fbsd-nat.c: Likewise.
1869         * findcmd.c: Likewise.
1870         * findvar.c: Likewise.
1871         * fork-child.c: Likewise.
1872         * frame.c: Likewise.
1873         * frv-linux-tdep.c: Likewise.
1874         * frv-tdep.c: Likewise.
1875         * gdb.c: Likewise.
1876         * gdb_bfd.c: Likewise.
1877         * gdbarch.c: Likewise.
1878         * gdbarch.sh: Likewise.
1879         * gdbtypes.c: Likewise.
1880         * gnu-nat.c: Likewise.
1881         * gnu-v2-abi.c: Likewise.
1882         * gnu-v3-abi.c: Likewise.
1883         * go-exp.y: Likewise.
1884         * go-lang.c: Likewise.
1885         * go32-nat.c: Likewise.
1886         * guile/guile.c: Likewise.
1887         * guile/scm-auto-load.c: Likewise.
1888         * hppa-hpux-tdep.c: Likewise.
1889         * hppa-linux-nat.c: Likewise.
1890         * hppanbsd-tdep.c: Likewise.
1891         * hppaobsd-tdep.c: Likewise.
1892         * i386-cygwin-tdep.c: Likewise.
1893         * i386-dicos-tdep.c: Likewise.
1894         * i386-linux-tdep.c: Likewise.
1895         * i386-nto-tdep.c: Likewise.
1896         * i386-sol2-tdep.c: Likewise.
1897         * i386-tdep.c: Likewise.
1898         * i386bsd-tdep.c: Likewise.
1899         * i386gnu-nat.c: Likewise.
1900         * i386nbsd-tdep.c: Likewise.
1901         * i386obsd-tdep.c: Likewise.
1902         * i387-tdep.c: Likewise.
1903         * ia64-libunwind-tdep.c: Likewise.
1904         * ia64-linux-nat.c: Likewise.
1905         * inf-child.c: Likewise.
1906         * inf-ptrace.c: Likewise.
1907         * inf-ttrace.c: Likewise.
1908         * infcall.c: Likewise.
1909         * infcmd.c: Likewise.
1910         * inflow.c: Likewise.
1911         * infrun.c: Likewise.
1912         * interps.c: Likewise.
1913         * iq2000-tdep.c: Likewise.
1914         * irix5-nat.c: Likewise.
1915         * jv-exp.y: Likewise.
1916         * jv-lang.c: Likewise.
1917         * jv-typeprint.c: Likewise.
1918         * jv-valprint.c: Likewise.
1919         * language.c: Likewise.
1920         * linux-fork.c: Likewise.
1921         * linux-nat.c: Likewise.
1922         * lm32-tdep.c: Likewise.
1923         * m2-exp.y: Likewise.
1924         * m2-typeprint.c: Likewise.
1925         * m32c-tdep.c: Likewise.
1926         * m32r-linux-nat.c: Likewise.
1927         * m32r-linux-tdep.c: Likewise.
1928         * m32r-rom.c: Likewise.
1929         * m32r-tdep.c: Likewise.
1930         * m68hc11-tdep.c: Likewise.
1931         * m68k-tdep.c: Likewise.
1932         * m68kbsd-tdep.c: Likewise.
1933         * m68klinux-nat.c: Likewise.
1934         * m68klinux-tdep.c: Likewise.
1935         * m88k-tdep.c: Likewise.
1936         * machoread.c: Likewise.
1937         * macrocmd.c: Likewise.
1938         * main.c: Likewise.
1939         * mdebugread.c: Likewise.
1940         * mem-break.c: Likewise.
1941         * memattr.c: Likewise.
1942         * memory-map.c: Likewise.
1943         * mep-tdep.c: Likewise.
1944         * mi/mi-cmd-break.c: Likewise.
1945         * mi/mi-cmd-disas.c: Likewise.
1946         * mi/mi-cmd-env.c: Likewise.
1947         * mi/mi-cmd-stack.c: Likewise.
1948         * mi/mi-cmd-var.c: Likewise.
1949         * mi/mi-cmds.c: Likewise.
1950         * mi/mi-console.c: Likewise.
1951         * mi/mi-getopt.c: Likewise.
1952         * mi/mi-interp.c: Likewise.
1953         * mi/mi-main.c: Likewise.
1954         * mi/mi-parse.c: Likewise.
1955         * microblaze-rom.c: Likewise.
1956         * microblaze-tdep.c: Likewise.
1957         * mingw-hdep.c: Likewise.
1958         * minidebug.c: Likewise.
1959         * minsyms.c: Likewise.
1960         * mips-irix-tdep.c: Likewise.
1961         * mips-linux-tdep.c: Likewise.
1962         * mips-tdep.c: Likewise.
1963         * mips64obsd-tdep.c: Likewise.
1964         * mipsnbsd-tdep.c: Likewise.
1965         * mipsread.c: Likewise.
1966         * mn10300-linux-tdep.c: Likewise.
1967         * mn10300-tdep.c: Likewise.
1968         * monitor.c: Likewise.
1969         * moxie-tdep.c: Likewise.
1970         * mt-tdep.c: Likewise.
1971         * nat/linux-btrace.c: Likewise.
1972         * nat/linux-osdata.c: Likewise.
1973         * nat/linux-procfs.c: Likewise.
1974         * nat/linux-ptrace.c: Likewise.
1975         * nat/linux-waitpid.c: Likewise.
1976         * nbsd-tdep.c: Likewise.
1977         * nios2-linux-tdep.c: Likewise.
1978         * nto-procfs.c: Likewise.
1979         * nto-tdep.c: Likewise.
1980         * objc-lang.c: Likewise.
1981         * objfiles.c: Likewise.
1982         * opencl-lang.c: Likewise.
1983         * osabi.c: Likewise.
1984         * osdata.c: Likewise.
1985         * p-exp.y: Likewise.
1986         * p-lang.c: Likewise.
1987         * p-typeprint.c: Likewise.
1988         * parse.c: Likewise.
1989         * posix-hdep.c: Likewise.
1990         * ppc-linux-nat.c: Likewise.
1991         * ppc-sysv-tdep.c: Likewise.
1992         * ppcfbsd-tdep.c: Likewise.
1993         * ppcnbsd-tdep.c: Likewise.
1994         * ppcobsd-tdep.c: Likewise.
1995         * printcmd.c: Likewise.
1996         * procfs.c: Likewise.
1997         * prologue-value.c: Likewise.
1998         * python/py-auto-load.c: Likewise.
1999         * python/py-gdb-readline.c: Likewise.
2000         * ravenscar-thread.c: Likewise.
2001         * regcache.c: Likewise.
2002         * registry.c: Likewise.
2003         * remote-fileio.c: Likewise.
2004         * remote-m32r-sdi.c: Likewise.
2005         * remote-mips.c: Likewise.
2006         * remote-notif.c: Likewise.
2007         * remote-sim.c: Likewise.
2008         * remote.c: Likewise.
2009         * reverse.c: Likewise.
2010         * rs6000-aix-tdep.c: Likewise.
2011         * ser-base.c: Likewise.
2012         * ser-go32.c: Likewise.
2013         * ser-mingw.c: Likewise.
2014         * ser-pipe.c: Likewise.
2015         * ser-tcp.c: Likewise.
2016         * ser-unix.c: Likewise.
2017         * serial.c: Likewise.
2018         * sh-tdep.c: Likewise.
2019         * sh64-tdep.c: Likewise.
2020         * shnbsd-tdep.c: Likewise.
2021         * skip.c: Likewise.
2022         * sol-thread.c: Likewise.
2023         * solib-dsbt.c: Likewise.
2024         * solib-frv.c: Likewise.
2025         * solib-osf.c: Likewise.
2026         * solib-som.c: Likewise.
2027         * solib-spu.c: Likewise.
2028         * solib-target.c: Likewise.
2029         * solib.c: Likewise.
2030         * somread.c: Likewise.
2031         * source.c: Likewise.
2032         * sparc-nat.c: Likewise.
2033         * sparc-sol2-tdep.c: Likewise.
2034         * sparc-tdep.c: Likewise.
2035         * sparc64-tdep.c: Likewise.
2036         * sparc64fbsd-tdep.c: Likewise.
2037         * sparc64nbsd-tdep.c: Likewise.
2038         * sparcnbsd-tdep.c: Likewise.
2039         * spu-linux-nat.c: Likewise.
2040         * spu-multiarch.c: Likewise.
2041         * spu-tdep.c: Likewise.
2042         * stabsread.c: Likewise.
2043         * stack.c: Likewise.
2044         * std-regs.c: Likewise.
2045         * symfile.c: Likewise.
2046         * symmisc.c: Likewise.
2047         * symtab.c: Likewise.
2048         * target.c: Likewise.
2049         * thread.c: Likewise.
2050         * tilegx-linux-nat.c: Likewise.
2051         * tilegx-tdep.c: Likewise.
2052         * top.c: Likewise.
2053         * tracepoint.c: Likewise.
2054         * tui/tui-command.c: Likewise.
2055         * tui/tui-data.c: Likewise.
2056         * tui/tui-disasm.c: Likewise.
2057         * tui/tui-file.c: Likewise.
2058         * tui/tui-layout.c: Likewise.
2059         * tui/tui-out.c: Likewise.
2060         * tui/tui-regs.c: Likewise.
2061         * tui/tui-source.c: Likewise.
2062         * tui/tui-stack.c: Likewise.
2063         * tui/tui-win.c: Likewise.
2064         * tui/tui-windata.c: Likewise.
2065         * tui/tui-winsource.c: Likewise.
2066         * typeprint.c: Likewise.
2067         * ui-file.c: Likewise.
2068         * ui-out.c: Likewise.
2069         * user-regs.c: Likewise.
2070         * utils.c: Likewise.
2071         * v850-tdep.c: Likewise.
2072         * valarith.c: Likewise.
2073         * valops.c: Likewise.
2074         * valprint.c: Likewise.
2075         * value.c: Likewise.
2076         * varobj.c: Likewise.
2077         * vax-tdep.c: Likewise.
2078         * vaxnbsd-tdep.c: Likewise.
2079         * vaxobsd-tdep.c: Likewise.
2080         * windows-nat.c: Likewise.
2081         * xcoffread.c: Likewise.
2082         * xml-support.c: Likewise.
2083         * xstormy16-tdep.c: Likewise.
2084         * xtensa-linux-nat.c: Likewise.
2085
2086 2014-08-07  Gary Benson  <gbenson@redhat.com>
2087
2088         * common/common-defs.h: Include gdb_assert.h.
2089         * aarch64-tdep.c: Do not include gdb_assert.h.
2090         * addrmap.c: Likewise.
2091         * aix-thread.c: Likewise.
2092         * alpha-linux-tdep.c: Likewise.
2093         * alpha-mdebug-tdep.c: Likewise.
2094         * alphanbsd-tdep.c: Likewise.
2095         * amd64-nat.c: Likewise.
2096         * amd64-tdep.c: Likewise.
2097         * amd64bsd-nat.c: Likewise.
2098         * amd64fbsd-nat.c: Likewise.
2099         * amd64fbsd-tdep.c: Likewise.
2100         * amd64nbsd-nat.c: Likewise.
2101         * amd64nbsd-tdep.c: Likewise.
2102         * amd64obsd-nat.c: Likewise.
2103         * amd64obsd-tdep.c: Likewise.
2104         * arch-utils.c: Likewise.
2105         * arm-tdep.c: Likewise.
2106         * armbsd-tdep.c: Likewise.
2107         * auxv.c: Likewise.
2108         * bcache.c: Likewise.
2109         * bfin-tdep.c: Likewise.
2110         * blockframe.c: Likewise.
2111         * breakpoint.c: Likewise.
2112         * bsd-kvm.c: Likewise.
2113         * bsd-uthread.c: Likewise.
2114         * buildsym.c: Likewise.
2115         * c-exp.y: Likewise.
2116         * c-lang.c: Likewise.
2117         * charset.c: Likewise.
2118         * cleanups.c: Likewise.
2119         * cli-out.c: Likewise.
2120         * cli/cli-decode.c: Likewise.
2121         * cli/cli-dump.c: Likewise.
2122         * cli/cli-logging.c: Likewise.
2123         * cli/cli-script.c: Likewise.
2124         * cli/cli-utils.c: Likewise.
2125         * coffread.c: Likewise.
2126         * common/common-utils.c: Likewise.
2127         * common/queue.h: Likewise.
2128         * common/signals.c: Likewise.
2129         * common/vec.h: Likewise.
2130         * complaints.c: Likewise.
2131         * completer.c: Likewise.
2132         * corelow.c: Likewise.
2133         * cp-abi.c: Likewise.
2134         * cp-name-parser.y: Likewise.
2135         * cp-namespace.c: Likewise.
2136         * cp-support.c: Likewise.
2137         * cris-tdep.c: Likewise.
2138         * dbxread.c: Likewise.
2139         * dictionary.c: Likewise.
2140         * doublest.c: Likewise.
2141         * dsrec.c: Likewise.
2142         * dummy-frame.c: Likewise.
2143         * dwarf2-frame-tailcall.c: Likewise.
2144         * dwarf2-frame.c: Likewise.
2145         * dwarf2expr.c: Likewise.
2146         * dwarf2loc.c: Likewise.
2147         * dwarf2read.c: Likewise.
2148         * eval.c: Likewise.
2149         * event-loop.c: Likewise.
2150         * exceptions.c: Likewise.
2151         * expprint.c: Likewise.
2152         * f-valprint.c: Likewise.
2153         * fbsd-nat.c: Likewise.
2154         * findvar.c: Likewise.
2155         * frame-unwind.c: Likewise.
2156         * frame.c: Likewise.
2157         * frv-tdep.c: Likewise.
2158         * gcore.c: Likewise.
2159         * gdb-dlfcn.c: Likewise.
2160         * gdb_bfd.c: Likewise.
2161         * gdbarch.c: Likewise.
2162         * gdbarch.sh: Likewise.
2163         * gdbtypes.c: Likewise.
2164         * gnu-nat.c: Likewise.
2165         * gnu-v3-abi.c: Likewise.
2166         * go-lang.c: Likewise.
2167         * guile/scm-exception.c: Likewise.
2168         * guile/scm-gsmob.c: Likewise.
2169         * guile/scm-lazy-string.c: Likewise.
2170         * guile/scm-math.c: Likewise.
2171         * guile/scm-pretty-print.c: Likewise.
2172         * guile/scm-safe-call.c: Likewise.
2173         * guile/scm-utils.c: Likewise.
2174         * guile/scm-value.c: Likewise.
2175         * h8300-tdep.c: Likewise.
2176         * hppa-hpux-nat.c: Likewise.
2177         * hppa-tdep.c: Likewise.
2178         * hppanbsd-tdep.c: Likewise.
2179         * hppaobsd-tdep.c: Likewise.
2180         * i386-darwin-nat.c: Likewise.
2181         * i386-darwin-tdep.c: Likewise.
2182         * i386-nto-tdep.c: Likewise.
2183         * i386-tdep.c: Likewise.
2184         * i386bsd-nat.c: Likewise.
2185         * i386fbsd-tdep.c: Likewise.
2186         * i386gnu-nat.c: Likewise.
2187         * i386nbsd-tdep.c: Likewise.
2188         * i386obsd-tdep.c: Likewise.
2189         * i387-tdep.c: Likewise.
2190         * ia64-libunwind-tdep.c: Likewise.
2191         * ia64-tdep.c: Likewise.
2192         * inf-ptrace.c: Likewise.
2193         * inf-ttrace.c: Likewise.
2194         * infcall.c: Likewise.
2195         * infcmd.c: Likewise.
2196         * infrun.c: Likewise.
2197         * inline-frame.c: Likewise.
2198         * interps.c: Likewise.
2199         * jv-lang.c: Likewise.
2200         * jv-typeprint.c: Likewise.
2201         * linux-fork.c: Likewise.
2202         * linux-nat.c: Likewise.
2203         * linux-thread-db.c: Likewise.
2204         * m32c-tdep.c: Likewise.
2205         * m32r-linux-nat.c: Likewise.
2206         * m32r-tdep.c: Likewise.
2207         * m68k-tdep.c: Likewise.
2208         * m68kbsd-nat.c: Likewise.
2209         * m68kbsd-tdep.c: Likewise.
2210         * m88k-tdep.c: Likewise.
2211         * machoread.c: Likewise.
2212         * macroexp.c: Likewise.
2213         * macrotab.c: Likewise.
2214         * maint.c: Likewise.
2215         * mdebugread.c: Likewise.
2216         * memory-map.c: Likewise.
2217         * mep-tdep.c: Likewise.
2218         * mi/mi-common.c: Likewise.
2219         * microblaze-tdep.c: Likewise.
2220         * mingw-hdep.c: Likewise.
2221         * mips-linux-nat.c: Likewise.
2222         * mips-linux-tdep.c: Likewise.
2223         * mips-tdep.c: Likewise.
2224         * mips64obsd-tdep.c: Likewise.
2225         * mipsnbsd-tdep.c: Likewise.
2226         * mn10300-linux-tdep.c: Likewise.
2227         * mn10300-tdep.c: Likewise.
2228         * moxie-tdep.c: Likewise.
2229         * mt-tdep.c: Likewise.
2230         * nat/linux-btrace.c: Likewise.
2231         * nat/linux-osdata.c: Likewise.
2232         * nat/linux-ptrace.c: Likewise.
2233         * nat/mips-linux-watch.c: Likewise.
2234         * nios2-linux-tdep.c: Likewise.
2235         * nios2-tdep.c: Likewise.
2236         * objc-lang.c: Likewise.
2237         * objfiles.c: Likewise.
2238         * obsd-nat.c: Likewise.
2239         * opencl-lang.c: Likewise.
2240         * osabi.c: Likewise.
2241         * parse.c: Likewise.
2242         * ppc-linux-nat.c: Likewise.
2243         * ppc-sysv-tdep.c: Likewise.
2244         * ppcfbsd-nat.c: Likewise.
2245         * ppcfbsd-tdep.c: Likewise.
2246         * ppcnbsd-nat.c: Likewise.
2247         * ppcnbsd-tdep.c: Likewise.
2248         * ppcobsd-nat.c: Likewise.
2249         * ppcobsd-tdep.c: Likewise.
2250         * printcmd.c: Likewise.
2251         * procfs.c: Likewise.
2252         * prologue-value.c: Likewise.
2253         * psymtab.c: Likewise.
2254         * python/py-lazy-string.c: Likewise.
2255         * python/py-value.c: Likewise.
2256         * regcache.c: Likewise.
2257         * reggroups.c: Likewise.
2258         * registry.c: Likewise.
2259         * remote-sim.c: Likewise.
2260         * remote.c: Likewise.
2261         * rs6000-aix-tdep.c: Likewise.
2262         * rs6000-tdep.c: Likewise.
2263         * s390-linux-tdep.c: Likewise.
2264         * score-tdep.c: Likewise.
2265         * ser-base.c: Likewise.
2266         * ser-mingw.c: Likewise.
2267         * sh-tdep.c: Likewise.
2268         * sh64-tdep.c: Likewise.
2269         * solib-darwin.c: Likewise.
2270         * solib-spu.c: Likewise.
2271         * solib-svr4.c: Likewise.
2272         * source.c: Likewise.
2273         * sparc-nat.c: Likewise.
2274         * sparc-sol2-tdep.c: Likewise.
2275         * sparc-tdep.c: Likewise.
2276         * sparc64-sol2-tdep.c: Likewise.
2277         * sparc64-tdep.c: Likewise.
2278         * sparc64fbsd-tdep.c: Likewise.
2279         * sparc64nbsd-tdep.c: Likewise.
2280         * sparc64obsd-tdep.c: Likewise.
2281         * sparcnbsd-tdep.c: Likewise.
2282         * sparcobsd-tdep.c: Likewise.
2283         * spu-multiarch.c: Likewise.
2284         * spu-tdep.c: Likewise.
2285         * stabsread.c: Likewise.
2286         * stack.c: Likewise.
2287         * symfile.c: Likewise.
2288         * symtab.c: Likewise.
2289         * target-descriptions.c: Likewise.
2290         * target-memory.c: Likewise.
2291         * target.c: Likewise.
2292         * tic6x-linux-tdep.c: Likewise.
2293         * tic6x-tdep.c: Likewise.
2294         * tilegx-linux-nat.c: Likewise.
2295         * tilegx-tdep.c: Likewise.
2296         * top.c: Likewise.
2297         * tramp-frame.c: Likewise.
2298         * tui/tui-out.c: Likewise.
2299         * tui/tui-winsource.c: Likewise.
2300         * ui-out.c: Likewise.
2301         * user-regs.c: Likewise.
2302         * utils.c: Likewise.
2303         * v850-tdep.c: Likewise.
2304         * valops.c: Likewise.
2305         * value.c: Likewise.
2306         * varobj.c: Likewise.
2307         * vax-nat.c: Likewise.
2308         * xml-syscall.c: Likewise.
2309         * xml-tdesc.c: Likewise.
2310         * xstormy16-tdep.c: Likewise.
2311         * xtensa-linux-nat.c: Likewise.
2312         * xtensa-tdep.c: Likewise.
2313
2314 2014-08-07  Gary Benson  <gbenson@redhat.com>
2315
2316         * common/common-defs.h: Include common-utils.h.
2317         * defs.h: Do not include common-utils.h.
2318         * common/gdb_assert.h: Likewise.
2319         * darwin-nat.h: Likewise.
2320         * nat/linux-btrace.c: Likewise.
2321         * target/waitstatus.h: Likewise.
2322
2323 2014-08-07  Gary Benson  <gbenson@redhat.com>
2324
2325         * common/common-defs.h: Include ptid.h.
2326         * defs.h: Do not include ptid.h.
2327         * inferior.h: Likewise.
2328         * infrun.h: Likewise.
2329         * nat/linux-btrace.h: Likewise.
2330         * nat/linux-osdata.h: Likewise.
2331         * target/waitstatus.h: Likewise.
2332
2333 2014-08-07  Gary Benson  <gbenson@redhat.com>
2334
2335         * common/common-defs.h: Include gdb_locale.h.
2336         * defs.h: Do not include gdb_locale.h.
2337
2338 2014-08-07  Gary Benson  <gbenson@redhat.com>
2339
2340         * common/common-defs.h: Include gdb/signals.h.
2341         * defs.h: Do not include gdb/signals.h.
2342
2343 2014-08-07  Gary Benson  <gbenson@redhat.com>
2344
2345         * common/common-defs.h: Include pathmax.h.
2346         * defs.h: Do not include pathmax.h.
2347
2348 2014-08-07  Gary Benson  <gbenson@redhat.com>
2349
2350         * common/common-defs.h: Include libiberty.h.
2351         * defs.h: Do not include libiberty.h.
2352         * common/queue.h: Likewise.
2353         * cp-name-parser.y: Likewise.
2354         * mi/mi-cmd-catch.c: Likewise.
2355         * python/python.c: Likewise.
2356
2357 2014-08-07  Gary Benson  <gbenson@redhat.com>
2358
2359         * common/common-defs.h: Include ansidecl.h.
2360         * defs.h: Do not include ansidecl.h.
2361         * common/buffer.h: Likewise.
2362         * common/common-utils.h: Likewise.
2363
2364 2014-08-07  Gary Benson  <gbenson@redhat.com>
2365
2366         * common/common-defs.h: Include stddef.h.
2367         * defs.h: Do not include stddef.h.
2368         * common/common-utils.h: Likewise.
2369         * amd64fbsd-nat.c: Likewise.
2370         * bcache.c: Likewise.
2371         * charset.c: Likewise.
2372         * common/buffer.h: Likewise.
2373         * common/vec.h: Likewise.
2374         * i386bsd-nat.c: Likewise.
2375         * nat/linux-btrace.h: Likewise.
2376         * ppcfbsd-nat.c: Likewise.
2377         * ppcnbsd-tdep.h: Likewise.
2378         * ppcobsd-nat.c: Likewise.
2379         * ppcobsd-tdep.h: Likewise.
2380         * python/py-gdb-readline.c: Likewise.
2381
2382 2014-08-07  Gary Benson  <gbenson@redhat.com>
2383
2384         * common/common-defs.h: Include stdarg.h.
2385         * defs.h: Do not include stdarg.h.
2386         * ada-lang.c: Likewise.
2387         * common/common-utils.h: Likewise.
2388         * guile/scm-string.c: Likewise.
2389         * guile/scm-utils.c: Likewise.
2390         * m32c-tdep.c: Likewise.
2391
2392 2014-08-07  Gary Benson  <gbenson@redhat.com>
2393
2394         * common/common-defs.h: Include stdlib.h.
2395         * defs.h: Do not include stdlib.h.
2396         * addrmap.c: Likewise.
2397         * bcache.c: Likewise.
2398         * common/buffer.c: Likewise.
2399         * common/common-utils.c: Likewise.
2400         * cp-name-parser.y: Likewise.
2401         * go32-nat.c: Likewise.
2402         * mn10300-linux-tdep.c: Likewise.
2403         * nat/linux-osdata.c: Likewise.
2404         * tui/tui.c: Likewise.
2405         * windows-nat.c: Likewise.
2406
2407 2014-08-07  Gary Benson  <gbenson@redhat.com>
2408
2409         * common/common-defs.h: Include stdio.h.
2410         * defs.h: Do not include stdio.h.
2411         * ada-lang.c: Likewise.
2412         * common/buffer.c: Likewise.
2413         * common/common-utils.c: Likewise.
2414         * cp-name-parser.y: Likewise.
2415         * gnu-nat.c: Likewise.
2416         * go32-nat.c: Likewise.
2417         * i386gnu-nat.c: Likewise.
2418         * proc-api.c: Likewise.
2419         * proc-events.c: Likewise.
2420         * proc-flags.c: Likewise.
2421         * proc-why.c: Likewise.
2422         * python/python-internal.h: Likewise.
2423         * target-memory.c: Likewise.
2424         * tui/tui-io.c: Likewise.
2425         * tui/tui.c: Likewise.
2426
2427 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
2428
2429         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2430         (scan_dyntag_auxv): Same.
2431
2432 2014-08-06  Yao Qi  <yao@codesourcery.com>
2433
2434         * amd64-linux-nat.c: Remove duplicated include
2435         "x86-linux-nat.h".
2436         * i386-linux-nat.c: Likewise.
2437
2438 2014-08-06  Yao Qi  <yao@codesourcery.com>
2439
2440         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2441         operand" with "Special opcode" in comments.
2442
2443 2014-08-05  Gary Benson  <gbenson@redhat.com>
2444
2445         * interps.c (initialize_interps): Remove prototype.
2446         (interpreter_initialized): Remove static global.
2447         (interp_add): Do not call initialize_interps.
2448         (initialize_interps): Remove function.
2449
2450 2014-08-05  Gary Benson  <gbenson@redhat.com>
2451
2452         * utils.c (vwarning): Remove spurious va_end.
2453
2454 2014-08-05  Alan Modra  <amodra@gmail.com>
2455
2456         * charset.c (convert_between_encodings): Cast result of obstack_base.
2457         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2458         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2459         (read_unwind_info): Use size_t for some locals.
2460         * jit.c (finalize_symtab): Likewise.
2461         * utils.c (hashtab_obstack_allocate): Likewise.
2462         * symmisc.c (print_objfile_statistics): Update format strings.
2463
2464 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
2465
2466         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2467         (Changes in GDB 7.8): ... here.
2468
2469 2014-08-04  Tom Tromey  <tromey@redhat.com>
2470
2471         * target.c (set_targetdebug): New function.
2472         (initialize_targets): Pass set_targetdebug when creating "set
2473         debug target".
2474
2475 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
2476
2477         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2478         if detecting a variable-sized field that is not the last field.
2479         Fix struct type length computation.
2480
2481 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
2482
2483         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2484         Add debug trace.
2485
2486 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
2487
2488         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2489         Remove "+ 8" offset in computation of CHAIN_VMA.
2490
2491 2014-07-31  Doug Evans  <dje@google.com>
2492
2493         * inflow.c (child_terminal_inferior): Add comment.
2494         (child_terminal_ours_for_output): Add comment.
2495         (child_terminal_ours): Add comment.
2496         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2497         (linux_nat_terminal_ours): Add comment.
2498
2499 2014-07-31  Gary Benson  <gbenson@redhat.com>
2500
2501         * common/btrace-common.h: Do not include defs.h or server.h.
2502         * nat/mips-linux-watch.h: Likewise.
2503         * gdb-dlfcn.h: Do not include defs.h.
2504         * tracefile.h: Likewise.
2505
2506 2014-07-30  Roland McGrath  <mcgrathr@google.com>
2507
2508         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2509
2510 2014-07-30  Tom Tromey  <tromey@redhat.com>
2511
2512         * bsd-kvm.c (bsd_kvm_open): Constify.
2513         * corelow.c (core_open): Constify.
2514         * ctf.c (ctf_open): Constify.
2515         * dbug-rom.c (dbug_open): Constify.
2516         * exec.c (exec_open): Constify.
2517         * m32r-rom.c (m32r_open, mon2000_open): Constify.
2518         * microblaze-rom.c (picobug_open): Constify.
2519         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2520         Constify.
2521         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2522         * record-btrace.c (record_btrace_open): Constify.
2523         * record-full.c (record_full_core_open_1, record_full_open_1)
2524         (record_full_open): Constify.
2525         * remote-m32r-sdi.c (m32r_open): Constify.
2526         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2527         (rockhopper_open, lsi_open): Constify.
2528         * remote-sim.c (gdbsim_open): Constify.
2529         * remote.c (remote_open, extended_remote_open, remote_open_1):
2530         Constify.
2531         * target.h (struct target_ops) <to_open>: Make "arg" const.
2532         * tracefile-tfile.c (tfile_open): Constify.
2533
2534 2014-07-30  Tom Tromey  <tromey@redhat.com>
2535
2536         * breakpoint.c (map_breakpoint_numbers): Update.
2537         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
2538         (get_number_const): New function.
2539         (get_number): Rewrite using get_number_const.
2540         (init_number_or_range): Make "string" const.
2541         (number_is_in_list): Make "list" const.
2542         * cli/cli-utils.h (get_number_const): Declare.
2543         (struct get_number_or_range_state) <string, end_ptr>: Now const.
2544         (init_number_or_range, number_is_in_list): Update.
2545         * printcmd.c (map_display_numbers): Update.
2546         * value.c (value_from_history_ref): Constify.
2547         * value.h (value_from_history_ref): Update.
2548
2549 2014-07-30  Tom Tromey  <tromey@redhat.com>
2550
2551         * corefile.c (hook_type, call_extra_exec_file_hooks)
2552         (specify_exec_file_hook): Constify.
2553         * exec.c (exec_file_attach): Make "filename" const.
2554         * gdbcore.h (deprecated_exec_file_display_hook)
2555         (specify_exec_file_hook, exec_file_attach): Constify.
2556         * main.c (captured_main): Use catch_command_errors_const.
2557
2558 2014-07-30  Tom Tromey  <tromey@redhat.com>
2559
2560         * target.c (open_target): New function.
2561         (add_target_with_completer, add_deprecated_target_alias): Use
2562         set_cmd_sfunc, set_cmd_context.
2563         (debug_to_open): Remove.
2564         (setup_target_debug): Update.
2565
2566 2014-07-30  Yao Qi  <yao@codesourcery.com>
2567
2568         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2569         comments.
2570         * parse.c (exp_iterate): Update comments.
2571
2572 2014-07-30  Gary Benson  <gbenson@redhat.com>
2573
2574         * common/common-defs.h: New file.
2575         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2576         * defs.h: Include common-defs.h.
2577         Do not include config.h or build-gnulib/config.h.
2578
2579 2014-07-30  Gary Benson  <gbenson@redhat.com>
2580
2581         * common/common-utils.h: Do not include config.h.
2582         * nat/linux-btrace.h: Likewise.
2583
2584 2014-07-30  Gary Benson  <gbenson@redhat.com>
2585
2586         * btrace.c: Include defs.h.
2587         * common/ptid.c: Include defs.h or server.h as appropriate.
2588         * nat/mips-linux-watch.c: Likewise.
2589
2590 2014-07-29  Tom Tromey  <tromey@redhat.com>
2591
2592         * target.c (target_is_pushed): Simplify.
2593
2594 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
2595
2596         GDB 7.8 released.
2597
2598 2014-07-29  Yao Qi  <yao@codesourcery.com>
2599
2600         PR gdb/17206
2601         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2602
2603 2014-07-28  Doug Evans  <xdje42@gmail.com>
2604
2605         PR guile/17203
2606         * guile/scm-param.c (pascm_parameter_defined_p): New function.
2607         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
2608         parameters.
2609
2610 2014-07-28  Will Newton  <will.newton@linaro.org>
2611
2612         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2613         (THUMB2_SET_R7_SIGRETURN2): Likewise.
2614         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2615         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2616         (THUMB2_EABI_SYSCALL): Likewise.
2617         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2618         struct tramp_frame.
2619         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2620         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2621
2622 2014-07-27  Doug Evans  <xdje42@gmail.com>
2623
2624         * guile/scm-param.c (pascm_print_param_smob): Fix output.
2625
2626 2014-07-27  Doug Evans  <xdje42@gmail.com>
2627
2628         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2629
2630 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
2631             Doug Evans  <xdje42@gmail.com>
2632
2633         PR guile/17146
2634         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2635         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2636         * configure.ac: Try to use guild to compile an scm file, if it fails
2637         then disable guile support.
2638         * configure: Regenerate.
2639         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2640         GUILE_FILE_LIST.
2641         (GUILE_COMPILED_FILES): New variable.
2642         (GUILE_FILES) Update.
2643         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2644         (stamp-guile): Compile scm files.
2645         * guile/guile.c (boot_guile_support): New function.
2646         (standard_throw_args_p): New function.
2647         (print_standard_throw_error, print_throw_error): New functions.
2648         (handle_boot_error): New function.
2649         (initialize_scheme_side): Rewrite to call boot_guile_support.
2650         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
2651         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2652
2653 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
2654             Doug Evans  <xdje42@gmail.com>
2655
2656         PR guile/17146
2657         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2658         * guile/lib/gdb/support.scm: New file.
2659         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2660         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2661         All uses updated.
2662         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2663         All uses updated.
2664         (%assert-type): Ditto, and renamed to assert-type.
2665         (%exception-print-style): Delete.
2666
2667 2014-07-26  Doug Evans  <xdje42@gmail.com>
2668
2669         PR build/17105
2670         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2671         * configure: Regenerate.
2672         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2673         PYTHON_FILES.
2674         (PYTHON_FILES): New variable.
2675         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2676         (GUILE_FILES): New variable.
2677         (stamp-python, install-python, uninstall-python): Handle empty
2678         file list.
2679         (stamp-guile, install-guile, uninstall-guile): Ditto.
2680
2681 2014-07-26  Doug Evans  <xdje42@gmail.com>
2682
2683         PR guile/17177
2684         * guile/lib/gdb.scm (pretty-printers): Export.
2685         (set-pretty-printers!): Export.
2686         * guile/lib/gdb/printing.scm (gdb module): Update.
2687         (prepend-pretty-printer!, append-pretty-printer!): Update.
2688         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2689         (pretty_printer_list_var): Delete.
2690         (pretty_printer_list): New static global.
2691         (gdbscm_pretty_printers): New function.
2692         (gdbscm_set_pretty_printers_x): New function.
2693         (ppscm_find_pretty_printer_from_gdb): Update.
2694         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2695         (gdbscm_initialize_pretty_printers): Update.
2696
2697 2014-07-26  Doug Evans  <xdje42@gmail.com>
2698
2699         PR 17185
2700         * configure.ac: Add check for header gc/gc.h.
2701         Add check for function setenv.
2702         * configure: Regenerate.
2703         * config.in: Regenerate.
2704         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2705
2706 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
2707
2708         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2709         variation in gdbarch matching.
2710
2711 2014-07-25  Tom Tromey  <tromey@redhat.com>
2712
2713         * exec.c (using_exec_ops): Remove.
2714         (exec_close_1): Update.  Remove extraneous block, reindent.
2715         (add_target_sections): Use target_is_pushed.
2716
2717 2014-07-25  Pedro Alves  <palves@redhat.com>
2718
2719         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2720         * monitor.c (monitor_create_inferior): Likewise.
2721         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2722         * remote-sim.c (gdbsim_create_inferior): Likewise.
2723         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2724         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2725         * windows-nat.c (do_initial_windows_stuff): Likewise.
2726
2727 2014-07-25  Pedro Alves  <palves@redhat.com>
2728
2729         * NEWS: Mention signal passing and "signal" command changes.
2730         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2731         comment.
2732         * breakpoint.c (until_break_command): Adjust clear_proceed_status
2733         call.
2734         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2735         * infcmd.c (proceed_thread_callback, continue_1, step_once)
2736         (jump_command): Adjust clear_proceed_status call.
2737         (signal_command): Warn if other thread that are resumed have
2738         signals that will be delivered.  Adjust clear_proceed_status call.
2739         (until_next_command, finish_command)
2740         (proceed_after_attach_callback, attach_command_post_wait)
2741         (attach_command): Adjust clear_proceed_status call.
2742         * infrun.c (proceed_after_vfork_done): Likewise.
2743         (proceed_after_attach_callback): Adjust comment.
2744         (clear_proceed_status_thread): Clear stop_signal if not in pass
2745         state.
2746         (clear_proceed_status_callback): Delete.
2747         (clear_proceed_status): New 'step' parameter.  Only clear the
2748         proceed status of threads the command being prepared is about to
2749         resume.
2750         (proceed): If passed in an explicit signal, override stop_signal
2751         with it.  Don't pass the last stop signal to the thread we're
2752         resuming.
2753         (init_wait_for_inferior): Adjust clear_proceed_status call.
2754         (switch_back_to_stepped_thread): Clear the signal if it should not
2755         be passed.
2756         * infrun.h (clear_proceed_status): New 'step' parameter.
2757         (user_visible_resume_ptid): Add comment.
2758         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2759         signal is in pass state.
2760         * remote.c (append_pending_thread_resumptions): Likewise.
2761         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2762
2763 2014-07-25  Tom Tromey  <tromey@redhat.com>
2764
2765         * target.h (target_stopped_data_address)
2766         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
2767         parentheses.
2768
2769 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
2770
2771         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2772         comments.
2773         (avr_pointer_to_address): Likewise.
2774
2775 2014-07-24  Tom Tromey  <tromey@redhat.com>
2776
2777         * monitor.c (compile_pattern): Update.
2778         * target.h (struct target_ops) <to_shortname, to_longname,
2779         to_doc>: Now const.
2780
2781 2014-07-24  Tom Tromey  <tromey@redhat.com>
2782
2783         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2784         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2785         (add_info_alias, add_com): Make "doc" const.
2786         (print_doc_line): Make "str" const.
2787         (delete_cmd): Update.
2788         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2789         (print_doc_line): Update.
2790         * cli/cli-script.c (document_command): Update.
2791         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2792         (add_com, add_info, add_info_alias): Update.
2793         * guile/scm-cmd.c (cmdscm_destroyer): Update.
2794         * python/py-cmd.c (cmdpy_destroyer): Update.
2795
2796 2014-07-24  Tom Tromey  <tromey@redhat.com>
2797
2798         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2799         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2800         (help_cmd_list): Constify.
2801         (lookup_cmd): Update.
2802         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2803         const.
2804         (help_cmd_list, apropos_cmd): Update.
2805         * cli/cli-script.c (show_user): Update.
2806         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2807         * cli/cli-setshow.h (cmd_show_list): Update.
2808         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2809         (cmd_show_list): Update.
2810         * guile/scm-cmd.c (cmdscm_destroyer): Update.
2811         * python/py-cmd.c (cmdpy_destroyer): Update.
2812
2813 2014-07-24  Tom Tromey  <tromey@redhat.com>
2814
2815         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2816         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2817         const.
2818         * command.h (deprecate_cmd): Update.
2819         * maint.c (maintenance_do_deprecate): Add casts.
2820
2821 2014-07-24  Tom Tromey  <tromey@redhat.com>
2822
2823         * cli/cli-decode.c (help_cmd): Make parameter "const".
2824         * cli/cli-decode.h (help_cmd): Update.
2825
2826 2014-07-24  Tom Tromey  <tromey@redhat.com>
2827
2828         * stack.c (up_silently_base, down_silently_base): Make argument
2829         const.
2830
2831 2014-07-24  Tom Tromey  <tromey@redhat.com>
2832
2833         * solib.c (solib_add): Make "pattern" const.
2834         * solib.h (solib_add): Update.
2835
2836 2014-07-24  Tom Tromey  <tromey@redhat.com>
2837
2838         * remote.c (remote_serial_open, print_packet, putpkt)
2839         (putpkt_binary): Constify.
2840         * remote.h (putpkt): Update.
2841
2842 2014-07-24  Tom Tromey  <tromey@redhat.com>
2843
2844         * monitor.c (monitor_open): Make "args" const.
2845         * monitor.h (monitor_open): Update.
2846
2847 2014-07-24  Tom Tromey  <tromey@redhat.com>
2848
2849         * maint.c (match_bfd_flags): Make "string" const.
2850         (print_bfd_section_info): Remove casts.
2851         (print_objfile_section_info): Make "string" const.
2852
2853 2014-07-24  Tom Tromey  <tromey@redhat.com>
2854
2855         * inf-child.c (inf_child_open_target): Make "arg" const.
2856         * inf-child.h (inf_child_open_target): Update.
2857
2858 2014-07-24  Tom Tromey  <tromey@redhat.com>
2859
2860         * environ.c (unset_in_environ): Make "var" const.
2861         * environ.h (unset_in_environ): Update.
2862
2863 2014-07-24  Tom Tromey  <tromey@redhat.com>
2864
2865         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2866         Make "cmd" const.
2867         (scan_filename_with_cleanup): Likewise.
2868         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2869         Make arguments const.
2870         (restore_command): Update.
2871
2872 2014-07-24  Pedro Alves  <palves@redhat.com>
2873
2874         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2875
2876 2014-07-24  Tom Tromey  <tromey@redhat.com>
2877             Gary Benson  <gbenson@redhat.com>
2878
2879         * nat/linux-ptrace.c (additional_flags): New global.
2880         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2881         additional_flags; don't check GDBSERVER.
2882         (linux_ptrace_set_additional_flags): New function.
2883         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2884         Declare.
2885         * linux-nat.c (_initialize_linux_nat): Call
2886         linux_ptrace_set_additional_flags.
2887
2888 2014-07-24  Tom Tromey  <tromey@redhat.com>
2889
2890         * make-target-delegates (munge_type, write_debugmethod): New
2891         functions.
2892         (debug_names): New global.
2893         ($TARGET_DEBUG_PRINTER): New global.
2894         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2895         name.
2896         Write debug methods.  Generate init_debug_target.
2897         * target-debug.h: New file.
2898         * target-delegates.c: Rebuild.
2899         * target.c: Include target-debug.h.
2900         (debug_target): Hoist definition.
2901         (target_kill, target_get_section_table, target_memory_map)
2902         (target_flash_erase, target_flash_done, target_detach)
2903         (target_disconnect, target_wait, target_resume)
2904         (target_pass_signals, target_program_signals, target_follow_fork)
2905         (target_mourn_inferior, target_search_memory)
2906         (target_thread_address_space, target_close)
2907         (target_find_new_threads, target_core_of_thread)
2908         (target_verify_memory, target_insert_mask_watchpoint)
2909         (target_remove_mask_watchpoint): Remove targetdebug code.
2910         (debug_to_post_attach, debug_to_prepare_to_store)
2911         (debug_to_files_info, debug_to_insert_breakpoint)
2912         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2913         (debug_to_region_ok_for_hw_watchpoint)
2914         (debug_to_can_accel_watchpoint_condition)
2915         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2916         (debug_to_watchpoint_addr_within_range)
2917         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2918         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2919         (debug_to_terminal_init, debug_to_terminal_inferior)
2920         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2921         (debug_to_terminal_save_ours, debug_to_terminal_info)
2922         (debug_to_load, debug_to_post_startup_inferior)
2923         (debug_to_insert_fork_catchpoint)
2924         (debug_to_remove_fork_catchpoint)
2925         (debug_to_insert_vfork_catchpoint)
2926         (debug_to_remove_vfork_catchpoint)
2927         (debug_to_insert_exec_catchpoint)
2928         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2929         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2930         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2931         (setup_target_debug): Call init_debug_target.
2932         * target.h (TARGET_DEBUG_PRINTER): New macro.
2933         (struct target_ops) <to_resume, to_wait, to_pass_signals,
2934         to_program_signals>: Use TARGET_DEBUG_PRINTER.
2935
2936 2014-07-24  Gary Benson  <gbenson@redhat.com>
2937
2938         * exceptions.h (throw_vfatal): Renamed to...
2939         (throw_vquit): New declaration.
2940         (throw_quit): Likewise.
2941         * exceptions.c (throw_vfatal): Renamed to...
2942         (throw_vquit): New function.
2943         (throw_quit): Likewise.
2944         (throw_error): Call throw_verror rather than throw_it.
2945         * utils.h (vfatal): Removed.
2946         (fatal): Likewise.
2947         * utils.c (vfatal): Removed.
2948         (fatal): Likewise.
2949         (internal_verror): Replaced call to fatal with call to throw_quit.
2950         (quit): Replaced calls to fatal with calls to throw_quit.
2951
2952 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
2953
2954         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2955         target_read_code.
2956
2957 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
2958
2959         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2960         less than zero in conditional expression.
2961
2962 2014-07-23  Tom Tromey  <tromey@redhat.com>
2963
2964         * make-target-delegates ($ARGS_PART): Match trailing close paren.
2965         ($INTRO_PART): Don't match whitespace.
2966         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
2967         argument matching.
2968         ($METHOD): Add $METHOD_TRAILER.
2969         (trim): Rewrite.
2970         (scan_target_h): New sub.
2971         Change main loop not to collect state.
2972         * target-delegates.c: Rebuild.
2973
2974 2014-07-23  Gary Benson  <gbenson@redhat.com>
2975
2976         * cp-support.c (gdb_demangle): Fix build on systems without
2977         sigaltstack.
2978
2979 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
2980
2981         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2982         for reference entry value target data value.
2983
2984 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
2985
2986         * stack.c (read_frame_arg): Verify value_optimized_out before calling
2987         value_available_contents_eq.
2988
2989 2014-07-22  Pedro Alves  <palves@redhat.com>
2990
2991         * value.c (allocate_optimized_out_value): Don't mark value as
2992         non-lazy.
2993
2994 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
2995
2996         * MAINTAINERS (Write After Approval): Update my email address.
2997
2998 2014-07-20  Doug Evans  <dje@google.com>
2999
3000         PR server/17147
3001         * remote.c (putpkt_binary): Add text to error message.
3002
3003 2014-07-20  Yao Qi  <yao@codesourcery.com>
3004
3005         * eval.c: Remove "Chill" from comments.
3006         * gdbtypes.h: Likewise.
3007         * symtab.h: Likewise.
3008
3009 2014-07-20  Yao Qi  <yao@codesourcery.com>
3010
3011         * std-operator.def: Update comments to TERNOP_SLICE.
3012
3013 2014-07-20  Yao Qi  <yao@codesourcery.com>
3014
3015         * std-operator.def: Remove BINOP_RANGE.
3016         * breakpoint.c (watchpoint_exp_is_const): Update.
3017         * expprint.c (dump_subexp_body_standard): Likewise.
3018         * eval.c (init_array_element): Remove dead code.
3019         (evaluate_subexp_standard): Likewise.
3020
3021 2014-07-20  Yao Qi  <yao@codesourcery.com>
3022
3023         * std-operator.def: Remove BINOP_IN.
3024         * breakpoint.c (watchpoint_exp_is_const): Update.
3025         * eval.c (evaluate_subexp_standard): Likewise.
3026         * expprint.c (dump_subexp_body_standard): Likewise.
3027
3028 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
3029
3030         * microblaze-tdep.c (microblaze_register_names): Add
3031         the rshr and rslr register names.
3032         (microblaze_gdbarch_init): Use of tdesc_has_registers.
3033         Use of tdesc_find_feature. Use of tdesc_data_alloc.
3034         Use of tdesc_numbered_register. Use of
3035         microblaze_register_g_packet_guesses. Use of
3036         tdesc_use_registers. Use of set_gdbarch_register_type.
3037         (microblaze_register_g_packet_guesses): New.
3038         * microblaze-tdep.h (microblaze_reg_num): Add
3039         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
3040         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
3041         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
3042         * features/microblaze-core.xml: New file.
3043         * features/microblaze-stack-protect.xml: New file.
3044         * features/microblaze-with-stack-protect.c: New file.
3045         * features/microblaze-with-stack-protect.xml: New file.
3046         * features/microblaze.xml: New file.
3047         * features/microblaze.c: New file.
3048         * features/Makefile (microblaze-with-stack-protect): Add
3049         microblaze-with-stack-protect microblaze and microblaze-expedite.
3050         * regformats/microblaze-with-stack-protect.dat: New file.
3051         * regformats/microblaze.dat: New file.
3052         * doc/gdb.texinfo (MicroBlaze Features): Added.
3053
3054 2014-07-18  Tom Tromey  <tromey@redhat.com>
3055
3056         * exec.c (exec_ops): Now static.
3057         * exec.h (exec_ops): Don't declare.
3058
3059 2014-07-18  Tom Tromey  <tromey@redhat.com>
3060
3061         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
3062         to find_target_beneath.
3063         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
3064         find_target_beneath.
3065         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
3066
3067 2014-07-18  Tom Tromey  <tromey@redhat.com>
3068
3069         PR gdb/17130:
3070         * utils.c (quit): Use target_supports_terminal_ours.
3071         * target.h (target_supports_terminal_ours): Declare.
3072         * target.c (target_supports_delete_record): Don't check
3073         to_delete_record against NULL.
3074         (target_supports_terminal_ours): New function.
3075
3076 2014-07-18  Tom Tromey  <tromey@redhat.com>
3077
3078         PR gdb/17130:
3079         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
3080         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
3081         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
3082         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
3083         * windows-nat.c (windows_xfer_partial): Always delegate.
3084         * record-btrace.c (record_btrace_xfer_partial): Simplify
3085         delegation.
3086         (record_btrace_fetch_registers, record_btrace_store_registers)
3087         (record_btrace_prepare_to_store, record_btrace_resume)
3088         (record_btrace_wait, record_btrace_find_new_threads)
3089         (record_btrace_thread_alive): Likewise.
3090         * procfs.c (procfs_xfer_partial): Always delegate.
3091         * corelow.c (core_xfer_partial): Always delegate.
3092         * sol-thread.c (sol_find_new_threads): Simplify delegation.
3093
3094 2014-07-18  Tom Tromey  <tromey@redhat.com>
3095
3096         * exec.c (exec_make_note_section): Move earlier.
3097
3098 2014-07-17  Doug Evans  <dje@google.com>
3099
3100         PR gdb/17170
3101         * maint.c (count_symtabs_and_blocks): Handle NULL
3102         current_program_space.
3103         (report_command_stats): Check global enabled flag in addition to
3104         recorded enabled flag.
3105         (make_command_stats_cleanup): Handle msg_type == 0, startup.
3106
3107 2014-07-16  Pedro Alves  <palves@redhat.com>
3108
3109         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
3110
3111 2014-07-16  Tom Tromey  <tromey@redhat.com>
3112
3113         * target.h (struct target_ops) <to_delete_record>: Reformat
3114         comment.
3115
3116 2014-07-16  Tom Tromey  <tromey@redhat.com>
3117
3118         * target-delegates.c: Rebuild.
3119
3120 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
3121
3122         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
3123         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
3124         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
3125         (avr_pointer_to_address): Likewise.
3126         (avr_address_class_type_flags): New function.
3127         (avr_address_class_type_flags_to_name): Likewise.
3128         (avr_address_class_name_to_type_flags): Likewise.
3129         (avr_gdbarch_init): Set address_class_type_flags,
3130         address_class_type_flags_to_name and
3131         address_class_name_to_type_flags.
3132
3133 2014-07-15  Pedro Alves  <palves@redhat.com>
3134
3135         * linux-nat.c (kill_callback): Save errno and work with saved
3136         copy.
3137
3138 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
3139
3140         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3141
3142 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
3143
3144         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3145         breakpoint support correctly.
3146
3147 2014-07-14  Pedro Alves  <palves@redhat.com>
3148
3149         * utils.c (prompt_for_continue): Call target_terminal_ours.
3150
3151 2014-07-14  Pedro Alves  <palves@redhat.com>
3152
3153         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3154         catch_errors.  Don't re-enable stdin or notify observers where,
3155         and rethrow error.
3156         (fetch_inferior_event_wrapper): Delete.
3157
3158 2014-07-14  Pedro Alves  <palves@redhat.com>
3159
3160         PR gdb/17072
3161         * top.c: Include "inf-loop.h".
3162         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3163         field.
3164         (gdb_readline_wrapper_cleanup): Make the target async again, if it
3165         was async before.
3166         (gdb_readline_wrapper): Store whether the target is async, and
3167         make it sync.
3168
3169 2014-07-14  Pedro Alves  <palves@redhat.com>
3170
3171         PR gdb/17072
3172         * top.c (gdb_readline_wrapper_line): Tweak comment.
3173         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3174         the input handler callback.
3175
3176 2014-07-14  Pedro Alves  <palves@redhat.com>
3177
3178         PR gdb/17072
3179         * main.c: Include event-top.h.
3180         (handle_command_errors): New function.
3181         (catch_command_errors, catch_command_errors_const): Use it.
3182
3183 2014-07-14  Pedro Alves  <palves@redhat.com>
3184
3185         * exceptions.c (catch_command_errors, catch_command_errors_const):
3186         Moved to main.c.
3187         * exceptions.h (catch_command_errors_ftype)
3188         (catch_command_errors_const_ftype): Moved to main.c.
3189         (catch_command_errors, catch_command_errors_const): Delete
3190         declarations.
3191         * main.c (catch_command_errors_ftype)
3192         (catch_command_errors_const_ftype): Moved here from exceptions.h.
3193         (catch_command_errors, catch_command_errors_const)): Moved here
3194         from exceptions.c and make static.
3195
3196 2014-07-14  Pedro Alves  <palves@redhat.com>
3197
3198         * exceptions.c (print_any_exception): Delete.
3199         (catch_exceptions_with_msg): Use exception_print instead of
3200         print_any_exception.
3201         (catch_errors): Use exception_fprintf instead of
3202         print_any_exception.
3203         (catch_command_errors, catch_command_errors_const): Use
3204         exception_print instead of print_any_exception.
3205
3206 2014-07-14  Pedro Alves  <palves@redhat.com>
3207
3208         * infcall.c (run_inferior_call): Set 'sync_execution' while
3209         running the inferior call.
3210
3211 2014-07-14  Pedro Alves  <palves@redhat.com>
3212
3213         * value.c (value_contents_equal): Delete function.
3214         * value.h (value_contents_equal): Delete declaration.
3215
3216 2014-07-14  Tom Tromey  <tromey@redhat.com>
3217
3218         PR exp/17106:
3219         * gdbtypes.c (is_dynamic_type_internal): New function, from
3220         is_dynamic_type.
3221         (is_dynamic_type): Rewrite.
3222         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3223         (resolve_dynamic_struct): Likewise.
3224         (resolve_dynamic_type_internal): New function, from
3225         resolve_dynamic_type.
3226         (resolve_dynamic_type): Rewrite.
3227
3228 2014-07-14  Tom Tromey  <tromey@redhat.com>
3229
3230         * target.c (target_require_runnable): Also check record_stratum.
3231         Update comment.
3232
3233 2014-07-11  Yao Qi  <yao@codesourcery.com>
3234
3235         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3236         thumb_instruction_restores_sp return true.
3237
3238 2014-07-11  Yao Qi  <yao@codesourcery.com>
3239
3240         * arm-tdep.c (thumb_instruction_restores_sp): New function.
3241         (thumb_in_function_epilogue_p): Call
3242         thumb_instruction_restores_sp.
3243
3244 2014-07-11  Yao Qi  <yao@codesourcery.com>
3245
3246         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3247         'add sp, #imm'.
3248         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3249
3250 2014-07-11  Gary Benson  <gbenson@redhat.com>
3251
3252         * amd64-linux-nat.c (gdbcore.h): Remove include.
3253         (regset.h): Likewise.
3254         (nat/linux-btrace.h): Likewise.
3255         (btrace.h): Likewise.
3256         (gdb_assert.h): Likewise.
3257         (string.h): Likewise.
3258         (sys/uio.h): Likewise.
3259         (sys/debugreg.h): Likewise.
3260         (sys/syscall.h): Likewise.
3261         (sys/procfs.h): Likewise.
3262         (sys/user.h): Likewise.
3263         (asm/ptrace.h): Likewise.
3264         (i386-nat.h): Likewise.
3265         * i386-linux-nat.c (i386-nat.h): Likewise.
3266         (regset.h): Likewise.
3267         (target.h): Likewise.
3268         (linux-nat.h): Likewise.
3269         (nat/linux-btrace.h): Likewise.
3270         (btrace.h): Likewise.
3271         (gdb_assert.h): Likewise.
3272         (string.h): Likewise.
3273         (sys/uio.h): Likewise.
3274         (sys/user.h): Likewise.
3275         (sys/procfs.h): Likewise.
3276         (sys/reg.h): Likewise.
3277         (sys/debugreg.h): Likewise.
3278         (ORIG_EAX): Remove definition.
3279
3280 2014-07-11  Gary Benson  <gbenson@redhat.com>
3281
3282         * i386-linux-nat.h: New file.
3283         * x86-linux-nat.h: Likewise.
3284         * x86-linux-nat.c: Likewise.
3285         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3286         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3287         * config/i386/linux64.mh (NATDEPFILES): Likewise.
3288         * amd64-linux-nat.c (x86-linux-nat.h): New include.
3289         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3290         (PTRACE_SETREGSET): Likewise.
3291         (arch_lwp_info): Now in x86-linux-nat.c.
3292         (have_ptrace_getregset): Now in x86-linux-nat.h.
3293         (x86_linux_dr_get): Now in x86-linux-nat.c.
3294         (x86_linux_dr_set): Likewise.
3295         (x86_linux_dr_get_addr): Likewise.
3296         (x86_linux_dr_get_control): Likewise.
3297         (x86_linux_dr_get_status): Likewise.
3298         (update_debug_registers_callback): Likewise.
3299         (x86_linux_dr_set_control): Likewise.
3300         (x86_linux_dr_set_addr): Likewise.
3301         (x86_linux_prepare_to_resume): Likewise.
3302         (x86_linux_new_thread): Likewise.
3303         (x86_linux_new_fork): Likewise.
3304         (x86_linux_get_thread_area): Likewise.
3305         (super_post_startup_inferior): Likewise.
3306         (x86_linux_child_post_startup_inferior): Likewise.
3307         (AMD64_LINUX_USER64_CS): Likewise.
3308         (AMD64_LINUX_X32_DS): Likewise.
3309         (x86_linux_read_description): Likewise.
3310         (x86_linux_enable_btrace): Likewise.
3311         (x86_linux_disable_btrace): Likewise.
3312         (x86_linux_teardown_btrace): Likewise.
3313         (x86_linux_read_btrace): Likewise.
3314         (x86_linux_create_target): Likewise.
3315         (x86_linux_add_target): Likewise.
3316         * i386-linux-nat.c (x86-linux-nat.h): New include.
3317         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3318         (PTRACE_SETREGSET): Likewise.
3319         (arch_lwp_info): Now in x86-linux-nat.c.
3320         (have_ptrace_getregset): Now in x86-linux-nat.h.
3321         (x86_linux_dr_get): Now in x86-linux-nat.c.
3322         (x86_linux_dr_set): Likewise.
3323         (x86_linux_dr_get_addr): Likewise.
3324         (x86_linux_dr_get_control): Likewise.
3325         (x86_linux_dr_get_status): Likewise.
3326         (update_debug_registers_callback): Likewise.
3327         (x86_linux_dr_set_control): Likewise.
3328         (x86_linux_dr_set_addr): Likewise.
3329         (x86_linux_prepare_to_resume): Likewise.
3330         (x86_linux_new_thread): Likewise.
3331         (x86_linux_new_fork): Likewise.
3332         (x86_linux_get_thread_area): Likewise.
3333         (super_post_startup_inferior): Likewise.
3334         (x86_linux_child_post_startup_inferior): Likewise.
3335         (AMD64_LINUX_USER64_CS): Likewise.
3336         (AMD64_LINUX_X32_DS): Likewise.
3337         (x86_linux_read_description): Likewise.
3338         (x86_linux_enable_btrace): Likewise.
3339         (x86_linux_disable_btrace): Likewise.
3340         (x86_linux_teardown_btrace): Likewise.
3341         (x86_linux_read_btrace): Likewise.
3342         (x86_linux_create_target): Likewise.
3343         (x86_linux_add_target): Likewise.
3344
3345 2014-07-11  Gary Benson  <gbenson@redhat.com>
3346
3347         * amd64-linux-nat.c: Comment and whitespace changes.
3348         * i386-linux-nat.c: Comment and whitespace changes.
3349
3350 2014-07-11  Gary Benson  <gbenson@redhat.com>
3351
3352         * amd64-linux-nat.c (x86_linux_create_target): New function.
3353         (x86_linux_add_target): Likewise.
3354         (_initialize_amd64_linux_nat): Delegate to the above new functions.
3355         * i386-linux-nat.c (x86_linux_create_target): New function.
3356         (x86_linux_add_target): Likewise.
3357         (_initialize_i386_linux_nat): Delegate to the above new functions.
3358
3359 2014-07-11  Gary Benson  <gbenson@redhat.com>
3360
3361         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3362         (ps_get_thread_area): Delegate to the above in 32-bit mode.
3363         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3364         (ps_get_thread_area): Delegate to the above.
3365
3366 2014-07-11  Gary Benson  <gbenson@redhat.com>
3367
3368         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3369         x86_linux_read_description.  All uses updated.  amd64-specific
3370         code conditionalized.  Conditionalized i386-specific code added.
3371         Redundant cast removed.
3372         * i386-linux-nat.c (i386_linux_read_description): Renamed to
3373         x86_linux_read_description.  All uses updated.  i386-specific
3374         code conditionalized.  Conditionalized amd64-specific code added.
3375         One sizeof replaced with the actual type it is describing.
3376
3377 2014-07-11  Gary Benson  <gbenson@redhat.com>
3378
3379         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3380         x86_linux_dr_get.  All uses updated.
3381         (amd64_linux_dr_set): Renamed to
3382         x86_linux_dr_set.  All uses updated.
3383         (amd64_linux_dr_get_addr): Renamed to
3384         x86_linux_dr_get_addr.  All uses updated.
3385         (amd64_linux_dr_get_control): Renamed to
3386         x86_linux_dr_get_control.  All uses updated.
3387         (amd64_linux_dr_get_status): Renamed to
3388         x86_linux_dr_get_status.  All uses updated.
3389         (amd64_linux_dr_set_control): Renamed to
3390         x86_linux_dr_set_control.  All uses updated.
3391         (amd64_linux_dr_set_addr): Renamed to
3392         x86_linux_dr_set_addr.  All uses updated.
3393         (amd64_linux_prepare_to_resume): Renamed to
3394         x86_linux_prepare_to_resume.  All uses updated.
3395         (amd64_linux_new_thread): Renamed to
3396         x86_linux_new_thread.  All uses updated.
3397         (amd64_linux_new_fork): Renamed to
3398         x86_linux_new_fork.  All uses updated.
3399         (amd64_linux_child_post_startup_inferior): Renamed to
3400         x86_linux_child_post_startup_inferior.  All uses updated.
3401         (amd64_linux_enable_btrace): Renamed to
3402         x86_linux_enable_btrace.  All uses updated.
3403         (amd64_linux_disable_btrace): Renamed to
3404         x86_linux_disable_btrace.  All uses updated.
3405         (amd64_linux_teardown_btrace): Renamed to
3406         x86_linux_teardown_btrace.  All uses updated.
3407         (amd64_linux_read_btrace): Renamed to
3408         x86_linux_read_btrace.  All uses updated.
3409         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3410         x86_linux_dr_get.  All uses updated.
3411         (i386_linux_dr_set): Renamed to
3412         x86_linux_dr_set.  All uses updated.
3413         (i386_linux_dr_get_addr): Renamed to
3414         x86_linux_dr_get_addr.  All uses updated.
3415         (i386_linux_dr_get_control): Renamed to
3416         x86_linux_dr_get_control.  All uses updated.
3417         (i386_linux_dr_get_status): Renamed to
3418         x86_linux_dr_get_status.  All uses updated.
3419         (i386_linux_dr_set_control): Renamed to
3420         x86_linux_dr_set_control.  All uses updated.
3421         (i386_linux_dr_set_addr): Renamed to
3422         x86_linux_dr_set_addr.  All uses updated.
3423         (i386_linux_prepare_to_resume): Renamed to
3424         x86_linux_prepare_to_resume.  All uses updated.
3425         (i386_linux_new_thread): Renamed to
3426         x86_linux_new_thread.  All uses updated.
3427         (i386_linux_new_fork): Renamed to
3428         x86_linux_new_fork.  All uses updated.
3429         (i386_linux_child_post_startup_inferior): Renamed to
3430         x86_linux_child_post_startup_inferior.  All uses updated.
3431         (i386_linux_enable_btrace): Renamed to
3432         x86_linux_enable_btrace.  All uses updated.
3433         (i386_linux_disable_btrace): Renamed to
3434         x86_linux_disable_btrace.  All uses updated.
3435         (i386_linux_teardown_btrace): Renamed to
3436         x86_linux_teardown_btrace.  All uses updated.
3437         (i386_linux_read_btrace): Renamed to
3438         x86_linux_read_btrace.  All uses updated.
3439
3440 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
3441
3442         * remote.c (extended_remote_post_attach): New function.
3443         (init_extended_remote_ops): Install it as to_post_attach method.
3444
3445 2014-07-09  Pedro Alves  <palves@redhat.com>
3446
3447         * infcmd.c (attach_command_post_wait): Don't call
3448         target_terminal_inferior here.
3449         (attach_command): Call it here instead.
3450
3451 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
3452
3453         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3454         field.
3455         * c-varobj.c (c_is_path_expr_parent): New function, moved core
3456         from varobj.c, with additional checks.
3457         (c_varobj_ops): Fill in is_path_expr_parent field.
3458         (cplus_varobj_ops): Fill in is_path_expr_parent field.
3459         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3460         field.
3461         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3462         ops method.
3463         (varobj_default_is_path_expr_parent): New function.
3464         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3465         (varobj_default_is_path_expr_parent): Declare new function.
3466
3467 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
3468
3469         * infcmd.c (finish_backward): Turn internal error into normal error.
3470
3471 2014-07-07  Pedro Alves  <palves@redhat.com>
3472
3473         PR gdb/17096
3474         * remote.c (async_handle_remote_sigint)
3475         (async_handle_remote_sigint_twice): Call
3476         gdb_call_async_signal_handler instead of
3477         mark_async_signal_handler.
3478
3479 2014-07-07  Tom Tromey  <tromey@redhat.com>
3480
3481         * target-delegates.c: Rebuild.
3482         * target.c (target_info_record): Remove.
3483         * record.c (info_record_command): Unconditionally call
3484         to_info_record.
3485         * target.h (struct target_ops) <to_info_record>: Use
3486         TARGET_DEFAULT_IGNORE.
3487         (target_info_record): Remove.
3488
3489 2014-07-07  Tom Tromey  <tromey@redhat.com>
3490
3491         * target.h (struct target_ops) <to_get_thread_local_address>: Use
3492         TARGET_DEFAULT_NORETURN.
3493         * target.c (generic_tls_error): New function.
3494         (target_translate_tls_address): Don't search target stack.
3495         * target-delegates.c: Rebuild.
3496         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3497         stack.
3498         * linux-thread-db.c (thread_db_get_thread_local_address):
3499         Unconditionally call beneath target.
3500
3501 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
3502
3503         * cli/cli-logging.c (pop_output_files): Assign targerr to
3504         gdb_stdtargerr.
3505
3506 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
3507
3508         * MAINTAINERS (Write After Approval): Update my email address.
3509
3510 2014-07-02  Gary Benson  <gbenson@redhat.com>
3511
3512         * proc-service.c (ps_xfer_memory): Update comment.
3513         (ps_pstop): Remove unused function.
3514         (ps_pcontinue): Likewise.
3515         (ps_lstop): Likewise.
3516         (ps_lcontinue): Likewise.
3517         (ps_lgetxregsize): Likewise.
3518         (ps_lgetxregs): Likewise.
3519         (ps_lsetxregs): Likewise.
3520         (ps_plog): Likewise.
3521         (ps_ptread): Likewise.
3522         (ps_ptwrite): Likewise.
3523
3524 2014-07-01  Mark Wielaard  <mjw@redhat.com>
3525
3526         * dwarf2read.c (add_array_cv_type): New function.
3527         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3528         (read_tag_volatile_type): Likewise.
3529
3530 2014-07-01  Tom Tromey  <tromey@redhat.com>
3531
3532         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3533         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3534         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3535         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3536         * command.h (cmd_cfunc_ftype): Move earlier.
3537         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3538         (add_com, add_info): Use cmd_cfunc_ftype.
3539
3540 2014-06-30  Tom Tromey  <tromey@redhat.com>
3541
3542         * symtab.c (operator_chars): Make parameters and return type
3543         const.
3544         (file_matches): Make "files" const.
3545         (struct search_symbols_data) <files>: Now const.
3546         (search_symbols): Make "regexp" and "files" parameters const.
3547         Update.
3548         (symtab_symbol_info): Remove cast.
3549         (rbreak_command): Update.
3550         * symtab.h (search_symbols): Update.
3551
3552 2014-06-27  Yao Qi  <yao@codesourcery.com>
3553
3554         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3555         Change parameter type to 'struct thread_info *'.  Caller
3556         updated.
3557         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3558         Update declaration.
3559         * dummy-frame.c (struct dummy_frame_id): New.
3560         (dummy_frame_id_eq): New function.
3561         (struct dummy_frame) <id>: Change its type to 'struct
3562         dummy_frame_id'.
3563         (dummy_frame_push): Add parameter ptid and save it in
3564         dummy_frame_id.
3565         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3566         inferior_ptid.
3567         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3568         to inferior_ptid.
3569         (lookup_dummy_frame): Change parameter type to 'struct
3570         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
3571         instead of frame_id_eq.
3572         (dummy_frame_pop): Add parameter ptid.  Callers updated.
3573         Update comments.  Compose dummy_frame_id and pass it to
3574         lookup_dummy_frame.
3575         (dummy_frame_discard): Add parameter ptid.
3576         (dummy_frame_sniffer): Compose dummy_frame_id and call
3577         dummy_frame_id_eq instead of frame_id_eq.
3578         (fprint_dummy_frames): Print ptid.
3579         * dummy-frame.h: Remove comments.
3580         (dummy_frame_push): Add ptid in declaration.
3581         (dummy_frame_pop, dummy_frame_discard): Likewise.
3582
3583 2014-06-26  Tom Tromey  <tromey@redhat.com>
3584
3585         * cli/cli-cmds.c (error_no_arg): Make "why" const.
3586         * command.h (error_no_arg): Update.
3587
3588 2014-06-26  Tom Tromey  <tromey@redhat.com>
3589
3590         * cli/cli-setshow.c (do_set_command): Make "arg" const.
3591         (do_show_command): Make "arg" const.
3592         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3593
3594 2014-06-26  Tom Tromey  <tromey@redhat.com>
3595
3596         * record-full.c (record_full_get_bookmark): Make "args" const.
3597         (record_full_goto_bookmark): Make "raw_bookmark" const.
3598         * record.c (record_goto): New function.
3599         (cmd_record_goto): Use it.  Now static.
3600         * record.h (record_goto): Declare.
3601         (cmd_record_goto): Remove declaration.
3602         * target-delegates.c: Rebuild.
3603         * target.h (struct target_ops) <to_get_bookmark,
3604         to_goto_bookmark>: Make parameter const.
3605
3606 2014-06-26  Tom Tromey  <tromey@redhat.com>
3607
3608         * defs.h (generic_load): Update.
3609         * m32r-rom.c (m32r_load_gen): Make "filename" const.
3610         * monitor.c (monitor_load): Make "args" const.
3611         * remote-m32r-sdi.c (m32r_load): Make "args" const.
3612         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3613         const.
3614         (mips_load): Make "file" const.
3615         * remote-sim.c (gdbsim_load): Make "args" const.
3616         * remote.c (remote_load): Make "name" const.
3617         * symfile.c (generic_load): Make "args" const.
3618         * target-delegates.c: Rebuild.
3619         * target.c (target_load): Make "arg" const.
3620         (debug_to_load): Make "args" const.
3621         * target.h (struct target_ops) <to_load>: Make parameter const.
3622         (target_load): Update.
3623
3624 2014-06-26  Tom Tromey  <tromey@redhat.com>
3625
3626         PR symtab/16902:
3627         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3628         (dwarf2_physname, read_partial_die)
3629         (guess_partial_die_structure_name, fixup_partial_die)
3630         (guess_full_die_structure_name, anonymous_struct_prefix)
3631         (dwarf2_name): Use per-BFD obstack.
3632
3633 2014-06-26  Yao Qi  <yao@codesourcery.com>
3634
3635         * dummy-frame.c (dummy_frame_sniffer): Move local variables
3636         dummyframe and this_id into inner block below.
3637
3638 2014-06-26  Yao Qi  <yao@codesourcery.com>
3639
3640         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3641         with "signal_pass[0]" in the initialization of signal_pass.
3642
3643 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
3644
3645         * record-btrace.c (record_btrace_generating_corefile)
3646         (record_btrace_prepare_to_generate_core)
3647         (record_btrace_done_generating_core): New.
3648         (record_btrace_xfer_partial, record_btrace_fetch_registers)
3649         (record_btrace_store_registers, record_btrace_prepare_to_store):
3650         Forward request when generating a core file.
3651         (record_btrace_open): Set record_btrace_generating_corefile to zero.
3652         (init_record_btrace_ops): Set to_prepare_to_generate_core and
3653         to_done_generating_core.
3654
3655 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
3656
3657         * target.h (target_ops) <to_prepare_to_generate_core>
3658         <to_done_generating_core>: New.
3659         (target_prepare_to_generate_core, target_done_generating_core): New.
3660         * target.c (target_prepare_to_generate_core)
3661         (target_done_generating_core): New.
3662         * target-delegates.c: Regenerate.
3663         * gcore.c: (write_gcore_file): Rename to ...
3664         (write_gcore_file_1): ...this.
3665         (write_gcore_file): Call target_prepare_to_generate_core
3666         and target_done_generating_core.
3667
3668 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
3669
3670         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3671         * gcore.c (write_gcore_file): Free memory returned from
3672         make_corefile_notes.
3673         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3674         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3675
3676 2014-06-24  Yao Qi  <yao@codesourcery.com>
3677
3678         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3679         (arm_linux_init_abi): Set skip_trampoline_code with
3680         gdbarch_skip_trampoline_code instead of
3681         find_solib_trampoline_target.
3682
3683 2014-06-24  Yao Qi  <yao@codesourcery.com>
3684
3685         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3686         arm_skip_bx_reg returns non-zero.
3687
3688 2014-06-24  Yao Qi  <yao@codesourcery.com>
3689
3690         * arm-tdep.c (arm_skip_bx_reg): New function.
3691         (arm_skip_stub): Call arm_skip_bx_reg.
3692
3693 2014-06-23  Don Breazeal  <donb@codesourcery.com>
3694
3695         * MAINTAINERS: Add myself as write-after-approval maintainer.
3696
3697 2014-06-23  Pedro Alves  <palves@redhat.com>
3698
3699         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3700         DR_CONTROL before setting DR0..DR3.
3701         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3702         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3703         bits of DR_CONTROL related to the debug register slot being
3704         disabled.  If all slots are vacant, clear local slowdown as well,
3705         and assert DR_CONTROL is 0.
3706
3707 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
3708
3709         * python/lib/gdb/command/xmethods.py
3710         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
3711         current progspace only if the string "progspace" matches LOCUS_RE.
3712
3713 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
3714
3715         Fix --with-system-readline with readline-6.3 patch 5.
3716         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3717         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3718         types.
3719
3720 2014-06-20  Tom Tromey  <tromey@redhat.com>
3721
3722         * dwarf2read.c (dw2_get_real_path): Use correct type in
3723         OBSTACK_CALLOC.
3724         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3725
3726 2014-06-20  Gary Benson  <gbenson@redhat.com>
3727
3728         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
3729         * common/glibc_thread_db.h: Likewise.
3730         * common/i386-cpuid.h: Likewise.
3731         * common/i386-gcc-cpuid.h: Likewise.
3732         * common/linux-btrace.h: Likewise.
3733         * common/linux-osdata.h: Likewise.
3734         * common/linux-procfs.h: Likewise.
3735         * common/linux-ptrace.h: Likewise.
3736         * common/mips-linux-watch.h: Likewise.
3737         * common/linux-btrace.c: Moved to nat.
3738         * common/linux-osdata.c: Likewise.
3739         * common/linux-procfs.c: Likewise.
3740         * common/linux-ptrace.c: Likewise.
3741         * common/mips-linux-watch.c: Likewise.
3742         * nat/gdb_thread_db.h: Moved from common.
3743         * nat/glibc_thread_db.h: Likewise.
3744         * nat/i386-cpuid.h: Likewise.
3745         * nat/i386-gcc-cpuid.h: Likewise.
3746         * nat/linux-btrace.c: Likewise.
3747         * nat/linux-btrace.h: Likewise.
3748         * nat/linux-osdata.c: Likewise.
3749         * nat/linux-osdata.h: Likewise.
3750         * nat/linux-procfs.c: Likewise.
3751         * nat/linux-procfs.h: Likewise.
3752         * nat/linux-ptrace.c: Likewise.
3753         * nat/linux-ptrace.h: Likewise.
3754         * nat/mips-linux-watch.c: Likewise.
3755         * nat/mips-linux-watch.h: Likewise.
3756         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3757         (object file files): Reordered.
3758         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3759         of glibc_thread_db.h.
3760
3761 2014-06-20  Gary Benson  <gbenson@redhat.com>
3762
3763         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3764         (i386_dr_low_type): Moved to nat/i386-dregs.h.
3765         (i386_dr_low): Likewise.
3766         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3767         (i386_dr_low_set_addr): Likewise.
3768         (i386_dr_low_get_addr): Likewise.
3769         (i386_dr_low_can_set_control): Likewise.
3770         (i386_dr_low_set_control): Likewise.
3771         (i386_dr_low_get_control): Likewise.
3772         (i386_dr_low_get_status): Likewise.
3773         (i386_get_debug_register_length): Likewise.
3774         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3775         (i386_dr_low): Likewise.
3776         * nat/i386-dregs.c (i386-low.h): Remove include.
3777         (i386-nat.h): Likewise.
3778         (nat/i386-dregs.h): New include.
3779         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3780         (i386_dr_low_set_addr): Likewise.
3781         (i386_dr_low_get_addr): Likewise.
3782         (i386_dr_low_can_set_control): Likewise.
3783         (i386_dr_low_set_control): Likewise.
3784         (i386_dr_low_get_control): Likewise.
3785         (i386_dr_low_get_status): Likewise.
3786         (i386_get_debug_register_length): Likewise.
3787         (debug_hw_points): Likewise.
3788
3789 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
3790
3791         * Makefile.in (SFILES): Add d-exp.y.
3792         (YYFILES): Add d-exp.c.
3793         (YYOBJ): Add d-exp.o.
3794         (local-maintainer-clean): Delete d-exp.c.
3795         * d-exp.y: New file.
3796         * d-lang.h (d_parse): New declaration.
3797         (d_error): New declaration.
3798         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3799         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3800         PREC_ORDER operators.
3801         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3802
3803 2014-06-19  Yao Qi  <yao@codesourcery.com>
3804
3805         * gdbthread.h (any_running): Remove the declaration.
3806         * thread.c (any_running): Remove.
3807
3808 2014-06-19  Yao Qi  <yao@codesourcery.com>
3809
3810         * gdbthread.h (struct thread_info) <state>: Change its type to
3811         'enum thread_state'.  Update comments.
3812
3813 2014-06-19  Pedro Alves  <palves@redhat.com>
3814
3815         * gdbthread.h (ALL_THREADS): Delete.
3816         (ALL_NON_EXITED_THREADS): New macro.
3817         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3818         instead of ALL_THREADS.
3819         * infrun.c (find_thread_needs_step_over)
3820         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3821         instead of ALL_THREADS.
3822         * record-btrace.c (record_btrace_open)
3823         (record_btrace_stop_recording, record_btrace_close)
3824         (record_btrace_is_replaying, record_btrace_resume)
3825         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3826         * remote.c (append_pending_thread_resumptions): Likewise.
3827         * thread.c (thread_apply_all_command): Likewise.
3828
3829 2014-06-19  Gary Benson  <gbenson@redhat.com>
3830
3831         * i386-nat.c (i386_stopped_by_watchpoint):
3832         Use i386_dr_stopped_by_watchpoint.
3833         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3834         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3835
3836 2014-06-19  Gary Benson  <gbenson@redhat.com>
3837
3838         * nat/i386-dregs.c: New file.
3839         * Makefile.in (i386-dregs.o): New rule.
3840         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3841         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3842         * config/i386/darwin.mh (NATDEPFILES): Likewise.
3843         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3844         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3845         * config/i386/go32.mh (NATDEPFILES): Likewise.
3846         * config/i386/linux.mh (NATDEPFILES): Likewise.
3847         * config/i386/linux64.mh (NATDEPFILES): Likewise.
3848         * config/i386/mingw.mh (NATDEPFILES): Likewise.
3849         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3850         * i386-nat.h (debug_hw_points): New declaration.
3851         * i386-nat.c (breakpoint.h): Remove include.
3852         (command.h): Likewise.
3853         (target.h): Likewise.
3854         (gdb_assert.h): Likewise.
3855         (debug_hw_points): Made nonstatic.
3856         (debug_printf): Now in i386-dregs.c.
3857         (TARGET_HAS_DR_LEN_8): Likewise.
3858         (DR_CONTROL_SHIFT): Likewise.
3859         (DR_CONTROL_SIZE): Likewise.
3860         (DR_RW_EXECUTE): Likewise.
3861         (DR_RW_WRITE): Likewise.
3862         (DR_RW_READ): Likewise.
3863         (DR_RW_IORW): Likewise.
3864         (DR_LEN_1): Likewise.
3865         (DR_LEN_2): Likewise.
3866         (DR_LEN_4): Likewise.
3867         (DR_LEN_8): Likewise.
3868         (DR_LOCAL_ENABLE_SHIFT): Likewise.
3869         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3870         (DR_ENABLE_SIZE): Likewise.
3871         (DR_LOCAL_SLOWDOWN): Likewise.
3872         (DR_GLOBAL_SLOWDOWN): Likewise.
3873         (DR_CONTROL_RESERVED): Likewise.
3874         (I386_DR_CONTROL_MASK): Likewise.
3875         (I386_DR_VACANT): Likewise.
3876         (I386_DR_LOCAL_ENABLE): Likewise.
3877         (I386_DR_GLOBAL_ENABLE): Likewise.
3878         (I386_DR_DISABLE): Likewise.
3879         (I386_DR_SET_RW_LEN): Likewise.
3880         (I386_DR_GET_RW_LEN): Likewise.
3881         (I386_DR_WATCH_HIT): Likewise.
3882         (i386_wp_op_t): Likewise.
3883         (i386_show_dr): Likewise.
3884         (i386_length_and_rw_bits): Likewise.
3885         (i386_insert_aligned_watchpoint): Likewise.
3886         (i386_remove_aligned_watchpoint): Likewise.
3887         (i386_handle_nonaligned_watchpoint): Likewise.
3888         (i386_update_inferior_debug_regs): Likewise.
3889         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3890         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3891         (i386_region_ok_for_watchpoint):
3892         Use i386_dr_region_ok_for_watchpoint.
3893         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3894
3895 2014-06-19  Gary Benson  <gbenson@redhat.com>
3896
3897         * i386-nat.c (i386_insert_hw_breakpoint): Use
3898         i386_insert_watchpoint.
3899         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3900
3901 2014-06-19  Gary Benson  <gbenson@redhat.com>
3902
3903         * i386-nat.c (i386_dr_show): Renamed to
3904         i386_show_dr and made static.  All uses updated.
3905         (i386_dr_length_and_rw_bits): Renamed to
3906         i386_length_and_rw_bits and made static.
3907         All uses updated.
3908         (i386_dr_insert_aligned_watchpoint): Renamed to
3909         i386_insert_aligned_watchpoint and made static.
3910         All uses updated.
3911         (i386_dr_remove_aligned_watchpoint): Renamed to
3912         i386_remove_aligned_watchpoint and made static.
3913         All uses updated.
3914         (i386_dr_update_inferior_debug_regs): Renamed to
3915         i386_update_inferior_debug_regs and made static.
3916         All uses updated.
3917         * nat/i386-dregs.h (i386_dr_show): Removed.
3918         (i386_dr_length_and_rw_bits): Likewise.
3919         (i386_dr_insert_aligned_watchpoint): Likewise.
3920         (i386_dr_remove_aligned_watchpoint): Likewise.
3921         (i386_dr_update_inferior_debug_regs): Likewise.
3922
3923 2014-06-19  Gary Benson  <gbenson@redhat.com>
3924
3925         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3926         * configure: Regenerate.
3927         * config.in: Likewise.
3928         * main.c (signal.h): New include.
3929         (setup_alternate_signal_stack): New function.
3930         (captured_main): Call the above.
3931         * cp-support.c (signal.h): New include.
3932         (catch_demangler_crashes): New flag.
3933         (SIGJMP_BUF): New define.
3934         (SIGSETJMP): Likewise.
3935         (SIGLONGJMP): Likewise.
3936         (gdb_demangle_jmp_buf): New static global.
3937         (gdb_demangle_attempt_core_dump): Likewise.
3938         (gdb_demangle_signal_handler): New function.
3939         (gdb_demangle): If catch_demangler_crashes is set, install the
3940         above signal handler before calling bfd_demangle, and restore
3941         the original signal handler afterwards.  Display the offending
3942         symbol and call demangler_warning the first time a segmentation
3943         fault is caught.
3944         (_initialize_cp_support): New maint set/show command.
3945
3946 2014-06-19  Gary Benson  <gbenson@redhat.com>
3947
3948         * utils.h (resource_limit_kind): New enum.
3949         (can_dump_core): New declaration.
3950         (warn_cant_dump_core): Likewise.
3951         (dump_core): Likewise.
3952         * utils.c (dump_core): Made nonstatic.  Added new
3953         parameter "limit_kind".
3954         (can_dump_core): Made nonstatic. Moved printing code to...
3955         (warn_cant_dump_core): New function.
3956         (can_dump_core_warn): Likewise.
3957         (internal_vproblem): Replace calls to can_dump_core with
3958         calls to can_dump_core_warn.  Supply new argument to each.
3959
3960 2014-06-19  Gary Benson  <gbenson@redhat.com>
3961
3962         * utils.h (demangler_vwarning): New declaration.
3963         (demangler_warning): Likewise.
3964         * utils.c (struct internal_problem)
3965         <user_settable_should_quit>: New field.
3966         <user_settable_should_dump_core>: Likewise
3967         (internal_error_problem): Add values for above new fields.
3968         (internal_warning_problem): Likewise.
3969         (demangler_warning_problem): New static global.
3970         (demangler_vwarning): New function.
3971         (demangler_warning): Likewise.
3972         (add_internal_problem_command): Selectively add commands.
3973         (_initialize_utils): New internal problem command.
3974         * maint.c (maintenance_demangler_warning): New function.
3975         (_initialize_maint_cmds): New command.
3976
3977 2014-06-18  Tom Tromey  <tromey@redhat.com>
3978
3979         * f-valprint.c (info_common_command_for_block): Update.
3980         * symtab.h (struct general_symbol_info) <common_block>: Now
3981         const.
3982
3983 2014-06-18  Tom Tromey  <tromey@redhat.com>
3984
3985         * symtab.h (struct symtab) <blockvector>: Now const.
3986         * ada-lang.c (ada_add_global_exceptions): Update.
3987         * buildsym.c (augment_type_symtab): Update.
3988         * dwarf2read.c (dw2_lookup_symbol): Update.
3989         * jit.c (finalize_symtab): Update.
3990         * jv-lang.c (add_class_symtab_symbol): Update.
3991         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3992         Update.
3993         * objfiles.c (objfile_relocate1): Update.
3994         * psymtab.c (lookup_symbol_aux_psymtabs)
3995         (maintenance_check_psymtabs): Update.
3996         * python/py-symtab.c (stpy_global_block, stpy_static_block):
3997         Update.
3998         * spu-tdep.c (spu_catch_start): Update.
3999         * symmisc.c (dump_symtab_1): Update.
4000         * symtab.c (lookup_global_symbol_from_objfile)
4001         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
4002         (basic_lookup_transparent_type_quick)
4003         (basic_lookup_transparent_type, find_pc_sect_symtab)
4004         (find_pc_sect_line, search_symbols): Update.
4005         * block.c (find_block_in_blockvector): Make "bl" const.
4006         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
4007         const.
4008         (blockvector_contains_pc): Make "bv" const.
4009         (block_for_pc_sect): Update.
4010         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4011         (blockvector_contains_pc): Update.
4012         * breakpoint.c (resolve_sal_pc): Update.
4013         * inline-frame.c (block_starting_point_at): Update.
4014
4015 2014-06-18  Tom Tromey  <tromey@redhat.com>
4016
4017         * completer.c (complete_line): Make "line_buffer" const.
4018         * completer.h (complete_line): Update.
4019
4020 2014-06-18  Tom Tromey  <tromey@redhat.com>
4021
4022         * symtab.c (add_macro_name): Remove unneeded cast.
4023
4024 2014-06-18  Tom Tromey  <tromey@redhat.com>
4025
4026         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
4027         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
4028
4029 2014-06-18  Tom Tromey  <tromey@redhat.com>
4030
4031         * probe.c (info_probes_for_ops): Make "arg" const.
4032         * probe.h (info_probes_for_ops): Update.
4033
4034 2014-06-18  Tom Tromey  <tromey@redhat.com>
4035
4036         * varobj.c (varobj_create): Update.
4037         * valops.c (value_of_this): Update.
4038         * tracepoint.c (add_local_symbols, scope_info): Update.
4039         * symtab.h (struct general_symbol_info) <block>: Now const.
4040         * symtab.c (skip_prologue_sal)
4041         (default_make_symbol_completion_list_break_on)
4042         (skip_prologue_using_sal): Update.
4043         * stack.h (iterate_over_block_locals)
4044         (iterate_over_block_local_vars): Update.
4045         * stack.c (print_frame_args): Update.
4046         (iterate_over_block_locals, iterate_over_block_local_vars): Make
4047         parameter const.
4048         (get_selected_block): Make return type const.
4049         * python/py-frame.c (frapy_block): Update.
4050         * python/py-block.c (gdbpy_block_for_pc): Update.
4051         * p-exp.y (%union) <bval>: Now const.
4052         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4053         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
4054         * m2-exp.y (%union) <bval>: Now const.
4055         * linespec.c (get_current_search_block): Make return type const.
4056         (create_sals_line_offset, find_label_symbols): Update.
4057         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
4058         Update.
4059         (block_starting_point_at): Make "block" const.
4060         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
4061         (check_exception_resume): Update.
4062         * guile/scm-frame.c (gdbscm_frame_block): Update.
4063         * guile/scm-block.c (gdbscm_lookup_block): Update.
4064         * frame.h (get_frame_block): Update.
4065         (get_selected_block): Make return type const.
4066         * frame.c (frame_id_inner): Update.
4067         * f-valprint.c (info_common_command_for_block)
4068         (info_common_command): Update.
4069         * dwarf2loc.c (dwarf2_find_location_expression)
4070         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
4071         (locexpr_describe_location_piece): Update.
4072         * c-exp.y (%union) <bval>: Now const.
4073         * breakpoint.c (resolve_sal_pc): Update.
4074         * blockframe.c (get_frame_block):Make return type const.
4075         (get_pc_function_start, get_frame_function, find_pc_sect_function)
4076         (block_innermost_frame): Update.
4077         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
4078         (block_for_pc, block_for_pc_sect): Update.
4079         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
4080         'pblock' const.
4081         (block_for_pc_sect, block_for_pc): Make return type const.
4082         * ax-gdb.c (gen_expr): Update.
4083         * alpha-mdebug-tdep.c (find_proc_desc): Update.
4084         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
4085         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
4086         (ada_read_var_value): Update.
4087         * ada-exp.y (struct name_info) <block>: Now const.
4088         (%union): Likewise.
4089         (block_lookup): Constify.
4090
4091 2014-06-18  Gary Benson  <gbenson@redhat.com>
4092
4093         * nat/i386-dregs.h: New file.
4094         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
4095         * i386-nat.h (i386-dregs.h): New include.
4096         (DR_FIRSTADDR): Now in i386-dregs.h.
4097         (DR_LASTADDR): Likewise.
4098         (DR_NADDR): Likewise.
4099         (DR_STATUS): Likewise.
4100         (DR_CONTROL): Likewise.
4101         (i386_debug_reg_state): Likewise.
4102         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
4103
4104 2014-06-18  Don Breazeal  <donb@codesourcery.com>
4105
4106         * breakpoint.c (set_longjmp_breakpoint): Call
4107         momentary_breakpoint_from_master with additional argument.
4108         (set_longjmp_breakpoint_for_call_dummy): Call
4109         momentary_breakpoint_from_master with additional argument.
4110         (set_std_terminate_breakpoint): Call
4111         momentary_breakpoint_from_master with additional argument.
4112         (momentary_breakpoint_from_master): Add argument to function
4113         definition and use it to initialize structure member flag.
4114         (clone_momentary_breakpoint): Call
4115         momentary_breakpoint_from_master with additional argument.
4116         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
4117         member flags set in momentary_breakpoint_from_master.
4118
4119 2014-06-18  Gary Benson  <gbenson@redhat.com>
4120
4121         * i386-nat.c (i386_show_dr): Renamed to
4122         i386_dr_show and made nonstatic.  All uses updated.
4123         (i386_length_and_rw_bits): Renamed to
4124         i386_dr_length_and_rw_bits and made nonstatic.
4125         All uses updated.
4126         (i386_insert_aligned_watchpoint): Renamed to
4127         i386_dr_insert_aligned_watchpoint and made nonstatic.
4128         All uses updated.
4129         (i386_remove_aligned_watchpoint): Renamed to
4130         i386_dr_remove_aligned_watchpoint and made nonstatic.
4131         All uses updated.
4132         (i386_update_inferior_debug_regs): Renamed to
4133         i386_dr_update_inferior_debug_regs and made nonstatic.
4134         All uses updated.
4135
4136 2014-06-18  Gary Benson  <gbenson@redhat.com>
4137
4138         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4139         (i386_dr_low_can_set_control): Likewise.
4140         (i386_dr_low_set_addr): Likewise.
4141         (i386_dr_low_set_control): Likewise.
4142         (i386_dr_low_get_addr): Likewise.
4143         (i386_dr_low_get_status): Likewise.
4144         (i386_dr_low_get_control): Likewise.
4145         (i386_insert_aligned_watchpoint): Use new macros.
4146         (i386_update_inferior_debug_regs): Likewise.
4147         (i386_stopped_data_address): Likewise.
4148
4149 2014-06-18  Gary Benson  <gbenson@redhat.com>
4150
4151         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4152         New parameter.  All uses updated.
4153
4154 2014-06-18  Gary Benson  <gbenson@redhat.com>
4155
4156         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4157         All uses updated.
4158
4159 2014-06-18  Gary Benson  <gbenson@redhat.com>
4160
4161         * i386-nat.c (debug_printf): New macro.
4162         (i386_get_debug_register_length): Likewise.
4163         (TARGET_HAS_DR_LEN_8): Use above macro.
4164         (i386_show_dr): Use debug_printf instead of puts_unfiltered
4165         and printf_unfiltered.  Use phex to format values.
4166
4167 2014-06-18  Gary Benson  <gbenson@redhat.com>
4168
4169         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4170         Make const.
4171
4172 2014-06-18  Gary Benson  <gbenson@redhat.com>
4173
4174         * i386-nat.c: Comment changes.
4175
4176 2014-06-18  Gary Benson  <gbenson@redhat.com>
4177
4178         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4179
4180 2014-06-18  Gary Benson  <gbenson@redhat.com>
4181
4182         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4183         (i386_insert_aligned_watchpoint): Likewise.
4184         (i386_remove_aligned_watchpoint): Likewise.
4185         (i386_handle_nonaligned_watchpoint): Likewise.
4186
4187 2014-06-18  Gary Benson  <gbenson@redhat.com>
4188
4189         * i386-nat.c: Whitespace changes.
4190
4191 2014-06-17  Samuel Bronson  <naesten@gmail.com>
4192
4193         * MAINTAINERS: Update Roland McGrath's email address.
4194         Thanks to Sergio Durigan Junior for pointing out that he left
4195         Red Hat a while ago, and giving me a current address.
4196
4197 2014-06-17  Tom Tromey  <tromey@redhat.com>
4198
4199         * utils.h (savestring): Remove declaration.
4200
4201 2014-06-17  Tom Tromey  <tromey@redhat.com>
4202
4203         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4204
4205 2014-06-16  Keith Seitz  <keiths@redhat.com>
4206
4207         PR mi/15863
4208         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4209         to update the varobj if inferior_ptid is null_ptid.
4210
4211 2014-06-16  Tom Tromey  <tromey@redhat.com>
4212
4213         * target.h (struct target_ops) <to_info_proc>: Make parameter
4214         const.
4215         (target_info_proc): Update.
4216         * target.c (target_info_proc): Make "args" const.
4217         * procfs.c (procfs_info_proc): Update.
4218         * linux-tdep.c (linux_info_proc): Update.
4219         (linux_core_info_proc_mappings): Make "args" const.
4220         (linux_core_info_proc): Update.
4221         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4222         * gdbarch.c: Rebuild.
4223         * gdbarch.h: Rebuild.
4224         * corelow.c (core_info_proc): Update.
4225
4226 2014-06-16  Tom Tromey  <tromey@redhat.com>
4227
4228         * target.h (struct target_ops) <to_disconnect>: Make parameter
4229         const.
4230         (target_disconnect): Update.
4231         * target.c (target_disconnect): Make "args" const.
4232         * target-delegates.c: Rebuild.
4233         * remote.c (remote_disconnect): Update.
4234         * record.h (record_disconnect): Update.
4235         * record.c (record_disconnect): Update.
4236         * inf-child.c (inf_child_disconnect): Update.
4237
4238 2014-06-16  Tom Tromey  <tromey@redhat.com>
4239
4240         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4241         * target.c (debug_to_rcmd, default_rcmd): Update.
4242         * target-delegates.c: Rebuild.
4243         * remote.c (remote_rcmd): Update.
4244         * monitor.c (monitor_rcmd): Update.
4245
4246 2014-06-16  Pedro Alves  <palves@redhat.com>
4247
4248         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4249         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4250         have OBJF_SHARED set.
4251         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4252         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
4253         instead of OBJF_USERLOADED.
4254         * objfiles.h (OBJF_SHARED): Update comment.
4255         (userloaded_objfile_contains_address_p): Rename to ...
4256         (shared_objfile_contains_address_p): ... this, and update
4257         comments.
4258         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4259         new objfile.
4260         (remove_symbol_file_command): Skip objfiles that don't have
4261         OBJF_SHARED set.
4262
4263 2014-06-16  Tom Tromey  <tromey@redhat.com>
4264
4265         * minsyms.h (prim_record_minimal_symbol)
4266         (prim_record_minimal_symbol_and_info): Update comments.
4267
4268 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
4269
4270         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4271         or --without-guile, according to how GDB was built.
4272
4273 2014-06-13  Tom Tromey  <tromey@redhat.com>
4274
4275         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4276         to help_list.
4277         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4278         to help_list.
4279         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4280         help_list.
4281         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4282         help_list.Pass all_commands, not -1, to help_list.
4283         * cli/cli-dump.c (dump_command, append_command)
4284         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4285         (binary_dump_command, binary_append_command): Pass all_commands,
4286         not -1, to help_list.
4287         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4288         -1, to help_list.
4289         * valprint.c (set_print, set_print_raw): Pass all_commands, not
4290         -1, to help_list.
4291         * typeprint.c (set_print_type): Pass all_commands, not -1, to
4292         help_list.
4293         * top.c (set_history): Pass all_commands, not -1, to help_list.
4294         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4295         all_commands, not -1, to help_list.
4296         * symfile.c (overlay_command): Pass all_commands, not -1, to
4297         help_list.
4298         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4299         help_list.
4300         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4301         help_list.
4302         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4303         -1, to help_list.
4304         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4305         not -1, to help_list.
4306         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4307         not -1, to help_list.
4308         * maint.c (maintenance_command, maintenance_info_command)
4309         (maintenance_print_command, maintenance_set_cmd): Pass
4310         all_commands, not -1, to help_list.
4311         * macrocmd.c (macro_command): Pass all_commands, not -1, to
4312         help_list.
4313         * language.c (set_check): Pass all_commands, not -1, to help_list.
4314         * infcmd.c (unset_command): Pass all_commands, not -1, to
4315         help_list.
4316         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4317         help_list.
4318         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4319         help_list.
4320         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4321         help_list.
4322         * breakpoint.c (save_command): Pass all_commands, not -1, to
4323         help_list.
4324         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4325         all_commands, not -1, to help_list.
4326
4327 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
4328
4329         * regcache.c (struct register_to_invalidate): New structure.
4330         (do_register_invalidate, make_cleanup_regcache_invalidate): New
4331         functions.
4332         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4333
4334 2014-06-12  Yao Qi  <yao@codesourcery.com>
4335
4336         * varobj.c (varobj_get_num_children): Call
4337         varobj_is_dynamic_p.
4338         (varobj_list_children): Likewise.
4339         (varobj_update): Likewise.  Update comments.
4340
4341 2014-06-12  Yao Qi  <yao@codesourcery.com>
4342
4343         * varobj.c (varobj_pretty_printed_p): Rename to ...
4344         (varobj_is_dynamic_p): ... this.  New function.
4345         * varobj.h (varobj_pretty_printed_p): Remove declaration.
4346         (varobj_is_dynamic_p): Declare.
4347         * mi/mi-cmd-var.c (print_varobj): All callers updated.
4348         (mi_print_value_p, varobj_update_one): Likewise.
4349
4350 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
4351             Yao Qi  <yao@codesourcery.com>
4352
4353         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4354         (varobj_get_iterator): Wrap up code for pretty-printer by
4355         "#if HAVE_PYTHON" and "#endif".
4356         (update_dynamic_varobj_children): Likewise.
4357
4358 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
4359             Yao Qi  <yao@codesourcery.com>
4360
4361         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4362         gdb_python_initialized is false.  Move some code from varobj.c.
4363         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4364         * varobj.c: Move "varobj-iter.h" inclusion earlier.
4365         (struct varobj_item): Moved to varobj-iter.h".
4366         (varobj_clear_saved_item): New function.
4367         (update_dynamic_varobj_children): Move python-related code to
4368         py-varobj.c.
4369         (free_variable): Call varobj_clear_saved_item and
4370         varobj_iter_delete.
4371
4372 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
4373             Yao Qi  <yao@codesourcery.com>
4374
4375         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4376         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4377         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4378         (py-varobj.o): New rule.
4379         * python/py-varobj.c: New file.
4380         * python/python-internal.h (py_varobj_get_iterator): Declare.
4381         * varobj-iter.h: New file.
4382         * varobj.c: Include "varobj-iter.h"
4383         (struct varobj) <child_iter>: Change its type from "PyObject *"
4384         to "struct varobj_iter *".
4385         <saved_item>: Likewise.
4386         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4387         [HAVE_PYTHON] (varobj_get_iterator): New function.
4388         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4389         python-specific code to python/py-varobj.c.
4390         (install_visualizer): Call varobj_iter_delete instead of
4391         Py_XDECREF.
4392         * varobj.h (varobj_ensure_python_env): Declare.
4393
4394 2014-06-12  Yao Qi  <yao@codesourcery.com>
4395
4396         * varobj.c (struct varobj_item): New structure.
4397         (create_child_with_value): Update declaration.
4398         (varobj_add_child): Replace arguments 'name' and 'value' with
4399         'item'.  All callers updated.
4400         (install_dynamic_child): Likewise.
4401         (update_dynamic_varobj_children): Likewise.
4402         (varobj_add_child): Likewise.
4403         (create_child_with_value): Likewise.
4404
4405 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
4406
4407         * NEWS: Create a new section for the next release branch.
4408         Rename the section of the current branch, now that it has
4409         been cut.
4410
4411 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
4412
4413         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4414         * version.in: Bump version to 7.8.50.DATE-cvs.
4415
4416 2014-06-11  Pedro Alves  <palves@redhat.com>
4417
4418         PR remote/17028
4419         * ser-mingw.c (net_windows_socket_check_pending): New function.
4420         (net_windows_select_thread): Ignore spurious wakeups.  Use
4421         net_windows_socket_check_pending.
4422         (net_windows_wait_handle): Check for pending events with
4423         ioctlsocket, through net_windows_socket_check_pending, instead of
4424         checking the socket's event.
4425
4426 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
4427
4428         * python/python-internal.h (gdb_PyObject_GetAttrString)
4429         (gdb_PyObject_HasAttrString): New inline function definitions.
4430         * py-value.c (get_field_flag): Remove the now unnecessary cast to
4431         char * of the second argument to PyObject_GetAttrString.
4432
4433 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
4434
4435         * serial.c (serial_write): Fix index of character to be printed
4436         in call to serial_logchar when serial debug traces are enabled.
4437
4438 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
4439
4440         * gdbtypes (resolve_dynamic_range): Add function description.
4441
4442 2014-06-09  Pedro Alves  <palves@redhat.com>
4443
4444         * linux-nat.c (linux_child_follow_fork): Initialize status with
4445         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
4446         inner block.  Only pass the signal to PTRACE_DETACH if in pass
4447         state.
4448
4449 2014-06-09  Gary Benson  <gbenson@redhat.com>
4450
4451         * common/signals.c (gdb_signal_from_host): Reorder to separate
4452         the always-available ANSI-standard signals from the signals that
4453         require checking.
4454         (do_gdb_signal_to_host): Likewise.
4455         * proc-events.c (signal_table): Likewise.
4456
4457 2014-06-08  Hui Zhu  <hui@codesourcery.com>
4458
4459         * common/linux-ptrace.c (linux_disable_event_reporting): New
4460         function.
4461         * common/linux-ptrace.h (linux_disable_event_reporting): New
4462         declaration.
4463         * linux-nat.c (linux_child_follow_fork): Do a single step before
4464         detach.
4465
4466 2014-06-07  Keith Seitz  <keiths@redhat.com>
4467
4468         Revert:
4469         PR c++/16253
4470         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4471         from symbol_matches_domain in symtab.c. All local callers
4472         of symbol_matches_domain updated.
4473         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4474         search STRUCT_DOMAIN.
4475         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4476         independently.  standard_lookup will do that automatically.
4477         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4478         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4479         (cp_lookup_symbol_in_namespace): Likewise.
4480         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4481         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4482         may return a STRUCT_DOMAIN match.
4483         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4484         * cp-support.c: Include language.h.
4485         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4486         VAR_DOMAIN.
4487         * psymtab.c (match_partial_symbol): Compare the requested
4488         domain with the symbol's domain directly.
4489         (lookup_partial_symbol): Likewise.
4490         * symtab.c (lookup_symbol_in_language): Explain when/why
4491         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4492         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4493         appropriate languages.
4494         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4495         and moved to ada-lang.c
4496         (lookup_block_symbol): Explain that this function only returns
4497         symbol matching the requested DOMAIN.
4498         Compare the requested domain with the symbol's domain directly.
4499         (iterate_over_symbols): Compare the requested domain with the
4500         symbol's domain directly.
4501         * symtab.h (symbol_matches_domain): Remove.
4502
4503 2014-06-06  Doug Evans  <xdje42@gmail.com>
4504
4505         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4506         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4507         (gdbscm_guile_version_is_at_least): Declare.
4508         (gdbscm_scm_string_to_int): Declare.
4509         * guile/guile.c (gdbscm_guile_major_version): New global.
4510         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4511         (guile_datadir): New static global.
4512         (gdbscm_guile_data_directory): New function.
4513         (initialize_scheme_side): Update.
4514         (misc_guile_functions): Add guile-data-directory.
4515         (initialize_gdb_module): Fetch guile version number.
4516         * guile/lib/gdb.scm: Remove call to add-to-load-path.
4517         * guile/lib/gdb/init.scm (%initialize!): Ditto.
4518         * guile/lib/gdb/boot.scm: Use guile-data-directory.
4519         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4520         comments.
4521         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4522         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4523         * guile/scm-value.c (gdbscm_value_to_string): Only call
4524         scm_port_conversion_strategy if Guile version >= 2.0.6.
4525
4526 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
4527
4528         * main.c (print_gdb_help): Add -q and --silent.
4529
4530 2014-06-06  Gary Benson  <gbenson@redhat.com>
4531
4532         * common/signals.c: Remove preprocessor conditionals for
4533         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4534         SIGSEGV and SIGTERM.
4535         * proc-events.c: Likewise.
4536
4537 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
4538
4539         * symfile.c (symfile_free_objfile): Remove restriction to
4540         OBJF_USERLOADED.
4541         * symfile-mem.c (symbol_file_add_from_memory): Call
4542         add_target_sections_of_objfile.
4543
4544 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
4545
4546         * guile/scm-value.c (gdbscm_history_append_x): Use
4547         'vlscm_get_value_smob_arg_unsafe' instead of
4548         'vlscm_scm_to_value'.
4549
4550 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
4551
4552         PR mi/15806
4553         * utils.c (printchar): Don't escape at all if quoter is NUL.
4554         Update function documentation to clarify effect of parameter
4555         QUOTER.
4556         * remote.c (escape_buffer): Pass '\\' as the quoter to
4557         fputstrn_unfiltered.
4558         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4559         generate the output.
4560         (mi_solib_unloaded): Same.
4561
4562 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
4563
4564         * development.sh: Delete.
4565         * Makefile.in (config.status): Adjust dependency on development.sh.
4566         * configure.ac: Adjust development.sh source call.
4567         * configure: Regenerate.
4568
4569 2014-06-04  Doug Evans  <xdje42@gmail.com>
4570
4571         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4572         is_scheme_bkpt, spec.
4573         (bpscm_make_breakpoint_smob): Initialize new members.
4574         (gdbscm_create_breakpoint_x): Split into two ...
4575         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4576         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4577         (scheme_function breakpoint_functions): Update.
4578         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
4579         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
4580         register-breakpoint!.
4581
4582 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
4583
4584         PR server/17023
4585         * mem-break.c (z_type_supported): Return zero if
4586         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4587
4588 2014-06-04  Tom Tromey  <tromey@redhat.com>
4589
4590         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4591         value_from_contents_and_address_unresolved.
4592         (ada_template_to_fixed_record_type_1): Likewise.
4593         (ada_which_variant_applies): Likewise.
4594         * value.h (value_from_contents_and_address_unresolved): Declare.
4595         * value.c (value_from_contents_and_address_unresolved): New
4596         function.
4597         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4598         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4599         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4600
4601 2014-06-04  Tom Tromey  <tromey@redhat.com>
4602
4603         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4604
4605 2014-06-04  Tom Tromey  <tromey@redhat.com>
4606
4607         * procfs.c (procfs_attach): Make "args" const.
4608         * windows-nat.c (windows_attach): Make "args" const.
4609         * nto-procfs.c (procfs_attach): Make "args" const.
4610         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4611         * go32-nat.c (go32_attach): Make "args" const.
4612         * gnu-nat.c (gnu_attach): Make "args" const.
4613         * darwin-nat.c (darwin_attach): Make "args" const.
4614         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4615         * linux-nat.c (linux_nat_attach): Make "args" const.
4616         * remote.c (extended_remote_attach_1, extended_remote_attach):
4617         Make "args" const.
4618         * target.h (struct target_ops) <to_attach>: Make "args" const.
4619         (find_default_attach): Likewise.
4620         * utils.c (parse_pid_to_attach): Make "args" const.
4621         * utils.h (parse_pid_to_attach): Update.
4622
4623 2014-06-04  Tom Tromey  <tromey@redhat.com>
4624
4625         * target-delegates.c: Rebuild.
4626         * target.c (default_thread_address_space): New function.
4627         (target_thread_address_space): Simplify.
4628         * target.h (struct target_ops) <to_thread_address_space>: Add
4629         TARGET_DEFAULT_FUNC.
4630
4631 2014-06-04  Doug Evans  <xdje42@gmail.com>
4632
4633         * guile/scm-type.c (type_smob): Remove duplicate typedef.
4634
4635 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
4636
4637         * record-btrace.c: Include event-loop.h and inf-loop.h.
4638         (record_btrace_resume_exec_dir)
4639         (record_btrace_async_inferior_event_handler)
4640         (record_btrace_handle_async_inferior_event): New.
4641         (record_btrace_open): Create async event handler.
4642         (record_btrace_close): Delete async event handler.
4643         (record_btrace_resume): Set record_btrace_resume_exec_dir,
4644         Mark async event handler.
4645         (record_btrace_execution_direction): New.
4646         (init_record_btrace_ops): Initialize to_execution_direction.
4647
4648 2014-06-03  Doug Evans  <xdje42@gmail.com>
4649
4650         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4651         (gdbscm_make_parameter): Ditto.
4652
4653 2014-06-03  Doug Evans  <dje@google.com>
4654
4655         * exec.c (exec_close_1): Call clear_section_table instead of
4656         resize_section_table.
4657         (clear_section_table): New function.
4658         (resize_section_table): Make static.  Rename arg num_added to
4659         adjustment.
4660         * exec.h (clear_section_table): Declare.
4661         (resize_section_table): Delete.
4662         * progspace.c (release_program_space): Call clear_section_table
4663         instead of resize_section_table.
4664
4665 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4666
4667         * NEWS (Python Scripting): Add entry about the new xmethods
4668         feature.
4669
4670 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4671
4672         * python/py-xmethods.c: New file.
4673         * python/py-objfile.c (objfile_object): New field 'xmethods'.
4674         (objfpy_dealloc): XDECREF on the new xmethods field.
4675         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4676         field.
4677         (objfpy_get_xmethods): New function.
4678         (objfile_getset): New entry 'xmethods'.
4679         * python/py-progspace.c (pspace_object): New field 'xmethods'.
4680         (pspy_dealloc): XDECREF on the new xmethods field.
4681         (pspy_new, pspace_to_pspace_object): Initialize xmethods
4682         field.
4683         (pspy_get_xmethods): New function.
4684         (pspace_getset): New entry 'xmethods'.
4685         * python/python-internal.h: Add declarations for new functions.
4686         * python/python.c (_initialize_python): Invoke
4687         gdbpy_initialize_xmethods.
4688         * python/lib/gdb/__init__.py (xmethods): New
4689         attribute.
4690         * python/lib/gdb/xmethod.py: New file.
4691         * python/lib/gdb/command/xmethods.py: New file.
4692
4693 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4694
4695         * eval.c (evaluate_subexp_standard): Call the xmethod if the
4696         best match method returned by find_overload_match is an xmethod.
4697         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4698         the best matching operator returned by find_overload_match is an
4699         xmethod.
4700         * valops.c: #include "extension.h".
4701         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4702         Return void.  The list of matching source methods is returned in
4703         "fn_list" and a vector of matching debug method workers is
4704         returned in "xm_worker_vec".  Update all callers.
4705         (value_find_oload_method_list): Likewise.
4706         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
4707         non-NULL, then the index of the best matching method in this
4708         vector is returned.  Update all callers.
4709         (find_overload_match): Include xmethods while performing overload
4710         resolution.
4711
4712 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4713
4714         * defs.h (enum lval_type): New enumerator "lval_xcallable".
4715         * extension-priv.h (struct extension_language_ops): Add the
4716         xmethod interface.
4717         * extension.c (new_xmethod_worker, clone_xmethod_worker,
4718         get_matching_xmethod_workers, get_xmethod_argtypes,
4719         invoke_xmethod, free_xmethod_worker,
4720         free_xmethod_worker_vec): New functions.
4721         * extension.h: #include "common/vec.h".
4722         New function declarations.
4723         (struct xmethod_worker): New struct.
4724         (VEC (xmethod_worker_ptr)): New vector type.
4725         (xmethod_worker_ptr): New typedef.
4726         (xmethod_worker_vec): Likewise.
4727         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4728         builtin_type.
4729         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4730         (struct builtin_type): New field "xmethod".
4731         * valarith.c (value_ptradd): Assert that the value argument is not
4732         lval_xcallable.
4733         * valops.c (value_must_coerce_to_target): Return 0 for
4734         lval_xcallable values.
4735         * value.c (struct value): New field XM_WORKER in the field
4736         LOCATION.
4737         (value_address, value_raw_address): Return 0 for lval_xcallable
4738         values.
4739         (set_value_address): Assert that the value is not an
4740         lval_xcallable.
4741         (value_free): Free the associated xmethod worker when freeing
4742         lval_xcallable values.
4743         (set_value_component_location): Assert that the WHOLE value is not
4744         lval_xcallable.
4745         (value_of_xmethod, call_xmethod): New functions.
4746         * value.h: Declare "struct xmethod_worker".
4747         Declare new functions value_of_xmethod, call_xmethod.
4748
4749 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
4750             Pedro Alves  <palves@redhat.com>
4751
4752         PR breakpoints/17000
4753         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4754         New function, extracted from software_breakpoint_inserted_here_p.
4755         (software_breakpoint_inserted_here_p): Replace factored out code
4756         by call to find_non_raw_software_breakpoint_inserted_here.
4757         (bp_target_info_copy_insertion_state): New function.
4758         (bkpt_insert_location): Handle the case of a single-step
4759         breakpoint already inserted at the same address.
4760         (bkpt_remove_location): Handle the case of a single-step
4761         breakpoint still inserted at the same address.
4762         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4763         breakpoint already inserted at the same address.
4764         (deprecated_remove_raw_breakpoint): Handle the case of a
4765         non-raw breakpoint still inserted at the same address.
4766         (find_single_step_breakpoint): New function, extracted from
4767         single_step_breakpoint_inserted_here_p.
4768         (find_single_step_breakpoint): New function,
4769         factored out from single_step_breakpoint_inserted_here_p.
4770         (single_step_breakpoint_inserted_here_p): Reimplement.
4771
4772 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
4773
4774         Pushed by Joel Brobecker  <brobecker@adacore.com>
4775         * source.c (show_substitute_path_command): Fix display of matching
4776         substitution rules.
4777
4778 2014-06-03  Gary Benson  <gbenson@redhat.com>
4779
4780         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4781
4782 2014-06-02  Doug Evans  <xdje42@gmail.com>
4783
4784         Add parameter support for Guile.
4785         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4786         (SUBDIR_GUILE_SRCS): Add scm-param.c.
4787         (scm-param.o): New rule.
4788         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4789         (gdbscm_misc_error): Declare.
4790         (gdbscm_canonicalize_command_name): Declare.
4791         (gdbscm_scm_to_host_string): Declare.
4792         (gdbscm_scm_from_host_string): Declare.
4793         (gdbscm_initialize_parameters): Declare.
4794         * guile/guile.c (initialize_gdb_module): Call
4795         gdbscm_initialize_parameters.
4796         * guile/lib/gdb.scm: Export parameter symbols.
4797         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4798         cmdscm_canonicalize_name and made public.  All callers updated.
4799         * guile/scm-exception.c (gdbscm_misc_error): New function.
4800         * guile/scm-param.c: New file.
4801         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4802         (gdbscm_scm_to_host_string): New function.
4803         (gdbscm_scm_from_host_string): New function.
4804         * scm-utils.c (gdbscm_gc_dup_argv): New function.
4805
4806 2014-06-02  Doug Evans  <xdje42@gmail.com>
4807
4808         Add command support for Guile.
4809         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4810         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4811         (scm-cmd.o): New rule.
4812         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4813         (gdbscm_user_error_p): Declare.
4814         (gdbscm_parse_command_name): Declare.
4815         (gdbscm_valid_command_class_p): Declare.
4816         (gdbscm_initialize_commands): Declare.
4817         * guile/guile.c (initialize_gdb_module): Call
4818         gdbscm_initialize_commands.
4819         * guile/lib/gdb.scm: Export command symbols.
4820         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4821         (throw-user-error): New function.
4822         * guile/scm-cmd.c: New file.
4823         * guile/scm-exception.c (user_error_symbol): New static global.
4824         (gdbscm_user_error_p): New function.
4825         (gdbscm_initialize_exceptions): Set user_error_symbol.
4826         * scm-utils.c (gdbscm_gc_xstrdup): New function.
4827
4828 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
4829
4830         * top.c (command_loop): Handle comments here...
4831         (command_line_input): ... not here.
4832
4833 2014-06-02  Doug Evans  <xdje42@gmail.com>
4834
4835         Add progspace support for Guile.
4836         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4837         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4838         (scm-progspace.o): New rule.
4839         * guile/guile-internal.h (pspace_smob): New typedef.
4840         (psscm_pspace_smob_pretty_printers): Declare.
4841         (psscm_pspace_smob_from_pspace): Declare.
4842         (psscm_scm_from_pspace): Declare.
4843         * guile/guile.c (initialize_gdb_module): Call
4844         gdbscm_initialize_pspaces.
4845         * guile/lib/gdb.scm: Export progspace symbols.
4846         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4847         support.
4848         (append-pretty-printer!): Ditto.
4849         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4850         Implement.
4851         * guile/scm-progspace.c: New file.
4852
4853 2014-06-03  Alan Modra  <amodra@gmail.com>
4854
4855         * ppc64-tdep.c (ppc64_standard_linkage8): New.
4856         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4857
4858 2014-06-02  Doug Evans  <dje@google.com>
4859
4860         Add support for skeletonless type units.
4861         * dwarf2read.c (struct dwarf2_per_objfile): New member
4862         n_allocated_type_units.
4863         (struct dwarf2_per_objfile) <tu_stats>: New member
4864         nr_all_type_units_reallocs.
4865         (create_signatured_type_table_from_index): Initialize
4866         n_allocated_type_units
4867         (create_all_type_units): Ditto.
4868         (add_type_unit): Move up in file.  New arg slot.
4869         All callers updated.  Increase space for all_type_units more
4870         efficiently.
4871         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4872         (lookup_dwo_signatured_type): Handle skeletonless TUs.
4873         (lookup_dwp_signatured_type): Ditto.
4874         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4875         All callers updated.
4876         (build_type_psymtabs_1): Leave type_unit_groups as
4877         NULL if no TUs present.
4878         (print_tu_stats): New function.
4879         (process_skeletonless_type_unit): New function.
4880         (process_dwo_file_for_skeletonless_type_units): New
4881         function.
4882         (process_skeletonless_type_units): New function.
4883         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4884         Call print tu_stats if debugging enabled.
4885
4886 2014-06-02  Pedro Alves  <palves@redhat.com>
4887
4888         * breakpoint.c (build_target_command_list): Don't build a command
4889         list if we have any duplicate location that isn't a dprintf.
4890
4891 2014-06-02  Pedro Alves  <palves@redhat.com>
4892
4893         * breakpoint.c (dprintf_breakpoint_hit): New function.
4894         (initialize_breakpoint_ops): Install it as dprintf's
4895         breakpoint_hit method.
4896
4897 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
4898
4899         * source.c (substitute_path_rule_matches): Simplify using
4900         filename_ncmp instead of FILENAME_CMP.
4901
4902 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
4903
4904         * source.c (substitute_path_rule_matches): Remove trailing spaces.
4905
4906 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
4907
4908         * configure.ac: When Guile is available, check for the
4909         availability of 'scm_new_smob'.
4910         * configure, config.h.in: Regenerate.
4911         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4912         function.
4913
4914 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
4915
4916         * frame.c (struct frame_info): Add stop_string field.
4917         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4918         (get_prev_frame_always): Old content moved into
4919         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
4920         TRY_CATCH, handle MEMORY_ERROR exceptions.
4921         (frame_stop_reason_string): New function definition.
4922         * frame.h (unwind_stop_reason_to_string): Extend comment to
4923         mention frame_stop_reason_string.
4924         (frame_stop_reason_string): New function declaration.
4925         * stack.c (frame_info): Switch to frame_stop_reason_string.
4926         (backtrace_command_1): Switch to frame_stop_reason_string.
4927         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4928         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4929         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4930
4931 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
4932
4933         * frame.c (frame_stop_reason_string): Rename to ...
4934         (unwind_stop_reason_to_string): this.
4935         * frame.h (frame_stop_reason_string): Rename to ...
4936         (unwind_stop_reason_to_string): this.
4937         * stack.c (frame_info): Update call to frame_stop_reason_string.
4938         (backtrace_command_1): Likewise.
4939         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4940         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4941
4942 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
4943
4944         * frame.c (remove_prev_frame): New function.
4945         (get_prev_frame_if_no_cycle): Create / discard cleanup using
4946         remove_prev_frame.
4947
4948 2014-05-29  Pedro Alves  <palves@redhat.com>
4949
4950         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4951         and make it const.  When a single-step decays to a continue,
4952         clear 'step', not 'hw_step'.  Pass whether the caller wanted
4953         to step to user_visible_resume_ptid, not what we ask the
4954         target to do.
4955
4956 2014-05-29  Pedro Alves  <palves@redhat.com>
4957
4958         * infrun.c (process_event_stop_test, handle_step_into_function)
4959         (handle_step_into_function_backward): Adjust.
4960         Don't set the even thread's stop_step and call stop_waiting before
4961         calling end_stepping_range.  Instead do that ...
4962         (end_stepping_range): ... here.  Take an ecs pointer parameter.
4963
4964 2014-05-29  Pedro Alves  <palves@redhat.com>
4965
4966         * infrun.c (stop_stepping): Rename to ...
4967         (stop_waiting): ... this.
4968         (proceed): Update comment.
4969         (process_event_stop_test, handle_inferior_event)
4970         (handle_signal_stop, handle_step_into_function)
4971         (handle_step_into_function_backward): Update.
4972
4973 2014-05-29  Pedro Alves  <palves@redhat.com>
4974
4975         * infcall.c (run_inferior_call): Don't check whether the current
4976         thread is running after the proceed call.
4977
4978 2014-05-29  Pedro Alves  <palves@redhat.com>
4979             Tom Tromey  <tromey@redhat.com>
4980
4981         * NEWS: Mention "maint set target-async", "set mi-async", and that
4982         background execution commands are now always available.
4983         * target.h (target_async_permitted): Update comment.
4984         * target.c (target_async_permitted, target_async_permitted_1):
4985         Default to 1.
4986         (set_target_async_command): Rename to ...
4987         (maint_set_target_async_command): ... this.
4988         (show_target_async_command): Rename to ...
4989         (maint_show_target_async_command): ... this.
4990         (_initialize_target): Adjust.
4991         * infcmd.c (prepare_execution_command): Make extern.
4992         * inferior.h (prepare_execution_command): Declare.
4993         * infrun.c (set_observer_mode): Leave target async alone.
4994         * mi/mi-interp.c (mi_interpreter_init): Install
4995         mi_on_sync_execution_done as sync_execution_done observer.
4996         (mi_on_sync_execution_done): New function.
4997         (mi_execute_command_input_handler): Don't print the prompt if we
4998         just started a synchronous command with an async target.
4999         (mi_on_resume): Check sync_execution before printing prompt.
5000         * mi/mi-main.h (mi_async_p): Declare.
5001         * mi/mi-main.c: Include gdbcmd.h.
5002         (mi_async_p): New function.
5003         (mi_async, mi_async_1): New globals.
5004         (set_mi_async_command, show_mi_async_command, mi_async): New
5005         functions.
5006         (exec_continue): Call prepare_execution_command.
5007         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
5008         (mi_execute_async_cli_command): Use mi_async_p.
5009         (_initialize_mi_main): Install "set mi-async".  Make
5010         "target-async" a deprecated alias.
5011
5012 2014-05-29  Pedro Alves  <palves@redhat.com>
5013
5014         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
5015         (_initialize_cli_interp): Adjust.
5016         * event-loop.c: Include "observer.h".
5017         (start_event_loop): Notify 'command_error' observers instead of
5018         calling display_gdb_prompt.  Remove FIXME comment.
5019         * event-top.c (display_gdb_prompt): Remove call into the
5020         interpreters.
5021         * inf-loop.c: Include "observer.h".
5022         (inferior_event_handler): Notify 'command_error' observers instead
5023         of calling display_gdb_prompt.
5024         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
5025         observers instead of calling display_gdb_prompt.
5026         * interps.c (interp_set): Don't call display_gdb_prompt.
5027         (current_interp_display_prompt_p): Delete.
5028         * interps.h (interp_prompt_p): Delete declaration.
5029         (interp_prompt_p_ftype): Delete.
5030         (struct interp_procs) <prompt_proc_p>: Delete field.
5031         (current_interp_display_prompt_p): Delete declaration.
5032         * mi-interp.c (mi_interpreter_prompt_p): Delete.
5033         (_initialize_mi_interp): Adjust.
5034         * tui-interp.c (tui_init): Install 'sync_execution_done' and
5035         'command_error' observers.
5036         (tui_on_sync_execution_done, tui_on_command_error): New
5037         functions.
5038         (tui_display_prompt_p): Delete.
5039         (_initialize_tui_interp): Adjust.
5040
5041 2014-05-29  Pedro Alves  <palves@redhat.com>
5042
5043         PR gdb/13860
5044         * cli/cli-interp.c: Include infrun.h and observer.h.
5045         (cli_uiout, cli_interp): New globals.
5046         (cli_on_signal_received, cli_on_end_stepping_range)
5047         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
5048         functions.
5049         (cli_interpreter_init): Install them as 'end_stepping_range',
5050         'signal_received' 'signal_exited', 'exited' and 'no_history'
5051         observers.
5052         (_initialize_cli_interp): Remove cli_interp local.
5053         * infrun.c (handle_inferior_event): Call the several stop reason
5054         observers instead of printing the stop reason directly.
5055         (end_stepping_range): New function.
5056         (print_end_stepping_range_reason, print_signal_exited_reason)
5057         (print_exited_reason, print_signal_received_reason)
5058         (print_no_history_reason): Make static, and add an uiout
5059         parameter.  Print to that instead of to CURRENT_UIOUT.
5060         * infrun.h (print_end_stepping_range_reason)
5061         (print_signal_exited_reason, print_exited_reason)
5062         (print_signal_received_reason print_no_history_reason): New
5063         declarations.
5064         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
5065         'mi_uiout'.
5066         <cli_uiout>: New field.
5067         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
5068         uiout for CLI output.  Install 'signal_received',
5069         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
5070         observers.
5071         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
5072         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
5073         (mi_on_no_history): New functions.
5074         (ui_out_free_cleanup): Delete function.
5075         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
5076         instead use the one already stored in the MI interpreter data.
5077         (mi_ui_out): Adjust.
5078         * tui/tui-interp.c: Include infrun.h and observer.h.
5079         (tui_interp): New global.
5080         (tui_on_signal_received, tui_on_end_stepping_range)
5081         (tui_on_signal_exited, tui_on_exited)
5082         (tui_on_no_history): New functions.
5083         (tui_init): Install them as 'end_stepping_range',
5084         'signal_received' 'signal_exited', 'exited' and 'no_history'
5085         observers.
5086         (_initialize_tui_interp): Delete tui_interp local.
5087
5088 2014-05-29  Pedro Alves  <palves@redhat.com>
5089
5090         PR gdb/15713
5091         * linux-nat.c (linux_nat_resume_callback): Rename the second
5092         parameter to 'except'.  Skip LP if it points to EXCEPT.
5093         (linux_nat_resume): Don't mark the event lwp as not stopped
5094         before resuming sibling lwps.  Instead ask
5095         linux_nat_resume_callback to skip the event lwp.  Mark it as not
5096         stopped after actually resuming it.
5097         (linux_handle_syscall_trap): Mark the lwp as not stopped after
5098         resuming it.
5099         (wait_lwp): Mark the lwp as stopped here.
5100         (stop_wait_callback): Mark the lwp as not stopped right after
5101         resuming it.  Don't mark lwps as stopped here.
5102         (linux_nat_filter_event): Mark the lwp as stopped earlier.
5103         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
5104
5105 2014-05-29  Pedro Alves  <palves@redhat.com>
5106
5107         PR PR15693
5108         * infrun.c (resume): Determine how much to resume depending on
5109         whether the caller wanted a step, not whether we can hardware step
5110         the target.  Mark all threads that we intend to run as running,
5111         unless we're calling an inferior function.
5112         (normal_stop): If the thread is running an infcall, don't finish
5113         thread state.
5114         * target.c (target_resume): Don't mark threads as running here.
5115
5116 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
5117
5118         * serial.c (_initialize_serial): Remove support for
5119         the "set remotebaud" and "show remotebaud" commands.
5120         * NEWS: Add entry documenting the removal of that command.
5121
5122 2014-05-28  Yao Qi  <yao@codesourcery.com>
5123
5124         * charset.c: Fix typo in comments.
5125
5126 2014-05-27  Gary Benson  <gbenson@redhat.com>
5127
5128         * utils.c (internal_vproblem): Prompt for a bug report.
5129
5130 2014-05-26  Andy Wingo  <wingo@igalia.com>
5131
5132         * guile/scm-arch.c (arscm_mark_arch_smob):
5133         * guile/scm-block.c (bkscm_mark_block_smob)
5134         (bkscm_mark_block_syms_progress_smob):
5135         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5136         * guile/scm-exception.c (exscm_mark_exception_smob):
5137         * guile/scm-frame.c (frscm_mark_frame_smob):
5138         * guile/scm-iterator.c (itscm_mark_iterator_smob):
5139         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5140         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5141         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5142         (ppscm_mark_pretty_printer_worker_smob):
5143         * guile/scm-symbol.c (syscm_mark_symbol_smob):
5144         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5145         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5146         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5147         mark functions.
5148         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5149         function.
5150
5151 2014-05-26  Andy Wingo  <wingo@igalia.com>
5152             Doug Evans  <xdje42@gmail.com>
5153
5154         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5155         empty_base_class.  All uses updated.
5156         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5157         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5158         Adapt all callers.
5159         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5160         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5161         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5162         (gdbscm_gsmob_has_property_p, add_property_name)
5163         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5164         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5165         (gdb-object-has-property?, gdb-object-properties): Remove.
5166         (gdb-object-kind): Renamed from gsmob-kind.
5167
5168 2014-05-26  Andy Wingo  <wingo@igalia.com>
5169
5170         * configure.ac (try_guile_versions): Allow building with guile 2.2.
5171         * configure: Regenerate.
5172
5173 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
5174
5175         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5176
5177 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
5178
5179         * record-btrace.c (record_btrace_allow_memory_access): Remove.
5180         (replay_memory_access_read_only, replay_memory_access_read_write)
5181         (replay_memory_access_types, replay_memory_access)
5182         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5183         (cmd_set_record_btrace, cmd_show_record_btrace)
5184         (cmd_show_replay_memory_access): New.
5185         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5186         (record_btrace_remove_breakpoint): Replace
5187         record_btrace_allow_memory_access with replay_memory_access.
5188         (_initialize_record_btrace): Add commands.
5189         * NEWS: Announce it.
5190
5191 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5192
5193         * aarch64-linux-nat.c (asm/ptrace.h): Include.
5194
5195 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5196
5197         * MAINTAINERS (Write After Approval): Move self back from
5198         paper trail.
5199
5200 2014-05-22  Pedro Alves  <palves@redhat.com>
5201
5202         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5203         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5204         (disable_randomization, enum exec_direction_kind)
5205         (execution_direction, stop_registers, start_remote)
5206         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5207         (wait_for_inferior, normal_stop, get_last_target_status)
5208         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5209         (insert_step_resume_breakpoint_at_sal)
5210         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5211         (set_step_info, print_stop_event, signal_stop_state)
5212         (signal_print_state, signal_pass_state, signal_stop_update)
5213         (signal_print_update, signal_pass_update)
5214         (update_signals_program_target, clear_exit_convenience_vars)
5215         (displaced_step_dump_bytes, update_observer_mode)
5216         (signal_catch_update, gdb_signal_from_command): Move
5217         declarations ...
5218         * infrun.h: ... to this new file.
5219         * amd64-tdep.c: Include infrun.h.
5220         * annotate.c: Include infrun.h.
5221         * arch-utils.c: Include infrun.h.
5222         * arm-linux-tdep.c: Include infrun.h.
5223         * arm-tdep.c: Include infrun.h.
5224         * break-catch-sig.c: Include infrun.h.
5225         * breakpoint.c: Include infrun.h.
5226         * common/agent.c: Include infrun.h instead of inferior.h.
5227         * corelow.c: Include infrun.h.
5228         * event-top.c: Include infrun.h.
5229         * go32-nat.c: Include infrun.h.
5230         * i386-tdep.c: Include infrun.h.
5231         * inf-loop.c: Include infrun.h.
5232         * infcall.c: Include infrun.h.
5233         * infcmd.c: Include infrun.h.
5234         * infrun.c: Include infrun.h.
5235         * linux-fork.c: Include infrun.h.
5236         * linux-nat.c: Include infrun.h.
5237         * linux-thread-db.c: Include infrun.h.
5238         * monitor.c: Include infrun.h.
5239         * nto-tdep.c: Include infrun.h.
5240         * procfs.c: Include infrun.h.
5241         * record-btrace.c: Include infrun.h.
5242         * record-full.c: Include infrun.h.
5243         * remote-m32r-sdi.c: Include infrun.h.
5244         * remote-mips.c: Include infrun.h.
5245         * remote-notif.c: Include infrun.h.
5246         * remote-sim.c: Include infrun.h.
5247         * remote.c: Include infrun.h.
5248         * reverse.c: Include infrun.h.
5249         * rs6000-tdep.c: Include infrun.h.
5250         * s390-linux-tdep.c: Include infrun.h.
5251         * solib-irix.c: Include infrun.h.
5252         * solib-osf.c: Include infrun.h.
5253         * solib-svr4.c: Include infrun.h.
5254         * target.c: Include infrun.h.
5255         * top.c: Include infrun.h.
5256         * windows-nat.c: Include infrun.h.
5257         * mi/mi-interp.c: Include infrun.h.
5258         * mi/mi-main.c: Include infrun.h.
5259         * python/py-threadevent.c: Include infrun.h.
5260
5261 2014-05-22  Pedro Alves  <palves@redhat.com>
5262
5263         * infrun.c (handle_inferior_event): Store the exit code for
5264         --return-child-result here, instead of ...
5265         (print_exited_reason): ... here.
5266
5267 2014-05-21  Pedro Alves  <palves@redhat.com>
5268
5269         PR gdb/13860
5270         * gdbthread.h (struct thread_control_state): New field
5271         `command_interp'.
5272         * infrun.c (follow_fork): Copy the new thread control field to the
5273         child fork thread.
5274         (clear_proceed_status_thread): Clear the new thread control field.
5275         (proceed): Set the new thread control field.
5276         * interps.h (command_interp): Declare.
5277         * interps.c (command_interpreter): New global.
5278         (command_interp): New function.
5279         (interp_exec): Set `command_interpreter' while here.
5280         * cli-out.c (cli_uiout_dtor): New function.
5281         (cli_ui_out_impl): Install it.
5282         * mi/mi-interp.c: Include cli-out.h.
5283         (mi_cmd_interpreter_exec): Add comment.
5284         (restore_current_uiout_cleanup): New function.
5285         (ui_out_free_cleanup): New function.
5286         (mi_on_normal_stop): If finishing an execution command started by
5287         a CLI command, or any kind of breakpoint-like event triggered,
5288         print the stop event to the output (CLI) stream.
5289         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5290
5291 2014-05-21  Pedro Alves  <palves@redhat.com>
5292
5293         * cli/cli-cmds.c (list_command): Handle the first "list" after the
5294         current source line having changed.
5295         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5296         * infrun.c (normal_stop): Adjust call to
5297         set_current_sal_from_frame.
5298         * source.c (clear_lines_listed_range): New function.
5299         (set_current_source_symtab_and_line, identify_source_line): Clear
5300         the lines listed range.
5301         (line_info): Handle the first "info line" after the current source
5302         line having changed.
5303         * stack.c (print_stack_frame): Remove center handling.
5304         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
5305         center sal.line.
5306
5307 2014-05-21  Pedro Alves  <palves@redhat.com>
5308
5309         * inf-child.c (inf_child_mourn_inferior): New function.
5310         * inf-child.h (inf_child_mourn_inferior): New declaration.
5311         * darwin-nat.c (darwin_mourn_inferior): Use
5312         inf_child_mourn_inferior.
5313         * gnu-nat.c (gnu_mourn_inferior): Likewise.
5314         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5315         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5316         * nto-procfs.c (procfs_mourn_inferior): Likewise.
5317         * windows-nat.c (windows_mourn_inferior): Likewise.
5318
5319 2014-05-21  Doug Evans  <xdje42@gmail.com>
5320
5321         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5322
5323 2014-05-21  Doug Evans  <xdje42@gmail.com>
5324
5325         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5326         (gdbscm_out_of_range_error): Ditto.
5327         (gdbscm_memory_error): Ditto.
5328         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5329         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5330         (gdbscm_out_of_range_error): Update.
5331         (gdbscm_memory_error): Update.
5332         (gdbscm_scm_to_target_string_unsafe): Delete.
5333
5334 2014-05-21  Pedro Alves  <palves@redhat.com>
5335
5336         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5337         globals.
5338         (inf_child_open_target): New function.
5339         (inf_child_open): Use inf_child_open_target to push the target
5340         instead of erroring out.
5341         (inf_child_disconnect, inf_child_close)
5342         (inf_child_maybe_unpush_target): New functions.
5343         (inf_child_target): Install inf_child_disconnect and
5344         inf_child_close.  Store a pointer to the returned object.
5345         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5346         declarations.
5347         * target.c (auto_connect_native_target): New global.
5348         (show_default_run_target): New function.
5349         (find_default_run_target): Return NULL if automatically connecting
5350         to the native target is disabled.
5351         (_initialize_target): Install set/show auto-connect-native-target.
5352         * NEWS: Mention "set auto-connect-native-target", and "target
5353         native".
5354         * linux-nat.c (super_close): New global.
5355         (linux_nat_close): Call super_close.
5356         (linux_nat_add_target): Store a pointer to the base class's
5357         to_close method.
5358         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5359         inf_child_maybe_unpush.
5360         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5361         already pushed.
5362         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5363         the inferior.  Use inf_child_maybe_unpush_target.
5364         (inf_ttrace_attach): Don't push the target if it is already
5365         pushed.
5366         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5367         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5368         after mourning the inferior.  Use inf_child_maybe_unpush_target.
5369         (darwin_attach_pid): Don't push the target if it is already
5370         pushed.
5371         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5372         mourning the inferior.  Use inf_child_maybe_unpush_target.
5373         (gnu_detach): Use inf_child_maybe_unpush_target.
5374         * go32-nat.c (go32_create_inferior): Don't push the target if it
5375         is already pushed.
5376         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5377         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5378         (procfs_open): Rename to ...
5379         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
5380         comments.  Can target_preopen before changing node.  Call
5381         inf_child_open_target to push the target explicitly.
5382         (procfs_attach): Don't push the target if it is already pushed.
5383         (procfs_detach): Use inf_child_maybe_unpush_target.
5384         (procfs_create_inferior): Don't push the target if it is already
5385         pushed.
5386         (nto_native_ops): New global.
5387         (procfs_open): Reimplement.
5388         (procfs_native_open): New function.
5389         (init_procfs_targets): Install procfs_native_open as to_open of
5390         "target native".  Store a pointer to the "native" target in
5391         nto_native_ops.
5392         * procfs.c (procfs_attach): Don't push the target if it is already
5393         pushed.
5394         (procfs_detach): Use inf_child_maybe_unpush_target.
5395         (procfs_mourn_inferior): Only unpush the target after mourning the
5396         inferior.  Use inf_child_maybe_unpush_target.
5397         (procfs_init_inferior): Don't push the target if it is already
5398         pushed.
5399         * windows-nat.c (do_initial_windows_stuff): Don't push the target
5400         if it is already pushed.
5401
5402 2014-05-21  Pedro Alves  <palves@redhat.com>
5403
5404         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5405         and "procfs" targets are now called "native" instead.
5406
5407 2014-05-21  Pedro Alves  <palves@redhat.com>
5408
5409         * go32-nat.c (go32_open): Delete.
5410         (go32_target): Don't override the to_open method.
5411
5412 2014-05-21  Pedro Alves  <palves@redhat.com>
5413
5414         * nto-procfs.c (procfs_can_run): New function.
5415         (nto_procfs_ops): New global.
5416         (init_procfs_targets): New, based on procfs_target.  Install
5417         "target native" in addition to "target procfs".
5418         (_initialize_procfs): Call init_procfs_targets instead of adding
5419         the target here.
5420
5421 2014-05-21  Pedro Alves  <palves@redhat.com>
5422
5423         * windows-nat.c (windows_target): Don't override to_shortname,
5424         to_longname or to_doc.
5425
5426 2014-05-21  Pedro Alves  <palves@redhat.com>
5427
5428         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5429         to_doc.
5430
5431 2014-05-21  Pedro Alves  <palves@redhat.com>
5432
5433         * darwin-nat.c (_initialize_darwin_inferior): Don't override
5434         to_shortname, to_longname or to_doc.
5435
5436 2014-05-21  Pedro Alves  <palves@redhat.com>
5437
5438         * go32-nat.c (go32_target): Don't override to_shortname,
5439         to_longname or to_doc.
5440
5441 2014-05-21  Pedro Alves  <palves@redhat.com>
5442
5443         * inf-child.c (inf_child_open): Remove mention of "child".
5444         (inf_child_target): Rename target to "native" instead of "child".
5445
5446 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5447
5448         * Makefile.in (SFILES): Delete "regset.c".
5449         (COMMON_OBS): Delete "regset.o".
5450         * regset.c: Remove.
5451         * regset.h (regset_alloc): Delete prototype.
5452
5453 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5454
5455         * sparc-linux-tdep.c (sparc32_linux_gregset)
5456         (sparc32_linux_fpregset): New static regset structures.
5457         (sparc32_linux_init_abi): Drop dynamic regset allocations.
5458         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5459         'fpregset' fields.
5460         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5461         (sparc64_linux_fpregset): New static regset structures.
5462         (sparc64_linux_init_abi): Drop dynamic regset allocations.
5463         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5464         New static regset structures.
5465         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5466         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5467         New static regset structures.
5468         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5469         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5470         New static regset structures.
5471         (sparc64obsd_init_abi): Drop dynamic regset allocations.
5472         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5473         New static regset structures.
5474         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5475
5476 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5477
5478         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5479         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5480         register maps ("regmaps") from "*regset" to "*regmap".  Do this
5481         for all regmap types and variables.
5482         * sparc-linux-tdep.c (sparc32_linux_step_trap)
5483         (sparc32_linux_supply_core_gregset)
5484         (sparc32_linux_collect_core_gregset)
5485         (sparc32_linux_supply_core_fpregset)
5486         (sparc32_linux_collect_core_fpregset): Likewise.
5487         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5488         (sparc_gregmap, sparc_fpregmap): ... these.
5489         (sparc_supply_gregset, sparc_collect_gregset)
5490         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5491         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5492         (_initialize_sparc_nat): Rename regmaps.
5493         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5494         (sparc_gregmap, sparc_fpregmap): ... these.
5495         (sparc_supply_gregset, sparc_collect_gregset)
5496         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5497         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5498         Rename macros to...
5499         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5500         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5501         Likewise.
5502         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5503         Rename to...
5504         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5505         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5506         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5507         regmaps.
5508         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5509         (sparc32_bsd_fpregset): Rename to...
5510         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5511         (sparc32_bsd_fpregmap): ... these.
5512         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5513         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5514         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5515         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5516         (struct sparc_gregmap, struct sparc_fpregmap)
5517         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5518         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5519         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5520         (sparc32_supply_regset, sparc32_collect_gregset)
5521         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5522         prototypes.
5523         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5524         (sparc64_linux_ptrace_gregmap): ... this.
5525         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5526         (_initialize_sparc64_linux_nat): Rename regmaps.
5527         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5528         (sparc64_linux_core_gregmap): ... this.
5529         (sparc64_linux_supply_core_gregset)
5530         (sparc64_linux_collect_core_gregset)
5531         (sparc64_linux_supply_core_fpregset)
5532         (sparc64_linux_collect_core_fpregset): Rename regmaps.
5533         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5534         (sparc64_sol2_fpregset): Rename to...
5535         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5536         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5537         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5538         regmaps.
5539         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5540         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5541         (sparc64_bsd_fpregset): Rename to...
5542         (struct sparc_gregmap, sparc64_sol2_gregmap)
5543         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5544         (sparc64_bsd_fpregmap): ... these.
5545         (sparc64_supply_gregset, sparc64_collect_gregset)
5546         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5547         prototypes.
5548         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5549         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5550         (sparc64fbsd_gregmap): ... this.
5551         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5552         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5553         Rename regmaps.
5554         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5555         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5556         (sparc64nbsd_collect_fpregset): Likewise.
5557         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5558         (sparc64nbsd_gregmap): ... this.
5559         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5560         regmaps.
5561         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5562         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5563         (sparc64obsd_gregmap): ... this.
5564         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5565         regmaps.
5566         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5567         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5568         (sparc32nbsd_gregmap): ... this.
5569         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5570         regmaps.
5571
5572 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5573
5574         * score-tdep.c (score7_linux_gregset): New static regset
5575         structure.
5576         (score7_linux_regset_from_core_section): Remove dynamic regset
5577         allocation.
5578         (score_gdbarch_init): Drop allocation of tdep structure.
5579         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5580
5581 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5582
5583         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5584         regset structures.
5585         (am33_regset_from_core_section): Remove dynamic regset
5586         allocations.
5587
5588 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5589
5590         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5591         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5592         structures.
5593         (mips_linux_regset_from_core_section): Remove dynamic regset
5594         allocations.
5595         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5596         'gregset64', 'fpregset', and 'fpregset64'.
5597         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5598         deleted tdep fields.
5599
5600 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5601
5602         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5603         regset structures.
5604         (amd64_regset_from_core_section): Remove dynamic regset
5605         allocations.
5606         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5607         structure.
5608         (amd64obsd_regset_from_core_section): Remove dynamic regset
5609         allocation.
5610         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5611         Likewise.
5612         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5613         x86-common regset supply function.
5614         * i386-tdep.c (i386_collect_gregset): Make static.
5615         (i386_gregset): New global regset structure.
5616         (i386_fpregset, i386_xstateregset): New static regset structures.
5617         (i386_regset_from_core_section): Remove dynamic regset
5618         allocations.
5619         (i386_gdbarch_init): Remove initialization of tdep fields
5620         'gregset', 'fpregset', and 'xstateregset'.
5621         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5622         'fpregset', and 'xstateregset'.
5623         (i386_collect_gregset): Remove prototype.
5624         (i386_gregset): New declaration.
5625         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5626         structure.
5627         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5628         allocation.
5629
5630 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5631
5632         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5633         (arm_linux_vfpregset): New static regset structures.
5634         (arm_linux_regset_from_core_section): Remove dynamic allocation of
5635         regset structures.
5636         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5637         and 'vfpregset' fields.
5638
5639 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5640
5641         * aarch64-linux-tdep.c (aarch64_linux_gregset)
5642         (aarch64_linux_fpregset): New static regset structures.
5643         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5644         of regset structures.
5645         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5646         'fpregset' fields.
5647
5648 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5649
5650         * regset.h (struct regset): Remove gdbarch field.
5651         * regset.c (regset_alloc): Drop initialization of gdbarch field.
5652         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5653         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5654         Likewise.
5655         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5656         (ppc32_linux_fpregset, ppc32_linux_vrregset)
5657         (ppc32_linux_vsxregset): Likewise.
5658         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5659         via the regcache instead of the regset.
5660         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5661         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5662         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5663         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5664         Likewise.
5665
5666 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5667
5668         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5669         Constify structures.
5670         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5671         (alphanbsd_aout_gregset): Likewise.
5672         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5673         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5674         Likewise.
5675         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5676         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5677         Likewise.
5678         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5679         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5680         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5681         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5682         * m88k-tdep.c (m88k_gregset): Likewise.
5683         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5684         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5685         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5686         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5687         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5688         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5689         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5690         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5691         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5692         Likewise.
5693         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5694         * sh-tdep.h (sh_corefile_gregset): Likewise.
5695         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5696         * vax-tdep.c (vax_gregset): Likewise.
5697
5698 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
5699
5700         Fix TLS access for -static -pthread.
5701         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5702         (try_thread_db_load_1): Initialize it.
5703         (thread_db_get_thread_local_address): Call it if LM is zero.
5704         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5705         * target.h (struct target_ops) (to_get_thread_local_address): Add
5706         load_module_addr comment.
5707
5708 2014-05-21  Pedro Alves  <palves@redhat.com>
5709
5710         * dcache.c (dcache_read_memory_partial): If reading the cache line
5711         fails, fallback to reading just the memory the caller wanted.
5712
5713 2014-05-20  Doug Evans  <dje@google.com>
5714
5715         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5716         instead of get_current_arch.
5717
5718 2014-05-20  Pedro Alves  <palves@redhat.com>
5719
5720         * NEWS: Mention that compare-sections now works with all targets.
5721
5722         * remote.c (PACKET_qCRC): New enum value.
5723         (remote_verify_memory): Don't send qCRC if the target has no
5724         execution.  Use packet_support/packet_ok.  If the target doesn't
5725         support the qCRC packet, fallback to a deep memory copy.
5726         (compare_sections_command): Say "target image" instead of "remote
5727         executable".
5728         (_initialize_remote): Add PACKET_qCRC to the list of config
5729         packets that have no associated command.  Extend comment.
5730         * target.c (simple_verify_memory, default_verify_memory): New
5731         function.
5732         * target.h (struct target_ops) <to_verify_memory>: Default to
5733         default_verify_memory.
5734         (simple_verify_memory): New declaration.
5735         * target-delegates.c: Regenerate.
5736
5737 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
5738
5739         * record-btrace.c (record_btrace_step_thread): Check for empty history.
5740
5741 2014-05-20  Hui Zhu  <hui@codesourcery.com>
5742             Yao Qi  <yao@codesourcery.com>
5743
5744         PR backtrace/16558
5745         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5746         and change address of sp and pc.
5747
5748 2014-05-19  Tom Tromey  <tromey@redhat.com>
5749
5750         * gdbtypes.c (rank_function): Use XNEWVEC.
5751         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5752
5753 2014-05-19  Doug Evans  <dje@google.com>
5754
5755         * dwarf2read.c (build_type_psymtabs_1): Renamed from
5756         build_type_unit_groups and moved closer to only caller.  Remove
5757         arguments.  All references updated.  Remove outdated .gdb_index
5758         comment.
5759         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5760         build_type_psymtabs_1.
5761
5762 2014-05-19  Doug Evans  <dje@google.com>
5763
5764         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5765         n_type_unit_groups, all_type_unit_groups.  All uses removed.
5766         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5767         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
5768         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
5769         (add_type_unit_group_to_table): Delete.
5770
5771 2014-05-19  Doug Evans  <dje@google.com>
5772
5773         * eval.c (evaluate_subexp_standard): Add some comments.
5774
5775 2014-05-17  Doug Evans  <xdje42@gmail.com>
5776
5777         * progspace.c (remove_program_space): Delete, unused.
5778         * progspace.h (remove_program_space): Ditto.
5779
5780 2014-05-17  Doug Evans  <xdje42@gmail.com>
5781
5782         * inferior.c (prune_inferiors): Fix comment.
5783         (remove_inferior_command): Call prune_program_spaces.
5784
5785 2014-05-16  Doug Evans  <dje@google.com>
5786
5787         New command line option -D.
5788         * NEWS: Mention it.
5789         * main.c (set_gdb_data_directory): New function.
5790         (captured_main): Recognize -D.  Flag error for --data-directory "".
5791         Call set_gdb_data_directory.
5792         (print_gdb_help): Print --data-directory, -D.
5793         * main.h (set_gdb_data_directory): Declare.
5794         * top.c (staged_gdb_datadir): New static global.
5795         (set_gdb_datadir): Call set_gdb_data_directory
5796         (show_gdb_datadir): New function.
5797         (init_main): Update init of data-directory parameter.
5798
5799 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
5800
5801         Import the "dirfd" gnulib module.
5802         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5803         * gnulib/aclocal.m4: Update.
5804         * gnulib/config.in: Update.
5805         * gnulib/configure: Update.
5806         * gnulib/import/Makefile.am: Update.
5807         * gnulib/import/Makefile.in: Update.
5808         * gnulib/import/dirfd.c: New.
5809         * gnulib/import/m4/dirfd.m4: New.
5810         * gnulib/import/m4/gnulib-cache.m4: Update.
5811         * gnulib/import/m4/gnulib-comp.m4: Update.
5812
5813 2014-05-16  Pierre Muller  <muller@sourceware.org>
5814             Yao Qi  <yao@codesourcery.com>
5815
5816         * valprint.c (print_wchar): Move the code on checking whether
5817         W is a printable wide char to the default branch of switch
5818         statement below.  Call wchar_printable instead of gdb_iswprint.
5819
5820 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
5821
5822         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5823         ldr.w and ldrd instructions.
5824
5825 2014-05-15  Doug Evans  <dje@google.com>
5826
5827         * dwarf2read.c (read_structure_type): Delete outdated comments.
5828
5829 2014-05-14  Tom Tromey  <tromey@redhat.com>
5830
5831         * macrocmd.c (print_macro_definition): Reindent.
5832
5833 2014-05-13  Doug Evans  <xdje42@gmail.com>
5834
5835         * python/py-cmd.c (cmdpy_completer): Add comment.
5836         (completers): Make const.
5837
5838 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
5839
5840         * infrun.c (resume): Remove should_resume (unused).  Move up
5841         declaration of resume_ptid.
5842
5843 2014-05-13  Tom Tromey  <tromey@redhat.com>
5844
5845         * language.h (unop_type_check): Remove.
5846         (binop_type_check): Don't declare.
5847
5848 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
5849
5850         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5851         call to regcache_raw_collect.
5852
5853 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
5854
5855         * mi/mi-console.c (mi_console_raw_packet): Use the value from
5856         mi_console->quote as the quoting character.
5857
5858 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
5859
5860         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5861
5862 2014-04-29  Tom Tromey  <tromey@redhat.com>
5863
5864         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5865         "show debug varobj".
5866
5867 2014-05-07  Kyle McMartin  <kyle@redhat.com>
5868
5869         Pushed by Joel Brobecker  <brobecker@adacore.com>.
5870         * aarch64-tdep.c (aarch64_software_single_step): New function.
5871         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5872         with aarch64_software_single_step.
5873
5874 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
5875
5876         GDB 7.7.1 released.
5877
5878 2014-05-05  Keith Seitz  <keiths@redhat.com>
5879
5880         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5881         variable or history value is successfully parsed.
5882
5883 2014-05-05  Yao Qi  <yao@codesourcery.com>
5884             Pedro Alves  <palves@redhat.com>
5885
5886         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5887         address of blocks that intersects the requested range.  Trim
5888         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5889         sections.
5890         * ctf.c (ctf_xfer_partial): Likewise.
5891
5892 2014-05-05  Yao Qi  <yao@codesourcery.com>
5893
5894         * printcmd.c (display_command): Remove the check to
5895         target_has_execution.
5896
5897 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
5898
5899         * ppcobsd-nat.c: Include "obsd-nat.h".
5900         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5901         add_target.
5902         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5903
5904 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
5905
5906         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5907         and 16-bit signed and unsigned arguments.  Update comment.
5908         (stap_parse_probe_arguments): Extend code to handle such
5909         arguments.  Use warning instead of complaint to notify about
5910         unrecognized bitness.
5911
5912 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
5913
5914         PR breakpoints/16889
5915         * stap-probe.c (stap_parse_probe_arguments): Simplify
5916         check for non-prefixed probes (i.e., probes whose
5917         arguments do not start with "N@").  Always set the
5918         argument type to a sane value.
5919
5920 2014-05-01  David Taylor  <dtaylor@emc.com>
5921
5922         * remote.c (compare_sections_command): Add -r option to compare
5923         all loadable read-only sections.
5924
5925 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
5926
5927         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5928         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5929         Update all callers.
5930         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5931         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5932         Remove unused CORE_ADDR argument.  Update all callers.
5933
5934 2014-04-29  Pedro Alves  <palves@redhat.com>
5935
5936         * remote.c (struct packet_config) <detect>: Extend comment.
5937         (add_packet_config_cmd): Don't set the config's detect or support
5938         fields here.
5939         (init_all_packet_configs): Also initialize the config's 'detect'
5940         field.
5941         (reset_all_packet_configs_support): New function.
5942         (remote_open_1): Call reset_all_packet_configs_support instead of
5943         init_all_packet_configs.
5944         (_initialize_remote): Initialize all packet configs.  Assert that
5945         all packets have an associated command, except a few known
5946         outliers.
5947
5948 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5949
5950         * dwarf2read.c (read_subrange_type): Handle dynamic
5951         DW_AT_lower_bound attributes.
5952
5953 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5954
5955         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5956         dynamic bounds before computing its upper bound.
5957         (ada_discrete_type_low_bound): Same as above with the lower bound.
5958
5959 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5960
5961         * dwarf2read.c (is_dynamic_type): Return true for dynamic
5962         range types.  Adjust the array handling implementation to
5963         take advantage of this change.
5964         (resolve_dynamic_range): New function, mostly extracted from
5965         resolve_dynamic_bounds.
5966         (resolve_dynamic_array): New function, mostly extracted from
5967         resolve_dynamic_bounds.
5968         (resolve_dynamic_bounds): Delete.
5969         (resolve_dynamic_type): Reimplement.  Add handling of
5970         TYPE_CODE_RANGE types.
5971
5972 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5973
5974         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5975         handling of parallel ___XA types.
5976
5977 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5978
5979         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5980         unnecessary second call to static_unwrap_type.
5981
5982 2014-04-27  Hui Zhu  <hui@codesourcery.com>
5983
5984         * stack.c (print_frame_info): Call do_gdb_disassembly with
5985         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5986
5987 2014-04-26  Doug Evans  <xdje42@gmail.com>
5988
5989         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5990
5991 2014-04-25  Pedro Alves  <palves@redhat.com>
5992
5993         PR server/16255
5994         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5995         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
5996         and newline from built string.
5997         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5998         (linux_ptrace_attach_fail_reason): ... this.
5999         * linux-nat.c (linux_nat_attach): Adjust to use
6000         linux_ptrace_attach_fail_reason.
6001
6002 2014-04-25  Pedro Alves  <palves@redhat.com>
6003
6004         * remote.c (struct remote_state): Remove multi_process_aware,
6005         non_stop_aware, cond_tracepoints, cond_breakpoints,
6006         breakpoint_commands, fast_tracepoints, static_tracepoints,
6007         install_in_trace, disconnected_tracing,
6008         enable_disable_tracepoints, string_tracing, and
6009         augmented_libraries_svr4_read fields.
6010         (remote_multi_process_p): Move further below in the file.
6011         (struct packet_config): Add comments.
6012         (update_packet_config): Delete function.
6013         (show_packet_config_cmd): Use packet_config_support.
6014         (add_packet_config_cmd): Use NULL as set callback.
6015         (packet_ok): "set remote foo-packet"-style commands no longer
6016         change config->supported -- adjust.
6017         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
6018         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
6019         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
6020         (PACKET_QNonStop, PACKET_multiprocess_feature)
6021         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
6022         (PACKET_DisconnectedTracing_feature)
6023         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
6024         (set_remote_protocol_packet_cmd): Delete function.
6025         (packet_config_support, packet_support): New functions.
6026         (set_remote_protocol_Z_packet_cmd): Don't call
6027         update_packet_config.
6028         (remote_query_attached, remote_pass_signals)
6029         (remote_program_signals, remote_threads_info)
6030         (remote_threads_extra_info, remote_start_remote): Use
6031         packet_support.
6032         (remote_start_remote): Use packet_config_support and
6033         packet_support.
6034         (init_all_packet_configs): Set all packets to unknown support,
6035         instead of calling update_packet_config.
6036         (remote_check_symbols): Use packet_support.
6037         (remote_supported_packet): Unconditionally set the packet config's
6038         support status.
6039         (remote_multi_process_feature, remote_non_stop_feature)
6040         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
6041         (remote_breakpoint_commands_feature)
6042         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
6043         (remote_install_in_trace_feature)
6044         (remote_disconnected_tracing_feature)
6045         (remote_enable_disable_tracepoint_feature)
6046         (remote_string_tracing_feature)
6047         (remote_augmented_libraries_svr4_read_feature): Delete functions.
6048         (remote_protocol_features): Adjust to use remote_supported_packet
6049         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
6050         "ConditionalTracepoints", "ConditionalBreakpoints",
6051         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
6052         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
6053         "EnableDisableTracepoints", and "tracenz".
6054         (remote_query_supported): Use packet_support.
6055         (remote_open_1): Adjust.
6056         (extended_remote_attach_1): Use packet_support.  Switch on the
6057         result of packet_ok instead of checking whether the packet ended
6058         up disabled.
6059         (remote_vcont_resume): Use packet_support.
6060         (remote_resume, remote_stop_ns, fetch_register_using_p)
6061         (remote_prepare_to_store, store_register_using_P)
6062         (check_binary_download, remote_write_bytes): Use packet_support.
6063         (remote_vkill): Use packet_support.  Switch on the result of
6064         packet_ok instead of checking whether the packet ended up
6065         disabled.
6066         (extended_remote_supports_disable_randomization): Use
6067         packet_support.
6068         (extended_remote_run): Switch on the result of packet_ok instead
6069         of checking whether the packet ended up disabled.
6070         (remote_insert_breakpoint, remote_remove_breakpoint)
6071         (remote_insert_watchpoint, remote_remove_watchpoint)
6072         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
6073         packet_support.
6074         (remote_search_memory): Use packet_config_support.
6075         (remote_get_thread_local_address, remote_get_tib_address)
6076         (remote_hostio_send_command, remote_can_execute_reverse): Use
6077         packet_support.
6078         (remote_supports_cond_tracepoints)
6079         (remote_supports_cond_breakpoints)
6080         (remote_supports_fast_tracepoints)
6081         (remote_supports_static_tracepoints)
6082         (remote_supports_install_in_trace)
6083         (remote_supports_enable_disable_tracepoint)
6084         (remote_supports_string_tracing)
6085         (remote_can_run_breakpoint_commands): Rewrite, checking whether
6086         the packet config says the feature is enabled or disabled.
6087         (remote_download_tracepoint, remote_trace_set_readonly_regions)
6088         (remote_get_trace_status): Use packet_support.
6089         (remote_set_disconnected_tracing): Adjust to check whether the
6090         feature is enabled with packet_support.
6091         (remote_set_trace_buffer_size, remote_use_agent)
6092         (remote_can_use_agent, remote_supports_btrace): Use
6093         packet_support.
6094         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
6095         Use packet_config_support.
6096         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
6097         the packet config says the feature is enabled or disabled.
6098         (set_range_stepping): Use packet_support.
6099
6100 2014-04-25  Tom Tromey  <tromey@redhat.com>
6101
6102         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
6103         argument.
6104
6105 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
6106
6107         * NEWS: Mention support for C99 variable length arrays.
6108
6109 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
6110
6111         * ada-lang.c (standard_exc): Expand introductory comment.
6112
6113 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
6114             Walfred Tedeschi  <walfred.tedeschi@intel.com>
6115
6116         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
6117         AVX512 registers.
6118         (amd64_linux_read_description): Add code to handle AVX512 xstate
6119         mask and return respective tdesc.
6120         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
6121         and features/i386/x32-avx512-linux.c.
6122         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
6123         (amd64_linux_core_read_description): Add code to handle AVX512
6124         xstate mask and return respective tdesc.
6125         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
6126         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
6127         calculation.
6128         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
6129         (tdesc_amd64_avx512_linux): New prototype.
6130         (tdesc_x32_avx512_linux): Likewise.
6131         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6132         features/i386/x32-avx512.c.
6133         (amd64_ymm_avx512_names): New register names for pseudo
6134         registers YMM16-31.
6135         (amd64_ymmh_avx512_names): New register names for raw registers
6136         YMMH16-31.
6137         (amd64_k_names): New register names for K registers.
6138         (amd64_zmmh_names): New register names for ZMM raw registers.
6139         (amd64_zmm_names): New registers names for ZMM pseudo registers.
6140         (amd64_xmm_avx512_names): New register names for XMM16-31
6141         registers.
6142         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6143         registers.
6144         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6145         if feature is present.
6146         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6147         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6148         (AMD64_NUM_REGS): Adjust to new number of registers.
6149         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6150         registers supplied via XSTATE by AVX512 registers.
6151         (i386_linux_read_description): Add case for AVX512.
6152         * i386-linux-tdep.c: Include i386-avx512-linux.c.
6153         (i386_linux_gregset_reg_offset): Add AVX512 registers.
6154         (i386_linux_core_read_description): Add case for AVX512.
6155         (i386_linux_init_abi): Install supported register note section
6156         for AVX512.
6157         (_initialize_i386_linux_tdep): Add call to tdesc init function for
6158         AVX512.
6159         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6160         registers to be number of zmm7h + 1.
6161         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6162         * i386-tdep.c: Include features/i386/i386-avx512.c.
6163         (i386_zmm_names): Add ZMM pseudo register names array.
6164         (i386_zmmh_names): Add ZMM raw register names array.
6165         (i386_k_names): Add K raw register names array.
6166         (num_lower_zmm_regs): Add constant for the number of lower ZMM
6167         registers. AVX512 has 16 more ZMM registers than there are YMM
6168         registers.
6169         (i386_zmmh_regnum_p): Add function to look up register number of
6170         ZMM raw registers.
6171         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6172         (i386_k_regnum_p): Likewise for K raw registers.
6173         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6174         registers added by AVX512.
6175         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6176         registers added by AVX512.
6177         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6178         added by AVX512.
6179         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6180         (i386_pseudo_register_name): Add ZMM pseudo registers.
6181         (i386_zmm_type): Construct and return vector registers type for ZMM
6182         registers.
6183         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6184         ZMM0-31 pseudo registers and K registers.
6185         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6186         and YMM16-31 registers from register cache.
6187         (i386_pseudo_register_write): Add code to write  K, ZMM and
6188         YMM16-31 registers.
6189         (i386_register_reggroup_p): Add code to include/exclude AVX512
6190         registers in/from respective register groups.
6191         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6192         registers if feature is present in xcr0.
6193         (i386_gdbarch_init): Add code to initialize AVX512 feature
6194         variables in tdep structure, wire in pseudo registers and call
6195         initialize_tdesc_i386_avx512.
6196         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6197         variables.
6198         (i386_regnum): Add AVX512 registers.
6199         (I386_SSE_NUM_REGS): New define for number of SSE registers.
6200         (I386_AVX_NUM_REGS): Likewise for AVX registers.
6201         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6202         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6203         512 bits wide.
6204         (i386_xmm_avx512_regnum_p): New prototype for register look up.
6205         (i386_ymm_avx512_regnum_p): Likewise.
6206         (i386_k_regnum_p): Likewise.
6207         (i386_zmm_regnum_p): Likewise.
6208         (i386_zmmh_regnum_p): Likewise.
6209         * i387-tdep.c : Update year in copyright notice.
6210         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6211         XSAVE buffer.
6212         (XSAVE_YMM_AVX512_ADDR): New macro.
6213         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6214         XSAVE buffer.
6215         (XSAVE_XMM_AVX512_ADDR): New macro.
6216         (xsave_avx512_k_offset): New table for K register offsets in
6217         XSAVE buffer.
6218         (XSAVE_AVX512_K_ADDR): New macro.
6219         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6220         in XSAVE buffer.
6221         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6222         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6223         buffer.
6224         (i387_collect_xsave): Add code to collect AVX512 registers from
6225         XSAVE buffer.
6226         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6227         of XMM16-31 registers.
6228         (I387_NUM_K_REGS): New define for number of K registers.
6229         (I387_K0_REGNUM): New define for K0 register number.
6230         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6231         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6232         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6233         registers.
6234         (I387_YMM16H_REGNUM): New define for YMM16H register number.
6235         (I387_XMM16_REGNUM): New define for XMM16 register number.
6236         (I387_YMM0_REGNUM): New define for YMM0 register number.
6237         (I387_KEND_REGNUM): New define for last K register number.
6238         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6239         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6240         number.
6241         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6242         number.
6243         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6244         size.
6245         * features/Makefile: Add AVX512 related files.
6246         * features/i386/32bit-avx512.xml: New file.
6247         * features/i386/64bit-avx512.xml: Likewise.
6248         * features/i386/amd64-avx512-linux.c: Likewise.
6249         * features/i386/amd64-avx512-linux.xml: Likewise.
6250         * features/i386/amd64-avx512.c: Likewise.
6251         * features/i386/amd64-avx512.xml: Likewise.
6252         * features/i386/i386-avx512-linux.c: Likewise.
6253         * features/i386/i386-avx512-linux.xml: Likewise.
6254         * features/i386/i386-avx512.c: Likewise.
6255         * features/i386/i386-avx512.xml: Likewise.
6256         * features/i386/x32-avx512-linux.c: Likewise.
6257         * features/i386/x32-avx512-linux.xml: Likewise.
6258         * features/i386/x32-avx512.c: Likewise.
6259         * features/i386/x32-avx512.xml: Likewise.
6260         * regformats/i386/amd64-avx512-linux.dat: New file.
6261         * regformats/i386/amd64-avx512.dat: Likewise.
6262         * regformats/i386/i386-avx512-linux.dat: Likewise.
6263         * regformats/i386/i386-avx512.dat: Likewise.
6264         * regformats/i386/x32-avx512-linux.dat: Likewise.
6265         * regformats/i386/x32-avx512.dat: Likewise.
6266         * NEWS: Add note about new support for AVX512.
6267
6268
6269 2014-04-23  Pedro Alves  <palves@redhat.com>
6270
6271         * breakpoint.c (insert_bp_location): Tolerate errors if the
6272         breakpoint is set in a user-loaded objfile.
6273         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
6274         location is marked shlib_disabled.  If the breakpoint is set in a
6275         user-loaded objfile is a GDB-side memory breakpoint, validate it
6276         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
6277         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
6278         flag.
6279         * mem-break.c (memory_validate_breakpoint): New function.
6280         * objfiles.c (userloaded_objfile_contains_address_p): New
6281         function.
6282         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6283         * target.h (memory_validate_breakpoint): New declaration.
6284
6285 2014-04-23  Pedro Alves  <palves@redhat.com>
6286
6287         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6288         the breakpoint is set in a shared library, only suppress
6289         errors for software breakpoints, not hardware breakpoints.
6290
6291 2014-04-22  Pedro Alves  <palves@redhat.com>
6292
6293         * infrun.c (schedlock_applies): New function, factored out from
6294         find_thread_needs_step_over.
6295         (find_thread_needs_step_over): Use it.
6296         (switch_back_to_stepped_thread): Always clear trap_expected if the
6297         step over is finished.  Return early if scheduler locking applies.
6298         Look for the stepping thread and a potential step-over thread with
6299         a single loop.
6300         (currently_stepping_or_nexting_callback): Delete.
6301
6302 2014-04-22  Nick Clifton  <nickc@redhat.com>
6303
6304         * NEWS: Mention that ARM sim now supports tracing.
6305
6306 2014-04-22  Yao Qi  <yao@codesourcery.com>
6307
6308         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6309         to ...
6310         * tracefile.c (tracefile_fetch_registers): ... it.  New
6311         function.
6312         * tracefile.h (tracefile_fetch_registers): Declare.
6313         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
6314         tracefile_fetch_registers.
6315
6316 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
6317
6318         PR gdb/14018
6319         * windows-nat.c (thread_rec): Don't display a warning when
6320         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
6321         fails for any reason, set th->suspended to -1, so that we don't
6322         try to resume such a thread.  Also, don't return NULL in these
6323         cases, to avoid completely ruin the session due to "PC register is
6324         not available" error.
6325         (do_windows_fetch_inferior_registers): Check errors in
6326         GetThreadContext call.
6327         (windows_continue): Accept an additional argument KILLED; if not
6328         zero, ignore errors in the SetThreadContext call, since the
6329         inferior was killed and is shutting down.
6330         (windows_resume, get_windows_debug_event)
6331         (windows_create_inferior, windows_mourn_inferior)
6332         (windows_kill_inferior): All callers of windows_continue changed
6333         to adjust to its new calling sequence.
6334
6335 2014-04-19  Yao Qi  <yao@codesourcery.com>
6336
6337         * ctf.c (ctf_open): Call post_create_inferior.
6338
6339 2014-04-19  Yao Qi  <yao@codesourcery.com>
6340
6341         * ctf.c (handle_id): New static variable.
6342         (ctf_open_dir): Get handle_id from bt_context_add_trace return
6343         value.  Get the declaration of event "register" and get length
6344         of field "contents".
6345
6346 2014-04-19  Yao Qi  <yao@codesourcery.com>
6347
6348         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6349
6350 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
6351
6352         * valops.c (oload_method_static): Remove unnecessary argument
6353         METHOD.  Update all callers.
6354
6355 2014-04-18  Pedro alves  <palves@redhat.com>
6356             Tom Tromey  <tromey@redhat.com>
6357
6358         PR backtrace/15558
6359         * frame.c (get_prev_frame_1): Rename to ...
6360         (get_prev_frame_always): ... this, and make extern.  Adjust.
6361         (skip_artificial_frames): Use get_prev_frame_always.
6362         (frame_unwind_caller_id, frame_pop, get_prev_frame)
6363         (get_frame_unwind_stop_reason): Adjust to rename.
6364         * frame.h (get_prev_frame_always): Declare.
6365         * inline-frame.c: Include frame.h.
6366         (inline_frame_this_id): Use get_prev_frame_always.
6367
6368 2014-04-18  Tristan Gingold  <gingold@adacore.com>
6369
6370         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6371         code by using bfd_mach_o_get_base_address.
6372
6373 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6374
6375         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6376         (spu_ax_pseudo_register_collect): New function.
6377         (spu_ax_pseudo_register_push_stack): Likewise.
6378         (spu_dwarf_reg_to_regnum): Likewise.
6379         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
6380
6381 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6382
6383         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6384         Replace FRAME argument with FRAME_ID.
6385         * gdbarch.c, gdbarch.h: Regenerate.
6386         * findvar.c (default_value_from_register): Add GDBARCH argument;
6387         replace FRAME by FRAME_ID.  No longer call get_frame_id.
6388         (value_from_register): Update call to gdbarch_value_from_register.
6389         * value.h (default_value_from_register): Update prototype.
6390         * s390-linux-tdep.c (s390_value_from_register): Update interface
6391         and call to default_value_from_register.
6392         * spu-tdep.c (spu_value_from_register): Likewise.
6393
6394         * findvar.c (address_from_register): Remove TYPE argument.
6395         Do not call value_from_register; use gdbarch_value_from_register
6396         with null_frame_id instead.
6397         * value.h (address_from_register): Update prototype.
6398         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6399         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6400         address_from_register interface change.
6401
6402 2014-04-17  Yao Qi  <yao@codesourcery.com>
6403
6404         * gdbtypes.h: Update comments to link to types and macros'
6405         definitions.
6406
6407 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
6408
6409         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6410
6411 2014-04-16  Keith Seitz  <keiths@redhat.com>
6412
6413         PR gdb/15827
6414         * dwarf2read.c (skip_one_die): Check that all relative-offset
6415         sibling DIEs fall within range of the current reader's buffer.
6416         (read_partial_die): Likewise.
6417
6418 2014-04-16  Keith Seitz  <keiths@redhat.com>
6419
6420         PR c++/16597
6421         * cp-namespace.c (lookup_symbol_file): If the type name of
6422         `this' is NULL, return immediately.
6423
6424 2014-04-14  Keith Seitz  <keiths@redhat.com>
6425
6426         PR c++/16253
6427         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6428         from symbol_matches_domain in symtab.c. All local callers
6429         of symbol_matches_domain updated.
6430         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6431         search STRUCT_DOMAIN.
6432         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6433         independently.  standard_lookup will do that automatically.
6434         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6435         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6436         (cp_lookup_symbol_in_namespace): Likewise.
6437         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6438         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6439         may return a STRUCT_DOMAIN match.
6440         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6441         * cp-support.c: Include language.h.
6442         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6443         VAR_DOMAIN.
6444         * psymtab.c (match_partial_symbol): Compare the requested
6445         domain with the symbol's domain directly.
6446         (lookup_partial_symbol): Likewise.
6447         * symtab.c (lookup_symbol_in_language): Explain when/why
6448         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6449         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6450         appropriate languages.
6451         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6452         and moved to ada-lang.c
6453         (lookup_block_symbol): Explain that this function only returns
6454         symbol matching the requested DOMAIN.
6455         Compare the requested domain with the symbol's domain directly.
6456         (iterate_over_symbols): Compare the requested domain with the
6457         symbol's domain directly.
6458         * symtab.h (symbol_matches_domain): Remove.
6459
6460 2014-04-14  Tom Tromey  <tromey@redhat.com>
6461
6462         PR c++/15246:
6463         * c-exp.y (type_aggregate_p): New function.
6464         (qualified_name, classify_inner_name): Use it.
6465         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6466         and TYPE_TARGET_TYPE of an enum type.
6467         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6468         an enum type.
6469         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6470         handle TYPE_DECLARED_CLASS.
6471         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6472         types.
6473         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6474         * valops.c (enum_constant_from_type): New function.
6475         (value_aggregate_elt): Use it.
6476         * cp-namespace.c (cp_lookup_nested_symbol): Handle
6477         TYPE_CODE_ENUM.
6478
6479 2014-04-14  Tom Tromey  <tromey@redhat.com>
6480
6481         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6482         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6483         const.
6484         * value.h (value_aggregate_elt): Update.
6485
6486 2014-04-14  Tom Tromey  <tromey@redhat.com>
6487
6488         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6489
6490 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6491
6492         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6493         (evaluate_subexp_standard): Pass noside argument.
6494         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6495         if noside equals EVAL_NORMAL. If the subscript yields a vla type
6496         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6497         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6498         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6499
6500 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6501
6502         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6503         points to a constant blob.
6504
6505 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6506
6507         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6508         property and store it as the high bound and flag the range accordingly.
6509         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6510         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6511         * gdbtypes.h (enum range_flags): New enum.
6512         (struct range_bounds): Add flags member.
6513
6514 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6515
6516         * c-typeprint.c (c_type_print_varspec_suffix): Added
6517         check for not yet resolved high bound. If unresolved, print
6518         "variable length" string to the console instead of random
6519         length.
6520
6521 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6522
6523         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6524         value.
6525         (ada_template_to_fixed_record_type_1): Likewise.
6526         (ada_to_fixed_type_1): Likewise.
6527         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6528         (cp_print_value): Likewise.
6529         * d-valprint.c (dynamic_array_type): Likewise.
6530         * findvar.c (address_of_variable): Likewise.
6531         * jv-valprint.c (java_value_print): Likewise.
6532         * valops.c (value_ind): Likewise.
6533         * value.c (coerce_ref): Likewise.
6534
6535 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6536
6537         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6538         value and retrieve the dynamic type size.
6539
6540 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6541
6542         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6543         passed to sizeof is dynamic evaluate the argument to compute the length.
6544
6545 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6546             Joel Brobecker  <brobecker@adacore.com>
6547
6548         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6549         (dwarf2_evaluate_property): New function.
6550         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6551         * dwarf2read.c (attr_to_dynamic_prop): New function.
6552         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6553         attribute.
6554         * gdbtypes.c: Include dwarf2loc.h.
6555         (is_dynamic_type): New function.
6556         (resolve_dynamic_type): New function.
6557         (resolve_dynamic_bounds): New function.
6558         (get_type_length): New function.
6559         (check_typedef): Use get_type_length to compute type length.
6560         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6561         (TYPE_LOW_BOUND_KIND): New macro.
6562         (is_dynamic_type): New function prototype.
6563         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6564         to resolve dynamic properties of the type. Update comment.
6565         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6566
6567 2014-04-14  Richard Henderson  <rth@redhat.com>
6568
6569         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6570
6571 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
6572             Doug Evans  <xdje42@gmail.com>
6573
6574         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6575         dereference TYPE_CODE_REF values.
6576
6577 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
6578
6579         Revert the following changes due to regressions:
6580
6581         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6582         (dwarf2_evaluate_property): New function.
6583         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6584         * dwarf2read.c (attr_to_dynamic_prop): New function.
6585         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6586         attribute.
6587         * gdbtypes.c: Include dwarf2loc.h.
6588         (is_dynamic_type): New function.
6589         (resolve_dynamic_type): New function.
6590         (resolve_dynamic_bounds): New function.
6591         (get_type_length): New function.
6592         (check_typedef): Use get_type_length to compute type length.
6593         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6594         (TYPE_LOW_BOUND_KIND): New macro.
6595         (is_dynamic_type): New function prototype.
6596         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6597         to resolve dynamic properties of the type. Update comment.
6598         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6599
6600         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6601         passed to sizeof is dynamic evaluate the argument to compute the length.
6602
6603         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6604         value and retrieve the dynamic type size.
6605
6606         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6607         (ada_template_to_fixed_record_type_1): Likewise.
6608         (ada_to_fixed_type_1): Likewise.
6609         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6610         (cp_print_value): Likewise.
6611         * d-valprint.c (dynamic_array_type): Likewise.
6612         * eval.c (evaluate_subexp_with_coercion): Likewise.
6613         * findvar.c (address_of_variable): Likewise.
6614         * jv-valprint.c (java_value_print): Likewise.
6615         * valops.c (value_ind): Likewise.
6616         * value.c (coerce_ref): Likewise.
6617
6618         * c-typeprint.c (c_type_print_varspec_suffix): Added
6619         check for not yet resolved high bound. If unresolved, print
6620         "variable length" string to the console instead of random
6621         length.
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         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6631         points to a constant blob.
6632
6633         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6634         (evaluate_subexp_standard): Pass noside argument.
6635         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6636         if noside equals EVAL_NORMAL. If the subscript yields a vla type
6637         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6638         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6639         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6640
6641 2014-04-11  Keith Seitz  <keiths@redhat.com>
6642
6643         PR c++/16675
6644         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6645         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6646         reference types.
6647
6648 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6649
6650         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6651         (evaluate_subexp_standard): Pass noside argument.
6652         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6653         if noside equals EVAL_NORMAL. If the subscript yields a vla type
6654         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6655         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6656         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6657
6658 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6659
6660         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6661         points to a constant blob.
6662
6663 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6664
6665         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6666         property and store it as the high bound and flag the range accordingly.
6667         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6668         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6669         * gdbtypes.h (enum range_flags): New enum.
6670         (struct range_bounds): Add flags member.
6671
6672 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6673
6674         * c-typeprint.c (c_type_print_varspec_suffix): Added
6675         check for not yet resolved high bound. If unresolved, print
6676         "variable length" string to the console instead of random
6677         length.
6678
6679 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6680
6681         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6682         (ada_template_to_fixed_record_type_1): Likewise.
6683         (ada_to_fixed_type_1): Likewise.
6684         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6685         (cp_print_value): Likewise.
6686         * d-valprint.c (dynamic_array_type): Likewise.
6687         * eval.c (evaluate_subexp_with_coercion): Likewise.
6688         * findvar.c (address_of_variable): Likewise.
6689         * jv-valprint.c (java_value_print): Likewise.
6690         * valops.c (value_ind): Likewise.
6691         * value.c (coerce_ref): Likewise.
6692
6693 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6694
6695         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6696         value and retrieve the dynamic type size.
6697
6698 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6699
6700         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6701         passed to sizeof is dynamic evaluate the argument to compute the length.
6702
6703 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6704
6705         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6706         (dwarf2_evaluate_property): New function.
6707         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6708         * dwarf2read.c (attr_to_dynamic_prop): New function.
6709         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6710         attribute.
6711         * gdbtypes.c: Include dwarf2loc.h.
6712         (is_dynamic_type): New function.
6713         (resolve_dynamic_type): New function.
6714         (resolve_dynamic_bounds): New function.
6715         (get_type_length): New function.
6716         (check_typedef): Use get_type_length to compute type length.
6717         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6718         (TYPE_LOW_BOUND_KIND): New macro.
6719         (is_dynamic_type): New function prototype.
6720         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6721         to resolve dynamic properties of the type. Update comment.
6722         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6723
6724 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6725
6726         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6727         declaring high/low bounds and change uses accordingly. Call
6728         create_range_type instead of create_static_range_type.
6729         * gdbtypes.c (create_range_type): New function.
6730         (create_range_type): Convert bounds into struct bound_prop and pass
6731         them to create_range_type.
6732         * gdbtypes.h (struct bound_prop): New struct.
6733         (create_range_type): New function prototype.
6734         (struct range_bounds): Use struct bound_prop instead of LONGEST for
6735         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6736         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6737         part of the bound.
6738         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6739
6740 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6741
6742         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6743         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6744         * ada-lang.c: All uses of create_range_type updated.
6745         * coffread.c: All uses of create_range_type updated.
6746         * dwarf2read.c: All uses of create_range_type updated.
6747         * f-exp.y: All uses of create_range_type updated.
6748         * m2-valprint.c: All uses of create_range_type updated.
6749         * mdebugread.c: All uses of create_range_type updated.
6750         * stabsread.c: All uses of create_range_type updated.
6751         * valops.c: All uses of create_range_type updated.
6752         * valprint.c: All uses of create_range_type updated.
6753
6754 2014-04-10  Pedro Alves  <palves@redhat.com>
6755
6756         * breakpoint.c (single_step_breakpoints)
6757         (single_step_gdbarch): Move up in the file.
6758         (one_breakpoint_xfer_memory): New function, factored out from ...
6759         (breakpoint_xfer_memory): ... here.  Also process single-step
6760         breakpoints.
6761
6762 2014-04-09  Tristan Gingold  <gingold@adacore.com>
6763
6764         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6765         comments.
6766         (darwin_decode_exception_message): Free port only after use.
6767
6768 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
6769
6770         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6771         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6772         when setting the size of call_length.
6773
6774 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
6775
6776         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6777         dereference TYPE_CODE_REF values.
6778
6779 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
6780
6781         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6782         end of warning message.
6783
6784 2014-04-03  Doug Evans  <dje@google.com>
6785
6786         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6787         of stub_comp_unit_die, stub_comp_dir is non-NULL.
6788
6789 2014-04-02  Alan Modra  <amodra@gmail.com>
6790
6791         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6792         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
6793         (struct symbol_file_add_from_memory_args): Add size field.
6794         (find_vdso_size): New function.
6795         (add_vsyscall_page): Attempt to find vdso size.
6796
6797 2014-04-01  Doug Evans  <dje@google.com>
6798
6799         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6800
6801 2014-04-01  Tristan Gingold  <gingold@adacore.com>
6802
6803         * darwin-nat.c (darwin_encode_reply): Add prototype.
6804         (darwin_decode_exception_message): Reply to unknown inferiors.
6805         (darwin_decode_message): Handle message by id.  Ignore message
6806         to unknown inferior.
6807         (darwin_wait): Discard unknown messages, add debug trace.
6808
6809 2014-03-31  Doug Evans  <dje@google.com>
6810
6811         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6812         comp_dir_string.
6813
6814 2014-03-31  Doug Evans  <dje@google.com>
6815
6816         New option "set print symbol-loading".
6817         * NEWS: Mention it.
6818         * solib.c (solib_read_symbols): Only print symbol loading messages
6819         if requested.
6820         (solib_add): If symbol loading is in "brief" mode, notify user
6821         symbols are being loaded.
6822         (reload_shared_libraries_1): Ditto.
6823         * symfile.c (print_symbol_loading_off): New static global.
6824         (print_symbol_loading_brief): New static global.
6825         (print_symbol_loading_full): New static global.
6826         (print_symbol_loading_enums): New static global.
6827         (print_symbol_loading): New static global.
6828         (print_symbol_loading_p): New function.
6829         (symbol_file_add_with_addrs): Only print symbol loading messages
6830         if requested.
6831         (_initialize_symfile): Register "print symbol-loading" set/show
6832         command.
6833         * symfile.h (print_symbol_loading_p): Declare.
6834
6835 2014-03-30  Doug Evans  <xdje42@gmail.com>
6836
6837         * infrun.c (set_last_target_status): New function.
6838         (handle_inferior_event): Call it.
6839
6840 2014-03-30  Doug Evans  <xdje42@gmail.com>
6841
6842         * inferior.h (enum stop_kind): Improve comment.
6843
6844 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
6845
6846         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6847         a reference, strip the reference layer before calling
6848         the lang_ops value_has_mutated callback.
6849
6850 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6851
6852         Remove some globals from our parser.
6853         * language.c (unk_lang_parser): Add "struct parser_state"
6854         argument.
6855         * language.h (struct language_defn) <la_parser>: Likewise.
6856         * parse.c (expout, expout_size, expout_ptr): Remove variables.
6857         (initialize_expout): Add "struct parser_state" argument.
6858         Rewrite function to use the parser state.
6859         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6860         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6861         write_exp_elt_longcst, write_exp_elt_dblcst,
6862         write_exp_elt_decfloatcst, write_exp_elt_type,
6863         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6864         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6865         write_dollar_variable): Likewise.
6866         (parse_exp_in_context_1): Use parser state.
6867         (insert_type_address_space): Add "struct parser_state" argument.
6868         Use parser state.
6869         (increase_expout_size): New function.
6870         * parser-defs.h: Forward declare "struct language_defn" and
6871         "struct parser_state".
6872         (expout, expout_size, expout_ptr): Remove extern declarations.
6873         (parse_gdbarch, parse_language): Rewrite macro declarations to
6874         accept the parser state.
6875         (struct parser_state): New struct.
6876         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6877         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6878         write_exp_elt_decfloatcst, write_exp_elt_type,
6879         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6880         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6881         write_exp_msymbol, write_dollar_variable,
6882         mark_struct_expression, insert_type_address_space): Add "struct
6883         parser_state" argument.
6884         (increase_expout_size): New function.
6885         * utils.c (do_clear_parser_state): New function.
6886         (make_cleanup_clear_parser_state): Likewise.
6887         * utils.h (make_cleanup_clear_parser_state): New function
6888         prototype.
6889         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6890         Update calls to write_exp* in order to pass the parser state.
6891         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6892         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6893         (i386_stap_parse_special_token_three_arg_disp): Likewise.
6894         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6895         * stap-probe.c (stap_parse_register_operand): Likewise.
6896         (stap_parse_single_operand): Likewise.
6897         (stap_parse_argument_1): Likewise.
6898         (stap_parse_argument): Use parser state.
6899         * stap-probe.h: Include "parser-defs.h".
6900         (struct stap_parse_info) <pstate>: New field.
6901         * c-exp.y (parse_type): Rewrite to use parser state.
6902         (yyparse): Redefine to c_parse_internal.
6903         (pstate): New global variable.
6904         (parse_number): Add "struct parser_state" argument.
6905         (write_destructor_name): Likewise.
6906         (type_exp): Update calls to write_exp* and similars in order to
6907         use parser state.
6908         (exp1, exp, variable, qualified_name, space_identifier,
6909         typename, typebase): Likewise.
6910         (write_destructor_name, parse_number, lex_one_token,
6911         classify_name, classify_inner_name, c_parse): Add "struct
6912         parser_state" argument.  Update function to use parser state.
6913         * c-lang.h: Forward declare "struct parser_state".
6914         (c_parse): Add "struct parser_state" argument.
6915         * ada-exp.y (parse_type): Rewrite macro to use parser state.
6916         (yyparse): Redefine macro to ada_parse_internal.
6917         (pstate): New variable.
6918         (write_int, write_object_renaming, write_var_or_type,
6919         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6920         type_int, type_long, type_long_long, type_float, type_double,
6921         type_long_double, type_char, type_boolean, type_system_address):
6922         Add "struct parser_state" argument.
6923         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6924         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6925         var_or_type, aggregate, aggregate_component_list,
6926         positional_list, others, component_group,
6927         component_associations): Update calls to write_exp* and similar
6928         functions in order to use parser state.
6929         (ada_parse, write_var_from_sym, write_int,
6930         write_exp_op_with_string, write_object_renaming,
6931         find_primitive_type, write_selectors, write_ambiguous_var,
6932         write_var_or_type, write_name_assoc, type_int, type_long,
6933         type_long_long, type_float, type_double, type_long_double,
6934         type_char, type_boolean, type_system_address): Add "struct
6935         parser_state" argument.  Adjust function to use parser state.
6936         * ada-lang.c (parse): Likewise.
6937         * ada-lang.h: Forward declare "struct parser_state".
6938         (ada_parse): Add "struct parser_state" argument.
6939         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
6940         calls to both functions.
6941         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6942         parser state.
6943         (yyparse): Redefine macro to f_parse_internal.
6944         (pstate): New variable.
6945         (parse_number): Add "struct parser_state" argument.
6946         (type_exp, exp, subrange, typebase): Update calls to write_exp*
6947         and similars in order to use parser state.
6948         (parse_number): Adjust code to use parser state.
6949         (yylex): Likewise.
6950         (f_parse): New function.
6951         * f-lang.h: Forward declare "struct parser_state".
6952         (f_parse): Add "struct parser_state" argument.
6953         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6954         parser state.
6955         (yyparse): Redefine macro for java_parse_internal.
6956         (pstate): New variable.
6957         (push_expression_name, push_expression_name, insert_exp): Add
6958         "struct parser_state" argument.
6959         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6960         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6961         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6962         PostIncrementExpression, PostDecrementExpression,
6963         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6964         UnaryExpressionNotPlusMinus, CastExpression,
6965         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6966         RelationalExpression, EqualityExpression, AndExpression,
6967         ExclusiveOrExpression, InclusiveOrExpression,
6968         ConditionalAndExpression, ConditionalOrExpression,
6969         ConditionalExpression, Assignment, LeftHandSide): Update
6970         calls to write_exp* and similars in order to use parser state.
6971         (parse_number): Ajust code to use parser state.
6972         (yylex): Likewise.
6973         (java_parse): New function.
6974         (push_variable): Add "struct parser_state" argument.  Adjust
6975         code to user parser state.
6976         (push_fieldnames, push_qualified_expression_name,
6977         push_expression_name, insert_exp): Likewise.
6978         * jv-lang.h: Forward declare "struct parser_state".
6979         (java_parse): Add "struct parser_state" argument.
6980         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6981         parser state.
6982         (yyparse): Redefine macro to m2_parse_internal.
6983         (pstate): New variable.
6984         (type_exp, exp, fblock, variable, type): Update calls to
6985         write_exp* and similars to use parser state.
6986         (yylex): Likewise.
6987         (m2_parse): New function.
6988         * m2-lang.h: Forward declare "struct parser_state".
6989         (m2_parse): Add "struct parser_state" argument.
6990         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6991         * objc-lang.h: Forward declare "struct parser_state".
6992         (end_msglist): Add "struct parser_state" argument.
6993         * p-exp.y (parse_type): Rewrite macro to use parser state.
6994         (yyparse): Redefine macro to pascal_parse_internal.
6995         (pstate): New variable.
6996         (parse_number): Add "struct parser_state" argument.
6997         (type_exp, exp1, exp, qualified_name, variable): Update calls to
6998         write_exp* and similars in order to use parser state.
6999         (parse_number, yylex): Adjust code to use parser state.
7000         (pascal_parse): New function.
7001         * p-lang.h: Forward declare "struct parser_state".
7002         (pascal_parse): Add "struct parser_state" argument.
7003         * go-exp.y (parse_type): Rewrite macro to use parser state.
7004         (yyparse): Redefine macro to go_parse_internal.
7005         (pstate): New variable.
7006         (parse_number): Add "struct parser_state" argument.
7007         (type_exp, exp1, exp, variable, type): Update calls to
7008         write_exp* and similars in order to use parser state.
7009         (parse_number, lex_one_token, classify_name, yylex): Adjust code
7010         to use parser state.
7011         (go_parse): Likewise.
7012         * go-lang.h: Forward declare "struct parser_state".
7013         (go_parse): Add "struct parser_state" argument.
7014
7015 2014-03-27  Doug Evans  <dje@google.com>
7016
7017         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
7018
7019 2014-03-27  Doug Evans  <dje@google.com>
7020
7021         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
7022         Remove argument abbrev_section.  All callers updated.
7023
7024 2014-03-27  Doug Evans  <dje@google.com>
7025
7026         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
7027         addr_base, ranges_base.
7028
7029 2014-03-26  Keith Seitz  <keiths@redhat.com>
7030
7031         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
7032         types, not VAR_DOMAIN.
7033
7034 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
7035
7036         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
7037         "ra" registers.
7038         * features/nios2-linux.c: Regenerated.
7039         * features/nios2.c: Regenerated.
7040
7041 2014-03-25  Pedro Alves  <palves@redhat.com>
7042
7043         * cli/cli-script.c (script_from_file): Force the interpreter to
7044         sync mode.
7045
7046 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
7047
7048         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
7049         small stack allocation.
7050
7051 2014-03-24  Tristan Gingold  <gingold@adacore.com>
7052
7053         * darwin-nat.c (exc_server): Remove unused prototype.
7054         (darwin_dump_message): Correctly display data on x86_64.
7055         (darwin_encode_reply): Fix style.
7056         Add comments and fix indentation.
7057
7058 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
7059
7060         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
7061
7062 2014-03-22  Doug Evans  <xdje42@gmail.com>
7063
7064         * infcmd.c: Whitespace fixes.
7065         (interrupt_command): Merge two function comments into one.
7066
7067 2014-03-22  Doug Evans  <xdje42@gmail.com>
7068
7069         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
7070         All uses updated.
7071
7072 2014-03-22  Yao Qi  <yao@codesourcery.com>
7073
7074         * remote.c (target_read_live_memory): Remove.
7075         (memory_xfer_live_readonly_partial): Rename it to
7076         remote_xfer_live_readonly_partial.  Remove argument 'object'.
7077         All callers updated.  Call remote_read_bytes_1
7078         instead of target_read_live_memory.
7079         * tracepoint.c (set_traceframe_number): Remove.
7080         (make_cleanup_restore_traceframe_number): Likewise .
7081         * tracepoint.h (set_traceframe_number): Remove declaration.
7082         (make_cleanup_restore_traceframe_number): Likewise.
7083
7084 2014-03-22  Yao Qi  <yao@codesourcery.com>
7085
7086         * remote.c (remote_read_bytes): Move code on reading from the
7087         remote stub to ...
7088         (remote_read_bytes_1): ... here.  New function.
7089
7090 2014-03-22  Yao Qi  <yao@codesourcery.com>
7091
7092         * ctf.c (ctf_xfer_partial): Check the return value of
7093         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
7094         return TARGET_XFER_UNAVAILABLE.
7095         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7096         * target.c (target_read_live_memory): Move it to remote.c.
7097         (memory_xfer_live_readonly_partial): Likewise.
7098         (memory_xfer_partial_1): Move some code to remote_read_bytes.
7099         * remote.c (target_read_live_memory): Moved from target.c.
7100         (memory_xfer_live_readonly_partial): Likewise.
7101         (remote_read_bytes): Factored out from
7102         memory_xfer_partial_1.
7103
7104 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
7105
7106         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
7107         NULL pointer.
7108
7109 2014-03-21  Pedro Alves  <palves@redhat.com>
7110
7111         * infrun.c (normal_stop): Extend comment.
7112
7113 2014-03-21  Hui Zhu  <hui@codesourcery.com>
7114             Pedro Alves  <palves@redhat.com>
7115
7116         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
7117         static buffer.
7118         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
7119         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
7120         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
7121
7122 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
7123
7124         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
7125         `z' formatted output modifier.
7126
7127 2014-03-20  Tom Tromey  <tromey@redhat.com>
7128             Sergio Durigan Junior  <sergiodj@redhat.com>
7129
7130         * probe.c (parse_probes): Turn assert into an ordinary error.
7131         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7132         exceptions when parsing probes.  Rearrange the code for clarity.
7133
7134 2014-03-20  Tom Tromey  <tromey@redhat.com>
7135
7136         PR gdb/14135
7137         * top.c (execute_command): Only dispatch events if the command
7138         started the target.
7139
7140 2014-03-20  Tom Tromey  <tromey@redhat.com>
7141
7142         PR cli/15718
7143         * infcall.c: Include event-top.h.
7144         (run_inferior_call): Call async_disable_stdin if needed.
7145
7146 2014-03-20  Pedro Alves  <palves@redhat.com>
7147
7148         * infrun.c (prepare_to_proceed): Delete.
7149         (thread_still_needs_step_over): New function.
7150         (find_thread_needs_step_over): New function.
7151         (proceed): If the current thread needs a step-over, set its
7152         steping_over_breakpoint flag.  Adjust to use
7153         find_thread_needs_step_over instead of prepare_to_proceed.
7154         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7155         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7156         breakpoint.
7157         (switch_back_to_stepped_thread): Step over breakpoints of all
7158         threads not the stepping thread, before switching back to the
7159         stepping thread.
7160
7161 2014-03-20  Pedro Alves  <palves@redhat.com>
7162
7163         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7164         extern.
7165         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7166         * infrun.c (saved_singlestep_ptid)
7167         (stepping_past_singlestep_breakpoint): Delete.
7168         (resume): Remove stepping_past_singlestep_breakpoint handling.
7169         (proceed): Store the prev_pc of the stepping thread too.
7170         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
7171         singlestep_pc.
7172         (enum infwait_states): Delete infwait_thread_hop_state.
7173         (struct execution_control_state) <hit_singlestep_breakpoint>: New
7174         field.
7175         (handle_inferior_event): Adjust.
7176         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7177         handling and the thread-hop code.  Before removing single-step
7178         breakpoints, check whether the thread hit a single-step breakpoint
7179         of another thread.  If it did, the trap is not a random signal.
7180         (switch_back_to_stepped_thread): If the event thread hit a
7181         single-step breakpoint, unblock it before switching to the
7182         stepping thread.  Handle the case of the stepped thread having
7183         advanced already.
7184         (keep_going): Handle the case of the current thread moving past a
7185         single-step breakpoint.
7186
7187 2014-03-20  Pedro Alves  <palves@redhat.com>
7188
7189         PR breakpoints/7143
7190         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7191         are being stepped over.
7192         (breakpoint_address_match): Make extern.
7193         * breakpoint.h (breakpoint_address_match): New declaration.
7194         * inferior.h (stepping_past_instruction_at): New declaration.
7195         * infrun.c (struct step_over_info): New type.
7196         (step_over_info): New global.
7197         (set_step_over_info, clear_step_over_info)
7198         (stepping_past_instruction_at): New functions.
7199         (handle_inferior_event): Clear the step-over info when
7200         trap_expected is cleared.
7201         (resume): Remove now stale comment.
7202         (clear_proceed_status): Clear step-over info.
7203         (proceed): Adjust step-over handling to set or clear the step-over
7204         info instead of removing all breakpoints.
7205         (handle_signal_stop): When setting up a thread-hop, don't remove
7206         breakpoints here.
7207         (stop_stepping): Clear step-over info.
7208         (keep_going): Adjust step-over handling to set or clear step-over
7209         info and then always inserting breakpoints, instead of removing
7210         all breakpoints when stepping over one.
7211
7212 2014-03-20  Pedro Alves  <palves@redhat.com>
7213
7214         * infrun.c (previous_inferior_ptid): Adjust comment.
7215         (deferred_step_ptid): Delete.
7216         (infrun_thread_ptid_changed, prepare_to_proceed)
7217         (init_wait_for_inferior): Adjust.
7218         (handle_signal_stop): Delete deferred_step_ptid handling.
7219
7220 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
7221
7222         PR gdb/15358
7223         * defs.h (sync_quit_force_run): New declaration.
7224         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7225         * event-top.c (async_sigterm_handler): New declaration.
7226         (async_sigterm_token): New variable.
7227         (async_init_signals): Create also async_sigterm_token.
7228         (async_sigterm_handler): New function.
7229         (sync_quit_force_run): New variable.
7230         (handle_sigterm): Replace quit_force call by other calls.
7231         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7232
7233 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
7234
7235         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7236         offset into SPE pseudo registers.
7237
7238 2014-03-18  Pedro Alves  <palves@redhat.com>
7239
7240         PR gdb/13860
7241         * inferior.h (print_stop_event): Declare.
7242         * infrun.c (print_stop_event): New, factored out from ...
7243         (normal_stop): ... this.
7244         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7245         of bpstat_print/print_stack_frame.
7246
7247 2014-03-17  Tom Tromey  <tromey@redhat.com>
7248
7249         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7250
7251 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
7252
7253         * ada-lang.c (decode_constrained_packed_array): Perform a
7254         minimal coercion for reference with coerce_ref instead of
7255         ada_coerce_ref.
7256
7257 2014-03-17  Tristan Gingold  <gingold@adacore.com>
7258
7259         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7260         (darwin_solib_create_inferior_hook): Emit a warning if version
7261         is unhandled.
7262
7263 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
7264
7265         * python/py-value.c (get_field_flag): Cast flag_name argument to
7266         PyObject_GetAttrString to support Python 2.4.
7267
7268 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
7269
7270         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7271         (Global Maintainers): Remove Jan Kratochvil.
7272
7273 2014-03-14  Pedro Alves  <palves@redhat.com>
7274
7275         * inferior.h (terminal_ours_for_output): Rename to ...
7276         (child_terminal_ours_for_output): ... this.
7277         (terminal_save_ours): Rename to ...
7278         (child_terminal_save_ours): ... this.
7279         (terminal_ours): Rename to ...
7280         (child_terminal_ours): ... this.
7281         (terminal_inferior): Rename to ...
7282         (child_terminal_inferior): ... this.
7283         (terminal_init_inferior): Rename to ...
7284         (child_terminal_init_inferior): ... this.
7285         (terminal_init_inferior_with_pgrp): Rename to ...
7286         (child_terminal_init_inferior_with_pgrp): ... this.
7287         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7288         (child_terminal_init_with_pgrp): ... this.
7289         (terminal_save_ours): Rename to ...
7290         (child_terminal_save_ours): ... this.
7291         (terminal_init_inferior): Rename to ...
7292         (child_terminal_init): ... this.  Adjust.
7293         (terminal_inferior): Rename to ...
7294         (child_terminal_inferior): ... this.
7295         (terminal_ours_for_output): Rename to ...
7296         (child_terminal_ours_for_output): ... this.  Adjust.
7297         (terminal_ours): Rename to ...
7298         (child_terminal_ours): ... this.
7299         (terminal_ours_1): Rename to ...
7300         (child_terminal_ours_1): ... this.  Adjust.
7301         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7302         * windows-nat.c (do_initial_windows_stuff): Adjust.
7303         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7304         (gnu_terminal_init): ... this.  Adjust.
7305         (gnu_target): Adjust.
7306         * inf-child.c (inf_child_target): Adjust.
7307
7308 2014-03-13  Doug Evans  <xdje42@gmail.com>
7309
7310         PR guile/16612
7311         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7312         new eq?-hashtab.
7313
7314 2014-03-13  Doug Evans  <xdje42@gmail.com>
7315
7316         * value.c (record_latest_value): Call release_value_or_incref
7317         instead of release_value.
7318
7319 2014-03-13  Pedro Alves  <palves@redhat.com>
7320
7321         * procfs.c (procfs_target): Don't override to_shortname,
7322         to_longname or to_doc.
7323
7324 2014-03-13  Pedro Alves  <palves@redhat.com>
7325
7326         * inf-child.c (inf_child_open, inf_child_target): Don't mention
7327         Unix in user visible strings.
7328
7329 2014-03-12  Stan Shebs  <stan@codesourcery.com>
7330
7331         * gdbtypes.h: Annotate comments for Doxygen, add a page
7332         block comment with some general info.
7333
7334 2014-03-12  Pedro Alves  <palves@redhat.com>
7335
7336         * infcmd.c (prepare_execution_command): New function, factored out
7337         from several execution commands.
7338         (run_command_1, continue_command, step_1, jump_command)
7339         (signal_command, until_command, advance_command, finish_command)
7340         (attach_command): Use prepare_execution_command.
7341
7342 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
7343
7344         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7345         (MAX_BPTS): Define.
7346         (MAX_WPTS): Define.
7347         (struct arm_linux_thread_points): Removed.
7348         (struct arm_linux_process_info): New.
7349         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7350         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7351         (arm_linux_find_breakpoints_by_tid): Removed.
7352         (struct arch_lwp_info): New.
7353         (arm_linux_find_process_pid): New functions.
7354         (arm_linux_add_process): New functions.
7355         (arm_linux_process_info_get): New functions.
7356         (arm_linux_forget_process): New function.
7357         (arm_linux_get_debug_reg_state): New function.
7358         (struct update_registers_data): New.
7359         (update_registers_callback): New function.
7360         (arm_linux_insert_hw_breakpoint1): Updated.
7361         (arm_linux_remove_hw_breakpoint1): Updated.
7362         (arm_linux_insert_hw_breakpoint): Updated.
7363         (arm_linux_remove_hw_breakpoint): Updated.
7364         (arm_linux_insert_watchpoint): Updated.
7365         (arm_linux_remove_watchpoint): Updated.
7366         (arm_linux_new_thread): Updated.
7367         (arm_linux_prepare_to_resume): New function.
7368         (arm_linux_new_fork): New function.
7369         (_initialize_arm_linux_nat): Updated.
7370
7371 2014-03-12  Pedro Alves  <palves@redhat.com>
7372
7373         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7374
7375 2014-03-12  Tom Tromey  <tromey@redhat.com>
7376
7377         * inf-child.c (return_zero): New function.
7378         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7379         * aix-thread.c (aix_thread_inferior_created): New function.
7380         (aix_thread_attach): Remove.
7381         (init_aix_thread_ops): Don't set to_attach.
7382         (_initialize_aix_thread): Register inferior_created observer.
7383         * corelow.c (init_core_ops): Don't set to_attach or
7384         to_create_inferior.
7385         * exec.c (init_exec_ops): Don't set to_attach or
7386         to_create_inferior.
7387         * infcmd.c (run_command_1): Use find_run_target.  Make direct
7388         target calls.
7389         (attach_command): Use find_attach_target.  Make direct target
7390         calls.
7391         * record-btrace.c (init_record_btrace_ops): Don't set
7392         to_create_inferior.
7393         * record-full.c (record_full_can_async_p, record_full_is_async_p):
7394         Remove.
7395         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
7396         set to_create_inferior.
7397         * target.c (complete_target_initialization): Add assertion.
7398         (target_create_inferior): Remove.
7399         (find_default_attach, find_default_create_inferior): Remove.
7400         (find_attach_target, find_run_target): New functions.
7401         (find_default_is_async_p, find_default_can_async_p)
7402         (target_supports_non_stop, target_attach): Remove.
7403         (init_dummy_target): Don't set to_create_inferior or
7404         to_supports_non_stop.
7405         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
7406         TARGET_DEFAULT_FUNC.
7407         <to_create_inferior>: Add comment.
7408         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7409         TARGET_DEFAULT_RETURN.
7410         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7411         (find_attach_target, find_run_target): Declare.
7412         (target_create_inferior): Remove.
7413         (target_has_execution_1): Update comment.
7414         (target_supports_non_stop): Remove.
7415         * target-delegates.c: Rebuild.
7416
7417 2014-03-12  Pedro Alves  <palves@redhat.com>
7418
7419         * inf-child.h: Update comment to not mention Unix.
7420
7421 2014-03-12  Pedro Alves  <palves@redhat.com>
7422
7423         * inf-child.c: Update top comment to not mention Unix.  Add
7424         generic comment describing how this target is meant to be used.
7425         (inf_child_post_attach, inf_child_post_startup_inferior)
7426         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7427         Unix in comment.
7428
7429 2014-03-12  Pedro Alves  <palves@redhat.com>
7430
7431         * nto-procfs.c: Include inf-child.h.
7432         (procfs_ops): Delete global.
7433         (procfs_can_run): Delete method.
7434         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7435         target pointer instead of referencing procfs_ops.
7436         (procfs_prepare_to_store): Delete.
7437         (init_procfs_ops): Delete function.
7438         (procfs_target): New function, based on init_procfs_ops, but
7439         inherit inf_child_target.
7440         (_initialize_procfs): Use procfs_target.
7441
7442 2014-03-12  Pedro Alves  <palves@redhat.com>
7443
7444         * windows-nat.c: Include inf-child.h.
7445         (windows_ops): Delete global.
7446         (windows_open, windows_prepare_to_store, windows_can_run): Delete
7447         methods.
7448         (init_windows_ops): Delete function.
7449         (windows_target): New function, based on init_windows_ops, but
7450         inherit inf_child_target.
7451         (_initialize_windows_nat): Use windows_target.  Install x86
7452         specific target methods here.
7453
7454 2014-03-10  Doug Evans  <xdje42@gmail.com>
7455
7456         * guile/guile.c (call_initialize_gdb_module): New function.
7457         (initialize_guile): Replace call to scm_init_guile with call to
7458         scm_with_guile.
7459
7460 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
7461
7462         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7463         in call to TYPE_CODE macro.
7464
7465 2014-03-10  Jerome Guitton  <guitton@adacore.com>
7466
7467         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7468         Resolve tagged types to full view.
7469
7470 2014-03-10  Hui Zhu  <hui@codesourcery.com>
7471
7472         * target.h (target_insert_breakpoint): Remove "hardware" from its
7473         comments.
7474
7475 2014-03-07  Doug Evans  <dje@google.com>
7476
7477         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7478
7479 2014-03-07  Doug Evans  <dje@google.com>
7480
7481         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7482         Remove unused local comp_dir_attr.  Assert exactly one of
7483         stub_comp_unit_die, stub_comp_dir is non-NULL.
7484
7485 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
7486
7487         * target.h (complete_target_initialization, add_target):
7488         Add comment.
7489
7490 2014-03-07  Pedro Alves  <palves@redhat.com>
7491
7492         * go32-nat.c: Include inf-child.h.
7493         (go32_ops): Delete global.
7494         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7495         Delete methods.
7496         (go32_create_inferior): Push the passed in target pointer instead
7497         of referencing go32_ops.
7498         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
7499         (go32_target): New function, based on init_go32_ops, but inherit
7500         inf_child_target.
7501         (_initialize_go32_nat): Use go32_target.  Move parts of
7502         init_go32_ops here.
7503
7504 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
7505
7506         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7507         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7508         SYMBOL_VALUE_ADDRESS.
7509         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7510
7511 2014-03-06  Yao Qi  <yao@codesourcery.com>
7512
7513         * breakpoint.c (get_tracepoint_by_number): Remove argument
7514         optional_p.  All callers updated.  Adjust comments.  Update
7515         output message.
7516         * breakpoint.h (get_tracepoint_by_number): Update declaration.
7517
7518 2014-03-06  Yao Qi  <yao@codesourcery.com>
7519
7520         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
7521         early if get_number returns zero.  Use 'p' instead of 'args'.
7522
7523 2014-03-06  Yao Qi  <yao@codesourcery.com>
7524
7525         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7526         message.
7527
7528 2014-03-06  Yao Qi  <yao@codesourcery.com>
7529
7530         PR breakpoints/16508
7531         * tracepoint.c (check_trace_running): New function.
7532         (trace_find_command): Move code to check_trace_running and
7533         call check_trace_running.
7534         (trace_find_pc_command): Likewise.
7535         (trace_find_tracepoint_command): Likewise.
7536         (trace_find_line_command): Likewise.
7537         (trace_find_range_command): Likewise.
7538         * tracepoint.h (check_trace_running): Likewise.
7539         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7540
7541 2014-03-06  Yao Qi  <yao@codesourcery.com>
7542
7543         * target.h (struct target_ops) <to_traceframe_info>: Use
7544         TARGET_DEFAULT_NORETURN (tcomplain ()).
7545         * target-delegates.c: Regenerated.
7546
7547 2014-03-05  Pedro Alves  <palves@redhat.com>
7548
7549         PR gdb/16575
7550         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
7551         void.  Update comment.
7552         (dcache_xfer_memory): Delete.
7553         (dcache_read_memory_partial): New, based on the read bits of
7554         dcache_xfer_memory.
7555         (dcache_update): Add status parameter.  Use ULONGEST for len, and
7556         adjust.  Discard cache lines if the reason for the update was
7557         error.
7558         * dcache.h (dcache_xfer_memory): Delete declaration.
7559         (dcache_read_memory_partial): New declaration.
7560         (dcache_update): Update prototype.
7561         * target.c (raw_memory_xfer_partial): Update the dcache here.
7562         (memory_xfer_partial_1): Don't handle dcache writes here.
7563
7564 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
7565
7566         * remote-sim.c (gdbsim_load): Add const to prog.
7567
7568 2014-03-03  Tom Tromey  <tromey@redhat.com>
7569
7570         * elfread.c (probe_key): Change to bfd_data.
7571         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7572         now per-BFD, not per-objfile.
7573         * stap-probe.c (stap_probe_destroy): Update comment.
7574         (handle_stap_probe): Allocate on the per-BFD obstack.
7575
7576 2014-03-03  Tom Tromey  <tromey@redhat.com>
7577
7578         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7579         * breakpoint.c (create_longjmp_master_breakpoint): Use
7580         get_probe_address.
7581         (add_location_to_breakpoint, bkpt_probe_insert_location)
7582         (bkpt_probe_remove_location): Update.
7583         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7584         * elfread.c (elf_symfile_relocate_probe): Remove.
7585         (elf_probe_fns): Update.
7586         (insert_exception_resume_breakpoint): Change type of "probe"
7587         parameter to bound_probe.
7588         (check_exception_resume): Update.
7589         * objfiles.c (objfile_relocate1): Don't relocate probes.
7590         * probe.c (bound_probe_s): New typedef.
7591         (parse_probes): Use get_probe_address.  Set sal's objfile.
7592         (find_probe_by_pc): Return a bound_probe.
7593         (collect_probes): Return a VEC(bound_probe_s).
7594         (compare_probes): Update.
7595         (gen_ui_out_table_header_info): Change type of "probes"
7596         parameter.  Update.
7597         (info_probes_for_ops): Update.
7598         (get_probe_address): New function.
7599         (probe_safe_evaluate_at_pc): Update.
7600         * probe.h (struct probe_ops) <get_probe_address>: New field.
7601         <set_semaphore, clear_semaphore>: Add objfile parameter.
7602         (struct probe) <objfile>: Remove field.
7603         <arch>: New field.
7604         <address>: Update comment.
7605         (struct bound_probe): New.
7606         (find_probe_by_pc): Return a bound_probe.
7607         (get_probe_address): Declare.
7608         * solib-svr4.c (struct probe_and_action) <address>: New field.
7609         (hash_probe_and_action, equal_probe_and_action): Update.
7610         (register_solib_event_probe): Add address parameter.
7611         (solib_event_probe_at): Update.
7612         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
7613         get_probe_address.
7614         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7615         (stap_get_probe_address): New function.
7616         (stap_can_evaluate_probe_arguments, compute_probe_arg)
7617         (compile_probe_arg): Update.
7618         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7619         address.
7620         (handle_stap_probe): Don't relocate the probe.
7621         (stap_relocate): Remove.
7622         (stap_gen_info_probes_table_values): Update.
7623         (stap_probe_ops): Remove stap_relocate.
7624         * symfile-debug.c (debug_sym_relocate_probe): Remove.
7625         (debug_sym_probe_fns): Update.
7626         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7627         * symtab.c (init_sal): Use memset.
7628         * symtab.h (struct symtab_and_line) <objfile>: New field.
7629         * tracepoint.c (start_tracing, stop_tracing): Update.
7630
7631 2014-03-03  Tom Tromey  <tromey@redhat.com>
7632
7633         * probe.h (parse_probes, find_probe_by_pc)
7634         (find_probes_in_objfile): Fix comments.
7635
7636 2014-03-02  Doug Evans  <xdje42@gmail.com>
7637
7638         * infrun.c (handle_signal_stop): Replace test for
7639         TARGET_WAITKIND_STOPPED with an assert.
7640
7641 2014-03-02  Doug Evans  <xdje42@gmail.com>
7642
7643         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7644
7645 2014-03-02  Doug Evans  <xdje42@gmail.com>
7646
7647         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7648
7649 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7650
7651         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7652
7653 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7654
7655         * i386obsd-nat.c: Include "obsd-nat.h".
7656         (_initialize_i386obsd_nat): Call obsd_add_target instead of
7657         add_target.
7658         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7659
7660 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7661
7662         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7663
7664 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7665
7666         * mips64obsd-nat.c: Include "obsd-nath".
7667         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7668         add_target
7669         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7670
7671 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7672
7673         * amd64obsd-nat.c: Include "obsd-nat,h.
7674         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7675         add_target.
7676         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7677
7678 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
7679
7680         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7681         (find_overload_match): Update call to find_oload_champ.
7682         (find_oload_champ_namespace_loop): Likewise
7683
7684 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
7685
7686         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7687
7688         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7689         * config/sparc/obsd64.mh: New file.
7690         * sparc64obsd-nat.c: New file.
7691
7692         * obsd-nat.h: New file.
7693         * obsd-nat.c: New file.
7694         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7695         (ALLDEPFILES): Add obsd-nat.c.
7696
7697 2014-02-28  Tom Tromey  <tromey@redhat.com>
7698
7699         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
7700         * cli-out.h (cli_ui_out_impl): Now const.
7701         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
7702         * ui-out.c (struct ui_out) <impl>: Now const.
7703         (default_ui_out_impl): Now const.
7704         (ui_out_new): Make 'impl' parameter const.
7705         * ui-out.h (ui_out_new): Update.
7706
7707 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7708
7709         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7710
7711 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7712
7713         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7714
7715 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
7716
7717         Additional PR 8882 fix.
7718         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7719
7720 2014-02-27  Pedro Alves  <palves@redhat.com>
7721
7722         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7723         isn't set.
7724
7725 2014-02-27  Pedro Alves  <palves@redhat.com>
7726
7727         PR 12702
7728         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7729         * nat/linux-waitpid.c: Include string.h.
7730         (status_to_str): Moved here and made extern.
7731         * nat/linux-waitpid.h (status_to_str): New declaration.
7732
7733 2014-02-27  Hui Zhu  <hui@codesourcery.com>
7734
7735         PR 12702
7736         * infrun.c (ptid_match): Move ...
7737         * common/ptid.c (ptid_match): ... here.
7738         * inferior.h (ptid_match): Move ...
7739         * common/ptid.h (ptid_match): ... here.
7740
7741 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7742
7743         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7744         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7745         gdb_target_obs.
7746
7747 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7748
7749         * obsd-tdep.c (obsd_auxv_parse): New function.
7750         (obsd_init_abi): Set auxv_parse.
7751
7752         * gdbarch.sh (auxv_parse): New.
7753         * gdbarch.h: Regenerated.
7754         * gdbarch.c: Regenerated.
7755         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7756
7757 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
7758
7759         * guile/scm-value.c (gdbscm_history_append_x): New function.
7760         (value_functions): Add it.
7761
7762 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
7763
7764         * dwarf2read.c (attr_value_as_address): New function.
7765         (dwarf2_find_base_address, read_call_site_scope): Use
7766         attr_value_as_address in place of DW_ADDR.
7767         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7768         the low and high addresses.  Slight rework of the handling
7769         of the high pc being a constant form, and limit it to
7770         DWARF verson 4 or higher.
7771         (dwarf2_record_block_ranges): Likewise.
7772         (read_partial_die): Likewise.
7773         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7774
7775 2014-02-26  Tom Tromey  <tromey@redhat.com>
7776
7777         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7778
7779 2014-02-26  Tom Tromey  <tromey@redhat.com>
7780
7781         * elfread.c (elf_read_minimal_symbols): Return early if
7782         minimal symbols have already been read.  Add "ei" parameter.
7783         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7784         * minsyms.c (prim_record_minimal_symbol_full): Update.
7785         * objfiles.h (struct objstats) <n_minsyms>: Move...
7786         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7787         * symmisc.c (print_objfile_statistics): Update.
7788
7789 2014-02-26  Tom Tromey  <tromey@redhat.com>
7790
7791         * elfread.c (elf_read_minimal_symbols): New function, from
7792         elf_symfile_read.
7793         (elf_symfile_read): Call it.
7794
7795 2014-02-26  Tom Tromey  <tromey@redhat.com>
7796
7797         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7798         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7799         (lookup_minimal_symbol_solib_trampoline)
7800         (lookup_minimal_symbol_by_pc_section_1)
7801         (lookup_minimal_symbol_and_objfile): Update.
7802         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7803         Don't allocate a minimal symbol if minsyms have already been read.
7804         (build_minimal_symbol_hash_tables): Update.
7805         (install_minimal_symbols): Do nothing if minsyms already read.
7806         Use the per-BFD obstack.
7807         (terminate_minimal_symbol_table): Use the per-BFD obstack.
7808         * objfiles.c (allocate_objfile): Call
7809         terminate_minimal_symbol_table later.
7810         (have_minimal_symbols): Update.
7811         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7812         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7813         Move from struct objfile.
7814         <minsyms_read>: New field.
7815         (struct objfile) <msymbols, minimal_symbol_count,
7816         msymbol_hash, msymbol_demangled_hash>: Move.
7817         (ALL_OBJFILE_MSYMBOLS): Update.
7818         * symfile.c (read_symbols): Set minsyms_read.
7819         (reread_symbols): Update.
7820         * symmisc.c (dump_objfile, dump_msymbols): Update.
7821
7822 2014-02-26  Tom Tromey  <tromey@redhat.com>
7823
7824         * minsyms.c (msymbols_sort): Remove.
7825         * minsyms.h (msymbols_sort): Remove.
7826         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7827         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7828         * elfread.c (elf_symtab_read): Don't add section offsets.
7829         * xcoffread.c (record_minimal_symbol): Don't add section offset
7830         to minimal symbol address.
7831         * somread.c (text_offset, data_offset): Remove.
7832         (som_symtab_read): Don't add section offsets to minimal symbol
7833         addresses.
7834         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7835         Don't add section offsets to minimal symbols.
7836         * coffread.c (coff_symtab_read): Don't add section offsets
7837         to minimal symbol addresses.
7838         * machoread.c (macho_symtab_add_minsym): Don't add section offset
7839         to minimal symbol addresses.
7840         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7841         section offset to minimal symbol addresses.
7842         * mdebugread.c (parse_partial_symbols): Don't add section
7843         offset to minimal symbol addresses.
7844         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7845         offset to minimal symbol addresses.
7846
7847 2014-02-26  Tom Tromey  <tromey@redhat.com>
7848
7849         * ada-lang.c (ada_main_name): Update.
7850         (ada_add_standard_exceptions): Update.
7851         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7852         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7853         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7854         * auxv.c (ld_so_xfer_auxv): Update.
7855         * avr-tdep.c (avr_scan_prologue): Update.
7856         * ax-gdb.c (gen_var_ref): Update.
7857         * blockframe.c (get_pc_function_start)
7858         (find_pc_partial_function_gnu_ifunc): Update.
7859         * breakpoint.c (create_overlay_event_breakpoint)
7860         (create_longjmp_master_breakpoint)
7861         (create_std_terminate_master_breakpoint)
7862         (create_exception_master_breakpoint): Update.
7863         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7864         * c-valprint.c (c_val_print): Update.
7865         * coff-pe-read.c (add_pe_forwarded_sym): Update.
7866         * common/agent.c (agent_look_up_symbols): Update.
7867         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7868         * dwarf2loc.c (call_site_to_target_addr): Update.
7869         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7870         * elfread.c (elf_gnu_ifunc_record_cache)
7871         (elf_gnu_ifunc_resolve_by_got): Update.
7872         * findvar.c (default_read_var_value): Update.
7873         * frame.c (inside_main_func): Update.
7874         * frv-tdep.c (frv_frame_this_id): Update.
7875         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7876         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7877         Update.
7878         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7879         (hppa_hpux_find_dummy_bpaddr): Update.
7880         * hppa-tdep.c (hppa_symbol_address): Update.
7881         * infcmd.c (until_next_command): Update.
7882         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7883         Update.
7884         * linespec.c (minsym_found, add_minsym): Update.
7885         * linux-nat.c (get_signo): Update.
7886         * linux-thread-db.c (inferior_has_bug): Update.
7887         * m32c-tdep.c (m32c_return_value)
7888         (m32c_m16c_address_to_pointer): Update.
7889         * m32r-tdep.c (m32r_frame_this_id): Update.
7890         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7891         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7892         * maint.c (maintenance_translate_address): Update.
7893         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7894         (frob_address): New function.
7895         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7896         frob_address.  Rename parameter to "pc_in".
7897         (compare_minimal_symbols, compact_minimal_symbols): Use raw
7898         addresses.
7899         (find_solib_trampoline_target, minimal_symbol_upper_bound):
7900         Update.
7901         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7902         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7903         * objc-lang.c (find_objc_msgsend): Update.
7904         * objfiles.c (objfile_relocate1): Update.
7905         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7906         * p-valprint.c (pascal_val_print): Update.
7907         * parse.c (write_exp_msymbol): Update.
7908         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7909         (ppc_elfv2_skip_entrypoint): Update.
7910         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7911         * printcmd.c (build_address_symbolic, msym_info)
7912         (address_info): Update.
7913         * proc-service.c (ps_pglobal_lookup): Update.
7914         * psymtab.c (find_pc_sect_psymtab_closer)
7915         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7916         Change msymbol parameter to bound_minimal_symbol.
7917         * ravenscar-thread.c (get_running_thread_id): Update.
7918         * remote.c (remote_check_symbols): Update.
7919         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7920         address.
7921         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7922         * solib-dsbt.c (lm_base): Update.
7923         * solib-frv.c (lm_base, main_got): Update.
7924         * solib-irix.c (locate_base): Update.
7925         * solib-som.c (som_solib_create_inferior_hook)
7926         (link_map_start): Update.
7927         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7928         * solib-svr4.c (elf_locate_base, enable_break): Update.
7929         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7930         (flush_ea_cache): Update.
7931         * stabsread.c (define_symbol, scan_file_globals): Update.
7932         * stack.c (find_frame_funname): Update.
7933         * symfile-debug.c (debug_qf_expand_symtabs_matching)
7934         (debug_qf_find_pc_sect_symtab): Update.
7935         * symfile.c (simple_read_overlay_table)
7936         (simple_overlay_update): Update.
7937         * symfile.h (struct quick_symbol_functions)
7938         <find_pc_sect_symtab>: Change type of msymbol to
7939         bound_minimal_symbol.
7940         * symmisc.c (dump_msymbols): Update.
7941         * symtab.c (find_pc_sect_symtab_via_partial)
7942         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7943         (search_symbols, print_msymbol_info): Update.
7944         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7945         (MSYMBOL_VALUE_ADDRESS): Redefine.
7946         (BMSYMBOL_VALUE_ADDRESS): New macro.
7947         * tracepoint.c (scope_info): Update.
7948         * tui/tui-disasm.c (tui_find_disassembly_address)
7949         (tui_get_begin_asm_address): Update.
7950         * valops.c (find_function_in_inferior): Update.
7951         * value.c (value_static_field, value_fn_field): Update.
7952
7953 2014-02-26  Tom Tromey  <tromey@redhat.com>
7954
7955         * ada-lang.c (ada_update_initial_language): Update.
7956         (ada_main_name, ada_has_this_exception_support): Update.
7957         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7958         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7959         * arm-tdep.c (arm_skip_stub): Update.
7960         * auxv.c (ld_so_xfer_auxv): Update.
7961         * avr-tdep.c (avr_scan_prologue): Update.
7962         * ax-gdb.c (gen_var_ref): Update.
7963         * breakpoint.c (struct breakpoint_objfile_data)
7964         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7965         type to bound_minimal_symbol.
7966         (create_overlay_event_breakpoint)
7967         (create_longjmp_master_breakpoint)
7968         (create_std_terminate_master_breakpoint)
7969         (create_exception_master_breakpoint): Update.
7970         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7971         * c-exp.y (classify_name): Update.
7972         * coffread.c (coff_symfile_read): Update.
7973         * common/agent.c (agent_look_up_symbols): Update.
7974         * d-lang.c (d_main_name): Update.
7975         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7976         * dec-thread.c (enable_dec_thread): Update.
7977         * dwarf2loc.c (call_site_to_target_addr): Update.
7978         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7979         * eval.c (evaluate_subexp_standard): Update.
7980         * findvar.c (struct minsym_lookup_data) <result>: Change type
7981         to bound_minimal_symbol.
7982         <objfile>: Remove.
7983         (minsym_lookup_iterator_cb, default_read_var_value): Update.
7984         * frame.c (inside_main_func): Update.
7985         * frv-tdep.c (frv_frame_this_id): Update.
7986         * gcore.c (call_target_sbrk): Update.
7987         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7988         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7989         Update.
7990         * go-lang.c (go_main_name): Update.
7991         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7992         (hppa_hpux_find_import_stub_for_addr): Update.
7993         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7994         Update.  Change return type.
7995         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7996         type.
7997         * jit.c (jit_breakpoint_re_set_internal): Update.
7998         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7999         Update.
8000         * linux-nat.c (get_signo): Update.
8001         * linux-thread-db.c (inferior_has_bug): Update
8002         * m32c-tdep.c (m32c_return_value)
8003         (m32c_m16c_address_to_pointer): Update.
8004         * m32r-tdep.c (m32r_frame_this_id): Update.
8005         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8006         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8007         * minsyms.c (lookup_minimal_symbol_internal): Rename to
8008         lookup_minimal_symbol.  Change return type.
8009         (lookup_minimal_symbol): Remove.
8010         (lookup_bound_minimal_symbol): Update.
8011         (lookup_minimal_symbol_text): Change return type.
8012         (lookup_minimal_symbol_solib_trampoline): Change return type.
8013         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
8014         (lookup_minimal_symbol_solib_trampoline): Change return type.
8015         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8016         * objc-lang.c (lookup_objc_class, lookup_child_selector)
8017         (value_nsstring, find_imps): Update.
8018         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8019         * p-lang.c (pascal_main_name): Update.
8020         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
8021         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8022         * proc-service.c (ps_pglobal_lookup): Update.
8023         * ravenscar-thread.c (get_running_thread_msymbol): Change
8024         return type.
8025         (has_ravenscar_runtime, get_running_thread_id): Update.
8026         * remote.c (remote_check_symbols): Update.
8027         * sol-thread.c (ps_pglobal_lookup): Update.
8028         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8029         * solib-dsbt.c (lm_base): Update.
8030         * solib-frv.c (lm_base, frv_relocate_section_addresses):
8031         Update.
8032         * solib-irix.c (locate_base): Update.
8033         * solib-som.c (som_solib_create_inferior_hook)
8034         (som_solib_desire_dynamic_linker_symbols, link_map_start):
8035         Update.
8036         * solib-spu.c (spu_enable_break): Update.
8037         * solib-svr4.c (elf_locate_base, enable_break): Update.
8038         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
8039         (flush_ea_cache): Update.
8040         * stabsread.c (define_symbol): Update.
8041         * symfile.c (simple_read_overlay_table): Update.
8042         * symtab.c (find_pc_sect_line): Update.
8043         * tracepoint.c (scope_info): Update.
8044         * tui-disasm.c (tui_get_begin_asm_address): Update.
8045         * value.c (value_static_field): Update.
8046
8047 2014-02-26  Tom Tromey  <tromey@redhat.com>
8048
8049         * minsyms.c (prim_record_minimal_symbol_full): Use
8050         SET_MSYMBOL_VALUE_ADDRESS.
8051         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
8052         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
8053         SET_MSYMBOL_VALUE_ADDRESS.
8054         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
8055         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
8056
8057 2014-02-26  Tom Tromey  <tromey@redhat.com>
8058
8059         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
8060         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
8061         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
8062         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
8063         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
8064         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
8065         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
8066         * ada-lang.c (ada_main_name): Update.
8067         (ada_lookup_simple_minsym): Update.
8068         (ada_make_symbol_completion_list): Update.
8069         (ada_add_standard_exceptions): Update.
8070         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
8071         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
8072         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
8073         * arm-tdep.c (skip_prologue_function): Update.
8074         (arm_skip_stack_protector, arm_skip_stub): Update.
8075         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
8076         (arm_wince_skip_main_prologue): Update.
8077         * auxv.c (ld_so_xfer_auxv): Update.
8078         * avr-tdep.c (avr_scan_prologue): Update.
8079         * ax-gdb.c (gen_var_ref): Update.
8080         * block.c (call_site_for_pc): Update.
8081         * blockframe.c (get_pc_function_start): Update.
8082         (find_pc_partial_function_gnu_ifunc): Update.
8083         * breakpoint.c (create_overlay_event_breakpoint): Update.
8084         (create_longjmp_master_breakpoint): Update.
8085         (create_std_terminate_master_breakpoint): Update.
8086         (create_exception_master_breakpoint): Update.
8087         (resolve_sal_pc): Update.
8088         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
8089         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
8090         Update.
8091         * c-valprint.c (c_val_print): Update.
8092         * coff-pe-read.c (add_pe_forwarded_sym): Update.
8093         * coffread.c (coff_symfile_read): Update.
8094         * common/agent.c (agent_look_up_symbols): Update.
8095         * dbxread.c (find_stab_function_addr): Update.
8096         (end_psymtab): Update.
8097         * dwarf2loc.c (call_site_to_target_addr): Update.
8098         (func_verify_no_selftailcall): Update.
8099         (tailcall_dump): Update.
8100         (call_site_find_chain_1): Update.
8101         (dwarf_expr_reg_to_entry_parameter): Update.
8102         * elfread.c (elf_gnu_ifunc_record_cache): Update.
8103         (elf_gnu_ifunc_resolve_by_got): Update.
8104         * f-valprint.c (info_common_command): Update.
8105         * findvar.c (read_var_value): Update.
8106         * frame.c (get_prev_frame_1): Update.
8107         (inside_main_func): Update.
8108         * frv-tdep.c (frv_skip_main_prologue): Update.
8109         (frv_frame_this_id): Update.
8110         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
8111         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
8112         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
8113         (gnuv3_skip_trampoline): Update.
8114         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
8115         (hppa64_hpux_in_solib_call_trampoline): Update.
8116         (hppa_hpux_skip_trampoline_code): Update.
8117         (hppa64_hpux_search_dummy_call_sequence): Update.
8118         (hppa_hpux_find_import_stub_for_addr): Update.
8119         (hppa_hpux_find_dummy_bpaddr): Update.
8120         * hppa-tdep.c (hppa_symbol_address)
8121         (hppa_lookup_stub_minimal_symbol): Update.
8122         * i386-tdep.c (i386_skip_main_prologue): Update.
8123         (i386_pe_skip_trampoline_code): Update.
8124         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
8125         * infcall.c (get_function_name): Update.
8126         * infcmd.c (until_next_command): Update.
8127         * jit.c (jit_breakpoint_re_set_internal): Update.
8128         (jit_inferior_init): Update.
8129         * linespec.c (minsym_found): Update.
8130         (add_minsym): Update.
8131         * linux-fork.c (info_checkpoints_command): Update.
8132         * linux-nat.c (get_signo): Update.
8133         * linux-thread-db.c (inferior_has_bug): Update.
8134         * m32c-tdep.c (m32c_return_value): Update.
8135         (m32c_m16c_address_to_pointer): Update.
8136         (m32c_m16c_pointer_to_address): Update.
8137         * m32r-tdep.c (m32r_frame_this_id): Update.
8138         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8139         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8140         * maint.c (maintenance_translate_address): Update.
8141         * minsyms.c (add_minsym_to_hash_table): Update.
8142         (add_minsym_to_demangled_hash_table): Update.
8143         (msymbol_objfile): Update.
8144         (lookup_minimal_symbol): Update.
8145         (iterate_over_minimal_symbols): Update.
8146         (lookup_minimal_symbol_text): Update.
8147         (lookup_minimal_symbol_by_pc_name): Update.
8148         (lookup_minimal_symbol_solib_trampoline): Update.
8149         (lookup_minimal_symbol_by_pc_section_1): Update.
8150         (lookup_minimal_symbol_and_objfile): Update.
8151         (prim_record_minimal_symbol_full): Update.
8152         (compare_minimal_symbols): Update.
8153         (compact_minimal_symbols): Update.
8154         (build_minimal_symbol_hash_tables): Update.
8155         (install_minimal_symbols): Update.
8156         (terminate_minimal_symbol_table): Update.
8157         (find_solib_trampoline_target): Update.
8158         (minimal_symbol_upper_bound): Update.
8159         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8160         * mips-tdep.c (mips_stub_frame_sniffer): Update.
8161         (mips_skip_pic_trampoline_code): Update.
8162         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8163         * objc-lang.c (selectors_info): Update.
8164         (classes_info): Update.
8165         (find_methods): Update.
8166         (find_imps): Update.
8167         (find_objc_msgsend): Update.
8168         * objfiles.c (objfile_relocate1): Update.
8169         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8170         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8171         * p-valprint.c (pascal_val_print): Update.
8172         * parse.c (write_exp_msymbol): Update.
8173         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8174         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8175         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8176         * printcmd.c (build_address_symbolic): Update.
8177         (sym_info): Update.
8178         (address_info): Update.
8179         * proc-service.c (ps_pglobal_lookup): Update.
8180         * psymtab.c (find_pc_sect_psymtab_closer): Update.
8181         (find_pc_sect_psymtab): Update.
8182         * python/py-framefilter.c (py_print_frame): Update.
8183         * ravenscar-thread.c (get_running_thread_id): Update.
8184         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8185         Update.
8186         * remote.c (remote_check_symbols): Update.
8187         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8188         (rs6000_skip_trampoline_code): Update.
8189         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8190         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8191         * solib-dsbt.c (lm_base): Update.
8192         * solib-frv.c (lm_base): Update.
8193         (main_got): Update.
8194         * solib-irix.c (locate_base): Update.
8195         * solib-som.c (som_solib_create_inferior_hook): Update.
8196         (som_solib_desire_dynamic_linker_symbols): Update.
8197         (link_map_start): Update.
8198         * solib-spu.c (spu_enable_break): Update.
8199         (ocl_enable_break): Update.
8200         * solib-svr4.c (elf_locate_base): Update.
8201         (enable_break): Update.
8202         * spu-tdep.c (spu_get_overlay_table): Update.
8203         (spu_catch_start): Update.
8204         (flush_ea_cache): Update.
8205         * stabsread.c (define_symbol): Update.
8206         (scan_file_globals): Update.
8207         * stack.c (find_frame_funname): Update.
8208         (frame_info): Update.
8209         * symfile.c (simple_read_overlay_table): Update.
8210         (simple_overlay_update): Update.
8211         * symmisc.c (dump_msymbols): Update.
8212         * symtab.c (fixup_section): Update.
8213         (find_pc_sect_line): Update.
8214         (skip_prologue_sal): Update.
8215         (search_symbols): Update.
8216         (print_msymbol_info): Update.
8217         (rbreak_command): Update.
8218         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8219         (completion_list_objc_symbol): Update.
8220         (default_make_symbol_completion_list_break_on): Update.
8221         * tracepoint.c (scope_info): Update.
8222         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8223         (tui_get_begin_asm_address): Update.
8224         * valops.c (find_function_in_inferior): Update.
8225         * value.c (value_static_field): Update.
8226         (value_fn_field): Update.
8227
8228 2014-02-26  Tom Tromey  <tromey@redhat.com>
8229
8230         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8231         bound minimal symbols.  Move code that knows about minsym
8232         table layout...
8233         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
8234         function.
8235         * minsyms.h (minimal_symbol_upper_bound): Declare.
8236         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8237         minimal_symbol_upper_bound.
8238
8239 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8240
8241         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8242         Use the type's name if its basic type does not have a tag.
8243
8244 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8245
8246         * dwarf2read.c (read_subrange_type): Add comment.
8247
8248 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8249
8250         * dwarf2read.c (update_enumeration_type_from_children): New
8251         function, mostly extracted from process_structure_scope.
8252         (read_enumeration_type): Call update_enumeration_type_from_children.
8253         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8254         and flag_flag_enum fields.
8255
8256 2014-02-26  Pedro Alves  <palves@redhat.com>
8257
8258         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8259         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8260         to_xfer_partial method.
8261
8262 2014-02-26  Pedro Alves  <palves@redhat.com>
8263
8264         * target.c (complete_target_initialization): Don't install
8265         default_xfer_partial as to_xfer_partial hook.
8266         (nomemory): Delete.
8267         (update_current_target): Don't INHERIT nor de_fault
8268         deprecated_xfer_memory.  Delete de_fault macro.
8269         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8270         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8271         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8272         field.
8273
8274 2014-02-26  Pedro Alves  <palves@redhat.com>
8275
8276         * go32-nat.c (my_write_child): New function.
8277         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8278         (go32_xfer_partial): New function.
8279         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8280         Instead install a to_xfer_partial hook.
8281
8282 2014-02-26  Pedro Alves  <palves@redhat.com>
8283
8284         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8285         to_xfer_partial helper.  Rewrite.
8286         (procfs_xfer_partial): New function.
8287         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8288         Install a to_xfer_partial hook.
8289
8290 2014-02-26  Pedro Alves  <palves@redhat.com>
8291
8292         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8293         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8294         (m32r_xfer_partial): New function.
8295         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8296         Install a to_xfer_partial hook.
8297
8298 2014-02-26  Pedro Alves  <palves@redhat.com>
8299
8300         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8301         helper.
8302         (mips_xfer_partial): New function.
8303         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8304         hook.  Install a to_xfer_partial hook.
8305
8306 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
8307
8308         * gdbtypes.h (create_array_type_with_stride): Add declaration.
8309         * gdbtypes.c (create_array_type_with_stride): New function,
8310         renaming create_array_type, but with an added parameter
8311         called "bit_stride".
8312         (create_array_type): Re-implement using
8313         create_array_type_with_stride.
8314         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8315         and DW_AT_bit_stride attributes.
8316
8317 2014-02-26  Pedro Alves  <palves@redhat.com>
8318
8319         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8320         task-specific breakpoints.
8321
8322 2014-02-25  Pedro Alves  <palves@redhat.com>
8323
8324         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8325         handling of object == TARGET_OBJECT_UNWIND_TABLE.
8326
8327 2014-02-25  Stan Shebs  <stan@codesourcery.com>
8328
8329         * defs.h: Annotate comments for Doxygen.
8330
8331 2014-02-25  Tom Tromey  <tromey@redhat.com>
8332
8333         * target.h (target_ignore): Don't declare.
8334         * target.c (target_ignore): Remove.
8335
8336 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
8337
8338         PR gdb/16626
8339         * auto-load.c (auto_load_objfile_script_1): Change filename to
8340         debugfile.
8341
8342 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
8343
8344         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8345         documentation.  Adjust prototype to match the target_ops
8346         to_xfer_partial method.  Adjust implementation accordingly.
8347
8348 2014-02-25  Hui Zhu  <hui@codesourcery.com>
8349
8350         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8351         to_traceframe_info.
8352
8353 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
8354
8355         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8356         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8357         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8358         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8359         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8360         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8361         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8362         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8363         New constants.
8364         (rl78_register_type): Use a data pointer type for SP and
8365         new pseudo registers mentioned above.  Use a 16 bit integer
8366         type for all other register pairs.
8367         (rl78_register_name, rl78_g10_register_name): Update for
8368         new pseudo registers.
8369         (rl78_pseudo_register_read): Likewise.
8370         (rl78_pseudo_register_write): Likewise.
8371         (rl78_dwarf_reg_to_regnum): Return register numbers representing
8372         to the newly added pseudo registers.
8373
8374 2014-02-24  Doug Evans  <dje@google.com>
8375
8376         * value.c (record_latest_value): Fix comment.
8377         * printcmd.c (print_command_1): Remove code to handle -1 return from
8378         record_latest_value.
8379
8380 2014-02-24  Pedro Alves  <palves@redhat.com>
8381
8382         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8383         deprecated_xfer_memory hook.
8384         (procfs_xfer_partial): Call procfs_xfer_memory instead
8385         of the deprecated_xfer_memory target hook.
8386         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8387         helper.
8388
8389 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
8390
8391         * windows-nat.c (windows_xfer_shared_libraries): Return
8392         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8393         requested object is TARGET_OBJECT_LIBRARIES.
8394
8395 2014-02-24  Yao Qi  <yao@codesourcery.com>
8396
8397         * target.h (enum target_xfer_status)
8398         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8399         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8400         explicitly.  New.
8401         * corefile.c (memory_error_message): User updated.
8402         * exec.c (section_table_read_available_memory): Likewise.
8403         * record-btrace.c (record_btrace_xfer_partial): Likewise.
8404         * target.c (target_xfer_status_to_string): Likewise.
8405         (raw_memory_xfer_partial): Likewise.
8406         (memory_xfer_partial_1, target_xfer_partial): Likewise.
8407         * valops.c (read_value_memory): Likewise.
8408         * exec.h: Update comments.
8409
8410 2014-02-24  Yao Qi  <yao@codesourcery.com>
8411
8412         * target.c (target_xfer_status_to_string): Rename argument err
8413         to status.
8414         * target.h (target_xfer_status_to_string): Update declaration.
8415         Replace target_xfer_error_to_string with
8416         target_xfer_status_to_string in comment.
8417
8418 2014-02-24  Yao Qi  <yao@codesourcery.com>
8419
8420         * mips-linux-nat.c (super_close): Update its type.
8421         (mips_linux_close): Pass 'self' to super_close.
8422
8423 2014-02-24  Yao Qi  <yao@codesourcery.com>
8424
8425         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8426         * corefile.c (read_memory): Adjusted.
8427         * target.c (target_write_with_progress): Adjusted.
8428
8429 2014-02-23  Yao Qi  <yao@codesourcery.com>
8430
8431         Revert two patches:
8432
8433         2013-10-25  Yao Qi  <yao@codesourcery.com>
8434
8435         * remote.c (remote_traceframe_info): Return early if
8436         traceframe is not selected.
8437
8438         2013-07-19  Yao Qi  <yao@codesourcery.com>
8439
8440         * target.c (update_current_target): Change the default action
8441         of 'to_traceframe_info' from tcomplain to return_zero.
8442         * target.h (struct target_ops) <to_traceframe_info>: Add more
8443         comments.
8444
8445 2014-02-23  Yao Qi  <yao@codesourcery.com>
8446
8447         * valops.c (read_value_memory): Rewrite it.  Call
8448         target_xfer_partial in a loop.
8449         * exec.h (section_table_available_memory): Remove declaration.
8450         Move comments to ...
8451         * exec.c (section_table_available_memory): ... here.  Make it
8452         static.
8453
8454 2014-02-23  Yao Qi  <yao@codesourcery.com>
8455
8456         * exec.c (section_table_read_available_memory): New function.
8457         * exec.h (section_table_read_available_memory): Declare.
8458         * ctf.c (ctf_xfer_partial): Call
8459         section_table_read_available_memory.
8460         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8461
8462 2014-02-23  Yao Qi  <yao@codesourcery.com>
8463
8464         * ctf.c (ctf_xfer_partial): Move code to ...
8465         * exec.c (exec_read_partial_read_only): ... it.  New function.
8466         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8467         * tracefile.c: Include "exec.h".
8468         * exec.h (exec_read_partial_read_only): Declare.
8469
8470 2014-02-23  Yao Qi  <yao@codesourcery.com>
8471
8472         * tracefile-tfile.c (tfile_has_all_memory): Remove.
8473         (tfile_has_memory): Remove.
8474         (init_tfile_ops): Don't set fields to_has_all_memory and
8475         to_has_memory of tfile_ops.
8476         * tracefile.c (tracefile_has_all_memory): New function.
8477         (tracefile_has_memory): New function.
8478         (init_tracefile_ops): Initialize fields to_has_all_memory and
8479         to_has_memory of 'ops'.
8480
8481 2014-02-23  Yao Qi  <yao@codesourcery.com>
8482
8483         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8484         (ctf_thread_alive, ctf_get_trace_status): Remove.
8485         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
8486         init_tracefile_ops.
8487         * tracefile-tfile.c (tfile_get_trace_status): Remove.
8488         (tfile_has_stack, tfile_has_registers): Remove.
8489         (tfile_thread_alive): Remove.
8490         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
8491         init_tracefile_ops.
8492         * tracefile.c (tracefile_has_stack): New function.
8493         (tracefile_has_registers): New function.
8494         (tracefile_thread_alive): New function.
8495         (tracefile_get_trace_status): New function.
8496         (init_tracefile_ops): New function.
8497         * tracefile.h (init_tracefile_ops): Declare.
8498
8499 2014-02-23  Yao Qi  <yao@codesourcery.com>
8500
8501         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8502         (O_LARGEFILE): Likewise.
8503         (tfile_ops): Likewise.
8504         (TRACE_HEADER_SIZE): Likewise.
8505         (trace_fd, trace_frames_offset, cur_offset): Likewise.
8506         (cur_data_size): Likewise.
8507         (tfile_read, tfile_open, tfile_interp_line): Likewise.
8508         (tfile_close, tfile_files_info): Likewise.
8509         (tfile_get_trace_status): Likewise.
8510         (tfile_get_tracepoint_status): Likewise.
8511         (tfile_get_traceframe_address): Likewise.
8512         (tfile_trace_find, match_blocktype): Likewise.
8513         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8514         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8515         (tfile_get_trace_state_variable_value): Likewise.
8516         (tfile_has_all_memory, tfile_has_memory): Likewise.
8517         (tfile_has_stack, tfile_has_registers): Likewise.
8518         (tfile_thread_alive, build_traceframe_info): Likewise.
8519         (tfile_traceframe_info, init_tfile_ops): Likewise.
8520         (_initialize_tracepoint): Don't call init_tfile_ops
8521         and add_target_with_completer.
8522         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8523         exec.h, completer.h and filenames.h.
8524         (_initialize_tracefile_tfile): New function.
8525
8526 2014-02-23  Yao Qi  <yao@codesourcery.com>
8527
8528         * Makefile.in (REMOTE_OBS): Append tracefile.o and
8529         tracefile-tfile.o.
8530         (HFILES_NO_SRCDIR): Add tracefile.h.
8531         * ctf.c: Include "tracefile.h".
8532         * tracefile.h: New file.
8533         * tracefile.c: New file
8534         * tracefile-tfile.c: New file.
8535         * tracepoint.c: Include "tracefile.h".
8536         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8537         (stop_reason_names): Add const.
8538         (trace_file_writer_xfree): Move it to tracefile.c.
8539         (trace_save, trace_save_command, trace_save_tfile): Likewise.
8540         (trace_save_ctf): Likewise.
8541         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8542         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8543         (tfile_write_header, tfile_write_regblock_type): Likewise.
8544         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8545         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8546         (tfile_write_raw_data, tfile_end): Likewise.
8547         (tfile_trace_file_writer_new): Likewise.
8548         (free_uploaded_tp): Make it extern.
8549         (free_uploaded_tsv): Make it extern.
8550         (_initialize_tracepoint): Move code to register command 'tsave'
8551         to tracefile.c.
8552         * tracepoint.h (stop_reason_names): Declare.
8553         (struct trace_frame_write_ops): Move it to tracefile.h.
8554         (struct trace_file_write_ops): Likewise.
8555         (struct trace_file_writer): Likewise.
8556         (free_uploaded_tsvs, free_uploaded_tps): Declare.
8557
8558 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8559
8560         PR gdb/16594
8561         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8562         process name.
8563         (get_cores_used_by_process): New parameter num_cores, use it.
8564         (linux_xfer_osdata_processes): Pass num_cores to it.
8565         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8566         process name.
8567
8568 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
8569
8570         * target.c (memory_xfer_partial): Fix length arg in call to
8571         breakpoint_xfer_memory.
8572
8573 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
8574
8575         PR tdep/16397
8576         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8577         number comes after the + or - signs.  Adjust length of register
8578         name to be extracted.
8579
8580 2014-02-20  Tom Tromey  <tromey@redhat.com>
8581
8582         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8583         (ada_varobj_ops): Mark "extern".
8584
8585 2014-02-20  Tom Tromey  <tromey@redhat.com>
8586
8587         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8588
8589 2014-02-20  Doug Evans  <xdje42@gmail.com>
8590
8591         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8592         All callers updated.
8593         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8594         All callers updated.
8595         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8596         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8597
8598 2014-02-20  lin zuojian  <manjian2006@gmail.com>
8599             Joel Brobecker  <brobecker@adacore.com>
8600             Doug Evans  <xdje42@gmail.com>
8601
8602         PR symtab/16581
8603         * dwarf2read.c (struct die_info): New member in_process.
8604         (reset_die_in_process): New function.
8605         (process_die): Set it at the start, reset when returning.
8606         (inherit_abstract_dies): Only call process_die if origin_child_die
8607         not already being processed.
8608
8609 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8610
8611         * windows-nat.c (handle_unload_dll): Add function documentation.
8612         (do_initial_windows_stuff): Add comment explaining why we wait
8613         until after inferior initialization has finished before
8614         processing all DLLs.
8615
8616 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8617
8618         * windows-nat.c (get_module_name): Delete.
8619         (windows_get_exec_module_filename): New function, mostly
8620         inspired from get_module_name.
8621         (windows_pid_to_exec_file): Replace call to get_module_name
8622         by call to windows_get_exec_module_filename.
8623
8624 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8625
8626         * windows-nat.c (handle_load_dll): Rewrite this function's
8627         introductory comment.  Remove code using get_module_name
8628         to get the DLL's name.
8629
8630 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8631
8632         * windows-nat.c (get_windows_debug_event): Ignore
8633         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8634         if windows_initialization_done == 0.
8635         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8636         Adjust implementation to always load all DLLs.
8637         (do_initial_windows_stuff): Replace call to
8638         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8639
8640 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8641
8642         * windows-nat.c (_initialize_windows_nat): Deprecate the
8643         "dll-symbols" command.  Turn the "add-shared-symbol-files"
8644         and "assf" aliases into commands, and deprecate them as well.
8645         * NEWS: Add entry explaining that "dll-symbols" and its two
8646         aliases are now deprecated.
8647
8648 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8649
8650         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8651         new-line in debug string.  Remove trailing spaces.
8652
8653 2014-02-19  Stan Shebs  <stan@codesourcery.com>
8654
8655         * darwin-nat.c (darwin_xfer_partial): Fix return type.
8656
8657 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
8658
8659         * NEWS: Add entry for the new feature
8660         * python/py-value.c (valpy_binop): Call value_x_binop for struct
8661         and class values.
8662
8663 2014-02-19  Stan Shebs  <stan@codesourcery.com>
8664
8665         * MAINTAINERS: List Yao Qi as nios2 maintainer.
8666
8667 2014-02-19  Pedro Alves  <palves@redhat.com>
8668
8669         * common/ptid.h (struct ptid): Mention that process_stratum
8670         targets should prefer ptid.lwp.
8671
8672 2014-02-19  Pedro Alves  <palves@redhat.com>
8673
8674         * remote.c (remote_thread_alive, write_ptid, read_ptid)
8675         (read_ptid, remote_newthread_step, remote_threads_extra_info)
8676         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8677         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8678         store remote thread ids rather than ptid.tid.
8679         (_initialize_remote): Adjust.
8680
8681 2014-02-19  Tom Tromey  <tromey@redhat.com>
8682
8683         * target.c (target_get_unwinder): Rewrite.
8684         (target_get_tailcall_unwinder): Rewrite.
8685         * record-btrace.c (record_btrace_to_get_unwinder): New function.
8686         (record_btrace_to_get_tailcall_unwinder): New function.
8687         (init_record_btrace_ops): Update.
8688         * target.h (struct target_ops) <to_get_unwinder,
8689         to_get_tailcall_unwinder>: Now function pointers.  Use
8690         TARGET_DEFAULT_RETURN.
8691
8692 2014-02-19  Tom Tromey  <tromey@redhat.com>
8693
8694         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8695         argument.
8696         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8697
8698 2014-02-19  Tom Tromey  <tromey@redhat.com>
8699
8700         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8701         directly.
8702         * target-delegates.c: Rebuild.
8703         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8704         TARGET_DEFAULT_FUNC.
8705         * target.c (default_target_decr_pc_after_break): Rename from
8706         forward_target_decr_pc_after_break.  Simplify.
8707         (target_decr_pc_after_break): Rely on delegation.
8708
8709 2014-02-19  Tom Tromey  <tromey@redhat.com>
8710
8711         * target.c (update_current_target): Do not INHERIT to_doc or
8712         to_magic.  Do not de_fault to_open or to_close.
8713
8714 2014-02-19  Tom Tromey  <tromey@redhat.com>
8715
8716         * gcore.h (objfile_find_memory_regions): Declare.
8717         * gcore.c (objfile_find_memory_regions): No longer static.  Add
8718         "self" argument.
8719         (_initialize_gcore): Don't call exec_set_find_memory_regions.
8720         * exec.c: Include gcore.h.
8721         (exec_set_find_memory_regions): Remove.
8722         (exec_find_memory_regions): Remove.
8723         (exec_do_find_memory_regions): Remove.
8724         (init_exec_ops): Update.
8725         * defs.h (exec_set_find_memory_regions): Remove.
8726
8727 2014-02-19  Tom Tromey  <tromey@redhat.com>
8728
8729         * target-delegates.c: Rebuild.
8730         * target.h (struct target_ops) <to_extra_thread_info,
8731         to_thread_name, to_pid_to_exec_file, to_get_section_table,
8732         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8733         not 0, in TARGET_DEFAULT_RETURN.
8734
8735 2014-02-19  Tom Tromey  <tromey@redhat.com>
8736
8737         * target.c (complete_target_initialization): Remove casts.  Use
8738         return_zero_has_execution.
8739         (return_zero): Add "ignore" argument.
8740         (return_zero_has_execution): New function.
8741         (init_dummy_target): Remove casts.  Use
8742         return_zero_has_execution.
8743
8744 2014-02-19  Tom Tromey  <tromey@redhat.com>
8745
8746         * target.c (update_current_target): Update comments.  Do not
8747         INHERIT to_stratum.
8748
8749 2014-02-19  Tom Tromey  <tromey@redhat.com>
8750
8751         * arm-linux-nat.c (arm_linux_read_description): Delegate when
8752         needed.
8753         * corelow.c (core_read_description): Delegate when needed.
8754         * remote.c (remote_read_description): Delegate when needed.
8755         * target-delegates.c: Rebuild.
8756         * target.c (target_read_description): Rewrite.
8757         * target.h (struct target_ops) <to_read_description>: Update
8758         comment.  Use TARGET_DEFAULT_RETURN.
8759
8760 2014-02-19  Tom Tromey  <tromey@redhat.com>
8761
8762         * target-delegates.c: Rebuild.
8763         * target.c (update_current_target): Don't inherit or default
8764         to_can_run.
8765         (find_default_run_target): Check against delegate_can_run.
8766         * target.h (struct target_ops) <to_can_run>: Use
8767         TARGET_DEFAULT_RETURN.
8768
8769 2014-02-19  Tom Tromey  <tromey@redhat.com>
8770
8771         * target-delegates.c: Rebuild.
8772         * target.c (target_disconnect): Unconditionally delegate.
8773         * target.h (struct target_ops) <to_disconnect>: Use
8774         TARGET_DEFAULT_NORETURN.
8775
8776 2014-02-19  Tom Tromey  <tromey@redhat.com>
8777
8778         * record.c (record_stop): Unconditionally delegate.
8779         * target-delegates.c: Rebuild.
8780         * target.c (target_stop_recording): Unconditionally delegate.
8781         * target.h (struct target_ops) <to_stop_recording>: Use
8782         TARGET_DEFAULT_IGNORE.
8783
8784 2014-02-19  Tom Tromey  <tromey@redhat.com>
8785
8786         * target-delegates.c: Rebuild.
8787         * target.c (target_enable_btrace): Unconditionally delegate.
8788         * target.h (struct target_ops) <to_enable_btrace>: Use
8789         TARGET_DEFAULT_NORETURN.
8790
8791 2014-02-19  Tom Tromey  <tromey@redhat.com>
8792
8793         * target-delegates.c: Rebuild.
8794         * target.c (target_read_btrace): Unconditionally delegate.
8795         * target.h (struct target_ops) <to_read_btrace>: Use
8796         TARGET_DEFAULT_NORETURN.
8797
8798 2014-02-19  Tom Tromey  <tromey@redhat.com>
8799
8800         * target-delegates.c: Rebuild.
8801         * target.c (target_teardown_btrace): Unconditionally delegate.
8802         * target.h (struct target_ops) <to_teardown_btrace>: Use
8803         TARGET_DEFAULT_NORETURN.
8804
8805 2014-02-19  Tom Tromey  <tromey@redhat.com>
8806
8807         * target-delegates.c: Rebuild.
8808         * target.c (target_disable_btrace): Unconditionally delegate.
8809         * target.h (struct target_ops) <to_disable_btrace>: Use
8810         TARGET_DEFAULT_NORETURN.
8811
8812 2014-02-19  Tom Tromey  <tromey@redhat.com>
8813
8814         * target-delegates.c: Rebuild.
8815         * target.c (default_search_memory): New function.
8816         (simple_search_memory): Update comment.
8817         (target_search_memory): Unconditionally delegate.
8818         * target.h (struct target_ops) <to_search_memory>: Use
8819         TARGET_DEFAULT_FUNC.
8820
8821 2014-02-19  Tom Tromey  <tromey@redhat.com>
8822
8823         * auxv.c (default_auxv_parse): No longer static.
8824         (target_auxv_parse): Unconditionally delegate.
8825         * auxv.h (default_auxv_parse): Declare.
8826         * target-delegates.c: Rebuild.
8827         * target.c: Include auxv.h.
8828         * target.h (struct target_ops) <to_auxv_parse>: Use
8829         TARGET_DEFAULT_FUNC.
8830
8831 2014-02-19  Tom Tromey  <tromey@redhat.com>
8832
8833         * target-delegates.c: Rebuild.
8834         * target.c (target_memory_map): Unconditionally delegate.
8835         * target.h (struct target_ops) <to_memory_map>: Use
8836         TARGET_DEFAULT_RETURN.
8837
8838 2014-02-19  Tom Tromey  <tromey@redhat.com>
8839
8840         * target-delegates.c: Rebuild.
8841         * target.c (target_thread_alive): Unconditionally delegate.
8842         * target.h (struct target_ops) <to_thread_alive>: Use
8843         TARGET_DEFAULT_RETURN.
8844
8845 2014-02-19  Tom Tromey  <tromey@redhat.com>
8846
8847         * target-delegates.c: Rebuild.
8848         * target.c (target_save_record): Unconditionally delegate.
8849         * target.h (struct target_ops) <to_save_record>: Use
8850         TARGET_DEFAULT_NORETURN.
8851
8852 2014-02-19  Tom Tromey  <tromey@redhat.com>
8853
8854         * target-delegates.c: Rebuild.
8855         * target.c (target_delete_record): Unconditionally delegate.
8856         * target.h (struct target_ops) <to_delete_record>: Use
8857         TARGET_DEFAULT_NORETURN.
8858
8859 2014-02-19  Tom Tromey  <tromey@redhat.com>
8860
8861         * target-delegates.c: Rebuild.
8862         * target.c (target_record_is_replaying): Unconditionally
8863         delegate.
8864         * target.h (struct target_ops) <to_record_is_replaying>: Use
8865         TARGET_DEFAULT_RETURN.
8866
8867 2014-02-19  Tom Tromey  <tromey@redhat.com>
8868
8869         * target-delegates.c: Rebuild.
8870         * target.c (target_goto_record_begin): Unconditionally delegate.
8871         * target.h (struct target_ops) <to_goto_record_begin>: 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_goto_record_end): Unconditionally delegate.
8878         * target.h (struct target_ops) <to_goto_record_end>: 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_goto_record): Unconditionally delegate.
8885         * target.h (struct target_ops) <to_goto_record>: 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_insn_history): Unconditionally delegate.
8892         * target.h (struct target_ops) <to_insn_history>: 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_insn_history_from): Unconditionally delegate.
8899         * target.h (struct target_ops) <to_insn_history_from>: Use
8900         TARGET_DEFAULT_NORETURN.
8901
8902 2014-02-19  Tom Tromey  <tromey@redhat.com>
8903
8904         * target-delegates.c: Rebuild.
8905         * target.c (target_insn_history_range): Unconditionally delegate.
8906         * target.h (struct target_ops) <to_insn_history_range>: 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_call_history): Unconditionally delegate.
8913         * target.h (struct target_ops) <to_call_history>: 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_call_history_from): Unconditionally delegate.
8920         * target.h (struct target_ops) <to_call_history_from>: Use
8921         TARGET_DEFAULT_NORETURN.
8922
8923 2014-02-19  Tom Tromey  <tromey@redhat.com>
8924
8925         * target-delegates.c: Rebuild.
8926         * target.c (target_call_history_range): Unconditionally delegate.
8927         * target.h (struct target_ops) <to_call_history_range>: Use
8928         TARGET_DEFAULT_NORETURN.
8929
8930 2014-02-19  Tom Tromey  <tromey@redhat.com>
8931
8932         * target-delegates.c: Rebuild.
8933         * target.c (target_verify_memory): Unconditionally delegate.
8934         * target.h (struct target_ops) <to_verify_memory>: Use
8935         TARGET_DEFAULT_NORETURN.
8936
8937 2014-02-19  Tom Tromey  <tromey@redhat.com>
8938
8939         * target-delegates.c: Rebuild.
8940         * target.c (target_core_of_thread): Unconditionally delegate.
8941         * target.h (struct target_ops) <to_core_of_thread>: Use
8942         TARGET_DEFAULT_RETURN.
8943
8944 2014-02-19  Tom Tromey  <tromey@redhat.com>
8945
8946         * target-delegates.c: Rebuild.
8947         * target.c (target_flash_done): Unconditionally delegate.
8948         * target.h (struct target_ops) <to_flash_done>: Use
8949         TARGET_DEFAULT_NORETURN.
8950
8951 2014-02-19  Tom Tromey  <tromey@redhat.com>
8952
8953         * target-delegates.c: Rebuild.
8954         * target.c (target_flash_erase): Unconditionally delegate.
8955         * target.h (struct target_ops) <to_flash_erase>: Use
8956         TARGET_DEFAULT_NORETURN.
8957
8958 2014-02-19  Tom Tromey  <tromey@redhat.com>
8959
8960         * target-delegates.c: Rebuild.
8961         * target.c (target_get_section_table): Unconditionally delegate.
8962         * target.h (struct target_ops) <to_get_section_table>: Use
8963         TARGET_DEFAULT_RETURN.
8964
8965 2014-02-19  Tom Tromey  <tromey@redhat.com>
8966
8967         * target-delegates.c: Rebuild.
8968         * target.c (target_pid_to_str): Unconditionally delegate.
8969         (init_dummy_target): Don't initialize to_pid_to_str.
8970         (default_pid_to_str): Rename from dummy_pid_to_str.
8971         * target.h (struct target_ops) <to_pid_to_str>: Use
8972         TARGET_DEFAULT_FUNC.
8973
8974 2014-02-19  Tom Tromey  <tromey@redhat.com>
8975
8976         * target-delegates.c: Rebuild.
8977         * target.c (target_find_new_threads): Unconditionally delegate.
8978         * target.h (struct target_ops) <to_find_new_threads>: Use
8979         TARGET_DEFAULT_RETURN.
8980
8981 2014-02-19  Tom Tromey  <tromey@redhat.com>
8982
8983         * target-delegates.c: Rebuild.
8984         * target.c (target_program_signals): Unconditionally delegate.
8985         * target.h (struct target_ops) <to_program_signals>: Use
8986         TARGET_DEFAULT_IGNORE.
8987
8988 2014-02-19  Tom Tromey  <tromey@redhat.com>
8989
8990         * target-delegates.c: Rebuild.
8991         * target.c (target_pass_signals): Unconditionally delegate.
8992         * target.h (struct target_ops) <to_pass_signals>: Use
8993         TARGET_DEFAULT_IGNORE.
8994
8995 2014-02-19  Tom Tromey  <tromey@redhat.com>
8996
8997         * target-delegates.c: Rebuild.
8998         * target.c (default_mourn_inferior): New function.
8999         (target_mourn_inferior): Unconditionally delegate.
9000         * target.h (struct target_ops) <to_mourn_inferior>: Use
9001         TARGET_DEFAULT_FUNC.
9002
9003 2014-02-19  Tom Tromey  <tromey@redhat.com>
9004
9005         * target-delegates.c: Rebuild.
9006         * target.c (default_follow_fork): New function.
9007         (target_follow_fork): Unconditionally delegate.
9008         * target.h (struct target_ops) <to_follow_fork>: Use
9009         TARGET_DEFAULT_FUNC.
9010
9011 2014-02-19  Tom Tromey  <tromey@redhat.com>
9012
9013         * target-delegates.c: Rebuild.
9014         * target.c (target_kill): Unconditionally delegate.
9015         * target.h (struct target_ops) <to_kill>: Use
9016         TARGET_DEFAULT_NORETURN.
9017
9018 2014-02-19  Tom Tromey  <tromey@redhat.com>
9019
9020         * target-delegates.c: Rebuild.
9021         * target.c (target_masked_watch_num_registers): Unconditionally
9022         delegate.
9023         * target.h (struct target_ops) <to_masked_watch_num_registers>:
9024         Use TARGET_DEFAULT_RETURN.
9025
9026 2014-02-19  Tom Tromey  <tromey@redhat.com>
9027
9028         * target-delegates.c: Rebuild.
9029         * target.c (target_remove_mask_watchpoint): Unconditionally
9030         delegate.
9031         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
9032         TARGET_DEFAULT_RETURN.
9033
9034 2014-02-19  Tom Tromey  <tromey@redhat.com>
9035
9036         * target-delegates.c: Rebuild.
9037         * target.c (target_insert_mask_watchpoint): Unconditionally
9038         delegate.
9039         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
9040         TARGET_DEFAULT_RETURN.
9041
9042 2014-02-19  Tom Tromey  <tromey@redhat.com>
9043
9044         * target-delegates.c: Rebuild.
9045         * target.c (target_ranged_break_num_registers): Unconditionally
9046         delegate.
9047         * target.h (struct target_ops) <to_ranged_break_num_registers>:
9048         Use TARGET_DEFAULT_RETURN.
9049
9050 2014-02-19  Tom Tromey  <tromey@redhat.com>
9051
9052         * target-delegates.c: Rebuild.
9053         * target.c (target_fetch_registers): Unconditionally delegate.
9054         * target.h (struct target_ops) <to_fetch_registers>: Use
9055         TARGET_DEFAULT_NORETURN.
9056
9057 2014-02-19  Tom Tromey  <tromey@redhat.com>
9058
9059         * target-delegates.c: Rebuild.
9060         * target.c (update_current_target): Don't inherit or default
9061         to_stop.
9062         * target.h (struct target_ops) <to_stop>: Use
9063         TARGET_DEFAULT_IGNORE.
9064
9065 2014-02-19  Tom Tromey  <tromey@redhat.com>
9066
9067         * target-delegates.c: Rebuild.
9068         * target.c (update_current_target): Don't inherit or default
9069         to_can_run_breakpoint_commands.
9070         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9071         Use 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_supports_evaluation_of_breakpoint_conditions.
9078         * target.h (struct target_ops)
9079         <to_supports_evaluation_of_breakpoint_conditions>: Use
9080         TARGET_DEFAULT_RETURN.
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_augmented_libraries_svr4_read.
9087         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
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_can_use_agent.
9095         * target.h (struct target_ops) <to_can_use_agent>: Use
9096         TARGET_DEFAULT_RETURN.
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_use_agent.
9103         * target.h (struct target_ops) <to_use_agent>: 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_traceframe_info.
9111         (return_null): Remove.
9112         * target.h (struct target_ops) <to_traceframe_info>: Use
9113         TARGET_DEFAULT_RETURN.
9114
9115 2014-02-19  Tom Tromey  <tromey@redhat.com>
9116
9117         * target-delegates.c: Rebuild.
9118         * target.c (update_current_target): Don't inherit or default
9119         to_static_tracepoint_markers_by_strid.
9120         * target.h (struct target_ops)
9121         <to_static_tracepoint_markers_by_strid>: Use
9122         TARGET_DEFAULT_NORETURN.
9123
9124 2014-02-19  Tom Tromey  <tromey@redhat.com>
9125
9126         * target-delegates.c: Rebuild.
9127         * target.c (update_current_target): Don't inherit or default
9128         to_static_tracepoint_marker_at.
9129         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9130         Use TARGET_DEFAULT_RETURN.
9131
9132 2014-02-19  Tom Tromey  <tromey@redhat.com>
9133
9134         * target-delegates.c: Rebuild.
9135         * target.c (update_current_target): Don't inherit or default
9136         to_set_permissions.
9137         * target.h (struct target_ops) <to_set_permissions>: Use
9138         TARGET_DEFAULT_IGNORE.
9139
9140 2014-02-19  Tom Tromey  <tromey@redhat.com>
9141
9142         * target-delegates.c: Rebuild.
9143         * target.c (update_current_target): Don't inherit or default
9144         to_get_tib_address.
9145         * target.h (struct target_ops) <to_get_tib_address>: Use
9146         TARGET_DEFAULT_NORETURN.
9147
9148 2014-02-19  Tom Tromey  <tromey@redhat.com>
9149
9150         * target-delegates.c: Rebuild.
9151         * target.c (update_current_target): Don't inherit or default
9152         to_set_trace_notes.
9153         * target.h (struct target_ops) <to_set_trace_notes>: Use
9154         TARGET_DEFAULT_RETURN.
9155
9156 2014-02-19  Tom Tromey  <tromey@redhat.com>
9157
9158         * target-delegates.c: Rebuild.
9159         * target.c (update_current_target): Don't initialize
9160         to_set_trace_buffer_size.
9161         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9162         TARGET_DEFAULT_IGNORE.
9163
9164 2014-02-19  Tom Tromey  <tromey@redhat.com>
9165
9166         * target-delegates.c: Rebuild.
9167         * target.c (update_current_target): Don't inherit or default
9168         to_set_circular_trace_buffer.
9169         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9170         TARGET_DEFAULT_IGNORE.
9171
9172 2014-02-19  Tom Tromey  <tromey@redhat.com>
9173
9174         * target-delegates.c: Rebuild.
9175         * target.c (update_current_target): Don't inherit or default
9176         to_set_disconnected_tracing.
9177         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9178         TARGET_DEFAULT_IGNORE.
9179
9180 2014-02-19  Tom Tromey  <tromey@redhat.com>
9181
9182         * target-delegates.c: Rebuild.
9183         * target.c (update_current_target): Don't inherit or default
9184         to_get_min_fast_tracepoint_insn_len.
9185         (return_minus_one): Remove.
9186         * target.h (struct target_ops)
9187         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9188
9189 2014-02-19  Tom Tromey  <tromey@redhat.com>
9190
9191         * target-delegates.c: Rebuild.
9192         * target.c (update_current_target): Don't inherit or default
9193         to_get_raw_trace_data.
9194         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9195         TARGET_DEFAULT_NORETURN.
9196
9197 2014-02-19  Tom Tromey  <tromey@redhat.com>
9198
9199         * target-delegates.c: Rebuild.
9200         * target.c (update_current_target): Don't inherit or default
9201         to_upload_trace_state_variables.
9202         * target.h (struct target_ops) <to_upload_trace_state_variables>:
9203         Use TARGET_DEFAULT_RETURN.
9204
9205 2014-02-19  Tom Tromey  <tromey@redhat.com>
9206
9207         * target-delegates.c: Rebuild.
9208         * target.c (update_current_target): Don't inherit or default
9209         to_upload_tracepoints.
9210         * target.h (struct target_ops) <to_upload_tracepoints>: Use
9211         TARGET_DEFAULT_RETURN.
9212
9213 2014-02-19  Tom Tromey  <tromey@redhat.com>
9214
9215         * target-delegates.c: Rebuild.
9216         * target.c (update_current_target): Don't inherit or default
9217         to_save_trace_data.
9218         * target.h (struct target_ops) <to_save_trace_data>: Use
9219         TARGET_DEFAULT_NORETURN.
9220
9221 2014-02-19  Tom Tromey  <tromey@redhat.com>
9222
9223         * target-delegates.c: Rebuild.
9224         * target.c (update_current_target): Don't inherit or default
9225         to_get_trace_state_variable_value.
9226         * target.h (struct target_ops)
9227         <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
9228
9229 2014-02-19  Tom Tromey  <tromey@redhat.com>
9230
9231         * target-delegates.c: Rebuild.
9232         * target.c (update_current_target): Don't inherit or default
9233         to_trace_find.
9234         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9235
9236 2014-02-19  Tom Tromey  <tromey@redhat.com>
9237
9238         * target-delegates.c: Rebuild.
9239         * target.c (update_current_target): Don't inherit or default
9240         to_trace_stop.
9241         * target.h (struct target_ops) <to_trace_stop>: Use
9242         TARGET_DEFAULT_NORETURN.
9243
9244 2014-02-19  Tom Tromey  <tromey@redhat.com>
9245
9246         * target-delegates.c: Rebuild.
9247         * target.c (update_current_target): Don't inherit or default
9248         to_get_tracepoint_status.
9249         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9250         TARGET_DEFAULT_NORETURN.
9251
9252 2014-02-19  Tom Tromey  <tromey@redhat.com>
9253
9254         * target-delegates.c: Rebuild.
9255         * target.c (update_current_target): Don't inherit or default
9256         to_get_trace_status.
9257         * target.h (struct target_ops) <to_get_trace_status>: Use
9258         TARGET_DEFAULT_RETURN.
9259
9260 2014-02-19  Tom Tromey  <tromey@redhat.com>
9261
9262         * target-delegates.c: Rebuild.
9263         * target.c (update_current_target): Don't inherit or default
9264         to_trace_start.
9265         * target.h (struct target_ops) <to_trace_start>: Use
9266         TARGET_DEFAULT_NORETURN.
9267
9268 2014-02-19  Tom Tromey  <tromey@redhat.com>
9269
9270         * target-delegates.c: Rebuild.
9271         * target.c (update_current_target): Don't inherit or default
9272         to_trace_set_readonly_regions.
9273         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9274         Use TARGET_DEFAULT_NORETURN.
9275
9276 2014-02-19  Tom Tromey  <tromey@redhat.com>
9277
9278         * target-delegates.c: Rebuild.
9279         * target.c (update_current_target): Don't inherit or default
9280         to_disable_tracepoint.
9281         * target.h (struct target_ops) <to_disable_tracepoint>: Use
9282         TARGET_DEFAULT_NORETURN.
9283
9284 2014-02-19  Tom Tromey  <tromey@redhat.com>
9285
9286         * target-delegates.c: Rebuild.
9287         * target.c (update_current_target): Don't inherit or default
9288         to_enable_tracepoint.
9289         * target.h (struct target_ops) <to_enable_tracepoint>: Use
9290         TARGET_DEFAULT_NORETURN.
9291
9292 2014-02-19  Tom Tromey  <tromey@redhat.com>
9293
9294         * target-delegates.c: Rebuild.
9295         * target.c (update_current_target): Don't inherit or default
9296         to_download_trace_state_variable.
9297         * target.h (struct target_ops) <to_download_trace_state_variable>:
9298         Use TARGET_DEFAULT_NORETURN.
9299
9300 2014-02-19  Tom Tromey  <tromey@redhat.com>
9301
9302         * target-delegates.c: Rebuild.
9303         * target.c (update_current_target): Don't inherit or default
9304         to_can_download_tracepoint.
9305         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9306         TARGET_DEFAULT_RETURN.
9307
9308 2014-02-19  Tom Tromey  <tromey@redhat.com>
9309
9310         * target-delegates.c: Rebuild.
9311         * target.c (update_current_target): Don't inherit or default
9312         to_download_tracepoint.
9313         * target.h (struct target_ops) <to_download_tracepoint>: Use
9314         TARGET_DEFAULT_NORETURN.
9315
9316 2014-02-19  Tom Tromey  <tromey@redhat.com>
9317
9318         * target-delegates.c: Rebuild.
9319         * target.c (update_current_target): Don't inherit or default
9320         to_trace_init.
9321         * target.h (struct target_ops) <to_trace_init>: Use
9322         TARGET_DEFAULT_RETURN.
9323
9324 2014-02-19  Tom Tromey  <tromey@redhat.com>
9325
9326         * target-delegates.c: Rebuild.
9327         * target.c (update_current_target): Don't inherit or default
9328         to_supports_string_tracing.
9329         * target.h (struct target_ops) <to_supports_string_tracing>: Use
9330         TARGET_DEFAULT_RETURN.
9331
9332 2014-02-19  Tom Tromey  <tromey@redhat.com>
9333
9334         * target-delegates.c: Rebuild.
9335         * target.c (update_current_target): Don't inherit or default
9336         to_supports_enable_disable_tracepoint.
9337         * target.h (struct target_ops)
9338         <to_supports_enable_disable_tracepoint>: Use
9339         TARGET_DEFAULT_RETURN.
9340
9341 2014-02-19  Tom Tromey  <tromey@redhat.com>
9342
9343         * target-delegates.c: Rebuild.
9344         * target.c (update_current_target): Don't inherit or default
9345         to_supports_multi_process.
9346         * target.h (struct target_ops) <to_supports_multi_process>: Use
9347         TARGET_DEFAULT_RETURN.
9348
9349 2014-02-19  Tom Tromey  <tromey@redhat.com>
9350
9351         * target-delegates.c: Rebuild.
9352         * target.c (update_current_target): Don't inherit or default
9353         to_get_ada_task_ptid.
9354         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9355         TARGET_DEFAULT_FUNC.
9356
9357 2014-02-19  Tom Tromey  <tromey@redhat.com>
9358
9359         * target-delegates.c: Rebuild.
9360         * target.c (update_current_target): Don't inherit or default
9361         to_thread_architecture.
9362         * target.h (struct target_ops) <to_thread_architecture>: Use
9363         TARGET_DEFAULT_FUNC.
9364
9365 2014-02-19  Tom Tromey  <tromey@redhat.com>
9366
9367         * target-delegates.c: Rebuild.
9368         * target.c (update_current_target): Don't inherit or default
9369         to_execution_direction.
9370         * target.h (struct target_ops) <to_execution_direction>: Use
9371         TARGET_DEFAULT_FUNC.
9372
9373 2014-02-19  Tom Tromey  <tromey@redhat.com>
9374
9375         * target-delegates.c: Rebuild.
9376         * target.c (update_current_target): Don't inherit or default
9377         to_can_execute_reverse.
9378         * target.h (struct target_ops) <to_can_execute_reverse>: Use
9379         TARGET_DEFAULT_RETURN.
9380         (target_can_execute_reverse): Unconditionally delegate.
9381
9382 2014-02-19  Tom Tromey  <tromey@redhat.com>
9383
9384         * target-delegates.c: Rebuild.
9385         * target.c (update_current_target): Don't inherit or default
9386         to_goto_bookmark.
9387         (dummy_goto_bookmark): Remove.
9388         (init_dummy_target): Don't inherit or default to_goto_bookmark.
9389         * target.h (struct target_ops) <to_goto_bookmark>: Use
9390         TARGET_DEFAULT_NORETURN.
9391
9392 2014-02-19  Tom Tromey  <tromey@redhat.com>
9393
9394         * target-delegates.c: Rebuild.
9395         * target.c (update_current_target): Don't inherit or default
9396         to_get_bookmark.
9397         (dummy_get_bookmark): Remove.
9398         (init_dummy_target): Don't inherit or default to_get_bookmark.
9399         * target.h (struct target_ops) <to_get_bookmark>: Use
9400         TARGET_DEFAULT_NORETURN
9401
9402 2014-02-19  Tom Tromey  <tromey@redhat.com>
9403
9404         * target-delegates.c: Rebuild.
9405         * target.c (update_current_target): Don't inherit or default
9406         to_make_corefile_notes.
9407         (init_dummy_target): Don't initialize to_make_corefile_notes.
9408         * target.h (struct target_ops) <to_make_corefile_notes>: Use
9409         TARGET_DEFAULT_FUNC.
9410
9411 2014-02-19  Tom Tromey  <tromey@redhat.com>
9412
9413         * target-delegates.c: Rebuild.
9414         * target.c (update_current_target): Don't inherit or default
9415         to_find_memory_regions.
9416         (init_dummy_target): Don't initialize to_find_memory_regions.
9417         * target.h (struct target_ops) <to_find_memory_regions>: Use
9418         TARGET_DEFAULT_FUNC.
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_log_command.
9425         * target.h (struct target_ops) <to_log_command>: Use
9426         TARGET_DEFAULT_IGNORE.
9427         (target_log_command): Unconditionally delegate.
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_pid_to_exec_file.
9434         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9435         TARGET_DEFAULT_RETURN.
9436
9437 2014-02-19  Tom Tromey  <tromey@redhat.com>
9438
9439         * target-delegates.c: Rebuild.
9440         * target.c (update_current_target): Don't inherit or default
9441         to_thread_name.
9442         (target_thread_name): Unconditionally delegate.
9443         * target.h (struct target_ops) <to_thread_name>: Use
9444         TARGET_DEFAULT_RETURN.
9445
9446 2014-02-19  Tom Tromey  <tromey@redhat.com>
9447
9448         * target-delegates.c: Rebuild.
9449         * target.c (update_current_target): Don't inherit or default
9450         to_extra_thread_info.
9451         * target.h (struct target_ops) <to_extra_thread_info>: Use
9452         TARGET_DEFAULT_RETURN.
9453
9454 2014-02-19  Tom Tromey  <tromey@redhat.com>
9455
9456         * target-delegates.c: Rebuild.
9457         * target.c (update_current_target): Don't inherit or default
9458         to_has_exited.
9459         * target.h (struct target_ops) <to_has_exited>: Use
9460         TARGET_DEFAULT_RETURN..
9461
9462 2014-02-19  Tom Tromey  <tromey@redhat.com>
9463
9464         * target-delegates.c: Rebuild.
9465         * target.c (update_current_target): Don't inherit or default
9466         to_set_syscall_catchpoint.
9467         (return_one): Remove.
9468         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9469         TARGET_DEFAULT_RETURN.
9470
9471 2014-02-19  Tom Tromey  <tromey@redhat.com>
9472
9473         * target-delegates.c: Rebuild.
9474         * target.c (update_current_target): Don't inherit or default
9475         to_insert_exec_catchpoint.
9476         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9477         TARGET_DEFAULT_RETURN.
9478
9479 2014-01-08  Tom Tromey  <tromey@redhat.com>
9480
9481         * target-delegates.c: Rebuild.
9482         * target.c (update_current_target): Don't inherit or default
9483         to_insert_exec_catchpoint.
9484         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9485         TARGET_DEFAULT_RETURN.
9486
9487 2014-02-19  Tom Tromey  <tromey@redhat.com>
9488
9489         * target-delegates.c: Rebuild.
9490         * target.c (update_current_target): Don't inherit or default
9491         to_remove_vfork_catchpoint.
9492         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9493         TARGET_DEFAULT_RETURN.
9494
9495 2014-02-19  Tom Tromey  <tromey@redhat.com>
9496
9497         * target-delegates.c: Rebuild.
9498         * target.c (update_current_target): Don't inherit or default
9499         to_insert_vfork_catchpoint.
9500         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9501         TARGET_DEFAULT_RETURN.
9502
9503 2014-02-19  Tom Tromey  <tromey@redhat.com>
9504
9505         * target-delegates.c: Rebuild.
9506         * target.c (update_current_target): Don't inherit or default
9507         to_remove_fork_catchpoint.
9508         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9509         TARGET_DEFAULT_RETURN.
9510
9511 2014-02-19  Tom Tromey  <tromey@redhat.com>
9512
9513         * target-delegates.c: Rebuild.
9514         * target.c (update_current_target): Don't inherit or default
9515         to_insert_fork_catchpoint.
9516         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9517         TARGET_DEFAULT_RETURN.
9518
9519 2014-02-19  Tom Tromey  <tromey@redhat.com>
9520
9521         * target-delegates.c: Rebuild.
9522         * target.c (update_current_target): Don't inherit or default
9523         to_post_startup_inferior.
9524         * target.h (struct target_ops) <to_post_startup_inferior>: Use
9525         TARGET_DEFAULT_IGNORE.
9526
9527 2014-02-19  Tom Tromey  <tromey@redhat.com>
9528
9529         * target-delegates.c: Rebuild.
9530         * target.c (update_current_target): Don't inherit or default
9531         to_load.
9532         * target.h (struct target_ops) <to_load>: Use
9533         TARGET_DEFAULT_NORETURN.
9534
9535 2014-02-19  Tom Tromey  <tromey@redhat.com>
9536
9537         * target-delegates.c: Rebuild.
9538         * target.c (update_current_target): Don't inherit or default
9539         to_terminal_info.
9540         * target.h (struct target_ops) <to_terminal_info>: Use
9541         TARGET_DEFAULT_FUNC.
9542
9543 2014-02-19  Tom Tromey  <tromey@redhat.com>
9544
9545         * target-delegates.c: Rebuild.
9546         * target.c (update_current_target): Don't inherit or default
9547         to_terminal_save_ours.
9548         * target.h (struct target_ops) <to_terminal_save_ours>: Use
9549         TARGET_DEFAULT_IGNORE.
9550
9551 2014-02-19  Tom Tromey  <tromey@redhat.com>
9552
9553         * target-delegates.c: Rebuild.
9554         * target.c (update_current_target): Don't inherit or default
9555         to_terminal_ours.
9556         * target.h (struct target_ops) <to_terminal_ours>: Use
9557         TARGET_DEFAULT_IGNORE.
9558
9559 2014-02-19  Tom Tromey  <tromey@redhat.com>
9560
9561         * target-delegates.c: Rebuild.
9562         * target.c (update_current_target): Don't inherit or default
9563         to_terminal_ours_for_output.
9564         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9565         TARGET_DEFAULT_IGNORE.
9566
9567 2014-02-19  Tom Tromey  <tromey@redhat.com>
9568
9569         * target-delegates.c: Rebuild.
9570         * target.c (update_current_target): Don't inherit or default
9571         to_terminal_inferior.
9572         * target.h (struct target_ops) <to_terminal_inferior>: Use
9573         TARGET_DEFAULT_IGNORE.
9574
9575 2014-02-19  Tom Tromey  <tromey@redhat.com>
9576
9577         * target-delegates.c: Rebuild.
9578         * target.c (update_current_target): Don't inherit or default
9579         to_terminal_init.
9580         * target.h (struct target_ops) <to_terminal_init>: Use
9581         TARGET_DEFAULT_IGNORE.
9582
9583 2014-02-19  Tom Tromey  <tromey@redhat.com>
9584
9585         * target-delegates.c: Rebuild.
9586         * target.c (update_current_target): Don't inherit or default
9587         to_can_accel_watchpoint_condition.
9588         * target.h (struct target_ops)
9589         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9590
9591 2014-02-19  Tom Tromey  <tromey@redhat.com>
9592
9593         * target-delegates.c: Rebuild.
9594         * target.c (update_current_target): Don't inherit or default
9595         to_region_ok_for_hw_watchpoint.
9596         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9597         Use TARGET_DEFAULT_FUNC.
9598
9599 2014-02-19  Tom Tromey  <tromey@redhat.com>
9600
9601         * target-delegates.c: Rebuild.
9602         * target.c (update_current_target): Don't inherit or default
9603         to_watchpoint_addr_within_range.
9604         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9605         Use TARGET_DEFAULT_FUNC.
9606
9607 2014-02-19  Tom Tromey  <tromey@redhat.com>
9608
9609         * target-delegates.c: Rebuild.
9610         * target.c (update_current_target): Don't inherit or default
9611         to_remove_watchpoint.
9612         * target.h (struct target_ops) <to_remove_watchpoint>: Use
9613         TARGET_DEFAULT_NORETURN.
9614
9615 2014-02-19  Tom Tromey  <tromey@redhat.com>
9616
9617         * target-delegates.c: Rebuild.
9618         * target.c (update_current_target): Don't inherit or default
9619         to_insert_watchpoint.
9620         * target.h (struct target_ops) <to_insert_watchpoint>: Use
9621         TARGET_DEFAULT_RETURN.
9622
9623 2014-02-19  Tom Tromey  <tromey@redhat.com>
9624
9625         * target-delegates.c: Rebuild.
9626         * target.c (update_current_target): Don't inherit or default
9627         to_remove_hw_breakpoint.
9628         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9629         TARGET_DEFAULT_RETURN.
9630
9631 2014-02-19  Tom Tromey  <tromey@redhat.com>
9632
9633         * target-delegates.c: Rebuild.
9634         * target.c (update_current_target): Don't inherit or default
9635         to_insert_hw_breakpoint.
9636         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9637         TARGET_DEFAULT_RETURN.
9638
9639 2014-02-19  Tom Tromey  <tromey@redhat.com>
9640
9641         * target-delegates.c: Rebuild.
9642         * target.c (update_current_target): Don't inherit or default
9643         to_can_use_hw_breakpoint.
9644         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9645         TARGET_DEFAULT_RETURN.
9646
9647 2014-02-19  Tom Tromey  <tromey@redhat.com>
9648
9649         * target-delegates.c: Rebuild.
9650         * target.c (update_current_target): Don't inherit or default
9651         to_files_info.
9652         * target.h (struct target_ops) <to_files_info>: Use
9653         TARGET_DEFAULT_IGNORE.
9654
9655 2014-02-19  Tom Tromey  <tromey@redhat.com>
9656
9657         * target-delegates.c: Rebuild.
9658         * target.c (update_current_target): Don't inherit or default
9659         to_store.
9660         * target.h (struct target_ops) <to_store>: Use
9661         TARGET_DEFAULT_NORETURN.
9662
9663 2014-02-19  Tom Tromey  <tromey@redhat.com>
9664
9665         * target-delegates.c: Rebuild.
9666         * target.c (update_current_target): Don't inherit or default
9667         to_post_attach.
9668         * target.h (struct target_ops) <to_post_attach>: Use
9669         TARGET_DEFAULT_IGNORE.
9670
9671 2014-02-19  Tom Tromey  <tromey@redhat.com>
9672
9673         * target-delegates.c: Rebuild.
9674         * target.c (update_current_target): Don't inherit or default
9675         to_rcmd.
9676         (default_rcmd): New function.
9677         (do_monitor_command): Unconditionally delegate.
9678         * target.h (struct target_ops) <to_rmcd>: Use
9679         TARGET_DEFAULT_FUNC.
9680
9681 2014-02-19  Tom Tromey  <tromey@redhat.com>
9682
9683         * target-delegates.c: Rebuild.
9684         * target.c (init_dummy_target): Don't initialize to_attach.
9685         (target_attach): Unconditionally delegate.
9686         * target.h (struct target_ops) <to_attach>: Use
9687         TARGET_DEFAULT_FUNC.
9688
9689 2014-02-19  Tom Tromey  <tromey@redhat.com>
9690
9691         * target-delegates.c: Rebuild.
9692         * target.c (target_detach): Unconditionally delegate.
9693         (init_dummy_target): Don't initialize to_detach.
9694         * target.h (struct target_ops) <to_detach>: Use
9695         TARGET_DEFAULT_IGNORE.
9696
9697 2014-02-19  Tom Tromey  <tromey@redhat.com>
9698
9699         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9700         Add argument.
9701         (target_augmented_libraries_svr4_read): Add argument.
9702         * target.c (update_current_target): Update.
9703         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9704         argument.
9705
9706 2014-02-19  Tom Tromey  <tromey@redhat.com>
9707
9708         * target.h (struct target_ops) <to_call_history_range>: Add
9709         argument.
9710         * target.c (target_call_history_range): Add argument.
9711         * record-btrace.c (record_btrace_call_history_range): Add 'self'
9712         argument.
9713         (record_btrace_call_history_from): Update.
9714
9715 2014-02-19  Tom Tromey  <tromey@redhat.com>
9716
9717         * target.h (struct target_ops) <to_call_history_from>: Add
9718         argument.
9719         * target.c (target_call_history_from): Add argument.
9720         * record-btrace.c (record_btrace_call_history_from): Add 'self'
9721         argument.
9722
9723 2014-02-19  Tom Tromey  <tromey@redhat.com>
9724
9725         * target.h (struct target_ops) <to_call_history>: Add argument.
9726         * target.c (target_call_history): Add argument.
9727         * record-btrace.c (record_btrace_call_history): Add 'self'
9728         argument.
9729
9730 2014-02-19  Tom Tromey  <tromey@redhat.com>
9731
9732         * target.h (struct target_ops) <to_insn_history_range>: Add
9733         argument.
9734         * target.c (target_insn_history_range): Add argument.
9735         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9736         argument.
9737         (record_btrace_insn_history_from): Update.
9738
9739 2014-02-19  Tom Tromey  <tromey@redhat.com>
9740
9741         * target.h (struct target_ops) <to_insn_history_from>: Add
9742         argument.
9743         * target.c (target_insn_history_from): Add argument.
9744         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9745         argument.
9746
9747 2014-02-19  Tom Tromey  <tromey@redhat.com>
9748
9749         * target.h (struct target_ops) <to_insn_history>: Add argument.
9750         * target.c (target_insn_history): Add argument.
9751         * record-btrace.c (record_btrace_insn_history): Add 'self'
9752         argument.
9753
9754 2014-02-19  Tom Tromey  <tromey@redhat.com>
9755
9756         * target.h (struct target_ops) <to_goto_record>: Add argument.
9757         * target.c (target_goto_record): Add argument.
9758         * record-full.c (record_full_goto): Add 'self' argument.
9759         * record-btrace.c (record_btrace_goto): Add 'self' argument.
9760
9761 2014-02-19  Tom Tromey  <tromey@redhat.com>
9762
9763         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9764         * target.c (target_goto_record_end): Add argument.
9765         * record-full.c (record_full_goto_end): Add 'self' argument.
9766         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9767
9768 2014-02-19  Tom Tromey  <tromey@redhat.com>
9769
9770         * target.h (struct target_ops) <to_goto_record_begin>: Add
9771         argument.
9772         * target.c (target_goto_record_begin): Add argument.
9773         * record-full.c (record_full_goto_begin): Add 'self' argument.
9774         * record-btrace.c (record_btrace_goto_begin): Add 'self'
9775         argument.
9776
9777 2014-02-19  Tom Tromey  <tromey@redhat.com>
9778
9779         * target.h (struct target_ops) <to_record_is_replaying>: Add
9780         argument.
9781         * target.c (target_record_is_replaying): Add argument.
9782         * record-full.c (record_full_is_replaying): Add 'self' argument.
9783         * record-btrace.c (record_btrace_is_replaying): Add 'self'
9784         argument.
9785         (record_btrace_xfer_partial, record_btrace_store_registers)
9786         (record_btrace_prepare_to_store, record_btrace_resume)
9787         (record_btrace_wait, record_btrace_decr_pc_after_break)
9788         (record_btrace_find_new_threads, record_btrace_thread_alive):
9789         Update.
9790
9791 2014-02-19  Tom Tromey  <tromey@redhat.com>
9792
9793         * target.h (struct target_ops) <to_delete_record>: Add argument.
9794         * target.c (target_delete_record): Add argument.
9795         * record-full.c (record_full_delete): Add 'self' argument.
9796
9797 2014-02-19  Tom Tromey  <tromey@redhat.com>
9798
9799         * target.h (struct target_ops) <to_save_record>: Add argument.
9800         * target.c (target_save_record): Add argument.
9801         * record-full.c (record_full_save): Add 'self' argument.
9802         (record_full_save): Add 'self' argument.
9803
9804 2014-02-19  Tom Tromey  <tromey@redhat.com>
9805
9806         * target.h (struct target_ops) <to_info_record>: Add argument.
9807         * target.c (target_info_record): Add argument.
9808         * record.c (info_record_command): Add argument.
9809         * record-full.c (record_full_info): Add 'self' argument.
9810         * record-btrace.c (record_btrace_info): Add 'self' argument.
9811
9812 2014-02-19  Tom Tromey  <tromey@redhat.com>
9813
9814         * target.h (struct target_ops) <to_stop_recording>: Add argument.
9815         * target.c (target_stop_recording): Add argument.
9816         * record.c (record_stop): Add argument.
9817         * record-btrace.c (record_btrace_stop_recording): Add 'self'
9818         argument.
9819
9820 2014-02-19  Tom Tromey  <tromey@redhat.com>
9821
9822         * target.h (struct target_ops) <to_read_btrace>: Add argument.
9823         * target.c (struct target_ops) <to_read_btrace>: Add argument.
9824         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9825         argument.
9826         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9827         (_initialize_amd64_linux_nat): Use it.
9828         * i386-linux-nat.c (i386_linux_read_btrace): New function.
9829         (_initialize_i386_linux_nat): Use it.
9830
9831 2014-02-19  Tom Tromey  <tromey@redhat.com>
9832
9833         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9834         * target.c (target_teardown_btrace): Add argument.
9835         * remote.c (remote_teardown_btrace): Add 'self' argument.
9836         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9837         argument.
9838         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9839         argument.
9840
9841 2014-02-19  Tom Tromey  <tromey@redhat.com>
9842
9843         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9844         * target.c (target_disable_btrace): Add argument.
9845         * remote.c (remote_disable_btrace): Add 'self' argument.
9846         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9847         argument.
9848         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9849         argument.
9850
9851 2014-02-19  Tom Tromey  <tromey@redhat.com>
9852
9853         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9854         * target.c (target_enable_btrace): Add argument.
9855         * remote.c (remote_enable_btrace): Add 'self' argument.
9856         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9857         argument.
9858         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9859         argument.
9860
9861 2014-02-19  Tom Tromey  <tromey@redhat.com>
9862
9863         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9864         (target_can_use_agent): Add argument.
9865         * target.c (update_current_target): Update.
9866         * remote.c (remote_can_use_agent): Add 'self' argument.
9867         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9868
9869 2014-02-19  Tom Tromey  <tromey@redhat.com>
9870
9871         * target.h (struct target_ops) <to_use_agent>: Add argument.
9872         (target_use_agent): Add argument.
9873         * target.c (update_current_target): Update.
9874         * remote.c (remote_use_agent): Add 'self' argument.
9875         * inf-child.c (inf_child_use_agent): Add 'self' argument.
9876
9877 2014-02-19  Tom Tromey  <tromey@redhat.com>
9878
9879         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9880         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9881         (target_traceframe_info): Add argument.
9882         * target.c (update_current_target): Update.
9883         * remote.c (remote_traceframe_info): Add 'self' argument.
9884         * ctf.c (ctf_traceframe_info): Add 'self' argument.
9885
9886 2014-02-19  Tom Tromey  <tromey@redhat.com>
9887
9888         * target.h (target_static_tracepoint_markers_by_strid): Add
9889         argument.
9890         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9891         'self' argument.
9892         * target.c (update_current_target): Update.
9893         * remote.c (struct target_ops)
9894         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9895         * linux-nat.c (struct target_ops)
9896         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9897
9898 2014-02-19  Tom Tromey  <tromey@redhat.com>
9899
9900         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9901         Add argument.
9902         (target_static_tracepoint_marker_at): Add argument.
9903         * target.c (update_current_target): Update.
9904         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9905         argument.
9906
9907 2014-02-19  Tom Tromey  <tromey@redhat.com>
9908
9909         * target.h (struct target_ops) <to_set_permissions>: Add argument.
9910         (target_set_permissions): Add argument.
9911         * target.c (update_current_target): Update.
9912         * remote.c (remote_set_permissions): Add 'self' argument.
9913         (remote_start_remote): Update.
9914
9915 2014-02-19  Tom Tromey  <tromey@redhat.com>
9916
9917         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9918         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9919         (target_get_tib_address): Add argument.
9920         * target.c (update_current_target): Update.
9921         * remote.c (remote_get_tib_address): Add 'self' argument.
9922
9923 2014-02-19  Tom Tromey  <tromey@redhat.com>
9924
9925         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9926         (target_set_trace_notes): Add argument.
9927         * target.c (update_current_target): Update.
9928         * remote.c (remote_set_trace_notes): Add 'self' argument.
9929
9930 2014-02-19  Tom Tromey  <tromey@redhat.com>
9931
9932         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9933         argument.
9934         (target_set_trace_buffer_size): Add argument.
9935         * target.c (update_current_target): Update.
9936         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9937
9938 2014-02-19  Tom Tromey  <tromey@redhat.com>
9939
9940         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9941         argument.
9942         (target_set_circular_trace_buffer): Add argument.
9943         * target.c (update_current_target): Update.
9944         * remote.c (remote_set_circular_trace_buffer): Add 'self'
9945         argument.
9946
9947 2014-02-19  Tom Tromey  <tromey@redhat.com>
9948
9949         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9950         argument.
9951         (target_set_disconnected_tracing): Add argument.
9952         * target.c (update_current_target): Update.
9953         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9954
9955 2014-02-19  Tom Tromey  <tromey@redhat.com>
9956
9957         * target.h (struct target_ops)
9958         <to_get_min_fast_tracepoint_insn_len>: Add argument.
9959         (target_get_min_fast_tracepoint_insn_len): Add argument.
9960         * target.c (update_current_target): Update.
9961         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9962         argument.
9963
9964 2014-02-19  Tom Tromey  <tromey@redhat.com>
9965
9966         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9967         argument.
9968         (target_get_raw_trace_data): Add argument.
9969         * target.c (update_current_target): Update.
9970         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9971
9972 2014-02-19  Tom Tromey  <tromey@redhat.com>
9973
9974         * target.h (struct target_ops) <to_upload_trace_state_variables>:
9975         Add argument.
9976         (target_upload_trace_state_variables): Add argument.
9977         * target.c (update_current_target): Update.
9978         * remote.c (remote_upload_trace_state_variables): Add 'self'
9979         argument.
9980         (remote_start_remote): Update.
9981
9982 2014-02-19  Tom Tromey  <tromey@redhat.com>
9983
9984         * target.h (struct target_ops) <to_upload_tracepoints>: Add
9985         argument.
9986         (target_upload_tracepoints): Add argument.
9987         * target.c (update_current_target): Update.
9988         * remote.c (remote_upload_tracepoints): Add 'self' argument.
9989         (remote_start_remote): Update.
9990
9991 2014-02-19  Tom Tromey  <tromey@redhat.com>
9992
9993         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9994         (target_save_trace_data): Add argument.
9995         * target.c (update_current_target): Update.
9996         * remote.c (remote_save_trace_data): Add 'self' argument.
9997
9998 2014-02-19  Tom Tromey  <tromey@redhat.com>
9999
10000         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
10001         argument.
10002         * target.h (struct target_ops)
10003         <to_get_trace_state_variable_value>: Add argument.
10004         (target_get_trace_state_variable_value): Add argument.
10005         * target.c (update_current_target): Update.
10006         * remote.c (remote_get_trace_state_variable_value): Add 'self'
10007         argument.
10008         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
10009
10010 2014-02-19  Tom Tromey  <tromey@redhat.com>
10011
10012         * tracepoint.c (tfile_trace_find): Add 'self' argument.
10013         * target.h (struct target_ops) <to_trace_find>: Add argument.
10014         (target_trace_find): Add argument.
10015         * target.c (update_current_target): Update.
10016         * remote.c (remote_trace_find): Add 'self' argument.
10017         * ctf.c (ctf_trace_find): Add 'self' argument.
10018
10019 2014-02-19  Tom Tromey  <tromey@redhat.com>
10020
10021         * target.h (struct target_ops) <to_trace_stop>: Add argument.
10022         (target_trace_stop): Add argument.
10023         * target.c (update_current_target): Update.
10024         * remote.c (remote_trace_stop): Add 'self' argument.
10025
10026 2014-02-19  Tom Tromey  <tromey@redhat.com>
10027
10028         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
10029         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
10030         argument.
10031         (target_get_tracepoint_status): Add argument.
10032         * target.c (update_current_target): Update.
10033         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
10034
10035 2014-02-19  Tom Tromey  <tromey@redhat.com>
10036
10037         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
10038         * target.h (struct target_ops) <to_get_trace_status>: Add
10039         argument.
10040         (target_get_trace_status): Add argument.
10041         * target.c (update_current_target): Update.
10042         * remote.c (remote_get_trace_status): Add 'self' argument.
10043         (remote_start_remote, remote_can_download_tracepoint): Update.
10044         * ctf.c (ctf_get_trace_status): Add 'self' argument.
10045
10046 2014-02-19  Tom Tromey  <tromey@redhat.com>
10047
10048         * target.h (struct target_ops) <to_trace_start>: Add argument.
10049         (target_trace_start): Add argument.
10050         * target.c (update_current_target): Update.
10051         * remote.c (remote_trace_start): Add 'self' argument.
10052
10053 2014-02-19  Tom Tromey  <tromey@redhat.com>
10054
10055         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
10056         Add argument.
10057         (target_trace_set_readonly_regions): Add argument.
10058         * target.c (update_current_target): Update.
10059         * remote.c (remote_trace_set_readonly_regions): Add 'self'
10060         argument.
10061
10062 2014-02-19  Tom Tromey  <tromey@redhat.com>
10063
10064         * target.h (struct target_ops) <to_disable_tracepoint>: Add
10065         argument.
10066         (target_disable_tracepoint): Add argument.
10067         * target.c (update_current_target): Update.
10068         * remote.c (remote_disable_tracepoint): Add 'self' argument.
10069
10070 2014-02-19  Tom Tromey  <tromey@redhat.com>
10071
10072         * target.h (struct target_ops) <to_enable_tracepoint>: Add
10073         argument.
10074         (target_enable_tracepoint): Add argument.
10075         * target.c (update_current_target): Update.
10076         * remote.c (remote_enable_tracepoint): Add 'self' argument.
10077
10078 2014-02-19  Tom Tromey  <tromey@redhat.com>
10079
10080         * target.h (struct target_ops) <to_download_trace_state_variable>:
10081         Add argument.
10082         (target_download_trace_state_variable): Add argument.
10083         * target.c (update_current_target): Update.
10084         * remote.c (remote_download_trace_state_variable): Add 'self'
10085         argument.
10086
10087 2014-02-19  Tom Tromey  <tromey@redhat.com>
10088
10089         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
10090         argument.
10091         (target_can_download_tracepoint): Add argument.
10092         * target.c (update_current_target): Update.
10093         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
10094
10095 2014-02-19  Tom Tromey  <tromey@redhat.com>
10096
10097         * target.h (struct target_ops) <to_download_tracepoint>: Add
10098         argument.
10099         (target_download_tracepoint): Add argument.
10100         * target.c (update_current_target): Update.
10101         * remote.c (remote_download_tracepoint): Add 'self' argument.
10102
10103 2014-02-19  Tom Tromey  <tromey@redhat.com>
10104
10105         * target.h (struct target_ops) <to_trace_init>: Add argument.
10106         (target_trace_init): Add argument.
10107         * target.c (update_current_target): Update.
10108         * remote.c (remote_trace_init): Add 'self' argument.
10109
10110 2014-02-19  Tom Tromey  <tromey@redhat.com>
10111
10112         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
10113         * target.c (target_fileio_readlink): Add argument.
10114         * remote.c (remote_hostio_readlink): Add 'self' argument.
10115         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
10116
10117 2014-02-19  Tom Tromey  <tromey@redhat.com>
10118
10119         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
10120         * target.c (target_fileio_unlink): Add argument.
10121         * remote.c (remote_hostio_unlink): Add 'self' argument.
10122         (remote_file_delete): Update.
10123         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
10124
10125 2014-02-19  Tom Tromey  <tromey@redhat.com>
10126
10127         * target.h (struct target_ops) <to_fileio_close>: Add argument.
10128         * target.c (target_fileio_close): Add argument.
10129         * remote.c (remote_hostio_close): Add 'self' argument.
10130         (remote_hostio_close_cleanup): Update.
10131         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10132         Update.
10133         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10134
10135 2014-02-19  Tom Tromey  <tromey@redhat.com>
10136
10137         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10138         * target.c (target_fileio_pread): Add argument.
10139         * remote.c (remote_hostio_pread): Add 'self' argument.
10140         (remote_bfd_iovec_pread, remote_file_get): Update.
10141         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10142
10143 2014-02-19  Tom Tromey  <tromey@redhat.com>
10144
10145         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10146         * target.c (target_fileio_pwrite): Add argument.
10147         * remote.c (remote_hostio_pwrite): Add 'self' argument.
10148         (remote_file_put): Update.
10149         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10150
10151 2014-02-19  Tom Tromey  <tromey@redhat.com>
10152
10153         * target.h (struct target_ops) <to_fileio_open>: Add argument.
10154         * target.c (target_fileio_open): Add argument.
10155         * remote.c (remote_hostio_open): Add 'self' argument.
10156         (remote_bfd_iovec_open): Add 'self' argument.
10157         (remote_file_put): Add 'self' argument.
10158         (remote_file_get): Add 'self' argument.
10159         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10160
10161 2014-02-19  Tom Tromey  <tromey@redhat.com>
10162
10163         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10164         Add argument.
10165         (target_can_run_breakpoint_commands): Add argument.
10166         * target.c (update_current_target): Update.
10167         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10168         argument.
10169         (remote_insert_breakpoint): Add 'self' argument.
10170         (remote_insert_hw_breakpoint): Add 'self' argument.
10171         (remote_can_run_breakpoint_commands): Add 'self' argument.
10172
10173 2014-02-19  Tom Tromey  <tromey@redhat.com>
10174
10175         * target.h (struct target_ops)
10176         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10177         (target_supports_evaluation_of_breakpoint_conditions): Add
10178         argument.
10179         * target.c (update_current_target): Update.
10180         * remote.c (remote_supports_cond_breakpoints): Add 'self'
10181         argument.
10182         (remote_insert_breakpoint): Add 'self' argument.
10183         (remote_insert_hw_breakpoint): Add 'self' argument.
10184         (remote_supports_cond_breakpoints): Add 'self' argument.
10185
10186 2014-02-19  Tom Tromey  <tromey@redhat.com>
10187
10188         * target.h (struct target_ops) <to_supports_string_tracing>: Add
10189         argument.
10190         (target_supports_string_tracing): Add argument.
10191         * target.c (update_current_target): Update.
10192         * remote.c (remote_supports_string_tracing): Add 'self' argument.
10193
10194 2014-02-19  Tom Tromey  <tromey@redhat.com>
10195
10196         * target.h (struct target_ops)
10197         <to_supports_disable_randomization>: Add argument.
10198         * target.c (find_default_supports_disable_randomization): Add
10199         argument.
10200         (target_supports_disable_randomization): Add argument.
10201         (find_default_supports_disable_randomization): Add 'self'
10202         argument.
10203         * remote.c (extended_remote_supports_disable_randomization): Add
10204         'self' argument.
10205         (remote_supports_disable_randomization): Add 'self' argument.
10206         (extended_remote_create_inferior): Update.
10207         * linux-nat.c (linux_nat_supports_disable_randomization): Add
10208         'self' argument.
10209
10210 2014-02-19  Tom Tromey  <tromey@redhat.com>
10211
10212         * target.h (struct target_ops)
10213         <to_supports_enable_disable_tracepoint>: Add argument.
10214         (target_supports_enable_disable_tracepoint): Add argument.
10215         * target.c (update_current_target): Update.
10216         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10217         argument.
10218
10219 2014-02-19  Tom Tromey  <tromey@redhat.com>
10220
10221         * target.h (struct target_ops) <to_supports_multi_process>: Add
10222         argument.
10223         (target_supports_multi_process): Add argument.
10224         * target.c (update_current_target): Update.
10225         * remote.c (remote_supports_multi_process): Add 'self' argument.
10226         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10227         argument.
10228         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10229         argument.
10230
10231 2014-02-19  Tom Tromey  <tromey@redhat.com>
10232
10233         * target.h (struct target_ops) <to_execution_direction>: Add
10234         argument.
10235         (target_execution_direction): Add argument.
10236         * target.c (default_execution_direction): Add 'self' argument.
10237         * record-full.c (record_full_execution_direction): Add 'self'
10238         argument.
10239
10240 2014-02-19  Tom Tromey  <tromey@redhat.com>
10241
10242         * target.h (struct target_ops) <to_can_execute_reverse>: Add
10243         argument.
10244         (target_can_execute_reverse): Add argument.
10245         * remote.c (remote_can_execute_reverse): Add 'self' argument.
10246         * record-full.c (record_full_can_execute_reverse): Add 'self'
10247         argument.
10248         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10249         argument.
10250
10251 2014-02-19  Tom Tromey  <tromey@redhat.com>
10252
10253         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10254         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10255         argument.
10256         (target_get_ada_task_ptid): Add argument.
10257         * target.c (update_current_target): Update.
10258         (default_get_ada_task_ptid): Add 'self' argument.
10259         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10260         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10261         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10262         argument.
10263         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10264         argument.
10265         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10266         argument.
10267         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10268         argument.
10269         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10270         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10271         argument.
10272
10273 2014-02-19  Tom Tromey  <tromey@redhat.com>
10274
10275         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10276         (target_goto_bookmark): Add argument.
10277         * target.c (dummy_goto_bookmark): Add 'self' argument.
10278         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10279
10280 2014-02-19  Tom Tromey  <tromey@redhat.com>
10281
10282         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10283         (target_get_bookmark): Add argument.
10284         * target.c (dummy_get_bookmark): Add 'self' argument.
10285         * record-full.c (record_full_get_bookmark): Add 'self' argument.
10286
10287 2014-02-19  Tom Tromey  <tromey@redhat.com>
10288
10289         * target.h (struct target_ops) <to_make_corefile_notes>: Add
10290         argument.
10291         (target_make_corefile_notes): Add argument.
10292         * target.c (dummy_make_corefile_notes): Add 'self' argument.
10293         * procfs.c (procfs_make_note_section): Add 'self' argument.
10294         (procfs_make_note_section): Add 'self' argument.
10295         (procfs_make_note_section): Add 'self' argument.
10296         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10297         argument.
10298         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10299         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10300         * exec.c (exec_make_note_section): Add 'self' argument.
10301         (exec_make_note_section): Add 'self' argument.
10302
10303 2014-02-19  Tom Tromey  <tromey@redhat.com>
10304
10305         * target.h (struct target_ops) <to_find_memory_regions>: Add
10306         argument.
10307         (target_find_memory_regions): Add argument.
10308         * target.c (dummy_find_memory_regions): Add 'self' argument.
10309         * procfs.c (proc_find_memory_regions): Add 'self' argument.
10310         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10311         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10312         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10313         * exec. (exec_do_find_memory_regions): New global.
10314         (exec_set_find_memory_regions): Rewrite.
10315         (exec_find_memory_regions): New function.
10316         (init_exec_ops): Use exec_find_memory_regions.
10317
10318 2014-02-19  Tom Tromey  <tromey@redhat.com>
10319
10320         * target.h (struct target_ops) <to_supports_non_stop>: Add
10321         argument.
10322         * target.c (find_default_supports_non_stop): Add argument.
10323         (target_supports_non_stop): Add argument.
10324         (find_default_supports_non_stop): Add 'self' argument.
10325         * remote.c (remote_supports_non_stop): Add 'self' argument.
10326         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10327
10328 2014-02-19  Tom Tromey  <tromey@redhat.com>
10329
10330         * target.h (struct target_ops) <to_log_command>: Add argument.
10331         (target_log_command): Add argument.
10332         * serial.h (serial_log_command): Add 'self' argument.
10333         * serial.c (serial_log_command): Add 'self' argument.
10334
10335 2014-02-19  Tom Tromey  <tromey@redhat.com>
10336
10337         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10338         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10339         argument.
10340         (target_pid_to_exec_file): Add argument.
10341         * target.c (debug_to_pid_to_exec_file): Add argument.
10342         (update_current_target): Update.
10343         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10344         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10345         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10346         (linux_handle_extended_wait): Update.
10347         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10348         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10349         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10350         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10351
10352 2014-02-19  Tom Tromey  <tromey@redhat.com>
10353
10354         * target.h (struct target_ops) <to_rcmd>: Add argument.
10355         (target_rcmd): Add argument.
10356         * target.c (debug_to_rcmd): Add argument.
10357         (update_current_target, do_monitor_command): Update.
10358         * remote.c (remote_rcmd): Add 'self' argument.
10359         * monitor.c (monitor_rcmd): Add 'self' argument.
10360
10361 2014-02-19  Tom Tromey  <tromey@redhat.com>
10362
10363         * windows-nat.c (windows_stop): Add 'self' argument.
10364         * target.h (struct target_ops) <to_stop>: Add argument.
10365         * target.c (target_stop): Add argument.
10366         (debug_to_stop): Add argument.
10367         (update_current_target): Update.
10368         * remote.c (remote_stop): Add 'self' argument.
10369         * remote-sim.c (gdbsim_stop): Add 'self' argument.
10370         (gdbsim_cntrl_c): Update.
10371         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10372         * procfs.c (procfs_stop): Add 'self' argument.
10373         * nto-procfs.c (procfs_stop): Add 'self' argument.
10374         * monitor.c (monitor_stop): Add 'self' argument.
10375         (monitor_open): Update.
10376         * linux-nat.c (linux_nat_stop): Add argument.
10377         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10378         * gnu-nat.c (gnu_stop): Add 'self' argument.
10379         * darwin-nat.c (darwin_stop): Add 'self' argument.
10380
10381 2014-02-19  Tom Tromey  <tromey@redhat.com>
10382
10383         * target.h (struct target_ops) <to_thread_name>: Add argument.
10384         * target.c (target_thread_name): Add argument.
10385         (update_current_target): Update.
10386         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10387
10388 2014-02-19  Tom Tromey  <tromey@redhat.com>
10389
10390         * target.h (struct target_ops) <to_extra_thread_info>: Add
10391         argument.
10392         (target_extra_thread_info): Add argument.
10393         * target.c (update_current_target): Update.
10394         * remote.c (remote_threads_extra_info): Add 'self' argument.
10395         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10396         argument.
10397         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10398         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10399         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10400         argument.
10401         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10402         argument.
10403         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10404         argument.
10405         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10406         argument.
10407
10408 2014-02-19  Tom Tromey  <tromey@redhat.com>
10409
10410         * target.h (struct target_ops) <to_program_signals>: Add argument.
10411         * target.c (target_program_signals): Add argument.
10412         * remote.c (remote_program_signals): Add 'self' argument.
10413
10414 2014-02-19  Tom Tromey  <tromey@redhat.com>
10415
10416         * target.h (struct target_ops) <to_pass_signals>: Add argument.
10417         * target.c (target_pass_signals): Add argument.
10418         * remote.c (remote_pass_signals): Add 'self' argument.
10419         (remote_start_remote): Update.
10420         * procfs.c (procfs_pass_signals): Add 'self' argument.
10421         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10422         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10423         (linux_nat_create_inferior, linux_nat_attach): Update.
10424
10425 2014-02-19  Tom Tromey  <tromey@redhat.com>
10426
10427         * windows-nat.c (windows_can_run): Add 'self' argument.
10428         * target.h (struct target_ops) <to_can_run>: Add argument.
10429         (target_can_run): Add argument.
10430         * target.c (debug_to_can_run): Add argument.
10431         (update_current_target): Update.
10432         * nto-procfs.c (procfs_can_run): Add 'self' argument.
10433         * inf-child.c (inf_child_can_run): Add 'self' argument.
10434         * go32-nat.c (go32_can_run): Add 'self' argument.
10435
10436 2014-02-19  Tom Tromey  <tromey@redhat.com>
10437
10438         * target.h (struct target_ops) <to_has_exited>: Add argument.
10439         (target_has_exited): Add argument.
10440         * target.c (debug_to_has_exited): Add argument.
10441         (update_current_target): Update.
10442
10443 2014-02-19  Tom Tromey  <tromey@redhat.com>
10444
10445         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10446         argument.
10447         (target_set_syscall_catchpoint): Add argument.
10448         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10449         argument.
10450         * target.c (update_current_target): Update.
10451
10452 2014-02-19  Tom Tromey  <tromey@redhat.com>
10453
10454         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10455         argument.
10456         (target_remove_exec_catchpoint): Add argument.
10457         * target.c (debug_to_remove_exec_catchpoint): Add argument.
10458         (update_current_target): Update.
10459         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10460         argument.
10461
10462 2014-02-19  Tom Tromey  <tromey@redhat.com>
10463
10464         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10465         argument.
10466         (target_insert_exec_catchpoint): Add argument.
10467         * target.c (debug_to_insert_exec_catchpoint): Add argument.
10468         (update_current_target): Update.
10469         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10470         argument.
10471
10472 2014-02-19  Tom Tromey  <tromey@redhat.com>
10473
10474         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10475         argument.
10476         (target_remove_vfork_catchpoint): Add argument.
10477         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10478         (update_current_target): Update.
10479         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10480         argument.
10481
10482 2014-02-19  Tom Tromey  <tromey@redhat.com>
10483
10484         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10485         argument.
10486         (target_insert_vfork_catchpoint): Add argument.
10487         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10488         (update_current_target): Update.
10489         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10490         argument.
10491
10492 2014-02-19  Tom Tromey  <tromey@redhat.com>
10493
10494         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10495         argument.
10496         (target_remove_fork_catchpoint): Add argument.
10497         * target.c (debug_to_remove_fork_catchpoint): Add argument.
10498         (update_current_target): Update.
10499         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10500         argument.
10501
10502 2014-02-19  Tom Tromey  <tromey@redhat.com>
10503
10504         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10505         argument.
10506         (target_insert_fork_catchpoint): Add argument.
10507         * target.c (debug_to_insert_fork_catchpoint): Add argument.
10508         (update_current_target): Update.
10509         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10510         argument.
10511
10512 2014-02-19  Tom Tromey  <tromey@redhat.com>
10513
10514         * target.h (struct target_ops) <to_post_startup_inferior>: Add
10515         argument.
10516         (target_post_startup_inferior): Add argument.
10517         * target.c (debug_to_post_startup_inferior): Add argument.
10518         (update_current_target): Update.
10519         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10520         argument.
10521         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10522         argument.
10523         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10524         argument.
10525         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10526         argument.
10527         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10528         'self' argument.
10529         (super_post_startup_inferior): Likewise.
10530         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10531         'self' argument.
10532         (super_post_startup_inferior): Likewise.
10533         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10534         Add 'self' argument.
10535         (super_post_startup_inferior): Likewise.
10536
10537 2014-02-19  Tom Tromey  <tromey@redhat.com>
10538
10539         * target.h (struct target_ops) <to_load>: Add argument.
10540         * target.c (target_load): Add argument.
10541         (debug_to_load): Add argument.
10542         (update_current_target): Update.
10543         * remote.c (remote_load): Add 'self' argument.
10544         * remote-sim.c (gdbsim_load): Add 'self' argument.
10545         * remote-mips.c (mips_load): Add 'self' argument.
10546         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10547         * monitor.c (monitor_load): Add 'self' argument.
10548         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10549
10550 2014-02-19  Tom Tromey  <tromey@redhat.com>
10551
10552         * target.h (struct target_ops) <to_terminal_info>: Add argument.
10553         (target_terminal_info): Add argument.
10554         * target.c (debug_to_terminal_info): Add argument.
10555         (default_terminal_info): Likewise.
10556         * inflow.c (child_terminal_info): Add 'self' argument.
10557         * inferior.h (child_terminal_info): Add 'self' argument.
10558         * go32-nat.c (go32_terminal_info): Add 'self' argument.
10559
10560 2014-02-19  Tom Tromey  <tromey@redhat.com>
10561
10562         * target.h (struct target_ops) <to_terminal_save_ours>: Add
10563         argument.
10564         (target_terminal_save_ours): Add argument.
10565         * target.c (debug_to_terminal_save_ours): Add argument.
10566         (update_current_target): Update.
10567         * inflow.c (terminal_save_ours): Add 'self' argument.
10568         * inferior.h (terminal_save_ours): Add 'self' argument.
10569
10570 2014-02-19  Tom Tromey  <tromey@redhat.com>
10571
10572         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10573         (target_terminal_ours): Add argument.
10574         * target.c (debug_to_terminal_ours): Add argument.
10575         (update_current_target): Update.
10576         * remote.c (remote_terminal_ours): Add 'self' argument.
10577         (remote_close): Update.
10578         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10579         * inflow.c (terminal_ours): Add 'self' argument.
10580         * inferior.h (terminal_ours): Add 'self' argument.
10581         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10582
10583 2014-02-19  Pedro Alves  <palves@redhat.com>
10584             Tom Tromey  <tromey@redhat.com>
10585
10586         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10587         argument.
10588         (target_terminal_ours_for_output): Add argument.
10589         * target.c (debug_to_terminal_ours_for_output): Add argument.
10590         (update_current_target): Update.
10591         * inflow.c (terminal_ours_for_output): Add 'self' argument.
10592         * inferior.h (terminal_ours_for_output): Add 'self' argument.
10593         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10594
10595 2014-02-19  Tom Tromey  <tromey@redhat.com>
10596
10597         * target.h (struct target_ops) <to_terminal_inferior>: Add
10598         argument.
10599         * target.c (target_terminal_inferior): Add argument.
10600         (update_current_target): Update.
10601         * remote.c (remote_terminal_inferior): Add 'self' argument.
10602         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10603         * inflow.c (terminal_inferior): Add 'self' argument.
10604         * inferior.h (terminal_inferior): Add 'self' argument.
10605         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10606         (go32_terminal_inferior): Add 'self' argument.
10607
10608 2014-02-19  Tom Tromey  <tromey@redhat.com>
10609
10610         * target.h (struct target_ops) <to_terminal_init>: Add argument.
10611         (target_terminal_init): Add argument.
10612         * target.c (debug_to_terminal_init): Add argument.
10613         (update_current_target): Update.
10614         * inflow.c (terminal_init_inferior): Add 'self' argument.
10615         * inferior.h (terminal_init_inferior): Add 'self' argument.
10616         * go32-nat.c (go32_terminal_init): Add 'self' argument.
10617         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10618
10619 2014-02-19  Tom Tromey  <tromey@redhat.com>
10620
10621         * target.h (struct target_ops)
10622         <to_can_accel_watchpoint_condition>: Add argument.
10623         (target_can_accel_watchpoint_condition): Add argument.
10624         * target.c (debug_to_can_accel_watchpoint_condition): Add
10625         argument.
10626         (update_current_target): Update.
10627         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10628         'self' argument.
10629
10630 2014-02-19  Tom Tromey  <tromey@redhat.com>
10631
10632         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10633         Add argument.
10634         (target_region_ok_for_hw_watchpoint): Add argument.
10635         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10636         (default_region_ok_for_hw_watchpoint): Add argument.
10637         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10638         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10639         argument.
10640         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10641         argument.
10642         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10643         argument.
10644         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10645         'self' argument.
10646         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10647         'self' argument.
10648         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10649         'self' argument.
10650         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10651         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10652         'self' argument.
10653         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10654         Add 'self' argument.
10655
10656 2014-02-19  Tom Tromey  <tromey@redhat.com>
10657
10658         * target.h (struct target_ops) <to_insert_watchpoint>: Add
10659         argument.
10660         (target_insert_watchpoint): Add argument.
10661         * target.c (debug_to_insert_watchpoint): Add argument.
10662         (update_current_target): Update.
10663         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10664         * remote.c (remote_insert_watchpoint): Add 'self' argument.
10665         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10666         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10667         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10668         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10669         argument.
10670         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10671         (procfs_insert_hw_watchpoint): Add 'self' argument.
10672         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10673         argument.
10674         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10675         argument.
10676         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10677         argument.
10678         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10679         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10680         argument.
10681         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10682         'self' argument.
10683
10684 2014-02-19  Tom Tromey  <tromey@redhat.com>
10685
10686         * target.h (struct target_ops) <to_remove_watchpoint>: Add
10687         argument.
10688         (target_remove_watchpoint): Add argument.
10689         * target.c (debug_to_remove_watchpoint): Add argument.
10690         (update_current_target): Update.
10691         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10692         * remote.c (remote_remove_watchpoint): Add 'self' argument.
10693         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10694         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10695         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10696         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10697         argument.
10698         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10699         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10700         argument.
10701         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10702         argument.
10703         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10704         argument.
10705         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10706         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10707         argument.
10708         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10709         'self' argument.
10710
10711 2014-02-19  Tom Tromey  <tromey@redhat.com>
10712
10713         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10714         argument.
10715         (target_remove_hw_breakpoint): Add argument.
10716         * target.c (debug_to_remove_hw_breakpoint): Add argument.
10717         (update_current_target): Update.
10718         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10719         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10720         argument.
10721         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10722         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10723         argument.
10724         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10725         'self' argument.
10726
10727 2014-02-19  Tom Tromey  <tromey@redhat.com>
10728
10729         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10730         argument.
10731         (target_insert_hw_breakpoint): Add argument.
10732         * target.c (debug_to_insert_hw_breakpoint): Add argument.
10733         (update_current_target): Update.
10734         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10735         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10736         argument.
10737         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10738         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10739         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10740         argument.
10741         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10742         'self' argument.
10743
10744 2014-02-19  Tom Tromey  <tromey@redhat.com>
10745
10746         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10747         argument.
10748         (target_can_use_hardware_watchpoint): Add argument.
10749         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10750         (update_current_target): Update.
10751         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10752         argument.
10753         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10754         argument.
10755         * remote.c (remote_check_watch_resources): Add 'self' argument.
10756         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10757         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10758         argument.
10759         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10760         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10761         argument.
10762         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10763         argument.
10764         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10765         argument.
10766         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10767         argument.
10768         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10769         argument.
10770         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10771         argument.
10772         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10773         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10774         argument.
10775         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10776         'self' argument.
10777
10778 2014-02-19  Tom Tromey  <tromey@redhat.com>
10779
10780         * target.h (struct target_ops) <to_post_attach>: Add argument.
10781         (target_post_attach): Add argument.
10782         * target.c (debug_to_post_attach): Add argument.
10783         (update_current_target): Update.
10784         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10785         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10786         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10787         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10788         * inf-child.c (inf_child_post_attach): Add 'self' argument.
10789
10790 2014-02-19  Tom Tromey  <tromey@redhat.com>
10791
10792         * windows-nat.c (windows_close): Add 'self' argument.
10793         * tracepoint.c (tfile_close): Add 'self' argument.
10794         * target.h (struct target_ops) <to_close>: Add argument.
10795         * target.c (target_close): Add argument.
10796         (update_current_target): Update.
10797         * remote.c (remote_close): Add 'self' argument.
10798         * remote-sim.c (gdbsim_close): Add 'self' argument.
10799         * remote-mips.c (mips_close): Add 'self' argument.
10800         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10801         * record-full.c (record_full_close): Add 'self' argument.
10802         * record-btrace.c (record_btrace_close): Add 'self' argument.
10803         * monitor.h (monitor_close): Add 'self' argument.
10804         * monitor.c (monitor_close): Add 'self' argument.
10805         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10806         * linux-nat.c (linux_nat_close): Add argument.
10807         * go32-nat.c (go32_close): Add 'self' argument.
10808         * exec.c (exec_close_1): Add 'self' argument.
10809         * ctf.c (ctf_close): Add 'self' argument.
10810         * corelow.c (core_close): Add 'self' argument.
10811         (core_close_cleanup): Update.
10812         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10813         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10814
10815 2014-02-19  Tom Tromey  <tromey@redhat.com>
10816
10817         * remote.c (remote_load): New function.
10818         (init_remote_ops): Use it.
10819
10820 2014-02-19  Tom Tromey  <tromey@redhat.com>
10821
10822         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10823         argument.
10824         * common/linux-btrace.h (linux_supports_btrace): Update.
10825         * remote.c (remote_supports_btrace): Add "self" argument.
10826         * target-delegates.c: Rebuild.
10827         * target.c (target_supports_btrace): Remove.
10828         * target.h (struct target_ops) <to_supports_btrace>: Add
10829         target_ops argument.
10830         (target_supports_btrace): New define.
10831
10832 2014-02-19  Tom Tromey  <tromey@redhat.com>
10833
10834         * record-full.c (record_full_beneath_to_resume_ops)
10835         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10836         (record_full_beneath_to_wait)
10837         (record_full_beneath_to_store_registers_ops)
10838         (record_full_beneath_to_store_registers)
10839         (record_full_beneath_to_xfer_partial_ops)
10840         (record_full_beneath_to_xfer_partial)
10841         (record_full_beneath_to_insert_breakpoint_ops)
10842         (record_full_beneath_to_insert_breakpoint)
10843         (record_full_beneath_to_remove_breakpoint_ops)
10844         (record_full_beneath_to_remove_breakpoint)
10845         (record_full_beneath_to_stopped_by_watchpoint)
10846         (record_full_beneath_to_stopped_data_address)
10847         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10848         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10849         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10850         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10851         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10852         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10853         (tmp_to_stopped_data_address, tmp_to_async): Remove.
10854         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
10855         (record_full_resume, record_full_wait_1)
10856         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10857         (record_full_store_registers, record_full_xfer_partial)
10858         (record_full_insert_breakpoint, record_full_remove_breakpoint)
10859         (record_full_async, record_full_core_xfer_partial): Use target
10860         delegation.
10861         * target-delegates.c: Rebuild.
10862         * target.c (current_xfer_partial): Remove.
10863         (update_current_target): Do not INHERIT or de_fault
10864         to_insert_breakpoint, to_remove_breakpoint,
10865         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10866         to_is_async_p, to_async.  Do not set to_xfer_partial field.
10867         (default_xfer_partial): Simplify.
10868         (current_xfer_partial): Remove.
10869         (target_wait, target_resume): Simplify.
10870         (find_default_can_async_p, find_default_is_async_p): Update.
10871         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10872         to_xfer_partial, to_stopped_by_watchpoint,
10873         to_stopped_data_address.
10874         (target_store_registers): Simplify.
10875         (forward_target_remove_breakpoint)
10876         (forward_target_insert_breakpoint): Remove.
10877         (target_remove_breakpoint, target_insert_breakpoint)
10878         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10879         * target.h (struct target_ops) <to_resume, to_wait,
10880         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10881         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10882         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10883         markup.
10884         (forward_target_remove_breakpoint)
10885         (forward_target_insert_breakpoint): Remove.
10886         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10887         directly.
10888         (record_btrace_insert_breakpoint): Delegate directly.
10889
10890 2014-02-19  Tom Tromey  <tromey@redhat.com>
10891
10892         PR build/7701:
10893         * target-delegates.c: New file.
10894         * target.c: Include target-delegates.c.
10895         (init_dummy_target): Call install_dummy_methods.
10896         (complete_target_initialization): Call install_delegators.
10897         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10898         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10899         * make-target-delegates: New file.
10900
10901 2014-02-19  Tom Tromey  <tromey@redhat.com>
10902
10903         * record.c (find_record_target): Use find_target_at.
10904         * target.c (find_target_at): New function.
10905         * target.h (find_target_at): Declare.
10906
10907 2014-02-19  Tom Tromey  <tromey@redhat.com>
10908
10909         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10910         Add 'ops' argument.
10911         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10912         'ops' argument.
10913         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10914         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10915         'ops' argument.
10916         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10917         argument.
10918         * linux-nat.c (save_sigtrap): Update.
10919         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10920         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10921         (linux_nat_close): Update.
10922         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10923         argument.
10924         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10925         argument.
10926         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10927         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10928         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10929         (tmp_to_async): Add 'ops' argument.
10930         (record_full_stopped_by_watchpoint, record_full_async)
10931         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10932         argument.
10933         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10934         (m32r_stopped_by_watchpoint): Add 'ops' argument.
10935         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10936         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10937         (remote_is_async_p, remote_async): Add 'ops' argument.
10938         (remote_stopped_data_address): Update.
10939         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10940         * target.c (update_current_target)
10941         (find_default_can_async_p, find_default_is_async_p): Update.
10942         (init_dummy_target): Update.
10943         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10944         * target.h (struct target_ops) <to_stopped_by_watchpoint,
10945         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10946         (target_can_async_p, target_is_async_p, target_async)
10947         (target_stopped_by_watchpoint): Update.
10948
10949 2014-02-19  Yao Qi  <yao@codesourcery.com>
10950
10951         PR gdb/16220
10952         * gdbarch.sh: Remove startup_gdbarch.
10953         * gdbarch.c: Regenerated.
10954         * gdbarch.h: Likewise.
10955
10956 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
10957
10958         * rl78-tdep.c (rl78_g10_register_name): New function.
10959         (rl78_return_value): Add g10 support.
10960         (rl78_gdbarch_init): Register rl78_g10_register_name for the
10961         g10.
10962
10963 2014-02-17  Doug Evans  <xdje42@gmail.com>
10964
10965         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10966         (SUBDIR_GUILE_SRCS): Ditto.
10967         (scm-gsmob.o): Ditto.
10968
10969 2014-02-17  Yao Qi  <yao@codesourcery.com>
10970
10971         * gnu-nat.c (ILL_RPC): Declare defined function.
10972
10973 2014-02-17  Yao Qi  <yao@codesourcery.com>
10974
10975         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10976         mach_msg_type_number_t.
10977         (gnu_write_inferior): Likewise.
10978
10979 2014-02-17  Yao Qi  <yao@codesourcery.com>
10980
10981         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10982         in format string.
10983         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10984         (inf_validate_procs, inf_signal): Likewise.
10985         (S_exception_raise_request): Likewise.
10986         (do_mach_notify_dead_name): Likewise.
10987         (steal_exc_port): Likewise.
10988         (gnu_read_inferior): Change 'copy_count''s type to
10989         mach_msg_type_number_t.
10990         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
10991         format string.
10992
10993 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
10994
10995         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10996         flag.  Adjust all users; in particular...
10997         (gnu_wait): ..., don't decrement its value in here...
10998         (gnu_create_inferior): ..., and instead set the flag in here,
10999         around the startup_inferior call, and call that one with
11000         START_INFERIOR_TRAPS_EXPECTED.
11001
11002         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
11003         (ILL_RPC): ... new macro.
11004         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
11005         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
11006         (do_mach_notify_send_once, S_proc_setmsgport_reply)
11007         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
11008         functions with ILL_RPC macro.
11009         (S_proc_pid2task_reply, S_proc_task2pid_reply)
11010         (S_proc_task2proc_reply, S_proc_proc2task_reply)
11011         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
11012         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
11013         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
11014         (S_proc_getlogin_reply, S_proc_getsid_reply)
11015         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
11016         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
11017         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
11018         (S_proc_getnports_reply, S_proc_is_important_reply)
11019         (S_proc_get_code_reply): New stub functions, generated with
11020         ILL_RPC macro.
11021
11022         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
11023         collected the type check structures.
11024
11025         * reply_mig_hack.awk: Don't expect to see the auto keyword.
11026
11027 2014-02-14  Doug Evans  <dje@google.com>
11028
11029         * target.c (target_write_partial): Fix result type.
11030
11031 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
11032
11033         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
11034         the proper offsets to access fpregset_t.
11035
11036 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
11037
11038         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
11039         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
11040         * h8300-tdep.c (setmachinelist): Remove global.
11041         * hppa-tdep.c (hppa_sigtramp): Remove global.
11042         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
11043         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
11044         * ravenscar-thread.c (update_target_observer): Remove global.
11045         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
11046
11047 2014-02-12  Tom Tromey  <tromey@redhat.com>
11048
11049         * common/rsp-low.c: Update comments.
11050         * common/rsp-low.h: Update comments.
11051
11052 2014-02-12  Tom Tromey  <tromey@redhat.com>
11053
11054         * common/rsp-low.c (convert_ascii_to_int): Remove.
11055         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
11056
11057 2014-02-12  Tom Tromey  <tromey@redhat.com>
11058
11059         * common/rsp-low.h (unhexify): Don't declare.
11060         * common/rsp-low.c (unhexify): Remove.
11061
11062 2014-02-12  Tom Tromey  <tromey@redhat.com>
11063
11064         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
11065         * common/rsp-low.c (convert_int_to_ascii): Remove.
11066
11067 2014-02-12  Tom Tromey  <tromey@redhat.com>
11068
11069         * common/rsp-low.h (hexify): Don't declare.
11070         * common/rsp-low.c (hexify): Remove.
11071
11072 2014-02-12  Tom Tromey  <tromey@redhat.com>
11073
11074         * common/rsp-low.c (hexify): Never take strlen of argument.
11075
11076 2014-02-12  Tom Tromey  <tromey@redhat.com>
11077
11078         * common/rsp-low.c (bin2hex): Never take strlen of argument.
11079         * remote.c (extended_remote_run, remote_rcmd)
11080         (remote_download_trace_state_variable, remote_save_trace_data)
11081         (remote_set_trace_notes): Update.
11082         * tracepoint.c (encode_source_string, tfile_write_status)
11083         (tfile_write_uploaded_tsv): Update.
11084
11085 2014-02-12  Tom Tromey  <tromey@redhat.com>
11086
11087         * tracepoint.c: Include rsp-low.h.
11088         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
11089         * remote.c: Include rsp-low.h.
11090         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
11091         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
11092         (remote_unescape_input): Move to common/rsp-low.c.
11093         * common/rsp-low.h: New file.
11094         * common/rsp-low.c: New file.
11095         * Makefile.in (SFILES): Add common/rsp-low.c.
11096         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
11097         (COMMON_OBS): Add rsp-low.o.
11098         (rsp-low.o): New target.
11099
11100 2014-02-12  Tom Tromey  <tromey@redhat.com>
11101
11102         * utils.h: Include print-utils.h.
11103         (host_address_to_string, plongest, pulongest, phex, phex_nz)
11104         (int_string, core_addr_to_string, core_addr_to_string_nz)
11105         (hex_string, hex_string_custom): Don't declare.
11106         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
11107         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
11108         (hex_string_custom, int_string, core_addr_to_string)
11109         (core_addr_to_string_nz, host_address_to_string): Move to
11110         common/print-utils.c.
11111         * common/print-utils.h: New file.
11112         * common/print-utils.c: New file
11113         * Makefile.in (SFILES): Add common/print-utils.c.
11114         (HFILES_NO_SRCDIR): Add common/print-utils.h.
11115         (COMMON_OBS): Add print-utils.o.
11116         (print-utils.o): New target.
11117
11118 2014-02-12  Tom Tromey  <tromey@redhat.com>
11119
11120         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
11121
11122 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
11123
11124         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
11125
11126 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
11127
11128         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
11129         if a PT_IO ptrace request returns sucessfully but indicates that 0
11130         bytes were transferred.
11131
11132 2014-02-12  Pedro Alves  <palves@redhat.com>
11133             Kevin Buettner <kevinb@redhat.com>
11134
11135         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11136         TYPE_INSTANCE_FLAG_CODE_SPACE.
11137
11138 2014-02-12  Pedro Alves  <palves@redhat.com>
11139
11140         * h8300-tdep.c (pseudo_from_raw_register)
11141         (raw_from_pseudo_register): New functions.
11142         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11143         them.
11144
11145 2014-02-12  Pedro Alves  <palves@redhat.com>
11146
11147         * h8300-tdep.c (h8300_register_sim_regno): New function.
11148         (h8300_gdbarch_init): Install h8300_register_sim_regno as
11149         gdbarch_register_sim_regno hook.
11150
11151 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
11152
11153         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11154
11155 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
11156
11157         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11158
11159 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
11160
11161         * obsd-tdep.h (obsd_init_abi): New prototype.
11162         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11163         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11164         (obsd_init_abi): New functions.
11165         * i386obsd-tdep.c: Include "obsd-tdep.h".
11166         (i386obsd_init_abi): Call obsd_init_abi.
11167         * amd64obsd-tdep.c: Include "obsd-tdep.h".
11168         (amd64obsd_init_abi): Call obsd_init_abi.
11169         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11170         obsd-tdep.c to gdb_target_obs.
11171
11172 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
11173
11174         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11175         double float arguments to 16-byte in the argument slots.
11176
11177 2014-02-11  Doug Evans  <xdje42@gmail.com>
11178
11179         * configure.ac: Don't crash if pkg-config is not found and guile
11180         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
11181         in guile checks.
11182         * configure: Regenerate.
11183
11184 2014-02-11  Yao Qi  <yao@codesourcery.com>
11185
11186         * aix-thread.c (aix_thread_xfer_partial): Update comments.
11187         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11188         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11189         * gnu-nat.c (gnu_xfer_memory): Likewise.
11190         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
11191         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11192         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11193         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11194
11195 2014-02-11  Yao Qi  <yao@codesourcery.com>
11196
11197         * target.h (enum target_xfer_error): Rename to ...
11198         (enum target_xfer_status): ... it.  New.  All users updated.
11199         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11200         New.
11201         (TARGET_XFER_STATUS_ERROR_P): New macro.
11202         (target_xfer_error_to_string): Remove declaration.
11203         (target_xfer_status_to_string): Declare.
11204         (target_xfer_partial_ftype): Adjust it.
11205         (struct target_ops) <to_xfer_partial>: Return
11206         target_xfer_status.  Add argument xfered_len.  Update
11207         comments.
11208         * target.c (target_xfer_error_to_string): Rename to ...
11209         (target_xfer_status_to_string): ... it.  New.  All callers
11210         updated.
11211         (target_read_live_memory): Likewise.  Call target_xfer_partial
11212         instead of target_read.
11213         (memory_xfer_live_readonly_partial): Return
11214         target_xfer_status.  Add argument xfered_len.
11215         (raw_memory_xfer_partial): Likewise.
11216         (memory_xfer_partial_1): Likewise.
11217         (memory_xfer_partial): Likewise.
11218         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
11219         properly.  Update debug message.
11220         (default_xfer_partial, current_xfer_partial): Likewise.
11221         (target_write_partial): Likewise.
11222         (target_read_partial): Likewise.  All callers updated.
11223         (read_whatever_is_readable): Likewise.
11224         (target_write_with_progress): Likewise.
11225         (target_read_alloc_1): Likewise.
11226
11227         * aix-thread.c (aix_thread_xfer_partial): Likewise.
11228         * auxv.c (procfs_xfer_auxv): Likewise.
11229         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11230         * bfd-target.c (target_bfd_xfer_partial): Likewise.
11231         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11232         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11233         * corefile.c (read_memory): Adjust.
11234         * corelow.c (core_xfer_partial): Likewise.
11235         * ctf.c (ctf_xfer_partial): Likewise.
11236         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
11237         updated.
11238         (darwin_xfer_partial): Likewise.
11239         * exec.c (section_table_xfer_memory_partial): Likewise.  All
11240         callers updated.
11241         (exec_xfer_partial): Likewise.
11242         * exec.h (section_table_xfer_memory_partial): Update
11243         declaration.
11244         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
11245         negative.
11246         (gnu_xfer_partial): Likewise.
11247         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11248         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11249         (ia64_hpux_xfer_solib_got): Likewise.
11250         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
11251         type of 'partial_len' to ULONGEST.
11252         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11253         * linux-nat.c (linux_xfer_siginfo ): Likewise.
11254         (linux_nat_xfer_partial): Likewise.
11255         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11256         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11257         * monitor.c (monitor_xfer_memory): Likewise.
11258         (monitor_xfer_partial): Likewise.
11259         * procfs.c (procfs_xfer_partial): Likewise.
11260         * record-btrace.c (record_btrace_xfer_partial): Likewise.
11261         * record-full.c (record_full_xfer_partial): Likewise.
11262         (record_full_core_xfer_partial): Likewise.
11263         * remote-sim.c (gdbsim_xfer_memory): Likewise.
11264         (gdbsim_xfer_partial): Likewise.
11265         * remote.c (remote_write_bytes_aux): Likewise.  All callers
11266         updated.
11267         (remote_write_bytes, remote_read_bytes): Likewise.  All
11268         callers updated.
11269         (remote_flash_erase): Likewise.  All callers updated.
11270         (remote_write_qxfer): Likewise.  All callers updated.
11271         (remote_read_qxfer): Likewise.  All callers updated.
11272         (remote_xfer_partial): Likewise.
11273         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11274         (rs6000_xfer_shared_libraries): Likewise.
11275         * sol-thread.c (sol_thread_xfer_partial): Likewise.
11276         (sol_thread_xfer_partial): Likewise.
11277         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11278         (sparc_xfer_partial): Likewise.
11279         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
11280         updated.
11281         (spu_xfer_partial): Likewise.
11282         * spu-multiarch.c (spu_xfer_partial): Likewise.
11283         * tracepoint.c (tfile_xfer_partial): Likewise.
11284         * windows-nat.c (windows_xfer_memory): Likewise.
11285         (windows_xfer_shared_libraries): Likewise.
11286         (windows_xfer_partial): Likewise.
11287         * valprint.c: Replace 'target_xfer_error' with
11288         'target_xfer_status' in comments.
11289
11290 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
11291
11292         Checked in by Joel Brobecker <brobecker@adacore.com>.
11293         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11294
11295 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
11296
11297         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11298         function parameters.
11299
11300 2014-02-10  Will Newton  <will.newton@linaro.org>
11301
11302         * elfread.c (elf_rel_plt_read): Look for a .got section if
11303         looking up .got.plt fails.
11304         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11305         on address passed to elf_gnu_ifunc_record_cache.
11306         (elf_gnu_ifunc_resolve_addr): Likewise.
11307         (elf_gnu_ifunc_resolver_return_stop): Likewise.
11308
11309 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
11310
11311         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11312         (X_RETTURN): New macro.
11313         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11314
11315         * sparc64-tdep.c (sparc64_init_abi): Hook
11316         sparc_in_function_epilogue_p.
11317
11318 2014-02-10  Gary Benson  <gbenson@redhat.com>
11319
11320         * symfile-debug.c (debug_qf_expand_symtabs_matching):
11321         Rename name_matcher to symbol_matcher.
11322
11323 2014-02-10  Gary Benson  <gbenson@redhat.com>
11324
11325         * symfile-debug.c (debug_qf_expand_symtabs_matching):
11326         Use expand_symtabs_file_matcher_ftype and
11327         expand_symtabs_symbol_matcher_ftype.
11328
11329 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11330
11331         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11332         (struct ada_symbol_cache): New.
11333         (ada_free_symbol_cache): Forward declare.
11334         (struct ada_pspace_data): New.
11335         (ada_pspace_data_handle): New static global.
11336         (get_ada_pspace_data, ada_pspace_data_cleanup)
11337         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11338         (cache_space, cache): Delete, now folded inside struct
11339         ada_pspace_data.
11340         (ada_get_symbol_cache): New function.
11341         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11342         implementation.
11343         (_initialize_ada_language): Remove initialization of cache_space.
11344         Move call to observer_attach_inferior_exit up, grouping it
11345         with the other observer registrations inside this function.
11346         Rename command to be more general.  Add call to
11347         register_program_space_data_with_cleanup.
11348
11349 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11350
11351         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11352         ada_new_objfile_observer.
11353         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11354         (_initialize_tasks): Update uses of ada_new_objfile_observer
11355         and ada_tasks_normal_stop_observer.
11356
11357 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11358
11359         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11360         returned by the 'Length attribute to integer.
11361
11362 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11363
11364         * ada-lang.c (_initialize_ada_language): Initialize
11365         cache_space obstack.
11366
11367 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11368
11369         * ada-lang.c (HASH_SIZE): New macro.
11370         (struct cache_entry): New type.
11371         (cache_space, cache): New static globals.
11372         (ada_clear_symbol_cache, find_entry): New functions.
11373         (lookup_cached_symbol, cache_symbol): Implement.
11374         (ada_new_objfile_observer, ada_free_objfile_observer): New.
11375         (_initialize_ada_language): Attach ada_new_objfile_observer
11376         and ada_free_objfile_observer.
11377
11378 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11379
11380         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11381         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11382         struct block * parameter.
11383         (ada_lookup_symbol_list_worker): Constify local variable "block".
11384         Remove cast which is no longer necessary.
11385
11386 2014-02-10  Doug Evans  <xdje42@gmail.com>
11387
11388         Add Guile as an extension language.
11389         * NEWS: Mention Guile scripting.
11390         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11391         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11392         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11393         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11394         (CLIBS): Add GUILE_LIBS.
11395         (install-guile): New rule.
11396         (guile.o): New rule.
11397         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11398         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11399         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11400         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11401         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11402         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11403         (scm-type.o, scm-utils.o, scm-value.o): New rules.
11404         * configure.ac: New option --with-guile.
11405         * configure: Regenerate.
11406         * config.in: Regenerate.
11407         * auto-load.c: Remove #include "python/python.h".  Add #include
11408         "gdb/section-scripts.h".
11409         (source_section_scripts): Handle Guile scripts.
11410         (_initialize_auto_load): Add name of Guile objfile script to
11411         scripts-directory help text.
11412         * breakpoint.c (condition_command): Tweak comment to include Scheme.
11413         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11414         (struct breakpoint): New member scm_bp_object.
11415         * defs.h (enum command_control_type): New value guile_control.
11416         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
11417         "extension.h".
11418         (show_user): Update comment.
11419         (_initialize_cli_cmds): Update help text for "show user".  Update help
11420         text for max-user-call-depth.
11421         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
11422         "extension.h".
11423         (multi_line_command_p): Add guile_control.
11424         (print_command_lines): Handle guile_control.
11425         (execute_control_command, recurse_read_control_structure): Ditto.
11426         (process_next_line): Recognize "guile" commands.
11427         * disasm.c (gdb_disassemble_info): Make non-static.
11428         * disasm.h: #include "dis-asm.h".
11429         (struct gdbarch): Add forward decl.
11430         (gdb_disassemble_info): Declare.
11431         * extension.c: #include "guile/guile.h".
11432         (extension_languages): Add guile.
11433         (get_ext_lang_defn): Handle EXT_LANG_GDB.
11434         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11435         * gdbtypes.c (get_unsigned_type_max): New function.
11436         (get_signed_type_minmax): New function.
11437         * gdbtypes.h (get_unsigned_type_max): Declare.
11438         (get_signed_type_minmax): Declare.
11439         * guile/README: New file.
11440         * guile/guile-internal.h: New file.
11441         * guile/guile.c: New file.
11442         * guile/guile.h: New file.
11443         * guile/scm-arch.c: New file.
11444         * guile/scm-auto-load.c: New file.
11445         * guile/scm-block.c: New file.
11446         * guile/scm-breakpoint.c: New file.
11447         * guile/scm-disasm.c: New file.
11448         * guile/scm-exception.c: New file.
11449         * guile/scm-frame.c: New file.
11450         * guile/scm-gsmob.c: New file.
11451         * guile/scm-iterator.c: New file.
11452         * guile/scm-lazy-string.c: New file.
11453         * guile/scm-math.c: New file.
11454         * guile/scm-objfile.c: New file.
11455         * guile/scm-ports.c: New file.
11456         * guile/scm-pretty-print.c: New file.
11457         * guile/scm-safe-call.c: New file.
11458         * guile/scm-string.c: New file.
11459         * guile/scm-symbol.c: New file.
11460         * guile/scm-symtab.c: New file.
11461         * guile/scm-type.c: New file.
11462         * guile/scm-utils.c: New file.
11463         * guile/scm-value.c: New file.
11464         * guile/lib/gdb.scm: New file.
11465         * guile/lib/gdb/boot.scm: New file.
11466         * guile/lib/gdb/experimental.scm: New file.
11467         * guile/lib/gdb/init.scm: New file.
11468         * guile/lib/gdb/iterator.scm: New file.
11469         * guile/lib/gdb/printing.scm: New file.
11470         * guile/lib/gdb/types.scm: New file.
11471         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11472         (VPATH): Add $(GUILE_SRCDIR).
11473         (GUILE_DIR): New variable.
11474         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11475         (all): Add stamp-guile dependency.
11476         (stamp-guile): New rule.
11477         (clean-guile, install-guile, uninstall-guile): New rules.
11478         (install-only): Add install-guile dependency.
11479         (uninstall): Add uninstall-guile dependency.
11480         (clean): Add clean-guile dependency.
11481
11482 2014-02-09  Doug Evans  <xdje42@gmail.com>
11483
11484         Revert this patch (which I approved, mea culpa).
11485
11486         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
11487
11488         * Makefile.in (all-lib): Remove.
11489         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11490
11491 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
11492
11493         Fix Python stack corruption.
11494         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11495         gdb_py_longest.
11496
11497 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
11498
11499         * Makefile.in (all-lib): Remove.
11500         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11501
11502 2014-02-07  Doug Evans  <dje@google.com>
11503
11504         * extension-priv.h (extension_language_script_ops): Add comment.
11505         (extension_language_ops): Add comment.
11506         (active_ext_lang_state): Fix typo in comment.
11507
11508 2014-02-07  Pedro Alves  <palves@redhat.com>
11509
11510         PR breakpoints/16292
11511         * infrun.c (handle_signal_stop) <signal arrives while stepping
11512         over a breakpoint>: Switch back to the stepping thread.
11513
11514 2014-02-07  Yao Qi  <yao@codesourcery.com>
11515
11516         * target.c (target_xfer_partial): Return zero if LEN is zero.
11517
11518 2014-02-07  Yao Qi  <yao@codesourcery.com>
11519
11520         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11521         (ld_so_xfer_auxv): Likewise.
11522         * bfd-target.c (target_bfd_xfer_partial): Likewise.
11523         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11524         * corelow.c (core_xfer_partial): Likewise.
11525         * ctf.c (ctf_xfer_partial): Likewise.
11526         * darwin-nat.c (darwin_read_dyld_info): Likewise.
11527         (darwin_xfer_partial): Likewise.
11528         * exec.c (exec_xfer_partial): Likewise.
11529         * gnu-nat.c (gnu_xfer_partial): Likewise.
11530         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11531         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11532         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11533         * linux-nat.c (linux_xfer_siginfo): Likewise.
11534         (linux_proc_xfer_spu): Likewise.
11535         * procfs.c (procfs_xfer_partial): Likewise.
11536         * record-full.c (record_full_xfer_partial): Likewise.
11537         (record_full_core_xfer_partial): Likewise.
11538         * remote-sim.c (gdbsim_xfer_partial): Likewise.
11539         * remote.c (remote_write_qxfer): Likewise.
11540         (remote_write_qxfer, remote_read_qxfer): Likewise.
11541         (remote_xfer_partial): Likewise.
11542         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11543         (rs6000_xfer_shared_libraries): Likewise.
11544         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11545         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11546         (spu_xfer_partial): Likewise.
11547         * target.c (memory_xfer_partial_1): Likewise.
11548         * tracepoint.c (tfile_xfer_partial): Likewise.
11549         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11550         (windows_xfer_partial): Likewise.
11551
11552 2014-02-07  Yao Qi  <yao@codesourcery.com>
11553
11554         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
11555         comments.
11556         (core_xfer_shared_libraries_aix): Likewise.
11557         * gdbarch.c, gdbarch.h: Regenerated.
11558         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11559         ULONGEST.  Change 'len_avail' type to ULONGEST.
11560         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11561         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11562         declaration.
11563         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11564
11565 2014-02-07  Yao Qi  <yao@codesourcery.com>
11566
11567         * corefile.c (memory_error): Get 'exception' from ERR and pass
11568         'exception' to throw_error.
11569
11570 2014-02-06  Doug Evans  <xdje42@gmail.com>
11571
11572         * configure.ac (libpython checking): Remove all but python.o from
11573         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
11574         * configure: Regenerate.
11575
11576         * Makefile.in (SFILES): Add extension.c.
11577         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11578         (COMMON_OBS): Add extension.o.
11579         * extension.h: New file.
11580         * extension-priv.h: New file.
11581         * extension.c: New file.
11582
11583         * python/python-internal.h: #include "extension.h".
11584         (gdbpy_auto_load_enabled): Declare.
11585         (gdbpy_apply_val_pretty_printer): Declare.
11586         (gdbpy_apply_frame_filter): Declare.
11587         (gdbpy_preserve_values): Declare.
11588         (gdbpy_breakpoint_cond_says_stop): Declare.
11589         (gdbpy_breakpoint_has_cond): Declare.
11590         (void source_python_script_for_objfile): Delete.
11591         * python/python.c: #include "extension-priv.h".
11592         Delete inclusion of "observer.h".
11593         (extension_language_python): Moved here and renamed from
11594         script_language_python in py-auto-load.c.
11595         Redefined to be of type extension_language_defn.
11596         (python_extension_script_ops): New global.
11597         (python_extension_ops): New global.
11598         (struct python_env): New member previous_active.
11599         (restore_python_env): Call restore_active_ext_lang.
11600         (ensure_python_env): Call set_active_ext_lang.
11601         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11602         New arg extlang.
11603         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11604         New arg extlang.
11605         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11606         New arg extlang.
11607         (gdbpy_eval_from_control_command): Renamed from
11608         eval_python_from_control_command, made static.  New arg extlang.
11609         (gdbpy_source_script) Renamed from source_python_script, made static.
11610         New arg extlang.
11611         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
11612         result to int.  New arg extlang.
11613         (gdbpy_source_objfile_script): Renamed from
11614         source_python_script_for_objfile, made static.  New arg extlang.
11615         (gdbpy_start_type_printers): Renamed from start_type_printers, made
11616         static.  New args extlang, extlang_printers.  Change result type to
11617         "void".
11618         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11619         static.  New arg extlang.  Rename arg printers to extlang_printers
11620         and change type to ext_lang_type_printers *.
11621         (gdbpy_free_type_printers): Renamed from free_type_printers, made
11622         static.  Replace argument arg with extlang, extlang_printers.
11623         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11624         (!HAVE_PYTHON, source_python_script): Delete.
11625         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11626         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11627         (!HAVE_PYTHON, start_type_printers): Delete.
11628         (!HAVE_PYTHON, apply_type_printers): Delete.
11629         (!HAVE_PYTHON, free_type_printers): Delete.
11630         (_initialize_python): Delete call to observer_attach_before_prompt.
11631         (finalize_python): Set/restore active extension language.
11632         (gdbpy_finish_initialization) Renamed from
11633         finish_python_initialization, made static.  New arg extlang.
11634         (gdbpy_initialized): New function.
11635         * python/python.h: #include "extension.h".  Delete #include
11636         "value.h", "mi/mi-cmds.h".
11637         (extension_language_python): Declare.
11638         (GDBPY_AUTO_FILE_NAME): Delete.
11639         (enum py_bt_status): Moved to extension.h and renamed to
11640         ext_lang_bt_status.
11641         (enum frame_filter_flags): Moved to extension.h.
11642         (enum py_frame_args): Moved to extension.h and renamed to
11643         ext_lang_frame_args.
11644         (finish_python_initialization): Delete.
11645         (eval_python_from_control_command): Delete.
11646         (source_python_script): Delete.
11647         (apply_val_pretty_printer): Delete.
11648         (apply_frame_filter): Delete.
11649         (preserve_python_values): Delete.
11650         (gdbpy_script_language_defn): Delete.
11651         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11652         (start_type_printers, apply_type_printers, free_type_printers): Delete.
11653
11654         * auto-load.c: #include "extension.h".
11655         (GDB_AUTO_FILE_NAME): Delete.
11656         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
11657         (script_language_gdb): Delete, moved to extension.c and renamed to
11658         extension_language_gdb.
11659         (source_gdb_script_for_objfile): Delete.
11660         (auto_load_pspace_info): New member unsupported_script_warning_printed.
11661         (loaded_script): Change type of language member to
11662         struct extension_language_defn *.
11663         (init_loaded_scripts_info): Initialize
11664         unsupported_script_warning_printed.
11665         (maybe_add_script): Make static.  Change type of language arg to
11666         struct extension_language_defn *.
11667         (clear_section_scripts): Reset unsupported_script_warning_printed.
11668         (auto_load_objfile_script_1): Rewrite to use extension language API.
11669         (auto_load_objfile_script): Make public.  Remove support-compiled-in
11670         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11671         (source_section_scripts): Rewrite to use extension language API.
11672         (load_auto_scripts_for_objfile): Rewrite to use
11673         auto_load_scripts_for_objfile.
11674         (collect_matching_scripts_data): Change type of language member to
11675         struct extension_language_defn *.
11676         (auto_load_info_scripts): Change type of language arg to
11677         struct extension_language_defn *.
11678         (unsupported_script_warning_print): New function.
11679         (script_not_found_warning_print): Make static.
11680         (_initialize_auto_load): Rewrite construction of scripts-directory
11681         help.
11682         * auto-load.h (struct objfile): Add forward decl.
11683         (struct script_language): Delete.
11684         (struct auto_load_pspace_info): Add forward decl.
11685         (struct extension_language_defn): Add forward decl.
11686         (maybe_add_script): Delete.
11687         (auto_load_objfile_script): Declare.
11688         (script_not_found_warning_print): Delete.
11689         (auto_load_info_scripts): Update prototype.
11690         (auto_load_gdb_scripts_enabled): Declare.
11691         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11692         auto_load_python_scripts_enabled and made public.
11693         (script_language_python): Delete, moved to python.c.
11694         (gdbpy_script_language_defn): Delete.
11695         (info_auto_load_python_scripts): Update to use
11696         extension_language_python.
11697
11698         * breakpoint.c (condition_command): Replace call to
11699         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11700         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11701         with call to breakpoint_ext_lang_cond_says_stop.
11702         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11703         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
11704         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11705         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11706         New arg slang.
11707         (local_setattro): Print name of extension language with existing
11708         stop condition.
11709
11710         * valprint.c (val_print, value_print): Update to call
11711         apply_ext_lang_val_pretty_printer.
11712         * cp-valprint.c (cp_print_value): Update call to
11713         apply_ext_lang_val_pretty_printer.
11714         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11715         (gdbpy_apply_val_pretty_printer): Renamed from
11716         apply_val_pretty_printer.  New arg extlang.
11717         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11718
11719         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11720         extension language API.
11721         * cli/cli-script.c (execute_control_command): Update to call
11722         eval_ext_lang_from_control_command.
11723
11724         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11725         enum ext_lang_bt_status values.  Update call to
11726         apply_ext_lang_frame_filter.
11727         (mi_cmd_stack_list_locals): Ditto.
11728         (mi_cmd_stack_list_args): Ditto.
11729         (mi_cmd_stack_list_variables): Ditto.
11730         * mi/mi-main.c: Delete #include "python/python-internal.h".
11731         Add #include "extension.h".
11732         (mi_cmd_list_features): Replace reference to python internal variable
11733         gdb_python_initialized with call to ext_lang_initialized_p.
11734
11735         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11736         Update to use enum ext_lang_frame_args.  Update to call
11737         apply_ext_lang_frame_filter.
11738         * python/py-framefilter.c (extract_sym): Update to use enum
11739         ext_lang_bt_status.
11740         (extract_value, py_print_type, py_print_value): Ditto.
11741         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11742         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11743         (py_print_frame): Ditto.
11744         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11745         New arg extlang.  Update to use enum ext_lang_bt_status.
11746
11747         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11748         finish_python_initialization.  Replace with call to
11749         finish_ext_lang_initialization.
11750
11751         * typeprint.c (do_free_global_table): Update to call
11752         free_ext_lang_type_printers.
11753         (create_global_typedef_table): Update to call
11754         start_ext_lang_type_printers.
11755         (find_global_typedef): Update to call apply_ext_lang_type_printers.
11756         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11757         (type_print_options): Change type of global_printers from "void *"
11758         to "struct ext_lang_type_printers *".
11759
11760         * value.c (preserve_values): Update to call preserve_ext_lang_values.
11761         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11762         (gdbpy_preserve_values): Renamed from preserve_python_values.
11763         New arg extlang.
11764         (!HAVE_PYTHON, preserve_python_values): Delete.
11765
11766         * utils.c (quit_flag): Delete, moved to extension.c.
11767         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11768         extension.c.
11769
11770         * eval.c: Delete #include "python/python.h".
11771         * main.c: Delete #include "python/python.h".
11772
11773         * defs.h: Update comment.
11774
11775 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
11776
11777         GDB 7.7 released.
11778
11779 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
11780
11781         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11782         defined.
11783
11784 2014-02-05  Yao Qi  <yao@codesourcery.com>
11785
11786         * remote.c (remote_pass_signals): Remove local 'buf' and use
11787         rs->buf.
11788         (remote_program_signals): Likewise.
11789
11790 2014-02-05  Yao Qi  <yao@codesourcery.com>
11791
11792         * ctf.c: Include "inferior.h" and "gdbthread.h".
11793         (CTF_PID): A new macro.
11794         (ctf_open): Call inferior_appeared and add_thread_silent.
11795         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11796         (ctf_thread_alive): New function.
11797         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11798
11799 2014-02-05  Yao Qi  <yao@codesourcery.com>
11800
11801         Revert this patch:
11802
11803         2013-05-24  Yao Qi  <yao@codesourcery.com>
11804
11805         * tracepoint.c (TFILE_PID): Remove.
11806         (tfile_open): Don't add thread and inferior.
11807         (tfile_close): Don't set 'inferior_ptid'.  Don't call
11808         exit_inferior_silent.
11809         (tfile_thread_alive): Remove.
11810         (init_tfile_ops): Don't set field 'to_thread_alive' of
11811         tfile_ops.
11812
11813 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
11814
11815         * remote.c (remote_start_remote): Call remote_check_symbols even
11816         if only symbol-file (not file) has been given.
11817
11818 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11819
11820         * gdbarch.sh (skip_entrypoint): New callback.
11821         * gdbarch.c, gdbarch.h: Regenerate.
11822         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11823         * infrun.c (fill_in_stop_func): Likewise.
11824         * ppc-linux-tdep.c: Include "elf/ppc64.h".
11825         (ppc_elfv2_elf_make_msymbol_special): New function.
11826         (ppc_elfv2_skip_entrypoint): Likewise.
11827         (ppc_linux_init_abi): Install them for ELFv2.
11828
11829 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11830
11831         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11832         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11833         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11834         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
11835         structures returned in GPRs.
11836
11837 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11838
11839         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11840         offset to the stack parameter list for the ELFv2 ABI.
11841
11842 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11843
11844         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11845         set_gdbarch_convert_from_func_ptr_addr and
11846         set_gdbarch_elf_make_msymbol_special for ELFv1.
11847         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11848         function descriptors on ELFv1.
11849         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
11850         set up r12 at function entry.
11851
11852 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11853
11854         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11855         (struct gdbarch_tdep): New member elf_abi.
11856
11857         * rs6000-tdep.c: Include "elf/ppc64.h".
11858         (rs6000_gdbarch_init): Detect ELF ABI version.
11859
11860 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11861
11862         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11863         within a register pair holding a DFP 128-bit value on little-endian.
11864         (ppc64_sysv_abi_return_value_base): Likewise.
11865         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11866         (dfp_pseudo_register_write): Likewise.
11867
11868 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11869
11870         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11871         offset on little-endian when passing _Decimal32.
11872         (ppc64_sysv_abi_return_value_base): Likewise for return values.
11873
11874 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11875
11876         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11877         of the overlapped FP register within the VSX register on little-
11878         endian platforms.
11879         (efpr_pseudo_register_write): Likewise.
11880
11881 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11882
11883         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11884         offset on little-endian when passing small structures.
11885
11886 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11887
11888         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11889         (struct ppc64_sysv_argpos): New data structure.
11890         (ppc64_sysv_abi_push_float): Remove.
11891         (ppc64_sysv_abi_push_val): New function.
11892         (ppc64_sysv_abi_push_integer): Likewise.
11893         (ppc64_sysv_abi_push_freg): Likewise.
11894         (ppc64_sysv_abi_push_vreg): Likewise.
11895         (ppc64_sysv_abi_push_param): Likewise.
11896         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11897         (ppc64_sysv_abi_return_value_base): New function.
11898         (ppc64_sysv_abi_return_value): Refactor to use it.
11899
11900 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11901
11902         * NEWS: Document new target powerpc64le-*-linux*.
11903
11904 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
11905
11906         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11907         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11908         core dumps.
11909         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11910         register set used in ELF core dumps.  Add floating-point register set.
11911
11912 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
11913
11914         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11915         dwarf2_to_gdb[] table using symbolic constants.  Adjust
11916         penultimate entry from number representing the PC register
11917         to symbolic constant representing the MDR register.  Add
11918         constant for the PC register to the end of the table.
11919
11920 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
11921
11922         * bsd-kvm.c: Include <sys/param.h>
11923
11924 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
11925
11926         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11927
11928 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
11929
11930         * ada-lang.h (clear_ada_sym_cache): Delete.
11931
11932 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
11933
11934         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11935
11936 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
11937
11938         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11939           the sigreturn register save area only if the syscall is
11940           sigreturn.
11941
11942 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
11943
11944         * valops.c (value_slice): Minor reformatting.
11945
11946 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
11947
11948         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11949
11950 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
11951
11952         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11953         New static globals.
11954         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11955         (ada_ignore_descriptive_types_p): New static global.
11956         (find_parallel_type_by_descriptive_type): Return immediately
11957         if ada_ignore_descriptive_types_p is set.
11958         (_initialize_ada_language): Register new commands "maintenance
11959         set ada", "maintenance show ada", "maintenance set ada
11960         ignore-descriptive-types" and "maintenance show ada
11961         ignore-descriptive-types".
11962         * NEWS: Add entry for new "maint ada set/show
11963         ignore-descriptive-types" commands.
11964
11965 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
11966
11967         * record-btrace.c (record_btrace_close): Call btrace_teardown
11968         for all threads.
11969
11970 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11971
11972         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11973         "ui-out.h".
11974
11975 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11976
11977         * ada-typeprint (type_is_full_subrange_of_target_type):
11978         New function.
11979         (print_range): Add parameter bounds_prefered_p.  If not set,
11980         try printing range types using the name of their base type.
11981         (print_range_type): Add parameter bounds_prefered_p.
11982         Use it in call to print_range.
11983         (print_array_type, ada_print_type): Update calls to print_range
11984         and print_range_type.
11985
11986 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11987
11988         * ada-typeprint.c (print_array_type, print_choices, print_range)
11989         (print_range_bound, print_dynamic_range_bound, print_range_type):
11990         Remove declaration.
11991
11992 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11993
11994         * ada-typeprint.c (print_range): Add missing empty line
11995         after local declaration.
11996
11997 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11998
11999         * ada-valprint.c (print_optional_low_bound): Get index_type's
12000         target type for as long as it is a TYPE_CODE_RANGE.
12001
12002 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
12003
12004         * procfs.c (procfs_make_note_section): Remove assertion and
12005         associated comment.
12006
12007 2014-01-24  Yao Qi  <yao@codesourcery.com>
12008
12009         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
12010         * corelow.c (get_core_siginfo): Likewise.
12011
12012 2014-01-24  Yao Qi  <yao@codesourcery.com>
12013
12014         * remote.c (remote_write_bytes_aux): Change type of 'len' to
12015         ULONGEST.  Don't check 'len' is negative.
12016         (remote_write_bytes):  Change type of 'len' to ULONGEST.
12017
12018 2014-01-23  Tom Tromey  <tromey@redhat.com>
12019
12020         PR python/16485:
12021         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
12022         Handle exception from frame.block.
12023         (FrameVars.fetch_frame_locals): Likewise.
12024
12025 2014-01-23  Tom Tromey  <tromey@redhat.com>
12026
12027         PR python/16487:
12028         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
12029         on a NULL pointer.  Move "goto error" to correct place.
12030
12031 2014-01-23  Tom Tromey  <tromey@redhat.com>
12032
12033         PR python/16491:
12034         * python/py-framefilter.c (apply_frame_filter): Call
12035         ensure_python_env after computing gdbarch.
12036
12037 2014-01-23  Yao Qi  <yao@codesourcery.com>
12038
12039         * target.c (raw_memory_xfer_partial): Change argument type
12040         from void * to gdb_byte *.
12041         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
12042
12043 2014-01-22  Doug Evans  <dje@google.com>
12044
12045         New gdbserver option --debug-format=timestamp.
12046         * NEWS: Mention it.
12047
12048 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
12049
12050         * syscalls/s390x-linux.xml: New file.
12051         * syscalls/s390-linux.xml: New file.
12052         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
12053         (XML_SYSCALL_FILENAME_S390X): Likewise.
12054         (op_svc): New enum value for SVC opcode.
12055         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
12056         (s390_linux_get_syscall_number): New function.
12057         (s390_gdbarch_init): Register '*get_syscall_number' and the
12058         syscall xml file name.
12059         * data-directory/Makefile.in (SYSCALLS_FILES): Add
12060         "s390-linux.xml" and "s390x-linux.xml".
12061         * NEWS: Announce new feature.
12062
12063 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
12064
12065         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
12066
12067 2014-01-22  Pedro Alves  <palves@redhat.com>
12068
12069         * xtensa-config.c: Include defs.h.
12070
12071 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
12072
12073         * common/common-utils.h: Add "ARI:" comment beside __func__
12074         reference.
12075
12076 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
12077
12078         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
12079         documentation a bit.
12080
12081 2014-01-21  Roland McGrath  <mcgrathr@google.com>
12082
12083         * configure.ac: Call AM_PROG_INSTALL_STRIP.
12084         * configure: Regenerate.
12085         * aclocal.m4: Regenerate.
12086         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
12087         New substituted variables.
12088         (install-strip): New target.
12089         (INSTALL_SCRIPT): New substituted variable.
12090         (FLAGS_TO_PASS): Add it.
12091         (install-only): Use $(INSTALL_SCRIPT) rather than
12092         $(INSTALL_PROGRAM) for gcore.
12093
12094 2014-01-20  Tom Tromey  <tromey@redhat.com>
12095
12096         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
12097         together.
12098
12099 2014-01-20  Tom Tromey  <tromey@redhat.com>
12100
12101         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
12102         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
12103         (deprecated_cmd_warning, complete_on_cmdlist): Update.
12104         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
12105         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
12106         (struct cmd_list_element) <flags>: Remove.
12107         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
12108         doc_allocated>: New fields.
12109         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
12110         bitfields.
12111         * maint.c (maintenance_do_deprecate): Update.
12112         * top.c (execute_command): Update.
12113
12114 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
12115
12116         * xtensa-linux-nat.c: Include asm/ptrace.h.
12117
12118 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12119
12120         * Makefile.in (SFILES): Add d-support.c.
12121         (COMMON_OBS): Add d-support.o.
12122         * d-lang.h (d_parse_symbol): Add comment, now defined in
12123         d-support.c.
12124         * d-lang.c (parse_call_convention)
12125         (parse_attributes, parse_function_types)
12126         (parse_function_args, parse_type, parse_identifier)
12127         (call_convention_p, d_parse_symbol): Move functions to ...
12128         * d-support.c: ... New file.
12129
12130 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12131
12132         * d-lang.h (d_parse_symbol): Add declaration.
12133         * d-lang.c (extract_identifiers)
12134         (extract_type_info): Remove functions.
12135         (parse_call_convention, parse_attributes)
12136         (parse_function_types, parse_function_args)
12137         (parse_type, parse_identifier, call_convention_p)
12138         (d_parse_symbol): New functions.
12139         (d_demangle): Use d_parse_symbol to demangle D symbols.
12140
12141 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12142
12143         * d-lang.h (struct builtin_d_type): New data type.
12144         (builtin_d_type): Add declaration.
12145         * d-lang.c (d_language_arch_info, build_d_types)
12146         (builtin_d_type): New functions.
12147         (enum d_primitive_types): New data type.
12148         (d_language_defn): Change c_language_arch_info to
12149         d_language_arch_info.
12150         (d_type_data): New static variable.
12151         (_initialize_d_language): Initialize d_type_data.
12152
12153 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12154
12155         * d-lang.h (d_main_name): Add declaration.
12156         * d-lang.c (d_main_name): New function.
12157         * symtab.c (find_main_name): Add call to d_main_name.
12158
12159 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12160
12161         * d-lang.c (d_language_defn): Change macro_expansion_c to
12162         macro_expansion_no.
12163
12164 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12165
12166         * MAINTAINERS: Add myself as a write-after-approval maintainer.
12167
12168 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
12169
12170         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12171         gdb_exception" declaration.
12172         * remote.c (getpkt_or_notif_sane): Likewise.
12173
12174 2014-01-17  Doug Evans  <dje@google.com>
12175
12176         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12177         function, contents of dirnames_to_char_ptr_vec_append moved here.
12178         (delim_string_to_char_ptr_vec): New function.
12179         (dirnames_to_char_ptr_vec_append): Rewrite.
12180         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12181
12182 2014-01-17  Doug Evans  <dje@google.com>
12183
12184         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12185         and moved here ...
12186         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12187         #include "common-utils.h".
12188         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12189         * common/vec.h (VEC_ASSERT_PASS): Update.
12190         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12191         (MACH_CHECK_ERROR): Update.
12192
12193 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
12194
12195         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12196         comments.
12197         * gdbarch.h: Regenerate.
12198
12199 2014-01-16  Tom Tromey  <tromey@redhat.com>
12200
12201         * value.c (struct value) <regnum>: Move earlier.
12202
12203 2014-01-16  Tom Tromey  <tromey@redhat.com>
12204
12205         * remote.c (extended_remote_create_inferior): Rename from
12206         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
12207         old implementation.
12208
12209 2014-01-16  Pedro Alves  <palves@redhat.com>
12210
12211         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12212         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12213         the backchain.
12214
12215 2014-01-16  Doug Evans  <dje@google.com>
12216
12217         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12218
12219 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12220
12221         * btrace.h (btrace_thread_flag): New.
12222         (struct btrace_thread_info) <flags>: New.
12223         * record-btrace.c (record_btrace_resume_thread)
12224         (record_btrace_find_thread_to_move, btrace_step_no_history)
12225         (btrace_step_stopped, record_btrace_start_replaying)
12226         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12227         (record_btrace_find_resume_thread): New.
12228         (record_btrace_resume, record_btrace_wait): Extend.
12229         (record_btrace_can_execute_reverse): New.
12230         (record_btrace_open): Fail in non-stop mode.
12231         (record_btrace_set_replay): Split into this, ...
12232         (record_btrace_stop_replaying): ... this, ...
12233         (record_btrace_clear_histories): ... and this.
12234         (init_record_btrace_ops): Init to_can_execute_reverse.
12235         * NEWS: Announce it.
12236
12237 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12238
12239         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12240         (forward_target_decr_pc_after_break)
12241         (target_decr_pc_after_break): New.
12242         * target.c (forward_target_decr_pc_after_break)
12243         (target_decr_pc_after_break): New.
12244         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12245         instead of gdbarch_decr_pc_after_break.
12246         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12247         instead of gdbarch_decr_pc_after_break.
12248         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12249         instead of gdbarch_decr_pc_after_break.
12250         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12251         instead of gdbarch_decr_pc_after_break.
12252         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12253         instead of gdbarch_decr_pc_after_break.
12254         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12255         instead of gdbarch_decr_pc_after_break.
12256
12257 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12258
12259         * btrace.c: Include regcache.h.
12260         (btrace_add_pc): New.
12261         (btrace_enable): Call btrace_add_pc.
12262         (btrace_is_empty): New.
12263         * btrace.h (btrace_is_empty): New.
12264         * record-btrace.c (require_btrace, record_btrace_info): Call
12265         btrace_is_empty.
12266
12267 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12268
12269         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12270         Support delta reads.
12271         (linux_disable_btrace): Change return type.
12272         * common/linux-btrace.h (linux_read_btrace): Change parameters
12273         and return type to allow error reporting.  Update users.
12274         (linux_disable_btrace): Change return type.  Update users.
12275         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12276         New.
12277         (btrace_error): New.
12278         (btrace_block) <begin>: Comment on BEGIN == 0.
12279         * btrace.c (btrace_compute_ftrace): Start from the end of
12280         the current trace.
12281         (btrace_stitch_trace, btrace_clear_history): New.
12282         (btrace_fetch): Read delta trace, return if replaying.
12283         (btrace_clear): Move clear history code to btrace_clear_history.
12284         (parse_xml_btrace): Throw an error if parsing failed.
12285         * target.h (struct target_ops) <to_read_btrace>: Change parameters
12286         and return type to allow error reporting.
12287         (target_read_btrace): Change parameters and return type to allow
12288         error reporting.
12289         * target.c (target_read_btrace): Update.
12290         * remote.c (remote_read_btrace): Support delta reads.  Pass
12291         errors on.
12292         * NEWS: Announce it.
12293
12294 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12295
12296         * record.h (record_btrace_frame_unwind)
12297         (record_btrace_tailcall_frame_unwind): New declarations.
12298         * dwarf2-frame: Include record.h
12299         (dwarf2_frame_cfa): Throw an error for btrace frames.
12300         * record-btrace.c: Include hashtab.h.
12301         (btrace_get_bfun_name): New.
12302         (btrace_call_history): Call btrace_get_bfun_name.
12303         (struct btrace_frame_cache): New.
12304         (bfcache): New.
12305         (bfcache_hash, bfcache_eq, bfcache_new): New.
12306         (btrace_get_frame_function): New.
12307         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12308         (record_btrace_frame_this_id): Compute own id.
12309         (record_btrace_frame_prev_register): Provide PC, throw_error
12310         for all other registers.
12311         (record_btrace_frame_sniffer): Detect btrace frames.
12312         (record_btrace_tailcall_frame_sniffer): New.
12313         (record_btrace_frame_dealloc_cache): New.
12314         (record_btrace_frame_unwind): Add new functions.
12315         (record_btrace_tailcall_frame_unwind): New.
12316         (_initialize_record_btrace): Allocate cache.
12317         * btrace.c (btrace_clear): Call reinit_frame_cache.
12318         * NEWS: Announce it.
12319
12320 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12321
12322         * record-btrace.c (record_btrace_set_replay)
12323         (record_btrace_goto_begin, record_btrace_goto_end)
12324         (record_btrace_goto): New.
12325         (init_record_btrace_ops): Initialize them.
12326         * NEWS: Announce it.
12327
12328 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12329
12330         * record-btrace.c (record_btrace_find_new_threads)
12331         (record_btrace_thread_alive): New.
12332         (init_record_btrace_ops): Initialize to_find_new_threads and
12333         to_thread_alive.
12334
12335 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12336
12337         * record-btrace.c (record_btrace_resume): New.
12338         (record_btrace_wait): New.
12339         (init_record_btrace_ops): Initialize to_wait and to_resume.
12340
12341 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12342
12343         * record-btrace.c (record_btrace_xfer_partial)
12344         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12345         (record_btrace_allow_memory_access): New.
12346         (init_record_btrace_ops): Initialize new methods.
12347         * target.c (raw_memory_xfer_partial): Bail out if target reports
12348         that this memory is not available.
12349
12350 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12351
12352         * target.h (target_ops) <to_insert_breakpoint>
12353         <to_remove_breakpoint>: Add target_ops parameter.
12354         (forward_target_insert_breakpoint): New.
12355         (forward_target_remove_breakpoint): New.
12356         (memory_remove_breakpoint, memory_insert_breakpoint):
12357         Add target_ops parameter.
12358         * target.c (target_insert_breakpoint): Split into this and ...
12359         (forward_target_insert_breakpoint): ... this.
12360         (target_remove_breakpoint): Split into this and ...
12361         (forward_target_remove_breakpoint): ... this.
12362         (debug_to_insert_breakpoint): Add target_ops parameter.
12363         Call forward_target_insert_breakpoint.
12364         (debug_to_remove_breakpoint): Add target_ops parameter.
12365         Call forward_target_remove_breakpoint.
12366         (update_current_target): Do not inherit or default to_insert_breakpoint
12367         and to_remove_breakpoint.
12368         * corelow.c (ignore): Add target_ops parameter.
12369         * exec.c (ignore): Add target_ops parameter.
12370         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12371         Add target_ops parameter.
12372         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12373         Add target_ops parameter.
12374         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12375         Add target_ops parameter.
12376         * record-full.c (record_full_beneath_to_insert_breakpoint)
12377         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12378         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12379         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12380         (record_full_core_remove_breakpoint): Add target_ops parameter.
12381         Update users.
12382         (record_full_beneath_to_insert_breakpoint_ops)
12383         (record_full_beneath_to_remove_breakpoint_ops)
12384         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12385         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12386         tmp_to_remove_breakpoint_ops,
12387         record_full_beneath_to_insert_breakpoint_ops, and
12388         record_full_beneath_to_remove_breakpoint_ops.
12389         * remote-m32r-sdi.c (m32r_insert_breakpoint)
12390         (m32r_remove_breakpoint): Add target_ops parameter.
12391         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12392         Add target_ops parameter.
12393         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12394         Add target_ops parameter.
12395
12396 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12397             Markus Metzger  <markus.t.metzger@intel.com>
12398
12399         * record-btrace.c: Include frame-unwind.h.
12400         (record_btrace_frame_unwind_stop_reason)
12401         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12402         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12403         New.
12404         (init_record_btrace_ops): Install it.
12405
12406 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12407
12408         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12409         get_prev_frame_1.
12410
12411 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12412
12413         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12414         earlier.
12415
12416 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12417
12418         * frame-unwind.c: Include target.h.
12419         (frame_unwind_try_unwinder): New function with code from ...
12420         (frame_unwind_find_by_frame): ... here.  New variable
12421         unwinder_from_target, call also target_get_unwinder)
12422         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12423         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12424         * target.h (struct target_ops): New fields to_get_unwinder and
12425         to_get_tailcall_unwinder.
12426         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12427
12428 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12429
12430         * record-btrace.c (record_btrace_fetch_registers)
12431         (record_btrace_store_registers)
12432         (record_btrace_to_prepare_to_store): New.
12433         (init_record_btrace_ops): Add the above.
12434
12435 2014-01-16  Tom Tromey  <tromey@redhat.com>
12436
12437         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12438         * target.h (struct target_ops) <to_prepare_to_store>: Add
12439         argument.
12440         (target_prepare_to_store): Add argument.
12441         * target.c (debug_to_prepare_to_store): Add argument.
12442         (update_current_target): Update.
12443         * remote.c (remote_prepare_to_store): Add 'self' argument.
12444         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12445         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12446         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12447         * record-full.c (record_full_core_prepare_to_store): Add 'self'
12448         argument.
12449         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12450         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12451         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12452         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12453         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12454
12455 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12456
12457         * btrace.h (replay) <replay>: New.
12458         (btrace_is_replaying): New.
12459         * btrace.c (btrace_clear): Free replay iterator.
12460         (btrace_is_replaying): New.
12461         * record-btrace.c (record_btrace_is_replaying): New.
12462         (record_btrace_info): Print insn number if replaying.
12463         (record_btrace_insn_history): Start at replay position.
12464         (record_btrace_call_history): Start at replay position.
12465         (init_record_btrace_ops): Init to_record_is_replaying.
12466
12467 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12468
12469         * record-btrace.c (record_btrace_insn_history_range): Include
12470         end.
12471         (record_btrace_insn_history_from): Adjust range.
12472         (record_btrace_call_history_range): Include
12473         end.
12474         (record_btrace_call_history_from): Adjust range.
12475         * NEWS: Announce changes.
12476
12477 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12478
12479         * record.h (enum record_print_flag)
12480         <record_print_indent_calls>: New.
12481         * record.c (get_call_history_modifiers): Recognize /c modifier.
12482         (_initialize_record): Document /c modifier.
12483         * record-btrace.c (btrace_call_history): Add btinfo parameter.
12484         Reorder fields.  Optionally indent the function name.  Update
12485         all users.
12486         * NEWS: Announce changes.
12487
12488 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12489
12490         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12491
12492 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12493
12494         * btrace.c (ftrace_new_function): Start counting at one.
12495         * record-btrace.c (record_btrace_info): Adjust number of calls
12496         and insns.
12497         * NEWS: Announce it.
12498
12499 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12500
12501         * record-btrace.c (btrace_call_history_insn_range): Print
12502         insn range as [begin, end].
12503
12504 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12505
12506         * btrace.h (struct btrace_func_link): New.
12507         (enum btrace_function_flag): New.
12508         (struct btrace_inst): Rename to ...
12509         (struct btrace_insn): ...this. Update all users.
12510         (struct btrace_func) <ibegin, iend>: Remove.
12511         (struct btrace_func_link): New.
12512         (struct btrace_func): Rename to ...
12513         (struct btrace_function): ...this. Update all users.
12514         (struct btrace_function) <segment, flow, up, insn, insn_offset)
12515         (number, level, flags>: New.
12516         (struct btrace_insn_iterator): Rename to ...
12517         (struct btrace_insn_history): ...this.
12518         Update all users.
12519         (struct btrace_insn_iterator, btrace_call_iterator): New.
12520         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12521         (struct btrace_target_info) <begin, end, level>
12522         <insn_history, call_history>: New.
12523         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12524         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12525         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12526         (btrace_call_number, btrace_call_begin, btrace_call_end)
12527         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12528         (btrace_find_function_by_number, btrace_set_insn_history)
12529         (btrace_set_call_history): New.
12530         * btrace.c (btrace_init_insn_iterator)
12531         (btrace_init_func_iterator, compute_itrace): Remove.
12532         (ftrace_print_function_name, ftrace_print_filename)
12533         (ftrace_skip_file): Change
12534         parameter to const.
12535         (ftrace_init_func): Remove.
12536         (ftrace_debug): Use new btrace_function fields.
12537         (ftrace_function_switched): Also consider gaining and
12538         losing symbol information).
12539         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12540         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12541         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12542         New.
12543         (ftrace_new_function): Move. Remove debug print.
12544         (ftrace_update_lines, ftrace_update_insns): New.
12545         (ftrace_update_function): Check for call, ret, and jump.
12546         (compute_ftrace): Renamed to ...
12547         (btrace_compute_ftrace): ...this. Rewritten to compute call
12548         stack.
12549         (btrace_fetch, btrace_clear): Updated.
12550         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12551         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12552         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12553         (btrace_call_number, btrace_call_begin, btrace_call_end)
12554         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12555         (btrace_find_function_by_number, btrace_set_insn_history)
12556         (btrace_set_call_history): New.
12557         * record-btrace.c (require_btrace): Use new btrace thread
12558         info fields.
12559         (record_btrace_info, btrace_insn_history)
12560         (record_btrace_insn_history, record_btrace_insn_history_range):
12561         Use new btrace thread info fields and new iterator.
12562         (btrace_func_history_src_line): Rename to ...
12563         (btrace_call_history_src_line): ...this. Use new btrace
12564         thread info fields.
12565         (btrace_func_history): Rename to ...
12566         (btrace_call_history): ...this. Use new btrace thread info
12567         fields and new iterator.
12568         (record_btrace_call_history, record_btrace_call_history_range):
12569         Use new btrace thread info fields and new iterator.
12570
12571 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12572
12573         * frame.h (frame_id_build_unavailable_stack_special): New.
12574         * frame.c (frame_id_build_unavailable_stack_special): New.
12575
12576 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12577
12578         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12579         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12580         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12581         to gdbarch.
12582         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12583         (i386_insn_is_jump, i386_jmp_p): New.
12584         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12585         insn_is_jump to gdbarch.
12586         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12587         * gdbarch.h: Regenerated.
12588         * gdbarch.c: Regenerated.
12589         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12590         (default_insn_is_jump): New.
12591         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12592         (default_insn_is_jump): New.
12593
12594 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12595
12596         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12597         Change to ...
12598         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
12599         (btrace_read_type) <btrace_read_new>: Change to ...
12600         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
12601
12602 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12603
12604         * common/linux-btrace.c (linux_read_btrace): Free trace from
12605         previous iteration.
12606
12607 2014-01-15  Doug Evans  <dje@google.com>
12608
12609         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12610         uint32_t.
12611
12612 2014-01-15  Tom Tromey  <tromey@redhat.com>
12613
12614         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12615         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12616         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12617         (set_objfile_main_name): New function.
12618         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12619         language_of_main>: New fields.
12620         (set_objfile_main_name): Declare.
12621         * symtab.c (find_main_name): Loop over objfiles to find the main
12622         name and language.
12623         (set_main_name): Now static.
12624         (get_main_info): Add comment.
12625         * symtab.h (set_main_name): Don't declare.
12626
12627 2014-01-15  Tom Tromey  <tromey@redhat.com>
12628
12629         * symtab.c (main_progspace_key): New global.
12630         (struct main_info): New.
12631         (name_of_main, language_of_main): Remove.
12632         (get_main_info, main_info_cleanup): New function.
12633         (set_main_name, main_name, main_language): Use get_main_info.
12634         (_initialize_symtab): Initialize main_progspace_key.
12635
12636 2014-01-15  Tom Tromey  <tromey@redhat.com>
12637
12638         * dbxread.c (process_one_symbol): Update.
12639         * dwarf2read.c (read_partial_die): Update.
12640         * symfile.c (set_initial_language): Call main_language.
12641         * symtab.c (language_of_main): Now static.
12642         (set_main_name): Add 'lang' parameter.
12643         (find_main_name): Update.
12644         (main_language): New function.
12645         (symtab_observer_executable_changed): Update.
12646         * symtab.h (set_main_name): Update.
12647         (language_of_main): Remove.
12648         (main_language): Declare.
12649
12650 2014-01-15  Tom Tromey  <tromey@redhat.com>
12651
12652         * symfile.c (init_entry_point_info): Use new "initialized" field.
12653         Update.
12654         * objfiles.h (struct entry_point) <initialized>: New field.
12655         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12656         (struct objfile) <ei>: ...here.  Remove.
12657         * objfiles.c (entry_point_address_query): Update.
12658
12659 2014-01-15  Tom Tromey  <tromey@redhat.com>
12660
12661         * objfiles.c (entry_point_address_query): Relocate entry point
12662         address.
12663         (objfile_relocate1): Do not relocate entry point address.
12664         * objfiles.h (struct entry_info) <entry_point>: Update comment.
12665         <the_bfd_section_index>: New field.
12666         * symfile.c (init_entry_point_info): Find the entry point's
12667         section.
12668
12669 2014-01-15  Tom Tromey  <tromey@redhat.com>
12670
12671         * solib-frv.c (enable_break): Use entry_point_address_query.
12672
12673 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12674
12675         * NEWS: Add note on improved process record-replay on
12676         arm*-linux* targets.
12677
12678 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12679
12680         * arm-tdep.c (enum arm_record_result): New enum.
12681         (arm_record_unsupported_insn): New function.
12682         (arm_record_coproc_data_proc): Removed.
12683         (thumb2_record_ld_st_multiple): New function.
12684         (thumb2_record_ld_st_dual_ex_tbb): New function.
12685         (thumb2_record_data_proc_sreg_mimm): New function.
12686         (thumb2_record_ps_dest_generic): New function.
12687         (thumb2_record_branch_misc_cntrl): New function.
12688         (thumb2_record_str_single_data): New function.
12689         (thumb2_record_ld_mem_hints): New function.
12690         (thumb2_record_ld_word): New function.
12691         (thumb2_record_lmul_lmla_div): New function.
12692         (thumb2_record_decode_insn_handler): New function.
12693         (decode_insn): Add thumb32 instruction handlers.
12694
12695 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12696
12697         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12698         (struct arm_linux_record_tdep): Declare.
12699         (arm_canonicalize_syscall): New function.
12700         (arm_all_but_pc_registers_record): New function.
12701         (arm_linux_syscall_record): New function.
12702         (arm_linux_init_abi): Add syscall recording constructs.
12703         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12704         decoding.  (arm_record_coproc_data_proc): Update arm syscall
12705         decoding.
12706         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12707         <arm_syscall_record>: New field.
12708         * configure.tgt (arm*-*-linux*): Add linux-record.o to
12709         gdb_target_obs.
12710
12711 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12712
12713         * arm-tdep.c (thumb_record_misc): Update to use sp as base
12714         register for push instruction recording.
12715
12716 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12717
12718         * arm-tdep.c (thumb_record_misc): Update to correct logical
12719         error while recording ldm, ldmia and pop instructions.
12720
12721 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12722
12723         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12724
12725 2014-01-15  Pedro Alves  <palves@redhat.com>
12726
12727         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12728         (go32_resume, go32_fetch_registers, store_register)
12729         (go32_store_registers, go32_prepare_to_store)
12730         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12731         (go32_create_inferior, go32_can_run, go32_terminal_init)
12732         (go32_terminal_inferior, go32_terminal_ours): Delete forward
12733         declarations.
12734
12735 2014-01-15  Tom Tromey  <tromey@redhat.com>
12736
12737         * target.h (async_callback_ftype): New typedef.
12738         (struct target_ops) <to_async>: Use it.
12739
12740 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
12741
12742         * python/py-value.c (get_field_type): Remove unnecessary curly
12743         braces for single-statement if block.
12744
12745 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
12746
12747         * python/py-type.c (convert_field): Add missing empty line
12748         after declarations.
12749
12750 2014-01-14  Doug Evans  <dje@google.com>
12751
12752         * symfile.h (expand_symtabs_matching): Renamed from
12753         expand_partial_symbol_names.  Update prototype.
12754         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12755         * symfile.c (expand_symtabs_matching): Renamed from
12756         expand_partial_symbol_names.  New args file_matcher, kind.
12757         Rename arg fun to symbol_matcher.
12758         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12759         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12760         ada_expand_partial_symbol_name.
12761         (ada_make_symbol_completion_list): Update to call
12762         expand_symtabs_matching.
12763         (ada_add_global_exceptions): Call expand_symtabs_matching.
12764         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12765         call map_symbol_filenames.
12766         * symtab.c (sources_info): Update to call map_symbol_filenames.
12767         (search_symbols): Call expand_symtabs_matching.
12768         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12769         (default_make_symbol_completion_list_break_on): Update to call
12770         expand_symtabs_matching.
12771         (make_source_files_completion_list): Update to call
12772         map_symbol_filenames.
12773
12774 2014-01-14  Doug Evans  <dje@google.com>
12775
12776         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12777         (expand_symtabs_symbol_matcher_ftype): New typedef.
12778         (quick_symbol_functions.expand_symtabs_matching): Update to use.
12779         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12780         * symfile.c (expand_partial_symbol_names): Update to use
12781         expand_symtabs_symbol_matcher_ftype.
12782         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12783         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12784         Arg name_matcher renamed to symbol_matcher.
12785         * psymtab.c (recursively_search_psymtabs): Update to use
12786         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
12787         sym_matcher.
12788         (expand_symtabs_matching_via_partial): Update to use
12789         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12790         Arg name_matcher renamed to symbol_matcher.
12791
12792 2014-01-14  Doug Evans  <dje@google.com>
12793
12794         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12795         (map_partial_symbol_filenames): Ditto.
12796         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12797         (map_partial_symbol_filenames): Ditto.
12798         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12799         (map_partial_symbol_filenames): Ditto.
12800         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12801         (map_partial_symbol_filenames): Ditto.
12802         * symtab.c: Delete #include "psymtab.h".
12803
12804 2014-01-14  Pedro Alves  <palves@redhat.com>
12805             Tom Tromey  <tromey@redhat.com>
12806
12807         * infrun.c (use_displaced_stepping): Use find_record_target
12808         instead of RECORD_IS_USED.
12809         (adjust_pc_after_break): Use record_full_is_used instead of
12810         RECORD_IS_USED.
12811         * record-btrace.c (record_btrace_open): Call record_preopen
12812         instead of checking RECORD_IS_USED.
12813         * record-full.c (record_full_shortname)
12814         (record_full_core_shortname): New globals.
12815         (record_full_is_used): New function.
12816         (find_full_open): Call record_preopen instead of checking
12817         RECORD_IS_USED.
12818         (init_record_full_ops): Set the target's shortname to
12819         record_full_shortname.
12820         (init_record_full_core_ops): Set the target's shortname to
12821         record_full_core_shortname.
12822         * record-full.h (record_full_is_used): Declare.
12823         * record.c (find_record_target): Make extern.
12824         (record_preopen): New function.
12825         * record.h (RECORD_IS_USED): Delete macro.
12826         (find_record_target, record_preopen): Declare functions.
12827
12828 2014-01-14  Yao Qi  <yao@codesourcery.com>
12829
12830         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12831         'len''s type to ULONGEST.
12832         (core_xfer_shared_libraries_aix): Likewise.
12833         * gdbarch.c, gdbarch.h: Regenerated.
12834         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12835         Change type of 'len' to ULONGEST.
12836         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12837         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12838
12839 2014-01-14  Yao Qi  <yao@codesourcery.com>
12840
12841         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12842         type of 'len' to ULONGEST.
12843         (linux_xfer_osdata_processgroups): Likewise.
12844         (linux_xfer_osdata_threads): Likewise.
12845         (linux_xfer_osdata_fds): Likewise.
12846         (linux_xfer_osdata_isockets): Likewise.
12847         (linux_xfer_osdata_shm): Likewise.
12848         (linux_xfer_osdata_sem): Likewise.
12849         (linux_xfer_osdata_msg): Likewise.
12850         (linux_common_xfer_osdata): Likewise.
12851         (struct osdata_type) <getter>: Likewise.
12852         * common/linux-osdata.h (linux_common_xfer_osdata): Update
12853         the declaration.
12854
12855 2014-01-14  Yao Qi  <yao@codesourcery.com>
12856
12857         * target.h (target_xfer_partial_ftype): Update.
12858         (struct target_ops) <to_xfer_partial>: Change 'len' type to
12859         ULONGEST.
12860         * aix-thread.c (aix_thread_xfer_partial): Change type of
12861         argument 'len' to ULONGEST.
12862         * auxv.c (procfs_xfer_auxv): Likewise.
12863         (ld_so_xfer_auxv): Likewise.
12864         (memory_xfer_auxv): Likewise.
12865         * bfd-target.c (target_bfd_xfer_partial): Likewise.
12866         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12867         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12868         * corelow.c (core_xfer_partial): Likewise.
12869         * ctf.c (ctf_xfer_partial): Likewise.
12870         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
12871         '%u'.
12872         (darwin_read_dyld_info): Likewise.
12873         (darwin_xfer_partial): Likewise.
12874         * exec.c (section_table_xfer_memory_partial): Likewise.
12875         (exec_xfer_partial): Likewise.
12876         * exec.h (section_table_xfer_memory_partial): Update
12877         declaration.
12878         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
12879         instead of plongest.
12880         (gnu_xfer_partial): Likewise.
12881         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12882         (ia64_hpux_xfer_solib_got): Likewise.
12883         (ia64_hpux_xfer_partial): Likewise.
12884         * ia64-linux-nat.c (ia64_linux_xfer_partial):
12885         * inf-ptrace.c (inf_ptrace_xfer_partial):
12886         * inf-ttrace.c (inf_ttrace_xfer_partial):
12887         * linux-nat.c (linux_xfer_siginfo): Likewise.
12888         (linux_nat_xfer_partial): Likewise.
12889         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12890         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12891         * monitor.c (monitor_xfer_memory): Likewise.
12892         (monitor_xfer_partial): Likewise.
12893         * procfs.c (procfs_xfer_partial): Likewise.
12894         * record-full.c (record_full_xfer_partial): Likewise.
12895         (record_full_core_xfer_partial): Likewise.
12896         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
12897         instead of plongest.
12898         (gdbsim_xfer_partial): Likewise.
12899         * remote.c (remote_xfer_partial): Likewise.
12900         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12901         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12902         declaration.
12903         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12904         (rs6000_xfer_shared_libraries): Likewise.
12905         * sol-thread.c (sol_thread_xfer_partial): Likewise.
12906         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12907         (sparc_xfer_partial): Likewise.
12908         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12909         (spu_xfer_partial): Likewise.
12910         * spu-multiarch.c (spu_xfer_partial): Likewise.
12911         * target.c (target_read_live_memory): Likewise.
12912         (memory_xfer_live_readonly_partial): Likewise.
12913         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12914         (target_xfer_partial, default_xfer_partial): Likewise.
12915         (current_xfer_partial): Likewise.
12916         * tracepoint.c (tfile_xfer_partial): Likewise.
12917         * windows-nat.c (windows_xfer_memory): Likewise.  Call
12918         pulongest instead of plongest.
12919         (windows_xfer_partial): Likewise.
12920         (windows_xfer_shared_libraries): Likewise.
12921
12922 2014-01-14  Yao Qi  <yao@codesourcery.com>
12923
12924         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12925         target_xfer_partial_ftype.
12926
12927 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
12928
12929         PR python/15464
12930         PR python/16113
12931         * valops.c (value_struct_elt_bitpos): New function
12932         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12933         object to 'None' if the field name is an empty string ("").
12934         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12935         attribute to look for a field when 'name' is 'None'.
12936         (get_field_type): New function
12937
12938 2014-01-13  Doug Evans  <dje@google.com>
12939
12940         PR symtab/16426
12941         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12942         (try_open_dwop_file): Ditto.
12943         * gdb_bfd.c: #include "vec.h".
12944         (bfdp): New typedef.
12945         (struct gdb_bfd_data): New member included_bfds.
12946         (gdb_bfd_unref): Unref all included bfds.
12947         (gdb_bfd_record_inclusion): New function.
12948         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12949
12950 2014-01-13  Tom Tromey  <tromey@redhat.com>
12951
12952         * gdbcore.h (deprecated_core_resize_section_table): Remove.
12953
12954 2014-01-13  Tom Tromey  <tromey@redhat.com>
12955
12956         * defs.h (use_windows): Remove.
12957         * gdb.c (main): Update.
12958         * main.c (captured_main, gdb_main): Update.
12959         * main.h (struct captured_main_args) <use_windows>: Remove.
12960         * top.c (use_windows): Remove.
12961
12962 2014-01-13  Tom Tromey  <tromey@redhat.com>
12963
12964         * defs.h (deprecated_flush_hook): Remove.
12965
12966 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
12967
12968         PR threads/16216
12969         * linux-thread-db.c (try_thread_db_load): Add parameter
12970         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
12971         (try_thread_db_load_from_pdir_1): Move it there from here.
12972         (try_thread_db_load_from_sdir): Update caller.
12973         (try_thread_db_load_from_dir): Move it there from here.
12974
12975 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
12976
12977         * regformats/regdat.sh: Always rewrite the register file.
12978
12979 2014-01-13  Pedro Alves  <palves@redhat.com>
12980
12981         * Makefile.in (CHECK_HEADERS): New variable.
12982         (check-headers:): New rule.
12983
12984 2014-01-13  Tom Tromey  <tromey@redhat.com>
12985
12986         * cli/cli-setshow.c (do_set_command): Update.
12987         * defs.h (deprecated_set_hook): Remove.
12988         * top.c (deprecated_set_hook): Remove.
12989
12990 2014-01-13  Pedro Alves  <palves@redhat.com>
12991
12992         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12993         the tracepoint if the PC is a pseudo-register.
12994
12995 2014-01-13  Tom Tromey  <tromey@redhat.com>
12996
12997         * defs.h (XCALLOC): Remove.
12998         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12999         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
13000         * dwarf2loc.c (allocate_piece_closure): Likewise.
13001         * elfread.c (elf_symfile_segments): Likewise.
13002         (elf_symfile_segments): Likewise.
13003         * gdbtypes.c (copy_type_recursive): Likewise.
13004         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
13005         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
13006         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
13007         XCALLOC.
13008         * mt-tdep.c (mt_gdbarch_init): Likewise.
13009         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
13010         XCALLOC.
13011         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
13012         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
13013         * registry.c (registry_alloc_data): Likewise.
13014         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
13015         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
13016         * serial.c (serial_fdopen_ops): Likewise.
13017         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
13018         XCALLOC.
13019         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
13020         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
13021         not XCALLOC.
13022
13023 2014-01-13  Tom Tromey  <tromey@redhat.com>
13024
13025         * defs.h (XMALLOC): Remove.
13026         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
13027         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
13028         * cli-out.c (struct ui_out *): Likewise.
13029         * cli/cli-dump.c (add_dump_command): Likewise.
13030         (add_dump_command): Likewise.
13031         * complaints.c (get_complaints): Likewise.
13032         (find_complaint): Likewise.
13033         * dwarf2-frame.c (execute_cfa_program): Likewise.
13034         * dwarf2read.c (abbrev_table_read_table): Likewise.
13035         * gdbarch.sh: Likewise.
13036         * gdbarch.c: Rebuild.
13037         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
13038         * interps.c (interp_new): Likewise.
13039         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
13040         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
13041         * mi/mi-console.c (mi_console_file_new): Likewise.
13042         * mi/mi-interp.c (mi_interpreter_init): Likewise.
13043         * mi/mi-out.c (mi_out_new): Likewise.
13044         * mi/mi-parse.c (mi_parse): Likewise.
13045         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
13046         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
13047         * observer.c (xalloc_observer_list_node): Likewise.
13048         * regcache.c (regcache_xmalloc_1): Likewise.
13049         * reggroups.c (reggroup_new): Likewise.
13050         (_initialize_reggroup): Likewise.
13051         * registry.c (register_data_with_cleanup): Likewise.
13052         * remote.c (remote_notif_stop_alloc_reply): Likewise.
13053         * ser-base.c (serial_ttystate): Likewise.
13054         * ser-mingw.c (make_pipe_state): Likewise.
13055         * ser-pipe.c (pipe_open): Likewise.
13056         * serial.c (serial_open): Likewise.
13057         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
13058         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
13059         (tui_alloc_win_info): Likewise.
13060         (tui_add_content_elements): Likewise.
13061         * tui/tui-file.c (tui_file_new): Likewise.
13062         * tui/tui-out.c (tui_out_new): Likewise.
13063         * ui-file.c (mem_file_new): Likewise.
13064         * ui-out.c (push_level): Likewise.
13065         (make_cleanup_ui_out_end): Likewise.
13066         (append_header_to_list): Likewise.
13067         (ui_out_new): Likewise.
13068         * user-regs.c (user_reg_add_builtin): Likewise.
13069
13070 2014-01-13  Tom Tromey  <tromey@redhat.com>
13071
13072         * defs.h (XZALLOC): Remove.
13073         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
13074         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
13075         (get_ada_tasks_inferior_data): Likewise.
13076         * auto-load.c (get_auto_load_pspace_data): Likewise.
13077         * auxv.c (get_auxv_inferior_data): Likewise.
13078         * bfd-target.c (target_bfd_reopen): Likewise.
13079         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
13080         (deprecated_insert_raw_breakpoint): Likewise.
13081         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
13082         * corelow.c (core_open): Likewise.
13083         * darwin-nat.c (darwin_check_new_threads): Likewise.
13084         (darwin_attach_pid): Likewise.
13085         * dummy-frame.c (dummy_frame_push): Likewise.
13086         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
13087         * dwarf2loc.c (allocate_piece_closure): Likewise.
13088         * elfread.c (elf_symfile_segments): Likewise.
13089         * eval.c (ptrmath_type_p): Likewise.
13090         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
13091         * gdbtypes.c (alloc_type_arch): Likewise.
13092         (alloc_type_instance): Likewise.
13093         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
13094         * inf-child.c (inf_child_can_use_agent): Likewise.
13095         * inflow.c (get_inflow_inferior_data): Likewise.
13096         * infrun.c (save_infcall_suspend_state): Likewise.
13097         * jit.c (jit_reader_load): Likewise.
13098         (get_jit_objfile_data): Likewise.
13099         (get_jit_program_space_data): Likewise.
13100         (jit_object_open_impl): Likewise.
13101         (jit_symtab_open_impl): Likewise.
13102         (jit_block_open_impl): Likewise.
13103         (jit_frame_sniffer): Likewise.
13104         * linux-fork.c (add_fork): Likewise.
13105         * maint.c (make_command_stats_cleanup): Likewise.
13106         * objfiles.c (get_objfile_pspace_data): Likewise.
13107         * opencl-lang.c (struct lval_closure): Likewise.
13108         * osdata.c (osdata_start_osdata): Likewise.
13109         * progspace.c (new_address_space): Likewise.
13110         (add_program_space): Likewise.
13111         * remote-sim.c (get_sim_inferior_data): Likewise.
13112         * sh-tdep.c (sh_gdbarch_init): Likewise.
13113         * skip.c (Ignore): Likewise.
13114         (skip_delete_command): Likewise.
13115         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
13116         (library_list_start_library): Likewise.
13117         (solib_aix_current_sos): Likewise.
13118         * solib-darwin.c (get_darwin_info): Likewise.
13119         (darwin_current_sos): Likewise.
13120         * solib-dsbt.c (get_dsbt_info): Likewise.
13121         * solib-ia64-hpux.c (new_so_list): Likewise.
13122         (ia64_hpux_get_solib_linkage_addr): Likewise.
13123         * solib-spu.c (append_ocl_sos): Likewise.
13124         (spu_current_sos): Likewise.
13125         * solib-svr4.c (get_svr4_info): Likewise.
13126         (svr4_keep_data_in_core): Likewise.
13127         (library_list_start_library): Likewise.
13128         (svr4_default_sos): Likewise.
13129         (svr4_read_so_list): Likewise.
13130         * solib-target.c (library_list_start_library): Likewise.
13131         (solib_target_current_sos): Likewise.
13132         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13133         * symfile-debug.c (install_symfile_debug_logging): Likewise.
13134         * symfile.c (default_symfile_segments): Likewise.
13135         * target-descriptions.c (tdesc_data_init): Likewise.
13136         (tdesc_create_reg): Likewise.
13137         (struct tdesc_type *): Likewise.
13138         (tdesc_create_vector): Likewise.
13139         (tdesc_set_struct_size): Likewise.
13140         (struct tdesc_type *): Likewise.
13141         (tdesc_free_feature): Likewise.
13142         (tdesc_create_feature): Likewise.
13143         * windows-nat.c (windows_add_thread): Likewise.
13144         (windows_make_so): Likewise.
13145         * xml-support.c (gdb_xml_body_text): Likewise.
13146         (gdb_xml_create_parser_and_cleanup): Likewise.
13147         (xml_process_xincludes): Likewise.
13148         * xml-syscall.c (allocate_syscalls_info): Likewise.
13149         (syscall_create_syscall_desc): Likewise.
13150
13151 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
13152
13153         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13154         function, with code from i386_stap_parse_special_token.
13155         (i386_stap_parse_special_token_three_arg_disp): Likewise.
13156         (i386_stap_parse_special_token): Move code to the two functions
13157         above; simplify it.
13158
13159 2014-01-09  Pedro Alves  <palves@redhat.com>
13160             Hui Zhu  <hui@codesourcery.com>
13161
13162         PR gdb/16101
13163         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13164         bp_err_string.  Don't mark the location shlib_disabled if the
13165         error thrown wasn't a generic or memory error.  Catch errors
13166         thrown while inserting breakpoints in overlayed code.  Output
13167         error message of software breakpoints.
13168         * remote.c (remote_insert_breakpoint): If this breakpoint has
13169         target-side commands but this stub doesn't support Z0 packets,
13170         throw NOT_SUPPORTED_ERROR error.
13171         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13172         * target.h (target_insert_breakpoint): Extend comment.
13173         (target_insert_hw_breakpoint): Add comment.
13174
13175 2014-01-08  Pedro Alves  <palves@redhat.com>
13176
13177         * remote.c (remote_add_thread): Add threads silently if starting
13178         up.
13179         (remote_notice_new_inferior): If in all-stop, and starting up,
13180         don't call notice_new_inferior.
13181         (get_current_thread): New function, factored out from ...
13182         (add_current_inferior_and_thread): ... this.  Adjust.
13183         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
13184         found any thread, then select the remote's current thread as GDB's
13185         current thread too.
13186
13187 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
13188
13189         * NEWS: Create a new section for the next release branch.
13190         Rename the section of the current branch, now that it has
13191         been cut.
13192
13193 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
13194
13195         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13196         * version.in: Bump version to 7.7.50.DATE-cvs.
13197
13198 2014-01-08  Yao Qi  <yao@codesourcery.com>
13199
13200         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13201         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
13202         (spu_xfer_partial): Cast 'buf' to 'const char *'.
13203
13204 2014-01-08  Yao Qi  <yao@codesourcery.com>
13205
13206         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13207         return value of bfd_get_filename to symbol_file_add_from_bfd.
13208
13209 2014-01-08  Pierre Muller  <muller@sourceware.org>
13210
13211         Fix PR16201.
13212         * coff-pe-read.c (struct read_pe_section_data): Add index field.
13213         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13214         to prim_record_mininal_symbol_and_info.
13215         (add_pe_forwarded_sym): Use known section number of forwarded symbol
13216         in call to prim_record_minimal_symbol_and_info.
13217         (read_pe_exported_syms): Set index field of section_data.
13218
13219 2014-01-07  Andrew Pinski  <apinski@cavium.com>
13220
13221         * features/aarch64-core.xml (cpsr): Change to be 64bit.
13222         * features/aarch64.c: Regenerate.
13223
13224 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
13225
13226         * target.c (return_null): Define.
13227         (update_current_target): Use it instead of return_zero for
13228         functions that return a pointer.
13229
13230 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
13231
13232         * source.c (add_path): Fix check for duplicated paths in the previously
13233         included paths.
13234
13235 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
13236
13237         * ada-lang.c: Remove duplicated include statements.
13238         * alphabsd-nat.c: Ditto.
13239         * amd64-darwin-tdep.c: Ditto.
13240         * amd64fbsd-nat.c: Ditto.
13241         * auto-load.c: Ditto.
13242         * ax-gdb.c: Ditto.
13243         * breakpoint.c: Ditto.
13244         * dbxread.c: Ditto.
13245         * fork-child.c: Ditto.
13246         * gdb_usleep.c: Ditto.
13247         * i386-darwin-tdep.c: Ditto.
13248         * i386fbsd-nat.c: Ditto.
13249         * infcmd.c: Ditto.
13250         * inferior.c: Ditto.
13251         * jv-lang.c: Ditto.
13252         * linux-nat.c: Ditto.
13253         * linux-tdep.c: Ditto.
13254         * m68kbsd-nat.c: Ditto.
13255         * m68klinux-nat.c: Ditto.
13256         * microblaze-tdep.c: Ditto.
13257         * mips-linux-tdep.c: Ditto.
13258         * mn10300-tdep.c: Ditto.
13259         * nto-tdep.c: Ditto.
13260         * opencl-lang.c: Ditto.
13261         * osdata.c: Ditto.
13262         * printcmd.c: Ditto.
13263         * regcache.c: Ditto.
13264         * remote-m32r-sdi.c: Ditto.
13265         * remote.c: Ditto.
13266         * symfile.c: Ditto.
13267         * symtab.c: Ditto.
13268         * tilegx-linux-nat.c: Ditto.
13269         * tilegx-tdep.c: Ditto.
13270         * tracepoint.c: Ditto.
13271         * valops.c: Ditto.
13272         * vaxbsd-nat.c: Ditto.
13273         * windows-nat.c: Ditto.
13274         * xtensa-tdep.c: Ditto.
13275
13276 2014-01-07  Yao Qi  <yao@codesourcery.com>
13277
13278         * spu-linux-nat.c (_initialize_spu_nat): Declare.
13279
13280 2014-01-07  Yao Qi  <yao@codesourcery.com>
13281             Joel Brobecker  <brobecker@adacore.com>
13282
13283         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13284         (pdc_write_regs): Likewise.
13285         (fetch_regs_kernel_thread): Likewise.
13286         (store_regs_kernel_thread): Likewise.
13287
13288 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13289
13290         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13291         tagged type objects to their actual type.
13292
13293 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13294
13295         * ada-valprint.c (print_field_values): Add "language" parameter.
13296         Update calls to print_field_values and print_variant_part.
13297         Pass new parameter "language" in call to val_print instead
13298         of "current_language".  Replace call to ada_val_print by call
13299         to val_print.
13300         (print_variant_part): Add "language" parameter.
13301         (ada_val_print_struct_union): Update call to print_field_values.
13302
13303 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13304
13305         * ada-valprint.c (ui_memcpy): Delete.
13306         (ada_print_floating): Update documentation.  Add empty line
13307         between between function documentation and implementation.
13308         Delete variable "buffer".  Use ui_file_xstrdup in place of
13309         ui_file_put.  Minor adjustments following this change.
13310
13311 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13312
13313         * ada-valprint.c (ada_val_print_string): New function,
13314         extracted from ada_val_print_array.
13315         (ada_val_print_array): Replace extracted code by call
13316         to ada_val_print_string followed by a return.  Move
13317         "else" branch to the function's top block.
13318
13319 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13320
13321         * ada-valprint.c (ada_val_print_array): Move implementation
13322         down.  Rename parameter "offset" and "val" into "offset_aligned"
13323         and "original_value" respectively.  Add parameter "offset".
13324
13325 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13326
13327         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13328         re-organizing the code. Change the "???" message printed
13329         when target type is a TYPE_CODE_UNDEF into
13330         "<ref to undefined type>".
13331
13332 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13333
13334         * ada-valprint.c (print_record): Delete, implementation inlined...
13335         (ada_val_print_struct_union): ... here.  Remove call to
13336         ada_check_typedef in inlined implementation.
13337
13338 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13339
13340         * ada-valprint.c (ada_val_print_gnat_array): New function,
13341         extracted from ada_val_print_1;
13342         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13343         (ada_val_print_flt, ada_val_print_struct_union)
13344         (ada_val_print_ref): Likewise.
13345         (ada_val_print_1): Delete variables i and elttype.
13346         Replace extracted-out code by call to corresponding
13347         new functions.
13348
13349 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13350
13351         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13352
13353 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13354
13355         * ada-valprint.c (ada_val_print_1): Replace calls to
13356         ada_val_print_1 by calls to val_print.
13357
13358 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13359
13360         * ada-valprint.c (ada_val_print_1): Add parameter "language".
13361         Update calls to self accordingly.  Replace calls to c_val_print
13362         by calls to val_print.
13363
13364 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13365
13366         * ada-valprint.c (print_record): Delete declaration.
13367         (adjust_type_signedness, ada_val_print_1): Likewise.
13368         (ada_val_print): Move function implementation down.
13369         (print_variant_part, print_field_values, print_record):
13370         Move function implementation up.
13371
13372 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13373
13374         * python/py-type.c (typy_get_name): New function.
13375         (type_object_getset): Add entry for attribute "name".
13376         * NEWS: Add entry mentioning this new attribute.
13377
13378 2014-01-07  Yao Qi  <yao@codesourcery.com>
13379
13380         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13381         statement.
13382
13383 2014-01-07  Yao Qi  <yao@codesourcery.com>
13384
13385         * gnu-nat.c (info_port_rights): Add qualifier const to
13386         argument args.
13387
13388 2014-01-07  Yao Qi  <yao@codesourcery.com>
13389
13390         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13391
13392 2014-01-07  Yao Qi  <yao@codesourcery.com>
13393
13394         * gnu-nat.c (make_inf) Update declaration.
13395         (make_inf): Make it static.
13396         (inf_set_traced): Likewise.
13397         (inf_port_to_thread, inf_task_died_status): Likewise.
13398
13399 2014-01-07  Yao Qi  <yao@codesourcery.com>
13400
13401         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13402
13403 2014-01-07  Yao Qi  <yao@codesourcery.com>
13404
13405         * gnu-nat.c (_initialize_gnu_nat): Declare.
13406
13407 2014-01-07  Yao Qi  <yao@codesourcery.com>
13408
13409         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13410         'enum bfd_endian'.
13411         (struct gdbarch_info) <byte_order>: Change type to
13412         'enum bfd_endian'.
13413         <byte_order_for_code>: Likewise.
13414         * gdbarch.c, gdbarch.h: Regenerated.
13415
13416 2014-01-06  Sasha Smundak  <asmundak@google.com>
13417
13418         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13419
13420 2014-01-06  Tom Tromey  <tromey@redhat.com>
13421
13422         * doublest.c (convert_doublest_to_floatformat): Use const, not
13423         CONST.
13424         * somread.c (som_symtab_read): Likewise.
13425
13426 2014-01-07  Hui Zhu  <hui@codesourcery.com>
13427
13428         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13429         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13430         (gdb_bfd_fopen): Ditto.
13431         (gdb_bfd_openr): Ditto.
13432         (gdb_bfd_openw): Ditto.
13433         (gdb_bfd_openr_iovec): Ditto.
13434         (gdb_bfd_fdopenr): Ditto.
13435         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13436         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13437         with xstrdup.
13438         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13439         with xstrdup.
13440         * symfile-mem.c (symbol_file_add_from_memory): Removed
13441         gdb_bfd_stash_filename.
13442
13443 2014-01-03  Doug Evans  <dje@google.com>
13444
13445         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13446         output.
13447
13448 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
13449
13450         Update year range in copyright notice of all files.
13451
13452 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
13453
13454         * top.c (print_gdb_version): Set copyright year to 2014.
13455
13456 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
13457
13458         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13459
13460 For older changes see ChangeLog-2013.
13461 \f
13462 Local Variables:
13463 mode: change-log
13464 left-margin: 8
13465 fill-column: 74
13466 version-control: never
13467 coding: utf-8
13468 End: