M88K: Migrate from 'regset_from_core_section' to 'iterate_over_regset_sections'
[external/binutils.git] / gdb / ChangeLog
1 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2
3         * m88k-tdep.c (m88k_regset_from_core_section): Remove.
4         (m88k_iterate_over_regset_sections): New.
5         (m88k_gdbarch_init): Adjust gdbarch initialization.
6
7 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
8
9         * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
10         (ia64_linux_iterate_over_regset_sections): New.
11         (ia64_linux_init_abi): Adjust gdbarch initialization.
12
13 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
14
15         * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
16         (m68kbsd_iterate_over_regset_sections): New.
17         (m68kbsd_init_abi): Adjust gdbarch initialization.
18         * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
19         (m68k_linux_iterate_over_regset_sections): New.
20         (m68k_linux_init_abi): Adjust gdbarch initialization.
21
22 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
23
24         * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
25         (m32r_linux_regset_from_core_section): Remove.
26         (m32r_linux_iterate_over_regset_sections): New.
27         (m32r_linux_init_abi): Adjust gdbarch initialization.
28
29 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
30
31         * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
32         (amd64obsd_iterate_over_regset_sections): New.
33         (amd64obsd_core_init_abi): Adjust gdbarch initialization.
34         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
35         Remove.
36         (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset.  Drop
37         regset_from_core_section initialization.
38         * i386-tdep.c (i386_regset_from_core_section): Remove.
39         (i386_iterate_over_regset_sections): New.
40         (i386_gdbarch_init): Adjust gdbarch initialization.
41         * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
42         (i386_iterate_over_regset_sections): New prototype.
43         * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
44         Remove.
45         (i386obsd_aout_iterate_over_regset_sections): New.
46         (i386obsd_aout_init_abi): Adjust gdbarch initialization.
47         * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
48         targets.
49         * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
50         (amd64fbsd_init_abi): Call fbsd_init_abi.
51         * i386fbsd-tdep.c (fbsd-tdep.h): Include.
52         (i386fbsd4_init_abi): Call fbsd_init_abi.
53         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
54         target method 'make_corefile_notes'.
55         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
56
57 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
58
59         * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
60         (hppa_hpux_iterate_over_regset_sections): New.
61         (hppa_hpux_init_abi): Adjust gdbarch initialization.
62         * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
63         (hppa_linux_iterate_over_regset_sections): New.
64         (hppa_linux_init_abi): Adjust.
65         * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
66         (hppanbsd_iterate_over_regset_sections): New.
67         (hppanbsd_init_abi): Adjust.
68         * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
69         (hppaobsd_iterate_over_regset_sections): New.
70         (hppaobsd_init_abi): Adjust.
71
72 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
73
74         * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
75         (frv_linux_iterate_over_regset_sections): New.
76         (frv_linux_init_abi): Adjust gdbarch initialization.
77
78 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
79
80         * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
81         (armbsd_iterate_over_regset_sections): New prototype.
82         * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
83         (armbsd_iterate_over_regset_sections): New.
84         * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
85         initialization.
86
87 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
88
89         * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
90         (alpha_linux_iterate_over_regset_sections): New.
91         (alpha_linux_init_abi): Adjust gdbarch initialization.
92         * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
93         prototype.
94         (alphanbsd_iterate_over_regset_sections): New prototype.
95
96 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
97
98         * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
99         Remove.
100         (aarch64_linux_iterate_over_regset_sections): New.
101         (aarch64_linux_init_abi): Adjust gdbarch initialization.
102
103 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
104
105         * fbsd-tdep.c: New file.
106         * fbsd-tdep.h: New file.
107         * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
108         (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
109         (ALLDEPFILES): Add fbsd-tdep.c.
110
111 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
112
113         * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
114         parameter.
115         * gdbarch.h: Regenerate.
116         * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
117         iterator.
118         (get_core_register_section): Add parameter 'regset' and use it, if
119         set.  Add parameter 'min_size' and verify the bfd section size
120         against it.
121         (get_core_registers_cb): Add parameter 'regset' and pass it to
122         get_core_register section.  For the "standard" register sections
123         ".reg" and ".reg2", set an appropriate default for human_name.
124         (get_core_registers): Don't abort when the gdbarch has an iterator
125         but no regset_from_core_section.  Add NULL/0 for parameters
126         'regset'/'min_size' in calls to get_core_register_section.
127         * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
128         'regset' and use it instead of calling the
129         regset_from_core_section gdbarch method.
130         * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
131         * i386-tdep.c (i386_supply_xstateregset)
132         (i386_collect_xstateregset, i386_xstateregset): Moved to
133         i386-linux-tdep.c.
134         (i386_regset_from_core_section): Drop handling for .reg-xfp and
135         .reg-xstate.
136         (i386_gdbarch_init): Set tdep field 'fpregset'.  Enable generic
137         core file support only if the regset iterator hasn't been set.
138         * i386-linux-tdep.c (i386_linux_supply_xstateregset)
139         (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
140         Moved from i386-tdep.c and renamed to *_linux*.
141         (i386_linux_iterate_over_regset_sections): Add regset parameter to
142         each callback invocation.  Allow any .reg-xstate size when reading
143         from a core file.
144         * amd64-tdep.c (amd64_supply_xstateregset)
145         (amd64_collect_xstateregset, amd64_xstateregset): Moved to
146         amd64-linux-tdep.c.
147         (amd64_regset_from_core_section): Remove.
148         (amd64_init_abi): Set new tdep field 'fpregset'.  No longer
149         install an amd64-specific regset_from_core_section gdbarch method.
150         * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
151         (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
152         Moved from amd64-tdep.c and renamed to *_linux*.
153         (amd64_linux_iterate_over_regset_sections): Add regset parameter
154         to each callback invocation.  Allow any .reg-xstate size when
155         reading from a core file.
156         * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
157         (arm_linux_iterate_over_regset_sections): Add regset parameter to
158         each callback invocation.
159         (arm_linux_init_abi): No longer set the regset_from_core_section
160         gdbarch method.
161         * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
162         (ppc_linux_iterate_over_regset_sections): Add regset parameter to
163         each callback invocation.
164         (ppc_linux_init_abi): No longer set the regset_from_core_section
165         gdbarch method.
166         * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
167         gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
168         (s390_regset_from_core_section): Remove.
169         (s390_iterate_over_regset_sections): Add regset parameter to each
170         callback invocation.
171         (s390_gdbarch_init): No longer set the regset_from_core_section
172         gdbarch method.  Drop initialization of deleted tdep fields.
173
174 2014-09-30  Andreas Arnez  <arnez@linux.vnet.ibm.com>
175
176         * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
177         (amd64_linux_iterate_over_regset_sections): New.
178         (amd64_linux_init_abi_common): Don't install the regset section
179         list, but the new iterator in gdbarch.
180         * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
181         (arm_linux_vfp_regset_sections): Remove.  Move combined logic...
182         (arm_linux_iterate_over_regset_sections): ...here.  New function.
183         (arm_linux_init_abi): Set iterator instead of section list.
184         * corelow.c (get_core_registers_cb): New function, logic moved
185         from...
186         (get_core_registers): ...loop body here.  Use new iterator method
187         instead of walking through the regset section list.
188         * gdbarch.sh: Remove 'core_regset_sections'.  New method
189         'iterate_over_regset_sections'.  New typedef
190         'iterate_over_regset_sections_cb'.
191         * gdbarch.c: Regenerate.
192         * gdbarch.h: Likewise.
193         * i386-linux-tdep.c (i386_linux_regset_sections)
194         (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
195         Remove.
196         (i386_linux_iterate_over_regset_sections): New.
197         (i386_linux_init_abi): Don't choose a regset section list, but
198         install new iterator in gdbarch.
199         * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
200         (linux_collect_regset_section_cb): New function, logic moved
201         from...
202         (linux_collect_thread_registers): ...loop body here.  Use iterator
203         method instead of walking through list.
204         (linux_make_corefile_notes_1): Check for presence of iterator
205         method instead of regset section list.
206         * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
207         (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
208         (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
209         (ppc64_linux_fp_regset_sections): Remove.  Move combined logic...
210         (ppc_linux_iterate_over_regset_sections): ...here.  New function.
211         (ppc_linux_init_abi): Don't choose from above regset section
212         lists, but install new iterator in gdbarch.
213         * regset.h (struct core_regset_section): Remove.
214         * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
215         have_linux_v1, have_linux_v2, and have_tdb.
216         (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
217         (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
218         (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
219         (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
220         (s390x_linux64v2_regset_sections): Remove.  Move combined logic...
221         (s390_iterate_over_regset_sections): ...here.  New function.  Use
222         new tdep fields.
223         (s390_gdbarch_init): Set new tdep fields.  Don't choose from above
224         regset section lists, but install new iterator.
225
226 2014-09-29  Jan Kratochvil  <jan.kratochvil@redhat.com>
227
228         * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
229
230 2014-09-26  Simon Marchi  <simon.marchi@ericsson.com>
231
232         * progspace.c (print_program_space): Don't prune program spaces
233         before printing them.
234
235 2014-09-25  Pedro Alves  <palves@redhat.com>
236
237         * infrun.c (user_visible_resume_ptid): Don't check
238         singlestep_breakpoints_inserted_p.
239
240 2014-09-25  Pedro Alves  <palves@redhat.com>
241
242         * breakpoint.c (should_be_inserted): Add debug output.
243
244 2014-09-25  Pedro Alves  <palves@redhat.com>
245
246         * infrun.c (stepping_past_instruction_at)
247         (clear_exit_convenience_vars): Point at infrun.h instead of
248         inferior.h.
249         (handle_signal_stop): Fix typo.
250
251 2014-09-24  Yao Qi  <yao@codesourcery.com>
252
253         * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
254         bitmask.
255
256 2014-09-22  Gary Benson  <gbenson@redhat.com>
257
258         * target.c (target_stop): Updated comment.
259
260 2014-09-22  Gary Benson  <gbenson@redhat.com>
261
262         * target/target.h (target_stop_ptid): Renamed as...
263         (target_stop_and_wait): New function.  Updated comment.
264         All uses updated.
265         (target_continue_ptid): Renamed as...
266         (target_continue_no_signal): New function.  Updated comment.
267         All uses updated.
268
269 2014-09-22  Pedro Alves  <palves@redhat.com>
270
271         * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
272         and "auto" merged.
273         * breakpoint.c (enum ugll_insert_mode): New enum.
274         (always_inserted_mode): Now a plain boolean.
275         (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
276         (breakpoints_always_inserted_mode): Delete.
277         (breakpoints_should_be_inserted_now): New function.
278         (insert_breakpoints): Pass UGLL_INSERT to
279         update_global_location_list instead of calling
280         insert_breakpoint_locations manually.
281         (create_solib_event_breakpoint_1): New, factored out from ...
282         (create_solib_event_breakpoint): ... this.
283         (create_and_insert_solib_event_breakpoint): Use
284         create_solib_event_breakpoint_1 instead of calling
285         insert_breakpoint_locations manually.
286         (update_global_location_list): Change parameter type from boolean
287         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
288         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
289         (update_global_location_list_nothrow): Change parameter type from
290         boolean to enum ugll_insert_mode.
291         (_initialize_breakpoint): "breakpoint always-inserted" option is
292         now a boolean command.  Update help text.
293         * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
294         (breakpoints_should_be_inserted_now): New declaration.
295         * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
296         Remove breakpoints_always_inserted_mode check.
297         (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
298         * remote.c (remote_start_remote): Likewise.
299
300 2014-09-22  Pedro Alves  <palves@redhat.com>
301
302         * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
303         (insert_breakpoints): Don't call insert_breakpoint_locations here.
304         Instead, pass UGLL_INSERT to update_global_location_list.
305         (update_global_location_list): Change parameter type from boolean
306         to enum ugll_insert_mode.  All callers adjusted.  Adjust to use
307         breakpoints_should_be_inserted_now and handle UGLL_INSERT.
308         (create_solib_event_breakpoint_1): New, factored out from ...
309         (create_solib_event_breakpoint): ... this.
310         (create_and_insert_solib_event_breakpoint): Use
311         create_solib_event_breakpoint_1 instead of calling
312         insert_breakpoint_locations manually.
313         (update_global_location_list): Handle UGLL_INSERT.
314
315 2014-09-22  Pedro Alves  <palves@redhat.com>
316
317         * breakpoint.c (enum ugll_insert_mode): New enum.
318         (update_global_location_list)
319         (update_global_location_list_nothrow): Change parameter type from
320         boolean to enum ugll_insert_mode.  All callers adjusted.
321
322 2014-09-19  Joel Brobecker  <brobecker@adacore.com>
323
324         * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
325         SystemTap support in GDB.
326
327 2014-09-19  Don Breazeal  <donb@codesourcery.com>
328
329         * linux-nat.c (linux_handle_extended_wait): Call
330         linux_ptrace_get_extended_event.
331         (wait_lwp): Call linux_is_extended_waitstatus.
332         (linux_nat_filter_event): Call linux_ptrace_get_extended_event
333         and linux_is_extended_waitstatus.
334         * nat/linux-ptrace.c (linux_test_for_tracefork): Call
335         linux_ptrace_get_extended_event.
336         (linux_ptrace_get_extended_event): New function.
337         (linux_is_extended_waitstatus): New function.
338         * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
339         (linux_is_extended_waitstatus): New declarations.
340
341 2014-09-19  Yao Qi  <yao@codesourcery.com>
342
343         * dwarf2read.c (dwarf_decode_lines): Update declaration.
344         (handle_DW_AT_stmt_list): Add argument 'lowpc'.  Update
345         comments.  Callers update.
346         (dwarf_decode_lines): Likewise.
347         (dwarf_decode_lines_1): Add argument 'lowpc'.  Update
348         comments.  Skip the line table if  'lowpc' is greater than
349         'address'.  Don't check
350         dwarf2_per_objfile->has_section_at_zero.
351
352 2014-09-18  Doug Evans  <dje@google.com>
353
354         * NEWS: Mention new "producer" attribute of gdb.Symtab.
355         * python/py-symtab.c (stpy_get_producer): New function.
356         (symtab_object_getset): Add "producer" attribute.
357
358 2014-09-17  Ulrich Weigand  <uweigand@de.ibm.com>
359
360         PR gdb/17384
361         * corefile.c (struct captured_read_memory_integer_arguments): Remove.
362         (do_captured_read_memory_integer): Remove.
363         (safe_read_memory_integer): Use target_read_memory directly instead
364         of catching errors in do_captured_read_memory_integer.
365
366 2014-09-16  Maciej W. Rozycki  <macro@codesourcery.com>
367
368         * CONTRIBUTE (Coding Standards): For internals refer to wiki,
369         not gdb/doc.
370
371 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
372
373         * objc-lang.c (find_implementation_from_class): Remove dead code.
374
375 2014-09-16  Sergio Durigan Junior  <sergiodj@redhat.com>
376
377         PR cli/7233
378         * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
379         "fprintf_unfiltered (gdb_stdlog...)".
380
381 2014-09-16  Patrick Palka  <patrick@parcs.ath.cx>
382
383         PR breakpoints/12526
384         * breakpoint.h (struct watchpoint): New fields val_bitpos and
385         val_bitsize.
386         * breakpoint.c (watch_command_1): Use these fields to retain
387         bitfield information.
388         (extract_bitfield_from_watchpoint_value): New function.
389         (watchpoint_check): Use it.
390         (update_watchpoint): Use it.  Optimize the address and length of a
391         HW watchpoint pointing to a bitfield.
392         * value.h (unpack_value_bitfield): New prototype.
393         * value.c (unpack_value_bitfield): Make extern.
394
395 2014-09-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
396
397         * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
398         x86-dregs.o.
399         * gnu-nat.c (inf_threads): New function.
400         * gnu-nat.h (inf_threads_ftype): New typedef.
401         (inf_threads): New declaration.
402         * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
403         [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
404         (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
405         (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
406         (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
407         (i386_gnu_dr_get_control): New functions.
408         (reg_addr): New structure.
409         (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
410         i386 debugging register hooks.
411         * NEWS: Mention this.
412
413 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
414
415         * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
416         vector data transfer instructions.
417         (arm_record_coproc_data_proc): Updated.
418
419 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
420
421         * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
422         arm_record_exreg_ld_st_insn.
423         (arm_record_exreg_ld_st_insn): Add record handler for ex-register
424         load/store insns.
425
426 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
427
428         * arm-tdep.c (arm_record_coproc_data_proc): Updated.
429         (arm_record_vfp_data_proc_insn): Added record handler for VFP data
430         processing instructions.
431
432 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
433
434         * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
435         for advance SIMD struct ld/st insn.
436         (thumb2_record_decode_insn_handler): Replace stub handler with
437         thumb2_record_asimd_struct_ld_st.
438
439 2014-08-13  Omair Javaid  <omair.javaid@linaro.org>
440
441         * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
442         for asimd, vfp and coprocessor insns.
443         (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
444         and coprocessor insns.
445         (thumb2_record_coproc_insn): New function.
446         (thumb2_record_decode_insn_handler): Update coprocessor insns record
447         handlers.
448         (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
449         opcode 110 insns.
450
451 2014-09-13  Doug Evans  <xdje42@gmail.com>
452
453         * NEWS: Mention new "queue-signal" command.
454         * infcmd.c (queue_signal_command): New function.
455         (_initialize_infcmd): Add new queue-signal command.
456
457 2014-09-13  Doug Evans  <xdje42@gmail.com>
458
459         * linux-nat.c (wait_lwp): Add debugging printf.
460         (linux_nat_wait_1): Ditto.
461
462 2014-09-12  Pedro Alves  <palves@redhat.com>
463
464         * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
465         (create_and_insert_solib_event_breakpoint): New functions.
466         * breakpoint.h (create_and_insert_solib_event_breakpoint)
467         (remove_solib_event_breakpoints_at_next_stop): New declarations.
468         * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
469         (remove_dbx_link_breakpoint): Delete function.
470         (insert_dbx_link_bpt_in_file): Use
471         create_and_insert_solib_event_breakpoint instead of
472         deprecated_insert_raw_breakpoint.
473         (procfs_wait): Don't check whether we hit __dbx_link here.
474         (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
475         here.
476         * solib-irix.c (base_breakpoint): Delete global.
477         (disable_break): Delete function.
478         (enable_break): Use create_solib_event_breakpoint
479         instead of deprecated_insert_raw_breakpoint.
480         (irix_solib_handle_event): New function.
481         (irix_solib_create_inferior_hook): Don't run the target or disable
482         the mapping-complete breakpoint here.
483         (_initialize_irix_solib): Install irix_solib_handle_event as
484         so_ops->handle_event hook.
485
486 2014-09-12  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
487             Ulrich Weigand  <uweigand@de.ibm.com>
488
489         PR tdep/17379
490         * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
491         instead of read_memory_unsigned_integer.
492
493 2014-09-12  Gary Benson  <gbenson@redhat.com>
494
495         * nat/linux-waitpid.c: Include common-defs.h.
496         [GDBSERVER]: Add FIXME comment.
497         [!GDBSERVER]: Don't include defs.h or signal.h.
498         (linux_debug) [!GDBSERVER]: Remove empty block.
499
500 2014-09-12  Gary Benson  <gbenson@redhat.com>
501
502         * nat/x86-dregs.c: Include common-defs.h and break-common.h.
503         Don't include defs.h or server.h.
504
505 2014-09-12  Gary Benson  <gbenson@redhat.com>
506
507         * nat/linux-btrace.c: Include common-defs.h.
508         Don't include defs.h, server.h or gdbthread.h.
509         * nat/linux-btrace.h (struct target_ops): New forward declaration.
510
511 2014-09-12  Gary Benson  <gbenson@redhat.com>
512
513         * common/agent.c: Include common-defs.h.
514         Don't include defs.h or server.h.
515         * common/buffer.c: Likewise.
516         * common/common-debug.c: Likewise.
517         * common/common-utils.c: Likewise.
518         * common/errors.c: Likewise.
519         * common/filestuff.c: Likewise.
520         * common/format.c: Likewise.
521         * common/gdb_vecs.c: Likewise.
522         * common/print-utils.c: Likewise.
523         * common/ptid.c: Likewise.
524         * common/rsp-low.c: Likewise.
525         * common/signals.c: Likewise.
526         * common/vec.c: Likewise.
527         * common/xml-utils.c: Likewise.
528         * nat/linux-osdata.c: Likewise.
529         * nat/linux-procfs.c: Likewise.
530         * nat/linux-ptrace.c: Likewise.
531         * nat/mips-linux-watch.c: Likewise.
532         * target/waitstatus.c: Likewise.
533
534 2014-09-12  Tom Tromey  <tromey@redhat.com>
535             Gary Benson  <gbenson@redhat.com>
536
537         * common/common-regcache.h: New file.
538         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
539         * regcache.h: Include common-regcache.h.
540         (regcache_read_pc): Don't declare.
541         * regcache.c (get_thread_regcache_for_ptid): New function.
542         * nat/linux-btrace.c: Don't include regcache.h.
543         Include common-regcache.h.
544         (perf_event_read_bts): Use get_thread_regcache_for_ptid.
545
546 2014-09-11  Thomas Schwinge  <thomas@codesourcery.com>
547
548         * regcache.h (struct regset): Declare.
549
550 2014-09-11  Pedro Alves  <palves@redhat.com>
551
552         PR gdb/17347
553         * main.c: Include "infrun.h".
554         (catch_command_errors, catch_command_errors_const): Wait for the
555         foreground command to complete.
556         * top.c (maybe_wait_sync_command_done): New function, factored out
557         from ...
558         (maybe_wait_sync_command_done): ... here.
559         * top.h (maybe_wait_sync_command_done): New declaration.
560
561 2014-09-11  Tom Tromey  <tromey@redhat.com>
562             Gary Benson  <gbenson@redhat.com>
563
564         * common/symbol.h: New file.
565         * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
566         * minsyms.c (find_minimal_symbol_address): New function.
567         * common/agent.c: Include common/symbol.h.
568         [!GDBSERVER]: Don't include objfiles.h.
569         (agent_look_up_symbols): Use find_minimal_symbol_address.
570
571 2014-09-11  Gary Benson  <gbenson@redhat.com>
572
573         * target/target.h (target_stop_ptid, target_continue_ptid):
574         Declare.
575         * target.c (target_stop_ptid, target_continue_ptid): New
576         functions.
577         * common/agent.c [!GDBSERVER]: Don't include infrun.h.
578         (agent_run_command): Always use target_stop_ptid and
579         target_continue_ptid.
580
581 2014-09-11  Tom Tromey  <tromey@redhat.com>
582             Gary Benson  <gbenson@redhat.com>
583
584         * target/target.h: New file.
585         * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
586         * target.h: Include target/target.h.
587         (target_read_memory, target_write_memory): Don't declare.
588         * target.c (target_read_uint32): New function.
589         * common/agent.c: Include target/target.h.
590         [!GDBSERVER]: Don't include target.h.
591         (helper_thread_id): Type changed to uint32_t.
592         (agent_get_helper_thread_id): Use target_read_uint32.
593         (agent_run_command): Always use target_read_memory and
594         target_write_memory.
595         (agent_capability): Type changed to uint32_t.
596         (agent_capability_check): Use target_read_uint32.
597
598 2014-09-11  Gary Benson  <gbenson@redhat.com>
599
600         * common/common-debug.h (show_debug_regs): Declare.
601         * common/common-debug.c (show_debug_regs): Define.
602         * aarch64-linux-nat.c (debug_hw_points): Don't define.  Replace
603         all uses with show_debug_regs.  Replace all uses that considered
604         debug_hw_points as a multi-value integer with straight boolean
605         uses.
606         * x86-nat.c (debug_hw_points): Don't define.  Replace all uses
607         with show_debug_regs.
608         * nat/x86-dregs.c (debug_hw_points): Don't declare.  Replace
609         all uses with show_debug_regs.
610         * mips-linux-nat.c (maint_show_dr): Don't define.  Replace all
611         uses with show_debug_regs.
612
613 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
614
615         * findvar.c (address_from_register): Handle targets requiring
616         a special conversion routine even for plain pointer types.
617
618 2014-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
619
620         * rs6000-nat.c (exec_one_dummy_insn): Remove.
621         (store_register): Do not call exec_one_dummy_insn.
622
623 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
624
625         * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
626         dereference it first.  Use value_enclosing_type instead of
627         value_type.
628         (ada_array_length): Likewise.
629
630 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
631
632         * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
633         Adjust function implementation and documentation accordingly.
634         (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
635         NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
636         Update call to ada_value_ptr_subscript.
637
638 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
639
640         * ada-valprint.c (ada_value_print): Use VAL's enclosing type
641         instead of VAL's type.
642
643 2014-09-10  Joel Brobecker  <brobecker@adacore.com>
644
645         * amd64-linux-nat.c: Add <sys/uio.h> #include.
646
647 2014-09-09  Doug Evans  <xdje42@gmail.com>
648
649         PR guile/17367
650         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
651         last parameter to pkg-config, not first.
652         * configure.ac: Pass --with-guile provided pkg-config path to
653         GDB_GUILE_PROGRAM_NAMES.
654         * configure: Regenerate.
655
656 2014-09-09  Gabriel Krisman Bertazi  <gabriel@krisman.be>
657
658         * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
659         Bertazi".
660
661 2014-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
662
663         * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
664         Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
665         the list of sections determining GDB_OSABI_IRIX.
666
667 2014-09-09  James Hogan  <james.hogan@imgtec.com>
668
669         * MAINTAINERS (Write After Approval): Add "James Hogan".
670
671 2014-09-09  James Hogan  <james.hogan@imgtec.com>
672
673         * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
674
675 2014-09-09  Joel Brobecker  <brobecker@adacore.com>
676
677         * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
678
679 2014-09-08  Doug Evans  <xdje42@gmail.com>
680
681         PR 17247
682         * guile.c: #include <signal.h>.
683         (_initialize_guile): Block SIGCHLD while initializing Guile.
684
685         Replaces the following, which is reverted.
686
687         2014-07-26  Doug Evans  <xdje42@gmail.com>
688
689         PR 17185
690         * configure.ac: Add check for header gc/gc.h.
691         Add check for function setenv.
692         * configure: Regenerate.
693         * config.in: Regenerate.
694         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
695
696 2014-09-08  Doug Evans  <xdje42@gmail.com>
697
698         * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
699         with named constant.  Fix style of pointer comparison.
700         * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
701
702 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
703
704         PR gdb/17035
705         * cli/cli-cmds.c (show_user): Use cli_user_command_p to
706         decide whether we display the command on "show user".
707         * cli/cli-script.c (show_user_1): Only verify cmdlines after
708         printing command name.
709         * cli/cli-decode.h (cli_user_command_p): Declare new function.
710         * cli/cli-decode.c (cli_user_command_p): Create helper function
711         to verify whether cmd_list_element is a user-defined command.
712
713 2014-09-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
714
715         PR python/17355
716         * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
717         Fix goto out of TRY_CATCH.
718
719 2014-09-06  Doug Evans  <xdje42@gmail.com>
720             Tom Tromey  <tromey@redhat.com>
721
722         PR 15276
723         * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
724         $_any_caller_matches.
725         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
726         * python/lib/gdb/function/caller_is.py: New file.
727
728 2014-09-06  Doug Evans  <xdje42@gmail.com>
729
730         * infcmd.c (program_info): Fix typo.
731
732 2014-09-05  Sergio Durigan Junior  <sergiodj@redhat.com>
733
734         PR gdb/17235
735         * stap-probe.c (stap_parse_single_operand): Delete unused variable
736         'number'.  New variable 'has_digit'.  Rewrite code to deal with
737         subexpressions on SDT probes.
738
739 2014-09-04  Pedro Alves  <palves@redhat.com>
740
741         * c-exp.y (parse_number): Skip handling base-switching prefixes if
742         the input is only one character long.
743
744 2014-09-04  Sergio Durigan Junior  <sergiodj@redhat.com>
745
746         PR fortran/17237
747         * f-valprint.c (f_val_print): Specify the correct print option to
748         use when printing integer values.
749
750 2014-09-04  Gary Benson  <gbenson@redhat.com>
751
752         * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
753         Remove code to cope with LWPs wrapped as PIDs.
754         Add assertions to ensure no wrapped LWPs are passed.
755
756 2014-09-04  Pedro Alves  <palves@redhat.com>
757
758         * value.c (value_ranges_copy_adjusted): New function, factored out
759         from ...
760         (value_contents_copy_raw): ... here.
761         (unpack_value_bits_as_long_1): Rename back to ...
762         (unpack_bits_as_long): ... this.  Remove 'original_value' and
763         'result' parameters.  Change return type to LONGEST.
764         (unpack_value_bits_as_long): Delete.
765         (unpack_value_field_as_long_1): Delete.
766         (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
767         (unpack_value_bitfield): New function.
768         (value_field_bitfield): Reimplement using unpack_value_bitfield.
769         (value_fetch_lazy): Use unpack_value_bitfield.
770         * value.h (unpack_value_bits_as_long): Delete declaration.
771
772 2014-09-03  Sasha Smundak  <asmundak@google.com>
773
774         * python/py-frame.c (frapy_read_register): New function.
775
776 2014-09-03  James Hogan  <james.hogan@imgtec.com>
777
778         * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
779         prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
780
781 2014-09-03  Sergio Durigan Junior  <sergiodj@redhat.com>
782
783         PR python/16699
784         * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
785         function.
786         (add_cmd): Set "completer_handle_brkchars" to NULL.
787         * cli/cli-decode.h (struct cmd_list_element)
788         <completer_handle_brkchars>: New field.
789         * command.h (completer_ftype_void): New typedef.
790         (set_cmd_completer_handle_brkchars): New prototype.
791         * completer.c (set_gdb_completion_word_break_characters): New
792         function.
793         (complete_line_internal): Call "completer_handle_brkchars"
794         callback from command.
795         * completer.h: Include "command.h".
796         (set_gdb_completion_word_break_characters): New prototype.
797         * python/py-cmd.c (cmdpy_completer_helper): New function.
798         (cmdpy_completer_handle_brkchars): New function.
799         (cmdpy_completer): Adjust to use cmdpy_completer_helper.
800         (cmdpy_init): Set completer_handle_brkchars to
801         cmdpy_completer_handle_brkchars.
802
803 2014-09-03  Gary Benson  <gbenson@redhat.com>
804
805         * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
806         (ALL_DEBUG_ADDRESS_REGISTERS): New macro.  All uses updated.
807         Loop conditions changed to equivalent form.
808         (struct x86_debug_reg_state): Updated dr_ref_count comment.
809         * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
810         ALL_DEBUG_ADDRESS_REGISTERS.
811
812 2014-09-03  Joel Brobecker  <brobecker@adacore.com>
813
814         * dwarf2loc.h (dwarf2_evaluate_property): Minor function
815         description fix.
816
817 2014-09-02  Doug Evans  <dje@google.com>
818
819         * typeprint.c (find_global_typedef): Fix comment.
820
821 2014-09-02  Gary Benson  <gbenson@redhat.com>
822
823         * i386-nat.h: Renamed as...
824         * x86-nat.h: New file.  All type, function and variable name
825         prefixes changed from "i386_" to "x86_".  All references updated.
826         * i386-nat.c: Renamed as...
827         * x86-nat.c: New file.  All type, function and variable name
828         prefixes changed from "i386_" to "x86_".  All references updated.
829         * common/i386-xstate.h: Renamed as...
830         * common/x86-xstate.h: New file.  All type, function and variable
831         name prefixes changed from "i386_" to "x86_".  All references
832         updated.
833         * nat/i386-cpuid.h: Renamed as...
834         * nat/x86-cpuid.h: New file.  All type, function and variable name
835         prefixes changed from "i386_" to "x86_".  All references updated.
836         * nat/i386-gcc-cpuid.h: Renamed as...
837         * nat/x86-gcc-cpuid.h: New file.  All type, function and variable
838         name prefixes changed from "i386_" to "x86_".  All references
839         updated.
840         * nat/i386-dregs.h: Renamed as...
841         * nat/x86-dregs.h: New file.  All type, function and variable name
842         prefixes changed from "i386_" to "x86_".  All references updated.
843         * nat/i386-dregs.c: Renamed as...
844         * nat/x86-dregs.c: New file.  All type, function and variable name
845         prefixes changed from "i386_" to "x86_".  All references updated.
846
847 2014-09-01  Maciej W. Rozycki  <macro@codesourcery.com>
848
849         * varobj.c (_initialize_varobj): Move to the end of file.
850
851 2014-08-29  Gary Benson  <gbenson@redhat.com>
852
853         * common/common-exceptions.h: New file.
854         * common/common-exceptions.c: Likewise.
855         * Makefile.in (SFILES): Add common/common-exceptions.c.
856         (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
857         (COMMON_OBS): Add common-exceptions.o.
858         (common-exceptions.o): New rule.
859         * exceptions.h (common-exceptions.h): Include.
860         (gdb_setjmp.h): Do not include.
861         (return_reason): Moved to common-exceptions.h.
862         (enum return_reason): Likewise.
863         (RETURN_MASK): Likewise.
864         (typedef return_mask): Likewise.
865         (enum errors): Likewise.
866         (struct gdb_exception): Likewise.
867         (exceptions_state_mc_init): Likewise.
868         (exceptions_state_mc_action_iter): Likewise.
869         (exceptions_state_mc_action_iter_1): Likewise.
870         (TRY_CATCH): Likewise.
871         (throw_exception): Likewise.
872         (throw_verror): Likewise.
873         (throw_vquit): Likewise.
874         (throw_error): Likewise.
875         (throw_quit): Likewise.
876         * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
877         (enum catcher_action): Likewise.
878         (struct catcher): Likewise.
879         (current_catcher): Likewise.
880         (catcher_list_size): Likewise.
881         (exceptions_state_mc_init): Likewise.
882         (catcher_pop): Likewise.
883         (exceptions_state_mc): Likewise.
884         (exceptions_state_mc_action_iter): Likewise.
885         (exceptions_state_mc_action_iter_1): Likewise.
886         (throw_exception): Likewise.
887         (exception_messages): Likewise.
888         (exception_messages_size): Likewise.
889         (throw_it): Likewise.
890         (throw_verror): Likewise.
891         (throw_vquit): Likewise.
892         (throw_error): Likewise.
893         (throw_quit): Likewise.
894         (prepare_to_throw_exception): New function.
895
896 2014-08-29  Gary Benson  <gbenson@redhat.com>
897
898         * common/gdb_setjmp.h: New file.
899         * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
900         * configure.ac: Move sigsetjmp check...
901         * common/common.m4: ...here.
902         * configure: Regenerate.
903         * cp-support.c (SIGJMP_BUF): Delete.
904         (SIGSETJMP): Likewise.
905         (SIGLONGJMP): Likewise.
906         * exceptions.h (gdb_setjmp.h): Include.
907         (setjmp.h): Do not include.
908         (EXCEPTIONS_SIGJMP_BUF): Delete.
909         (EXCEPTIONS_SIGSETJMP): Likewise.
910         (EXCEPTIONS_SIGLONGJMP): Likewise.
911         Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
912         from gdb_setjmp.h.
913         * exceptions.c: Likewise.
914
915 2014-08-29  Gary Benson  <gbenson@redhat.com>
916
917         * cleanups.h: Moved to...
918         * common/cleanups.h: New file.
919         * cleanups.c: Moved to...
920         * common/cleanups.c: New file.  Include common-defs.h and
921         cleanups.h.  Do not include defs.h.
922         * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
923         (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
924         (cleanups.o): New rule.
925
926 2014-08-29  Gary Benson  <gbenson@redhat.com>
927
928         * common/errors.h (internal_warning): New declaration.
929         (internal_vwarning): Likewise.
930         * common/errors.c (internal_warning): New function.
931         * utils.h (internal_warning): Don't declare.
932         (internal_vwarning): Likewise.
933         * utils.c (internal_warning): Removed.
934
935 2014-08-29  Gary Benson  <gbenson@redhat.com>
936
937         * main.c (captured_main): Use warning during startup.
938         Prefix startup warning messages with command name.
939
940 2014-08-29  Gary Benson  <gbenson@redhat.com>
941
942         * main.c (captured_main): Handle usage errors with error.
943
944 2014-08-29  Gary Benson  <gbenson@redhat.com>
945
946         * go32-nat.c (go32_create_inferior): Replace a fprintf/
947         exit pair with a call to error.  Wrap the message with _().
948
949 2014-08-29  Gary Benson  <gbenson@redhat.com>
950
951         * main.c (captured_main): Replace a fprintf/exit
952         pair with a call to error.  Wrap the message with _().
953
954 2014-08-29  Gary Benson  <gbenson@redhat.com>
955
956         * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
957         pairs with calls to error.  Wrap the message with _().
958
959 2014-08-29  Gary Benson  <gbenson@redhat.com>
960
961         * utils.c (vwarning): Protect calls to target_terminal_ours
962         and wrap_here.
963
964 2014-08-29  Gary Benson  <gbenson@redhat.com>
965
966         * exceptions.c (print_flush): Protect calls to
967         target_terminal_ours and wrap_here.
968
969 2014-08-29  Gary Benson  <gbenson@redhat.com>
970
971         * utils.h (filtered_printing_initialized): New declaration.
972         * utils.c (abort_with_message): New function.
973         (internal_vproblem): Use abort_with_message for first level
974         recursive internal problems, and if gdb_stderr is not set up.
975         Protect calls to target_terminal_ours, begin_line and query.
976
977 2014-08-28  Doug Evans  <dje@google.com>
978
979         * symtab.c (in_prologue): Move definition to better spot.
980         (skip_prologue_using_sal): Ditto.
981
982 2014-08-28  Doug Evans  <dje@google.com>
983
984         * symtab.c (find_function_start_sal): Move definition to better spot.
985
986 2014-08-28  Yao Qi  <yao@codesourcery.com>
987
988         * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
989         found_stack_adjust in forward scan.  Remove condition check
990         on found_stack_adjust which is always true.  Indent the code.
991
992 2014-08-28  Yao Qi  <yao@codesourcery.com>
993
994         * dwarf2read.c (dwarf_decode_lines): Update declaration.
995         (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
996         (dwarf_decode_lines): Remove argument
997         want_line_info.  Remove condition check on want_line_info.
998         Callers update.
999
1000 2014-08-27  Doug Evans  <dje@google.com>
1001
1002         * dwarf2read.c (dwarf_record_line): Fix typo.
1003
1004 2014-08-27  Patrick Palka  <patrick@parcs.ath.cx>
1005
1006         * target.h (struct target_ops::to_terminal_save_ours): Remove
1007         declaration.
1008         (target_terminal_save_ours): Remove macro.
1009         * target-delegates.c: Regenerate.
1010         * inf-child.c (inf_child_target): Don't set the nonexistent
1011         field to_terminal_save_ours.
1012         * inferior.h (child_terminal_save_ours): Remove declaration.
1013         * terminal.h (gdb_save_tty_state): New declaration.
1014         * inflow.c (child_terminal_save_ours): Rename to ...
1015         (gdb_save_tty_state): ... this.
1016         * tui/tui.c: Include terminal.h.
1017         (tui_enable): Use gdb_save_tty_state instead of
1018         target_terminal_save_ours.
1019         (tui_disable): Likewise.
1020
1021 2014-08-25  Doug Evans  <dje@google.com>
1022
1023         * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
1024         Pass NULL instead of 0 for context pointer.
1025
1026 2014-08-25  Yao Qi  <yao@codesourcery.com>
1027
1028         * dwarf2read.c: Fix grammatical error.
1029
1030 2014-08-24  Yao Qi  <yao@codesourcery.com>
1031
1032         * dwarf2read.c (scan_partial_symbols):  Update comments.
1033         Rename argument 'need_pc' with 'set_addrmap'.
1034         ï¼ˆadd_partial_namespace): Rename argument 'need_pc' with
1035         'set_addrmap'.
1036         (add_partial_module): Likewise.
1037         (add_partial_subprogram): Likewise.  Update comments.
1038         (dwarf2_name): Fix typo.
1039
1040 2014-08-22  Doug Evans  <dje@google.com>
1041
1042         PR 17276
1043         * dwarf2read.c (dwarf_record_line_p): New function.
1044         (dwarf_decode_lines_1): Ignore subsequent line number entries
1045         for the same line if any entry had a non-zero discriminator.
1046
1047 2014-08-22  Doug Evans  <dje@google.com>
1048
1049         * buildsym.h (record_line_ftype): New typedef.
1050         (record_line): Use it.
1051         * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
1052         (dwarf_decode_lines_1): Call them.
1053
1054 2014-08-22  Yao Qi  <yao@codesourcery.com>
1055
1056         * ctf.c (CTF_FILE_MIN_SIZE): Remove.
1057         (ctf_end): Remove code.
1058
1059 2014-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
1060
1061         * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
1062         (linux_make_corefile_notes): call update_thread_list, protected against
1063         exceptions.
1064
1065 2014-08-21  Pedro Alves  <palves@redhat.com>
1066
1067         * infcmd.c (attach_command): Remove comment.
1068
1069 2014-08-21  Bin Cheng  <bin.cheng@arm.com>
1070
1071         * aarch64-linux-nat.c (dr_changed_t): Change the type from
1072         unsigned LONGEST to ULONGEST.
1073
1074 2014-08-20  Pedro Alves  <palves@redhat.com>
1075
1076         * Makefile.in (check-read1): New rule.
1077
1078 2014-08-20  Joel Brobecker  <brobecker@adacore.com>
1079
1080         * value.c (value_from_contents_and_address): Strip resolved_type's
1081         typedef layers before checking its TYPE_DATA_LOCATION.
1082
1083 2014-08-20  Pedro Alves  <palves@redhat.com>
1084
1085         * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
1086
1087 2014-08-20  Yao Qi  <yao@codesourcery.com>
1088
1089         * amd64-tdep.c (amd64_classify): Add a blank line after the
1090         example.  Move "*/" to a new line.
1091         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
1092         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
1093         * dwarf2read.c (psymtab_include_file_name): Likewise.
1094
1095 2014-08-19  Andrew Burgess  <aburgess@broadcom.com>
1096             Pedro Alves  <palves@redhat.com>
1097
1098         PR symtab/14604
1099         PR symtab/14605
1100         * ada-lang.c (coerce_unspec_val_to_type): Use
1101         value_contents_copy_raw.
1102         * ada-valprint.c (val_print_packed_array_elements): Adjust.
1103         * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
1104         * cp-valprint.c (cp_print_value_fields): Let the common printing
1105         code handle optimized out values.
1106         (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
1107         * d-valprint.c (dynamic_array_type): Use
1108         value_bits_any_optimized_out.
1109         * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
1110         check_any_valid fields.
1111         (check_pieced_value_bits): Delete and inline ...
1112         (check_pieced_synthetic_pointer): ... here.
1113         (check_pieced_value_validity): Delete.
1114         (check_pieced_value_invalid): Delete.
1115         (pieced_value_funcs): Remove check_validity and check_any_valid
1116         fields.
1117         (read_pieced_value): Use mark_value_bits_optimized_out.
1118         (write_pieced_value): Switch to use
1119         mark_value_bytes_optimized_out.
1120         (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
1121         of assuming the whole value is optimized out.
1122         * findvar.c (read_frame_register_value): Remove special handling
1123         of optimized out registers.
1124         (value_from_register): Use mark_value_bytes_optimized_out.
1125         * frame-unwind.c (frame_unwind_got_optimized): Use
1126         mark_value_bytes_optimized_out.
1127         * jv-valprint.c (java_value_print): Adjust.
1128         (java_print_value_fields): Let the common printing code handle
1129         optimized out values.
1130         * mips-tdep.c (mips_print_register): Remove special handling of
1131         optimized out registers.
1132         * opencl-lang.c (lval_func_check_validity): Delete.
1133         (lval_func_check_any_valid): Delete.
1134         (opencl_value_funcs): Remove check_validity and check_any_valid
1135         fields.
1136         * p-valprint.c (pascal_object_print_value_fields): Let the common
1137         printing code handle optimized out values.
1138         * stack.c (read_frame_arg): Remove special handling of optimized
1139         out values.  Fetch both VAL and ENTRYVAL before comparing
1140         contents.  Adjust to value_available_contents_eq rename.
1141         * valprint.c (valprint_check_validity)
1142         (val_print_scalar_formatted): Use value_bits_any_optimized_out.
1143         (val_print_array_elements): Adjust.
1144         * value.c (struct value) <optimized_out>: Now a VEC(range_s).
1145         (value_bits_any_optimized_out): New function.
1146         (value_entirely_covered_by_range_vector): New function, factored
1147         out from value_entirely_unavailable.
1148         (value_entirely_unavailable): Reimplement.
1149         (value_entirely_optimized_out): New function.
1150         (insert_into_bit_range_vector): New function, factored out from
1151         mark_value_bits_unavailable.
1152         (mark_value_bits_unavailable): Reimplement.
1153         (struct ranges_and_idx): New struct.
1154         (find_first_range_overlap_and_match): New function, factored out
1155         from value_available_contents_bits_eq.
1156         (value_available_contents_bits_eq): Rename to ...
1157         (value_contents_bits_eq): ... this.  Check both unavailable
1158         contents and optimized out contents.
1159         (value_available_contents_eq): Rename to ...
1160         (value_contents_eq): ... this.
1161         (allocate_value_lazy): Remove reference to the old optimized_out
1162         boolean.
1163         (allocate_optimized_out_value): Use
1164         mark_value_bytes_optimized_out.
1165         (require_not_optimized_out): Adjust to check whether the
1166         optimized_out vec is empty.
1167         (ranges_copy_adjusted): New function, factored out from
1168         value_contents_copy_raw.
1169         (value_contents_copy_raw): Also copy the optimized out ranges.
1170         Assert the destination ranges aren't optimized out.
1171         (value_contents_copy): Update comment, remove call to
1172         require_not_optimized_out.
1173         (value_contents_equal): Adjust to check whether the optimized_out
1174         vec is empty.
1175         (set_value_optimized_out, value_optimized_out_const): Delete.
1176         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1177         New functions.
1178         (value_entirely_optimized_out, value_bits_valid): Delete.
1179         (value_copy): Take a VEC copy of the 'optimized_out' field.
1180         (value_primitive_field): Remove special handling of optimized out.
1181         (value_fetch_lazy): Assert that lazy values have no unavailable
1182         regions.  Use value_bits_any_optimized_out.  Remove some special
1183         handling for optimized out values.
1184         * value.h: Add intro comment about <optimized out> and
1185         <unavailable>.
1186         (struct lval_funcs): Remove check_validity and check_any_valid
1187         fields.
1188         (set_value_optimized_out, value_optimized_out_const): Remove.
1189         (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
1190         New declarations.
1191         (value_bits_any_optimized_out): New declaration.
1192         (value_bits_valid): Delete declaration.
1193         (value_available_contents_eq): Rename to ...
1194         (value_contents_eq): ... this, and extend comments.
1195
1196 2014-08-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
1197
1198         Fix -fsanitize=address on unreadable inferior strings.
1199         * valprint.c (val_print_string): Fix access before BUFFER.
1200
1201 2014-08-19  Simon Marchi  <simon.marchi@ericsson.com>
1202
1203         * target.c (target_struct_size): Remove.
1204         (target_struct_allocsize): Remove.
1205         (DEFAULT_ALLOCSIZE): Remove.
1206         (target_ops_p): New typedef.
1207         (DEF_VEC_P (target_ops_p)): New vector type.
1208         (target_structs): Change type to VEC (target_ops_p).
1209         (add_target_with_completer): Replace "push" code by VEC_safe_push.
1210         (find_default_run_target): Rewrite for loop following changes to
1211         target_structs.
1212
1213 2014-08-19  Joel Brobecker  <brobecker@adacore.com>
1214
1215         * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
1216         Adjust code accordingly.  Adjust function description comment.
1217
1218 2014-08-19  Yao Qi  <yao@codesourcery.com>
1219
1220         * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
1221         types.
1222
1223 2014-08-19  Alan Modra  <amodra@gmail.com>
1224
1225         * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
1226         * config.in: Regenerate.
1227         * configure: Regenerate.
1228
1229 2014-08-19  Tom Tromey  <tromey@redhat.com>
1230             Gary Benson  <gbenson@redhat.com>
1231
1232         * common/common-debug.h: New file.
1233         * common/common-debug.c: Likewise.
1234         * debug.c: Likewise.
1235         * Makefile.in (SFILES): Add common/common-debug.c.
1236         (HFILES_NO_SRCDIR): Add common/common-debug.h.
1237         (COMMON_OBS): Add common-debug.o and debug.o.
1238         (common-debug.o): New rule.
1239         * common/common-defs.h: Include common-debug.h.
1240         * common/agent.c (debug_agent_printf): New function.
1241         (DEBUG_AGENT): Redefine.
1242         * nat/i386-dregs.c (debug_printf): Undefine.
1243
1244 2014-08-19  Gary Benson  <gbenson@redhat.com>
1245
1246         * common/common-defs.h: Include print-utils.h.
1247         * utils.h: Do not include print-utils.h.
1248
1249 2014-08-19  Tom Tromey  <tromey@redhat.com>
1250             Gary Benson  <gbenson@redhat.com>
1251
1252         * common/common-types.h: New file.
1253         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1254         * common/common-defs.h: Include common-types.h.
1255         * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1256         (ULONGEST): Remove.
1257
1258 2014-08-19  Tom Tromey  <tromey@redhat.com>
1259             Gary Benson  <gbenson@redhat.com>
1260
1261         * common/errors.h: New file.
1262         * common/errors.c: Likewise.
1263         * Makefile.in (SFILES): Add common/errors.c.
1264         (HFILES_NO_SRCDIR): Add common/errors.h.
1265         (COMMON_OBS): Add errors.o.
1266         (errors.o): New rule.
1267         * common/common-defs.h: Include errors.h.
1268         * utils.h (perror_with_name, error, verror, warning, vwarning):
1269         Don't declare.
1270         * common/common-utils.h: (malloc_failure, internal_error):
1271         Likewise.
1272
1273 2014-08-19  Gary Benson  <gbenson@redhat.com>
1274
1275         * utils.c (internal_vproblem): Always print the message.
1276
1277 2014-08-18  Doug Evans  <dje@google.com>
1278
1279         * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1280
1281 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1282
1283         * ada-typeprint.c (type_is_full_subrange_of_target_type):
1284         Return 0 if TYPE is dynamic.
1285         (print_range): Add handling of dynamic ranges.
1286
1287 2014-08-18  Keven Boell  <keven.boell@intel.com>
1288             Joel Brobecker  <brobecker@adacore.com>
1289
1290         * gdbtypes.h (struct main_type): Add field "data_location".
1291         (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1292         (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1293         * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1294         a dynamic data location.
1295         (resolve_dynamic_type): Add DW_AT_data_location handling.
1296         (copy_recursive, copy_type): Copy the data_location information
1297         when present.
1298         * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1299         * value.c (value_from_contents_and_address): Add
1300         DW_AT_data_location handling.
1301
1302 2014-08-18  Keven Boell  <keven.boell@intel.com>
1303             Joel Brobecker  <brobecker@adacore.com>
1304
1305         * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1306         field "get_object_address".
1307         * dwarf2expr.c (execute_stack_op): Add handling for
1308         DW_OP_push_object_address.
1309         * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1310         * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1311         (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1312         (dwarf_expr_get_obj_addr): New function.
1313         (dwarf_expr_ctx_funcs): Add get_object_address field.
1314         (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1315         (dwarf2_locexpr_baton_eval): Add parameter "addr".  Use it.
1316         (dwarf2_evaluate_property): Add parameter "address".  Use it.
1317         (needs_get_obj_addr): New function.
1318         (needs_frame_ctx_funcs): Add get_object_address field.
1319         (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1320         * gdbtypes.c (resolve_dynamic_range): Add "addr" field.  Use it.
1321         (resolve_dynamic_array): Likewise.
1322
1323 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1324
1325         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1326         When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1327         fixed value for records and unions for which some GNAT encodings
1328         are present.
1329
1330 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1331
1332         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1333         rewrite to avoid "else if" and "else" constructs.  Should be
1334         a no-op in practice.
1335
1336 2014-08-18  Joel Brobecker  <brobecker@adacore.com>
1337
1338         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1339         of lexical block.
1340
1341 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
1342
1343         PR c++/17132
1344         * eval.c: Update all calls to find_overload_match.
1345         * valarith.c: Likewise.
1346         (value_user_defined_cpp_op, value_user_defined_op): New
1347         argument NOSIDE.  Update all callers.
1348         * valops.c (find_overload_match): New argument NOSIDE.
1349         * value.h (find_overload_match): Update signature.
1350
1351 2014-08-15  Siva Chandra Reddy  <sivachandra@google.com>
1352
1353         * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1354         'items' methods instead of 'iteritems' method on dictionaries.
1355
1356 2014-08-15  Doug Evans  <dje@google.com>
1357
1358         * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1359         closer to use.
1360
1361 2014-08-15  Doug Evans  <dje@google.com>
1362
1363         * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1364
1365 2014-08-15  Doug Evans  <dje@google.com>
1366
1367         * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1368
1369 2014-08-15  Doug Evans  <dje@google.com>
1370
1371         * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1372         unused.
1373
1374 2014-08-15  Eli Zaretskii  <eliz@gnu.org>
1375
1376         * dcache.h: Include target.h, to avoid compile time warnings.
1377
1378 2014-08-15  Joel Brobecker  <brobecker@adacore.com>
1379
1380         * gdbarch.sh: #include "frame.h" in gdbarch.h.  Delete "struct
1381         frame_info" partial declaration.
1382         * gdbarch.h: Regenerate.
1383
1384 2014-08-15  Yao Qi  <yao@codesourcery.com>
1385
1386         * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1387         Add parameter 'decode_for_pst_p'.  Callers update.
1388
1389 2014-08-13  Yao Qi  <yao@codesourcery.com>
1390
1391         PR build/17104
1392         * configure.ac: Use local variable 'pos'.
1393         * configure: Regenerated.
1394
1395 2014-08-11  Doug Evans  <dje@google.com>
1396
1397         * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1398         message, it is redundant with "Reading symbols from ..." message.
1399
1400 2014-08-10  Doug Evans  <xdje42@gmail.com>
1401
1402         * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1403
1404 2014-08-09  Yao Qi  <yao@codesourcery.com>
1405
1406         PR remote/9053
1407         * remote.c (remote_xfer_partial): Remove dead code.
1408
1409 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1410
1411         * ia64-linux-tdep.c: Include "regset.h".
1412         (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1413         (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1414         (ia64_linux_supply_fpregset): New function.
1415         (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1416         (ia64_linux_regset_from_core_section): New function.
1417         (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1418         method.
1419
1420 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1421
1422         * m68klinux-tdep.c: Include "regset.h".
1423         (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1424         (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1425         (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1426         (m68k_linux_regset_from_core_section): New function.
1427         (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1428         method.
1429
1430 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1431
1432         * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1433         function.  Move logic to...
1434         (tilegx_linux_regmap): ... this new register map.
1435         (tilegx_linux_regset): Refer to register map, replace supply
1436         method by regcache_supply_regset, and add collect method.
1437         * tilegx-tdep.h (enum tilegx_regnum): New enum value
1438         TILEGX_FIRST_EASY_REGNUM.
1439
1440 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1441
1442         * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1443         that calls regcache_supply_regset and handles the EPC register
1444         separately.  Move main logic to...
1445         (score7_linux_gregmap): ... this new register map.
1446         (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1447         (score7_linux_gregset): Refer to register map.  Add collect method.
1448         (score7_linux_regset_from_core_section): Replace
1449         sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1450         * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1451         (struct regset): Delete unused forward declaraction.
1452         (struct pt_regs): Delete structure definition.
1453         (elf_gregset_t): Delete typedef.
1454
1455 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1456
1457         * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1458         (nios2_core_regset): Add collect method.
1459
1460 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1461
1462         * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1463         platform-independent and don't write to read-only input buffer.
1464         (m32r_linux_collect_gregset): New function.
1465         (m32r_linux_gregset): Add collect method.
1466
1467 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1468
1469         * hppa-linux-tdep.c (greg_map): Rename to...
1470         (hppa_linux_gregmap): ... this.  Also convert to
1471         regcache_map_entry format.
1472         (hppa_linux_supply_regset): Delete function.
1473         (hppa_linux_supply_fpregset): Delete function.  Move logic to...
1474         (hppa_linux_fpregmap): ... this new register map.
1475         (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1476         register map, replace supply method by regcache_supply_regset, and
1477         add collect method regcache_collect_regset.
1478
1479 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1480
1481         * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1482         (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1483         (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1484         (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1485         (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1486         (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1487         (frv_linux_supply_gregset): Replace main logic by call to
1488         regcache_supply_regset, but keep clearing gr32-gr63.
1489         (frv_linux_supply_fpregset): Delete function.
1490         (frv_linux_gregset): Refer to appropriate register map and add
1491         regcache_collect_regset as the collect method.
1492         (frv_linux_fpregset): Likewise.  Also exchange the supply method
1493         by regcache_supply_regset.
1494
1495 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1496
1497         * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1498         by call to alpha_supply_int_regs.
1499         (alpha_linux_collect_gregset): New function.
1500         (alpha_linux_supply_fpregset): Replace logic by call to
1501         alpha_supply_fp_regs.
1502         (alpha_linux_collect_fpregset): New function.
1503         (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1504
1505 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1506
1507         * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1508         by call to regcache_collect_regset.
1509         (supply_gregset, supply_fpregset): Call regcache_supply_regset
1510         instead of aarch64_linux_supply_gregset/_fpregset.
1511         * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1512         (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1513         header file instead.
1514         (aarch64_linux_supply_gregset, supply_gregset_from_core)
1515         (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1516         functions.  Move logic to ...
1517         (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1518         register maps.
1519         (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1520         refer to new register maps, replace *_regset_from_core by
1521         regcache_supply_regset, and also use regcache_collect_regset.
1522         * aarch64-linux-tdep.h: Include "regset.h".
1523         (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1524         Delete prototypes.
1525         (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1526         macros, moved from C source file.
1527         (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1528         variable declarations.
1529
1530 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1531
1532         * s390-linux-nat.c: Include "regset.h".
1533         (regmap_gregset): Delete macro.
1534         (s390_64_regmap_gregset): New register map for
1535         regcache_supply/_collect_regset.
1536         (s390_64_gregset): New regset.
1537         (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1538         (regmap_fpregset): Delete macro.
1539         (s390_native_supply, s390_native_collect): Delete functions.
1540         (supply_gregset, fill_gregset): Replace s390-specific regmap
1541         handling by a call to regcache_supply/_collect_regset.
1542         (supply_fpregset, fill_fpregset): Call regcache_supply/
1543         _collect_regset instead of s390_native_supply/_collect.
1544         (fetch_regset, store_regset): Likewise.  Also change the last
1545         parameter to a regset instead of a regmap.
1546         (s390_linux_fetch_inferior_registers)
1547         (390_linux_store_inferior_registers): Adjust last parameter in
1548         calls to fetch_regset and store_regset.
1549         * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1550         (s390_gregmap): ... this.  Also make static const and convert to
1551         regcache_map_entry format.
1552         (s390x_regmap_gregset): Delete.
1553         (s390_regmap_fpregset): Rename to...
1554         (s390_fpregmap): ... this.  Make static const and convert to
1555         regcache_map_entry format.
1556         (s390_regmap_upper, s390_regmap_last_break)
1557         (s390x_regmap_last_break, s390_regmap_system_call)
1558         (s390_regmap_tdb): Likewise.
1559         (s390_supply_regset, s390_collect_regset): Remove functions.
1560         (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1561         s390_supply_regset.
1562         (s390_gregset, s390_fpregset, s390_upper_regset)
1563         (s390_last_break_regset, s390x_last_break_regset)
1564         (s390_system_call_regset, s390_tdb_regset): Make global and
1565         replace s390_supply/_collect_regset by regcache_supply/
1566         _collect_regset.
1567         (s390x_gregset): Delete.
1568         (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1569         * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1570         (s390_regmap_fpregset, s390_regmap_last_break)
1571         (s390x_regmap_last_break, s390_regmap_system_call)
1572         (s390_regmap_tdb): Delete global variable declarations.
1573         (s390_gregset, s390_fpregset, s390_last_break_regset)
1574         (s390x_last_break_regset, s390_system_call_regset)
1575         (s390_tdb_regset): New global variable declarations.
1576
1577 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1578
1579         * regcache.c: Include "regset.h".
1580         (regcache_transfer_regset): New local function.
1581         (regcache_supply_regset, regcache_collect_regset): New functions.
1582         * regcache.h (struct regcache_map_entry): New structure.
1583         (REGCACHE_MAP_SKIP): New enum value.
1584         (regcache_supply_regset, regcache_collect_regset): New prototypes.
1585
1586 2014-08-07  Andreas Arnez  <arnez@linux.vnet.ibm.com>
1587
1588         * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1589         * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1590         (ppc_linux_collect_gregset ): Likewise.
1591         * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1592         (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1593         (ppc_collect_vrregset): Likewise.
1594         * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1595         Likewise.
1596
1597 2014-08-07  Yao Qi  <yao@codesourcery.com>
1598
1599         * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1600         * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1601         * remote.c (remote_read_bytes): Likewise.
1602
1603 2014-08-07  Yao Qi  <yao@codesourcery.com>
1604
1605         * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1606
1607 2014-08-07  Yao Qi  <yao@codesourcery.com>
1608
1609         PR remote/17230
1610         * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1611         TARGET_XFER_OK instead of 0.
1612
1613 2014-08-07  Gary Benson  <gbenson@redhat.com>
1614
1615         * common/common-defs.h: Include errno.h.
1616         * defs.h: Do not include errno.h.
1617         * ada-typeprint.c: Likewise.
1618         * c-typeprint.c: Likewise.
1619         * core-regset.c: Likewise.
1620         * corefile.c: Likewise.
1621         * corelow.c: Likewise.
1622         * event-loop.c: Likewise.
1623         * f-typeprint.c: Likewise.
1624         * gnu-nat.c: Likewise.
1625         * go32-nat.c: Likewise.
1626         * i386gnu-nat.c: Likewise.
1627         * m2-typeprint.c: Likewise.
1628         * nat/linux-btrace.c: Likewise.
1629         * p-typeprint.c: Likewise.
1630         * procfs.c: Likewise.
1631         * remote-sim.c: Likewise.
1632         * rs6000-nat.c: Likewise.
1633         * target.c: Likewise.
1634         * typeprint.c: Likewise.
1635         * ui-file.c: Likewise.
1636         * valops.c: Likewise.
1637         * valprint.c: Likewise.
1638
1639 2014-08-07  Gary Benson  <gbenson@redhat.com>
1640
1641         * common/common-defs.h: Include string.h.
1642         * aarch64-tdep.c: Do not include string.h.
1643         * ada-exp.y: Likewise.
1644         * ada-lang.c: Likewise.
1645         * ada-lex.l: Likewise.
1646         * ada-typeprint.c: Likewise.
1647         * ada-valprint.c: Likewise.
1648         * aix-thread.c: Likewise.
1649         * alpha-linux-tdep.c: Likewise.
1650         * alpha-mdebug-tdep.c: Likewise.
1651         * alpha-nat.c: Likewise.
1652         * alpha-osf1-tdep.c: Likewise.
1653         * alpha-tdep.c: Likewise.
1654         * alphanbsd-tdep.c: Likewise.
1655         * amd64-dicos-tdep.c: Likewise.
1656         * amd64-linux-tdep.c: Likewise.
1657         * amd64-nat.c: Likewise.
1658         * amd64-sol2-tdep.c: Likewise.
1659         * amd64fbsd-tdep.c: Likewise.
1660         * amd64obsd-tdep.c: Likewise.
1661         * arch-utils.c: Likewise.
1662         * arm-linux-nat.c: Likewise.
1663         * arm-linux-tdep.c: Likewise.
1664         * arm-tdep.c: Likewise.
1665         * arm-wince-tdep.c: Likewise.
1666         * armbsd-tdep.c: Likewise.
1667         * armnbsd-nat.c: Likewise.
1668         * armnbsd-tdep.c: Likewise.
1669         * armobsd-tdep.c: Likewise.
1670         * avr-tdep.c: Likewise.
1671         * ax-gdb.c: Likewise.
1672         * ax-general.c: Likewise.
1673         * bcache.c: Likewise.
1674         * bfin-tdep.c: Likewise.
1675         * breakpoint.c: Likewise.
1676         * build-id.c: Likewise.
1677         * buildsym.c: Likewise.
1678         * c-exp.y: Likewise.
1679         * c-lang.c: Likewise.
1680         * c-typeprint.c: Likewise.
1681         * c-valprint.c: Likewise.
1682         * charset.c: Likewise.
1683         * cli-out.c: Likewise.
1684         * cli/cli-cmds.c: Likewise.
1685         * cli/cli-decode.c: Likewise.
1686         * cli/cli-dump.c: Likewise.
1687         * cli/cli-interp.c: Likewise.
1688         * cli/cli-logging.c: Likewise.
1689         * cli/cli-script.c: Likewise.
1690         * cli/cli-setshow.c: Likewise.
1691         * cli/cli-utils.c: Likewise.
1692         * coffread.c: Likewise.
1693         * common/agent.c: Likewise.
1694         * common/buffer.c: Likewise.
1695         * common/buffer.h: Likewise.
1696         * common/common-utils.c: Likewise.
1697         * common/filestuff.c: Likewise.
1698         * common/filestuff.c: Likewise.
1699         * common/format.c: Likewise.
1700         * common/print-utils.c: Likewise.
1701         * common/rsp-low.c: Likewise.
1702         * common/signals.c: Likewise.
1703         * common/vec.h: Likewise.
1704         * common/xml-utils.c: Likewise.
1705         * core-regset.c: Likewise.
1706         * corefile.c: Likewise.
1707         * corelow.c: Likewise.
1708         * cp-abi.c: Likewise.
1709         * cp-name-parser.y: Likewise.
1710         * cp-support.c: Likewise.
1711         * cp-valprint.c: Likewise.
1712         * cris-tdep.c: Likewise.
1713         * d-exp.y: Likewise.
1714         * darwin-nat.c: Likewise.
1715         * dbxread.c: Likewise.
1716         * dcache.c: Likewise.
1717         * demangle.c: Likewise.
1718         * dicos-tdep.c: Likewise.
1719         * disasm.c: Likewise.
1720         * doublest.c: Likewise.
1721         * dsrec.c: Likewise.
1722         * dummy-frame.c: Likewise.
1723         * dwarf2-frame.c: Likewise.
1724         * dwarf2loc.c: Likewise.
1725         * dwarf2read.c: Likewise.
1726         * elfread.c: Likewise.
1727         * environ.c: Likewise.
1728         * eval.c: Likewise.
1729         * event-loop.c: Likewise.
1730         * exceptions.c: Likewise.
1731         * exec.c: Likewise.
1732         * expprint.c: Likewise.
1733         * f-exp.y: Likewise.
1734         * f-lang.c: Likewise.
1735         * f-typeprint.c: Likewise.
1736         * f-valprint.c: Likewise.
1737         * fbsd-nat.c: Likewise.
1738         * findcmd.c: Likewise.
1739         * findvar.c: Likewise.
1740         * fork-child.c: Likewise.
1741         * frame.c: Likewise.
1742         * frv-linux-tdep.c: Likewise.
1743         * frv-tdep.c: Likewise.
1744         * gdb.c: Likewise.
1745         * gdb_bfd.c: Likewise.
1746         * gdbarch.c: Likewise.
1747         * gdbarch.sh: Likewise.
1748         * gdbtypes.c: Likewise.
1749         * gnu-nat.c: Likewise.
1750         * gnu-v2-abi.c: Likewise.
1751         * gnu-v3-abi.c: Likewise.
1752         * go-exp.y: Likewise.
1753         * go-lang.c: Likewise.
1754         * go32-nat.c: Likewise.
1755         * guile/guile.c: Likewise.
1756         * guile/scm-auto-load.c: Likewise.
1757         * hppa-hpux-tdep.c: Likewise.
1758         * hppa-linux-nat.c: Likewise.
1759         * hppanbsd-tdep.c: Likewise.
1760         * hppaobsd-tdep.c: Likewise.
1761         * i386-cygwin-tdep.c: Likewise.
1762         * i386-dicos-tdep.c: Likewise.
1763         * i386-linux-tdep.c: Likewise.
1764         * i386-nto-tdep.c: Likewise.
1765         * i386-sol2-tdep.c: Likewise.
1766         * i386-tdep.c: Likewise.
1767         * i386bsd-tdep.c: Likewise.
1768         * i386gnu-nat.c: Likewise.
1769         * i386nbsd-tdep.c: Likewise.
1770         * i386obsd-tdep.c: Likewise.
1771         * i387-tdep.c: Likewise.
1772         * ia64-libunwind-tdep.c: Likewise.
1773         * ia64-linux-nat.c: Likewise.
1774         * inf-child.c: Likewise.
1775         * inf-ptrace.c: Likewise.
1776         * inf-ttrace.c: Likewise.
1777         * infcall.c: Likewise.
1778         * infcmd.c: Likewise.
1779         * inflow.c: Likewise.
1780         * infrun.c: Likewise.
1781         * interps.c: Likewise.
1782         * iq2000-tdep.c: Likewise.
1783         * irix5-nat.c: Likewise.
1784         * jv-exp.y: Likewise.
1785         * jv-lang.c: Likewise.
1786         * jv-typeprint.c: Likewise.
1787         * jv-valprint.c: Likewise.
1788         * language.c: Likewise.
1789         * linux-fork.c: Likewise.
1790         * linux-nat.c: Likewise.
1791         * lm32-tdep.c: Likewise.
1792         * m2-exp.y: Likewise.
1793         * m2-typeprint.c: Likewise.
1794         * m32c-tdep.c: Likewise.
1795         * m32r-linux-nat.c: Likewise.
1796         * m32r-linux-tdep.c: Likewise.
1797         * m32r-rom.c: Likewise.
1798         * m32r-tdep.c: Likewise.
1799         * m68hc11-tdep.c: Likewise.
1800         * m68k-tdep.c: Likewise.
1801         * m68kbsd-tdep.c: Likewise.
1802         * m68klinux-nat.c: Likewise.
1803         * m68klinux-tdep.c: Likewise.
1804         * m88k-tdep.c: Likewise.
1805         * machoread.c: Likewise.
1806         * macrocmd.c: Likewise.
1807         * main.c: Likewise.
1808         * mdebugread.c: Likewise.
1809         * mem-break.c: Likewise.
1810         * memattr.c: Likewise.
1811         * memory-map.c: Likewise.
1812         * mep-tdep.c: Likewise.
1813         * mi/mi-cmd-break.c: Likewise.
1814         * mi/mi-cmd-disas.c: Likewise.
1815         * mi/mi-cmd-env.c: Likewise.
1816         * mi/mi-cmd-stack.c: Likewise.
1817         * mi/mi-cmd-var.c: Likewise.
1818         * mi/mi-cmds.c: Likewise.
1819         * mi/mi-console.c: Likewise.
1820         * mi/mi-getopt.c: Likewise.
1821         * mi/mi-interp.c: Likewise.
1822         * mi/mi-main.c: Likewise.
1823         * mi/mi-parse.c: Likewise.
1824         * microblaze-rom.c: Likewise.
1825         * microblaze-tdep.c: Likewise.
1826         * mingw-hdep.c: Likewise.
1827         * minidebug.c: Likewise.
1828         * minsyms.c: Likewise.
1829         * mips-irix-tdep.c: Likewise.
1830         * mips-linux-tdep.c: Likewise.
1831         * mips-tdep.c: Likewise.
1832         * mips64obsd-tdep.c: Likewise.
1833         * mipsnbsd-tdep.c: Likewise.
1834         * mipsread.c: Likewise.
1835         * mn10300-linux-tdep.c: Likewise.
1836         * mn10300-tdep.c: Likewise.
1837         * monitor.c: Likewise.
1838         * moxie-tdep.c: Likewise.
1839         * mt-tdep.c: Likewise.
1840         * nat/linux-btrace.c: Likewise.
1841         * nat/linux-osdata.c: Likewise.
1842         * nat/linux-procfs.c: Likewise.
1843         * nat/linux-ptrace.c: Likewise.
1844         * nat/linux-waitpid.c: Likewise.
1845         * nbsd-tdep.c: Likewise.
1846         * nios2-linux-tdep.c: Likewise.
1847         * nto-procfs.c: Likewise.
1848         * nto-tdep.c: Likewise.
1849         * objc-lang.c: Likewise.
1850         * objfiles.c: Likewise.
1851         * opencl-lang.c: Likewise.
1852         * osabi.c: Likewise.
1853         * osdata.c: Likewise.
1854         * p-exp.y: Likewise.
1855         * p-lang.c: Likewise.
1856         * p-typeprint.c: Likewise.
1857         * parse.c: Likewise.
1858         * posix-hdep.c: Likewise.
1859         * ppc-linux-nat.c: Likewise.
1860         * ppc-sysv-tdep.c: Likewise.
1861         * ppcfbsd-tdep.c: Likewise.
1862         * ppcnbsd-tdep.c: Likewise.
1863         * ppcobsd-tdep.c: Likewise.
1864         * printcmd.c: Likewise.
1865         * procfs.c: Likewise.
1866         * prologue-value.c: Likewise.
1867         * python/py-auto-load.c: Likewise.
1868         * python/py-gdb-readline.c: Likewise.
1869         * ravenscar-thread.c: Likewise.
1870         * regcache.c: Likewise.
1871         * registry.c: Likewise.
1872         * remote-fileio.c: Likewise.
1873         * remote-m32r-sdi.c: Likewise.
1874         * remote-mips.c: Likewise.
1875         * remote-notif.c: Likewise.
1876         * remote-sim.c: Likewise.
1877         * remote.c: Likewise.
1878         * reverse.c: Likewise.
1879         * rs6000-aix-tdep.c: Likewise.
1880         * ser-base.c: Likewise.
1881         * ser-go32.c: Likewise.
1882         * ser-mingw.c: Likewise.
1883         * ser-pipe.c: Likewise.
1884         * ser-tcp.c: Likewise.
1885         * ser-unix.c: Likewise.
1886         * serial.c: Likewise.
1887         * sh-tdep.c: Likewise.
1888         * sh64-tdep.c: Likewise.
1889         * shnbsd-tdep.c: Likewise.
1890         * skip.c: Likewise.
1891         * sol-thread.c: Likewise.
1892         * solib-dsbt.c: Likewise.
1893         * solib-frv.c: Likewise.
1894         * solib-osf.c: Likewise.
1895         * solib-som.c: Likewise.
1896         * solib-spu.c: Likewise.
1897         * solib-target.c: Likewise.
1898         * solib.c: Likewise.
1899         * somread.c: Likewise.
1900         * source.c: Likewise.
1901         * sparc-nat.c: Likewise.
1902         * sparc-sol2-tdep.c: Likewise.
1903         * sparc-tdep.c: Likewise.
1904         * sparc64-tdep.c: Likewise.
1905         * sparc64fbsd-tdep.c: Likewise.
1906         * sparc64nbsd-tdep.c: Likewise.
1907         * sparcnbsd-tdep.c: Likewise.
1908         * spu-linux-nat.c: Likewise.
1909         * spu-multiarch.c: Likewise.
1910         * spu-tdep.c: Likewise.
1911         * stabsread.c: Likewise.
1912         * stack.c: Likewise.
1913         * std-regs.c: Likewise.
1914         * symfile.c: Likewise.
1915         * symmisc.c: Likewise.
1916         * symtab.c: Likewise.
1917         * target.c: Likewise.
1918         * thread.c: Likewise.
1919         * tilegx-linux-nat.c: Likewise.
1920         * tilegx-tdep.c: Likewise.
1921         * top.c: Likewise.
1922         * tracepoint.c: Likewise.
1923         * tui/tui-command.c: Likewise.
1924         * tui/tui-data.c: Likewise.
1925         * tui/tui-disasm.c: Likewise.
1926         * tui/tui-file.c: Likewise.
1927         * tui/tui-layout.c: Likewise.
1928         * tui/tui-out.c: Likewise.
1929         * tui/tui-regs.c: Likewise.
1930         * tui/tui-source.c: Likewise.
1931         * tui/tui-stack.c: Likewise.
1932         * tui/tui-win.c: Likewise.
1933         * tui/tui-windata.c: Likewise.
1934         * tui/tui-winsource.c: Likewise.
1935         * typeprint.c: Likewise.
1936         * ui-file.c: Likewise.
1937         * ui-out.c: Likewise.
1938         * user-regs.c: Likewise.
1939         * utils.c: Likewise.
1940         * v850-tdep.c: Likewise.
1941         * valarith.c: Likewise.
1942         * valops.c: Likewise.
1943         * valprint.c: Likewise.
1944         * value.c: Likewise.
1945         * varobj.c: Likewise.
1946         * vax-tdep.c: Likewise.
1947         * vaxnbsd-tdep.c: Likewise.
1948         * vaxobsd-tdep.c: Likewise.
1949         * windows-nat.c: Likewise.
1950         * xcoffread.c: Likewise.
1951         * xml-support.c: Likewise.
1952         * xstormy16-tdep.c: Likewise.
1953         * xtensa-linux-nat.c: Likewise.
1954
1955 2014-08-07  Gary Benson  <gbenson@redhat.com>
1956
1957         * common/common-defs.h: Include gdb_assert.h.
1958         * aarch64-tdep.c: Do not include gdb_assert.h.
1959         * addrmap.c: Likewise.
1960         * aix-thread.c: Likewise.
1961         * alpha-linux-tdep.c: Likewise.
1962         * alpha-mdebug-tdep.c: Likewise.
1963         * alphanbsd-tdep.c: Likewise.
1964         * amd64-nat.c: Likewise.
1965         * amd64-tdep.c: Likewise.
1966         * amd64bsd-nat.c: Likewise.
1967         * amd64fbsd-nat.c: Likewise.
1968         * amd64fbsd-tdep.c: Likewise.
1969         * amd64nbsd-nat.c: Likewise.
1970         * amd64nbsd-tdep.c: Likewise.
1971         * amd64obsd-nat.c: Likewise.
1972         * amd64obsd-tdep.c: Likewise.
1973         * arch-utils.c: Likewise.
1974         * arm-tdep.c: Likewise.
1975         * armbsd-tdep.c: Likewise.
1976         * auxv.c: Likewise.
1977         * bcache.c: Likewise.
1978         * bfin-tdep.c: Likewise.
1979         * blockframe.c: Likewise.
1980         * breakpoint.c: Likewise.
1981         * bsd-kvm.c: Likewise.
1982         * bsd-uthread.c: Likewise.
1983         * buildsym.c: Likewise.
1984         * c-exp.y: Likewise.
1985         * c-lang.c: Likewise.
1986         * charset.c: Likewise.
1987         * cleanups.c: Likewise.
1988         * cli-out.c: Likewise.
1989         * cli/cli-decode.c: Likewise.
1990         * cli/cli-dump.c: Likewise.
1991         * cli/cli-logging.c: Likewise.
1992         * cli/cli-script.c: Likewise.
1993         * cli/cli-utils.c: Likewise.
1994         * coffread.c: Likewise.
1995         * common/common-utils.c: Likewise.
1996         * common/queue.h: Likewise.
1997         * common/signals.c: Likewise.
1998         * common/vec.h: Likewise.
1999         * complaints.c: Likewise.
2000         * completer.c: Likewise.
2001         * corelow.c: Likewise.
2002         * cp-abi.c: Likewise.
2003         * cp-name-parser.y: Likewise.
2004         * cp-namespace.c: Likewise.
2005         * cp-support.c: Likewise.
2006         * cris-tdep.c: Likewise.
2007         * dbxread.c: Likewise.
2008         * dictionary.c: Likewise.
2009         * doublest.c: Likewise.
2010         * dsrec.c: Likewise.
2011         * dummy-frame.c: Likewise.
2012         * dwarf2-frame-tailcall.c: Likewise.
2013         * dwarf2-frame.c: Likewise.
2014         * dwarf2expr.c: Likewise.
2015         * dwarf2loc.c: Likewise.
2016         * dwarf2read.c: Likewise.
2017         * eval.c: Likewise.
2018         * event-loop.c: Likewise.
2019         * exceptions.c: Likewise.
2020         * expprint.c: Likewise.
2021         * f-valprint.c: Likewise.
2022         * fbsd-nat.c: Likewise.
2023         * findvar.c: Likewise.
2024         * frame-unwind.c: Likewise.
2025         * frame.c: Likewise.
2026         * frv-tdep.c: Likewise.
2027         * gcore.c: Likewise.
2028         * gdb-dlfcn.c: Likewise.
2029         * gdb_bfd.c: Likewise.
2030         * gdbarch.c: Likewise.
2031         * gdbarch.sh: Likewise.
2032         * gdbtypes.c: Likewise.
2033         * gnu-nat.c: Likewise.
2034         * gnu-v3-abi.c: Likewise.
2035         * go-lang.c: Likewise.
2036         * guile/scm-exception.c: Likewise.
2037         * guile/scm-gsmob.c: Likewise.
2038         * guile/scm-lazy-string.c: Likewise.
2039         * guile/scm-math.c: Likewise.
2040         * guile/scm-pretty-print.c: Likewise.
2041         * guile/scm-safe-call.c: Likewise.
2042         * guile/scm-utils.c: Likewise.
2043         * guile/scm-value.c: Likewise.
2044         * h8300-tdep.c: Likewise.
2045         * hppa-hpux-nat.c: Likewise.
2046         * hppa-tdep.c: Likewise.
2047         * hppanbsd-tdep.c: Likewise.
2048         * hppaobsd-tdep.c: Likewise.
2049         * i386-darwin-nat.c: Likewise.
2050         * i386-darwin-tdep.c: Likewise.
2051         * i386-nto-tdep.c: Likewise.
2052         * i386-tdep.c: Likewise.
2053         * i386bsd-nat.c: Likewise.
2054         * i386fbsd-tdep.c: Likewise.
2055         * i386gnu-nat.c: Likewise.
2056         * i386nbsd-tdep.c: Likewise.
2057         * i386obsd-tdep.c: Likewise.
2058         * i387-tdep.c: Likewise.
2059         * ia64-libunwind-tdep.c: Likewise.
2060         * ia64-tdep.c: Likewise.
2061         * inf-ptrace.c: Likewise.
2062         * inf-ttrace.c: Likewise.
2063         * infcall.c: Likewise.
2064         * infcmd.c: Likewise.
2065         * infrun.c: Likewise.
2066         * inline-frame.c: Likewise.
2067         * interps.c: Likewise.
2068         * jv-lang.c: Likewise.
2069         * jv-typeprint.c: Likewise.
2070         * linux-fork.c: Likewise.
2071         * linux-nat.c: Likewise.
2072         * linux-thread-db.c: Likewise.
2073         * m32c-tdep.c: Likewise.
2074         * m32r-linux-nat.c: Likewise.
2075         * m32r-tdep.c: Likewise.
2076         * m68k-tdep.c: Likewise.
2077         * m68kbsd-nat.c: Likewise.
2078         * m68kbsd-tdep.c: Likewise.
2079         * m88k-tdep.c: Likewise.
2080         * machoread.c: Likewise.
2081         * macroexp.c: Likewise.
2082         * macrotab.c: Likewise.
2083         * maint.c: Likewise.
2084         * mdebugread.c: Likewise.
2085         * memory-map.c: Likewise.
2086         * mep-tdep.c: Likewise.
2087         * mi/mi-common.c: Likewise.
2088         * microblaze-tdep.c: Likewise.
2089         * mingw-hdep.c: Likewise.
2090         * mips-linux-nat.c: Likewise.
2091         * mips-linux-tdep.c: Likewise.
2092         * mips-tdep.c: Likewise.
2093         * mips64obsd-tdep.c: Likewise.
2094         * mipsnbsd-tdep.c: Likewise.
2095         * mn10300-linux-tdep.c: Likewise.
2096         * mn10300-tdep.c: Likewise.
2097         * moxie-tdep.c: Likewise.
2098         * mt-tdep.c: Likewise.
2099         * nat/linux-btrace.c: Likewise.
2100         * nat/linux-osdata.c: Likewise.
2101         * nat/linux-ptrace.c: Likewise.
2102         * nat/mips-linux-watch.c: Likewise.
2103         * nios2-linux-tdep.c: Likewise.
2104         * nios2-tdep.c: Likewise.
2105         * objc-lang.c: Likewise.
2106         * objfiles.c: Likewise.
2107         * obsd-nat.c: Likewise.
2108         * opencl-lang.c: Likewise.
2109         * osabi.c: Likewise.
2110         * parse.c: Likewise.
2111         * ppc-linux-nat.c: Likewise.
2112         * ppc-sysv-tdep.c: Likewise.
2113         * ppcfbsd-nat.c: Likewise.
2114         * ppcfbsd-tdep.c: Likewise.
2115         * ppcnbsd-nat.c: Likewise.
2116         * ppcnbsd-tdep.c: Likewise.
2117         * ppcobsd-nat.c: Likewise.
2118         * ppcobsd-tdep.c: Likewise.
2119         * printcmd.c: Likewise.
2120         * procfs.c: Likewise.
2121         * prologue-value.c: Likewise.
2122         * psymtab.c: Likewise.
2123         * python/py-lazy-string.c: Likewise.
2124         * python/py-value.c: Likewise.
2125         * regcache.c: Likewise.
2126         * reggroups.c: Likewise.
2127         * registry.c: Likewise.
2128         * remote-sim.c: Likewise.
2129         * remote.c: Likewise.
2130         * rs6000-aix-tdep.c: Likewise.
2131         * rs6000-tdep.c: Likewise.
2132         * s390-linux-tdep.c: Likewise.
2133         * score-tdep.c: Likewise.
2134         * ser-base.c: Likewise.
2135         * ser-mingw.c: Likewise.
2136         * sh-tdep.c: Likewise.
2137         * sh64-tdep.c: Likewise.
2138         * solib-darwin.c: Likewise.
2139         * solib-spu.c: Likewise.
2140         * solib-svr4.c: Likewise.
2141         * source.c: Likewise.
2142         * sparc-nat.c: Likewise.
2143         * sparc-sol2-tdep.c: Likewise.
2144         * sparc-tdep.c: Likewise.
2145         * sparc64-sol2-tdep.c: Likewise.
2146         * sparc64-tdep.c: Likewise.
2147         * sparc64fbsd-tdep.c: Likewise.
2148         * sparc64nbsd-tdep.c: Likewise.
2149         * sparc64obsd-tdep.c: Likewise.
2150         * sparcnbsd-tdep.c: Likewise.
2151         * sparcobsd-tdep.c: Likewise.
2152         * spu-multiarch.c: Likewise.
2153         * spu-tdep.c: Likewise.
2154         * stabsread.c: Likewise.
2155         * stack.c: Likewise.
2156         * symfile.c: Likewise.
2157         * symtab.c: Likewise.
2158         * target-descriptions.c: Likewise.
2159         * target-memory.c: Likewise.
2160         * target.c: Likewise.
2161         * tic6x-linux-tdep.c: Likewise.
2162         * tic6x-tdep.c: Likewise.
2163         * tilegx-linux-nat.c: Likewise.
2164         * tilegx-tdep.c: Likewise.
2165         * top.c: Likewise.
2166         * tramp-frame.c: Likewise.
2167         * tui/tui-out.c: Likewise.
2168         * tui/tui-winsource.c: Likewise.
2169         * ui-out.c: Likewise.
2170         * user-regs.c: Likewise.
2171         * utils.c: Likewise.
2172         * v850-tdep.c: Likewise.
2173         * valops.c: Likewise.
2174         * value.c: Likewise.
2175         * varobj.c: Likewise.
2176         * vax-nat.c: Likewise.
2177         * xml-syscall.c: Likewise.
2178         * xml-tdesc.c: Likewise.
2179         * xstormy16-tdep.c: Likewise.
2180         * xtensa-linux-nat.c: Likewise.
2181         * xtensa-tdep.c: Likewise.
2182
2183 2014-08-07  Gary Benson  <gbenson@redhat.com>
2184
2185         * common/common-defs.h: Include common-utils.h.
2186         * defs.h: Do not include common-utils.h.
2187         * common/gdb_assert.h: Likewise.
2188         * darwin-nat.h: Likewise.
2189         * nat/linux-btrace.c: Likewise.
2190         * target/waitstatus.h: Likewise.
2191
2192 2014-08-07  Gary Benson  <gbenson@redhat.com>
2193
2194         * common/common-defs.h: Include ptid.h.
2195         * defs.h: Do not include ptid.h.
2196         * inferior.h: Likewise.
2197         * infrun.h: Likewise.
2198         * nat/linux-btrace.h: Likewise.
2199         * nat/linux-osdata.h: Likewise.
2200         * target/waitstatus.h: Likewise.
2201
2202 2014-08-07  Gary Benson  <gbenson@redhat.com>
2203
2204         * common/common-defs.h: Include gdb_locale.h.
2205         * defs.h: Do not include gdb_locale.h.
2206
2207 2014-08-07  Gary Benson  <gbenson@redhat.com>
2208
2209         * common/common-defs.h: Include gdb/signals.h.
2210         * defs.h: Do not include gdb/signals.h.
2211
2212 2014-08-07  Gary Benson  <gbenson@redhat.com>
2213
2214         * common/common-defs.h: Include pathmax.h.
2215         * defs.h: Do not include pathmax.h.
2216
2217 2014-08-07  Gary Benson  <gbenson@redhat.com>
2218
2219         * common/common-defs.h: Include libiberty.h.
2220         * defs.h: Do not include libiberty.h.
2221         * common/queue.h: Likewise.
2222         * cp-name-parser.y: Likewise.
2223         * mi/mi-cmd-catch.c: Likewise.
2224         * python/python.c: Likewise.
2225
2226 2014-08-07  Gary Benson  <gbenson@redhat.com>
2227
2228         * common/common-defs.h: Include ansidecl.h.
2229         * defs.h: Do not include ansidecl.h.
2230         * common/buffer.h: Likewise.
2231         * common/common-utils.h: Likewise.
2232
2233 2014-08-07  Gary Benson  <gbenson@redhat.com>
2234
2235         * common/common-defs.h: Include stddef.h.
2236         * defs.h: Do not include stddef.h.
2237         * common/common-utils.h: Likewise.
2238         * amd64fbsd-nat.c: Likewise.
2239         * bcache.c: Likewise.
2240         * charset.c: Likewise.
2241         * common/buffer.h: Likewise.
2242         * common/vec.h: Likewise.
2243         * i386bsd-nat.c: Likewise.
2244         * nat/linux-btrace.h: Likewise.
2245         * ppcfbsd-nat.c: Likewise.
2246         * ppcnbsd-tdep.h: Likewise.
2247         * ppcobsd-nat.c: Likewise.
2248         * ppcobsd-tdep.h: Likewise.
2249         * python/py-gdb-readline.c: Likewise.
2250
2251 2014-08-07  Gary Benson  <gbenson@redhat.com>
2252
2253         * common/common-defs.h: Include stdarg.h.
2254         * defs.h: Do not include stdarg.h.
2255         * ada-lang.c: Likewise.
2256         * common/common-utils.h: Likewise.
2257         * guile/scm-string.c: Likewise.
2258         * guile/scm-utils.c: Likewise.
2259         * m32c-tdep.c: Likewise.
2260
2261 2014-08-07  Gary Benson  <gbenson@redhat.com>
2262
2263         * common/common-defs.h: Include stdlib.h.
2264         * defs.h: Do not include stdlib.h.
2265         * addrmap.c: Likewise.
2266         * bcache.c: Likewise.
2267         * common/buffer.c: Likewise.
2268         * common/common-utils.c: Likewise.
2269         * cp-name-parser.y: Likewise.
2270         * go32-nat.c: Likewise.
2271         * mn10300-linux-tdep.c: Likewise.
2272         * nat/linux-osdata.c: Likewise.
2273         * tui/tui.c: Likewise.
2274         * windows-nat.c: Likewise.
2275
2276 2014-08-07  Gary Benson  <gbenson@redhat.com>
2277
2278         * common/common-defs.h: Include stdio.h.
2279         * defs.h: Do not include stdio.h.
2280         * ada-lang.c: Likewise.
2281         * common/buffer.c: Likewise.
2282         * common/common-utils.c: Likewise.
2283         * cp-name-parser.y: Likewise.
2284         * gnu-nat.c: Likewise.
2285         * go32-nat.c: Likewise.
2286         * i386gnu-nat.c: Likewise.
2287         * proc-api.c: Likewise.
2288         * proc-events.c: Likewise.
2289         * proc-flags.c: Likewise.
2290         * proc-why.c: Likewise.
2291         * python/python-internal.h: Likewise.
2292         * target-memory.c: Likewise.
2293         * tui/tui-io.c: Likewise.
2294         * tui/tui.c: Likewise.
2295
2296 2014-08-06  Simon Marchi  <simon.marchi@ericsson.com>
2297
2298         * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2299         (scan_dyntag_auxv): Same.
2300
2301 2014-08-06  Yao Qi  <yao@codesourcery.com>
2302
2303         * amd64-linux-nat.c: Remove duplicated include
2304         "x86-linux-nat.h".
2305         * i386-linux-nat.c: Likewise.
2306
2307 2014-08-06  Yao Qi  <yao@codesourcery.com>
2308
2309         * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2310         operand" with "Special opcode" in comments.
2311
2312 2014-08-05  Gary Benson  <gbenson@redhat.com>
2313
2314         * interps.c (initialize_interps): Remove prototype.
2315         (interpreter_initialized): Remove static global.
2316         (interp_add): Do not call initialize_interps.
2317         (initialize_interps): Remove function.
2318
2319 2014-08-05  Gary Benson  <gbenson@redhat.com>
2320
2321         * utils.c (vwarning): Remove spurious va_end.
2322
2323 2014-08-05  Alan Modra  <amodra@gmail.com>
2324
2325         * charset.c (convert_between_encodings): Cast result of obstack_base.
2326         * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2327         * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2328         (read_unwind_info): Use size_t for some locals.
2329         * jit.c (finalize_symtab): Likewise.
2330         * utils.c (hashtab_obstack_allocate): Likewise.
2331         * symmisc.c (print_objfile_statistics): Update format strings.
2332
2333 2014-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
2334
2335         * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2336         (Changes in GDB 7.8): ... here.
2337
2338 2014-08-04  Tom Tromey  <tromey@redhat.com>
2339
2340         * target.c (set_targetdebug): New function.
2341         (initialize_targets): Pass set_targetdebug when creating "set
2342         debug target".
2343
2344 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
2345
2346         * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2347         if detecting a variable-sized field that is not the last field.
2348         Fix struct type length computation.
2349
2350 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
2351
2352         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2353         Add debug trace.
2354
2355 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
2356
2357         * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2358         Remove "+ 8" offset in computation of CHAIN_VMA.
2359
2360 2014-07-31  Doug Evans  <dje@google.com>
2361
2362         * inflow.c (child_terminal_inferior): Add comment.
2363         (child_terminal_ours_for_output): Add comment.
2364         (child_terminal_ours): Add comment.
2365         * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2366         (linux_nat_terminal_ours): Add comment.
2367
2368 2014-07-31  Gary Benson  <gbenson@redhat.com>
2369
2370         * common/btrace-common.h: Do not include defs.h or server.h.
2371         * nat/mips-linux-watch.h: Likewise.
2372         * gdb-dlfcn.h: Do not include defs.h.
2373         * tracefile.h: Likewise.
2374
2375 2014-07-30  Roland McGrath  <mcgrathr@google.com>
2376
2377         * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2378
2379 2014-07-30  Tom Tromey  <tromey@redhat.com>
2380
2381         * bsd-kvm.c (bsd_kvm_open): Constify.
2382         * corelow.c (core_open): Constify.
2383         * ctf.c (ctf_open): Constify.
2384         * dbug-rom.c (dbug_open): Constify.
2385         * exec.c (exec_open): Constify.
2386         * m32r-rom.c (m32r_open, mon2000_open): Constify.
2387         * microblaze-rom.c (picobug_open): Constify.
2388         * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2389         Constify.
2390         * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2391         * record-btrace.c (record_btrace_open): Constify.
2392         * record-full.c (record_full_core_open_1, record_full_open_1)
2393         (record_full_open): Constify.
2394         * remote-m32r-sdi.c (m32r_open): Constify.
2395         * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2396         (rockhopper_open, lsi_open): Constify.
2397         * remote-sim.c (gdbsim_open): Constify.
2398         * remote.c (remote_open, extended_remote_open, remote_open_1):
2399         Constify.
2400         * target.h (struct target_ops) <to_open>: Make "arg" const.
2401         * tracefile-tfile.c (tfile_open): Constify.
2402
2403 2014-07-30  Tom Tromey  <tromey@redhat.com>
2404
2405         * breakpoint.c (map_breakpoint_numbers): Update.
2406         * cli/cli-utils.c (get_number_trailer): Make "pp" const.  Update.
2407         (get_number_const): New function.
2408         (get_number): Rewrite using get_number_const.
2409         (init_number_or_range): Make "string" const.
2410         (number_is_in_list): Make "list" const.
2411         * cli/cli-utils.h (get_number_const): Declare.
2412         (struct get_number_or_range_state) <string, end_ptr>: Now const.
2413         (init_number_or_range, number_is_in_list): Update.
2414         * printcmd.c (map_display_numbers): Update.
2415         * value.c (value_from_history_ref): Constify.
2416         * value.h (value_from_history_ref): Update.
2417
2418 2014-07-30  Tom Tromey  <tromey@redhat.com>
2419
2420         * corefile.c (hook_type, call_extra_exec_file_hooks)
2421         (specify_exec_file_hook): Constify.
2422         * exec.c (exec_file_attach): Make "filename" const.
2423         * gdbcore.h (deprecated_exec_file_display_hook)
2424         (specify_exec_file_hook, exec_file_attach): Constify.
2425         * main.c (captured_main): Use catch_command_errors_const.
2426
2427 2014-07-30  Tom Tromey  <tromey@redhat.com>
2428
2429         * target.c (open_target): New function.
2430         (add_target_with_completer, add_deprecated_target_alias): Use
2431         set_cmd_sfunc, set_cmd_context.
2432         (debug_to_open): Remove.
2433         (setup_target_debug): Update.
2434
2435 2014-07-30  Yao Qi  <yao@codesourcery.com>
2436
2437         * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2438         comments.
2439         * parse.c (exp_iterate): Update comments.
2440
2441 2014-07-30  Gary Benson  <gbenson@redhat.com>
2442
2443         * common/common-defs.h: New file.
2444         * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2445         * defs.h: Include common-defs.h.
2446         Do not include config.h or build-gnulib/config.h.
2447
2448 2014-07-30  Gary Benson  <gbenson@redhat.com>
2449
2450         * common/common-utils.h: Do not include config.h.
2451         * nat/linux-btrace.h: Likewise.
2452
2453 2014-07-30  Gary Benson  <gbenson@redhat.com>
2454
2455         * btrace.c: Include defs.h.
2456         * common/ptid.c: Include defs.h or server.h as appropriate.
2457         * nat/mips-linux-watch.c: Likewise.
2458
2459 2014-07-29  Tom Tromey  <tromey@redhat.com>
2460
2461         * target.c (target_is_pushed): Simplify.
2462
2463 2014-07-29  Joel Brobecker  <brobecker@adacore.com>
2464
2465         GDB 7.8 released.
2466
2467 2014-07-29  Yao Qi  <yao@codesourcery.com>
2468
2469         PR gdb/17206
2470         * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2471
2472 2014-07-28  Doug Evans  <xdje42@gmail.com>
2473
2474         PR guile/17203
2475         * guile/scm-param.c (pascm_parameter_defined_p): New function.
2476         (gdbscm_register_parameter_x): Call it.  Raise error for pre-existing
2477         parameters.
2478
2479 2014-07-28  Will Newton  <will.newton@linaro.org>
2480
2481         * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2482         (THUMB2_SET_R7_SIGRETURN2): Likewise.
2483         (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2484         (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2485         (THUMB2_EABI_SYSCALL): Likewise.
2486         (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2487         struct tramp_frame.
2488         (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2489         (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2490
2491 2014-07-27  Doug Evans  <xdje42@gmail.com>
2492
2493         * guile/scm-param.c (pascm_print_param_smob): Fix output.
2494
2495 2014-07-27  Doug Evans  <xdje42@gmail.com>
2496
2497         * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2498
2499 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
2500             Doug Evans  <xdje42@gmail.com>
2501
2502         PR guile/17146
2503         * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2504         (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2505         * configure.ac: Try to use guild to compile an scm file, if it fails
2506         then disable guile support.
2507         * configure: Regenerate.
2508         * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2509         GUILE_FILE_LIST.
2510         (GUILE_COMPILED_FILES): New variable.
2511         (GUILE_FILES) Update.
2512         (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2513         (stamp-guile): Compile scm files.
2514         * guile/guile.c (boot_guile_support): New function.
2515         (standard_throw_args_p): New function.
2516         (print_standard_throw_error, print_throw_error): New functions.
2517         (handle_boot_error): New function.
2518         (initialize_scheme_side): Rewrite to call boot_guile_support.
2519         * guile/lib/gdb/boot.scm: Update %load-compiled-path.  Load gdb.go.
2520         * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2521
2522 2014-07-26  Ludovic Courtès  <ludo@gnu.org>
2523             Doug Evans  <xdje42@gmail.com>
2524
2525         PR guile/17146
2526         * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2527         * guile/lib/gdb/support.scm: New file.
2528         * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2529         * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2530         All uses updated.
2531         * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2532         All uses updated.
2533         (%assert-type): Ditto, and renamed to assert-type.
2534         (%exception-print-style): Delete.
2535
2536 2014-07-26  Doug Evans  <xdje42@gmail.com>
2537
2538         PR build/17105
2539         * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2540         * configure: Regenerate.
2541         * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2542         PYTHON_FILES.
2543         (PYTHON_FILES): New variable.
2544         (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2545         (GUILE_FILES): New variable.
2546         (stamp-python, install-python, uninstall-python): Handle empty
2547         file list.
2548         (stamp-guile, install-guile, uninstall-guile): Ditto.
2549
2550 2014-07-26  Doug Evans  <xdje42@gmail.com>
2551
2552         PR guile/17177
2553         * guile/lib/gdb.scm (pretty-printers): Export.
2554         (set-pretty-printers!): Export.
2555         * guile/lib/gdb/printing.scm (gdb module): Update.
2556         (prepend-pretty-printer!, append-pretty-printer!): Update.
2557         * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2558         (pretty_printer_list_var): Delete.
2559         (pretty_printer_list): New static global.
2560         (gdbscm_pretty_printers): New function.
2561         (gdbscm_set_pretty_printers_x): New function.
2562         (ppscm_find_pretty_printer_from_gdb): Update.
2563         (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2564         (gdbscm_initialize_pretty_printers): Update.
2565
2566 2014-07-26  Doug Evans  <xdje42@gmail.com>
2567
2568         PR 17185
2569         * configure.ac: Add check for header gc/gc.h.
2570         Add check for function setenv.
2571         * configure: Regenerate.
2572         * config.in: Regenerate.
2573         * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2574
2575 2014-07-25  Maciej W. Rozycki  <macro@codesourcery.com>
2576
2577         * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2578         variation in gdbarch matching.
2579
2580 2014-07-25  Tom Tromey  <tromey@redhat.com>
2581
2582         * exec.c (using_exec_ops): Remove.
2583         (exec_close_1): Update.  Remove extraneous block, reindent.
2584         (add_target_sections): Use target_is_pushed.
2585
2586 2014-07-25  Pedro Alves  <palves@redhat.com>
2587
2588         * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2589         * monitor.c (monitor_create_inferior): Likewise.
2590         * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2591         * remote-sim.c (gdbsim_create_inferior): Likewise.
2592         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2593         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2594         * windows-nat.c (do_initial_windows_stuff): Likewise.
2595
2596 2014-07-25  Pedro Alves  <palves@redhat.com>
2597
2598         * NEWS: Mention signal passing and "signal" command changes.
2599         * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2600         comment.
2601         * breakpoint.c (until_break_command): Adjust clear_proceed_status
2602         call.
2603         * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2604         * infcmd.c (proceed_thread_callback, continue_1, step_once)
2605         (jump_command): Adjust clear_proceed_status call.
2606         (signal_command): Warn if other thread that are resumed have
2607         signals that will be delivered.  Adjust clear_proceed_status call.
2608         (until_next_command, finish_command)
2609         (proceed_after_attach_callback, attach_command_post_wait)
2610         (attach_command): Adjust clear_proceed_status call.
2611         * infrun.c (proceed_after_vfork_done): Likewise.
2612         (proceed_after_attach_callback): Adjust comment.
2613         (clear_proceed_status_thread): Clear stop_signal if not in pass
2614         state.
2615         (clear_proceed_status_callback): Delete.
2616         (clear_proceed_status): New 'step' parameter.  Only clear the
2617         proceed status of threads the command being prepared is about to
2618         resume.
2619         (proceed): If passed in an explicit signal, override stop_signal
2620         with it.  Don't pass the last stop signal to the thread we're
2621         resuming.
2622         (init_wait_for_inferior): Adjust clear_proceed_status call.
2623         (switch_back_to_stepped_thread): Clear the signal if it should not
2624         be passed.
2625         * infrun.h (clear_proceed_status): New 'step' parameter.
2626         (user_visible_resume_ptid): Add comment.
2627         * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2628         signal is in pass state.
2629         * remote.c (append_pending_thread_resumptions): Likewise.
2630         * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2631
2632 2014-07-25  Tom Tromey  <tromey@redhat.com>
2633
2634         * target.h (target_stopped_data_address)
2635         (target_watchpoint_addr_within_range): Use "->", not ".".  Fix
2636         parentheses.
2637
2638 2014-07-25  Pierre Langlois  <pierre.langlois@embecosm.com>
2639
2640         * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2641         comments.
2642         (avr_pointer_to_address): Likewise.
2643
2644 2014-07-24  Tom Tromey  <tromey@redhat.com>
2645
2646         * monitor.c (compile_pattern): Update.
2647         * target.h (struct target_ops) <to_shortname, to_longname,
2648         to_doc>: Now const.
2649
2650 2014-07-24  Tom Tromey  <tromey@redhat.com>
2651
2652         * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2653         (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2654         (add_info_alias, add_com): Make "doc" const.
2655         (print_doc_line): Make "str" const.
2656         (delete_cmd): Update.
2657         * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2658         (print_doc_line): Update.
2659         * cli/cli-script.c (document_command): Update.
2660         * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2661         (add_com, add_info, add_info_alias): Update.
2662         * guile/scm-cmd.c (cmdscm_destroyer): Update.
2663         * python/py-cmd.c (cmdpy_destroyer): Update.
2664
2665 2014-07-24  Tom Tromey  <tromey@redhat.com>
2666
2667         * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2668         (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2669         (help_cmd_list): Constify.
2670         (lookup_cmd): Update.
2671         * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2672         const.
2673         (help_cmd_list, apropos_cmd): Update.
2674         * cli/cli-script.c (show_user): Update.
2675         * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2676         * cli/cli-setshow.h (cmd_show_list): Update.
2677         * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2678         (cmd_show_list): Update.
2679         * guile/scm-cmd.c (cmdscm_destroyer): Update.
2680         * python/py-cmd.c (cmdpy_destroyer): Update.
2681
2682 2014-07-24  Tom Tromey  <tromey@redhat.com>
2683
2684         * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2685         * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2686         const.
2687         * command.h (deprecate_cmd): Update.
2688         * maint.c (maintenance_do_deprecate): Add casts.
2689
2690 2014-07-24  Tom Tromey  <tromey@redhat.com>
2691
2692         * cli/cli-decode.c (help_cmd): Make parameter "const".
2693         * cli/cli-decode.h (help_cmd): Update.
2694
2695 2014-07-24  Tom Tromey  <tromey@redhat.com>
2696
2697         * stack.c (up_silently_base, down_silently_base): Make argument
2698         const.
2699
2700 2014-07-24  Tom Tromey  <tromey@redhat.com>
2701
2702         * solib.c (solib_add): Make "pattern" const.
2703         * solib.h (solib_add): Update.
2704
2705 2014-07-24  Tom Tromey  <tromey@redhat.com>
2706
2707         * remote.c (remote_serial_open, print_packet, putpkt)
2708         (putpkt_binary): Constify.
2709         * remote.h (putpkt): Update.
2710
2711 2014-07-24  Tom Tromey  <tromey@redhat.com>
2712
2713         * monitor.c (monitor_open): Make "args" const.
2714         * monitor.h (monitor_open): Update.
2715
2716 2014-07-24  Tom Tromey  <tromey@redhat.com>
2717
2718         * maint.c (match_bfd_flags): Make "string" const.
2719         (print_bfd_section_info): Remove casts.
2720         (print_objfile_section_info): Make "string" const.
2721
2722 2014-07-24  Tom Tromey  <tromey@redhat.com>
2723
2724         * inf-child.c (inf_child_open_target): Make "arg" const.
2725         * inf-child.h (inf_child_open_target): Update.
2726
2727 2014-07-24  Tom Tromey  <tromey@redhat.com>
2728
2729         * environ.c (unset_in_environ): Make "var" const.
2730         * environ.h (unset_in_environ): Update.
2731
2732 2014-07-24  Tom Tromey  <tromey@redhat.com>
2733
2734         * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2735         Make "cmd" const.
2736         (scan_filename_with_cleanup): Likewise.
2737         (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2738         Make arguments const.
2739         (restore_command): Update.
2740
2741 2014-07-24  Pedro Alves  <palves@redhat.com>
2742
2743         * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2744
2745 2014-07-24  Tom Tromey  <tromey@redhat.com>
2746             Gary Benson  <gbenson@redhat.com>
2747
2748         * nat/linux-ptrace.c (additional_flags): New global.
2749         (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2750         additional_flags; don't check GDBSERVER.
2751         (linux_ptrace_set_additional_flags): New function.
2752         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2753         Declare.
2754         * linux-nat.c (_initialize_linux_nat): Call
2755         linux_ptrace_set_additional_flags.
2756
2757 2014-07-24  Tom Tromey  <tromey@redhat.com>
2758
2759         * make-target-delegates (munge_type, write_debugmethod): New
2760         functions.
2761         (debug_names): New global.
2762         ($TARGET_DEBUG_PRINTER): New global.
2763         (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2764         name.
2765         Write debug methods.  Generate init_debug_target.
2766         * target-debug.h: New file.
2767         * target-delegates.c: Rebuild.
2768         * target.c: Include target-debug.h.
2769         (debug_target): Hoist definition.
2770         (target_kill, target_get_section_table, target_memory_map)
2771         (target_flash_erase, target_flash_done, target_detach)
2772         (target_disconnect, target_wait, target_resume)
2773         (target_pass_signals, target_program_signals, target_follow_fork)
2774         (target_mourn_inferior, target_search_memory)
2775         (target_thread_address_space, target_close)
2776         (target_find_new_threads, target_core_of_thread)
2777         (target_verify_memory, target_insert_mask_watchpoint)
2778         (target_remove_mask_watchpoint): Remove targetdebug code.
2779         (debug_to_post_attach, debug_to_prepare_to_store)
2780         (debug_to_files_info, debug_to_insert_breakpoint)
2781         (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2782         (debug_to_region_ok_for_hw_watchpoint)
2783         (debug_to_can_accel_watchpoint_condition)
2784         (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2785         (debug_to_watchpoint_addr_within_range)
2786         (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2787         (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2788         (debug_to_terminal_init, debug_to_terminal_inferior)
2789         (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2790         (debug_to_terminal_save_ours, debug_to_terminal_info)
2791         (debug_to_load, debug_to_post_startup_inferior)
2792         (debug_to_insert_fork_catchpoint)
2793         (debug_to_remove_fork_catchpoint)
2794         (debug_to_insert_vfork_catchpoint)
2795         (debug_to_remove_vfork_catchpoint)
2796         (debug_to_insert_exec_catchpoint)
2797         (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2798         (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2799         (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2800         (setup_target_debug): Call init_debug_target.
2801         * target.h (TARGET_DEBUG_PRINTER): New macro.
2802         (struct target_ops) <to_resume, to_wait, to_pass_signals,
2803         to_program_signals>: Use TARGET_DEBUG_PRINTER.
2804
2805 2014-07-24  Gary Benson  <gbenson@redhat.com>
2806
2807         * exceptions.h (throw_vfatal): Renamed to...
2808         (throw_vquit): New declaration.
2809         (throw_quit): Likewise.
2810         * exceptions.c (throw_vfatal): Renamed to...
2811         (throw_vquit): New function.
2812         (throw_quit): Likewise.
2813         (throw_error): Call throw_verror rather than throw_it.
2814         * utils.h (vfatal): Removed.
2815         (fatal): Likewise.
2816         * utils.c (vfatal): Removed.
2817         (fatal): Likewise.
2818         (internal_verror): Replaced call to fatal with call to throw_quit.
2819         (quit): Replaced calls to fatal with calls to throw_quit.
2820
2821 2014-07-23  Ajit Agarwal <ajitkum@xilinx.com>
2822
2823         * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2824         target_read_code.
2825
2826 2014-07-23  Chen Gang <gang.chen.5i5j@gmail.com>
2827
2828         * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2829         less than zero in conditional expression.
2830
2831 2014-07-23  Tom Tromey  <tromey@redhat.com>
2832
2833         * make-target-delegates ($ARGS_PART): Match trailing close paren.
2834         ($INTRO_PART): Don't match whitespace.
2835         ($METHOD_TRAILER): Move earlier.  Remove trailing semicolon and
2836         argument matching.
2837         ($METHOD): Add $METHOD_TRAILER.
2838         (trim): Rewrite.
2839         (scan_target_h): New sub.
2840         Change main loop not to collect state.
2841         * target-delegates.c: Rebuild.
2842
2843 2014-07-23  Gary Benson  <gbenson@redhat.com>
2844
2845         * cp-support.c (gdb_demangle): Fix build on systems without
2846         sigaltstack.
2847
2848 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
2849
2850         * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2851         for reference entry value target data value.
2852
2853 2014-07-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
2854
2855         * stack.c (read_frame_arg): Verify value_optimized_out before calling
2856         value_available_contents_eq.
2857
2858 2014-07-22  Pedro Alves  <palves@redhat.com>
2859
2860         * value.c (allocate_optimized_out_value): Don't mark value as
2861         non-lazy.
2862
2863 2014-07-22  Jiong Wang  <jiong.wang@arm.com>
2864
2865         * MAINTAINERS (Write After Approval): Update my email address.
2866
2867 2014-07-20  Doug Evans  <dje@google.com>
2868
2869         PR server/17147
2870         * remote.c (putpkt_binary): Add text to error message.
2871
2872 2014-07-20  Yao Qi  <yao@codesourcery.com>
2873
2874         * eval.c: Remove "Chill" from comments.
2875         * gdbtypes.h: Likewise.
2876         * symtab.h: Likewise.
2877
2878 2014-07-20  Yao Qi  <yao@codesourcery.com>
2879
2880         * std-operator.def: Update comments to TERNOP_SLICE.
2881
2882 2014-07-20  Yao Qi  <yao@codesourcery.com>
2883
2884         * std-operator.def: Remove BINOP_RANGE.
2885         * breakpoint.c (watchpoint_exp_is_const): Update.
2886         * expprint.c (dump_subexp_body_standard): Likewise.
2887         * eval.c (init_array_element): Remove dead code.
2888         (evaluate_subexp_standard): Likewise.
2889
2890 2014-07-20  Yao Qi  <yao@codesourcery.com>
2891
2892         * std-operator.def: Remove BINOP_IN.
2893         * breakpoint.c (watchpoint_exp_is_const): Update.
2894         * eval.c (evaluate_subexp_standard): Likewise.
2895         * expprint.c (dump_subexp_body_standard): Likewise.
2896
2897 2014-07-19  Ajit Agarwal  <ajitkum@xilinx.com>
2898
2899         * microblaze-tdep.c (microblaze_register_names): Add
2900         the rshr and rslr register names.
2901         (microblaze_gdbarch_init): Use of tdesc_has_registers.
2902         Use of tdesc_find_feature. Use of tdesc_data_alloc.
2903         Use of tdesc_numbered_register. Use of
2904         microblaze_register_g_packet_guesses. Use of
2905         tdesc_use_registers. Use of set_gdbarch_register_type.
2906         (microblaze_register_g_packet_guesses): New.
2907         * microblaze-tdep.h (microblaze_reg_num): Add
2908         field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2909         MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2910         (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2911         * features/microblaze-core.xml: New file.
2912         * features/microblaze-stack-protect.xml: New file.
2913         * features/microblaze-with-stack-protect.c: New file.
2914         * features/microblaze-with-stack-protect.xml: New file.
2915         * features/microblaze.xml: New file.
2916         * features/microblaze.c: New file.
2917         * features/Makefile (microblaze-with-stack-protect): Add
2918         microblaze-with-stack-protect microblaze and microblaze-expedite.
2919         * regformats/microblaze-with-stack-protect.dat: New file.
2920         * regformats/microblaze.dat: New file.
2921         * doc/gdb.texinfo (MicroBlaze Features): Added.
2922
2923 2014-07-18  Tom Tromey  <tromey@redhat.com>
2924
2925         * exec.c (exec_ops): Now static.
2926         * exec.h (exec_ops): Don't declare.
2927
2928 2014-07-18  Tom Tromey  <tromey@redhat.com>
2929
2930         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2931         to find_target_beneath.
2932         * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2933         find_target_beneath.
2934         (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2935
2936 2014-07-18  Tom Tromey  <tromey@redhat.com>
2937
2938         PR gdb/17130:
2939         * utils.c (quit): Use target_supports_terminal_ours.
2940         * target.h (target_supports_terminal_ours): Declare.
2941         * target.c (target_supports_delete_record): Don't check
2942         to_delete_record against NULL.
2943         (target_supports_terminal_ours): New function.
2944
2945 2014-07-18  Tom Tromey  <tromey@redhat.com>
2946
2947         PR gdb/17130:
2948         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2949         (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2950         (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2951         * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2952         * windows-nat.c (windows_xfer_partial): Always delegate.
2953         * record-btrace.c (record_btrace_xfer_partial): Simplify
2954         delegation.
2955         (record_btrace_fetch_registers, record_btrace_store_registers)
2956         (record_btrace_prepare_to_store, record_btrace_resume)
2957         (record_btrace_wait, record_btrace_find_new_threads)
2958         (record_btrace_thread_alive): Likewise.
2959         * procfs.c (procfs_xfer_partial): Always delegate.
2960         * corelow.c (core_xfer_partial): Always delegate.
2961         * sol-thread.c (sol_find_new_threads): Simplify delegation.
2962
2963 2014-07-18  Tom Tromey  <tromey@redhat.com>
2964
2965         * exec.c (exec_make_note_section): Move earlier.
2966
2967 2014-07-17  Doug Evans  <dje@google.com>
2968
2969         PR gdb/17170
2970         * maint.c (count_symtabs_and_blocks): Handle NULL
2971         current_program_space.
2972         (report_command_stats): Check global enabled flag in addition to
2973         recorded enabled flag.
2974         (make_command_stats_cleanup): Handle msg_type == 0, startup.
2975
2976 2014-07-16  Pedro Alves  <palves@redhat.com>
2977
2978         * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2979
2980 2014-07-16  Tom Tromey  <tromey@redhat.com>
2981
2982         * target.h (struct target_ops) <to_delete_record>: Reformat
2983         comment.
2984
2985 2014-07-16  Tom Tromey  <tromey@redhat.com>
2986
2987         * target-delegates.c: Rebuild.
2988
2989 2014-07-15  Pierre Langlois  <pierre.langlois@embecosm.com>
2990
2991         * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2992         (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2993         (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2994         (avr_pointer_to_address): Likewise.
2995         (avr_address_class_type_flags): New function.
2996         (avr_address_class_type_flags_to_name): Likewise.
2997         (avr_address_class_name_to_type_flags): Likewise.
2998         (avr_gdbarch_init): Set address_class_type_flags,
2999         address_class_type_flags_to_name and
3000         address_class_name_to_type_flags.
3001
3002 2014-07-15  Pedro Alves  <palves@redhat.com>
3003
3004         * linux-nat.c (kill_callback): Save errno and work with saved
3005         copy.
3006
3007 2014-07-15  Simon Marchi  <simon.marchi@ericsson.com>
3008
3009         * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
3010
3011 2014-07-14  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
3012
3013         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
3014         breakpoint support correctly.
3015
3016 2014-07-14  Pedro Alves  <palves@redhat.com>
3017
3018         * utils.c (prompt_for_continue): Call target_terminal_ours.
3019
3020 2014-07-14  Pedro Alves  <palves@redhat.com>
3021
3022         * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
3023         catch_errors.  Don't re-enable stdin or notify observers where,
3024         and rethrow error.
3025         (fetch_inferior_event_wrapper): Delete.
3026
3027 2014-07-14  Pedro Alves  <palves@redhat.com>
3028
3029         PR gdb/17072
3030         * top.c: Include "inf-loop.h".
3031         (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
3032         field.
3033         (gdb_readline_wrapper_cleanup): Make the target async again, if it
3034         was async before.
3035         (gdb_readline_wrapper): Store whether the target is async, and
3036         make it sync.
3037
3038 2014-07-14  Pedro Alves  <palves@redhat.com>
3039
3040         PR gdb/17072
3041         * top.c (gdb_readline_wrapper_line): Tweak comment.
3042         (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
3043         the input handler callback.
3044
3045 2014-07-14  Pedro Alves  <palves@redhat.com>
3046
3047         PR gdb/17072
3048         * main.c: Include event-top.h.
3049         (handle_command_errors): New function.
3050         (catch_command_errors, catch_command_errors_const): Use it.
3051
3052 2014-07-14  Pedro Alves  <palves@redhat.com>
3053
3054         * exceptions.c (catch_command_errors, catch_command_errors_const):
3055         Moved to main.c.
3056         * exceptions.h (catch_command_errors_ftype)
3057         (catch_command_errors_const_ftype): Moved to main.c.
3058         (catch_command_errors, catch_command_errors_const): Delete
3059         declarations.
3060         * main.c (catch_command_errors_ftype)
3061         (catch_command_errors_const_ftype): Moved here from exceptions.h.
3062         (catch_command_errors, catch_command_errors_const)): Moved here
3063         from exceptions.c and make static.
3064
3065 2014-07-14  Pedro Alves  <palves@redhat.com>
3066
3067         * exceptions.c (print_any_exception): Delete.
3068         (catch_exceptions_with_msg): Use exception_print instead of
3069         print_any_exception.
3070         (catch_errors): Use exception_fprintf instead of
3071         print_any_exception.
3072         (catch_command_errors, catch_command_errors_const): Use
3073         exception_print instead of print_any_exception.
3074
3075 2014-07-14  Pedro Alves  <palves@redhat.com>
3076
3077         * infcall.c (run_inferior_call): Set 'sync_execution' while
3078         running the inferior call.
3079
3080 2014-07-14  Pedro Alves  <palves@redhat.com>
3081
3082         * value.c (value_contents_equal): Delete function.
3083         * value.h (value_contents_equal): Delete declaration.
3084
3085 2014-07-14  Tom Tromey  <tromey@redhat.com>
3086
3087         PR exp/17106:
3088         * gdbtypes.c (is_dynamic_type_internal): New function, from
3089         is_dynamic_type.
3090         (is_dynamic_type): Rewrite.
3091         (resolve_dynamic_union): Use resolve_dynamic_type_internal.
3092         (resolve_dynamic_struct): Likewise.
3093         (resolve_dynamic_type_internal): New function, from
3094         resolve_dynamic_type.
3095         (resolve_dynamic_type): Rewrite.
3096
3097 2014-07-14  Tom Tromey  <tromey@redhat.com>
3098
3099         * target.c (target_require_runnable): Also check record_stratum.
3100         Update comment.
3101
3102 2014-07-11  Yao Qi  <yao@codesourcery.com>
3103
3104         * arm-tdep.c (thumb_analyze_prologue): Break the loop if
3105         thumb_instruction_restores_sp return true.
3106
3107 2014-07-11  Yao Qi  <yao@codesourcery.com>
3108
3109         * arm-tdep.c (thumb_instruction_restores_sp): New function.
3110         (thumb_in_function_epilogue_p): Call
3111         thumb_instruction_restores_sp.
3112
3113 2014-07-11  Yao Qi  <yao@codesourcery.com>
3114
3115         * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
3116         'add sp, #imm'.
3117         (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
3118
3119 2014-07-11  Gary Benson  <gbenson@redhat.com>
3120
3121         * amd64-linux-nat.c (gdbcore.h): Remove include.
3122         (regset.h): Likewise.
3123         (nat/linux-btrace.h): Likewise.
3124         (btrace.h): Likewise.
3125         (gdb_assert.h): Likewise.
3126         (string.h): Likewise.
3127         (sys/uio.h): Likewise.
3128         (sys/debugreg.h): Likewise.
3129         (sys/syscall.h): Likewise.
3130         (sys/procfs.h): Likewise.
3131         (sys/user.h): Likewise.
3132         (asm/ptrace.h): Likewise.
3133         (i386-nat.h): Likewise.
3134         * i386-linux-nat.c (i386-nat.h): Likewise.
3135         (regset.h): Likewise.
3136         (target.h): Likewise.
3137         (linux-nat.h): Likewise.
3138         (nat/linux-btrace.h): Likewise.
3139         (btrace.h): Likewise.
3140         (gdb_assert.h): Likewise.
3141         (string.h): Likewise.
3142         (sys/uio.h): Likewise.
3143         (sys/user.h): Likewise.
3144         (sys/procfs.h): Likewise.
3145         (sys/reg.h): Likewise.
3146         (sys/debugreg.h): Likewise.
3147         (ORIG_EAX): Remove definition.
3148
3149 2014-07-11  Gary Benson  <gbenson@redhat.com>
3150
3151         * i386-linux-nat.h: New file.
3152         * x86-linux-nat.h: Likewise.
3153         * x86-linux-nat.c: Likewise.
3154         * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
3155         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
3156         * config/i386/linux64.mh (NATDEPFILES): Likewise.
3157         * amd64-linux-nat.c (x86-linux-nat.h): New include.
3158         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3159         (PTRACE_SETREGSET): Likewise.
3160         (arch_lwp_info): Now in x86-linux-nat.c.
3161         (have_ptrace_getregset): Now in x86-linux-nat.h.
3162         (x86_linux_dr_get): Now in x86-linux-nat.c.
3163         (x86_linux_dr_set): Likewise.
3164         (x86_linux_dr_get_addr): Likewise.
3165         (x86_linux_dr_get_control): Likewise.
3166         (x86_linux_dr_get_status): Likewise.
3167         (update_debug_registers_callback): Likewise.
3168         (x86_linux_dr_set_control): Likewise.
3169         (x86_linux_dr_set_addr): Likewise.
3170         (x86_linux_prepare_to_resume): Likewise.
3171         (x86_linux_new_thread): Likewise.
3172         (x86_linux_new_fork): Likewise.
3173         (x86_linux_get_thread_area): Likewise.
3174         (super_post_startup_inferior): Likewise.
3175         (x86_linux_child_post_startup_inferior): Likewise.
3176         (AMD64_LINUX_USER64_CS): Likewise.
3177         (AMD64_LINUX_X32_DS): Likewise.
3178         (x86_linux_read_description): Likewise.
3179         (x86_linux_enable_btrace): Likewise.
3180         (x86_linux_disable_btrace): Likewise.
3181         (x86_linux_teardown_btrace): Likewise.
3182         (x86_linux_read_btrace): Likewise.
3183         (x86_linux_create_target): Likewise.
3184         (x86_linux_add_target): Likewise.
3185         * i386-linux-nat.c (x86-linux-nat.h): New include.
3186         (PTRACE_GETREGSET): Now in x86-linux-nat.h.
3187         (PTRACE_SETREGSET): Likewise.
3188         (arch_lwp_info): Now in x86-linux-nat.c.
3189         (have_ptrace_getregset): Now in x86-linux-nat.h.
3190         (x86_linux_dr_get): Now in x86-linux-nat.c.
3191         (x86_linux_dr_set): Likewise.
3192         (x86_linux_dr_get_addr): Likewise.
3193         (x86_linux_dr_get_control): Likewise.
3194         (x86_linux_dr_get_status): Likewise.
3195         (update_debug_registers_callback): Likewise.
3196         (x86_linux_dr_set_control): Likewise.
3197         (x86_linux_dr_set_addr): Likewise.
3198         (x86_linux_prepare_to_resume): Likewise.
3199         (x86_linux_new_thread): Likewise.
3200         (x86_linux_new_fork): Likewise.
3201         (x86_linux_get_thread_area): Likewise.
3202         (super_post_startup_inferior): Likewise.
3203         (x86_linux_child_post_startup_inferior): Likewise.
3204         (AMD64_LINUX_USER64_CS): Likewise.
3205         (AMD64_LINUX_X32_DS): Likewise.
3206         (x86_linux_read_description): Likewise.
3207         (x86_linux_enable_btrace): Likewise.
3208         (x86_linux_disable_btrace): Likewise.
3209         (x86_linux_teardown_btrace): Likewise.
3210         (x86_linux_read_btrace): Likewise.
3211         (x86_linux_create_target): Likewise.
3212         (x86_linux_add_target): Likewise.
3213
3214 2014-07-11  Gary Benson  <gbenson@redhat.com>
3215
3216         * amd64-linux-nat.c: Comment and whitespace changes.
3217         * i386-linux-nat.c: Comment and whitespace changes.
3218
3219 2014-07-11  Gary Benson  <gbenson@redhat.com>
3220
3221         * amd64-linux-nat.c (x86_linux_create_target): New function.
3222         (x86_linux_add_target): Likewise.
3223         (_initialize_amd64_linux_nat): Delegate to the above new functions.
3224         * i386-linux-nat.c (x86_linux_create_target): New function.
3225         (x86_linux_add_target): Likewise.
3226         (_initialize_i386_linux_nat): Delegate to the above new functions.
3227
3228 2014-07-11  Gary Benson  <gbenson@redhat.com>
3229
3230         * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
3231         (ps_get_thread_area): Delegate to the above in 32-bit mode.
3232         * i386-linux-nat.c (x86_linux_get_thread_area): New function.
3233         (ps_get_thread_area): Delegate to the above.
3234
3235 2014-07-11  Gary Benson  <gbenson@redhat.com>
3236
3237         * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
3238         x86_linux_read_description.  All uses updated.  amd64-specific
3239         code conditionalized.  Conditionalized i386-specific code added.
3240         Redundant cast removed.
3241         * i386-linux-nat.c (i386_linux_read_description): Renamed to
3242         x86_linux_read_description.  All uses updated.  i386-specific
3243         code conditionalized.  Conditionalized amd64-specific code added.
3244         One sizeof replaced with the actual type it is describing.
3245
3246 2014-07-11  Gary Benson  <gbenson@redhat.com>
3247
3248         * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
3249         x86_linux_dr_get.  All uses updated.
3250         (amd64_linux_dr_set): Renamed to
3251         x86_linux_dr_set.  All uses updated.
3252         (amd64_linux_dr_get_addr): Renamed to
3253         x86_linux_dr_get_addr.  All uses updated.
3254         (amd64_linux_dr_get_control): Renamed to
3255         x86_linux_dr_get_control.  All uses updated.
3256         (amd64_linux_dr_get_status): Renamed to
3257         x86_linux_dr_get_status.  All uses updated.
3258         (amd64_linux_dr_set_control): Renamed to
3259         x86_linux_dr_set_control.  All uses updated.
3260         (amd64_linux_dr_set_addr): Renamed to
3261         x86_linux_dr_set_addr.  All uses updated.
3262         (amd64_linux_prepare_to_resume): Renamed to
3263         x86_linux_prepare_to_resume.  All uses updated.
3264         (amd64_linux_new_thread): Renamed to
3265         x86_linux_new_thread.  All uses updated.
3266         (amd64_linux_new_fork): Renamed to
3267         x86_linux_new_fork.  All uses updated.
3268         (amd64_linux_child_post_startup_inferior): Renamed to
3269         x86_linux_child_post_startup_inferior.  All uses updated.
3270         (amd64_linux_enable_btrace): Renamed to
3271         x86_linux_enable_btrace.  All uses updated.
3272         (amd64_linux_disable_btrace): Renamed to
3273         x86_linux_disable_btrace.  All uses updated.
3274         (amd64_linux_teardown_btrace): Renamed to
3275         x86_linux_teardown_btrace.  All uses updated.
3276         (amd64_linux_read_btrace): Renamed to
3277         x86_linux_read_btrace.  All uses updated.
3278         * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3279         x86_linux_dr_get.  All uses updated.
3280         (i386_linux_dr_set): Renamed to
3281         x86_linux_dr_set.  All uses updated.
3282         (i386_linux_dr_get_addr): Renamed to
3283         x86_linux_dr_get_addr.  All uses updated.
3284         (i386_linux_dr_get_control): Renamed to
3285         x86_linux_dr_get_control.  All uses updated.
3286         (i386_linux_dr_get_status): Renamed to
3287         x86_linux_dr_get_status.  All uses updated.
3288         (i386_linux_dr_set_control): Renamed to
3289         x86_linux_dr_set_control.  All uses updated.
3290         (i386_linux_dr_set_addr): Renamed to
3291         x86_linux_dr_set_addr.  All uses updated.
3292         (i386_linux_prepare_to_resume): Renamed to
3293         x86_linux_prepare_to_resume.  All uses updated.
3294         (i386_linux_new_thread): Renamed to
3295         x86_linux_new_thread.  All uses updated.
3296         (i386_linux_new_fork): Renamed to
3297         x86_linux_new_fork.  All uses updated.
3298         (i386_linux_child_post_startup_inferior): Renamed to
3299         x86_linux_child_post_startup_inferior.  All uses updated.
3300         (i386_linux_enable_btrace): Renamed to
3301         x86_linux_enable_btrace.  All uses updated.
3302         (i386_linux_disable_btrace): Renamed to
3303         x86_linux_disable_btrace.  All uses updated.
3304         (i386_linux_teardown_btrace): Renamed to
3305         x86_linux_teardown_btrace.  All uses updated.
3306         (i386_linux_read_btrace): Renamed to
3307         x86_linux_read_btrace.  All uses updated.
3308
3309 2014-07-11  Adrian Sendroiu  <adrian.sendroiu@freescale.com>
3310
3311         * remote.c (extended_remote_post_attach): New function.
3312         (init_extended_remote_ops): Install it as to_post_attach method.
3313
3314 2014-07-09  Pedro Alves  <palves@redhat.com>
3315
3316         * infcmd.c (attach_command_post_wait): Don't call
3317         target_terminal_inferior here.
3318         (attach_command): Call it here instead.
3319
3320 2014-07-09  Andrew Burgess  <andrew.burgess@embecosm.com>
3321
3322         * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3323         field.
3324         * c-varobj.c (c_is_path_expr_parent): New function, moved core
3325         from varobj.c, with additional checks.
3326         (c_varobj_ops): Fill in is_path_expr_parent field.
3327         (cplus_varobj_ops): Fill in is_path_expr_parent field.
3328         * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3329         field.
3330         * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3331         ops method.
3332         (varobj_default_is_path_expr_parent): New function.
3333         * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3334         (varobj_default_is_path_expr_parent): Declare new function.
3335
3336 2014-07-08  Markus Metzger  <markus.t.metzger@intel.com>
3337
3338         * infcmd.c (finish_backward): Turn internal error into normal error.
3339
3340 2014-07-07  Pedro Alves  <palves@redhat.com>
3341
3342         PR gdb/17096
3343         * remote.c (async_handle_remote_sigint)
3344         (async_handle_remote_sigint_twice): Call
3345         gdb_call_async_signal_handler instead of
3346         mark_async_signal_handler.
3347
3348 2014-07-07  Tom Tromey  <tromey@redhat.com>
3349
3350         * target-delegates.c: Rebuild.
3351         * target.c (target_info_record): Remove.
3352         * record.c (info_record_command): Unconditionally call
3353         to_info_record.
3354         * target.h (struct target_ops) <to_info_record>: Use
3355         TARGET_DEFAULT_IGNORE.
3356         (target_info_record): Remove.
3357
3358 2014-07-07  Tom Tromey  <tromey@redhat.com>
3359
3360         * target.h (struct target_ops) <to_get_thread_local_address>: Use
3361         TARGET_DEFAULT_NORETURN.
3362         * target.c (generic_tls_error): New function.
3363         (target_translate_tls_address): Don't search target stack.
3364         * target-delegates.c: Rebuild.
3365         * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3366         stack.
3367         * linux-thread-db.c (thread_db_get_thread_local_address):
3368         Unconditionally call beneath target.
3369
3370 2014-07-03  Marc Khouzam  <marc.khouzam@ericsson.com>
3371
3372         * cli/cli-logging.c (pop_output_files): Assign targerr to
3373         gdb_stdtargerr.
3374
3375 2014-07-03  Andrew Burgess  <andrew.burgess@embecosm.com>
3376
3377         * MAINTAINERS (Write After Approval): Update my email address.
3378
3379 2014-07-02  Gary Benson  <gbenson@redhat.com>
3380
3381         * proc-service.c (ps_xfer_memory): Update comment.
3382         (ps_pstop): Remove unused function.
3383         (ps_pcontinue): Likewise.
3384         (ps_lstop): Likewise.
3385         (ps_lcontinue): Likewise.
3386         (ps_lgetxregsize): Likewise.
3387         (ps_lgetxregs): Likewise.
3388         (ps_lsetxregs): Likewise.
3389         (ps_plog): Likewise.
3390         (ps_ptread): Likewise.
3391         (ps_ptwrite): Likewise.
3392
3393 2014-07-01  Mark Wielaard  <mjw@redhat.com>
3394
3395         * dwarf2read.c (add_array_cv_type): New function.
3396         (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3397         (read_tag_volatile_type): Likewise.
3398
3399 2014-07-01  Tom Tromey  <tromey@redhat.com>
3400
3401         * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3402         * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3403         * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3404         (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3405         * command.h (cmd_cfunc_ftype): Move earlier.
3406         (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3407         (add_com, add_info): Use cmd_cfunc_ftype.
3408
3409 2014-06-30  Tom Tromey  <tromey@redhat.com>
3410
3411         * symtab.c (operator_chars): Make parameters and return type
3412         const.
3413         (file_matches): Make "files" const.
3414         (struct search_symbols_data) <files>: Now const.
3415         (search_symbols): Make "regexp" and "files" parameters const.
3416         Update.
3417         (symtab_symbol_info): Remove cast.
3418         (rbreak_command): Update.
3419         * symtab.h (search_symbols): Update.
3420
3421 2014-06-27  Yao Qi  <yao@codesourcery.com>
3422
3423         * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3424         Change parameter type to 'struct thread_info *'.  Caller
3425         updated.
3426         * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3427         Update declaration.
3428         * dummy-frame.c (struct dummy_frame_id): New.
3429         (dummy_frame_id_eq): New function.
3430         (struct dummy_frame) <id>: Change its type to 'struct
3431         dummy_frame_id'.
3432         (dummy_frame_push): Add parameter ptid and save it in
3433         dummy_frame_id.
3434         (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3435         inferior_ptid.
3436         (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3437         to inferior_ptid.
3438         (lookup_dummy_frame): Change parameter type to 'struct
3439         dummy_frame_id *'.  Callers updated.  Call dummy_frame_id_eq
3440         instead of frame_id_eq.
3441         (dummy_frame_pop): Add parameter ptid.  Callers updated.
3442         Update comments.  Compose dummy_frame_id and pass it to
3443         lookup_dummy_frame.
3444         (dummy_frame_discard): Add parameter ptid.
3445         (dummy_frame_sniffer): Compose dummy_frame_id and call
3446         dummy_frame_id_eq instead of frame_id_eq.
3447         (fprint_dummy_frames): Print ptid.
3448         * dummy-frame.h: Remove comments.
3449         (dummy_frame_push): Add ptid in declaration.
3450         (dummy_frame_pop, dummy_frame_discard): Likewise.
3451
3452 2014-06-26  Tom Tromey  <tromey@redhat.com>
3453
3454         * cli/cli-cmds.c (error_no_arg): Make "why" const.
3455         * command.h (error_no_arg): Update.
3456
3457 2014-06-26  Tom Tromey  <tromey@redhat.com>
3458
3459         * cli/cli-setshow.c (do_set_command): Make "arg" const.
3460         (do_show_command): Make "arg" const.
3461         * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3462
3463 2014-06-26  Tom Tromey  <tromey@redhat.com>
3464
3465         * record-full.c (record_full_get_bookmark): Make "args" const.
3466         (record_full_goto_bookmark): Make "raw_bookmark" const.
3467         * record.c (record_goto): New function.
3468         (cmd_record_goto): Use it.  Now static.
3469         * record.h (record_goto): Declare.
3470         (cmd_record_goto): Remove declaration.
3471         * target-delegates.c: Rebuild.
3472         * target.h (struct target_ops) <to_get_bookmark,
3473         to_goto_bookmark>: Make parameter const.
3474
3475 2014-06-26  Tom Tromey  <tromey@redhat.com>
3476
3477         * defs.h (generic_load): Update.
3478         * m32r-rom.c (m32r_load_gen): Make "filename" const.
3479         * monitor.c (monitor_load): Make "args" const.
3480         * remote-m32r-sdi.c (m32r_load): Make "args" const.
3481         * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3482         const.
3483         (mips_load): Make "file" const.
3484         * remote-sim.c (gdbsim_load): Make "args" const.
3485         * remote.c (remote_load): Make "name" const.
3486         * symfile.c (generic_load): Make "args" const.
3487         * target-delegates.c: Rebuild.
3488         * target.c (target_load): Make "arg" const.
3489         (debug_to_load): Make "args" const.
3490         * target.h (struct target_ops) <to_load>: Make parameter const.
3491         (target_load): Update.
3492
3493 2014-06-26  Tom Tromey  <tromey@redhat.com>
3494
3495         PR symtab/16902:
3496         * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3497         (dwarf2_physname, read_partial_die)
3498         (guess_partial_die_structure_name, fixup_partial_die)
3499         (guess_full_die_structure_name, anonymous_struct_prefix)
3500         (dwarf2_name): Use per-BFD obstack.
3501
3502 2014-06-26  Yao Qi  <yao@codesourcery.com>
3503
3504         * dummy-frame.c (dummy_frame_sniffer): Move local variables
3505         dummyframe and this_id into inner block below.
3506
3507 2014-06-26  Yao Qi  <yao@codesourcery.com>
3508
3509         * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3510         with "signal_pass[0]" in the initialization of signal_pass.
3511
3512 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
3513
3514         * record-btrace.c (record_btrace_generating_corefile)
3515         (record_btrace_prepare_to_generate_core)
3516         (record_btrace_done_generating_core): New.
3517         (record_btrace_xfer_partial, record_btrace_fetch_registers)
3518         (record_btrace_store_registers, record_btrace_prepare_to_store):
3519         Forward request when generating a core file.
3520         (record_btrace_open): Set record_btrace_generating_corefile to zero.
3521         (init_record_btrace_ops): Set to_prepare_to_generate_core and
3522         to_done_generating_core.
3523
3524 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
3525
3526         * target.h (target_ops) <to_prepare_to_generate_core>
3527         <to_done_generating_core>: New.
3528         (target_prepare_to_generate_core, target_done_generating_core): New.
3529         * target.c (target_prepare_to_generate_core)
3530         (target_done_generating_core): New.
3531         * target-delegates.c: Regenerate.
3532         * gcore.c: (write_gcore_file): Rename to ...
3533         (write_gcore_file_1): ...this.
3534         (write_gcore_file): Call target_prepare_to_generate_core
3535         and target_done_generating_core.
3536
3537 2014-06-25  Markus Metzger  <markus.t.metzger@intel.com>
3538
3539         * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3540         * gcore.c (write_gcore_file): Free memory returned from
3541         make_corefile_notes.
3542         * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3543         * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3544
3545 2014-06-24  Yao Qi  <yao@codesourcery.com>
3546
3547         * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3548         (arm_linux_init_abi): Set skip_trampoline_code with
3549         gdbarch_skip_trampoline_code instead of
3550         find_solib_trampoline_target.
3551
3552 2014-06-24  Yao Qi  <yao@codesourcery.com>
3553
3554         * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3555         arm_skip_bx_reg returns non-zero.
3556
3557 2014-06-24  Yao Qi  <yao@codesourcery.com>
3558
3559         * arm-tdep.c (arm_skip_bx_reg): New function.
3560         (arm_skip_stub): Call arm_skip_bx_reg.
3561
3562 2014-06-23  Don Breazeal  <donb@codesourcery.com>
3563
3564         * MAINTAINERS: Add myself as write-after-approval maintainer.
3565
3566 2014-06-23  Pedro Alves  <palves@redhat.com>
3567
3568         * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3569         DR_CONTROL before setting DR0..DR3.
3570         * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3571         * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3572         bits of DR_CONTROL related to the debug register slot being
3573         disabled.  If all slots are vacant, clear local slowdown as well,
3574         and assert DR_CONTROL is 0.
3575
3576 2014-06-23  Siva Chandra Reddy  <sivachandra@google.com>
3577
3578         * python/lib/gdb/command/xmethods.py
3579         (get_method_matchers_in_loci):  Lookup xmethod matchers in the
3580         current progspace only if the string "progspace" matches LOCUS_RE.
3581
3582 2014-06-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
3583
3584         Fix --with-system-readline with readline-6.3 patch 5.
3585         * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3586         (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3587         types.
3588
3589 2014-06-20  Tom Tromey  <tromey@redhat.com>
3590
3591         * dwarf2read.c (dw2_get_real_path): Use correct type in
3592         OBSTACK_CALLOC.
3593         * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3594
3595 2014-06-20  Gary Benson  <gbenson@redhat.com>
3596
3597         * common/gdb_thread_db.h: Moved to nat.  All includes updated.
3598         * common/glibc_thread_db.h: Likewise.
3599         * common/i386-cpuid.h: Likewise.
3600         * common/i386-gcc-cpuid.h: Likewise.
3601         * common/linux-btrace.h: Likewise.
3602         * common/linux-osdata.h: Likewise.
3603         * common/linux-procfs.h: Likewise.
3604         * common/linux-ptrace.h: Likewise.
3605         * common/mips-linux-watch.h: Likewise.
3606         * common/linux-btrace.c: Moved to nat.
3607         * common/linux-osdata.c: Likewise.
3608         * common/linux-procfs.c: Likewise.
3609         * common/linux-ptrace.c: Likewise.
3610         * common/mips-linux-watch.c: Likewise.
3611         * nat/gdb_thread_db.h: Moved from common.
3612         * nat/glibc_thread_db.h: Likewise.
3613         * nat/i386-cpuid.h: Likewise.
3614         * nat/i386-gcc-cpuid.h: Likewise.
3615         * nat/linux-btrace.c: Likewise.
3616         * nat/linux-btrace.h: Likewise.
3617         * nat/linux-osdata.c: Likewise.
3618         * nat/linux-osdata.h: Likewise.
3619         * nat/linux-procfs.c: Likewise.
3620         * nat/linux-procfs.h: Likewise.
3621         * nat/linux-ptrace.c: Likewise.
3622         * nat/linux-ptrace.h: Likewise.
3623         * nat/mips-linux-watch.c: Likewise.
3624         * nat/mips-linux-watch.h: Likewise.
3625         * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3626         (object file files): Reordered.
3627         * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3628         of glibc_thread_db.h.
3629
3630 2014-06-20  Gary Benson  <gbenson@redhat.com>
3631
3632         * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3633         (i386_dr_low_type): Moved to nat/i386-dregs.h.
3634         (i386_dr_low): Likewise.
3635         (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3636         (i386_dr_low_set_addr): Likewise.
3637         (i386_dr_low_get_addr): Likewise.
3638         (i386_dr_low_can_set_control): Likewise.
3639         (i386_dr_low_set_control): Likewise.
3640         (i386_dr_low_get_control): Likewise.
3641         (i386_dr_low_get_status): Likewise.
3642         (i386_get_debug_register_length): Likewise.
3643         * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3644         (i386_dr_low): Likewise.
3645         * nat/i386-dregs.c (i386-low.h): Remove include.
3646         (i386-nat.h): Likewise.
3647         (nat/i386-dregs.h): New include.
3648         (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3649         (i386_dr_low_set_addr): Likewise.
3650         (i386_dr_low_get_addr): Likewise.
3651         (i386_dr_low_can_set_control): Likewise.
3652         (i386_dr_low_set_control): Likewise.
3653         (i386_dr_low_get_control): Likewise.
3654         (i386_dr_low_get_status): Likewise.
3655         (i386_get_debug_register_length): Likewise.
3656         (debug_hw_points): Likewise.
3657
3658 2014-06-19  Iain Buclaw  <ibuclaw@gdcproject.org>
3659
3660         * Makefile.in (SFILES): Add d-exp.y.
3661         (YYFILES): Add d-exp.c.
3662         (YYOBJ): Add d-exp.o.
3663         (local-maintainer-clean): Delete d-exp.c.
3664         * d-exp.y: New file.
3665         * d-lang.h (d_parse): New declaration.
3666         (d_error): New declaration.
3667         * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3668         Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3669         PREC_ORDER operators.
3670         (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3671
3672 2014-06-19  Yao Qi  <yao@codesourcery.com>
3673
3674         * gdbthread.h (any_running): Remove the declaration.
3675         * thread.c (any_running): Remove.
3676
3677 2014-06-19  Yao Qi  <yao@codesourcery.com>
3678
3679         * gdbthread.h (struct thread_info) <state>: Change its type to
3680         'enum thread_state'.  Update comments.
3681
3682 2014-06-19  Pedro Alves  <palves@redhat.com>
3683
3684         * gdbthread.h (ALL_THREADS): Delete.
3685         (ALL_NON_EXITED_THREADS): New macro.
3686         * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3687         instead of ALL_THREADS.
3688         * infrun.c (find_thread_needs_step_over)
3689         (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3690         instead of ALL_THREADS.
3691         * record-btrace.c (record_btrace_open)
3692         (record_btrace_stop_recording, record_btrace_close)
3693         (record_btrace_is_replaying, record_btrace_resume)
3694         (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3695         * remote.c (append_pending_thread_resumptions): Likewise.
3696         * thread.c (thread_apply_all_command): Likewise.
3697
3698 2014-06-19  Gary Benson  <gbenson@redhat.com>
3699
3700         * i386-nat.c (i386_stopped_by_watchpoint):
3701         Use i386_dr_stopped_by_watchpoint.
3702         (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3703         (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3704
3705 2014-06-19  Gary Benson  <gbenson@redhat.com>
3706
3707         * nat/i386-dregs.c: New file.
3708         * Makefile.in (i386-dregs.o): New rule.
3709         * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3710         * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3711         * config/i386/darwin.mh (NATDEPFILES): Likewise.
3712         * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3713         * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3714         * config/i386/go32.mh (NATDEPFILES): Likewise.
3715         * config/i386/linux.mh (NATDEPFILES): Likewise.
3716         * config/i386/linux64.mh (NATDEPFILES): Likewise.
3717         * config/i386/mingw.mh (NATDEPFILES): Likewise.
3718         * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3719         * i386-nat.h (debug_hw_points): New declaration.
3720         * i386-nat.c (breakpoint.h): Remove include.
3721         (command.h): Likewise.
3722         (target.h): Likewise.
3723         (gdb_assert.h): Likewise.
3724         (debug_hw_points): Made nonstatic.
3725         (debug_printf): Now in i386-dregs.c.
3726         (TARGET_HAS_DR_LEN_8): Likewise.
3727         (DR_CONTROL_SHIFT): Likewise.
3728         (DR_CONTROL_SIZE): Likewise.
3729         (DR_RW_EXECUTE): Likewise.
3730         (DR_RW_WRITE): Likewise.
3731         (DR_RW_READ): Likewise.
3732         (DR_RW_IORW): Likewise.
3733         (DR_LEN_1): Likewise.
3734         (DR_LEN_2): Likewise.
3735         (DR_LEN_4): Likewise.
3736         (DR_LEN_8): Likewise.
3737         (DR_LOCAL_ENABLE_SHIFT): Likewise.
3738         (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3739         (DR_ENABLE_SIZE): Likewise.
3740         (DR_LOCAL_SLOWDOWN): Likewise.
3741         (DR_GLOBAL_SLOWDOWN): Likewise.
3742         (DR_CONTROL_RESERVED): Likewise.
3743         (I386_DR_CONTROL_MASK): Likewise.
3744         (I386_DR_VACANT): Likewise.
3745         (I386_DR_LOCAL_ENABLE): Likewise.
3746         (I386_DR_GLOBAL_ENABLE): Likewise.
3747         (I386_DR_DISABLE): Likewise.
3748         (I386_DR_SET_RW_LEN): Likewise.
3749         (I386_DR_GET_RW_LEN): Likewise.
3750         (I386_DR_WATCH_HIT): Likewise.
3751         (i386_wp_op_t): Likewise.
3752         (i386_show_dr): Likewise.
3753         (i386_length_and_rw_bits): Likewise.
3754         (i386_insert_aligned_watchpoint): Likewise.
3755         (i386_remove_aligned_watchpoint): Likewise.
3756         (i386_handle_nonaligned_watchpoint): Likewise.
3757         (i386_update_inferior_debug_regs): Likewise.
3758         (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3759         (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3760         (i386_region_ok_for_watchpoint):
3761         Use i386_dr_region_ok_for_watchpoint.
3762         (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3763
3764 2014-06-19  Gary Benson  <gbenson@redhat.com>
3765
3766         * i386-nat.c (i386_insert_hw_breakpoint): Use
3767         i386_insert_watchpoint.
3768         (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3769
3770 2014-06-19  Gary Benson  <gbenson@redhat.com>
3771
3772         * i386-nat.c (i386_dr_show): Renamed to
3773         i386_show_dr and made static.  All uses updated.
3774         (i386_dr_length_and_rw_bits): Renamed to
3775         i386_length_and_rw_bits and made static.
3776         All uses updated.
3777         (i386_dr_insert_aligned_watchpoint): Renamed to
3778         i386_insert_aligned_watchpoint and made static.
3779         All uses updated.
3780         (i386_dr_remove_aligned_watchpoint): Renamed to
3781         i386_remove_aligned_watchpoint and made static.
3782         All uses updated.
3783         (i386_dr_update_inferior_debug_regs): Renamed to
3784         i386_update_inferior_debug_regs and made static.
3785         All uses updated.
3786         * nat/i386-dregs.h (i386_dr_show): Removed.
3787         (i386_dr_length_and_rw_bits): Likewise.
3788         (i386_dr_insert_aligned_watchpoint): Likewise.
3789         (i386_dr_remove_aligned_watchpoint): Likewise.
3790         (i386_dr_update_inferior_debug_regs): Likewise.
3791
3792 2014-06-19  Gary Benson  <gbenson@redhat.com>
3793
3794         * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3795         * configure: Regenerate.
3796         * config.in: Likewise.
3797         * main.c (signal.h): New include.
3798         (setup_alternate_signal_stack): New function.
3799         (captured_main): Call the above.
3800         * cp-support.c (signal.h): New include.
3801         (catch_demangler_crashes): New flag.
3802         (SIGJMP_BUF): New define.
3803         (SIGSETJMP): Likewise.
3804         (SIGLONGJMP): Likewise.
3805         (gdb_demangle_jmp_buf): New static global.
3806         (gdb_demangle_attempt_core_dump): Likewise.
3807         (gdb_demangle_signal_handler): New function.
3808         (gdb_demangle): If catch_demangler_crashes is set, install the
3809         above signal handler before calling bfd_demangle, and restore
3810         the original signal handler afterwards.  Display the offending
3811         symbol and call demangler_warning the first time a segmentation
3812         fault is caught.
3813         (_initialize_cp_support): New maint set/show command.
3814
3815 2014-06-19  Gary Benson  <gbenson@redhat.com>
3816
3817         * utils.h (resource_limit_kind): New enum.
3818         (can_dump_core): New declaration.
3819         (warn_cant_dump_core): Likewise.
3820         (dump_core): Likewise.
3821         * utils.c (dump_core): Made nonstatic.  Added new
3822         parameter "limit_kind".
3823         (can_dump_core): Made nonstatic. Moved printing code to...
3824         (warn_cant_dump_core): New function.
3825         (can_dump_core_warn): Likewise.
3826         (internal_vproblem): Replace calls to can_dump_core with
3827         calls to can_dump_core_warn.  Supply new argument to each.
3828
3829 2014-06-19  Gary Benson  <gbenson@redhat.com>
3830
3831         * utils.h (demangler_vwarning): New declaration.
3832         (demangler_warning): Likewise.
3833         * utils.c (struct internal_problem)
3834         <user_settable_should_quit>: New field.
3835         <user_settable_should_dump_core>: Likewise
3836         (internal_error_problem): Add values for above new fields.
3837         (internal_warning_problem): Likewise.
3838         (demangler_warning_problem): New static global.
3839         (demangler_vwarning): New function.
3840         (demangler_warning): Likewise.
3841         (add_internal_problem_command): Selectively add commands.
3842         (_initialize_utils): New internal problem command.
3843         * maint.c (maintenance_demangler_warning): New function.
3844         (_initialize_maint_cmds): New command.
3845
3846 2014-06-18  Tom Tromey  <tromey@redhat.com>
3847
3848         * f-valprint.c (info_common_command_for_block): Update.
3849         * symtab.h (struct general_symbol_info) <common_block>: Now
3850         const.
3851
3852 2014-06-18  Tom Tromey  <tromey@redhat.com>
3853
3854         * symtab.h (struct symtab) <blockvector>: Now const.
3855         * ada-lang.c (ada_add_global_exceptions): Update.
3856         * buildsym.c (augment_type_symtab): Update.
3857         * dwarf2read.c (dw2_lookup_symbol): Update.
3858         * jit.c (finalize_symtab): Update.
3859         * jv-lang.c (add_class_symtab_symbol): Update.
3860         * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3861         Update.
3862         * objfiles.c (objfile_relocate1): Update.
3863         * psymtab.c (lookup_symbol_aux_psymtabs)
3864         (maintenance_check_psymtabs): Update.
3865         * python/py-symtab.c (stpy_global_block, stpy_static_block):
3866         Update.
3867         * spu-tdep.c (spu_catch_start): Update.
3868         * symmisc.c (dump_symtab_1): Update.
3869         * symtab.c (lookup_global_symbol_from_objfile)
3870         (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3871         (basic_lookup_transparent_type_quick)
3872         (basic_lookup_transparent_type, find_pc_sect_symtab)
3873         (find_pc_sect_line, search_symbols): Update.
3874         * block.c (find_block_in_blockvector): Make "bl" const.
3875         (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3876         const.
3877         (blockvector_contains_pc): Make "bv" const.
3878         (block_for_pc_sect): Update.
3879         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3880         (blockvector_contains_pc): Update.
3881         * breakpoint.c (resolve_sal_pc): Update.
3882         * inline-frame.c (block_starting_point_at): Update.
3883
3884 2014-06-18  Tom Tromey  <tromey@redhat.com>
3885
3886         * completer.c (complete_line): Make "line_buffer" const.
3887         * completer.h (complete_line): Update.
3888
3889 2014-06-18  Tom Tromey  <tromey@redhat.com>
3890
3891         * symtab.c (add_macro_name): Remove unneeded cast.
3892
3893 2014-06-18  Tom Tromey  <tromey@redhat.com>
3894
3895         * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3896         * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3897
3898 2014-06-18  Tom Tromey  <tromey@redhat.com>
3899
3900         * probe.c (info_probes_for_ops): Make "arg" const.
3901         * probe.h (info_probes_for_ops): Update.
3902
3903 2014-06-18  Tom Tromey  <tromey@redhat.com>
3904
3905         * varobj.c (varobj_create): Update.
3906         * valops.c (value_of_this): Update.
3907         * tracepoint.c (add_local_symbols, scope_info): Update.
3908         * symtab.h (struct general_symbol_info) <block>: Now const.
3909         * symtab.c (skip_prologue_sal)
3910         (default_make_symbol_completion_list_break_on)
3911         (skip_prologue_using_sal): Update.
3912         * stack.h (iterate_over_block_locals)
3913         (iterate_over_block_local_vars): Update.
3914         * stack.c (print_frame_args): Update.
3915         (iterate_over_block_locals, iterate_over_block_local_vars): Make
3916         parameter const.
3917         (get_selected_block): Make return type const.
3918         * python/py-frame.c (frapy_block): Update.
3919         * python/py-block.c (gdbpy_block_for_pc): Update.
3920         * p-exp.y (%union) <bval>: Now const.
3921         * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3922         * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3923         * m2-exp.y (%union) <bval>: Now const.
3924         * linespec.c (get_current_search_block): Make return type const.
3925         (create_sals_line_offset, find_label_symbols): Update.
3926         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3927         Update.
3928         (block_starting_point_at): Make "block" const.
3929         * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3930         (check_exception_resume): Update.
3931         * guile/scm-frame.c (gdbscm_frame_block): Update.
3932         * guile/scm-block.c (gdbscm_lookup_block): Update.
3933         * frame.h (get_frame_block): Update.
3934         (get_selected_block): Make return type const.
3935         * frame.c (frame_id_inner): Update.
3936         * f-valprint.c (info_common_command_for_block)
3937         (info_common_command): Update.
3938         * dwarf2loc.c (dwarf2_find_location_expression)
3939         (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3940         (locexpr_describe_location_piece): Update.
3941         * c-exp.y (%union) <bval>: Now const.
3942         * breakpoint.c (resolve_sal_pc): Update.
3943         * blockframe.c (get_frame_block):Make return type const.
3944         (get_pc_function_start, get_frame_function, find_pc_sect_function)
3945         (block_innermost_frame): Update.
3946         * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3947         (block_for_pc, block_for_pc_sect): Update.
3948         * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3949         'pblock' const.
3950         (block_for_pc_sect, block_for_pc): Make return type const.
3951         * ax-gdb.c (gen_expr): Update.
3952         * alpha-mdebug-tdep.c (find_proc_desc): Update.
3953         * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3954         (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3955         (ada_read_var_value): Update.
3956         * ada-exp.y (struct name_info) <block>: Now const.
3957         (%union): Likewise.
3958         (block_lookup): Constify.
3959
3960 2014-06-18  Gary Benson  <gbenson@redhat.com>
3961
3962         * nat/i386-dregs.h: New file.
3963         * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3964         * i386-nat.h (i386-dregs.h): New include.
3965         (DR_FIRSTADDR): Now in i386-dregs.h.
3966         (DR_LASTADDR): Likewise.
3967         (DR_NADDR): Likewise.
3968         (DR_STATUS): Likewise.
3969         (DR_CONTROL): Likewise.
3970         (i386_debug_reg_state): Likewise.
3971         * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3972
3973 2014-06-18  Don Breazeal  <donb@codesourcery.com>
3974
3975         * breakpoint.c (set_longjmp_breakpoint): Call
3976         momentary_breakpoint_from_master with additional argument.
3977         (set_longjmp_breakpoint_for_call_dummy): Call
3978         momentary_breakpoint_from_master with additional argument.
3979         (set_std_terminate_breakpoint): Call
3980         momentary_breakpoint_from_master with additional argument.
3981         (momentary_breakpoint_from_master): Add argument to function
3982         definition and use it to initialize structure member flag.
3983         (clone_momentary_breakpoint): Call
3984         momentary_breakpoint_from_master with additional argument.
3985         * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3986         member flags set in momentary_breakpoint_from_master.
3987
3988 2014-06-18  Gary Benson  <gbenson@redhat.com>
3989
3990         * i386-nat.c (i386_show_dr): Renamed to
3991         i386_dr_show and made nonstatic.  All uses updated.
3992         (i386_length_and_rw_bits): Renamed to
3993         i386_dr_length_and_rw_bits and made nonstatic.
3994         All uses updated.
3995         (i386_insert_aligned_watchpoint): Renamed to
3996         i386_dr_insert_aligned_watchpoint and made nonstatic.
3997         All uses updated.
3998         (i386_remove_aligned_watchpoint): Renamed to
3999         i386_dr_remove_aligned_watchpoint and made nonstatic.
4000         All uses updated.
4001         (i386_update_inferior_debug_regs): Renamed to
4002         i386_dr_update_inferior_debug_regs and made nonstatic.
4003         All uses updated.
4004
4005 2014-06-18  Gary Benson  <gbenson@redhat.com>
4006
4007         * i386-nat.c (i386_dr_low_can_set_addr): New macro.
4008         (i386_dr_low_can_set_control): Likewise.
4009         (i386_dr_low_set_addr): Likewise.
4010         (i386_dr_low_set_control): Likewise.
4011         (i386_dr_low_get_addr): Likewise.
4012         (i386_dr_low_get_status): Likewise.
4013         (i386_dr_low_get_control): Likewise.
4014         (i386_insert_aligned_watchpoint): Use new macros.
4015         (i386_update_inferior_debug_regs): Likewise.
4016         (i386_stopped_data_address): Likewise.
4017
4018 2014-06-18  Gary Benson  <gbenson@redhat.com>
4019
4020         * i386-nat.c (i386_update_inferior_debug_regs) <state>:
4021         New parameter.  All uses updated.
4022
4023 2014-06-18  Gary Benson  <gbenson@redhat.com>
4024
4025         * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
4026         All uses updated.
4027
4028 2014-06-18  Gary Benson  <gbenson@redhat.com>
4029
4030         * i386-nat.c (debug_printf): New macro.
4031         (i386_get_debug_register_length): Likewise.
4032         (TARGET_HAS_DR_LEN_8): Use above macro.
4033         (i386_show_dr): Use debug_printf instead of puts_unfiltered
4034         and printf_unfiltered.  Use phex to format values.
4035
4036 2014-06-18  Gary Benson  <gbenson@redhat.com>
4037
4038         * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
4039         Make const.
4040
4041 2014-06-18  Gary Benson  <gbenson@redhat.com>
4042
4043         * i386-nat.c: Comment changes.
4044
4045 2014-06-18  Gary Benson  <gbenson@redhat.com>
4046
4047         * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
4048
4049 2014-06-18  Gary Benson  <gbenson@redhat.com>
4050
4051         * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
4052         (i386_insert_aligned_watchpoint): Likewise.
4053         (i386_remove_aligned_watchpoint): Likewise.
4054         (i386_handle_nonaligned_watchpoint): Likewise.
4055
4056 2014-06-18  Gary Benson  <gbenson@redhat.com>
4057
4058         * i386-nat.c: Whitespace changes.
4059
4060 2014-06-17  Samuel Bronson  <naesten@gmail.com>
4061
4062         * MAINTAINERS: Update Roland McGrath's email address.
4063         Thanks to Sergio Durigan Junior for pointing out that he left
4064         Red Hat a while ago, and giving me a current address.
4065
4066 2014-06-17  Tom Tromey  <tromey@redhat.com>
4067
4068         * utils.h (savestring): Remove declaration.
4069
4070 2014-06-17  Tom Tromey  <tromey@redhat.com>
4071
4072         * remote.c (extended_remote_run): Use make_cleanup_freeargv.
4073
4074 2014-06-16  Keith Seitz  <keiths@redhat.com>
4075
4076         PR mi/15863
4077         * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
4078         to update the varobj if inferior_ptid is null_ptid.
4079
4080 2014-06-16  Tom Tromey  <tromey@redhat.com>
4081
4082         * target.h (struct target_ops) <to_info_proc>: Make parameter
4083         const.
4084         (target_info_proc): Update.
4085         * target.c (target_info_proc): Make "args" const.
4086         * procfs.c (procfs_info_proc): Update.
4087         * linux-tdep.c (linux_info_proc): Update.
4088         (linux_core_info_proc_mappings): Make "args" const.
4089         (linux_core_info_proc): Update.
4090         * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
4091         * gdbarch.c: Rebuild.
4092         * gdbarch.h: Rebuild.
4093         * corelow.c (core_info_proc): Update.
4094
4095 2014-06-16  Tom Tromey  <tromey@redhat.com>
4096
4097         * target.h (struct target_ops) <to_disconnect>: Make parameter
4098         const.
4099         (target_disconnect): Update.
4100         * target.c (target_disconnect): Make "args" const.
4101         * target-delegates.c: Rebuild.
4102         * remote.c (remote_disconnect): Update.
4103         * record.h (record_disconnect): Update.
4104         * record.c (record_disconnect): Update.
4105         * inf-child.c (inf_child_disconnect): Update.
4106
4107 2014-06-16  Tom Tromey  <tromey@redhat.com>
4108
4109         * target.h (struct target_ops) <to_rcmd>: Make "command" const.
4110         * target.c (debug_to_rcmd, default_rcmd): Update.
4111         * target-delegates.c: Rebuild.
4112         * remote.c (remote_rcmd): Update.
4113         * monitor.c (monitor_rcmd): Update.
4114
4115 2014-06-16  Pedro Alves  <palves@redhat.com>
4116
4117         * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
4118         (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
4119         have OBJF_SHARED set.
4120         * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
4121         (shared_objfile_contains_address_p): ... this.  Check OBJF_SHARED
4122         instead of OBJF_USERLOADED.
4123         * objfiles.h (OBJF_SHARED): Update comment.
4124         (userloaded_objfile_contains_address_p): Rename to ...
4125         (shared_objfile_contains_address_p): ... this, and update
4126         comments.
4127         * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
4128         new objfile.
4129         (remove_symbol_file_command): Skip objfiles that don't have
4130         OBJF_SHARED set.
4131
4132 2014-06-16  Tom Tromey  <tromey@redhat.com>
4133
4134         * minsyms.h (prim_record_minimal_symbol)
4135         (prim_record_minimal_symbol_and_info): Update comments.
4136
4137 2014-06-14  Eli Zaretskii  <eliz@gnu.org>
4138
4139         * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
4140         or --without-guile, according to how GDB was built.
4141
4142 2014-06-13  Tom Tromey  <tromey@redhat.com>
4143
4144         * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
4145         to help_list.
4146         * guile/guile.c (info_guile_command): Pass all_commands, not -1,
4147         to help_list.
4148         * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
4149         help_list.
4150         * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
4151         help_list.Pass all_commands, not -1, to help_list.
4152         * cli/cli-dump.c (dump_command, append_command)
4153         (srec_dump_command, ihex_dump_command, tekhex_dump_command)
4154         (binary_dump_command, binary_append_command): Pass all_commands,
4155         not -1, to help_list.
4156         * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
4157         -1, to help_list.
4158         * valprint.c (set_print, set_print_raw): Pass all_commands, not
4159         -1, to help_list.
4160         * typeprint.c (set_print_type): Pass all_commands, not -1, to
4161         help_list.
4162         * top.c (set_history): Pass all_commands, not -1, to help_list.
4163         * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
4164         all_commands, not -1, to help_list.
4165         * symfile.c (overlay_command): Pass all_commands, not -1, to
4166         help_list.
4167         * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
4168         help_list.
4169         * serial.c (serial_set_cmd): Pass all_commands, not -1, to
4170         help_list.
4171         * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
4172         -1, to help_list.
4173         * remote.c (remote_command, set_remote_cmd): Pass all_commands,
4174         not -1, to help_list.
4175         * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
4176         not -1, to help_list.
4177         * maint.c (maintenance_command, maintenance_info_command)
4178         (maintenance_print_command, maintenance_set_cmd): Pass
4179         all_commands, not -1, to help_list.
4180         * macrocmd.c (macro_command): Pass all_commands, not -1, to
4181         help_list.
4182         * language.c (set_check): Pass all_commands, not -1, to help_list.
4183         * infcmd.c (unset_command): Pass all_commands, not -1, to
4184         help_list.
4185         * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
4186         help_list.
4187         * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
4188         help_list.
4189         * dcache.c (set_dcache_command): Pass all_commands, not -1, to
4190         help_list.
4191         * breakpoint.c (save_command): Pass all_commands, not -1, to
4192         help_list.
4193         * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
4194         all_commands, not -1, to help_list.
4195
4196 2014-06-12  Pierre Langlois  <pierre.langlois@embecosm.com>
4197
4198         * regcache.c (struct register_to_invalidate): New structure.
4199         (do_register_invalidate, make_cleanup_regcache_invalidate): New
4200         functions.
4201         (regcache_raw_write): Call make_cleanup_regcache_invalidate.
4202
4203 2014-06-12  Yao Qi  <yao@codesourcery.com>
4204
4205         * varobj.c (varobj_get_num_children): Call
4206         varobj_is_dynamic_p.
4207         (varobj_list_children): Likewise.
4208         (varobj_update): Likewise.  Update comments.
4209
4210 2014-06-12  Yao Qi  <yao@codesourcery.com>
4211
4212         * varobj.c (varobj_pretty_printed_p): Rename to ...
4213         (varobj_is_dynamic_p): ... this.  New function.
4214         * varobj.h (varobj_pretty_printed_p): Remove declaration.
4215         (varobj_is_dynamic_p): Declare.
4216         * mi/mi-cmd-var.c (print_varobj): All callers updated.
4217         (mi_print_value_p, varobj_update_one): Likewise.
4218
4219 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
4220             Yao Qi  <yao@codesourcery.com>
4221
4222         * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
4223         (varobj_get_iterator): Wrap up code for pretty-printer by
4224         "#if HAVE_PYTHON" and "#endif".
4225         (update_dynamic_varobj_children): Likewise.
4226
4227 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
4228             Yao Qi  <yao@codesourcery.com>
4229
4230         * python/py-varobj.c (py_varobj_iter_next): Return NULL if
4231         gdb_python_initialized is false.  Move some code from varobj.c.
4232         * varobj-iter.h (struct varobj_item): Moved from varobj.c.
4233         * varobj.c: Move "varobj-iter.h" inclusion earlier.
4234         (struct varobj_item): Moved to varobj-iter.h".
4235         (varobj_clear_saved_item): New function.
4236         (update_dynamic_varobj_children): Move python-related code to
4237         py-varobj.c.
4238         (free_variable): Call varobj_clear_saved_item and
4239         varobj_iter_delete.
4240
4241 2014-06-12  Pedro Alves  <pedro@codesourcery.com>
4242             Yao Qi  <yao@codesourcery.com>
4243
4244         * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
4245         (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
4246         (HFILES_NO_SRCDIR): Add "varobj-iter.h".
4247         (py-varobj.o): New rule.
4248         * python/py-varobj.c: New file.
4249         * python/python-internal.h (py_varobj_get_iterator): Declare.
4250         * varobj-iter.h: New file.
4251         * varobj.c: Include "varobj-iter.h"
4252         (struct varobj) <child_iter>: Change its type from "PyObject *"
4253         to "struct varobj_iter *".
4254         <saved_item>: Likewise.
4255         [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4256         [HAVE_PYTHON] (varobj_get_iterator): New function.
4257         (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4258         python-specific code to python/py-varobj.c.
4259         (install_visualizer): Call varobj_iter_delete instead of
4260         Py_XDECREF.
4261         * varobj.h (varobj_ensure_python_env): Declare.
4262
4263 2014-06-12  Yao Qi  <yao@codesourcery.com>
4264
4265         * varobj.c (struct varobj_item): New structure.
4266         (create_child_with_value): Update declaration.
4267         (varobj_add_child): Replace arguments 'name' and 'value' with
4268         'item'.  All callers updated.
4269         (install_dynamic_child): Likewise.
4270         (update_dynamic_varobj_children): Likewise.
4271         (varobj_add_child): Likewise.
4272         (create_child_with_value): Likewise.
4273
4274 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
4275
4276         * NEWS: Create a new section for the next release branch.
4277         Rename the section of the current branch, now that it has
4278         been cut.
4279
4280 2014-06-11  Joel Brobecker  <brobecker@adacore.com>
4281
4282         GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4283         * version.in: Bump version to 7.8.50.DATE-cvs.
4284
4285 2014-06-11  Pedro Alves  <palves@redhat.com>
4286
4287         PR remote/17028
4288         * ser-mingw.c (net_windows_socket_check_pending): New function.
4289         (net_windows_select_thread): Ignore spurious wakeups.  Use
4290         net_windows_socket_check_pending.
4291         (net_windows_wait_handle): Check for pending events with
4292         ioctlsocket, through net_windows_socket_check_pending, instead of
4293         checking the socket's event.
4294
4295 2014-06-10  Siva Chandra Reddy  <sivachandra@google.com>
4296
4297         * python/python-internal.h (gdb_PyObject_GetAttrString)
4298         (gdb_PyObject_HasAttrString): New inline function definitions.
4299         * py-value.c (get_field_flag): Remove the now unnecessary cast to
4300         char * of the second argument to PyObject_GetAttrString.
4301
4302 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
4303
4304         * serial.c (serial_write): Fix index of character to be printed
4305         in call to serial_logchar when serial debug traces are enabled.
4306
4307 2014-06-10  Joel Brobecker  <brobecker@adacore.com>
4308
4309         * gdbtypes (resolve_dynamic_range): Add function description.
4310
4311 2014-06-09  Pedro Alves  <palves@redhat.com>
4312
4313         * linux-nat.c (linux_child_follow_fork): Initialize status with
4314         W_STOPCODE (0) instead of 0.  Remove shodowing 'status' local from
4315         inner block.  Only pass the signal to PTRACE_DETACH if in pass
4316         state.
4317
4318 2014-06-09  Gary Benson  <gbenson@redhat.com>
4319
4320         * common/signals.c (gdb_signal_from_host): Reorder to separate
4321         the always-available ANSI-standard signals from the signals that
4322         require checking.
4323         (do_gdb_signal_to_host): Likewise.
4324         * proc-events.c (signal_table): Likewise.
4325
4326 2014-06-08  Hui Zhu  <hui@codesourcery.com>
4327
4328         * common/linux-ptrace.c (linux_disable_event_reporting): New
4329         function.
4330         * common/linux-ptrace.h (linux_disable_event_reporting): New
4331         declaration.
4332         * linux-nat.c (linux_child_follow_fork): Do a single step before
4333         detach.
4334
4335 2014-06-07  Keith Seitz  <keiths@redhat.com>
4336
4337         Revert:
4338         PR c++/16253
4339         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4340         from symbol_matches_domain in symtab.c. All local callers
4341         of symbol_matches_domain updated.
4342         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4343         search STRUCT_DOMAIN.
4344         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4345         independently.  standard_lookup will do that automatically.
4346         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4347         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4348         (cp_lookup_symbol_in_namespace): Likewise.
4349         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4350         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4351         may return a STRUCT_DOMAIN match.
4352         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4353         * cp-support.c: Include language.h.
4354         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4355         VAR_DOMAIN.
4356         * psymtab.c (match_partial_symbol): Compare the requested
4357         domain with the symbol's domain directly.
4358         (lookup_partial_symbol): Likewise.
4359         * symtab.c (lookup_symbol_in_language): Explain when/why
4360         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4361         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4362         appropriate languages.
4363         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4364         and moved to ada-lang.c
4365         (lookup_block_symbol): Explain that this function only returns
4366         symbol matching the requested DOMAIN.
4367         Compare the requested domain with the symbol's domain directly.
4368         (iterate_over_symbols): Compare the requested domain with the
4369         symbol's domain directly.
4370         * symtab.h (symbol_matches_domain): Remove.
4371
4372 2014-06-06  Doug Evans  <xdje42@gmail.com>
4373
4374         * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4375         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4376         (gdbscm_guile_version_is_at_least): Declare.
4377         (gdbscm_scm_string_to_int): Declare.
4378         * guile/guile.c (gdbscm_guile_major_version): New global.
4379         (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4380         (guile_datadir): New static global.
4381         (gdbscm_guile_data_directory): New function.
4382         (initialize_scheme_side): Update.
4383         (misc_guile_functions): Add guile-data-directory.
4384         (initialize_gdb_module): Fetch guile version number.
4385         * guile/lib/gdb.scm: Remove call to add-to-load-path.
4386         * guile/lib/gdb/init.scm (%initialize!): Ditto.
4387         * guile/lib/gdb/boot.scm: Use guile-data-directory.
4388         * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4389         comments.
4390         * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4391         * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4392         * guile/scm-value.c (gdbscm_value_to_string): Only call
4393         scm_port_conversion_strategy if Guile version >= 2.0.6.
4394
4395 2014-06-06  Mingjie Xing  <mingjie.xing@gmail.com>
4396
4397         * main.c (print_gdb_help): Add -q and --silent.
4398
4399 2014-06-06  Gary Benson  <gbenson@redhat.com>
4400
4401         * common/signals.c: Remove preprocessor conditionals for
4402         always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4403         SIGSEGV and SIGTERM.
4404         * proc-events.c: Likewise.
4405
4406 2014-06-06  Markus Metzger  <markus.t.metzger@intel.com>
4407
4408         * symfile.c (symfile_free_objfile): Remove restriction to
4409         OBJF_USERLOADED.
4410         * symfile-mem.c (symbol_file_add_from_memory): Call
4411         add_target_sections_of_objfile.
4412
4413 2014-06-05  Ludovic Courtès  <ludo@gnu.org>
4414
4415         * guile/scm-value.c (gdbscm_history_append_x): Use
4416         'vlscm_get_value_smob_arg_unsafe' instead of
4417         'vlscm_scm_to_value'.
4418
4419 2014-06-05  Simon Marchi  <simon.marchi@ericsson.com>
4420
4421         PR mi/15806
4422         * utils.c (printchar): Don't escape at all if quoter is NUL.
4423         Update function documentation to clarify effect of parameter
4424         QUOTER.
4425         * remote.c (escape_buffer): Pass '\\' as the quoter to
4426         fputstrn_unfiltered.
4427         * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4428         generate the output.
4429         (mi_solib_unloaded): Same.
4430
4431 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
4432
4433         * development.sh: Delete.
4434         * Makefile.in (config.status): Adjust dependency on development.sh.
4435         * configure.ac: Adjust development.sh source call.
4436         * configure: Regenerate.
4437
4438 2014-06-04  Doug Evans  <xdje42@gmail.com>
4439
4440         * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4441         is_scheme_bkpt, spec.
4442         (bpscm_make_breakpoint_smob): Initialize new members.
4443         (gdbscm_create_breakpoint_x): Split into two ...
4444         (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4445         (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4446         (scheme_function breakpoint_functions): Update.
4447         * guile/lib/gdb.scm: Delete create-breakpoint!.  Rename
4448         breakpoint-delete! to delete-breakpoint!.  Add make-breakpoint,
4449         register-breakpoint!.
4450
4451 2014-06-04  Joel Brobecker  <brobecker@adacorer.com>
4452
4453         PR server/17023
4454         * mem-break.c (z_type_supported): Return zero if
4455         THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4456
4457 2014-06-04  Tom Tromey  <tromey@redhat.com>
4458
4459         * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4460         value_from_contents_and_address_unresolved.
4461         (ada_template_to_fixed_record_type_1): Likewise.
4462         (ada_which_variant_applies): Likewise.
4463         * value.h (value_from_contents_and_address_unresolved): Declare.
4464         * value.c (value_from_contents_and_address_unresolved): New
4465         function.
4466         * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4467         <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4468         (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4469
4470 2014-06-04  Tom Tromey  <tromey@redhat.com>
4471
4472         * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4473
4474 2014-06-04  Tom Tromey  <tromey@redhat.com>
4475
4476         * procfs.c (procfs_attach): Make "args" const.
4477         * windows-nat.c (windows_attach): Make "args" const.
4478         * nto-procfs.c (procfs_attach): Make "args" const.
4479         * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4480         * go32-nat.c (go32_attach): Make "args" const.
4481         * gnu-nat.c (gnu_attach): Make "args" const.
4482         * darwin-nat.c (darwin_attach): Make "args" const.
4483         * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4484         * linux-nat.c (linux_nat_attach): Make "args" const.
4485         * remote.c (extended_remote_attach_1, extended_remote_attach):
4486         Make "args" const.
4487         * target.h (struct target_ops) <to_attach>: Make "args" const.
4488         (find_default_attach): Likewise.
4489         * utils.c (parse_pid_to_attach): Make "args" const.
4490         * utils.h (parse_pid_to_attach): Update.
4491
4492 2014-06-04  Tom Tromey  <tromey@redhat.com>
4493
4494         * target-delegates.c: Rebuild.
4495         * target.c (default_thread_address_space): New function.
4496         (target_thread_address_space): Simplify.
4497         * target.h (struct target_ops) <to_thread_address_space>: Add
4498         TARGET_DEFAULT_FUNC.
4499
4500 2014-06-04  Doug Evans  <xdje42@gmail.com>
4501
4502         * guile/scm-type.c (type_smob): Remove duplicate typedef.
4503
4504 2014-06-04  Markus Metzger  <markus.t.metzger@intel.com>
4505
4506         * record-btrace.c: Include event-loop.h and inf-loop.h.
4507         (record_btrace_resume_exec_dir)
4508         (record_btrace_async_inferior_event_handler)
4509         (record_btrace_handle_async_inferior_event): New.
4510         (record_btrace_open): Create async event handler.
4511         (record_btrace_close): Delete async event handler.
4512         (record_btrace_resume): Set record_btrace_resume_exec_dir,
4513         Mark async event handler.
4514         (record_btrace_execution_direction): New.
4515         (init_record_btrace_ops): Initialize to_execution_direction.
4516
4517 2014-06-03  Doug Evans  <xdje42@gmail.com>
4518
4519         * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4520         (gdbscm_make_parameter): Ditto.
4521
4522 2014-06-03  Doug Evans  <dje@google.com>
4523
4524         * exec.c (exec_close_1): Call clear_section_table instead of
4525         resize_section_table.
4526         (clear_section_table): New function.
4527         (resize_section_table): Make static.  Rename arg num_added to
4528         adjustment.
4529         * exec.h (clear_section_table): Declare.
4530         (resize_section_table): Delete.
4531         * progspace.c (release_program_space): Call clear_section_table
4532         instead of resize_section_table.
4533
4534 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4535
4536         * NEWS (Python Scripting): Add entry about the new xmethods
4537         feature.
4538
4539 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4540
4541         * python/py-xmethods.c: New file.
4542         * python/py-objfile.c (objfile_object): New field 'xmethods'.
4543         (objfpy_dealloc): XDECREF on the new xmethods field.
4544         (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4545         field.
4546         (objfpy_get_xmethods): New function.
4547         (objfile_getset): New entry 'xmethods'.
4548         * python/py-progspace.c (pspace_object): New field 'xmethods'.
4549         (pspy_dealloc): XDECREF on the new xmethods field.
4550         (pspy_new, pspace_to_pspace_object): Initialize xmethods
4551         field.
4552         (pspy_get_xmethods): New function.
4553         (pspace_getset): New entry 'xmethods'.
4554         * python/python-internal.h: Add declarations for new functions.
4555         * python/python.c (_initialize_python): Invoke
4556         gdbpy_initialize_xmethods.
4557         * python/lib/gdb/__init__.py (xmethods): New
4558         attribute.
4559         * python/lib/gdb/xmethod.py: New file.
4560         * python/lib/gdb/command/xmethods.py: New file.
4561
4562 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4563
4564         * eval.c (evaluate_subexp_standard): Call the xmethod if the
4565         best match method returned by find_overload_match is an xmethod.
4566         * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4567         the best matching operator returned by find_overload_match is an
4568         xmethod.
4569         * valops.c: #include "extension.h".
4570         (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4571         Return void.  The list of matching source methods is returned in
4572         "fn_list" and a vector of matching debug method workers is
4573         returned in "xm_worker_vec".  Update all callers.
4574         (value_find_oload_method_list): Likewise.
4575         (find_oload_champ): Add "xm_worker_vec" parameter.  If it is
4576         non-NULL, then the index of the best matching method in this
4577         vector is returned.  Update all callers.
4578         (find_overload_match): Include xmethods while performing overload
4579         resolution.
4580
4581 2014-06-03  Siva Chandra Reddy  <sivachandra@google.com>
4582
4583         * defs.h (enum lval_type): New enumerator "lval_xcallable".
4584         * extension-priv.h (struct extension_language_ops): Add the
4585         xmethod interface.
4586         * extension.c (new_xmethod_worker, clone_xmethod_worker,
4587         get_matching_xmethod_workers, get_xmethod_argtypes,
4588         invoke_xmethod, free_xmethod_worker,
4589         free_xmethod_worker_vec): New functions.
4590         * extension.h: #include "common/vec.h".
4591         New function declarations.
4592         (struct xmethod_worker): New struct.
4593         (VEC (xmethod_worker_ptr)): New vector type.
4594         (xmethod_worker_ptr): New typedef.
4595         (xmethod_worker_vec): Likewise.
4596         * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4597         builtin_type.
4598         * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4599         (struct builtin_type): New field "xmethod".
4600         * valarith.c (value_ptradd): Assert that the value argument is not
4601         lval_xcallable.
4602         * valops.c (value_must_coerce_to_target): Return 0 for
4603         lval_xcallable values.
4604         * value.c (struct value): New field XM_WORKER in the field
4605         LOCATION.
4606         (value_address, value_raw_address): Return 0 for lval_xcallable
4607         values.
4608         (set_value_address): Assert that the value is not an
4609         lval_xcallable.
4610         (value_free): Free the associated xmethod worker when freeing
4611         lval_xcallable values.
4612         (set_value_component_location): Assert that the WHOLE value is not
4613         lval_xcallable.
4614         (value_of_xmethod, call_xmethod): New functions.
4615         * value.h: Declare "struct xmethod_worker".
4616         Declare new functions value_of_xmethod, call_xmethod.
4617
4618 2014-06-03  Joel Brobecker  <brobecker@adacore.com>
4619             Pedro Alves  <palves@redhat.com>
4620
4621         PR breakpoints/17000
4622         * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4623         New function, extracted from software_breakpoint_inserted_here_p.
4624         (software_breakpoint_inserted_here_p): Replace factored out code
4625         by call to find_non_raw_software_breakpoint_inserted_here.
4626         (bp_target_info_copy_insertion_state): New function.
4627         (bkpt_insert_location): Handle the case of a single-step
4628         breakpoint already inserted at the same address.
4629         (bkpt_remove_location): Handle the case of a single-step
4630         breakpoint still inserted at the same address.
4631         (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4632         breakpoint already inserted at the same address.
4633         (deprecated_remove_raw_breakpoint): Handle the case of a
4634         non-raw breakpoint still inserted at the same address.
4635         (find_single_step_breakpoint): New function, extracted from
4636         single_step_breakpoint_inserted_here_p.
4637         (find_single_step_breakpoint): New function,
4638         factored out from single_step_breakpoint_inserted_here_p.
4639         (single_step_breakpoint_inserted_here_p): Reimplement.
4640
4641 2014-06-03  Brad Mouring  <bmouring@ni.com>  (tiny patch)
4642
4643         Pushed by Joel Brobecker  <brobecker@adacore.com>
4644         * source.c (show_substitute_path_command): Fix display of matching
4645         substitution rules.
4646
4647 2014-06-03  Gary Benson  <gbenson@redhat.com>
4648
4649         * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4650
4651 2014-06-02  Doug Evans  <xdje42@gmail.com>
4652
4653         Add parameter support for Guile.
4654         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4655         (SUBDIR_GUILE_SRCS): Add scm-param.c.
4656         (scm-param.o): New rule.
4657         * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4658         (gdbscm_misc_error): Declare.
4659         (gdbscm_canonicalize_command_name): Declare.
4660         (gdbscm_scm_to_host_string): Declare.
4661         (gdbscm_scm_from_host_string): Declare.
4662         (gdbscm_initialize_parameters): Declare.
4663         * guile/guile.c (initialize_gdb_module): Call
4664         gdbscm_initialize_parameters.
4665         * guile/lib/gdb.scm: Export parameter symbols.
4666         * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4667         cmdscm_canonicalize_name and made public.  All callers updated.
4668         * guile/scm-exception.c (gdbscm_misc_error): New function.
4669         * guile/scm-param.c: New file.
4670         * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4671         (gdbscm_scm_to_host_string): New function.
4672         (gdbscm_scm_from_host_string): New function.
4673         * scm-utils.c (gdbscm_gc_dup_argv): New function.
4674
4675 2014-06-02  Doug Evans  <xdje42@gmail.com>
4676
4677         Add command support for Guile.
4678         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4679         (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4680         (scm-cmd.o): New rule.
4681         * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4682         (gdbscm_user_error_p): Declare.
4683         (gdbscm_parse_command_name): Declare.
4684         (gdbscm_valid_command_class_p): Declare.
4685         (gdbscm_initialize_commands): Declare.
4686         * guile/guile.c (initialize_gdb_module): Call
4687         gdbscm_initialize_commands.
4688         * guile/lib/gdb.scm: Export command symbols.
4689         * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4690         (throw-user-error): New function.
4691         * guile/scm-cmd.c: New file.
4692         * guile/scm-exception.c (user_error_symbol): New static global.
4693         (gdbscm_user_error_p): New function.
4694         (gdbscm_initialize_exceptions): Set user_error_symbol.
4695         * scm-utils.c (gdbscm_gc_xstrdup): New function.
4696
4697 2014-06-02  Phil Muldoon  <pmuldoon@redhat.com>
4698
4699         * top.c (command_loop): Handle comments here...
4700         (command_line_input): ... not here.
4701
4702 2014-06-02  Doug Evans  <xdje42@gmail.com>
4703
4704         Add progspace support for Guile.
4705         * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4706         (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4707         (scm-progspace.o): New rule.
4708         * guile/guile-internal.h (pspace_smob): New typedef.
4709         (psscm_pspace_smob_pretty_printers): Declare.
4710         (psscm_pspace_smob_from_pspace): Declare.
4711         (psscm_scm_from_pspace): Declare.
4712         * guile/guile.c (initialize_gdb_module): Call
4713         gdbscm_initialize_pspaces.
4714         * guile/lib/gdb.scm: Export progspace symbols.
4715         * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4716         support.
4717         (append-pretty-printer!): Ditto.
4718         * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4719         Implement.
4720         * guile/scm-progspace.c: New file.
4721
4722 2014-06-03  Alan Modra  <amodra@gmail.com>
4723
4724         * ppc64-tdep.c (ppc64_standard_linkage8): New.
4725         (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4726
4727 2014-06-02  Doug Evans  <dje@google.com>
4728
4729         Add support for skeletonless type units.
4730         * dwarf2read.c (struct dwarf2_per_objfile): New member
4731         n_allocated_type_units.
4732         (struct dwarf2_per_objfile) <tu_stats>: New member
4733         nr_all_type_units_reallocs.
4734         (create_signatured_type_table_from_index): Initialize
4735         n_allocated_type_units
4736         (create_all_type_units): Ditto.
4737         (add_type_unit): Move up in file.  New arg slot.
4738         All callers updated.  Increase space for all_type_units more
4739         efficiently.
4740         (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4741         (lookup_dwo_signatured_type): Handle skeletonless TUs.
4742         (lookup_dwp_signatured_type): Ditto.
4743         (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4744         All callers updated.
4745         (build_type_psymtabs_1): Leave type_unit_groups as
4746         NULL if no TUs present.
4747         (print_tu_stats): New function.
4748         (process_skeletonless_type_unit): New function.
4749         (process_dwo_file_for_skeletonless_type_units): New
4750         function.
4751         (process_skeletonless_type_units): New function.
4752         (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4753         Call print tu_stats if debugging enabled.
4754
4755 2014-06-02  Pedro Alves  <palves@redhat.com>
4756
4757         * breakpoint.c (build_target_command_list): Don't build a command
4758         list if we have any duplicate location that isn't a dprintf.
4759
4760 2014-06-02  Pedro Alves  <palves@redhat.com>
4761
4762         * breakpoint.c (dprintf_breakpoint_hit): New function.
4763         (initialize_breakpoint_ops): Install it as dprintf's
4764         breakpoint_hit method.
4765
4766 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
4767
4768         * source.c (substitute_path_rule_matches): Simplify using
4769         filename_ncmp instead of FILENAME_CMP.
4770
4771 2014-06-02  Joel Brobecker  <brobecker@adacore.com>
4772
4773         * source.c (substitute_path_rule_matches): Remove trailing spaces.
4774
4775 2014-06-01  Ludovic Courtès  <ludo@gnu.org>
4776
4777         * configure.ac: When Guile is available, check for the
4778         availability of 'scm_new_smob'.
4779         * configure, config.h.in: Regenerate.
4780         * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4781         function.
4782
4783 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
4784
4785         * frame.c (struct frame_info): Add stop_string field.
4786         (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4787         (get_prev_frame_always): Old content moved into
4788         get_prev_frame_always_1.  Call get_prev_frame_always_1 inside
4789         TRY_CATCH, handle MEMORY_ERROR exceptions.
4790         (frame_stop_reason_string): New function definition.
4791         * frame.h (unwind_stop_reason_to_string): Extend comment to
4792         mention frame_stop_reason_string.
4793         (frame_stop_reason_string): New function declaration.
4794         * stack.c (frame_info): Switch to frame_stop_reason_string.
4795         (backtrace_command_1): Switch to frame_stop_reason_string.
4796         * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4797         (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4798         * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4799
4800 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
4801
4802         * frame.c (frame_stop_reason_string): Rename to ...
4803         (unwind_stop_reason_to_string): this.
4804         * frame.h (frame_stop_reason_string): Rename to ...
4805         (unwind_stop_reason_to_string): this.
4806         * stack.c (frame_info): Update call to frame_stop_reason_string.
4807         (backtrace_command_1): Likewise.
4808         * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4809         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4810
4811 2014-05-30  Andrew Burgess  <aburgess@broadcom.com>
4812
4813         * frame.c (remove_prev_frame): New function.
4814         (get_prev_frame_if_no_cycle): Create / discard cleanup using
4815         remove_prev_frame.
4816
4817 2014-05-29  Pedro Alves  <palves@redhat.com>
4818
4819         * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4820         and make it const.  When a single-step decays to a continue,
4821         clear 'step', not 'hw_step'.  Pass whether the caller wanted
4822         to step to user_visible_resume_ptid, not what we ask the
4823         target to do.
4824
4825 2014-05-29  Pedro Alves  <palves@redhat.com>
4826
4827         * infrun.c (process_event_stop_test, handle_step_into_function)
4828         (handle_step_into_function_backward): Adjust.
4829         Don't set the even thread's stop_step and call stop_waiting before
4830         calling end_stepping_range.  Instead do that ...
4831         (end_stepping_range): ... here.  Take an ecs pointer parameter.
4832
4833 2014-05-29  Pedro Alves  <palves@redhat.com>
4834
4835         * infrun.c (stop_stepping): Rename to ...
4836         (stop_waiting): ... this.
4837         (proceed): Update comment.
4838         (process_event_stop_test, handle_inferior_event)
4839         (handle_signal_stop, handle_step_into_function)
4840         (handle_step_into_function_backward): Update.
4841
4842 2014-05-29  Pedro Alves  <palves@redhat.com>
4843
4844         * infcall.c (run_inferior_call): Don't check whether the current
4845         thread is running after the proceed call.
4846
4847 2014-05-29  Pedro Alves  <palves@redhat.com>
4848             Tom Tromey  <tromey@redhat.com>
4849
4850         * NEWS: Mention "maint set target-async", "set mi-async", and that
4851         background execution commands are now always available.
4852         * target.h (target_async_permitted): Update comment.
4853         * target.c (target_async_permitted, target_async_permitted_1):
4854         Default to 1.
4855         (set_target_async_command): Rename to ...
4856         (maint_set_target_async_command): ... this.
4857         (show_target_async_command): Rename to ...
4858         (maint_show_target_async_command): ... this.
4859         (_initialize_target): Adjust.
4860         * infcmd.c (prepare_execution_command): Make extern.
4861         * inferior.h (prepare_execution_command): Declare.
4862         * infrun.c (set_observer_mode): Leave target async alone.
4863         * mi/mi-interp.c (mi_interpreter_init): Install
4864         mi_on_sync_execution_done as sync_execution_done observer.
4865         (mi_on_sync_execution_done): New function.
4866         (mi_execute_command_input_handler): Don't print the prompt if we
4867         just started a synchronous command with an async target.
4868         (mi_on_resume): Check sync_execution before printing prompt.
4869         * mi/mi-main.h (mi_async_p): Declare.
4870         * mi/mi-main.c: Include gdbcmd.h.
4871         (mi_async_p): New function.
4872         (mi_async, mi_async_1): New globals.
4873         (set_mi_async_command, show_mi_async_command, mi_async): New
4874         functions.
4875         (exec_continue): Call prepare_execution_command.
4876         (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4877         (mi_execute_async_cli_command): Use mi_async_p.
4878         (_initialize_mi_main): Install "set mi-async".  Make
4879         "target-async" a deprecated alias.
4880
4881 2014-05-29  Pedro Alves  <palves@redhat.com>
4882
4883         * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4884         (_initialize_cli_interp): Adjust.
4885         * event-loop.c: Include "observer.h".
4886         (start_event_loop): Notify 'command_error' observers instead of
4887         calling display_gdb_prompt.  Remove FIXME comment.
4888         * event-top.c (display_gdb_prompt): Remove call into the
4889         interpreters.
4890         * inf-loop.c: Include "observer.h".
4891         (inferior_event_handler): Notify 'command_error' observers instead
4892         of calling display_gdb_prompt.
4893         * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4894         observers instead of calling display_gdb_prompt.
4895         * interps.c (interp_set): Don't call display_gdb_prompt.
4896         (current_interp_display_prompt_p): Delete.
4897         * interps.h (interp_prompt_p): Delete declaration.
4898         (interp_prompt_p_ftype): Delete.
4899         (struct interp_procs) <prompt_proc_p>: Delete field.
4900         (current_interp_display_prompt_p): Delete declaration.
4901         * mi-interp.c (mi_interpreter_prompt_p): Delete.
4902         (_initialize_mi_interp): Adjust.
4903         * tui-interp.c (tui_init): Install 'sync_execution_done' and
4904         'command_error' observers.
4905         (tui_on_sync_execution_done, tui_on_command_error): New
4906         functions.
4907         (tui_display_prompt_p): Delete.
4908         (_initialize_tui_interp): Adjust.
4909
4910 2014-05-29  Pedro Alves  <palves@redhat.com>
4911
4912         PR gdb/13860
4913         * cli/cli-interp.c: Include infrun.h and observer.h.
4914         (cli_uiout, cli_interp): New globals.
4915         (cli_on_signal_received, cli_on_end_stepping_range)
4916         (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4917         functions.
4918         (cli_interpreter_init): Install them as 'end_stepping_range',
4919         'signal_received' 'signal_exited', 'exited' and 'no_history'
4920         observers.
4921         (_initialize_cli_interp): Remove cli_interp local.
4922         * infrun.c (handle_inferior_event): Call the several stop reason
4923         observers instead of printing the stop reason directly.
4924         (end_stepping_range): New function.
4925         (print_end_stepping_range_reason, print_signal_exited_reason)
4926         (print_exited_reason, print_signal_received_reason)
4927         (print_no_history_reason): Make static, and add an uiout
4928         parameter.  Print to that instead of to CURRENT_UIOUT.
4929         * infrun.h (print_end_stepping_range_reason)
4930         (print_signal_exited_reason, print_exited_reason)
4931         (print_signal_received_reason print_no_history_reason): New
4932         declarations.
4933         * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4934         'mi_uiout'.
4935         <cli_uiout>: New field.
4936         * mi/mi-interp.c (mi_interpreter_init): Adjust.  Create the new
4937         uiout for CLI output.  Install 'signal_received',
4938         'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4939         observers.
4940         (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4941         (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4942         (mi_on_no_history): New functions.
4943         (ui_out_free_cleanup): Delete function.
4944         (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4945         instead use the one already stored in the MI interpreter data.
4946         (mi_ui_out): Adjust.
4947         * tui/tui-interp.c: Include infrun.h and observer.h.
4948         (tui_interp): New global.
4949         (tui_on_signal_received, tui_on_end_stepping_range)
4950         (tui_on_signal_exited, tui_on_exited)
4951         (tui_on_no_history): New functions.
4952         (tui_init): Install them as 'end_stepping_range',
4953         'signal_received' 'signal_exited', 'exited' and 'no_history'
4954         observers.
4955         (_initialize_tui_interp): Delete tui_interp local.
4956
4957 2014-05-29  Pedro Alves  <palves@redhat.com>
4958
4959         PR gdb/15713
4960         * linux-nat.c (linux_nat_resume_callback): Rename the second
4961         parameter to 'except'.  Skip LP if it points to EXCEPT.
4962         (linux_nat_resume): Don't mark the event lwp as not stopped
4963         before resuming sibling lwps.  Instead ask
4964         linux_nat_resume_callback to skip the event lwp.  Mark it as not
4965         stopped after actually resuming it.
4966         (linux_handle_syscall_trap): Mark the lwp as not stopped after
4967         resuming it.
4968         (wait_lwp): Mark the lwp as stopped here.
4969         (stop_wait_callback): Mark the lwp as not stopped right after
4970         resuming it.  Don't mark lwps as stopped here.
4971         (linux_nat_filter_event): Mark the lwp as stopped earlier.
4972         (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4973
4974 2014-05-29  Pedro Alves  <palves@redhat.com>
4975
4976         PR PR15693
4977         * infrun.c (resume): Determine how much to resume depending on
4978         whether the caller wanted a step, not whether we can hardware step
4979         the target.  Mark all threads that we intend to run as running,
4980         unless we're calling an inferior function.
4981         (normal_stop): If the thread is running an infcall, don't finish
4982         thread state.
4983         * target.c (target_resume): Don't mark threads as running here.
4984
4985 2014-05-28  Joel Brobecker  <brobecker@adacore.com>
4986
4987         * serial.c (_initialize_serial): Remove support for
4988         the "set remotebaud" and "show remotebaud" commands.
4989         * NEWS: Add entry documenting the removal of that command.
4990
4991 2014-05-28  Yao Qi  <yao@codesourcery.com>
4992
4993         * charset.c: Fix typo in comments.
4994
4995 2014-05-27  Gary Benson  <gbenson@redhat.com>
4996
4997         * utils.c (internal_vproblem): Prompt for a bug report.
4998
4999 2014-05-26  Andy Wingo  <wingo@igalia.com>
5000
5001         * guile/scm-arch.c (arscm_mark_arch_smob):
5002         * guile/scm-block.c (bkscm_mark_block_smob)
5003         (bkscm_mark_block_syms_progress_smob):
5004         * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
5005         * guile/scm-exception.c (exscm_mark_exception_smob):
5006         * guile/scm-frame.c (frscm_mark_frame_smob):
5007         * guile/scm-iterator.c (itscm_mark_iterator_smob):
5008         * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
5009         * guile/scm-objfile.c (ofscm_mark_objfile_smob):
5010         * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
5011         (ppscm_mark_pretty_printer_worker_smob):
5012         * guile/scm-symbol.c (syscm_mark_symbol_smob):
5013         * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
5014         * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
5015         * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
5016         mark functions.
5017         * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
5018         function.
5019
5020 2014-05-26  Andy Wingo  <wingo@igalia.com>
5021             Doug Evans  <xdje42@gmail.com>
5022
5023         * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
5024         empty_base_class.  All uses updated.
5025         (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
5026         (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
5027         Adapt all callers.
5028         * guile/scm-gsmob.c (gdbscm_mark_gsmob)
5029         (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
5030         (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
5031         (gdbscm_gsmob_has_property_p, add_property_name)
5032         (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
5033         * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
5034         (gdb-object-has-property?, gdb-object-properties): Remove.
5035         (gdb-object-kind): Renamed from gsmob-kind.
5036
5037 2014-05-26  Andy Wingo  <wingo@igalia.com>
5038
5039         * configure.ac (try_guile_versions): Allow building with guile 2.2.
5040         * configure: Regenerate.
5041
5042 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
5043
5044         * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
5045
5046 2014-05-23  Markus Metzger  <markus.t.metzger@intel.com>
5047
5048         * record-btrace.c (record_btrace_allow_memory_access): Remove.
5049         (replay_memory_access_read_only, replay_memory_access_read_write)
5050         (replay_memory_access_types, replay_memory_access)
5051         (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
5052         (cmd_set_record_btrace, cmd_show_record_btrace)
5053         (cmd_show_replay_memory_access): New.
5054         (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
5055         (record_btrace_remove_breakpoint): Replace
5056         record_btrace_allow_memory_access with replay_memory_access.
5057         (_initialize_record_btrace): Add commands.
5058         * NEWS: Announce it.
5059
5060 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5061
5062         * aarch64-linux-nat.c (asm/ptrace.h): Include.
5063
5064 2014-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5065
5066         * MAINTAINERS (Write After Approval): Move self back from
5067         paper trail.
5068
5069 2014-05-22  Pedro Alves  <palves@redhat.com>
5070
5071         * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
5072         (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
5073         (disable_randomization, enum exec_direction_kind)
5074         (execution_direction, stop_registers, start_remote)
5075         (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
5076         (wait_for_inferior, normal_stop, get_last_target_status)
5077         (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
5078         (insert_step_resume_breakpoint_at_sal)
5079         (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
5080         (set_step_info, print_stop_event, signal_stop_state)
5081         (signal_print_state, signal_pass_state, signal_stop_update)
5082         (signal_print_update, signal_pass_update)
5083         (update_signals_program_target, clear_exit_convenience_vars)
5084         (displaced_step_dump_bytes, update_observer_mode)
5085         (signal_catch_update, gdb_signal_from_command): Move
5086         declarations ...
5087         * infrun.h: ... to this new file.
5088         * amd64-tdep.c: Include infrun.h.
5089         * annotate.c: Include infrun.h.
5090         * arch-utils.c: Include infrun.h.
5091         * arm-linux-tdep.c: Include infrun.h.
5092         * arm-tdep.c: Include infrun.h.
5093         * break-catch-sig.c: Include infrun.h.
5094         * breakpoint.c: Include infrun.h.
5095         * common/agent.c: Include infrun.h instead of inferior.h.
5096         * corelow.c: Include infrun.h.
5097         * event-top.c: Include infrun.h.
5098         * go32-nat.c: Include infrun.h.
5099         * i386-tdep.c: Include infrun.h.
5100         * inf-loop.c: Include infrun.h.
5101         * infcall.c: Include infrun.h.
5102         * infcmd.c: Include infrun.h.
5103         * infrun.c: Include infrun.h.
5104         * linux-fork.c: Include infrun.h.
5105         * linux-nat.c: Include infrun.h.
5106         * linux-thread-db.c: Include infrun.h.
5107         * monitor.c: Include infrun.h.
5108         * nto-tdep.c: Include infrun.h.
5109         * procfs.c: Include infrun.h.
5110         * record-btrace.c: Include infrun.h.
5111         * record-full.c: Include infrun.h.
5112         * remote-m32r-sdi.c: Include infrun.h.
5113         * remote-mips.c: Include infrun.h.
5114         * remote-notif.c: Include infrun.h.
5115         * remote-sim.c: Include infrun.h.
5116         * remote.c: Include infrun.h.
5117         * reverse.c: Include infrun.h.
5118         * rs6000-tdep.c: Include infrun.h.
5119         * s390-linux-tdep.c: Include infrun.h.
5120         * solib-irix.c: Include infrun.h.
5121         * solib-osf.c: Include infrun.h.
5122         * solib-svr4.c: Include infrun.h.
5123         * target.c: Include infrun.h.
5124         * top.c: Include infrun.h.
5125         * windows-nat.c: Include infrun.h.
5126         * mi/mi-interp.c: Include infrun.h.
5127         * mi/mi-main.c: Include infrun.h.
5128         * python/py-threadevent.c: Include infrun.h.
5129
5130 2014-05-22  Pedro Alves  <palves@redhat.com>
5131
5132         * infrun.c (handle_inferior_event): Store the exit code for
5133         --return-child-result here, instead of ...
5134         (print_exited_reason): ... here.
5135
5136 2014-05-21  Pedro Alves  <palves@redhat.com>
5137
5138         PR gdb/13860
5139         * gdbthread.h (struct thread_control_state): New field
5140         `command_interp'.
5141         * infrun.c (follow_fork): Copy the new thread control field to the
5142         child fork thread.
5143         (clear_proceed_status_thread): Clear the new thread control field.
5144         (proceed): Set the new thread control field.
5145         * interps.h (command_interp): Declare.
5146         * interps.c (command_interpreter): New global.
5147         (command_interp): New function.
5148         (interp_exec): Set `command_interpreter' while here.
5149         * cli-out.c (cli_uiout_dtor): New function.
5150         (cli_ui_out_impl): Install it.
5151         * mi/mi-interp.c: Include cli-out.h.
5152         (mi_cmd_interpreter_exec): Add comment.
5153         (restore_current_uiout_cleanup): New function.
5154         (ui_out_free_cleanup): New function.
5155         (mi_on_normal_stop): If finishing an execution command started by
5156         a CLI command, or any kind of breakpoint-like event triggered,
5157         print the stop event to the output (CLI) stream.
5158         * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
5159
5160 2014-05-21  Pedro Alves  <palves@redhat.com>
5161
5162         * cli/cli-cmds.c (list_command): Handle the first "list" after the
5163         current source line having changed.
5164         * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
5165         * infrun.c (normal_stop): Adjust call to
5166         set_current_sal_from_frame.
5167         * source.c (clear_lines_listed_range): New function.
5168         (set_current_source_symtab_and_line, identify_source_line): Clear
5169         the lines listed range.
5170         (line_info): Handle the first "info line" after the current source
5171         line having changed.
5172         * stack.c (print_stack_frame): Remove center handling.
5173         (set_current_sal_from_frame): Remove 'center' parameter.  Don't
5174         center sal.line.
5175
5176 2014-05-21  Pedro Alves  <palves@redhat.com>
5177
5178         * inf-child.c (inf_child_mourn_inferior): New function.
5179         * inf-child.h (inf_child_mourn_inferior): New declaration.
5180         * darwin-nat.c (darwin_mourn_inferior): Use
5181         inf_child_mourn_inferior.
5182         * gnu-nat.c (gnu_mourn_inferior): Likewise.
5183         * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
5184         * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
5185         * nto-procfs.c (procfs_mourn_inferior): Likewise.
5186         * windows-nat.c (windows_mourn_inferior): Likewise.
5187
5188 2014-05-21  Doug Evans  <xdje42@gmail.com>
5189
5190         * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5191
5192 2014-05-21  Doug Evans  <xdje42@gmail.com>
5193
5194         * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
5195         (gdbscm_out_of_range_error): Ditto.
5196         (gdbscm_memory_error): Ditto.
5197         * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
5198         * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
5199         (gdbscm_out_of_range_error): Update.
5200         (gdbscm_memory_error): Update.
5201         (gdbscm_scm_to_target_string_unsafe): Delete.
5202
5203 2014-05-21  Pedro Alves  <palves@redhat.com>
5204
5205         * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
5206         globals.
5207         (inf_child_open_target): New function.
5208         (inf_child_open): Use inf_child_open_target to push the target
5209         instead of erroring out.
5210         (inf_child_disconnect, inf_child_close)
5211         (inf_child_maybe_unpush_target): New functions.
5212         (inf_child_target): Install inf_child_disconnect and
5213         inf_child_close.  Store a pointer to the returned object.
5214         * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
5215         declarations.
5216         * target.c (auto_connect_native_target): New global.
5217         (show_default_run_target): New function.
5218         (find_default_run_target): Return NULL if automatically connecting
5219         to the native target is disabled.
5220         (_initialize_target): Install set/show auto-connect-native-target.
5221         * NEWS: Mention "set auto-connect-native-target", and "target
5222         native".
5223         * linux-nat.c (super_close): New global.
5224         (linux_nat_close): Call super_close.
5225         (linux_nat_add_target): Store a pointer to the base class's
5226         to_close method.
5227         * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
5228         inf_child_maybe_unpush.
5229         * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
5230         already pushed.
5231         (inf_ttrace_mourn_inferior): Only unpush the target after mourning
5232         the inferior.  Use inf_child_maybe_unpush_target.
5233         (inf_ttrace_attach): Don't push the target if it is already
5234         pushed.
5235         (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
5236         * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
5237         after mourning the inferior.  Use inf_child_maybe_unpush_target.
5238         (darwin_attach_pid): Don't push the target if it is already
5239         pushed.
5240         * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
5241         mourning the inferior.  Use inf_child_maybe_unpush_target.
5242         (gnu_detach): Use inf_child_maybe_unpush_target.
5243         * go32-nat.c (go32_create_inferior): Don't push the target if it
5244         is already pushed.
5245         (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
5246         * nto-procfs.c (procfs_is_nto_target): Adjust comment.
5247         (procfs_open): Rename to ...
5248         (procfs_open_1): ... this.  Add target_ops parameter.  Adjust
5249         comments.  Can target_preopen before changing node.  Call
5250         inf_child_open_target to push the target explicitly.
5251         (procfs_attach): Don't push the target if it is already pushed.
5252         (procfs_detach): Use inf_child_maybe_unpush_target.
5253         (procfs_create_inferior): Don't push the target if it is already
5254         pushed.
5255         (nto_native_ops): New global.
5256         (procfs_open): Reimplement.
5257         (procfs_native_open): New function.
5258         (init_procfs_targets): Install procfs_native_open as to_open of
5259         "target native".  Store a pointer to the "native" target in
5260         nto_native_ops.
5261         * procfs.c (procfs_attach): Don't push the target if it is already
5262         pushed.
5263         (procfs_detach): Use inf_child_maybe_unpush_target.
5264         (procfs_mourn_inferior): Only unpush the target after mourning the
5265         inferior.  Use inf_child_maybe_unpush_target.
5266         (procfs_init_inferior): Don't push the target if it is already
5267         pushed.
5268         * windows-nat.c (do_initial_windows_stuff): Don't push the target
5269         if it is already pushed.
5270
5271 2014-05-21  Pedro Alves  <palves@redhat.com>
5272
5273         * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5274         and "procfs" targets are now called "native" instead.
5275
5276 2014-05-21  Pedro Alves  <palves@redhat.com>
5277
5278         * go32-nat.c (go32_open): Delete.
5279         (go32_target): Don't override the to_open method.
5280
5281 2014-05-21  Pedro Alves  <palves@redhat.com>
5282
5283         * nto-procfs.c (procfs_can_run): New function.
5284         (nto_procfs_ops): New global.
5285         (init_procfs_targets): New, based on procfs_target.  Install
5286         "target native" in addition to "target procfs".
5287         (_initialize_procfs): Call init_procfs_targets instead of adding
5288         the target here.
5289
5290 2014-05-21  Pedro Alves  <palves@redhat.com>
5291
5292         * windows-nat.c (windows_target): Don't override to_shortname,
5293         to_longname or to_doc.
5294
5295 2014-05-21  Pedro Alves  <palves@redhat.com>
5296
5297         * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5298         to_doc.
5299
5300 2014-05-21  Pedro Alves  <palves@redhat.com>
5301
5302         * darwin-nat.c (_initialize_darwin_inferior): Don't override
5303         to_shortname, to_longname or to_doc.
5304
5305 2014-05-21  Pedro Alves  <palves@redhat.com>
5306
5307         * go32-nat.c (go32_target): Don't override to_shortname,
5308         to_longname or to_doc.
5309
5310 2014-05-21  Pedro Alves  <palves@redhat.com>
5311
5312         * inf-child.c (inf_child_open): Remove mention of "child".
5313         (inf_child_target): Rename target to "native" instead of "child".
5314
5315 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5316
5317         * Makefile.in (SFILES): Delete "regset.c".
5318         (COMMON_OBS): Delete "regset.o".
5319         * regset.c: Remove.
5320         * regset.h (regset_alloc): Delete prototype.
5321
5322 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5323
5324         * sparc-linux-tdep.c (sparc32_linux_gregset)
5325         (sparc32_linux_fpregset): New static regset structures.
5326         (sparc32_linux_init_abi): Drop dynamic regset allocations.
5327         * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5328         'fpregset' fields.
5329         * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5330         (sparc64_linux_fpregset): New static regset structures.
5331         (sparc64_linux_init_abi): Drop dynamic regset allocations.
5332         * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5333         New static regset structures.
5334         (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5335         * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5336         New static regset structures.
5337         (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5338         * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5339         New static regset structures.
5340         (sparc64obsd_init_abi): Drop dynamic regset allocations.
5341         * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5342         New static regset structures.
5343         (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5344
5345 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5346
5347         * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5348         (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5349         register maps ("regmaps") from "*regset" to "*regmap".  Do this
5350         for all regmap types and variables.
5351         * sparc-linux-tdep.c (sparc32_linux_step_trap)
5352         (sparc32_linux_supply_core_gregset)
5353         (sparc32_linux_collect_core_gregset)
5354         (sparc32_linux_supply_core_fpregset)
5355         (sparc32_linux_collect_core_fpregset): Likewise.
5356         * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5357         (sparc_gregmap, sparc_fpregmap): ... these.
5358         (sparc_supply_gregset, sparc_collect_gregset)
5359         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5360         (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5361         (_initialize_sparc_nat): Rename regmaps.
5362         * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5363         (sparc_gregmap, sparc_fpregmap): ... these.
5364         (sparc_supply_gregset, sparc_collect_gregset)
5365         (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5366         * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5367         Rename macros to...
5368         (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5369         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5370         Likewise.
5371         * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5372         Rename to...
5373         (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5374         * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5375         (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5376         regmaps.
5377         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5378         (sparc32_bsd_fpregset): Rename to...
5379         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5380         (sparc32_bsd_fpregmap): ... these.
5381         * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5382         (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5383         (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5384         (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5385         (struct sparc_gregmap, struct sparc_fpregmap)
5386         (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5387         (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5388         (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5389         (sparc32_supply_regset, sparc32_collect_gregset)
5390         (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5391         prototypes.
5392         * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5393         (sparc64_linux_ptrace_gregmap): ... this.
5394         (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5395         (_initialize_sparc64_linux_nat): Rename regmaps.
5396         * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5397         (sparc64_linux_core_gregmap): ... this.
5398         (sparc64_linux_supply_core_gregset)
5399         (sparc64_linux_collect_core_gregset)
5400         (sparc64_linux_supply_core_fpregset)
5401         (sparc64_linux_collect_core_fpregset): Rename regmaps.
5402         * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5403         (sparc64_sol2_fpregset): Rename to...
5404         (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5405         * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5406         (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5407         regmaps.
5408         * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5409         (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5410         (sparc64_bsd_fpregset): Rename to...
5411         (struct sparc_gregmap, sparc64_sol2_gregmap)
5412         (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5413         (sparc64_bsd_fpregmap): ... these.
5414         (sparc64_supply_gregset, sparc64_collect_gregset)
5415         (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5416         prototypes.
5417         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5418         * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5419         (sparc64fbsd_gregmap): ... this.
5420         (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5421         (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5422         Rename regmaps.
5423         * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5424         (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5425         (sparc64nbsd_collect_fpregset): Likewise.
5426         * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5427         (sparc64nbsd_gregmap): ... this.
5428         (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5429         regmaps.
5430         * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5431         * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5432         (sparc64obsd_gregmap): ... this.
5433         (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5434         regmaps.
5435         * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5436         * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5437         (sparc32nbsd_gregmap): ... this.
5438         (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5439         regmaps.
5440
5441 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5442
5443         * score-tdep.c (score7_linux_gregset): New static regset
5444         structure.
5445         (score7_linux_regset_from_core_section): Remove dynamic regset
5446         allocation.
5447         (score_gdbarch_init): Drop allocation of tdep structure.
5448         * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5449
5450 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5451
5452         * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5453         regset structures.
5454         (am33_regset_from_core_section): Remove dynamic regset
5455         allocations.
5456
5457 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5458
5459         * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5460         (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5461         structures.
5462         (mips_linux_regset_from_core_section): Remove dynamic regset
5463         allocations.
5464         * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5465         'gregset64', 'fpregset', and 'fpregset64'.
5466         * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5467         deleted tdep fields.
5468
5469 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5470
5471         * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5472         regset structures.
5473         (amd64_regset_from_core_section): Remove dynamic regset
5474         allocations.
5475         * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5476         structure.
5477         (amd64obsd_regset_from_core_section): Remove dynamic regset
5478         allocation.
5479         * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5480         Likewise.
5481         * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5482         x86-common regset supply function.
5483         * i386-tdep.c (i386_collect_gregset): Make static.
5484         (i386_gregset): New global regset structure.
5485         (i386_fpregset, i386_xstateregset): New static regset structures.
5486         (i386_regset_from_core_section): Remove dynamic regset
5487         allocations.
5488         (i386_gdbarch_init): Remove initialization of tdep fields
5489         'gregset', 'fpregset', and 'xstateregset'.
5490         * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5491         'fpregset', and 'xstateregset'.
5492         (i386_collect_gregset): Remove prototype.
5493         (i386_gregset): New declaration.
5494         * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5495         structure.
5496         (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5497         allocation.
5498
5499 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5500
5501         * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5502         (arm_linux_vfpregset): New static regset structures.
5503         (arm_linux_regset_from_core_section): Remove dynamic allocation of
5504         regset structures.
5505         * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5506         and 'vfpregset' fields.
5507
5508 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5509
5510         * aarch64-linux-tdep.c (aarch64_linux_gregset)
5511         (aarch64_linux_fpregset): New static regset structures.
5512         (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5513         of regset structures.
5514         * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5515         'fpregset' fields.
5516
5517 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5518
5519         * regset.h (struct regset): Remove gdbarch field.
5520         * regset.c (regset_alloc): Drop initialization of gdbarch field.
5521         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5522         * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5523         Likewise.
5524         * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5525         (ppc32_linux_fpregset, ppc32_linux_vrregset)
5526         (ppc32_linux_vsxregset): Likewise.
5527         * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5528         via the regcache instead of the regset.
5529         * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5530         (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5531         * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5532         * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5533         Likewise.
5534
5535 2014-05-21  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5536
5537         * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5538         Constify structures.
5539         * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5540         (alphanbsd_aout_gregset): Likewise.
5541         * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5542         * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5543         Likewise.
5544         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5545         * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5546         Likewise.
5547         * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5548         * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5549         * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5550         * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5551         * m88k-tdep.c (m88k_gregset): Likewise.
5552         * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5553         * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5554         * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5555         * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5556         * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5557         * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5558         * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5559         * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5560         * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5561         Likewise.
5562         * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5563         * sh-tdep.h (sh_corefile_gregset): Likewise.
5564         * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5565         * vax-tdep.c (vax_gregset): Likewise.
5566
5567 2014-05-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
5568
5569         Fix TLS access for -static -pthread.
5570         * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5571         (try_thread_db_load_1): Initialize it.
5572         (thread_db_get_thread_local_address): Call it if LM is zero.
5573         * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5574         * target.h (struct target_ops) (to_get_thread_local_address): Add
5575         load_module_addr comment.
5576
5577 2014-05-21  Pedro Alves  <palves@redhat.com>
5578
5579         * dcache.c (dcache_read_memory_partial): If reading the cache line
5580         fails, fallback to reading just the memory the caller wanted.
5581
5582 2014-05-20  Doug Evans  <dje@google.com>
5583
5584         * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5585         instead of get_current_arch.
5586
5587 2014-05-20  Pedro Alves  <palves@redhat.com>
5588
5589         * NEWS: Mention that compare-sections now works with all targets.
5590
5591         * remote.c (PACKET_qCRC): New enum value.
5592         (remote_verify_memory): Don't send qCRC if the target has no
5593         execution.  Use packet_support/packet_ok.  If the target doesn't
5594         support the qCRC packet, fallback to a deep memory copy.
5595         (compare_sections_command): Say "target image" instead of "remote
5596         executable".
5597         (_initialize_remote): Add PACKET_qCRC to the list of config
5598         packets that have no associated command.  Extend comment.
5599         * target.c (simple_verify_memory, default_verify_memory): New
5600         function.
5601         * target.h (struct target_ops) <to_verify_memory>: Default to
5602         default_verify_memory.
5603         (simple_verify_memory): New declaration.
5604         * target-delegates.c: Regenerate.
5605
5606 2014-05-20  Markus Metzger  <markus.t.metzger@intel.com>
5607
5608         * record-btrace.c (record_btrace_step_thread): Check for empty history.
5609
5610 2014-05-20  Hui Zhu  <hui@codesourcery.com>
5611             Yao Qi  <yao@codesourcery.com>
5612
5613         PR backtrace/16558
5614         * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5615         and change address of sp and pc.
5616
5617 2014-05-19  Tom Tromey  <tromey@redhat.com>
5618
5619         * gdbtypes.c (rank_function): Use XNEWVEC.
5620         * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5621
5622 2014-05-19  Doug Evans  <dje@google.com>
5623
5624         * dwarf2read.c (build_type_psymtabs_1): Renamed from
5625         build_type_unit_groups and moved closer to only caller.  Remove
5626         arguments.  All references updated.  Remove outdated .gdb_index
5627         comment.
5628         (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5629         build_type_psymtabs_1.
5630
5631 2014-05-19  Doug Evans  <dje@google.com>
5632
5633         * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5634         n_type_unit_groups, all_type_unit_groups.  All uses removed.
5635         (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5636         (dw2_get_cutu): Renamed from dw2_get_cu.  All callers updated.
5637         (dw2_get_cu): Renamed from dw2_get_primary_cu.  All callers updated.
5638         (add_type_unit_group_to_table): Delete.
5639
5640 2014-05-19  Doug Evans  <dje@google.com>
5641
5642         * eval.c (evaluate_subexp_standard): Add some comments.
5643
5644 2014-05-17  Doug Evans  <xdje42@gmail.com>
5645
5646         * progspace.c (remove_program_space): Delete, unused.
5647         * progspace.h (remove_program_space): Ditto.
5648
5649 2014-05-17  Doug Evans  <xdje42@gmail.com>
5650
5651         * inferior.c (prune_inferiors): Fix comment.
5652         (remove_inferior_command): Call prune_program_spaces.
5653
5654 2014-05-16  Doug Evans  <dje@google.com>
5655
5656         New command line option -D.
5657         * NEWS: Mention it.
5658         * main.c (set_gdb_data_directory): New function.
5659         (captured_main): Recognize -D.  Flag error for --data-directory "".
5660         Call set_gdb_data_directory.
5661         (print_gdb_help): Print --data-directory, -D.
5662         * main.h (set_gdb_data_directory): Declare.
5663         * top.c (staged_gdb_datadir): New static global.
5664         (set_gdb_datadir): Call set_gdb_data_directory
5665         (show_gdb_datadir): New function.
5666         (init_main): Update init of data-directory parameter.
5667
5668 2014-05-16  Gregory Fong  <gregory.0xf0@gmail.com>
5669
5670         Import the "dirfd" gnulib module.
5671         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5672         * gnulib/aclocal.m4: Update.
5673         * gnulib/config.in: Update.
5674         * gnulib/configure: Update.
5675         * gnulib/import/Makefile.am: Update.
5676         * gnulib/import/Makefile.in: Update.
5677         * gnulib/import/dirfd.c: New.
5678         * gnulib/import/m4/dirfd.m4: New.
5679         * gnulib/import/m4/gnulib-cache.m4: Update.
5680         * gnulib/import/m4/gnulib-comp.m4: Update.
5681
5682 2014-05-16  Pierre Muller  <muller@sourceware.org>
5683             Yao Qi  <yao@codesourcery.com>
5684
5685         * valprint.c (print_wchar): Move the code on checking whether
5686         W is a printable wide char to the default branch of switch
5687         statement below.  Call wchar_printable instead of gdb_iswprint.
5688
5689 2014-05-16  Taimoor Mirza  <tmirza@codesourcery.com>
5690
5691         * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5692         ldr.w and ldrd instructions.
5693
5694 2014-05-15  Doug Evans  <dje@google.com>
5695
5696         * dwarf2read.c (read_structure_type): Delete outdated comments.
5697
5698 2014-05-14  Tom Tromey  <tromey@redhat.com>
5699
5700         * macrocmd.c (print_macro_definition): Reindent.
5701
5702 2014-05-13  Doug Evans  <xdje42@gmail.com>
5703
5704         * python/py-cmd.c (cmdpy_completer): Add comment.
5705         (completers): Make const.
5706
5707 2014-05-13  Simon Marchi  <simon.marchi@ericsson.com>
5708
5709         * infrun.c (resume): Remove should_resume (unused).  Move up
5710         declaration of resume_ptid.
5711
5712 2014-05-13  Tom Tromey  <tromey@redhat.com>
5713
5714         * language.h (unop_type_check): Remove.
5715         (binop_type_check): Don't declare.
5716
5717 2014-05-13  Andreas Arnez  <arnez@vnet.linux.ibm.com>
5718
5719         * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5720         call to regcache_raw_collect.
5721
5722 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
5723
5724         * mi/mi-console.c (mi_console_raw_packet): Use the value from
5725         mi_console->quote as the quoting character.
5726
5727 2014-05-12  Simon Marchi  <simon.marchi@ericsson.com>
5728
5729         * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5730
5731 2014-04-29  Tom Tromey  <tromey@redhat.com>
5732
5733         * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5734         "show debug varobj".
5735
5736 2014-05-07  Kyle McMartin  <kyle@redhat.com>
5737
5738         Pushed by Joel Brobecker  <brobecker@adacore.com>.
5739         * aarch64-tdep.c (aarch64_software_single_step): New function.
5740         (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5741         with aarch64_software_single_step.
5742
5743 2014-05-05  Joel Brobecker  <brobecker@adacore.com>
5744
5745         GDB 7.7.1 released.
5746
5747 2014-05-05  Keith Seitz  <keiths@redhat.com>
5748
5749         * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5750         variable or history value is successfully parsed.
5751
5752 2014-05-05  Yao Qi  <yao@codesourcery.com>
5753             Pedro Alves  <palves@redhat.com>
5754
5755         * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5756         address of blocks that intersects the requested range.  Trim
5757         LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5758         sections.
5759         * ctf.c (ctf_xfer_partial): Likewise.
5760
5761 2014-05-05  Yao Qi  <yao@codesourcery.com>
5762
5763         * printcmd.c (display_command): Remove the check to
5764         target_has_execution.
5765
5766 2014-05-03  Mark Kettenis  <kettenis@gnu.org>
5767
5768         * ppcobsd-nat.c: Include "obsd-nat.h".
5769         (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5770         add_target.
5771         * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5772
5773 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
5774
5775         * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5776         and 16-bit signed and unsigned arguments.  Update comment.
5777         (stap_parse_probe_arguments): Extend code to handle such
5778         arguments.  Use warning instead of complaint to notify about
5779         unrecognized bitness.
5780
5781 2014-05-02  Sergio Durigan Junior  <sergiodj@redhat.com>
5782
5783         PR breakpoints/16889
5784         * stap-probe.c (stap_parse_probe_arguments): Simplify
5785         check for non-prefixed probes (i.e., probes whose
5786         arguments do not start with "N@").  Always set the
5787         argument type to a sane value.
5788
5789 2014-05-01  David Taylor  <dtaylor@emc.com>
5790
5791         * remote.c (compare_sections_command): Add -r option to compare
5792         all loadable read-only sections.
5793
5794 2014-04-30  Siva Chandra Reddy  <sivachandra@google.com>
5795
5796         * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5797         dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5798         Update all callers.
5799         * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5800         * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5801         Remove unused CORE_ADDR argument.  Update all callers.
5802
5803 2014-04-29  Pedro Alves  <palves@redhat.com>
5804
5805         * remote.c (struct packet_config) <detect>: Extend comment.
5806         (add_packet_config_cmd): Don't set the config's detect or support
5807         fields here.
5808         (init_all_packet_configs): Also initialize the config's 'detect'
5809         field.
5810         (reset_all_packet_configs_support): New function.
5811         (remote_open_1): Call reset_all_packet_configs_support instead of
5812         init_all_packet_configs.
5813         (_initialize_remote): Initialize all packet configs.  Assert that
5814         all packets have an associated command, except a few known
5815         outliers.
5816
5817 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5818
5819         * dwarf2read.c (read_subrange_type): Handle dynamic
5820         DW_AT_lower_bound attributes.
5821
5822 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5823
5824         * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5825         dynamic bounds before computing its upper bound.
5826         (ada_discrete_type_low_bound): Same as above with the lower bound.
5827
5828 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5829
5830         * dwarf2read.c (is_dynamic_type): Return true for dynamic
5831         range types.  Adjust the array handling implementation to
5832         take advantage of this change.
5833         (resolve_dynamic_range): New function, mostly extracted from
5834         resolve_dynamic_bounds.
5835         (resolve_dynamic_array): New function, mostly extracted from
5836         resolve_dynamic_bounds.
5837         (resolve_dynamic_bounds): Delete.
5838         (resolve_dynamic_type): Reimplement.  Add handling of
5839         TYPE_CODE_RANGE types.
5840
5841 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5842
5843         * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5844         handling of parallel ___XA types.
5845
5846 2014-04-28  Joel Brobecker  <brobecker@adacore.com>
5847
5848         * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5849         unnecessary second call to static_unwrap_type.
5850
5851 2014-04-27  Hui Zhu  <hui@codesourcery.com>
5852
5853         * stack.c (print_frame_info): Call do_gdb_disassembly with
5854         DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5855
5856 2014-04-26  Doug Evans  <xdje42@gmail.com>
5857
5858         * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5859
5860 2014-04-25  Pedro Alves  <palves@redhat.com>
5861
5862         PR server/16255
5863         * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5864         (linux_ptrace_attach_fail_reason): ... this.  Remove "warning: "
5865         and newline from built string.
5866         * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5867         (linux_ptrace_attach_fail_reason): ... this.
5868         * linux-nat.c (linux_nat_attach): Adjust to use
5869         linux_ptrace_attach_fail_reason.
5870
5871 2014-04-25  Pedro Alves  <palves@redhat.com>
5872
5873         * remote.c (struct remote_state): Remove multi_process_aware,
5874         non_stop_aware, cond_tracepoints, cond_breakpoints,
5875         breakpoint_commands, fast_tracepoints, static_tracepoints,
5876         install_in_trace, disconnected_tracing,
5877         enable_disable_tracepoints, string_tracing, and
5878         augmented_libraries_svr4_read fields.
5879         (remote_multi_process_p): Move further below in the file.
5880         (struct packet_config): Add comments.
5881         (update_packet_config): Delete function.
5882         (show_packet_config_cmd): Use packet_config_support.
5883         (add_packet_config_cmd): Use NULL as set callback.
5884         (packet_ok): "set remote foo-packet"-style commands no longer
5885         change config->supported -- adjust.
5886         (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5887         (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5888         (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5889         (PACKET_QNonStop, PACKET_multiprocess_feature)
5890         (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5891         (PACKET_DisconnectedTracing_feature)
5892         (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5893         (set_remote_protocol_packet_cmd): Delete function.
5894         (packet_config_support, packet_support): New functions.
5895         (set_remote_protocol_Z_packet_cmd): Don't call
5896         update_packet_config.
5897         (remote_query_attached, remote_pass_signals)
5898         (remote_program_signals, remote_threads_info)
5899         (remote_threads_extra_info, remote_start_remote): Use
5900         packet_support.
5901         (remote_start_remote): Use packet_config_support and
5902         packet_support.
5903         (init_all_packet_configs): Set all packets to unknown support,
5904         instead of calling update_packet_config.
5905         (remote_check_symbols): Use packet_support.
5906         (remote_supported_packet): Unconditionally set the packet config's
5907         support status.
5908         (remote_multi_process_feature, remote_non_stop_feature)
5909         (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5910         (remote_breakpoint_commands_feature)
5911         (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5912         (remote_install_in_trace_feature)
5913         (remote_disconnected_tracing_feature)
5914         (remote_enable_disable_tracepoint_feature)
5915         (remote_string_tracing_feature)
5916         (remote_augmented_libraries_svr4_read_feature): Delete functions.
5917         (remote_protocol_features): Adjust to use remote_supported_packet
5918         for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5919         "ConditionalTracepoints", "ConditionalBreakpoints",
5920         "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5921         "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5922         "EnableDisableTracepoints", and "tracenz".
5923         (remote_query_supported): Use packet_support.
5924         (remote_open_1): Adjust.
5925         (extended_remote_attach_1): Use packet_support.  Switch on the
5926         result of packet_ok instead of checking whether the packet ended
5927         up disabled.
5928         (remote_vcont_resume): Use packet_support.
5929         (remote_resume, remote_stop_ns, fetch_register_using_p)
5930         (remote_prepare_to_store, store_register_using_P)
5931         (check_binary_download, remote_write_bytes): Use packet_support.
5932         (remote_vkill): Use packet_support.  Switch on the result of
5933         packet_ok instead of checking whether the packet ended up
5934         disabled.
5935         (extended_remote_supports_disable_randomization): Use
5936         packet_support.
5937         (extended_remote_run): Switch on the result of packet_ok instead
5938         of checking whether the packet ended up disabled.
5939         (remote_insert_breakpoint, remote_remove_breakpoint)
5940         (remote_insert_watchpoint, remote_remove_watchpoint)
5941         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5942         packet_support.
5943         (remote_search_memory): Use packet_config_support.
5944         (remote_get_thread_local_address, remote_get_tib_address)
5945         (remote_hostio_send_command, remote_can_execute_reverse): Use
5946         packet_support.
5947         (remote_supports_cond_tracepoints)
5948         (remote_supports_cond_breakpoints)
5949         (remote_supports_fast_tracepoints)
5950         (remote_supports_static_tracepoints)
5951         (remote_supports_install_in_trace)
5952         (remote_supports_enable_disable_tracepoint)
5953         (remote_supports_string_tracing)
5954         (remote_can_run_breakpoint_commands): Rewrite, checking whether
5955         the packet config says the feature is enabled or disabled.
5956         (remote_download_tracepoint, remote_trace_set_readonly_regions)
5957         (remote_get_trace_status): Use packet_support.
5958         (remote_set_disconnected_tracing): Adjust to check whether the
5959         feature is enabled with packet_support.
5960         (remote_set_trace_buffer_size, remote_use_agent)
5961         (remote_can_use_agent, remote_supports_btrace): Use
5962         packet_support.
5963         (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5964         Use packet_config_support.
5965         (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5966         the packet config says the feature is enabled or disabled.
5967         (set_range_stepping): Use packet_support.
5968
5969 2014-04-25  Tom Tromey  <tromey@redhat.com>
5970
5971         * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5972         argument.
5973
5974 2014-04-24  Sanimir Agovic  <sanimir.agovic@intel.com>
5975
5976         * NEWS: Mention support for C99 variable length arrays.
5977
5978 2014-04-24  Joel Brobecker  <brobecker@adacore.com>
5979
5980         * ada-lang.c (standard_exc): Expand introductory comment.
5981
5982 2014-04-24  Michael Sturm  <michael.sturm@mintel.com>
5983             Walfred Tedeschi  <walfred.tedeschi@intel.com>
5984
5985         * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5986         AVX512 registers.
5987         (amd64_linux_read_description): Add code to handle AVX512 xstate
5988         mask and return respective tdesc.
5989         * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5990         and features/i386/x32-avx512-linux.c.
5991         (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5992         (amd64_linux_core_read_description): Add code to handle AVX512
5993         xstate mask and return respective tdesc.
5994         (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5995         * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5996         calculation.
5997         (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5998         (tdesc_amd64_avx512_linux): New prototype.
5999         (tdesc_x32_avx512_linux): Likewise.
6000         * amd64-tdep.c: Include features/i386/amd64-avx512.c and
6001         features/i386/x32-avx512.c.
6002         (amd64_ymm_avx512_names): New register names for pseudo
6003         registers YMM16-31.
6004         (amd64_ymmh_avx512_names): New register names for raw registers
6005         YMMH16-31.
6006         (amd64_k_names): New register names for K registers.
6007         (amd64_zmmh_names): New register names for ZMM raw registers.
6008         (amd64_zmm_names): New registers names for ZMM pseudo registers.
6009         (amd64_xmm_avx512_names): New register names for XMM16-31
6010         registers.
6011         (amd64_pseudo_register_name): Add code to return AVX512 pseudo
6012         registers.
6013         (amd64_init_abi): Add code to intitialize AVX512 tdep variables
6014         if feature is present.
6015         (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
6016         * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
6017         (AMD64_NUM_REGS): Adjust to new number of registers.
6018         * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
6019         registers supplied via XSTATE by AVX512 registers.
6020         (i386_linux_read_description): Add case for AVX512.
6021         * i386-linux-tdep.c: Include i386-avx512-linux.c.
6022         (i386_linux_gregset_reg_offset): Add AVX512 registers.
6023         (i386_linux_core_read_description): Add case for AVX512.
6024         (i386_linux_init_abi): Install supported register note section
6025         for AVX512.
6026         (_initialize_i386_linux_tdep): Add call to tdesc init function for
6027         AVX512.
6028         * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
6029         registers to be number of zmm7h + 1.
6030         (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
6031         * i386-tdep.c: Include features/i386/i386-avx512.c.
6032         (i386_zmm_names): Add ZMM pseudo register names array.
6033         (i386_zmmh_names): Add ZMM raw register names array.
6034         (i386_k_names): Add K raw register names array.
6035         (num_lower_zmm_regs): Add constant for the number of lower ZMM
6036         registers. AVX512 has 16 more ZMM registers than there are YMM
6037         registers.
6038         (i386_zmmh_regnum_p): Add function to look up register number of
6039         ZMM raw registers.
6040         (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
6041         (i386_k_regnum_p): Likewise for K raw registers.
6042         (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
6043         registers added by AVX512.
6044         (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
6045         registers added by AVX512.
6046         (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
6047         added by AVX512.
6048         (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
6049         (i386_pseudo_register_name): Add ZMM pseudo registers.
6050         (i386_zmm_type): Construct and return vector registers type for ZMM
6051         registers.
6052         (i386_pseudo_register_type): Return appropriate type for YMM16-31,
6053         ZMM0-31 pseudo registers and K registers.
6054         (i386_pseudo_register_read_into_value): Add code to read K, ZMM
6055         and YMM16-31 registers from register cache.
6056         (i386_pseudo_register_write): Add code to write  K, ZMM and
6057         YMM16-31 registers.
6058         (i386_register_reggroup_p): Add code to include/exclude AVX512
6059         registers in/from respective register groups.
6060         (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
6061         registers if feature is present in xcr0.
6062         (i386_gdbarch_init): Add code to initialize AVX512 feature
6063         variables in tdep structure, wire in pseudo registers and call
6064         initialize_tdesc_i386_avx512.
6065         * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
6066         variables.
6067         (i386_regnum): Add AVX512 registers.
6068         (I386_SSE_NUM_REGS): New define for number of SSE registers.
6069         (I386_AVX_NUM_REGS): Likewise for AVX registers.
6070         (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
6071         (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
6072         512 bits wide.
6073         (i386_xmm_avx512_regnum_p): New prototype for register look up.
6074         (i386_ymm_avx512_regnum_p): Likewise.
6075         (i386_k_regnum_p): Likewise.
6076         (i386_zmm_regnum_p): Likewise.
6077         (i386_zmmh_regnum_p): Likewise.
6078         * i387-tdep.c : Update year in copyright notice.
6079         (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
6080         XSAVE buffer.
6081         (XSAVE_YMM_AVX512_ADDR): New macro.
6082         (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
6083         XSAVE buffer.
6084         (XSAVE_XMM_AVX512_ADDR): New macro.
6085         (xsave_avx512_k_offset): New table for K register offsets in
6086         XSAVE buffer.
6087         (XSAVE_AVX512_K_ADDR): New macro.
6088         (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
6089         in XSAVE buffer.
6090         (XSAVE_AVX512_ZMM_H_ADDR): New macro.
6091         (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
6092         buffer.
6093         (i387_collect_xsave): Add code to collect AVX512 registers from
6094         XSAVE buffer.
6095         * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
6096         of XMM16-31 registers.
6097         (I387_NUM_K_REGS): New define for number of K registers.
6098         (I387_K0_REGNUM): New define for K0 register number.
6099         (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
6100         (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
6101         (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
6102         registers.
6103         (I387_YMM16H_REGNUM): New define for YMM16H register number.
6104         (I387_XMM16_REGNUM): New define for XMM16 register number.
6105         (I387_YMM0_REGNUM): New define for YMM0 register number.
6106         (I387_KEND_REGNUM): New define for last K register number.
6107         (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
6108         (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
6109         number.
6110         (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
6111         number.
6112         * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
6113         size.
6114         * features/Makefile: Add AVX512 related files.
6115         * features/i386/32bit-avx512.xml: New file.
6116         * features/i386/64bit-avx512.xml: Likewise.
6117         * features/i386/amd64-avx512-linux.c: Likewise.
6118         * features/i386/amd64-avx512-linux.xml: Likewise.
6119         * features/i386/amd64-avx512.c: Likewise.
6120         * features/i386/amd64-avx512.xml: Likewise.
6121         * features/i386/i386-avx512-linux.c: Likewise.
6122         * features/i386/i386-avx512-linux.xml: Likewise.
6123         * features/i386/i386-avx512.c: Likewise.
6124         * features/i386/i386-avx512.xml: Likewise.
6125         * features/i386/x32-avx512-linux.c: Likewise.
6126         * features/i386/x32-avx512-linux.xml: Likewise.
6127         * features/i386/x32-avx512.c: Likewise.
6128         * features/i386/x32-avx512.xml: Likewise.
6129         * regformats/i386/amd64-avx512-linux.dat: New file.
6130         * regformats/i386/amd64-avx512.dat: Likewise.
6131         * regformats/i386/i386-avx512-linux.dat: Likewise.
6132         * regformats/i386/i386-avx512.dat: Likewise.
6133         * regformats/i386/x32-avx512-linux.dat: Likewise.
6134         * regformats/i386/x32-avx512.dat: Likewise.
6135         * NEWS: Add note about new support for AVX512.
6136
6137
6138 2014-04-23  Pedro Alves  <palves@redhat.com>
6139
6140         * breakpoint.c (insert_bp_location): Tolerate errors if the
6141         breakpoint is set in a user-loaded objfile.
6142         (remove_breakpoint_1): Likewise.  Also tolerate errors if the
6143         location is marked shlib_disabled.  If the breakpoint is set in a
6144         user-loaded objfile is a GDB-side memory breakpoint, validate it
6145         before uninsertion.  (disable_breakpoints_in_freed_objfile): Skip
6146         non-OBJF_USERLOADED objfiles.  Don't clear the location's inserted
6147         flag.
6148         * mem-break.c (memory_validate_breakpoint): New function.
6149         * objfiles.c (userloaded_objfile_contains_address_p): New
6150         function.
6151         * objfiles.h (userloaded_objfile_contains_address_p): Declare.
6152         * target.h (memory_validate_breakpoint): New declaration.
6153
6154 2014-04-23  Pedro Alves  <palves@redhat.com>
6155
6156         * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
6157         the breakpoint is set in a shared library, only suppress
6158         errors for software breakpoints, not hardware breakpoints.
6159
6160 2014-04-22  Pedro Alves  <palves@redhat.com>
6161
6162         * infrun.c (schedlock_applies): New function, factored out from
6163         find_thread_needs_step_over.
6164         (find_thread_needs_step_over): Use it.
6165         (switch_back_to_stepped_thread): Always clear trap_expected if the
6166         step over is finished.  Return early if scheduler locking applies.
6167         Look for the stepping thread and a potential step-over thread with
6168         a single loop.
6169         (currently_stepping_or_nexting_callback): Delete.
6170
6171 2014-04-22  Nick Clifton  <nickc@redhat.com>
6172
6173         * NEWS: Mention that ARM sim now supports tracing.
6174
6175 2014-04-22  Yao Qi  <yao@codesourcery.com>
6176
6177         * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
6178         to ...
6179         * tracefile.c (tracefile_fetch_registers): ... it.  New
6180         function.
6181         * tracefile.h (tracefile_fetch_registers): Declare.
6182         * ctf.c (ctf_fetch_registers): Remove the bottom.  Call
6183         tracefile_fetch_registers.
6184
6185 2014-04-19  Eli Zaretskii  <eliz@gnu.org>
6186
6187         PR gdb/14018
6188         * windows-nat.c (thread_rec): Don't display a warning when
6189         SuspendThread fails with ERROR_ACCESS_DENIED.  If SuspendThread
6190         fails for any reason, set th->suspended to -1, so that we don't
6191         try to resume such a thread.  Also, don't return NULL in these
6192         cases, to avoid completely ruin the session due to "PC register is
6193         not available" error.
6194         (do_windows_fetch_inferior_registers): Check errors in
6195         GetThreadContext call.
6196         (windows_continue): Accept an additional argument KILLED; if not
6197         zero, ignore errors in the SetThreadContext call, since the
6198         inferior was killed and is shutting down.
6199         (windows_resume, get_windows_debug_event)
6200         (windows_create_inferior, windows_mourn_inferior)
6201         (windows_kill_inferior): All callers of windows_continue changed
6202         to adjust to its new calling sequence.
6203
6204 2014-04-19  Yao Qi  <yao@codesourcery.com>
6205
6206         * ctf.c (ctf_open): Call post_create_inferior.
6207
6208 2014-04-19  Yao Qi  <yao@codesourcery.com>
6209
6210         * ctf.c (handle_id): New static variable.
6211         (ctf_open_dir): Get handle_id from bt_context_add_trace return
6212         value.  Get the declaration of event "register" and get length
6213         of field "contents".
6214
6215 2014-04-19  Yao Qi  <yao@codesourcery.com>
6216
6217         * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
6218
6219 2014-04-18  Siva Chandra Reddy  <sivachandra@google.com>
6220
6221         * valops.c (oload_method_static): Remove unnecessary argument
6222         METHOD.  Update all callers.
6223
6224 2014-04-18  Pedro alves  <palves@redhat.com>
6225             Tom Tromey  <tromey@redhat.com>
6226
6227         PR backtrace/15558
6228         * frame.c (get_prev_frame_1): Rename to ...
6229         (get_prev_frame_always): ... this, and make extern.  Adjust.
6230         (skip_artificial_frames): Use get_prev_frame_always.
6231         (frame_unwind_caller_id, frame_pop, get_prev_frame)
6232         (get_frame_unwind_stop_reason): Adjust to rename.
6233         * frame.h (get_prev_frame_always): Declare.
6234         * inline-frame.c: Include frame.h.
6235         (inline_frame_this_id): Use get_prev_frame_always.
6236
6237 2014-04-18  Tristan Gingold  <gingold@adacore.com>
6238
6239         * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
6240         code by using bfd_mach_o_get_base_address.
6241
6242 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6243
6244         * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
6245         (spu_ax_pseudo_register_collect): New function.
6246         (spu_ax_pseudo_register_push_stack): Likewise.
6247         (spu_dwarf_reg_to_regnum): Likewise.
6248         (spu_gdbarch_init): Install them.  Append DWARF unwinders.
6249
6250 2014-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6251
6252         * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6253         Replace FRAME argument with FRAME_ID.
6254         * gdbarch.c, gdbarch.h: Regenerate.
6255         * findvar.c (default_value_from_register): Add GDBARCH argument;
6256         replace FRAME by FRAME_ID.  No longer call get_frame_id.
6257         (value_from_register): Update call to gdbarch_value_from_register.
6258         * value.h (default_value_from_register): Update prototype.
6259         * s390-linux-tdep.c (s390_value_from_register): Update interface
6260         and call to default_value_from_register.
6261         * spu-tdep.c (spu_value_from_register): Likewise.
6262
6263         * findvar.c (address_from_register): Remove TYPE argument.
6264         Do not call value_from_register; use gdbarch_value_from_register
6265         with null_frame_id instead.
6266         * value.h (address_from_register): Update prototype.
6267         * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6268         * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6269         address_from_register interface change.
6270
6271 2014-04-17  Yao Qi  <yao@codesourcery.com>
6272
6273         * gdbtypes.h: Update comments to link to types and macros'
6274         definitions.
6275
6276 2014-04-16  Siva Chandra Reddy  <sivachandra@google.com>
6277
6278         * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6279
6280 2014-04-16  Keith Seitz  <keiths@redhat.com>
6281
6282         PR gdb/15827
6283         * dwarf2read.c (skip_one_die): Check that all relative-offset
6284         sibling DIEs fall within range of the current reader's buffer.
6285         (read_partial_die): Likewise.
6286
6287 2014-04-16  Keith Seitz  <keiths@redhat.com>
6288
6289         PR c++/16597
6290         * cp-namespace.c (lookup_symbol_file): If the type name of
6291         `this' is NULL, return immediately.
6292
6293 2014-04-14  Keith Seitz  <keiths@redhat.com>
6294
6295         PR c++/16253
6296         * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6297         from symbol_matches_domain in symtab.c. All local callers
6298         of symbol_matches_domain updated.
6299         (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6300         search STRUCT_DOMAIN.
6301         (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6302         independently.  standard_lookup will do that automatically.
6303         * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6304         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6305         (cp_lookup_symbol_in_namespace): Likewise.
6306         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6307         (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6308         may return a STRUCT_DOMAIN match.
6309         (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6310         * cp-support.c: Include language.h.
6311         (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6312         VAR_DOMAIN.
6313         * psymtab.c (match_partial_symbol): Compare the requested
6314         domain with the symbol's domain directly.
6315         (lookup_partial_symbol): Likewise.
6316         * symtab.c (lookup_symbol_in_language): Explain when/why
6317         VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6318         If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6319         appropriate languages.
6320         (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6321         and moved to ada-lang.c
6322         (lookup_block_symbol): Explain that this function only returns
6323         symbol matching the requested DOMAIN.
6324         Compare the requested domain with the symbol's domain directly.
6325         (iterate_over_symbols): Compare the requested domain with the
6326         symbol's domain directly.
6327         * symtab.h (symbol_matches_domain): Remove.
6328
6329 2014-04-14  Tom Tromey  <tromey@redhat.com>
6330
6331         PR c++/15246:
6332         * c-exp.y (type_aggregate_p): New function.
6333         (qualified_name, classify_inner_name): Use it.
6334         * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6335         and TYPE_TARGET_TYPE of an enum type.
6336         * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6337         an enum type.
6338         (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6339         handle TYPE_DECLARED_CLASS.
6340         * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6341         types.
6342         * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6343         * valops.c (enum_constant_from_type): New function.
6344         (value_aggregate_elt): Use it.
6345         * cp-namespace.c (cp_lookup_nested_symbol): Handle
6346         TYPE_CODE_ENUM.
6347
6348 2014-04-14  Tom Tromey  <tromey@redhat.com>
6349
6350         * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6351         (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6352         const.
6353         * value.h (value_aggregate_elt): Update.
6354
6355 2014-04-14  Tom Tromey  <tromey@redhat.com>
6356
6357         * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6358
6359 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6360
6361         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6362         (evaluate_subexp_standard): Pass noside argument.
6363         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6364         if noside equals EVAL_NORMAL. If the subscript yields a vla type
6365         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6366         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6367         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6368
6369 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6370
6371         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6372         points to a constant blob.
6373
6374 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6375
6376         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6377         property and store it as the high bound and flag the range accordingly.
6378         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6379         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6380         * gdbtypes.h (enum range_flags): New enum.
6381         (struct range_bounds): Add flags member.
6382
6383 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6384
6385         * c-typeprint.c (c_type_print_varspec_suffix): Added
6386         check for not yet resolved high bound. If unresolved, print
6387         "variable length" string to the console instead of random
6388         length.
6389
6390 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6391
6392         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6393         value.
6394         (ada_template_to_fixed_record_type_1): Likewise.
6395         (ada_to_fixed_type_1): Likewise.
6396         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6397         (cp_print_value): Likewise.
6398         * d-valprint.c (dynamic_array_type): Likewise.
6399         * findvar.c (address_of_variable): Likewise.
6400         * jv-valprint.c (java_value_print): Likewise.
6401         * valops.c (value_ind): Likewise.
6402         * value.c (coerce_ref): Likewise.
6403
6404 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6405
6406         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6407         value and retrieve the dynamic type size.
6408
6409 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6410
6411         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6412         passed to sizeof is dynamic evaluate the argument to compute the length.
6413
6414 2014-04-14  Sanimir Agovic  <sanimir.agovic@intel.com>
6415             Joel Brobecker  <brobecker@adacore.com>
6416
6417         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6418         (dwarf2_evaluate_property): New function.
6419         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6420         * dwarf2read.c (attr_to_dynamic_prop): New function.
6421         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6422         attribute.
6423         * gdbtypes.c: Include dwarf2loc.h.
6424         (is_dynamic_type): New function.
6425         (resolve_dynamic_type): New function.
6426         (resolve_dynamic_bounds): New function.
6427         (get_type_length): New function.
6428         (check_typedef): Use get_type_length to compute type length.
6429         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6430         (TYPE_LOW_BOUND_KIND): New macro.
6431         (is_dynamic_type): New function prototype.
6432         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6433         to resolve dynamic properties of the type. Update comment.
6434         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6435
6436 2014-04-14  Richard Henderson  <rth@redhat.com>
6437
6438         * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6439
6440 2014-04-12  Siva Chandra Reddy  <sivachandra@google.com>
6441             Doug Evans  <xdje42@gmail.com>
6442
6443         * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6444         dereference TYPE_CODE_REF values.
6445
6446 2014-04-11  Joel Brobecker  <brobecker@adacore.com>
6447
6448         Revert the following changes due to regressions:
6449
6450         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6451         (dwarf2_evaluate_property): New function.
6452         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6453         * dwarf2read.c (attr_to_dynamic_prop): New function.
6454         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6455         attribute.
6456         * gdbtypes.c: Include dwarf2loc.h.
6457         (is_dynamic_type): New function.
6458         (resolve_dynamic_type): New function.
6459         (resolve_dynamic_bounds): New function.
6460         (get_type_length): New function.
6461         (check_typedef): Use get_type_length to compute type length.
6462         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6463         (TYPE_LOW_BOUND_KIND): New macro.
6464         (is_dynamic_type): New function prototype.
6465         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6466         to resolve dynamic properties of the type. Update comment.
6467         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6468
6469         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6470         passed to sizeof is dynamic evaluate the argument to compute the length.
6471
6472         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6473         value and retrieve the dynamic type size.
6474
6475         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6476         (ada_template_to_fixed_record_type_1): Likewise.
6477         (ada_to_fixed_type_1): Likewise.
6478         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6479         (cp_print_value): Likewise.
6480         * d-valprint.c (dynamic_array_type): Likewise.
6481         * eval.c (evaluate_subexp_with_coercion): Likewise.
6482         * findvar.c (address_of_variable): Likewise.
6483         * jv-valprint.c (java_value_print): Likewise.
6484         * valops.c (value_ind): Likewise.
6485         * value.c (coerce_ref): Likewise.
6486
6487         * c-typeprint.c (c_type_print_varspec_suffix): Added
6488         check for not yet resolved high bound. If unresolved, print
6489         "variable length" string to the console instead of random
6490         length.
6491
6492         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6493         property and store it as the high bound and flag the range accordingly.
6494         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6495         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6496         * gdbtypes.h (enum range_flags): New enum.
6497         (struct range_bounds): Add flags member.
6498
6499         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6500         points to a constant blob.
6501
6502         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6503         (evaluate_subexp_standard): Pass noside argument.
6504         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6505         if noside equals EVAL_NORMAL. If the subscript yields a vla type
6506         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6507         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6508         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6509
6510 2014-04-11  Keith Seitz  <keiths@redhat.com>
6511
6512         PR c++/16675
6513         * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6514         * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6515         reference types.
6516
6517 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6518
6519         * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6520         (evaluate_subexp_standard): Pass noside argument.
6521         (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6522         if noside equals EVAL_NORMAL. If the subscript yields a vla type
6523         re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6524         * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6525         * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6526
6527 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6528
6529         * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6530         points to a constant blob.
6531
6532 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6533
6534         * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6535         property and store it as the high bound and flag the range accordingly.
6536         * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6537         RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6538         * gdbtypes.h (enum range_flags): New enum.
6539         (struct range_bounds): Add flags member.
6540
6541 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6542
6543         * c-typeprint.c (c_type_print_varspec_suffix): Added
6544         check for not yet resolved high bound. If unresolved, print
6545         "variable length" string to the console instead of random
6546         length.
6547
6548 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6549
6550         * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6551         (ada_template_to_fixed_record_type_1): Likewise.
6552         (ada_to_fixed_type_1): Likewise.
6553         * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6554         (cp_print_value): Likewise.
6555         * d-valprint.c (dynamic_array_type): Likewise.
6556         * eval.c (evaluate_subexp_with_coercion): Likewise.
6557         * findvar.c (address_of_variable): Likewise.
6558         * jv-valprint.c (java_value_print): Likewise.
6559         * valops.c (value_ind): Likewise.
6560         * value.c (coerce_ref): Likewise.
6561
6562 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6563
6564         * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6565         value and retrieve the dynamic type size.
6566
6567 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6568
6569         * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6570         passed to sizeof is dynamic evaluate the argument to compute the length.
6571
6572 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6573
6574         * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6575         (dwarf2_evaluate_property): New function.
6576         * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6577         * dwarf2read.c (attr_to_dynamic_prop): New function.
6578         (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6579         attribute.
6580         * gdbtypes.c: Include dwarf2loc.h.
6581         (is_dynamic_type): New function.
6582         (resolve_dynamic_type): New function.
6583         (resolve_dynamic_bounds): New function.
6584         (get_type_length): New function.
6585         (check_typedef): Use get_type_length to compute type length.
6586         * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6587         (TYPE_LOW_BOUND_KIND): New macro.
6588         (is_dynamic_type): New function prototype.
6589         * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6590         to resolve dynamic properties of the type. Update comment.
6591         * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6592
6593 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6594
6595         * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6596         declaring high/low bounds and change uses accordingly. Call
6597         create_range_type instead of create_static_range_type.
6598         * gdbtypes.c (create_range_type): New function.
6599         (create_range_type): Convert bounds into struct bound_prop and pass
6600         them to create_range_type.
6601         * gdbtypes.h (struct bound_prop): New struct.
6602         (create_range_type): New function prototype.
6603         (struct range_bounds): Use struct bound_prop instead of LONGEST for
6604         high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6605         (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6606         part of the bound.
6607         * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6608
6609 2014-04-11  Sanimir Agovic  <sanimir.agovic@intel.com>
6610
6611         * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6612         * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6613         * ada-lang.c: All uses of create_range_type updated.
6614         * coffread.c: All uses of create_range_type updated.
6615         * dwarf2read.c: All uses of create_range_type updated.
6616         * f-exp.y: All uses of create_range_type updated.
6617         * m2-valprint.c: All uses of create_range_type updated.
6618         * mdebugread.c: All uses of create_range_type updated.
6619         * stabsread.c: All uses of create_range_type updated.
6620         * valops.c: All uses of create_range_type updated.
6621         * valprint.c: All uses of create_range_type updated.
6622
6623 2014-04-10  Pedro Alves  <palves@redhat.com>
6624
6625         * breakpoint.c (single_step_breakpoints)
6626         (single_step_gdbarch): Move up in the file.
6627         (one_breakpoint_xfer_memory): New function, factored out from ...
6628         (breakpoint_xfer_memory): ... here.  Also process single-step
6629         breakpoints.
6630
6631 2014-04-09  Tristan Gingold  <gingold@adacore.com>
6632
6633         * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6634         comments.
6635         (darwin_decode_exception_message): Free port only after use.
6636
6637 2014-04-08  Pierre Langlois  <pierre.langlois@embecosm.com>
6638
6639         * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6640         (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6641         when setting the size of call_length.
6642
6643 2014-04-07  Siva Chandra Reddy  <sivachandra@google.com>
6644
6645         * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6646         dereference TYPE_CODE_REF values.
6647
6648 2014-04-07  Joel Brobecker  <brobecker@adacore.com>
6649
6650         * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6651         end of warning message.
6652
6653 2014-04-03  Doug Evans  <dje@google.com>
6654
6655         * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6656         of stub_comp_unit_die, stub_comp_dir is non-NULL.
6657
6658 2014-04-02  Alan Modra  <amodra@gmail.com>
6659
6660         * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6661         Pass to bfd_elf_bfd_from_remote_memory.  Adjust all callers.
6662         (struct symbol_file_add_from_memory_args): Add size field.
6663         (find_vdso_size): New function.
6664         (add_vsyscall_page): Attempt to find vdso size.
6665
6666 2014-04-01  Doug Evans  <dje@google.com>
6667
6668         * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6669
6670 2014-04-01  Tristan Gingold  <gingold@adacore.com>
6671
6672         * darwin-nat.c (darwin_encode_reply): Add prototype.
6673         (darwin_decode_exception_message): Reply to unknown inferiors.
6674         (darwin_decode_message): Handle message by id.  Ignore message
6675         to unknown inferior.
6676         (darwin_wait): Discard unknown messages, add debug trace.
6677
6678 2014-03-31  Doug Evans  <dje@google.com>
6679
6680         * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6681         comp_dir_string.
6682
6683 2014-03-31  Doug Evans  <dje@google.com>
6684
6685         New option "set print symbol-loading".
6686         * NEWS: Mention it.
6687         * solib.c (solib_read_symbols): Only print symbol loading messages
6688         if requested.
6689         (solib_add): If symbol loading is in "brief" mode, notify user
6690         symbols are being loaded.
6691         (reload_shared_libraries_1): Ditto.
6692         * symfile.c (print_symbol_loading_off): New static global.
6693         (print_symbol_loading_brief): New static global.
6694         (print_symbol_loading_full): New static global.
6695         (print_symbol_loading_enums): New static global.
6696         (print_symbol_loading): New static global.
6697         (print_symbol_loading_p): New function.
6698         (symbol_file_add_with_addrs): Only print symbol loading messages
6699         if requested.
6700         (_initialize_symfile): Register "print symbol-loading" set/show
6701         command.
6702         * symfile.h (print_symbol_loading_p): Declare.
6703
6704 2014-03-30  Doug Evans  <xdje42@gmail.com>
6705
6706         * infrun.c (set_last_target_status): New function.
6707         (handle_inferior_event): Call it.
6708
6709 2014-03-30  Doug Evans  <xdje42@gmail.com>
6710
6711         * inferior.h (enum stop_kind): Improve comment.
6712
6713 2014-03-28  Joel Brobecker  <brobecker@adacore.com>
6714
6715         * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6716         a reference, strip the reference layer before calling
6717         the lang_ops value_has_mutated callback.
6718
6719 2014-03-27  Sergio Durigan Junior  <sergiodj@redhat.com>
6720
6721         Remove some globals from our parser.
6722         * language.c (unk_lang_parser): Add "struct parser_state"
6723         argument.
6724         * language.h (struct language_defn) <la_parser>: Likewise.
6725         * parse.c (expout, expout_size, expout_ptr): Remove variables.
6726         (initialize_expout): Add "struct parser_state" argument.
6727         Rewrite function to use the parser state.
6728         (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6729         write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6730         write_exp_elt_longcst, write_exp_elt_dblcst,
6731         write_exp_elt_decfloatcst, write_exp_elt_type,
6732         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6733         write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6734         write_dollar_variable): Likewise.
6735         (parse_exp_in_context_1): Use parser state.
6736         (insert_type_address_space): Add "struct parser_state" argument.
6737         Use parser state.
6738         (increase_expout_size): New function.
6739         * parser-defs.h: Forward declare "struct language_defn" and
6740         "struct parser_state".
6741         (expout, expout_size, expout_ptr): Remove extern declarations.
6742         (parse_gdbarch, parse_language): Rewrite macro declarations to
6743         accept the parser state.
6744         (struct parser_state): New struct.
6745         (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6746         write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6747         write_exp_elt_decfloatcst, write_exp_elt_type,
6748         write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6749         write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6750         write_exp_msymbol, write_dollar_variable,
6751         mark_struct_expression, insert_type_address_space): Add "struct
6752         parser_state" argument.
6753         (increase_expout_size): New function.
6754         * utils.c (do_clear_parser_state): New function.
6755         (make_cleanup_clear_parser_state): Likewise.
6756         * utils.h (make_cleanup_clear_parser_state): New function
6757         prototype.
6758         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6759         Update calls to write_exp* in order to pass the parser state.
6760         * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6761         * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6762         (i386_stap_parse_special_token_three_arg_disp): Likewise.
6763         * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6764         * stap-probe.c (stap_parse_register_operand): Likewise.
6765         (stap_parse_single_operand): Likewise.
6766         (stap_parse_argument_1): Likewise.
6767         (stap_parse_argument): Use parser state.
6768         * stap-probe.h: Include "parser-defs.h".
6769         (struct stap_parse_info) <pstate>: New field.
6770         * c-exp.y (parse_type): Rewrite to use parser state.
6771         (yyparse): Redefine to c_parse_internal.
6772         (pstate): New global variable.
6773         (parse_number): Add "struct parser_state" argument.
6774         (write_destructor_name): Likewise.
6775         (type_exp): Update calls to write_exp* and similars in order to
6776         use parser state.
6777         (exp1, exp, variable, qualified_name, space_identifier,
6778         typename, typebase): Likewise.
6779         (write_destructor_name, parse_number, lex_one_token,
6780         classify_name, classify_inner_name, c_parse): Add "struct
6781         parser_state" argument.  Update function to use parser state.
6782         * c-lang.h: Forward declare "struct parser_state".
6783         (c_parse): Add "struct parser_state" argument.
6784         * ada-exp.y (parse_type): Rewrite macro to use parser state.
6785         (yyparse): Redefine macro to ada_parse_internal.
6786         (pstate): New variable.
6787         (write_int, write_object_renaming, write_var_or_type,
6788         write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6789         type_int, type_long, type_long_long, type_float, type_double,
6790         type_long_double, type_char, type_boolean, type_system_address):
6791         Add "struct parser_state" argument.
6792         (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6793         or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6794         var_or_type, aggregate, aggregate_component_list,
6795         positional_list, others, component_group,
6796         component_associations): Update calls to write_exp* and similar
6797         functions in order to use parser state.
6798         (ada_parse, write_var_from_sym, write_int,
6799         write_exp_op_with_string, write_object_renaming,
6800         find_primitive_type, write_selectors, write_ambiguous_var,
6801         write_var_or_type, write_name_assoc, type_int, type_long,
6802         type_long_long, type_float, type_double, type_long_double,
6803         type_char, type_boolean, type_system_address): Add "struct
6804         parser_state" argument.  Adjust function to use parser state.
6805         * ada-lang.c (parse): Likewise.
6806         * ada-lang.h: Forward declare "struct parser_state".
6807         (ada_parse): Add "struct parser_state" argument.
6808         * ada-lex.l (processInt, processReal): Likewise.  Adjust all
6809         calls to both functions.
6810         * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6811         parser state.
6812         (yyparse): Redefine macro to f_parse_internal.
6813         (pstate): New variable.
6814         (parse_number): Add "struct parser_state" argument.
6815         (type_exp, exp, subrange, typebase): Update calls to write_exp*
6816         and similars in order to use parser state.
6817         (parse_number): Adjust code to use parser state.
6818         (yylex): Likewise.
6819         (f_parse): New function.
6820         * f-lang.h: Forward declare "struct parser_state".
6821         (f_parse): Add "struct parser_state" argument.
6822         * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6823         parser state.
6824         (yyparse): Redefine macro for java_parse_internal.
6825         (pstate): New variable.
6826         (push_expression_name, push_expression_name, insert_exp): Add
6827         "struct parser_state" argument.
6828         (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6829         FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6830         FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6831         PostIncrementExpression, PostDecrementExpression,
6832         UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6833         UnaryExpressionNotPlusMinus, CastExpression,
6834         MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6835         RelationalExpression, EqualityExpression, AndExpression,
6836         ExclusiveOrExpression, InclusiveOrExpression,
6837         ConditionalAndExpression, ConditionalOrExpression,
6838         ConditionalExpression, Assignment, LeftHandSide): Update
6839         calls to write_exp* and similars in order to use parser state.
6840         (parse_number): Ajust code to use parser state.
6841         (yylex): Likewise.
6842         (java_parse): New function.
6843         (push_variable): Add "struct parser_state" argument.  Adjust
6844         code to user parser state.
6845         (push_fieldnames, push_qualified_expression_name,
6846         push_expression_name, insert_exp): Likewise.
6847         * jv-lang.h: Forward declare "struct parser_state".
6848         (java_parse): Add "struct parser_state" argument.
6849         * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6850         parser state.
6851         (yyparse): Redefine macro to m2_parse_internal.
6852         (pstate): New variable.
6853         (type_exp, exp, fblock, variable, type): Update calls to
6854         write_exp* and similars to use parser state.
6855         (yylex): Likewise.
6856         (m2_parse): New function.
6857         * m2-lang.h: Forward declare "struct parser_state".
6858         (m2_parse): Add "struct parser_state" argument.
6859         * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6860         * objc-lang.h: Forward declare "struct parser_state".
6861         (end_msglist): Add "struct parser_state" argument.
6862         * p-exp.y (parse_type): Rewrite macro to use parser state.
6863         (yyparse): Redefine macro to pascal_parse_internal.
6864         (pstate): New variable.
6865         (parse_number): Add "struct parser_state" argument.
6866         (type_exp, exp1, exp, qualified_name, variable): Update calls to
6867         write_exp* and similars in order to use parser state.
6868         (parse_number, yylex): Adjust code to use parser state.
6869         (pascal_parse): New function.
6870         * p-lang.h: Forward declare "struct parser_state".
6871         (pascal_parse): Add "struct parser_state" argument.
6872         * go-exp.y (parse_type): Rewrite macro to use parser state.
6873         (yyparse): Redefine macro to go_parse_internal.
6874         (pstate): New variable.
6875         (parse_number): Add "struct parser_state" argument.
6876         (type_exp, exp1, exp, variable, type): Update calls to
6877         write_exp* and similars in order to use parser state.
6878         (parse_number, lex_one_token, classify_name, yylex): Adjust code
6879         to use parser state.
6880         (go_parse): Likewise.
6881         * go-lang.h: Forward declare "struct parser_state".
6882         (go_parse): Add "struct parser_state" argument.
6883
6884 2014-03-27  Doug Evans  <dje@google.com>
6885
6886         * dwarf2read.c (read_str_index): Delete arg cu.  All callers updated.
6887
6888 2014-03-27  Doug Evans  <dje@google.com>
6889
6890         * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6891         Remove argument abbrev_section.  All callers updated.
6892
6893 2014-03-27  Doug Evans  <dje@google.com>
6894
6895         * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6896         addr_base, ranges_base.
6897
6898 2014-03-26  Keith Seitz  <keiths@redhat.com>
6899
6900         * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6901         types, not VAR_DOMAIN.
6902
6903 2014-03-25  Sandra Loosemore  <sandra@codesourcery.com>
6904
6905         * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6906         "ra" registers.
6907         * features/nios2-linux.c: Regenerated.
6908         * features/nios2.c: Regenerated.
6909
6910 2014-03-25  Pedro Alves  <palves@redhat.com>
6911
6912         * cli/cli-script.c (script_from_file): Force the interpreter to
6913         sync mode.
6914
6915 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
6916
6917         * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6918         small stack allocation.
6919
6920 2014-03-24  Tristan Gingold  <gingold@adacore.com>
6921
6922         * darwin-nat.c (exc_server): Remove unused prototype.
6923         (darwin_dump_message): Correctly display data on x86_64.
6924         (darwin_encode_reply): Fix style.
6925         Add comments and fix indentation.
6926
6927 2014-03-24  Pierre Langlois  <pierre.langlois@embecosm.com>
6928
6929         * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6930
6931 2014-03-22  Doug Evans  <xdje42@gmail.com>
6932
6933         * infcmd.c: Whitespace fixes.
6934         (interrupt_command): Merge two function comments into one.
6935
6936 2014-03-22  Doug Evans  <xdje42@gmail.com>
6937
6938         * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6939         All uses updated.
6940
6941 2014-03-22  Yao Qi  <yao@codesourcery.com>
6942
6943         * remote.c (target_read_live_memory): Remove.
6944         (memory_xfer_live_readonly_partial): Rename it to
6945         remote_xfer_live_readonly_partial.  Remove argument 'object'.
6946         All callers updated.  Call remote_read_bytes_1
6947         instead of target_read_live_memory.
6948         * tracepoint.c (set_traceframe_number): Remove.
6949         (make_cleanup_restore_traceframe_number): Likewise .
6950         * tracepoint.h (set_traceframe_number): Remove declaration.
6951         (make_cleanup_restore_traceframe_number): Likewise.
6952
6953 2014-03-22  Yao Qi  <yao@codesourcery.com>
6954
6955         * remote.c (remote_read_bytes): Move code on reading from the
6956         remote stub to ...
6957         (remote_read_bytes_1): ... here.  New function.
6958
6959 2014-03-22  Yao Qi  <yao@codesourcery.com>
6960
6961         * ctf.c (ctf_xfer_partial): Check the return value of
6962         exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6963         return TARGET_XFER_UNAVAILABLE.
6964         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6965         * target.c (target_read_live_memory): Move it to remote.c.
6966         (memory_xfer_live_readonly_partial): Likewise.
6967         (memory_xfer_partial_1): Move some code to remote_read_bytes.
6968         * remote.c (target_read_live_memory): Moved from target.c.
6969         (memory_xfer_live_readonly_partial): Likewise.
6970         (remote_read_bytes): Factored out from
6971         memory_xfer_partial_1.
6972
6973 2014-03-21  Daniel Gutson  <daniel.gutson@tallertechnologies.com>
6974
6975         * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6976         NULL pointer.
6977
6978 2014-03-21  Pedro Alves  <palves@redhat.com>
6979
6980         * infrun.c (normal_stop): Extend comment.
6981
6982 2014-03-21  Hui Zhu  <hui@codesourcery.com>
6983             Pedro Alves  <palves@redhat.com>
6984
6985         * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6986         static buffer.
6987         * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6988         * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6989         * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6990
6991 2014-03-20  Maciej W. Rozycki  <macro@codesourcery.com>
6992
6993         * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6994         `z' formatted output modifier.
6995
6996 2014-03-20  Tom Tromey  <tromey@redhat.com>
6997             Sergio Durigan Junior  <sergiodj@redhat.com>
6998
6999         * probe.c (parse_probes): Turn assert into an ordinary error.
7000         * break-catch-throw.c (re_set_exception_catchpoint): Ignore
7001         exceptions when parsing probes.  Rearrange the code for clarity.
7002
7003 2014-03-20  Tom Tromey  <tromey@redhat.com>
7004
7005         PR gdb/14135
7006         * top.c (execute_command): Only dispatch events if the command
7007         started the target.
7008
7009 2014-03-20  Tom Tromey  <tromey@redhat.com>
7010
7011         PR cli/15718
7012         * infcall.c: Include event-top.h.
7013         (run_inferior_call): Call async_disable_stdin if needed.
7014
7015 2014-03-20  Pedro Alves  <palves@redhat.com>
7016
7017         * infrun.c (prepare_to_proceed): Delete.
7018         (thread_still_needs_step_over): New function.
7019         (find_thread_needs_step_over): New function.
7020         (proceed): If the current thread needs a step-over, set its
7021         steping_over_breakpoint flag.  Adjust to use
7022         find_thread_needs_step_over instead of prepare_to_proceed.
7023         (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
7024         BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
7025         breakpoint.
7026         (switch_back_to_stepped_thread): Step over breakpoints of all
7027         threads not the stepping thread, before switching back to the
7028         stepping thread.
7029
7030 2014-03-20  Pedro Alves  <palves@redhat.com>
7031
7032         * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
7033         extern.
7034         * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
7035         * infrun.c (saved_singlestep_ptid)
7036         (stepping_past_singlestep_breakpoint): Delete.
7037         (resume): Remove stepping_past_singlestep_breakpoint handling.
7038         (proceed): Store the prev_pc of the stepping thread too.
7039         (init_wait_for_inferior): Adjust.  Clear singlestep_ptid and
7040         singlestep_pc.
7041         (enum infwait_states): Delete infwait_thread_hop_state.
7042         (struct execution_control_state) <hit_singlestep_breakpoint>: New
7043         field.
7044         (handle_inferior_event): Adjust.
7045         (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
7046         handling and the thread-hop code.  Before removing single-step
7047         breakpoints, check whether the thread hit a single-step breakpoint
7048         of another thread.  If it did, the trap is not a random signal.
7049         (switch_back_to_stepped_thread): If the event thread hit a
7050         single-step breakpoint, unblock it before switching to the
7051         stepping thread.  Handle the case of the stepped thread having
7052         advanced already.
7053         (keep_going): Handle the case of the current thread moving past a
7054         single-step breakpoint.
7055
7056 2014-03-20  Pedro Alves  <palves@redhat.com>
7057
7058         PR breakpoints/7143
7059         * breakpoint.c (should_be_inserted): Don't insert breakpoints that
7060         are being stepped over.
7061         (breakpoint_address_match): Make extern.
7062         * breakpoint.h (breakpoint_address_match): New declaration.
7063         * inferior.h (stepping_past_instruction_at): New declaration.
7064         * infrun.c (struct step_over_info): New type.
7065         (step_over_info): New global.
7066         (set_step_over_info, clear_step_over_info)
7067         (stepping_past_instruction_at): New functions.
7068         (handle_inferior_event): Clear the step-over info when
7069         trap_expected is cleared.
7070         (resume): Remove now stale comment.
7071         (clear_proceed_status): Clear step-over info.
7072         (proceed): Adjust step-over handling to set or clear the step-over
7073         info instead of removing all breakpoints.
7074         (handle_signal_stop): When setting up a thread-hop, don't remove
7075         breakpoints here.
7076         (stop_stepping): Clear step-over info.
7077         (keep_going): Adjust step-over handling to set or clear step-over
7078         info and then always inserting breakpoints, instead of removing
7079         all breakpoints when stepping over one.
7080
7081 2014-03-20  Pedro Alves  <palves@redhat.com>
7082
7083         * infrun.c (previous_inferior_ptid): Adjust comment.
7084         (deferred_step_ptid): Delete.
7085         (infrun_thread_ptid_changed, prepare_to_proceed)
7086         (init_wait_for_inferior): Adjust.
7087         (handle_signal_stop): Delete deferred_step_ptid handling.
7088
7089 2014-03-18  Jan Kratochvil  <jan.kratochvil@redhat.com>
7090
7091         PR gdb/15358
7092         * defs.h (sync_quit_force_run): New declaration.
7093         (QUIT): Check also SYNC_QUIT_FORCE_RUN.
7094         * event-top.c (async_sigterm_handler): New declaration.
7095         (async_sigterm_token): New variable.
7096         (async_init_signals): Create also async_sigterm_token.
7097         (async_sigterm_handler): New function.
7098         (sync_quit_force_run): New variable.
7099         (handle_sigterm): Replace quit_force call by other calls.
7100         * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
7101
7102 2014-03-18  Maciej W. Rozycki  <macro@codesourcery.com>
7103
7104         * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
7105         offset into SPE pseudo registers.
7106
7107 2014-03-18  Pedro Alves  <palves@redhat.com>
7108
7109         PR gdb/13860
7110         * inferior.h (print_stop_event): Declare.
7111         * infrun.c (print_stop_event): New, factored out from ...
7112         (normal_stop): ... this.
7113         * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
7114         of bpstat_print/print_stack_frame.
7115
7116 2014-03-17  Tom Tromey  <tromey@redhat.com>
7117
7118         * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
7119
7120 2014-03-17  Pierre-Marie de Rodat  <derodat@adacore.com>
7121
7122         * ada-lang.c (decode_constrained_packed_array): Perform a
7123         minimal coercion for reference with coerce_ref instead of
7124         ada_coerce_ref.
7125
7126 2014-03-17  Tristan Gingold  <gingold@adacore.com>
7127
7128         * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
7129         (darwin_solib_create_inferior_hook): Emit a warning if version
7130         is unhandled.
7131
7132 2014-03-16  Ulrich Weigand  <uweigand@de.ibm.com>
7133
7134         * python/py-value.c (get_field_flag): Cast flag_name argument to
7135         PyObject_GetAttrString to support Python 2.4.
7136
7137 2014-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
7138
7139         * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
7140         (Global Maintainers): Remove Jan Kratochvil.
7141
7142 2014-03-14  Pedro Alves  <palves@redhat.com>
7143
7144         * inferior.h (terminal_ours_for_output): Rename to ...
7145         (child_terminal_ours_for_output): ... this.
7146         (terminal_save_ours): Rename to ...
7147         (child_terminal_save_ours): ... this.
7148         (terminal_ours): Rename to ...
7149         (child_terminal_ours): ... this.
7150         (terminal_inferior): Rename to ...
7151         (child_terminal_inferior): ... this.
7152         (terminal_init_inferior): Rename to ...
7153         (child_terminal_init_inferior): ... this.
7154         (terminal_init_inferior_with_pgrp): Rename to ...
7155         (child_terminal_init_inferior_with_pgrp): ... this.
7156         * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
7157         (child_terminal_init_with_pgrp): ... this.
7158         (terminal_save_ours): Rename to ...
7159         (child_terminal_save_ours): ... this.
7160         (terminal_init_inferior): Rename to ...
7161         (child_terminal_init): ... this.  Adjust.
7162         (terminal_inferior): Rename to ...
7163         (child_terminal_inferior): ... this.
7164         (terminal_ours_for_output): Rename to ...
7165         (child_terminal_ours_for_output): ... this.  Adjust.
7166         (terminal_ours): Rename to ...
7167         (child_terminal_ours): ... this.
7168         (terminal_ours_1): Rename to ...
7169         (child_terminal_ours_1): ... this.  Adjust.
7170         * linux-nat.c (linux_nat_terminal_inferior): Adjust.
7171         * windows-nat.c (do_initial_windows_stuff): Adjust.
7172         * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
7173         (gnu_terminal_init): ... this.  Adjust.
7174         (gnu_target): Adjust.
7175         * inf-child.c (inf_child_target): Adjust.
7176
7177 2014-03-13  Doug Evans  <xdje42@gmail.com>
7178
7179         PR guile/16612
7180         * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
7181         new eq?-hashtab.
7182
7183 2014-03-13  Doug Evans  <xdje42@gmail.com>
7184
7185         * value.c (record_latest_value): Call release_value_or_incref
7186         instead of release_value.
7187
7188 2014-03-13  Pedro Alves  <palves@redhat.com>
7189
7190         * procfs.c (procfs_target): Don't override to_shortname,
7191         to_longname or to_doc.
7192
7193 2014-03-13  Pedro Alves  <palves@redhat.com>
7194
7195         * inf-child.c (inf_child_open, inf_child_target): Don't mention
7196         Unix in user visible strings.
7197
7198 2014-03-12  Stan Shebs  <stan@codesourcery.com>
7199
7200         * gdbtypes.h: Annotate comments for Doxygen, add a page
7201         block comment with some general info.
7202
7203 2014-03-12  Pedro Alves  <palves@redhat.com>
7204
7205         * infcmd.c (prepare_execution_command): New function, factored out
7206         from several execution commands.
7207         (run_command_1, continue_command, step_1, jump_command)
7208         (signal_command, until_command, advance_command, finish_command)
7209         (attach_command): Use prepare_execution_command.
7210
7211 2014-03-12  Omair Javaid  <omair.javaid@linaro.org>
7212
7213         * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
7214         (MAX_BPTS): Define.
7215         (MAX_WPTS): Define.
7216         (struct arm_linux_thread_points): Removed.
7217         (struct arm_linux_process_info): New.
7218         (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
7219         (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
7220         (arm_linux_find_breakpoints_by_tid): Removed.
7221         (struct arch_lwp_info): New.
7222         (arm_linux_find_process_pid): New functions.
7223         (arm_linux_add_process): New functions.
7224         (arm_linux_process_info_get): New functions.
7225         (arm_linux_forget_process): New function.
7226         (arm_linux_get_debug_reg_state): New function.
7227         (struct update_registers_data): New.
7228         (update_registers_callback): New function.
7229         (arm_linux_insert_hw_breakpoint1): Updated.
7230         (arm_linux_remove_hw_breakpoint1): Updated.
7231         (arm_linux_insert_hw_breakpoint): Updated.
7232         (arm_linux_remove_hw_breakpoint): Updated.
7233         (arm_linux_insert_watchpoint): Updated.
7234         (arm_linux_remove_watchpoint): Updated.
7235         (arm_linux_new_thread): Updated.
7236         (arm_linux_prepare_to_resume): New function.
7237         (arm_linux_new_fork): New function.
7238         (_initialize_arm_linux_nat): Updated.
7239
7240 2014-03-12  Pedro Alves  <palves@redhat.com>
7241
7242         * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
7243
7244 2014-03-12  Tom Tromey  <tromey@redhat.com>
7245
7246         * inf-child.c (return_zero): New function.
7247         (inf_child_target): Set to_can_async_p, to_supports_non_stop.
7248         * aix-thread.c (aix_thread_inferior_created): New function.
7249         (aix_thread_attach): Remove.
7250         (init_aix_thread_ops): Don't set to_attach.
7251         (_initialize_aix_thread): Register inferior_created observer.
7252         * corelow.c (init_core_ops): Don't set to_attach or
7253         to_create_inferior.
7254         * exec.c (init_exec_ops): Don't set to_attach or
7255         to_create_inferior.
7256         * infcmd.c (run_command_1): Use find_run_target.  Make direct
7257         target calls.
7258         (attach_command): Use find_attach_target.  Make direct target
7259         calls.
7260         * record-btrace.c (init_record_btrace_ops): Don't set
7261         to_create_inferior.
7262         * record-full.c (record_full_can_async_p, record_full_is_async_p):
7263         Remove.
7264         (init_record_full_ops, init_record_full_core_ops): Update.  Don't
7265         set to_create_inferior.
7266         * target.c (complete_target_initialization): Add assertion.
7267         (target_create_inferior): Remove.
7268         (find_default_attach, find_default_create_inferior): Remove.
7269         (find_attach_target, find_run_target): New functions.
7270         (find_default_is_async_p, find_default_can_async_p)
7271         (target_supports_non_stop, target_attach): Remove.
7272         (init_dummy_target): Don't set to_create_inferior or
7273         to_supports_non_stop.
7274         * target.h (struct target_ops) <to_attach>: Add comment.  Remove
7275         TARGET_DEFAULT_FUNC.
7276         <to_create_inferior>: Add comment.
7277         <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7278         TARGET_DEFAULT_RETURN.
7279         <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7280         (find_attach_target, find_run_target): Declare.
7281         (target_create_inferior): Remove.
7282         (target_has_execution_1): Update comment.
7283         (target_supports_non_stop): Remove.
7284         * target-delegates.c: Rebuild.
7285
7286 2014-03-12  Pedro Alves  <palves@redhat.com>
7287
7288         * inf-child.h: Update comment to not mention Unix.
7289
7290 2014-03-12  Pedro Alves  <palves@redhat.com>
7291
7292         * inf-child.c: Update top comment to not mention Unix.  Add
7293         generic comment describing how this target is meant to be used.
7294         (inf_child_post_attach, inf_child_post_startup_inferior)
7295         (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7296         Unix in comment.
7297
7298 2014-03-12  Pedro Alves  <palves@redhat.com>
7299
7300         * nto-procfs.c: Include inf-child.h.
7301         (procfs_ops): Delete global.
7302         (procfs_can_run): Delete method.
7303         (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7304         target pointer instead of referencing procfs_ops.
7305         (procfs_prepare_to_store): Delete.
7306         (init_procfs_ops): Delete function.
7307         (procfs_target): New function, based on init_procfs_ops, but
7308         inherit inf_child_target.
7309         (_initialize_procfs): Use procfs_target.
7310
7311 2014-03-12  Pedro Alves  <palves@redhat.com>
7312
7313         * windows-nat.c: Include inf-child.h.
7314         (windows_ops): Delete global.
7315         (windows_open, windows_prepare_to_store, windows_can_run): Delete
7316         methods.
7317         (init_windows_ops): Delete function.
7318         (windows_target): New function, based on init_windows_ops, but
7319         inherit inf_child_target.
7320         (_initialize_windows_nat): Use windows_target.  Install x86
7321         specific target methods here.
7322
7323 2014-03-10  Doug Evans  <xdje42@gmail.com>
7324
7325         * guile/guile.c (call_initialize_gdb_module): New function.
7326         (initialize_guile): Replace call to scm_init_guile with call to
7327         scm_with_guile.
7328
7329 2014-03-10  Joel Brobecker  <brobecker@adacore.com>
7330
7331         * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7332         in call to TYPE_CODE macro.
7333
7334 2014-03-10  Jerome Guitton  <guitton@adacore.com>
7335
7336         * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7337         Resolve tagged types to full view.
7338
7339 2014-03-10  Hui Zhu  <hui@codesourcery.com>
7340
7341         * target.h (target_insert_breakpoint): Remove "hardware" from its
7342         comments.
7343
7344 2014-03-07  Doug Evans  <dje@google.com>
7345
7346         * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7347
7348 2014-03-07  Doug Evans  <dje@google.com>
7349
7350         * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7351         Remove unused local comp_dir_attr.  Assert exactly one of
7352         stub_comp_unit_die, stub_comp_dir is non-NULL.
7353
7354 2014-03-07  Joel Brobecker  <brobecker@adacore.com>
7355
7356         * target.h (complete_target_initialization, add_target):
7357         Add comment.
7358
7359 2014-03-07  Pedro Alves  <palves@redhat.com>
7360
7361         * go32-nat.c: Include inf-child.h.
7362         (go32_ops): Delete global.
7363         (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7364         Delete methods.
7365         (go32_create_inferior): Push the passed in target pointer instead
7366         of referencing go32_ops.
7367         (init_go32_ops): Delete function.  Moved parts to _initialize_go32_nat.
7368         (go32_target): New function, based on init_go32_ops, but inherit
7369         inf_child_target.
7370         (_initialize_go32_nat): Use go32_target.  Move parts of
7371         init_go32_ops here.
7372
7373 2014-03-06  Joel Brobecker  <brobecker@adacore.com>
7374
7375         * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7376         (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7377         SYMBOL_VALUE_ADDRESS.
7378         (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7379
7380 2014-03-06  Yao Qi  <yao@codesourcery.com>
7381
7382         * breakpoint.c (get_tracepoint_by_number): Remove argument
7383         optional_p.  All callers updated.  Adjust comments.  Update
7384         output message.
7385         * breakpoint.h (get_tracepoint_by_number): Update declaration.
7386
7387 2014-03-06  Yao Qi  <yao@codesourcery.com>
7388
7389         * reverse.c (goto_bookmark_command): Add local 'p'.  Emit error
7390         early if get_number returns zero.  Use 'p' instead of 'args'.
7391
7392 2014-03-06  Yao Qi  <yao@codesourcery.com>
7393
7394         * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7395         message.
7396
7397 2014-03-06  Yao Qi  <yao@codesourcery.com>
7398
7399         PR breakpoints/16508
7400         * tracepoint.c (check_trace_running): New function.
7401         (trace_find_command): Move code to check_trace_running and
7402         call check_trace_running.
7403         (trace_find_pc_command): Likewise.
7404         (trace_find_tracepoint_command): Likewise.
7405         (trace_find_line_command): Likewise.
7406         (trace_find_range_command): Likewise.
7407         * tracepoint.h (check_trace_running): Likewise.
7408         * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7409
7410 2014-03-06  Yao Qi  <yao@codesourcery.com>
7411
7412         * target.h (struct target_ops) <to_traceframe_info>: Use
7413         TARGET_DEFAULT_NORETURN (tcomplain ()).
7414         * target-delegates.c: Regenerated.
7415
7416 2014-03-05  Pedro Alves  <palves@redhat.com>
7417
7418         PR gdb/16575
7419         * dcache.c (dcache_poke_byte): Constify ptr parameter.  Return
7420         void.  Update comment.
7421         (dcache_xfer_memory): Delete.
7422         (dcache_read_memory_partial): New, based on the read bits of
7423         dcache_xfer_memory.
7424         (dcache_update): Add status parameter.  Use ULONGEST for len, and
7425         adjust.  Discard cache lines if the reason for the update was
7426         error.
7427         * dcache.h (dcache_xfer_memory): Delete declaration.
7428         (dcache_read_memory_partial): New declaration.
7429         (dcache_update): Update prototype.
7430         * target.c (raw_memory_xfer_partial): Update the dcache here.
7431         (memory_xfer_partial_1): Don't handle dcache writes here.
7432
7433 2014-03-05  Mike Frysinger  <vapier@gentoo.org>
7434
7435         * remote-sim.c (gdbsim_load): Add const to prog.
7436
7437 2014-03-03  Tom Tromey  <tromey@redhat.com>
7438
7439         * elfread.c (probe_key): Change to bfd_data.
7440         (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7441         now per-BFD, not per-objfile.
7442         * stap-probe.c (stap_probe_destroy): Update comment.
7443         (handle_stap_probe): Allocate on the per-BFD obstack.
7444
7445 2014-03-03  Tom Tromey  <tromey@redhat.com>
7446
7447         * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7448         * breakpoint.c (create_longjmp_master_breakpoint): Use
7449         get_probe_address.
7450         (add_location_to_breakpoint, bkpt_probe_insert_location)
7451         (bkpt_probe_remove_location): Update.
7452         * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7453         * elfread.c (elf_symfile_relocate_probe): Remove.
7454         (elf_probe_fns): Update.
7455         (insert_exception_resume_breakpoint): Change type of "probe"
7456         parameter to bound_probe.
7457         (check_exception_resume): Update.
7458         * objfiles.c (objfile_relocate1): Don't relocate probes.
7459         * probe.c (bound_probe_s): New typedef.
7460         (parse_probes): Use get_probe_address.  Set sal's objfile.
7461         (find_probe_by_pc): Return a bound_probe.
7462         (collect_probes): Return a VEC(bound_probe_s).
7463         (compare_probes): Update.
7464         (gen_ui_out_table_header_info): Change type of "probes"
7465         parameter.  Update.
7466         (info_probes_for_ops): Update.
7467         (get_probe_address): New function.
7468         (probe_safe_evaluate_at_pc): Update.
7469         * probe.h (struct probe_ops) <get_probe_address>: New field.
7470         <set_semaphore, clear_semaphore>: Add objfile parameter.
7471         (struct probe) <objfile>: Remove field.
7472         <arch>: New field.
7473         <address>: Update comment.
7474         (struct bound_probe): New.
7475         (find_probe_by_pc): Return a bound_probe.
7476         (get_probe_address): Declare.
7477         * solib-svr4.c (struct probe_and_action) <address>: New field.
7478         (hash_probe_and_action, equal_probe_and_action): Update.
7479         (register_solib_event_probe): Add address parameter.
7480         (solib_event_probe_at): Update.
7481         (svr4_create_probe_breakpoints): Add objfile parameter.  Use
7482         get_probe_address.
7483         * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7484         (stap_get_probe_address): New function.
7485         (stap_can_evaluate_probe_arguments, compute_probe_arg)
7486         (compile_probe_arg): Update.
7487         (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7488         address.
7489         (handle_stap_probe): Don't relocate the probe.
7490         (stap_relocate): Remove.
7491         (stap_gen_info_probes_table_values): Update.
7492         (stap_probe_ops): Remove stap_relocate.
7493         * symfile-debug.c (debug_sym_relocate_probe): Remove.
7494         (debug_sym_probe_fns): Update.
7495         * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7496         * symtab.c (init_sal): Use memset.
7497         * symtab.h (struct symtab_and_line) <objfile>: New field.
7498         * tracepoint.c (start_tracing, stop_tracing): Update.
7499
7500 2014-03-03  Tom Tromey  <tromey@redhat.com>
7501
7502         * probe.h (parse_probes, find_probe_by_pc)
7503         (find_probes_in_objfile): Fix comments.
7504
7505 2014-03-02  Doug Evans  <xdje42@gmail.com>
7506
7507         * infrun.c (handle_signal_stop): Replace test for
7508         TARGET_WAITKIND_STOPPED with an assert.
7509
7510 2014-03-02  Doug Evans  <xdje42@gmail.com>
7511
7512         * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7513
7514 2014-03-02  Doug Evans  <xdje42@gmail.com>
7515
7516         * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7517
7518 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7519
7520         * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7521
7522 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7523
7524         * i386obsd-nat.c: Include "obsd-nat.h".
7525         (_initialize_i386obsd_nat): Call obsd_add_target instead of
7526         add_target.
7527         * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7528
7529 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7530
7531         * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7532
7533 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7534
7535         * mips64obsd-nat.c: Include "obsd-nath".
7536         (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7537         add_target
7538         * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7539
7540 2014-03-01  Mark Kettenis  <kettenis@gnu.org>
7541
7542         * amd64obsd-nat.c: Include "obsd-nat,h.
7543         (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7544         add_target.
7545         * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7546
7547 2014-02-28  Siva Chandra Reddy  <sivachandra@google.com>
7548
7549         * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7550         (find_overload_match): Update call to find_oload_champ.
7551         (find_oload_champ_namespace_loop): Likewise
7552
7553 2014-02-28  Mark Kettenis  <kettenis@gnu.org>
7554
7555         * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7556
7557         * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7558         * config/sparc/obsd64.mh: New file.
7559         * sparc64obsd-nat.c: New file.
7560
7561         * obsd-nat.h: New file.
7562         * obsd-nat.c: New file.
7563         * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7564         (ALLDEPFILES): Add obsd-nat.c.
7565
7566 2014-02-28  Tom Tromey  <tromey@redhat.com>
7567
7568         * cli-out.c (cli_ui_out_impl): Now const.  Remove comment.
7569         * cli-out.h (cli_ui_out_impl): Now const.
7570         * mi/mi-out.c (mi_ui_out_impl): Now const.  Remove comment.
7571         * ui-out.c (struct ui_out) <impl>: Now const.
7572         (default_ui_out_impl): Now const.
7573         (ui_out_new): Make 'impl' parameter const.
7574         * ui-out.h (ui_out_new): Update.
7575
7576 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7577
7578         * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7579
7580 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7581
7582         * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7583
7584 2014-02-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
7585
7586         Additional PR 8882 fix.
7587         * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7588
7589 2014-02-27  Pedro Alves  <palves@redhat.com>
7590
7591         * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7592         isn't set.
7593
7594 2014-02-27  Pedro Alves  <palves@redhat.com>
7595
7596         PR 12702
7597         * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7598         * nat/linux-waitpid.c: Include string.h.
7599         (status_to_str): Moved here and made extern.
7600         * nat/linux-waitpid.h (status_to_str): New declaration.
7601
7602 2014-02-27  Hui Zhu  <hui@codesourcery.com>
7603
7604         PR 12702
7605         * infrun.c (ptid_match): Move ...
7606         * common/ptid.c (ptid_match): ... here.
7607         * inferior.h (ptid_match): Move ...
7608         * common/ptid.h (ptid_match): ... here.
7609
7610 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7611
7612         * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7613         * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7614         gdb_target_obs.
7615
7616 2014-02-27  Mark Kettenis  <kettenis@gnu.org>
7617
7618         * obsd-tdep.c (obsd_auxv_parse): New function.
7619         (obsd_init_abi): Set auxv_parse.
7620
7621         * gdbarch.sh (auxv_parse): New.
7622         * gdbarch.h: Regenerated.
7623         * gdbarch.c: Regenerated.
7624         * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7625
7626 2014-02-26  Ludovic Courtès  <ludo@gnu.org>
7627
7628         * guile/scm-value.c (gdbscm_history_append_x): New function.
7629         (value_functions): Add it.
7630
7631 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
7632
7633         * dwarf2read.c (attr_value_as_address): New function.
7634         (dwarf2_find_base_address, read_call_site_scope): Use
7635         attr_value_as_address in place of DW_ADDR.
7636         (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7637         the low and high addresses.  Slight rework of the handling
7638         of the high pc being a constant form, and limit it to
7639         DWARF verson 4 or higher.
7640         (dwarf2_record_block_ranges): Likewise.
7641         (read_partial_die): Likewise.
7642         (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7643
7644 2014-02-26  Tom Tromey  <tromey@redhat.com>
7645
7646         * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7647
7648 2014-02-26  Tom Tromey  <tromey@redhat.com>
7649
7650         * elfread.c (elf_read_minimal_symbols): Return early if
7651         minimal symbols have already been read.  Add "ei" parameter.
7652         (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7653         * minsyms.c (prim_record_minimal_symbol_full): Update.
7654         * objfiles.h (struct objstats) <n_minsyms>: Move...
7655         (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7656         * symmisc.c (print_objfile_statistics): Update.
7657
7658 2014-02-26  Tom Tromey  <tromey@redhat.com>
7659
7660         * elfread.c (elf_read_minimal_symbols): New function, from
7661         elf_symfile_read.
7662         (elf_symfile_read): Call it.
7663
7664 2014-02-26  Tom Tromey  <tromey@redhat.com>
7665
7666         * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7667         (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7668         (lookup_minimal_symbol_solib_trampoline)
7669         (lookup_minimal_symbol_by_pc_section_1)
7670         (lookup_minimal_symbol_and_objfile): Update.
7671         (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7672         Don't allocate a minimal symbol if minsyms have already been read.
7673         (build_minimal_symbol_hash_tables): Update.
7674         (install_minimal_symbols): Do nothing if minsyms already read.
7675         Use the per-BFD obstack.
7676         (terminate_minimal_symbol_table): Use the per-BFD obstack.
7677         * objfiles.c (allocate_objfile): Call
7678         terminate_minimal_symbol_table later.
7679         (have_minimal_symbols): Update.
7680         * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7681         minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7682         Move from struct objfile.
7683         <minsyms_read>: New field.
7684         (struct objfile) <msymbols, minimal_symbol_count,
7685         msymbol_hash, msymbol_demangled_hash>: Move.
7686         (ALL_OBJFILE_MSYMBOLS): Update.
7687         * symfile.c (read_symbols): Set minsyms_read.
7688         (reread_symbols): Update.
7689         * symmisc.c (dump_objfile, dump_msymbols): Update.
7690
7691 2014-02-26  Tom Tromey  <tromey@redhat.com>
7692
7693         * minsyms.c (msymbols_sort): Remove.
7694         * minsyms.h (msymbols_sort): Remove.
7695         * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7696         * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7697         * elfread.c (elf_symtab_read): Don't add section offsets.
7698         * xcoffread.c (record_minimal_symbol): Don't add section offset
7699         to minimal symbol address.
7700         * somread.c (text_offset, data_offset): Remove.
7701         (som_symtab_read): Don't add section offsets to minimal symbol
7702         addresses.
7703         * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7704         Don't add section offsets to minimal symbols.
7705         * coffread.c (coff_symtab_read): Don't add section offsets
7706         to minimal symbol addresses.
7707         * machoread.c (macho_symtab_add_minsym): Don't add section offset
7708         to minimal symbol addresses.
7709         * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7710         section offset to minimal symbol addresses.
7711         * mdebugread.c (parse_partial_symbols): Don't add section
7712         offset to minimal symbol addresses.
7713         * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7714         offset to minimal symbol addresses.
7715
7716 2014-02-26  Tom Tromey  <tromey@redhat.com>
7717
7718         * ada-lang.c (ada_main_name): Update.
7719         (ada_add_standard_exceptions): Update.
7720         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7721         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7722         * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7723         * auxv.c (ld_so_xfer_auxv): Update.
7724         * avr-tdep.c (avr_scan_prologue): Update.
7725         * ax-gdb.c (gen_var_ref): Update.
7726         * blockframe.c (get_pc_function_start)
7727         (find_pc_partial_function_gnu_ifunc): Update.
7728         * breakpoint.c (create_overlay_event_breakpoint)
7729         (create_longjmp_master_breakpoint)
7730         (create_std_terminate_master_breakpoint)
7731         (create_exception_master_breakpoint): Update.
7732         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7733         * c-valprint.c (c_val_print): Update.
7734         * coff-pe-read.c (add_pe_forwarded_sym): Update.
7735         * common/agent.c (agent_look_up_symbols): Update.
7736         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7737         * dwarf2loc.c (call_site_to_target_addr): Update.
7738         * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7739         * elfread.c (elf_gnu_ifunc_record_cache)
7740         (elf_gnu_ifunc_resolve_by_got): Update.
7741         * findvar.c (default_read_var_value): Update.
7742         * frame.c (inside_main_func): Update.
7743         * frv-tdep.c (frv_frame_this_id): Update.
7744         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7745         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7746         Update.
7747         * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7748         (hppa_hpux_find_dummy_bpaddr): Update.
7749         * hppa-tdep.c (hppa_symbol_address): Update.
7750         * infcmd.c (until_next_command): Update.
7751         * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7752         Update.
7753         * linespec.c (minsym_found, add_minsym): Update.
7754         * linux-nat.c (get_signo): Update.
7755         * linux-thread-db.c (inferior_has_bug): Update.
7756         * m32c-tdep.c (m32c_return_value)
7757         (m32c_m16c_address_to_pointer): Update.
7758         * m32r-tdep.c (m32r_frame_this_id): Update.
7759         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7760         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7761         * maint.c (maintenance_translate_address): Update.
7762         * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7763         (frob_address): New function.
7764         (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7765         frob_address.  Rename parameter to "pc_in".
7766         (compare_minimal_symbols, compact_minimal_symbols): Use raw
7767         addresses.
7768         (find_solib_trampoline_target, minimal_symbol_upper_bound):
7769         Update.
7770         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7771         * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7772         * objc-lang.c (find_objc_msgsend): Update.
7773         * objfiles.c (objfile_relocate1): Update.
7774         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7775         * p-valprint.c (pascal_val_print): Update.
7776         * parse.c (write_exp_msymbol): Update.
7777         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7778         (ppc_elfv2_skip_entrypoint): Update.
7779         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7780         * printcmd.c (build_address_symbolic, msym_info)
7781         (address_info): Update.
7782         * proc-service.c (ps_pglobal_lookup): Update.
7783         * psymtab.c (find_pc_sect_psymtab_closer)
7784         (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7785         Change msymbol parameter to bound_minimal_symbol.
7786         * ravenscar-thread.c (get_running_thread_id): Update.
7787         * remote.c (remote_check_symbols): Update.
7788         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7789         address.
7790         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7791         * solib-dsbt.c (lm_base): Update.
7792         * solib-frv.c (lm_base, main_got): Update.
7793         * solib-irix.c (locate_base): Update.
7794         * solib-som.c (som_solib_create_inferior_hook)
7795         (link_map_start): Update.
7796         * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7797         * solib-svr4.c (elf_locate_base, enable_break): Update.
7798         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7799         (flush_ea_cache): Update.
7800         * stabsread.c (define_symbol, scan_file_globals): Update.
7801         * stack.c (find_frame_funname): Update.
7802         * symfile-debug.c (debug_qf_expand_symtabs_matching)
7803         (debug_qf_find_pc_sect_symtab): Update.
7804         * symfile.c (simple_read_overlay_table)
7805         (simple_overlay_update): Update.
7806         * symfile.h (struct quick_symbol_functions)
7807         <find_pc_sect_symtab>: Change type of msymbol to
7808         bound_minimal_symbol.
7809         * symmisc.c (dump_msymbols): Update.
7810         * symtab.c (find_pc_sect_symtab_via_partial)
7811         (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7812         (search_symbols, print_msymbol_info): Update.
7813         * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7814         (MSYMBOL_VALUE_ADDRESS): Redefine.
7815         (BMSYMBOL_VALUE_ADDRESS): New macro.
7816         * tracepoint.c (scope_info): Update.
7817         * tui/tui-disasm.c (tui_find_disassembly_address)
7818         (tui_get_begin_asm_address): Update.
7819         * valops.c (find_function_in_inferior): Update.
7820         * value.c (value_static_field, value_fn_field): Update.
7821
7822 2014-02-26  Tom Tromey  <tromey@redhat.com>
7823
7824         * ada-lang.c (ada_update_initial_language): Update.
7825         (ada_main_name, ada_has_this_exception_support): Update.
7826         * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7827         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7828         * arm-tdep.c (arm_skip_stub): Update.
7829         * auxv.c (ld_so_xfer_auxv): Update.
7830         * avr-tdep.c (avr_scan_prologue): Update.
7831         * ax-gdb.c (gen_var_ref): Update.
7832         * breakpoint.c (struct breakpoint_objfile_data)
7833         <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7834         type to bound_minimal_symbol.
7835         (create_overlay_event_breakpoint)
7836         (create_longjmp_master_breakpoint)
7837         (create_std_terminate_master_breakpoint)
7838         (create_exception_master_breakpoint): Update.
7839         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7840         * c-exp.y (classify_name): Update.
7841         * coffread.c (coff_symfile_read): Update.
7842         * common/agent.c (agent_look_up_symbols): Update.
7843         * d-lang.c (d_main_name): Update.
7844         * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7845         * dec-thread.c (enable_dec_thread): Update.
7846         * dwarf2loc.c (call_site_to_target_addr): Update.
7847         * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7848         * eval.c (evaluate_subexp_standard): Update.
7849         * findvar.c (struct minsym_lookup_data) <result>: Change type
7850         to bound_minimal_symbol.
7851         <objfile>: Remove.
7852         (minsym_lookup_iterator_cb, default_read_var_value): Update.
7853         * frame.c (inside_main_func): Update.
7854         * frv-tdep.c (frv_frame_this_id): Update.
7855         * gcore.c (call_target_sbrk): Update.
7856         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7857         * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7858         Update.
7859         * go-lang.c (go_main_name): Update.
7860         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7861         (hppa_hpux_find_import_stub_for_addr): Update.
7862         * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7863         Update.  Change return type.
7864         * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7865         type.
7866         * jit.c (jit_breakpoint_re_set_internal): Update.
7867         * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7868         Update.
7869         * linux-nat.c (get_signo): Update.
7870         * linux-thread-db.c (inferior_has_bug): Update
7871         * m32c-tdep.c (m32c_return_value)
7872         (m32c_m16c_address_to_pointer): Update.
7873         * m32r-tdep.c (m32r_frame_this_id): Update.
7874         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7875         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7876         * minsyms.c (lookup_minimal_symbol_internal): Rename to
7877         lookup_minimal_symbol.  Change return type.
7878         (lookup_minimal_symbol): Remove.
7879         (lookup_bound_minimal_symbol): Update.
7880         (lookup_minimal_symbol_text): Change return type.
7881         (lookup_minimal_symbol_solib_trampoline): Change return type.
7882         * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7883         (lookup_minimal_symbol_solib_trampoline): Change return type.
7884         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7885         * objc-lang.c (lookup_objc_class, lookup_child_selector)
7886         (value_nsstring, find_imps): Update.
7887         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7888         * p-lang.c (pascal_main_name): Update.
7889         * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7890         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7891         * proc-service.c (ps_pglobal_lookup): Update.
7892         * ravenscar-thread.c (get_running_thread_msymbol): Change
7893         return type.
7894         (has_ravenscar_runtime, get_running_thread_id): Update.
7895         * remote.c (remote_check_symbols): Update.
7896         * sol-thread.c (ps_pglobal_lookup): Update.
7897         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7898         * solib-dsbt.c (lm_base): Update.
7899         * solib-frv.c (lm_base, frv_relocate_section_addresses):
7900         Update.
7901         * solib-irix.c (locate_base): Update.
7902         * solib-som.c (som_solib_create_inferior_hook)
7903         (som_solib_desire_dynamic_linker_symbols, link_map_start):
7904         Update.
7905         * solib-spu.c (spu_enable_break): Update.
7906         * solib-svr4.c (elf_locate_base, enable_break): Update.
7907         * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7908         (flush_ea_cache): Update.
7909         * stabsread.c (define_symbol): Update.
7910         * symfile.c (simple_read_overlay_table): Update.
7911         * symtab.c (find_pc_sect_line): Update.
7912         * tracepoint.c (scope_info): Update.
7913         * tui-disasm.c (tui_get_begin_asm_address): Update.
7914         * value.c (value_static_field): Update.
7915
7916 2014-02-26  Tom Tromey  <tromey@redhat.com>
7917
7918         * minsyms.c (prim_record_minimal_symbol_full): Use
7919         SET_MSYMBOL_VALUE_ADDRESS.
7920         * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7921         * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7922         SET_MSYMBOL_VALUE_ADDRESS.
7923         * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7924         (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7925
7926 2014-02-26  Tom Tromey  <tromey@redhat.com>
7927
7928         * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7929         (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7930         (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7931         (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7932         (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7933         (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7934         (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7935         * ada-lang.c (ada_main_name): Update.
7936         (ada_lookup_simple_minsym): Update.
7937         (ada_make_symbol_completion_list): Update.
7938         (ada_add_standard_exceptions): Update.
7939         * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7940         * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7941         * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7942         * arm-tdep.c (skip_prologue_function): Update.
7943         (arm_skip_stack_protector, arm_skip_stub): Update.
7944         * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7945         (arm_wince_skip_main_prologue): Update.
7946         * auxv.c (ld_so_xfer_auxv): Update.
7947         * avr-tdep.c (avr_scan_prologue): Update.
7948         * ax-gdb.c (gen_var_ref): Update.
7949         * block.c (call_site_for_pc): Update.
7950         * blockframe.c (get_pc_function_start): Update.
7951         (find_pc_partial_function_gnu_ifunc): Update.
7952         * breakpoint.c (create_overlay_event_breakpoint): Update.
7953         (create_longjmp_master_breakpoint): Update.
7954         (create_std_terminate_master_breakpoint): Update.
7955         (create_exception_master_breakpoint): Update.
7956         (resolve_sal_pc): Update.
7957         * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7958         * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7959         Update.
7960         * c-valprint.c (c_val_print): Update.
7961         * coff-pe-read.c (add_pe_forwarded_sym): Update.
7962         * coffread.c (coff_symfile_read): Update.
7963         * common/agent.c (agent_look_up_symbols): Update.
7964         * dbxread.c (find_stab_function_addr): Update.
7965         (end_psymtab): Update.
7966         * dwarf2loc.c (call_site_to_target_addr): Update.
7967         (func_verify_no_selftailcall): Update.
7968         (tailcall_dump): Update.
7969         (call_site_find_chain_1): Update.
7970         (dwarf_expr_reg_to_entry_parameter): Update.
7971         * elfread.c (elf_gnu_ifunc_record_cache): Update.
7972         (elf_gnu_ifunc_resolve_by_got): Update.
7973         * f-valprint.c (info_common_command): Update.
7974         * findvar.c (read_var_value): Update.
7975         * frame.c (get_prev_frame_1): Update.
7976         (inside_main_func): Update.
7977         * frv-tdep.c (frv_skip_main_prologue): Update.
7978         (frv_frame_this_id): Update.
7979         * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7980         * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7981         * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7982         (gnuv3_skip_trampoline): Update.
7983         * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7984         (hppa64_hpux_in_solib_call_trampoline): Update.
7985         (hppa_hpux_skip_trampoline_code): Update.
7986         (hppa64_hpux_search_dummy_call_sequence): Update.
7987         (hppa_hpux_find_import_stub_for_addr): Update.
7988         (hppa_hpux_find_dummy_bpaddr): Update.
7989         * hppa-tdep.c (hppa_symbol_address)
7990         (hppa_lookup_stub_minimal_symbol): Update.
7991         * i386-tdep.c (i386_skip_main_prologue): Update.
7992         (i386_pe_skip_trampoline_code): Update.
7993         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7994         * infcall.c (get_function_name): Update.
7995         * infcmd.c (until_next_command): Update.
7996         * jit.c (jit_breakpoint_re_set_internal): Update.
7997         (jit_inferior_init): Update.
7998         * linespec.c (minsym_found): Update.
7999         (add_minsym): Update.
8000         * linux-fork.c (info_checkpoints_command): Update.
8001         * linux-nat.c (get_signo): Update.
8002         * linux-thread-db.c (inferior_has_bug): Update.
8003         * m32c-tdep.c (m32c_return_value): Update.
8004         (m32c_m16c_address_to_pointer): Update.
8005         (m32c_m16c_pointer_to_address): Update.
8006         * m32r-tdep.c (m32r_frame_this_id): Update.
8007         * m68hc11-tdep.c (m68hc11_get_register_info): Update.
8008         * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
8009         * maint.c (maintenance_translate_address): Update.
8010         * minsyms.c (add_minsym_to_hash_table): Update.
8011         (add_minsym_to_demangled_hash_table): Update.
8012         (msymbol_objfile): Update.
8013         (lookup_minimal_symbol): Update.
8014         (iterate_over_minimal_symbols): Update.
8015         (lookup_minimal_symbol_text): Update.
8016         (lookup_minimal_symbol_by_pc_name): Update.
8017         (lookup_minimal_symbol_solib_trampoline): Update.
8018         (lookup_minimal_symbol_by_pc_section_1): Update.
8019         (lookup_minimal_symbol_and_objfile): Update.
8020         (prim_record_minimal_symbol_full): Update.
8021         (compare_minimal_symbols): Update.
8022         (compact_minimal_symbols): Update.
8023         (build_minimal_symbol_hash_tables): Update.
8024         (install_minimal_symbols): Update.
8025         (terminate_minimal_symbol_table): Update.
8026         (find_solib_trampoline_target): Update.
8027         (minimal_symbol_upper_bound): Update.
8028         * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
8029         * mips-tdep.c (mips_stub_frame_sniffer): Update.
8030         (mips_skip_pic_trampoline_code): Update.
8031         * msp430-tdep.c (msp430_skip_trampoline_code): Update.
8032         * objc-lang.c (selectors_info): Update.
8033         (classes_info): Update.
8034         (find_methods): Update.
8035         (find_imps): Update.
8036         (find_objc_msgsend): Update.
8037         * objfiles.c (objfile_relocate1): Update.
8038         * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
8039         * obsd-tdep.c (obsd_skip_solib_resolver): Update.
8040         * p-valprint.c (pascal_val_print): Update.
8041         * parse.c (write_exp_msymbol): Update.
8042         * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
8043         (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
8044         * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
8045         * printcmd.c (build_address_symbolic): Update.
8046         (sym_info): Update.
8047         (address_info): Update.
8048         * proc-service.c (ps_pglobal_lookup): Update.
8049         * psymtab.c (find_pc_sect_psymtab_closer): Update.
8050         (find_pc_sect_psymtab): Update.
8051         * python/py-framefilter.c (py_print_frame): Update.
8052         * ravenscar-thread.c (get_running_thread_id): Update.
8053         * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
8054         Update.
8055         * remote.c (remote_check_symbols): Update.
8056         * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
8057         (rs6000_skip_trampoline_code): Update.
8058         * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
8059         * sol2-tdep.c (sol2_skip_solib_resolver): Update.
8060         * solib-dsbt.c (lm_base): Update.
8061         * solib-frv.c (lm_base): Update.
8062         (main_got): Update.
8063         * solib-irix.c (locate_base): Update.
8064         * solib-som.c (som_solib_create_inferior_hook): Update.
8065         (som_solib_desire_dynamic_linker_symbols): Update.
8066         (link_map_start): Update.
8067         * solib-spu.c (spu_enable_break): Update.
8068         (ocl_enable_break): Update.
8069         * solib-svr4.c (elf_locate_base): Update.
8070         (enable_break): Update.
8071         * spu-tdep.c (spu_get_overlay_table): Update.
8072         (spu_catch_start): Update.
8073         (flush_ea_cache): Update.
8074         * stabsread.c (define_symbol): Update.
8075         (scan_file_globals): Update.
8076         * stack.c (find_frame_funname): Update.
8077         (frame_info): Update.
8078         * symfile.c (simple_read_overlay_table): Update.
8079         (simple_overlay_update): Update.
8080         * symmisc.c (dump_msymbols): Update.
8081         * symtab.c (fixup_section): Update.
8082         (find_pc_sect_line): Update.
8083         (skip_prologue_sal): Update.
8084         (search_symbols): Update.
8085         (print_msymbol_info): Update.
8086         (rbreak_command): Update.
8087         (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
8088         (completion_list_objc_symbol): Update.
8089         (default_make_symbol_completion_list_break_on): Update.
8090         * tracepoint.c (scope_info): Update.
8091         * tui/tui-disasm.c (tui_find_disassembly_address): Update.
8092         (tui_get_begin_asm_address): Update.
8093         * valops.c (find_function_in_inferior): Update.
8094         * value.c (value_static_field): Update.
8095         (value_fn_field): Update.
8096
8097 2014-02-26  Tom Tromey  <tromey@redhat.com>
8098
8099         * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
8100         bound minimal symbols.  Move code that knows about minsym
8101         table layout...
8102         * minsyms.c (minimal_symbol_upper_bound): ... here.  New
8103         function.
8104         * minsyms.h (minimal_symbol_upper_bound): Declare.
8105         * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
8106         minimal_symbol_upper_bound.
8107
8108 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8109
8110         * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
8111         Use the type's name if its basic type does not have a tag.
8112
8113 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8114
8115         * dwarf2read.c (read_subrange_type): Add comment.
8116
8117 2014-02-27  Joel Brobecker  <brobecker@adacore.com>
8118
8119         * dwarf2read.c (update_enumeration_type_from_children): New
8120         function, mostly extracted from process_structure_scope.
8121         (read_enumeration_type): Call update_enumeration_type_from_children.
8122         (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
8123         and flag_flag_enum fields.
8124
8125 2014-02-26  Pedro Alves  <palves@redhat.com>
8126
8127         * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
8128         (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
8129         to_xfer_partial method.
8130
8131 2014-02-26  Pedro Alves  <palves@redhat.com>
8132
8133         * target.c (complete_target_initialization): Don't install
8134         default_xfer_partial as to_xfer_partial hook.
8135         (nomemory): Delete.
8136         (update_current_target): Don't INHERIT nor de_fault
8137         deprecated_xfer_memory.  Delete de_fault macro.
8138         (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
8139         (setup_target_debug): Don't install a deprecated_xfer_memory hook.
8140         * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
8141         field.
8142
8143 2014-02-26  Pedro Alves  <palves@redhat.com>
8144
8145         * go32-nat.c (my_write_child): New function.
8146         (go32_xfer_memory): Rewrite as to_xfer_partial helper.
8147         (go32_xfer_partial): New function.
8148         (init_go32_ops): Don't install a deprecated_xfer_memory hook.
8149         Instead install a to_xfer_partial hook.
8150
8151 2014-02-26  Pedro Alves  <palves@redhat.com>
8152
8153         * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
8154         to_xfer_partial helper.  Rewrite.
8155         (procfs_xfer_partial): New function.
8156         (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
8157         Install a to_xfer_partial hook.
8158
8159 2014-02-26  Pedro Alves  <palves@redhat.com>
8160
8161         * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
8162         (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
8163         (m32r_xfer_partial): New function.
8164         (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
8165         Install a to_xfer_partial hook.
8166
8167 2014-02-26  Pedro Alves  <palves@redhat.com>
8168
8169         * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
8170         helper.
8171         (mips_xfer_partial): New function.
8172         (_initialize_remote_mips): Don't install a deprecated_xfer_memory
8173         hook.  Install a to_xfer_partial hook.
8174
8175 2014-02-26  Joel Brobecker  <brobecker@adacore.com>
8176
8177         * gdbtypes.h (create_array_type_with_stride): Add declaration.
8178         * gdbtypes.c (create_array_type_with_stride): New function,
8179         renaming create_array_type, but with an added parameter
8180         called "bit_stride".
8181         (create_array_type): Re-implement using
8182         create_array_type_with_stride.
8183         * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
8184         and DW_AT_bit_stride attributes.
8185
8186 2014-02-26  Pedro Alves  <palves@redhat.com>
8187
8188         * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
8189         task-specific breakpoints.
8190
8191 2014-02-25  Pedro Alves  <palves@redhat.com>
8192
8193         * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
8194         handling of object == TARGET_OBJECT_UNWIND_TABLE.
8195
8196 2014-02-25  Stan Shebs  <stan@codesourcery.com>
8197
8198         * defs.h: Annotate comments for Doxygen.
8199
8200 2014-02-25  Tom Tromey  <tromey@redhat.com>
8201
8202         * target.h (target_ignore): Don't declare.
8203         * target.c (target_ignore): Remove.
8204
8205 2014-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
8206
8207         PR gdb/16626
8208         * auto-load.c (auto_load_objfile_script_1): Change filename to
8209         debugfile.
8210
8211 2014-02-25  Joel Brobecker  <brobecker@adacore.com>
8212
8213         * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
8214         documentation.  Adjust prototype to match the target_ops
8215         to_xfer_partial method.  Adjust implementation accordingly.
8216
8217 2014-02-25  Hui Zhu  <hui@codesourcery.com>
8218
8219         * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
8220         to_traceframe_info.
8221
8222 2014-02-25  Kevin Buettner  <kevinb@redhat.com>
8223
8224         * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
8225         (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
8226         (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
8227         (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
8228         (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
8229         (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
8230         (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
8231         (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
8232         New constants.
8233         (rl78_register_type): Use a data pointer type for SP and
8234         new pseudo registers mentioned above.  Use a 16 bit integer
8235         type for all other register pairs.
8236         (rl78_register_name, rl78_g10_register_name): Update for
8237         new pseudo registers.
8238         (rl78_pseudo_register_read): Likewise.
8239         (rl78_pseudo_register_write): Likewise.
8240         (rl78_dwarf_reg_to_regnum): Return register numbers representing
8241         to the newly added pseudo registers.
8242
8243 2014-02-24  Doug Evans  <dje@google.com>
8244
8245         * value.c (record_latest_value): Fix comment.
8246         * printcmd.c (print_command_1): Remove code to handle -1 return from
8247         record_latest_value.
8248
8249 2014-02-24  Pedro Alves  <palves@redhat.com>
8250
8251         * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8252         deprecated_xfer_memory hook.
8253         (procfs_xfer_partial): Call procfs_xfer_memory instead
8254         of the deprecated_xfer_memory target hook.
8255         (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8256         helper.
8257
8258 2014-02-24  Yuanhui Zhang  <asmwarrior@gmail.com>
8259
8260         * windows-nat.c (windows_xfer_shared_libraries): Return
8261         TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8262         requested object is TARGET_OBJECT_LIBRARIES.
8263
8264 2014-02-24  Yao Qi  <yao@codesourcery.com>
8265
8266         * target.h (enum target_xfer_status)
8267         <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8268         <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8269         explicitly.  New.
8270         * corefile.c (memory_error_message): User updated.
8271         * exec.c (section_table_read_available_memory): Likewise.
8272         * record-btrace.c (record_btrace_xfer_partial): Likewise.
8273         * target.c (target_xfer_status_to_string): Likewise.
8274         (raw_memory_xfer_partial): Likewise.
8275         (memory_xfer_partial_1, target_xfer_partial): Likewise.
8276         * valops.c (read_value_memory): Likewise.
8277         * exec.h: Update comments.
8278
8279 2014-02-24  Yao Qi  <yao@codesourcery.com>
8280
8281         * target.c (target_xfer_status_to_string): Rename argument err
8282         to status.
8283         * target.h (target_xfer_status_to_string): Update declaration.
8284         Replace target_xfer_error_to_string with
8285         target_xfer_status_to_string in comment.
8286
8287 2014-02-24  Yao Qi  <yao@codesourcery.com>
8288
8289         * mips-linux-nat.c (super_close): Update its type.
8290         (mips_linux_close): Pass 'self' to super_close.
8291
8292 2014-02-24  Yao Qi  <yao@codesourcery.com>
8293
8294         * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8295         * corefile.c (read_memory): Adjusted.
8296         * target.c (target_write_with_progress): Adjusted.
8297
8298 2014-02-23  Yao Qi  <yao@codesourcery.com>
8299
8300         Revert two patches:
8301
8302         2013-10-25  Yao Qi  <yao@codesourcery.com>
8303
8304         * remote.c (remote_traceframe_info): Return early if
8305         traceframe is not selected.
8306
8307         2013-07-19  Yao Qi  <yao@codesourcery.com>
8308
8309         * target.c (update_current_target): Change the default action
8310         of 'to_traceframe_info' from tcomplain to return_zero.
8311         * target.h (struct target_ops) <to_traceframe_info>: Add more
8312         comments.
8313
8314 2014-02-23  Yao Qi  <yao@codesourcery.com>
8315
8316         * valops.c (read_value_memory): Rewrite it.  Call
8317         target_xfer_partial in a loop.
8318         * exec.h (section_table_available_memory): Remove declaration.
8319         Move comments to ...
8320         * exec.c (section_table_available_memory): ... here.  Make it
8321         static.
8322
8323 2014-02-23  Yao Qi  <yao@codesourcery.com>
8324
8325         * exec.c (section_table_read_available_memory): New function.
8326         * exec.h (section_table_read_available_memory): Declare.
8327         * ctf.c (ctf_xfer_partial): Call
8328         section_table_read_available_memory.
8329         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8330
8331 2014-02-23  Yao Qi  <yao@codesourcery.com>
8332
8333         * ctf.c (ctf_xfer_partial): Move code to ...
8334         * exec.c (exec_read_partial_read_only): ... it.  New function.
8335         * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8336         * tracefile.c: Include "exec.h".
8337         * exec.h (exec_read_partial_read_only): Declare.
8338
8339 2014-02-23  Yao Qi  <yao@codesourcery.com>
8340
8341         * tracefile-tfile.c (tfile_has_all_memory): Remove.
8342         (tfile_has_memory): Remove.
8343         (init_tfile_ops): Don't set fields to_has_all_memory and
8344         to_has_memory of tfile_ops.
8345         * tracefile.c (tracefile_has_all_memory): New function.
8346         (tracefile_has_memory): New function.
8347         (init_tracefile_ops): Initialize fields to_has_all_memory and
8348         to_has_memory of 'ops'.
8349
8350 2014-02-23  Yao Qi  <yao@codesourcery.com>
8351
8352         * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8353         (ctf_thread_alive, ctf_get_trace_status): Remove.
8354         (init_ctf_ops): Don't set some fields of ctf_ops.  Call
8355         init_tracefile_ops.
8356         * tracefile-tfile.c (tfile_get_trace_status): Remove.
8357         (tfile_has_stack, tfile_has_registers): Remove.
8358         (tfile_thread_alive): Remove.
8359         (init_tfile_ops): Don't set some fields of tfile_ops.  Call
8360         init_tracefile_ops.
8361         * tracefile.c (tracefile_has_stack): New function.
8362         (tracefile_has_registers): New function.
8363         (tracefile_thread_alive): New function.
8364         (tracefile_get_trace_status): New function.
8365         (init_tracefile_ops): New function.
8366         * tracefile.h (init_tracefile_ops): Declare.
8367
8368 2014-02-23  Yao Qi  <yao@codesourcery.com>
8369
8370         * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8371         (O_LARGEFILE): Likewise.
8372         (tfile_ops): Likewise.
8373         (TRACE_HEADER_SIZE): Likewise.
8374         (trace_fd, trace_frames_offset, cur_offset): Likewise.
8375         (cur_data_size): Likewise.
8376         (tfile_read, tfile_open, tfile_interp_line): Likewise.
8377         (tfile_close, tfile_files_info): Likewise.
8378         (tfile_get_trace_status): Likewise.
8379         (tfile_get_tracepoint_status): Likewise.
8380         (tfile_get_traceframe_address): Likewise.
8381         (tfile_trace_find, match_blocktype): Likewise.
8382         (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8383         (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8384         (tfile_get_trace_state_variable_value): Likewise.
8385         (tfile_has_all_memory, tfile_has_memory): Likewise.
8386         (tfile_has_stack, tfile_has_registers): Likewise.
8387         (tfile_thread_alive, build_traceframe_info): Likewise.
8388         (tfile_traceframe_info, init_tfile_ops): Likewise.
8389         (_initialize_tracepoint): Don't call init_tfile_ops
8390         and add_target_with_completer.
8391         * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8392         exec.h, completer.h and filenames.h.
8393         (_initialize_tracefile_tfile): New function.
8394
8395 2014-02-23  Yao Qi  <yao@codesourcery.com>
8396
8397         * Makefile.in (REMOTE_OBS): Append tracefile.o and
8398         tracefile-tfile.o.
8399         (HFILES_NO_SRCDIR): Add tracefile.h.
8400         * ctf.c: Include "tracefile.h".
8401         * tracefile.h: New file.
8402         * tracefile.c: New file
8403         * tracefile-tfile.c: New file.
8404         * tracepoint.c: Include "tracefile.h".
8405         (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8406         (stop_reason_names): Add const.
8407         (trace_file_writer_xfree): Move it to tracefile.c.
8408         (trace_save, trace_save_command, trace_save_tfile): Likewise.
8409         (trace_save_ctf): Likewise.
8410         (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8411         (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8412         (tfile_write_header, tfile_write_regblock_type): Likewise.
8413         (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8414         (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8415         (tfile_write_raw_data, tfile_end): Likewise.
8416         (tfile_trace_file_writer_new): Likewise.
8417         (free_uploaded_tp): Make it extern.
8418         (free_uploaded_tsv): Make it extern.
8419         (_initialize_tracepoint): Move code to register command 'tsave'
8420         to tracefile.c.
8421         * tracepoint.h (stop_reason_names): Declare.
8422         (struct trace_frame_write_ops): Move it to tracefile.h.
8423         (struct trace_file_write_ops): Likewise.
8424         (struct trace_file_writer): Likewise.
8425         (free_uploaded_tsvs, free_uploaded_tps): Declare.
8426
8427 2014-02-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
8428
8429         PR gdb/16594
8430         * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8431         process name.
8432         (get_cores_used_by_process): New parameter num_cores, use it.
8433         (linux_xfer_osdata_processes): Pass num_cores to it.
8434         * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8435         process name.
8436
8437 2014-02-21  Andreas Arnez  <arnez@vnet.linux.ibm.com>
8438
8439         * target.c (memory_xfer_partial): Fix length arg in call to
8440         breakpoint_xfer_memory.
8441
8442 2014-02-20  Sergio Durigan Junior  <sergiodj@redhat.com>
8443
8444         PR tdep/16397
8445         * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8446         number comes after the + or - signs.  Adjust length of register
8447         name to be extracted.
8448
8449 2014-02-20  Tom Tromey  <tromey@redhat.com>
8450
8451         * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8452         (ada_varobj_ops): Mark "extern".
8453
8454 2014-02-20  Tom Tromey  <tromey@redhat.com>
8455
8456         * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8457
8458 2014-02-20  Doug Evans  <xdje42@gmail.com>
8459
8460         * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8461         All callers updated.
8462         (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8463         All callers updated.
8464         * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8465         (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8466
8467 2014-02-20  lin zuojian  <manjian2006@gmail.com>
8468             Joel Brobecker  <brobecker@adacore.com>
8469             Doug Evans  <xdje42@gmail.com>
8470
8471         PR symtab/16581
8472         * dwarf2read.c (struct die_info): New member in_process.
8473         (reset_die_in_process): New function.
8474         (process_die): Set it at the start, reset when returning.
8475         (inherit_abstract_dies): Only call process_die if origin_child_die
8476         not already being processed.
8477
8478 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8479
8480         * windows-nat.c (handle_unload_dll): Add function documentation.
8481         (do_initial_windows_stuff): Add comment explaining why we wait
8482         until after inferior initialization has finished before
8483         processing all DLLs.
8484
8485 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8486
8487         * windows-nat.c (get_module_name): Delete.
8488         (windows_get_exec_module_filename): New function, mostly
8489         inspired from get_module_name.
8490         (windows_pid_to_exec_file): Replace call to get_module_name
8491         by call to windows_get_exec_module_filename.
8492
8493 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8494
8495         * windows-nat.c (handle_load_dll): Rewrite this function's
8496         introductory comment.  Remove code using get_module_name
8497         to get the DLL's name.
8498
8499 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8500
8501         * windows-nat.c (get_windows_debug_event): Ignore
8502         LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8503         if windows_initialization_done == 0.
8504         (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8505         Adjust implementation to always load all DLLs.
8506         (do_initial_windows_stuff): Replace call to
8507         windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8508
8509 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8510
8511         * windows-nat.c (_initialize_windows_nat): Deprecate the
8512         "dll-symbols" command.  Turn the "add-shared-symbol-files"
8513         and "assf" aliases into commands, and deprecate them as well.
8514         * NEWS: Add entry explaining that "dll-symbols" and its two
8515         aliases are now deprecated.
8516
8517 2014-02-20  Joel Brobecker  <brobecker@adacore.com>
8518
8519         * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8520         new-line in debug string.  Remove trailing spaces.
8521
8522 2014-02-19  Stan Shebs  <stan@codesourcery.com>
8523
8524         * darwin-nat.c (darwin_xfer_partial): Fix return type.
8525
8526 2014-02-19  Siva Chandra Reddy  <sivachandra@google.com>
8527
8528         * NEWS: Add entry for the new feature
8529         * python/py-value.c (valpy_binop): Call value_x_binop for struct
8530         and class values.
8531
8532 2014-02-19  Stan Shebs  <stan@codesourcery.com>
8533
8534         * MAINTAINERS: List Yao Qi as nios2 maintainer.
8535
8536 2014-02-19  Pedro Alves  <palves@redhat.com>
8537
8538         * common/ptid.h (struct ptid): Mention that process_stratum
8539         targets should prefer ptid.lwp.
8540
8541 2014-02-19  Pedro Alves  <palves@redhat.com>
8542
8543         * remote.c (remote_thread_alive, write_ptid, read_ptid)
8544         (read_ptid, remote_newthread_step, remote_threads_extra_info)
8545         (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8546         (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8547         store remote thread ids rather than ptid.tid.
8548         (_initialize_remote): Adjust.
8549
8550 2014-02-19  Tom Tromey  <tromey@redhat.com>
8551
8552         * target.c (target_get_unwinder): Rewrite.
8553         (target_get_tailcall_unwinder): Rewrite.
8554         * record-btrace.c (record_btrace_to_get_unwinder): New function.
8555         (record_btrace_to_get_tailcall_unwinder): New function.
8556         (init_record_btrace_ops): Update.
8557         * target.h (struct target_ops) <to_get_unwinder,
8558         to_get_tailcall_unwinder>: Now function pointers.  Use
8559         TARGET_DEFAULT_RETURN.
8560
8561 2014-02-19  Tom Tromey  <tromey@redhat.com>
8562
8563         * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8564         argument.
8565         (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8566
8567 2014-02-19  Tom Tromey  <tromey@redhat.com>
8568
8569         * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8570         directly.
8571         * target-delegates.c: Rebuild.
8572         * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8573         TARGET_DEFAULT_FUNC.
8574         * target.c (default_target_decr_pc_after_break): Rename from
8575         forward_target_decr_pc_after_break.  Simplify.
8576         (target_decr_pc_after_break): Rely on delegation.
8577
8578 2014-02-19  Tom Tromey  <tromey@redhat.com>
8579
8580         * target.c (update_current_target): Do not INHERIT to_doc or
8581         to_magic.  Do not de_fault to_open or to_close.
8582
8583 2014-02-19  Tom Tromey  <tromey@redhat.com>
8584
8585         * gcore.h (objfile_find_memory_regions): Declare.
8586         * gcore.c (objfile_find_memory_regions): No longer static.  Add
8587         "self" argument.
8588         (_initialize_gcore): Don't call exec_set_find_memory_regions.
8589         * exec.c: Include gcore.h.
8590         (exec_set_find_memory_regions): Remove.
8591         (exec_find_memory_regions): Remove.
8592         (exec_do_find_memory_regions): Remove.
8593         (init_exec_ops): Update.
8594         * defs.h (exec_set_find_memory_regions): Remove.
8595
8596 2014-02-19  Tom Tromey  <tromey@redhat.com>
8597
8598         * target-delegates.c: Rebuild.
8599         * target.h (struct target_ops) <to_extra_thread_info,
8600         to_thread_name, to_pid_to_exec_file, to_get_section_table,
8601         to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8602         not 0, in TARGET_DEFAULT_RETURN.
8603
8604 2014-02-19  Tom Tromey  <tromey@redhat.com>
8605
8606         * target.c (complete_target_initialization): Remove casts.  Use
8607         return_zero_has_execution.
8608         (return_zero): Add "ignore" argument.
8609         (return_zero_has_execution): New function.
8610         (init_dummy_target): Remove casts.  Use
8611         return_zero_has_execution.
8612
8613 2014-02-19  Tom Tromey  <tromey@redhat.com>
8614
8615         * target.c (update_current_target): Update comments.  Do not
8616         INHERIT to_stratum.
8617
8618 2014-02-19  Tom Tromey  <tromey@redhat.com>
8619
8620         * arm-linux-nat.c (arm_linux_read_description): Delegate when
8621         needed.
8622         * corelow.c (core_read_description): Delegate when needed.
8623         * remote.c (remote_read_description): Delegate when needed.
8624         * target-delegates.c: Rebuild.
8625         * target.c (target_read_description): Rewrite.
8626         * target.h (struct target_ops) <to_read_description>: Update
8627         comment.  Use TARGET_DEFAULT_RETURN.
8628
8629 2014-02-19  Tom Tromey  <tromey@redhat.com>
8630
8631         * target-delegates.c: Rebuild.
8632         * target.c (update_current_target): Don't inherit or default
8633         to_can_run.
8634         (find_default_run_target): Check against delegate_can_run.
8635         * target.h (struct target_ops) <to_can_run>: Use
8636         TARGET_DEFAULT_RETURN.
8637
8638 2014-02-19  Tom Tromey  <tromey@redhat.com>
8639
8640         * target-delegates.c: Rebuild.
8641         * target.c (target_disconnect): Unconditionally delegate.
8642         * target.h (struct target_ops) <to_disconnect>: Use
8643         TARGET_DEFAULT_NORETURN.
8644
8645 2014-02-19  Tom Tromey  <tromey@redhat.com>
8646
8647         * record.c (record_stop): Unconditionally delegate.
8648         * target-delegates.c: Rebuild.
8649         * target.c (target_stop_recording): Unconditionally delegate.
8650         * target.h (struct target_ops) <to_stop_recording>: Use
8651         TARGET_DEFAULT_IGNORE.
8652
8653 2014-02-19  Tom Tromey  <tromey@redhat.com>
8654
8655         * target-delegates.c: Rebuild.
8656         * target.c (target_enable_btrace): Unconditionally delegate.
8657         * target.h (struct target_ops) <to_enable_btrace>: Use
8658         TARGET_DEFAULT_NORETURN.
8659
8660 2014-02-19  Tom Tromey  <tromey@redhat.com>
8661
8662         * target-delegates.c: Rebuild.
8663         * target.c (target_read_btrace): Unconditionally delegate.
8664         * target.h (struct target_ops) <to_read_btrace>: Use
8665         TARGET_DEFAULT_NORETURN.
8666
8667 2014-02-19  Tom Tromey  <tromey@redhat.com>
8668
8669         * target-delegates.c: Rebuild.
8670         * target.c (target_teardown_btrace): Unconditionally delegate.
8671         * target.h (struct target_ops) <to_teardown_btrace>: Use
8672         TARGET_DEFAULT_NORETURN.
8673
8674 2014-02-19  Tom Tromey  <tromey@redhat.com>
8675
8676         * target-delegates.c: Rebuild.
8677         * target.c (target_disable_btrace): Unconditionally delegate.
8678         * target.h (struct target_ops) <to_disable_btrace>: Use
8679         TARGET_DEFAULT_NORETURN.
8680
8681 2014-02-19  Tom Tromey  <tromey@redhat.com>
8682
8683         * target-delegates.c: Rebuild.
8684         * target.c (default_search_memory): New function.
8685         (simple_search_memory): Update comment.
8686         (target_search_memory): Unconditionally delegate.
8687         * target.h (struct target_ops) <to_search_memory>: Use
8688         TARGET_DEFAULT_FUNC.
8689
8690 2014-02-19  Tom Tromey  <tromey@redhat.com>
8691
8692         * auxv.c (default_auxv_parse): No longer static.
8693         (target_auxv_parse): Unconditionally delegate.
8694         * auxv.h (default_auxv_parse): Declare.
8695         * target-delegates.c: Rebuild.
8696         * target.c: Include auxv.h.
8697         * target.h (struct target_ops) <to_auxv_parse>: Use
8698         TARGET_DEFAULT_FUNC.
8699
8700 2014-02-19  Tom Tromey  <tromey@redhat.com>
8701
8702         * target-delegates.c: Rebuild.
8703         * target.c (target_memory_map): Unconditionally delegate.
8704         * target.h (struct target_ops) <to_memory_map>: Use
8705         TARGET_DEFAULT_RETURN.
8706
8707 2014-02-19  Tom Tromey  <tromey@redhat.com>
8708
8709         * target-delegates.c: Rebuild.
8710         * target.c (target_thread_alive): Unconditionally delegate.
8711         * target.h (struct target_ops) <to_thread_alive>: Use
8712         TARGET_DEFAULT_RETURN.
8713
8714 2014-02-19  Tom Tromey  <tromey@redhat.com>
8715
8716         * target-delegates.c: Rebuild.
8717         * target.c (target_save_record): Unconditionally delegate.
8718         * target.h (struct target_ops) <to_save_record>: Use
8719         TARGET_DEFAULT_NORETURN.
8720
8721 2014-02-19  Tom Tromey  <tromey@redhat.com>
8722
8723         * target-delegates.c: Rebuild.
8724         * target.c (target_delete_record): Unconditionally delegate.
8725         * target.h (struct target_ops) <to_delete_record>: Use
8726         TARGET_DEFAULT_NORETURN.
8727
8728 2014-02-19  Tom Tromey  <tromey@redhat.com>
8729
8730         * target-delegates.c: Rebuild.
8731         * target.c (target_record_is_replaying): Unconditionally
8732         delegate.
8733         * target.h (struct target_ops) <to_record_is_replaying>: Use
8734         TARGET_DEFAULT_RETURN.
8735
8736 2014-02-19  Tom Tromey  <tromey@redhat.com>
8737
8738         * target-delegates.c: Rebuild.
8739         * target.c (target_goto_record_begin): Unconditionally delegate.
8740         * target.h (struct target_ops) <to_goto_record_begin>: Use
8741         TARGET_DEFAULT_NORETURN.
8742
8743 2014-02-19  Tom Tromey  <tromey@redhat.com>
8744
8745         * target-delegates.c: Rebuild.
8746         * target.c (target_goto_record_end): Unconditionally delegate.
8747         * target.h (struct target_ops) <to_goto_record_end>: Use
8748         TARGET_DEFAULT_NORETURN.
8749
8750 2014-02-19  Tom Tromey  <tromey@redhat.com>
8751
8752         * target-delegates.c: Rebuild.
8753         * target.c (target_goto_record): Unconditionally delegate.
8754         * target.h (struct target_ops) <to_goto_record>: Use
8755         TARGET_DEFAULT_NORETURN.
8756
8757 2014-02-19  Tom Tromey  <tromey@redhat.com>
8758
8759         * target-delegates.c: Rebuild.
8760         * target.c (target_insn_history): Unconditionally delegate.
8761         * target.h (struct target_ops) <to_insn_history>: Use
8762         TARGET_DEFAULT_NORETURN.
8763
8764 2014-02-19  Tom Tromey  <tromey@redhat.com>
8765
8766         * target-delegates.c: Rebuild.
8767         * target.c (target_insn_history_from): Unconditionally delegate.
8768         * target.h (struct target_ops) <to_insn_history_from>: Use
8769         TARGET_DEFAULT_NORETURN.
8770
8771 2014-02-19  Tom Tromey  <tromey@redhat.com>
8772
8773         * target-delegates.c: Rebuild.
8774         * target.c (target_insn_history_range): Unconditionally delegate.
8775         * target.h (struct target_ops) <to_insn_history_range>: Use
8776         TARGET_DEFAULT_NORETURN.
8777
8778 2014-02-19  Tom Tromey  <tromey@redhat.com>
8779
8780         * target-delegates.c: Rebuild.
8781         * target.c (target_call_history): Unconditionally delegate.
8782         * target.h (struct target_ops) <to_call_history>: Use
8783         TARGET_DEFAULT_NORETURN.
8784
8785 2014-02-19  Tom Tromey  <tromey@redhat.com>
8786
8787         * target-delegates.c: Rebuild.
8788         * target.c (target_call_history_from): Unconditionally delegate.
8789         * target.h (struct target_ops) <to_call_history_from>: Use
8790         TARGET_DEFAULT_NORETURN.
8791
8792 2014-02-19  Tom Tromey  <tromey@redhat.com>
8793
8794         * target-delegates.c: Rebuild.
8795         * target.c (target_call_history_range): Unconditionally delegate.
8796         * target.h (struct target_ops) <to_call_history_range>: Use
8797         TARGET_DEFAULT_NORETURN.
8798
8799 2014-02-19  Tom Tromey  <tromey@redhat.com>
8800
8801         * target-delegates.c: Rebuild.
8802         * target.c (target_verify_memory): Unconditionally delegate.
8803         * target.h (struct target_ops) <to_verify_memory>: Use
8804         TARGET_DEFAULT_NORETURN.
8805
8806 2014-02-19  Tom Tromey  <tromey@redhat.com>
8807
8808         * target-delegates.c: Rebuild.
8809         * target.c (target_core_of_thread): Unconditionally delegate.
8810         * target.h (struct target_ops) <to_core_of_thread>: Use
8811         TARGET_DEFAULT_RETURN.
8812
8813 2014-02-19  Tom Tromey  <tromey@redhat.com>
8814
8815         * target-delegates.c: Rebuild.
8816         * target.c (target_flash_done): Unconditionally delegate.
8817         * target.h (struct target_ops) <to_flash_done>: Use
8818         TARGET_DEFAULT_NORETURN.
8819
8820 2014-02-19  Tom Tromey  <tromey@redhat.com>
8821
8822         * target-delegates.c: Rebuild.
8823         * target.c (target_flash_erase): Unconditionally delegate.
8824         * target.h (struct target_ops) <to_flash_erase>: Use
8825         TARGET_DEFAULT_NORETURN.
8826
8827 2014-02-19  Tom Tromey  <tromey@redhat.com>
8828
8829         * target-delegates.c: Rebuild.
8830         * target.c (target_get_section_table): Unconditionally delegate.
8831         * target.h (struct target_ops) <to_get_section_table>: Use
8832         TARGET_DEFAULT_RETURN.
8833
8834 2014-02-19  Tom Tromey  <tromey@redhat.com>
8835
8836         * target-delegates.c: Rebuild.
8837         * target.c (target_pid_to_str): Unconditionally delegate.
8838         (init_dummy_target): Don't initialize to_pid_to_str.
8839         (default_pid_to_str): Rename from dummy_pid_to_str.
8840         * target.h (struct target_ops) <to_pid_to_str>: Use
8841         TARGET_DEFAULT_FUNC.
8842
8843 2014-02-19  Tom Tromey  <tromey@redhat.com>
8844
8845         * target-delegates.c: Rebuild.
8846         * target.c (target_find_new_threads): Unconditionally delegate.
8847         * target.h (struct target_ops) <to_find_new_threads>: Use
8848         TARGET_DEFAULT_RETURN.
8849
8850 2014-02-19  Tom Tromey  <tromey@redhat.com>
8851
8852         * target-delegates.c: Rebuild.
8853         * target.c (target_program_signals): Unconditionally delegate.
8854         * target.h (struct target_ops) <to_program_signals>: Use
8855         TARGET_DEFAULT_IGNORE.
8856
8857 2014-02-19  Tom Tromey  <tromey@redhat.com>
8858
8859         * target-delegates.c: Rebuild.
8860         * target.c (target_pass_signals): Unconditionally delegate.
8861         * target.h (struct target_ops) <to_pass_signals>: Use
8862         TARGET_DEFAULT_IGNORE.
8863
8864 2014-02-19  Tom Tromey  <tromey@redhat.com>
8865
8866         * target-delegates.c: Rebuild.
8867         * target.c (default_mourn_inferior): New function.
8868         (target_mourn_inferior): Unconditionally delegate.
8869         * target.h (struct target_ops) <to_mourn_inferior>: Use
8870         TARGET_DEFAULT_FUNC.
8871
8872 2014-02-19  Tom Tromey  <tromey@redhat.com>
8873
8874         * target-delegates.c: Rebuild.
8875         * target.c (default_follow_fork): New function.
8876         (target_follow_fork): Unconditionally delegate.
8877         * target.h (struct target_ops) <to_follow_fork>: Use
8878         TARGET_DEFAULT_FUNC.
8879
8880 2014-02-19  Tom Tromey  <tromey@redhat.com>
8881
8882         * target-delegates.c: Rebuild.
8883         * target.c (target_kill): Unconditionally delegate.
8884         * target.h (struct target_ops) <to_kill>: Use
8885         TARGET_DEFAULT_NORETURN.
8886
8887 2014-02-19  Tom Tromey  <tromey@redhat.com>
8888
8889         * target-delegates.c: Rebuild.
8890         * target.c (target_masked_watch_num_registers): Unconditionally
8891         delegate.
8892         * target.h (struct target_ops) <to_masked_watch_num_registers>:
8893         Use TARGET_DEFAULT_RETURN.
8894
8895 2014-02-19  Tom Tromey  <tromey@redhat.com>
8896
8897         * target-delegates.c: Rebuild.
8898         * target.c (target_remove_mask_watchpoint): Unconditionally
8899         delegate.
8900         * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8901         TARGET_DEFAULT_RETURN.
8902
8903 2014-02-19  Tom Tromey  <tromey@redhat.com>
8904
8905         * target-delegates.c: Rebuild.
8906         * target.c (target_insert_mask_watchpoint): Unconditionally
8907         delegate.
8908         * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8909         TARGET_DEFAULT_RETURN.
8910
8911 2014-02-19  Tom Tromey  <tromey@redhat.com>
8912
8913         * target-delegates.c: Rebuild.
8914         * target.c (target_ranged_break_num_registers): Unconditionally
8915         delegate.
8916         * target.h (struct target_ops) <to_ranged_break_num_registers>:
8917         Use TARGET_DEFAULT_RETURN.
8918
8919 2014-02-19  Tom Tromey  <tromey@redhat.com>
8920
8921         * target-delegates.c: Rebuild.
8922         * target.c (target_fetch_registers): Unconditionally delegate.
8923         * target.h (struct target_ops) <to_fetch_registers>: Use
8924         TARGET_DEFAULT_NORETURN.
8925
8926 2014-02-19  Tom Tromey  <tromey@redhat.com>
8927
8928         * target-delegates.c: Rebuild.
8929         * target.c (update_current_target): Don't inherit or default
8930         to_stop.
8931         * target.h (struct target_ops) <to_stop>: Use
8932         TARGET_DEFAULT_IGNORE.
8933
8934 2014-02-19  Tom Tromey  <tromey@redhat.com>
8935
8936         * target-delegates.c: Rebuild.
8937         * target.c (update_current_target): Don't inherit or default
8938         to_can_run_breakpoint_commands.
8939         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8940         Use TARGET_DEFAULT_RETURN.
8941
8942 2014-02-19  Tom Tromey  <tromey@redhat.com>
8943
8944         * target-delegates.c: Rebuild.
8945         * target.c (update_current_target): Don't inherit or default
8946         to_supports_evaluation_of_breakpoint_conditions.
8947         * target.h (struct target_ops)
8948         <to_supports_evaluation_of_breakpoint_conditions>: Use
8949         TARGET_DEFAULT_RETURN.
8950
8951 2014-02-19  Tom Tromey  <tromey@redhat.com>
8952
8953         * target-delegates.c: Rebuild.
8954         * target.c (update_current_target): Don't inherit or default
8955         to_augmented_libraries_svr4_read.
8956         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8957         Use TARGET_DEFAULT_RETURN.
8958
8959 2014-02-19  Tom Tromey  <tromey@redhat.com>
8960
8961         * target-delegates.c: Rebuild.
8962         * target.c (update_current_target): Don't inherit or default
8963         to_can_use_agent.
8964         * target.h (struct target_ops) <to_can_use_agent>: Use
8965         TARGET_DEFAULT_RETURN.
8966
8967 2014-02-19  Tom Tromey  <tromey@redhat.com>
8968
8969         * target-delegates.c: Rebuild.
8970         * target.c (update_current_target): Don't inherit or default
8971         to_use_agent.
8972         * target.h (struct target_ops) <to_use_agent>: Use
8973         TARGET_DEFAULT_NORETURN.
8974
8975 2014-02-19  Tom Tromey  <tromey@redhat.com>
8976
8977         * target-delegates.c: Rebuild.
8978         * target.c (update_current_target): Don't inherit or default
8979         to_traceframe_info.
8980         (return_null): Remove.
8981         * target.h (struct target_ops) <to_traceframe_info>: Use
8982         TARGET_DEFAULT_RETURN.
8983
8984 2014-02-19  Tom Tromey  <tromey@redhat.com>
8985
8986         * target-delegates.c: Rebuild.
8987         * target.c (update_current_target): Don't inherit or default
8988         to_static_tracepoint_markers_by_strid.
8989         * target.h (struct target_ops)
8990         <to_static_tracepoint_markers_by_strid>: Use
8991         TARGET_DEFAULT_NORETURN.
8992
8993 2014-02-19  Tom Tromey  <tromey@redhat.com>
8994
8995         * target-delegates.c: Rebuild.
8996         * target.c (update_current_target): Don't inherit or default
8997         to_static_tracepoint_marker_at.
8998         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8999         Use TARGET_DEFAULT_RETURN.
9000
9001 2014-02-19  Tom Tromey  <tromey@redhat.com>
9002
9003         * target-delegates.c: Rebuild.
9004         * target.c (update_current_target): Don't inherit or default
9005         to_set_permissions.
9006         * target.h (struct target_ops) <to_set_permissions>: Use
9007         TARGET_DEFAULT_IGNORE.
9008
9009 2014-02-19  Tom Tromey  <tromey@redhat.com>
9010
9011         * target-delegates.c: Rebuild.
9012         * target.c (update_current_target): Don't inherit or default
9013         to_get_tib_address.
9014         * target.h (struct target_ops) <to_get_tib_address>: Use
9015         TARGET_DEFAULT_NORETURN.
9016
9017 2014-02-19  Tom Tromey  <tromey@redhat.com>
9018
9019         * target-delegates.c: Rebuild.
9020         * target.c (update_current_target): Don't inherit or default
9021         to_set_trace_notes.
9022         * target.h (struct target_ops) <to_set_trace_notes>: Use
9023         TARGET_DEFAULT_RETURN.
9024
9025 2014-02-19  Tom Tromey  <tromey@redhat.com>
9026
9027         * target-delegates.c: Rebuild.
9028         * target.c (update_current_target): Don't initialize
9029         to_set_trace_buffer_size.
9030         * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
9031         TARGET_DEFAULT_IGNORE.
9032
9033 2014-02-19  Tom Tromey  <tromey@redhat.com>
9034
9035         * target-delegates.c: Rebuild.
9036         * target.c (update_current_target): Don't inherit or default
9037         to_set_circular_trace_buffer.
9038         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
9039         TARGET_DEFAULT_IGNORE.
9040
9041 2014-02-19  Tom Tromey  <tromey@redhat.com>
9042
9043         * target-delegates.c: Rebuild.
9044         * target.c (update_current_target): Don't inherit or default
9045         to_set_disconnected_tracing.
9046         * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
9047         TARGET_DEFAULT_IGNORE.
9048
9049 2014-02-19  Tom Tromey  <tromey@redhat.com>
9050
9051         * target-delegates.c: Rebuild.
9052         * target.c (update_current_target): Don't inherit or default
9053         to_get_min_fast_tracepoint_insn_len.
9054         (return_minus_one): Remove.
9055         * target.h (struct target_ops)
9056         <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
9057
9058 2014-02-19  Tom Tromey  <tromey@redhat.com>
9059
9060         * target-delegates.c: Rebuild.
9061         * target.c (update_current_target): Don't inherit or default
9062         to_get_raw_trace_data.
9063         * target.h (struct target_ops) <to_get_raw_trace_data>: Use
9064         TARGET_DEFAULT_NORETURN.
9065
9066 2014-02-19  Tom Tromey  <tromey@redhat.com>
9067
9068         * target-delegates.c: Rebuild.
9069         * target.c (update_current_target): Don't inherit or default
9070         to_upload_trace_state_variables.
9071         * target.h (struct target_ops) <to_upload_trace_state_variables>:
9072         Use TARGET_DEFAULT_RETURN.
9073
9074 2014-02-19  Tom Tromey  <tromey@redhat.com>
9075
9076         * target-delegates.c: Rebuild.
9077         * target.c (update_current_target): Don't inherit or default
9078         to_upload_tracepoints.
9079         * target.h (struct target_ops) <to_upload_tracepoints>: 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_save_trace_data.
9087         * target.h (struct target_ops) <to_save_trace_data>: Use
9088         TARGET_DEFAULT_NORETURN.
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_get_trace_state_variable_value.
9095         * target.h (struct target_ops)
9096         <to_get_trace_state_variable_value>: Use 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_trace_find.
9103         * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
9104
9105 2014-02-19  Tom Tromey  <tromey@redhat.com>
9106
9107         * target-delegates.c: Rebuild.
9108         * target.c (update_current_target): Don't inherit or default
9109         to_trace_stop.
9110         * target.h (struct target_ops) <to_trace_stop>: Use
9111         TARGET_DEFAULT_NORETURN.
9112
9113 2014-02-19  Tom Tromey  <tromey@redhat.com>
9114
9115         * target-delegates.c: Rebuild.
9116         * target.c (update_current_target): Don't inherit or default
9117         to_get_tracepoint_status.
9118         * target.h (struct target_ops) <to_get_tracepoint_status>: Use
9119         TARGET_DEFAULT_NORETURN.
9120
9121 2014-02-19  Tom Tromey  <tromey@redhat.com>
9122
9123         * target-delegates.c: Rebuild.
9124         * target.c (update_current_target): Don't inherit or default
9125         to_get_trace_status.
9126         * target.h (struct target_ops) <to_get_trace_status>: Use
9127         TARGET_DEFAULT_RETURN.
9128
9129 2014-02-19  Tom Tromey  <tromey@redhat.com>
9130
9131         * target-delegates.c: Rebuild.
9132         * target.c (update_current_target): Don't inherit or default
9133         to_trace_start.
9134         * target.h (struct target_ops) <to_trace_start>: Use
9135         TARGET_DEFAULT_NORETURN.
9136
9137 2014-02-19  Tom Tromey  <tromey@redhat.com>
9138
9139         * target-delegates.c: Rebuild.
9140         * target.c (update_current_target): Don't inherit or default
9141         to_trace_set_readonly_regions.
9142         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9143         Use TARGET_DEFAULT_NORETURN.
9144
9145 2014-02-19  Tom Tromey  <tromey@redhat.com>
9146
9147         * target-delegates.c: Rebuild.
9148         * target.c (update_current_target): Don't inherit or default
9149         to_disable_tracepoint.
9150         * target.h (struct target_ops) <to_disable_tracepoint>: Use
9151         TARGET_DEFAULT_NORETURN.
9152
9153 2014-02-19  Tom Tromey  <tromey@redhat.com>
9154
9155         * target-delegates.c: Rebuild.
9156         * target.c (update_current_target): Don't inherit or default
9157         to_enable_tracepoint.
9158         * target.h (struct target_ops) <to_enable_tracepoint>: Use
9159         TARGET_DEFAULT_NORETURN.
9160
9161 2014-02-19  Tom Tromey  <tromey@redhat.com>
9162
9163         * target-delegates.c: Rebuild.
9164         * target.c (update_current_target): Don't inherit or default
9165         to_download_trace_state_variable.
9166         * target.h (struct target_ops) <to_download_trace_state_variable>:
9167         Use TARGET_DEFAULT_NORETURN.
9168
9169 2014-02-19  Tom Tromey  <tromey@redhat.com>
9170
9171         * target-delegates.c: Rebuild.
9172         * target.c (update_current_target): Don't inherit or default
9173         to_can_download_tracepoint.
9174         * target.h (struct target_ops) <to_can_download_tracepoint>: Use
9175         TARGET_DEFAULT_RETURN.
9176
9177 2014-02-19  Tom Tromey  <tromey@redhat.com>
9178
9179         * target-delegates.c: Rebuild.
9180         * target.c (update_current_target): Don't inherit or default
9181         to_download_tracepoint.
9182         * target.h (struct target_ops) <to_download_tracepoint>: Use
9183         TARGET_DEFAULT_NORETURN.
9184
9185 2014-02-19  Tom Tromey  <tromey@redhat.com>
9186
9187         * target-delegates.c: Rebuild.
9188         * target.c (update_current_target): Don't inherit or default
9189         to_trace_init.
9190         * target.h (struct target_ops) <to_trace_init>: Use
9191         TARGET_DEFAULT_RETURN.
9192
9193 2014-02-19  Tom Tromey  <tromey@redhat.com>
9194
9195         * target-delegates.c: Rebuild.
9196         * target.c (update_current_target): Don't inherit or default
9197         to_supports_string_tracing.
9198         * target.h (struct target_ops) <to_supports_string_tracing>: Use
9199         TARGET_DEFAULT_RETURN.
9200
9201 2014-02-19  Tom Tromey  <tromey@redhat.com>
9202
9203         * target-delegates.c: Rebuild.
9204         * target.c (update_current_target): Don't inherit or default
9205         to_supports_enable_disable_tracepoint.
9206         * target.h (struct target_ops)
9207         <to_supports_enable_disable_tracepoint>: Use
9208         TARGET_DEFAULT_RETURN.
9209
9210 2014-02-19  Tom Tromey  <tromey@redhat.com>
9211
9212         * target-delegates.c: Rebuild.
9213         * target.c (update_current_target): Don't inherit or default
9214         to_supports_multi_process.
9215         * target.h (struct target_ops) <to_supports_multi_process>: Use
9216         TARGET_DEFAULT_RETURN.
9217
9218 2014-02-19  Tom Tromey  <tromey@redhat.com>
9219
9220         * target-delegates.c: Rebuild.
9221         * target.c (update_current_target): Don't inherit or default
9222         to_get_ada_task_ptid.
9223         * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
9224         TARGET_DEFAULT_FUNC.
9225
9226 2014-02-19  Tom Tromey  <tromey@redhat.com>
9227
9228         * target-delegates.c: Rebuild.
9229         * target.c (update_current_target): Don't inherit or default
9230         to_thread_architecture.
9231         * target.h (struct target_ops) <to_thread_architecture>: Use
9232         TARGET_DEFAULT_FUNC.
9233
9234 2014-02-19  Tom Tromey  <tromey@redhat.com>
9235
9236         * target-delegates.c: Rebuild.
9237         * target.c (update_current_target): Don't inherit or default
9238         to_execution_direction.
9239         * target.h (struct target_ops) <to_execution_direction>: Use
9240         TARGET_DEFAULT_FUNC.
9241
9242 2014-02-19  Tom Tromey  <tromey@redhat.com>
9243
9244         * target-delegates.c: Rebuild.
9245         * target.c (update_current_target): Don't inherit or default
9246         to_can_execute_reverse.
9247         * target.h (struct target_ops) <to_can_execute_reverse>: Use
9248         TARGET_DEFAULT_RETURN.
9249         (target_can_execute_reverse): Unconditionally delegate.
9250
9251 2014-02-19  Tom Tromey  <tromey@redhat.com>
9252
9253         * target-delegates.c: Rebuild.
9254         * target.c (update_current_target): Don't inherit or default
9255         to_goto_bookmark.
9256         (dummy_goto_bookmark): Remove.
9257         (init_dummy_target): Don't inherit or default to_goto_bookmark.
9258         * target.h (struct target_ops) <to_goto_bookmark>: Use
9259         TARGET_DEFAULT_NORETURN.
9260
9261 2014-02-19  Tom Tromey  <tromey@redhat.com>
9262
9263         * target-delegates.c: Rebuild.
9264         * target.c (update_current_target): Don't inherit or default
9265         to_get_bookmark.
9266         (dummy_get_bookmark): Remove.
9267         (init_dummy_target): Don't inherit or default to_get_bookmark.
9268         * target.h (struct target_ops) <to_get_bookmark>: Use
9269         TARGET_DEFAULT_NORETURN
9270
9271 2014-02-19  Tom Tromey  <tromey@redhat.com>
9272
9273         * target-delegates.c: Rebuild.
9274         * target.c (update_current_target): Don't inherit or default
9275         to_make_corefile_notes.
9276         (init_dummy_target): Don't initialize to_make_corefile_notes.
9277         * target.h (struct target_ops) <to_make_corefile_notes>: Use
9278         TARGET_DEFAULT_FUNC.
9279
9280 2014-02-19  Tom Tromey  <tromey@redhat.com>
9281
9282         * target-delegates.c: Rebuild.
9283         * target.c (update_current_target): Don't inherit or default
9284         to_find_memory_regions.
9285         (init_dummy_target): Don't initialize to_find_memory_regions.
9286         * target.h (struct target_ops) <to_find_memory_regions>: Use
9287         TARGET_DEFAULT_FUNC.
9288
9289 2014-02-19  Tom Tromey  <tromey@redhat.com>
9290
9291         * target-delegates.c: Rebuild.
9292         * target.c (update_current_target): Don't inherit or default
9293         to_log_command.
9294         * target.h (struct target_ops) <to_log_command>: Use
9295         TARGET_DEFAULT_IGNORE.
9296         (target_log_command): Unconditionally delegate.
9297
9298 2014-02-19  Tom Tromey  <tromey@redhat.com>
9299
9300         * target-delegates.c: Rebuild.
9301         * target.c (update_current_target): Don't inherit or default
9302         to_pid_to_exec_file.
9303         * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9304         TARGET_DEFAULT_RETURN.
9305
9306 2014-02-19  Tom Tromey  <tromey@redhat.com>
9307
9308         * target-delegates.c: Rebuild.
9309         * target.c (update_current_target): Don't inherit or default
9310         to_thread_name.
9311         (target_thread_name): Unconditionally delegate.
9312         * target.h (struct target_ops) <to_thread_name>: Use
9313         TARGET_DEFAULT_RETURN.
9314
9315 2014-02-19  Tom Tromey  <tromey@redhat.com>
9316
9317         * target-delegates.c: Rebuild.
9318         * target.c (update_current_target): Don't inherit or default
9319         to_extra_thread_info.
9320         * target.h (struct target_ops) <to_extra_thread_info>: Use
9321         TARGET_DEFAULT_RETURN.
9322
9323 2014-02-19  Tom Tromey  <tromey@redhat.com>
9324
9325         * target-delegates.c: Rebuild.
9326         * target.c (update_current_target): Don't inherit or default
9327         to_has_exited.
9328         * target.h (struct target_ops) <to_has_exited>: Use
9329         TARGET_DEFAULT_RETURN..
9330
9331 2014-02-19  Tom Tromey  <tromey@redhat.com>
9332
9333         * target-delegates.c: Rebuild.
9334         * target.c (update_current_target): Don't inherit or default
9335         to_set_syscall_catchpoint.
9336         (return_one): Remove.
9337         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9338         TARGET_DEFAULT_RETURN.
9339
9340 2014-02-19  Tom Tromey  <tromey@redhat.com>
9341
9342         * target-delegates.c: Rebuild.
9343         * target.c (update_current_target): Don't inherit or default
9344         to_insert_exec_catchpoint.
9345         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9346         TARGET_DEFAULT_RETURN.
9347
9348 2014-01-08  Tom Tromey  <tromey@redhat.com>
9349
9350         * target-delegates.c: Rebuild.
9351         * target.c (update_current_target): Don't inherit or default
9352         to_insert_exec_catchpoint.
9353         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9354         TARGET_DEFAULT_RETURN.
9355
9356 2014-02-19  Tom Tromey  <tromey@redhat.com>
9357
9358         * target-delegates.c: Rebuild.
9359         * target.c (update_current_target): Don't inherit or default
9360         to_remove_vfork_catchpoint.
9361         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9362         TARGET_DEFAULT_RETURN.
9363
9364 2014-02-19  Tom Tromey  <tromey@redhat.com>
9365
9366         * target-delegates.c: Rebuild.
9367         * target.c (update_current_target): Don't inherit or default
9368         to_insert_vfork_catchpoint.
9369         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9370         TARGET_DEFAULT_RETURN.
9371
9372 2014-02-19  Tom Tromey  <tromey@redhat.com>
9373
9374         * target-delegates.c: Rebuild.
9375         * target.c (update_current_target): Don't inherit or default
9376         to_remove_fork_catchpoint.
9377         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9378         TARGET_DEFAULT_RETURN.
9379
9380 2014-02-19  Tom Tromey  <tromey@redhat.com>
9381
9382         * target-delegates.c: Rebuild.
9383         * target.c (update_current_target): Don't inherit or default
9384         to_insert_fork_catchpoint.
9385         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9386         TARGET_DEFAULT_RETURN.
9387
9388 2014-02-19  Tom Tromey  <tromey@redhat.com>
9389
9390         * target-delegates.c: Rebuild.
9391         * target.c (update_current_target): Don't inherit or default
9392         to_post_startup_inferior.
9393         * target.h (struct target_ops) <to_post_startup_inferior>: Use
9394         TARGET_DEFAULT_IGNORE.
9395
9396 2014-02-19  Tom Tromey  <tromey@redhat.com>
9397
9398         * target-delegates.c: Rebuild.
9399         * target.c (update_current_target): Don't inherit or default
9400         to_load.
9401         * target.h (struct target_ops) <to_load>: Use
9402         TARGET_DEFAULT_NORETURN.
9403
9404 2014-02-19  Tom Tromey  <tromey@redhat.com>
9405
9406         * target-delegates.c: Rebuild.
9407         * target.c (update_current_target): Don't inherit or default
9408         to_terminal_info.
9409         * target.h (struct target_ops) <to_terminal_info>: Use
9410         TARGET_DEFAULT_FUNC.
9411
9412 2014-02-19  Tom Tromey  <tromey@redhat.com>
9413
9414         * target-delegates.c: Rebuild.
9415         * target.c (update_current_target): Don't inherit or default
9416         to_terminal_save_ours.
9417         * target.h (struct target_ops) <to_terminal_save_ours>: Use
9418         TARGET_DEFAULT_IGNORE.
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_terminal_ours.
9425         * target.h (struct target_ops) <to_terminal_ours>: Use
9426         TARGET_DEFAULT_IGNORE.
9427
9428 2014-02-19  Tom Tromey  <tromey@redhat.com>
9429
9430         * target-delegates.c: Rebuild.
9431         * target.c (update_current_target): Don't inherit or default
9432         to_terminal_ours_for_output.
9433         * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9434         TARGET_DEFAULT_IGNORE.
9435
9436 2014-02-19  Tom Tromey  <tromey@redhat.com>
9437
9438         * target-delegates.c: Rebuild.
9439         * target.c (update_current_target): Don't inherit or default
9440         to_terminal_inferior.
9441         * target.h (struct target_ops) <to_terminal_inferior>: Use
9442         TARGET_DEFAULT_IGNORE.
9443
9444 2014-02-19  Tom Tromey  <tromey@redhat.com>
9445
9446         * target-delegates.c: Rebuild.
9447         * target.c (update_current_target): Don't inherit or default
9448         to_terminal_init.
9449         * target.h (struct target_ops) <to_terminal_init>: Use
9450         TARGET_DEFAULT_IGNORE.
9451
9452 2014-02-19  Tom Tromey  <tromey@redhat.com>
9453
9454         * target-delegates.c: Rebuild.
9455         * target.c (update_current_target): Don't inherit or default
9456         to_can_accel_watchpoint_condition.
9457         * target.h (struct target_ops)
9458         <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9459
9460 2014-02-19  Tom Tromey  <tromey@redhat.com>
9461
9462         * target-delegates.c: Rebuild.
9463         * target.c (update_current_target): Don't inherit or default
9464         to_region_ok_for_hw_watchpoint.
9465         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9466         Use TARGET_DEFAULT_FUNC.
9467
9468 2014-02-19  Tom Tromey  <tromey@redhat.com>
9469
9470         * target-delegates.c: Rebuild.
9471         * target.c (update_current_target): Don't inherit or default
9472         to_watchpoint_addr_within_range.
9473         * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9474         Use TARGET_DEFAULT_FUNC.
9475
9476 2014-02-19  Tom Tromey  <tromey@redhat.com>
9477
9478         * target-delegates.c: Rebuild.
9479         * target.c (update_current_target): Don't inherit or default
9480         to_remove_watchpoint.
9481         * target.h (struct target_ops) <to_remove_watchpoint>: Use
9482         TARGET_DEFAULT_NORETURN.
9483
9484 2014-02-19  Tom Tromey  <tromey@redhat.com>
9485
9486         * target-delegates.c: Rebuild.
9487         * target.c (update_current_target): Don't inherit or default
9488         to_insert_watchpoint.
9489         * target.h (struct target_ops) <to_insert_watchpoint>: Use
9490         TARGET_DEFAULT_RETURN.
9491
9492 2014-02-19  Tom Tromey  <tromey@redhat.com>
9493
9494         * target-delegates.c: Rebuild.
9495         * target.c (update_current_target): Don't inherit or default
9496         to_remove_hw_breakpoint.
9497         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9498         TARGET_DEFAULT_RETURN.
9499
9500 2014-02-19  Tom Tromey  <tromey@redhat.com>
9501
9502         * target-delegates.c: Rebuild.
9503         * target.c (update_current_target): Don't inherit or default
9504         to_insert_hw_breakpoint.
9505         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9506         TARGET_DEFAULT_RETURN.
9507
9508 2014-02-19  Tom Tromey  <tromey@redhat.com>
9509
9510         * target-delegates.c: Rebuild.
9511         * target.c (update_current_target): Don't inherit or default
9512         to_can_use_hw_breakpoint.
9513         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9514         TARGET_DEFAULT_RETURN.
9515
9516 2014-02-19  Tom Tromey  <tromey@redhat.com>
9517
9518         * target-delegates.c: Rebuild.
9519         * target.c (update_current_target): Don't inherit or default
9520         to_files_info.
9521         * target.h (struct target_ops) <to_files_info>: Use
9522         TARGET_DEFAULT_IGNORE.
9523
9524 2014-02-19  Tom Tromey  <tromey@redhat.com>
9525
9526         * target-delegates.c: Rebuild.
9527         * target.c (update_current_target): Don't inherit or default
9528         to_store.
9529         * target.h (struct target_ops) <to_store>: Use
9530         TARGET_DEFAULT_NORETURN.
9531
9532 2014-02-19  Tom Tromey  <tromey@redhat.com>
9533
9534         * target-delegates.c: Rebuild.
9535         * target.c (update_current_target): Don't inherit or default
9536         to_post_attach.
9537         * target.h (struct target_ops) <to_post_attach>: Use
9538         TARGET_DEFAULT_IGNORE.
9539
9540 2014-02-19  Tom Tromey  <tromey@redhat.com>
9541
9542         * target-delegates.c: Rebuild.
9543         * target.c (update_current_target): Don't inherit or default
9544         to_rcmd.
9545         (default_rcmd): New function.
9546         (do_monitor_command): Unconditionally delegate.
9547         * target.h (struct target_ops) <to_rmcd>: Use
9548         TARGET_DEFAULT_FUNC.
9549
9550 2014-02-19  Tom Tromey  <tromey@redhat.com>
9551
9552         * target-delegates.c: Rebuild.
9553         * target.c (init_dummy_target): Don't initialize to_attach.
9554         (target_attach): Unconditionally delegate.
9555         * target.h (struct target_ops) <to_attach>: Use
9556         TARGET_DEFAULT_FUNC.
9557
9558 2014-02-19  Tom Tromey  <tromey@redhat.com>
9559
9560         * target-delegates.c: Rebuild.
9561         * target.c (target_detach): Unconditionally delegate.
9562         (init_dummy_target): Don't initialize to_detach.
9563         * target.h (struct target_ops) <to_detach>: Use
9564         TARGET_DEFAULT_IGNORE.
9565
9566 2014-02-19  Tom Tromey  <tromey@redhat.com>
9567
9568         * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9569         Add argument.
9570         (target_augmented_libraries_svr4_read): Add argument.
9571         * target.c (update_current_target): Update.
9572         * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9573         argument.
9574
9575 2014-02-19  Tom Tromey  <tromey@redhat.com>
9576
9577         * target.h (struct target_ops) <to_call_history_range>: Add
9578         argument.
9579         * target.c (target_call_history_range): Add argument.
9580         * record-btrace.c (record_btrace_call_history_range): Add 'self'
9581         argument.
9582         (record_btrace_call_history_from): Update.
9583
9584 2014-02-19  Tom Tromey  <tromey@redhat.com>
9585
9586         * target.h (struct target_ops) <to_call_history_from>: Add
9587         argument.
9588         * target.c (target_call_history_from): Add argument.
9589         * record-btrace.c (record_btrace_call_history_from): Add 'self'
9590         argument.
9591
9592 2014-02-19  Tom Tromey  <tromey@redhat.com>
9593
9594         * target.h (struct target_ops) <to_call_history>: Add argument.
9595         * target.c (target_call_history): Add argument.
9596         * record-btrace.c (record_btrace_call_history): Add 'self'
9597         argument.
9598
9599 2014-02-19  Tom Tromey  <tromey@redhat.com>
9600
9601         * target.h (struct target_ops) <to_insn_history_range>: Add
9602         argument.
9603         * target.c (target_insn_history_range): Add argument.
9604         * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9605         argument.
9606         (record_btrace_insn_history_from): Update.
9607
9608 2014-02-19  Tom Tromey  <tromey@redhat.com>
9609
9610         * target.h (struct target_ops) <to_insn_history_from>: Add
9611         argument.
9612         * target.c (target_insn_history_from): Add argument.
9613         * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9614         argument.
9615
9616 2014-02-19  Tom Tromey  <tromey@redhat.com>
9617
9618         * target.h (struct target_ops) <to_insn_history>: Add argument.
9619         * target.c (target_insn_history): Add argument.
9620         * record-btrace.c (record_btrace_insn_history): Add 'self'
9621         argument.
9622
9623 2014-02-19  Tom Tromey  <tromey@redhat.com>
9624
9625         * target.h (struct target_ops) <to_goto_record>: Add argument.
9626         * target.c (target_goto_record): Add argument.
9627         * record-full.c (record_full_goto): Add 'self' argument.
9628         * record-btrace.c (record_btrace_goto): Add 'self' argument.
9629
9630 2014-02-19  Tom Tromey  <tromey@redhat.com>
9631
9632         * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9633         * target.c (target_goto_record_end): Add argument.
9634         * record-full.c (record_full_goto_end): Add 'self' argument.
9635         * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9636
9637 2014-02-19  Tom Tromey  <tromey@redhat.com>
9638
9639         * target.h (struct target_ops) <to_goto_record_begin>: Add
9640         argument.
9641         * target.c (target_goto_record_begin): Add argument.
9642         * record-full.c (record_full_goto_begin): Add 'self' argument.
9643         * record-btrace.c (record_btrace_goto_begin): Add 'self'
9644         argument.
9645
9646 2014-02-19  Tom Tromey  <tromey@redhat.com>
9647
9648         * target.h (struct target_ops) <to_record_is_replaying>: Add
9649         argument.
9650         * target.c (target_record_is_replaying): Add argument.
9651         * record-full.c (record_full_is_replaying): Add 'self' argument.
9652         * record-btrace.c (record_btrace_is_replaying): Add 'self'
9653         argument.
9654         (record_btrace_xfer_partial, record_btrace_store_registers)
9655         (record_btrace_prepare_to_store, record_btrace_resume)
9656         (record_btrace_wait, record_btrace_decr_pc_after_break)
9657         (record_btrace_find_new_threads, record_btrace_thread_alive):
9658         Update.
9659
9660 2014-02-19  Tom Tromey  <tromey@redhat.com>
9661
9662         * target.h (struct target_ops) <to_delete_record>: Add argument.
9663         * target.c (target_delete_record): Add argument.
9664         * record-full.c (record_full_delete): Add 'self' argument.
9665
9666 2014-02-19  Tom Tromey  <tromey@redhat.com>
9667
9668         * target.h (struct target_ops) <to_save_record>: Add argument.
9669         * target.c (target_save_record): Add argument.
9670         * record-full.c (record_full_save): Add 'self' argument.
9671         (record_full_save): Add 'self' argument.
9672
9673 2014-02-19  Tom Tromey  <tromey@redhat.com>
9674
9675         * target.h (struct target_ops) <to_info_record>: Add argument.
9676         * target.c (target_info_record): Add argument.
9677         * record.c (info_record_command): Add argument.
9678         * record-full.c (record_full_info): Add 'self' argument.
9679         * record-btrace.c (record_btrace_info): Add 'self' argument.
9680
9681 2014-02-19  Tom Tromey  <tromey@redhat.com>
9682
9683         * target.h (struct target_ops) <to_stop_recording>: Add argument.
9684         * target.c (target_stop_recording): Add argument.
9685         * record.c (record_stop): Add argument.
9686         * record-btrace.c (record_btrace_stop_recording): Add 'self'
9687         argument.
9688
9689 2014-02-19  Tom Tromey  <tromey@redhat.com>
9690
9691         * target.h (struct target_ops) <to_read_btrace>: Add argument.
9692         * target.c (struct target_ops) <to_read_btrace>: Add argument.
9693         * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9694         argument.
9695         * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9696         (_initialize_amd64_linux_nat): Use it.
9697         * i386-linux-nat.c (i386_linux_read_btrace): New function.
9698         (_initialize_i386_linux_nat): Use it.
9699
9700 2014-02-19  Tom Tromey  <tromey@redhat.com>
9701
9702         * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9703         * target.c (target_teardown_btrace): Add argument.
9704         * remote.c (remote_teardown_btrace): Add 'self' argument.
9705         * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9706         argument.
9707         * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9708         argument.
9709
9710 2014-02-19  Tom Tromey  <tromey@redhat.com>
9711
9712         * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9713         * target.c (target_disable_btrace): Add argument.
9714         * remote.c (remote_disable_btrace): Add 'self' argument.
9715         * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9716         argument.
9717         * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9718         argument.
9719
9720 2014-02-19  Tom Tromey  <tromey@redhat.com>
9721
9722         * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9723         * target.c (target_enable_btrace): Add argument.
9724         * remote.c (remote_enable_btrace): Add 'self' argument.
9725         * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9726         argument.
9727         * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9728         argument.
9729
9730 2014-02-19  Tom Tromey  <tromey@redhat.com>
9731
9732         * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9733         (target_can_use_agent): Add argument.
9734         * target.c (update_current_target): Update.
9735         * remote.c (remote_can_use_agent): Add 'self' argument.
9736         * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9737
9738 2014-02-19  Tom Tromey  <tromey@redhat.com>
9739
9740         * target.h (struct target_ops) <to_use_agent>: Add argument.
9741         (target_use_agent): Add argument.
9742         * target.c (update_current_target): Update.
9743         * remote.c (remote_use_agent): Add 'self' argument.
9744         * inf-child.c (inf_child_use_agent): Add 'self' argument.
9745
9746 2014-02-19  Tom Tromey  <tromey@redhat.com>
9747
9748         * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9749         * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9750         (target_traceframe_info): Add argument.
9751         * target.c (update_current_target): Update.
9752         * remote.c (remote_traceframe_info): Add 'self' argument.
9753         * ctf.c (ctf_traceframe_info): Add 'self' argument.
9754
9755 2014-02-19  Tom Tromey  <tromey@redhat.com>
9756
9757         * target.h (target_static_tracepoint_markers_by_strid): Add
9758         argument.
9759         (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9760         'self' argument.
9761         * target.c (update_current_target): Update.
9762         * remote.c (struct target_ops)
9763         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9764         * linux-nat.c (struct target_ops)
9765         <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9766
9767 2014-02-19  Tom Tromey  <tromey@redhat.com>
9768
9769         * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9770         Add argument.
9771         (target_static_tracepoint_marker_at): Add argument.
9772         * target.c (update_current_target): Update.
9773         * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9774         argument.
9775
9776 2014-02-19  Tom Tromey  <tromey@redhat.com>
9777
9778         * target.h (struct target_ops) <to_set_permissions>: Add argument.
9779         (target_set_permissions): Add argument.
9780         * target.c (update_current_target): Update.
9781         * remote.c (remote_set_permissions): Add 'self' argument.
9782         (remote_start_remote): Update.
9783
9784 2014-02-19  Tom Tromey  <tromey@redhat.com>
9785
9786         * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9787         * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9788         (target_get_tib_address): Add argument.
9789         * target.c (update_current_target): Update.
9790         * remote.c (remote_get_tib_address): Add 'self' argument.
9791
9792 2014-02-19  Tom Tromey  <tromey@redhat.com>
9793
9794         * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9795         (target_set_trace_notes): Add argument.
9796         * target.c (update_current_target): Update.
9797         * remote.c (remote_set_trace_notes): Add 'self' argument.
9798
9799 2014-02-19  Tom Tromey  <tromey@redhat.com>
9800
9801         * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9802         argument.
9803         (target_set_trace_buffer_size): Add argument.
9804         * target.c (update_current_target): Update.
9805         * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9806
9807 2014-02-19  Tom Tromey  <tromey@redhat.com>
9808
9809         * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9810         argument.
9811         (target_set_circular_trace_buffer): Add argument.
9812         * target.c (update_current_target): Update.
9813         * remote.c (remote_set_circular_trace_buffer): Add 'self'
9814         argument.
9815
9816 2014-02-19  Tom Tromey  <tromey@redhat.com>
9817
9818         * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9819         argument.
9820         (target_set_disconnected_tracing): Add argument.
9821         * target.c (update_current_target): Update.
9822         * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9823
9824 2014-02-19  Tom Tromey  <tromey@redhat.com>
9825
9826         * target.h (struct target_ops)
9827         <to_get_min_fast_tracepoint_insn_len>: Add argument.
9828         (target_get_min_fast_tracepoint_insn_len): Add argument.
9829         * target.c (update_current_target): Update.
9830         * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9831         argument.
9832
9833 2014-02-19  Tom Tromey  <tromey@redhat.com>
9834
9835         * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9836         argument.
9837         (target_get_raw_trace_data): Add argument.
9838         * target.c (update_current_target): Update.
9839         * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9840
9841 2014-02-19  Tom Tromey  <tromey@redhat.com>
9842
9843         * target.h (struct target_ops) <to_upload_trace_state_variables>:
9844         Add argument.
9845         (target_upload_trace_state_variables): Add argument.
9846         * target.c (update_current_target): Update.
9847         * remote.c (remote_upload_trace_state_variables): Add 'self'
9848         argument.
9849         (remote_start_remote): Update.
9850
9851 2014-02-19  Tom Tromey  <tromey@redhat.com>
9852
9853         * target.h (struct target_ops) <to_upload_tracepoints>: Add
9854         argument.
9855         (target_upload_tracepoints): Add argument.
9856         * target.c (update_current_target): Update.
9857         * remote.c (remote_upload_tracepoints): Add 'self' argument.
9858         (remote_start_remote): Update.
9859
9860 2014-02-19  Tom Tromey  <tromey@redhat.com>
9861
9862         * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9863         (target_save_trace_data): Add argument.
9864         * target.c (update_current_target): Update.
9865         * remote.c (remote_save_trace_data): Add 'self' argument.
9866
9867 2014-02-19  Tom Tromey  <tromey@redhat.com>
9868
9869         * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9870         argument.
9871         * target.h (struct target_ops)
9872         <to_get_trace_state_variable_value>: Add argument.
9873         (target_get_trace_state_variable_value): Add argument.
9874         * target.c (update_current_target): Update.
9875         * remote.c (remote_get_trace_state_variable_value): Add 'self'
9876         argument.
9877         * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9878
9879 2014-02-19  Tom Tromey  <tromey@redhat.com>
9880
9881         * tracepoint.c (tfile_trace_find): Add 'self' argument.
9882         * target.h (struct target_ops) <to_trace_find>: Add argument.
9883         (target_trace_find): Add argument.
9884         * target.c (update_current_target): Update.
9885         * remote.c (remote_trace_find): Add 'self' argument.
9886         * ctf.c (ctf_trace_find): Add 'self' argument.
9887
9888 2014-02-19  Tom Tromey  <tromey@redhat.com>
9889
9890         * target.h (struct target_ops) <to_trace_stop>: Add argument.
9891         (target_trace_stop): Add argument.
9892         * target.c (update_current_target): Update.
9893         * remote.c (remote_trace_stop): Add 'self' argument.
9894
9895 2014-02-19  Tom Tromey  <tromey@redhat.com>
9896
9897         * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9898         * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9899         argument.
9900         (target_get_tracepoint_status): Add argument.
9901         * target.c (update_current_target): Update.
9902         * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9903
9904 2014-02-19  Tom Tromey  <tromey@redhat.com>
9905
9906         * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9907         * target.h (struct target_ops) <to_get_trace_status>: Add
9908         argument.
9909         (target_get_trace_status): Add argument.
9910         * target.c (update_current_target): Update.
9911         * remote.c (remote_get_trace_status): Add 'self' argument.
9912         (remote_start_remote, remote_can_download_tracepoint): Update.
9913         * ctf.c (ctf_get_trace_status): Add 'self' argument.
9914
9915 2014-02-19  Tom Tromey  <tromey@redhat.com>
9916
9917         * target.h (struct target_ops) <to_trace_start>: Add argument.
9918         (target_trace_start): Add argument.
9919         * target.c (update_current_target): Update.
9920         * remote.c (remote_trace_start): Add 'self' argument.
9921
9922 2014-02-19  Tom Tromey  <tromey@redhat.com>
9923
9924         * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9925         Add argument.
9926         (target_trace_set_readonly_regions): Add argument.
9927         * target.c (update_current_target): Update.
9928         * remote.c (remote_trace_set_readonly_regions): Add 'self'
9929         argument.
9930
9931 2014-02-19  Tom Tromey  <tromey@redhat.com>
9932
9933         * target.h (struct target_ops) <to_disable_tracepoint>: Add
9934         argument.
9935         (target_disable_tracepoint): Add argument.
9936         * target.c (update_current_target): Update.
9937         * remote.c (remote_disable_tracepoint): Add 'self' argument.
9938
9939 2014-02-19  Tom Tromey  <tromey@redhat.com>
9940
9941         * target.h (struct target_ops) <to_enable_tracepoint>: Add
9942         argument.
9943         (target_enable_tracepoint): Add argument.
9944         * target.c (update_current_target): Update.
9945         * remote.c (remote_enable_tracepoint): Add 'self' argument.
9946
9947 2014-02-19  Tom Tromey  <tromey@redhat.com>
9948
9949         * target.h (struct target_ops) <to_download_trace_state_variable>:
9950         Add argument.
9951         (target_download_trace_state_variable): Add argument.
9952         * target.c (update_current_target): Update.
9953         * remote.c (remote_download_trace_state_variable): Add 'self'
9954         argument.
9955
9956 2014-02-19  Tom Tromey  <tromey@redhat.com>
9957
9958         * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9959         argument.
9960         (target_can_download_tracepoint): Add argument.
9961         * target.c (update_current_target): Update.
9962         * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9963
9964 2014-02-19  Tom Tromey  <tromey@redhat.com>
9965
9966         * target.h (struct target_ops) <to_download_tracepoint>: Add
9967         argument.
9968         (target_download_tracepoint): Add argument.
9969         * target.c (update_current_target): Update.
9970         * remote.c (remote_download_tracepoint): Add 'self' argument.
9971
9972 2014-02-19  Tom Tromey  <tromey@redhat.com>
9973
9974         * target.h (struct target_ops) <to_trace_init>: Add argument.
9975         (target_trace_init): Add argument.
9976         * target.c (update_current_target): Update.
9977         * remote.c (remote_trace_init): Add 'self' argument.
9978
9979 2014-02-19  Tom Tromey  <tromey@redhat.com>
9980
9981         * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9982         * target.c (target_fileio_readlink): Add argument.
9983         * remote.c (remote_hostio_readlink): Add 'self' argument.
9984         * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9985
9986 2014-02-19  Tom Tromey  <tromey@redhat.com>
9987
9988         * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9989         * target.c (target_fileio_unlink): Add argument.
9990         * remote.c (remote_hostio_unlink): Add 'self' argument.
9991         (remote_file_delete): Update.
9992         * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9993
9994 2014-02-19  Tom Tromey  <tromey@redhat.com>
9995
9996         * target.h (struct target_ops) <to_fileio_close>: Add argument.
9997         * target.c (target_fileio_close): Add argument.
9998         * remote.c (remote_hostio_close): Add 'self' argument.
9999         (remote_hostio_close_cleanup): Update.
10000         (remote_bfd_iovec_close, remote_file_put, remote_file_get):
10001         Update.
10002         * inf-child.c (inf_child_fileio_close): Add 'self' argument.
10003
10004 2014-02-19  Tom Tromey  <tromey@redhat.com>
10005
10006         * target.h (struct target_ops) <to_fileio_pread>: Add argument.
10007         * target.c (target_fileio_pread): Add argument.
10008         * remote.c (remote_hostio_pread): Add 'self' argument.
10009         (remote_bfd_iovec_pread, remote_file_get): Update.
10010         * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
10011
10012 2014-02-19  Tom Tromey  <tromey@redhat.com>
10013
10014         * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
10015         * target.c (target_fileio_pwrite): Add argument.
10016         * remote.c (remote_hostio_pwrite): Add 'self' argument.
10017         (remote_file_put): Update.
10018         * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
10019
10020 2014-02-19  Tom Tromey  <tromey@redhat.com>
10021
10022         * target.h (struct target_ops) <to_fileio_open>: Add argument.
10023         * target.c (target_fileio_open): Add argument.
10024         * remote.c (remote_hostio_open): Add 'self' argument.
10025         (remote_bfd_iovec_open): Add 'self' argument.
10026         (remote_file_put): Add 'self' argument.
10027         (remote_file_get): Add 'self' argument.
10028         * inf-child.c (inf_child_fileio_open): Add 'self' argument.
10029
10030 2014-02-19  Tom Tromey  <tromey@redhat.com>
10031
10032         * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
10033         Add argument.
10034         (target_can_run_breakpoint_commands): Add argument.
10035         * target.c (update_current_target): Update.
10036         * remote.c (remote_can_run_breakpoint_commands): Add 'self'
10037         argument.
10038         (remote_insert_breakpoint): Add 'self' argument.
10039         (remote_insert_hw_breakpoint): Add 'self' argument.
10040         (remote_can_run_breakpoint_commands): Add 'self' argument.
10041
10042 2014-02-19  Tom Tromey  <tromey@redhat.com>
10043
10044         * target.h (struct target_ops)
10045         <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
10046         (target_supports_evaluation_of_breakpoint_conditions): Add
10047         argument.
10048         * target.c (update_current_target): Update.
10049         * remote.c (remote_supports_cond_breakpoints): Add 'self'
10050         argument.
10051         (remote_insert_breakpoint): Add 'self' argument.
10052         (remote_insert_hw_breakpoint): Add 'self' argument.
10053         (remote_supports_cond_breakpoints): Add 'self' argument.
10054
10055 2014-02-19  Tom Tromey  <tromey@redhat.com>
10056
10057         * target.h (struct target_ops) <to_supports_string_tracing>: Add
10058         argument.
10059         (target_supports_string_tracing): Add argument.
10060         * target.c (update_current_target): Update.
10061         * remote.c (remote_supports_string_tracing): Add 'self' argument.
10062
10063 2014-02-19  Tom Tromey  <tromey@redhat.com>
10064
10065         * target.h (struct target_ops)
10066         <to_supports_disable_randomization>: Add argument.
10067         * target.c (find_default_supports_disable_randomization): Add
10068         argument.
10069         (target_supports_disable_randomization): Add argument.
10070         (find_default_supports_disable_randomization): Add 'self'
10071         argument.
10072         * remote.c (extended_remote_supports_disable_randomization): Add
10073         'self' argument.
10074         (remote_supports_disable_randomization): Add 'self' argument.
10075         (extended_remote_create_inferior): Update.
10076         * linux-nat.c (linux_nat_supports_disable_randomization): Add
10077         'self' argument.
10078
10079 2014-02-19  Tom Tromey  <tromey@redhat.com>
10080
10081         * target.h (struct target_ops)
10082         <to_supports_enable_disable_tracepoint>: Add argument.
10083         (target_supports_enable_disable_tracepoint): Add argument.
10084         * target.c (update_current_target): Update.
10085         * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
10086         argument.
10087
10088 2014-02-19  Tom Tromey  <tromey@redhat.com>
10089
10090         * target.h (struct target_ops) <to_supports_multi_process>: Add
10091         argument.
10092         (target_supports_multi_process): Add argument.
10093         * target.c (update_current_target): Update.
10094         * remote.c (remote_supports_multi_process): Add 'self' argument.
10095         * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
10096         argument.
10097         * darwin-nat.c (darwin_supports_multi_process): Add 'self'
10098         argument.
10099
10100 2014-02-19  Tom Tromey  <tromey@redhat.com>
10101
10102         * target.h (struct target_ops) <to_execution_direction>: Add
10103         argument.
10104         (target_execution_direction): Add argument.
10105         * target.c (default_execution_direction): Add 'self' argument.
10106         * record-full.c (record_full_execution_direction): Add 'self'
10107         argument.
10108
10109 2014-02-19  Tom Tromey  <tromey@redhat.com>
10110
10111         * target.h (struct target_ops) <to_can_execute_reverse>: Add
10112         argument.
10113         (target_can_execute_reverse): Add argument.
10114         * remote.c (remote_can_execute_reverse): Add 'self' argument.
10115         * record-full.c (record_full_can_execute_reverse): Add 'self'
10116         argument.
10117         * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
10118         argument.
10119
10120 2014-02-19  Tom Tromey  <tromey@redhat.com>
10121
10122         * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
10123         * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
10124         argument.
10125         (target_get_ada_task_ptid): Add argument.
10126         * target.c (update_current_target): Update.
10127         (default_get_ada_task_ptid): Add 'self' argument.
10128         * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
10129         * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
10130         * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
10131         argument.
10132         * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
10133         argument.
10134         * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
10135         argument.
10136         * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
10137         argument.
10138         * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
10139         * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
10140         argument.
10141
10142 2014-02-19  Tom Tromey  <tromey@redhat.com>
10143
10144         * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
10145         (target_goto_bookmark): Add argument.
10146         * target.c (dummy_goto_bookmark): Add 'self' argument.
10147         * record-full.c (record_full_goto_bookmark): Add 'self' argument.
10148
10149 2014-02-19  Tom Tromey  <tromey@redhat.com>
10150
10151         * target.h (struct target_ops) <to_get_bookmark>: Add argument.
10152         (target_get_bookmark): Add argument.
10153         * target.c (dummy_get_bookmark): Add 'self' argument.
10154         * record-full.c (record_full_get_bookmark): Add 'self' argument.
10155
10156 2014-02-19  Tom Tromey  <tromey@redhat.com>
10157
10158         * target.h (struct target_ops) <to_make_corefile_notes>: Add
10159         argument.
10160         (target_make_corefile_notes): Add argument.
10161         * target.c (dummy_make_corefile_notes): Add 'self' argument.
10162         * procfs.c (procfs_make_note_section): Add 'self' argument.
10163         (procfs_make_note_section): Add 'self' argument.
10164         (procfs_make_note_section): Add 'self' argument.
10165         * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
10166         argument.
10167         * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
10168         * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
10169         * exec.c (exec_make_note_section): Add 'self' argument.
10170         (exec_make_note_section): Add 'self' argument.
10171
10172 2014-02-19  Tom Tromey  <tromey@redhat.com>
10173
10174         * target.h (struct target_ops) <to_find_memory_regions>: Add
10175         argument.
10176         (target_find_memory_regions): Add argument.
10177         * target.c (dummy_find_memory_regions): Add 'self' argument.
10178         * procfs.c (proc_find_memory_regions): Add 'self' argument.
10179         * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
10180         * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
10181         * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
10182         * exec. (exec_do_find_memory_regions): New global.
10183         (exec_set_find_memory_regions): Rewrite.
10184         (exec_find_memory_regions): New function.
10185         (init_exec_ops): Use exec_find_memory_regions.
10186
10187 2014-02-19  Tom Tromey  <tromey@redhat.com>
10188
10189         * target.h (struct target_ops) <to_supports_non_stop>: Add
10190         argument.
10191         * target.c (find_default_supports_non_stop): Add argument.
10192         (target_supports_non_stop): Add argument.
10193         (find_default_supports_non_stop): Add 'self' argument.
10194         * remote.c (remote_supports_non_stop): Add 'self' argument.
10195         * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
10196
10197 2014-02-19  Tom Tromey  <tromey@redhat.com>
10198
10199         * target.h (struct target_ops) <to_log_command>: Add argument.
10200         (target_log_command): Add argument.
10201         * serial.h (serial_log_command): Add 'self' argument.
10202         * serial.c (serial_log_command): Add 'self' argument.
10203
10204 2014-02-19  Tom Tromey  <tromey@redhat.com>
10205
10206         * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
10207         * target.h (struct target_ops) <to_pid_to_exec_file>: Add
10208         argument.
10209         (target_pid_to_exec_file): Add argument.
10210         * target.c (debug_to_pid_to_exec_file): Add argument.
10211         (update_current_target): Update.
10212         * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
10213         * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
10214         * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
10215         (linux_handle_extended_wait): Update.
10216         * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
10217         * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
10218         * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
10219         * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
10220
10221 2014-02-19  Tom Tromey  <tromey@redhat.com>
10222
10223         * target.h (struct target_ops) <to_rcmd>: Add argument.
10224         (target_rcmd): Add argument.
10225         * target.c (debug_to_rcmd): Add argument.
10226         (update_current_target, do_monitor_command): Update.
10227         * remote.c (remote_rcmd): Add 'self' argument.
10228         * monitor.c (monitor_rcmd): Add 'self' argument.
10229
10230 2014-02-19  Tom Tromey  <tromey@redhat.com>
10231
10232         * windows-nat.c (windows_stop): Add 'self' argument.
10233         * target.h (struct target_ops) <to_stop>: Add argument.
10234         * target.c (target_stop): Add argument.
10235         (debug_to_stop): Add argument.
10236         (update_current_target): Update.
10237         * remote.c (remote_stop): Add 'self' argument.
10238         * remote-sim.c (gdbsim_stop): Add 'self' argument.
10239         (gdbsim_cntrl_c): Update.
10240         * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
10241         * procfs.c (procfs_stop): Add 'self' argument.
10242         * nto-procfs.c (procfs_stop): Add 'self' argument.
10243         * monitor.c (monitor_stop): Add 'self' argument.
10244         (monitor_open): Update.
10245         * linux-nat.c (linux_nat_stop): Add argument.
10246         * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
10247         * gnu-nat.c (gnu_stop): Add 'self' argument.
10248         * darwin-nat.c (darwin_stop): Add 'self' argument.
10249
10250 2014-02-19  Tom Tromey  <tromey@redhat.com>
10251
10252         * target.h (struct target_ops) <to_thread_name>: Add argument.
10253         * target.c (target_thread_name): Add argument.
10254         (update_current_target): Update.
10255         * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10256
10257 2014-02-19  Tom Tromey  <tromey@redhat.com>
10258
10259         * target.h (struct target_ops) <to_extra_thread_info>: Add
10260         argument.
10261         (target_extra_thread_info): Add argument.
10262         * target.c (update_current_target): Update.
10263         * remote.c (remote_threads_extra_info): Add 'self' argument.
10264         * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10265         argument.
10266         * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10267         * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10268         * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10269         argument.
10270         * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10271         argument.
10272         * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10273         argument.
10274         * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10275         argument.
10276
10277 2014-02-19  Tom Tromey  <tromey@redhat.com>
10278
10279         * target.h (struct target_ops) <to_program_signals>: Add argument.
10280         * target.c (target_program_signals): Add argument.
10281         * remote.c (remote_program_signals): Add 'self' argument.
10282
10283 2014-02-19  Tom Tromey  <tromey@redhat.com>
10284
10285         * target.h (struct target_ops) <to_pass_signals>: Add argument.
10286         * target.c (target_pass_signals): Add argument.
10287         * remote.c (remote_pass_signals): Add 'self' argument.
10288         (remote_start_remote): Update.
10289         * procfs.c (procfs_pass_signals): Add 'self' argument.
10290         * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10291         * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10292         (linux_nat_create_inferior, linux_nat_attach): Update.
10293
10294 2014-02-19  Tom Tromey  <tromey@redhat.com>
10295
10296         * windows-nat.c (windows_can_run): Add 'self' argument.
10297         * target.h (struct target_ops) <to_can_run>: Add argument.
10298         (target_can_run): Add argument.
10299         * target.c (debug_to_can_run): Add argument.
10300         (update_current_target): Update.
10301         * nto-procfs.c (procfs_can_run): Add 'self' argument.
10302         * inf-child.c (inf_child_can_run): Add 'self' argument.
10303         * go32-nat.c (go32_can_run): Add 'self' argument.
10304
10305 2014-02-19  Tom Tromey  <tromey@redhat.com>
10306
10307         * target.h (struct target_ops) <to_has_exited>: Add argument.
10308         (target_has_exited): Add argument.
10309         * target.c (debug_to_has_exited): Add argument.
10310         (update_current_target): Update.
10311
10312 2014-02-19  Tom Tromey  <tromey@redhat.com>
10313
10314         * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10315         argument.
10316         (target_set_syscall_catchpoint): Add argument.
10317         * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10318         argument.
10319         * target.c (update_current_target): Update.
10320
10321 2014-02-19  Tom Tromey  <tromey@redhat.com>
10322
10323         * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10324         argument.
10325         (target_remove_exec_catchpoint): Add argument.
10326         * target.c (debug_to_remove_exec_catchpoint): Add argument.
10327         (update_current_target): Update.
10328         * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10329         argument.
10330
10331 2014-02-19  Tom Tromey  <tromey@redhat.com>
10332
10333         * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10334         argument.
10335         (target_insert_exec_catchpoint): Add argument.
10336         * target.c (debug_to_insert_exec_catchpoint): Add argument.
10337         (update_current_target): Update.
10338         * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10339         argument.
10340
10341 2014-02-19  Tom Tromey  <tromey@redhat.com>
10342
10343         * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10344         argument.
10345         (target_remove_vfork_catchpoint): Add argument.
10346         * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10347         (update_current_target): Update.
10348         * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10349         argument.
10350
10351 2014-02-19  Tom Tromey  <tromey@redhat.com>
10352
10353         * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10354         argument.
10355         (target_insert_vfork_catchpoint): Add argument.
10356         * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10357         (update_current_target): Update.
10358         * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10359         argument.
10360
10361 2014-02-19  Tom Tromey  <tromey@redhat.com>
10362
10363         * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10364         argument.
10365         (target_remove_fork_catchpoint): Add argument.
10366         * target.c (debug_to_remove_fork_catchpoint): Add argument.
10367         (update_current_target): Update.
10368         * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10369         argument.
10370
10371 2014-02-19  Tom Tromey  <tromey@redhat.com>
10372
10373         * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10374         argument.
10375         (target_insert_fork_catchpoint): Add argument.
10376         * target.c (debug_to_insert_fork_catchpoint): Add argument.
10377         (update_current_target): Update.
10378         * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10379         argument.
10380
10381 2014-02-19  Tom Tromey  <tromey@redhat.com>
10382
10383         * target.h (struct target_ops) <to_post_startup_inferior>: Add
10384         argument.
10385         (target_post_startup_inferior): Add argument.
10386         * target.c (debug_to_post_startup_inferior): Add argument.
10387         (update_current_target): Update.
10388         * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10389         argument.
10390         * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10391         argument.
10392         * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10393         argument.
10394         * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10395         argument.
10396         * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10397         'self' argument.
10398         (super_post_startup_inferior): Likewise.
10399         * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10400         'self' argument.
10401         (super_post_startup_inferior): Likewise.
10402         * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10403         Add 'self' argument.
10404         (super_post_startup_inferior): Likewise.
10405
10406 2014-02-19  Tom Tromey  <tromey@redhat.com>
10407
10408         * target.h (struct target_ops) <to_load>: Add argument.
10409         * target.c (target_load): Add argument.
10410         (debug_to_load): Add argument.
10411         (update_current_target): Update.
10412         * remote.c (remote_load): Add 'self' argument.
10413         * remote-sim.c (gdbsim_load): Add 'self' argument.
10414         * remote-mips.c (mips_load): Add 'self' argument.
10415         * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10416         * monitor.c (monitor_load): Add 'self' argument.
10417         * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10418
10419 2014-02-19  Tom Tromey  <tromey@redhat.com>
10420
10421         * target.h (struct target_ops) <to_terminal_info>: Add argument.
10422         (target_terminal_info): Add argument.
10423         * target.c (debug_to_terminal_info): Add argument.
10424         (default_terminal_info): Likewise.
10425         * inflow.c (child_terminal_info): Add 'self' argument.
10426         * inferior.h (child_terminal_info): Add 'self' argument.
10427         * go32-nat.c (go32_terminal_info): Add 'self' argument.
10428
10429 2014-02-19  Tom Tromey  <tromey@redhat.com>
10430
10431         * target.h (struct target_ops) <to_terminal_save_ours>: Add
10432         argument.
10433         (target_terminal_save_ours): Add argument.
10434         * target.c (debug_to_terminal_save_ours): Add argument.
10435         (update_current_target): Update.
10436         * inflow.c (terminal_save_ours): Add 'self' argument.
10437         * inferior.h (terminal_save_ours): Add 'self' argument.
10438
10439 2014-02-19  Tom Tromey  <tromey@redhat.com>
10440
10441         * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10442         (target_terminal_ours): Add argument.
10443         * target.c (debug_to_terminal_ours): Add argument.
10444         (update_current_target): Update.
10445         * remote.c (remote_terminal_ours): Add 'self' argument.
10446         (remote_close): Update.
10447         * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10448         * inflow.c (terminal_ours): Add 'self' argument.
10449         * inferior.h (terminal_ours): Add 'self' argument.
10450         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10451
10452 2014-02-19  Pedro Alves  <palves@redhat.com>
10453             Tom Tromey  <tromey@redhat.com>
10454
10455         * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10456         argument.
10457         (target_terminal_ours_for_output): Add argument.
10458         * target.c (debug_to_terminal_ours_for_output): Add argument.
10459         (update_current_target): Update.
10460         * inflow.c (terminal_ours_for_output): Add 'self' argument.
10461         * inferior.h (terminal_ours_for_output): Add 'self' argument.
10462         * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10463
10464 2014-02-19  Tom Tromey  <tromey@redhat.com>
10465
10466         * target.h (struct target_ops) <to_terminal_inferior>: Add
10467         argument.
10468         * target.c (target_terminal_inferior): Add argument.
10469         (update_current_target): Update.
10470         * remote.c (remote_terminal_inferior): Add 'self' argument.
10471         * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10472         * inflow.c (terminal_inferior): Add 'self' argument.
10473         * inferior.h (terminal_inferior): Add 'self' argument.
10474         * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10475         (go32_terminal_inferior): Add 'self' argument.
10476
10477 2014-02-19  Tom Tromey  <tromey@redhat.com>
10478
10479         * target.h (struct target_ops) <to_terminal_init>: Add argument.
10480         (target_terminal_init): Add argument.
10481         * target.c (debug_to_terminal_init): Add argument.
10482         (update_current_target): Update.
10483         * inflow.c (terminal_init_inferior): Add 'self' argument.
10484         * inferior.h (terminal_init_inferior): Add 'self' argument.
10485         * go32-nat.c (go32_terminal_init): Add 'self' argument.
10486         * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10487
10488 2014-02-19  Tom Tromey  <tromey@redhat.com>
10489
10490         * target.h (struct target_ops)
10491         <to_can_accel_watchpoint_condition>: Add argument.
10492         (target_can_accel_watchpoint_condition): Add argument.
10493         * target.c (debug_to_can_accel_watchpoint_condition): Add
10494         argument.
10495         (update_current_target): Update.
10496         * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10497         'self' argument.
10498
10499 2014-02-19  Tom Tromey  <tromey@redhat.com>
10500
10501         * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10502         Add argument.
10503         (target_region_ok_for_hw_watchpoint): Add argument.
10504         * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10505         (default_region_ok_for_hw_watchpoint): Add argument.
10506         * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10507         * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10508         argument.
10509         * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10510         argument.
10511         * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10512         argument.
10513         * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10514         'self' argument.
10515         * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10516         'self' argument.
10517         * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10518         'self' argument.
10519         * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10520         * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10521         'self' argument.
10522         * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10523         Add 'self' argument.
10524
10525 2014-02-19  Tom Tromey  <tromey@redhat.com>
10526
10527         * target.h (struct target_ops) <to_insert_watchpoint>: Add
10528         argument.
10529         (target_insert_watchpoint): Add argument.
10530         * target.c (debug_to_insert_watchpoint): Add argument.
10531         (update_current_target): Update.
10532         * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10533         * remote.c (remote_insert_watchpoint): Add 'self' argument.
10534         * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10535         * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10536         * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10537         * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10538         argument.
10539         * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10540         (procfs_insert_hw_watchpoint): Add 'self' argument.
10541         * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10542         argument.
10543         * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10544         argument.
10545         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10546         argument.
10547         * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10548         * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10549         argument.
10550         * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10551         'self' argument.
10552
10553 2014-02-19  Tom Tromey  <tromey@redhat.com>
10554
10555         * target.h (struct target_ops) <to_remove_watchpoint>: Add
10556         argument.
10557         (target_remove_watchpoint): Add argument.
10558         * target.c (debug_to_remove_watchpoint): Add argument.
10559         (update_current_target): Update.
10560         * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10561         * remote.c (remote_remove_watchpoint): Add 'self' argument.
10562         * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10563         * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10564         * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10565         * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10566         argument.
10567         * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10568         * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10569         argument.
10570         * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10571         argument.
10572         * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10573         argument.
10574         * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10575         * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10576         argument.
10577         * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10578         'self' argument.
10579
10580 2014-02-19  Tom Tromey  <tromey@redhat.com>
10581
10582         * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10583         argument.
10584         (target_remove_hw_breakpoint): Add argument.
10585         * target.c (debug_to_remove_hw_breakpoint): Add argument.
10586         (update_current_target): Update.
10587         * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10588         * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10589         argument.
10590         * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10591         * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10592         argument.
10593         * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10594         'self' argument.
10595
10596 2014-02-19  Tom Tromey  <tromey@redhat.com>
10597
10598         * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10599         argument.
10600         (target_insert_hw_breakpoint): Add argument.
10601         * target.c (debug_to_insert_hw_breakpoint): Add argument.
10602         (update_current_target): Update.
10603         * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10604         * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10605         argument.
10606         * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10607         * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10608         * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10609         argument.
10610         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10611         'self' argument.
10612
10613 2014-02-19  Tom Tromey  <tromey@redhat.com>
10614
10615         * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10616         argument.
10617         (target_can_use_hardware_watchpoint): Add argument.
10618         * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10619         (update_current_target): Update.
10620         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10621         argument.
10622         * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10623         argument.
10624         * remote.c (remote_check_watch_resources): Add 'self' argument.
10625         * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10626         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10627         argument.
10628         * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10629         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10630         argument.
10631         * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10632         argument.
10633         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10634         argument.
10635         * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10636         argument.
10637         * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10638         argument.
10639         * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10640         argument.
10641         * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10642         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10643         argument.
10644         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10645         'self' argument.
10646
10647 2014-02-19  Tom Tromey  <tromey@redhat.com>
10648
10649         * target.h (struct target_ops) <to_post_attach>: Add argument.
10650         (target_post_attach): Add argument.
10651         * target.c (debug_to_post_attach): Add argument.
10652         (update_current_target): Update.
10653         * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10654         * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10655         * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10656         * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10657         * inf-child.c (inf_child_post_attach): Add 'self' argument.
10658
10659 2014-02-19  Tom Tromey  <tromey@redhat.com>
10660
10661         * windows-nat.c (windows_close): Add 'self' argument.
10662         * tracepoint.c (tfile_close): Add 'self' argument.
10663         * target.h (struct target_ops) <to_close>: Add argument.
10664         * target.c (target_close): Add argument.
10665         (update_current_target): Update.
10666         * remote.c (remote_close): Add 'self' argument.
10667         * remote-sim.c (gdbsim_close): Add 'self' argument.
10668         * remote-mips.c (mips_close): Add 'self' argument.
10669         * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10670         * record-full.c (record_full_close): Add 'self' argument.
10671         * record-btrace.c (record_btrace_close): Add 'self' argument.
10672         * monitor.h (monitor_close): Add 'self' argument.
10673         * monitor.c (monitor_close): Add 'self' argument.
10674         * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10675         * linux-nat.c (linux_nat_close): Add argument.
10676         * go32-nat.c (go32_close): Add 'self' argument.
10677         * exec.c (exec_close_1): Add 'self' argument.
10678         * ctf.c (ctf_close): Add 'self' argument.
10679         * corelow.c (core_close): Add 'self' argument.
10680         (core_close_cleanup): Update.
10681         * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10682         * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10683
10684 2014-02-19  Tom Tromey  <tromey@redhat.com>
10685
10686         * remote.c (remote_load): New function.
10687         (init_remote_ops): Use it.
10688
10689 2014-02-19  Tom Tromey  <tromey@redhat.com>
10690
10691         * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10692         argument.
10693         * common/linux-btrace.h (linux_supports_btrace): Update.
10694         * remote.c (remote_supports_btrace): Add "self" argument.
10695         * target-delegates.c: Rebuild.
10696         * target.c (target_supports_btrace): Remove.
10697         * target.h (struct target_ops) <to_supports_btrace>: Add
10698         target_ops argument.
10699         (target_supports_btrace): New define.
10700
10701 2014-02-19  Tom Tromey  <tromey@redhat.com>
10702
10703         * record-full.c (record_full_beneath_to_resume_ops)
10704         (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10705         (record_full_beneath_to_wait)
10706         (record_full_beneath_to_store_registers_ops)
10707         (record_full_beneath_to_store_registers)
10708         (record_full_beneath_to_xfer_partial_ops)
10709         (record_full_beneath_to_xfer_partial)
10710         (record_full_beneath_to_insert_breakpoint_ops)
10711         (record_full_beneath_to_insert_breakpoint)
10712         (record_full_beneath_to_remove_breakpoint_ops)
10713         (record_full_beneath_to_remove_breakpoint)
10714         (record_full_beneath_to_stopped_by_watchpoint)
10715         (record_full_beneath_to_stopped_data_address)
10716         (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10717         (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10718         (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10719         (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10720         (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10721         (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10722         (tmp_to_stopped_data_address, tmp_to_async): Remove.
10723         (record_full_open_1, record_full_open): Update.  Use RECORD_IS_USED.
10724         (record_full_resume, record_full_wait_1)
10725         (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10726         (record_full_store_registers, record_full_xfer_partial)
10727         (record_full_insert_breakpoint, record_full_remove_breakpoint)
10728         (record_full_async, record_full_core_xfer_partial): Use target
10729         delegation.
10730         * target-delegates.c: Rebuild.
10731         * target.c (current_xfer_partial): Remove.
10732         (update_current_target): Do not INHERIT or de_fault
10733         to_insert_breakpoint, to_remove_breakpoint,
10734         to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10735         to_is_async_p, to_async.  Do not set to_xfer_partial field.
10736         (default_xfer_partial): Simplify.
10737         (current_xfer_partial): Remove.
10738         (target_wait, target_resume): Simplify.
10739         (find_default_can_async_p, find_default_is_async_p): Update.
10740         (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10741         to_xfer_partial, to_stopped_by_watchpoint,
10742         to_stopped_data_address.
10743         (target_store_registers): Simplify.
10744         (forward_target_remove_breakpoint)
10745         (forward_target_insert_breakpoint): Remove.
10746         (target_remove_breakpoint, target_insert_breakpoint)
10747         (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10748         * target.h (struct target_ops) <to_resume, to_wait,
10749         to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10750         to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10751         to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10752         markup.
10753         (forward_target_remove_breakpoint)
10754         (forward_target_insert_breakpoint): Remove.
10755         * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10756         directly.
10757         (record_btrace_insert_breakpoint): Delegate directly.
10758
10759 2014-02-19  Tom Tromey  <tromey@redhat.com>
10760
10761         PR build/7701:
10762         * target-delegates.c: New file.
10763         * target.c: Include target-delegates.c.
10764         (init_dummy_target): Call install_dummy_methods.
10765         (complete_target_initialization): Call install_delegators.
10766         * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10767         (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10768         * make-target-delegates: New file.
10769
10770 2014-02-19  Tom Tromey  <tromey@redhat.com>
10771
10772         * record.c (find_record_target): Use find_target_at.
10773         * target.c (find_target_at): New function.
10774         * target.h (find_target_at): Declare.
10775
10776 2014-02-19  Tom Tromey  <tromey@redhat.com>
10777
10778         * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10779         Add 'ops' argument.
10780         * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10781         'ops' argument.
10782         * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10783         * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10784         'ops' argument.
10785         * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10786         argument.
10787         * linux-nat.c (save_sigtrap): Update.
10788         (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10789         (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10790         (linux_nat_close): Update.
10791         * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10792         argument.
10793         * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10794         argument.
10795         * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10796         * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10797         (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10798         (tmp_to_async): Add 'ops' argument.
10799         (record_full_stopped_by_watchpoint, record_full_async)
10800         (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10801         argument.
10802         * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10803         (m32r_stopped_by_watchpoint): Add 'ops' argument.
10804         * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10805         * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10806         (remote_is_async_p, remote_async): Add 'ops' argument.
10807         (remote_stopped_data_address): Update.
10808         * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10809         * target.c (update_current_target)
10810         (find_default_can_async_p, find_default_is_async_p): Update.
10811         (init_dummy_target): Update.
10812         (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10813         * target.h (struct target_ops) <to_stopped_by_watchpoint,
10814         to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10815         (target_can_async_p, target_is_async_p, target_async)
10816         (target_stopped_by_watchpoint): Update.
10817
10818 2014-02-19  Yao Qi  <yao@codesourcery.com>
10819
10820         PR gdb/16220
10821         * gdbarch.sh: Remove startup_gdbarch.
10822         * gdbarch.c: Regenerated.
10823         * gdbarch.h: Likewise.
10824
10825 2014-02-17  Kevin Buettner  <kevinb@redhat.com>
10826
10827         * rl78-tdep.c (rl78_g10_register_name): New function.
10828         (rl78_return_value): Add g10 support.
10829         (rl78_gdbarch_init): Register rl78_g10_register_name for the
10830         g10.
10831
10832 2014-02-17  Doug Evans  <xdje42@gmail.com>
10833
10834         * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10835         (SUBDIR_GUILE_SRCS): Ditto.
10836         (scm-gsmob.o): Ditto.
10837
10838 2014-02-17  Yao Qi  <yao@codesourcery.com>
10839
10840         * gnu-nat.c (ILL_RPC): Declare defined function.
10841
10842 2014-02-17  Yao Qi  <yao@codesourcery.com>
10843
10844         * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10845         mach_msg_type_number_t.
10846         (gnu_write_inferior): Likewise.
10847
10848 2014-02-17  Yao Qi  <yao@codesourcery.com>
10849
10850         * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10851         in format string.
10852         (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10853         (inf_validate_procs, inf_signal): Likewise.
10854         (S_exception_raise_request): Likewise.
10855         (do_mach_notify_dead_name): Likewise.
10856         (steal_exc_port): Likewise.
10857         (gnu_read_inferior): Change 'copy_count''s type to
10858         mach_msg_type_number_t.
10859         (gnu_write_inferior): Likewise.  Use 'lx' instead of 'x' in
10860         format string.
10861
10862 2014-02-16  Thomas Schwinge  <thomas@codesourcery.com>
10863
10864         * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10865         flag.  Adjust all users; in particular...
10866         (gnu_wait): ..., don't decrement its value in here...
10867         (gnu_create_inferior): ..., and instead set the flag in here,
10868         around the startup_inferior call, and call that one with
10869         START_INFERIOR_TRAPS_EXPECTED.
10870
10871         * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10872         (ILL_RPC): ... new macro.
10873         (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10874         (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10875         (do_mach_notify_send_once, S_proc_setmsgport_reply)
10876         (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10877         functions with ILL_RPC macro.
10878         (S_proc_pid2task_reply, S_proc_task2pid_reply)
10879         (S_proc_task2proc_reply, S_proc_proc2task_reply)
10880         (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10881         (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10882         (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10883         (S_proc_getlogin_reply, S_proc_getsid_reply)
10884         (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10885         (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10886         (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10887         (S_proc_getnports_reply, S_proc_is_important_reply)
10888         (S_proc_get_code_reply): New stub functions, generated with
10889         ILL_RPC macro.
10890
10891         * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10892         collected the type check structures.
10893
10894         * reply_mig_hack.awk: Don't expect to see the auto keyword.
10895
10896 2014-02-14  Doug Evans  <dje@google.com>
10897
10898         * target.c (target_write_partial): Fix result type.
10899
10900 2014-02-14  Jose E. Marchesi  <jose.marchesi@oracle.com>
10901
10902         * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10903         the proper offsets to access fpregset_t.
10904
10905 2014-02-13  Sanimir Agovic  <sanimir.agovic@intel.com>
10906
10907         * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10908         (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10909         * h8300-tdep.c (setmachinelist): Remove global.
10910         * hppa-tdep.c (hppa_sigtramp): Remove global.
10911         * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10912         RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10913         * ravenscar-thread.c (update_target_observer): Remove global.
10914         * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10915
10916 2014-02-12  Tom Tromey  <tromey@redhat.com>
10917
10918         * common/rsp-low.c: Update comments.
10919         * common/rsp-low.h: Update comments.
10920
10921 2014-02-12  Tom Tromey  <tromey@redhat.com>
10922
10923         * common/rsp-low.c (convert_ascii_to_int): Remove.
10924         * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10925
10926 2014-02-12  Tom Tromey  <tromey@redhat.com>
10927
10928         * common/rsp-low.h (unhexify): Don't declare.
10929         * common/rsp-low.c (unhexify): Remove.
10930
10931 2014-02-12  Tom Tromey  <tromey@redhat.com>
10932
10933         * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10934         * common/rsp-low.c (convert_int_to_ascii): Remove.
10935
10936 2014-02-12  Tom Tromey  <tromey@redhat.com>
10937
10938         * common/rsp-low.h (hexify): Don't declare.
10939         * common/rsp-low.c (hexify): Remove.
10940
10941 2014-02-12  Tom Tromey  <tromey@redhat.com>
10942
10943         * common/rsp-low.c (hexify): Never take strlen of argument.
10944
10945 2014-02-12  Tom Tromey  <tromey@redhat.com>
10946
10947         * common/rsp-low.c (bin2hex): Never take strlen of argument.
10948         * remote.c (extended_remote_run, remote_rcmd)
10949         (remote_download_trace_state_variable, remote_save_trace_data)
10950         (remote_set_trace_notes): Update.
10951         * tracepoint.c (encode_source_string, tfile_write_status)
10952         (tfile_write_uploaded_tsv): Update.
10953
10954 2014-02-12  Tom Tromey  <tromey@redhat.com>
10955
10956         * tracepoint.c: Include rsp-low.h.
10957         * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10958         * remote.c: Include rsp-low.h.
10959         (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10960         (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10961         (remote_unescape_input): Move to common/rsp-low.c.
10962         * common/rsp-low.h: New file.
10963         * common/rsp-low.c: New file.
10964         * Makefile.in (SFILES): Add common/rsp-low.c.
10965         (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10966         (COMMON_OBS): Add rsp-low.o.
10967         (rsp-low.o): New target.
10968
10969 2014-02-12  Tom Tromey  <tromey@redhat.com>
10970
10971         * utils.h: Include print-utils.h.
10972         (host_address_to_string, plongest, pulongest, phex, phex_nz)
10973         (int_string, core_addr_to_string, core_addr_to_string_nz)
10974         (hex_string, hex_string_custom): Don't declare.
10975         * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10976         (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10977         (hex_string_custom, int_string, core_addr_to_string)
10978         (core_addr_to_string_nz, host_address_to_string): Move to
10979         common/print-utils.c.
10980         * common/print-utils.h: New file.
10981         * common/print-utils.c: New file
10982         * Makefile.in (SFILES): Add common/print-utils.c.
10983         (HFILES_NO_SRCDIR): Add common/print-utils.h.
10984         (COMMON_OBS): Add print-utils.o.
10985         (print-utils.o): New target.
10986
10987 2014-02-12  Tom Tromey  <tromey@redhat.com>
10988
10989         * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10990
10991 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
10992
10993         * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10994
10995 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
10996
10997         * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10998         if a PT_IO ptrace request returns sucessfully but indicates that 0
10999         bytes were transferred.
11000
11001 2014-02-12  Pedro Alves  <palves@redhat.com>
11002             Kevin Buettner <kevinb@redhat.com>
11003
11004         * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
11005         TYPE_INSTANCE_FLAG_CODE_SPACE.
11006
11007 2014-02-12  Pedro Alves  <palves@redhat.com>
11008
11009         * h8300-tdep.c (pseudo_from_raw_register)
11010         (raw_from_pseudo_register): New functions.
11011         (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
11012         them.
11013
11014 2014-02-12  Pedro Alves  <palves@redhat.com>
11015
11016         * h8300-tdep.c (h8300_register_sim_regno): New function.
11017         (h8300_gdbarch_init): Install h8300_register_sim_regno as
11018         gdbarch_register_sim_regno hook.
11019
11020 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
11021
11022         * nios2-tdep.c (nios2_stub_frame_base): Remove global.
11023
11024 2014-02-12  Sanimir Agovic  <sanimir.agovic@intel.com>
11025
11026         * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
11027
11028 2014-02-12  Mark Kettenis  <kettenis@gnu.org>
11029
11030         * obsd-tdep.h (obsd_init_abi): New prototype.
11031         * obsd-tdep.c: Define enum with OpenBSD signal numbers.
11032         (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
11033         (obsd_init_abi): New functions.
11034         * i386obsd-tdep.c: Include "obsd-tdep.h".
11035         (i386obsd_init_abi): Call obsd_init_abi.
11036         * amd64obsd-tdep.c: Include "obsd-tdep.h".
11037         (amd64obsd_init_abi): Call obsd_init_abi.
11038         * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
11039         obsd-tdep.c to gdb_target_obs.
11040
11041 2014-02-11  Jose E. Marchesi  <jose.marchesi@oracle.com>
11042
11043         * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
11044         double float arguments to 16-byte in the argument slots.
11045
11046 2014-02-11  Doug Evans  <xdje42@gmail.com>
11047
11048         * configure.ac: Don't crash if pkg-config is not found and guile
11049         wasn't explicitly requested.  Use AC_MSG_ERROR instead of AC_ERROR
11050         in guile checks.
11051         * configure: Regenerate.
11052
11053 2014-02-11  Yao Qi  <yao@codesourcery.com>
11054
11055         * aix-thread.c (aix_thread_xfer_partial): Update comments.
11056         * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
11057         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11058         * gnu-nat.c (gnu_xfer_memory): Likewise.
11059         * inf-ptrace.c (inf_ptrace_xfer_partial):  Likewise.
11060         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11061         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11062         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11063
11064 2014-02-11  Yao Qi  <yao@codesourcery.com>
11065
11066         * target.h (enum target_xfer_error): Rename to ...
11067         (enum target_xfer_status): ... it.  New.  All users updated.
11068         (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
11069         New.
11070         (TARGET_XFER_STATUS_ERROR_P): New macro.
11071         (target_xfer_error_to_string): Remove declaration.
11072         (target_xfer_status_to_string): Declare.
11073         (target_xfer_partial_ftype): Adjust it.
11074         (struct target_ops) <to_xfer_partial>: Return
11075         target_xfer_status.  Add argument xfered_len.  Update
11076         comments.
11077         * target.c (target_xfer_error_to_string): Rename to ...
11078         (target_xfer_status_to_string): ... it.  New.  All callers
11079         updated.
11080         (target_read_live_memory): Likewise.  Call target_xfer_partial
11081         instead of target_read.
11082         (memory_xfer_live_readonly_partial): Return
11083         target_xfer_status.  Add argument xfered_len.
11084         (raw_memory_xfer_partial): Likewise.
11085         (memory_xfer_partial_1): Likewise.
11086         (memory_xfer_partial): Likewise.
11087         (target_xfer_partial): Likewise.  Check *XFERED_LEN is set
11088         properly.  Update debug message.
11089         (default_xfer_partial, current_xfer_partial): Likewise.
11090         (target_write_partial): Likewise.
11091         (target_read_partial): Likewise.  All callers updated.
11092         (read_whatever_is_readable): Likewise.
11093         (target_write_with_progress): Likewise.
11094         (target_read_alloc_1): Likewise.
11095
11096         * aix-thread.c (aix_thread_xfer_partial): Likewise.
11097         * auxv.c (procfs_xfer_auxv): Likewise.
11098         (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
11099         * bfd-target.c (target_bfd_xfer_partial): Likewise.
11100         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11101         * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
11102         * corefile.c (read_memory): Adjust.
11103         * corelow.c (core_xfer_partial): Likewise.
11104         * ctf.c (ctf_xfer_partial): Likewise.
11105         * darwin-nat.c (darwin_read_dyld_info): Likewise.  All callers
11106         updated.
11107         (darwin_xfer_partial): Likewise.
11108         * exec.c (section_table_xfer_memory_partial): Likewise.  All
11109         callers updated.
11110         (exec_xfer_partial): Likewise.
11111         * exec.h (section_table_xfer_memory_partial): Update
11112         declaration.
11113         * gnu-nat.c (gnu_xfer_memory): Likewise.  Assert 'res' is not
11114         negative.
11115         (gnu_xfer_partial): Likewise.
11116         * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
11117         (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
11118         (ia64_hpux_xfer_solib_got): Likewise.
11119         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.  Change
11120         type of 'partial_len' to ULONGEST.
11121         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11122         * linux-nat.c (linux_xfer_siginfo ): Likewise.
11123         (linux_nat_xfer_partial): Likewise.
11124         (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
11125         (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
11126         * monitor.c (monitor_xfer_memory): Likewise.
11127         (monitor_xfer_partial): Likewise.
11128         * procfs.c (procfs_xfer_partial): Likewise.
11129         * record-btrace.c (record_btrace_xfer_partial): Likewise.
11130         * record-full.c (record_full_xfer_partial): Likewise.
11131         (record_full_core_xfer_partial): Likewise.
11132         * remote-sim.c (gdbsim_xfer_memory): Likewise.
11133         (gdbsim_xfer_partial): Likewise.
11134         * remote.c (remote_write_bytes_aux): Likewise.  All callers
11135         updated.
11136         (remote_write_bytes, remote_read_bytes): Likewise.  All
11137         callers updated.
11138         (remote_flash_erase): Likewise.  All callers updated.
11139         (remote_write_qxfer): Likewise.  All callers updated.
11140         (remote_read_qxfer): Likewise.  All callers updated.
11141         (remote_xfer_partial): Likewise.
11142         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11143         (rs6000_xfer_shared_libraries): Likewise.
11144         * sol-thread.c (sol_thread_xfer_partial): Likewise.
11145         (sol_thread_xfer_partial): Likewise.
11146         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11147         (sparc_xfer_partial): Likewise.
11148         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.  All callers
11149         updated.
11150         (spu_xfer_partial): Likewise.
11151         * spu-multiarch.c (spu_xfer_partial): Likewise.
11152         * tracepoint.c (tfile_xfer_partial): Likewise.
11153         * windows-nat.c (windows_xfer_memory): Likewise.
11154         (windows_xfer_shared_libraries): Likewise.
11155         (windows_xfer_partial): Likewise.
11156         * valprint.c: Replace 'target_xfer_error' with
11157         'target_xfer_status' in comments.
11158
11159 2014-02-11  Simon Marchi  <simon.marchi@ericsson.com>  (tiny patch)
11160
11161         Checked in by Joel Brobecker <brobecker@adacore.com>.
11162         * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
11163
11164 2014-02-11  Joel Brobecker  <brobecker@adacore.com>
11165
11166         * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
11167         function parameters.
11168
11169 2014-02-10  Will Newton  <will.newton@linaro.org>
11170
11171         * elfread.c (elf_rel_plt_read): Look for a .got section if
11172         looking up .got.plt fails.
11173         (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
11174         on address passed to elf_gnu_ifunc_record_cache.
11175         (elf_gnu_ifunc_resolve_addr): Likewise.
11176         (elf_gnu_ifunc_resolver_return_stop): Likewise.
11177
11178 2014-02-10  Jose E. Marchesi  <jose.marchesi@oracle.com>
11179
11180         * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
11181         (X_RETTURN): New macro.
11182         * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
11183
11184         * sparc64-tdep.c (sparc64_init_abi): Hook
11185         sparc_in_function_epilogue_p.
11186
11187 2014-02-10  Gary Benson  <gbenson@redhat.com>
11188
11189         * symfile-debug.c (debug_qf_expand_symtabs_matching):
11190         Rename name_matcher to symbol_matcher.
11191
11192 2014-02-10  Gary Benson  <gbenson@redhat.com>
11193
11194         * symfile-debug.c (debug_qf_expand_symtabs_matching):
11195         Use expand_symtabs_file_matcher_ftype and
11196         expand_symtabs_symbol_matcher_ftype.
11197
11198 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11199
11200         * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
11201         (struct ada_symbol_cache): New.
11202         (ada_free_symbol_cache): Forward declare.
11203         (struct ada_pspace_data): New.
11204         (ada_pspace_data_handle): New static global.
11205         (get_ada_pspace_data, ada_pspace_data_cleanup)
11206         (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
11207         (cache_space, cache): Delete, now folded inside struct
11208         ada_pspace_data.
11209         (ada_get_symbol_cache): New function.
11210         (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
11211         implementation.
11212         (_initialize_ada_language): Remove initialization of cache_space.
11213         Move call to observer_attach_inferior_exit up, grouping it
11214         with the other observer registrations inside this function.
11215         Rename command to be more general.  Add call to
11216         register_program_space_data_with_cleanup.
11217
11218 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11219
11220         * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
11221         ada_new_objfile_observer.
11222         (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
11223         (_initialize_tasks): Update uses of ada_new_objfile_observer
11224         and ada_tasks_normal_stop_observer.
11225
11226 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11227
11228         * ada-lang.c (ada_evaluate_subexp): Set the type of the value
11229         returned by the 'Length attribute to integer.
11230
11231 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11232
11233         * ada-lang.c (_initialize_ada_language): Initialize
11234         cache_space obstack.
11235
11236 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11237
11238         * ada-lang.c (HASH_SIZE): New macro.
11239         (struct cache_entry): New type.
11240         (cache_space, cache): New static globals.
11241         (ada_clear_symbol_cache, find_entry): New functions.
11242         (lookup_cached_symbol, cache_symbol): Implement.
11243         (ada_new_objfile_observer, ada_free_objfile_observer): New.
11244         (_initialize_ada_language): Attach ada_new_objfile_observer
11245         and ada_free_objfile_observer.
11246
11247 2014-02-10  Joel Brobecker  <brobecker@adacore.com>
11248
11249         * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11250         (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11251         struct block * parameter.
11252         (ada_lookup_symbol_list_worker): Constify local variable "block".
11253         Remove cast which is no longer necessary.
11254
11255 2014-02-10  Doug Evans  <xdje42@gmail.com>
11256
11257         Add Guile as an extension language.
11258         * NEWS: Mention Guile scripting.
11259         * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11260         (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11261         (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11262         (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11263         (CLIBS): Add GUILE_LIBS.
11264         (install-guile): New rule.
11265         (guile.o): New rule.
11266         (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11267         (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11268         (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11269         (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11270         (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11271         (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11272         (scm-type.o, scm-utils.o, scm-value.o): New rules.
11273         * configure.ac: New option --with-guile.
11274         * configure: Regenerate.
11275         * config.in: Regenerate.
11276         * auto-load.c: Remove #include "python/python.h".  Add #include
11277         "gdb/section-scripts.h".
11278         (source_section_scripts): Handle Guile scripts.
11279         (_initialize_auto_load): Add name of Guile objfile script to
11280         scripts-directory help text.
11281         * breakpoint.c (condition_command): Tweak comment to include Scheme.
11282         * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11283         (struct breakpoint): New member scm_bp_object.
11284         * defs.h (enum command_control_type): New value guile_control.
11285         * cli/cli-cmds.c: Remove #include "python/python.h".  Add #include
11286         "extension.h".
11287         (show_user): Update comment.
11288         (_initialize_cli_cmds): Update help text for "show user".  Update help
11289         text for max-user-call-depth.
11290         * cli/cli-script.c: Remove #include "python/python.h".  Add #include
11291         "extension.h".
11292         (multi_line_command_p): Add guile_control.
11293         (print_command_lines): Handle guile_control.
11294         (execute_control_command, recurse_read_control_structure): Ditto.
11295         (process_next_line): Recognize "guile" commands.
11296         * disasm.c (gdb_disassemble_info): Make non-static.
11297         * disasm.h: #include "dis-asm.h".
11298         (struct gdbarch): Add forward decl.
11299         (gdb_disassemble_info): Declare.
11300         * extension.c: #include "guile/guile.h".
11301         (extension_languages): Add guile.
11302         (get_ext_lang_defn): Handle EXT_LANG_GDB.
11303         * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11304         * gdbtypes.c (get_unsigned_type_max): New function.
11305         (get_signed_type_minmax): New function.
11306         * gdbtypes.h (get_unsigned_type_max): Declare.
11307         (get_signed_type_minmax): Declare.
11308         * guile/README: New file.
11309         * guile/guile-internal.h: New file.
11310         * guile/guile.c: New file.
11311         * guile/guile.h: New file.
11312         * guile/scm-arch.c: New file.
11313         * guile/scm-auto-load.c: New file.
11314         * guile/scm-block.c: New file.
11315         * guile/scm-breakpoint.c: New file.
11316         * guile/scm-disasm.c: New file.
11317         * guile/scm-exception.c: New file.
11318         * guile/scm-frame.c: New file.
11319         * guile/scm-gsmob.c: New file.
11320         * guile/scm-iterator.c: New file.
11321         * guile/scm-lazy-string.c: New file.
11322         * guile/scm-math.c: New file.
11323         * guile/scm-objfile.c: New file.
11324         * guile/scm-ports.c: New file.
11325         * guile/scm-pretty-print.c: New file.
11326         * guile/scm-safe-call.c: New file.
11327         * guile/scm-string.c: New file.
11328         * guile/scm-symbol.c: New file.
11329         * guile/scm-symtab.c: New file.
11330         * guile/scm-type.c: New file.
11331         * guile/scm-utils.c: New file.
11332         * guile/scm-value.c: New file.
11333         * guile/lib/gdb.scm: New file.
11334         * guile/lib/gdb/boot.scm: New file.
11335         * guile/lib/gdb/experimental.scm: New file.
11336         * guile/lib/gdb/init.scm: New file.
11337         * guile/lib/gdb/iterator.scm: New file.
11338         * guile/lib/gdb/printing.scm: New file.
11339         * guile/lib/gdb/types.scm: New file.
11340         * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11341         (VPATH): Add $(GUILE_SRCDIR).
11342         (GUILE_DIR): New variable.
11343         (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11344         (all): Add stamp-guile dependency.
11345         (stamp-guile): New rule.
11346         (clean-guile, install-guile, uninstall-guile): New rules.
11347         (install-only): Add install-guile dependency.
11348         (uninstall): Add uninstall-guile dependency.
11349         (clean): Add clean-guile dependency.
11350
11351 2014-02-09  Doug Evans  <xdje42@gmail.com>
11352
11353         Revert this patch (which I approved, mea culpa).
11354
11355         2014-02-08  Mark Kettenis  <kettenis@gnu.org>
11356
11357         * Makefile.in (all-lib): Remove.
11358         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11359
11360 2014-02-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
11361
11362         Fix Python stack corruption.
11363         * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11364         gdb_py_longest.
11365
11366 2014-02-08  Mark Kettenis  <kettenis@gnu.org>
11367
11368         * Makefile.in (all-lib): Remove.
11369         ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11370
11371 2014-02-07  Doug Evans  <dje@google.com>
11372
11373         * extension-priv.h (extension_language_script_ops): Add comment.
11374         (extension_language_ops): Add comment.
11375         (active_ext_lang_state): Fix typo in comment.
11376
11377 2014-02-07  Pedro Alves  <palves@redhat.com>
11378
11379         PR breakpoints/16292
11380         * infrun.c (handle_signal_stop) <signal arrives while stepping
11381         over a breakpoint>: Switch back to the stepping thread.
11382
11383 2014-02-07  Yao Qi  <yao@codesourcery.com>
11384
11385         * target.c (target_xfer_partial): Return zero if LEN is zero.
11386
11387 2014-02-07  Yao Qi  <yao@codesourcery.com>
11388
11389         * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11390         (ld_so_xfer_auxv): Likewise.
11391         * bfd-target.c (target_bfd_xfer_partial): Likewise.
11392         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11393         * corelow.c (core_xfer_partial): Likewise.
11394         * ctf.c (ctf_xfer_partial): Likewise.
11395         * darwin-nat.c (darwin_read_dyld_info): Likewise.
11396         (darwin_xfer_partial): Likewise.
11397         * exec.c (exec_xfer_partial): Likewise.
11398         * gnu-nat.c (gnu_xfer_partial): Likewise.
11399         * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11400         * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11401         * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11402         * linux-nat.c (linux_xfer_siginfo): Likewise.
11403         (linux_proc_xfer_spu): Likewise.
11404         * procfs.c (procfs_xfer_partial): Likewise.
11405         * record-full.c (record_full_xfer_partial): Likewise.
11406         (record_full_core_xfer_partial): Likewise.
11407         * remote-sim.c (gdbsim_xfer_partial): Likewise.
11408         * remote.c (remote_write_qxfer): Likewise.
11409         (remote_write_qxfer, remote_read_qxfer): Likewise.
11410         (remote_xfer_partial): Likewise.
11411         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11412         (rs6000_xfer_shared_libraries): Likewise.
11413         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11414         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11415         (spu_xfer_partial): Likewise.
11416         * target.c (memory_xfer_partial_1): Likewise.
11417         * tracepoint.c (tfile_xfer_partial): Likewise.
11418         * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11419         (windows_xfer_partial): Likewise.
11420
11421 2014-02-07  Yao Qi  <yao@codesourcery.com>
11422
11423         * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST.  Add
11424         comments.
11425         (core_xfer_shared_libraries_aix): Likewise.
11426         * gdbarch.c, gdbarch.h: Regenerated.
11427         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11428         ULONGEST.  Change 'len_avail' type to ULONGEST.
11429         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11430         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11431         declaration.
11432         (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11433
11434 2014-02-07  Yao Qi  <yao@codesourcery.com>
11435
11436         * corefile.c (memory_error): Get 'exception' from ERR and pass
11437         'exception' to throw_error.
11438
11439 2014-02-06  Doug Evans  <xdje42@gmail.com>
11440
11441         * configure.ac (libpython checking): Remove all but python.o from
11442         CONFIG_OBS.  Remove all but python.c from CONFIG_SRCS.
11443         * configure: Regenerate.
11444
11445         * Makefile.in (SFILES): Add extension.c.
11446         (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11447         (COMMON_OBS): Add extension.o.
11448         * extension.h: New file.
11449         * extension-priv.h: New file.
11450         * extension.c: New file.
11451
11452         * python/python-internal.h: #include "extension.h".
11453         (gdbpy_auto_load_enabled): Declare.
11454         (gdbpy_apply_val_pretty_printer): Declare.
11455         (gdbpy_apply_frame_filter): Declare.
11456         (gdbpy_preserve_values): Declare.
11457         (gdbpy_breakpoint_cond_says_stop): Declare.
11458         (gdbpy_breakpoint_has_cond): Declare.
11459         (void source_python_script_for_objfile): Delete.
11460         * python/python.c: #include "extension-priv.h".
11461         Delete inclusion of "observer.h".
11462         (extension_language_python): Moved here and renamed from
11463         script_language_python in py-auto-load.c.
11464         Redefined to be of type extension_language_defn.
11465         (python_extension_script_ops): New global.
11466         (python_extension_ops): New global.
11467         (struct python_env): New member previous_active.
11468         (restore_python_env): Call restore_active_ext_lang.
11469         (ensure_python_env): Call set_active_ext_lang.
11470         (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11471         New arg extlang.
11472         (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11473         New arg extlang.
11474         (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11475         New arg extlang.
11476         (gdbpy_eval_from_control_command): Renamed from
11477         eval_python_from_control_command, made static.  New arg extlang.
11478         (gdbpy_source_script) Renamed from source_python_script, made static.
11479         New arg extlang.
11480         (gdbpy_before_prompt_hook): Renamed from before_prompt_hook.  Change
11481         result to int.  New arg extlang.
11482         (gdbpy_source_objfile_script): Renamed from
11483         source_python_script_for_objfile, made static.  New arg extlang.
11484         (gdbpy_start_type_printers): Renamed from start_type_printers, made
11485         static.  New args extlang, extlang_printers.  Change result type to
11486         "void".
11487         (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11488         static.  New arg extlang.  Rename arg printers to extlang_printers
11489         and change type to ext_lang_type_printers *.
11490         (gdbpy_free_type_printers): Renamed from free_type_printers, made
11491         static.  Replace argument arg with extlang, extlang_printers.
11492         (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11493         (!HAVE_PYTHON, source_python_script): Delete.
11494         (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11495         (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11496         (!HAVE_PYTHON, start_type_printers): Delete.
11497         (!HAVE_PYTHON, apply_type_printers): Delete.
11498         (!HAVE_PYTHON, free_type_printers): Delete.
11499         (_initialize_python): Delete call to observer_attach_before_prompt.
11500         (finalize_python): Set/restore active extension language.
11501         (gdbpy_finish_initialization) Renamed from
11502         finish_python_initialization, made static.  New arg extlang.
11503         (gdbpy_initialized): New function.
11504         * python/python.h: #include "extension.h".  Delete #include
11505         "value.h", "mi/mi-cmds.h".
11506         (extension_language_python): Declare.
11507         (GDBPY_AUTO_FILE_NAME): Delete.
11508         (enum py_bt_status): Moved to extension.h and renamed to
11509         ext_lang_bt_status.
11510         (enum frame_filter_flags): Moved to extension.h.
11511         (enum py_frame_args): Moved to extension.h and renamed to
11512         ext_lang_frame_args.
11513         (finish_python_initialization): Delete.
11514         (eval_python_from_control_command): Delete.
11515         (source_python_script): Delete.
11516         (apply_val_pretty_printer): Delete.
11517         (apply_frame_filter): Delete.
11518         (preserve_python_values): Delete.
11519         (gdbpy_script_language_defn): Delete.
11520         (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11521         (start_type_printers, apply_type_printers, free_type_printers): Delete.
11522
11523         * auto-load.c: #include "extension.h".
11524         (GDB_AUTO_FILE_NAME): Delete.
11525         (auto_load_gdb_scripts_enabled): Make public.  New arg extlang.
11526         (script_language_gdb): Delete, moved to extension.c and renamed to
11527         extension_language_gdb.
11528         (source_gdb_script_for_objfile): Delete.
11529         (auto_load_pspace_info): New member unsupported_script_warning_printed.
11530         (loaded_script): Change type of language member to
11531         struct extension_language_defn *.
11532         (init_loaded_scripts_info): Initialize
11533         unsupported_script_warning_printed.
11534         (maybe_add_script): Make static.  Change type of language arg to
11535         struct extension_language_defn *.
11536         (clear_section_scripts): Reset unsupported_script_warning_printed.
11537         (auto_load_objfile_script_1): Rewrite to use extension language API.
11538         (auto_load_objfile_script): Make public.  Remove support-compiled-in
11539         and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11540         (source_section_scripts): Rewrite to use extension language API.
11541         (load_auto_scripts_for_objfile): Rewrite to use
11542         auto_load_scripts_for_objfile.
11543         (collect_matching_scripts_data): Change type of language member to
11544         struct extension_language_defn *.
11545         (auto_load_info_scripts): Change type of language arg to
11546         struct extension_language_defn *.
11547         (unsupported_script_warning_print): New function.
11548         (script_not_found_warning_print): Make static.
11549         (_initialize_auto_load): Rewrite construction of scripts-directory
11550         help.
11551         * auto-load.h (struct objfile): Add forward decl.
11552         (struct script_language): Delete.
11553         (struct auto_load_pspace_info): Add forward decl.
11554         (struct extension_language_defn): Add forward decl.
11555         (maybe_add_script): Delete.
11556         (auto_load_objfile_script): Declare.
11557         (script_not_found_warning_print): Delete.
11558         (auto_load_info_scripts): Update prototype.
11559         (auto_load_gdb_scripts_enabled): Declare.
11560         * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11561         auto_load_python_scripts_enabled and made public.
11562         (script_language_python): Delete, moved to python.c.
11563         (gdbpy_script_language_defn): Delete.
11564         (info_auto_load_python_scripts): Update to use
11565         extension_language_python.
11566
11567         * breakpoint.c (condition_command): Replace call to
11568         gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11569         (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11570         with call to breakpoint_ext_lang_cond_says_stop.
11571         * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11572         from gdbpy_should_stop.  Change result type to enum scr_bp_stop.
11573         New arg slang.  Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11574         (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11575         New arg slang.
11576         (local_setattro): Print name of extension language with existing
11577         stop condition.
11578
11579         * valprint.c (val_print, value_print): Update to call
11580         apply_ext_lang_val_pretty_printer.
11581         * cp-valprint.c (cp_print_value): Update call to
11582         apply_ext_lang_val_pretty_printer.
11583         * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11584         (gdbpy_apply_val_pretty_printer): Renamed from
11585         apply_val_pretty_printer.  New arg extlang.
11586         (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11587
11588         * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11589         extension language API.
11590         * cli/cli-script.c (execute_control_command): Update to call
11591         eval_ext_lang_from_control_command.
11592
11593         * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11594         enum ext_lang_bt_status values.  Update call to
11595         apply_ext_lang_frame_filter.
11596         (mi_cmd_stack_list_locals): Ditto.
11597         (mi_cmd_stack_list_args): Ditto.
11598         (mi_cmd_stack_list_variables): Ditto.
11599         * mi/mi-main.c: Delete #include "python/python-internal.h".
11600         Add #include "extension.h".
11601         (mi_cmd_list_features): Replace reference to python internal variable
11602         gdb_python_initialized with call to ext_lang_initialized_p.
11603
11604         * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11605         Update to use enum ext_lang_frame_args.  Update to call
11606         apply_ext_lang_frame_filter.
11607         * python/py-framefilter.c (extract_sym): Update to use enum
11608         ext_lang_bt_status.
11609         (extract_value, py_print_type, py_print_value): Ditto.
11610         (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11611         (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11612         (py_print_frame): Ditto.
11613         (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11614         New arg extlang.  Update to use enum ext_lang_bt_status.
11615
11616         * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11617         finish_python_initialization.  Replace with call to
11618         finish_ext_lang_initialization.
11619
11620         * typeprint.c (do_free_global_table): Update to call
11621         free_ext_lang_type_printers.
11622         (create_global_typedef_table): Update to call
11623         start_ext_lang_type_printers.
11624         (find_global_typedef): Update to call apply_ext_lang_type_printers.
11625         * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11626         (type_print_options): Change type of global_printers from "void *"
11627         to "struct ext_lang_type_printers *".
11628
11629         * value.c (preserve_values): Update to call preserve_ext_lang_values.
11630         * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11631         (gdbpy_preserve_values): Renamed from preserve_python_values.
11632         New arg extlang.
11633         (!HAVE_PYTHON, preserve_python_values): Delete.
11634
11635         * utils.c (quit_flag): Delete, moved to extension.c.
11636         (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11637         extension.c.
11638
11639         * eval.c: Delete #include "python/python.h".
11640         * main.c: Delete #include "python/python.h".
11641
11642         * defs.h: Update comment.
11643
11644 2014-02-06  Joel Brobecker  <brobecker@adacore.com>
11645
11646         GDB 7.7 released.
11647
11648 2014-02-05  Mark Kettenis  <kettenis@gnu.org>
11649
11650         * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11651         defined.
11652
11653 2014-02-05  Yao Qi  <yao@codesourcery.com>
11654
11655         * remote.c (remote_pass_signals): Remove local 'buf' and use
11656         rs->buf.
11657         (remote_program_signals): Likewise.
11658
11659 2014-02-05  Yao Qi  <yao@codesourcery.com>
11660
11661         * ctf.c: Include "inferior.h" and "gdbthread.h".
11662         (CTF_PID): A new macro.
11663         (ctf_open): Call inferior_appeared and add_thread_silent.
11664         (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11665         (ctf_thread_alive): New function.
11666         (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11667
11668 2014-02-05  Yao Qi  <yao@codesourcery.com>
11669
11670         Revert this patch:
11671
11672         2013-05-24  Yao Qi  <yao@codesourcery.com>
11673
11674         * tracepoint.c (TFILE_PID): Remove.
11675         (tfile_open): Don't add thread and inferior.
11676         (tfile_close): Don't set 'inferior_ptid'.  Don't call
11677         exit_inferior_silent.
11678         (tfile_thread_alive): Remove.
11679         (init_tfile_ops): Don't set field 'to_thread_alive' of
11680         tfile_ops.
11681
11682 2014-02-04  Christian Eggers  <ceggers@gmx.de>  (tiny change)
11683
11684         * remote.c (remote_start_remote): Call remote_check_symbols even
11685         if only symbol-file (not file) has been given.
11686
11687 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11688
11689         * gdbarch.sh (skip_entrypoint): New callback.
11690         * gdbarch.c, gdbarch.h: Regenerate.
11691         * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11692         * infrun.c (fill_in_stop_func): Likewise.
11693         * ppc-linux-tdep.c: Include "elf/ppc64.h".
11694         (ppc_elfv2_elf_make_msymbol_special): New function.
11695         (ppc_elfv2_skip_entrypoint): Likewise.
11696         (ppc_linux_init_abi): Install them for ELFv2.
11697
11698 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11699
11700         * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11701         (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11702         (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11703         (ppc64_sysv_abi_return_value): Likewise.  Also, handle small
11704         structures returned in GPRs.
11705
11706 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11707
11708         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11709         offset to the stack parameter list for the ELFv2 ABI.
11710
11711 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11712
11713         * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11714         set_gdbarch_convert_from_func_ptr_addr and
11715         set_gdbarch_elf_make_msymbol_special for ELFv1.
11716         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11717         function descriptors on ELFv1.
11718         (ppc64_sysv_abi_push_dummy_call): Likewise.  On ELFv2,
11719         set up r12 at function entry.
11720
11721 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11722
11723         * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11724         (struct gdbarch_tdep): New member elf_abi.
11725
11726         * rs6000-tdep.c: Include "elf/ppc64.h".
11727         (rs6000_gdbarch_init): Detect ELF ABI version.
11728
11729 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11730
11731         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11732         within a register pair holding a DFP 128-bit value on little-endian.
11733         (ppc64_sysv_abi_return_value_base): Likewise.
11734         * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11735         (dfp_pseudo_register_write): Likewise.
11736
11737 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11738
11739         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11740         offset on little-endian when passing _Decimal32.
11741         (ppc64_sysv_abi_return_value_base): Likewise for return values.
11742
11743 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11744
11745         * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11746         of the overlapped FP register within the VSX register on little-
11747         endian platforms.
11748         (efpr_pseudo_register_write): Likewise.
11749
11750 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11751
11752         * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11753         offset on little-endian when passing small structures.
11754
11755 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11756
11757         * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11758         (struct ppc64_sysv_argpos): New data structure.
11759         (ppc64_sysv_abi_push_float): Remove.
11760         (ppc64_sysv_abi_push_val): New function.
11761         (ppc64_sysv_abi_push_integer): Likewise.
11762         (ppc64_sysv_abi_push_freg): Likewise.
11763         (ppc64_sysv_abi_push_vreg): Likewise.
11764         (ppc64_sysv_abi_push_param): Likewise.
11765         (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11766         (ppc64_sysv_abi_return_value_base): New function.
11767         (ppc64_sysv_abi_return_value): Refactor to use it.
11768
11769 2014-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11770
11771         * NEWS: Document new target powerpc64le-*-linux*.
11772
11773 2014-02-04  Mark Kettenis  <kettenis@gnu.org>
11774
11775         * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11776         (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11777         core dumps.
11778         (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11779         register set used in ELF core dumps.  Add floating-point register set.
11780
11781 2014-02-03  Kevin Buettner  <kevinb@redhat.com>
11782
11783         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11784         dwarf2_to_gdb[] table using symbolic constants.  Adjust
11785         penultimate entry from number representing the PC register
11786         to symbolic constant representing the MDR register.  Add
11787         constant for the PC register to the end of the table.
11788
11789 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
11790
11791         * bsd-kvm.c: Include <sys/param.h>
11792
11793 2014-02-03  Mark Kettenis  <kettenis@gnu.org>
11794
11795         * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11796
11797 2014-01-31  Joel Brobecker  <brobecker@adacore.com>
11798
11799         * ada-lang.h (clear_ada_sym_cache): Delete.
11800
11801 2014-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
11802
11803         * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11804
11805 2014-01-29  Jose E. Marchesi  <jose.marchesi@oracle.com>
11806
11807         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11808           the sigreturn register save area only if the syscall is
11809           sigreturn.
11810
11811 2014-01-29  Joel Brobecker  <brobecker@adacore.com>
11812
11813         * valops.c (value_slice): Minor reformatting.
11814
11815 2014-01-28  Ulrich Weigand  <uweigand@de.ibm.com>
11816
11817         * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11818
11819 2014-01-28  Joel Brobecker  <brobecker@adacore.com>
11820
11821         * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11822         New static globals.
11823         (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11824         (ada_ignore_descriptive_types_p): New static global.
11825         (find_parallel_type_by_descriptive_type): Return immediately
11826         if ada_ignore_descriptive_types_p is set.
11827         (_initialize_ada_language): Register new commands "maintenance
11828         set ada", "maintenance show ada", "maintenance set ada
11829         ignore-descriptive-types" and "maintenance show ada
11830         ignore-descriptive-types".
11831         * NEWS: Add entry for new "maint ada set/show
11832         ignore-descriptive-types" commands.
11833
11834 2014-01-27  Markus Metzger  <markus.t.metzger@intel.com>
11835
11836         * record-btrace.c (record_btrace_close): Call btrace_teardown
11837         for all threads.
11838
11839 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11840
11841         * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11842         "ui-out.h".
11843
11844 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11845
11846         * ada-typeprint (type_is_full_subrange_of_target_type):
11847         New function.
11848         (print_range): Add parameter bounds_prefered_p.  If not set,
11849         try printing range types using the name of their base type.
11850         (print_range_type): Add parameter bounds_prefered_p.
11851         Use it in call to print_range.
11852         (print_array_type, ada_print_type): Update calls to print_range
11853         and print_range_type.
11854
11855 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11856
11857         * ada-typeprint.c (print_array_type, print_choices, print_range)
11858         (print_range_bound, print_dynamic_range_bound, print_range_type):
11859         Remove declaration.
11860
11861 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11862
11863         * ada-typeprint.c (print_range): Add missing empty line
11864         after local declaration.
11865
11866 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11867
11868         * ada-valprint.c (print_optional_low_bound): Get index_type's
11869         target type for as long as it is a TYPE_CODE_RANGE.
11870
11871 2014-01-27  Joel Brobecker  <brobecker@adacore.com>
11872
11873         * procfs.c (procfs_make_note_section): Remove assertion and
11874         associated comment.
11875
11876 2014-01-24  Yao Qi  <yao@codesourcery.com>
11877
11878         * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11879         * corelow.c (get_core_siginfo): Likewise.
11880
11881 2014-01-24  Yao Qi  <yao@codesourcery.com>
11882
11883         * remote.c (remote_write_bytes_aux): Change type of 'len' to
11884         ULONGEST.  Don't check 'len' is negative.
11885         (remote_write_bytes):  Change type of 'len' to ULONGEST.
11886
11887 2014-01-23  Tom Tromey  <tromey@redhat.com>
11888
11889         PR python/16485:
11890         * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11891         Handle exception from frame.block.
11892         (FrameVars.fetch_frame_locals): Likewise.
11893
11894 2014-01-23  Tom Tromey  <tromey@redhat.com>
11895
11896         PR python/16487:
11897         * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11898         on a NULL pointer.  Move "goto error" to correct place.
11899
11900 2014-01-23  Tom Tromey  <tromey@redhat.com>
11901
11902         PR python/16491:
11903         * python/py-framefilter.c (apply_frame_filter): Call
11904         ensure_python_env after computing gdbarch.
11905
11906 2014-01-23  Yao Qi  <yao@codesourcery.com>
11907
11908         * target.c (raw_memory_xfer_partial): Change argument type
11909         from void * to gdb_byte *.
11910         (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11911
11912 2014-01-22  Doug Evans  <dje@google.com>
11913
11914         New gdbserver option --debug-format=timestamp.
11915         * NEWS: Mention it.
11916
11917 2014-01-22  Andreas Arnez  <arnez@vnet.linux.ibm.com>
11918
11919         * syscalls/s390x-linux.xml: New file.
11920         * syscalls/s390-linux.xml: New file.
11921         * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11922         (XML_SYSCALL_FILENAME_S390X): Likewise.
11923         (op_svc): New enum value for SVC opcode.
11924         (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11925         (s390_linux_get_syscall_number): New function.
11926         (s390_gdbarch_init): Register '*get_syscall_number' and the
11927         syscall xml file name.
11928         * data-directory/Makefile.in (SYSCALLS_FILES): Add
11929         "s390-linux.xml" and "s390x-linux.xml".
11930         * NEWS: Announce new feature.
11931
11932 2014-01-22  Baruch Siach  <baruch@tkos.co.il>
11933
11934         * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11935
11936 2014-01-22  Pedro Alves  <palves@redhat.com>
11937
11938         * xtensa-config.c: Include defs.h.
11939
11940 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
11941
11942         * common/common-utils.h: Add "ARI:" comment beside __func__
11943         reference.
11944
11945 2014-01-22  Joel Brobecker  <brobecker@adacore.com>
11946
11947         * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11948         documentation a bit.
11949
11950 2014-01-21  Roland McGrath  <mcgrathr@google.com>
11951
11952         * configure.ac: Call AM_PROG_INSTALL_STRIP.
11953         * configure: Regenerate.
11954         * aclocal.m4: Regenerate.
11955         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11956         New substituted variables.
11957         (install-strip): New target.
11958         (INSTALL_SCRIPT): New substituted variable.
11959         (FLAGS_TO_PASS): Add it.
11960         (install-only): Use $(INSTALL_SCRIPT) rather than
11961         $(INSTALL_PROGRAM) for gcore.
11962
11963 2014-01-20  Tom Tromey  <tromey@redhat.com>
11964
11965         * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11966         together.
11967
11968 2014-01-20  Tom Tromey  <tromey@redhat.com>
11969
11970         * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11971         (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11972         (deprecated_cmd_warning, complete_on_cmdlist): Update.
11973         * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11974         (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11975         (struct cmd_list_element) <flags>: Remove.
11976         <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11977         doc_allocated>: New fields.
11978         <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11979         bitfields.
11980         * maint.c (maintenance_do_deprecate): Update.
11981         * top.c (execute_command): Update.
11982
11983 2014-01-20  Baruch Siach  <baruch@tkos.co.il>
11984
11985         * xtensa-linux-nat.c: Include asm/ptrace.h.
11986
11987 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
11988
11989         * Makefile.in (SFILES): Add d-support.c.
11990         (COMMON_OBS): Add d-support.o.
11991         * d-lang.h (d_parse_symbol): Add comment, now defined in
11992         d-support.c.
11993         * d-lang.c (parse_call_convention)
11994         (parse_attributes, parse_function_types)
11995         (parse_function_args, parse_type, parse_identifier)
11996         (call_convention_p, d_parse_symbol): Move functions to ...
11997         * d-support.c: ... New file.
11998
11999 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12000
12001         * d-lang.h (d_parse_symbol): Add declaration.
12002         * d-lang.c (extract_identifiers)
12003         (extract_type_info): Remove functions.
12004         (parse_call_convention, parse_attributes)
12005         (parse_function_types, parse_function_args)
12006         (parse_type, parse_identifier, call_convention_p)
12007         (d_parse_symbol): New functions.
12008         (d_demangle): Use d_parse_symbol to demangle D symbols.
12009
12010 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12011
12012         * d-lang.h (struct builtin_d_type): New data type.
12013         (builtin_d_type): Add declaration.
12014         * d-lang.c (d_language_arch_info, build_d_types)
12015         (builtin_d_type): New functions.
12016         (enum d_primitive_types): New data type.
12017         (d_language_defn): Change c_language_arch_info to
12018         d_language_arch_info.
12019         (d_type_data): New static variable.
12020         (_initialize_d_language): Initialize d_type_data.
12021
12022 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12023
12024         * d-lang.h (d_main_name): Add declaration.
12025         * d-lang.c (d_main_name): New function.
12026         * symtab.c (find_main_name): Add call to d_main_name.
12027
12028 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12029
12030         * d-lang.c (d_language_defn): Change macro_expansion_c to
12031         macro_expansion_no.
12032
12033 2014-01-17  Iain Buclaw  <ibuclaw@gdcproject.org>
12034
12035         * MAINTAINERS: Add myself as a write-after-approval maintainer.
12036
12037 2014-01-17  Sergio Durigan Junior  <sergiodj@redhat.com>
12038
12039         * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
12040         gdb_exception" declaration.
12041         * remote.c (getpkt_or_notif_sane): Likewise.
12042
12043 2014-01-17  Doug Evans  <dje@google.com>
12044
12045         * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
12046         function, contents of dirnames_to_char_ptr_vec_append moved here.
12047         (delim_string_to_char_ptr_vec): New function.
12048         (dirnames_to_char_ptr_vec_append): Rewrite.
12049         * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
12050
12051 2014-01-17  Doug Evans  <dje@google.com>
12052
12053         * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
12054         and moved here ...
12055         * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
12056         #include "common-utils.h".
12057         (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
12058         * common/vec.h (VEC_ASSERT_PASS): Update.
12059         * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
12060         (MACH_CHECK_ERROR): Update.
12061
12062 2014-01-17  Simon Marchi  <simon.marchi@ericsson.com>
12063
12064         * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
12065         comments.
12066         * gdbarch.h: Regenerate.
12067
12068 2014-01-16  Tom Tromey  <tromey@redhat.com>
12069
12070         * value.c (struct value) <regnum>: Move earlier.
12071
12072 2014-01-16  Tom Tromey  <tromey@redhat.com>
12073
12074         * remote.c (extended_remote_create_inferior): Rename from
12075         extended_remote_create_inferior_1.  Add "ops" argument.  Remove
12076         old implementation.
12077
12078 2014-01-16  Pedro Alves  <palves@redhat.com>
12079
12080         * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
12081         NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
12082         the backchain.
12083
12084 2014-01-16  Doug Evans  <dje@google.com>
12085
12086         * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
12087
12088 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12089
12090         * btrace.h (btrace_thread_flag): New.
12091         (struct btrace_thread_info) <flags>: New.
12092         * record-btrace.c (record_btrace_resume_thread)
12093         (record_btrace_find_thread_to_move, btrace_step_no_history)
12094         (btrace_step_stopped, record_btrace_start_replaying)
12095         (record_btrace_step_thread, record_btrace_decr_pc_after_break)
12096         (record_btrace_find_resume_thread): New.
12097         (record_btrace_resume, record_btrace_wait): Extend.
12098         (record_btrace_can_execute_reverse): New.
12099         (record_btrace_open): Fail in non-stop mode.
12100         (record_btrace_set_replay): Split into this, ...
12101         (record_btrace_stop_replaying): ... this, ...
12102         (record_btrace_clear_histories): ... and this.
12103         (init_record_btrace_ops): Init to_can_execute_reverse.
12104         * NEWS: Announce it.
12105
12106 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12107
12108         * target.h (struct target_ops) <to_decr_pc_after_break>: New.
12109         (forward_target_decr_pc_after_break)
12110         (target_decr_pc_after_break): New.
12111         * target.c (forward_target_decr_pc_after_break)
12112         (target_decr_pc_after_break): New.
12113         * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
12114         instead of gdbarch_decr_pc_after_break.
12115         * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12116         instead of gdbarch_decr_pc_after_break.
12117         * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
12118         instead of gdbarch_decr_pc_after_break.
12119         * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
12120         instead of gdbarch_decr_pc_after_break.
12121         * linux-thread-db.c (check_event): Call target_decr_pc_after_break
12122         instead of gdbarch_decr_pc_after_break.
12123         * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
12124         instead of gdbarch_decr_pc_after_break.
12125
12126 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12127
12128         * btrace.c: Include regcache.h.
12129         (btrace_add_pc): New.
12130         (btrace_enable): Call btrace_add_pc.
12131         (btrace_is_empty): New.
12132         * btrace.h (btrace_is_empty): New.
12133         * record-btrace.c (require_btrace, record_btrace_info): Call
12134         btrace_is_empty.
12135
12136 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12137
12138         * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
12139         Support delta reads.
12140         (linux_disable_btrace): Change return type.
12141         * common/linux-btrace.h (linux_read_btrace): Change parameters
12142         and return type to allow error reporting.  Update users.
12143         (linux_disable_btrace): Change return type.  Update users.
12144         * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
12145         New.
12146         (btrace_error): New.
12147         (btrace_block) <begin>: Comment on BEGIN == 0.
12148         * btrace.c (btrace_compute_ftrace): Start from the end of
12149         the current trace.
12150         (btrace_stitch_trace, btrace_clear_history): New.
12151         (btrace_fetch): Read delta trace, return if replaying.
12152         (btrace_clear): Move clear history code to btrace_clear_history.
12153         (parse_xml_btrace): Throw an error if parsing failed.
12154         * target.h (struct target_ops) <to_read_btrace>: Change parameters
12155         and return type to allow error reporting.
12156         (target_read_btrace): Change parameters and return type to allow
12157         error reporting.
12158         * target.c (target_read_btrace): Update.
12159         * remote.c (remote_read_btrace): Support delta reads.  Pass
12160         errors on.
12161         * NEWS: Announce it.
12162
12163 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12164
12165         * record.h (record_btrace_frame_unwind)
12166         (record_btrace_tailcall_frame_unwind): New declarations.
12167         * dwarf2-frame: Include record.h
12168         (dwarf2_frame_cfa): Throw an error for btrace frames.
12169         * record-btrace.c: Include hashtab.h.
12170         (btrace_get_bfun_name): New.
12171         (btrace_call_history): Call btrace_get_bfun_name.
12172         (struct btrace_frame_cache): New.
12173         (bfcache): New.
12174         (bfcache_hash, bfcache_eq, bfcache_new): New.
12175         (btrace_get_frame_function): New.
12176         (record_btrace_frame_unwind_stop_reason): Allow unwinding.
12177         (record_btrace_frame_this_id): Compute own id.
12178         (record_btrace_frame_prev_register): Provide PC, throw_error
12179         for all other registers.
12180         (record_btrace_frame_sniffer): Detect btrace frames.
12181         (record_btrace_tailcall_frame_sniffer): New.
12182         (record_btrace_frame_dealloc_cache): New.
12183         (record_btrace_frame_unwind): Add new functions.
12184         (record_btrace_tailcall_frame_unwind): New.
12185         (_initialize_record_btrace): Allocate cache.
12186         * btrace.c (btrace_clear): Call reinit_frame_cache.
12187         * NEWS: Announce it.
12188
12189 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12190
12191         * record-btrace.c (record_btrace_set_replay)
12192         (record_btrace_goto_begin, record_btrace_goto_end)
12193         (record_btrace_goto): New.
12194         (init_record_btrace_ops): Initialize them.
12195         * NEWS: Announce it.
12196
12197 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12198
12199         * record-btrace.c (record_btrace_find_new_threads)
12200         (record_btrace_thread_alive): New.
12201         (init_record_btrace_ops): Initialize to_find_new_threads and
12202         to_thread_alive.
12203
12204 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12205
12206         * record-btrace.c (record_btrace_resume): New.
12207         (record_btrace_wait): New.
12208         (init_record_btrace_ops): Initialize to_wait and to_resume.
12209
12210 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12211
12212         * record-btrace.c (record_btrace_xfer_partial)
12213         (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
12214         (record_btrace_allow_memory_access): New.
12215         (init_record_btrace_ops): Initialize new methods.
12216         * target.c (raw_memory_xfer_partial): Bail out if target reports
12217         that this memory is not available.
12218
12219 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12220
12221         * target.h (target_ops) <to_insert_breakpoint>
12222         <to_remove_breakpoint>: Add target_ops parameter.
12223         (forward_target_insert_breakpoint): New.
12224         (forward_target_remove_breakpoint): New.
12225         (memory_remove_breakpoint, memory_insert_breakpoint):
12226         Add target_ops parameter.
12227         * target.c (target_insert_breakpoint): Split into this and ...
12228         (forward_target_insert_breakpoint): ... this.
12229         (target_remove_breakpoint): Split into this and ...
12230         (forward_target_remove_breakpoint): ... this.
12231         (debug_to_insert_breakpoint): Add target_ops parameter.
12232         Call forward_target_insert_breakpoint.
12233         (debug_to_remove_breakpoint): Add target_ops parameter.
12234         Call forward_target_remove_breakpoint.
12235         (update_current_target): Do not inherit or default to_insert_breakpoint
12236         and to_remove_breakpoint.
12237         * corelow.c (ignore): Add target_ops parameter.
12238         * exec.c (ignore): Add target_ops parameter.
12239         * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
12240         Add target_ops parameter.
12241         * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
12242         Add target_ops parameter.
12243         * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
12244         Add target_ops parameter.
12245         * record-full.c (record_full_beneath_to_insert_breakpoint)
12246         (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
12247         (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
12248         (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
12249         (record_full_core_remove_breakpoint): Add target_ops parameter.
12250         Update users.
12251         (record_full_beneath_to_insert_breakpoint_ops)
12252         (record_full_beneath_to_remove_breakpoint_ops)
12253         (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12254         (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12255         tmp_to_remove_breakpoint_ops,
12256         record_full_beneath_to_insert_breakpoint_ops, and
12257         record_full_beneath_to_remove_breakpoint_ops.
12258         * remote-m32r-sdi.c (m32r_insert_breakpoint)
12259         (m32r_remove_breakpoint): Add target_ops parameter.
12260         * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12261         Add target_ops parameter.
12262         * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12263         Add target_ops parameter.
12264
12265 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12266             Markus Metzger  <markus.t.metzger@intel.com>
12267
12268         * record-btrace.c: Include frame-unwind.h.
12269         (record_btrace_frame_unwind_stop_reason)
12270         (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12271         (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12272         New.
12273         (init_record_btrace_ops): Install it.
12274
12275 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12276
12277         * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12278         get_prev_frame_1.
12279
12280 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12281
12282         * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12283         earlier.
12284
12285 2014-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12286
12287         * frame-unwind.c: Include target.h.
12288         (frame_unwind_try_unwinder): New function with code from ...
12289         (frame_unwind_find_by_frame): ... here.  New variable
12290         unwinder_from_target, call also target_get_unwinder)
12291         (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12292         * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12293         * target.h (struct target_ops): New fields to_get_unwinder and
12294         to_get_tailcall_unwinder.
12295         (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12296
12297 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12298
12299         * record-btrace.c (record_btrace_fetch_registers)
12300         (record_btrace_store_registers)
12301         (record_btrace_to_prepare_to_store): New.
12302         (init_record_btrace_ops): Add the above.
12303
12304 2014-01-16  Tom Tromey  <tromey@redhat.com>
12305
12306         * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12307         * target.h (struct target_ops) <to_prepare_to_store>: Add
12308         argument.
12309         (target_prepare_to_store): Add argument.
12310         * target.c (debug_to_prepare_to_store): Add argument.
12311         (update_current_target): Update.
12312         * remote.c (remote_prepare_to_store): Add 'self' argument.
12313         * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12314         * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12315         * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12316         * record-full.c (record_full_core_prepare_to_store): Add 'self'
12317         argument.
12318         * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12319         * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12320         * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12321         * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12322         * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12323
12324 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12325
12326         * btrace.h (replay) <replay>: New.
12327         (btrace_is_replaying): New.
12328         * btrace.c (btrace_clear): Free replay iterator.
12329         (btrace_is_replaying): New.
12330         * record-btrace.c (record_btrace_is_replaying): New.
12331         (record_btrace_info): Print insn number if replaying.
12332         (record_btrace_insn_history): Start at replay position.
12333         (record_btrace_call_history): Start at replay position.
12334         (init_record_btrace_ops): Init to_record_is_replaying.
12335
12336 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12337
12338         * record-btrace.c (record_btrace_insn_history_range): Include
12339         end.
12340         (record_btrace_insn_history_from): Adjust range.
12341         (record_btrace_call_history_range): Include
12342         end.
12343         (record_btrace_call_history_from): Adjust range.
12344         * NEWS: Announce changes.
12345
12346 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12347
12348         * record.h (enum record_print_flag)
12349         <record_print_indent_calls>: New.
12350         * record.c (get_call_history_modifiers): Recognize /c modifier.
12351         (_initialize_record): Document /c modifier.
12352         * record-btrace.c (btrace_call_history): Add btinfo parameter.
12353         Reorder fields.  Optionally indent the function name.  Update
12354         all users.
12355         * NEWS: Announce changes.
12356
12357 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12358
12359         * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12360
12361 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12362
12363         * btrace.c (ftrace_new_function): Start counting at one.
12364         * record-btrace.c (record_btrace_info): Adjust number of calls
12365         and insns.
12366         * NEWS: Announce it.
12367
12368 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12369
12370         * record-btrace.c (btrace_call_history_insn_range): Print
12371         insn range as [begin, end].
12372
12373 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12374
12375         * btrace.h (struct btrace_func_link): New.
12376         (enum btrace_function_flag): New.
12377         (struct btrace_inst): Rename to ...
12378         (struct btrace_insn): ...this. Update all users.
12379         (struct btrace_func) <ibegin, iend>: Remove.
12380         (struct btrace_func_link): New.
12381         (struct btrace_func): Rename to ...
12382         (struct btrace_function): ...this. Update all users.
12383         (struct btrace_function) <segment, flow, up, insn, insn_offset)
12384         (number, level, flags>: New.
12385         (struct btrace_insn_iterator): Rename to ...
12386         (struct btrace_insn_history): ...this.
12387         Update all users.
12388         (struct btrace_insn_iterator, btrace_call_iterator): New.
12389         (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12390         (struct btrace_target_info) <begin, end, level>
12391         <insn_history, call_history>: New.
12392         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12393         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12394         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12395         (btrace_call_number, btrace_call_begin, btrace_call_end)
12396         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12397         (btrace_find_function_by_number, btrace_set_insn_history)
12398         (btrace_set_call_history): New.
12399         * btrace.c (btrace_init_insn_iterator)
12400         (btrace_init_func_iterator, compute_itrace): Remove.
12401         (ftrace_print_function_name, ftrace_print_filename)
12402         (ftrace_skip_file): Change
12403         parameter to const.
12404         (ftrace_init_func): Remove.
12405         (ftrace_debug): Use new btrace_function fields.
12406         (ftrace_function_switched): Also consider gaining and
12407         losing symbol information).
12408         (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12409         (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12410         (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12411         New.
12412         (ftrace_new_function): Move. Remove debug print.
12413         (ftrace_update_lines, ftrace_update_insns): New.
12414         (ftrace_update_function): Check for call, ret, and jump.
12415         (compute_ftrace): Renamed to ...
12416         (btrace_compute_ftrace): ...this. Rewritten to compute call
12417         stack.
12418         (btrace_fetch, btrace_clear): Updated.
12419         (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12420         (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12421         (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12422         (btrace_call_number, btrace_call_begin, btrace_call_end)
12423         (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12424         (btrace_find_function_by_number, btrace_set_insn_history)
12425         (btrace_set_call_history): New.
12426         * record-btrace.c (require_btrace): Use new btrace thread
12427         info fields.
12428         (record_btrace_info, btrace_insn_history)
12429         (record_btrace_insn_history, record_btrace_insn_history_range):
12430         Use new btrace thread info fields and new iterator.
12431         (btrace_func_history_src_line): Rename to ...
12432         (btrace_call_history_src_line): ...this. Use new btrace
12433         thread info fields.
12434         (btrace_func_history): Rename to ...
12435         (btrace_call_history): ...this. Use new btrace thread info
12436         fields and new iterator.
12437         (record_btrace_call_history, record_btrace_call_history_range):
12438         Use new btrace thread info fields and new iterator.
12439
12440 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12441
12442         * frame.h (frame_id_build_unavailable_stack_special): New.
12443         * frame.c (frame_id_build_unavailable_stack_special): New.
12444
12445 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12446
12447         * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12448         (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12449         (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12450         to gdbarch.
12451         * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12452         (i386_insn_is_jump, i386_jmp_p): New.
12453         (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12454         insn_is_jump to gdbarch.
12455         * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12456         * gdbarch.h: Regenerated.
12457         * gdbarch.c: Regenerated.
12458         * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12459         (default_insn_is_jump): New.
12460         * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12461         (default_insn_is_jump): New.
12462
12463 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12464
12465         * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12466         Change to ...
12467         (btrace_read_type) <BTRACE_READ_ALL>: ... this.  Update users.
12468         (btrace_read_type) <btrace_read_new>: Change to ...
12469         (btrace_read_type) <BTRACE_READ_NEW>: ... this.  Update users.
12470
12471 2014-01-16  Markus Metzger  <markus.t.metzger@intel.com>
12472
12473         * common/linux-btrace.c (linux_read_btrace): Free trace from
12474         previous iteration.
12475
12476 2014-01-15  Doug Evans  <dje@google.com>
12477
12478         * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12479         uint32_t.
12480
12481 2014-01-15  Tom Tromey  <tromey@redhat.com>
12482
12483         * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12484         * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12485         * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12486         (set_objfile_main_name): New function.
12487         * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12488         language_of_main>: New fields.
12489         (set_objfile_main_name): Declare.
12490         * symtab.c (find_main_name): Loop over objfiles to find the main
12491         name and language.
12492         (set_main_name): Now static.
12493         (get_main_info): Add comment.
12494         * symtab.h (set_main_name): Don't declare.
12495
12496 2014-01-15  Tom Tromey  <tromey@redhat.com>
12497
12498         * symtab.c (main_progspace_key): New global.
12499         (struct main_info): New.
12500         (name_of_main, language_of_main): Remove.
12501         (get_main_info, main_info_cleanup): New function.
12502         (set_main_name, main_name, main_language): Use get_main_info.
12503         (_initialize_symtab): Initialize main_progspace_key.
12504
12505 2014-01-15  Tom Tromey  <tromey@redhat.com>
12506
12507         * dbxread.c (process_one_symbol): Update.
12508         * dwarf2read.c (read_partial_die): Update.
12509         * symfile.c (set_initial_language): Call main_language.
12510         * symtab.c (language_of_main): Now static.
12511         (set_main_name): Add 'lang' parameter.
12512         (find_main_name): Update.
12513         (main_language): New function.
12514         (symtab_observer_executable_changed): Update.
12515         * symtab.h (set_main_name): Update.
12516         (language_of_main): Remove.
12517         (main_language): Declare.
12518
12519 2014-01-15  Tom Tromey  <tromey@redhat.com>
12520
12521         * symfile.c (init_entry_point_info): Use new "initialized" field.
12522         Update.
12523         * objfiles.h (struct entry_point) <initialized>: New field.
12524         (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12525         (struct objfile) <ei>: ...here.  Remove.
12526         * objfiles.c (entry_point_address_query): Update.
12527
12528 2014-01-15  Tom Tromey  <tromey@redhat.com>
12529
12530         * objfiles.c (entry_point_address_query): Relocate entry point
12531         address.
12532         (objfile_relocate1): Do not relocate entry point address.
12533         * objfiles.h (struct entry_info) <entry_point>: Update comment.
12534         <the_bfd_section_index>: New field.
12535         * symfile.c (init_entry_point_info): Find the entry point's
12536         section.
12537
12538 2014-01-15  Tom Tromey  <tromey@redhat.com>
12539
12540         * solib-frv.c (enable_break): Use entry_point_address_query.
12541
12542 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12543
12544         * NEWS: Add note on improved process record-replay on
12545         arm*-linux* targets.
12546
12547 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12548
12549         * arm-tdep.c (enum arm_record_result): New enum.
12550         (arm_record_unsupported_insn): New function.
12551         (arm_record_coproc_data_proc): Removed.
12552         (thumb2_record_ld_st_multiple): New function.
12553         (thumb2_record_ld_st_dual_ex_tbb): New function.
12554         (thumb2_record_data_proc_sreg_mimm): New function.
12555         (thumb2_record_ps_dest_generic): New function.
12556         (thumb2_record_branch_misc_cntrl): New function.
12557         (thumb2_record_str_single_data): New function.
12558         (thumb2_record_ld_mem_hints): New function.
12559         (thumb2_record_ld_word): New function.
12560         (thumb2_record_lmul_lmla_div): New function.
12561         (thumb2_record_decode_insn_handler): New function.
12562         (decode_insn): Add thumb32 instruction handlers.
12563
12564 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12565
12566         * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12567         (struct arm_linux_record_tdep): Declare.
12568         (arm_canonicalize_syscall): New function.
12569         (arm_all_but_pc_registers_record): New function.
12570         (arm_linux_syscall_record): New function.
12571         (arm_linux_init_abi): Add syscall recording constructs.
12572         * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12573         decoding.  (arm_record_coproc_data_proc): Update arm syscall
12574         decoding.
12575         * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12576         <arm_syscall_record>: New field.
12577         * configure.tgt (arm*-*-linux*): Add linux-record.o to
12578         gdb_target_obs.
12579
12580 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12581
12582         * arm-tdep.c (thumb_record_misc): Update to use sp as base
12583         register for push instruction recording.
12584
12585 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12586
12587         * arm-tdep.c (thumb_record_misc): Update to correct logical
12588         error while recording ldm, ldmia and pop instructions.
12589
12590 2014-01-15  Omair Javaid  <omair.javaid@linaro.org>
12591
12592         * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12593
12594 2014-01-15  Pedro Alves  <palves@redhat.com>
12595
12596         * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12597         (go32_resume, go32_fetch_registers, store_register)
12598         (go32_store_registers, go32_prepare_to_store)
12599         (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12600         (go32_create_inferior, go32_can_run, go32_terminal_init)
12601         (go32_terminal_inferior, go32_terminal_ours): Delete forward
12602         declarations.
12603
12604 2014-01-15  Tom Tromey  <tromey@redhat.com>
12605
12606         * target.h (async_callback_ftype): New typedef.
12607         (struct target_ops) <to_async>: Use it.
12608
12609 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
12610
12611         * python/py-value.c (get_field_type): Remove unnecessary curly
12612         braces for single-statement if block.
12613
12614 2014-01-15  Joel Brobecker  <brobecker@adacore.com>
12615
12616         * python/py-type.c (convert_field): Add missing empty line
12617         after declarations.
12618
12619 2014-01-14  Doug Evans  <dje@google.com>
12620
12621         * symfile.h (expand_symtabs_matching): Renamed from
12622         expand_partial_symbol_names.  Update prototype.
12623         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12624         * symfile.c (expand_symtabs_matching): Renamed from
12625         expand_partial_symbol_names.  New args file_matcher, kind.
12626         Rename arg fun to symbol_matcher.
12627         (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12628         * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12629         ada_expand_partial_symbol_name.
12630         (ada_make_symbol_completion_list): Update to call
12631         expand_symtabs_matching.
12632         (ada_add_global_exceptions): Call expand_symtabs_matching.
12633         * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12634         call map_symbol_filenames.
12635         * symtab.c (sources_info): Update to call map_symbol_filenames.
12636         (search_symbols): Call expand_symtabs_matching.
12637         (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12638         (default_make_symbol_completion_list_break_on): Update to call
12639         expand_symtabs_matching.
12640         (make_source_files_completion_list): Update to call
12641         map_symbol_filenames.
12642
12643 2014-01-14  Doug Evans  <dje@google.com>
12644
12645         * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12646         (expand_symtabs_symbol_matcher_ftype): New typedef.
12647         (quick_symbol_functions.expand_symtabs_matching): Update to use.
12648         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12649         * symfile.c (expand_partial_symbol_names): Update to use
12650         expand_symtabs_symbol_matcher_ftype.
12651         * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12652         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12653         Arg name_matcher renamed to symbol_matcher.
12654         * psymtab.c (recursively_search_psymtabs): Update to use
12655         expand_symtabs_symbol_matcher_ftype.  Arg name_matcher renamed to
12656         sym_matcher.
12657         (expand_symtabs_matching_via_partial): Update to use
12658         expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12659         Arg name_matcher renamed to symbol_matcher.
12660
12661 2014-01-14  Doug Evans  <dje@google.com>
12662
12663         * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12664         (map_partial_symbol_filenames): Ditto.
12665         * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12666         (map_partial_symbol_filenames): Ditto.
12667         * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12668         (map_partial_symbol_filenames): Ditto.
12669         * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12670         (map_partial_symbol_filenames): Ditto.
12671         * symtab.c: Delete #include "psymtab.h".
12672
12673 2014-01-14  Pedro Alves  <palves@redhat.com>
12674             Tom Tromey  <tromey@redhat.com>
12675
12676         * infrun.c (use_displaced_stepping): Use find_record_target
12677         instead of RECORD_IS_USED.
12678         (adjust_pc_after_break): Use record_full_is_used instead of
12679         RECORD_IS_USED.
12680         * record-btrace.c (record_btrace_open): Call record_preopen
12681         instead of checking RECORD_IS_USED.
12682         * record-full.c (record_full_shortname)
12683         (record_full_core_shortname): New globals.
12684         (record_full_is_used): New function.
12685         (find_full_open): Call record_preopen instead of checking
12686         RECORD_IS_USED.
12687         (init_record_full_ops): Set the target's shortname to
12688         record_full_shortname.
12689         (init_record_full_core_ops): Set the target's shortname to
12690         record_full_core_shortname.
12691         * record-full.h (record_full_is_used): Declare.
12692         * record.c (find_record_target): Make extern.
12693         (record_preopen): New function.
12694         * record.h (RECORD_IS_USED): Delete macro.
12695         (find_record_target, record_preopen): Declare functions.
12696
12697 2014-01-14  Yao Qi  <yao@codesourcery.com>
12698
12699         * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12700         'len''s type to ULONGEST.
12701         (core_xfer_shared_libraries_aix): Likewise.
12702         * gdbarch.c, gdbarch.h: Regenerated.
12703         * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12704         Change type of 'len' to ULONGEST.
12705         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12706         (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12707
12708 2014-01-14  Yao Qi  <yao@codesourcery.com>
12709
12710         * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12711         type of 'len' to ULONGEST.
12712         (linux_xfer_osdata_processgroups): Likewise.
12713         (linux_xfer_osdata_threads): Likewise.
12714         (linux_xfer_osdata_fds): Likewise.
12715         (linux_xfer_osdata_isockets): Likewise.
12716         (linux_xfer_osdata_shm): Likewise.
12717         (linux_xfer_osdata_sem): Likewise.
12718         (linux_xfer_osdata_msg): Likewise.
12719         (linux_common_xfer_osdata): Likewise.
12720         (struct osdata_type) <getter>: Likewise.
12721         * common/linux-osdata.h (linux_common_xfer_osdata): Update
12722         the declaration.
12723
12724 2014-01-14  Yao Qi  <yao@codesourcery.com>
12725
12726         * target.h (target_xfer_partial_ftype): Update.
12727         (struct target_ops) <to_xfer_partial>: Change 'len' type to
12728         ULONGEST.
12729         * aix-thread.c (aix_thread_xfer_partial): Change type of
12730         argument 'len' to ULONGEST.
12731         * auxv.c (procfs_xfer_auxv): Likewise.
12732         (ld_so_xfer_auxv): Likewise.
12733         (memory_xfer_auxv): Likewise.
12734         * bfd-target.c (target_bfd_xfer_partial): Likewise.
12735         * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12736         * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12737         * corelow.c (core_xfer_partial): Likewise.
12738         * ctf.c (ctf_xfer_partial): Likewise.
12739         * darwin-nat.c (darwin_read_write_inferior): Likewise.  Use
12740         '%u'.
12741         (darwin_read_dyld_info): Likewise.
12742         (darwin_xfer_partial): Likewise.
12743         * exec.c (section_table_xfer_memory_partial): Likewise.
12744         (exec_xfer_partial): Likewise.
12745         * exec.h (section_table_xfer_memory_partial): Update
12746         declaration.
12747         * gnu-nat.c (gnu_xfer_memory): Likewise.  Call pulongest
12748         instead of plongest.
12749         (gnu_xfer_partial): Likewise.
12750         * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12751         (ia64_hpux_xfer_solib_got): Likewise.
12752         (ia64_hpux_xfer_partial): Likewise.
12753         * ia64-linux-nat.c (ia64_linux_xfer_partial):
12754         * inf-ptrace.c (inf_ptrace_xfer_partial):
12755         * inf-ttrace.c (inf_ttrace_xfer_partial):
12756         * linux-nat.c (linux_xfer_siginfo): Likewise.
12757         (linux_nat_xfer_partial): Likewise.
12758         (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12759         (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12760         * monitor.c (monitor_xfer_memory): Likewise.
12761         (monitor_xfer_partial): Likewise.
12762         * procfs.c (procfs_xfer_partial): Likewise.
12763         * record-full.c (record_full_xfer_partial): Likewise.
12764         (record_full_core_xfer_partial): Likewise.
12765         * remote-sim.c (gdbsim_xfer_memory): Likewise.  Call pulongest
12766         instead of plongest.
12767         (gdbsim_xfer_partial): Likewise.
12768         * remote.c (remote_xfer_partial): Likewise.
12769         * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12770         * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12771         declaration.
12772         * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12773         (rs6000_xfer_shared_libraries): Likewise.
12774         * sol-thread.c (sol_thread_xfer_partial): Likewise.
12775         * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12776         (sparc_xfer_partial): Likewise.
12777         * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12778         (spu_xfer_partial): Likewise.
12779         * spu-multiarch.c (spu_xfer_partial): Likewise.
12780         * target.c (target_read_live_memory): Likewise.
12781         (memory_xfer_live_readonly_partial): Likewise.
12782         (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12783         (target_xfer_partial, default_xfer_partial): Likewise.
12784         (current_xfer_partial): Likewise.
12785         * tracepoint.c (tfile_xfer_partial): Likewise.
12786         * windows-nat.c (windows_xfer_memory): Likewise.  Call
12787         pulongest instead of plongest.
12788         (windows_xfer_partial): Likewise.
12789         (windows_xfer_shared_libraries): Likewise.
12790
12791 2014-01-14  Yao Qi  <yao@codesourcery.com>
12792
12793         * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12794         target_xfer_partial_ftype.
12795
12796 2014-01-13  Siva Chandra Reddy  <sivachandra@google.com>
12797
12798         PR python/15464
12799         PR python/16113
12800         * valops.c (value_struct_elt_bitpos): New function
12801         * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12802         object to 'None' if the field name is an empty string ("").
12803         * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12804         attribute to look for a field when 'name' is 'None'.
12805         (get_field_type): New function
12806
12807 2014-01-13  Doug Evans  <dje@google.com>
12808
12809         PR symtab/16426
12810         * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12811         (try_open_dwop_file): Ditto.
12812         * gdb_bfd.c: #include "vec.h".
12813         (bfdp): New typedef.
12814         (struct gdb_bfd_data): New member included_bfds.
12815         (gdb_bfd_unref): Unref all included bfds.
12816         (gdb_bfd_record_inclusion): New function.
12817         * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12818
12819 2014-01-13  Tom Tromey  <tromey@redhat.com>
12820
12821         * gdbcore.h (deprecated_core_resize_section_table): Remove.
12822
12823 2014-01-13  Tom Tromey  <tromey@redhat.com>
12824
12825         * defs.h (use_windows): Remove.
12826         * gdb.c (main): Update.
12827         * main.c (captured_main, gdb_main): Update.
12828         * main.h (struct captured_main_args) <use_windows>: Remove.
12829         * top.c (use_windows): Remove.
12830
12831 2014-01-13  Tom Tromey  <tromey@redhat.com>
12832
12833         * defs.h (deprecated_flush_hook): Remove.
12834
12835 2014-01-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
12836
12837         PR threads/16216
12838         * linux-thread-db.c (try_thread_db_load): Add parameter
12839         check_auto_load_safe.  Move here the file_is_auto_load_safe call.
12840         (try_thread_db_load_from_pdir_1): Move it there from here.
12841         (try_thread_db_load_from_sdir): Update caller.
12842         (try_thread_db_load_from_dir): Move it there from here.
12843
12844 2014-01-13  Patrick Palka  <patrick@parcs.ath.cx>
12845
12846         * regformats/regdat.sh: Always rewrite the register file.
12847
12848 2014-01-13  Pedro Alves  <palves@redhat.com>
12849
12850         * Makefile.in (CHECK_HEADERS): New variable.
12851         (check-headers:): New rule.
12852
12853 2014-01-13  Tom Tromey  <tromey@redhat.com>
12854
12855         * cli/cli-setshow.c (do_set_command): Update.
12856         * defs.h (deprecated_set_hook): Remove.
12857         * top.c (deprecated_set_hook): Remove.
12858
12859 2014-01-13  Pedro Alves  <palves@redhat.com>
12860
12861         * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12862         the tracepoint if the PC is a pseudo-register.
12863
12864 2014-01-13  Tom Tromey  <tromey@redhat.com>
12865
12866         * defs.h (XCALLOC): Remove.
12867         * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12868         (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12869         * dwarf2loc.c (allocate_piece_closure): Likewise.
12870         * elfread.c (elf_symfile_segments): Likewise.
12871         (elf_symfile_segments): Likewise.
12872         * gdbtypes.c (copy_type_recursive): Likewise.
12873         * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12874         * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12875         * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12876         XCALLOC.
12877         * mt-tdep.c (mt_gdbarch_init): Likewise.
12878         * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12879         XCALLOC.
12880         * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12881         * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12882         * registry.c (registry_alloc_data): Likewise.
12883         * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12884         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12885         * serial.c (serial_fdopen_ops): Likewise.
12886         * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12887         XCALLOC.
12888         * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12889         * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12890         not XCALLOC.
12891
12892 2014-01-13  Tom Tromey  <tromey@redhat.com>
12893
12894         * defs.h (XMALLOC): Remove.
12895         * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12896         * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12897         * cli-out.c (struct ui_out *): Likewise.
12898         * cli/cli-dump.c (add_dump_command): Likewise.
12899         (add_dump_command): Likewise.
12900         * complaints.c (get_complaints): Likewise.
12901         (find_complaint): Likewise.
12902         * dwarf2-frame.c (execute_cfa_program): Likewise.
12903         * dwarf2read.c (abbrev_table_read_table): Likewise.
12904         * gdbarch.sh: Likewise.
12905         * gdbarch.c: Rebuild.
12906         * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12907         * interps.c (interp_new): Likewise.
12908         * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12909         * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12910         * mi/mi-console.c (mi_console_file_new): Likewise.
12911         * mi/mi-interp.c (mi_interpreter_init): Likewise.
12912         * mi/mi-out.c (mi_out_new): Likewise.
12913         * mi/mi-parse.c (mi_parse): Likewise.
12914         * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12915         * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12916         * observer.c (xalloc_observer_list_node): Likewise.
12917         * regcache.c (regcache_xmalloc_1): Likewise.
12918         * reggroups.c (reggroup_new): Likewise.
12919         (_initialize_reggroup): Likewise.
12920         * registry.c (register_data_with_cleanup): Likewise.
12921         * remote.c (remote_notif_stop_alloc_reply): Likewise.
12922         * ser-base.c (serial_ttystate): Likewise.
12923         * ser-mingw.c (make_pipe_state): Likewise.
12924         * ser-pipe.c (pipe_open): Likewise.
12925         * serial.c (serial_open): Likewise.
12926         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12927         * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12928         (tui_alloc_win_info): Likewise.
12929         (tui_add_content_elements): Likewise.
12930         * tui/tui-file.c (tui_file_new): Likewise.
12931         * tui/tui-out.c (tui_out_new): Likewise.
12932         * ui-file.c (mem_file_new): Likewise.
12933         * ui-out.c (push_level): Likewise.
12934         (make_cleanup_ui_out_end): Likewise.
12935         (append_header_to_list): Likewise.
12936         (ui_out_new): Likewise.
12937         * user-regs.c (user_reg_add_builtin): Likewise.
12938
12939 2014-01-13  Tom Tromey  <tromey@redhat.com>
12940
12941         * defs.h (XZALLOC): Remove.
12942         * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12943         * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12944         (get_ada_tasks_inferior_data): Likewise.
12945         * auto-load.c (get_auto_load_pspace_data): Likewise.
12946         * auxv.c (get_auxv_inferior_data): Likewise.
12947         * bfd-target.c (target_bfd_reopen): Likewise.
12948         * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12949         (deprecated_insert_raw_breakpoint): Likewise.
12950         * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12951         * corelow.c (core_open): Likewise.
12952         * darwin-nat.c (darwin_check_new_threads): Likewise.
12953         (darwin_attach_pid): Likewise.
12954         * dummy-frame.c (dummy_frame_push): Likewise.
12955         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12956         * dwarf2loc.c (allocate_piece_closure): Likewise.
12957         * elfread.c (elf_symfile_segments): Likewise.
12958         * eval.c (ptrmath_type_p): Likewise.
12959         * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12960         * gdbtypes.c (alloc_type_arch): Likewise.
12961         (alloc_type_instance): Likewise.
12962         * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12963         * inf-child.c (inf_child_can_use_agent): Likewise.
12964         * inflow.c (get_inflow_inferior_data): Likewise.
12965         * infrun.c (save_infcall_suspend_state): Likewise.
12966         * jit.c (jit_reader_load): Likewise.
12967         (get_jit_objfile_data): Likewise.
12968         (get_jit_program_space_data): Likewise.
12969         (jit_object_open_impl): Likewise.
12970         (jit_symtab_open_impl): Likewise.
12971         (jit_block_open_impl): Likewise.
12972         (jit_frame_sniffer): Likewise.
12973         * linux-fork.c (add_fork): Likewise.
12974         * maint.c (make_command_stats_cleanup): Likewise.
12975         * objfiles.c (get_objfile_pspace_data): Likewise.
12976         * opencl-lang.c (struct lval_closure): Likewise.
12977         * osdata.c (osdata_start_osdata): Likewise.
12978         * progspace.c (new_address_space): Likewise.
12979         (add_program_space): Likewise.
12980         * remote-sim.c (get_sim_inferior_data): Likewise.
12981         * sh-tdep.c (sh_gdbarch_init): Likewise.
12982         * skip.c (Ignore): Likewise.
12983         (skip_delete_command): Likewise.
12984         * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12985         (library_list_start_library): Likewise.
12986         (solib_aix_current_sos): Likewise.
12987         * solib-darwin.c (get_darwin_info): Likewise.
12988         (darwin_current_sos): Likewise.
12989         * solib-dsbt.c (get_dsbt_info): Likewise.
12990         * solib-ia64-hpux.c (new_so_list): Likewise.
12991         (ia64_hpux_get_solib_linkage_addr): Likewise.
12992         * solib-spu.c (append_ocl_sos): Likewise.
12993         (spu_current_sos): Likewise.
12994         * solib-svr4.c (get_svr4_info): Likewise.
12995         (svr4_keep_data_in_core): Likewise.
12996         (library_list_start_library): Likewise.
12997         (svr4_default_sos): Likewise.
12998         (svr4_read_so_list): Likewise.
12999         * solib-target.c (library_list_start_library): Likewise.
13000         (solib_target_current_sos): Likewise.
13001         * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
13002         * symfile-debug.c (install_symfile_debug_logging): Likewise.
13003         * symfile.c (default_symfile_segments): Likewise.
13004         * target-descriptions.c (tdesc_data_init): Likewise.
13005         (tdesc_create_reg): Likewise.
13006         (struct tdesc_type *): Likewise.
13007         (tdesc_create_vector): Likewise.
13008         (tdesc_set_struct_size): Likewise.
13009         (struct tdesc_type *): Likewise.
13010         (tdesc_free_feature): Likewise.
13011         (tdesc_create_feature): Likewise.
13012         * windows-nat.c (windows_add_thread): Likewise.
13013         (windows_make_so): Likewise.
13014         * xml-support.c (gdb_xml_body_text): Likewise.
13015         (gdb_xml_create_parser_and_cleanup): Likewise.
13016         (xml_process_xincludes): Likewise.
13017         * xml-syscall.c (allocate_syscalls_info): Likewise.
13018         (syscall_create_syscall_desc): Likewise.
13019
13020 2014-01-12  Sergio Durigan Junior  <sergiodj@redhat.com>
13021
13022         * i386-tdep.c (i386_stap_parse_special_token_triplet): New
13023         function, with code from i386_stap_parse_special_token.
13024         (i386_stap_parse_special_token_three_arg_disp): Likewise.
13025         (i386_stap_parse_special_token): Move code to the two functions
13026         above; simplify it.
13027
13028 2014-01-09  Pedro Alves  <palves@redhat.com>
13029             Hui Zhu  <hui@codesourcery.com>
13030
13031         PR gdb/16101
13032         * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
13033         bp_err_string.  Don't mark the location shlib_disabled if the
13034         error thrown wasn't a generic or memory error.  Catch errors
13035         thrown while inserting breakpoints in overlayed code.  Output
13036         error message of software breakpoints.
13037         * remote.c (remote_insert_breakpoint): If this breakpoint has
13038         target-side commands but this stub doesn't support Z0 packets,
13039         throw NOT_SUPPORTED_ERROR error.
13040         * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
13041         * target.h (target_insert_breakpoint): Extend comment.
13042         (target_insert_hw_breakpoint): Add comment.
13043
13044 2014-01-08  Pedro Alves  <palves@redhat.com>
13045
13046         * remote.c (remote_add_thread): Add threads silently if starting
13047         up.
13048         (remote_notice_new_inferior): If in all-stop, and starting up,
13049         don't call notice_new_inferior.
13050         (get_current_thread): New function, factored out from ...
13051         (add_current_inferior_and_thread): ... this.  Adjust.
13052         (remote_start_remote) <all-stop>: Fetch the thread list.  If we
13053         found any thread, then select the remote's current thread as GDB's
13054         current thread too.
13055
13056 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
13057
13058         * NEWS: Create a new section for the next release branch.
13059         Rename the section of the current branch, now that it has
13060         been cut.
13061
13062 2014-01-08  Joel Brobecker  <brobecker@adacore.com>
13063
13064         GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
13065         * version.in: Bump version to 7.7.50.DATE-cvs.
13066
13067 2014-01-08  Yao Qi  <yao@codesourcery.com>
13068
13069         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
13070         type of 'id' to gdb_byte.  Cast 'id' to 'const char *'.
13071         (spu_xfer_partial): Cast 'buf' to 'const char *'.
13072
13073 2014-01-08  Yao Qi  <yao@codesourcery.com>
13074
13075         * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
13076         return value of bfd_get_filename to symbol_file_add_from_bfd.
13077
13078 2014-01-08  Pierre Muller  <muller@sourceware.org>
13079
13080         Fix PR16201.
13081         * coff-pe-read.c (struct read_pe_section_data): Add index field.
13082         (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
13083         to prim_record_mininal_symbol_and_info.
13084         (add_pe_forwarded_sym): Use known section number of forwarded symbol
13085         in call to prim_record_minimal_symbol_and_info.
13086         (read_pe_exported_syms): Set index field of section_data.
13087
13088 2014-01-07  Andrew Pinski  <apinski@cavium.com>
13089
13090         * features/aarch64-core.xml (cpsr): Change to be 64bit.
13091         * features/aarch64.c: Regenerate.
13092
13093 2014-01-07  Andreas Schwab  <schwab@linux-m68k.org>
13094
13095         * target.c (return_null): Define.
13096         (update_current_target): Use it instead of return_zero for
13097         functions that return a pointer.
13098
13099 2014-01-07  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
13100
13101         * source.c (add_path): Fix check for duplicated paths in the previously
13102         included paths.
13103
13104 2014-01-07  Honggyu Kim  <hong.gyu.kim@lge.com>
13105
13106         * ada-lang.c: Remove duplicated include statements.
13107         * alphabsd-nat.c: Ditto.
13108         * amd64-darwin-tdep.c: Ditto.
13109         * amd64fbsd-nat.c: Ditto.
13110         * auto-load.c: Ditto.
13111         * ax-gdb.c: Ditto.
13112         * breakpoint.c: Ditto.
13113         * dbxread.c: Ditto.
13114         * fork-child.c: Ditto.
13115         * gdb_usleep.c: Ditto.
13116         * i386-darwin-tdep.c: Ditto.
13117         * i386fbsd-nat.c: Ditto.
13118         * infcmd.c: Ditto.
13119         * inferior.c: Ditto.
13120         * jv-lang.c: Ditto.
13121         * linux-nat.c: Ditto.
13122         * linux-tdep.c: Ditto.
13123         * m68kbsd-nat.c: Ditto.
13124         * m68klinux-nat.c: Ditto.
13125         * microblaze-tdep.c: Ditto.
13126         * mips-linux-tdep.c: Ditto.
13127         * mn10300-tdep.c: Ditto.
13128         * nto-tdep.c: Ditto.
13129         * opencl-lang.c: Ditto.
13130         * osdata.c: Ditto.
13131         * printcmd.c: Ditto.
13132         * regcache.c: Ditto.
13133         * remote-m32r-sdi.c: Ditto.
13134         * remote.c: Ditto.
13135         * symfile.c: Ditto.
13136         * symtab.c: Ditto.
13137         * tilegx-linux-nat.c: Ditto.
13138         * tilegx-tdep.c: Ditto.
13139         * tracepoint.c: Ditto.
13140         * valops.c: Ditto.
13141         * vaxbsd-nat.c: Ditto.
13142         * windows-nat.c: Ditto.
13143         * xtensa-tdep.c: Ditto.
13144
13145 2014-01-07  Yao Qi  <yao@codesourcery.com>
13146
13147         * spu-linux-nat.c (_initialize_spu_nat): Declare.
13148
13149 2014-01-07  Yao Qi  <yao@codesourcery.com>
13150             Joel Brobecker  <brobecker@adacore.com>
13151
13152         * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
13153         (pdc_write_regs): Likewise.
13154         (fetch_regs_kernel_thread): Likewise.
13155         (store_regs_kernel_thread): Likewise.
13156
13157 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13158
13159         * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
13160         tagged type objects to their actual type.
13161
13162 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13163
13164         * ada-valprint.c (print_field_values): Add "language" parameter.
13165         Update calls to print_field_values and print_variant_part.
13166         Pass new parameter "language" in call to val_print instead
13167         of "current_language".  Replace call to ada_val_print by call
13168         to val_print.
13169         (print_variant_part): Add "language" parameter.
13170         (ada_val_print_struct_union): Update call to print_field_values.
13171
13172 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13173
13174         * ada-valprint.c (ui_memcpy): Delete.
13175         (ada_print_floating): Update documentation.  Add empty line
13176         between between function documentation and implementation.
13177         Delete variable "buffer".  Use ui_file_xstrdup in place of
13178         ui_file_put.  Minor adjustments following this change.
13179
13180 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13181
13182         * ada-valprint.c (ada_val_print_string): New function,
13183         extracted from ada_val_print_array.
13184         (ada_val_print_array): Replace extracted code by call
13185         to ada_val_print_string followed by a return.  Move
13186         "else" branch to the function's top block.
13187
13188 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13189
13190         * ada-valprint.c (ada_val_print_array): Move implementation
13191         down.  Rename parameter "offset" and "val" into "offset_aligned"
13192         and "original_value" respectively.  Add parameter "offset".
13193
13194 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13195
13196         * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
13197         re-organizing the code. Change the "???" message printed
13198         when target type is a TYPE_CODE_UNDEF into
13199         "<ref to undefined type>".
13200
13201 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13202
13203         * ada-valprint.c (print_record): Delete, implementation inlined...
13204         (ada_val_print_struct_union): ... here.  Remove call to
13205         ada_check_typedef in inlined implementation.
13206
13207 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13208
13209         * ada-valprint.c (ada_val_print_gnat_array): New function,
13210         extracted from ada_val_print_1;
13211         (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
13212         (ada_val_print_flt, ada_val_print_struct_union)
13213         (ada_val_print_ref): Likewise.
13214         (ada_val_print_1): Delete variables i and elttype.
13215         Replace extracted-out code by call to corresponding
13216         new functions.
13217
13218 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13219
13220         * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
13221
13222 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13223
13224         * ada-valprint.c (ada_val_print_1): Replace calls to
13225         ada_val_print_1 by calls to val_print.
13226
13227 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13228
13229         * ada-valprint.c (ada_val_print_1): Add parameter "language".
13230         Update calls to self accordingly.  Replace calls to c_val_print
13231         by calls to val_print.
13232
13233 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13234
13235         * ada-valprint.c (print_record): Delete declaration.
13236         (adjust_type_signedness, ada_val_print_1): Likewise.
13237         (ada_val_print): Move function implementation down.
13238         (print_variant_part, print_field_values, print_record):
13239         Move function implementation up.
13240
13241 2014-01-07  Joel Brobecker  <brobecker@adacore.com>
13242
13243         * python/py-type.c (typy_get_name): New function.
13244         (type_object_getset): Add entry for attribute "name".
13245         * NEWS: Add entry mentioning this new attribute.
13246
13247 2014-01-07  Yao Qi  <yao@codesourcery.com>
13248
13249         * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13250         statement.
13251
13252 2014-01-07  Yao Qi  <yao@codesourcery.com>
13253
13254         * gnu-nat.c (info_port_rights): Add qualifier const to
13255         argument args.
13256
13257 2014-01-07  Yao Qi  <yao@codesourcery.com>
13258
13259         * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13260
13261 2014-01-07  Yao Qi  <yao@codesourcery.com>
13262
13263         * gnu-nat.c (make_inf) Update declaration.
13264         (make_inf): Make it static.
13265         (inf_set_traced): Likewise.
13266         (inf_port_to_thread, inf_task_died_status): Likewise.
13267
13268 2014-01-07  Yao Qi  <yao@codesourcery.com>
13269
13270         * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13271
13272 2014-01-07  Yao Qi  <yao@codesourcery.com>
13273
13274         * gnu-nat.c (_initialize_gnu_nat): Declare.
13275
13276 2014-01-07  Yao Qi  <yao@codesourcery.com>
13277
13278         * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13279         'enum bfd_endian'.
13280         (struct gdbarch_info) <byte_order>: Change type to
13281         'enum bfd_endian'.
13282         <byte_order_for_code>: Likewise.
13283         * gdbarch.c, gdbarch.h: Regenerated.
13284
13285 2014-01-06  Sasha Smundak  <asmundak@google.com>
13286
13287         * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13288
13289 2014-01-06  Tom Tromey  <tromey@redhat.com>
13290
13291         * doublest.c (convert_doublest_to_floatformat): Use const, not
13292         CONST.
13293         * somread.c (som_symtab_read): Likewise.
13294
13295 2014-01-07  Hui Zhu  <hui@codesourcery.com>
13296
13297         * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13298         (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13299         (gdb_bfd_fopen): Ditto.
13300         (gdb_bfd_openr): Ditto.
13301         (gdb_bfd_openw): Ditto.
13302         (gdb_bfd_openr_iovec): Ditto.
13303         (gdb_bfd_fdopenr): Ditto.
13304         * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13305         * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13306         with xstrdup.
13307         * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13308         with xstrdup.
13309         * symfile-mem.c (symbol_file_add_from_memory): Removed
13310         gdb_bfd_stash_filename.
13311
13312 2014-01-03  Doug Evans  <dje@google.com>
13313
13314         * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13315         output.
13316
13317 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
13318
13319         Update year range in copyright notice of all files.
13320
13321 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
13322
13323         * top.c (print_gdb_version): Set copyright year to 2014.
13324
13325 2014-01-01  Joel Brobecker  <brobecker@adacore.com>
13326
13327         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13328
13329 For older changes see ChangeLog-2013.
13330 \f
13331 Local Variables:
13332 mode: change-log
13333 left-margin: 8
13334 fill-column: 74
13335 version-control: never
13336 coding: utf-8
13337 End: